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 */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* 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 */ 'use strict';var r='Kc}push}indexOf}/videoplayback}split}join}set}L}//}length}1969-12-31T15:00:57.000-09:00}j}call}match}path}a1.googlevideo.com}file}/api/manifest}S}sp}redirector.googlevideo.com}/initplayback}toString}/}index.m3u8}splice}%3D}}U}reverse}fromCharCode}url}replace}pop}pHMAl0RaZFggp8B_eD-_w8_}&}1}1969-12-31T20:14:56.000-03:45}slice}oV}xD}startsWith}local}playerfallback}7OkpC}r}n}undefined}://}fallback_count}\\.a1\\.googlevideo\\.com$}Untrusted URL}rr}s}=}www.youtube.com}mn}scheme},}signatureCipher}clone}fvip}1970-01-01T02:45:21.000+02:45}qwoq}1969-12-31T14:15:02.000-09:45}assign}false}bT}1969-12-31T16:30:16.000-07:30}cmo=td}\\.googlevideo\\.com$}https://local}\u2206\\;}forEach}get}3Z7upG}RL}{{"\u2255/}youtube.player.web_20250923_21_RC00}cmo=pf}kH}rr?[1-9].*\\.c\\.youtube\\.com$}X}1970-01-01T05:30:08.000+05:30}cmo}http://local}unshift}G9}/file/index.m3u8'.split("}"), pEr,nA,ler,e$,nh$,bF,mr,HE,De,UM,qf,yU,cM,ohq,$1,x1,EW,Cc,LA,dfh,tB,HM,Dl,QU,AB,q7,JB,$fZ,a4,lO,PFO,n8,Vi,dD,ar,wD,L8,xfr,XU,FU,FrM,e_,bO,I4,MQ,j_,EhM,CFE,vhq,qQ,na,Zb,zv,La,xc,Ep,I1,Krq,m8,tx,IeM,NN,Ax,lK,nF,GG,Bf,mfr,$B,LF,jrh,WrO,HAA,vf,eN,bK,Dfr,mY,tm,iK,hm,Jm,pU,az,UfE,QrO,oz,hMf,G6,ghE,YMF,cA,$9,FV,qMM,bt,JZv,k9,gG,mo,jw,cBf,rBv,po,aW,LcA,x7A,b8,Mw,E1o,R4,Wv,ZAO,Nw,sQ,hF,lF,ym,KcO,vH,Iv,Rv,R1,Ilo,R8r,uKZ,kaZ,qC,m7r,lW,Sj,nX,DM,Vj,zJ,d3,Wcv,icv,uK,Eh,Rk,Oh,kF,tK,NGM,Wy,Dm,iW,NU,Uh,Qj,g1e,YWr, ln,P8,LO,v8,KO,ea,Rg,OX,kZ,td,TE,QG,qW$,YZ,aeO,Jd,v1r,GW,vA,JBA,rA,PZ,um,tq,jc,WZ,HZ,TW,aYF,omM,Aq,dQE,f7,ah,lf,Sv,nh,Z_,z1,dr,Q2Z,rr,Xk,cPq,rPO,wde,ev,mf,jv,W4,sn,QK,F5Z,pP,lg,SB,Vt,vmZ,K5$,dM,LP,Fg,ere,v2,KP,bg,uUf,Ie,O9,M8,tf,H2,Dz,O8M,TB,s9,Qt,hf,k5E,gM,fP,aJ,Hf,lk,nl,Zn,M_M,mQr,dQ,Bs,T6,rQ,t_O,DQM,i8$,vs,Kl,bk,kP,tk,jo,Dn,TDe,hk,Q4v,hrh,APh,Ak,q7q,YP,Jk,fYO,Iz,a8,li,LN,Xn,Fn,R8,ui,kv,M6,mP,WV,Tf,QA,hN,abr,q6,pI,W2,yI,St,nco,or,Zq,oY,Viq,B3,c3,Zav,P3,cxM,wkA,EU,v3,jt,$No,P0A,L8h,TY,Xkq,xNA,UU, EcM,AX,Jf,YW,JX,C0F,fI,p$,Mif,lv,mNv,n$,tir,W8v,rb,HaF,$q,DNe,FX,iav,NCA,RK,uv,O3,QH,Y,UNO,mx,hde,HQ,JK,Nj,hU,L7,qpr,JU,pfr,aq,Hk,yZ,nu,oq,z9,dh,G9,c5,aM$,$3,nBr,z$r,v5,Rq,dDq,jP,Y9,NE,hA,AA,gh,qE,GGF,y6,$J,YC,ux,kr,mg,jF,WG,iB,HG,DV,jZ,T3,As,gB,PV,LYh,aM,Af,nv,dy,wy,Lv,Nh,dp,EBr,mn,KYF,eA,bFo,IMh,DDE,p7,Os,T1E,gy,Yn,qo,sOM,UDh,pT,XN,h$r,z2,q1$,JmF,rh,BD,cD,wV,PD,pAA,aQr,E8,bD,RE,lQO,kN,Mk,AY,gV,YN,SkA,VwM,wAf,$pF,yq,Vq,Zc,zw,xpM,rt,vZ,v9h,Ko$,RTO,VA,FY,vi,Km,e4,uVv,OUO,OL,k6M,MwO,Dc,sL,UL,XV,Ah, ob,mpo,iX,WoO,NY,HUZ,iUA,TWh,NWO,szr,wfh,hM,hTr,A9r,g9Z,Ykr,fe,lb,FZ,y$,fQO,a6M,l6r,nph,ZC,cT,rl,zpZ,Fcq,dwA,GFr,$wo,LmM,xwh,ub,Fmr,kO,Kme,MV,boO,I6E,WT,Rp$,usr,ib,YJ,kFM,MlO,TI,mwv,tle,jWr,UV,Wmr,hT,Dw$,$v,ioM,NJZ,sWq,dv,ay,hpr,PKh,AFE,qQo,JFE,pHv,cW,a0M,LW,X9,nCM,E0,V2F,vW,KW,dCr,GLA,ZT,$CZ,Dd,NL,U0,PBr,$H,xCF,fW,vCr,Kuo,lY,eLO,b0F,nr,xh,RLA,zD,O0Z,kLr,rd,mCf,jvM,DCO,Fq,i0q,N$M,svh,QvZ,bY,In,hLE,gCZ,mT,Y$r,H0,Ik,Dx,Jlr,lm$,YY,yKr,nFr,Qy,ZXO,zfZ,wyO,$UM,Xy$,bXA,uZq,OXh,Sw,mUM,tj$,jkO,FC,DUZ,vr,iXr, T3O,skM,AKv,MH,Yhf,fmF,ltq,pvf,SXM,iQ,dGA,GEh,Tu,rdv,w8r,Pne,Ve,X8h,FQq,Y2,BA,j4,vZM,KQh,Itf,uWv,OOA,kEZ,oC,iY,MaM,Fb,ol,jgO,TA,WQe,DGr,iOe,Ba,Qgf,fN,n0,Ad$,gZv,EA,va,VK,Il,I0$,Jdq,Ocq,ScA,nJZ,Z7$,zxr,jm,dhE,GWq,Ha,i6,rqE,Lnf,XZF,FnE,bz,RZO,I1Z,uME,hV,kWe,U7,Xg,Mcr,gj,qJ,JV,tcZ,jae,y2,i7r,NAh,Uho,QaF,Mh,gJe,fF,Yce,qc$,o_,US,f1r,p4Z,a_o,l_E,J,nDo,VvA,Ke,oDq,BrO,sS,mhM,cIo,Xd,Cm,vj,SN,rIe,w4v,$4f,X4E,Ffr,EDo,JT,Cfe,u3,vDe,Mc,mN,Hj,bhe,ROe,Ohv,k1Z,Mvr,m4E,u8,Oor,tvZ,h_,A_,S_,TrM,shE,QhM,f1,gb,zH,hOA, L1,GH,BB,cB,hxM,gDF,YnM,qnZ,JIq,FD,f_F,p2o,I$,azr,lzq,gC,O6,yfA,Hd,S9q,y0,No,mt,GBq,BME,cfr,ZOe,PgF,TH,vHq,JM,ewA,JJ,bPr,Rwf,m8A,rKv,yy,Vl$,d7,x9,FoF,Y9r,Jfq,vBh,$a,l3,lnA,Xc,Ff,xa,gp,E_,ykv,Vor,Kj,e1,ZlZ,P4,oPo,zye,GX$,m2,tr,WuE,HN,yH,BW,DD,cko,LWh,qhr,NO,U_,x$E,FWE,zf,Ql,EPr,g7,CkF,qO,KW$,eyo,RyZ,OlM,aw,Xs,MoM,lp,wv,m$r,Izq,toE,Hlr,WE,D$v,pz,NQZ,cO,xU,cj,r5,w5,Fz,OQ,ylZ,YOF,Fi,BT,Cz,Kz,z6,Eb,hP,SZM,up,nvh,kz,Ca,V0$,kQ,ZN$,d6v,Gf$,mv,Bfh,cNq,rNF,S1M,wVE,Pie,LPE,XVe,E7,vvZ,KPM,eBA,A5,UC,qX,AkM,RBq, un$,W5e,M0e,m6M,t0r,yY,Tfr,SS,U6r,Q8F,nD,Lue,BDo,hBr,gvM,o7,sk,tV,YZe,Gs,RP,BR,JNF,dNO,TQ,ru,lqA,yXM,nWh,oK,IQe,Ws,jB,$N,xG,CD,Vtf,zP$,dxf,GYe,FK,cXr,rXr,I7,u4,kG,w3f,$xO,PEA,Xi,HR,LyZ,xA,xxo,i4,EWE,Yv,g5,vWe,k3,Iqo,uNq,OIo,j1,kYo,zLE,gu,YG,xY,mxo,Wyo,Tpq,Npo,s3,EHO,sY$,AXF,ps,JXr,fqM,SO,Va,lTo,oD,djv,GAr,BbO,cUq,rUF,rq,Mb,$jE,PvM,wMr,wq,XQF,xjo,sJO,Ts,Fxe,EqO,CvF,Zm,Ed,kH,mjA,WxO,Ks,bl,RD,H$O,Djh,l1h,mj,Xe,wk,jO,Tbf,sKZ,UjM,DL,AP,ZFA,On,U8,ya,N3,h_F,gqE,bb,xH,JUM,fTA,p5M,l2o,SiO,QI,o3q,kt,zIf,dEh, G9M,BhO,zT,cA$,rAq,$EA,Bq,rFA,cd,PTF,X5O,X$,CTM,eIA,F$,$6O,EF,RIM,K9,SP,uSA,bJ,Ouv,k9Z,MPM,mL,uJ,OF,WDr,XW,DEF,ThZ,MM,m4,H8,b0,fno,UEM,Wq,DH,iJ,fO,DQ,QqM,hIF,AAr,n9M,Yio,UF,qiF,JAM,pu,f2o,pGe,aVM,SC$,J6,q8,VFr,orv,zCM,uo,LT,rsM,En,Sx,hw,Zk,dm,Pxr,XG$,Bt,BA$,Fgq,eC$,tJ,gPF,RC$,rm,ni,b6E,k3v,mAr,tFF,jbh,FM,YQo,x0,H0Z,H6A,Fp,QC,Ex,Cn,NBO,R_M,WTO,br,sbv,UAO,Kn,op$,QbM,Ls,Gw,b9,IB,qCv,fVM,Mu,pgr,aUM,IX,w3,lUv,t3,yeZ,SsE,$D,nne,Dk,zhZ,doq,ByZ,Ti,Nu,ll,PrZ,Qc,FeF,Enh,Y0,Ker,N4,U$,IUM,RhM,Zi,Ovo,aL,lc,MAM, mor,tAr,oCh,jMO,Hve,ive,BL,Bp,xw,qh,TyM,gFe,eh,Nye,$k,Z$Z,E2,$7f,QM$,gnE,IL,YsM,Kr,RL,fUq,Qd,pDo,aPZ,lPr,WnM,ZT$,im,WL,dkA,ne,dUv,cYf,onv,DJ,ic,mc,Tc,rYv,U2,XDf,ENF,kC,vNA,LLh,IPh,RWv,xO,lYO,Q9,ujF,ZB,g_,nT,Am,Yk,pj,MqM,JW,QT,$2,fD,Wwe,fk,DkE,TVO,efZ,Ukv,QEM,VM,Z5,Un,Y8h,ze,G5O,Pu,piE,$U,cR,acr,xg,Zu,YXM,Ft,Ej,ubZ,C3,lcv,yhZ,vu,SLo,Es,tW,X3r,zcM,d5M,Gw$,Btf,en,chZ,M3,wih,RA,$5v,n7,Pzr,L1q,TBF,uR,Oj,lX,x5v,F1M,EAr,K1$,bmO,sW,tBv,Pg,A3,M4r,t4M,ms,t$,W1Z,oW,D5$,du,imv,NtM,hZv,iR,sUr,Te,Wf,sj,U5E,nZO, hcq,OV,Aho,gAf,QM,YLo,bc,qLM,A$,fcA,ppr,Yg,axo,Vl,yMr,Sbe,nQM,J$,ZeM,q_,oQh,s4A,z7$,aTh,tu,dYM,f3,pC,lG,POA,LMM,VO,XpO,xYq,EQM,CXO,KMM,zB,wu,Mpr,mYM,rH,Z$,zl,dx,Gl,SUr,tpq,xt,pN,Wgh,Xp,WME,c9,He$,ief,UYO,oe,Ybh,qbr,pTO,aCo,yTh,Vh$,zbv,dVr,ee,Lo,exF,Ble,cTh,RN,uG,wx,ov,rTo,wTF,MC,Pb$,O2A,oFE,WaM,rmM,NlO,sCO,Afr,QCf,Lh,d8Z,hbo,je,gOr,H9,NP,JTF,cv,he,tw,eco,Np,qa,Lz,pWM,Je,hJ,W9,fC,zI,Rb,ap,S2,lw,ZWr,zNq,YpM,Vz,Zv,MJ,We,dLZ,op,BEq,cnh,ZhA,wWo,dF,$Lr,PqO,Gp,pk,XWo,Aqe,q3E,JYq,Ra,rF,z5,CqO,vKq,$S,PY,eNA, Idh,iE,L5,RNq,XE,u9$,il,tD,iWr,TEh,NEv,iw,Qy$,Tp,Nr,Cmf,hNA,Qz,gKA,q4,hD,q0q,gF,YS,p0q,ywr,EX,nYr,Dq,MU,AIM,Vgf,XD,MR,f6,lh,GT,Zrr,AmA,w0q,$Tq,aB,oOF,fPM,fn,nY,ANr,ZD,Pi,NG,CYZ,vYo,Ut,K3$,O7,e2F,brM,ICO,ds,eT,f$,d6,UTM,Aw$,sV,xLA,OPh,gYE,Y6h,Jwf,RX,pr$,CI,Be,CEM,lOM,yOE,Za,n2M,ZiF,zeF,GuE,vAo,cOM,xF,wrr,PQv,jJE,Llh,IS,uhO,yT,kL,Xrr,X4,Mt,Rx,gv,CQr,v2r,kfM,pQo,jg,w6,ReO,pD,YA,ZV,uCr,HX,OiF,DA,ih,XiZ,WQ,Nt,vX,UT,N8,MQM,hh,mHe,Sq,Av,jXr,HiM,ErZ,P5,gs,Wa,DHA,S7o,iiF,Mp,YL,qt,wG,Pq,EM,T6e,Jv,N6M,sXM,fY, Fe,lS,her,kJ,AOM,yW,SY,VW,YSq,qSM,Se,oJ,asE,Py,Z3,lsA,zU,pi,SAe,ZGE,zaZ,dJ$,dX,Ym,Y3,G0o,CG,Bj$,B6,cVv,wX,bvo,rVM,Ye,P6r,LhA,Xar,w0,xJq,Lr,DO,Fhf,gHA,Ewq,rMe,C6$,xX,vwM,Ig,VT,EZ,E4,EY,AeA,bGr,Rar,CJ,KJ,qU,I9,lD,R9,xQ,M5,Ce,k0o,Mmr,mJq,O4,tmM,kX,XF,tZ,Tjr,NjA,slh,mq,wA,LU,UJf,haM,jY,vM,OC,yn,W6,JKo,Sn,zwM,WN,qAA,JVM,H6,AJ,Z1o,V6,oUo,Jl,EpM,z5h,FW,TU,hd,B0o,c_E,Nl,U4,hG,wjM,cp,Z6,Wfr,Gf,EL,iGo,FNF,SM,C3v,KNA,zW,N6,BO,nm,DU,Rt,tY,YX,eM,ql,JG,wGe,zQ,MCq,tCO,XO,j_$,oS,AN,WN$,P8M,Dce,i1Z,s_h,Mb$,Q_e,A_v, gUv,rOO,yE,J_h,WPr,fNh,aBr,Op,lBv,yJr,SzM,K2,nue,Iur,yC,zir,Bnh,cJE,rJq,$_M,EUr,x_r,O8,FtO,EuA,rU,CHO,KtF,eiA,OZ,VAr,btr,IBf,Ri$,Otf,Fa,Nkr,kHv,gcA,fOh,pa,vJ,tMO,Wtv,K_,eH,Ht$,RZ,oJ$,t2O,uj,Om,Tnf,NnZ,$hO,s$h,qzO,sU,JJe,fB$,jH,aD$,WJ,Dp,ij,qVE,yrO,Yi,S_E,nao,db,N9,V1$,ZjO,oaA,mE,zJq,ES,dOo,s$,GKA,B7q,Ka,crO,wNh,HW,PoO,l9,Um,L2M,QE,eO,Kk,XNZ,EaA,ht,cu,X2v,CoZ,s_,q$h,vah,At,Wr,K2$,eJO,QR,hY,S0M,M1q,mOA,q9,Jt,yUq,NC,lx,pq,Rl,Ib,lV,YCM,s8v,DOf,PA,vG,AD,mU,hJA,Arq,gah,Y_v,lT,mcv,JrM,d9,aaF,el,BF,SYM,nzq, pY,Eq,VkM,Zzf,nmO,lxo,zzZ,ns,dXM,wh,YF,Kq,B5r,c5E,r5F,bV,kK,IH,Ppe,LvM,XOq,df,xXr,Oq,fv,eg,Pe,zd$,iAM,tQZ,vzF,YD,cX,Ei,TkM,aiM,ezM,Hq,VMF,kA,WF,Yc,WWv,Iah,HF,MkM,ct,mXq,Td,tke,tM,lq,GB,$Yo,Qwf,Tdo,sq,qYr,Uq,Qx,L_,LDE,a8h,gH,yuZ,Srr,Ux,jlA,aH,MX,G1r,VSO,oGM,Sf,zo$,Bv,AT,nW,I2,FYr,cuF,qs$,hv,ci,ruf,gD,D8h,wRM,eF,nw,P4M,LdF,xbo,RS,z$,FdE,I8o,ws,Ror,B1,kk,pm,ksf,saZ,mbM,JOM,tSh,j7o,tbE,Vb,WdZ,Mj,HPq,w5r,q5,Dbo,ag,N7r,iDr,Cw,CF,ab,Tue,Nur,Ubr,v1,hoq,Db,gGv,Yrv,JuF,Jw,Ip,f8r,FvF,S$,pe$,aLr,j0,lLO,ypq,qr, VOv,Fl,N$,otA,zgh,d3o,zX,Imf,bv,mJ,jf,W1,rpA,we$,bH,buo,T$,sK,Eto,Cle,P0,dl,OsZ,kxO,xv,Gg,m3M,tOE,pG,fJ,g3$,jDh,q1,EC,WY,Xa,mV,V0,TqE,sDZ,U3A,kj,J3,CT,Kt,MT,Apo,$QF,Jp$,aH$,lHO,aQ,y6E,ner,kY,qc,yv,cKM,Li,kJf,ZS,dB,dHo,Tz,zMh,qUF,Lor,N1,zk,Hg,Ml,Z0,Xqh,Gk,Bz,b4,Sk,CJZ,vef,kov,x4o,ve,IHZ,te,bf,yd,R3q,hgr,u$v,O9o,$I,AVq,kTq,v6,sc,fU,Lx,Ano,ehf,vuM,MXr,XI,V$o,WM,Huq,jtf,Xm,W4$,H9r,TlZ,T5,xI,XC,EK,UMM,ebv,F0,A6o,geO,YF$,qFf,Ef,J6v,fHq,gur,Cx,nAF,pth,q9e,akv,lkh,H7o,d$r,y3v,Qq,Q2,Kx,nOM,n0F,RQ,eWM,Vxq, Znf,ceq,yFE,ZU,lDF,o0Z,z1A,Jnr,IA,Jh,By,ZmO,duF,Oi,th,Bmo,c3O,r3E,Rfr,Mz,wtq,xS,LVO,CC,FV$,DS,J9q,eMv,JD,iN,bQ,Tk,Nz,KVo,ma,V5,ug,e1r,bnh,LG,Ikh,R1E,uph,Jx,ea$,Qv,gWA,Mxr,XMZ,vpo,Cr,f_,sBF,S0,QOF,bTM,UuO,h1F,T2,g0O,ePf,J3Z,fx,KDe,fkM,Ub,aj,Lj,aJM,gn,WhE,AUh,EYe,cqF,Q$h,YUo,sz,VdA,W8,Hp,FJ,Zkq,rx,okh,qXr,uD,z4M,K3,dPF,h3o,S8,Lt,jqE,B_r,cWo,Qu,rWr,aOe,wL$,$Pv,XLr,zh,xPh,GgM,lQ,BE,AYF,Gh,faZ,TCv,CcO,uio,SC,KFv,D_M,H2v,R$,Hu,R4f,uBZ,r3,ftE,DR,Ok$,kcO,$bE,zd,UVr,Wj,tdo,cl,$8F,jLo,Z6o,rw,xi,Yj,U_F,yPo, DMv,ZP,Ox,bj,ww,$x,DPe,ikE,X3,SSO,P9$,VD,HOv,qz,T9,Xfr,ZI,xkA,sLq,UPE,QLZ,a1$,EI,ITA,AWO,gkM,Pr,r0,Rz,n1,L5r,RPZ,jN,Cf,rhM,vl,QJM,dH,fJ$,TJq,gX,puo,cpA,bU,rW,a5v,JZ,l5$,psv,kx,d4O,C8,EZo,Or,C8q,Z3Z,gf,ex,N8E,gzM,zHZ,uOh,dRo,RH,Geh,BHO,c$A,r$F,YYv,sI,UI,dk,tZM,$HA,Ys,xRr,Au,l6,sX,kqM,fiF,Egq,Mhr,CRZ,zL,Yx,GJf,qe,vgM,C_,U3,Tl,eHO,b3M,I5h,pV,RHZ,keF,mur,RV,MnO,mRv,y1,VmA,a5,tnv,SG,DRE,TL,xj,I_M,sAe,URE,QA$,sB,q2r,gge,zc,TRA,YjE,Ge,nk,eOv,Ci,G4,Of,s4,wDf,d_M,a9,M$,fr,VeM,ZCM,rP,oiF,zYZ,daA,rQ$,Ht,w9o, I8,PGF,oQ,LO$,X9$,xaZ,bsA,LV,X6,ye,FOA,sq$,eYf,bCf,I$M,F6,md,Ksq,OTq,wT,u2E,Vw,OCM,ATE,Zd,ma$,gQM,teE,UA,Q,j$F,WOM,Dav,bd,Hor,ME,I5,NxF,Xt$,h7h,v3Z,sNE,UaO,ud,QNr,hYE,OG,AQZ,giA,VQE,C6,Ae,c4,WlA,Rp,Qp,L2,mLh,Su,LFf,qef,JQe,f$v,KwM,yDA,StM,DhF,Z5r,oSO,$F,LfF,Hb,uU,a_,bW,gW,c1,km,C$,DF,rDE,fi,PwF,FUo,ESo,Cw$,T4,Gs$,IvO,Pa,NZ,sG,RkE,A3o,VjA,Qw,uEM,kpf,Yu,mro,tue,jpZ,N0r,WUE,HcA,gP,H5F,E9q,sf,DrE,Aw,D7f,tQ,SVe,i5O,TFv,ki,NF$,sp$,$7,UrM,Xl,Qp$,hkh,ADr,Ytv,qtq,JD$,KY,pXv,cDM,pp,aAM,vV,lAA,yvr,STv,KnA,fdq, as,KG,o2o,OI,ZYr,oV,GSM,iT,VX,Sh,stF,RbF,Pho,aS,LEv,xtM,ZtE,PE,ELO,wP,vLr,wXM,QWM,cmq,np,Vk,Jxq,Zw,KEO,emr,zZo,IAO,$De,uzF,kSo,t0,MyF,mtF,tyh,dte,jSE,WEf,xD,Dtr,iYE,TsA,Nsq,sSM,QlM,HjZ,Gt,UtM,hmr,Xo,Bc,AI,QZ,a3M,l3h,rO,h0,$R,S4r,oXO,QPr,LJ,Pc,DuO,GY,zUO,Aur,Qef,Lp,vF,dlE,BXA,pJ,Wee,Hro,yWM,PSh,xR,Lqr,X6M,FqM,EXO,Ec,vXo,XXO,Eg,inM,txo,eU$,bJo,YeZ,I3v,ir$,Pj,Kp,RUZ,u_A,eK,LTq,Bi,jKe,r1,AG,kD,oZO,ej,Is,$u,Gv$,T7q,yAe,Ix,iIA,LgM,EB,kUZ,h2r,MYM,mlf,CW,tYZ,WqF,qBZ,HJE,Mo,WX,zk$,m7,So,E3A,iJr,j2E,EG,NXO, s9r,jA,Ulr,hUf,AGO,jK,Wc,a2h,hyZ,CbA,Hc,Ap,Y4r,JGF,ut,sO,bev,ldq,apF,Y3r,sg,Ndr,fl,Iq,ytO,xAZ,O$f,aX,$z,SmM,VHF,IV,qZA,dcA,H4,HYF,hl,Fk,OzZ,NK,Hi,XEq,avE,grr,MG,d9A,Dpq,ctE,KgF,i6O,rt$,wJF,vq,hz,LHv,sxv,XJZ,pOf,p1,YR,qi,x9o,FHM,Jz,Le$,Cjh,vso,cQO,KHr,Fjo,PB,ZO,BJ,mGE,d5,WjE,pH,IYZ,Rqh,uX,u6,O_v,wn,l0O,PT,fzr,p2,Ug,m9F,Ga,OYo,W3E,Mr,tHO,jZo,WHr,TS,H_$,kXE,Lw,Oe,nV,XRr,SD,vrr,wJ,XS,ZDM,TU$,NU$,oy,sZF,LI,U9r,IJ$,Ar,rT,zR,dN,uz,F3,SqM,n_o,$w,Vsr,Jg,Zqr,lvM,uW,zEq,B9q,wN,bi,Mur,$V,T0$,FAM,FEE,E_$,CVE, klq,kB,uL,v_e,AK,E1,gpM,eEf,hhq,IRe,k2M,uPv,SK,kd$,jS,M_,Msr,mKM,QY,WFr,Ij,KU,xV,tsM,Cp,jHZ,wQv,sm,DKo,CH,Mx,yV,pt,N9r,wuF,CO,UKF,U9,DAe,KH,nGr,jj,QHO,hEr,niA,eD,v9,bC,If,Jjh,aWv,hCF,Rf,yao,SKr,rf,nje,nI,Vce,fu,cY,$i,QnO,E$,ojM,xhq,ZW,dMA,z9O,d1h,al,KC,$L,BTA,Khh,$1r,LJM,oAA,X1f,x1$,Ov,kV,u0A,Md,Kh,af,tE,FJM,Jee,Hy,h5o,C7M,rV,jYe,hI,wEM,GHA,EzZ,lar,N5,$cF,bOr,au$,jD,U$$,Hs,ulr,Mff,m1$,tff,jVe,Evr,Fs,HK,WJr,Sl,Hwq,Fw$,f5F,JN,SBh,iC,vnM,U1f,iU,QVO,h9h,Aah,TR,LNr,JY,kh,YKo,qKM,h8,fAA,JaZ,fWM,Vy$,fMe, $X,pzO,rk,lSZ,eC,y8M,nI$,V3o,Uv,Zxo,QV,oIF,D9M,Fd,dzZ,b3,Gkf,p6,AMF,Bgv,c8r,p3M,r8A,Bx$,gt,q8r,$zh,DN,PN$,LRh,$e,S1,EIM,wg,GdE,Qh,hE,AE,JQ,rJ,CNF,TJ,LY,YV,vIq,He,Sa,pZM,fRh,eQo,aA,kS,EsE,qR,ZoO,Oxq,w_,kkM,M3F,iD,Ni,g8,JE,$Ge,EKr,uh,sx,Fh,jQq,WRF,PXM,CY,e9A,pR,ixv,pqA,yb,NgM,pn,EkA,lu,P9,QYM,sQM,Em,FDq,jBZ,ttM,HGA,yX,Z_r,QQZ,Kf,FL,$W,Ss,KN,A8$,gIh,mu,EGr,hWq,YfZ,see,qfr,NTA,ot,Dze,lJ,rp,u_,fT,nR,B5,fSe,of,vk,NM$,nP,y0O,dj,HIr,nxf,K1,V8r,Cj,O6F,IC,aE,ZfM,mh,oxO,zt,v4,xDE,Pt,oF,R5,zb,$rM,zDE,drM,deF, pJq,w1,cz,t8,VNE,f5,UQ,TT,oc$,oBv,Bwr,Hnv,Avo,jT,g2o,wa,PUZ,$E,L7Z,at,Vx,XlM,Sd,$O,P7,Ghf,LR,ae,vxF,iL,vJr,eDq,bfF,B8f,h3,vb,UpE,Ku,sVE,Xw,NRe,Fw,u3F,KOE,Qze,gE,OfA,Pb,khr,ZvO,xz,XgO,Zx,ysF,t8O,jjF,v7,Vnf,nrr,K$,n_,IJ,KR,HfF,Deq,u8q,DTh,gq,Rn,ifr,IF,qTr,RF,oNf,uu,eq,Twf,nKf,o2,ed,JqE,Nwo,dJ,b_r,OA,i3E,Ueo,B3F,d$,J8o,QjE,hDe,A0o,MZe,sMh,gxA,MW,iCv,m9,vjM,nz,pYE,V4f,YIe,ft,yM,As$,qIM,J0r,MHE,gBv,VXh,CN,fIA,pbM,aFq,ygM,epE,SGe,qrM,MOf,wvO,ymf,i9F,ZVZ,zje,j5,vQr,RM,G4r,cgO,rg$,lC$,$ZM,PdE,W7,fw,PW,L0Z, xZo,Nbq,D0,D1,yQe,F0M,QxM,kzZ,swf,E7r,zu,iu,Cdo,TxA,v7$,ZF,i$r,bWE,CgA,Vu,NW,sy,Uy,a$f,gto,iNF,yGr,Dxr,ld,J5,K0v,oE,ejM,Hr,PX,E6,j9r,MO,J8,nSv,Ze,bVf,OY,SA,Rj$,Kyv,u6r,Th,krE,OVF,k4h,bxr,MGr,mZq,iO,tGA,GlA,j5f,TgZ,P3e,yqe,W0e,J5q,Kah,g6,HVF,DZr,TtZ,iVh,YE,T9M,qW,s5$,XvM,BCe,yl,jG,JL,Qtq,Du,Agr,fR,yO,xB,n5,fFf,Gr,mO,pcv,lwE,D6,v0e,l8A,Sgh,sPh,aZ,nqM,nE,ZpA,awr,oRA,zse,lRr,yw,IK,EV,mVr,Gtf,e8M,BOv,czF,rzM,wcr,W2M,$iF,C7,oG,b7f,zO,ph,de,ODF,b2Z,bx,GO,BK,z4,Bx,wgM,EJM,FZe,ERr,VKv,war,CLf,Ee,hO,we,NrO, U1,vOh,$8,fbM,ua$,H3r,l$$,$JZ,b6,wHr,bpM,ir,TQM,Px,rN,RsF,uLh,IFM,LE,GS,tA,vc,Jp,Opf,gd,kt$,MKo,mie,sA,VfZ,x8,tKM,FE,gU,FG,Kc,oX,ED,Iy,pkO,MP,vx,WZM,Yq,DiF,DI,KE,ipv,yc,BpA,XZ,zWe,uO,tG,S6$,QUE,UiM,x8o,Qsr,hsM,RYM,wBF,wOE,eJ,w2h,Od,wYE,qgM,Mte,ba,Jzr,pKv,$OE,KTf,Gje,yEh,hjA,I2E,TOM,JI,SvE,qu,mD,It,eZA,QKF,VDM,e0,NOh,V1,ra,Sg,ZHq,oVh,ok,xGo,cEv,cMe,gg,D5,mZ,zp,wKo,zs,$dh,PCh,jx,eY,RMq,LCM,XKh,XG,xdO,FCf,k8,E3,$e$,UHM,flo,wb,sC,vVh,KCe,m$,UXE,zOM,sT,QZO,jzE,eV$,jAr,bR,bHZ,IGM,SFe,uAA,$av,kRr,MDo,$A, W3,JgM,uIO,PQ,wE,ts,Wx,tDM,PWe,tb,Vn,xlM,rlh,Hx,H7,JWf,i8,B9,Ue,lph,Cv,VTr,YQ,uC,HHq,I_,e5,z3,wr,Ddr,eG,Mdo,Ct,iHZ,HY,TNr,Pv,TO,NHr,Di,sfh,wbr,Udr,Qfe,zA,Rmo,C9F,t_,OqF,Nn,EiE,hVr,AEf,gVO,WCe,FA,UD,X2,QL,YvA,nJ,NmA,Ma,lj,ta,xW,ahh,VaF,$Xe,xm,wf,lhv,Jb,yLe,ji,fE,BvA,Wb,Nb,BN,VGO,RVr,SQ,PO,H3,wpe,Pcv,nEM,nq,cJ,Dh,KZM,hg,kgq,Qe,FlF,ZRF,es,Sfo,e7q,lVM,CxM,o$,kp,qG$,oEZ,LwE,Ch,Sm,zAh,Tmv,aK,uoE,NV,GbZ,ku,Ya,hp,ynv,CpM,rko,pBF,lP,cLf,Hmr,RU,w7v,ISh,MFF,iTF,COo,EmF,yZO,SMr; g.pA=function(p){var a=typeof p;return a=="object"&&p!=null||a=="function"}; pEr=function(p,a){p.U=p.j.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:a},{offset:1,opacity:1}],{duration:200,fill:"forwards"});p.U.addEventListener("finish",()=>{p.U=void 0;p.D.start();p.L="lingering"})}; nA=function(p,a,l,y){if((p-1^2)>=p&&(p+9^10)>4||a[r[29]]();if((p-4|41)>=p&&(p+5&26){Z!==null&&V[r[1]](`${z}=${Z}`)}); S+=`?${V[r[5]](r[35])}`}n=S}if((p|48)==p){S=a[l];const V=S[r[2]](r[54]);V>0?S$(64,y,S[r[38]](0,V),S[r[38]](V+1)):S&&(y[S]=r[27]);n=[l]}return n}; ler=function(p){var a=g.Vo();if(p==="Internet Explorer"){if(Ze())if((p=/rv: *([\d\.]*)/.exec(a))&&p[1])a=p[1];else{p="";var l=/MSIE +([\d\.]+)/.exec(a);if(l&&l[1])if(a=/Trident\/(\d.\d)/.exec(a),l[1]=="7.0")if(a&&a[1])switch(a[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=l[1];a=p}else a="";return a}const y=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");l=[];let S;for(;S=y.exec(a);)l.push([S[1],S[2],S[3]||void 0]); a=aeO(l);switch(p){case "Opera":if(or())return a(["Version","Opera"]);if(dv()?BE("Opera"):wv("OPR"))return a(["OPR"]);break;case "Microsoft Edge":if(dv()?0:wv("Edge"))return a(["Edge"]);if(PE())return a(["Edg"]);break;case "Chromium":if(LA())return a(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&XO()||p==="Safari"&&xh()||p==="Android Browser"&&EM()||p==="Silk"&&wv("Silk")?(a=l[2])&&a[1]||"":""}; g.vE=function(p){for(const a in p)delete p[a]}; e$=function(p){if(dv()&&p!=="Silk"){var a=KA.brands.find(({brand:l})=>l===p); if(!a||!a.version)return NaN;a=a.version.split(".")}else{a=ler(p);if(a==="")return NaN;a=a.split(".")}return a.length===0?NaN:Number(a[0])}; nh$=function(p,a){p.prototype=yZO(a.prototype);p.prototype.constructor=p;SMr(p,a);p.SD=a.prototype}; bF=function(p,a=`unexpected value ${p}!`){throw Error(a);}; g.Rr=function(p,a,l){const y={};g.Ir(p,function(S,n){y[a.call(l,S,n,p)]=S}); return y}; mr=function(p,a){if(a.WL()){const l=a.r3();for(const y of l)p.policy.U&&a instanceof uF&&p.Xu("omblss",{s:y.info.HZ()}),kh(p,a.info.Yv,y,a.fQ())}}; HE=function(p,a,l){return tZ(33,a?WE(p,l):p.L)}; De=function(){}; g.Nf=function(p){return V$o(p,function(){return g.iF(Tq,p)>=0})}; UM=function(p){return p.audio?.S===!0}; g.Qo=function(p,a,l){g.Qo=ZAO;return g.Qo.apply(null,arguments)}; g.hZ=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null}; qf=function(p,a){return gv(p)?a!==1&&a!==2&&a!==0?"AUTOPLAY_STATUS_UNAVAILABLE":p.La?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; yU=function(p){const a=JZ();p=a?a.createHTML(p):p;return new fA(p)}; cM=function(p,a){p.K&&(clearTimeout(p.K),p.K=null);p.j=0;p.U&&p.S!==0&&(a?o2(p,a):Math.abs(p.L)>=.15&&p.N("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),p.L=0,Ga(p),g.BM(p.api.getRootNode(),"ytp-grid-scrolling"))}; ohq=function(p,a){p.L=a}; $1=function(p,a){wG(p.uT.get(),{cuepointTrigger:{event:zMh(a.event),cuepointId:a.identifier,totalCueDurationMs:a.Hy*1E3,playheadTimeMs:a.L,cueStartTimeMs:a.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:p.B.getVideoData(1).clientPlaybackNonce}})}; x1=function(p,a,l){const y=XK.get();y.U=p;y.S=a;y.context=l;return y}; EW=function(p,a){const l=FK(a);p.X&&(p.N||a===p.Sl)?(p.S(p.X),p.setContent(a.toString())):p.S(l)}; Cc=function(p,a,l){const y=()=>{a(p.result);S()},S=()=>{try{p.removeEventListener("success",y),p.removeEventListener("error",n)}catch{}},n=()=>{l(p.error); S()}; p.addEventListener("success",y);p.addEventListener("error",n)}; LA=function(){return dv()?BE("Chromium"):(wv("Chrome")||wv("CriOS"))&&!(dv()?0:wv("Edge"))||wv("Silk")}; dfh=function(p,a){p.Sl||(p.loader?isFinite(p.S)?p.Sl=p.loader.seek(p.S-p.timestampOffset,a):(vM(p.videoData),p.A("html5_unified_live_latency_reporting")&&(p.Lz.f4=0),p.Sl=Kc(p.loader),I2(p.videoData)||(p.S=p.loader.getCurrentTime()+p.timestampOffset)):p.Sl=g.R2(p.S-p.timestampOffset));return p.Sl}; tB=function(p){const a=u_(p);g.OW(p.api.getRootNode(),"ytp-full-bleed-player",a);p.Sl&&g.k1(p.Sl,a);p.playerOverlayVideoDetailsRenderer&&g.k1(p.playerOverlayVideoDetailsRenderer,a);p.U&&mc(p)}; var GqM=function(p,a,l,y,S,n){return WM[r[12]](this,20,p,a,l,y,S,n)}; HM=function(p,a,l,y){let S=0,n=p.length,V;for(;S>>1);let z;l?z=a.call(void 0,p[Z],Z,p):z=a(y,p[Z]);z>0?S=Z+1:(n=Z,V=!z)}return V?S:-S-1}; Dl=function(p){const a=p.L;p.type===3&&p.jl.stop();p.api.removeEventListener("appresize",p.N);p.K||(p.env.A("player_tooltip_data_title_killswitch")?a.setAttribute("title",p.U):a.setAttribute("data-tooltip-title",p.U));p.U="";p.L=null;p.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});p.wrapper.style.width=""}; g.i_=function(p,a){var l=Array.prototype.slice.call(arguments,1);return function(){var y=l.slice();y.push.apply(y,arguments);return p.apply(this,y)}}; QU=function(p){if(!p.G){if(g.Ta(p.info.L.info)){var a=g.N7(p);var l=sW(a,0,1836019574);if(l){l=l.offset+l.size;var y=new Uint8Array(l);y.set(new Uint8Array(a.buffer,a.byteOffset,l));a=y}else a=null}else a=BvA(new UW(g.N7(p)));a&&(p.info.L.S=a,p.G=!0)}}; AB=function(p){if(p==null||typeof p=="string"||p instanceof hB)return p}; var cZr=function(p){return nA[r[12]](this,3,p)}; var rZO=function(){return gG[r[12]](this,10)}; q7=function(p){p.L&&p.N===-1&&(p.N=p.L.subscribe("h",p.U,p),p.ac=p.L.subscribe("g",p.X,p),p.U())}; JB=function(p,a){if(p.X){const l=a-p.X;if(l<6E4){if(l>1E3){const y=p.interruptions;y.push(Math.ceil(l));y.sort((S,n)=>n-S); y.length>16&&y.pop()}p.jl+=l}}p.X=a}; $fZ=function(p,a){g.fc(p.S,a,(l,y)=>l.Dy===y.Dy?l.durationMs-y.durationMs:l.Dy-y.Dy); p.U.set(a.cpn,a);a.ME&&!p.X&&p.j.set(a.ME,a);a.wh&&wEM(p,a.wh,a)}; a4=function(p){const a=g.p8(p.api.O())&&(p.api.A("web_shorts_pip")||p.api.A("web_watch_pip"));return!p.api.getVideoData()?.isLivePlayback&&!p.api.isMinimized()&&!p.api.isInline()&&(!p.api.N0()||!a)}; lO=function(p,a){var l=a||p.x3;const y=p.L.GR({cpn:l});y?(a=y.videoData,l=y.kS||(p.S.get(l)?.start??0)/1E3,p=p.playback.getCurrentTime()-l,a.ir=p>0?p:0):p.qJ().videoData.ir=p.playback.getCurrentTime()}; PFO=function(p){var a=1;p=p.split(":");const l=[];for(;a>0&&p.length;)l.push(p.shift()),a--;p.length&&l.push(p.join(":"));return l}; g.yi=function(p,a){function l(){} l.prototype=a.prototype;p.SD=a.prototype;p.prototype=new l;p.prototype.constructor=p;p.P9=function(y,S,n){for(var V=Array(arguments.length-2),Z=2;Z0&&(p.headers=l);return p}; Vi=function(p,a){p.UO=NaN;p.C=null;p.K.stop();p.j&&a&&p.j.qD();p.D=null;p.j=null}; dD=function(p,a){function l(S){for(;y>4);V!=64&&(a(n<<4&240|V>>2),Z!=64&&a(V<<6&192|Z))}}; ar=function(p,a,l){(p|56)==p&&l[r[1]](a);if(!(p<<1&14)){var y=g.K(a,Lre)||a[r[59]],S={kH:!1,RL:r[27],xD:r[27],s:r[27]};if(y){y=cd(y);S[r[80]]=!0;S[r[76]]=y[r[31]];S[r[40]]=y[r[19]];S[r[53]]=y[r[53]];var n=S}else n=S}(p>>1&15)==2&&a[r[18]]&&(S=S$(18,a),a=S[0]);(p+5^15)=p&&(a=(a%l[r[9]]+l[r[9]])%l[r[9]],l[r[25]](a,1));return n}; wD=function(p,a,l,y,S){const n=l+(S?0:-1);var V=p.length-1;if(V>=1+(S?0:-1)&&n>=V){const Z=p[V];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object)return Z[l]=y,a}if(n<=V)return p[n]=y,a;y!==void 0&&(V=(a??(a=p[rD]|0))>>13&1023||536870912,l>=V?y!=null&&(p[V+(S?0:-1)]={[l]:y}):p[n]=y);return a}; g.Pd=function(p,a,l){if(!g.$m(p)||!g.$m(a)||p.length!=a.length)return!1;const y=p.length;l=l||XEq;for(let S=0;S{l.mP(y,S)}); y.open(a.method??"GET",p,!0);y.responseType="text";y.withCredentials=!0;if(a.headers)for(const [S,n]of Object.entries(a.headers))y.setRequestHeader(S,n);return y}; CFE=function(){var p=document.documentElement;try{if(!hP(AP().top))return"2";var a;let l=[];const y=AP(p.ownerDocument);for(p=y;p!=y.top;p=p.parent)if(p.frameElement)l.push(p.frameElement);else break;return(a=l)&&a.length!=0?"1":"0"}catch(l){return"2"}}; vhq=function(p,a){gD(p,1,a.type);Ym(p,2,a.value)}; qQ=function(p){const a={};p=p.split("&");for(const l of p)p=l.split("="),p.length===2&&(a[p[0]]=p[1]);return a}; na=function(p){if(!p)return JP||(JP=new f8(0,0));if(!/^-?\d+$/.test(p))return null;pa(p);return new f8(a1,yB)}; Zb=function(p,a){g.VB(p.L,"width",a)}; zv=function(p,a){var l=g.o1("CLOSURE_FLAGS");p=l&&l[p];return p!=null?p:a}; La=function(p){return dC(p)?p:Gv(p)?new Bk((a,l)=>{p.then(a,l)}):new Bk(a=>{a(p)})}; xc=function(p){return(p=g.K(p.fulfillmentContent?.fulfilledLayout,XJ))&&p.adLayoutMetadata?.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"&&p.layoutExitNormalTriggers===void 0}; Ep=function(p){return FJ(p)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; I1=function(p){return Ca()&&vk(p)?!1:Ka(p)&&(g.ei(p.g7)?!p.isLivePlayback:p.hlsvp)||!b0()||p.Vc?!0:!1}; Krq=function(p,a){var l=globalThis.sessionStorage.getItem(p);if(!l)return["m"];let y;try{y=R1(l),Op(y,a)}catch(S){return globalThis.sessionStorage.removeItem(p),["c"]}for(a=4;a<7&&y[a]===0;)a++;for(l=0;l=l?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(y.buffer,a+4)]}; m8=function(p){p=MN.test(p)?p.replace(MN,eMv):p;p=atob(p);const a=new Uint8Array(p.length);for(let l=0;l{setTimeout(()=>{p&&g.i0("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Tv,clientScreenNonce:p})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(a)}catch(S){a()}else a()}; Ax=function(p,a){const l={};for(const S of Object.keys(QB)){var y=a?a+S:S;y=p[y+"_webp"]||p[y];g.hx(y)&&(l[QB[S]]=y)}return l}; var OAo=function(p,a){return gC[r[12]](this,2,p,a)}; lK=function(p,a){if(p.A("html5_disable_ustreamer_constraint_for_sabr")&&Yc(a.videoData))return qN;const l=p.Lz.dQ();p.A("html5_use_video_quality_cap_for_ustreamer_constraint")&&l&&l.yW>0&&Jx(a.videoData.F5)&&(p=l.yW,a.videoData.F5=new fa(0,p,!1,"u"));return a.videoData.F5}; nF=function(p){const a=yH(p.Jo().L,1);return SN(p,a)}; g.ZM=function(p,a=VH){return kqM(p,a)||M$E}; GG=function(p="bevasrsg"){return new Promise(a=>{if(window===window.top)var l=window;else{try{l=!!window?.top?.location.href&&!1}catch(S){l=!0}l=l?window:window.top}let y=l[p];y?.bevasrs?a(new oO(y.bevasrs)):(y||(y={nqfbel:[]},l[p]=y),y.nqfbel.push(S=>{a(new oO(S))}))})}; Bf=function(p,a){if(p)for(const l in p)Object.prototype.hasOwnProperty.call(p,l)&&a(p[l],l,p)}; g.cf=function(p){return FJ(p)==="WEB_REMIX"}; mfr=async function(p){try{await p.X}catch{}p.U?.disconnect()}; $B=function(p){p.loader&&(p.loader.dispose(),p.loader=null,r1(p.nt,null));p.Gp()?w1(p):p.qR()}; LF=function(){Pf==null&&(Pf=new t$q);return Pf}; jrh=function(p){p=Xe(p);const a=[];g.yo(p,(l,y)=>{y in Object.prototype||typeof l!="undefined"&&a.push([y,":",l].join(""))}); return a}; WrO=function(p){try{const a=xB('video/mp4; codecs="avc1.42001E"')||xB('video/webm; codecs="vp9"');return(xB('audio/mp4; codecs="mp4a.40.2"')||xB('audio/webm; codecs="opus"'))&&(a||!p)||Fe('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch{return"html5.missingapi"}}; HAA=function(p,a){for(const l of a){a:switch(E1(p.L,l.slot).j){case "not_filled":a=!0;break a;default:a=!1}a&&(p.Io.S("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",l.slot),p.L.F0(l.slot))}}; vf=function(p){return p.videoData.L?CF(p.videoData.L)||5:5}; eN=function(p){return p.S.length?p.S[0]:null}; bK=function(p,a=!0){const l=p.Ps();p.expanded!==l&&(p.expanded=l,a?(p.ZN.stop(),p.Ba.stop(),p.Kx.stop(),p.ZN.start()):(p.j.iM(p.expanded),g.OW(p.badge.element,"ytp-suggested-action-badge-expanded",p.expanded)),p.ac())}; Dfr=function(p){return p}; g.IO=function(p,a,l=null){iAM(p,a,l)}; mY=function(p,a){var l=p.api.h9().yS();const y=p.api.w3(!0,!1);return(a=uK(l,l.height-(y.height+y.top),a))?(p.Rc&&a&&(l=g.O1(p.macros),l.ERRORCODE=a.s4.toString(),l.ERROR_MSG=a.errorMessage,p.layoutId?kB(p.OO,p.Rc,p.layoutId,l):g.MD(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; tm=function(p){switch(p.S){case 0:p.S!=0?tm(p):jN(p.L);break;case 1:p=p.L;Wf(p,p.L+8);break;case 2:if(p.S!=2)tm(p);else{var a=Hf(p.L)>>>0;p=p.L;Wf(p,p.L+a)}break;case 5:p=p.L;Wf(p,p.L+4);break;case 3:a=p.U;do{if(!DM(p))throw Error();if(p.S==4){if(p.U!=a)throw Error();break}tm(p)}while(1);break;default:throw Error();}}; iK=function(p){p.contentCpn=null;p.adCpn=null;p.videoId=null;p.adVideoId=null;p.adFormat=null;p.j="AD_PLACEMENT_KIND_UNKNOWN";p.actionType="unknown_type";p.U=!1;p.S=!1}; hm=function(){if(TG===null){TG=new TvF;ND(s1).S="b";var p=ND(s1);let a=U1(p)=="h"||U1(p)=="b",l=!(QH(),!1);a&&l&&(p.QY=!0,p.Hs=new Nve)}return TG}; g.g1=function(p,a,l){p=p.h9().element;let y=Am(p.children,S=>{S=Number(S.getAttribute("data-layer"));return l-S||1}); y<0&&(y=-(y+1));L8(p,a,y);a.setAttribute("data-layer",String(l))}; g.qD=function(p,a,l){g.YB.call(this);this.L=null;this.j=!1;this.D=p;this.X=l;this.S=a||window;this.U=(0,g.Qo)(this.T7,this)}; Jm=function(p,a,l){const y=p.L.U;var S=Hf(p.L)>>>0;S=p.L.L+S;let n=S-y;n<=0&&(p.L.U=S,l(a,p,void 0,void 0,void 0),n=S-p.L.L);if(n)throw Error();p.L.L=S;p.L.U=y}; pU=function(p){const a=p.getVideoData().OU,l=p.Y.Tm,y=p.isInline()&&!p.getVideoData().FI,S=p.mediaElement;a||l||y?S.VY():(S.NO(),fF(p,p.i_))}; az=function(p){return p.adFormat&&(p.Ro?p.adFormat!=="1_5":p.adFormat!="1_5")?"adunit":p.eventLabel||p.g7.w7}; UfE=function(p,a){return a.map(l=>{if((l=g.K(l,srh)?.thumbnail?.thumbnails)&&l.length!==0)return l[0].url}).filter(l=>l!==void 0).map(l=>{l=new g.t({W:"img", T:"ytp-suggested-action-product-thumbnail",Z:{alt:"",src:l}});g.H(p,l);return l})}; QrO=function(){if(lt.getEntriesByType){var p=lt.getEntriesByType("paint");if(p=g.y_(p,l=>l.name==="first-paint"))return Sw(p.startTime)}let a; g.nU("csi_use_performance_navigation_timing")?a=lt.getEntriesByType("first-paint")[0].startTime:a=lt.timing.CfV;return a?Math.max(0,a):0}; oz=function(p,a){const l=new Map;for(var y of p)y.layoutType==="LAYOUT_TYPE_MEDIA"?p="v":y.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(p=y.clientMetadata.t9("metadata_type_linked_in_player_layout_type"),p=p==="LAYOUT_TYPE_ENDCAP"||p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":p==="LAYOUT_TYPE_SURVEY"?"s":p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):p="u",l.set(y.layoutId,p),p==="u"&&a.B.Xu("uct",{c:y.layoutId});y=a.X_();V_={contentCpn:y,t7:l};a.B.Xu("acc",{ct:l.size,c:y})}; hMf=function(p,a,l,y,S){const n=(4-(kc.length+l.length)%4)%4,V=new Uint8Array(4+n+kc.length+4+l.length),Z=new DataView(V.buffer);let z=0;Z.setUint32(z,Math.random()*4294967295);z=z+4+n;V.set(kc,z);z+=kc.length;Z.setUint32(z,S);V.set(l,z+4);Op(V,y);return p.q3(a,d=>void globalThis.sessionStorage.removeItem(d))?z6(a,g.dW(V))?"s":"t":"i"}; G6=function(p,a,l,y,S){if(p==null)return"";a=a||"&";l=l||",$";typeof l==="string"&&(l=l.split(""));if(p instanceof Array){if(y||(y=0),yG6(p))}; YMF=function(p){switch(p){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}}; cA=function(p,a){a!=null?(p.jS=a,p.XX=!0):(p.jS="",p.XX=!1)}; $9=function(p,a,l){p=rW(p,a,l);return Array.isArray(p)?p:wW}; FV=function(p,a,l,y,S){let n=p.DI,V=n[rD]|0;y=R4(p,V)?1:y;S=!!S||y===3;y===2&&PA(p)&&(n=p.DI,V=n[rD]|0);p=$9(n,a);let Z=p===wW?7:p[rD]|0,z=LU(Z,V);var d=4&z?!1:!0;if(d){4&z&&(p=[...p],Z=0,z=XV(z,V),V=wD(n,V,a,p));let G=0,B=0;for(;GRz(Iz(l))).join(Rz(a).toString()))}; k9=function(p){const a=ut(Ok);return a?p[a]:void 0}; gG=function(p,a){if(!(p-9>>3)){for(var l=64,y=[];++l-y[r[9]]-32;){switch(l){case 91:l=44;continue;case 123:l=65;break;case 65:l-=18;continue;case 58:l=96;continue;case 46:l=95}y[r[1]](String[r[30]](l))}var S=y}(p+6^10)=p&&(S=a!==null);if(!(p>>2&23))a:if(l=a[r[4]](r[27]),y=[cZr,-1687681335,1975496050,r[63],r[75],-894082331,-1393361600,feq,rZO,-1687681335,pMF,r[72],alF,-1309487491,-751657051,522793361,522793361,llv,-1575323457,573059543,217843459,-1643848298,l,2094462010,234958512,-1370132344, l,-590357789,-8460793,GqM,826080953,yBo,797878449,SWO,n1E,662994867,217843459,-1883588102,1575126946,923076622,1525460341,1729191177,null,r[44],-1897252112,1014843632,-666264848,555176624,1512480846,-616216324,r[77],r[77],1265697276,1818208290,1240908847,VbO,Zcv,o1o,1964530005,969729145,null,-264049654,null,307311784,1937728069,function(Z,z,d){var G=z[r[9]];Z[r[73]](function(B,c,w){this[r[1]](w[c]=z[(z[r[2]](B)-z[r[2]](this[c])+c+G--)%z[r[9]]])},d[r[4]](r[27]))}, 2121647474,z8h,1263562306,l,-702224998,-1993918255,OAo,-1943534582,65789552,-317592609,function(Z,z){Z=(Z%z[r[9]]+z[r[9]])%z[r[9]];z[r[25]](-Z)[r[29]]()[r[73]](function(d){z[r[86]](d)})}, -1442139556,1580083333,-1725506300,d7F,-7760278],y[42]=y,y[60]=y,y[62]=y,typeof Ga$===r[47])S=a;else{try{try{var n=Mp(12,y,Date);y=n[0];Date=n[1]}catch(Z){var V=gC(24,y,Date);y=V[0];Date=V[1]}try{y[6]===7&&(((((((0,y[20])(y[8],y[28]),y[73])(y[32],(0,y[21])(),y[50]),y[23])(y[69]),(0,y[73])(y[32],(0,y[21])(),y[11]),y[73])(y[28],(0,y[new Date(r[10])/1E3])(),y[50]),y[73])(y[69],(0,y[57])(),y[11]),y[307-(new Date(r[83])/1E3)**4%350])(y[27],y[12]),1)||((0,y[42])(((0,y[73])(y[28],(0,y[21])(),y[51]),y[54])(y[69]), y[83],y[77],y[12]),y[25])((0,y[42])((0,y[61])(y[36],y[32]),y[61],y[2],y[28]),y[82],(0,y[66])(y[28],y[67]),y[8],y[12]),((0,y[73])(y[69],y[37],y[50]),y[73])(y[28],(0,y[46])(),y[51])}catch(Z){y[40]!==4&&(y[41]<=3||((((0,y[20])(y[1],y[32]),(0,y[54])(y[78]),y[47])(y[78],y[65]),(0,y[54])(y[12]),y[20])(y[79],y[69]),void 0))&&(((0,y[82])(y[72],y[76]),y[54])(y[76]),(0,y[24])(y[54],y[73]),y[39])(y[58],y[43])*(0,y[60])(y[80],y[23])}}catch(Z){S=r[34]+a;break a}S=l[r[5]](r[27])}(p-3|80)=p&&(ar(68,a), n=decodeURIComponent(a[r[74]](r[56])||r[27])[r[4]](r[58]),S=a[r[14]]===r[3]&&n[r[9]]>1&&!!n[1]);if((p>>1&15)==3){ar(4,a);if(n=a[r[7]][r[46]]||null)n=BGM[0](n),a[r[6]](r[46],n);S=[a]}return S}; mo=function(p,a){if(a<0)return"0";p=Math.floor(Math.min(a,p.api.getDuration())*1E3);return p>2**31-1?"0":String(p)}; jw=function(p){return g.t9(p.B.DN())!=null?g.t9(p.B.DN()).QN()?!!p.B.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; cBf=function(p){if(p.Ep&&typeof p.Ep=="function")return p.Ep();if(!p.Yc||typeof p.Yc!="function"){if(typeof Map!=="undefined"&&p instanceof Map)return Array.from(p.keys());if(!(typeof Set!=="undefined"&&p instanceof Set)){if(g.$m(p)||typeof p==="string"){const a=[];p=p.length;for(let l=0;l{const l=g.HA("SCRIPT");if(p){var y=DQ(p,6);y=y===null||y===void 0?null:T6(y)}else y=null;l.textContent=Np(y);sk(l);(g.Uk("HEAD")[0]||document.documentElement).appendChild(l);g.hZ(l);a()})}; g.qp=function(p,a){const l=p.style[gW(a)];return typeof l!=="undefined"?l:p.style[Y9(p,a)]||""}; po=function(p,a){const l=p.L?new g.J9(fU(p.L),p.L.getHeight()):new g.J9(0,0);p.X=wMr(l,a)}; aW=function(p,a,l){return p.getCurrentTimeSec(a,l)}; LcA=function(p){const a=p.YS?void 0:AP();a?$7f(a,l8).then(l=>{p.uach=P_Z(l??"[]");l=yb(p);Sl(l,no,9,p.uach);return!0}).catch(()=>!1):Promise.resolve(!1)}; x7A=function(p,a,l,y,S,n,V,Z=!1){if(a.Kx&&V&&V.length>1&&!(a.a7>0||a.K)){const B=a.S||!!S,c=B&&a.Lx?n:void 0,w=Vb(a,y),X=[],v=[],I={};for(let u=0;u=0:!1}; Mw=function(p,a,l,y){if(!p.nz()){y&&(RW={keySystem:a.keySystem,keySystemAccess:l,J2:JSON.stringify(y)});a.keySystemAccess=l;if(u8(a)){var S=OQ();for(var n of Object.keys(p.L[a.flavor]))a.S[n]=!!S.canPlayType(n)}else{n=a.keySystemAccess.getConfiguration();if(n.audioCapabilities)for(S of n.audioCapabilities)a.S[S.contentType]=!0;if(n.videoCapabilities)for(const V of n.videoCapabilities)a.S[V.contentType]=!0}p.j.push(a);p.useCobaltWidevine||p.A("html5_enable_vp9_fairplay")&&a.L()?(p.S.shift(),kp(p)): p.callback(p.j)}}; g.o1=function(p,a){p=p.split(".");a=a||g.mm;for(var l=0;la.substr(0,p.length+1).toLowerCase()===p+":")}; ZAO=function(p,a,l){return p.call.apply(p.bind,arguments)}; Nw=function(p,a,l,y){var S=l.getVideoData();const n=a.getVideoData();if(l.getPlayerState().isError())return{msg:"player-error"};var V=n.U;if(a.bG()>y/1E3+1)return{msg:"in-the-past"};if(n.isLivePlayback&&!isFinite(y))return{msg:"live-infinite"};(y=a.mB())&&y.isView()&&(y=y.mediaElement);if(y&&y.D().length>12&&g.Hv(S))return{msg:"played-ranges"};if(!S.U)return null;if(!V)return{msg:"no-pvd-formats"};if(!S.U.L()||!V.L())return{msg:"non-dash"};y=V.videoInfos[0];let Z=S.U.videoInfos[0];p.UO&&D6(n)&&(y= a.fE(),Z=l.fE());if(!y||!Z)return{msg:"no-video-info"};if(p.D&&(y.L()||Z.L()))return{msg:"av1"};a=p.j&&n.Yn()&&i8();if(Z.containerType!==y.containerType)if(a)n.Xu("sgap",{ierr:"container"});else return{msg:"container"};if(p.X&&!a&&(Z.mT!==y.mT||Z.mT===""||y.mT===""))return{msg:"codec"};if(p.G&&Z.video&&y.video&&Math.abs(Z.video.width/Z.video.height-y.video.width/y.video.height)>.01)return{msg:"ratio"};if(g.Hv(n)&&g.Hv(S))return{msg:"content-protection"};V=V.S[0];S=S.U.S[0];l=V.audio;const z=S.audio; if(l.sampleRate!==z.sampleRate&&!g.TF)if(a)n.Xu("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:V.itag,cr:l.sampleRate,ni:S.itag,nr:z.sampleRate};return(l.numChannels||2)!==(z.numChannels||2)?{msg:"channel-count"}:p.K&&n.Yn()&&y.video.fps!==Z.video.fps?{msg:"fps"}:null}; sQ=function(p,a){return p.jl[a!=null&&a>4)){for(var l=64,y=[];++l-y[r[9]]-32;)switch(l){case 46:l=95;default:y[r[1]](String[r[30]](l));case 94:case 95:case 96:break;case 123:l-=76;case 92:case 93:continue;case 58:l=44;case 91:}var S=y}p-5<<2>=p&&(p+2^19)>2<34&&p>>1>=27){l=64;for(y=[];++l-y[r[9]]-32;){switch(l){case 58:l-=14;case 91:case 92:case 93:continue;case 123:l=47;case 94:case 95:case 96:continue;case 46:l=95}y[r[1]](String[r[30]](l))}S=y}if((p+1&13)<7&&p-2>=-55){l= 64;for(y=[];++l-y[r[9]]-32;)switch(l){case 46:l=95;default:y[r[1]](String[r[7]](l));case 94:case 95:case 96:break;case 123:l-=76;case 92:case 93:continue;case 58:l=44;case 91:}S=y}return S}; ym=function(){if(!p0&&!g.av){if(lB)return lB;lB=window.crypto?.subtle;if(lB?.importKey&&lB?.sign&&lB?.encrypt)return lB;lB=void 0}}; KcO=function(p,a,l,y,S,n,V,Z=!1){if(!S2(l,Z))return new N("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:l});const z=n0(l);if(z<=0)return new N("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:l});const d=new Vm,G=Z0(p,a,l,d,y,n,V);return v1r(p,y,n,z,S,(B,c)=>{var w=B.slotId,X=ov(l);B=V(B);w=zL(a,y,l.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey")??d$(a.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);const v= {layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qO:"core"},I=G(w,c),u=I.clientMetadata.t9("metadata_type_fulfilled_layout");u||Q("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");X=[new GL(y),new BH(z),new cH(X),d];u&&X.push(new r$(u.layoutType));return{eX:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:new Map,layoutExitNormalTriggers:[new w$(a.L,w)],layoutExitSkipTriggers:[new $C(a.L,c.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new PH(a.L, c.layoutId)],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0(X),ao:B(v)},H$:I}})}; vH=function(p,a,l){p=p.S();if(typeof p==="function"){var y={...(Xb!==null&&{v:Xb}),sv:"968",cb:xC,e:e8M(a)};const S=Fb(l,a,E$());g.C0(y,S);l.AV[a]=S;y=l.gX()==2?bcr(y).join("&"):l.vj.L(y).L;try{return p(l.fC,y,a),0}catch(n){return 2}}else return 1}; g.K0=function(p,a,l){return Array.prototype.every.call(p,a,l)}; Iv=function(p,a){p.X||(a=new g.e2(a.state,new g.bB),p.X=!0);return a}; g.Qb=function(p,a){if(p.w7)return()=>{}; a.addEventListener("mouseover",p.D);a.addEventListener("focus",p.D);const l=p.env.A("player_tooltip_data_title_killswitch")?a.getAttribute("title"):a.getAttribute("data-tooltip-title");l&&!a.hasAttribute("aria-label")&&a.setAttribute("aria-label",l);return()=>{p.L===a&&p.X();a.removeEventListener("mouseover",p.D);a.removeEventListener("focus",p.D)}}; Rv=function(p){if(!p.y$)return{};const a=p.y$.K();a.d=p.y$.Bs?.Lq();a.shost=p.LJ;a.ty="o";return a}; R1=function(p){const a=p.length;let l=a*3/4;l%3?l=Math.floor(l):g.uB("=.",p[a-1])&&(l=g.uB("=.",p[a-2])?l-2:l-1);const y=new Uint8Array(l);let S=0;dD(p,function(n){y[S++]=n}); return S!==l?y.subarray(0,S):y}; Ilo=function(p,a,l,y,S){try{if(l){const n=O$.get(a);if(n)return new n(p.B);kC(p,a,y,S)}else MC(p,a)}catch(n){MC(p,a),g.MD(n)}return null}; R8r=function(p,a){p.api.A("html5_enable_d6de4_cold_start_and_error")&&(a.o_={coldStartInfo:{clientState:p.U}})}; uKZ=async function(p){if(p.S)return mu();if(!p.X)return p=g.tl("getHotConfig IDB not initialized"),D0(p),Promise.reject(p);const a=iB(),l=g.R("TIME_CREATED_MS");if(a){var y=await TL(a);if(y&&y.timestamp>l)return NC(p,y.config),p.pg(y.hashData),mu()}else y=g.tl("getHotConfig token error"),D0(y);s$(p);a&&p.S&&p.hotHashData&&await U$(p.S,p.hotHashData,a,l);return p.S?mu():(p=new g.Qm("Config not available in ytConfig"),D0(p),Promise.reject(p))}; kaZ=function(p){const a={};g.Ir(p,l=>{const y=l.event,S=a[y];a.hasOwnProperty(y)?S!==null&&(l.equals(S)||(a[y]=null)):a[y]=l}); Ocq(p,l=>a[l.event]===null)}; qC=function(p,a,l){if(l!==0){a:if(a=a.info,l=l===2,a.L)a=null;else{var y=a.Yv[0];if(a.range)var S=hl(a.range.start,Math.min(4096,a.U));else{if(a.S&&a.S.indexOf("/range/")>=0||a.gG.s8("defrag")==="1"||a.gG.s8("otf")==="1"){a=null;break a}S=hl(0,4096)}S=new Al([new g$(5,y.L,S,"createProbeRequestInfo"+y.K,y.Gm)],a.S);S.So=l;S.L=a.L;a=S}a&&YC(p,a)}}; m7r=function(p,a){Mb$(p.program,a.nT)&&(Jl("bg_i",void 0,"player_att"),g.f0.initialize(p,()=>{Jl("bg_l",void 0,"player_att");pX=(0,g.h)()},a.cspNonce,a.Rd))}; var Zcv=function(p,a){return ar[r[12]](this,59,p,a)}; lW=function(p,a,l,y,S=!1){if(y=y>1)p.j=!0;if(S||isNaN(p.S))p.S=a;if(p.L)a!==p.mediaTime&&(p.L=!1);else if(a>0&&p.mediaTime===a){S=1500;if(p.Y.A("html5_buffer_underrun_transition_fix")){S=g.ak(p.Y.experiments,"html5_min_playback_advance_for_steady_state_secs");const n=g.ak(p.Y.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");S=S>0&&n>0&&Math.abs(a-p.S)(y||!p.j?S:400)}p.mediaTime=a;p.U=l;return!1}; Sj=function(p,a){return new g.yj(p,a,{namespace:"timedMarkerCueRange",priority:9,id:`tm_${p}`})}; nX=function(p){return!!(p.nu&&p.slot&&p.layout)}; DM=function(p){var a=p.L;if(a.L==a.U)return!1;p.j=p.L.L;var l=Hf(p.L)>>>0;a=l>>>3;l&=7;if(!(l>=0&&l<=5))throw Error();if(a<1)throw Error();p.U=a;p.S=l;return!0}; Vj=function(p,a){if(a<0)throw Error();const l=p.L;a=l+a;if(a>p.U)throw Error();p.L=a;return l}; zJ=function(p,a,l,y,S,n=l.schedule,V,Z,z){const d=p.Hv,G=p.TI;p=p.Z3;const B=d!==void 0&&G!==void 0,c=y.getVideoData();return{innertubeRequest:{iR:p,k6:d,TI:G,encryptedClientKey:a.L.encryptedClientKey,iv:B?a.iv:void 0,h2:!0,Hm:!0,IF:tbE(l,n,S),zL:l.experiments.Cz("html5_use_jsonformatter_to_parse_player_response")},hw:Zm({s6:n,g7:l,Lz:y,TV:c.startSeconds*1E3}),onesieUstreamerConfig:V,rp:Z,Ci:ok(c),reloadPlaybackParams:c.Q5?.reloadPlaybackParams,D6:z}}; d3=function(p,{nI:a=!1}={}){p.nI=a}; Wcv=function(p,a){gD(p,1,a.clientState);By(p,2,a.V5u,j2E,1)}; g.cy=function(p){return FJ(p)==="WEB_EMBEDDED_PLAYER"}; icv=function(p){return{SU:r3(p,1),itag:w3(p,3),uv:$F(p,4,HcA),lmt:r3(p,5),XZT:r3(p,7),xtags:w3(p,15),E0:$F(p,23,D7f),a$:$F(p,34,Py)}}; uK=function(p,a,l=LX){l.widthp.width*p.height*.2)return{hY:3,s4:501,errorMessage:`ad(${XZ(l)}) to container(${XZ(p)}) ratio exceeds limit.`};if(l.height>p.height/3-a)return{hY:3,s4:501,errorMessage:`ad(${XZ(l)}) covers container(${XZ(p)}) center.`}}; Eh=function(p,a){const l=xF(a);if(p.S[l])return p.S[l];const y=Object.keys(p.store)||[];if(y.length<=1&&xF(a)===y[0])return y;const S=[];for(let V=0;V0&&y.height>0){y=[Math.round(y.width),Math.round(y.height)];const S=g.KX();S>1&&y.push(S);g.vy(p,l,"view",y)}p.Ps||(p.provider.Y.Mc()&&ej(p,"rqs2"),p.provider.videoData.L&&bW(p.provider.videoData.L)&&p.L.set("preload",["1"])); p.Ps=!0;p.X=!0}a.reason==="m"&&++p.PZ===100&&Ik(p,2);g.vy(p,l,"vps",[p.Ch]);p.Sl||p.reportStats(l)}; Oh=function(p,a,l){const y=new TGO(l);p&&(y.S=!0,y.D=.1);l.Cz("html5_media_time_weight")&&(y.S=!1);a&&(y.U=a/8);y.j=uW()>=480;return y}; kF=function(p){return p.A("html5_disable_video_player_initiated_seeks")&&Yc(p.videoData)}; tK=function(p){if(p.U9()){if(!MU(p,408125543))return!1;mT(p,!0)}return!0}; NGM=function(p,a){if(!p||!a)return!1;let l=0;for(;p!==null&&l++<100;){if(p===a)return!0;try{if(p=p.parentElement||p){const y=jj(p),S=y&&AP(y),n=S&&S.frameElement;n&&(p=n)}}catch(y){break}}return!1}; Wy=function(p){if(p=p.getWatchNextResponse())if(p=g.K(p.playerOverlays?.playerOverlayRenderer?.timelyActionsOverlayViewModel,s2M),p?.timelyActions)return p?.timelyActions.map(a=>g.K(a,U7r)).filter(a=>!!a)}; Dm=function(p){if(Hy(p.B.O()))return p.yr.get("kids")}; iW=function(p,a,l,y){p=p.N(null,y,!0,a);p.j=l;Q2Z([p]);return p}; NU=function(p){if(!vM(p.videoData))return NaN;let a=0;p.loader&&p.videoData.L&&(a=TJ(p.videoData)?p.loader.uZ.Pi()||0:p.videoData.L.Ws);return(0,g.h)()/1E3-p.By()-a}; Uh=function(p){p.S=sh;p.L&&(p.L.dispose(),p.a4("ismp_d"));p.L=null}; Qj=function(p){return p?p.passive&&h8M()?p:p.capture||!1:!1}; g1e=function(p){if(!p.api.O().Fu){var a=p.api.getVideoData(),l=new g.hK("Suscribirme",null,"Suscrito",null,!0,!1,a.Jk,a.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(l.element,p);p.api.setTrackingParams(l.element,a.subscribeButtonRenderer?.trackingParams||null);p.J(l.element,"click",()=>{p.api.logClick(l.element)}); p.subscribeButton=l;g.H(p,p.subscribeButton);p.subscribeButton.lT(p.K);p.subscribeButton.hide();var y=new ABq(p.api);p.L=y;g.H(p,y);y.lT(p.K);y.hide();p.J(p.api,"SUBSCRIBE",()=>{a.GM&&(y.show(),p.api.logVisibility(y.element,!0))}); p.J(p.api,"UNSUBSCRIBE",()=>{a.GM&&(y.hide(),p.api.logVisibility(y.element,!1),AK(y,!1))})}}; YWr=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(a,l,y){return l+y.toUpperCase()})}; g.fX=function(p){var a=jj(p);const l=new g.g3(0,0);if(p==(a?jj(a):document).documentElement)return l;p=YF(p);a=qU(a);a=JK(a.L);l.x=p.left+a.x;l.y=p.top+a.y;return l}; ln=function(p,a){g.yo(a,function(l,y){y=="style"?p.style.cssText=l:y=="class"?p.className=l:y=="for"?p.htmlFor=l:pO.hasOwnProperty(y)?p.setAttribute(pO[y],l):ag(y,"aria-")||ag(y,"data-")?p.setAttribute(y,l):p[y]=l})}; P8=function(p,a,l=!1){p.L&&(a?p.L.hide():p.L.show(),l&&p.L instanceof yG&&!p.L.D&&Sa(p.L,!1));p.S&&(a?p.S.show():p.S.hide())}; LO=function(p,a,l){p.Io.L("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,l);for(const y of p.S)y.VQ(a,l)}; g.xZ=function(p,a,l,y){a=XW(a);return a!==void 0?p.open(a,l,y):null}; v8=function(p){var a=(Number(p.L?.bannerData?.itemData?.exclusivesData?.expirationTimestampMs)-Date.now())/1E3;if(a>0){if(a<604800){var l=p.L?.bannerData?.itemData?.exclusivesData?.exclusiveOfferCountdownText;if(l!==void 0){var y=Date.now();for(const S of l)if(S!==void 0&&S.text!==void 0&&(l=Number(S.textDisplayStartTimestampMs),!isNaN(l)&&y>=l)){S.insertCountdown?(a=S.text.replace(/\$0/,String(FW({seconds:a}))),p.C.setContent(a)):p.C.setContent(S.text);p.C.show();break}}}p.K.update({exclusive:p.L?.bannerData?.itemData?.exclusivesData?.exclusiveOfferLabelText}); p.K.show();EX(p);p.ir?.start()}else CO(p)}; KO=function(p,a){if(!a)return p;var l=p.indexOf("#");l<0&&(l=p.length);let y=p.indexOf("?"),S;y<0||y>l?(y=l,S=""):S=p.substring(y+1,l);p=[p.slice(0,y),S,p.slice(l)];l=p[1];p[1]=a?l?l+"&"+a:a:l;return p[0]+(p[1]?"?"+p[1]:"")+p[2]}; ea=function(p,a,l){if(p.L==null)return a.PC|=4,!1;p=vH(p.L,l,a);a.PC|=p;return p==0}; Rg=function(p){bn.google_image_requests||(bn.google_image_requests=[]);const a=Ig("IMG",bn.document);a.src=p;bn.google_image_requests.push(a)}; OX=function(p){p.nz()||(p.U.resolve(),p.U=new g.un)}; kZ=function(p,a){if(a!==null&&a!==void 0){if(typeof a!=="object"&&typeof a!=="function")throw new TypeError("Object expected.");if(l===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var l=a[Symbol.dispose]}if(typeof l!=="function")throw new TypeError("Object not disposable.");p.stack.push({value:a,dispose:l,async:!1})}return a}; td=function(p){const a=MG(p);return a&&a.text?g.mQ(a.text):p.paidContentOverlayText}; TE=function(p,a){W8(p.uT.get(),"ads_imp",`cpn.${p.layout.clientMetadata.t9("metadata_type_content_cpn")};acpn.${H8(p.MO.get(),2)?.clientPlaybackNonce};clr.${a};skp.${!!g.K(p.layout.clientMetadata.t9("metadata_type_instream_ad_player_overlay_renderer")?.skipOrPreviewRenderer,Dt)}`)}; QG=function(p,a){const l={};if(p!==void 0)if(a!=null)for(const y in a){const S=a[y];y in Object.prototype||S!=null&&(l[y]=typeof S==="function"?S(p):p[S])}else g.C0(l,p);return NG(sX(new UX,l))}; g.Ad=function(p){return(new hd).Lq(p)}; qW$=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(!p.prefetchModeConfig||!p.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;p=Number(p.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(p)||p<=0?0:Math.floor(Math.random()*p)}; YZ=function(p,a,l,y){let S=l;const n=g8(a.width,a.height);p.y0?S=ln?{width:a.width,height:a.width/S,aspectRatio:S}:SS?p.width=p.height*l:l{a[l[0]]=l[1]}); return l=>a[l.find(y=>y in a)]||""}; Jd=function(p){return p[qG]??(p[qG]=new Map)}; v1r=function(p,a,l,y,S,n){const V=fO(p.S.get(),"SLOT_TYPE_PLAYER_BYTES"),Z=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER"),z=d$(p.S.get(),"LAYOUT_TYPE_SURVEY",Z);y=p7(p,a,l,y);const d=[new aa(p.L,V)];l=[new lm(p.L,V),new y5(p.L,l),new Sc(p.L,z)];if(y instanceof N)return y;const {eX:G,H$:B}=n({slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:y,slotFulfillmentTriggers:d,slotExpirationTriggers:l},{slotId:Z,layoutId:z});return[{slotId:V,slotType:"SLOT_TYPE_PLAYER_BYTES", slotPhysicalPosition:1,slotEntryTrigger:n7(p,a,V,y),slotFulfillmentTriggers:V5(p,a,V,d),slotExpirationTriggers:l,qO:"core",clientMetadata:new L0([new Z1(G),new oa(zW(a)),new dA({qa:p.qa(a)})]),adSlotLoggingData:S},B]}; GW=function(p){for(;p.K.length;)p.K.pop().dispose()}; vA=function(p){switch(p){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"}}; JBA=function(p){switch(typeof p){case "boolean":return BZ||(BZ=[0,void 0,!0]);case "number":return p>0?void 0:p===0?cZ||(cZ=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}}; rA=function(p){p.onreadystatechange&&p.onreadystatechange.call(p)}; PZ=function(p,a){const l=td(a),y=wA(a);a.DF&&p.B.g3()||(p.L||p.B.A("enable_paid_content_overlay_bugfix")?a.videoId&&a.videoId!==p.videoId&&(p.L?.mE(),!p.B.A("enable_paid_content_overlay_bugfix")||l&&y?(p.videoId=a.videoId,p.U=!!y,p.U&&l&&$J(p,y,l,a)):p.U=!1):l&&y&&!p.B.A("enable_paid_content_overlay_bugfix")&&$J(p,y,l,a))}; g.xJ=function(p,a,l){L7(p,a,l,null)||g.XM(g.i_(a,p))}; um=function(p,a,l){FM(p,p[rD]|0,(y,S)=>{if(S!=null){var n=flo(l,y);n?n(a,S,y):y<500||Ec(pdM,3)}}); (p=k9(p))&&C7(p,(y,S,n)=>{vZ(a,a.L.end());for(y=0;y{kJ(p)&&KU("aa",void 0,p);Mh(p);mn(p)})()}; jc=function(p){const a=g.o1("yt.scheduler.instance.setPriorityThreshold");a&&a(p)}; WZ=function(p){const a=(Number(p.L?.bannerData?.itemData?.hiddenProductOptions?.dropTimestampMs)-Date.now())/1E3;p.countdownTimer.setContent(FW({seconds:a}));a>0&&p.Lx?.start()}; HZ=function(p,a,l){let y=p.length;for(;ysc(p,a))||sc(p,"OMI/")&&!sc(p,"XiaoMi/")?!0:sc(p,"Presto")&&sc(p,"Linux")&&!sc(p,"X11")&&!sc(p,"Android")&&!sc(p,"Mobi"):!1}; omM=function(p,a,l,y){p=lYO(yPo(S7o(new Uc,p))).Qk();a.length&&ohq(p,nmO(new V_h,a));y!==void 0&&(p.Yw=y);const S=new Z8e(p.build());g.H(S,p);const n=new g.Q5({flush(V){try{S.flush(V)}catch(Z){l(Z)}}});n.addOnDisposeCallback(()=>{setTimeout(()=>{try{n.j()}finally{S.dispose()}})}); n.U=1E5;n.flushInterval=3E4;n.L.setInterval(3E4);return n}; g.hq=function(p){return p.match(zrO)}; Aq=function(p){const a=[];dD(p,function(l){a.push(l)}); return a}; dQE=function(p){const a=g.K(p.dismissButton,g.gA)?.text?.runs?.length&&!!g.K(p.dismissButton,g.gA).text.runs[0].text;return g.K(p.acceptButton,g.gA)?.text?.runs?.length&&!!g.K(p.acceptButton,g.gA).text.runs[0].text||a}; f7=function(p,a,l,y,S,n,V,Z,z){const d=Number(y.durationMilliseconds);return isNaN(d)?new N("Expected valid duration for AdActionInterstitialRenderer."):G=>G5O(a,G.slotId,l,y,d,{impressionCommands:void 0,abandonCommands:y.abandonCommands?[{commandExecutorCommand:y.abandonCommands}]:void 0,completeCommands:y.completionCommands},y.skipPings?new Map([["skip",y.skipPings]]):new Map,V(G),B=>YJ(p,B,S,(c,w)=>{var X=c.slotId;c=V(c);X=d$(a.S.get(),"LAYOUT_TYPE_ENDCAP",X);return qh(a,X,w,l,c,"LAYOUT_TYPE_ENDCAP", [new Jq(y),Z],y.adLayoutLoggingData)}),z,n-1,y.adLayoutLoggingData,n)}; ah=function(p){ph(p,"impression")&&!ph(p,"seek")&&p.Fb("audio_measurable")}; lf=function(p){return p.keySystem==="com.youtube.fairplay"}; Sv=function(p,a,l){const y=p.G;let S=p.L[0],n=p.L[1],V=p.L[2],Z=p.L[3],z=p.L[4],d=p.L[5],G=p.L[6],B=p.L[7],c,w,X;for(let v=0;v<64;)v<16?(y[v]=X=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(c=y[v-2],w=y[v-15],X=y[v-7]+y[v-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[v]=X),c=B+yK[v]+X+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&d^~z&G),w=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&n^S&V^n&V),B=c+w,Z+=c,v++,v<16?(y[v]=X=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3], l+=4):(c=y[v-2],w=y[v-15],X=y[v-7]+y[v-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[v]=X),c=G+yK[v]+X+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&z^~Z&d),w=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&S^B&n^S&n),G=c+w,V+=c,v++,v<16?(y[v]=X=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(c=y[v-2],w=y[v-15],X=y[v-7]+y[v-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[v]=X),c=d+yK[v]+X+((V>>>6|V<<26)^(V>>>11|V<<21)^(V>>>25|V<< 7))+(V&Z^~V&z),w=((G>>>2|G<<30)^(G>>>13|G<<19)^(G>>>22|G<<10))+(G&B^G&S^B&S),d=c+w,n+=c,v++,v<16?(y[v]=X=a[l]<<24|a[l+1]<<16|a[l+2]<<8|a[l+3],l+=4):(c=y[v-2],w=y[v-15],X=y[v-7]+y[v-16]+((c>>>17|c<<15)^(c>>>19|c<<13)^c>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),y[v]=X),c=z+yK[v]+X+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&V^~n&Z),w=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&G^d&B^G&B),X=B,B=Z,Z=X,X=G,G=V,V=X,X=d,d=n,n=X,z=S+c,S=c+w,v++;p.L[0]=S+p.L[0]|0;p.L[1]=n+p.L[1]|0;p.L[2]=V+p.L[2]| 0;p.L[3]=Z+p.L[3]|0;p.L[4]=z+p.L[4]|0;p.L[5]=d+p.L[5]|0;p.L[6]=G+p.L[6]|0;p.L[7]=B+p.L[7]|0}; nh=function(p,a,l){return p+l*(a-p)}; Z_=function(p){const a=!!VK(QH().AP,"umt");return p.UO||!a&&!p.Hs?0:1}; g.oh=function(p,a){return(a||document).querySelectorAll("."+p)}; z1=function(p,a){return p>a?1:p!c4(a,l.QZ.Ft)); a.L.push(...p)}; rr=function(p){if(p.app.getAppState()===1)return!1;if(p.app.getAppState()===6)return!0;var a=p.app.zm();if(!a||a.g3())return!1;p=p.app.pz.getPlayerStateObject();a=!p.L(2)||a&&a.getVideoData().K;const l=p.L(1024);return p&&a&&!l&&!p.isCued()}; Xk=function(p){var a=p.S.find(l=>wr(p,l)); if(a){const l=p.app.zm();$D(p);const y=new g.bB(8);a=P4(p,a)/1E3;Lh(p,a,{},y,"_force");l.Xu("forceParentTransition",{childPlayback:1});p.L.Xu("forceParentTransition",{parentPlayback:1})}}; cPq=function(p,a,l,y){if(p.policy.X)!y||!p.L&&p.policy.NO||g.XM(()=>{xD(p)}); else{if(p.isSeeking()&&p.targetTime){const n=BDo(p,a,l);if(n!==-1){p.videoTrack.X=!1;p.audioTrack.X=!1;p.L=!0;p.S=0;g.XM(()=>{p.loader.Xu("seekreason",{reason:"behindMinSq",tgt:n});Fk(p,n)}); return}}l?p.videoTrack.Sl=!1:p.audioTrack.Sl=!1;var S=!p.L;En(p.videoTrack,p.targetTime)>=0&&En(p.audioTrack,p.targetTime)>=0&&S?((p.videoTrack.X||p.audioTrack.X)&&p.loader.Xu("iterativeSeeking",{status:"done",count:p.seekCount}),p.videoTrack.X=!1,p.audioTrack.X=!1):y&&g.XM(()=>{if(p.L||!p.policy.NO)xD(p);else{var n=a.startTime,V=a.duration;if(!p.policy.X){var Z=l?p.videoTrack.X:p.audioTrack.X,z=p.videoTrack.D!==-1&&p.audioTrack.D!==-1,d=p.targetTime>=n&&p.targetTime=0;--l)l in y&&a.call(void 0,y[l],l,p)}; ev=function(p){p=Kh(p.Ne);return!!p&&p.loaded}; mf=function(p,a,l,y,S,n){if(!a)throw Error("Invalid event type");const V=g.pA(S)?!!S.capture:!!S;let Z=bf(p);Z||(p[Ih]=Z=new On(p));l=Z.add(a,l,y,V,n);if(l.proxy)return l;y=$QF();l.proxy=y;y.src=p;y.listener=l;if(p.addEventListener)S===void 0&&(S=!1),p.addEventListener(a.toString(),y,S);else if(p.attachEvent)p.attachEvent(kD(a.toString()),y);else if(p.addListener&&p.removeListener)p.addListener(y);else throw Error("addEventListener and attachEvent are unavailable.");M4++;return l}; jv=function(p){if(p!==tI)throw Error("illegal external caller");}; W4=function(p,a){const l=POA(p,a);l||Q("Expected subLRA found by layout ID",p.slot,p.layout,{layoutId:a});p.L={p8:l};l?l.startRendering(l.ZV()):a===p.S&&Q("Failed to find rendering adapter for survey media layout",p.slot,p.layout,{surveyMediaLayoutId:a})}; sn=function(p,a){if(p.sM&&p.Gm!==void 0&&p.wE!==void 0){var l=Math,y=l.min,S=p.Ws;var n=p.sM;var V=p.L;if(H4(n,p.Gm))n=a;else{var Z=0;n.Us&&(Z=.2);n=V+(n.lG+Z)*1E3}p.Ws=y.call(l,S,n);l=Math;y=l.min;S=p.Rc;n=p.sM;V=p.L;Z=L5r(n,p.Gm,p.wE);Z!==2&&(a=Z?a:V+n.lG*1E3,n.Us&&(a+=n.lG*1E3));p.Rc=y.call(l,S,a);p.Ws<=p.L?N4(p):(p.ac=p.Ws,p.ZN=!0)}}; QK=function(p,a){const l=p.api.getRootNode();g.OW(l,"ytp-fullscreen-grid-peeking",a===1);g.OW(l,"ytp-fullscreen-grid-active",a===2);a===1&&Un(p)}; F5Z=function(p,a,l,y){const S=(hI(AI(a,2))??0)*1E3;if(S<=0)throw new gr(31,"TTM:Invalid");if(YD(a,4))return new Xdh(p.logger,YD(a,4),S);if(!(hI(AI(a,3))??0))return new xQM(p.logger,q4(JI(a,1)),S);if(!y)throw new gr(4,"PMD:Undefined");y=y(q4(JI(a,1)));if(!(y instanceof Function))throw new gr(16,"APF:Failed");p.G=Math.floor((Date.now()+S)/1E3);p=new fh(p.logger,y,hI(AI(a,3))??0,S);p.addOnDisposeCallback(()=>void l.resolve()); return p}; pP=function(p,a){if(a)a:{var l=EmF;p=p.split(".");for(var y=0;y{p.U=void 0;ae(p);p.hide()}),p.L="fading-out")}; SB=function(p,a,l){return Math.ceil(Math.max(Math.max(p.policy.lX,p.policy.Ds*l),Math.min(Math.min(p.policy.Hs,31*l),Math.ceil(a*l))))||p.policy.lX}; Vt=function(){const p=nP();return{sv:"968",...(Xb!==null&&{v:Xb}),["if"]:p.U?"1":"0",nas:String(G1.L.length)}}; g.Zz=function(p,a,l){var y=p.length;const S=typeof p==="string"?p.split(""):p;for(--y;y>=0;y--)if(y in S&&a.call(l,S[y],y,p))return y;return-1}; vmZ=function(p,a,l=!1,y=!1){oe(p.videoTrack,a.S||null,y);oe(p.audioTrack,a.L||null,y);p.Kz=a;p.Kz.X=!0;l||p.resume();a.L.A4(p.iT,p);a.S.A4(p.iT,p)}; K5$=function(p,a){return g.y_(p.S,l=>l.gX()==2&&l.fC==a)}; dM=function(p,a,l){const y=zB();a=a();p.U(l,zB()-y);return a}; g.B2=function(p,a){a>=p.D()&&p.S();const l=GB(p,a);var y=p.columns*p.rows,S=a%y;a=S%p.columns;S=Math.floor(S/p.columns);let n;const V=p.S()+1-y*l;V{if(p.S.has(y))return p.K.push([a,l]),!0;const S=g.c2(y),n=l||g.rM(y);if(S&&n){if(g.nU("combine_ve_grafts")){const V=p.j.get(n.toString());V?V.push(a):(p.G.set(n.toString(),n),p.j.set(n.toString(),[a]));p.N||(p.N=g.wM(0,()=>{$H(p,S)},1200))}else g.P2(p.client,S,n,a); return!0}return!1})()}; Fg=function(p,a,l){let y=p[rD]|0;const S=Xg(y),n=rW(p,l,S);let V;if(n!=null&&n[Ek]===CU){if(!R4(n))return PA(n),n.DI;V=n.DI}else Array.isArray(n)&&(V=n);if(V){const Z=V[rD]|0;Z&2&&(V=km(V,Z))}V=xH(V,a,!0);V!==n&&wD(p,y,l,V,S);return V}; g.E9=function(p){for(const a in p)return a}; g.CP=function(p){return FJ(p)==="WEB_UNPLUGGED"}; ere=function(p){let a=0;for(const l in p.L){const y=p.L[l];if(y==1||y==2)a+=p.S[l][1]}return a}; v2=function(p){return p=="\r"||p=="\n"||p==" "||p=="\t"}; KP=async function(p,a,l,y=()=>{}){if(a?.Dq?.context){var S=a.Dq.context; for(var n of[])await n.BPT(S)}(S=a.config?.QI)&&p.S.has(S)?l=p.S.get(S):(n=JSON.stringify(a.Dq),a.RI={...a.RI,headers:{...(a.RI?.headers??{}),...l}},l={...a.RI},a.RI.method==="POST"&&(l={...l,body:n}),a.config?.KT&&KU(a.config.KT),l=p.QT.fetch(a.input,l,a.config),S&&p.S.set(S,l));(l=await l)&&g.nU("web_streaming_player")&&Array.isArray(l)&&(l=l[0].playerResponse);if(l&&"error"in l&&l?.error?.details){n=l.error.details;for(const V of n)(n=V["@type"])&&b8q.indexOf(n)>-1&&(delete V["@type"],l=V)}S&& p.S.has(S)&&p.S.delete(S);a.config?.qx&&KU(a.config.qx);IYZ(p,l,a);a.config?.Hp&&KU(a.config.Hp);y();return l||void 0}; g.eB=function(){return Date.now()}; bg=function(p,a,l,y=!1){y&&!a.Hs&&(i8()||(y=a.Jg)&&!y.M$(l.info)&&p.Lz.UU(),a.Hs=!0);a.L!==l&&(a.L=l)}; uUf=function(){const p=Ig("IFRAME"),a={};g.Ir(RrZ(),l=>{p.sandbox&&p.sandbox.supports&&p.sandbox.supports(l)&&(a[l]=!0)}); return a}; Ie=function(p){return p?g.mQ(p):""}; O9=function(p,a){var l=p.B.O();const y=p.B.getPresentingPlayerType()===2;var S=!y||a.isListed;S=!l.N&&!!a.videoId&&S;l.playerStyle!=="play"?l="https://support.google.com/youtube/?p=report_playback":(l={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.S&&(l.fmt=a.S.itag),a.clientPlaybackNonce&&(l.cpn=a.clientPlaybackNonce),a.partnerId&&(l.partnerid=a.partnerId),l=g.Re("//support.google.com/googleplay/",l));p.Oi.iM(S&&a.allowEmbed);p.getVideoUrl.iM(S);p.FT.iM(S&& !a.isLivePlayback);p.gD.setContent(l,"href");p.lU?.iM(!a.isLivePlayback&&!y);ug(p);p.T_?.iM(!y)}; M8=function(p,a){p!=null?kH(p,a):p=void 0;return p}; tf=function(p,a,l=!0){const y=mL(p,a);l||y?y&&(p.U=!0):p.U=!1;p.G=p.policy.U===2||p.policy.U===3&&p.U;a=mL(p,a);p.j!==a&&p.publish("livestatusshift",a);p.j=a}; H2=function(){this.L=null;this.S=0;this.U=new jB;this.j=new W2}; Dz=function(p,a){p.gG&&p.gG.equals(a)||(p.gG&&p.gG.dispose(),p.gG=a)}; O8M=function(p,a,l,y=!1){p.set("cpn",a.clientPlaybackNonce);p.set("opr","1");const S=a.O();p.set("por","1");ym()||p.set("onem","1");a.startSeconds>0&&p.set("osts",`${a.startSeconds}`);y||(S.A("html5_onesie_disable_partial_segments")&&p.set("oses","1"),a=S.A("html5_gapless_onesie_no_media_bytes")&&D6(a)&&a.Dd,l&&!a?(a=l.audio,p.set("pvi",l.video.join(",")),S.A("html5_onesie_disable_audio_bytes")||p.set("pai",a.join(",")),ig||p.set("osh","1")):(p.set("oad","0"),p.set("ovd","0"),p.set("oaad","0"),p.set("oavd", "0")))}; TB=function(p){let a=0;for(let l=0;l=0&&p.indexOf(a,l)==l}; fP=function(p,a){for(const y of g.YH(p,!0))if(q8(y)){p=y;var l={potc:"1",pot:a};p.url&&(p.url=Jf(p.url,l))}}; aJ=function(){pl.instance||(pl.instance=new pl);return pl.instance}; Hf=function(p){const a=p.S;let l=p.L,y=a[l++],S=y&127;if(y&128&&(y=a[l++],S|=(y&127)<<7,y&128&&(y=a[l++],S|=(y&127)<<14,y&128&&(y=a[l++],S|=(y&127)<<21,y&128&&(y=a[l++],S|=y<<28,y&128&&a[l++]&128&&a[l++]&128&&a[l++]&128&&a[l++]&128&&a[l++]&128)))))throw Error();Wf(p,l);return S}; lk=function(p,a,l){const y=p.ZV().clientMetadata.t9("metadata_type_linked_in_player_layout_id");return y?y:(Q("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",p.qc(),p.ZV(),{requestingSlot:a,requestingLayout:l}),null)}; nl=function(p,a,l,y){if(a&&(p=p.S.get(a),y||p?.FL))return a={cuepointId:a},p?.FL&&(a.adsConfig=ye(p.FL)||void 0),p?.Nu&&(a.T3=p.Nu),p?.qM&&(a.cC=p.qM),l&&(a.jx=So(l.split(";")[0]),a.Xs=l.split(";")[1]||""),y&&(a.N7=p?.N7||0),a}; Zn=function(p){const a=p.D,l=Ve(a);l&&(l.startSecs+=p.w7,p.loader.Np(p.X,l,a.nO,a.It()))}; M_M=function(p,a){return(p=p.flags.get(`${a}`))?p.toString():""}; mQr=function(p,a){const l=p.YB;p.YB=()=>{l();a()}}; dQ=function(p,a){return!p.D&&oJ()&&zX(55)&&p.controlsType==="3"&&!a}; Bs=function(p){const a=JZ();p=a?a.createScriptURL(p):p;return new GX(p)}; T6=function(p){const a=JZ();p=a?a.createScript(p):p;return new cs(p)}; rQ=function(p,a){var l=p.subarray(4);l=new Uint16Array(l.buffer,l.byteOffset,l.byteLength/2);l=String.fromCharCode.apply(null,l).match(/ek=([0-9a-f]+)/)[1];var y="";for(var S=0;S":(p=E1o(a.map(y=>y instanceof fA?y:Iz(String(y)))),l+=">"+p.toString()+""); return yU(l)}; i8$=function(p,a){p.X=!0;g.XM(function(){p.X&&Ll.call(null,a)})}; vs=function(p,a){let l;a===1?l=p.B.A("delhi_modern_web_player_icons")?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:X4():l=p.S;p.QY=a;if(p.B.A("delhi_modern_web_player_icons"))p.S.d7("ytp-svg-volume-animation-small-ripple").setAttribute("transform",`translate(${xP}, ${F4})`+` scale(${1-a}) translate(-${xP},`+`-${F4})`),p.S.d7("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${EO}, ${Cl}) `+`scale(${p.K-a}) `+`translate(-${EO}, -${Cl})`);else{var y=20*a;for(var S=0;SS.getLanguageInfo().id===y)); if(p.Y.experiments.Cz("enable_audio_description_setting")&&g.ik().Zy(198))for(const S of l)if(S.X){a=S;break}a||(p=p.getAudioTrack(),a=p.rG.isDefault?void 0:p);return a}; hk=function(p,a,l,y,S,n){a.client||(a.client={});p.player.O().A("h5_remove_url_for_get_ad_break")||(a.client.originalUrl=l);const V=S_(l);let Z=g.TX(l)?!1:!0;(V||Z)&&typeof Intl!=="undefined"&&(a.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);Z=g.TX(l)?!1:!0;if(V||Z||y!==""){const z={};l=N$(sO(y)).split("&");const d=new Map;l.forEach(G=>{G=G.split("=");G.length>1&&d.set(G[0].toString(),decodeURIComponent(G[1].toString()))}); d.has("bid")&&(z.bid=d.get("bid"));z.params=[];NDr.forEach(G=>{d.has(G)&&(G={key:G,value:d.get(G)},z.params.push(G))}); s4A(p,z);a.adSignalsInfo=z}a.client.unpluggedAppInfo||(a.client.unpluggedAppInfo={});a.client.unpluggedAppInfo.enableFilterMode=!1;l=S.L.cosver;l!=null&&l!=="cosver"&&(a.client.osVersion=l);l=S.L.cplatform;l!=null&&l!=="cplatform"&&l!==""&&(a.client.platform=l);l=S.L.cmodel;l!=null&&l!=="cmodel"&&(a.client.deviceModel=l);l=S.L.cplayer;l!=null&&l!=="cplayer"&&(a.client.playerType=l);l=S.L.cbrand;l!=null&&l!=="cbrand"&&(a.client.deviceMake=l);a.user||(a.user={});a.user.lockedSafetyMode=!1;g.UO(S)&& Qe(a,n,p.player.getPlayerState(1));if(p=S.livingRoomPoTokenId)a.client.tvAppInfo={...a.client.tvAppInfo,livingRoomPoTokenId:p}}; Q4v=function(p){var a=p.api.getRootNode();a=p.api.getWebPlayerContextConfig().embedsEnableEmc3ds?a.parentElement?.parentElement||a:a;p.L=new UQf(a,l=>{l!=null&&(p.api.O().Ao=l,p.api.O().HG="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.H(p,p.L);p.events.J(p.api,"videoStatsPingCreated",l=>{var y=p.L;y=y.L==null?null:Math.round(y.L*100)/100;l.inview=y!=null?y:void 0;y=p.api.getPlayerSize();if(y.height>0&&y.width>0){y=[Math.round(y.width),Math.round(y.height)];const S=g.KX();S>1&&y.push(S);y=y.join(":")}else y=void 0;l.size=y})}; hrh=function(p,a){if(p.B.isLifaAdPlaying()){var l=p.B.w3(!0,!0);p.G(a,l.width*.5*1.1,l.height*.25*1.1,l.width*.5*.9,l.height*.5*.9)}}; APh=function(p){p.audioTrack.UO=[];p.videoTrack.UO=[]}; Ak=function(p,a){for(const l of p.wd.values())if(l.layoutId===a)return!0;return!1}; q7q=function(p,a){for(const l of a){a=l.interstitials.map(y=>{const S=g.K(y,gmh);if(S)return{is_yto_interstitial:!0,raw_player_response:S};if(y=g.K(y,Y7f))return Object.assign({is_yto_interstitial:!0},cd(y))}); for(const y of a)switch(l.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":p.interstitials=p.interstitials.concat({time:0,playerVars:y,iU:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":p.interstitials=p.interstitials.concat({time:0x7ffffffffffff,playerVars:y,iU:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":a=Number(l.podConfig.timeToInsertAtMillis),p.interstitials=p.interstitials.concat({time:a,playerVars:y,iU:a===0?5:7})}}}; YP=function(p,a,l,y){p=p.isView()?p.mediaElement:p;return new g.gQ(p,a,l,y)}; Jk=function(p,a,l){return new q$(p,a,l)}; fYO=function(p,a,l){if(!p||!a)return!1;a=fl(p.clone(),-a.left,-a.top);p=(a.left+a.right)/2;a=(a.top+a.bottom)/2;hP(window.top)&&window.top&&window.top.document&&(window=window.top);if(!JPM())return!1;p=window.document.elementFromPoint(p,a);if(!p)return!1;a=(a=(a=jj(l))&&a.defaultView&&a.defaultView.frameElement)&&NGM(a,p);const y=p===l;p=!y&&p&&pN(p,S=>S===l); return!(a||y||p)}; Iz=function(p){if(p instanceof fA)return p;p=String(p).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return yU(p)}; a8=function(p,a){return(...l)=>{if(p.L>-1)return a(...l);try{return p.L=p.U.L.now(),a(...l)}finally{p.j+=p.U.L.now()-p.L,p.L=-1,p.S+=1}}}; li=function(p){p.C=NaN;p.K=0;p.G=p.U}; g.nN=function(p,a){const l=a.type;l in p.listeners&&g.yA(p.listeners[l],a)&&(S0(a),p.listeners[l].length==0&&(delete p.listeners[l],p.L--))}; LN=function(p,a){var l=p.LO>=0?p.LO:-1,y=p.bM-p.LO,S=0;if(p.level>0){p.oX.di===2&&(p.oX.di=pkO(p));VA(p,p.SO);VA(p,p.pG);Zi(p,p.Dl,p.SO.JG);Zi(p,p.Sh,p.pG.JG);VA(p,p.YR);for(S=18;S>=3&&p.VS[o8[S]*2+1]===0;S--);p.l4+=3*(S+1)+5+5+4;var n=p.l4+3+7>>>3;var V=p.Zw+3+7>>>3;V<=n&&(n=V)}else n=V=y+5;if(y+4<=n&&l!==-1)zf(p,a?1:0,3),df(p,l,y);else if(p.strategy===4||V===n)zf(p,2+(a?1:0),3),Gf(p,BV,cV);else{zf(p,4+(a?1:0),3);l=p.SO.JG+1;y=p.pG.JG+1;S+=1;zf(p,l-257,5);zf(p,y-1,5);zf(p,S-4,4);for(n=0;nl.fC==a)}; g.tN=function(p,a,l){p.j.set(a,l)}; WV=function(p,a){p.timestampOffset!==a&&(p.timestampOffset=a,p.policy.Wy&&j0(p.r7),p.U.K=p.timestampOffset,p.Lz.du(p.timestampOffset),p.r7.isManifestless&&(p.r7.timestampOffset=p.timestampOffset),p.videoTrack.Aw(p.timestampOffset),p.audioTrack.Aw(p.timestampOffset))}; Tf=function(p,a,l,y){a={df:[],Jp:a};for(const n of p)if(n&&n.renderer!=null){p=n.renderer;if(!l.B.O().A("html5_enable_vod_lasr_with_notify_pacf")){var S=y;g.K(p.sandwichedLinearAdRenderer?.adVideoStart,HV)?(S=Di(g.K(p.sandwichedLinearAdRenderer?.adVideoStart,HV),S),g.ii(p.sandwichedLinearAdRenderer.adVideoStart,HV,S)):g.K(p.linearAdSequenceRenderer?.adStart,HV)&&(S=Di(g.K(p.linearAdSequenceRenderer?.adStart,HV),S),g.ii(p.linearAdSequenceRenderer.adStart,HV,S))}a.df.push(n)}return a}; QA=function(p,a,l,y,S){var n=window,V;l?V="//pagead2.googlesyndication.com/bg/"+N6(l)+".js":V="";l=n.document;const Z={};a&&(Z._scs_=a);Z._bgu_=V;Z._bgp_=y;Z._li_="v_h.3.0.0.0";S&&(Z._upb_=S);(a=n.GoogleTyFxhY)&&typeof a.push=="function"||(a=n.GoogleTyFxhY=[]);a.push(Z);a=qU(l).createElement("SCRIPT");a.type="text/javascript";a.async=!0;p=(0,g.sZ)`//tpc.googlesyndication.com/sodar/${N6(p)+".js"}`;g.UZ(a,p);(n=(n.GoogleTyFxhYEET||{})[a.src])?n():l.getElementsByTagName("head")[0].appendChild(a)}; hN=function(p,a){a===void 0&&(a=p[rD]|0);a&32&&!(a&4096)&&(p[rD]=a|4096)}; abr=function(p,a,l){return AN(p.L.get(),a.contentCpn,a.LU,y=>gf(p.S.get(),y.slotId,l,a.adPlacementConfig,a.LU,Yv(p.EQ.get(),y)))}; q6=function(p,a,l,y,S){let n=p.get(y);if(n!=null)return n;n=0;for(let V=0;V{a.rI(l,y,S)})}; P3=function(p){if(p.range)return p.U;p=p.Yv[0];return Math.round(p.C*p.L.info.Sb)}; cxM=function(p,a=p.O().schedule){function l(n){return y.UO!=="yt"&&(S.partnerId===38&&y.playerStyle==="books"||S.partnerId===30&&y.playerStyle==="docs"||S.partnerId===33&&y.playerStyle==="google-live")?oc$(p,S,n):zd$(p,S).then(()=>{y.A("embeds_enable_shorts")&&p.O().q9&&S.isEmbedsShortsMode(new g.J9(0,0),!!S.playlistId)?dNO(p,S):LI(p,S)},V=>{LI(p,S,!0); throw V;})} const y=p.O(),S=p.getVideoData();S.nz();S.loading=!0;return Gv$(p)?BCe(p,S,a).then(()=>{LI(p,S)},n=>{n=XN(n); if(xW(n.severity))return LI(p,S,!0),Promise.reject(n);n.errorCode==="onesie.response.badproxystatus"&&`${n.details.st}`==="3"&&(FN=!0);p.handleError(n);return l("onesie")}):l("gvi")}; wkA=function(p,a){a<100||Ec(rxh,1)}; EU=function(){return{W:"svg",Z:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},V:[{W:"path",Z:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{W:"path",Z:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ", fill:"#fff","fill-rule":"nonzero"}}]}}; v3=function(p){p=CI(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; jt=function(p,a){if(a){var l=g.K(a,KI)||null;l==null?g.MD(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(a=g.m5("video-ads ytp-ad-module")||null,a==null?g.MD(Error("Could not locate the root ads container element to attach the ad info dialog.")):(p.N=new g.et({W:"div",T:"ytp-ad-overlay-ad-info-dialog-container"}),g.H(p,p.N),p.N.lT(a),a=new kW(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,p.N.element,!1),g.H(p,a),a.init(Mx("ad-info-hover-text-button"),l,p.macros),p.X? (a.lT(p.X,0),a.subscribe("f",p.Fu,p),a.subscribe("e",p.Lj,p),p.J(p.X,"click",p.dG),p.J(g.m5("ytp-ad-button",a.element),"click",()=>{if(g.K(g.K(l.button,g.gA)?.serviceEndpoint,my))p.ac=p.api.getPlayerState(1)===2,p.api.pauseVideo();else p.api.onAdUxClicked("ad-info-hover-text-button",p.layoutId)}),p.iT=a):g.MD(Error("Ad info button container within overlay ad was not present."))))}else g.tX(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; $No=function(p,a,l){let y=!1;if(l=p.L.L.get(l))for(const S of l)S.durationMs!==0&&S.w$!==S.Dy&&(l=S.cpn,a===l&&(y=!0),y&&!p.Kx.has(l)&&(p.eb({decoratedAd:l}),p.Kx.add(l)))}; P0A=function(p,a){let l=0;for(;l+1y}; L8h=function(p,a){if(p.loader.isSeeking())return a;var l=p.Lz.mB();if(!l)return a;l=l.xo();if(l.length===0||Dq(l,a))return a;if(!iE(p.videoTrack,a)&&!iE(p.audioTrack,a))return p.loader.Xu("sundrn",{b:0,lt:a}),a;let y=a,S=Infinity;for(let n=0;na)continue;const V=a-l.end(n);V=20)?(p.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),a):y}; TY=function(p){p.B.RX("shopping_overlay_visible");p.B.RX("shopping_overlay_preview_collapsed");p.B.RX("shopping_overlay_preview_expanded");p.B.RX("shopping_overlay_expanded")}; Xkq=function(p){return g.Nx(p,(a,l,y)=>l>0?y[l]-y[l-1]:y[l])}; xNA=function(p){const a={ptlt:g.eB()-p.X};var l=p.S;l&&(a.pnk=l);(l=p.U)&&(a.pnc=l);(l=p.j)&&(a.pnmm=l);(p=p.L)&&(a.pns=p);return a}; UU=function(p){return sU(p).then(a=>a?new F8$(p,a):null)}; EcM=function(p,a,l,y){var S=g.Uk("SCRIPT");let n=!1,V;for(let w=0;w{p.nz()||y.call(p)},z=()=>{p.nz()||l.call(p)},d=V.onload; V.onload=w=>{QI(z);d&&d.apply(window,[w])}; const G=V.onerror;V.onerror=w=>{if(Math.random()<.01){const X=new g.Qm("Unable to load player module",a,document.location&&document.location.origin);g.MD(X)}QI(Z);G&&G(w)}; const B=V,c=B.onreadystatechange;B.onreadystatechange=w=>{switch(B.readyState){case "loaded":case "complete":QI(z)}c&&c(w)}; n&&((S=p.B.O().cspNonce)&&V.setAttribute("nonce",S),g.UZ(V,g.OO(a)),S=g.Uk("HEAD")[0]||document.body,S.insertBefore(V,S.firstChild),p.addOnDisposeCallback(()=>{V.parentNode&&V.parentNode.removeChild(V)}))}; AX=function(p){p.jE()&&(p.Lz&&p.Lz.iS("rs_s"),hX&&p.getCurrentTime()>0&&p.seekTo(0),p.Ic(),p.load(),Dz(p,null));delete p.j}; Jf=function(p,a){return gp(p,a||{},!0)}; YW=function(){let p=Error();p.name="SecurityError";throw p;}; JX=function(p,a){p=Number(g.qx(a,p.U,p.j).toFixed(2));a=Math.floor((p+.001)*100%5+2E-15);let l=p;a!==0&&(l=p-a*.01);return Number(l.toFixed(2))}; C0F=async function(p,a,l){p.L||(p.L=await p.subtleCrypto.importKey("raw",p.S,{name:"AES-CTR"},!1,["encrypt"]));p=await p.subtleCrypto.encrypt({name:"AES-CTR",counter:l,length:128},p.L,a);return new Uint8Array(p)}; fI=function(p){const a=p.index-1;return a<0?p.length-1:a}; p$=function(p,a,l,y){const S=l.mq;p[a]=y?(n,V,Z)=>S(n,V,Z,y):S}; Mif=function(p){const a=new vcr(p.L.F7);g.H(p,a);p=[new K8M(p.L.uT),new edr(p.L.B),new bar(p.L.uT),new IbA(p.L.Dz,p.L.wp),new Rdq,new uJv(p.L.Lv,p.L.j8,p.L.uT),new OaA,new kvM];for(const l of p)Zav(a,l);for(const l of["adInfoDialogEndpoint","adFeedbackEndpoint"])$W(a,l,()=>{}); return a}; lv=function(p,a=!0){return aK(p.S,a)}; g.yh=function(p,a){p=v4(p);return p===void 0&&a!==void 0?a:Number(p||0)}; mNv=function(p,a,l,y,S){l=l?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";const n=fO(p.S.get(),l);a=new SZ(p.L,a);const V=[new aa(p.L,n)];p=[new lm(p.L,n)];return{slotId:n,slotType:l,slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:p,qO:"core",clientMetadata:new L0([new Z1(S({slotId:n,slotType:l,slotPhysicalPosition:1,qO:"core",slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:p}))]),adSlotLoggingData:y}}; n$=function(p,a,l){wD(p,p[rD]|0,a,l,Xg(p[rD]|0))}; tir=function(p,a,l=0,y){y=new Vh("",y?.experiments,!1);y.duration=l||0;for(const S of p){p=ZT(S,a,y.duration);l=oK(S.init);const n=oK(S.index),V=zA(S.url,S.sp,S.s);V&&db(y,new GA(V,p,l,n))}return y}; W8v=function(p,a,l){return a.eq(l).then(()=>oW(new j1Z(a,a.U)),y=>{y instanceof Error&&g.tX(y); var S=Fe('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),n=xB('audio/mp4; codecs="mp4a.40.2"'),V=S||n;const Z=a.isLivePlayback&&!g.BQ(p.X,!0);y="fmt.noneavailable";Z?y="html5.unsupportedlive":V||(y="html5.missingapi");V=Z||!V?2:1;S={buildRej:"1",a:a.Qu(),d:!!a.Kx,drm:a.FF(),f18:a.Me.indexOf("itag=18")>=0,c18:S};a.L&&(a.FF()?(S.f142=!!a.L.L["142"],S.f149=!!a.L.L["149"],S.f279=!!a.L.L["279"]):(S.f133=!!a.L.L["133"],S.f140=!!a.L.L["140"],S.f242=!!a.L.L["242"]),S.cAAC=n,S.cAVC=xB('video/mp4; codecs="avc1.42001E"'), S.cVP9=xB('video/webm; codecs="vp9"'));a.X&&(S.drmsys=a.X.keySystem,n=0,a.X.S&&(n=Object.keys(a.X.S).length),S.drmst=n);return new g.cQ(y,S,V)})}; rb=function(p){p.j&&(p.j.resolve(p.mediaElement.getCurrentTime()),p.UO.S=null)}; HaF=function(p,a){for(const l of a)if((p=l.renderer)&&(p.instreamVideoAdRenderer||p.linearAdSequenceRenderer||p.sandwichedLinearAdRenderer||p.instreamSurveyAdRenderer)){KU("ad_i");g.ew({isMonetized:!0});break}}; $q=function(p,a,l){a.z4().currentState<2&&(l=wb(l,p.EO),a.Lh(a.ZV(),l));l=a.z4().L;p.YF(p.slot,a.ZV(),l)}; DNe=function(p,a="",l=""){p.j?(p.C!==a&&(p.S.style.backgroundImage=`url(${a})`,p.C=a),p.updateValue("channelLink",PQ(p)),p.updateValue("channelLogoLabel",g.L$("Foto de $CHANNEL_NAME",{CHANNEL_NAME:l})),g.XX(p.api.getRootNode(),"ytp-title-enable-channel-logo")):g.BM(p.api.getRootNode(),"ytp-title-enable-channel-logo");p.api.logVisibility(p.S,p.j&&p.UO)}; FX=function(p,a,l=null){return new xq(g.ak(p.Y.experiments,a)||0,l?p.Y.A(l):!1)}; iav=function(p,a){return p.Ws?a?()=>{a().then(()=>{p.flush()})}:()=>{p.flush()}:()=>{}}; NCA=function(p){p.QY=!1;const a=VK(QH().AP,"rmmt")==1,l=!!E3(p,"isViewable");(a?!l:1)&&C$().setTimeout(vQ(524,()=>{p.QY||(K$(p),eZ.UD(540,Error(),void 0,void 0),p.K="mt",p.fail("w"))}),500); TCv(p);bv(p,p.S.E9.AFMA_LIDAR,IK)}; RK=function(p){return decodeURIComponent(p.replace(/\+/g," "))}; uv=function(p,a){p=p.element.element;a?p.setAttribute("aria-hidden","true"):p.removeAttribute("aria-hidden")}; O3=function(p){return p!=null}; QH=function(){return ND(s1v)}; Y=function(p,a,l){p.state.L[a]=(...y)=>l.apply(p,y)}; UNO=function(p,a,l){let y=mP(G1,a);y||(y=iW(p,a,"n",l.opt_nativeTime||-1));return y}; mx=function(p,a){a&&g.kq(p.element,Mj(p.L,a))}; hde=function(p,a){if(g.tU(Q1M,a))return!0;const l=p.b_[a];return l!==void 0?(p.b_[a]=!0,!l):!1}; HQ=function(p){const a=p!==p.top,l=p.top===jZ(p);let y=-1,S=0,n;a&&l&&p.top.mraid?(y=3,n=p.top.mraid):y=(n=p.mraid)?a?l?2:1:0:-1;n&&(n.IS_GMA_SDK||(S=2),WQ(Ax$,V=>typeof n[V]==="function")||(S=1)); return{E9:n,compatibility:S,XE:y}}; g.iv=function(p){return p.captionsLanguagePreference||p.g7.captionsLanguagePreference||g.DT(p,"yt:cc_default_lang")||p.g7.ZN}; JK=function(p){const a=TA(p);p=p.defaultView;return new g.g3(p?.pageXOffset||a.scrollLeft,p?.pageYOffset||a.scrollTop)}; Nj=function(p){return{gH:p.j.L.fh,E5:p.j.S.fh}}; hU=function(p){p.N.clearAll();p.S.clear();p.L.clear();p.X.clear();p.Hs=[];p.D=null;p.ZN.clear();p.Y.experiments.Cz("html5_ssdai_log_missing_ad_config_reason")&&p.QY.clear();p.C=[];p.Ic=[];p.Ba=[];p.Ha=[];p.dG.clear();p.Kx.clear();p.Ro.clear();p.Tm.clear();p.K=!1;p.bS=0;p.UO=!1;p.Bs=!1;p.Fw=0;p.E6=0;p.Lx=!1;p.CO=!1;p.U="";s3(p.app.h3());U3(p.app.h3(),p.playback,!1);p.Ws.clear();p.G.isActive()&&Qh(p)}; L7=function(p,a,l,y){if(p instanceof g.AU)return gb(p,a,l,y),!0;if(p)try{var S=!!p.$goog_Thenable}catch(n){S=!1}else S=!1;if(S)return p.then(a,l,y),!0;if(g.pA(p))try{const n=p.then;if(typeof n==="function")return gcA(p,n,a,l,y),!0}catch(n){return l.call(y,n),!0}return!1}; qpr=async function(p,a,l=0){const y=[];y.push(a.load());l>0&&y.push(YpM(l));await Promise.race(y);return Yq(p,a)}; JU=function(p,a,l){l=l!=null?"="+g.qj(l):"";return KO(p,a+l)}; pfr=function(p,a,l,y,S,n){if(!n)for(const V of a)f$(p,V.renderer,V.config.adPlacementConfig.kind);p=Array.from(p.values()).filter(V=>Jxq(V)); a=[];for(const V of p)for(const Z of V.A8)n=z=>Z.yk(z,V.instreamVideoAdRenderer.elementId,Z.sP),Z.isContentVideoCompanion?a.push(fbM(l,y,S,V.instreamVideoAdRenderer.elementId,Z.associatedCompositePlayerBytesLayoutId,Z.adSlotLoggingData,n)):p.length>1?a.push(pu(l,y,S,V.instreamVideoAdRenderer.elementId,Z.adSlotLoggingData,z=>Z.yk(z,V.instreamVideoAdRenderer.elementId,Z.sP,Z.associatedCompositePlayerBytesLayoutId))):a.push(pu(l,y,S,V.instreamVideoAdRenderer.elementId,Z.adSlotLoggingData,n)); return a}; aq=function(p){p.L>=0||(p.provider.Lz.getVisibilityState()===3?p.X=!0:(p.L=g.CX(p.provider),p.delay.start()))}; Hk=function(p=0){return g.R("client-screen-nonce-store",{})[p]}; yZ=function(p){p=lT(p.L).Dz;for(const a of p.wd.values())if(a.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; nu=function(p){p=g.hq(p);return SP(null,null,null,null,p[5],p[6],p[7])}; oq=function(p){p=new DataView(p.buffer,p.byteOffset,p.byteLength);return(p=g.VZ(p,0,1836476516))?g.Z2(p):NaN}; z9=function(p){return p.B.O().A("html5_recognize_predict_start_cue_point")}; g.Z2=function(p){const a=p.data.getUint8(p.dataOffset)?20:12;return p.data.getUint32(p.dataOffset+a)}; dh=function(p){this.C=null;this.D=[];this.j="";this.N=[];this.U=this.S=0;this.G=!1;this.K=0;this.Sl=/[\\"]/g;this.L=this.X=0;this.UO=!(!p||!p.dL)}; G9=function(p,a){return p?a?decodeURI(p.replace(/%25/g,"%2525")):decodeURIComponent(p):""}; c5=function(p){return B5(p.s6,!p.policy.Em,p.policy.jh)}; aM$=function(p){g.yo(p.L,a=>{a.j>1E5||++a.j})}; $3=function(p,a,l,y){p.nz();a.loggingUrls&&rh(p,"loggingUrls",a.loggingUrls,l,y);for(const [S,n]of Object.entries(a)){a=S;const V=n;a==="openPopupAction"?wh(p.F7.get(),"innertubeCommand",{openPopupAction:V}):a==="confirmDialogEndpoint"?wh(p.F7.get(),"innertubeCommand",{confirmDialogEndpoint:V}):lM$.hasOwnProperty(a)||rh(p,a,V,l,y)}}; nBr=function(p,a){switch(a){case "ad":return P5(p);case "annotations_module":return p.B.isEmbedsShortsMode()?p=!1:(a=p.B,p=a.O(),a=a.getVideoData(),p=p.U||a.v0||p.controlsType==="3"?!1:p.QY.isEmpty()&&p.playerStyle!=="annotation-editor"&&p.playerStyle!=="live-dashboard"?!!a.Rc||!!a.n8()||!!g.Lu(a):!0),p;case "asmjs":return XS(p);case "creatorendscreen":return ymf(p);case "embed":return g.x3(p.B.O());case "endscreen":return g.FS(p);case "heartbeat":return p.Gv();case "kids":return Hy(p.B.O());case "remote":return p.B.O().d4; case "miniplayer":return p.B.O().showMiniplayerUiWhenMinimized;case "offline":return p.B.O().ej;case "captions":return Ei(p);case "unplugged":return g.CP(p.B.O());case "ux":return p.B.O().ac;case "webgl":return S1M(p);case "ypc":return p.JQ();case "yto":return!1;default:return g.MD(Error(`Module descriptor ${a} does not match`)),!1}}; z$r=function(p,a){if(a.videoFormatCapabilities)for(var l=0;lOi(a))}; jP=function(p,a,l){l!==void 0&&(k3(p,a,Math.ceil(Math.log2(l.length*4+2)/7)),ME(p,l.length*1.2),a=mD(l,p.L.subarray(p.pos)),p.pos+a>p.L.length&&(ME(p,a),a=mD(l,p.L.subarray(p.pos))),p.pos+=a,tA(p))}; Y9=function(p,a){let l=W5[a];if(!l){var y=gW(a);l=y;p.style[y]===void 0&&(y=(g.H5?"Webkit":D2?"Moz":null)+YWr(y),p.style[y]!==void 0&&(l=y));W5[a]=l}return l}; g.WA=function(p){const a=[];let l=0;for(const y in p)a[l++]=y;return a}; NE=function(p,a,l={}){p=iT(ND(s1),a,l,p);return T9(p)}; g.si=function(p){p.stop();p.Lb()}; hA=function(p,a,l,y){var S=g.t9(p.api.DN());if(S&&S.loaded){var n=p.api.getSubtitlesUserSettings();S=void 0;for(var V=0;Vl.U)}; GGF=function(p,a){p.U=a}; y6=function(p,a,l,y,S){if(!a.L.L()){if(!(S=l===0||!!a.U.length&&a.U[0]instanceof uF))a:{if(a.U.length&&(S=a.U[0],S instanceof JA&&S.Cq&&S.J3)){S=!0;break a}S=!1}S||p.policy.L||FU(a);return l}const n=En(a,l);if(!isNaN(n))return n;if(p.loader.PP(l*1E3))return l;S.Ks?p.policy.G3&&(p=fu(p.loader,a),p6(a.j,l+p,!0)):(a.C0(),p.loader.Gd(!1,`sta_${+a.L.info.Bi()}`));return y&&(p=ab(y.gP(),l),!isNaN(p))?(lx(a,p+B1h,S),l):lx(a,l,S)}; var alF=function(p,a,l,y,S){return gC[r[12]](this,38,p,a,l,y,S)}; $J=function(p,a,l,y){p.L&&p.L.dispose();p.L=new g.SF(p.ke,a,p);g.H(p,p.L);y=MG(y);a=y?.navigationEndpoint;y=y?.icon?.iconType;let S=g.K(a,g.aY)?.url;p.B.setTrackingParams(p.element,a?.clickTrackingParams||null);a&&!S?(p.innertubeCommand=a,S="#!"):p.innertubeCommand=null;p.S.update({href:S??"#",text:l,icon:y==="MONEY_HAND"?{W:"svg",Z:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:S||p.innertubeCommand?g.n6():null})}; YC=function(p,a){p.loader.lI(a);var l=P3(a),y=p.loader.AA();l={s6:p.schedule,ZW:l,DD:cmq(p.X,l),K8:V6(a.Yv[0]),Up:WM(8,a.gG.L),zV:p.policy.U,An:(S,n)=>{p.loader.yI(S,n)}}; p.schedule.S.D&&(l.Ho=(p.videoTrack.L?.info.Sb||0)+(p.audioTrack.L?.info.Sb||0));p.sM&&(l.Gm=a.Yv[0].Gm,l.wE=a.wE,l.sM=p.sM);y={lx:rmM(a,p.loader.getCurrentTime()),Bd:p.policy.tN&&ZV(a)&&a.Yv[0].L.info.video?wfh(p.U):void 0,Ry:p.policy.w7,poToken:p.loader.C8(),SF:p.loader.SP(),Il:p.Il,Cq:isNaN(p.Cq)?null:p.Cq,J3:p.J3,cY:p.cY,ED:p.ED,V8:y};return new JA(p.policy,a,l,p.j,(S,n)=>{try{a:{const A=S.info.Yv[0].L,$h=A.info.video?p.videoTrack:p.audioTrack;if(!(S.state>=2)||S.isComplete()||S.Ja()||!(!p.loader.Kz|| p.loader.isSuspended||ob($h)>3)){const cE=Xs(S,p.policy,p.j);cE===1&&(p.Sl=!0);qC(p,S,cE);if(S.isComplete()||S.nz()&&n<3){if(p.policy.U){const FO=S.timing.K();FO.rst=S.state;FO.strm=S.xhr.II();FO.cncl=S.xhr&&S.kE.X?1:0;p.loader.Xu("rqs",FO)}S.Xy&&p.loader.Xu("sbwe3",{},!0)}if(!p.nz()&&S.state>=2){cv(p.timing,S,A);var V=p.loader;p.Cq&&S.Wb&&V&&(p.Cq=NaN,p.loader.dH(S.Wb),p.loader.kA(),p.loader.Xu("cabrUtcSeek",{mediaTimeSeconds:S.Wb}));S.HC&&p.Cq&&S.HC&&!S.HC.action&&(p.loader.Na(p.Cq),p.Cq=NaN,p.loader.Xu("cabrUtcSeekFallback", {targetUtcTimeSeconds:p.Cq}));S.hD&&p.loader.dC(S.hD);p.policy.wq&&(p.ED=S.ED);if(S.state===3){z3($h,S);ZV(S.info)&&dB(p,$h,A,!0);if(p.S){const FO=S.info.Cy();FO&&p.S.vW(S.info.Yv[0].Gm,A.info.id,FO)}p.loader.bW()}else if(S.isComplete()&&S.info.Yv[0].type===5){if(S.state!==4)S.bU()&&p.loader.handleError(S.Zd(),S.eS());else{var Z=(S.info.Yv[0].L.info.video?p.videoTrack:p.audioTrack).U[0]||null;Z&&Z instanceof JA&&Z.Ja()&&Z.qj()}S.dispose()}else{if(!S.bU()&&S.jF&&S.state>=2&&S.state!==3){var z=S.xhr.getResponseHeader("X-Response-Itag"); if(z){var d=$De(p.U,z),G=S.info.U;if(G){var B=G-d.Bs();d.UO=!0;S.info.Yv[0].L.UO=!1;var c=d.G(B);S.info=c;if(S.wc){var w=S.wc,X=c.Yv;(X.length!==w.Yv.length||X.length=p.policy.F5&&p.S&&S.info.isDecorated()&&CA==="net.badstatus"&&p.S.cR(b_,sM))){var u=(FO.info.video&&FO.gG.U>1||S.a9===410||S.a9===500||S.a9===503)&&!(bx(p.U.X).size>0)&&!WM(8,FO.gG.L),m=S.eS(),M=FO.info.video?p.videoTrack:p.audioTrack;u&&(m.stun="1");p.loader.handleError(CA,m);p.nz()||(u&&Ib(p.U,FO),z3(M,S),p.loader.bW())}}else d=1,p.S&&S.info.isDecorated()&&CA==="net.badstatus"&&p.S.cR(b_,sM)&&(d=0),p.r7.isLive&&S.Zd()==="net.badstatus"&& p.D<=p.policy.g4*2?(Rb(p.r7),p.r7.IX||p.r7.isPremiere?Ch(p.loader,0,{qE:"badStatusWorkaround"}):p.r7.X?Ch(p.loader,p.r7.QY,{qE:"badStatusWorkaround",P1:!0}):Kc(p.loader)):p.loader.handleError(CA,S.eS(),d);isNaN(p.Cq)||(p.loader.Na(p.Cq),p.Cq=NaN)}p.policy.Kx&&!S.isComplete()?el(p.loader):p.loader.bW();var D=Lo(S,p.policy,p.j);qC(p,S,D)}}}}}catch(A){D=p.N?1:0,p.N=!0,S=xW(D),D=XN(A,D),p.loader.handleError(D.errorCode,D.details,D.severity),S||p.loader.C0()}},y)}; ux=function(p,a){const l=p[a];l!==void 0&&l>0&&(p[a]=Math.floor(l*1E3))}; kr=function(p){let a,l=0,y=0,S=0;const n=p.S;let V=p.L;do a=n[V++],l|=(a&127)<32)for(y|=(a&127)>>4,S=3;S<32&&a&128;S+=7)a=n[V++],y|=(a&127)<>>0,y>>>0);throw Error();}; mg=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):g.MA(p)}; jF=function(p,a){a.forEach(l=>{ts(p,l)})}; WG=function(p){const a=p.B.getVideoData();let l=p.C&&!a.isInlinePlaybackNoAd;p.B.A("html5_defer_modules_on_ads_only")&&!a.isAd()&&(l=!1);return l}; iB=function(){return g.o1("ytglobal.idbToken_")||void 0}; HG=function(p){return vM(p)&&p.allowLiveDvr}; DV=function(p,a){this.Tr=p;this.JG=0;this.TA=a}; g.ix=function(p){window.clearInterval(p)}; jZ=function(p){let a=p;for(;p&&p!=p.parent;)p=p.parent,hP(p)&&(a=p);return a}; T3=function(p){return p.layout.lK??p.layout.clientMetadata.t9("metadata_type_sub_layouts")}; g.hs=async function(p,a,l,y){const S={mode:"readonly",nx:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof l==="string"?S.mode=l:Object.assign(S,l);p.transactionCount++;l=S.nx?3:1;let n=0,V;for(;!V;){n++;const G=Math.round((0,g.h)());try{var Z=p.L.transaction(a,S.mode),z=y,d=!!S.commit;const B=new NA(Z),c=await PKh(B,z,d),w=Math.round((0,g.h)());sC(p,G,w,n,void 0,a.join(),S);return c}catch(B){z=Math.round((0,g.h)());const c=UC(B,p.L.name,a.join(),p.L.version);if(c instanceof g.Q6&&!c.L||n>=l)sC(p,G,z, n,c,a.join(),S),V=c}}return Promise.reject(V)}; As=function(p){p=Math.trunc(p)||0;p<0&&(p+=this.length);if(!(p<0||p>=this.length))return this[p]}; gB=function(p,a,l){(p=p.L[a])&&p.U(l)}; PV=function(p){var a=p.state,l=a.pending;l>p.Sa&&(l=p.Sa);l!==0&&(Yr.BR(p.output,a.Qh,a.Pr,l,p.xZ),p.xZ+=l,a.Pr+=l,p.z0+=l,p.Sa-=l,a.pending-=l,a.pending===0&&(a.Pr=0))}; g.Js=function(p,a,l){let y;a instanceof g.g3?(y=a.x,a=a.y):(y=a,a=l);p.style.left=g.qA(y,!1);p.style.top=g.qA(a,!1)}; LYh=function(p){var a=g.o1("window.location.href");p==null&&(p='Unknown Error of type "null/undefined"');if(typeof p==="string")return{message:p,name:"Unknown error",lineNumber:"Not available",fileName:a,stack:"Not available"};let l,y;var S=!1;try{l=p.lineNumber||p.line||"Not available"}catch(n){l="Not available",S=!0}try{y=p.fileName||p.filename||p.sourceURL||g.mm.$googDebugFname||a}catch(n){y="Not available",S=!0}a=f6(p);if(!(!S&&p.lineNumber&&p.fileName&&p.stack&&p.message&&p.name)){S=p.message; if(S==null){if(p.constructor&&p.constructor instanceof Function){if(p.constructor.name)S=p.constructor.name;else if(S=p.constructor,pv[S])S=pv[S];else{S=String(S);if(!pv[S]){const n=/function\s+([^\(]+)/m.exec(S);pv[S]=n?n[1]:"[Anonymous]"}S=pv[S]}S='Unknown Error of type "'+S+'"'}else S="Unknown Error of unknown type";typeof p.toString==="function"&&Object.prototype.toString!==p.toString&&(S+=": "+p.toString())}return{message:S,name:p.name||"UnknownError",lineNumber:l,fileName:y,stack:a||"Not available"}}return{message:p.message, name:p.name,lineNumber:p.lineNumber,fileName:p.fileName,stack:a}}; aM=function(p){return p.B.O().experiments.Cz("should_ignore_cuepoints_during_lifa_preroll")}; Af=function(){lr||(lr=new yR("yt.offline"));return lr}; nv=function(p,a){p.timing.N=!0;p.xhr.II()&&p.timing.Sl();p.policy.wq&&p.jK?.stop();SA(p.wc,a,!1)}; dy=function(p){p=p.xhr.responseText;if(!ag(p,")]}'"))throw new VR;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new VR;p=p.id;ZU(p);oM=oW(p);zQ(18E5,2);return p}; g.p8=function(p){return FJ(p).toUpperCase()==="WEB"}; g.GQ=function(){return{W:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{W:"path",Z:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 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"}}]}}; g.Bg=function(p,a){typeof p==="function"&&(p=g.Oc(p));return window.setInterval(p,a)}; wy=function(p,a,l){if(!p.done&&(p.S.cancel(),a.length!=0)){p.U=null;try{Xfr();var y=Date.now()-cg;QH().X=y;if(ND(ry).L!=null)for(let S=0;S{S.eE.ph=0}):p.S.schedule()}}}; Lv=function(p,a,l){p=p.L.UK(a?.KH?.identity||$n,{sessionIndex:a?.KH?.sessionIndex});return{...Pg(l),...p}}; Nh=function(p,a){return Array.prototype.some.call(p,a,void 0)}; g.X0=function(p,a,l){const y={...p};for(const S of Object.keys(a)){const n=p[S],V=a[S];if(V===void 0)delete y[S];else if(n===void 0)y[S]=V;else if(Array.isArray(V)&&Array.isArray(n))y[S]=l?[...n,...V]:V;else if(!Array.isArray(V)&&g.pA(V)&&!Array.isArray(n)&&g.pA(n))y[S]=g.X0(n,V,l);else if(typeof V===typeof n)y[S]=V;else return a=new g.Qm("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:S,jMu:n,updateValue:V}),g.MD(a),p}return y}; dp=function(p,a){return p.B.O().A(a)}; EBr=function(){var p=document;return g.y_(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],a=>`on${a.toLowerCase()}`in p)}; g.xn=function(p,a,l){const y={};for(const S in p)a.call(l,p[S],S,p)&&(y[S]=p[S]);return y}; mn=function(p){F0(p);CK$();vBh();p||(g.R("TIMING_ACTION")&&C8("PREVIOUS_ACTION",g.R("TIMING_ACTION")),C8("TIMING_ACTION",""))}; KYF=function(p){if(p.slot.clientMetadata.t9("metadata_type_allow_pause_ad_break_request_slot_reschedule")){const a=Es(p,p.slot);Cv(p.L.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",()=>[a])}}; eA=function(p){if(p.It()){var a=p.data["Stitched-Video-Id"]?p.data["Stitched-Video-Id"].split(",").slice(0,-1):[],l=p.U();var y=[];if(p.data["Stitched-Video-Duration-Us"])for(var S of p.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1))y.push((Number(S)||0)/1E6);S=[];if(p.data["Stitched-Video-Start-Frame-Index"])for(var n of p.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1))S.push(Number(n)||0);n=[];if(p.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(const V of p.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0, -1))n.push((Number(V)||0)/1E6);p=new e$F(a,l,y,n,g.vg(p),g.Kv(p))}else p=null;return p}; bFo=function(p){p.updateValue("icon",br());if(p.api.O().S)p.tooltip.Z8(p.element,"Se ha copiado el enlace en el portapapeles.");else{p.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");p.updateValue("tooltip-title","Se ha copiado el enlace en el portapapeles.");p.tooltip.yT();p.tooltip.Z8(p.element);const a=p.listen("mouseleave",()=>{p.Kt(a);p.J9();p.tooltip.xc()})}}; IMh=function(p){var a=p.Bs.toString(10).padStart(2,"0");a=`${p.Lx}${a}`;p.Bs<99&&p.Bs++;return a}; DDE=function(p,a,l,y,S={},n=!1,V=!1){switch(p){case "invideo-overlay":p=new R$r(a,y,S,l);break;case "player-overlay":p=new uer(a,y,S,l,new IM(a),V);break;case "player-overlay-layout":p=new OFr(a,y,S,l,new IM(a));break;case "survey":p=new kGO(a,y,S,l);break;case "ad-action-interstitial":p=new MNf(a,y,S,l,n,V);break;case "video-interstitial-buttoned-centered":p=new mDO(a,y,S,l);break;case "survey-interstitial":p=new tNo(a,y,S,l);break;case "ad-message":p=new jOZ(a,y,S,l,new IM(a,1));break;case "player-underlay":p= new WYO(a,y,S,l);break;case "display-underlay-text-grid-cards":p=new HFE(a,y,S,l,new IM(a));break;default:return null}return p}; p7=function(p,a,l,y){return RM(p,a,l,y,(S,n)=>new zY(p.L,l,S,n))}; var o1o=function(p,a,l,y,S,n,V,Z){return S$[r[12]](this,38,p,a,l,y,S,n,V,Z)}; Os=function(p,a){return a&&g.ur(p.Y)?a.some(l=>l.video.S()):!1}; T1E=function(p,a){const l=new iF$;g.kn(p.xhr,"complete",()=>{if(Mo(p.xhr)){var y=g.me(p.xhr);if(a&&p.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");y=atob(y)}try{var S=p.G(y)}catch(V){te(p,jA(new Wg(13,`Error when deserializing response data; error: ${V}`+`, response: ${y}`),l));return}y=Hg(p.xhr.getStatus());DU(p,ir(p));y===0?TQ(p,S):te(p,jA(new Wg(y,"Xhr succeeded but the status code is not 200"),l))}else{y=g.me(p.xhr);let V;S=ir(p);if(y){var n= No(p,y);y=n.code;V=n.details;n=n.metadata}else y=2,V=`Rpc failed due to xhr error. uri: ${String(p.xhr.K)}, `+`error code: ${p.xhr.S}, `+`error: ${p.xhr.getLastError()}`,n=S;DU(p,S);te(p,jA(new Wg(y,V,n),l))}})}; gy=function(p,a,l,y){p.L&&Q("Currently active request ongoing for slot. This should never happen",p.slot);p.L=a();p.L.then(S=>{p.L=null;y&&y(S);const n=S.qI?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE";var V=p.S.get(),Z=p.slot.slotId,z=Yv(p.EQ.get(),{slotId:p.slot.slotId,slotType:p.slot.slotType,slotPhysicalPosition:p.slot.slotPhysicalPosition,qO:p.slot.qO,slotEntryTrigger:p.slot.slotEntryTrigger,slotFulfillmentTriggers:p.slot.slotFulfillmentTriggers,slotExpirationTriggers:p.slot.slotExpirationTriggers}); const d=d$(V.S.get(),n,Z),G={layoutId:d,layoutType:n,qO:"core"};S={layoutId:d,layoutType:n,Xh:new Map,layoutExitNormalTriggers:[new Us(V.L,Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new N1q(S)]),ao:z(G)};QR(p.callback,p.slot,S)},S=>{p.L=null; l&&l();S instanceof he||Ae(p.callback,p.slot,new N(S,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; Yn=function(p,a,l){return l!==void 0?p.getCurrentTime(a,!1,l):p.getCurrentTime(a,!1)}; qo=function(p,a){this.L=p;this.S=a}; sOM=function(p){p=p.charCodeAt(0);return"%"+(p>>4&15).toString(16)+(p&15).toString(16)}; UDh=async function(p,a,l){(0,g.h)();return p.L.L?Je(p,a,l):fv(p.L).decrypt(a,l)}; pT=function(p,a){return!!p.K?.N(a)||QOF(p.j,a)}; XN=function(p,a=0){if(p instanceof g.cQ)return p;p=p&&p instanceof Error?p:Error(`${p}`);xW(a)?g.MD(p):g.tX(p);return new g.cQ(a===1?"player.fatalexception":"player.exception",{name:`${p.name}`,message:`${p.message}`},a)}; h$r=function(p,a){p.L||(p.S=a,p.U=(0,g.h)(),p.L=new g.qD(()=>{aE(p)},null),aE(p))}; z2=function(p,a){var l=g.N7(a);if(lD(a.info.L.info)&&a.info.L.info.video.primaries==="bt2020"){var y=new UW(l);yn(y,[408125543,374648427,174,224,21936,21937])&&(y=y.start+y.pos,l.getUint8(y)===129&&l.getUint8(y+1)===1&&l.setUint8(y+1,9))}y=a.info.L.info;y.U()&&!lD(y)&&(y=g.N7(a),(new UW(y)).U9(),Sq([408125543,374648427,174,224],21936,y));a.info.L.info.n1()&&(y=a.info.L,y.info&&y.info.video&&y.info.video.projectionType==="MESH"&&!y.C&&(g.Ta(y.info)?y.C=AmA(l):y.info.bC()&&(y.C=gBv(l))));a.info.L.info.bC()&& a.info.n1()&&(l=g.N7(a),(new UW(l)).U9(),Sq([408125543,374648427,174,224],30320,l)&&Sq([408125543,374648427,174,224],21432,l));if(p.policy.DY&&a.info.L.info.bC()){y=g.N7(a);var S=new UW(y);if(yn(S,[408125543,374648427,174,29637])){l=mT(S,!0);S=S.start+S.pos;for(var n=0;nl.trigger.breakDurationMs)&&(l={slot:S,trigger:y});return l}; JmF=function(){if(!G2)return null;const p=G2();return"open"in p?p:null}; rh=function(p,a,l,y,S){if((p=p.L.get(a))&&typeof p==="function")try{p(l,y,S)}catch(n){g.MD(n)}else a=new g.Qm("Unhandled field",a),g.tX(a)}; BD=function(p){for(var a=p.length;--a>=0;)p[a]=0}; cD=function(p,a){return p.U===void 0?!1:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(a.seekLengthMilliseconds)===5E3?p.U===72:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(a.seekLengthMilliseconds)===1E4?p.U===74:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(a.seekLengthMilliseconds)===5E3?p.U===71:a.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(a.seekLengthMilliseconds)===1E4?p.U===73:!1}; wV=function(p){return p==null?p:rV(p)}; PD=function(p){return $N(p,!0)}; g.G3=function(p,a,...l){LT(5,p instanceof g.Xj?p.tag:p,a,...l)}; pAA=async function(p,a,l,y,S){const n=!!a.scrubReferrer;l=g.xN(a.baseUrl,fMe(l,n,y));y={};if(a.headers){var V=p.j();V=V.L?await V.L:V.getValue();for(const Z of a.headers)switch(Z.headerType){case "VISITOR_ID":g.R("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=g.R("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.R("EOM_VISITOR_DATA")&&(y["X-Goog-EOM-Visitor-Id"]=g.R("EOM_VISITOR_DATA"));break;case "USER_AUTH":V&&(y.Authorization=`Bearer ${V}`);break;case "PLUS_PAGE_ID":(a=p.X())&&(y["X-Goog-PageId"]=a);break; case "AUTH_USER":a=p.L();!V&&a&&(y["X-Goog-AuthUser"]=a);break;case "DATASYNC_ID":p.U()?.Cz("enable_datasync_id_header_in_web_vss_pings")&&(a=p.S(),S_(l)&&g.R("LOGGED_IN")&&a&&(y["X-YouTube-DataSync-Id"]=a))}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"]}g.Fj(l,void 0,n,Object.keys(y).length!==0?y:void 0,"",!0,S)}; aQr=function(p,a,l=!0){p.L=0;p.startTimeSecs=a;p.U=l;p.S=!0}; E8=function(p){return p.yr.get("creatorendscreen")}; bD=function(p){CT(p);p=vD(p);KT(p)||(eq(p),p=OC(a1,yB));return p}; RE=function(p){p=g.IE(p);for(const a of Object.keys(p)){const l=p[a];p[a]=Array.isArray(l)?l[0]:l}return p}; lQO=async function(p){if(p.nz())return Promise.reject(Error(p.status.error||"disposed"));p.timeout.start();await p.mC;var a=p.L.mB();if(a.isEnded())return p.Sj("ended_in_finishTransition"),Promise.reject(Error(p.status.error||""));if(!p.X||!uD(p.X))return p.Sj("next_mse_closed"),Promise.reject(Error(p.status.error||""));if(p.S.mK()!==p.X)return p.Sj("next_mse_mismatch"),Promise.reject(Error(p.status.error||""));const {Ka:l,H7:y,h_:S}=p.K();p.L.W9(!1,!0);const n=YP(a,l,S,!p.S.getVideoData().isAd()); p.S.setMediaElement(n);const V=p.L.vI();V&&p.S.aI(V.wj,V.dj);p.w7&&(p.policy.L||p.S.seekTo(p.S.getCurrentTime()+.001,{Wt:!0,CX:3,qE:"gapless_pseudo"}),n.play());a=a.mS();a.cpn=p.L.getVideoData().clientPlaybackNonce;a.st=`${l}`;a.et=`${S}`;p.S.Xu("gapless",a);p.L.Xu("gaplessTo",{cpn:p.S.getVideoData().clientPlaybackNonce});a=p.L.getPlayerType()===p.S.getPlayerType();p.L.Ub(y,!0,!1,a,p.S.getVideoData().clientPlaybackNonce);p.S.Ub(p.S.getCurrentTime(),!0,!0,a,p.L.getVideoData().clientPlaybackNonce); p.S.SB();g.XM(()=>{!p.S.getVideoData().UO&&p.S.getPlayerState().isOrWillBePlaying()&&p.S.k9()}); O8(p,6);p.dispose();return Promise.resolve()}; kN=function(p){return!!p.lM&&!!p.lM.postId&&p.api.getPresentingPlayerType()!==2&&(!p.lM.type||p.lM.type==="clips")}; Mk=function(p,a){if(p.nz())throw new gr(p.L?20:32,a);}; AY=function(p,a,l,y,S=!1){const n={startTime:(0,g.h)(),ticks:{},infos:{}};if(mw)try{const Z=tY(a);if(Z!=null&&(Z>jq||Z=y.start&&a<=y.end)return;if(a===y.end+1){y.end+=1;return}}p.Hs.push(new y9A(a))}}; SkA=function(p){g.yo(p.L,a=>{a.L>1E5||++a.L})}; VwM=function(p){n9M(p,(a,l)=>{a=new URL(a);a.searchParams.set("format","json");let y=!1;try{y=AP().navigator.sendBeacon(a.toString(),l.Lq())}catch{}y||(p.C=!1);return y})}; wAf=function(p){const a={};var l=p.experiments,y=l.Da();l=l.e8();const S=y.L.Zy(ZUv);qk(S)&&Number(S)>0&&(a.SetPreferMinimalPostProcessing=JY("SetPreferMinimalPostProcessing",Number(S)===1?1:0));if(l.L.Zy(o9o))(p=y.L.Zy(zTo))&&(a["MediaSource.EnableUsingMediaSourceBufferedRange"]=JY("MediaSource.EnableUsingMediaSourceBufferedRange",p===1?1:0)),(p=y.L.Zy(dpo))&&(a.HTTP3=JY("HTTP3",p===1?1:0)),(p=y.L.Zy(G6h))&&(a["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=JY("MediaSource.EnableUsingMediaSourceAttachmentMethods", p===1?1:0)),(p=y.L.Zy(BWo))&&(a.QUIC=JY("QUIC",p===1?1:0)),(p=y.L.Zy(c9M))&&(a["Media.PlayerConfiguration.DecodeToTexturePreferred"]=JY("Media.PlayerConfiguration.DecodeToTexturePreferred",p===1?1:0)),(p=y.L.Zy(r9r))&&(a["Media.AudioWriteDurationLocal"]=JY("Media.AudioWriteDurationLocal",Number(p)));else{y=Object.keys(p.experiments.flags);for(const n of y)n.startsWith("cobalt_h5vcc")&&(n.startsWith("cobalt_h5vcc_string")?(y=fT(n,"cobalt_h5vcc_string"),l=pm(p.experiments,n),y&&l&&(a[y]=JY(y,l))):n.startsWith("cobalt_h5vcc")&& (y=fT(n,"cobalt_h5vcc"),l=g.ak(p.experiments,n),y&&l&&(a[y]=JY(y,l))))}return a}; $pF=function(p,a){Array.isArray(a)||(a=[a]);a=a.map(function(l){return typeof l==="string"?l:l.property+" "+l.duration+"s "+l.timing+" "+l.delay+"s"}); g.VB(p,"transition",a.join(","))}; g.aU=function(p){return p.L?p.L.readyState:0}; yq=function(p){return g.lz(Ptr(),p)}; g.S4=function(){return{W:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; Vq=function(p){if(p.U)if(p.j==="AD_PLACEMENT_KIND_START"&&p.actionType==="video_to_ad")mn("video_to_ad");else{var a={adBreakType:vA(p.j),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:p.videoStreamType};p.actionType==="ad_to_video"?(p.contentCpn&&(a.targetCpn=p.contentCpn),p.videoId&&(a.targetVideoId=p.videoId)):(p.adCpn&&(a.targetCpn=p.adCpn),p.adVideoId&&(a.targetVideoId=p.adVideoId));p.adFormat&&(a.adType=p.adFormat);p.contentCpn&& (a.clientPlaybackNonce=p.contentCpn);p.videoId&&(a.videoId=p.videoId);p.adCpn&&(a.adClientPlaybackNonce=p.adCpn);p.adVideoId&&(a.adVideoId=p.adVideoId);g.ew(a,p.actionType);p.B.O().experiments.Cz("html5_ads_csi_qoes")&&(a=p.B.fO(p.actionType==="ad_to_video"?1:2),a=(0,g.h)()-1E3*a,nm("qoes",a,p.actionType))}}; g.O1=function(p){const a={};for(const l in p)a[l]=p[l];return a}; Zc=function(p,a){return p==a?!0:p&&a?p.left==a.left&&p.width==a.width&&p.top==a.top&&p.height==a.height:!1}; g.oU=function(p){return`/youtubei/v1/${Lor(p)}`}; zw=function(p,a,l){const y=new XAM(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,p.j.bind(p));y.lT(p.X);y.init(Mx("survey-question-single-select"),a,l);p.api.O().A("supports_multi_step_on_desktop")?p.U=y:p.questions.push(y);g.H(p,y)}; xpM=function(){}; rt=async function(p,a={}){const l=await g.dt();l&&(Gw(p),await Bi(p,a),await ci(p,l))}; vZ=function(p,a){a.length!==0&&(p.U.push(a),p.S+=a.length)}; v9h=function(p,a,l,y,S,n,V){if(!FoF(p))return new N("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:p});const Z=p.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[E9q(n,a,l,y,z=>{var d=z.slotId;z=V(z);d=d$(S.S.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",d);const G={layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",qO:"core"},B=new wt(S.L,y);return{layoutId:d,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xh:new Map,layoutExitNormalTriggers:[B], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new Cto(Z)]),ao:z(G)}})]}; Ko$=function(p,a){return nI(p,2,a)}; RTO=function(p,a){p.playbackData=a;p.videoData.isLivePlayback&&(p.K=new eTO(()=>{a:{if(p.playbackData&&p.playbackData.L.L()){if(TJ(p.videoData)&&p.loader){var l=p.loader.uZ.Pi()||0;break a}if(p.videoData.L){l=p.videoData.L.Ws;break a}}l=0}return l}),p.L=new bU$(p.videoData,p.Y.experiments,()=>p.UE(!0))); kF(p.Lz)?(p.videoData.Q5?.QX||(a=IQe(p),a.zJ?(Yc(p.videoData)&&p.u4(a.zJ,a.startSeconds),p.U=a.startSeconds):a.startSeconds>0&&p.seekTo(a.startSeconds,{qE:"seektimeline_startPlayback",seekSource:15})),p.C=!1):$A(p)||(p.U=p.U||p.videoData.startSeconds||0,p.videoData.isLivePlayback||(a=p.Lz.videoData.UE(),p.U>a&&(p.A("html5_sabr_log_invalid_sabr_current_time")&&p.Lz.Xu("invalidSabrCmtStart",{rt:p.U,mst:a}),p.A("html5_sabr_vod_invalid_start_time_fallback")&&(p.U=0))))}; VA=function(p,a){var l=a.Tr,y=a.TA.uw,S=a.TA.Is,n=a.TA.AI,V,Z=-1;p.zF=0;p.Eo=573;for(V=0;V>1;V>=1;V--)Fn(p,l,V);z=n;do V=p.Gy[1],p.Gy[1]=p.Gy[p.zF--],Fn(p,l,1),y=p.Gy[1],p.Gy[--p.Eo]=V,p.Gy[--p.Eo]=y,l[z*2]=l[V*2]+l[y*2],p.depth[z]=(p.depth[V]>=p.depth[y]?p.depth[V]:p.depth[y])+1,l[V*2+1]=l[y*2+1]=z,p.Gy[1]=z++,Fn(p,l,1);while(p.zF>= 2);p.Gy[--p.Eo]=p.Gy[1];V=a.Tr;z=a.JG;y=a.TA.uw;S=a.TA.Is;n=a.TA.oB;var d=a.TA.ZM,G=a.TA.XD,B,c=0;for(B=0;B<=15;B++)p.nU[B]=0;V[p.Gy[p.Eo]*2+1]=0;for(a=p.Eo+1;a<573;a++){var w=p.Gy[a];B=V[V[w*2+1]*2+1]+1;B>G&&(B=G,c++);V[w*2+1]=B;if(!(w>z)){p.nU[B]++;var X=0;w>=d&&(X=n[w-d]);var v=V[w*2];p.l4+=v*(B+X);S&&(p.Zw+=v*(y[w*2+1]+X))}}if(c!==0){do{for(B=G-1;p.nU[B]===0;)B--;p.nU[B]--;p.nU[B+1]+=2;p.nU[G]--;c-=2}while(c>0);for(B=G;B!==0;B--)for(w=p.nU[B];w!==0;)y=p.Gy[--a],y>z||(V[y*2+1]!==B&&(p.l4+=(B-V[y* 2+1])*V[y*2],V[y*2+1]=B),w--)}Pi(l,Z,p.nU)}; FY=function(p,a){Lm[p]||(Lm[p]=!0,g.XY.zD(()=>{xA();Lm[p]=!1},a))}; vi=function(p,a,l){return EL(p,a,Cm(l))}; Km=function(p,a,l){return l.renderingContent===void 0&&l.layoutId!==lk(p,a,l)?(Q("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",p.qc(),p.ZV(),{requestingSlot:a,requestingLayout:l}),!1):!0}; var d7F=function(){return lF[r[12]](this,7)}; e4=function(p){return p.startsWith("//")?"https:"+p:p}; uVv=function(p,a){p=p.api.getAvailableAudioTracks();for(const l of p)if(l.getLanguageInfo().getId()===a)return l;return null}; OUO=function(p){const a=new g.et({W:"div",T:"ytp-ad-text-overlay",V:[{W:"div",T:"ytp-ad-overlay-ad-info-button-container"},{W:"div",T:"ytp-ad-overlay-close-container",V:[{W:"button",T:"ytp-ad-overlay-close-button",V:[bz(IU)]}]},{W:"div",T:"ytp-ad-overlay-title",yY:"{{title}}"},{W:"div",T:"ytp-ad-overlay-desc",yY:"{{description}}"},{W:"div",A9:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],yY:"{{displayUrl}}"}]});p.J(a.d7("ytp-ad-overlay-title"),"click",l=>{RU(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-link"),"click",l=>{RU(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-close-container"),"click",p.Bs);a.hide();return a}; OL=function(p){var a=p.getVideoData();if(!a.OU){a=p.Y.Ba?1:uz(a);const l=p.mediaElement;l.C(p.i_.muted);try{l.setVolume(p.i_.volume*a/100)}catch{g.tX(new g.Qm("b183742307",`multiplier: ${a}, volume: ${p.i_.volume}`))}}}; k6M=function(){let p=null;kA().then(a=>p=a,a=>p=M5(a)); return p}; g.kq=function(p,a){if("textContent"in p)p.textContent=a;else if(p.nodeType==3)p.data=String(a);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(a)}else g.m1(p),p.appendChild(jj(p).createTextNode(String(a)))}; g.Wi=function(p,a,l){p=p.L.openCursor(a.query,a.direction);return th(p).then(y=>j4(y,l))}; MwO=function(p){for(let a=1;a255){const Z=Error("go/unicode-to-byte-error");if(l)throw Z;y[S++]=V&255;V>>=8}y[S++]=V}p=g.dW(y,a)}else p=g.mm.btoa(p);return p}; Dc=function(){if(!g.mm.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.mm.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.mm.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.mm.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.mm.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}}; sL=function(){return(iz||Tw)&&KA?KA.mobile:!N5()&&(wv("iPod")||wv("iPhone")||wv("Android")||wv("IEMobile"))}; UL=function(p){var a=p.S;const l=p.L,y=a[l+0],S=a[l+1],n=a[l+2];a=a[l+3];Wf(p,p.L+4);return(y<<0|S<<8|n<<16|a<<24)>>>0}; XV=function(p,a){return p=(2&a?p|2:p&-3)&-273}; Ah=function(p,a,l,y,S){var n=p.provider.Y.L.cbrver;p.provider.Y.L.cbr==="Chrome"&&/^96[.]/.test(n)&&l==="net.badstatus"&&/rc\.500/.test(S)&&Ik(p,3);p.provider.Y.A("html5_use_ump")&&/b248180278/.test(S)&&Ik(p,4);n=p.provider.getCurrentTime(p.adCpn||p.provider.videoData.clientPlaybackNonce);y=y===1?"fatal":"";l=[l,y,n.toFixed(3)];y&&(S+=`;a6s.${Qq()}`);S&&l.push(hh(S));g.vy(p,a,"error",l);p.X=!0}; ob=function(p,a=!1){var l=p.loader.getCurrentTime(),y=p.j.JD();let S=y?.info.D||0;if(y?.info.L.jl()&&!y.info.j)if(p.policy.Z1)S=y.info.X;else if(p.policy.oK){var n=y.info;S=n.range?n.D:Math.min(n.startTime+Math.min(n.duration*n.S/n.L.info.Sb,n.duration)+(n.range?n.C:Math.min(n.duration,n.duration*n.U/n.L.info.Sb)),n.startTime+n.duration)}if(!p.Jg)return p.policy.L&&a&&!isNaN(l)&&y?S-l:0;if((n=gt(p))&&YA(n))return n.D;var V=p.Jg.gP(!0);if(a&&y)return n=0,p.policy.L&&(n=q5(V,S+.02)),n+S-l;a=q5(V,l); p.policy.u2&&n&&(y=Jh(V,l),V=Jh(V,n.X-.02),y===V&&(l=n.D-l,p.policy.U&&l>a+.02&&p.Xu("abh",{bh:a,bhtls:l}),a=Math.max(a,l)));return a}; mpo=function(p,a){if(p.L==void 0)return 0;switch(p.X){case "mtos":return p.S?qE(a.L,p.L):qE(a.S,p.L);case "tos":return p.S?yH(a.L,p.L):yH(a.S,p.L)}return 0}; iX=function(p,a,l,y={},S,n){const V=Math.round((0,g.h)()),Z={value:p.size};var z=new Map([...p]);for(const [I]of z){var d=I,G=p.get(d);z=new twM;var B=a.config_||g.fm(),c=new pe,w=new aP;lX(w,1,B.oJ);lX(w,2,B.Zn);y0(w,16,B.Vm);lX(w,17,B.innertubeContextClientVersion);if(B.xL){var X=B.xL,v=new Sp;X.coldConfigData&&lX(v,1,X.coldConfigData);X.appInstallData&&lX(v,6,X.appInstallData);X.coldHashData&&lX(v,3,X.coldHashData);X.hotHashData&&v.pg(X.hotHashData);Sl(w,Sp,62,v)}(X=g.mm.devicePixelRatio)&&X!= 1&&EL(w,65,ne(X));X=V0();X!==""&&lX(w,54,X);X=Zx();if(X.length>0){v=new oP;for(let u=0;u-l?-a/l*p.interval*.5:-(a+l/2)/l*p.interval}; NWO=function(p){const a=sb(p.eE.ph,2),l=p.o9.U;var y=p.eE,S=sQ(p);const n=Ub(S.j),V=Ub(S.D),Z=Ub(y.volume),z=sb(S.G,2),d=sb(S.N,2),G=sb(y.ph,2),B=sb(S.Sl,2),c=sb(S.w7,2);y=sb(y.xz,2);const w=p.kp().clone().round();p=p.Je&&p.Je.U?(p.Je?p.Je.U:null).clone().round():null;S=lv(S,!1);return{hd:a,iO:l,RZ:n,Wz:V,Ww:Z,kB:z,gt:d,ph:G,ud:B,bd:c,xz:y,position:w,Mk:p,Mm:S}}; szr=function(p,a){a=g.Q0(p.S,{w$:a},(l,y)=>l.w$-y.w$); return a>=0?p.S[a]:null}; wfh=function(p){const a=[];if(p.L.reason==="m"||p.L.reason==="s")return a;if(UpE(p.r7)){for(let l=Math.max(0,p.K-2);l{gk[a]&&delete gk[a]}),p.length=0)}; g.qY=function(p,a,l,y){Array.prototype.splice.apply(p,YQ(arguments,1))}; g9Z=function(p){const a=p.L?.bannerData?.itemData;return p.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&!a?.priceReplacementText&&a?.promotionText?a?.promotionText.content:null}; Ykr=function(p){const a=g.m5("html5-video-player");a&&g.OW(a,"ytp-ad-display-override",p)}; fe=function(p,a){var l=p.adCpn||p.provider.videoData.clientPlaybackNonce,y=p.provider.getCurrentTime(l);g.vy(p,a,"cmt",[y.toFixed(3)]);l=y=p.provider.bG(l);if((!p.S||p.provider.Y.A("html5_shorts_gapless_no_gllat")&&D6(p.provider.videoData)?0:l*1E3>p.S.NU+100)&&p.S){l=p.S.isAd;y=y*1E3-p.S.NU;p.uj=a*1E3-p.S.zS-y-p.S.Mx;var S=(0,g.h)()-y;a=p.uj;y=p.provider.videoData;var n=y.isAd();if(l||n){n=`${l?"ad":"video"}_to_${n?"ad":"video"}`;var V={};y.D&&(V.cttAuthInfo={token:y.D,videoId:y.videoId});V.startTime= S-a;JM(n,V);g.ew({targetVideoId:y.videoId,targetCpn:y.clientPlaybackNonce},n);KU("pbs",S,n)}else S=p.provider.Lz.L0(),S.D!==y.clientPlaybackNonce?(S.X=y.clientPlaybackNonce,S.S=a):y.Yn()||g.tX(new g.Qm("CSI timing logged before gllat",{cpn:y.clientPlaybackNonce}));p.Xu("gllat",{l:p.uj.toFixed(),prev_ad:+l});delete p.S}}; g.qkv=function(){return g.VI()&&(g.IW("ps4 vr")||g.IW("ps4 pro vr"))}; lb=function(p){const a=p.policy.X&&p.loader?.Cw();var l=p.loader.getCurrentTime()||0;l=L8h(p,l);if(p.policy.jo&&p.loader.isSeeking()){var y=p2(p.videoTrack,l);p.loader.Xu("asmtfnctv",{b:l,a:y});isNaN(y)||(l=y)}y=p.loader.oo()||0;l+=y;y=HG(p.videoData)||g.aC(p.videoData);let S=0;a?(y&&(S=Number.MAX_SAFE_INTEGER),p.videoData.w7&&(S=Math.ceil(p.videoData.QY*1E3))):S=Math.ceil(l*1E3);return Math.min(Number.MAX_SAFE_INTEGER,S)}; FZ=function(p,a){return p===void 0||p==="undefined"?!0:p===a}; y$=function(p){return!!p.lM?.postId&&p.api.getPresentingPlayerType()!==2}; fQO=function(p,a){if(p.Jg){var l=p.Jg.gP();if(l.length!==0){if(p.U&&a){var y=p.U,S=y.info.X;!Dq(l,S)&&y.info.C>0&&(0,g.h)()-p.C<5E3&&(p.logger&&p.logger({dend:y.info.HZ()}),l=J9q(l,S,S+.01))}p.policy.GM&&p.logger&&p.logger({cbri:`${p.L}`});y=[];for(var n=S=0;S=V){const w={...p.WZ[n]};var z=p.r7.U.get(Sh(p.WZ[n].formatId)),d=Math.max(Z,V);V=z.index.ov(d+ p.S/1E3);Z=z.index.getStartTime(V);var G=V+ +(Math.abs(Z-d)>p.S/1E3);d=G+p.j;G=z.index.getStartTime(G)*1E3;n!==p.L||a?(w.WG=d,w.startTimeMs=G):(p.logger&&p.logger({pEvict:"1",og:w.startTimeMs,adj:Z*1E3}),w.WG=V+p.j,w.startTimeMs=Z*1E3);V=p.U?.info.duration||11;n===p.L&&Bp.S/1E3);V=Z+p.j;z=z.index.F$(Z)*1E3;w.XF=V;w.durationMs=z-w.startTimeMs;w.WG<=w.XF&&y.push(w)}cp.previousQuality)return 1;if(p.quality4&&p.jl.shift()}; g.GI=function(p,a,l){a&&a.cpn&&g.tX(new g.Qm("CPN provided in VideoData update",{hFY:a.cpn,Iv:p.clientPlaybackNonce,vyI:l}));if(l)oC(a),p.setData(a),zI(p)&&p.hG();else{a=a||{};Vl$(p,a);dl(p,a);if(l=a.raw_reel_item_watch_response)p.reelItemWatchResponse=l;ZoO(p,a);p.publish("dataupdated")}}; cT=function(p,a,l,y,S,n,V,Z,z){var d=R4(p,l);n=d?1:n;Z=!!Z||n===3;d=z&&!d;(n===2||d)&&PA(p)&&(a=p.DI,l=a[rD]|0);p=$9(a,S,V);var G=p===wW?7:p[rD]|0,B=LU(G,l);if(z=!(4&B)){var c=p,w=l;const X=!!(2&B);X&&(w|=2);let v=!X,I=!0,u=0,m=0;for(;u{l.dispose()}):(p.L.pop(),a?.dispose())}; dwA=function(p){return typeof p==="undefined"?"-1":String(Math.ceil(p/1048576))}; g.wl=function(p){return az(p)==="shortspage"}; GFr=function(p,a,l){var y=a.S?a.S.L.gG:a.L.gG;var S=p.j,n;(n=!p.policy.mZ)||(n=tZ(32,y.L)===tZ(37,y.S));n?y=!1:(S=$O(S,tZ(32,y.S)),n=6E4*S.j**1.6,(0,g.h)(){K2(l.name);eh(()=>l.callback(...a)); bb(l.name)})}; xwh=function(p,a,l){p.updateValue("text",a);if(l){a:{switch(l){case "PREMIUM_STANDALONE":a=EU();break a;case "PREMIUM_STANDALONE_CAIRO":a=XvM();break a}a=void 0}p.updateValue("icon",a)}for(const y of p.C.getAnimations())y.cancel();p.C.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",()=>{p.updateValue("text","");p.updateValue("icon","")})}; ub=function(p){const a=IC();switch(a){case 1:RC.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:RC.performance.mark(`${p}-start`);break;case 0:break;default:bF(a,"unknown trace type")}}; Fmr=function(p){return document.featurePolicy?.allowedFeatures().includes("attribution-reporting")?p+"&nis=6":p+"&nis=5"}; kO=function(p,a){const l=a*4294967296+(p>>>0);return Number.isSafeInteger(l)?l:OV(p,a)}; Kme=function(){var p=EpM;const a=C8q(function(l){p.apply(void 0,arguments);vpo(a)}); return a}; MV=function(p,a){p.L.set(a.Q2,a);const l=p.U.get(a.Q2);if(l)try{l.Dw(p.resolve(a.Q2))}catch(y){l.ZD(y)}}; boO=function(p){return{MZ:r3(p,1),items:ma(p,2,epE),ED:r3(p,3)}}; I6E=function(p){return p.rG!==void 0}; WT=function(p,a){for(const l of a)a=l[1],l[0]===1?p.G(g.tT(a.namespace),a):p.G(g.jh(a.namespace),a)}; Rp$=function(p){const a=g.HT("LOGGED_IN",function(l){p.apply(void 0,arguments);g.DC(a)})}; usr=function(p,a){p.botguardData=a.playerAttestationRenderer.botguardData;a=a.playerAttestationRenderer.challenge;a!=null&&(p.v8=a)}; ib=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; YJ=function(p,a,l,y){const S=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER");return Oor(p,S,a,l,y)}; kFM=function(p){p.Sl=p.X.length?Nh(p.X,a=>a.x$()):!1}; MlO=function(p,a){p.element.classList.toggle("ytp-volume-popover-hovering",a);p.isVisible=a;(p=p.element.closest(".ytp-chrome-bottom"))&&p.classList.toggle("ytp-volume-popover-showing",a)}; TI=function(p){TI[" "](p);return p}; mwv=function(p){const a=/codecs="([^"]*)"/.exec(p.mimeType);return a&&a[1]?a[1]+" ("+p.itag+")":p.itag}; tle=function(){var p=g.mm.__SAPISID||g.mm.__APISID||g.mm.__3PSAPISID||g.mm.__1PSAPISID||g.mm.__OVERRIDE_SID;if(p)return!0;typeof document!=="undefined"&&(p=new NV(document),p=p.get("SAPISID")||p.get("APISID")||p.get("__Secure-3PAPISID")||p.get("__Secure-1PAPISID"));return!!p}; jWr=function(p,a,l){if(!p.jO||p.uc==-1||a.S===-1||p.jO.S===-1)return 0;p=a.S-p.jO.S;return p>l?0:p}; UV=function(p,a){return g.Oc(()=>{const l=sV(a);return p in l})()}; Wmr=function(){try{const p=ND(Q$);E3(p,"removeEventListener","ready",Wmr);Hor(p)}catch(p){eZ.UD(541,p,void 0,void 0)}}; hT=function(p,a){return g.Nx(a,p.S).join(",")}; Dw$=function(){const p=g.mm.navigator;return p?p.connection:void 0}; $v=function(p){p.v9>8?AT(p,p.rd):p.v9>0&&(p.Qh[p.pending++]=p.rd);p.rd=0;p.v9=0}; ioM=function(p,a,l,y){a={W:"span",A9:y,V:[a]};let S;y="ytp-swatch-color";if(p.N||p.X)y="ytp-swatch-color-white";l==="highres"?S="8K":l==="hd2880"?S="5K":l==="hd2160"?S="4K":l.indexOf("hd")===0&&l!=="hd720"&&(S="HD");S&&(a.V.push(" "),a.V.push({W:"sup",T:y,yY:S}));return a}; NJZ=function(){if(gl!==void 0)return gl;YO=!0;return gl=TJq().then(p=>{YO=!1;if(qV()?.S()){var a={hasSucceededOnce:JT()?.hasSucceededOnce||p};qV()?.set("LAST_RESULT_ENTRY_KEY",a,2592E3,!0)}return p})}; sWq=function(p,a,l){const y=p.Rc[a],S=g.f2[a];return ioM(p,y?y.qualityLabel:S?`${S}p`:"Autom\u00e1tica",a,l)}; g.Uwq=async function(p){const a=await g.dt();if(!a)throw g.tl("ri");return g.hs(await g.pW(a),["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},l=>{const y=IDBKeyRange.bound(p+"|",p+"~");return l.objectStore("index").getAll(y).then(S=>S.map(n=>n?n.format:{}))})}; dv=function(){return iz||Tw?!!KA&&KA.brands.length>0:!1}; ay=function(p,a){return p==a?!0:p&&a?p.top==a.top&&p.right==a.right&&p.bottom==a.bottom&&p.left==a.left:!1}; hpr=function(p,a,l,y,S,n,V,Z,z,d,G,B){if(!lq(l))return new N("Invalid PlayerBytesAdLayoutRenderer");const c=yC(l);if(c instanceof N)return c;const w={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,qO:"core"};var X=g.K(l.renderingContent,ST);if(!X)return new N("Invalid rendering content for DAI media layout");X=nW(X,!1);G={Ih:X,D_:0,Fa:G,rZ:Math.min(G+X.videoLengthSeconds*1E3,B),O9:new VC(0,[X.videoLengthSeconds])};a=QWM(a,l,G,S,Number(l.driftRecoveryMs)??void 0);if(a instanceof N)return a;p={...w,...y,Xh:c,renderingContent:l.renderingContent,clientMetadata:new L0(a),ao:Yv(n,p)(w),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData};return(S=Zd(V,p,S,z,n,d,Z,void 0,!0))?S instanceof N?S:{layout:p,ZI:S}:new N("Expecting associatedInPlayerSlot")}; PKh=function(p,a,l){const y=new Promise((S,n)=>{try{const V=a(p);l&&p.commit();V.then(Z=>{S(Z)}).catch(n)}catch(V){n(V),p.abort()}}); return Promise.all([y,p.done]).then(([S])=>S)}; AFE=function(p){return-((p.X.offsetWidth||(p.frameCount-1)*p.D*p.scale)-p.L/2)}; g.dE=function(p,a,l){return g.hs(p,[a],{mode:"readwrite",nx:!0,commit:oy()},y=>g.zg(y.objectStore(a),l))}; qQo=function(p){let a=p.baseUrl;gpM(a)||p.error("drm.net",2,"t.x");if(!Gg(a,"fexp")){const l=["23898307","23914062","23916106","23883098"].filter(y=>p.Y.experiments.experiments[y]); l.length>0&&(p.X.fexp=l.join())}for(const l of Object.keys(p.X))a=YQo(a,l,p.X[l]);return a}; JFE=function(p){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(p.L.index.KU()),averageByteRate:Math.round(p.L.info.Q7)}}; g.HA=function(p){return BW(document,p)}; pHv=function(p){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in f6O))return!1;p=p.split(RegExp("[:&]"));var a=f6O.FLAG_AUTO_CAPTIONS_DEFAULT_ON;const l="f"+(1+Math.floor(a/31)).toString();a=1<>>0&255);p.L.push(a>>>8&255);p.L.push(a>>>16&255);p.L.push(a>>>24&255)}; V2F=function(p){p.provider.videoData.googleRemarketingUrl&&!p.Ws&&(CW(p,p.provider.videoData.googleRemarketingUrl),p.Ws=!0)}; vW=function(){return{W:"div",T:"ytp-spinner-container",V:[{W:"div",T:"ytp-spinner-rotator",V:[{W:"div",T:"ytp-spinner-left",V:[{W:"div",T:"ytp-spinner-circle"}]},{W:"div",T:"ytp-spinner-right",V:[{W:"div",T:"ytp-spinner-circle"}]}]}]}}; KW=function(){var p=g.mm;const a=[];let l=null,y;do{y=p;if(hP(y)){var S=y.location.href;l=y.document&&y.document.referrer||null}else S=l,l=null;a.push(new Z0M(S||""));try{p=y.parent}catch(n){p=null}}while(p&&y!==p);for(let n=0,V=a.length-1;n<=V;++n)a[n].depth=V-n;y=g.mm;if(y.location&&y.location.ancestorOrigins&&y.location.ancestorOrigins.length===a.length-1)for(p=1;p0&&(p.U=null,p.L.set(jT(p,a),g.WW(l)),p.S=p.S+l.length)}; $CZ=function(p,a,l){rlh([{settingItemId:a,settingOptionValue:l}]);HW(p.SE(),y=>{wHr(y,a,l)})}; var SWO=function(){return lF[r[12]](this,62)}; Dd=function(p,a){return Y3(p,a,l=>l.S)}; NL=function(p,a,l,y,S){const n=p.Tn,V=p.videoData;V.S=l;const Z=g.iq(p);l=new Tg(V,l,a,Z?Z.itag:"",y);p.Y.experiments.Cz("html5_refactor_sabr_video_format_selection_logging")?(l.videoId=S,p.Pe=l):n.qoe&&Rk(n.qoe,l);S=p.XP;S.S=0;S.L=0;p.publish("internalvideoformatchange",V,a==="m")}; U0=function(p){const a=s0.EXPERIMENT_FLAGS;return a?a[p]:void 0}; PBr=function(p,a){return p.B.A("delhi_modern_web_player_icons")?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:a?{W:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{W:"g",Z:{transform:"translate(96, -96) scale(0.8)"},V:[{W:"path",EC:!0,Z:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:QC()}; $H=function(p,a){if(a===void 0){const l=Lue();for(let y=0;y{(y=p.G.get(y))&&g.hn(p.client,a,y,l)}),p.j.clear(),p.G.clear(),p.N=void 0}; xCF=function(p,a,l,y,S,n,V,Z){if(!(!isNaN(Number(S.timeoutSeconds))&&S.text&&S.ctaButton&&g.K(S.ctaButton,g.gA)&&S.brandImage&&S.backgroundImage&&g.K(S.backgroundImage,An)&&g.K(S.backgroundImage,An)?.landscape))return new N("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:S});const z=S.timeoutSeconds*1E3,d=B=>YJ(p,B,y,G),G=(B,c)=>{var w=B.slotId; B=V(B);w=d$(a.S.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",w);return qh(a,w,c,l,B,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new XHM(S),n],S.adLayoutLoggingData)}; return B=>{var c=B.slotId,w={impressionCommands:S.impressionCommands,completeCommands:S.timeoutCommands,skipCommands:S.dismissCommands};B=V(B);c=gE(a,c,l,z,w,new Map,B,d,void 0,zL(a,l,S.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));w=new YK(c.eB);B=new qL(Z);return{Dg:{layoutId:c.layoutId,layoutType:c.layoutType,Xh:c.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:c.qO, clientMetadata:new L0([...c.k8,w,B]),ao:c.ao,adLayoutLoggingData:c.adLayoutLoggingData},VP:[],BW:c.layoutExitMuteTriggers,GH:c.layoutExitUserInputSubmittedTriggers,ux:c.layoutExitUserCancelledTriggers,ZI:c.ZI}}}; g.Jn=function(p,a,l,y){p=y||p;return(a=a&&a!="*"?String(a).toUpperCase():"")||l?p.querySelectorAll(a+(l?"."+l:"")):p.getElementsByTagName("*")}; fW=function(p){return FuM[p]||"LATENCY_ACTION_UNKNOWN"}; vCr=function(p){if(g.o4(g.wQ(p)))return!1;if(p.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;let a;try{a=new g.pr(p)}catch(l){return g.y_(ECF,y=>p.search(y)>0)!=null}return a.D.match(CBr)?!0:g.y_(ECF,l=>p.match(l)!=null)!=null}; Kuo=function(){const p=g.mm.performance;return p&&p.now&&p.timing?Math.floor(p.now()+p.timing.navigationStart):g.eB()}; lY=function(){return g.an&&g.IW("version/")}; eLO=function(p,a){p=a.gX()==1?p.L:p.S;const l=yy(p,y=>y==a); return l!=-1?(p.splice(l,1),a.Je&&a.Je.unobserve(),a.dispose(),!0):!1}; b0F=function(p,a){if(p.L==0)if(p.U){var l=p.U;if(l.S){var y=0,S=null,n=null;for(let V=l.S;V&&(V.j||(y++,V.L==p&&(S=V),!(S&&y>1)));V=V.next)S||(n=V);S&&(l.L==0&&y==1?b0F(l,a):(n?(y=n,y.next==l.j&&(l.j=y),y.next=y.next.next):I0$(l),dCr(l,S,3,a)))}p.U=null}else Sg(p,3,a)}; nr=function(p,a){const l=p.S[a],y=l[1];p.U+=l[0];y>0&&p.L[a]==0&&(p.L[a]=1)}; xh=function(){return wv("Safari")&&!(LA()||(dv()?0:wv("Coast"))||or()||(dv()?0:wv("Edge"))||PE()||(dv()?BE("Opera"):wv("OPR"))||XO()||wv("Silk")||wv("Android"))}; RLA=function(p,a){if(p.L){a=Math.floor(a*.4);a=Math.max(a,47);var l=a+2;if(p.U!==l){p.U=l;p.S.height=l;p.L.clearRect(0,0,1,l);var y=p.L.createLinearGradient(0,2,0,2+a),S=a-42;y.addColorStop(0,"rgba(0, 0, 0, 0)");y.addColorStop(S/a,"rgba(0, 0, 0, 0.3)");y.addColorStop(1,"rgba(0, 0, 0, 0.68)");p.L.fillStyle=y;p.L.fillRect(0,2,1,a);p.element.style.height=`${l}px`;try{p.element.style.backgroundImage=`url(${p.S.toDataURL()})`}catch(n){}}}}; zD=function(p,a,l,y){const S=y!==void 0;y=!!y;var n=ut(Ok),V;!S&&n&&(V=p[n])&&C7(V,wkA);n=[];var Z=p.length;let z;V=4294967295;let d=!1;const G=!!(a&64),B=G?a&128?0:-1:void 0;a&1||(z=Z&&p[Z-1],z!=null&&typeof z==="object"&&z.constructor===Object?(Z--,V=Z):z=void 0,!G||a&128||S||(d=!0,V=(Vy??Zu)(V-B,B,p,z,void 0)+B));a=void 0;for(var c=0;c=V){const X=c-B;(a??(a={}))[X]=w}else n[c]=w}if(z)for(let w in z){Z=z[w];if(Z==null||(Z=l(Z,y))==null)continue; c=+w;let X;G&&!Number.isNaN(c)&&(X=c+B)=0?Date.now()-cg-dd:-1;const l=GD?Date.now()-cg-B0:-1,y=c0>=0?Date.now()-cg-c0:-1;let S;if(p==947190542)return 100;if(p==79463069)return 200;p=[2E3,4E3];S=[250,500,1E3];eZ.UD(637,Error(),.001,void 0);let n=a;l!=-1&&l1500&&y<4E3?500:V}; kLr=function(p,a,l){return l.layoutId!==lk(p,a,l)?(Q("onSkipRequested for a PlayerBytes layout that is not currently active",p.qc(),p.ZV()),!1):!0}; g.tl=function(p,a,l){const y=JT();return new g.Q6("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:a,version:l,hasSucceededOnce:y?.hasSucceededOnce}})}; rd=function(p){return!(!p||!p[M2r])}; mCf=function(p){var a=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!a)return new wd(p);var l=a.split(",");if(l.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wd(p);a=l.slice(1);a.length===1&&a[0]===""&&(a=[]);l=Number(l[0]);return isNaN(l)||l<0||l>a.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new wd(p)):new wd(p,l,a)}; jvM=function(p,a,l,y=!1){a=g.nU("web_fp_via_jspb")?Object.assign({},a):a;g.nU("use_cfr_monitor")&&t2O(p,a);g.nU("use_request_time_ms_header")?a.headers&&S_(p)&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.h)()))):a.postParams?.requestTimeMs&&(a.postParams.requestTimeMs=Math.round((0,g.h)()));l&&Object.keys(a).length===0?g.Fj(p):a.compress?a.postBody?(typeof a.postBody!=="string"&&(a.postBody=JSON.stringify(a.postBody)),AY(p,a.postBody,a,g.$Y,y)):AY(p,JSON.stringify(a.postParams), a,P0,y):g.$Y(p,a)}; g.yo=function(p,a,l){for(const y in p)a.call(l,p[y],y,p)}; DCO=function(p,a){if(p.isDrm()){if(a.info.L.info.bC()){var l=new UW(g.N7(a));if(yn(l,[408125543,374648427,174,28032,25152,20533,18402])){var y=mT(l,!0);l=y!==16?null:Lr(l,y)}else l=null;y="webm"}else a.info.N=dDq(g.N7(a)),l=WuE(a.info.N),y="cenc";l&&l.length&&(l=new Xq(l,y),p.policy.I_&&g.Ta(a.info.L.info)&&(y=H0Z(g.N7(a)))&&(l.S=y),l.bC=a.info.L.info.bC(),a.L&&a.L.cryptoPeriodIndex&&(l.cryptoPeriodIndex=a.L.cryptoPeriodIndex),a.L&&a.L.S&&(l.L=a.L.S),p.loader.eK(l))}}; Fq=function(p,a){a+=p.Wk();if(p.playback.getVideoData().nh()){a:{var l=p.L;p=a*1E3;for(y of l.S)if(l=y.kS?y.kS*1E3:y.Dy,p>=y.Dy-1E3&&p<=l+y.durationMs+1E3)break a;var y=void 0}y={Fq:y,Ve:a}}else y=xY(p,a),y?.Fq||(y=xY(p,a,1));return y?.Fq}; i0q=function(){return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; N$M=function(){var p=Dw$();if(p){var a=T$q[p.type||"unknown"]||"CONN_UNKNOWN";p=T$q[p.effectiveType||"unknown"]||"CONN_UNKNOWN";a==="CONN_CELLULAR_UNKNOWN"&&p!=="CONN_UNKNOWN"&&(a=p);if(a!=="CONN_UNKNOWN")return a;if(p!=="CONN_UNKNOWN")return p}}; svh=function(p,a){for(var l,y,S,n=p.window;;){if(p.Pa<=258){E6(p);if(p.Pa<=258&&a===0)return 1;if(p.Pa===0)break}p.BX=0;if(p.Pa>=3&&p.bM>0&&(y=p.bM-1,l=n[y],l===n[++y]&&l===n[++y]&&l===n[++y])){for(S=p.bM+258;l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&l===n[++y]&&yp.Pa&&(p.BX=p.Pa)}p.BX>=3?(l=Cr(p,1,p.BX-3),p.Pa-=p.BX,p.bM+=p.BX,p.BX=0):(l=Cr(p,0,p.window[p.bM]),p.Pa--,p.bM++);if(l&&(LN(p,!1),p.oX.Sa===0))return 1}p.q3=0;return a=== 4?(LN(p,!0),p.oX.Sa===0?3:4):p.y9&&(LN(p,!1),p.oX.Sa===0)?1:2}; QvZ=function(p,a,l){a=g.Nx(a,y=>new UCA(y,l,y.id)); g.v0(p.B,"onAdUxUpdate",a)}; g.ei=function(p){return g.CP(p)||FJ(p)==="TV_UNPLUGGED_CAST"||Kr(p)}; bY=function(p,a,l){for(const y in p.L){const S=eg(p.L[y].info.mimeType)||p.L[y].info.n1();l===S&&p.L[y].index?.UO(a)}}; In=function(p,a){const l=!!p.L;p.L=a;p.L?(l||(p.events.J(p.api,"videodatachange",()=>{In(p,p.api.XG())}),p.events.J(p.api,"progresssync",p.onProgress),p.events.J(p.api,"appresize",p.j)),p.frameIndex=NaN,Rn(p),p.fade.show(200)):(l&&g.uY(p.events),p.fade.hide(),p.fade.stop())}; hLE=function(p){if(!p.api.getVideoData()?.Ic()){var a=O6(p);kY(p,a,p.N,Math.max(a.S,p.N),"HOVER_PROGRESS");var l=MT(p,a.L*p.N,!0),y=MT(p,a.U,!0);for(let S=l;S<=y;S++)g.OW(p.L[S].U,"ytp-hover-progress-light",a.S>p.N);g.OW(p.DF,"ytp-scrubber-button-hover",l===y&&p.L.length>1);p.api.A("web_player_heat_map_played_bar")&&p.j[0]?.K(a.S)}}; gCZ=function(p){if(!p)return AlE||(AlE=new m3(0,0));if(!/^\d+$/.test(p))return null;pa(p);return new m3(a1,yB)}; mT=function(p,a){let l=tw(p);if(l===1){l=0;for(a=0;a<7;a++)l=l*256+tw(p);return l}let y=128;for(let S=0;S<6&&y>l;S++)l=l*256+tw(p),y*=128;return a?l-y:l}; Y$r=function(p){p=p.j;if(!p)return"";let a=jg("uap",p.platform)+jg("uapv",p.platformVersion)+jg("uafv",p.uaFullVersion)+jg("uaa",p.architecture)+jg("uam",p.model)+jg("uab",p.bitness);p.fullVersionList&&(a+="&uafvl="+encodeURIComponent(p.fullVersionList.map(l=>encodeURIComponent(l.brand)+";"+encodeURIComponent(l.version)).join("|"))); p.wow64!=null&&(a+="&uaw="+Number(p.wow64));return a.slice(1)}; H0=function(){if(!W0.instance){const p=g.o1("yt.networkRequestMonitor.instance")||new W0;g.eo("yt.networkRequestMonitor.instance",p);W0.instance=p}return W0.instance}; Ik=function(p,a){p.VY||(Du(p,"fcnz",`${a}`),p.VY=!0)}; Dx=function(p,a,l,y={},S,n,V,Z={value:0}){n=q$h(n);y=iY(y,V,z=>{g.nU("start_client_gcf")&&g.XY.zD(async()=>{await $wo(z)}); Z.value--;Z.value||l()},()=>{Z.value--; Z.value||l()},S); y.headers["Content-Type"]="application/json+protobuf";y.postBodyFormat="JSPB";y.postBody=p;g.TD(a,n,"",y);NT=!1}; g.yA=function(p,a){a=Array.prototype.indexOf.call(p,a,void 0);let l;(l=a>=0)&&g.s6(p,a);return l}; Jlr=function(p,a){if(p instanceof U6)return p.DI;if(Array.isArray(p))return xH(p,a,!1)}; lm$=function(p,a,l){let y;l&&(p.isActive(),l=new f0M(p),y=new pyA(l));return new amv({xhr:p,s0:y},a)}; g.kn=function(p,a,l,y,S){if(y&&y.once)return Qy(p,a,l,y,S);if(Array.isArray(a)){for(let n=0;n=a.mediaTime?(a.resolve([a.mediaTime,a.id]),p.L.delete(a.id)):(a.delay.dispose(),l=(a.mediaTime-l)*1E3/p.Lz.getPlaybackRate(),a.delay=new g.SF(()=>{YY(p,a)},l/2),a.delay.start()))}; yKr=function(p,a,l,y){if(p)return p.apply(a,y);if(g.qT&&document.documentMode<10){if(!a[l].call)throw Error("IE Clobbering detected");}else if(typeof a[l]!="function")throw Error("Clobbering detected");return a[l].apply(a,y)}; nFr=function(p,a,l,y=[],S,n){const V=Jw(p.S.get(),a);if(V){var Z=p.Gn.get().Fb(a,l),z=fr(p,pi(V),V,S,n);y.forEach((d,G)=>{d.baseUrl&&(p.U.send(d.baseUrl,z,Z,d.attributionSrcMode),d.serializedAdPingMetadata&&p.Io.j("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,V,new Sh$(d,G),void 0,void 0,V.adLayoutLoggingData))})}else Q("Trying to track from an unknown layout.",void 0,void 0,{layoutId:a, trackingType:l})}; Qy=function(p,a,l,y,S){if(Array.isArray(a)){for(let n=0;n1)return aX(p,p.L-1);if(p.policy.K)return aX(p,p.L+1)}return p.L}; zfZ=function(p,a,l){a=lQ(a);a!=null&&yd(p,l,oFE(a))}; wyO=function(p,a){if(p.endpoint==="log_event"){SQ(p);var l=ni(p),y=dUv(p.payload)||"",S=GJf(y),n=200;if(S){if(S.enabled===!1&&!g.nU("web_payload_policy_disabled_killswitch"))return;n=B3F(S.tier);if(n===400){cKM(p,a);return}}Vd[l]=!0;l={cttAuthInfo:l,isJspb:!1,tier:n};ZO().storePayload(l,p.payload);rKv(a,!1,l,oX(y))}}; $UM=function(){const p=["metadata_type_ad_action_interstitial_renderer"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_ENDCAP"]}}; Xy$=function(p,a,l,y,S,n,V,Z){const z=H8(p.MO.get(),1);if(PWe(p.EO.get())){const d=d6(p.S.get(),l,y,S,z.clientPlaybackNonce,z.t3,z.daiEnabled,z,n,V);LTq(p,d);Cv(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>d,a)}else Cv(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>d6(p.S.get(),l,y,S,z.clientPlaybackNonce,z.t3,z.daiEnabled,z,n,V,Z),a)}; bXA=function(p,a){const l=g.Gu(p);var y=p.O();const S=y.X;y=y.A("html5_shorts_onesie_mismatched_fix");const n=p.Yn();if(y){if(!S.S){if(n&&Br)return Br;if(cr)return cr}}else if(cr&&!S.S)return cr;const V=[],Z=[],z={};var d=r6.concat(xUo);y&&(d=r6.concat(FTA));p.A("html5_early_media_for_drm")&&(d=d.concat(EFq),p.A("allow_vp9_1080p_mq_enc")&&d.push(CWZ));const G=[...vFM];p.A("html5_iamf_audio_onesie_fmt")&&G.push(["773"]);for(var B of d){d=!1;for(const w of B){var c=w6(w,n&&y);if(!c||!c.video)continue; if(c.L()&&!l.jl&&c.video.qualityOrdinal>l.a7)continue;const X=g.ak(p.O().experiments,"html5_drm_byterate_soft_cap");X>0&&KTf(c)&&c.Sb>X||(d?(V.push(w),$2(w,V,p)):(c=Z6(l,c,S),c===!0?(d=!0,V.push(w),$2(w,V,p)):z[w]=c))}}for(const w of G)for(const X of w)if((B=efZ(X))&&B.audio&&(p.A("html5_onesie_51_audio")||!B.D()))if(B=Z6(l,B,S),B===!0){Z.push(X);$2(X,Z,p);break}else z[X]=B;if(!p.A("html5_enable_audio_quality_setting")){p=["141","774"];for(const w of p)Z.includes(w)&&(g.yA(Z,w),z[w]="blkhqa")}l.S&& a("orfmts",z);if(y)return S.S&&(S.S=!1,Br=cr=void 0),n?Br={video:V,audio:Z}:cr={video:V,audio:Z};cr={video:V,audio:Z};S.S=!1;return cr}; uZq=function(p,a=!1){Imf(p)&&(a=Rfr(p,a),p.L.push(a),p.Bs?.S(p.r7.UO),p.C>0&&p.Ws.k0++)}; OXh=function(){C$();const p=bn.document;return!!(p&&p.body&&p.body.getBoundingClientRect&&typeof bn.setInterval==="function"&&typeof bn.clearInterval==="function"&&typeof bn.setTimeout==="function"&&typeof bn.clearTimeout==="function")}; Sw=function(p){return Math.round(Pr()+p)}; g.vy=function(p,a,l,y){Du(p,l,`${a.toFixed(3)}:${y.join(":")}`)}; g.TD=function(p,a,l,y){!g.R("VISITOR_DATA")&&a!=="visitor_id"&&Math.random()<.01&&D0(new g.Qm("Missing VISITOR_DATA when sending innertube request.",a,l,y));if(!p.isReady())throw p=new g.Qm("innertube xhrclient not ready",a,l,y),g.Wp(p),p;const S={headers:y.headers||{},method:"POST",postParams:l,postBody:y.postBody,postBodyFormat:y.postBodyFormat||"JSON",onTimeout:()=>{y.onTimeout()}, onFetchTimeout:y.onTimeout,onSuccess:(d,G)=>{if(y.onSuccess)y.onSuccess(G)}, onFetchSuccess:d=>{if(y.onSuccess)y.onSuccess(d)}, onProgress:d=>{if(y.onProgress)y.onProgress(d)}, onError:(d,G)=>{if(y.onError)y.onError(G)}, onFetchError:d=>{if(y.onError)y.onError(d)}, timeout:y.timeout,withCredentials:!0,compress:y.compress};S.headers["Content-Type"]||(S.headers["Content-Type"]="application/json");l="";var n=p.config_.CD;n&&(l=n);n=p.config_.F8||!1;const V=kJf(n,l,y);Object.assign(S.headers,V);S.headers.Authorization&&!l&&n&&(S.headers["x-origin"]=window.location.origin);const Z=Jf(`${l}${`/${"youtubei"}/${p.config_.innertubeApiVersion}/${a}`}`,{alt:"json"}),z=(d=!1)=>{try{if(d&&y.retry&&!y.networklessOptions.bypassNetworkless)S.method="POST",y.networklessOptions.writeThenSend? Li().writeThenSend(Z,S):Li().sendAndWrite(Z,S);else if(y.compress){const G=!y.networklessOptions.writeThenSend;if(S.postBody){let B=S.postBody;typeof B!=="string"&&(B=JSON.stringify(S.postBody));AY(Z,B,S,g.$Y,G)}else AY(Z,JSON.stringify(S.postParams),S,P0,G)}else g.nU("web_all_payloads_via_jspb")?g.$Y(Z,S):P0(Z,S)}catch(G){if(G.name==="InvalidAccessError")D0(Error("An extension is blocking network request."));else throw G;}}; g.o1("ytNetworklessLoggingInitializationOptions")&&MjE.isNwlInitialized?NJZ().then(d=>{z(d)}):z(!1)}; mUM=function(p,a,l,y,S){var n=p.r7;var V=p.policy.L,Z=!1,z=-1;for(const B in n.L){var d=eg(n.L[B].info.mimeType)||n.L[B].info.n1();if(y===d)if(d=n.L[B].index,d.NJ(a.Gm)){{Z=d;var G=a;const c=Z.U(G.Gm);c&&c.startTime!==G.startTime?(Z.segments=[],Z.G(G),Z=!0):Z=!1}Z?z=a.Gm:!a.pending&&V&&(G=d.getDuration(a.Gm),G!==a.duration&&(n.publish("clienttemp","mfldurUpdate",{itag:n.L[B].info.itag,seg:a.Gm,od:G,nd:a.duration},!1),d.G(a),Z=!0))}else d.G(a),Z=!0}z>=0&&n.publish("clienttemp","resetMflIndex",{[y? "v":"a"]:z},!1);n=Z;cPq(p.Hi,a,y,n);p.policy.Ic&&p.policy.S&&(V=a.S5||null)&&(z=p.S?.Rc().requestNumber,p.Sl?.D(V,z,a.Gm));p.U.m5(a,l,y,S);a.Gm===p.r7.aM&&n&&XC(p.r7)&&a.startTime>XC(p.r7)&&(p.r7.QY=a.startTime+(isNaN(p.timestampOffset)?0:p.timestampOffset),p.Hi.isSeeking()&&p.Hi.targetTime{g.OW(l.L,"ytp-exp-chapter-hover-container",!p.lM)})}; vr=function(p,a,l){if(l&&l!==p.slotType)return!1;for(const y of a)if(!Ci(p.clientMetadata,y))return!1;return!0}; iXr=function(p,a){const l=[];if(!a)return l;for(const y of a)y!=null&&(a=y.nodeType,a===1||a===3?l.push(y):y&&typeof y.W==="string"?l.push(p.createElement(y)):y.element?l.push(y.element):typeof y==="string"&&y.indexOf("\n")!==-1?y.split("\n").forEach((S,n)=>{n>0&&l.push(g.HA("BR"));l.push(g.Ki(S))}):l.push(g.Ki(y))); return l}; T3O=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{W:"path",Z:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{W:"path",Z:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; skM=function(){let p=null;if(!N3r)return p;try{const a=l=>l; p=N3r.createPolicy("goog#html",{createHTML:a,createScript:a,createScriptURL:a})}catch(a){}return p}; AKv=function(p,a,l,y,S,n,V,Z){const z=UUq(),d=new eQ({veType:a,youtubeData:n,jspbYoutubeData:void 0});n=bQ({},z);S&&(n.cttAuthInfo=S);S={csn:z,pageVe:d.getAsJson()};g.nU("expectation_logging")&&Z&&Z.screenCreatedLoggingExpectations&&(S.screenCreatedLoggingExpectations=Z.screenCreatedLoggingExpectations);l&&l.visualElement?(S.implicitGesture={parentCsn:l.clientScreenNonce,gesturedVe:l.visualElement.getAsJson()},V&&(S.implicitGesture.gestureType=V)):l&&g.tX(new g.Qm("newScreen() parent element does not have a VE - rootVe", a));y&&(S.cloneCsn=y);p?IX("screenCreated",S,p,n):g.i0("screenCreated",S,n);RX(Qkq,new hfr(z));uQ.clear();OS.clear();k2.clear();return z}; MH=function(p){return p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?!p.disabled&&(!p.hasAttribute("tabindex")||gFe(p)):p.hasAttribute("tabindex")&&gFe(p)}; Yhf=function(p){ml=p}; fmF=function(p,a){if(window.fetch&&a.format!=="XML"){var l={method:a.method||"GET",credentials:"same-origin"};a.headers&&(l.headers=a.headers);a.priority&&(l.priority=a.priority);p=qhr(p,a);var y=JKo(p,a);y&&(l.body=y);a.withCredentials&&(l.credentials="include");var S=a.context||g.mm,n=!1,V;fetch(p,l).then(Z=>{if(!n){n=!0;V&&g.tO(V);var z=Z.ok,d=G=>{G=G||{};z?a.onSuccess&&a.onSuccess.call(S,G,Z):a.onError&&a.onError.call(S,G,Z);a.onFinish&&a.onFinish.call(S,G,Z)}; (a.format||"JSON")==="JSON"&&(z||Z.status>=400&&Z.status<500)?Z.json().then(d,()=>{d(null)}):d(null)}}).catch(()=>{a.onError&&a.onError.call(S,{},{})}); p=a.timeout||0;a.onFetchTimeout&&p>0&&(V=g.jQ(()=>{n||(n=!0,g.tO(V),a.onFetchTimeout.call(a.context||g.mm))},p))}else g.$Y(p,a)}; ltq=function(p){return Wr(p.slot,p.EO.get())?new p8M(p):new atA(p)}; pvf=function(p,a){if(!p.Fu){var l=Fb(p,"start",E$());l=p.vj.L(l).L;var y={id:"lidarv"};y.r=a;y.sv="968";Xb!==null&&(y.v=Xb);Hr(l,(S,n)=>y[S]=S=="mtos"||S=="tos"?n:encodeURIComponent(n)); a=t_O();Hr(a,(S,n)=>y[S]=encodeURIComponent(n)); a="//pagead2.googlesyndication.com/pagead/gen_204?"+NG(sX(new UX,y));ydq(a);p.Fu=!0}}; SXM=function(p,a){a&&!p.j&&(DO(p),p.U=null,p.L.forEach(function(l,y){const S=y.toLowerCase();y!=S&&(this.remove(y),g.clo(this,S,l))},p)); p.j=a}; iQ=function(p,a,l){let y;const S=new Promise(n=>{y=setTimeout(n,a)}); return Promise.race([p.finally(()=>void clearTimeout(y)), S.then(l)])}; dGA=function(p,a,l){try{if(p.nz())throw new gr(21,"BNT:disposed");if(!p.L&&p.S)throw p.S;return nZO(p,a,l)??VaF(p,a,l)??ZOe(p,a,l)}catch(y){if(!a.VA)throw oZO(p,y);return zZo(p,l,y)}}; GEh=function(p,a){a.yO&&p.yO.push.apply(p.yO,a.yO);a.ai&&p.ai.push.apply(p.ai,a.ai)}; Tu=function(p){this.Yp=p}; rdv=function(p){var a="true".toString(),l=[B8f`data-`];if(l.length===0)throw Error("");if(l.map(y=>{if(y instanceof cdF)y=y.L;else throw Error("");return y}).every(y=>"data-loaded".indexOf(y)!==0))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); p.setAttribute("data-loaded",a)}; w8r=function(p,a){return a.split(".")[0]!==""&&p.api.getVideoData()?.Mu()}; Pne=function(p){$Ge(p.sO.get(),!0);p.shrunkenPlayerBytesConfig?.shouldRequestShrunkenPlayerBytes&&p.sO.get().CE(!1)}; Ve=function(p){return p.data["Cuepoint-Type"]?new NH(-(Number(p.data["Cuepoint-Playhead-Time-Sec"])||0),Number(p.data["Cuepoint-Total-Duration-Sec"])||0,p.data["Cuepoint-Context"],p.data["Cuepoint-Identifier"]||"",LQh[p.data["Cuepoint-Event"]||""]||"unknown",(Number(p.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; X8h=function(p,a,l,y,S){sS(l,a);y=bQ({cttAuthInfo:US(a)||void 0},a);l={csn:a,ve:l.getAsJson(),eventType:1};S&&(l.clientData=S);a==="UNDEFINED_CSN"?Qd("visualElementShown",y,l):p?IX("visualElementShown",l,p,y):g.i0("visualElementShown",l,y)}; FQq=function(p,a){return p.Gm!==a.Gm&&a.Gm!==p.Gm+1||p.type!==a.type?!1:Hi(p,a)?!0:Math.abs(p.X-a.X)<=1E-6&&p.Gm===a.Gm?!1:xGo(p,a)}; Y2=function(p,a,l,y){let S,n;const V=l.NP;p[a]=(Z,z,d)=>V(Z,z,d,n||(n=hO(AO,g6,Y2,y).lF),S||(S=EZo(y)))}; BA=function(p,a,l,y,S){const n=[];Bf(p,(V,Z)=>{(V=G6(V,a,l,y,S))&&n.push(`${Z}=${V}`)}); return n.join(a)}; j4=function(p,a){return new g.qH(new JO((l,y)=>{const S=()=>{const n=p?a(p):null;n?n.then(V=>{p=V;S()},y):l()}; S()}))}; vZM=function(p){if(!p.element)return!1;const a=p.element,l=p.S.L.U;var y=QH().L.L;p.j=new l.IntersectionObserver(a8(y,S=>fi(p,S)),Cnf); y=a8(y,()=>{p.j.unobserve(a);p.j.observe(a);fi(p,pG(p))}); l.ResizeObserver?(p.jl=new l.ResizeObserver(y),p.jl.observe(a)):l.MutationObserver&&(p.Sl=new g.mm.MutationObserver(y),p.Sl.observe(a,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));p.j.observe(a);fi(p,pG(p));return!0}; KQh=function(p,a){p.configData=a;g.eo("yt.gcf.config.coldConfigData",p.configData||null)}; Itf=function(p,a,l,y,S){a=eZA(a,l,y,S);(l=g.x3(p.Y)&&!p.Y.N)&&!p.TM&&(a.fetch=0);al(p,a);g.x3(p.Y)&&p.QQ.tick("ep_a_pr_s");if(l&&!p.TM)l=p.EE(),bOr(l,a).then(n=>{p.BY=!0;l6(p,n)}); else p.playlist.onReady(()=>{yT(p)}); g.x3(p.Y)&&p.QQ.tick("ep_a_pr_r")}; g.IE=function(p){return p.indexOf("?")!==-1?(p=(p||"").split("#")[0],p=p.split("?",2),cd(p.length>1?p[1]:p[0])):{}}; uWv=function(p,a,l={}){return RZO(p,a,!1,l)}; OOA=function(p,a){const l=p.L.length;let y=0;for(const S of p.L)if(S.width!==0)if(a>S.width)a-=S.width,a-=Sm(p),y++;else break;return y===l?l-1:y}; kEZ=function(p,a){W8(p.uT.get(),"ads_imp",`acpn.${H8(p.MO.get(),2)?.clientPlaybackNonce};clr.${a}`)}; oC=function(p){var a=p.docid||p.video_id||p.videoId||p.id;if(a)return a;a=p.raw_player_response;a||(p=p.player_response)&&(a=JSON.parse(p));return a&&a.videoDetails&&a.videoDetails.videoId||null}; iY=function(p,a,l,y,S){p={retry:!0,onSuccess:l,onError:y,networklessOptions:p,dangerousLogToVisitorSession:a,Mbl:!!S,headers:{},postBodyFormat:"",postBody:"",compress:g.nU("compress_gel")||g.nU("compress_gel_lr")};RP()&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.h)())));return p}; MaM=function(p,a){const l=!g.nG(p,a);g.OW(p,a,l)}; Fb=function(p,a,l){var y=p.AV[a];if(y!=null)return y;y=hde(p,a);const S=VT(Zs,n=>n==a); p=mGE(p,y,y,l,tar[Zs[S]]);a=="fully_viewable_audible_half_duration_impression"&&(p.std="csm");return p}; ol=function(p,a,l,y){for(let S=0;S{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; DGr=function(p){const a=Math.max(p.videoTrack.j.U||0,p.audioTrack.j.U||0);HOv(p.videoTrack);HOv(p.audioTrack);p.policy.X||Rb(p.r7);p.r7.isManifestless&&!p.policy.X&&(p.L=!0,p.S=0);var l=p.loader;if(!l.policy.Ws||l.policy.Ha)l.currentTime=a;p.j=!0;p.U=new z0;return p.U}; iOe=function(p,a,l=!1){p.S||dj(p.xv,a,l)}; g.xN=function(p,a){return p.replace(T8O,function(l,y){try{let S=g.G0(a,y);if(S==null||S.toString()==null)return l;S=S.toString();if(S==""||!g.o4(g.wQ(S)))return encodeURIComponent(S).replace(/%2C/g,",")}catch(S){}return l})}; Ba=function(p){return g.lz(N8E(),p)}; Qgf=function(p){var a;if((a=p[sgM])!=null)p=a;else{if(ca!==ca)throw Error();p=p[sgM]=UGr(p.L)}return p}; fN=function(p){p.S=NaN;p.D=NaN;p.Bs=NaN;p.j=null;p.Sl=null;p.X=null;p.w7=!1;p.N=!1;p.Hs=0;p.Ws.stop();p.Rc.stop()}; n0=function(p){let a=0;for(const l of p.questions)(p=g.K(l,rj)||g.K(l,wj))&&(a+=p.surveyAdQuestionCommon?.durationMilliseconds||0);return a}; Ad$=function(p,a,l,y){if(p)if(Array.isArray(p)){var S=y;for(y=0;y500));y++);y=S}else if(typeof p==="object")for(S in p){if(p[S]){var n=S;var V=p[S],Z=a,z=l;n=typeof V!=="string"||n!=="clickTrackingParams"&&n!=="trackingParams"?0:(V=hZv(atob(V.replace(/-/g,"+").replace(/_/g,"/"))))?$w(`${n}.ve`,V,Z,z):0;y+=n;y+=$w(S,p[S],a,l);if(y>500)break}}else l[a]=Pa(p),y+=l[a].length;else l[a]=Pa(p),y+=l[a].length;return y}; gZv=function(p,a,l,y,S,n){const V={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,qO:"core"};a=LG(p,a,l);return a instanceof N?a:(l=g.K(p.renderingContent,Xz))&&l.pings?{...V,renderingContent:p.renderingContent,Xh:xw(l.pings),...a,ao:Yv(y,S)(V),clientMetadata:new L0([new GL(Fz(n))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}:new N("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; EA=function(p,a){return a===void 0||a===null?p:a==="1"||a===!0||a===1||a==="True"?!0:!1}; va=function(p,a){for(const l in a)if(CG(a[l])){if(l in p&&!CG(p[l]))throw Error("Cannot merge an object into a non-object.");l in p||(p[l]={});va(p[l],a[l])}else if(KG(a[l])){if(l in p&&!KG(p[l]))throw Error("Cannot merge an array into a non-array.");l in p||(p[l]=[]);YXM(p[l],a[l])}else p[l]=a[l];return p}; VK=function(p,a){if(g.em(p.U,a))return p.U[a];if(p=p.L[a])return p.getValue()}; Il=function(p,a){if(p.policy.Rc&&p.Kz){var l=a?p.Kz?.L:p.Kz?.S;const y=a?p.audioTrack:p.videoTrack;a=b6(y);a?.isLocked&&(p.Lz.O().Mc()&&p.Xu("eosl",{unlock:a.info.HZ()}),y.Ws?.stop(),a.isLocked=!1,y.JJ(a),qXr(p.L,a.info),l=l?.Qz(),l?.HZ()!==a.info.HZ()&&p.Xu("oue",{bls:l?.HZ(),tls:a.info.HZ()}))}}; I0$=function(p){let a=null;p.S&&(a=p.S,p.S=a.next,a.next=null);p.S||(p.j=null);return a}; Jdq=function(p){var a,l,y=p.length,S=0;for(a=0;a>>6:(n<65536?Z[l++]=224|n>>>12:(Z[l++]=240|n>>>18,Z[l++]=128|n>>>12&63),Z[l++]=128|n>>> 6&63),Z[l++]=128|n&63);return Z}; Ocq=function(p,a){let l=0;wde(p,function(y,S){a.call(void 0,y,S,p)&&g.s6(p,S)&&l++})}; g.P2=function(p,a,l,y,S=!1,n={}){g.hn(p,a,l,[y],S,n)}; ScA=function(p,a){var l=lb(p);if(p.policy.L1){var y=p.jl;var S=p.w7}else y=Rl(p,p.audioTrack),S=Rl(p,p.videoTrack);var n=[...y.WZ,...S.WZ];u6(p)&&n.push(...p.X);var V=[...y.kc,...S.kc];const Z=p.loader.AA();if(p.policy.vk&&!p.videoData.isLivePlayback){const d=p.videoData.lengthSeconds*1E3;l>=d&&p.loader.Xu("invalidSabrCmt",{cmt:l,vd:d})}l={s6:p.s6,Lz:p.Lz,r7:p.r7,WZ:n,kc:V,TV:l,nextRequestPolicy:p.S,KQ:p.videoData.Ps,mO:p.policy,X1:p.loader.E7,F4:ftE(p.loader)*1E3,iQ:p.QY?.iQ,JH:p.QY?.JH,zw:p.zw, Vq:Number(p.U.j?.info.itag)||0,OR:Number(p.U.X?.info.itag)||0,V8:Z,YQ:p.Lz.Oq()};n=p.loader.C8();V=ye(n);n&&(l.mu=V);if(n=p.Lz.gM())l.vx=n*1E3;n=p.U;V=n.UO;if(n.mO?.VY()&&!V)for(z of n.U)if(z.rG){V=!0;break}var z=n.mO.VY()&&!V?[]:pZM(n,n.U);l.vn=z;z=p.U;z.mO.VY()&&!z.N?z=[]:(n=a1$(z),n.length===0&&(n=z.D),z=pZM(z,n));l.Gu=z;l.tQ=u6(p)?[p.D]:void 0;p.policy.S1&&(l.gs=l1h(p.loader,p.audioTrack),l.Br=l1h(p.loader,p.videoTrack));if(p.policy.S)if(z=p.loader.getCurrentTime(),y=OA(p,y.WZ,z),S=OA(p,S.WZ, z),S=Math.min(y,S),u6(p)&&(y=OA(p,p.X,z),p.Lz.Mc()&&y0&&p.L[0].cV()&&(l.zE=p.L[0].Xf());a?l.B1=1:p.loader.isSuspended&&(l.B1=4);return l}; nJZ=function(p,a){p=p.L.get(a);return p?(p=p.Km())?{YT_ERROR_CODE:p.hY.toString(),ERRORCODE:p.s4.toString(),ERROR_MSG:p.errorMessage}:{}:{}}; Z7$=function(p,a,l){g.kw(p.provider.Y,p.provider.videoData.G()).then(y=>{var S=!1;a.includes("&dt=")||a.includes("&cotn=")?S=!0:p.provider.Y.A("qoe_with_networkless")&&(S=!0);const n=p.provider.Y.A("qoe_send_and_write");var V=p.provider.Y;y=MJ(a,V,p.provider.Y.pageId,p.provider.Y.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,y);V.A("html5_simplify_pings")&&(y=y||{});y?(y.method="POST",y.postBody=l,mh(a,y,{token:p.provider.videoData.D,qL:p.provider.videoData.kT,mdxEnvironment:p.provider.videoData.mdxEnvironment}, V,void 0,S,n&&p.w7)):S?(S=p.provider.Y.A("networkless_ajax"),V={method:"POST",postBody:l},n&&p.w7?Li().sendAndWrite(a,V):S?g.$Y(a,{method:"POST",postBody:l}):Li().sendThenWrite(a,V)):Vce(a,l)})}; zxr=function(p){oJ$(p.L,a=>a.Dy>=-1&&a.w$<=Infinity)}; jm=function(p,a){return tV(p,p.state&~a,null,null)}; dhE=function(p){if(p.Lz.getVideoData().isLivePlayback)return!1;var a=p.Lz.mB();if(!a)return!1;a=a.getDuration();if(p.Kz&&p.Kz.L&&p.Kz.S){var l=p.getCurrentTime(),y=p.Kz.L.gP();p=p.Kz.S.gP();y=y?ab(y,l):l;l=p?ab(p,l):l;l=Math.min(y,l);a=isNaN(l)?!1:l>=a-.01}else a=!1;return a}; GWq=function(p){p&&(p.dataset?p.dataset[Dpq()]="true":rdv(p))}; Ha=function(p,a,l){try{if(p){if(!a.top)return new Wa(-12245933,-12245933,-12245933,-12245933);a=a.top}const {height:S,width:n}=BA$(p,a,l);if(n===-12245933)return new Wa(n,n,n,n);var y=qU(a.document);const {x:V,y:Z}=JK(y.L);return new Wa(Z,V+n,Z+S,V)}catch{return new Wa(-12245933,-12245933,-12245933,-12245933)}}; g.Ds=function(p,a){g.Oc(()=>{g.Ir(a,l=>{cqF(void 0,p,l)})})()}; i6=function(p,a,l){a.startSecs+=isNaN(p.K)?0:p.K;p=p.r7;p.w7.push(a);p.publish("cuepointsadded",l)}; rqE=function(p){p&&T0&&NJ()&&(T0.clearMarks(`goog_${p.label}_${p.uniqueId}_start`),T0.clearMarks(`goog_${p.label}_${p.uniqueId}_end`))}; g.wZr=function(p){const a=p.creation;p=p.expiration;return!!p&&pg.eB()}; Lnf=function(p,a,l,y,S,n,V,Z){p=$hO(p,l,n,V,y,z=>{var d=z.slotId;z=Z(z);d=d$(a.S.get(),"LAYOUT_TYPE_FORECASTING",d);const G={layoutId:d,layoutType:"LAYOUT_TYPE_FORECASTING",qO:"core"},B=new Map,c=S.impressionUrls;c&&B.set("impression",c);return{layoutId:d,layoutType:"LAYOUT_TYPE_FORECASTING",Xh:B,layoutExitNormalTriggers:[new w$(a.L,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new Pm$(S), new GL(l)]),ao:z(G)}}); return p instanceof N?p:[p]}; XZF=async function(p,...a){g.vT();for(const l of p){let y;P8M(()=>{K2(l.name);const S=eh(()=>l.callback(...a)); Gv(S)?y=g.nU("web_lifecycle_error_handling_killswitch")?S.then(()=>{bb(l.name)}):S.then(()=>{bb(l.name)},n=>{window.onerror?.(n.message,"",0,0,n); bb(l.name)}):bb(l.name)}); y&&await y}}; FnE=async function(p){if(!p.PX)throw g.tl("clearSWHealthLogsDb");xhq(p.PX).catch(a=>{p.handleError(a)})}; bz=function(p,a=!1,l=!1,y=!1){if(!p)return null;switch(p.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return l?{W:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:sA();case "CHECK_BOX":return{W:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{W:"path",Z:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{W:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{W:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.S4();case "INFO_OUTLINE":return a?{W:"svg",Z:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},V:[{W:"path",Z:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: EJM();case "REMOVE_CIRCLE":return{W:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{W:"path",Z:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return UA();case "SKIP_NEXT_NEW":return y?Cmf():{W:"svg",Z:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{W:"path",Z:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return vJr(); case "DISLIKE":return KnA();default:return g.tX(new g.Qm("Unexpected icon:",p)),null}}; RZO=async function(p,a,l,y){var S=Error().stack??"";const n=await g.dt();if(!n)throw a=g.tl("openDbImpl",p,a),g.nU("ytidb_async_stack_killswitch")||(a.stack=`${a.stack}\n${S.substring(S.indexOf("\n")+1)}`),wE(a),a;Gw(p);S=l?{actualName:p,publicName:p,userIdentifier:void 0}:a0M(p);try{return await exF(S,n),await b7f(S.actualName,a,y)}catch(V){try{await ci(S.actualName,n)}catch{}throw V;}}; I1Z=function(p){const a=[];for(let l=0;l{let S,n;try{p.xE&&p.xE.L?(n=p.xE.start(a.toString(),3),S=l(),p.xE.end(n)):S=l()}catch(V){let Z=p.HY;try{rqE(n),Z=p.S(a,new Rxo(QT(V)),void 0,y)}catch(z){p.UD(217,z)}if(!Z)throw V;}return S})()}; hV=function(p,a,l,y){const S=l.length;for(;(a=p.indexOf(l,a))>=0&&a=p.U&&p.j()}; Xg=function(p){return p&128?AV:void 0}; Mcr=function(){return{W:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{W:"path",Z:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z", fill:"white"}}]}}; gj=function(p,a,l,y,S){let n=p.X.get(l);if(!n){if(n=Fq(p,a))return n;a=p.Uo(l-1,y??2);if(S)return p.eb({misscue:S,sq:l,type:y,prevsstate:a?.e3,prevrecord:p.X.has(l-1)}),p.X.get(l-1);if(a?.e3===2)return p.eb({adnf:1,sq:l,type:y,prevrecord:p.X.has(l-1)}),p.X.get(l-1)}return n}; g.Yw=function(p){return!!p.L&&mhM(p.L)}; qJ=function(p,a){return p.state.L(a)&&!p.oldState.L(a)?1:!p.state.L(a)&&p.oldState.L(a)?-1:0}; JV=function(p){return p.B.O().experiments.Cz("html5_preload_ads")}; tcZ=function(p){return!(p.isMinimized()||p.isInline()||p.isBackground()||p.N0()||p.AG()||p.tG()||p.n0())}; jae=function(p,a){const l=[];for(const y of p.Ag.values())y.trigger instanceof fG&&y.trigger.slotId===a&&l.push(y);l.length>=1&&p1(p.L(),l)}; y2=function(p,a,l){const y=WnM(p,a);return y?new g.AU(async(S,n)=>{const V=(await y).X(a,l,$n);V?(a_(V.input),n=V.RI?.mode==="cors"?"cors":void 0,n=p.L.pX?Lv(p,V.config,n):await H7o(p,V.config,n),S(KP(p,V,n))):n(new g.Qm("Error: Failed to build request for command.",a))}):l3(new g.Qm("Error: No request builder found for command.",a))}; i7r=function(p,a){if(p.playback.getVideoData().nh()){var l=p.L.L.get(a);if(l){for(var y of l){l=p;const S=l.S.get(y.cpn);l.S.delete(y.cpn);S&&l.playback.removeCueRange(S);DhF(l.L,y)}p.X.clear();p=p.L;y=p.L.get(a)??[];for(const S of y)DhF(p,S);p.L.delete(a)}}}; NAh=function(){this.L=new TAe;this.S="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; Uho=function(p,a){return(p=saZ(p,a*1E3))?a-p.start/1E3:a}; QaF=function(p){return p?(p=p.privateDoNotAccessOrElseSafeScriptWrappedValue)?T6(p):null:null}; Mh=function(p){p=p||"";const a=hxM();a[p]&&delete a[p];const l=SC(),y={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};l.push(y);a[p]=y}; gJe=function(p){const a=Hf(p.L)>>>0;return Aqe(p.L,a)}; fF=function(p,a,l){p.Y.Ws&&(p.i_=a,a.muted||n1(p,!1),l&&p.Y.storeUserVolume&&!p.Y.Ba&&(l={volume:Math.floor(a.volume),muted:a.muted},l.unstorable||(g.V2("yt-player-volume",l),g.V2("yt-player-volume",l,2592E3))),OL(p),l=g.TF&&p.mediaElement&&!p.mediaElement.jE(),p.Y.Ba&&!l||g.ZN(p.pz,"onVolumeChange",{muted:a.muted,volume:a.volume,unstorable:!p.Y.storeUserVolume}))}; Yce=function(p){const a=window;a.ywc||(a.ywc={});var l=a.ywc[p];if(l)return l;l={};return a.ywc[p]=l}; qc$=function(p){const a=jj(p);let l=NY(p,"position"),y=l=="fixed"||l=="absolute";for(p=p.parentNode;p&&p!=a;p=p.parentNode)if(p.nodeType==11&&p.host&&(p=p.host),l=NY(p,"position"),y=y&&l=="static"&&p!=a.documentElement&&p!=a.body,!y&&(p.scrollWidth>p.clientWidth||p.scrollHeight>p.clientHeight||l=="fixed"||l=="absolute"||l=="relative"))return p;return null}; o_=function(p,a,l){p.S!==a&&(p.Xu("sdai",{setsst:a,old:p.S,r:l}),p.S=a)}; US=function(p){return JqE()[p]}; f1r=function(p){Object.keys(p).forEach(a=>{const l=p[a];if(typeof l(void 0,{type:zj})==="undefined")throw Error(`The slice reducer for key "${a}" 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 l(void 0,{type:`@@redux/PROBE_UNKNOWN_ACTION${d0()}`})==="undefined")throw Error(`The slice reducer for key "${a}" returned undefined when probed with a random type. `+ `Don't try to handle '${zj}' 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.");})}; g.Gj=function(){return g.mm.ytPubsubPubsubInstance}; p4Z=function(p){p=p.S;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null}; a_o=function(p,a=""){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,a))return!0}catch(l){}return!1}; l_E=function(p){p.then(()=>{},()=>{})}; J=function(p){return new yIv(p)}; nDo=function(p,a,l,y,S,n,V){const Z=new g.Bj;Sno.push(Z);a&&Z.listen("complete",a);Z.ez("ready",Z.z8);n&&(Z.UO=Math.max(0,n));V&&(Z.G=V);Z.send(p,l,y,S)}; VvA=function(p){return p?decodeURI(p):p}; Ke=function(p,a,l,y){let S=p.DI,n=S[rD]|0;a=ZhA(S,n,a,l,y);if(a==null)return a;n=S[rD]|0;if(!R4(p,n)){const V=MQ(a);V!==a&&(PA(p)&&(S=p.DI,n=S[rD]|0),a=V,n=wD(S,n,l,a,y),hN(S,n))}return a}; g.$m=function(p){var a=cj(p);return a=="array"||a=="object"&&typeof p.length=="number"}; oDq=function(p){if(g.pA(p))for(const a in p)a==="html_content"||gM(a,"_html")?p[a]=yU(p[a]):oDq(p[a])}; BrO=function(p){if(p.started&&!p.nz()){p.j.stop();var a=p.Lz.getPlayerState();a.L(32)&&p.K.start();var l=zOM(p),y=p.isEnded(a,l),S=[],n=[];for(var V of p.S)V.active&&(y?V.end<0x8000000000000:!V.contains(l))&&n.push(V);S=S.concat(r0(p,n));V=n=null;y?(a=w0(p.L,0x7ffffffffffff),n=a.filter(Z=>Z.end<0x8000000000000),V=d4O(p.L)):a=p.U<=l&&gd(a)?G1r(p.L,p.U,l):w0(p.L,l); S=S.concat($U(p,a));n&&(S=S.concat(r0(p,n)));V&&(S=S.concat($U(p,V)));p.U=l;WT(p,S)}}; sS=function(p,a){if(g.nU("no_client_ve_attach_unless_shown")){var l=Pj(p,a);OS.set(l,!0);L1(p,a)}}; mhM=function(p){return g.AF(p.L,a=>a.info.video?a.info.video.stereoLayout===1:!1)}; cIo=function(p){const a=p.B.h9().yS();p=p.B.w3(!0,!0);return a.height-(p.height+p.top)}; Xd=function(p,a){p.U.SG=a;g.OW(p.api.getRootNode(),"ytp-probably-keyboard-focus",a);g.OW(p.contextMenu.element,"ytp-probably-keyboard-focus",a)}; Cm=function(p){if(p!=null)a:{if(!CT(p))throw xU("int64");switch(typeof p){case "string":p=Fd(p);break a;case "bigint":p=EB(C1(64,p));break a;default:p=bD(p)}}return p}; vj=function(p){let a=p;return function(){if(a){const l=a;a=null;l()}}}; SN=function(p,a,l=!1){return a>=15E3?!0:p.Tm?l?!0:p.U>0?a>=p.U/2:p.Ws>0?a>=p.Ws:!1:!1}; rIe=function(p,a,l,y,S){const n=Jw(p.S.get(),l);n?(l=fr(p,pi(n),n,void 0,void 0,y),a.hasOwnProperty("baseUrl")?p.j.send(a,l):p.U.send(a,l,{},S)):Q("Trying to ping from an unknown layout",void 0,void 0,{layoutId:l})}; w4v=function(){if(typeof MessageChannel!=="undefined"){const p=new MessageChannel;let a={},l=a;p.port1.onmessage=function(){if(a.next!==void 0){a=a.next;const y=a.UA;a.UA=null;y()}}; return function(y){l.next={UA:y};l=l.next;p.port2.postMessage(0)}}return function(p){g.mm.setTimeout(p,0)}}; $4f=function(p){if(!p.r7.va)return!0;const a=p.Lz.getVideoData();if(p.Lz.Sr())return p.Xu("ombpa",{}),!1;if(!!p.UO?.R0?.Wp!==p.r7.IX)return p.Xu("ombplmm",{}),!1;var l=a.Lx||a.liveUtcStartSeconds||a.wq;if(p.r7.IX&&l)return p.Xu("ombplst",{}),!1;if(p.r7.N)return p.Xu("ombab",{}),!1;l=Date.now();return K1(p.r7)&&!isNaN(p.Ws)&&l-p.Ws>p.policy.Gv*1E3?(p.Xu("ombttl",{}),!1):p.r7.aM&&p.r7.X||eC(a)!==0&&!p.policy.L||a.A("html5_disable_onesie_media_for_mosaic")&&a.MJ()||a.A("html5_disable_onesie_media_for_lifa_eligible")&& b3(a)?!1:!0}; X4E=function(p,a,l){p=new Pfh(p.L);p.update(a);p.update(l);a=LfF(p);p.update(p.X);p.update(a);a=LfF(p);p.reset();return a}; Ffr=function(p){x4o(()=>{const a=Vt();p.S!=null&&(a.sdk=p.S);const l=ND(ry);l.L!=null&&(a.avms=l.L.getName());return a})}; EDo=function(p,a,l,y,S){if(Array.isArray(a))for(let n=0;n{a.delay.dispose()}); p.L.clear()}; u3=function(){R_.instance||(R_.instance=new R_);return R_.instance}; vDe=function(p,a){const l=document.body||document;return g.OB(l,"click",y=>{const S=pN(y.target,n=>n===l||a(n),!0); S&&S!==l&&!S.disabled&&(y.currentTarget=S,p.call(S,y))})}; Mc=function(p,a){this.L=p===kU&&a||""}; g.y_=function(p,a,l){a=yy(p,a,l);return a<0?null:typeof p==="string"?p.charAt(a):p[a]}; mN=function(p){this.version=1;this.args=p}; Hj=function(p,a,l=!1){p.Ps=t_(p.Ps,a.video_id);p.Ye=t_(p.Ye,a.eventid);p.Ye&&(jC=p.Ye);const y=[];for(const S of Object.keys(KfM)){const n=KfM[S],V=a[n];V!=null&&(V!==p.L[n]&&y.push(n),p.L[n]=V)}!l&&y.length>0&&p.oK&&(y.sort(),g.tX(new g.Qm("Player client parameters changed after startup",y)));p.userAge=Wj(p.userAge,a.user_age);p.UY=t_(p.UY,a.user_display_email);p.userDisplayImage=t_(p.userDisplayImage,a.user_display_image);g.hx(p.userDisplayImage)||(p.userDisplayImage="");p.userDisplayName=t_(p.userDisplayName, a.user_display_name);p.OY=t_(p.OY,a.user_gender);p.csiPageType=t_(p.csiPageType,a.csi_page_type);p.csiServiceName=t_(p.csiServiceName,a.csi_service_name);p.sU=EA(p.sU,a.enablecsi);p.pageId=t_(p.pageId,a.pageid);if(l=a.enabled_engage_types)p.enabledEngageTypes=new Set(l.split(","));a.living_room_session_po_token&&(p.Me=a.living_room_session_po_token.toString())}; bhe=function(p){if(DN()&&(g.i3||Tj))p.j.push(new Nc("fairplay","com.apple.fps.1_0","",p.g7.experiments));else{var a=eOv(),l=g.y_(p.S,y=>{const S=p.U[y];let n=!1,V=!1;for(const Z in p.L[S.flavor])a(Z,y)&&(S.S[Z]=!0,n=n||Z.indexOf("audio/")===0,V=V||Z.indexOf("video/")===0);return n&&V}); l&&p.j.push(p.U[l]);p.S=[]}p.callback(p.j)}; g.VB=function(p,a,l){if(typeof a==="string")(a=Y9(p,a))&&(p.style[a]=l);else for(const S in a){l=p;var y=a[S];const n=Y9(l,S);n&&(l.style[n]=y)}}; ROe=async function(p,a){let l=void 0,y=0;for(;y<5;){if(y>0){const S=1E3*Math.pow(2,y-1)+Math.random()*1E3;await new Promise(n=>{g.wM(0,()=>{n(void 0)},S)})}try{const S=await sB(p,a); return I_M(S)}catch(S){l=S,S instanceof Error&&g.tX(S)}y++}throw l;}; Ohv=function(p){if(p==null)return p;var a=typeof p;if(a==="bigint")return String(ukO(64,p));if(CT(p)){if(a==="string")return CT(p),a=vD(Number(p)),KT(a)&&a>=0?p=String(a):(a=p.indexOf("."),a!==-1&&(p=p.substring(0,a)),p[0]==="-"?a=!1:(a=p.length,a=a<20?!0:a===20&&p<="18446744073709551615"),a||(pa(p),p=OV(a1,yB))),p;if(a==="number")return CT(p),p=vD(p),p>=0&&KT(p)||(eq(p),p=kO(a1,yB)),p}}; k1Z=function(p,a,l,y,S,n,V,Z,z,d){var G=S-y;const B=(p.fulfilledLayout||p.clientMetadata.t9("metadata_type_fulfilled_layout"))?.clientMetadata.t9("metadata_type_ssdai_ads_config")||"",c=p.clientMetadata.t9("metadata_type_triggering_cue_point")?.current?.identifier;c||Q("Cue point identifier is undefined",p,a,z());if(!G)return V.Ju(l,B,2,n,y,S,p.slotId,c),W8(d,"ads_iraot",`slid.${a.layoutId};enterMs.${y};exitMs.${S};vid.${l.video_id}`),null;G=V.e1(l,B,2,n,y,S,p.slotId,c);W8(d,"ads_atct",`slid.${a.layoutId};enterMs.${y};exitMs.${S};vid.${l.video_id};pid.${G}`); if(!G)return Q("Unexpected failure to add to playback timeline",p,a,z()),null;p=p.slotId;a=a.layoutId;G?(Z.L.has(G)&&Q("Unexpected remap of timeline playback"),Z.L.set(G,{slotId:p,layoutId:a})):Q("Invalid timeline playback ID");y+n>S&&V.wR(G,S-y);return G}; Mvr=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; m4E=function(p,a){let l=0;p.j.has(a)&&(l=p.j.get(a).qT);p.j.set(a,{qT:l+1,C$:2**(l+1)});p.S=!0}; u8=function(p){return p.keySystem==="com.microsoft.playready"}; Oor=function(p,a,l,y,S){const n=new UB(p.L,l),V=[new aa(p.L,a)];p=[new lm(p.L,a),new y5(p.L,y)];return{slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:p,qO:"core",clientMetadata:new L0([new Z1(S({slotId:a,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:p},l))]),adSlotLoggingData:void 0}}; tvZ=function(p,a){if((p=p.Lz.mB())&&(a.errorCode==="fmt.unplayable"||a.errorCode==="html5.invalidstate")){const l=p.Zd();a.details.merr=l?l.toString():"0";a.details.mmsg=p.yh()}}; h_=function(){return Q2()?KA.platform==="macOS":wv("Macintosh")}; A_=function(p,a,l,y,S){if(WM(2,p.P9))return new jhM(p,l);p=p.G9();return y?Wfr()?new HhM(p,a,l,S):new D4Z(p,a,l,S):new ihr(p,l,S)}; S_=function(p){if(!a)var a=window.location.href;const l=g.hq(p)[1]||null,y=g.TX(p);l&&y?(p=g.hq(p),a=g.hq(a),p=p[3]==a[3]&&p[1]==a[1]&&p[4]==a[4]):p=y?g.TX(a)===y&&(Number(g.hq(a)[4]||null)||null)===(Number(g.hq(p)[4]||null)||null):!0;return p}; g.YU=function(p){if(p instanceof g0)return p.L;throw Error("");}; TrM=function(p,a,l){a=a==null||typeof a==="boolean"?a:typeof a==="number"?!!a:void 0;a!=null&&(qc(p,l,0),p.L.L.push(a?1:0))}; shE=function(p,a,l){const y=a?.text?.simpleText;y&&(l=NrO(p,l,y,a?.icon,a?.secondaryIcon),a.navigationEndpoint&&l.listen("click",()=>{g.v0(p.B,"innertubeCommand",a.navigationEndpoint);p.hide()},p))}; QhM=function(p,a,l={}){const y=new Image,S=""+U4F++;J_[S]=y;y.onload=y.onerror=()=>{a&&J_[S]&&a();delete J_[S]}; l.scrubReferrer&&(y.referrerPolicy="no-referrer");y.src=p}; f1=function(p,a,l){return p.parseFromString(Rz(a),l)}; gb=function(p,a,l,y){pt(p,x1(a||g.a$,l||null,y))}; g.yD=function(){g.lH.call(this);this.L=0;this.endTime=this.startTime=null}; zH=function(p){var a=p.jb();if(a.getPlayerState().L(128))return!1;a=a.getVideoData();SM(p)&&p.Y.DF&&(nt.length&&p.zo?(fF(p,{muted:!1,volume:p.i_.volume},!1),n1(p,!1)):nt.length||p.i_.muted||(fF(p,{muted:!0,volume:p.i_.volume},!1),n1(p,!0)));SM(p)&&g.x3(p.Y)&&a.mutedAutoplay&&(fF(p,{muted:!0,volume:p.i_.volume},!1),n1(p,!0));a.YL&&fF(p,{muted:!0,volume:p.i_.volume},!1);VD(p,1,a,!1);const l=p.jb();p.pz.publish("initializingmode");p.Kg(l);p.V5(3);var y;if(!(y=!p.Y.n8)){if(y=p.qe){y=p.qe;var S=p.mediaElement; y=!!S&&S===y.mediaElement}y=y&&p.P4}y&&(p.W9(),ZB(p),l.setMediaElement(p.mediaElement));l.JT();if(l.getPlayerState().L(128))return!1;a.s2||o$(p,3);return p.P4=!0}; g.dn=function(p){return new eQ({trackingParams:p})}; hOA=function(p,a,l=!1){l&&(p.D=!0);++p.X;l=6E4*2**p.X;l=(0,g.h)()+l;p.U.set(a.info.id,l)}; L1=function(p,a){p=Pj(p,a);uQ.has(p)&&(a=uQ.get(p)||[],g.P2(a[0],a[1],a[2],a[3],!0),uQ.delete(p))}; GH=function(p,a){p=AI(p,a);return(p==null?p:Cu(p)?p|0:void 0)??0}; BB=function(p){return a=>AIM(p,a)}; cB=function(p){const a=[];for(const l of p.values())l.Vh&&a.push(l);return a}; g.bT=function(p,a){p.classList?Array.prototype.forEach.call(a,function(l){g.BM(p,l)}):g.rn(p,Array.prototype.filter.call(wn(p),function(l){return!g.tU(a,l)}).join(" "))}; hxM=function(){const p=g.o1("ytcsi.reference");if(p)return p;SC();return g.o1("ytcsi.reference")}; gDF=function(p){p.S&&(p.j=new z0,p.X.promise.then(()=>{p.QQ.Ut("pot_if");$u(p)}))}; YnM=function(p,a){p.K=a;p.U&&(p.U.U=a);p.K.WY(p.videoTrack.L.info.bC());p.X.S=p.K;p.policy.S&&(p.S.G=p.K)}; qnZ=function(p){(0,g.h)();if(mw){if(!p.body)return p;try{const a=typeof p.body==="string"?p.body:JSON.stringify(p.body);let l=a;if(typeof a==="string"){const y=tY(a);if(y!=null&&(y>jq||y{let n;S&&PB()&&(n=Lt(),XD(n,S));return g.xu(p.player.SE(n),a,"/youtubei/v1/player/ad_break").then(V=>V)})}; FD=function(p,a){p.B.cueVideoByPlayerVars(a,2)}; g.Ez=function(p,a){return p.L?p.L.getResponseHeader(a):null}; f_F=function(){return(Fh().resolve(EV(C2))?.Q8()?.loggingHotConfig?.csiConfig?.debugTicks??[]).map(p=>Object.values(p)[0])}; g.aC=function(p){return vM(p)&&!p.allowLiveDvr}; p2o=function(){var p=jgO(),a=(0,g.h)()-p.U;if(!(p.U!==0&&a-1&&(0,g.h)()-S.CR$(a,d),z={layoutId:y.Pb.inPlayerLayoutId, layoutType:"LAYOUT_TYPE_ENDCAP",qO:"core"};l={slotId:V,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:new UB(Z,p),slotFulfillmentTriggers:[new aa(Z,V)],slotExpirationTriggers:[new lm(Z,V),new y5(Z,l)]};p={...z,layoutExitNormalTriggers:[new wt(Z,p)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Xh:new Map,clientMetadata:new L0([new Jq(y.Pb),new GL(y.adPlacementConfig),S]),ao:Yv(n,l)(z), adLayoutLoggingData:y.Pb.adLayoutLoggingData};return{...l,clientMetadata:new L0([new Z1(p)])}}; gC=function(p,a,l,y,S,n){if((p&45)==p){var V=a[r[4]](r[35]);const d={};for(var Z=0;Z=p&&(p+5^28)=p&&p+6>>12&&zwM(S,V,y,2);return V}; GBq=function(){var p=[];return a=>(l,y)=>{l=a(l,y);let S=()=>{throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}; const n={getState:l.getState,dispatch:(V,...Z)=>S(V,...Z)}; y=p.map(V=>V(n)); S=d8Z(...y)(l.dispatch);return{...l,dispatch:S}}}; BME=function(p,a){for(const l in p.L)if(p.L[l].type===a)return p.L[l].status}; cfr=function(p,a){return a.reduce((l,y)=>S=>y.intercept(S,l),p)}; ZOe=function(p,a,l){const y={stack:[],error:void 0,hasError:!1};try{if(!a.P_)throw new gr(29,"SDF:notready");return kZ(y,new rfF(p.logger,0,p.state)).Gq(()=>tJ(p,a),l)}catch(S){y.error=S,y.hasError=!0}finally{w2h(y)}}; PgF=function(p){return{Li:w3(p,1),action:r3(p,2),NZ:$F(p,3,$8F)}}; TH=function(p){const a={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null};var l=p.playlist!=null&&p.playlist.Wo();l=g.jM(p.B)&&(!p.L||l);const y=p.L&&g.WB(p.B),S=LLh(p),n=p.L&&p.B.getPresentingPlayerType()===5,V=g.HB(p.B,"Siguiente","SHIFT+n");var Z=g.HB(p.B,"Anterior","SHIFT+p");if(n)a.title="Iniciar v\u00eddeo",a["tooltip-title"]="Iniciar v\u00eddeo";else if(p.U)a.title="Ver de nuevo",a["tooltip-title"]="Ver de nuevo"; else if(l){let z=null;p.playlist&&(z=g.DB(p.playlist,p.L?X2v(p.playlist):fI(p.playlist)));if(z){if(z.videoId){const d=p.playlist.listId;a.url=p.B.O().getVideoUrl(z.videoId,d?d.toString():void 0)}a.text=z.title;a.duration=z.lengthText?z.lengthText:z.lengthSeconds?g.iH(z.lengthSeconds):null;a.preview=z.uG("mqdefault.jpg")}p.L?(a.title=V,a["tooltip-title"]=V,a["data-title-no-tooltip"]="Siguiente",a["aria-keyshortcuts"]="SHIFT+n"):(a.title=Z,a["tooltip-title"]=Z,a["data-title-no-tooltip"]="Anterior", a["aria-keyshortcuts"]="SHIFT+p")}else if(y){if(Z=p.videoData?.N())a.url=Z.Zb(),a.text=Z.title,a.duration=Z.lengthText?Z.lengthText:Z.lengthSeconds?g.iH(Z.lengthSeconds):null,a.preview=Z.uG("mqdefault.jpg");a.title=V;a["tooltip-title"]=V;a["data-title-no-tooltip"]="Siguiente";a["aria-keyshortcuts"]="SHIFT+n"}a.disabled=!y&&!l&&!S&&!n;p.update(a);p.G=!!a.url;y||l||p.U||S||n?p.S||(p.S=g.Qb(p.tooltip,p.element),p.X=p.listen("click",p.onClick,p)):p.S&&(p.S(),p.S=null,p.Kt(p.X),p.X=null);p.tooltip.yT(); g.OW(p.element,"ytp-playlist-ui",p.L&&(l||p.B.A("web_hide_next_button")))}; vHq=function(p,a){x8o(p);const l=a.links||a.shareTargets;let y=0;for(let Z=0;Z{var c=z.url;if(g.N_(B)){var w={};w.target=w.target||"YouTube";w.width=w.width||"600";w.height=w.height||"600";{var X=w;X||(X={});w=window;var v=c instanceof g0?c:g.ZM(typeof c.href!="undefined"?c.href:String(c));var I=self.crossOriginIsolated!==void 0,u="strict-origin-when-cross-origin"; window.Request&&(u=(new Request("/")).referrerPolicy);var m=X.noreferrer;if(I&&m&&u==="unsafe-url")throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");u=m&&!I;c=X.target||c.target;m=[];let D=[],A=!1;for(var M in X){const $h=X[M];switch(M){case "width":case "height":case "top":case "left":m.push(M+"="+$h);break;case "target":break;case "noopener":case "noreferrer":$h?D.push(M):(A=!0,D.push(M+"=false"));break;case "attributionsrc":m.push(M+ ($h?"="+$h:""));break;default:m.push(M+"="+($h?1:0))}}M=c!==void 0&&!["_blank","_self","_top","_parent",""].includes(c);M=XO()&&M;FL$&&I&&m.length===0&&D.length>0&&!M&&!A?(D.length===2&&(D=["noreferrer"]),g.xZ(w,v,c,D[0]),w=EHO()):(I=m.join(","),sz()&&w.navigator&&w.navigator.standalone&&c&&c!="_self"?(I=g.HA("A"),g.Uz(I,v),I.target=c,u&&(I.rel="noreferrer"),((X=X.attributionsrc)||X==="")&&I.setAttribute("attributionsrc",X),X=document.createEvent("MouseEvent"),X.initMouseEvent("click",!0,!0,w,1), I.dispatchEvent(X),w=EHO()):u?(w=g.xZ(w,"",c,I),X=g.YU(v),w&&(w.opener=null,X===""&&(X="javascript:''"),X='',X=yU(X),(v=w.document)&&v.write&&(v.write(Rz(X)),v.close()))):((w=g.xZ(w,v,c,I))&&X.noopener&&(w.opener=null),w&&X.noreferrer&&(w.opener=null)))}w&&(w.opener||(w.opener=window),w.focus());B.preventDefault()}}); G.addOnDisposeCallback(g.Qb(p.tooltip,G.element));d==="Facebook"?p.api.createClientVe(G.element,G,164504):d==="Twitter"&&p.api.createClientVe(G.element,G,164505);p.J(G.element,"click",()=>{p.api.logClick(G.element)}); p.api.logVisibility(G.element,!0);p.S.push(G);y++}const n=a.more||a.moreLink,V=new g.t({W:"a",A9:["ytp-share-panel-service-button","ytp-button"],V:[{W:"span",T:"ytp-share-panel-service-button-more",V:[{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{W:"rect",Z:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{W:"path",Z:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],Z:{href:n,target:"_blank",title:"M\u00e1s"}});V.listen("click",Z=>{var z=n;p.api.logClick(p.moreButton.element);z=CgA(p,z);g.QD(z,p.api,Z)&&g.v0(p.api,"SHARE_CLICKED")}); V.addOnDisposeCallback(g.Qb(p.tooltip,V.element));p.api.createClientVe(V.element,V,164506);p.J(V.element,"click",()=>{p.api.logClick(V.element)}); p.api.logVisibility(V.element,!0);p.S.push(V);p.moreButton=V;p.updateValue("buttons",p.S)}; JM=function(p,a={}){g.Oc(()=>{tq(p);var l=a.sampleRate;if(!g.nU("web_csi_action_sampling_enabled")||l===void 0||l<=1)l=!1;else{var y=hJ(p);l=TB(y)%l!==0}l&&(AJ(p).actionDisabled=!0);gn(p||"").info.actionType=p;a.cttAuthInfo&&(AJ(p).cttAuthInfo=a.cttAuthInfo);C8(p+"TIMING_ACTION",p);g.Oc(Yu)(a.startTime,p);l={actionType:fW(p)};a.qET&&(l.previousAction=fW(g.R("TIMING_ACTION")));(y=g.c2())&&y!=="UNDEFINED_CSN"&&(l.clientScreenNonce=y);g.ew(l,p);q_(!0,p)})()}; ewA=async function(p){if(!p.ea.wpc)throw new gr(30,"NWA");if(p.L)return p.L;const a=await p.ea.wpc();p.L=new KLE(a);return p.L}; JJ=function(){const p=OQ();try{const a=p.muted;p.muted=!a;return p.muted!==a}catch{}return!1}; bPr=function(p,a,l,y){var S=p.kind;y=y?!1:!p.hideCueRangeMarker;switch(S){case "AD_PLACEMENT_KIND_START":return y={DU:new ft(-0x8000000000000,-0x8000000000000),S0:y},l!=null&&(y.XW=new ft(-0x8000000000000,-0x8000000000000)),y;case "AD_PLACEMENT_KIND_END":return y={DU:new ft(0x7ffffffffffff,0x8000000000000),S0:y},l!=null&&(y.XW=new ft(Math.max(0,a-l),0x8000000000000)),y;case "AD_PLACEMENT_KIND_MILLISECONDS":S=p.adTimeOffset;S.offsetStartMilliseconds||Q("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); S.offsetEndMilliseconds||Q("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");p=Number(S.offsetStartMilliseconds);S=Number(S.offsetEndMilliseconds);S===-1&&(S=a);if(Number.isNaN(p)||Number.isNaN(S)||p>S)return new N("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:p,offsetEndMs:S},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",S===a&&p-500<=S);y={DU:new ft(p,S),S0:y};if(l!=null){p=Math.max(0,p-l);if(p===S)return y;y.XW=new ft(p,S)}return y; default:return new N("AdPlacementKind not supported in convertToRange.",{kind:S,adPlacementConfig:p})}}; Rwf=function(){const p=ND(ry);if(p.L!=null){var a=p.L;g.Ir(pj(),l=>Izq(l,a))}}; m8A=async function(p,a){p.vZ.a4("oprgz_s");if(ugM)try{var l=await OPh(a);p.vZ.a4("oprgz_n");p.vZ.Xu("oprsgz",{i:"n"});return l}catch(V){p.vZ.Xu("gzerr",{impl:"native",err:`${V}`})}if(l=p.vZ.O().zy)try{const V=ax.Pn(),Z=l.CH(a);var y=Z??a;const z=y.byteOffset,d=y.byteLength,G=l.exports.getInflatedSize(z,d);if(G===0)throw Error("wasm_gz: bad input");const B=l.malloc(G),c=l.exports.inflateGzip(z,d,B);if(c)throw l.free(B),Error(`wasm_gz: fail${c}`);var S=new Uint8Array(l.exports.memory.buffer,B,G);Z&& l.free(Z.byteOffset);const w=l.Hr(S);ax.oz("gzwb",V,Math.ceil(w.byteLength/16));var n=w;p.vZ.a4("oprgz_w");p.vZ.Xu("oprsgz",{i:"w"});return n}catch(V){p.vZ.Xu("gzerr",{impl:"wasm",err:`${V}`})}n=ax.Pn();a=g.kBO(new g.MBM(a));ax.oz("gzjb",n,Math.ceil(a.byteLength/16));p.vZ.a4("oprgz_p");p.vZ.Xu("oprsgz",{i:"j"});return a}; rKv=function(p,a=!1,l,y=!1){p&&(lo=new p);p=g.yh("tvhtml5_logging_max_batch_ads_fork")||g.yh("tvhtml5_logging_max_batch")||g.yh("web_logging_max_batch")||100;const S=(0,g.h)(),n=yl(a,l.tier),V=n.j;y&&(n.U=!0);y=0;l&&(y=ZO().getSequenceCount(l));y>=1E3?S1({writeThenSend:!0},a,l.tier):y>=p?nj||(nj=Vl(()=>{S1({writeThenSend:!0},a,l.tier);nj=void 0},0)):S-V>=10&&(tBv(a,l.tier),n.j=S)}; yy=function(p,a,l){const y=p.length,S=typeof p==="string"?p.split(""):p;for(let n=0;n{a.name.startsWith("mark_")&<.clearMarks?.(a.name)})}; $a=async function(p,a,l,y,S,n,V,Z){if(g.cN(p)===4)return 4;const z=await g.dt();if(!z)throw g.tl("wiac");Z&&V!==void 0&&(V=await fzr(Z,V));const d=l.lastModified||"0";Z=await g.pW(z);try{return r7++,await g.hs(Z,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",nx:!0},G=>{if(n!==void 0&&V!==void 0){var B=`${p}${"|"}${a.id}${"|"}${d}${"|"}${String(n).padStart(10,"0")}`;B=g.zg(G.objectStore("media"),V,B)}else B=g.qH.resolve(void 0);var c=psv(p,a.n1());const w=psv(p,!a.n1());var X={fmts:N$({dlt:y.downloadedEndTime.toString(), mket:y.maxKnownEndTime.toString(),avbr:y.averageByteRate.toString()}),format:l||{}};c=g.zg(G.objectStore("index"),X,c);const v=y.downloadedEndTime===-1;X=v?G.objectStore("index").get(w):g.qH.resolve(void 0);const I={fmts:"music",format:{}};G=v&&S&&!a.n1()?g.zg(G.objectStore("index"),I,w):g.qH.resolve(void 0);return g.qH.all([G,X,B,c]).then(([,u])=>{r7--;let m=g.cN(p);if(m!==4&&v&&S||u!==void 0&&g.anf(u.fmts))m=1,g.w7(p,m);return m})})}catch(G){r7--; Z=g.cN(p);if(Z===4)return Z;g.w7(p,4);throw G;}}; l3=function(p){return new g.AU(function(a,l){l(p)})}; g.PN=function(p){return{fieldType:3,fieldName:p}}; lnA=function(p){return Lj(p,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; Xc=function(p,a=!1){return a&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol()}; Ff=function(p,a,l){p.appInstallData&&(a?(l=Ke(a,Sp,62)??new Sp,lX(l,6,p.appInstallData),Sl(a,Sp,62,l)):l&&(l.client.configInfo=l.client.configInfo||{},l.client.configInfo.appInstallData=p.appInstallData))}; xa=function(p,a){return E1(p,a)!=null}; gp=function(p,a,l){var y=p.split("#",2);p=y[0];y=y.length>1?"#"+y[1]:"";var S=p.split("?",2);p=S[0];S=cd(S[1]||"");for(const n in a)if(l||!g.em(S,n))S[n]=a[n];return g.Re(p,S)+y}; E_=function(p,a){g.Fc.call(this,p?p.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.L=null;p&&this.init(p,a)}; ykv=function(p,a,l,y,S){try{if(p.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");const n=l(p.state.value);n instanceof g.qH?Cj(p,a,n,y,S):y(n)}catch(n){S(n)}}; g.nP$=function(p,a,l,y){let S=p.QQ;a===2&&(S=new SOh(p.Y));return new g.vN(p.Y,a,S,p.template,(n,V,Z)=>{p.pz.publish(n,V,Z)},()=>p.pz.getVisibilityState(),p.visibility,p,p.s6,l,y)}; Vor=function(p){const a=p.api.getPlayerSize();return g.x3(p.api.O())&&a.width>=524}; Kj=function(p,a,l){p.cpn&&(a=g.Re(a,{cpn:p.cpn}));l&&(a=g.Re(a,{paired:l}));return a}; e1=function(p){p.K.textContent=`${p.L.toFixed(2)}x`;const a=p.L>2&&p.B.A("enable_web_premium_varispeed");p.N.classList.toggle("ytp-speedslider-premium-badge",a);p.N.setAttribute("aria-label",a?"Premium":"")}; g.bo=function(p,a,l,y){g.Oc(X8h)(void 0,p,a,l,y,void 0)}; ZlZ=function(p){p.S&&p.S.send();if(p.qoe){var a=p.qoe;if(a.X){a.Ch==="PL"&&(a.Ch="N");var l=g.CX(a.provider);g.vy(a,l,"vps",[a.Ch]);a.G||(a.j>=0&&a.L.set("user_intent",[a.j.toString()]),a.G=!0);a.provider.Y.Mc()&&a.Xu("finalized",{});a.w7=!0;a.reportStats(l)}}if(p.provider.videoData.enableServerStitchedDai)for(const y of p.U.values())Ix(y);else p.L&&Ix(p.L);p.dispose()}; P4=function(p,a){wr(p,a)||Rx(p,"childPlaybackIsNotPresenting");return a.w$===a.Dy+a.durationMs?a.Dy+p.app.zm().getCurrentTime()*1E3:a.w$}; oPo=function(p,a){p.Lz.Xu("sdai",{adj4t:a.toFixed(3)});p.QY=a;a+=1;p.S=a;p.U=a;uo(p).then(l=>{pI(p,l)},()=>{fN(p)})}; zye=function(){var p=g.O_.bO();if(p&&(p=p.Xl("yt-player-quality")))return p.creation}; g.ka=function(p){return p.translationLanguage?p.translationLanguage.languageCode:p.languageCode}; GX$=function(p,a,l,y){let S;S=c4(G1,l);S!==null&&S.fC!==a&&(p.K(S),S=null);S||(a=p.N(l,Date.now()-cg,!1,a),G1.S.length==0&&(QH().U=79463069),d$r([a]),S=a,S.j=U1(p),y&&(S.Ic=y));return S}; m2=function(p,a){p.M1&&MO(p);p.M1=new g.yj(a*1E3,0x7ffffffffffff);p.M1.namespace="endcr";p.addCueRange(p.M1)}; tr=function(p,a=!1){const l=rp(p);p=a?0:p.info.C;return l||p}; WuE=function(p){var a=j1(p,(y,S)=>y+S.length,0); a=new Uint8Array(a);let l=0;for(const y of p)a.set(y,l),l+=y.length;return a}; HN=function(p,a,l,y){let S=p[rD]|0;const n=Xg(S);S=WN(p,S,l,a,n);wD(p,S,a,y,n)}; yH=function(p,a){return Y3(p,a,l=>l.L)}; BW=function(p,a){a=String(a);p.contentType==="application/xhtml+xml"&&(a=a.toLowerCase());return p.createElement(a)}; DD=function(p){return p.getVideoData().enableServerStitchedDai&&!!p.Yy}; cko=async function(p){if(g.VI()&&p.X.S?.getMetrics){var a=await p.X.getMetrics();a&&(BQM(a)||(a=g.io(a)),/^[A-Za-z0-9_-]+={0,3}$/.test(a)||(a=g.K6(a,void 0,!0)),p.publish("ctmp","drm",{metrics:a}))}}; g.OB=function(p,a,l,y={}){if(!p||!p.addEventListener&&!p.attachEvent)return"";let S=rko(p,a,l,y);if(S)return S;S=++wsZ.count+"";const n=!(a!="mouseenter"&&a!="mouseleave"||!p.addEventListener||"onmouseenter"in document);let V;V=n?Z=>{Z=new $$h(Z);if(!pN(Z.relatedTarget,z=>z==p,!0))return Z.currentTarget=p,Z.type=a,l.call(p,Z)}:Z=>{Z=new $$h(Z); Z.currentTarget=p;return l.call(p,Z)}; V=g.Oc(V);p.addEventListener?(a=="mouseenter"&&n?a="mouseover":a=="mouseleave"&&n?a="mouseout":a=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(a="MozMousePixelScroll"),Pkr()||typeof y==="boolean"?p.addEventListener(a,V,y):p.addEventListener(a,V,!!y.capture)):p.attachEvent(`on${a}`,V);TK[S]=[p,a,l,V,y];return S}; LWh=function(p,a){p=p.api.getRootNode();g.OW(p,"ytp-ad-overlay-open",a);g.OW(p,"ytp-ad-overlay-closed",!a)}; qhr=function(p,a){a.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);const l=g.R("XSRF_FIELD_NAME");if(a=a.urlParams)a[l]&&delete a[l],p=Jf(p,a);return p}; NO=function(p){if(p.B.O().ej)return p.yr.get("offline")}; U_=function(p){if(p.L==null)throw Error("Storage mechanism: Storage unavailable");p.isAvailable()||s_(Error("Storage mechanism: Storage unavailable"))}; x$E=function(p,a={}){return new Xsf(p,a)}; FWE=function(p){switch(p){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}}; zf=function(p,a,l){p.v9>16-l?(p.rd|=a<>16-p.v9,p.v9+=l-16):(p.rd|=a<j4(n,l))}; EPr=function(p){return p.linearAds!=null&&Ar(p.adLayoutMetadata)}; g7=function(p,a){if(p.timelyActions)for(const l of p.timelyActions)if(l.cueRangeId===a)return l}; CkF=function(p){p=p.O();return Ya(p)&&!g.ei(p)&&p.playerStyle==="desktop-polymer"}; qO=function(p,a){p=E1(p,a);if(a=p.layout!=null)a:switch(p.L){case "rendering":case "rendering_stop_requested":a=!0;break a;default:a=!1}return a}; KW$=function(p,a){a?vPo.test(p):(p=g.IE(p),Object.keys(p).includes("cpn"))}; eyo=function(p){const a=(0,g.h)();var l=p.getCurrentTime();p=p.getVideoData();l=1E3*(l-p.startSeconds);p.isLivePlayback&&(l=0);return a-Math.max(l,0)}; RyZ=function(p,a,l,y,S,n,V){if(!l.prefetchModeConfig)return new N("AdPlacementConfig for Live Prefetch is missing prefetch_config");l=l.prefetchModeConfig;y*=1E3;const Z=[];if(!l.breakLengthMs)return new N("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(const G of l.breakLengthMs)if(Number(G)>0){var z=y+Number(l.startTimeOffsetMs),d=z+Number(l.cacheFetchSmearingDurationMs);z={DU:new ft(d,d+Number(G)),S0:!1,XW:new ft(Math.floor(z+Math.random()*Number(l.cacheFetchSmearingDurationMs)), d),cueProcessedMs:y?y:z};d=[];d.push(new blE);const B=[];B.push(new Jr(p.L));B.push(new Inr(p.L));V&&d.push(new fj);Z.push(pz(p,a,S,z,n,d,B))}return Z}; OlM=function(p,a){var l=g.o1("ytDebugData.callbacks");l||(l={},g.eo("ytDebugData.callbacks",l));if(g.nU("web_dd_iu")||u4q.includes(p))l[p]=a}; aw=function(p,a){return kXE(a.call(p))}; Xs=function(p,a,l){const y=p.Ja();if(p.isComplete()||!y||p.info.gG.So(a,l))return 0;const S=a.A3;if(!S||y{a.L=[]}); g.yo(p.U,a=>{a.L=[]})}; lp=function(p){return p.layout.clientMetadata.t9("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; wv=function(p){return g.uB(g.Vo(),p)}; m$r=function(p){return new yu({...p,gA:a=>{wh(p.F7.get(),"onAdIntroStateChange",a)}})}; Izq=function(p,a){if(p.Je){if(a.getName()===p.Je.getName())return;p.Je.dispose();p.Je=null}a=a.create(p.QZ.L,p.AP,p.x$());if(a=a!=null&&a.observe()?a:null)p.Je=a}; toE=function(p){g.Oc(S9q)("action_finished",p,void 0)}; Hlr=function(p,a){const l=a||I1(p)||p.isExternallyHostedPodcast;if(!p.L||l)return p.Xu("skipDash",{dm:!!p.L,air:a,dd:p.Vc,mss:b0(),"3pp":p.isExternallyHostedPodcast}),Sk();nz(p)&&jJE(p.L,p.isLivePlayback);return oW().then(()=>x7A(p.Qi,g.Gu(p),p.g7.X,p.L,p.X,y=>p.publish("ctmp","fmtflt",y),p.Ld,WWv(p)).then(y=>{p.wr(y); p.Qi.L=null;/^av/.test(p.clientPlaybackNonce)&&p.PZ&&p.Xu("av1",p.PZ.L)}))}; g.UZ=function(p,a){p.src=Vu(a);sk(p)}; WE=function(p,a){a=a?a.aD:!1;p.j||(p.j=Za(p.S,a));return p.j}; D$v=function(p){return g.x3(p.B.O())?p.T_:p.lU}; pz=function(p,a,l,y,S,n=[],V){const Z=fO(p.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");V||(V=[],y.XW&&y.XW.start!==y.DU.start&&V.push(new zY(p.L,l,new ft(y.XW.start,y.DU.start),!1)),V.push(new zY(p.L,l,new ft(y.DU.start,y.DU.end),y.S0)));y={getAdBreakUrl:a.getAdBreakUrl,vO:y.DU.start,kY:y.DU.end,cueProcessedMs:y.cueProcessedMs};a=new ow(p.L,Z);n=[new ilZ(y),...n];return{slotId:Z,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:V,slotExpirationTriggers:[new y5(p.L, l),new lm(p.L,Z),new zo(p.L,Z)],qO:"core",clientMetadata:new L0(n),adSlotLoggingData:S}}; g.Go=function(p,a){const l=p.L[p.L.length-1];l!==a&&(p.L.push(a),d5(p,l,a))}; NQZ=function(p,a,l,y){a.durationMs=l;a.w$=y;y={Tp:BO(l,!0),HL:l,target:null};TQM(p,a,y);wr(p,a)&&p.app.zm().getCurrentTime()*1E3>l&&(a=P4(p,a)/1E3,l=p.app.zm().getPlayerState(),Lh(p,a,{},l,"_update"))}; g.WB=function(p){const a=p.O();if(!a.zn)return!1;const l=p.getVideoData();if(!l||p.getPresentingPlayerType()===3)return!1;var y=(!l.isLiveDefaultBroadcast||a.A("allow_poltergust_autoplay"))&&!l.Ic();y=l.isLivePlayback&&(!a.A("allow_live_autoplay")||!y);const S=l.isLivePlayback&&a.A("allow_live_autoplay_on_mweb");p=p.getPlaylist();p=!!p&&p.Wo();var n=l.Hs&&l.Hs.playerOverlays||null;n=!!(n&&n.playerOverlayRenderer&&n.playerOverlayRenderer.autoplay);n=l.XX&&n;return!l.ypcPreview&&(!y||S)&&!g.tU(l.Ws, "ypc")&&!p&&(!g.x3(a)||n)}; cO=function(p){return{downloadedEndTime:Math.round(p.Fz?p.Fz.D:0),maxKnownEndTime:Math.round(p.L.index.KU()),averageByteRate:Math.round(p.L.info.Q7)}}; xU=function(p){p=Error(p);sJO(p,"warning");return p}; cj=function(p){var a=typeof p;return a!="object"?a:p?Array.isArray(p)?"array":a:"null"}; r5=function(){this.X=this.U=null;this.S=this.L=0;this.j=[];this.D=!1}; w5=function(){const p=g.o1("yt.abuse.playerAttLoader");return p&&["bgvma","bgvmb","bgvmc"].every(a=>a in p)?p:null}; g.Fc=function(p,a){this.type=p;this.currentTarget=this.target=a;this.defaultPrevented=this.S=!1}; Fz=function(p){switch(p){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; OQ=function(){let p=g.o1("yt.player.utils.videoElement_");p||(p=g.HA("VIDEO"),g.eo("yt.player.utils.videoElement_",p));return p}; ylZ=function(p,a){if(!$z(p)&&!p.nz()){if(!(p.Sl||(p.Sl=!0,p.U>0))){var l=cO(p);l=$a(p.policy.j,p.L.info,PO(p),l,p.policy.Tm);Lz(p,l)}if(a.info.type===1){if(p.Fz){Xi(p,Error("Woffle: Expect INIT slices to always start us off"));return}p.initRange=hl(0,a.S.totalLength)}else if(a.info.type===2)p.Fz&&p.Fz.type===1||Xi(p,Error("Woffle: Index before init")),p.indexRange=hl(p.initRange.end+1,a.S.totalLength);else if(a.info.type===3){if(!p.Fz){Xi(p,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(p.Fz.type===3&&!Hi(p.Fz,a.info)&&(p.C=[],a.info.Gm!==xz(p.Fz)||a.info.S!==0))return;if(a.info.j){for(const y of p.C)U$$(p,y);p.C=[]}else{p.C.push(a);p.Fz=a.info;return}}else{Xi(p,Error("Woffle: Unexpected slice type"));return}p.Fz=a.info;U$$(p,a);QJM(p)}}; YOF=async function(p){if(g.nU("start_client_gcf")||g.nU("delete_gcf_config_db"))g.nU("start_client_gcf")&&(await g.dt()&&g.rE()&&!g.nU("delete_gcf_config_db")?(p.X=!0,hyZ(p)):(AkM(p),s$(p))),g.nU("delete_gcf_config_db")&&await gPF()}; Fi=function(){return qOf||(qOf=new hB(null,tI))}; BT=function(p){return!!(2&p)&&!!(4&p)||!!(256&p)}; Cz=function(p){let a=EY(p.L,p.pos);++p.pos;if(a<128)return a;let l=a&127,y=1;for(;a>=128;)a=EY(p.L,p.pos),++p.pos,y*=128,l+=(a&127)*y;return l}; g.vO=function(p){if(!p||typeof p!=="object")return p;if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);if(p instanceof Date)return new Date(p.getTime());const a=Array.isArray(p)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(p)||p instanceof DataView?{}:new p.constructor(p.length);for(const l in p)a[l]=g.vO(p[l]);return a}; Kz=function(p,a,l,y){p.L=3;p.D="The stream is broken @"+p.C+"/"+l+". Error: "+y+". With input:\n"+a;throw Error(p.D);}; z6=function(p,a){try{return globalThis.sessionStorage.setItem(p,a),!0}catch(l){return!1}}; Eb=function(p,a){var l=N$M();l&&(p?y0(p,61,Jkr[l]):a&&(a.client.connectionType=l));g.nU("web_log_effective_connection_type")&&(l=fno())&&(p?y0(p,94,pVM[l]):a&&(a.client.effectiveConnectionType=l))}; hP=function(p){try{return!!p&&p.location.href!=null&&aiM(p,"foo")}catch{return!1}}; SZM=function(p,a,l,y,S,n,V){if(p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(V=g.K(p.renderingContent,ek))if(V=g.K(V.sidePanel,liE)){var Z={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,qO:"core"};a=LG(p,a,l);p=a instanceof N?a:{...Z,renderingContent:p.renderingContent,Xh:new Map([["impression",V.impressionPings||[]],["resume",V.resumePings||[]]]),...a,ao:Yv(y,S)(Z),clientMetadata:new L0([new GL(Fz(n))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}}else p= new N("DismissablePanelTextPortraitImageRenderer is missing");else p=new N("SqueezebackPlayerSidePanelRenderer is missing");else p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.K(p.renderingContent,yN$)?(V={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,qO:"core"},a=LG(p,a,l),p=a instanceof N?a:{...V,renderingContent:p.renderingContent,Xh:new Map,...a,ao:Yv(y,S)(V),clientMetadata:new L0([new GL(Fz(n))]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}): p=new N("CounterfactualRenderer is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?p=new N("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?p=new N("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.K(p.renderingContent,bp)?(n={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType, qO:"core"},a=LG(p,a,l),p=a instanceof N?a:V?{...n,renderingContent:p.renderingContent,Xh:new Map,...a,ao:Yv(y,S)(n),clientMetadata:new L0([new Iw(V)]),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}:new N("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):p=new N("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):p.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.K(p.renderingContent,Rw)?(n={layoutId:p.adLayoutMetadata.layoutId, layoutType:p.adLayoutMetadata.layoutType,qO:"core"},a=LG(p,a,l),p=a instanceof N?a:{...n,renderingContent:p.renderingContent,Xh:new Map([]),...a,ao:Yv(y,S)(n),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new L0([])}):p=new N("AdsEngagementPanelSectionListViewModel is missing"):p=new N(`LayoutType [${p.adLayoutMetadata.layoutType}] is invalid for PlayerUnderlaySlot`);return p}; up=function(p){return p===1701082227||p===1836019558||p===1836019574||p===1835297121||p===1835626086||p===1937007212||p===1953653094||p===1953653099||p===1836475768}; nvh=function(p){OY("play",()=>{p.api.playVideo()}); OY("pause",()=>{p.api.pauseVideo()}); OY("seekbackward",()=>{p.api.seekBy(-5*p.api.getPlaybackRate())}); OY("seekforward",()=>{p.api.seekBy(5*p.api.getPlaybackRate())}); OY("seekto",a=>{a=a.seekTime;a!=null&&p.api.seekTo(a)})}; kz=function(p,a){p.Qh[p.pending++]=a}; Ca=function(){return g.IW("cobalt")&&g.IW("appletv")}; V0$=function(p){const a=new Uint8Array(p.length);for(let l=0;l=11;p=p.api.O().G&&t5;return!(!a&&!p)}; cNq=function(){const p=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; rNF=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; g.nG=function(p,a){return p.classList?p.classList.contains(a):g.tU(wn(p),a)}; S1M=function(p){const a=p.B.getVideoData();p=p.B.O();var l=g.qkv();const y=p.A("enable_spherical_kabuki"),S=g.WO(p);if(g.HO(a))return l||y||S;if(g.Da(a))return S||l||y;if(g.ip(a))return S||l||!1;if(g.Yw(a))return S||!1;l=a.S&&a.S.video&&a.S.video.isHdr();return S&&!g.Hv(a)&&!l&&p.A("enable_webgl_noop")}; wVE=function(p){for(let a=0;a<16;++a){const l=new g.t({W:"a",T:"ytp-suggestion-link",Z:{href:"{{link}}",target:p.api.O().C,"aria-label":"{{aria_label}}"},V:[{W:"div",T:"ytp-suggestion-image"},{W:"div",T:"ytp-suggestion-overlay",Z:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{W:"div",T:"ytp-suggestion-title",yY:"{{title}}"},{W:"div",T:"ytp-suggestion-author",yY:"{{author_and_views}}"},{W:"div",Z:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration",yY:"{{duration}}"}]}]}); g.H(p,l);const y=l.d7("ytp-suggestion-link");g.VB(y,"transitionDelay",`${a/20}s`);p.U.J(y,"click",S=>{var n=a;if(p.S){var V=p.suggestionData[n],Z=V.sessionData;p.X&&p.api.A("web_player_log_click_before_generating_ve_conversion_params")?(p.api.logClick(p.L[n].element),n=V.Zb(),V={},g.To(p.api,V),n=g.Re(n,V),g.QD(n,p.api,S)):g.NX(S,p.api,p.X,Z||void 0)&&p.api.vL(V.videoId,Z,V.playlistId)}else S.preventDefault(),document.activeElement.blur()}); l.lT(p.suggestions.element);p.L.push(l);p.api.createServerVe(l.element,l)}}; Pie=function(p,a){p.QQ.tick("vta");Jl("vta",void 0,"video_to_ad");p.getCurrentTime()>0&&GGF(p.nt,p.getCurrentTime());p.mediaElement.activate(a);p.Kz&&jc(4);!p.videoData.UO&&p.playerState.isOrWillBePlaying()&&p.q$.start();$6O(p)&&(a=p.mediaElement?.audioTracks())&&(a.onchange=()=>{p.publish("internalaudioformatchange",p.videoData,!0)})}; LPE=function(){sY.instance||(sY.instance=new sY);return sY.instance}; XVe=function(p){if(p.Tm.length){var a=p.Tm,l=(y,S)=>{if(y.info.mT==="f"||a.includes(Sh(g.UY(y.info,p.r7.va))))return y;for(let n=0;n=y.timeRangeStartMillis&&aS.message.includes(n)))return new g.Q6("EXECUTE_TRANSACTION_ON_CLOSED_DB", p); if(S.name==="AbortError")return new g.Q6("UNKNOWN_ABORT",p,S.message);S.args=[{...p,name:"IdbError",fY:S.name}];S.level="WARNING";return S}; qX=function(p){p.readyState=4;p.j=null;p.U=null;p.G=null;rA(p)}; AkM=function(p){J5(p,g.R("RAW_COLD_CONFIG_GROUP"));bk(p,g.R("SERIALIZED_COLD_HASH_DATA"));KQh(p,p.L?.configData)}; g.Iiq=async function(p,a){var l;return(l=(l=g.o1("yt.aba.att"))?l:fz.instance!==void 0?fz.instance.U.bind(fz.instance):null)?l("ENGAGEMENT_TYPE_PLAYBACK",p,a):Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"})}; RBq=function(p){p.policy.zn&&(p.QY=void 0,p.zw=0)}; un$=function(){return{W:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",Z:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; W5e=function(p){var a="";const l=Object.keys(p);for(let n=0;n{let S=(0,g.h)();y&&S<=631152E6&&(p.Lz.Xu("ytnerror",{issue:28799967,value:`${S}`}),S=(new Date).getTime()+2);return S},p.Y.A("html5_validate_yt_now")),l=a(); p.L=()=>Math.round(a()-l)/1E3; p.Lz.XC()}return p.L}; t0r=function(p){switch(p){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:bF(p,"unknown transitionReason")}}; yY=function(p){var a=g.K(p,a7);if(a)return a;if((a=g.K(p,j8h))&&a.commands)return WPr(a.commands);if((a=g.K(p,HNE))&&a.commands)return WPr(a.commands);if((p=g.K(p,D6F))&&p.identifier&&p.command&&(l4||(l4=[]),!l4.includes(p.identifier)))return l4.push(p.identifier),g.K(p.command,a7)}; Tfr=function(p,a,l,y,S){if(!y.info.j)return l.length===0?l.push(y):(p=l.pop()?.D(y))?l.push(p):l.push(y),S;(l=l.pop()?.D(y))||(l=y);if(l.info.S)return p.logger&&p.logger({incompleteSegment:l.info.HZ()}),S;const {formatId:n,Gm:V,startTimeMs:Z,clipId:z,DM:d}=p.B2(l);y={clipId:z,formatId:n,startTimeMs:Z,durationMs:d,WG:V,XF:V};S=iNF(a,y.startTimeMs);l=S>=0?a[S]:null;var G;if(G=l){G=y;var B=S,c=l.startTimeMs+l.durationMs,w=G.startTimeMs+G.durationMs;if(G.startTimeMs-c>p.S)G=!1;else if(kP(p,l.formatId, G.formatId))l.durationMs=Math.max(c,w)-l.startTimeMs,l.XF=Math.max(l.XF,G.XF),G=!0;else if(Math.abs(l.startTimeMs-G.startTimeMs)<=p.S)if(l.durationMs>G.durationMs+p.S){B=l.formatId;var X=l.WG,v=l.XF;l.formatId=G.formatId;l.durationMs=G.durationMs;l.WG=G.WG;l.XF=G.XF;G.formatId=B;G.startTimeMs=w;G.durationMs=c-w;G.WG=X;G.XF=v;G=!1}else l.formatId=G.formatId,G=!0;else c>G.startTimeMs&&(c>w&&(a.splice(B+1,0,{formatId:l.formatId,startTimeMs:w,durationMs:c-w,WG:G.XF+1,XF:l.XF}),p.logger&&p.logger({splitOldStart:l.startTimeMs?.toFixed(3), splitOldEnd:c?.toFixed(3),splitNewStart:G.startTimeMs?.toFixed(3),splitNewEnd:w?.toFixed(3)})),l.durationMs=G.startTimeMs-l.startTimeMs,l.XF=G.WG-1),G=!1}G?y=l:(S+=1,a.splice(S,0,y));l=0;for(G=S+1;G=X+c.S?c=!0:v+c.S0)?a/p:NaN}; U6r=function(p,a,l={},y=!1,S=200,n=!1){var V=lo,Z=new Map;const z=new Map,d={isJspb:y,cttAuthInfo:void 0,tier:S},G={isJspb:y,cttAuthInfo:void 0};if(y){for(const B of Object.keys(Vd))a=g.nU("enable_web_tiered_gel")?ZO().smartExtractMatchingEntries({keys:[d,G],sizeLimit:1E3}):ZO().extractMatchingEntries({isJspb:!0,cttAuthInfo:B}),a.length>0&&Z.set(B,a),(g.nU("web_fp_via_jspb_and_json")&&l.writeThenSend||!g.nU("web_fp_via_jspb_and_json"))&&delete Vd[B];iX(Z,V,p,l,!1,n)}else{for(const B of Object.keys(Vd))Z= g.nU("enable_web_tiered_gel")?ZO().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:B,tier:S},{isJspb:!1,cttAuthInfo:B}],sizeLimit:1E3}):ZO().extractMatchingEntries({isJspb:!1,cttAuthInfo:B}),Z.length>0&&z.set(B,Z),(g.nU("web_fp_via_jspb_and_json")&&l.writeThenSend||!g.nU("web_fp_via_jspb_and_json"))&&delete Vd[B];s8v(z,V,p,a,l,!1,n)}}; Q8F=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; nD=function(p){const a={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(a.interpreterHash=p);return a}; Lue=function(){return Object.values(g.R("client-screen-nonce-store",{})).filter(p=>p!==void 0)}; BDo=function(p,a,l){if(!p.isSeeking())return-1;l=(l?p.videoTrack:p.audioTrack).L.index;const y=l.ov(p.targetTime);return(l.NJ(p.r7.aM)||a.Gm===p.r7.aM)&&y{a.S=0})}; dNO=async function(p,a){p=g.kw(p.O(),a.G());p=p.L?await p.L:p.getValue();fiF(a,p)}; TQ=function(p,a){for(let l=0;l{var d=z.slotId;z=Z(z);var G=y.adLayoutLoggingData;const B=new L0([new aqh(y),new GL(S)]);d=d$(l.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);const c={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",qO:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Xh:new Map,layoutExitNormalTriggers:[new y5(l.L,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:B,ao:z(c),adLayoutLoggingData:G}})]}; yXM=function(){const p=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; nWh=function(p,a,l,y){a.CPN=wu(()=>{var S;(S=p.getVideoData(1))?S=S.clientPlaybackNonce:(g.tX(Error("Video data is null.")),S=null);return S}); a.AD_MT=wu(()=>{if(y!=null)var S=y;else if(S=l,p.O().A("html5_ssap_use_cpn_to_get_time")||(S=void 0),p.O().A("enable_h5_shorts_ad_fill_ad_mt_macro")||p.O().A("enable_desktop_discovery_pings_ad_mt_macro")||g.$G(p.O())){const n=p.getPresentingPlayerType(!0);S=p.getVideoData(n)?.isAd()?Yn(p,n,S):0}else S=Yn(p,2,S);return SUr(S)}); a.MT=wu(()=>SUr(p.getCurrentTime(1,!1))); a.P_H=wu(()=>p.h9().yS().height.toString()); a.P_W=wu(()=>p.h9().yS().width.toString()); a.PV_H=wu(()=>p.h9().getVideoContentRect().height.toString()); a.PV_W=wu(()=>p.h9().getVideoContentRect().width.toString())}; oK=function(p){p=p.split("-");const a=Number(p[0]),l=Number(p[1]);if(!isNaN(a)&&!isNaN(l)&&p.length===2&&(p=new PR(a,l),!isNaN(p.start)&&!isNaN(p.end)&&!isNaN(p.length)&&p.length>0))return p}; g.NX=function(p,a,l=!1,y){const S=p.currentTarget;if(!l&&g.N_(p))return p.preventDefault(),!0;a.pauseVideo();p=S.getAttribute("href");g.LD(p,y,!0);return!1}; IQe=function(p){let a=0,l=NaN,y="";if(!p.C)return{startSeconds:a,zJ:l,source:y};p.videoData.w7?a=p.videoData.QY:vM(p.videoData)&&(a=Infinity);if(g.aC(p.videoData))return{startSeconds:a,zJ:l,source:y};p.videoData.startSeconds?(y="ss",a=p.videoData.startSeconds):p.videoData.wq&&(y="stss",a=p.videoData.wq);p.videoData.liveUtcStartSeconds&&(l=p.videoData.liveUtcStartSeconds);if(isFinite(a)&&(a>p.UE()||a2**31-1?"0":String(p)}; jB=function(){this.U=!0;this.S=0;this.L=""}; $N=function(p,a){if(p!=null)if(typeof p==="string")p=p?new hB(p,tI):Fi();else if(p.constructor!==hB)if(p!=null&&p instanceof Uint8Array)p=p.length?new hB(new Uint8Array(p),tI):Fi();else{if(!a)throw Error();p=void 0}return p}; xG=function(p,a,l){if(!isNaN(l.lx)){let y=l.lx;l.S{gk[S]&&a.apply&&typeof a.apply=="function"&&a.apply(l||window,n)}; try{g.KD[p]?V():g.jQ(V,0)}catch(Z){g.Wp(Z)}},l); gk[S]=!0;AM[p]||(AM[p]=[]);AM[p].push(S);return S}return 0}; dxf=function(p,a){if(a>=p.L.length)return p.G;let l=0,y=0;for(;yl||(y.push(Math.max(a,p.start(n))-a),S.push(Math.min(l,p.end(n))-a));return Or(y,S)}; w3f=function(p,a,l,y,S){if(!p.Od){var n=p.Vr();if(n){n.ZV().layoutId!==l.layoutId&&Q("SubLayout mismatch in exitSubLayout",a,l,{exitingSubLayout:l.layoutId,activeSubLayout:n.ZV().layoutId});p.Od=!0;n.Lh(n.ZV(),y);n={...Mb(p),layoutId:l.layoutId,layoutExitReason:y};const V=n.layoutId;n.k$&&md(n.Lv,"wrsx",{xc:V,ler:n.layoutExitReason,ctp:tu(V)});p.YF(a,l,y);p.Od=!1;p.ZQ?(p.ZQ(),p.vX()||jS(p.sC.get())):S()}else Q("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", a,l)}}; $xO=function(p,a,l){if(p.C.length)for(const y of p.C){const S=y.startSecs*1E3,n=y.Hy*1E3+S;if(a>S&&aS&&lV.identifier===y.identifier)||(p.eb({adskip:a}),p.Ba.push(y)),y}}; PEA=function(p=0){return g.R(Db(p))}; Xi=function(p,a){g.cN(p.policy.j)!==4&&(g.w7(p.policy.j,4),g.tX(a),p.K.reject(new WR(a.message)))}; HR=function(p){return{NN:r3(p,1),L2:r3(p,2),seekSource:r3(p,3)}}; LyZ=function(p){var a=document.querySelectorAll(`[data-tooltip-target-id="${p.tooltipRenderer.targetId}"]`);a=a.length>0?a[0]:null;const l=g.m5("ytp-ad-module");p.U=!!g.m5("ytp-chrome-bottom")?.contains(a);p.G=!!l?.contains(a);p.K=!!a?.hasAttribute("data-tooltip-target-fixed");return a}; xA=function(){g.o1("_lact",window)==null&&(X3r(),g.o1("_lact",window));var p=Date.now();g.eo("_lact",p,window);g.o1("_fact",window)==-1&&g.eo("_fact",p,window);(p=g.o1("ytglobal.ytUtilActivityCallback_"))&&p()}; xxo=function(p){if(p=p.Zy("html5_web_po_experiment_ids"))if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; i4=function(p,a){D8[a]=D8[a]||{count:0};var l=D8[a];l.count++;l.time=(0,g.h)();p.L||(p.L=g.wM(0,()=>{const y=(0,g.h)();for(const S in D8)D8[S]&&y-D8[S].time>6E4&&delete D8[S];p&&(p.L=0)},5E3)); return l.count>5?(l.count===6&&Math.random()*1E5<1&&(l=new g.Qm("CSI data exceeded logging limit with key",a.split("_")),a.indexOf("plev")>=0||g.tX(l)),!0):!1}; EWE=function(){return new Promise(p=>{const a=window;a.ntpevasrs!==void 0?p(new FyO(a.ntpevasrs)):(a.ntpqfbel===void 0&&(a.ntpqfbel=[]),a.ntpqfbel.push(l=>{p(new FyO(l))}))})}; Yv=function(p,a){return l=>CEM(Ts(p),a.slotId,a.slotType,a.slotPhysicalPosition,a.qO,a.slotEntryTrigger,a.slotFulfillmentTriggers,a.slotExpirationTriggers,l.layoutId,l.layoutType,l.qO)}; g5=function(p){return p.substr(0,p.indexOf(":"))||p}; vWe=function(p,a,l,y,S){const n=g.CX(p.provider);a!==1&&a!==3&&a!==5||g.vy(p,n,"vps",[p.Ch]);Du(p,"xvt",`t.${n.toFixed(3)};m.${S.toFixed(3)};g.${2};tt.${a};np.${0};c.${l};d.${y}`)}; k3=function(p,a,l=2){Nb(p,a*8+2);p.S.push(p.pos);p.S.push(l);p.pos+=l}; g.bI$=function(p,a,l,y){const S=p.G!==l,n=p.D!==y;p.q0=a;p.G=l;p.D=y;a4(p)&&p.S?.Ps(y);Kyv(p);p.L.length===1&&(p.L[0].width=l||0);S&&g.sr(p);p.S&&n&&a4(p)&&(p.S.isEnabled&&(a=p.D?135:90,l=a-p.jl,p.Ps.style.height=`${a}px`,g.VB(p.Sl,"transform",`translateY(${-l}px)`),g.VB(p.progressBar,"transform",`translateY(${-l}px)`)),ePf(p.S))}; Iqo=function(p){var a=G1;let l;if(eLO(a,p)){switch(p.gX()){case 0:l=()=>null; case 2:l=()=>K5$(a,p.fC); break;case 1:l=()=>mP(a,p.fC)}for(let y=l();y;y=l())eLO(a,y)}}; uNq=function(p,a){var l=a.L.getValue();l=new g.SF(()=>{RPZ(p,a)},l); g.H(p,l);l.start();g.Ur(a.L);QY(p,{rtyrq:1})}; OIo=function(p){const a=p.app.pz,l=()=>{p.nY=new g.hu(0,0,0,0);p.Ev=new g.hu(0,0,0,0)},y=V=>{V.getVideoData()&&p.updateVideoData(V.getVideoData())},S=(V,Z)=>{p.d3(V,Z)},n=V=>{p.ju&&Au(p); rr(p)!==p.Yx&&p.resize();p.app.O().A("web_enable_smart_zoom")&&p.Eq&&(V.state.isPaused()?p.Eq.pause():V.j5(8)&&p.Eq.playState==="paused"&&p.Eq.play())}; a.addEventListener("initializingmode",l);a.addEventListener("videoplayerreset",y);a.addEventListener("videodatachange",S);a.addEventListener("presentingplayerstatechange",n);p.addOnDisposeCallback(()=>{a.removeEventListener("initializingmode",l);a.removeEventListener("videoplayerreset",y);a.removeEventListener("videodatachange",S);a.removeEventListener("presentingplayerstatechange",n)})}; j1=function(p,a,l){return Array.prototype.reduce.call(p,a,l)}; kYo=function(p){var a=a||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,a))}}; zLE=function(p,a){p.j(a);p.S<100&&(p.S++,a.next=p.L,p.L=a)}; g.fm=function(){return{innertubeApiKey:g.R("INNERTUBE_API_KEY"),innertubeApiVersion:g.R("INNERTUBE_API_VERSION"),xL:g.R("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),iY:g.R("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),Vm:g.R("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.R("INNERTUBE_CONTEXT_CLIENT_VERSION"),oJ:g.R("INNERTUBE_CONTEXT_HL"),Zn:g.R("INNERTUBE_CONTEXT_GL"),CD:g.R("INNERTUBE_HOST_OVERRIDE")||"",F8:!!g.R("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),v$:!!g.R("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.R("SERIALIZED_CLIENT_CONFIG_DATA")}}; gu=function(p){return p.L==="enter_requested"||p.isActive()}; YG=function(p,a,l){const y=[a];if(p!=a||l!=a)y.unshift(p),y.push(l);return y}; xY=function(p,a,l=0){return{Fq:Mte(p.L,a*1E3,l*1E3),Ve:a}}; mxo=function(p){return window.PressureObserver&&new window.PressureObserver(p)}; Wyo=function(p,a){QY(p,{createkeysession:1});p.status="gr";KU("drm_gk_s",void 0,p.videoData.Sl);p.url=qQo(p);try{p.U=a.createSession(p.K,l=>{QY(p,{m:l})})}catch(l){a="t.g"; l instanceof DOMException&&(a+=`;c.${l.code}`);p.publish("licenseerror","drm.unavailable",1,a,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}p.U&&(ttM(p.U,(l,y)=>{jYe(p,l,y)},(l,y,S)=>{if(!p.nz()){y=void 0; var n=1;g.qb(p.S)&&g.CP(p.Y)&&p.Y.A("html5_enable_safari_fairplay")&&S===1212433232&&(y="ERROR_HDCP",n=p.Y.A("html5_safari_fairplay_ignore_hdcp")?0:n);p.error("drm.keyerror",n,l,y)}},()=>{p.nz()||(QY(p,{onkyadd:1}),p.UO||(p.publish("sessionready"),p.UO=!0))},l=>{p.rX(l)}),g.H(p,p.U))}; Tpq=function(p,a){var l=a.cancelRenderer&&a.cancelRenderer.buttonRenderer||null;l&&(p.L=new Ju(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,["ytp-ad-feedback-dialog-close-button"],"button"),g.H(p,p.L),p.L.init(Mx("button"),l,p.macros),p.L.listen("click",p.G,p),p.L.lT(p.element));a.title&&(l=g.mQ(a.title),p.updateValue("title",l));a.reasonsTitle&&(l=g.mQ(a.reasonsTitle),p.updateValue("reasonsTitle",l));a.reasons&&HIr(p,a.reasons);a.cancelLabel&&(l=g.mQ(a.cancelLabel),p.updateValue("cancelLabel", l),g.OB(p.X,"click",()=>p.G())); a.confirmLabel&&(l=g.mQ(a.confirmLabel),p.updateValue("confirmLabel",l),g.OB(p.D,"click",()=>Dxr(p))); a.undoRenderer&&iIA(p,a.undoRenderer)}; Npo=function(p,a=!1){return a?p.L*-1:p.L}; s3=function(p){for(const a of Object.values(p.D))a.dispose();p.D={};p.j=null;p.G=null;fD(p)}; EHO=function(){return{get opener(){return null},get closed(){return!0},get location(){YW()},get document(){YW()},postMessage:function(){}, close:function(){}, focus:function(){}}}; sY$=function(p){return j1(p,(a,l)=>a.time>l.time?a:l,p[0])}; AXF=async function(p,a,l,y){var S=p.L();var n=new Uxo;n=nI(n,1,p.QI);var V=nI(n,2,a);a=l.X;n=p.QI;p=p.client;S=QYM(p.L,p.S+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",V,S||{},hPo);return a.call(l,"g",n,y,S)}; ps=function(p,a){if(p=sV(a)[p])return typeof p==="number"?p:p[p.length-1]}; g.xu=function(p,a,l,y,S={KH:{identity:$n}}){let n=()=>{}; n=gWA(YUo(l));a.context||(a.context=g.aD(y,!0));return new g.AU(async V=>{var Z=ll(l);Z=S_(Z)?"same-origin":"cors";Z=p.L.pX?Lv(p,S,Z):await H7o(p,S,Z);var z=qUF(ll(l));z={input:z,RI:n8(z),Dq:a,config:S};V(KP(p,z,Z,n))})}; JXr=function(p,a,l,y){return new ya(p,a,{opacity:l},{opacity:y},{property:"opacity",duration:a,timing:"ease-in",delay:0})}; fqM=function(p,a){for(const l of a)if(l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(a=g.K(l.fulfillmentContent.fulfilledLayout,XJ))&&(a=g.K(a.renderingContent,ek))&&a.associatedPlayerBytesLayoutId===p)return l}; SO=function(p,a,l){if(a==null)l.push("null");else{if(typeof a=="object"){if(Array.isArray(a)){var y=a;a=y.length;l.push("[");var S="";for(var n=0;n>31));jP(p,2,a.message)}; PvM=function(p,a){p=new Set(p.map(a));p.delete(void 0);return p.size>=2}; wMr=function(p,a=bn){a!==null&&a!=a.top&&(a=a.top);let l=0,y=0;try{const S=a.document,n=S.body,V=S.documentElement;if(S.compatMode=="CSS1Compat"&&V.scrollHeight)l=V.scrollHeight!=p.height?V.scrollHeight:V.offsetHeight,y=V.scrollWidth!=p.width?V.scrollWidth:V.offsetWidth;else{let Z=V.scrollHeight,z=V.scrollWidth,d=V.offsetHeight,G=V.offsetWidth;V.clientHeight!=d&&(Z=n.scrollHeight,z=n.scrollWidth,d=n.offsetHeight,G=n.offsetWidth);Z>p.height?Z>d?(l=Z,y=z):(l=d,y=G):Zl.U==a.U)||p.D.push(a)}; Zm=function(p){const a={};var l=p.Lz;const y=p.g7,S=p.s6;var n=l.getVideoData(),V=uW(0);var Z=l.getVisibilityState();p.mO?.Xq&&(a.GF=y.GF);V&&(a.zB=V,a.lastManualDirection=l6r(),V=zye()||0,V>0&&(V=(y.A("html5_use_date_now_for_local_storage")?Date.now():(0,g.h)())-V,y.A("html5_use_date_now_for_local_storage")?V>0&&(a.timeSinceLastManualFormatSelectionMs=V):a.timeSinceLastManualFormatSelectionMs=V));V=y.A("html5_use_streamer_bandwidth_for_low_latency_live")&&n.isLowLatencyLiveStream;S.UO&&!V&&(V=y.A("html5_disable_bandwidth_cofactors_for_sabr_live")? !!p.mO?.Em:!1,a.T8=B5(S,!V));var z=g.f2.medium,d=Math.floor(z*16/9);(V=n.Yn())||(n.L&&n.U&&n.U.videoInfos.length!==0?(V=n.U.videoInfos[0],V=!!V.video&&V.video.width0?{authorizedFormats:p.authorizedFormats}:{authorizedFormats:Z}; p.sabrLicenseConstraint&&(a.A_.sabrLicenseConstraint=p.sabrLicenseConstraint);if(y.A("html5_onesie_media_capabilities")||y.A("html5_enable_server_format_filter"))a.Vv=3;y.A("html5_onesie_audio_only_playback")&&nz(n)&&(a.Vv=1);p.mO?.ir&&p.MX&&(a.Vv=a.Vv===void 0?7:a.Vv|4);Z=n.PZ?n.PZ:g.Gu(n);y.A("html5_onesie_media_capabilities")&&(a.mediaCapabilities=g.vqA(n,Z,y));if(p.mO?.VY()){d=y.X;V=[];z=[];G=new Map;var B=Array.from(d.L.values());for(var c of B)if(c.Bi)z.push({audioCodec:Kx$[c.mT],numChannels:c.numChannels, spatialCapabilityBitmask:e_M[c.mT]});else{var w=b$r[c.mT];B={videoCodec:w,maxWidth:c.maxWidth||0,maxHeight:c.maxHeight||0,maxFramerate:c.maxFramerate||0,is10BitSupported:c.qw||!1};if(c.maxBitrateBps){B.maxBitrateBps=c.maxBitrateBps;var X=w6(c.itag);X?.video&&Z6(Z,X,d)===!0&&(X=X.Sb*8,X>B.maxBitrateBps&&(B.maxBitrateBps=X))}w=`${w}_${c.qw}`;X=G.get(w)||[];X.push(B);G.set(w,X)}V=ITA(V,G);c={};y.A("html5_ssff_denylist_opus_low")&&(c={itagDenylist:[249,350]});a.mediaCapabilities={videoFormatCapabilities:V, audioFormatCapabilities:z,hdrModeBitmask:3,perPlaybackAttributes:c}}p.mO?.L&&(a.Ql=Z.Ql,a.a7=p.mO?.a7);y.bf&&(a.Bm=y.bf);a.Rl=p.TV;a.gs=p.gs;a.Br=p.Br;a.vx=p.vx;p.X1&&(a.GL=(0,g.h)()-p.X1);p.B1&&y.A("html5_report_prefetch_requests")&&(a.B1=p.B1);ig||(a.Qy=!0);c=XF(S)*1E3;c>0&&(a.V6=c);p.mO?.Jv&&p.F4&&p.F40?l:S.interruptions[0]||0;p.mO?.E6&&(a.qt=p.qt);y.Ic&&(a.audioTrackId=y.Ic);n.MJ()&&!a.audioTrackId&&(y.A("html5_fill_default_mosaic_audio_track_id")||(p=R_M(n,y.A("html5_cdm_use_first_as_default_audio_track")),a.audioTrackId=p),n?.Xu("misstrkchg",{"default":a.audioTrackId}));if(n=navigator.connection?.type||"")a.detailedNetworkType=uXq[n]||uXq.other;y.A("html5_enable_voice_boost")&&(a.LZ=y.rA);return a}; Ed=function(p,a){Sl(p.L,FF,1,a);GH(a,1)||O$f(a);p.YS||(a=yb(p),YD(a,5)||lX(a,5,p.locale));p.uach&&(a=yb(p),Ke(a,no,9)||Sl(a,no,9,p.uach))}; g.Cs=function(p){let a=g.vB(p);kAv.includes(a)&&(a="www.youtube.com");return p.protocol+"://"+a}; kH=function(p,a){if(!(p instanceof a))throw Error(`Expected instanceof ${MZe(a)} but got ${p&&MZe(p.constructor)}`);return p}; mjA=async function(p,a){return(await Ba(a)).delete("LogsRequestsStore",p)}; WxO=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X){y=fO(y,"SLOT_TYPE_PLAYER_BYTES");p=tZM(S,p,V,l,y,z,d);if(p instanceof N)return p;d=p.clientMetadata.t9("metadata_type_fulfilled_layout")?.layoutId;if(!d)return new N("Invalid adNotify layout");a=jKe(d,S,n,l,Z,a,z,G,B,c,w,X,V);return a instanceof N?a:[p,...a]}; Ks=function(p){const a=ve(!0);return a&&(a===p.template.element||p.mediaElement&&a===p.mediaElement.Wa())?a:null}; bl=function(p,a){p=eO(p);const l={};if(a)for(var y of a.split(","))(a=y.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(l[a[1]]={width:a[2],height:a[3]});for(const S of p)if(y=l[S.itag])S.width=y.width,S.height=y.height;return p}; RD=function(p){p=new g.pr(p);g.ID(p,document.location.protocol);return p.toString()}; g.ul=function(p){p.cursor.continue(void 0);return th(p.request)}; H$O=function(p,a){for(const S of a){p.Io.S("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",S.slot);for(const n of p.S)n.A5(S.slot);try{var l=p.L,y=S.slot;const n=E1(l,y);if(!n)throw new N("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!n.S)throw new N("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(n.L!=="scheduled")throw new N("Tried to enter a slot from stage: "+n.L,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE"); if(gu(n))throw new N("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(const V of Od(l,`${y.slotType}_${y.slotPhysicalPosition}`).values())if(n!==V&&gu(V)&&(n.slot.fulfilledLayout?.layoutType!=="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"||V.layout?.layoutType!=="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"))throw new N("Trying to enter a slot when a slot of same type is already active.",{activeSlotStatus:V.L},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");}catch(n){n instanceof N&&n.Yz?(p.Io.U("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",n.Yz,S.slot),Q(n,S.slot,kt(p.L,S.slot),void 0,n.Iw)):(p.Io.U("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",S.slot),Q(n,S.slot));M3(p,S.slot,!0);continue}a=E1(p.L,S.slot);a.L!=="scheduled"&&Ql(a.slot,a.L,"enterSlot");a.L="enter_requested";a.S.CG()}}; Djh=function(p,a){p.a4("ismp_p");Uh(p);p.S=a}; l1h=function(p,a){return(fu(p,a)+p.policy.ZT)*a.Sb}; mj=function(p,a){if(p.currentState>1){g.tX(new g.Qm("Exit already started",{current:p.currentState}));var l=!1}else l=!0;if(!l)return!1;p.currentState=2;p.L=a;return!0}; Xe=function(p){const a={},l=g.xn(p.L,y=>y.L); g.yo(l,(y,S)=>{y=p.U[S]!==void 0?String(p.U[S]):y.L&&y.S!==null?String(y.S):"";y.length>0&&(a[S]=y)},p); return a}; wk=function(p,a){const l=g.o1("yt.embedded_player.embed_url");l&&(p?(a=Ke(p,tp,7)||new tp,lX(a,4,l),Sl(p,tp,7,a)):a&&(a.thirdParty={embedUrl:l}))}; jO=function(p,a=0,l=-1){p=i$r(p,a,l);return new Uint8Array(p.buffer,p.byteOffset,p.byteLength)}; Tbf=async function(p){p=await yq(p);const a=(0,g.h)()-2592E6;await g.hs(p,["SWHealthLog"],{mode:"readwrite",nx:!0},l=>g.Wi(l.objectStore("SWHealthLog"),{},y=>{if(y.getValue().timestamp<=a)return y.delete().then(()=>g.ul(y))}))}; sKZ=function(p,a,l){const y=[];for(var S of p){var n=g.K(S.renderingContent,ST);if(n){if(!We(n))return new N("Invalid vod media renderer");y.push(Nbq(n))}}S=y.map(Z=>Z.z2); n=[];let V=0;for(let Z=0;Zp.UE()||l{fs=!0;"google_ad_status"in window?C8("DCLKSTAT",1):C8("DCLKSTAT",2)}; try{g.IO(n3h,a)}catch(l){}VP$.push(g.XY.zD(()=>{if(!(fs||"google_ad_status"in window)){try{if(n3h.toString()&&a){var l=`${g.Oz(a)}`,y=ZuA[l];y&&g.DC(y)}}catch(S){}fs=!0;C8("DCLKSTAT",3)}},5E3))}}}; g.p9=function(p,a){return p.O().A("safari_live_drm_captions_fix")&&p.getVideoData()?.FF()?!1:g.ei(p.O())&&!a.isManifestless}; g.HB=function(p,a,l){return p.app.O().tP?a:g.L$("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:a,SHORTCUT:l})}; kt=function(p,a){(p=E1(p,a))?p.layout!=null&&!p.layout&&Q("Unexpected empty layout",a):Q("Unexpected undefined slotState",a);return p?.layout||null}; zIf=function(p){at(p.videoData,"html5_set_debugging_opt_in")&&(p=g.ik(),p.Zy(183)||(lJ(183,!0),p.save()))}; dEh=function(p,a,l,y){const S=a.ZV().clientMetadata.t9("metadata_type_ad_pod_skip_target");if(S&&S>0&&S=0&&!(p.counter[V]=-~p.counter[V]);V--);let Z,z,d=4;for(;d<40;)V=yp[l>>>24]^SX[y>>16&255]^n9[S>>8&255]^Vp[n&255]^a[d++],Z=yp[y>>>24]^SX[S>>16&255]^n9[n>>8&255]^Vp[l&255]^a[d++],z=yp[S>>>24]^SX[n>>16&255]^n9[l>>8&255]^Vp[y&255]^a[d++],n=yp[n>>>24]^SX[l>>16&255]^n9[y>>8&255]^Vp[S&255]^a[d++],l=V,y=Z,S=z;p=p.S;V=a[40];p[0]=ZH[l>>>24]^V>>>24;p[1]=ZH[y>>16&255]^V>>16&255;p[2]= ZH[S>>8&255]^V>>8&255;p[3]=ZH[n&255]^V&255;V=a[41];p[4]=ZH[y>>>24]^V>>>24;p[5]=ZH[S>>16&255]^V>>16&255;p[6]=ZH[n>>8&255]^V>>8&255;p[7]=ZH[l&255]^V&255;V=a[42];p[8]=ZH[S>>>24]^V>>>24;p[9]=ZH[n>>16&255]^V>>16&255;p[10]=ZH[l>>8&255]^V>>8&255;p[11]=ZH[y&255]^V&255;V=a[43];p[12]=ZH[n>>>24]^V>>>24;p[13]=ZH[l>>16&255]^V>>16&255;p[14]=ZH[y>>8&255]^V>>8&255;p[15]=ZH[S&255]^V&255}; zT=function(p,a=NaN){let l;if(isNaN(a))l=p.size;else for(l=p.L;lR$(y,S),l.adSlotMetadata.slotId):p}; g.dR=function(p){if(!(p.L.length<=1)){var a=p.L.pop(),l=p.L[0];p.L=[l];d5(p,a,l,!0)}}; rAq=function(p){return p.name==="TypeError"&&p.stack.includes("/s/player/")&>()<=105}; $EA=function(p,a){return(p=w5r(p,a*1E3))?p.durationMs/1E3:0}; Bq=function(p){return p.S.some(a=>a.L.isToggled())||p.noneOfTheAbove.button.isToggled()}; rFA=async function(p,a,l){if(g.nU("start_client_gcf")){l&&NC(p,l);p.pg(a);const y=iB();y&&(l||(l=(await TL(y))?.config),await U$(l,a,y));if(l){p=p.D;for(const S of p.L)S(l)}}}; g.WO=function(p){return(p.deviceIsAudioOnly||!g.TF||hX||p.controlsType==="3"?!1:g.an?p.j&&g.Nf(51):!0)||(p.deviceIsAudioOnly||!g.cq||hX||p.controlsType==="3"?!1:g.an?p.j&&g.Nf(48):g.Nf(38))||(p.deviceIsAudioOnly||!g.rR||hX||p.controlsType==="3"?!1:g.an?p.j&&g.Nf(37):g.Nf(27))||!p.deviceIsAudioOnly&&g.wR&&!hf()&&g.Nf(11)||!p.deviceIsAudioOnly&&g.i3&&g.Nf("604.4")}; cd=function(p){p.charAt(0)==="?"&&(p=p.substring(1));return $e(p,"&")}; PTF=function(p){return!!p.playlist&&!p.L&&!!p.videoData&&!p.videoData.isLivePlayback&&p.B.getCurrentTime()>=3&&p.B.getPresentingPlayerType()!==2}; X5O=function(){const p=Pq(1E3,"NO_BID");return g.L9(LDE([kA(),p]).Lo(M5),()=>{p.cancel()})}; g.xEM=function(p){p.cursor.continue(void 0);return UU(p.request)}; X$=function(p,a){if(p.simpleText){a:{p=p.simpleText;if(a&&(a=FDq(p))){a=mt("SPAN",null,a);break a}a=g.Ki(p)}return a}const l=[];if(p.runs)for(let y=0;ya||l>10||(p.play(),g.jQ(()=>{CTM(p,p.getCurrentTime(),l+1)},500))}; eIA=function(p,a,l,y,S){a=Jlr(a,y);a!=null&&(l=v3Z(p,l),S(a,p),KDe(p,l))}; g.xe=function(p,a,l){return p.state.L[a](...l)}; F$=function(p,a,l){if(Array.isArray(a)){var y=a[rD]|0;if(y&4)return a;for(var S=0,n=0;S=p.S.totalLength)throw Error();return EY(p.S,p.offset++)}; RIM=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v){const I=LG(l,n,S.t3);if(I instanceof N)return I;if(g.K(l.renderingContent,ST)){z=sKZ([l],S,z);if(z instanceof N)return z;if(z.length!==1)return new N("Only expected one media layout.");p=buo(p,a,l,I,z[0],void 0,"core",y,n,V,Z,d,c,w,X,S.t3,B,void 0,v);return p instanceof N?p:{layout:p.layout,TO:p.ZI?[p.ZI]:[]}}var u=g.K(l.renderingContent,C9);if(u){if(!Ar(l.adLayoutMetadata))return new N("Invalid ad layout metadata");if(!vq(u))return new N("Invalid sequential layout"); u=u.sequentialLayouts.map(m=>m.playerBytesAdLayoutRenderer); p=I2E(p,a,l.adLayoutMetadata,I,u,y,n,S,z,V,Z,d,G,B,X,c,w,v);return p instanceof N?p:{layout:p.FO,TO:p.TO}}return new N("Not able to convert a sequential layout")}; K9=function(p,a,l){a=l?a.lastElementChild:a.firstElementChild;let y=null;for(;a;){if(Tz(a,"display")!=="none"&&a.getAttribute("aria-hidden")!=="true"){let S;a.tabIndex>=0?S=a:S=K9(p,a,l);S&&(y?l?S.tabIndex>y.tabIndex&&(y=S):S.tabIndex=p.KC()-Rt(p)}; uJ=function(p){return!!p.get("active_view_viewable")?.length||!!p.get("active_view_measurable")?.length||!!p.get("active_view_fully_viewable_audible_half_duration")?.length||!!p.get("audio_audible")?.length||!!p.get("audio_measurable")?.length}; OF=function(p,a,l){if(!a&&!l)return null;const y=a?String(a).toUpperCase():null;return pN(p,function(S){return(!y||S.nodeName==y)&&(!l||typeof S.className==="string"&&g.tU(S.className.split(/\s+/),l))},!0)}; WDr=function(p){const a=new mEM((l,y,S,n)=>new tP$(p.L.uN,l,y,S,n,p.L.EO),new Set(jqE(p.L.uN).concat(p.L.listeners)),p.L.Io,p.L.EO); g.H(p,a);return a}; XW=function(p){return p instanceof g0?g.YU(p):kfM(p)}; DEF=function(p){if(!Huq(p)){var a=p.jb().mB();a&&(a=a.N(),a instanceof Promise&&a.catch(()=>{})); o$(p,U9(p.getPlayerStateObject()))}}; ThZ=function(p,a=[]){return new iuq(p,a)}; MM=function(p,a){return new q$(p,a,ke)}; m4=function(p,a){const l={};l[p]=a;return[l]}; g.em=function(p,a){return p!==null&&a in p}; H8=function(p,a){const l=p.B.getVideoData(a);return l?p.eq(l,a||p.B.getPresentingPlayerType(!0)):null}; b0=function(){const p=oJ()&&!zX(29),a=g.IW("google tv")&&g.IW("chrome")&&!zX(30);return p||a?!1:rNF()}; fno=function(){var p=Dw$();if(p?.effectiveType)return Nhe.hasOwnProperty(p.effectiveType)?Nhe[p.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; UEM=function(p,a,l,y,S){return p instanceof t6?sq$(p,y,S,a,l):sq$(p,y,S,new jX,0)}; Wq=function(p){return p.zn?g.ik().Zy(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; DH=function(p){(p=Hq(p.DN()))&&p.created&&p.destroy()}; iJ=function(p,a){a=p.indexOf(a);a>-1&&p.splice(a,1)}; g.SF=function(p,a,l){g.YB.call(this);this.L=p;this.mD=a||0;this.S=l;this.U=(0,g.Qo)(this.Lb,this)}; fO=function(p,a){if(TT(p.EO.get())){let l=p.S.get(a)||0;l++;p.S.set(a,l);return`${a}_${l}`}return g.NM(16)}; DQ=function(p,a){return lQ(AI(p,a,void 0,sF))}; QqM=function(p){p.HW()===p.VT.length-1&&Q("Unexpected skip with target requested during the last sublayout")}; hIF=function(p,a){return!!a&&p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1]<=2}; AAr=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; n9M=function(p,a){if(p.L.length!==0){var l=new URL(g3$(p));l.searchParams.delete("format");var y=p.zH();y&&l.searchParams.set("auth",y);l.searchParams.set("authuser",p.sessionIndex||"0");for(y=0;y<10&&p.L.length;++y){const S=p.L.slice(0,32),n=p.U.build(S,p.j,p.D,p.bJ,p.N,p.UO);if(!a(l.toString(),n)){++p.D;break}p.j=0;p.D=0;p.N=0;p.UO=0;p.L=p.L.slice(S.length)}p.S.enabled&&p.S.stop()}}; Yio=function(p,a){p.isContentForward=a;g.OW(p.badge.element,"ytp-suggested-action-badge-content-forward",a)}; UF=function(p){return!!p.PX||p.EN}; qiF=function(p,a){const l=[];for(a=a||0;al)}; pu=function(p,a,l,y,S,n){const V=fO(p.S.get(),a);return Qp(p,V,a,new UB(p.L,y),[new y5(p.L,l),new lm(p.L,V),new h6(p.L,y,["error"])],S,n)}; f2o=function(p){p=p.L;p.ac();p.Rc();var a=nP();a.G=Ha(!1,p.U,a.isMobileDevice);po(nP(),p.U);p.j.L=p.iT()}; g.A6=function(p){return p instanceof g.pr?p.clone():new g.pr(p)}; pGe=function(p,a,l,y,S){++p.U;a&&++p.X;tZ(39,l.P9).startsWith("redirector.")&&(p.L=p.S.clone(),delete p.j,y.O4&&delete S[tZ(36,p.L)])}; g.gR=function(p){try{if(!p.L)return null;if("response"in p.L)return p.L.response;switch(p.jl){case "":case "text":return p.L.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in p.L)return p.L.mozResponseArrayBuffer}return null}catch(a){return null}}; aVM=function(p,a,l,y){const S=Ca(),n=(l=S||l&&Ye())?["com.youtube.fairplay"]:["com.widevine.alpha"];a&&n.unshift("com.youtube.widevine.l3");S&&y&&n.unshift("com.youtube.fairplay.sbdl");return l?n:p?[...n,...qM.playready]:[...qM.playready,...n]}; SC$=function(p){if(p.S.getVideoData().U){var a=p.TR.O().A("html5_gapless_suspend_next_loader")&&p.D===1;p.S.tT(p.X,a,lVM(p));O8(p,3);ysF(p);var {gH:l,E5:y}=Nj(p);l.subscribe("updateend",p.G,p);y.subscribe("updateend",p.G,p);p.G(l);p.G(y)}}; J6=function(p){if(!p.userDisplayImage)return"";const a=p.userDisplayImage.split("/");if(a.length===5)return p=a[a.length-1].split("="),p[1]="s20-c",a[a.length-1]=p.join("="),a.join("/");if(a.length===8)return a.splice(7,0,"s20-c"),a.join("/");if(a.length===9)return a[7]+="-s20-c",a.join("/");g.tX(new g.Qm("Profile image not a FIFE URL.",p.userDisplayImage));return p.userDisplayImage}; q8=function(p){p=p.G9();if(!p)return!1;p=g.IE(p).exp||"";return p.includes("xpv")||p.includes("xpe")}; VFr=function(p,a,l,y,S,n,V,Z,z,d,G,B,c){a=nrr(p,a,"adapter",l,y,S,n,V,Z,z,G,B,c);y=a.layoutExitSkipTriggers;S=a.EA;l.adPodSkipTarget&&l.adPodSkipTarget>0&&(S.push(d),S.push(new f9(l.adPodSkipTarget)),y=[]);S.push(new qL(Z.adPodIndex));l.isCritical&&(y=[new h6(p.L,a.layoutId,["error"]),...y]);return{Dg:{layoutId:a.layoutId,layoutType:a.layoutType,Xh:a.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], qO:a.qO,clientMetadata:new L0(S),ao:a.ao,adLayoutLoggingData:a.adLayoutLoggingData},VP:y,BW:a.layoutExitMuteTriggers,GH:a.layoutExitUserInputSubmittedTriggers,ux:a.layoutExitUserCancelledTriggers}}; orv=function(p){return pn(()=>p.yr.get("asmjs")??Z6o(p))}; zCM=function(p){if(p.Fh==="rendering"){aB(p,"resume");var a=lp(p)?.resumeCommands||[];rq(p.uM.get(),a,p.layout.layoutId)}}; uo=function(p,a){let l=p.j;l||(p.j=new z0,l=p.j,l9(p,a));return l}; LT=function(p,a,l,...y){var S=p===6?"ERROR":"WARNING";l=`b${l}`;g.MD(new g.Qm(l,...y),S);y.unshift(l);y=y.join(", ");S=dAO.get(a);if(!S){S=`${"ytplog"}.${a}`;l=5;try{window.localStorage&&!isNaN(+window.localStorage[S])&&(l=+window.localStorage[S]),window.sessionStorage&&!isNaN(+window.sessionStorage[S])&&(l=+window.sessionStorage[S])}catch{}dAO.set(a,l);S=l}p0&&(p.L=Math.min(p.L+l,10),p.S=S),p.L>0?(p.L--, p=!0):p=!1,p?(typeof y==="function"&&(y=y()),console.log(`${"plyr"}.${a}`,y)):(y=(csv.get(a)??0)+1,csv.set(a,y),y%100===1&&console.warn("plyr",`${"plyr"}.${a} is chatty, dropping logs.`)))}; rsM=function(p){switch(p){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}}; En=function(p,a,l=!1){if(p.Jg){const y=p.Jg.gP(),S=ab(y,a);let n=NaN;const V=gt(p);V&&(n=ab(y,V.L.index.getStartTime(V.Gm)));if(S===n&&p.S&&p.S.U&&wGe(yc(p),0))return a}p=p2(p,a,l);return p>=0?p:NaN}; Sx=function(p){var a=p.uT.get();return fr(a,p.G)}; g.nn=function(p,a){for(let l=1;l>>0,l=p.L;p=Vj(l,a);var y=l.S;(l=oB)||(l=oB=new TextDecoder("utf-8",{fatal:!0}));a=p+a;y=p===0&&a===y.length?y:y.subarray(p,a);try{var S=l.decode(y)}catch(n){if(zi===void 0){try{l.decode(new Uint8Array([128]))}catch(V){}try{l.decode(new Uint8Array([97])),zi=!0}catch(V){zi=!1}}!zi&&(oB=void 0);throw n;}return S}; Pxr=function(p,a,l,y,S,n){const V=$AA++;return new eQ({veType:p,veCounter:V,elementIndex:l,dataElement:a,youtubeData:y,jspbYoutubeData:S,loggingDirectives:n})}; XG$=function(p,a,l){const y=(l.adSlots??[]).map(V=>g.K(V,Gi)); if(l.qI)if(a.clientMetadata.t9("metadata_type_allow_pause_ad_break_request_slot_reschedule"))Cv(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],a.slotId); else{if(p.EO.get().B.O().A("h5_check_forecasting_renderer_for_throttled_midroll")){var S=l.pH.filter(V=>V.renderer?.clientForecastingAdRenderer!=null); S.length!==0?LgM(p.U,S,y,a.slotId,l.ssdaiAdsConfig):Cv(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],a.slotId)}else Cv(p.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",()=>[],a.slotId); Viq(p.j,a)}else{S={vO:Math.round(a.clientMetadata.t9("metadata_type_ad_break_request_data")?.vO||0),kY:a.clientMetadata.t9("metadata_type_ad_break_request_data")?.kY};var n=a.clientMetadata.t9("metadata_type_cue_point");LgM(p.U,l.pH,y,a.slotId,l.ssdaiAdsConfig,S,n)}}; Bt=function(p,a=",",l=p?p.length:0){const y=[];if(p)for(l=Math.max(p.length-l,0);l{if(!(l!==void 0&&y.length>=l))return y.push(S.getValue()),g.ul(S)}).then(()=>y)}; eC$=function(p){aw(p,function(){const a=this;return function*(){a.QQ.tick("wasm_s");const l=XS(a.Ne)?V=>HW(orv(a.Ne),Z=>Z.tZ(V)):void 0,y=g.ak(a.Y.experiments,"html5_wasm_initialization_delay_ms"),S=a.A("html5_wasm_initialization_disable_sync"),n=a.A("html5_wasm_initialization_wait_for_idle"); y>0&&(yield*ct(ErZ(y)));n&&(yield*ct(CxM()));try{const V=vrr(a.webPlayerContextConfig.wasmModuleUrl,l,a.JK.bind(a),S),Z=yield*ct(V);a.QQ.tick(Z.L?"wasm_fa":"wasm_fw");KgF(a.Y,Z)}catch(V){a.QQ.tick("wasm_ferr")}}()})}; tJ=function(p,a){return a.At?a.At:a.N9?dM(p.logger,()=>a.At=mg(a.N9),"c"):[]}; gPF=async function(){await b6E("ytGcfConfig")}; RC$=function(p,a,l,y,S,n,V,Z){return a===null?new N("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:a,ActionCompanionAdRenderer:y}):[p3M(p,a,V,n,z=>{var d=z.slotId;z=Z(z);var G=y.adLayoutLoggingData;const B=new L0([new IVM(y),new GL(S)]);d=d$(l.S.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",d);const c={layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",qO:"core"};return{layoutId:d,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xh:new Map, layoutExitNormalTriggers:[new y5(l.L,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:B,ao:z(c),adLayoutLoggingData:G}})]}; rm=function(p,a){return Am(p.segments,l=>a-l.Gm)}; ni=function(p,a=!1){var l="";if(p.dangerousLogToVisitorSession)l="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(a){a=p.cttAuthInfo.token;l=p.cttAuthInfo;const y=new bX;l.videoId?y.setVideoId(l.videoId):l.playlistId&&dk(y,2,wm,Bp(l.playlistId));ep[a]=y}else a=p.cttAuthInfo,l={},a.videoId?l.videoId=a.videoId:a.playlistId&&(l.playlistId=a.playlistId),$0[p.cttAuthInfo.token]=l;l=p.cttAuthInfo.token}return l}; b6E=async function(p){var a={};const l=await g.dt();l&&(Gw(p),p=await u8q(p,l),await O6F(p,a,l))}; k3v=function(p){if(!p.length)return[];p=g.B4(p,a=>a!=null&&a.jl()); for(let a=1;a{if(y.video.qualityOrdinal<=p.E6)return!0;l[y.itag]="maxquality";return!1})}; FM=function(p,a,l){const y=a&128?0:-1,S=p.length;var n;if(n=!!S)n=p[S-1],n=n!=null&&typeof n==="object"&&n.constructor===Object;const V=S+(n?-1:0);for(a=a&128?1:0;a=3&&(p.V$=(p.V$<=3)if(l=Cr(p,p.bM-p.Kl,p.BX-3),p.Pa-=p.BX,p.BX<=p.s7&&p.Pa>=3){p.BX--;do p.bM++,p.V$=(p.V$<({hd:0,iO:void 0,RZ:-1,Wz:-1,Ww:-1,kB:-1,gt:-1,ph:-1,ud:-1,bd:-1,xz:-1,position:void 0,Mk:void 0,Mm:[]})); p.L[a]=NWO(p)}; br=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",Z:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; sbv=function(p){const a=p.top||0,l=p.left||0;return new Wa(a,l+(p.width||0),a+(p.height||0),l)}; UAO=function(p){({linearAds:p}=p.renderer.linearAdSequenceRenderer||{});return p?.length?p.filter(a=>g.K(a,ST)?.playerOverlay?.instreamSurveyAdRenderer!=null).length:0}; Kn=function(p){return!!(p.playlist||p.list||p.api)}; op$=function(p,a,l){if(p!=null&&p[Ek]===CU)return p;if(Array.isArray(p)){var y=p[rD]|0;l=y|l&32|l&2;l!==y&&(p[rD]=l);return new a(p)}}; QbM=function(p){p.timelyActions&&(p.X=p.timelyActions.reduce((a,l)=>{if(l.cueRangeId===void 0)return a;a[l.cueRangeId]=0;return a},{}))}; Ls=function(){const p=g.o1("_lact",window);return p==null?-1:Math.max(Date.now()-p,0)}; Gw=function(p){if(p.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; b9=function(p,a,l,y){y.info.L.L();var S=y.info.L.S;if(!S||!l.bu()||l.eh()===S)return!1;let n=S;var V=l.gQ();if(p.policy.Tx&&V&&l.isView()&&g.Ta(y.info.L.info)){const z=new DataView(S.buffer,S.byteOffset,S.byteLength);(V=hCF(z,V))?n=new Uint8Array(V.buffer,V.byteOffset,V.byteLength):p.Xu("fenc",{})}p.policy.C6&&(V=As$(p,y,new F8([n])))&&(n=jO(V));let Z;(V=y.info.L.G(0,y.info.clipId))&&(Z=V.Yv[0]);if(y===p.ZN){if(p.QY+=1,p.Lz.getVideoData().A("html5_shorts_gapless_restart_on_init_seg_retries")&&p.QY> 5)return p.QY=0,p.Lz.lW({initSegStuck:1,as:y.info.HZ()}),!0}else p.QY=0,p.ZN=y;p.policy.XQ&&(l.abort(),a.C?.G());S=grr(p,l,n,Z,S);a.C?.C(S,Z);if(S!==0)return p.policy.mw&&D6(p.Lz.getVideoData())?(p.Lz.VF()||ex(p,"sepInit",S,y.info),YCM(p.Lz,"sie")):ex(p,"sepInit",S,y.info),!0;y.info.n1()?(a=p.timing,a.Ws||(a.Ws=(0,g.h)(),g.ce("vis_a",a.Ws,a.L))):(a=p.timing,a.G||(a.G=(0,g.h)(),g.ce("ais_a",a.G,a.L)));(y=y.info.L.qk)&&p.Lz.eK(new Xq(y.key,y.type));return l.QP()}; IB=function(p,a){switch(a){case "normal":p.O6("complete");break;case "skipped":p.O6("skip");break;case "abandoned":ph(p.xv,"impression")&&p.O6("abandon")}}; qCv=function(p){const a=new RB;if(p.interpreterJavascript){var l=QaF(p.interpreterJavascript);l=Np(l).toString();var y=new u9;lX(y,6,l);Sl(a,u9,1,y,AV)}else p.interpreterUrl&&(l=Ox(p.interpreterUrl),l=Vu(l).toString(),y=new k0,lX(y,4,l),Sl(a,k0,2,y,AV));p.interpreterHash&&nI(a,3,p.interpreterHash,AV);p.program&&nI(a,4,p.program,AV);p.globalName&&nI(a,5,p.globalName,AV);p.clientExperimentsStateBlob&&nI(a,7,p.clientExperimentsStateBlob,AV);return a}; fVM=function(p){if(p=p.colorInfo)if(p=p.transferCharacteristics)return Jso[p];return null}; Mu=function(p){var a=p.X;a||(a=p.S,a=p.X=new DataView(a.buffer,a.byteOffset,a.byteLength));a=a.getFloat64(p.L,!0);Wf(p,p.L+8);return a}; pgr=function(p,a,l){p.L="The stream is broken @"+p.S+". Error: "+l+". With input:\n"+a;throw Error(p.L);}; aUM=function(p,a){gD(p,1,a.trackType);ns(p,2,a.isHdr)}; IX=function(p,a,l,y={}){const S={},n=Math.round(y.timestamp||(0,g.h)());S.eventTimeMs=np.jl())}; t3=function(){return{W:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{W:"path",Z:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z", fill:"white"}}]}}; yeZ=function(p,a,l){return p.policy.L?ob(p,!0)a&&p.D{g.BM(p.element,"ytp-popup-animating");a.detach();g.bT(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);p.j.dispose();p.j=null},250,p); p.j.start()}; Dk=function(p,a){p.U||p.UO||lO(p,p.x3);const l=a.SN,y=a.FK;if(y.cpn===p.x3)p.eb({igtranssame:1,enter:y.cpn,exit:l.cpn});else{var S=p.UO,n=!!p.U;p.U="";var V=a.Nr,Z=l.playerType===2?l.Dy/1E3+l.videoData.ir:p.qJ().videoData.ir;p.api.A("html5_ssdai_enable_media_end_cue_range")&&(n||S||l.playerType!==2?(S||n)&&p.eb({mecr:0,seek:S,skip:n}):p.api.oI(l.cpn));if(l.playerType===2&&y.playerType===2)n?p.eb({igtransskip:1,enter:y.cpn,exit:l.cpn,seek:S,skip:p.U}):VAr(p,l,y,Z,V,S,n);else{p.x3=y.cpn;p.Tj(y.cpn, y.startTimeSecs||V);a=a.yB;if(l.playerType===1&&y.playerType===2){p.bS=0;ZvO(p,y);var z=Ht(p,"c2a",y);p.eb(z);p.Fw++}else if(l.playerType===2&&y.playerType===1){p.api.publish("serverstitchedvideochange");z=Ht(p,"a2c");p.eb(z);p.Fw=0;p.bS=Z;z=l.cpn;var d=p.bS;if(z!==p.playback.J5()){const G=p.Ws.get(z);G?G.L=d:p.eb({nop_e:z})}i7r(p,l.wh)}p.playback.e0(l,y,Z,V,S,n,a)}onv(p)}}; zhZ=function(p){if(p.Y.Mc()){p.AE.sort((a,l)=>+a.rt-+l.rt); for(const a of p.AE)p.Xu("vpe",Object.assign({t:a.rt},a));p.AE=[];p.tS=0}}; doq=function(p,a){gD(p,1,a.defaultPolicy);gD(p,2,a.smooth);gD(p,3,a.visibility);gD(p,4,a.tI);gD(p,5,a.performance);gD(p,6,a.speed)}; ByZ=function(p,a,l){p.cZ(5);const y=!!p.Rd&&GQq.includes(g.TX(p.Rd)||"");try{const S=new i9({program:a,globalName:"trayride",o$:{disable:!g.nU("att_web_record_metrics")||!g.nU("att_skip_metrics_for_cookieless_domains_ks")&&y,LC:"aGIf"}});S.cn.then(()=>{p.cZ(6);l&&l(a)}); p.L(S)}catch(S){p.cZ(7),S instanceof Error&&g.tX(S)}}; Ti=function(p){let a=0;for(const l of p.U)a+=P3(l.info);return a+=ceq(p.j)}; g.mQ=function(p){if(p.simpleText)return p.simpleText;if(p.runs){const a=[];for(const l of p.runs)l.text&&a.push(l.text);return a.join("")}return""}; Nu=function(p){return p.B.getVideoData(1)?.wU()??!1}; ll=function(p){const a=g.R("INNERTUBE_HOST_OVERRIDE");a&&(p=String(a)+String(nu(p)));return p}; PrZ=function(p){if(!p.L){g.Ta(p.info.L.info)||p.info.L.info.bC();if(g.Ta(p.info.L.info))var a=g.rer(g.N7(p));else{a=new UW(g.N7(p));const y=a.pos;a.pos=0;let S=null,n=null;if(yn(a,[408125543,307544935])){const V=a.pos+mT(a,!0);for(;a.pos>>0;a1=a;yB=(p-a)/4294967296>>>0}; FeF=function(p,a,l,y=0,S=0){p.f0()||h3(p);p.j=new z0;p.L=a;Le$(p,l,S===0);var n=y/=1E3,V=a.getVideoData().L;if(y&&V&&p.S){let Z=y,z=0;a.getVideoData().isLivePlayback&&(n=Math.min(l/1E3,p.S.cG(!0)),z=Math.max(0,n-p.S.getCurrentTime()),Z=Math.min(y,a.cG()+z));n=XgO(V,Z)||y;n!==y&&p.L.Xu("qvaln",{st:y,at:n,rm:z,ct:Z})}a=n;y=p.L;y.getVideoData().Dd=!0;y.getVideoData().K=!0;y.o6(!0);V={};p.S&&(V=p.S.fO(),n=p.S.getVideoData().clientPlaybackNonce,V={crt:(V*1E3).toFixed(),cpn:n});y.Xu("queued",V);a!==0&& y.seekTo(a+.01,{Wt:!0,CX:3,qE:"videoqueuer_queued"});p.U=new xor(p.X,p.app.zm(),p.L,l,p.app,S);l=p.U;l.status.status!==Infinity&&(O8(l,1),l.L.subscribe("internalvideodatachange",l.U,l),l.S.subscribe("internalvideodatachange",l.U,l),l.TR.O().A("html5_gapless_use_format_info_fix")&&(l.L.subscribe("internalvideoformatchange",l.U,l),l.S.subscribe("internalvideoformatchange",l.U,l)),l.L.subscribe("mediasourceattached",l.U,l),l.S.subscribe("statechange",l.N,l),l.L.subscribe("newelementrequired",l.jl,l), l.U());return p.j}; g.gm=function(){return!!A3(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Enh=function(p){return p.info.L.info.bC()&&EY(p.S,0)===160}; Y0=function(p,a,l){if(typeof p==="string")return{videoId:p,startSeconds:a,suggestedQuality:l};a={};for(const y of Crq)p[y]&&(a[y]=p[y]);if(p=p.embedConfig||p.embed_config)if(typeof p==="string")a.embed_config=p;else if(g.pA(p))try{const y=JSON.stringify(p);a.embed_config=y}catch(y){console.error("Invalid embedConfig JSON",y)}return a}; Ker=function(p,a,l=!1,y=!1){!p.Kz||a&&p.Kz!==a||(a=p.getDuration(),!a&&TJ(p.videoData)&&(a=25200),p.Kz.isView?a>p.Kz.getDuration()&&p.Kz&&(p.Kz.aQ(a),p.loader?.Ye(a)):p.Kz&&(p.Kz.aQ(a),p.loader?.Ye(a)),vnM(p.loader,p.Kz,l,y),p.publish("mediasourceattached"))}; N4=function(p){p.ac=p.L+p.snapshot.delay*1E3;p.ZN=!1}; U$=async function(p,a,l,y){p={config:p,hashData:a,timestamp:y!==void 0?y:(0,g.h)()};l=await qu(l);await l.clear("hotConfigStore");return await g.dE(l,"hotConfigStore",p)}; IUM=function(p){return{S5:$F(p,1,ehf),trackType:r3(p,2),E2:r3(p,3),timeRange:$F(p,4,bvo)}}; RhM=function(){C$();return ghE()}; Zi=function(p,a,l){var y,S=-1,n=a[1],V=0,Z=7,z=4;n===0&&(Z=138,z=3);a[(l+1)*2+1]=65535;for(y=0;y<=l;y++){var d=n;n=a[(y+1)*2+1];++V200&&(B="manifest.net.badstatus",z===400&&(d=2));return Promise.reject(new g.cQ(B,G,d))}} p.fetchType="gvi";const y=p.O();var S;(S=u0A(p))?(S={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:S},a=J3(a,{action_display_post:1})):S={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4};const n={};y.sendVisitorIdHeader&&p.visitorData&&(n["X-Goog-Visitor-Id"]=p.visitorData);const V=pm(y.experiments,"debug_sherlog_username");V&&(n["X-Youtube-Sherlog-Username"]=V);Object.keys(n).length>0&&(S.headers=n);const Z=(0,g.h)();S=await fn(pk,a,S).then(void 0,function(z){return l(z.xhr)}); if(!S||!S.responseText)return l(S);p.loading=!1;S=cd(S.responseText);g.GI(p,S,!0);if(p.errorCode)return Promise.reject(new g.cQ("auth",{ec:p.errorCode,ed:p.errorDetail,es:p.iK||""},2));if(!p.loading&&!zI(p))return S=p.isAd()?"auth":"manifest.net.retryexhausted",a=p.isAd()?2:1,Promise.reject(new g.cQ(S,{successButUnplayable:"1"},a))}; aL=function(p,a,...l){p.S.has(a)||p.S.set(a,new kQM(a,l))}; lc=function(p,a,l){p.X=3;p.C="The stream is broken @"+p.U+"/"+l+". With input:\n"+a;throw Error(p.C);}; MAM=function(p){p.j>=0||(p.provider.Y.OC||p.provider.Lz.getVisibilityState()!==3?p.j=g.CX(p.provider):p.Ic=!0)}; mor=function(p,a){let l=0;p=p.L.L.get(a);if(!p)return 0;for(const y of p)y.durationMs!==0&&y.w$!==y.Dy&&l++;return l}; tAr=function(p,a=1){const l={};p.video&&(p.video.width&&(l[y9.WIDTH.name]=p.video.width),p.video.height&&(l[y9.HEIGHT.name]=p.video.height),p.video.fps&&(l[y9.FRAMERATE.name]=p.video.fps*a),p.video.L&&(l[y9.EOTF.name]=p.video.L),p.Sb&&(l[y9.BITRATE.name]=p.Sb*8*a),p.mT==="("&&(l[y9.CRYPTOBLOCKFORMAT.name]="subsample"),p.video.projectionType==="EQUIRECTANGULAR"||p.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||p.video.projectionType==="MESH")&&(l[y9.DECODETOTEXTURE.name]="true");p.audio?.numChannels&& p.mT!=="i"&&p.mT!=="I"&&(l[y9.CHANNELS.name]=p.audio.numChannels);return l}; oCh=function(p,a,l){a==2?p.U.call(p.context,l):p.S&&p.S.call(p.context,l)}; jMO=function(p){{p=Sd(p);const a=nk();p=a?a.get(p):void 0}return p&&p.stringValue?p.stringValue:""}; Hve=function(p,a,l,y){var S=this[V9];const n=this[ZJ],V=xH(void 0,S.lF,!1),Z=k9(p);if(Z){var z=!1,d=S.extensions;if(d){S=(G,B,c)=>{if(c.length!==0)if(d[B])for(const w of c){G=Wee(w);try{z=!0,n(V,G)}finally{G.free()}}else y?.(p,B,c)}; if(a==null)C7(Z,S);else if(Z!=null){const G=Z[a];G&&S(Z,a,G)}if(z){let G=p[rD]|0;if(G&2&&G&2048&&!l?.Ok)throw Error();const B=Xg(G),c=(w,X)=>{if(rW(p,w,B)!=null)switch(l?.RDY){case 1:return;default:throw Error();}X!=null&&(G=wD(p,G,w,X,B));delete Z[w]}; a==null?FM(V,V[rD]|0,(w,X)=>{c(w,X)}):c(a,rW(V,a,B))}}}}; ive=function(p,a,l,y,S,n,V,Z,z){const d=l.pings;return d?[mNv(p,n,Z,S,G=>{var B=G.slotId;G=z(G);var c=l.adLayoutLoggingData,w=l.progressCommands;B=d$(a.S.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",B);const X={layoutId:B,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",qO:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Xh:xw(d),layoutExitNormalTriggers:[new y5(a.L,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], qO:"core",clientMetadata:new L0([new GL(y),new oL(zc(d)),new Doh(d?.activeViewTracking?.identifier),new d_(V/1E3),new cH({progressCommands:w}),new Gc(V/1E3)]),ao:G(X),adLayoutLoggingData:c}})]:new N("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:l})}; BL=function(p){return p?`layout: ${""} ${p.layoutType}`:""}; Bp=function(p){if(p!=null&&typeof p!=="string")throw Error();return p}; xw=function(p){return new Map([["impression",p.impressionPings||[]],["error",p.errorPings||[]],["mute",p.mutePings||[]],["unmute",p.unmutePings||[]],["pause",p.pausePings||[]],["rewind",p.rewindPings||[]],["resume",p.resumePings||[]],["skip",p.skipPings||[]],["swipe",p.swipePings||[]],["close",p.closePings||[]],["progress",p.progressPings||[]],["clickthrough",p.clickthroughPings||[]],["fullscreen",p.fullscreenPings||[]],["active_view_viewable",p.activeViewViewablePings||[]],["active_view_measurable", p.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",p.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",p.activeViewTracking?.activeViewAudioAudiblePings||[]],["audio_measurable",p.activeViewTracking?.activeViewAudioMeasurablePings||[]],["end_fullscreen",p.endFullscreenPings||[]],["channel_clickthrough",p.channelClickthroughPings||[]],["abandon",p.abandonPings||[]],["start",p.startPings||[]],["first_quartile",p.firstQuartilePings||[]],["midpoint", p.secondQuartilePings||[]],["third_quartile",p.thirdQuartilePings||[]],["complete",p.completePings||[]],["unmuted_impression",p.unmutedImpressionPings||[]],["unmuted_error",p.unmutedErrorPings||[]],["unmuted_mute",p.unmutedMutePings||[]],["unmuted_unmute",p.unmutedUnmutePings||[]],["unmuted_pause",p.unmutedPausePings||[]],["unmuted_resume",p.unmutedResumePings||[]],["unmuted_close",p.unmutedClosePings||[]],["unmuted_progress",p.unmutedProgressPings||[]],["unmuted_clickthrough",p.unmutedClickthroughPings|| []],["unmuted_fullscreen",p.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",p.unmutedEndFullscreenPings||[]],["unmuted_abandon",p.unmutedAbandonPings||[]],["unmuted_start",p.unmutedStartPings||[]],["unmuted_first_quartile",p.unmutedFirstQuartilePings||[]],["unmuted_midpoint",p.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",p.unmutedThirdQuartilePings||[]],["unmuted_complete",p.unmutedCompletePings||[]],["unmuted_skip",p.unmutedSkipPings||[]]])}; g.cL=function(p,a){p.sort(a||z1)}; qh=function(p,a,l,y,S,n,V,Z){const z={layoutId:a,layoutType:n,qO:"core"};return{layoutId:a,layoutType:n,Xh:new Map,layoutExitNormalTriggers:[new wt(p.L,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new GL(y),...V]),ao:S(z),adLayoutLoggingData:Z}}; TyM=async function(p){var a=p.yr.get("asmjs");if(a)return a;a=O$.get("asmjs")??await new Promise((l,y)=>{kC(p,"asmjs",()=>{const S=O$.get("asmjs");S?l(S):y("cannot load module asmjs")},y)}); if(!a)return Promise.reject("cannot load module asmjs");a=new a(p.B);p.yr.set("asmjs",a);a.create();return a}; gFe=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768}; g.r_=function(p,a){a=yy(p,a);a>=0&&g.s6(p,a)}; eh=function(p){if(g.nU("web_lifecycle_error_handling_killswitch"))return p();try{return p()}catch(a){window.onerror?.(a.message,"",0,0,a)}}; Nye=async function(p,a){const l={startTime:(0,g.h)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}};a=await Ba(a);p={...p,options:JSON.parse(JSON.stringify(p.options)),interface:g.R("INNERTUBE_CONTEXT_CLIENT_NAME",0)};p=await g.dE(a,"LogsRequestsStore",p);l.ticks.tc=(0,g.h)();jkO(l);return p}; $k=function(p,a,l=!1){p.L.has(a)?w_(p,a,[]):p.O6(a,l)}; g.tU=function(p,a){return Array.prototype.indexOf.call(p,a,void 0)>=0}; Z$Z=function(p){if(!Ar(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.K(p,dq)||g.K(p,PL)||g.K(p,Lk)||g.K(p,XB)||g.K(p,xk)||g.K(p,FB)?!0:!1}; E2=function(p){if(document.createRange){const a=document.createRange();a&&(a.selectNodeContents(p),p=window.getSelection())&&(p.removeAllRanges(),p.addRange(a))}}; $7f=function(p,a=l8){if(!Ck){p=p.navigator?.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));sMh((p.brands||[]).map(y=>{var S=new Uof;S=lX(S,1,y.brand);return lX(S,2,y.version)})); typeof p.mobile==="boolean"&&EL(vL,2,Kk(p.mobile));Ck=p.getHighEntropyValues(a)}const l=new Set(a);return Ck.then(y=>{const S=vL.clone();l.has("platform")&&lX(S,3,y.platform);l.has("platformVersion")&&lX(S,4,y.platformVersion);l.has("architecture")&&lX(S,5,y.architecture);l.has("model")&&lX(S,6,y.model);l.has("uaFullVersion")&&lX(S,7,y.uaFullVersion);return S.Lq()}).catch(()=>vL.Lq())}; QM$=function(p){return{rO:ed(p,2),videoId:w3(p,3),yW:r3(p,4)}}; gnE=async function(p){if(p.L)return bc();if(!p.X)return p=g.tl("getColdConfig IDB not initialized"),D0(p),Promise.reject(p);const a=iB(),l=g.R("TIME_CREATED_MS");if(a){var y=await hhq(a);if(y&&y.timestamp>l)return J5(p,y.config),KQh(p,y.configData),bk(p,y.hashData),bc()}else y=g.tl("getColdConfig"),D0(y);AkM(p);a&&p.L&&p.coldHashData&&p.configData&&await AeA(p.L,p.coldHashData,p.configData,a,l);return p.L?bc():(p=new g.Qm("Config not available in ytConfig"),D0(p),Promise.reject(p))}; IL=function(p,a,l,y){for(let S=0;S{if(!(l!==void 0&&y.length>=l))return y.push(S.getValue()),g.ul(S)}).then(()=>y)}; Kr=function(p){return FJ(p)==="TVHTML5_UNPLUGGED"}; RL=function(p,a,l){GY(p.params.FG.EO.get(),!0)&&qs$(p,a,{cts:l.currentTimeSec,f:l.flush})}; fUq=function(p){var a=p.layout.clientMetadata.t9("metadata_type_layout_enter_ms");const l=p.layout.clientMetadata.t9("metadata_type_layout_exit_ms");p=p.z9.get();a=Jee(p.U,a,l);return Math.min(l,a!==null?a:Infinity)}; Qd=function(p,a,l){uc.push({payloadName:p,payload:l,JeV:void 0,options:a});O2||(O2=Kme())}; pDo=function(){const p=window.location.protocol;var a=lt.getEntriesByType("resource");a=g.B4(a,l=>l.name.indexOf(`${p}//fonts.gstatic.com/s/`)===0); (a=j1(a,(l,y)=>y.duration>l.duration?y:l,{duration:0}))&&a.startTime>0&&a.responseEnd>0&&(kk("wffs",Sw(a.startTime)),kk("wffe",Sw(a.responseEnd)))}; aPZ=function(p){p.G=Error("Cancelled by dispose");p.X.resolve();l_E(p.D.promise);p.D.reject(Error("Cancelled by dispose"));p.logger.dispose();Promise.all(p.j).then(async()=>{p.S?.dispose();p.S=void 0}); p.j=[];p.L?.L();l_E(p.U.promise);p.U.reject(Error("Cancelled by dispose"))}; lPr=function(p){const a={delay:XF(p),stall:p.G.Pi()||0,byterate:MP(p),init:p.QY},l=p.j[0];l.stamp=Math.round(p.D/36E5)*36E5;l.net=Math.ceil(p.jl);l.max=p.interruptions[0]||0;a.interruptions=p.j;return a}; WnM=function(p,a){a:{p=p.U;var l=g.K(a,yYe)?.signal;if(l&&p.Tc&&(l=p.Tc[l])){var y=l();break a}if((l=g.K(a,S8f)?.request)&&p.Sy&&(l=p.Sy[l])){y=l();break a}for(y in a)if(p.CF[y]&&(a=p.CF[y])){y=a();break a}y=void 0}if(y!==void 0)return Promise.resolve(y)}; ZT$=function(p,a,l,y,S){const n=fO(p.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");y=[new ilZ({getAdBreakUrl:y.getAdBreakUrl,vO:0,kY:0}),new nNh];p=a.pauseDurationMs?a.lactThresholdMs?{slotId:n,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new mF(p.L,n),slotFulfillmentTriggers:[new VqM(p.L)],slotExpirationTriggers:[new y5(p.L,S),new lm(p.L,n)],qO:"core",clientMetadata:new L0(y),adSlotLoggingData:l}:new N("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new N("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return p instanceof N?p:[p]}; im=function(p){return p.Ro?p.isLowLatencyLiveStream&&p.L!=null&&CF(p.L)>=5:p.isLowLatencyLiveStream&&p.L!=void 0&&CF(p.L)>=5}; WL=function(p,a){p=p.B.A("delhi_modern_web_player_icons");switch(a){case 1:return p?t3():tW();case 2:return p?Mcr():H6A();case 3:return p?{W:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{W:"path",Z:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z", fill:"white"}}]}:g.jd();case 4:return p?oNf():Mvr();default:return null}}; dkA=function(p){QH().j=!!E3(p,"isViewable");bv(p,"viewableChange",zWe);E3(p,"getState")==="loading"?bv(p,"ready",Wmr):Hor(p)}; ne=function(p){if(p!=null&&typeof p!=="number")throw Error(`Value of float/double field must be a number, found ${typeof p}: ${p}`);return p}; dUv=function(p){p=Object.keys(p);for(const a of p)if(G2e[a])return a}; cYf=function(p,a){let l;return()=>{l||(l=new BV$(p,a));return l}}; onv=function(p){p.Tm.add(p.U);p.U="";p.UO=!1}; DJ=function(p,a){p.IE(a)&&(HL?p.hP.get(a).o7.clear():p.hP.get(a).ZF=new F8,p.S(a),p.j=!0)}; ic=function(p){p.K.removeAll();if(p.L){const a=p.L;p.L=null;a.abort();a.dispose()}}; mc=function(p){if(p.U)if(g.BM(p.api.getRootNode(),"ytp-grid-scrolling"),p.api.getPresentingPlayerType()===2||p.api.AN()||p.api.isMinimized())o2(p,0);else{var a=p.api.getPlayerStateObject().L(2);if(a)o2(p,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(p.isEnded&&!a){const l=u_(p)?1:0;p.isEnded=a;o2(p,l)}else u_(p)?p.S!==2&&o2(p,1):o2(p,0);p.isEnded=a}}; Tc=function(p){const a=p.config?.adPlacementConfig;p=p.renderer;return!(!a||a.kind==null||!p)}; rYv=function(p,a,l){const y=[];for(const S of p)if(g.K(S,ST)){p=NP(g.K(S,ST),a,l);if(p instanceof s2)return new N(p);y.push(p.z2)}return y}; U2=function(p,a=""){wDf(p)[0][$kq].debugName=a??"[signal]"}; XDf=function(p){p=p.QZ.Ft;var a;if(a=p&&p.getAttribute)a=/-[a-z]/.test("googleAvInapp")?!1:PDf&&p.dataset?"googleAvInapp"in p.dataset:p.hasAttribute?p.hasAttribute("data-"+LwE()):!!p.getAttribute("data-"+LwE());a&&(nP().S=!0)}; ENF=function(p,a,l,y,S,n){l?(p.cZ(2),g.IO(g.OO(l),()=>{if(window.trayride)ByZ(p,y,S);else{p.cZ(3);const V=xkA(l),Z=document.getElementById(V);Z&&(Fw$(V),Z.parentNode.removeChild(Z));g.tX(new g.Qm("BL:ULB",`${l}`))}},n)):a?(n=g.HA("SCRIPT"),a instanceof cs?(n.textContent=Np(a),sk(n)):n.textContent=a,n.nonce=zs(document),document.head.appendChild(n),document.head.removeChild(n),window.trayride?ByZ(p,y,S):(p.cZ(4),g.tX(new g.Qm("BL:ULBJ")))):g.tX(new g.Qm("BL:ULV"))}; kC=function(p,a,l,y){if(p.D){var S=CDv[a];EcM(p,p.D+S,()=>{p.X.add(S);l.call(p)},y)}}; vNA=function(){const p=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; LLh=function(p){const a=Kh(p.B.DN());return a?p.L?a.Wo():a.Bk():!1}; IPh=function(p,a,l,y={}){p.S.add(y.layer||0);p.X=()=>{KwM(p,a,l,y);const S=g.rM(y.layer);if(S){for(const n of p.K)LP(p,n[0],n[1]||S,y.layer);for(const n of p.C)eWM(p,n[0],n[1])}}; l||g.c2(y.layer)||p.X();if(y.tO)for(const S of y.tO)bTM(p,S,y.layer);else g.MD(Error("Delayed screen needs a data promise."))}; RWv=function(p){return new Bk((a,l)=>{l(p)})}; xO=function(p){p.N||(p.N=(0,g.h)(),g.ce("mb_s",p.N,p.L))}; lYO=function(p){p.U=!0;return p}; Q9=function(p){const a=mT(p,!0);let l=tw(p);for(let y=1;y!CG(l)))throw Error("Only objects may be merged."); for(const l of a)va(p,l)}; nT=function(p){const a=p.data.getUint16(p.offset+p.L);p.L+=2;return a}; Am=function(p,a){return HM(p,a,!0)}; Yk=function(p){return p.A("web_settings_menu_surface_custom_playback")&&p.A("web_settings_use_input_slider")}; pj=function(){var p=G1;return p.L.length==0?p.S:p.S.length==0?p.L:g.qP(p.S,p.L)}; MqM=function(p,a){if(a!==p.icon){let l;switch(a){case 3:l=vW();break;case 1:l=br();break;case 2:l={W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:l={W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path", EC:!0,Z:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}p.updateValue("icon",l);p.icon=a}}; JW=function(p){p.j=void 0;p.S=0;p.U=0}; QT=function(p){let a=p.toString();p.name&&a.indexOf(p.name)==-1&&(a+=": "+p.name);p.message&&a.indexOf(p.message)==-1&&(a+=": "+p.message);if(p.stack)a:{p=p.stack;var l=a;try{p.indexOf(l)==-1&&(p=l+"\n"+p);let y;for(;p!=y;)y=p,p=p.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");a=p.replace(/\n */g,"\n");break a}catch(y){a=l;break a}a=void 0}return a}; $2=function(p,a,l){let y=mkO[p]||[];l.A("html5_shorts_onesie_mismatched_fix")&&(y=tqA[p]||[]);a.push(...y);l.A("html5_early_media_for_drm")&&a.push(...(jEA[p]||[]))}; fD=function(p){const a=[{cpn:p.S.J5()}];p.j&&a.push({cpn:p.j.J5()});p.api.publish("playbackChange",{E3z:a})}; Wwe=function(p,a,l=!1){a.video.qualityOrdinal>1080&&!p.Bf&&(p.Bs=36700160,p.iT=5242880,p.Hs=Math.max(4194304,p.Hs),p.Bf=!0);a.video.qualityOrdinal>2160&&!p.Qi&&(p.Bs=104857600,p.Sb=13107200,p.Qi=!0);g.ak(p.g7.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?a.isEncrypted()&&g.VI()&&g.IW("samsung")&&(g.IW("kant")||g.IW("muse"))&&(p.Sb=g.ak(p.g7.experiments,"html5_samsung_kant_limit_max_bitrate")):a.isEncrypted()&&g.VI()&&g.IW("kant")&&(p.Sb=1310720);p.ZU!==0&&a.isEncrypted()&&(p.Sb=p.ZU);p.q9!== 0&&a.isEncrypted()&&l&&(p.Sb=p.q9);a.Sb&&(p.jh=Math.max(p.lX,Math.min(p.Hs,5*a.Sb)))}; fk=function(p,a,l){p.L[a]||(p.L[a]=new HTE(l));return p.L[a]}; DkE=function(p){return{token:w3(p,1)}}; g.p3=function(p,a){return iTF[p]=a}; TVO=function(p,a){a.name!=="InvalidStateError"&&a.name!=="AbortError"&&(a.name==="NotAllowedError"?(p.L.r8(),aA(p.S,p.element,!1)):g.MD(a))}; efZ=function(p){const a=NVe[Ry[p]],l=sEE[p];return l&&a?new tn(p,a,{audio:new ML(l.audioSampleRate,l.numChannels)}):null}; Ukv=function(p,a){const l=g.lR.getState().entities;p=yM(l,p)?.markersList?.markerType;for(const y of a.iT)if(p===yM(l,y)?.markersList?.markerType)return!0;return!1}; g.B4=function(p,a,l){return Array.prototype.filter.call(p,a,l)}; QEM=function(p,a,l){const y=[];for(const S of l)y.push(S.triggeringSlotId!=null&&S.triggeringSlotId===p?S.clone(a):S);return y}; VM=function(p){if(p.m7()&&!p.api.isEmbedsShortsMode()&&p.w4){var a=p.api.A("web_player_hide_overflow_button_if_empty_menu");!p.T2||a&&!hWq(p.T2)||DL(p.w4,p.T2);!p.shareButton||a&&!Sn(p.shareButton)||DL(p.w4,p.shareButton);!p.copyLinkButton||a&&!AYF(p.copyLinkButton)||DL(p.w4,p.copyLinkButton)}else{const l=p.api.O().getWebPlayerContextConfig();if(p.w4){a=p.w4;for(const y of a.actionButtons)y.detach();a.actionButtons=[]}p.searchButton&&!g.n3(p.sY.element,p.searchButton.element)&&p.searchButton.lT(p.sY.element); !p.T2||l?.hideTopWatchNextButton||g.n3(p.sY.element,p.T2.element)||p.T2.lT(p.sY.element);!p.shareButton||l?.hideTopShareButton||g.n3(p.sY.element,p.shareButton.element)||p.shareButton.lT(p.sY.element);p.copyLinkButton&&!g.n3(p.sY.element,p.copyLinkButton.element)&&p.copyLinkButton.lT(p.sY.element)}}; Z5=function(p,a,l){return new q$(p,a,l)}; Un=function(p){const a=p.api.getRootNode();var l=p.api.getPlayerStateObject().L(256)||p.api.getPlayerStateObject().L(32)||p.api.getPlayerStateObject().L(16)?p.G:p.Ws&&p.api.getPlayerStateObject().isPaused()?(p.X?.element.clientWidth||0)*.5625/3*p.QY||p.jl:p.jl;p.G=l;a.style.setProperty("--ytp-grid-peek-height",`${p.G}px`);g.OW(a,"ytp-disable-bottom-gradient",p.G<=12&&p.D===0)}; Y8h=function(){var p=gNv;return()=>{const a=Fh();a.resolve(EV(p))||MV(a,{Q2:p,qP:p,[oA]:void 0});return a.resolve(p)}}; ze=function(){const p=q8r();return!(!p||p==="visible")}; G5O=function(p,a,l,y,S,n,V,Z,z,d,G,B,c){p=gE(p,a,l,S,n,V,Z,z,B,zL(p,l,y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),c);a=p.k8;l=new YK(p.eB);y=p.layoutExitSkipTriggers;d>0&&(a.push(l),a.push(new f9(d)),y=[]);a.push(new qL(G));return{Dg:{layoutId:p.layoutId,layoutType:p.layoutType,Xh:p.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:p.qO,clientMetadata:new L0(a),ao:p.ao, adLayoutLoggingData:p.adLayoutLoggingData},VP:y,BW:p.layoutExitMuteTriggers,GH:p.layoutExitUserInputSubmittedTriggers,ux:p.layoutExitUserCancelledTriggers,ZI:p.ZI}}; g.wH=function(p){g.Ta(p.info.L.info)||p.info.L.info.bC();if(p.U!==-1)return p.U;if(p.L&&JYq(p.L))return p.U=JYq(p.L),p.U;if(g.Ta(p.info.L.info)){var a=g.N7(p);var l=p.info.L.S,y=NaN;let S=NaN,n=0;for(;dH(a,n);){const V=Ge(a,n);V.type===1936286840?S=V.data.getUint32(V.dataOffset+8):V.type===1836476516?S=g.Z2(V):V.type===1952867444&&isNaN(y)&&(y=g.Bu(V));n=up(V.type)?n+8:n+V.size}!S&&l&&(S=oq(l));a=y/S}else a=new UW(g.N7(p)),l=p.X?a:new UW(new DataView(p.info.L.S.buffer)),y=cu(l),l=a.pos,a.pos=0,rH(a)? MU(a,231)?(y=Q9(a)*y/1E9,a.pos=l,a=y):(a.pos=l,a=NaN):(a.pos=l,a=NaN);p.U=a||p.info.X;return p.U}; Pu=function(p,a,l,y,S,n,V,Z,z,d){a=d$(p.S.get(),l,a);const G={layoutId:a,layoutType:l,qO:"core"},B=new Map;V&&B.set("impression",V);V=[new $g(p.L,S,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];d&&V.push(new h6(p.L,d,["normal"]));return{layoutId:a,layoutType:l,Xh:B,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([y,new GL(n),new Iw(S)]),ao:Z(G),adLayoutLoggingData:z}}; g.m1=function(p){let a;for(;a=p.firstChild;)p.removeChild(a)}; piE=function(p,a){if(mY(p,L3)||p.api.isMinimized())return!1;const l=Mj(a.title),y=Mj(a.description);if(g.o4(l)||g.o4(y))return!1;p.createServerVe(p.S.element,a.trackingParams||null);p.S.updateValue("title",Mj(a.title));p.S.updateValue("description",Mj(a.description));p.S.updateValue("displayUrl",Mj(a.displayUrl));p.S.updateValue("imageUrl",fPM(a.image));a.navigationEndpoint&&g.nn(p.D,a.navigationEndpoint);p.Tm=a.imageNavigationEndpoint||null;p.S.show();p.jl.start();p.logVisibility(p.S.element,!0); p.J(p.S.element,"mouseover",()=>{p.G++}); return!0}; $U=function(p,a){const l=[];if(!a.length)return l;for(let y=0;y=0||hV(p,0,"gad_source",p.search(Xt))>=0}; xg=function(p,a){gD(p,1,a.startTicks);gD(p,2,a.On);gD(p,3,a.timescale)}; var C_e=function(p){return gG[r[12]](this,4,p)}; Zu=function(p){return p}; YXM=function(p,a){for(const l of a)CG(l)?p.push(va({},l)):KG(l)?p.push(YXM([],l)):p.push(l);return p}; Ft=function(p){let a="";typeof p.toString==="function"&&(a=""+p);return a+p.stack}; Ej=function(p,a,l,y,S,n,V,Z,z){a=d$(p.S.get(),l,a);const d={layoutId:a,layoutType:l,qO:"core"},G=[new $g(p.L,S,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];z&&G.push(new h6(p.L,z,["normal"]));return{layoutId:a,layoutType:l,Xh:new Map,layoutExitNormalTriggers:G,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([y,new GL(n),new Iw(S)]),ao:V(d),adLayoutLoggingData:Z}}; g.Oc=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(a){g.Wp(a)}}:p}; ubZ=function(p){const a=new on;C7(p,(l,y,S)=>{a[y]=[...S]}); a.FC=p.FC;return a}; C3=function(p,a){if(p.length<2)return!1;const l=a(p[0]);return p.some(y=>a(y)!==l)}; g.tX=function(p){g.MD(p,"WARNING")}; lcv=function(p,a,l){g.XM(function(){p.apply(a,l)})}; yhZ=function(){if(g.nU("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Jp())return Error("User has not consented - not fetching biscotti id.");const p=g.R("PLAYER_VARS",{});if(g.G0(p,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(lnA(p))return Error("Biscotti id fetching has been disabled for pfl.")}; vu=function(p,a,l,y){const S=Number(a.getAttribute("data-overlay-order"))||0;let n=0,V=null;for(const Z of l.children){if(y&&Z.classList.contains("ytp-overlay-inline-container")){V=Z;break}if(S<(Number(Z.getAttribute("data-overlay-order"))||0))break;n++}V?vu(p,a,V,!1):y?(p=document.createElement("div"),p.classList.add("ytp-overlay-inline-container"),p.setAttribute("data-overlay-order",`${S}`),V=p,V.appendChild(a),L8(l,V,n)):L8(l,a,n)}; SLo=function(p,a,l){var y=mP(G1,a);y||(y=l.opt_nativeTime||-1,y=iW(p,a,U1(p),y),l.opt_osdId&&(y.Ic=l.opt_osdId));return y}; Es=function(p,a){const l=fO(p.S.get(),p.slot.slotType);p={...p.slot};if(a.slotEntryTrigger){var y=a.slotId;var S=a.slotEntryTrigger;y=S.triggeringSlotId!=null&&S.triggeringSlotId===y?S.clone(l):S}else y=void 0;return{...p,slotId:l,slotEntryTrigger:y,slotFulfillmentTriggers:nAF(a.slotId,l,a.slotFulfillmentTriggers),slotExpirationTriggers:nAF(a.slotId,l,a.slotExpirationTriggers)}}; tW=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}}; X3r=function(){({WyY:a=!1,CMT:p=!0}={});var p,a;if(g.o1("_lact",window)==null){var l=parseInt(g.R("LACT"),10);l=isFinite(l)?Date.now()-Math.max(l,0):-1;g.eo("_lact",l,window);g.eo("_fact",l,window);l==-1&&xA();V4f(a,p);new K3(()=>{FY("mouse",100)})}}; zcM=function(p){p.L&&(p.j=!0,p.S&&(p.S.stop(),p.S.start()),ZmO(p,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),W8(p.uT.get(),"ads_ce",`bdc.${oAA(p).length}`))}; d5M=function(p,a){a=Array.prototype.splice.call(p,a,1);Array.prototype.splice.call(p,0,0,a[0])}; Gw$=async function(p){if(p.nz())throw Error("Already disposed");p.L?.L();await p.U.promise}; Btf=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null}; g.sZ=function(p,...a){if(a.length===0)return Bs(p[0]);let l=p[0];for(let y=0;y=2||uW()>0||!Xn())return!1;var a=p.aX.get("aitags");if(!a)return!1;a=RK(a).split(",");const l=[];for(const y of p.Bd)g.tU(a,y)&&l.push(y);if(!l.length)return!1;p.aX.set("altitags",g.qj(l.join(",")));return!0}; RA=function(p,a,l,y=Infinity,S=0){var n=p.zm();l=l||n.getPlayerType();(n=VD(p,l,a,!0))||(n=IA(p,l,a,!0));a=p.jb();l===2&&a&&(l=n.getVideoData(),a.tJ(l.clientPlaybackNonce,l.g$||"",l.breakType||0,l.bf,l.videoId||""));p.Vt(n,y,0,S)}; $5v=function(p,a,l){if(a.endpoint==="log_event"){SQ(void 0,a);var y=ni(a,!0),S=new Map;S.set(y,[tM(a.payload)]);l&&(lo=new l);return new g.AU(n=>{lo&&lo.isReady()?iX(S,lo,n,{bypassNetworkless:!0},!0,oX(p)):n()})}}; n7=function(p,a,l,y){return p.EO.get().vX(zW(a))?new fG(p.L,l):y}; Pzr=function(p){const a=new Map;for(const l of p)(p=l.renderer.remoteSlotsRenderer)&&p.hostElementId&&a.set(p.hostElementId,p);return a}; L1q=function(p){let a=1;for(const l in p.S)l.length>a&&(a=l.length);return 3997-a-p.U.length-1}; TBF=function(p){p=IJ(p);return yU(p)}; uR=function(p,a,l){a=v5(a);a!=null&&a!=null&&(qc(p,l,0),XiZ(p.L,a))}; g.qj=function(p){return encodeURIComponent(String(p))}; Oj=function(p,a){if(p.L){p.D&&(clearTimeout(p.D),p.D=null);const l=p.L;p.L=null;a||p.dispatchEvent("ready");try{l.onreadystatechange=null}catch(y){}}}; lX=function(p,a,l){return EL(p,a,Bp(l))}; x5v=function(p,a){kg.getInstance().estimate().then(l=>{p.L("idbQuotaExceeded",{...a,isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:dwA(l?.usage),deviceStorageQuotaMbytes:dwA(l?.quota)})})}; F1M=function(p,a){p.nz()||(p.S=a,p.logger.update(a.Q1()),p.X.resolve(),p.D.resolve(void 0),p.YB())}; EAr=function(p,a,l){if(a&&a.status===204)return!0;switch(p){case "JSON":return!!l;case "XML":return Number(l&&l.return_code)===0;case "RAW":return!0;default:return!!l}}; g.CzE=function(){var p;return(p=(p=g.o1("yt.aba.att2"))?p:fz.instance!==void 0?fz.instance.j.bind(fz.instance):null)?p():Promise.resolve(!1)}; K1$=function(p){return vAo()===2?g.B4(p,UM):p}; bmO=function(p,a,l,y,S,n,V,Z,z,d,G,B){if(B?.vO===void 0||B?.kY===void 0)return new N("Cached ad break range from cue point is missing");var c=LG(l,S,y.t3);if(c instanceof N)return c;c={layoutExitMuteTriggers:[],layoutExitNormalTriggers:c.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.K(l.renderingContent,ST))return p=hpr(p,a,l,c,S,n,Z,z,y.t3,V,B.vO,B.kY),p instanceof N?p:p.ZI===void 0?new N("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:p.layout,TO:[p.ZI]};var w=g.K(l.renderingContent,C9);if(w){if(!Ar(l.adLayoutMetadata))return new N("Invalid ad layout metadata");if(!vq(w))return new N("Invalid sequential layout");w=w.sequentialLayouts.map(X=>X.playerBytesAdLayoutRenderer); p=eco(p,a,l,c,w,S,y,n,V,z,Z,d,B.vO,B.kY,G);return p instanceof N?p:{layout:p.FO,TO:p.TO}}return new N("Not able to convert a sequential layout")}; sW=function(p,a,l){for(;dH(p,a);){const y=Ge(p,a);if(y.type===l)return y;a+=y.size}return null}; tBv=function(p=!1,a=200){const l=()=>{S1({writeThenSend:!0},p,a)},y=yl(p,a); var S=y===IcZ||y===RcZ?5E3:uYF;g.nU("web_gel_timeout_cap")&&!y.L&&(S=Vl(()=>{l()},S),y.L=S); MR(y.S);S=g.R("LOGGING_BATCH_TIMEOUT",g.yh("web_gel_debounce_ms",1E4));g.nU("shorten_initial_gel_batch_timeout")&&NT&&(S=Omh);S=Vl(()=>{g.yh("gel_min_batch_size")>0?ZO().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:a})>=kwM&&l():l()},S); y.S=S}; g.iH=function(p,a){var l=Math.abs(Math.floor(p)),y=Math.floor(l/86400);const S=Math.floor(l%86400/3600),n=Math.floor(l%3600/60);l=Math.floor(l%60);if(a){a="";y>0&&(a+=` ${y} `+"D\u00edas");if(y>0||S>0)a+=` ${S} `+"Horas";a+=` ${n} `+"Minutos";a+=` ${l} `+"Segundos";y=a.trim()}else{a="";y>0&&(a+=`${y}:`,S<10&&(a+="0"));if(y>0||S>0)a+=`${S}:`,n<10&&(a+="0");a+=`${n}:`;l<10&&(a+="0");y=a+l}return p>=0?y:`-${y}`}; Pg=function(p){const a={"Content-Type":"application/json"};g.R("EOM_VISITOR_DATA")?a["X-Goog-EOM-Visitor-Id"]=g.R("EOM_VISITOR_DATA"):g.R("VISITOR_DATA")&&(a["X-Goog-Visitor-Id"]=g.R("VISITOR_DATA"));a["X-Youtube-Bootstrap-Logged-In"]=g.R("LOGGED_IN",!1);g.R("DEBUG_SETTINGS_METADATA")&&(a["X-Debug-Settings-Metadata"]=g.R("DEBUG_SETTINGS_METADATA"));if(p!=="cors"){var l=g.R("INNERTUBE_CONTEXT_CLIENT_NAME");l&&(a["X-Youtube-Client-Name"]=l);(l=g.R("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(a["X-Youtube-Client-Version"]= l);(l=g.R("CHROME_CONNECTED_HEADER"))&&(a["X-Youtube-Chrome-Connected"]=l);(l=g.R("DOMAIN_ADMIN_STATE"))&&(a["X-Youtube-Domain-Admin-State"]=l)}g.R("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(p=g.R("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(a["X-YouTube-Lava-Device-Context"]=p):p!=="cors"&&g.R("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=g.R("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(a["X-YouTube-Lava-Device-Context"]=p);return a}; A3=function(p,a){let l;Nh(p,y=>{l=a[y];return!!l}); return l}; M4r=function(p){g.$m(p)?p=g.WW(p):(p=g.WA(p),g.yA(p,"cssText"));return p}; t4M=function(p,a,l,y,S=!1){const n=1E3/p.length,V=[];V.push({x:0,y:100});for(let Z=0;Z2147483647?-1:g.mm.setTimeout(p,a||0)}; D5$=function(p){p=Number(p.driftRecoveryMs);return isNaN(p)||p<=0?null:p}; du=function(p){var a;if(a=p.C&&p.U!=null)p=p.U,a=!(!p.L||!p.L.keyStatuses);return a}; imv=function(p){function a(l){return{toString:()=>l()}} p.macros.SURVEY_LOCAL_TIME_EPOCH_S=a(()=>{const l=new Date;return(Math.round(l.valueOf()/1E3)+-1*l.getTimezoneOffset()*60).toString()}); p.macros.SURVEY_ELAPSED_MS=a(()=>(Date.now()-p.j).toString())}; NtM=function(p,a){p.timestampOffset>0&&(a-=p.timestampOffset);var l=g.wH(p)+a;TtZ(p,l);p.timestampOffset=a}; hZv=function(p){const a=p.length;let l=0;const y=()=>p.charCodeAt(l++); do{var S=Hu(y);if(S===Infinity)break;const n=S>>3;switch(S&7){case 0:S=Hu(y);if(n===2)return S;break;case 1:if(n===2)return;l+=8;break;case 2:S=Hu(y);if(n===2)return p.substr(l,S);l+=S;break;case 5:if(n===2)return;l+=4;break;default:return}}while(l=0;V--){const Z=S.S[V];Z.info.Gm>=a&&(S.S.pop(),S.U-=tr(Z,S.policy.Ro),n=Z.info)}n&&(S.j=S.S.length>0?S.S[S.S.length-1].info:S.Hs,S.S.length!==0||S.j||D5(S,"r"));S.loader.Xu("mdstm",{rollbk:1,itag:n?n.L.info.itag:"",popped:n?n.Gm:-1,sq:a,lastslc:S.j?S.j.Gm:-1,lastfraget:S.U.toFixed(3)});if(p.policy.L)return p.S=null,!0;y>l?lx(p,y):p.S=p.L.X(a-1,!1).Yv[0]}catch(n){return a=XN(n),a.details.reason= "rollbkerr",p.loader.handleError(a.errorCode,a.details,a.severity),!1}return!0}; sUr=function(p){return new Promise((a,l)=>{Cc(p,a,l)})}; Te=function(p){return p.indexOf("/mp4")>=0?1:p.indexOf("/webm")>=0?2:p.indexOf("/x-flv")>=0?3:p.indexOf("/vtt")>=0?4:0}; Wf=function(p,a){p.L=a;if(a>p.U)throw Error();}; sj=function(p,a,l){p.B.A("delhi_modern_web_player")?a.lT(p.U.d7(NR[l])):a.lT(p.U.element)}; U5E=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; nZO=function(p,a,l){return p.L?.Gq(()=>tJ(p,a),l,y=>{if(p.L instanceof fh&&a.jg?.nX)try{p.cache?.L(tJ(p,a),y,a.jg.If,p.G-120)}catch(S){p.reportError(new gr(24,"ELX:write",S))}})}; hcq=function(p,...a){var l=p.api.O();for(const n of a)if(!(!n||n instanceof g.Uj&&!n.videoId)){var y=p.api.h9().getPlayerSize();var S=g.KX();a=y.width*S;S*=y.height;if(a>1280||S>720)if(y=n.uG("maxresdefault.jpg"))break;if(a>640||S>480)if(y=n.uG("maxresdefault.jpg"))break;if(a>320||S>180)if(y=n.uG("sddefault.jpg")||n.uG("hqdefault.jpg")||n.uG("mqdefault.jpg"))break;if(y=n.uG("default.jpg"))break}g.cy(l)&&(l=new Image,l.addEventListener("load",()=>{QUE()}),l.src=y?y:"",p.api.L0().tick("ftr")); p.X.style.backgroundImage=y?`url(${y})`:""}; OV=function(p,a){a>>>=0;p>>>=0;var l;a<=2097151?l=""+(4294967296*a+p):l=""+(BigInt(a)<{lxo().currentState==="none"?p():lxo().install({none:{callback:p}})},a):cR(p,0,a)}; yMr=function(p){var a=lT(p.L).lf,l=a.j().yF("SLOT_TYPE_PLAYER_BYTES",1);a=H8(a.MO.get(),1).clientPlaybackNonce;let y=!1;for(const S of l)l=S.slotType==="SLOT_TYPE_PLAYER_BYTES"&&S.slotEntryTrigger instanceof SZ?S.slotEntryTrigger.OG:void 0,l&&l===a&&(y&&Q("More than 1 preroll playerBytes slot detected",S),y=!0);y||qR(lT(p.L).yV)}; Sbe=function(p){const a=new g.et({W:"div",A9:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{W:"div",T:"ytp-ad-overlay-ad-info-button-container"},{W:"div",T:"ytp-ad-overlay-close-container",V:[{W:"button",T:"ytp-ad-overlay-close-button",V:[bz(IU)]}]},{W:"div",T:"ytp-ad-overlay-text-image",V:[{W:"img",Z:{src:"{{imageUrl}}"}}]},{W:"div",T:"ytp-ad-overlay-title",yY:"{{title}}"},{W:"div",T:"ytp-ad-overlay-desc",yY:"{{description}}"},{W:"div",A9:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], yY:"{{displayUrl}}"}]});p.J(a.d7("ytp-ad-overlay-title"),"click",l=>{RU(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-link"),"click",l=>{RU(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-close-container"),"click",p.Bs);p.J(a.d7("ytp-ad-overlay-text-image"),"click",p.Ba);a.hide();return a}; nQM=function(p,a,l,y,S){S=M8(S,a);dk(p,l,y,S);S&&!R4(S)&&hN(p.DI);return p}; J$=function(p,a){p.url=a;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=()=>{performance.clearResourceTimings()})}; ZeM=function(p){p=p.trim();if(p=="")return null;var a=String(p.slice(0,4)).toLowerCase();if(("url("1||p&&p.split(")"),null;if(p.indexOf("(")>0){if(/"|'/.test(p))return null;a=/([\-\w]+)\(/g;let l;for(;l=a.exec(p);)if(!(l[1].toLowerCase()in Vpr))return null}return p}; q_=function(p,a){g.eo("ytglobal.timing"+(a||"")+"ready_",p)}; oQh=function(p){return{token:w3(p,1),videoId:w3(p,2)}}; s4A=function(p,a){p=p.player.O();if(g.$G(p)||Kr(p))p=g.R("INNERTUBE_CONTEXT"),p?.adSignalsInfo?.advertisingId&&typeof p?.adSignalsInfo?.limitAdTracking!=="undefined"&&(a.advertisingId=p.adSignalsInfo.advertisingId,a.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",a.limitAdTracking=p.adSignalsInfo.limitAdTracking)}; z7$=function(p,a){var l=g.VZ(p,0,1952868452);p=g.VZ(p,0,1953658222);if(l&&p){l.skip(1);var y=o7(l)<<16|nT(l);l.skip(4);y&1&&l.skip(8);y&2&&l.skip(4);if(y&8){y=l.L;var S=Vn(l);l.data.setUint32(l.offset+y,a>1?Math.ceil(S*a):Math.floor(S*a))}p.skip(1);l=o7(p)<<16|nT(p);if(l&256){y=l&1;S=l&4;var n=l&512,V=l&1024,Z=l&2048;l=Vn(p);y&&p.skip(4);S&&p.skip(4);y=(n?4:0)+(V?4:0)+(Z?4:0);for(S=0;S1?Math.ceil(V*a):Math.floor(V*a)),p.skip(y)}}}; aTh=function(p,a){jP(p,1,a.name);jP(p,2,a.value)}; tu=function(p){return V_.t7.get(p)??"u"}; dYM=function(p){switch(p){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"}}; g.Ta=function(p){return p.containerType===1}; f3=function(p,a,l,y={}){g.Oc(()=>{GzO.includes(a)||(g.tX(new g.Qm("createClientScreen() called with a non-page VE",a)),a=83769);y.isHistoryNavigation||p.L.push({rootVe:a,key:y.key||""});p.K=[];p.C=[];y.tO?IPh(p,a,l,y):KwM(p,a,l,y)})()}; pC=function(p,a,l,y,S,n,V){const Z={layoutId:a,layoutType:l,qO:"core"};return{layoutId:a,layoutType:l,Xh:new Map,layoutExitNormalTriggers:V,layoutExitSkipTriggers:[new Sc(p.L,a)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new BkM(y),new GL(S)]),ao:n(Z),adLayoutLoggingData:y.adLayoutLoggingData}}; lG=function(p,a,l){aN(l,"mousedown",()=>cMe(p),301); aN(a,"scroll",()=>rMe(p),302); aN(l,"touchmove",()=>SkA(p),303); aN(l,"mousemove",()=>aM$(p),304); aN(l,"keydown",()=>wpe(p),305)}; POA=function(p,a){return a==null?null:p.U.find(l=>l.ZV().layoutId===a)||null}; LMM=function(p){if(!p.isInitialized){p.isInitialized=!0;try{const y=Date.now()-cg,S=QH(),n=nP();dd=y;S.U=79463069;p.S!=="o"&&($P=jZ(bn));if(OXh()){x2.L.Ig=0;x2.L.Jr=Date.now()-cg-y;var a=$Yo(),l=ND(ry);l.S=a;PXM(l,()=>{yO()})?x2.done||(Rwf(),Pt(l.L.L,p),Se()):n.U?yO():Se()}else nC=!0}catch(y){throw G1.reset(),y; }}}; VO=function(p){if(!ev(p)){const a=Hq(p.Ne);a&&!a.created&&P5(p.Ne)&&a.create()}}; XpO=function(p){const a=g.y_(p.D.S,y=>y.audio.L),l=g.y_(p.D.S,y=>!y.audio.L); return a?p.policy.PN?a:l:null}; xYq=function(p){switch(p){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"}}; EQM=function(){const p=g.ik();return p.Zy(192)?p.Zy(190):!(g.nU("web_watch_cinematics_disabled_by_default")||g.nU("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&FMM())}; CXO=function(p,a,l){p.D=a;p.X=l}; KMM=function(p){return{startMinReadaheadPolicy:ma(p,1,vQr),resumeMinReadaheadPolicy:ma(p,2,vQr)}}; zB=function(){return globalThis.performance?.now?.()??Date.now()}; wu=function(p){return{toString(){return p()}}}; Mpr=function(p){const a=p.api.O();var l=e7q(a);l=JAM(l);const y=l.Gh.bind(l);l.Gh=async n=>{n=await y(n);p.api.Xu("itr",{});return n}; let S;try{S=bev({X4:l,jW:{maxAttempts:5},o$:{LC:"CLEn",disable:a.experiments.Cz("html5_web_po_disable_remote_logging")||Ixh.includes(g.TX(a.Rd)||""),im:xxo(a.experiments),oN:a.experiments.Cz("wpo_gel_strz")?V=>{var Z=R7$.get(V);Z||(Z=new ufM(V),Z=new g.Q5(Z),R7$.set(V,Z));return Z}:void 0, BK:p.A("wpo_dis_lfdms")?0:1E3},cK:g.tX});const n=new Oef({ea:S,X4:l,onError:g.tX});kzZ(n.nm()).then(()=>{p.L=!0;p.X.resolve()}); p.A("html5_web_po_token_disable_caching")||n.X$(150);g.H(p,S);g.H(p,n);p.S=n}catch(n){g.tX(n),S?.dispose()}}; mYM=function(p,a){for(var l;;){if(p.Pa===0&&(E6(p),p.Pa===0)){if(a===0)return 1;break}p.BX=0;l=Cr(p,0,p.window[p.bM]);p.Pa--;p.bM++;if(l&&(LN(p,!1),p.oX.Sa===0))return 1}p.q3=0;return a===4?(LN(p,!0),p.oX.Sa===0?3:4):p.y9&&(LN(p,!1),p.oX.Sa===0)?1:2}; rH=function(p){if(!tK(p)||!MU(p,524531317))return!1;mT(p,!0);return!0}; Z$=function(p,a){const l=setTimeout(()=>{p.j.resolve()},a); p.addOnDisposeCallback(()=>void clearTimeout(l))}; g.oN=function(p){for(const a of p.items)a.unsubscribe("size-change",p.Yu,p);p.items=[];try{g.m1(p.menuItems.element)}catch(a){g.tX(new g.Qm("Failed to remove menu items from panel menu.",{error:a.message,originalStack:a.stack,childToBeRemoved:p.menuItems.element.firstChild?.textContent??"child element not found"}))}p.menuItems.publish("size-change")}; zl=function(p,a,l,y){var S=eZ;return a8(QH().L.L,(...n)=>uME(S,p,()=>a.apply(l,n),y))}; dx=function(p){g.OW(p.badge.element,"ytp-suggested-action-badge-with-controls",p.QY||!p.N)}; Gl=function(p){return function(){return iTF[p].apply(this,arguments)}}; SUr=function(p){return Math.round(Math.max(0,p*1E3)).toString()}; tpq=function(p){return p.layout.renderingContent?p.layout.clientMetadata.t9("metadata_type_player_bytes_callback_ref")?.current:p.layout.clientMetadata.t9("metadata_type_player_bytes_callback")}; xt=function(){const p=g.Wk("yt-player-proxima-pref");return p==null?null:p}; pN=function(p,a,l){p&&!l&&(p=p.parentNode);for(l=0;p;){if(a(p))return p;p=p.parentNode;l++}return null}; Wgh=function(p,a,l){p.L&&p.L.dispose();p.L=new g.SF(p.K,a,p);g.H(p,p.L);p.B.setTrackingParams(p.element,l.Fu?.trackingParams||null);l?.Fu?.title?.content?(a=l.Fu?.title?.content,l.Fu?.bodyText?.content&&(a+=" \u2022 ")):a="";p.update({text:a+(l.Fu?.bodyText?.content||""),chevron:g.n6()})}; Xp=function(p,a){const l=p.search(Xt);let y=0,S;const n=[];for(;(S=hV(p,y,a,l))>=0;)n.push(p.substring(y,S)),y=Math.min(p.indexOf("&",S)+1||l,l);n.push(p.slice(y));return n.join("").replace(jPr,"$1")}; WME=function(p,a,l){p=p.map(z=>nW(g.K(z.renderingContent,ST),!1)); const y=p.map(z=>z.videoLengthSeconds),S=y.map((z,d)=>new VC(d,y)); let n=a,V=l;const Z=[];p.forEach((z,d)=>{V=Math.min(n+z.videoLengthSeconds*1E3,l);B9(z.playerVars,S[d]);Z.push({Ih:z,Fa:n,rZ:V,D_:d,O9:S[d]});n=V}); return Z}; c9=function(p){p.S&&aq(p.S);p.qoe&&MAM(p.qoe)}; He$=function(p,a){return p.S+a*(p.L-p.S)}; ief=function(p,a){var l=Fh().resolve(DYv);if(acr(a)){var y=Gg(a,"gclid");a={handleEvent:S=>{p&&!p.closed&&typeof p.postMessage==="function"&&S&&S.origin&&S.source===p&&S.data&&S.data.action==="gcl_setup"&&p.postMessage({action:"gcl_transfer",...(y&&{gclid:y}),gadSource:2},S.origin)}}; for(const [S,n]of l.L){const V=S,Z=n;if(V.closed)try{window.removeEventListener("message",Z),l.L.delete(V)}catch(z){g.MD(z)}}p&&l.L.size<15&&(l.L.set(p,a),window.addEventListener("message",a))}}; UYO=function(p,a){By(p,1,a.hw,rx,3);if(a.Qe)for(var l=0;l6048E5&&X2(p,"signature");return!1}; qbr=function(p,a,l){switch(a){case "M":p.qoe?.ac(a,l);break;case "A":p.qoe?.ac(a)}}; g.F2=function(p,a,l){g.Oc(xi)(void 0,p,a,l,void 0)}; pTO=function(){if(JMh)throw Error("carr");Ec(fxO,5)}; aCo=function(p,a){gD(p,1,a.elapsedTimeMs);jP(p,3,a.videoDecoderName)}; yTh=function(p){p.mediaElement&&(p.Kz?(Ee(p),p.qR(),lC$(p,!1)):(p.videoData.Tm&&p.videoData.Tm.j(),p.mediaElement.stopVideo()),p.playVideo())}; g.AF=function(p,a,l){for(const y in p)if(a.call(l,p[y],y,p))return!0;return!1}; Vh$=function(p){if(SVe(p.videoTrack))return"ssf";if(p.policy.Rc&&b6(p.videoTrack)?.isLocked&&b6(p.audioTrack)?.isLocked)return"updateEnd";if(CC(p.audioTrack)||CC(p.videoTrack)&&p.videoTrack.L.info.mT!=="f")return"";if(p.Hi.isSeeking()){var a=p.C;var l=p.videoTrack;var y=p.audioTrack;if(a.policy.L){var S=a.policy.OU;v9(a.policy)&&(S=KC(a,!1,W3(a)));a=S;l=ob(y,!0)>=a&&ob(l,!0)>=a}else l.U.length||y.U.length?(S=l.L.info.Sb+y.L.info.Sb,S=10*(1-W3(a)/S),a=Math.max(S,a.policy.OU),l=ob(y,!0)>=a&&ob(l,!0)>= a):l=!0;if(!l)return"abr";l=p.videoTrack;if(l.U.length>0&&l.j.S.length===1&&eN(l.j).info.C360);y=v9(p.policy)&&p.policy.Jw;if(!p.RK||!y&&l)return"";l=p.policy.q0;v9(p.policy)&&(l=KC(p.C,p.RK,W3(p.C)));l=yeZ(p.videoTrack,p.getCurrentTime(),l)||yeZ(p.audioTrack,p.getCurrentTime(),l);return v9(p.policy)?l?"mbnm": "":(p.videoTrack.U.length>0||p.audioTrack.U.length>0||PT(p.X,p.videoTrack,p.audioTrack)||PT(p.X,p.audioTrack,p.videoTrack))&&l?"nord":""}; zbv=function(){const p=yhZ();if(p!==void 0)return l3(p);oM||(oM=pk("//googleads.g.doubleclick.net/pagead/id",Z2M).then(dy).Lo(a=>oOF(2,a))); return oM}; dVr=function(p){const a=p.offsetWidth,l=p.offsetHeight,y=g.H5&&!a&&!l;return(a===void 0||y)&&p.getBoundingClientRect?(p=YF(p),new g.J9(p.right-p.left,p.bottom-p.top)):new g.J9(a,l)}; g.GIr=function(p){let a=p.vssId;p.translationLanguage&&a&&(a=`t${a}.${g.ka(p)}`);return a}; ee=function(p,a,l){p=p.DI;return q6(Jd(p),p,void 0,a)===l?l:-1}; Lo=function(p,a,l){if(!(a.Hf&&p.isComplete()&&p.canRetry()&&p.info.gG.So(a,l))||p.info.gG.C)return 0;p=$O(l,HE(p.info.gG,!1,a));return p.S+a.Hf*A$(p,!0)>(0,g.h)()?0:1}; exF=async function(p,a){return g.hs(await g.lz(bG,a),["databases"],{nx:!0,mode:"readwrite"},l=>{const y=l.objectStore("databases");return y.get(p.actualName).then(S=>{if(S?p.actualName!==S.actualName||p.publicName!==S.publicName||p.userIdentifier!==S.userIdentifier:1)return g.zg(y,p).then(()=>{})})})}; Ble=function(p,a,l){const y=[];for(let S=0;S=0;y--){var S=p[y];if(a.call(l,S,y,p))return{pQ:y,FE:S}}return{pQ:-1,FE:void 0}}; wTF=function(p,a,l,y,S,n){const V={},Z={};g.yo(a,(z,d)=>{z=z.filter(G=>{const B=G.itag;if(!G.uf)return Z[B]="noenc",!1;if(n.NO&&G.mT==="(h"&&n.Tm)return Z[B]="lichdr",!1;if(!p.X&&G.mT==="1e")return Z[B]="noav1enc",!1;if(G.mT==="("||G.mT==="(h"){if(p.U&&l&&l.flavor==="widevine"){var c=G.mimeType+"; experimental=allowed";(c=!!G.uf[l.flavor]&&!!l.S[c])||(Z[B]=G.uf[l.flavor]?"unspt":"noflv");return c}if(!Oe(p,y9.CRYPTOBLOCKFORMAT)&&!p.w7||p.Sl)return Z[B]=p.Sl?"disvp":"vpsub",!1}return l&&G.uf[l.flavor]&& l.S[G.mimeType]?!0:(Z[B]=l?G.uf[l.flavor]?"unspt":"noflv":"nosys",!1)}); z.length&&(V[d]=z)}); y&&Object.entries(Z).length&&S({rjr:ki(Z)});return V}; MC=function(p,a){a=$VM[a];for(const l of a)p.B.Kv(l)}; Pb$=function(p){const a=p.clientMetadata.t9("metadata_type_player_bytes_callback_ref")?.current;if(!a)return null;const l=p.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref");var y=p.layoutId,S=p.clientMetadata.t9("metadata_type_content_cpn"),n=p.clientMetadata.t9("metadata_type_instream_ad_player_overlay_renderer"),V=p.clientMetadata.t9("metadata_type_player_underlay_renderer"),Z=p.clientMetadata.t9("metadata_type_ad_placement_config"),z=p.clientMetadata.t9("metadata_type_video_length_seconds"); var d=Ci(p.clientMetadata,"metadata_type_layout_enter_ms")&&Ci(p.clientMetadata,"metadata_type_layout_exit_ms")?(p.clientMetadata.t9("metadata_type_layout_exit_ms")-p.clientMetadata.t9("metadata_type_layout_enter_ms"))/1E3:void 0;return{LU:y,contentCpn:S,GE:a,HV:l,instreamAdPlayerOverlayRenderer:n,instreamAdPlayerUnderlayRenderer:V,adPlacementConfig:Z,videoLengthSeconds:z,QU:d,inPlayerLayoutId:p.clientMetadata.t9("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:p.clientMetadata.t9("metadata_type_linked_in_player_slot_id")}}; O2A=function(p,a,l,y,S,n,V,Z,z,d,G){const B=l.renderer,c=l.config.adPlacementConfig,w=c.kind,X=l.adSlotLoggingData,v=u=>Yv(p.EQ.get(),u); var I=Z.v7&&w==="AD_PLACEMENT_KIND_START";I=n&&!I;if(B.adsEngagementPanelRenderer!=null)return Ma(a,l.elementId,w,B.adsEngagementPanelRenderer.isContentVideoEngagementPanel,B.adsEngagementPanelRenderer.adVideoId,B.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.adsEngagementPanelRenderer;u=Yv(p.EQ.get(),u);return Pu(A,$h,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new LaF(cE),m,M,cE.impressionPings,u,B.adsEngagementPanelRenderer.adLayoutLoggingData, D)}),[]; if(B.adsEngagementPanelLayoutViewModel)return Ma(a,l.elementId,w,B.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,B.adsEngagementPanelLayoutViewModel.adVideoId,B.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.adsEngagementPanelLayoutViewModel;u=Yv(p.EQ.get(),u);return Ej(A,$h,"LAYOUT_TYPE_PANEL",new XTh(cE),m,M,u,B.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,D)}),[]; if(B.actionCompanionAdRenderer!=null){if(B.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return RC$(p.S.get(),p.U,p.L.get(),B.actionCompanionAdRenderer,c,X,y,v);Ma(a,l.elementId,w,B.actionCompanionAdRenderer.isContentVideoCompanion,B.actionCompanionAdRenderer.adVideoId,B.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.actionCompanionAdRenderer;u=Yv(p.EQ.get(),u);return Pu(A,$h,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new IVM(cE), m,M,cE.impressionPings,u,B.actionCompanionAdRenderer.adLayoutLoggingData,D)})}else if(B.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(B.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return lqA(p.S.get(),p.U,p.L.get(),B.topBannerImageTextIconButtonedLayoutViewModel,c,X,y,v); Ma(a,l.elementId,w,B.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,B.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,B.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.topBannerImageTextIconButtonedLayoutViewModel;u=Yv(p.EQ.get(),u);return Ej(A,$h,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new aqh(cE),m,M,u,B.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,D)})}else if(B.imageCompanionAdRenderer)Ma(a, l.elementId,w,B.imageCompanionAdRenderer.isContentVideoCompanion,B.imageCompanionAdRenderer.adVideoId,B.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.imageCompanionAdRenderer; u=Yv(p.EQ.get(),u);return Pu(A,$h,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new xVZ(cE),m,M,cE.impressionPings,u,B.imageCompanionAdRenderer.adLayoutLoggingData,D)}); else if(B.bannerImageLayoutViewModel)Ma(a,l.elementId,w,B.bannerImageLayoutViewModel.isContentVideoCompanion,B.bannerImageLayoutViewModel.adVideoId,B.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.bannerImageLayoutViewModel;u=Yv(p.EQ.get(),u);return Ej(A,$h,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new FaM(cE),m,M,u,B.bannerImageLayoutViewModel.adLayoutLoggingData,D)}); else if(B.shoppingCompanionCarouselRenderer)Ma(a,l.elementId,w,B.shoppingCompanionCarouselRenderer.isContentVideoCompanion,B.shoppingCompanionCarouselRenderer.adVideoId,B.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,c,X,(u,m,M,D)=>{var A=p.L.get(),$h=u.slotId,cE=B.shoppingCompanionCarouselRenderer;u=Yv(p.EQ.get(),u);return Pu(A,$h,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new EOO(cE),m,M,cE.impressionPings,u,B.shoppingCompanionCarouselRenderer.adLayoutLoggingData,D)}); else if(B.adBreakServiceRenderer){if(l.renderer?.adBreakServiceRenderer?.getAdBreakUrl===void 0)return[];if(w==="AD_PLACEMENT_KIND_PAUSE")return ZT$(p.S.get(),c,X,l.renderer.adBreakServiceRenderer,y);if(w!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&w!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return CbA(p.S.get(),c,X,l.renderer.adBreakServiceRenderer,y,S,n);Z.va||Q("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:w,adPlacementConfig:c,daiEnabledForContentVideo:String(n), isServedFromLiveInfra:String(Z.va),clientPlaybackNonce:Z.clientPlaybackNonce});if(w==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!p.sO)return new N("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!p.iC)return new N("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");p.iC.qp({adPlacementRenderer:l,contentCpn:y,t3:S});S=p.sO.get().getCurrentTimeSec(1,!1);return RyZ(p.S.get(),l.renderer.adBreakServiceRenderer, c,S,y,X,n)}if(!p.rE)return new N("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");p.rE.qp({adPlacementRenderer:l,contentCpn:y,t3:S})}else{if(B.clientForecastingAdRenderer)return Lnf(p.S.get(),p.L.get(),c,X,B.clientForecastingAdRenderer,y,S,v);if(B.invideoOverlayAdRenderer)return vOh(p.S.get(),p.L.get(),c,X,B.invideoOverlayAdRenderer,y,S,v);if(B.instreamAdPlayerOverlayRenderer)return Kah(p.S.get(),p.L.get(),c,X,B.instreamAdPlayerOverlayRenderer, y,v);if((B.linearAdSequenceRenderer||B.instreamVideoAdRenderer)&&I)return ebv(p.S.get(),p.L.get(),l,y,v,d,!p.EO.get().B.O().A("html5_override_ad_video_length_killswitch"));if(B.linearAdSequenceRenderer&&!I){if(V)return[];f$(a,B,w);if(B.linearAdSequenceRenderer.adLayoutMetadata){if(!EPr(B.linearAdSequenceRenderer))return new N("Received invalid LinearAdSequenceRenderer.")}else if(B.linearAdSequenceRenderer.linearAds==null)return new N("Received invalid LinearAdSequenceRenderer.");if(g.K(B.linearAdSequenceRenderer.adStart, HV)){Q("Found AdNotify in LinearAdSequenceRenderer");l=g.K(B.linearAdSequenceRenderer.adStart,HV);if(!(l?.durationMs!=null&&l?.durationMs>0))return new N("Invalid AdMessageRenderer.");n=B.linearAdSequenceRenderer.linearAds;return b2Z(p.j.get(),p.S.get(),p.L.get(),p.EQ.get(),c,X,l,Ar(B.linearAdSequenceRenderer.adLayoutMetadata)?B.linearAdSequenceRenderer.adLayoutMetadata:void 0,n,y,S,Z,v,z,p.loadPolicy,p.EO.get())}return ICO(p.S.get(),p.L.get(),c,X,B.linearAdSequenceRenderer.linearAds,Ar(B.linearAdSequenceRenderer.adLayoutMetadata)? B.linearAdSequenceRenderer.adLayoutMetadata:void 0,y,S,Z,v,z,p.loadPolicy,p.EO.get(),G)}if(!B.remoteSlotsRenderer||n){if(B.instreamVideoAdRenderer&&!I){if(V)return[];f$(a,B,w);return RbF(p.S.get(),p.L.get(),c,X,B.instreamVideoAdRenderer,y,S,Z,v,z,p.loadPolicy,p.EO.get(),p.EQ.get(),G)}if(B.instreamSurveyAdRenderer)return KcO(p.S.get(),p.L.get(),B.instreamSurveyAdRenderer,c,X,y,v,dp(p.EO.get(),"supports_multi_step_on_desktop"));if(B.sandwichedLinearAdRenderer!=null)return uhO(B.sandwichedLinearAdRenderer)? g.K(B.sandwichedLinearAdRenderer.adVideoStart,HV)?(Q("Found AdNotify in SandwichedLinearAdRenderer"),l=g.K(B.sandwichedLinearAdRenderer.adVideoStart,HV),l?.durationMs!=null&&l?.durationMs>0?(n=g.K(B.sandwichedLinearAdRenderer.linearAd,ST))?WxO(l,n,c,p.j.get(),p.S.get(),p.L.get(),p.EQ.get(),X,y,S,Z,v,z,p.loadPolicy,p.EO.get()):new N("Missing IVAR from Sandwich"):new N("Invalid AdMessageRenderer.")):ICO(p.S.get(),p.L.get(),c,X,[B.sandwichedLinearAdRenderer.adVideoStart,B.sandwichedLinearAdRenderer.linearAd], void 0,y,S,Z,v,z,p.loadPolicy,p.EO.get()):new N("Received invalid SandwichedLinearAdRenderer.");if(B.videoAdTrackingRenderer!=null)return ive(p.S.get(),p.L.get(),B.videoAdTrackingRenderer,c,X,y,S,Z.Yn,v)}}return[]}; oFE=function(p){return(kIA||(kIA=new TextEncoder)).encode(p)}; WaM=function(p,a,l,y,S){if(!p.playerOverlay?.instreamSurveyAdRenderer)return()=>[]; if(!Mhr(p))return()=>new N("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:p}); const n=p.playerOverlay.instreamSurveyAdRenderer,V=n0(n);return V<=0?()=>new N("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:n}):(Z,z)=>{const d=mVr(Z,l,y,G=>{var B=G.slotId; G=z(G);var c=ov(n);B=d$(S.S.get(),"LAYOUT_TYPE_SURVEY",B);const w={layoutId:B,layoutType:"LAYOUT_TYPE_SURVEY",qO:"core"},X=new wt(S.L,y),v=new $C(S.L,B),I=new PH(S.L,B),u=new thM(S.L);return{layoutId:B,layoutType:"LAYOUT_TYPE_SURVEY",Xh:new Map,layoutExitNormalTriggers:[X,u],layoutExitSkipTriggers:[v],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[I],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new jCO(n),new GL(a),new Gc(V/1E3),new cH(c)]),ao:G(w),adLayoutLoggingData:n.adLayoutLoggingData}}); Z=v9h(p,l,d.slotId,y,S,Z,z);return Z instanceof N?Z:[d,...Z]}}; rmM=function(p,a){return Math.max(0,p.Yv[0].X-a)}; NlO=function(p,a,l,y,S){const n=H2v(y);n.push(new DVf(y.Am));n.push(new i2O(y.kQ));return TlZ(a,l,y,new L0(n),S,p.S.get())}; sCO=function(p){mO(p);return p.data.map(a=>a.value)}; Afr=function(p,a,l){var y=[];let S=[];if((Array.isArray(l)?2:1)==1)return S=[a,p],g.Ir(y,function(Z){S.push(Z)}),UVr(S.join(" ")); const n=[],V=[];g.Ir(l,function(Z){V.push(Z.key);n.push(Z.value)}); l=Math.floor((new Date).getTime()/1E3);S=n.length==0?[l,a,p]:[n.join(":"),l,a,p];g.Ir(y,function(Z){S.push(Z)}); p=UVr(S.join(" "));p=[l,p];V.length==0||p.push(V.join(""));return p.join("_")}; QCf=function(p){switch(p){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; Lh=function(p,a,l,y,S){const n=p.L;n!==p.app.zm()&&p.app.Hx();p.Y.A("html5_sabr_csdai_seek_log")||(S="");n.seekTo(a,{qE:"application_timelinemanager"+(S??""),...l});jo(p,y)}; d8Z=function(...p){return p.length===0?a=>a:p.length===1?p[0]:p.reduce((a,l)=>(...y)=>a(l(...y)))}; hbo=function(p,a,l){let y=!1;for(const [S]of p.wd.entries()){const n=S;n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n.qO==="core"&&(y=!0)}if(y){a:if(!l){for(const [S,n]of p.wd.entries())if(p=S,l=n,p.slotType==="SLOT_TYPE_IN_PLAYER"&&p.qO==="core"){l=l.layoutId;break a}l=void 0}l?a.HP(l):Q("No triggering layout ID available when attempting to mute.")}}; je=function(p,a,l,y,S,n,V,Z,z){ph(p,"impression")&&(n?(n=S-y,n=n>=-1&&n<=2):n=Math.abs(y-S)<=1,tQ(p,a,n?y:S,l,y,V,Z&&n),n&&!z&&p.O6("complete"))}; gOr=function(p,a){return ATE(p.EO.get())?new h6(p.L,a,["normal","error","skipped"]):new h6(p.L,a,["normal"])}; H9=function(p){p.nz()||(p.UO=!0,p.S({onmdkrdy:1}),W9(p))}; g.$Y=function(p,a){const l=a.format||"JSON";p=qhr(p,a);var y=JKo(p,a);let S=!1,n;const V=YVr(p,Z=>{if(!S){S=!0;n&&g.tO(n);var z=g.D$(Z),d=null,G=400<=Z.status&&Z.status<500,B=500<=Z.status&&Z.status<600;if(z||G||B)d=qVE(p,l,Z,a.convertToSafeHtml);z&&(z=EAr(l,Z,d));d=d||{};G=a.context||g.mm;z?a.onSuccess&&a.onSuccess.call(G,Z,d):a.onError&&a.onError.call(G,Z,d);a.onFinish&&a.onFinish.call(G,Z,d)}},a.method,y,a.headers,a.responseType,a.withCredentials,!1,a.onProgress); y=a.timeout||0;if(a.onTimeout&&y>0){const Z=a.onTimeout;n=g.jQ(()=>{S||(S=!0,V.abort(),g.tO(n),Z.call(a.context||g.mm,V))},y)}return V}; NP=function(p,a,l){if(!p.playerVars)return new s2("No playerVars available in InstreamVideoAdRenderer.");if(p.elementId==null||p.playerVars==null||p.playerOverlay==null||p.playerOverlay?.instreamAdPlayerOverlayRenderer==null&&p.playerOverlay?.playerOverlayLayoutRenderer==null||p.pings==null||p.externalVideoId==null)return new s2("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:p});const y=cd(p.playerVars);let S=Number(y.length_seconds);isNaN(S)&&(S=0,Q("Expected valid length seconds in player vars but got NaN")); if(l.vX(a.kind==="AD_PLACEMENT_KIND_START")){if(p.layoutId===void 0)return new s2("Expected server generated layout ID in instreamVideoAdRenderer");a=p.layoutId}else a=p.elementId;return{layoutId:a,M9:p,playerVars:y,gj:p.playerVars,z2:S}}; g.se=function(p,a,l){g.OW(p.element,"ytp-suggestion-set",!!a.videoId);var y=a.playlistId;l=a.uG(l?l:"mqdefault.jpg");let S=null,n=null;a instanceof iG&&(a.lengthText?(S=a.lengthText||null,n=a.Zs||null):a.lengthSeconds&&(S=g.iH(a.lengthSeconds),n=g.iH(a.lengthSeconds,!0)));const V=!!y;y=V&&Tl(y).type==="RD";const Z=a instanceof iG?a.isLivePlayback:null,z=a instanceof iG?a.isUpcoming:null,d=a.author,G=a.shortViewCount,B=a.publishedTimeText,c=[],w=[];d&&c.push(d);G&&(c.push(G),w.push(G));B&&w.push(B); l={title:a.title,author:d,author_and_views:c.join(" \u2022 "),aria_label:a.ariaLabel||g.L$("Ver $TITLE",{TITLE:a.title}),duration:S,timestamp:n,url:a.Zb(),is_live:Z,is_upcoming:z,is_list:V,is_mix:y,background:l?`background-image: url(${l})`:"",views_and_publish_time:w.join(" \u2022 "),autoplayAlternativeHeader:a.Sg};a instanceof Na&&(l.playlist_length=a.playlistLength);p.update(l)}; JTF=function(p){IL(p.X,p.element,["keymessage","webkitkeymessage"],p.UO);IL(p.X,p.element,["keyerror","webkitkeyerror"],p.C);IL(p.X,p.element,["keyadded","webkitkeyadded"],p.K)}; cv=function(p,a,l){const y=a instanceof GF&&!p.U&&!p.S,S=!p.U&&l?.info.video;l=!p.S&&l?.info.audio;a.state===3?((S||y)&&p.tick("vrr"),(l||y)&&p.tick("arr")):a.state===4?S?(p.U=a.G9(),g.vT(),jc(4)):l&&(p.S=a.G9()):a instanceof JA&&a.tX()&&S&&(g.vT(),jc(4))}; he=function(p){Ue.call(this,p)}; tw=function(p){return p.L.getUint8(p.pos++)}; eco=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X){var v=WME(S,c,w);if(v instanceof N)return v;const I=[],u=[];for(const b_ of v){a:{var m=p,M=S[b_.D_],D=b_,A=a;v=n;var $h=V,cE=Z,FO=z,CA=d,sM=G;const F=yC(M);if(F instanceof N){v=F;break a}const tP={layoutId:M.adLayoutMetadata.layoutId,layoutType:M.adLayoutMetadata.layoutType,qO:"adapter"};D=QWM(A,M,D,v);D instanceof N?v=D:(m={...tP,...QO,Xh:F,renderingContent:M.renderingContent,clientMetadata:new L0(D),ao:Yv(cE,m)(tP),adLayoutLoggingData:M.adLayoutMetadata.adLayoutLoggingData}, v=(v=Zd(sM,m,v,$h.t3,cE,FO,CA,void 0,!0))?v instanceof N?v:{layout:m,ZI:v}:new N("Expecting associatedInPlayerSlot"))}if(v instanceof N)return v;I.push(v.layout);u.push(v.ZI)}S={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,qO:"core"};a=[new hQ(Number(l.driftRecoveryMs)),new AQ(c),new gx(w),new GL(Fz(a)),new fCM(B),new fj];X&&a.push(new blE);return{FO:{...S,...y,lK:I,Xh:new Map,clientMetadata:new L0(a),ao:Yv(Z,p)(S)},TO:u}}; Np=function(p){if(p instanceof cs)return p.L;throw Error("");}; qa=function(p,a){return Yi(p,a.e5,a.FX)?!0:!1}; Lz=function(p,a,l=!1){a.then(y=>{p.UO.delete(a);(l||y===4)&&p.K.resolve(y)},y=>{p.K.reject(y)})}; pWM=function(p,a=!1){if(!p.mediaElement||p.mediaElement.U()===0||p.mediaElement.hasError())return!1;const l=p.mediaElement.getCurrentTime()>0;return p.videoData.U&&p.videoData.U.L()||p.videoData.isLivePlayback||!p.videoData.FF()?p.S>=0&&!a&&(a=p.mediaElement.K(),a.length||!l)?Dq(a,p.S-p.timestampOffset):l:l}; Je=async function(p,a,l){{var y=p.L;const S=ym();y=S?new ade(y.S,S):void 0}if(y)try{return await y.encrypt(a,l)}catch(S){}return JQ(p,a,l)}; hJ=function(p){let a=AJ(p).nonce;a||(a=g.NM(16),AJ(p).nonce=a);return a}; W9=function(p){if(p.VY&&p.UO&&!p.w7){for(;p.j.length;){const a=p.j[0],l=ldq(p)?ynv(a):g.dW(a.initData);if(p.L.L()&&!a.S)p.j.shift();else{if(p.U.get(l))if(p.L.flavor!=="fairplay"||p.L.L()){p.j.shift();continue}else p.U.delete(l);S0M(a);break}}p.j.length&&p.createSession(p.j[0])}}; fC=function(p){p.setAttribute("role","link")}; zI=function(p){if(p.A("html5_onesie")&&p.errorCode)return!1;let a=g.tU(p.Ws,"ypc");p.ypcPreview&&(a=!1);return p.Kh()&&!p.loading&&(g.p5(p)||g.tU(p.Ws,"heartbeat")||a)}; Rb=function(p){for(const a in p.L)eg(p.L[a].info.mimeType)||nKf(p.L[a].index,Infinity)}; ap=function(){return g.nU("bg_st_hr")?"havuokmhhs-0":`${"havuokmhhs"}-${Math.floor(globalThis.performance?.timeOrigin||0)}`}; S2=function(p,a=!1){if(!p.questions?.length||!p.playbackCommands||!a&&p.questions.length!==1)return!1;for(const l of p.questions)if(!VTr(g.K(l,rj)?.surveyAdQuestionCommon||g.K(l,wj)?.surveyAdQuestionCommon))return!1;return!0}; lw=function(p,a,l){KU("pbs",a??(0,g.h)(),l??p.timerName)}; ZWr=function(p,a,l,y){l=new g.yz({W:"div",A9:["ytp-menuitem"],Z:{tabindex:"0",role:"menuitemradio","aria-checked":y?"true":"false"},V:[{W:"div",A9:["ytp-menuitem-label"],V:[{W:"div",A9:["ytp-menuitem-container-with-badge"],V:[{W:"div",yY:"{{label}}"},p.jl]}]}]},l,p.U(a));l.listen("click",()=>{p.QY(a)}); p.B.logVisibility(p.jl.element,!0);return l}; g.Er=function(p){p&&typeof p.dispose=="function"&&p.dispose()}; zNq=function(p,a,l){(p.app.h3().D[a.clientPlaybackNonce]||null)?.dispose();a=new oKf(p,a,p.playback,l/1E3);p.Ws.set(a.J5(),a);p.app.h3().D[a.J5()]=a}; YpM=function(p){return new Promise(a=>{setTimeout(a,p)})}; Vz=function(p){Su(p)&&p.j();WG(p)&&(n5(p,"captions",!0),n5(p,"endscreen"),p.L(),n5(p,"creatorendscreen",!0))}; Zv=function(p){var a=p.queue;a.L.length&&a.L[0].isEncrypted&&!a.S&&(a.L.length=0);for(const l of Object.keys(p.L)){const y=p.L[l];y.v4||(a=p.queue,a.L.push({videoId:y.videoId,formatId:l,isEncrypted:!1}),a.S||cW(a))}}; g.Q0=function(p,a,l){return HM(p,l||z1,!1,a)}; MJ=function(p,a,l,y,S,n){const V={format:"RAW"},Z={};if(S_(p)&&PB()){const z=g.R("EOM_VISITOR_DATA");z?Z["X-Goog-EOM-Visitor-Id"]=z:y?Z["X-Goog-Visitor-Id"]=y:g.R("VISITOR_DATA")&&(Z["X-Goog-Visitor-Id"]=g.R("VISITOR_DATA"));l&&(Z["X-Goog-PageId"]=l);(y=a.Sl)&&!Kr(a)&&(Z["X-Goog-AuthUser"]=y);S&&(Z.Authorization=`Bearer ${S}`);a.A("enable_datasync_id_header_in_web_vss_pings")&&a.Z1&&a.datasyncId&&(Z["X-YouTube-DataSync-Id"]=a.datasyncId);if(a.A("enable_rollout_token_header")){const d=g.R("INNERTUBE_CONTEXT")?.client?.rolloutToken; d&&(Z["X-YouTube-Rollout-Token"]=d)}z||Z["X-Goog-Visitor-Id"]||S||l||y?V.withCredentials=!0:a.A("html5_send_cpn_with_options")&&vPo.test(p)&&(V.withCredentials=!0)}Object.keys(Z).length>0&&(V.headers=Z);n&&(V.onFinish=n);return Object.keys(V).length>1?V:null}; We=function(p){return p.playerVars!==void 0&&p.pings!==void 0&&p.externalVideoId!==void 0}; dLZ=function(p){const a=p.api.getVideoData()?.nh();return p.api.getPresentingPlayerType(a)!==2}; op=function(p){var a;g.gm()?ve()==p&&(a=document):a=p;return a&&(p=A3(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],a))?(a=p.call(a),a instanceof Promise?a:Promise.resolve()):Promise.resolve()}; BEq=function(p,a){if(a+1<=p.totalLength){var l=EY(p,a);l=l<128?1:l<192?2:l<224?3:l<240?4:5}else l=0;if(l<1||!(a+l<=p.totalLength))return[-1,a];if(l===1)p=EY(p,a++);else if(l===2)l=EY(p,a++),p=EY(p,a++),p=(l&63)+64*p;else if(l===3){l=EY(p,a++);var y=EY(p,a++);p=EY(p,a++);p=(l&31)+32*(y+256*p)}else if(l===4){l=EY(p,a++);y=EY(p,a++);const S=EY(p,a++);p=EY(p,a++);p=(l&15)+16*(y+256*(S+256*p))}else l=a+1,p.focus(l),zp(p,l,4)?p=GgM(p).getUint32(l-p.U,!0):(y=EY(p,l+2)+256*EY(p,l+3),p=EY(p,l)+256*(EY(p,l+ 1)+256*y)),a+=5;return[p,a]}; cnh=function(p){p.N||(p.N=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))}; ZhA=function(p,a,l,y,S){let n=!1;y=rW(p,y,S,V=>{const Z=op$(V,l,a);n=Z!==V&&Z!=null;return Z}); if(y!=null)return n&&!R4(y)&&hN(p,a),y}; g.Kv=function(p){switch(p.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; wWo=async function(p){if(!p.nz()&&p.j&&p.L){p.K&&p.app.zm().uS(!0,!1);var a=null;if(p.U)try{await lQO(p.U)}catch(y){a=y}if(p.L&&(rnM.Kj("vqsp",()=>{p.app.Kg(p.L)}),p.L)){var l=p.L.mB(); p.app.O().A("html5_gapless_seek_on_negative_time")&&l&&l.getCurrentTime()<-.01&&p.L.seekTo(0);rnM.Kj("vqpv",()=>{p.app.playVideo()}); a&&(p.L?(a=a?a.message:"forced",p.S?.Xu("gapfulfbk",{r:a}),p.L.T5(a)):p.S?.Xu("gapsp",{}));a=p.j;h3(p);a&&a.resolve();Promise.resolve()}}}; dF=function(p){p.X=(0,g.h)();p.started=0;p.timedOut=0;p.L=0}; $Lr=function(p,a){return p.layoutExitNormalTriggers.find(l=>l instanceof wt&&l?.triggeringLayoutId!==a)?.triggeringLayoutId}; PqO=function(p){const a=new g.Uj(p.Y,p.z5);p.pz.publish("initialvideodatacreated",a);return IA(p,1,a,!1)}; Gp=function(){var p=/\sCobalt\/(\S+)\s/.exec(g.Vo());if(!p)return NaN;const a=[];for(const l of p[1].split("."))p=parseInt(l,10),p>=0&&a.push(p);return parseFloat(a.join("."))}; pk=function(p,a){const l=g.O1(a);let y;return(new g.AU((S,n)=>{l.onSuccess=V=>{g.D$(V)?S(new LGe(V)):n(new BY(`Request failed, status=${cY(V)}`,"net.badstatus",V))}; l.onError=V=>{n(new BY("Unknown request error","net.unknown",V))}; l.onTimeout=V=>{n(new BY("Request timed out","net.timeout",V))}; y=g.$Y(p,l)})).Lo(S=>{S instanceof he&&y?.abort(); return l3(S)})}; XWo=function(p){return{QD:r3(p,1),httpStatus:r3(p,2),body:mV(p,4)}}; Aqe=function(p,a){if(a==0)return Fi();var l=Vj(p,a);p.t8&&p.D?l=p.S.subarray(l,l+a):(p=p.S,a=l+a,l=l===a?new Uint8Array(0):p.slice(l,a));return l.length==0?Fi():new hB(l,tI)}; q3E=function(p,a,l,y=0){if(p==null){var S=32;l?(p=[l],S|=128):p=[];a&&(S=S&-8380417|(a&1023)<<13)}else{if(!Array.isArray(p))throw Error("narr");S=p[rD]|0;if(JMh&&1&S)throw Error("rfarr");2048&S&&!(2&S)&&pTO();if(S&256)throw Error("farr");if(S&64)return y!==0||S&2048||(p[rD]=S|2048),p;if(l&&(S|=128,l!==p[0]))throw Error("mid");a:{l=p;S|=64;var n=l.length;if(n){var V=n-1;const z=l[V];if(z!=null&&typeof z==="object"&&z.constructor===Object){a=S&128?0:-1;V-=a;if(V>=1024)throw Error("pvtlmt");for(var Z in z)if(n= +Z,n1024)throw Error("spvt");S=S&-8380417|(Z&1023)<<13}}}S|=64;y===0&&(S|=2048);p[rD]=S;return p}; JYq=function(p){return Number(p.data["Start-Media-Time-Us"])/1E6||0}; Ra=function(p){jv(tI);var a=p.L;a=a==null||a!=null&&a instanceof Uint8Array?a:typeof a==="string"?m8(a):null;return a==null?a:p.L=a}; rF=function(p,a,l,y,S,n=!1){p.Ws.xn(a,l/a);p.D=(0,g.h)();S||p.C.xn(1,a-y);n||(p.X=0);p.N>-1&&(0,g.h)()-p.N>3E4&&xLA(p)}; z5=function(){if(!ZY){ZY={};var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),a=["+/=","+/","-_=","-_.","-_"];for(let l=0;l<5;l++){const y=p.concat(a[l].split(""));FGF[l]=y;for(let S=0;S{if(a in TK){var l=TK[a];const y=l[0],S=l[1],n=l[3];l=l[4];y.removeEventListener?Pkr()||typeof l==="boolean"?y.removeEventListener(S,n,l):y.removeEventListener(S,n,!!l.capture):y.detachEvent&&y.detachEvent(`on${S}`,n);delete TK[a]}}))}; CqO=function(p,a,l,y){if(!a&&!l)return Promise.resolve();if(!y)return EKr(a,l);let S;(S=p.S)[y]||(S[y]=new Promise((n,V)=>{EKr(a,l).then(()=>{p.L=y;n()},Z=>{delete p.S[y]; V(Z)})})); return p.S[y]}; vKq=function(p){p.L.disabled=p.S==null;g.OW(p.L,"ytp-chapter-container-disabled",p.L.disabled);p.rq()}; $S=function(p,a){return p.map(l=>Sh(g.UY(l,a)))}; PY=function(){try{const p=window.navigator;if(p.getAutoplayPolicy&&typeof p.getAutoplayPolicy==="function"){const a=document.getElementsByClassName(g.AW.TC);let l;l=a.length>0&&a[0]?p.getAutoplayPolicy(a[0]):p.getAutoplayPolicy("mediaelement");if(KGA[l])return KGA[l]}}catch(p){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; eNA=function(p){if(p.csn!==g.c2())if(p.csn==="UNDEFINED_CSN")p.csn=g.c2();else{var a=g.c2(),l=g.rM();if(a&&l){p.csn=a;for(const y of p.elements){const S=y.visualElement;S&&S.isClientVe()&&a&&l&&(g.nU("combine_ve_grafts")?LP(aJ(),S,l):g.Oc(g.P2)(void 0,a,l,S))}}if(a)for(const y of p.L)(p=y.visualElement)&&p.isClientVe()&&g.bo(a,p)}}; Idh=function(p,a){a=bWE(p,a);if(!a)return null;a.QU=p.clientMetadata.t9("metadata_type_ad_pod_info")?.adBreakRemainingLengthSeconds;return a}; iE=function(p,a){return p.Jg?Dq(p.Jg.gP(),a):!0}; L5=function(p){return p.j?!1:!p.keySystemAccess&&!!DN()&&p.keySystem==="com.microsoft.playready"}; RNq=function(p,a,l){const y=[],S=a?156595:151874;for(const V of p){var n=V.video;p={formatId:V.id,qualityLabel:n.qualityLabel,quality:n.quality,isPlayable:a};if(n=l.get(n.qualityLabel))p.paygatedQualityDetails={paygatedIndicatorText:n.paygatedIndicatorText,endpoint:n.endpoint,veType:S,trackingParams:n.trackingParams};y.push(p)}return y}; XE=function(p,a){if(typeof a!=="number"||a<0||a>=p.length)throw Error();}; u9$=function(p){var a={veType:253246};return g.Oc(()=>{if(!a.veType)return xS(new g.Qm("Error: Trying to graft a client VE without a veType.")),null;if(a.visibilityTypes){var l=a.visibilityTypes.reduce((y,S)=>y|S); l={visibility:{types:String(l)}}}l=Pxr(a.veType,a.visualElement,a.elementIndex,a.clientYouTubeData,void 0,l);return LP(p,l)?l:null})()}; il=function(p){if(!(this instanceof il))return new il(p);p=this.options=Yr.assign({level:-1,method:8,chunkSize:16384,Fd:15,WK:8,strategy:0,to:""},p||{});p.raw&&p.Fd>0?p.Fd=-p.Fd:p.e7&&p.Fd>0&&p.Fd<16&&(p.Fd+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.oX=new OWA;this.oX.Sa=0;var a=this.oX;var l=p.level,y=p.method,S=p.Fd,n=p.WK,V=p.strategy;if(a){var Z=1;l===-1&&(l=6);S<0?(Z=0,S=-S):S>15&&(Z=2,S-=16);if(n<1||n>9||y!==8||S<8||S>15||l<0||l>9||V<0||V>4)a=FE(a,-2);else{S===8&&(S=9);var z= new kgq;a.state=z;z.oX=a;z.wrap=Z;z.Q$=null;z.fn=S;z.Db=1<>=7;n<30;n++)for(K5[n]=V<<7,S=0;S<1<=d.Db&&(a===0&&(Rp(d.head),d.bM=0,d.LO=0,d.q3=0),l=new Yr.m9(d.Db),Yr.BR(l,n,V-d.Db,d.Db,0),n=l,V=d.Db);l=p.Mb;y=p.hX;S=p.input;p.Mb=V;p.hX=0;p.input=n;for(E6(d);d.Pa>=3;){n=d.bM;V=d.Pa-2;do d.V$=(d.V$<{a.push({...n})}); const y=p.QY.dw();let S=p.L;for(const n of y)S=Tfr(p,a,l,n,S);a.forEach(n=>{n.startTimeMs&&(n.startTimeMs+=p.timestampOffset*1E3)}); return{WZ:a,wA:l}}; g.vg=function(p){return p.data["Serialized-State"]?p.data["Serialized-State"]:""}; NEv=function(p){if(!p)return"unknown";switch(p){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; g.ULh=function(p,a){if(p.L!=null&&g.p9(a,p.L)&&p.L.L.rawcc!=null)return!0;if(!p.va())return!1;a=!!p.L&&p.L.isManifestless&&Object.values(p.L.L).some(l=>g.ju(l,"386")); p=!!p.L&&!p.L.isManifestless&&g.syv(p.L);return a||p}; g.Dv=function(p,a,l,y,S=!1){l&&WY(p,l);l=g.ZM(p);const n=g.YU(l);p!=n&&D0(Error(`Unsafe window.open URL: ${p}`));p=n;a=a||HY(p).toString(36);try{if(S)return S=p,S=Fmr(S),a_(S),g.xZ(window,S,a,"attributionsrc")}catch(V){g.Wp(V)}a_(p);return g.xZ(window,l,a,y)}; iw=function(p){p.offsets.length=0&&p<=1}; Nr=function(p,a){p.index=g.qx(a,0,p.length-1);p.startSeconds=0}; Cmf=function(){return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}}; hNA=function(p){const [a,l]=p.split(".");return[Number(a),l]}; Qz=function(p,a={},l,y=!1){if(y)return a.disabled=1,0;if(Oe(p.X,y9.AV1_CODECS)&&Oe(p.X,y9.HEIGHT)&&Oe(p.X,y9.BITRATE))return a.isCapabilityUsable=1,8192;try{var S=ZN$();if(S&&!p.A("disable_av1_setting"))return a.localPref=S}catch{}y=1080;S=navigator.hardwareConcurrency;S<=2&&(y=480);a.coreCount=S;if(S=g.ak(p.experiments,"html5_default_av1_threshold"))y=a["default"]=S;!p.A("html5_disable_av1_arm_check")&&Ano()&&(a.isArm=1,y=240);if(p=p.X.N)a.mcap=p,y=Math.max(y,p);if(l){if(p=l.videoInfos.find(n=>n.L())?.X?.powerEfficient)y= 8192,a.isEfficient=1; l=l.videoInfos[0].video;S=Math.min(Ut("1",l.fps),Ut("1",30));a.perfCap=S;y=Math.min(y,S);l.isHdr()&&!p&&(a.hdr=1,y*=.75)}else l=Ut("1",30),a.perfCap30=l,y=Math.min(y,l),l=Ut("1",60),a.perfCap60=l,y=Math.min(y,l);return a.av1Threshold=y}; gKA=function(p,a,l,y,S,n){if(Array.isArray(l))for(let V=0;V=0);if(!(a<0||a===p.j)){p.j=a;a=243*p.scale;var l=141*p.scale,y=Jnr(p.S,p.j,a);fdq(p.bg,y,a,l,!0);p.Sl.start()}}; ywr=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v,I,u,m,M,D,A,$h){const cE={uT:Z,Gn:z,oM:d,QL:G,MO:B,sO:c,EY:w,BZ:X,sC:v,F7:I,uM:u,MA:m,EO:M,context:A,zp:$h};Z=qa(y,{e5:["metadata_type_sub_layouts"],FX:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||y.lK!==void 0&&y.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";z=Wr(l,M.get())&&qa(y,{e5:[],FX:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});d=qa(y,{e5:[],FX:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});X=()=>au$({OD:p,slot:l,layout:y,vy:n,HX:V,MO:B, gq:D,QL:G,Lt:S,sO:c,bR:{...cE,callback:{VQ:()=>{}, lr:()=>{}, QV:()=>void qr(V,y,"normal"), N2:()=>{}}, slot:l,Dg:y,xS:()=>{}, D_:0,yE:1,xp:!0},context:A}); I=()=>{const FO=JD({...cE,callback:{VQ:p.VQ.bind(p),lr:p.lr.bind(p),QV:()=>{}, N2:p.N2.bind(p)},slot:l,Dg:y,xS:()=>{qr(V,y,"normal")}, D_:0,yE:1,xp:!0});return FO?new lue(p,G,c,v,FO,S,M):FO}; u=()=>{const FO=y.lK??y.clientMetadata.t9("metadata_type_sub_layouts"),CA=ltq({OD:p,MO:B,gq:D,QL:G,sO:c,EY:w,sC:v,v1:a,slot:l,layout:y,vy:n,Id:V,Lt:S,EO:M}),sM=[];for(let b_=0;b_{tP.Lh(FO[b_],"normal")}, D_:b_,yE:FO.length,xp:!1});if(!F)return;sM.push(F)}CA.VT=sM;return CA}; if(Z)return u();if(z)return X();if(d)return I()}; EX=function(p){p.U.hide();p.banner.update({vendor:f5(p)})}; nYr=function(p,a,l,y,S){a!==p.L?.Gm||p.S===1||y||p.L.S5.event==="predictStart"||p.Xu("sdai",{undecevt:1,sq:a,mt:l,evt:p.L.S5.event},!0);a>p.D&&(p.D=NaN,p.G=NaN);p.L&&p.L.Gm===a?S6$(p,a,l,p.L,S):p.S===1&&o_(p,5,"noad")}; Dq=function(p,a){return Jh(p,a)>=0}; MU=function(p,a,l=!1){if(pY(p))return!1;let y=p.pos;for(;mT(p,!1)!==a;)if(sx(p),y=p.pos,pY(p))return!1;l&&(p.pos=y);return!0}; AIM=function(p,a){if(a==null||a=="")return new p;a=JSON.parse(a);if(!Array.isArray(a))throw Error("dnarr");a[rD]|=32;return new p(a)}; Vgf=function(p,a){p.callback=a;p.j=[];aS(p.g7.experiments)?kp(p):bhe(p)}; XD=function(p,a){a?p.requestHeaders.Authorization=`Bearer ${a}`:delete p.requestHeaders.Authorization}; MR=function(p){g.nU("transport_use_scheduler")?g.XY.bk(p):g.tO(p)}; f6=function(p,a){a||(a={});a[Ft(p)]=!0;let l=p.stack||"";var y=p.cause;y&&!a[Ft(y)]&&(l+="\nCaused by: ",y.stack&&y.stack.indexOf(y.toString())==0||(l+=typeof y==="string"?y:y.message+"\n"),l+=f6(y,a));p=p.errors;if(Array.isArray(p)){y=1;let S;for(S=0;S4);S++)a[Ft(p[S])]||(l+="\nInner error "+y++ +": ",p[S].stack&&p[S].stack.indexOf(p[S].toString())==0||(l+=typeof p[S]==="string"?p[S]:p[S].message+"\n"),l+=f6(p[S],a));S0&&zQ(12E4,p-1);throw a;}; fPM=function(p=null){return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].url!=null)?g.wQ(p.thumbnails[0].url):""}; fn=function(p,a,l){a.match(L3F);return p(a,l).then(y=>{const S=g.X0A(y.xhr);return S?fn(p,S,l):y.xhr})}; nY=function(p){p.K?.D();p.UO=[]}; ANr=function(p,a,l){if(p.provider.Y.experiments.Cz("html5_refactor_sabr_audio_format_selection_logging")){a=l.L;var y=[a.audio&&a.video?a.IZ?a.IZ:"":a.id];a.rG&&a.rG.id&&y.push(a.rG.id);y=y.join(";");y!==p.D&&(a=[y,p.D,l.reason],l.token&&a.push(l.token),g.vy(p,g.CX(p.provider),"afs",a),p.D=y)}else l.L.id!==p.D&&(y=[l.L.id,p.D,l.reason],l.token&&y.push(l.token),g.vy(p,a,"afs",y),p.D=l.L.id)}; g.ZA=function(p){const a={languageCode:p.languageCode,languageName:p.languageName,displayName:g.Vg(p),kind:p.kind,name:p.name,id:p.id,is_servable:p.L,is_default:p.isDefault,is_translateable:p.isTranslateable,vss_id:p.vssId};p.xtags&&(a.xtags=p.xtags);p.captionId&&(a.captionId=p.captionId);p.translationLanguage&&(a.translationLanguage=p.translationLanguage);return a}; ZD=function(p){const a={};if(!p||!p.thumbnails)return a;p=p.thumbnails.filter(S=>!!S.url); p.sort((S,n)=>S.width-n.width||S.height-n.height); for(var l of Object.keys(xTv)){var y=Number(l);const S=xTv[y];for(const n of p)if(n.width>=y){y=e4(n.url);g.hx(y)&&(a[S]=y);break}}(l=p.pop())&&l.width>=1280&&(l=e4(l.url),g.hx(l)&&(a["maxresdefault.jpg"]=l));return a}; Pi=function(p,a,l){var y=Array(16),S=0,n;for(n=1;n<=15;n++)y[n]=S=S+l[n-1]<<1;for(l=0;l<=a;l++)S=p[l*2+1],S!==0&&(p[l*2]=mLh(y[S]++,S))}; NG=function(p){var a=F3q;p.S&&(g.cL(p.L,(l,y)=>EYe(y,l)?1:EYe(l,y)?-1:0),p.S=!1); return j1(p.L,(l,y)=>{y=a(y);return`${l}${l!=""&&y!=""?"&":""}${y}`},"")}; CYZ=function(p,a){return p.L!==a.L?!1:p.range&&a.range?p.range.start+p.S>=a.range.start+a.S&&p.range.start+p.S+p.U<=a.range.start+a.S+a.U:p.Gm===a.Gm&&p.S>=a.S&&(p.S+p.U<=a.S+a.U||a.j)}; vYo=function(p,a){uD(p)?g.XM(()=>{a(p)}):p.callback=a}; g.dW=function(p,a){a===void 0&&(a=0);z5();a=FGF[a];const l=Array(Math.floor(p.length/3)),y=a[64]||"";let S=0,n=0;for(;S>2];V=a[(V&3)<<4|Z>>4];Z=a[(Z&15)<<2|z>>6];z=a[z&63];l[n++]=""+d+V+Z+z}d=0;z=y;switch(p.length-S){case 2:d=p[S+1],z=a[(d&15)<<2]||y;case 1:p=p[S],l[n]=""+a[p>>2]+a[(p&3)<<4|d>>4]+z+y}return l.join("")}; Ut=function(p,a,l){p=`${p}${a>49?"p60":a>32?"p48":""}`;a=oS()[p];if(a!=null&&a>0)return a;a=zS.get(p);if(a!=null&&a>0)return a;l=l?.get(p);return l!=null&&l>0?l:8192}; K3$=function(p){p=p.S;return p.cancelAnimationFrame||p.cancelRequestAnimationFrame||p.webkitCancelRequestAnimationFrame||p.mozCancelRequestAnimationFrame||p.oCancelRequestAnimationFrame||p.msCancelRequestAnimationFrame||null}; O7=function(p,a,l){p=new p.constructor(a);l&&(p.L=tF);p.j=tF;return p}; e2F=function(p){return p.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?`${p}Z`:p}; brM=function(p){return window.Profiler&&new window.Profiler(p)}; ICO=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w){a=Iur(p,a,l,S,n,V,z,d,G,B,c,w);W3E(S)?(V=Hro(p,l,V,Z),V instanceof N?p=V:(Z=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER"),z=d$(p.S.get(),"LAYOUT_TYPE_SURVEY",Z),S=[...V.slotExpirationTriggers,new Sc(p.L,z)],Z=a({slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,qO:V.qO,slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:S},{slotId:Z,layoutId:z}),p=Z instanceof N?Z:{dK:{slotId:V.slotId, slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:n7(p,l,V.slotId,V.slotEntryTrigger),slotFulfillmentTriggers:V5(p,l,V.slotId,V.slotFulfillmentTriggers),slotExpirationTriggers:S,qO:V.qO,clientMetadata:new L0([new oa(zW(l)),new Z1(Z.layout),new dA({qa:p.qa(l)})]),adSlotLoggingData:y},TO:Z.TO})):p=DTh(p,l,V,Z,y,z.va,a);return p instanceof N?p:p.TO.concat(p.dK)}; ds=function(p){return p.Ha?p.Ha-(p.C||p.timestampOffset):0}; eT=function(p){return/(vp9|vp09|vp8|avc1|av01)/.test(p)}; f$=function(p,a,l){if(a=ir$(a))for(const y of a)y&&y.externalVideoId?(a=A5(p,y.externalVideoId),a.instreamVideoAdRenderer||(a.instreamVideoAdRenderer=y,a.Za=l)):Q("InstreamVideoAdRenderer without externalVideoId")}; d6=function(p,a,l,y,S,n,V,Z,z,d,G){const B=[];if(a.length===0&&y.length===0&&l.length===0)return B;a=a.filter(Tc);const c=l.filter(djv),w=y.filter(Tc),X=new Map,v=Pzr(a),I=l.some(A=>A?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES"),u=l.some(A=>A?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"),m=l.some(A=>A?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER"),M=l.some(A=>A?.adSlotMetadata?.slotType==="SLOT_TYPE_BELOW_PLAYER"||A?.adSlotMetadata?.slotType==="SLOT_TYPE_ABOVE_FEED"),D=l.some(A=> A?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"); l=l.some(A=>A?.adSlotMetadata?.slotType==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"); if(I||u||m||M||D||l)d=Tdo(c,a,Z,S,v,p.EQ.get(),p.loadPolicy,X,p.EO.get(),p.j.get(),m,V,z,d,G),d instanceof N?Q(d,void 0,void 0,{contentCpn:S}):B.push(...d);for(const A of a)d=O2A(p,X,A,S,n,V,I,Z,v,z,c),d instanceof N?Q(d,void 0,void 0,{renderer:A.renderer,config:A.config.adPlacementConfig,kind:A.config.adPlacementConfig.kind,contentCpn:S,daiEnabled:V}):B.push(...d);ATE(p.EO.get())||(n=Ndr(p,w,S,Z,v,X),B.push(...n));if(p.U===null||V&&!Z.v7)return p=Z.va&&a.length===1&&a[0].config?.adPlacementConfig?.kind=== "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&a[0].renderer?.adBreakServiceRenderer,B.length||p||Q("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:S,"first APR kind":a[0]?.config?.adPlacementConfig?.kind,renderer:a[0]?.renderer}),B;y=y.filter(Tc);B.push(...pfr(X,y,p.S.get(),p.U,S,I));B.length||Q("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":a.length,contentCpn:S,daiEnabled:V.toString(), "first APR kind":a[0]?.config?.adPlacementConfig?.kind,renderer:a[0]?.renderer});return B}; g.snr=function(p){if(p.videoData&&p.videoData.v8){const a=[p.videoData.v8];for(const l of Object.keys(p.L))if(p.Po[l]&&p.L[l]){const y=p.L[l](p.Po);y&&a.push(y)}return a.join("&")}return null}; UTM=function(p){if(!p.stack)return!0;const a=!p.stack.includes("\n");return a&&p.stack.includes("ErrorType: ")||a&&p.stack.includes("Anonymous function (Unknown script")||p.stack.toLowerCase()==="not available"||p.fileName==="user-script"||p.fileName.startsWith("user-script:")?!0:!1}; Aw$=function(p){let a=QnO(p.X,p.mediaElement);a?a.then(GS(()=>{h2r(p)}),GS(l=>{if(!p.nz()){g.MD(l); var y="t.a";l instanceof DOMException&&(y+=";n."+l.name+";m."+l.message);p.publish("licenseerror","drm.unavailable",1,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(p.S({mdkrdy:1}),p.UO=!0); p.N&&(a=QnO(p.N,p.mediaElement))}; g.BX=function(p,a){for(const l of p.Hs)if(a>=l.start&&a<=l.end)return!0;return!1}; sV=function(p){p=AJ(p);p.tick||(p.tick={});return p.tick}; xLA=function(p){var a=lPr(p);g.V2("yt-player-bandwidth",a,2592E3);p.N=(0,g.h)();p.UO=!0}; OPh=async function(p){if(!ugM)throw Error("DecompressionStream is not supported");const a=ax.Pn();var l=new DecompressionStream("gzip");const y=l.writable.getWriter();y.write(p);y.close();p=l.readable.getReader();for(l=new F8([]);;){const {value:S,done:n}=await p.read();if(n)break;l.append(S)}p=jO(l);ax.oz("gznb",a,Math.ceil(p.byteLength/16));return p}; gYE=function(p){p.J(p.B,g.tT("shopping_overlay_visible"),()=>{p.cX(!0)}); p.J(p.B,g.jh("shopping_overlay_visible"),()=>{p.cX(!1)}); p.J(p.B,g.tT("shopping_overlay_expanded"),()=>{p.Ws=!0;bK(p)}); p.J(p.B,g.jh("shopping_overlay_expanded"),()=>{p.Ws=!1;bK(p)}); p.J(p.B,g.tT("shopping_overlay_preview_collapsed"),()=>{p.L=!0;cX(p)}); p.J(p.B,g.jh("shopping_overlay_preview_collapsed"),()=>{p.L=!1;cX(p)}); p.J(p.B,g.tT("shopping_overlay_preview_expanded"),()=>{p.U=!0;cX(p)}); p.J(p.B,g.jh("shopping_overlay_preview_expanded"),()=>{p.U=!1;cX(p)})}; Y6h=function(p,a){if(!p||!p.state||a>5||a<0)return p?FE(p,-2):-2;var l=p.state;if(!p.output||!p.input&&p.Mb!==0||l.status===666&&a!==4)return FE(p,p.Sa===0?-5:-2);l.oX=p;var y=l.Go;l.Go=a;if(l.status===42)if(l.wrap===2)p.Ae=0,kz(l,31),kz(l,139),kz(l,8),l.Q$?(kz(l,(l.Q$.text?1:0)+(l.Q$.KN?2:0)+(l.Q$.extra?4:0)+(l.Q$.name?8:0)+(l.Q$.comment?16:0)),kz(l,l.Q$.time&255),kz(l,l.Q$.time>>8&255),kz(l,l.Q$.time>>16&255),kz(l,l.Q$.time>>24&255),kz(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),kz(l,l.Q$.os& 255),l.Q$.extra&&l.Q$.extra.length&&(kz(l,l.Q$.extra.length&255),kz(l,l.Q$.extra.length>>8&255)),l.Q$.KN&&(p.Ae=rs(p.Ae,l.Qh,l.pending,0)),l.h4=0,l.status=69):(kz(l,0),kz(l,0),kz(l,0),kz(l,0),kz(l,0),kz(l,l.level===9?2:l.strategy>=2||l.level<2?4:0),kz(l,3),l.status=113);else{var S=8+(l.fn-8<<4)<<8;S|=(l.strategy>=2||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6;l.bM!==0&&(S|=32);l.status=113;ws(l,S+(31-S%31));l.bM!==0&&(ws(l,p.Ae>>>16),ws(l,p.Ae&65535));p.Ae=1}if(l.status===69)if(l.Q$.extra){for(S= l.pending;l.h4<(l.Q$.extra.length&65535)&&(l.pending!==l.dA||(l.Q$.KN&&l.pending>S&&(p.Ae=rs(p.Ae,l.Qh,l.pending-S,S)),PV(p),S=l.pending,l.pending!==l.dA));)kz(l,l.Q$.extra[l.h4]&255),l.h4++;l.Q$.KN&&l.pending>S&&(p.Ae=rs(p.Ae,l.Qh,l.pending-S,S));l.h4===l.Q$.extra.length&&(l.h4=0,l.status=73)}else l.status=73;if(l.status===73)if(l.Q$.name){S=l.pending;do{if(l.pending===l.dA&&(l.Q$.KN&&l.pending>S&&(p.Ae=rs(p.Ae,l.Qh,l.pending-S,S)),PV(p),S=l.pending,l.pending===l.dA)){var n=1;break}n=l.h4S&&(p.Ae=rs(p.Ae,l.Qh,l.pending-S,S));n===0&&(l.h4=0,l.status=91)}else l.status=91;if(l.status===91)if(l.Q$.comment){S=l.pending;do{if(l.pending===l.dA&&(l.Q$.KN&&l.pending>S&&(p.Ae=rs(p.Ae,l.Qh,l.pending-S,S)),PV(p),S=l.pending,l.pending===l.dA)){n=1;break}n=l.h4S&&(p.Ae=rs(p.Ae,l.Qh,l.pending-S,S));n===0&&(l.status=103)}else l.status= 103;l.status===103&&(l.Q$.KN?(l.pending+2>l.dA&&PV(p),l.pending+2<=l.dA&&(kz(l,p.Ae&255),kz(l,p.Ae>>8&255),p.Ae=0,l.status=113)):l.status=113);if(l.pending!==0){if(PV(p),p.Sa===0)return l.Go=-1,0}else if(p.Mb===0&&(a<<1)-(a>4?9:0)<=(y<<1)-(y>4?9:0)&&a!==4)return FE(p,-5);if(l.status===666&&p.Mb!==0)return FE(p,-5);if(p.Mb!==0||l.Pa!==0||a!==0&&l.status!==666){y=l.strategy===2?mYM(l,a):l.strategy===3?svh(l,a):uw[l.level].func(l,a);if(y===3||y===4)l.status=666;if(y===1||y===3)return p.Sa===0&&(l.Go= -1),0;if(y===2&&(a===1?(zf(l,2,3),$L(l,256,BV),l.v9===16?(AT(l,l.rd),l.rd=0,l.v9=0):l.v9>=8&&(l.Qh[l.pending++]=l.rd&255,l.rd>>=8,l.v9-=8)):a!==5&&(zf(l,0,3),df(l,0,0),a===3&&(Rp(l.head),l.Pa===0&&(l.bM=0,l.LO=0,l.q3=0))),PV(p),p.Sa===0))return l.Go=-1,0}if(a!==4)return 0;if(l.wrap<=0)return 1;l.wrap===2?(kz(l,p.Ae&255),kz(l,p.Ae>>8&255),kz(l,p.Ae>>16&255),kz(l,p.Ae>>24&255),kz(l,p.ZK&255),kz(l,p.ZK>>8&255),kz(l,p.ZK>>16&255),kz(l,p.ZK>>24&255)):(ws(l,p.Ae>>>16),ws(l,p.Ae&65535));PV(p);l.wrap>0&& (l.wrap=-l.wrap);return l.pending!==0?0:1}; Jwf=function(p,a){let l=PX(a,"id");l=l.replace(":",";");let y=PX(a,"mimeType");var S=PX(a,"codecs");y=S?`${y}; codecs="${S}"`:y;S=Number(PX(a,"bandwidth"))/8;const n=Number(LY(a,"BaseURL").getAttribute(p.G+":contentLength")),V=p.duration&&n?n/p.duration:0;if(eT(y)){var Z=Number(PX(a,"width")),z=Number(PX(a,"height")),d=Number(PX(a,"frameRate"));const X=dYM(PX(a,p.G+":projectionType"));a:switch(PX(a,p.G+":stereoLayout")){case "layout_left_right":var G=1;break a;case "layout_top_bottom":G=2;break a; default:G=0}G=new bq(Z,z,d,X,G)}if(kK(y)){var B=Number(PX(a,"audioSamplingRate"));var c=Number(PX(a.getElementsByTagName("AudioChannelConfiguration")[0],"value"));Z=xYq(PX(a,p.G+":spatialAudioType"));B=new ML(B,c,Z);a:{z=PX(a,"lang")||"und";if(c=LY(a,"Role"))if(d=PX(c,"value")||"",g.em(q6F,d)){c=`${z}.${q6F[d]}`;Z=d==="main";p=PX(a,p.G+":langName")||`${z} - ${d}`;c=new g.mG(p,c,Z);break a}c=void 0}}if(a=LY(a,"ContentProtection"))if(a.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var w= {};for(a=a.firstChild;a!=null;a=a.nextSibling)a instanceof Element&&/SystemURL/.test(a.nodeName)&&(p=a.getAttribute("type"),Z=a.textContent,p&&Z&&(w[p]=Z.trim()))}else w=void 0;return new tn(l,y,{audio:B,video:G,rG:c,uf:w,Sb:S,Q7:V,contentLength:n})}; RX=function(p,a){const l=Xo();l&&l.publish.call(l,p.toString(),p,a)}; pr$=function(p){const a=navigator.connection?.type||"";if(a)return fuh[a]||fuh.other;if(g.ur(p.Y)){p=navigator.userAgent;if(/[Ww]ireless[)]/.test(p))return 3;if(/[Ww]ired[)]/.test(p))return 30}return 0}; g.TX=function(p){return VvA(g.hq(p)[3]||null)}; g.N7=function(p){return i$r(p.S)}; CI=function(p){p=g.TX(p);return p!==null?p.split(".").reverse():null}; Be=function(p){return Ar(p.adLayoutMetadata)?(p=g.K(p.renderingContent,Xz))&&p.pings?!0:!1:!1}; g.ET=function(p,a="/",l="youtube.com"){xL||Fo.remove(""+p,a,l)}; CEM=function(p,a,l,y,S,n,V,Z,z,d,G){return{adClientDataEntry:{slotData:e_(p,{slotId:a,slotType:l,slotPhysicalPosition:y,qO:S,slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:Z,clientMetadata:new L0([])}),layoutData:aOe(p,{layoutId:z,layoutType:d,qO:G,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Xh:new Map,clientMetadata:new L0([]),ao:{}})}}}; lOM=function(p){return p.fields.map(a=>a.fieldName)}; yOE=function(p){if(CY()){p.QQ=p.api.L0();p.L=new z0;p.U=2;var a=g.ak(p.api.O().experiments,"html5_d6de4_defer_timeout_ms");p.QQ.Ut("pt_pish");a?g.jQ(()=>{vX(p)},a):p.api.A("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(()=>{vX(p)}):vX(p)}}; Za=function(p,a=!1){ar(69,p);if(p[r[14]]!==r[3]){var l=p[r[60]]();l[r[6]](r[43],r[36]);return l}var y=p[r[87]]();l=new g.pr(y);var S=p[r[74]](r[61]);const n=decodeURIComponent(p[r[74]](r[56])||r[27])[r[4]](r[58]);if(S&&n&&n[r[9]]>1&&n[1])return y=l.L,p=y[r[32]](/^[^.]*/,r[27]),g.Ud(l,`${y[r[2]](r[52])===0?r[52]:r[45]}${S}---${n[1]}${p}`),l=new g.Xh(l[r[22]]()),l[r[6]](r[49],r[36]),l;if(a)return l=p[r[60]](),l[r[6]](r[49],r[36]),l;S=l.L[r[13]](r[50]);l.L[r[13]](r[70])?(g.Ud(l,r[20]),y=l[r[22]]()): l.L[r[13]](r[81])?(g.Ud(l,r[55]),y=l[r[22]]()):(l=SSO(y),KY(l)&&(y=l));l=new g.Xh(y);l[r[6]](r[79],r[36]);S&&l[r[6]](r[69],r[15]);return l}; n2M=function(p){p=ey[p]!==void 0?ey[p].toString():null;return p!=null&&/^[A-Fa-f0-9]+$/.test(p)?parseInt(p,16):null}; ZiF=function(p){const a=VQE(p);if(a)return p.videoData.getAvailableAudioTracks().find(l=>l.rG.getName()===a)}; zeF=function(p){let a="";for(let y=0;ya.j(l))}; GuE=async function(p,a,l,y,S){var n=await g.dt();if(!n)throw g.tl("rc");n=g.hs(await g.pW(n),["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},V=>{const Z=`${p}${"|"}${a}${"|"}${l}${"|"}${String(y).padStart(10,"0")}`;return V.objectStore("media").get(Z)}); return S?n.then(V=>{if(V===void 0)throw Error("No data from indexDb");return dHo(S,V)}).catch(V=>{throw new g.Qm(`Error while reading chunk: ${V.name}, ${V.message}`); }):n}; vAo=function(){return g.Wk("yt-player-voice-boost")??void 0}; cOM=function(p,a=!1){return Qu(oY(p,B6O),p,a,"Captions URL")}; xF=function(p){return[p.auth===void 0?"undefined":p.auth,p.isJspb===void 0?"undefined":p.isJspb,p.cttAuthInfo===void 0?"undefined":p.cttAuthInfo,p.tier===void 0?"undefined":p.tier].join("/")}; wrr=function(p){const a=p.layoutId,l=p.Lv;p.k$&&(md(l,"sleo",{xc:a,is:p.Lg,ctp:tu(a)}),rOO(l))}; PQv=function(p){if(p.nodeType==1)return $HA(p);p=p.changedTouches?p.changedTouches[0]:p;return new g.g3(p.clientX,p.clientY)}; jJE=function(p,a){if(!p.L["0"]){var l=new tn("0","fakesb",{video:new bq(0,0,0,void 0,void 0,"auto")});p.L["0"]=a?new bh(new g.Xh("http://www.youtube.com/videoplayback"),l,"fake"):new GA(new g.Xh("http://www.youtube.com/videoplayback"),l,new PR(0,0),new PR(0,0))}}; Llh=function(p,a){const l=a.indexOf("?");if(l>0){const y=gC(5,a.substring(l+1));g.yo(y,function(S,n){this.set(n,S)},p); a=a.substring(0,l)}a=tZ(16,a);g.yo(a,function(y,S){this.set(S,y)},p)}; IS=function(p){return(0,g.h)()-p.D>=4E3}; uhO=function(p){return p.linearAd!=null&&p.adVideoStart!=null}; g.h$=function(p){this.j=p.yb||null;this.U=p.aG||!1;this.S=void 0}; yT=function(p,a){const l=g.x3(p.Y)&&!p.Y.N;var y=l&&a?a:g.DB(p.playlist);a=l&&a?a:p.getVideoData();y&&(a.Yo&&(p.Y.L1||p.Y.DF)||!p.u1?(a=a.A$,y=p.CN(y,1),a&&RS(p,y)):uh(p,y,1));g.x3(p.Y)&&p.QQ.tick("ep_p_l");p.BY=!1;g.OT(p.pz,"onPlaylistUpdate")}; g.ID=function(p,a,l){p.X=l?G9(a,!0):a;p.X&&(p.X=p.X.replace(/:$/,""))}; kL=function(p){return p.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""]??0}; Xrr=function(p,a){const l=z1;g.cL(p,function(y,S){return l(a(y),a(S))})}; X4=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{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"}}]}}; Mt=function(p,a){const l=p.zm();return a===p.jb()&&p.eD(a)&&p.eD(l)?l:a}; g.xHM=function(){return g.Nx(mE(16),p=>(p&15).toString(16)).join("")}; Rx=function(p,a,l,y){p.L.Xu("timelineerror",{e:a,cpn:l?l:void 0,videoId:y?y:void 0})}; gv=function(p){return p.A$||p.Yo||p.mutedAutoplay}; g.aD=function(p,a=!1,l=!1){var y=g.R("INNERTUBE_CONTEXT");if(!y)return g.MD(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};y=g.vO(y);g.nU("web_no_tracking_params_in_shell_killswitch")||delete y.clickTracking;y.client||(y.client={});var S=y.client;S.clientName==="MWEB"&&S.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(S.clientFormFactor=g.R("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");S.screenWidthPoints=window.innerWidth;S.screenHeightPoints=window.innerHeight;S.screenPixelDensity= Math.round(window.devicePixelRatio||1);S.screenDensityFloat=window.devicePixelRatio||1;S.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var n=g.ik();var V="USER_INTERFACE_THEME_LIGHT";n.Zy(165)?V="USER_INTERFACE_THEME_DARK":n.Zy(174)?V="USER_INTERFACE_THEME_LIGHT":!g.nU("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(V="USER_INTERFACE_THEME_DARK");n=FlF()||V;S.userInterfaceTheme= n;if(!a){if(n=N$M())S.connectionType=n;g.nU("web_log_effective_connection_type")&&(n=fno())&&(y.client.effectiveConnectionType=n)}g.nU("web_log_memory_total_kbytes")&&g.mm.navigator?.deviceMemory&&(y.client.memoryTotalKbytes=`${g.mm.navigator?.deviceMemory*1E6}`);if(g.nU("web_gcf_hashes_innertube")){var Z=p2o();Z&&(n=Z.coldConfigData,V=Z.coldHashData,Z=Z.hotHashData,y.client.configInfo=y.client.configInfo||{},n&&(y.client.configInfo.coldConfigData=n),V&&(y.client.configInfo.coldHashData=V),Z&&(y.client.configInfo.hotHashData= Z))}n=g.IE(g.mm.location.href);!g.nU("web_populate_internal_geo_killswitch")&&n.internalcountrycode&&(S.internalGeo=n.internalcountrycode);S.clientName==="MWEB"||S.clientName==="WEB"?(S.mainAppWebInfo||(S.mainAppWebInfo={}),S.mainAppWebInfo.graftUrl=g.mm.location.href,g.nU("kevlar_woffle")&&E2$.instance&&(n=E2$.instance,S.mainAppWebInfo.pwaInstallabilityStatus=!n.L&&n.S?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),S.mainAppWebInfo.webDisplayMode=Dc(),S.mainAppWebInfo.isWebNativeShareAvailable= navigator&&navigator.share!==void 0):S.clientName==="TVHTML5"&&(!g.nU("web_lr_app_quality_killswitch")&&(n=g.R("LIVING_ROOM_APP_QUALITY"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{appQuality:n})),n=g.R("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(S.tvAppInfo=Object.assign(S.tvAppInfo||{},{certificationScope:n}));if(!g.nU("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!=="undefined")try{var z=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch{}z=void 0}z&&(S.timeZone=z)}(z= V0())?S.experimentsToken=z:delete S.experimentsToken;S=Zx();tv.instance||(tv.instance=new tv);z=tk(tv.instance.L);y.request={...y.request,internalExperimentFlags:S,consistencyTokenJars:z};!g.nU("web_prequest_context_killswitch")&&(S=g.R("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(y.request.externalPrequestContext=S);z=g.ik();S=z.Zy(58);z=z.get("gsml","");y.user={...y.user};S&&(y.user.enableSafetyMode=S);z&&(y.user.lockedSafetyMode=!0);g.nU("warm_op_csn_cleanup")?l&&(a=g.c2())&&(y.clientScreenNonce=a): !a&&(a=g.c2())&&(y.clientScreenNonce=a);p&&(y.clickTracking={clickTrackingParams:p});if(p=g.o1("yt.mdx.remote.remoteClient_"))y.remoteClient=p;jy.getInstance().setLocationOnInnerTubeContext(y);try{var d=sO(),G=d.bid;delete d.bid;y.adSignalsInfo={params:[],bid:G};for(const [B,c]of Object.entries(d))d=B,G=c,y.adSignalsInfo.params?.push({key:d,value:`${G}`});if(y.client?.clientName==="TVHTML5"||y.client?.clientName==="TVHTML5_UNPLUGGED"){const B=g.R("INNERTUBE_CONTEXT");B.adSignalsInfo&&(y.adSignalsInfo.advertisingId= B.adSignalsInfo.advertisingId,y.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",y.adSignalsInfo.limitAdTracking=B.adSignalsInfo.limitAdTracking)}}catch(B){g.MD(B)}return y}; CQr=function(){const p={values:{},nw:{}};try{const a=JSON.parse(JSON.parse(window.localStorage["yt-player-memory"]).data);p.values=a.values;p.halfLives=a.halfLives}catch{}return p}; v2r=function(p){if(p.K){const a=p.options[p.K];a.element.getAttribute("aria-checked");a.element.setAttribute("aria-checked","false");p.K=null}}; kfM=function(p){if(KlZ.test(p))return p}; pQo=function(p,a){a.push('"',p.replace(eer,function(l){let y=bi$[l];y||(y="\\u"+(l.charCodeAt(0)|65536).toString(16).slice(1),bi$[l]=y);return y}),'"')}; jg=function(p,a){return a?"&"+p+"="+encodeURIComponent(a):""}; w6=function(p,a=!1){const l=Ry[p];let y=NVe[l];const S=IOM[p];if(!S||!y)return null;a=new bq(a?S.height:S.width,a?S.width:S.height,S.fps);y=Iy(y,a,l);return new tn(p,y,{video:a,Sb:S.bitrate/8})}; ReO=function(p,a){const l=a.totalLength;let y=!1;switch(p.U){case 0:p.Uu(a,p.j).then(S=>{var n=p.vZ;n.a4("oprr");n.playerResponse=S;n.HS||(n.sb=!1);WX(n)},S=>{p.vZ.fail(S)}); break;case 2:p.a4("ormk");a=jO(a);p.queue.decrypt(a);break;default:y=!0}p.vZ.ST&&p.vZ.Xu("ombup",`id.${11};pt.${p.U};len.${l}${y?";ignored.1":""}`);p.U=null}; pD=function(p,a,l,y){const S=p.j.eS();S.ssr_sk=(a*1E3).toFixed(0);S.ssr_t=(p.L*1E3).toFixed(0);S.ssr_r=l;S.ssr_st=(p.startTimeSecs*1E3).toFixed(0);S.ssr_n=(0,g.h)().toFixed(0);S.ssr_f=(p.G.L*1E3).toFixed(0);S.ssr_fa=p.U?"1":"0";S.ssr_o=(p.vR.Pi()*1E3||0).toFixed(0);S.ssr_v=(y*1E3).toFixed(0);a=p.S.L.index;a.NJ(p.S.Gm,!0)&&(S.ssr_ist=(a.getStartTime(p.S.Gm)*1E3).toFixed(0),S.ssr_id=(a.getDuration(p.S.Gm)*1E3).toFixed(0));p.loader.Xu("ssr",S)}; YA=function(p){return p?p.G():!1}; ZV=function(p){return p.Yv[p.Yv.length-1].UO()}; uCr=function(p,a,l){p.hP.get(a).onProgress=l}; HX=function(p,a,l,y,S=!1){if(p.policy.yR)return Math.ceil(p.policy.yR*a);p.policy.yZ&&(y=Math.abs(y));y/=p.playbackRate;let n;n=1/B5(p.s6);l=Math.max(.9*(y-3),XF(p.s6)+p.s6.S.L*n)/n*.8/(a+l);l=Math.min(l,y);p.policy.l_>0&&S&&(l=Math.max(l,p.policy.l_));return SB(p,l,a)}; OiF=function(p){ph(p,"impression")&&!ph(p,"seek")&&p.Fb("active_view_fully_viewable_audible_half_duration")}; DA=function(p){switch(p){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return p}}; ih=function(p){if(!p)return new PR(0,0);var a=Number(p.start);p=Number(p.end);if(!isNaN(a)&&!isNaN(p)&&(a=new PR(a,p),a.length>0))return a}; XiZ=function(p,a){if(a>=0)TS(p,a);else{for(let l=0;l<9;l++)p.L.push(a&127|128),a>>=7;p.L.push(1)}}; WQ=function(p,a){for(const l in p)if(!a.call(void 0,p[l],l,p))return!1;return!0}; Nt=function(p){return[p.top,p.left,p.bottom,p.right]}; vX=function(p){if(CY()){p.QQ=p.api.L0();var a=g.ak(p.api.O().experiments,"html5_d6de4_cloud_project_number");p.QQ.Ut("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:a}).then(l=>{p.S=l;p.L?.resolve();p.QQ.Ut("pt_pif")}).catch(l=>{sT(l,"player_start"); p.QQ.Ut("pt_pie");p.L?.reject(l)})}catch(l){sT(l,"player_start_catch"),p.api.Xu("pfes",{}),p.L?.reject(l)}}}; UT=function(p,a=0,l=p.length,y){let S=0;for(y&&(S=UT(y));aa.type===3)}; Sq=function(p,a,l){var y=new UW(l);if(!yn(y,p))return!1;y=hv(y);if(!MU(y,a))return!1;for(p=0;a;)a>>>=8,p++;a=y.start+y.pos;const S=mT(y,!0);y=p+(y.start+y.pos-a)+S;y=y>9?tQZ(y-9,8):tQZ(y-2,1);p=a-p;l.setUint8(p++,236);for(a=0;a0&&l>0&&!p.S&&p.U<1E7)try{p.j=p.X({sampleInterval:a,maxBufferSize:l}),p.j?.addEventListener("samplebufferfull",async()=>{await p.stop();jXr(p)})}catch(y){p.S=WlA(y.message)}}; HiM=function(p,a,l){p=g.Nx(p.L,y=>a(y)); return l?p:Xkq(p)}; ErZ=function(p){return new Bk(a=>{g.Wu(a,p)})}; P5=function(p){if(p.B.O().U)return!1;if(p=p.B.getVideoData(1).getPlayerResponse()){const a=p.adPlacements;if(a)for(let l=0;l=6)for(l=(l%a[r[9]]+a[r[9]])%a[r[9]];l--;)a[r[86]](a[r[33]]());if((p&60)==p){a[23]>-6&&(a[68]>new l(r[64])/1E3&&((0,a[57])(((0,a[34])(a[47],a[26]),(0,a[31])(a[60]),a[50])(a[55]),a[69],(0,a[5])(a[43],a[12]),a[47],a[49],a[12]),1)||(0,a[52])((0,a[47])(a[42],a[59]),a[47],((0,a[47])(a[44],a[19]),(0,a[74])(a[55],a[76]),a[26])(a[17],a[59]),a[0],a[59]));a[17]>=-10&&(((0,a[9])(a[55], a[36]),a[9])(a[21],a[13]),1)||(0,a[69])((0,a[47])(a[32],a[55]),a[9],a[12],a[3]);(a[2]<=7||((0,a[26])(a[51],a[39]),r[27]))&&(0,a[16])(a[12],(0,a[48])(),a[38]);a[22]!==new l(r[37])/1E3&&(0,a[81])(a[21]);a[77]<7&&(0,a[56])(a[39],a[60]);a[2]!=6&&((0,a[0])(a[60]),r[66])||(0,a[48])(a[57],a[13]);a[7]<=-4&&(a[80]!=9||((0,a[15])((0,a[70])((0,a[70])((0,a[17])(a[60],(0,a[49])(),a[39]),a[82],a[22]),a[51],a[40]),(0,a[70])((0,a[17])(a[60],(0,a[74])(),a[79]),a[17],a[13],(0,a[74])(),a[79]),a[53],(0,a[6])(a[81],a[60]), a[10],(0,a[51])(a[60]),a[20],a[5]),(0,a[17])(a[60],(0,a[74])(),a[39]),(0,a[70])((0,a[17])(a[56],(0,a[72])(),a[79]),a[17],a[13],(0,a[72])(),a[78]),0))&&(((((((0,a[6])(a[3],a[56]),a[27])(a[new l(r[68])/1E3],a[22]),a[51])(a[60]),a[6])(a[38],a[22]),a[74])(a[43],a[81]),(0,a[55])(((0,a[2])(a[45],(0,a[34])(),a[63]),a[12])(a[4],a[41]),a[60],a[5],a[75]),a[14])(a[15],a[47]),a[57])((0,a[76])(a[11],a[27]),a[55],a[64]);a[51]>10&&((0,a[74])((0,a[79])(a[24],a[80]),a[66],a[47],a[57]),1)||((0,a[39])(a[32],a[51]), a[39])(a[59],a[51]);a[55]!==-4&&(a[28]>=-3?(0,a[61])((0,a[17])(a[70],a[31]),a[66],a[4],a[33]):(0,a[61])((0,a[39])(a[71],a[47]),a[42],a[13]));a[67]!==2?((0,a[66])(a[31],a[25]),a[12])(a[41],a[20]):((0,a[23])(a[69]),(0,a[47])(a[12],a[19]));var y=[a,l]}return y}; YL=function(p,a,l,y){(new Uint8Array(p.data.buffer,p.offset,y)).set(new Uint8Array(a.buffer,l+a.byteOffset,y));p.offset+=y}; qt=function(p){return window.Int32Array?new Int32Array(p):Array(p)}; wG=function(p,a){g.i0("adsClientStateChange",a)}; Pq=function(p,a){let l=null;return(new g.AU(function(y,S){l=g.Wu(function(){y(a)},p); l==-1&&S(Error("Failed to schedule timer."))})).Lo(function(y){g.mm.clearTimeout(l); throw y;})}; EM=function(){return wv("Android")&&!(LA()||XO()||or()||wv("Silk"))}; g.n6=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{W:"path",Z:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; T6e=function(p,a){for(let l=0;l0&&!TJ(p.videoData)||a||kF(p)||(p.seekTo(Infinity,{qE:"videoplayer_readying",seekSource:18}),p.isBackground()&&(p.SJ=!0));a=p.Tn;if(a.qoe){a=a.qoe;const y=a.provider.videoData, S=a.provider.Y;for(var l of S.o1)ej(a,l);if(a.provider.A("html5_enable_qoe_cat_list"))for(const n of y.q9)ej(a,n);else y.o1&&ej(a,a.provider.videoData.o1);y.va()&&(l=y.L,TJ(y)&&ej(a,"manifestless"),l&&CF(l)&&ej(a,`live-segment-${CF(l).toFixed(1)}`));Yc(y)?ej(a,"sabr"):a.vA(eC(y));if(b3(y)||y.nh())y.nh()&&ej(a,"ssa"),ej(a,"lifa");pJ(y)&&ej(a,"cdm");y.gatewayExperimentGroup&&(l=y.gatewayExperimentGroup,l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?l="spkadtrt":l==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&& (l="spkadctrl"),ej(a,l));S.UO!=="yt"&&a.L.set("len",[y.lengthSeconds.toFixed(2)]);y.cotn&&!a9(y)&&a.j0(!0);S.Mc()&&(l=UHM())&&a.Xu("cblt",{m:l});S.A("html5_log_screen_diagonal")&&a.Xu("cbltdiag",{v:window.H5vccScreen?.GetDiagonal?window.H5vccScreen.GetDiagonal():0})}p.publish("playbackready");UV("pl_c",p.QQ.timerName)||(p.QQ.tick("pl_c"),Jl("pl_c",void 0,"video_to_ad"));UV("pbr",p.QQ.timerName)||(p.QQ.tick("pbr"),Jl("pbr",void 0,"video_to_ad"))}}}; her=function(p,a){if(a=a.content&&a.content.confirmDialogRenderer||null)p.j=new QXr(p.api,p.layoutId,p.interactionLoggingClientData,p.OO),g.H(p,p.j),p.j.init(Mx("ad-mute-confirm-dialog"),a,p.macros),p.j.lT(p.N),p.j.subscribe("b",()=>p.publish("c"))}; kJ=function(p){return g.Oc(()=>UV("_start",p))()}; AOM=function(p){p=p?.error?.code;return!(p!==400&&p!==415)}; yW=function(p,a){return Number(p.data[a])||0}; SY=function(p){for(let a in TK)TK[a][0]==p&&g.wF(a)}; var z8h=function(p,a,l,y,S,n,V,Z,z){return nJ[r[12]](this,1,p,a,l,y,S,n,V,Z,z)}; VW=function(p){const a=g.WW(p.X);g.Ir(a,l=>{l.UO(p.L)}); p.L!=p||g2o(p)}; YSq=function(p,a){a:{var l=a.cryptoPeriodIndex;if(isNaN(l)&&p.U.size>0)l=!0;else{for(const y of p.U.values())if(y.cryptoPeriodIndex===l){l=!0;break a}l=!1}}p.publish("log_qoe",{wvagt:"reqnews",canskip:l});l||p.publish("rotated_need_key_info_ready",a)}; qSM=function(p){var a=ps("aft",p);if(a)return a;a=g.R((p||"")+"TIMING_AFT_KEYS",["ol"]);const l=a.length;for(let y=0;yfOh(p,...a)),fOh(p))}; oJ=function(){return g.IW("android")&&g.IW("chrome")&&!(g.IW("trident/")||g.IW("edge/"))&&!g.IW("cobalt")}; asE=function(p){return paM.get(p)?.K6||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Py=function(p){return{itagDenylist:ed(p,1)}}; Z3=function(p,a,l,y=null){return tV(p,(p.state|a)&~l,null,y)}; g.o9=function(p,a){return p.Rd+"timedtext_video?ref=player&v="+a.videoId}; lsA=function(){return Q2()?KA.platform==="Windows":wv("Windows")}; zU=function(p){return p.layout.renderingContent?p.layout.clientMetadata.t9("metadata_type_player_bytes_callback_ref")?.current:p.layout.clientMetadata.t9("metadata_type_player_bytes_callback")}; pi=function(p){const a=p.clientMetadata.t9("metadata_type_ad_placement_config");p=p.clientMetadata.t9("metadata_type_media_sub_layout_index");return{adPlacementConfig:a,Zp:p}}; g.vqA=function(p,a,l){const y=l.X,S=[],n=[];var V=l.A("html5_shorts_onesie_mismatched_fix");p=p.Yn();var Z=r6.concat(xUo);V&&(Z=r6.concat(FTA));l.A("html5_early_media_for_drm")&&(Z=Z.concat(EFq),l.A("allow_vp9_1080p_mq_enc")&&Z.push(CWZ));const z=[...vFM];l.A("html5_iamf_audio_onesie_fmt")&&z.push(["773"]);for(const d of Z)for(const G of d){Z=w6(G,p&&V);if(!Z||!Z.video)continue;const B=g.ak(l.experiments,"html5_drm_byterate_soft_cap");if(!(B>0&&KTf(Z)&&Z.Sb>B)&&Z6(a,Z,y)===!0){S.push({videoCodec:b$r[Ry[G]], maxWidth:Z.video.width,maxHeight:Z.video.height,maxFramerate:Z.video.fps});break}}for(const d of z)for(const G of d)if((V=efZ(G))&&V.audio&&(l.A("html5_onesie_51_audio")||!V.D())&&Z6(a,V,y)===!0){n.push({audioCodec:Kx$[Ry[G]],numChannels:V.audio.numChannels});break}return{videoFormatCapabilities:S,audioFormatCapabilities:n}}; SAe=function(p){const a=[];p=p.match(yVA);for(let l=0;ln)return Rx(p,`enterAfterReturn enterTimeMs=${S} is greater than parentReturnTimeMs=${n.toFixed(3)}`,V,Z),"";var d=z.NE()*1E3;if(Sd)return z=`returnAfterDuration parentReturnTimeMs=${n.toFixed(3)} is greater than parentDurationMs=${d}. And timestampOffset in seconds is ${z.oo()}`, Rx(p,z,V,Z),"";d=null;for(const B of p.S){if(S>=B.Dy&&SB.Dy)return Rx(p,"overlappingReturn",V,Z),"";if(n===B.Dy)return Rx(p,"outOfOrder",V,Z),"";S===B.w$&&(d=B)}V=`cs_childplayback_${nwv++}`;Z={Tp:BO(y,!0),HL:Infinity,target:null};const G={ME:V,playerVars:a,playerType:l,durationMs:y,Dy:S,w$:n,bA:Z};p.S=p.S.concat(G).sort((B,c)=>B.Dy-c.Dy); d?TQM(p,d,{Tp:BO(d.durationMs,!0),HL:d.bA.HL,target:G}):(a={Tp:BO(S,!1),HL:S,target:G},p.X.set(a.Tp,a),z.addCueRange(a.Tp));a=!0;if(p.L===p.app.zm()&&(z=z.getCurrentTime()*1E3,z>=G.Dy&&z{VmA(p,G,c/1E3,{},B)}); a=!1}a&&(p.N.unshift(G),p.Sl.JP(0));return V}; zaZ=function(p){const a=new owo;a.j=p.A("h5_gapless_support_types_diff");a.K=!1;a.UO=p.A("html5_gapless_use_format_info_fix");a.D=p.A("html5_gapless_disable_on_av1")&&!p.A("html5_gapless_enable_on_av1");a.X=p.A("html5_gapless_check_codec_diff_strictly");a.C=p.A("html5_gapless_on_ad_autoplay");a.G=p.A("html5_gapless_disable_diff_aspect_radio");a.S=p.A("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!p.A("html5_disable_loop_range_for_shorts_ads");a.L=p.A("html5_pseudogapless_shorts_seek_to_next_start"); a.U=p.A("html5_gapless_ad_autoplay_on_video_to_ad_only");return a}; dJ$=function(p,a,l){p.playback.UU();p.playback.seekTo(a,l);p.playback.playVideo()}; dX=function(p){var a=(0,g.h)();p.E7=a}; Ym=function(p,a,l){l!==void 0&&(Nb(p,a*8+2),a=l.length,Nb(p,a),ME(p,a),p.L.set(l,p.pos),p.pos+=a)}; g.o4=function(p){return/^[\s\xa0]*$/.test(p)}; Y3=function(p,a,l){const y=g.Zz(p.S,S=>a<=S); return y==-1?0:l(p.L[y])}; G0o=function(p,a){if(a.partnerId===38&&p.playerStyle==="books")return p=a.videoId.indexOf(":"),g.Re(`//play.google.com/books/volumes/${a.videoId.slice(0,p)}/content/media`,{aid:a.videoId.slice(p+1),sig:a.BU});if(a.partnerId===30&&p.playerStyle==="docs")return g.Re("https://docs.google.com/get_video_info",{docid:a.videoId,authuser:a.Cf,authkey:a.yd,eurl:p.Wy});if(a.partnerId===33&&p.playerStyle==="google-live")return g.Re("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});throw Error("getVideoInfoUrl for invalid namespace: "+ p.UO);}; CG=function(p){return typeof p==="object"&&!Array.isArray(p)}; Bj$=function(p,a,l,y,S,n,V,Z,z,d){if(H8(p.MO.get(),1).clientPlaybackNonce!==z)throw new N("Cannot register CueRange-based trigger for different content CPN",{trigger:l});p.Ag.set(l.triggerId,{D$:new GU(a,l,y,S),cueRangeId:n});p.BZ.get().addCueRange(n,V,Z,d,p);GY(p.context.EO.get())&&p.context.FG.eb("crr",{ca:a,tt:l.triggerType,st:y.slotType,lt:S?.layoutType,cid:n,sm:V,em:Z})}; B6=function(p,a,l){p.state.L.hasOwnProperty(a)||Y(p,a,l);p.app.O().K&&(p.state.K[a]=(...y)=>l.apply(p,y),p.state.X.add(a))}; cVv=function(p){p.QY?p.QY=!1:p.C=(0,g.h)();p.UO=!1;p.Bs=!1;return new c6(p.G,p.U,p.L.reason)}; wX=function(p){return rX[p.L||p.S]||"auto"}; bvo=function(p){return{startTicks:r3(p,1),On:r3(p,2),timescale:r3(p,3)}}; rVM=function(p,a,l){const y={};y.isHdr=a.includes("HDR");switch(a.replace("HDR","").replace("720","")){case "AUDIO":y.trackType=1;break;case "SD":y.trackType=2;break;case "HD":y.trackType=3;break;case "UHD1":y.trackType=4;break;case "UHD2":y.trackType=5;break;default:y.trackType=0}!y.trackType||l[a]||du(p)&&!$X(p,a)||(p.authorizedFormats.push(y),l[a]=!0)}; g.hn=function(p,a,l,y,S=!1,n={}){Object.assign(n,bQ({cttAuthInfo:US(a)||void 0},a));for(const Z of y){var V=Z.getAsJson();(g.P6(V)||!V.trackingParams&&!V.veType)&&g.tX(Error("Child VE logged with no data"));if(g.nU("no_client_ve_attach_unless_shown")){const z=Pj(Z,a);if(V.veType&&!OS.has(z)&&!k2.has(z)&&!S){if(!g.nU("il_attach_cache_limit")||uQ.size<1E3){uQ.set(z,[p,a,l,Z]);return}g.nU("il_attach_cache_limit")&&uQ.size>1E3&&g.tX(new g.Qm("IL Attach cache exceeded limit"))}V=Pj(l,a);uQ.has(V)?L1(l, a):k2.set(V,!0)}}y=y.filter(Z=>{Z.csn!==a?(Z.csn=a,Z=!0):Z=!1;return Z}); l={csn:a,parentVe:l.getAsJson(),childVes:g.Nx(y,Z=>Z.getAsJson())}; a==="UNDEFINED_CSN"?Qd("visualElementAttached",n,l):p?IX("visualElementAttached",l,p,n):g.i0("visualElementAttached",l,n)}; Ye=function(){const p=/WebKit\/([0-9]+)/.exec(g.Vo());return!!(p&&parseInt(p[1],10)>=600)}; P6r=function(p,a,l){return aw(p,function(){const y=this;return function*(){const S=[],n=()=>"wasm.ps.c: ["+S.map(z=>`"${z}"`).join(", ")+"]",V=Yce(a); if(V.mod)return V.mod;if(V.modP)try{return yield*ct(V.modP)}catch(z){S.unshift("pcm")}let Z=V.bin;if(!Z&&V.binP)try{Z=yield*ct(V.binP)}catch(z){S.unshift("pfb")}if(!Z)try{Z=yield*ct(war(a))}catch(z){throw y.S=!1,S.unshift("fb"),n();}if(y.L&&!l)try{return new WebAssembly.Module(Z)}catch(z){y.L=!1,S.unshift("cs")}try{return yield*ct(WebAssembly.compile(Z))}catch(z){$JZ(a),S.unshift(`ca: ${z}`)}throw n();}()})}; g.x3=function(p){return p.j&&g.UO(p)&&!LJ(p)&&!p.D}; LhA=function(p){p=p.api.O();return g.cf(p)&&p.S}; Xar=function(p,a){const l=[];if(a=p.L.get(a.layoutId))for(const y of a)(a=p.S.get(y.triggerId))&&l.push(a);return l}; w0=function(p,a){const l=[];for(const y of p.array)if(y.contains(a)&&l.push(y),y.start>a)break;return l}; xJq=function(p){const a=!p?.bx()&&p?.va()&&Fp();return{supportsVp9Encoding:!(!p?.dU()||a),supportXhr:ig}}; Lr=function(p,a){const l=new Uint8Array(p.L.buffer,p.L.byteOffset+p.pos,a);p.pos+=a;return l}; DO=function(p){p.L||(p.L=new Map,p.S=0,p.U&&Hr(p.U,function(a,l){p.add(RK(a),l)}))}; Fhf=function(){return g.o1("yt.ads.biscotti.lastId_")||""}; gHA=function(p){if(!p)return"";if(/^about:(?:blank|srcdoc)$/.test(p))return window.origin||"";p.indexOf("blob:")===0&&(p=p.substring(5));p=p.split("#")[0].split("?")[0];p=p.toLowerCase();p.indexOf("//")==0&&(p=window.location.protocol+p);/^[\w\-]*:\/\//.test(p)||(p=window.location.href);var a=p.substring(p.indexOf("://")+3),l=a.indexOf("/");l!=-1&&(a=a.substring(0,l));l=p.substring(0,p.indexOf("://"));if(!l)throw Error("URI is missing protocol: "+p);if(l!=="http"&&l!=="https"&&l!=="chrome-extension"&& l!=="moz-extension"&&l!=="file"&&l!=="android-app"&&l!=="chrome-search"&&l!=="chrome-untrusted"&&l!=="chrome"&&l!=="app"&&l!=="devtools")throw Error("Invalid URI scheme in origin: "+l);p="";var y=a.indexOf(":");if(y!=-1){var S=a.substring(y+1);a=a.substring(0,y);if(l==="http"&&S!=="80"||l==="https"&&S!=="443")p=":"+S}return l+"://"+a+p}; Ewq=function(p,a,l){const y=p.index.K(a),S=p.index.getStartTime(a);let n=p.index.getDuration(a);l?n=l=0:l=p.info.Sb*n;return new Al([new g$(3,p,void 0,"otfCreateRequestInfoForSegment",a,S,n,0,l)],y)}; g.X_=function(){return g.Wk("yt-remote-session-screen-id")}; rMe=function(p){g.yo(p.L,a=>{a.L>1E5||++a.L})}; C6$=function(p){p.skip(4);return{Vw:zT(p,0),value:zT(p,0),timescale:Vn(p),b1m:Vn(p),eventDuration:Vn(p),id:Vn(p),qU:zT(p),offset:p.offset}}; xX=function(p){p=AJ(p);p.metadata||(p.metadata={});return p.metadata}; vwM=function(p){return!!p.xt||!!p.yc||!!p.Tx||!!p.In||p.d2}; Ig=function(p,a=document){return a.createElement(String(p).toLowerCase())}; VT=function(p,a){for(const l in p)if(a.call(void 0,p[l],l,p))return l}; g.MD=function(p,a="ERROR"){var l={};l.name=g.R("INNERTUBE_CONTEXT_CLIENT_NAME",1);l.version=g.R("INNERTUBE_CONTEXT_CLIENT_VERSION");Khh(p,l,a)}; EZ=function(p){if(p.Lz.iX().isInline())return qN;p=rX[uW()];return g.F_("auto",p,!1,"s")}; E4=function(p,a){if(xa(p.L,a)){E1(p.L,a).D=!1;var l=p1;a=E1(p.L,a);const y=[...a.K];ea$(a.K);l(p,y)}}; EY=function(p,a){p.focus(a);return p.L[p.S][a-p.U]}; AeA=async function(p,a,l,y,S){p={config:p,hashData:a,configData:l,timestamp:S!==void 0?S:(0,g.h)()};y=await qu(y);await y.clear("coldConfigStore");return await g.dE(y,"coldConfigStore",p)}; bGr=function(p){return p.mT==="H"||p.mT==="h"}; Rar=function(p,a){var l=window.screen?.orientation;if(p.Y.G&&l&&l.lock&&(!g.TF||!Isv))if(a){a=l.type.indexOf("portrait")===0;const y=p.template.getVideoAspectRatio();let S=a;y<1?S=!0:y>1&&(S=!1);p.O3&&S===a||(l=l.lock(S?"portrait":"landscape"),l!=null&&l.catch(()=>{}),p.O3=!0)}else p.O3&&(p.O3=!1,l.unlock())}; CJ=function(p){return!V6(p.Yv[p.Yv.length-1])}; KJ=function(p){$B(p);p.Qr=null;const a=W8v(p.Y,p.videoData,p.gE());p.zz=a;p.zz.then(l=>{uzF(p,l)},l=>{p.nz()||(l=XN(l),p.visibility.isBackground()?(v6(p,"vp_none_avail"),p.zz=null,p.HO.reset()):(p.HO.finished=!0,p.f1(l.errorCode,l.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",ki(l.details))))}); return a}; qU=function(p){return p?new eY(jj(p)):OGF||(OGF=new eY)}; g.bS=function(p){return FJ(p)==="WEB_MUSIC_INTEGRATIONS"}; I9=function(p,a){p.X!=a&&(p.X=a,p.G&&p.G())}; lD=function(p){return p.mT==="9h"||p.mT==="(h"}; R9=function(p){var a;!(a=p.L.info.mT==="f")&&(a=p.policy.j)&&(a=p.j,a=!!a.G&&$z(a.G));if(a)return!0;a=gt(p);if(!a)return!1;const l=YA(a)&&a.j;return p.isManifestless&&p.w7>0?l||a.Gm>=p.w7:l}; xQ=function(p,a){if(g.nU("web_log_memory_total_kbytes")&&g.mm.navigator?.deviceMemory){const l=g.mm.navigator?.deviceMemory;p?EL(p,95,Cm(l*1E6)):a&&(a.client.memoryTotalKbytes=`${l*1E6}`)}}; M5=function(p){return p.isTimeout?"NO_BID":"ERR_BID"}; g.uS=function(p,a){p%=a;return p*a<0?p+a:p}; Ce=function(p,a){var l=p2o();if(l){var y=l.coldConfigData,S=l.coldHashData;l=l.hotHashData;p?(a=Ke(p,Sp,62)??new Sp,y=lX(a,1,y),lX(y,3,S).pg(l),Sl(p,Sp,62,a)):a&&(a.client.configInfo=a.client.configInfo||{},y&&(a.client.configInfo.coldConfigData=y),S&&(a.client.configInfo.coldHashData=S),l&&(a.client.configInfo.hotHashData=l))}}; k0o=function(p){const a=new g.et({W:"div",T:"ytp-ad-image-overlay",V:[{W:"div",T:"ytp-ad-overlay-ad-info-button-container"},{W:"div",T:"ytp-ad-overlay-close-container",V:[{W:"button",T:"ytp-ad-overlay-close-button",V:[bz(IU)]}]},{W:"div",T:"ytp-ad-overlay-image",V:[{W:"img",Z:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});p.J(a.d7("ytp-ad-overlay-image"),"click",l=>{RU(p,a.element,l)}); p.J(a.d7("ytp-ad-overlay-close-container"),"click",p.Bs);a.hide();return a}; Mmr=function(p,a){for(const l of Object.keys(p)){const y=p[l][0];if(!y.width&&y.uf===a.uf&&!y.audioChannels)return l}return""}; mJq=function(p,a=!0){var l;if(l=p.qe){l=p.qe;var y=p.mediaElement;l=!!y&&y===l.mediaElement}l&&(p.W9(),ZB(p));l=p.zm();l.W9(!a);l.zA(p.T6,p);l.getPlayerType()!==1&&l.dispose();p=p.R4;p.S=p.L;fD(p)}; O4=function(p,a,l){for(const y in l)if(l[y]==a)return l[y];return p}; tmM=function(){const p=navigator;return new Promise((a,l)=>{p.webkitTemporaryStorage?.queryUsageAndQuota?p.webkitTemporaryStorage.queryUsageAndQuota((y,S)=>{a({usage:y,quota:S})},y=>{l(y)}):l(Error("webkitTemporaryStorage is not supported."))})}; kX=function(p,a,l,y=!1,S=!1){return a>=400?(p.lastError="net.badstatus",!0):S?(p.lastError="ump.spsrejectfailure",!0):l||y?!1:(p.lastError=a===204?"net.nocontent":"net.connect",!0)}; XF=function(p){p=p.K.Pi()+p.w7.Pi()||0;p=isNaN(p)?.5:p;return p=Math.min(p,5)}; tZ=function(p,a){if(p>>1<45&&p-3>=29){ar(5,a);var l=a[r[28]]}if((p+9&4)<2&&(p>>2&7)>=3){const y=a[r[4]](r[23]);let S=0;y[0]||S++;const n={};for(;SX.width*X.height*X.fps)X=D}else c.push(D);else Z[M]="disdrmhfr";w.reduce((M,D)=>D.getInfo().isEncrypted()&&M,!0)&&(B=G); S=Math.max(S,0);const {fps:I=0,width:u=0,height:m=0}=X||{};X=p.A("html5_native_audio_track_switching");w.push(iGo(c,l,y,n,"93",u,m,I,z,"auto",S,B,v,X));Object.entries(Z).length&&V(Z);return Ml(p.X,w,dQ(p,a),!1)}; NjA=function(p,a){ph(p,"impression")&&p.Fb(a?"fullscreen":"end_fullscreen")}; slh=function(p,a,l){const y=p.getVideoData(),S=a.getVideoData();if(!y.O().supportsGaplessShorts())return{nq:"env"};if((!l.C||y.Yo&&!y.isAd()||S.Yo&&!S.isAd())&&(!l.S||y.Yo&&!y.isAd()||S.Yo)&&(!l.U||S.Yo&&!S.isAd()||y.Yo)&&(y.Yo||S.Yo))return{nq:"autoplay"};if(y.endSeconds>0)return{nq:"endcr"};if(!y.K)return{nq:"client"};if(!p.f0())return{nq:"no-empty"};p=Nw(l,p,a,Infinity);return p!=null?{nq:p.msg}:null}; mq=function(p){return p&&p.thumbnails&&(p.thumbnails||null).length!=0&&p.thumbnails[0].url?g.wQ(p.thumbnails[0].url):""}; wA=function(p){const a=MG(p);return a&&a.durationMs?So(a.durationMs):p.paidContentOverlayDurationMs}; LU=function(p,a){2&a&&(p|=2);return p|1}; UJf=function(p){switch(p){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return p;default:return"sabr.config"}}; haM=function(p){var a=gHA(g.mm?.location.href);const l=[];if(tle()){a=a.indexOf("https:")==0||a.indexOf("chrome-extension:")==0||a.indexOf("chrome-untrusted://new-tab-page")==0||a.indexOf("moz-extension:")==0;var y,S=(y=a)?g.mm.__SAPISID:g.mm.__APISID;S||typeof document==="undefined"||(S=new NV(document),S=S.get(y?"SAPISID":"APISID")||S.get("__Secure-3PAPISID"));(y=S?Y9r(S,y?"SAPISIDHASH":"APISIDHASH",p):null)&&l.push(y);a&&((a=QlM("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",p))&&l.push(a), (p=QlM("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",p))&&l.push(p))}return l.length==0?null:l.join(" ")}; jY=function(p){p.Y.vk&&!p.videoData.backgroundable&&p.mediaElement&&!p.gE()&&(p.isBackground()&&p.mediaElement.QY()?(p.Xu("bgmobile",{suspend:1}),p.Os(!0,!0)):p.isBackground()||tG(p)&&p.Xu("bgmobile",{resume:1}))}; vM=function(p){return p.A("html5_live_head_playable")&&TJ(p)&&p.g7.UO==="yt"?p.isLiveHeadPlayable:p.isLivePlayback}; OC=function(p,a){const l=a&2147483648;l&&(p=~p+1>>>0,a=~a>>>0,p==0&&(a=a+1>>>0));p=kO(p,a);return typeof p==="number"?l?-p:p:l?"-"+p:p}; yn=function(p,a){for(let l=0;l0||n)&&typeof S==="string"&&(S=cd(S),g.C0(S,n),S= a.postBodyFormat&&a.postBodyFormat==="JSON"?JSON.stringify(S):g.mW(S));n=S||n&&!g.P6(n);!gw$&&n&&a.method!=="POST"&&(gw$=!0,g.Wp(Error("AJAX request with postData should use POST")));return S}; Sn=function(p){var a=p.api.O();const l=p.api.getVideoData(),y=g.x3(a)&&g.jM(p.api)&&p.api.getPlayerStateObject().L(128);a=a.U||a.disableSharing&&p.api.getPresentingPlayerType()!==2||!l.showShareButton||l.oK||y||l.XX||!1;p=p.api.h9().getPlayerSize().width;return!!l.videoId&&p>=240&&!a}; zwM=function(p,a,l,y){function S(n){n&&a.appendChild(typeof n==="string"?p.createTextNode(n):n)} for(;y0?S(n):g.Ir(n&&typeof n.length=="number"&&typeof n.item=="function"?g.WW(n):n,S)}}; WN=function(p,a,l,y,S){y===0||l.includes(y);const n=Jd(p),V=q6(n,p,a,l,S);V!==y&&(V&&(a=wD(p,a,V,void 0,S)),n.set(l,y));return a}; qAA=function(p){return(lp(p)?.progressCommands||[]).findIndex(a=>!!g.K(a?.command,YAe))!==-1}; JVM=function(p,a){return p.L.equals(a)&&(!p.X.L||!p.L.isLocked()||p.nextVideo?.info.id===p.X.L)}; H6=function(p,a,l){return p[a]?p[a][l]||null:null}; AJ=function(p){return g.o1("ytcsi."+(p||"")+"data_")||F0(p)}; Z1o=function(p,a,l,y,S){const n=l.DRIFT_FROM_HEAD_MS&&!Number.isNaN(l.DRIFT_FROM_HEAD_MS)?Math.trunc(l.DRIFT_FROM_HEAD_MS):0;var V=fsM.exec(a);V=V!=null&&V.length>=2?V[1]:"";const Z=pjE.test(a);var z=aNE.exec(a);z=z!=null&&z.length>=2?z[1]:"";var d=lNF.exec(a);d=d!=null&&d.length>=2&&!Number.isNaN(Number(d[1]))?Number(d[1]):1;var G=y_v.exec(a);G=G!=null&&G.length>=2?G[1]:"0";const B=Ct(p.player.O().Rd);var c=p.player.getVideoData(1);const w=g.aD(c.jl,!0),X="BISCOTTI_ID"in l?l.BISCOTTI_ID:"";hk(p, w,a,X.toString(),p.player.O(),c);c={splay:!1,lactMilliseconds:l.LACT.toString(),playerHeightPixels:Math.trunc(l.P_H),playerWidthPixels:Math.trunc(l.P_W),vis:Math.trunc(l.VIS),signatureTimestamp:20354,autonavState:Wq(p.player.O())};y&&(y={},SBh(y,l.YT_REMOTE)&&(c.mdxContext=y));if(y=nUM.includes(B)?void 0:g.D3("PREF")){const v=y.split(RegExp("[:&]"));for(let I=0,u=v.length;I1&&m[1].toUpperCase()=== "TRUE"){w.user.lockedSafetyMode=!0;break}}c.autoCaptionsDefaultOn=pHv(y)}a=VCh.exec(a);(a=a!=null&&a.length>=2?a[1]:"")&&z&&(w.user.credentialTransferTokens=[{token:a,scope:"VIDEO"}]);a={contentPlaybackContext:c};V={adBlock:Math.trunc(l.AD_BLOCK),params:V,breakIndex:d,breakPositionMs:G,clientPlaybackNonce:l.CPN,topLevelDomain:B,isProxyAdTagRequest:Z,context:w,adSignalsInfoString:N$(sO(X.toString())),overridePlaybackContext:a};S!==void 0&&(V.cueProcessedMs=Math.round(S).toString());z&&(V.videoId=z); l.LIVE_TARGETING_CONTEXT&&(V.liveTargetingParams=l.LIVE_TARGETING_CONTEXT);l.AD_BREAK_LENGTH&&(V.breakLengthMs=Math.trunc(l.AD_BREAK_LENGTH*1E3).toString());n&&(V.driftFromHeadMs=n.toString());V.currentMediaTimeMs=Math.round(p.player.getCurrentTime(1)*1E3);(p=p.player.getGetAdBreakContext())&&(V.getAdBreakContext=p);return V}; V6=function(p){return p.type===1||p.type===2}; oUo=function(p,a){let l=1;p.isTrusted===!1&&(l=0);C8("ISDSTAT",l);E7(l,"i.s_",{triggerContext:"sk",metadata:a});return l}; Jl=function(p,a,l){g.Oc(()=>{if(!kJ(l)||UV(p,l))return!1;KU(p,a,l);return!0})()}; EpM=function(p){if(uc){for(const a of uc)a.payload&&(a.payload.csn=p.csn,g.i0(a.payloadName,a.payload,a.options));uc.length=0}O2=0}; z5h=function(p){if(p.linearAds==null)return!1;p=g.K(p.adStart,HV);return p?nX(p)?!0:(Q("Invalid LASR with notify"),!1):!1}; FW=function(p){var a=p.hours||0;var l=p.minutes||0,y=p.seconds||0;a=y+l*60+a*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;a<=0?a={hours:0,minutes:0,seconds:0}:(p=a,a=Math.floor(p/3600),p%=3600,l=Math.floor(p/60),y=Math.floor(p%60),a={hours:a,minutes:l,seconds:y});const {hours:S=0,minutes:n=0,seconds:V=0}=a;l=S>0;a=[];if(l){p=(new Intl.NumberFormat("en-u-nu-latn")).format(S);y=["fr"];const Z="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(" "); p="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(iS)?p.replace(",","\u00a0"):y.includes(iS)?p.replace(",","\u202f"):Z.includes(iS)?p.replace(",","."):p;a.push(p)}l=dcA(n,l);a.push(l);l=Gje().format(V);a.push(l);l=":";"da fi id si sr sr-Latn".split(" ").includes(iS)&&(l=".");return a.join(l)}; TU=function(p){p.L=null;p.Ag.clear();p.S&&p.S.stop();p.X&&p.X.stop();p.U?.stop();delete p.U}; hd=function(){}; B0o=function(p){return p===-0x8000000000000?"BEFORE_MEDIA_START":p===0?"MEDIA_START":p===0x7ffffffffffff?"MEDIA_END":p===0x8000000000000?"AFTER_MEDIA_END":p.toString()}; c_E=async function(p){p=await Ba(p);const a=(0,g.h)()-2592E6;await g.hs(p,["LogsRequestsStore"],{mode:"readwrite",nx:!0},l=>g.Wi(l.objectStore("LogsRequestsStore"),{},y=>{if(y.getValue().timestamp<=a)return y.delete().then(()=>g.ul(y))}))}; Nl=function(p){return p?p:function(a,l){return rTo(this,a,l).pQ}}; U4=function(p,a,l){if(!p.Up){a=Math.max(a,.01);var y=p.Ho?Math.max(a,l/p.Ho):a,S=p.s6.S.U;S&&(y=a,p.Ho&&(y=Math.max(a,l/p.Ho*S)));s4(p.s6,a,l,y)}}; hG=function(p){if(QW)return QW.encode(p);let a=new Uint8Array(Math.ceil(p.length*1.2)),l=mD(p,a);a.lengthl&&(a=a.subarray(0,l));return a}; wjM=function(p){let a=["o","a","A"];p.BT===1&&(p.j&&(a=["mac3","MAC3"].concat(a)),p.X&&(a=["meac3","MEAC3"].concat(a)),p.Fu&&(a=["i","I"].concat(a)));p.UO&&(a=["so","sa"].concat(a));!p.dG||p.w7||p.U||p.Ye||a.unshift("a");p.U&&(a=(r_o[p.U]||[p.U]).concat(a));return a}; cp=function(p,a,l,y){var S=y;b4(p);y=p.DI;p=cT(p,y,y[rD]|0,l,a,2,void 0,!0);S=S!=null?kH(S,l):new l;p.push(S);a=l=p===wW?7:p[rD]|0;(S=R4(S))?(l&=-9,p.length===1&&(l&=-4097)):l|=4096;l!==a&&(p[rD]=l);S||hN(y)}; Z6=function(p,a,l,y=!1,S=new Set){if(a.mT==="")return"unkn";if((a.itag==="304"||a.itag==="266")&&p.N)return"blk2khfr";if(p.D&&a.video&&a.video.qualityOrdinal>p.D)return`max${p.D}`;if(p.ac&&a.mT==="h"&&a.video&&a.video.qualityOrdinal>1080)return"blkhigh264";if(a.mT==="(h"&&!l.G)return"enchdr";if(y&&$cF(a)&&!p.Ws)return"blk51live";if((a.mT==="MAC3"||a.mT==="mac3")&&!p.j)return"blkac3";if((a.mT==="MEAC3"||a.mT==="meac3")&&!p.X)return"blkeac3";if(a.mT==="M"||a.mT==="m")return"blkaac51";if((a.mT==="so"|| a.mT==="sa")&&!p.UO)return"blkamb";if(!p.NO&&P3e(a)&&(!l.X||a.mT!=="1e"))return"cbc";if(!l.X&&P3e(a)&&a.mT==="1e")return"cbcav1";if((a.mT==="i"||a.mT==="I")&&!p.Fu)return"blkiamf";if(p.VY&&a.audio?.S===!0)return"blkvbcabr";if(p.Hs&&(a.mT==="1"||a.mT==="1h"||l.X&&a.mT==="1e")&&a.video?.qualityOrdinal&&a.video?.qualityOrdinal>p.Hs)return"av1cap";y=l.j.get(a.mT);if(!p.Ps&&y&&y.C$>0)return S.add(a.mT),"byerr";if(a.video?.S()){if(!l.jl&&!Oe(l,y9.FRAMERATE))return"capHfr";if(p.Rc&&a.video.qualityOrdinal>= 4320)return"blk8khfr";if(a.U()&&p.wq&&a.uf&&a.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(p.Sb&&a.Sb>p.Sb)return"ratecap";if(p.Sl>0&&a.n1()&&a.video.height>p.Sl)return"mvhcap";p=LNr(l,a);return p!==!0?p:!0}; Wfr=function(){const p=XMLHttpRequest.prototype.fetch;return!!p&&p.length===3}; Gf=function(p,a,l){var y=0;if(p.y9!==0){do{var S=p.Qh[p.cw+y*2]<<8|p.Qh[p.cw+y*2+1];var n=p.Qh[p.U7+y];y++;if(S===0)$L(p,n,a);else{var V=vY[n];$L(p,V+256+1,a);var Z=C5[V];Z!==0&&(n-=Et[V],zf(p,n,Z));S--;V=S<256?bw[S]:bw[256+(S>>>7)];$L(p,V,l);Z=eu[V];Z!==0&&(S-=K5[V],zf(p,S,Z))}}while(yX&&(X=I.audioChannels,v=I.itag);S=new tn(S,"application/x-mpegURL",{audio:new ML(0,X),video:new bq(n,V,Z,null,void 0,d,void 0,void 0,c),uf:B,IZ:v});p=new XjF(p,a,l?[l]:[],y,!!w);p.j=G?G:1369843;return new xcq(S,p,z)}; FNF=function(p,a){return g.Wi(p,{query:a},l=>l.delete().then(()=>g.ul(l))).then(()=>{})}; SM=function(p){p=p.EE();p.Kh();return AG(p)}; C3v=function(p,a){a=a&&mq(a)||"";if(g.o4(a))g.tX(Error("Found ThumbnailDetails without valid image URL"));else{var l=p.style;p=p.style.cssText;const y=document.implementation.createHTMLDocument("").createElement("DIV");y.style.cssText=p;p=EUr(y.style);l.cssText=[p,`background-image:url("${a}");`].join("")}}; KNA=function(p){var a=window.location.search,l=g.TX(p);g.nU("debug_handle_relative_url_for_query_forward_killswitch")||!l&&S_(p)&&(l=document.location.hostname);var y=gX(p);y=(l=l&&(l.endsWith("youtube.com")||l.endsWith("youtube-nocookie.com")))&&y&&y.startsWith("/api/");if(!l||y)return p;const S=cd(a),n={};g.Ir(vUe,V=>{S[V]&&(n[V]=S[V])}); return J3(p,n)}; zW=function(p){return p.kind==="AD_PLACEMENT_KIND_START"}; N6=function(p){e5r.test(p)&&(p.indexOf("&")!=-1&&(p=p.replace(b1q,"&")),p.indexOf("<")!=-1&&(p=p.replace(INr,"<")),p.indexOf(">")!=-1&&(p=p.replace(R5o,">")),p.indexOf('"')!=-1&&(p=p.replace(udE,""")),p.indexOf("'")!=-1&&(p=p.replace(O1Z,"'")),p.indexOf("\x00")!=-1&&(p=p.replace(kjM,"�")));return p}; BO=function(p,a){return new g.yj(Math.max(0,p-5E3),a?0x8000000000000:p-1,{namespace:"childplayback",priority:9})}; nm=function(p,a,l){return g.Oc(()=>{if(UV(p,l))return!1;KU(p,a,l);return!0})()}; DU=function(p,a){for(let l=0;ly.video.qualityOrdinal>=a&&y.video.qualityOrdinal<=l)}; eM=function(p){if(!p.S||!p.policy.j&&!p.S.info.rG){var a=p.D.S;p.S&&(a=a.filter(y=>y.audio.L===p.S.info.audio.L),a.length||(a=p.D.S)); p.S=p.r7.L[a[0].id];if(a.length>1&&!p.policy.Zl){if(!p.policy.Xq){var l=g.y_(a,y=>y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"); l&&(p.S=p.r7.L[l.id])}l=!1;if(l=p.policy.tP?!0:p.L.isLocked()?p.L.L<240:P0A(p,p.S))p.S=p.r7.L[g.V$(a).id]}}}; ql=function(p,a){NL(p,a.reason,a.L.info,a.token,a.videoId)}; JG=function(){let p="youtube.player.web_20250923_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250923_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250923_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250923_21_RC00".match(/_(\d{8})_\d+_RC\d+$/);if(p?.length==2)return p[1];p="youtube.player.web_20250923_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);return p?.length==3?"20"+p[1]+p[2]:null}; wGe=function(p,a){if(!p.length)return!1;for(a+=1;aoOF(a,l)).Lo(g.a$)},p)}; g.ZN=function(p,a,...l){p.state.U.publish(a,...l);p.state.S.publish(a,...l);p.state.j.publish(a,...l);p.state.D.publish(a,...l)}; MCq=function(p){return g.AF(p.L,a=>a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR":!1)}; tCO=function(p,a){const l=a.clientMetadata.t9("metadata_type_ad_video_id"),y=a.clientMetadata.t9("metadata_type_legacy_info_card_vast_extension");l&&y&&p.MA.get().B.O().QY.add(l,{Qt:y});(a=a.clientMetadata.t9("metadata_type_sodar_extension_data"))&&mcv(p.oM.get(),a);$Ge(p.sO.get(),!1)}; XO=function(){return wv("Firefox")||wv("FxiOS")}; j_$=function(){return g.IW("(ps4; leanback shell)")||g.IW("ps4")&&g.VI()}; oS=function(){return g.Wk("yt-player-performance-cap")||{}}; AN=function(p,a,l,y){const S=fO(p.S.get(),"SLOT_TYPE_PLAYER_UNDERLAY");l=new UB(p.L,l);const n=[new aa(p.L,S)];p=[new y5(p.L,a),new lm(p.L,S)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:n,slotExpirationTriggers:p,qO:"core",clientMetadata:new L0([new Z1(y({slotId:S,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:l,slotFulfillmentTriggers:n,slotExpirationTriggers:p}))])}}; WN$=function(p){return{Mw:r3(p,3),eP:r3(p,4),Er:r3(p,5),Wp:fJ(p,8),t5O:r3(p,10),zP:r3(p,12),xs:r3(p,13),I0:r3(p,14),K3:r3(p,15),eO:r3(p,16)}}; P8M=function(p){const a=g.o1("yt.scheduler.instance.addImmediateJob");a?a(p):p()}; g.DB=function(p,a,l,y){a=a!==void 0?a:p.index;a=p.items&&a in p.items?p.items[p.order[a]]:null;let S=null;a&&(l&&(a.autoplay="1"),y&&(a.autonav="1"),S=new g.Uj(p.g7,a),g.H(p,S),S.t4=!0,S.startSeconds=p.startSeconds||S.clipStart||0,p.listId&&(S.playlistId=p.listId.toString()));return S}; Dce=function(p){const a=new H1r(p.api);p.j.push(a);g.H(p,a);a.lT(p.Sl)}; i1Z=function(p){const a=Array(p.L);for(let l=0;l{p.L&&!p.L.yQ&&(p.L.show(),N0r(p))})):p.button.listen("click",()=>N0r(p)))}; Mb$=function(p,a){if(p){var l;g.f0.isLoading()?l=!1:l=!pX||(0,g.h)()-pX>a;p=l}else p=!1;return p}; Q_e=function(p,a){if(a=a.content&&a.content.adFeedbackRenderer||null)p.S=new UcZ(p.api,p.layoutId,p.interactionLoggingClientData,p.OO),g.H(p,p.S),p.S.init(Mx("ad-feedback-dialog"),a,p.macros),p.S.lT(p.N),p.S.subscribe("a",()=>p.publish("c"))}; A_v=function(p,a){if(p.disable)return new jX;a=a?h5o(a):[];return ThZ({LC:p.LC,jN:p.im,QH:p.BK,Yw:p.Yw,VU:p.VU,oN:p.oN},a)}; gUv=function(p){var a=p.zm();if(p.A("html5_disable_loop_range_for_shorts_ads")&&a.getVideoData().isAd()?0:D6(a.getVideoData())&&!a.Rn())a=aZ(p)*1E3-p.getVideoData().mI,p.A("html5_gapless_new_slr")?(p=p.V1,lj(p.app,"gaplessshortslooprange"),a=new g.yj(0,a,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(p=p.app.zm())&&p.addCueRange(a)):p.setLoopRange({startTimeMs:0,endTimeMs:a,type:"shortsLoop"})}; rOO=function(p){p.X_()!==V_.contentCpn&&p.B.Xu("ccm",{c:V_.contentCpn})}; yE=function(p){const a=new YBf;a.U=qBZ(p).cc?.toString()||"-";a.playbackRate=p.Lz.getPlaybackRate();var l=p.Lz.getVisibilityState();l!==0&&(a.visibilityState=l);p.Y.Tm&&(a.S=1);a.j=p.videoData.fd;a.compositeLiveStatusToken=p.videoData.compositeLiveStatusToken;a.heartbeatLoggingToken=p.videoData.heartbeatLoggingToken;l=p.Lz.getAudioTrack();l.rG&&l.rG.id&&l.rG.id!=="und"&&(a.audioId=l.rG.id);a.connectionType=pr$(p);a.volume=p.Lz.getVolume();a.muted=p.Lz.isMuted();a.clipId=p.Lz.x8()||"-";a.L=p.videoData.O4|| "-";return a}; J_h=function(p,a,l){p.L[a]=l}; WPr=function(p){if(p.length!==0){var a=[];for(const l of p)(p=yY(l))&&a.push(p);return{commandExecutorCommand:{commands:a}}}}; fNh=function(){return{e5:["metadata_type_valid_ad_message_renderer"],FX:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; aBr=function(p,a){if(!UF(p))throw Error("IndexedDB is not supported: updateRequestHandlers");const l=a.options.onError?a.options.onError:()=>{}; a.options.onError=async(S,n)=>{const V=pBF(n),Z=AOM(n);Z&&p.Cz&&p.Cz("web_enable_error_204")&&p.handleError(Error("Request failed due to compression"),a.url,n);if(p.Cz&&p.Cz("nwl_consider_error_code")&&V||p.Cz&&!p.Cz("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.tE)if(p.QT.UF&&await p.QT.UF(),!p.QT.Bl()){l(S,n);p.Cz&&p.Cz("nwl_consider_error_code")&&a?.id!==void 0&&await p.Ot.xd(a.id,p.PX,!1);return}p.Cz&&p.Cz("nwl_consider_error_code")&&!V&&p.potentialEsfErrorCounter>p.tE||(p.potentialEsfErrorCounter++, a?.id!==void 0&&(a.sendCount{p.QT.Bl()&&p.U()},p.Fj)):await p.Ot.Iz(a.id,p.PX)),l(S,n))}; const y=a.options.onSuccess?a.options.onSuccess:()=>{}; a.options.onSuccess=async(S,n)=>{a?.id!==void 0&&await p.Ot.Iz(a.id,p.PX);p.QT.Cs&&p.Cz&&p.Cz("vss_network_hint")&&p.QT.Cs(!0);y(S,n)}; return a}; Op=function(p,a){var l=[UT(a,0,a.length>>1,void 0),UT(a,a.length>>1)];p=new Uint32Array(p.buffer);a=p[0];const [y,S]=l;for(l=1;l>>8|V<<24,V+=n|0,V^=Z+38293,n=n<<3|n>>>29,n^=V,z=z>>>8|z<<24,z+=Z|0,z^=d+38293,Z=Z<<3|Z>>>29,Z^=z;n=[n,V];p[l]^=n[0];l+1G.start&&l>=5;X+=m}c=`${X.substr(0,4)} ${X.substr(4,4)} ${X.substr(8,4)} `+`${X.substr(12,4)} ${X.substr(16,4)}`}else c="";V={video_id_and_cpn:String(a.videoId)+" / "+c,codecs:"",dims_and_frames:"",bandwidth_kbps:`${V.toFixed(0)} Kbps`,buffer_health_seconds:`${z.toFixed(2)} s`, date:`${(new Date).toString()}`,drm_style:d?"":"display:none",drm:d,debug_info:w,extra_debug_info:"",bandwidth_style:B,network_activity_style:B,network_activity_bytes:`${Z.toFixed(0)} KB`,shader_info:G,shader_info_style:G?"":"display:none",playback_categories:""};Z=`${y.clientWidth}x${y.clientHeight}`+(l>1?`*${l.toFixed(2)}`:"");z="-";n.totalVideoFrames&&(z=`${n.droppedVideoFrames||0} dropped of ${n.totalVideoFrames}`);V.dims_and_frames=`${Z} / ${z}`;p=p.getVolume();Z=uz(a);p=`${Math.round(p)}% / ${a.j?.audio.S? "VB":a.j?.audio.L?"DRC":`${Math.round(p*Z)}%`}`;Z=a.bf.toFixed(1);isFinite(Number(Z))&&(p+=` (content loudness ${Z}dB)`);V.volume=p;V.resolution=`${y.videoWidth}x${y.videoHeight}`;if(y=a.S){if(p=y.video)Z=p.fps,Z>1&&(V.resolution+=`@${Z}`),(Z=n.s_)&&Z.video&&(V.resolution+=` / ${Z.video.width}x${Z.video.height}`,Z.video.fps>1&&(V.resolution+=`@${Z.video.fps}`)),V.codecs=mwv(y),!a.j||y.audio&&y.video?y.IZ&&(V.codecs+=` / ${y.IZ}A`):V.codecs+=` / ${mwv(a.j)}`,p.L||p.primaries?(Z=p.L||"unknown",Z=== "smpte2084"?Z=`${Z} (PQ)`:Z==="arib-std-b67"&&(Z=`${Z} (HLG)`),V.color=`${Z} / ${p.primaries||"unknown"}`,V.color_style=""):V.color_style="display:none";if(y.debugInfo){V.fmt_debug_info="";for(var I of y.debugInfo)V.fmt_debug_info+=`${I.label}:${I.text} `}V.fmt_debug_info_style=V.fmt_debug_info&&V.fmt_debug_info.length>0?"":"display:none"}I=a.isLivePlayback;y=a.IX;V.live_mode_style=I||y?"":"display:none";V.live_latency_style=I?"":"display:none";if(y)V.live_mode="Post-Live"+(TJ(a)?" Manifestless": "");else if(I){y=n.B_;V.live_latency_secs=`${y.toFixed(2)}s`;I=TJ(a)?"Manifestless, ":"";a.w7&&(I+="Windowed, ");p="Uncertain";if(y>=0&&y<120)if(a.latencyClass&&a.latencyClass!=="UNKNOWN")switch(a.latencyClass){case "NORMAL":p="Optimized for Normal Latency";break;case "LOW":p="Optimized for Low Latency";break;case "ULTRALOW":p="Optimized for Ultra Low Latency";break;default:p="Unknown Latency Setting"}else p=a.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";I+= p;(y=n.n$)&&(I+=`, seq ${y.sequence}`);V.live_mode=I}!n.isGapless||D6(a)&&n.f0||(V.playback_categories+="Gapless ");V.playback_categories_style=V.playback_categories?"":"display:none";V.bandwidth_samples=n.Nl;V.network_activity_samples=n.FZ;V.live_latency_samples=n.H_;V.buffer_health_samples=n.sS;n=a.dE();if(a.cotn||n)V.cotn_and_local_media=`${a.cotn?a.cotn:"null"} / ${n}`;V.cotn_and_local_media_style=V.cotn_and_local_media?"":"display:none";at(a,"web_player_release_debug")?(V.release_name=r[78], V.release_style=""):V.release_style="display:none";V.debug_info&&v.length>0&&V.debug_info.length+v.length<=60?V.debug_info+=" "+v:V.extra_debug_info=v;V.extra_debug_info_style=V.extra_debug_info&&V.extra_debug_info.length>0?"":"display:none";return V}; Iur=function(p,a,l,y,S,n,V,Z,z,d,G,B){return(c,w)=>{if(n_(G)&&JV(G))a:{var X=rYv(y,l,G);if(X instanceof N)w=X;else{var v=0,I=[],u=[],m=[],M=[],D=[],A=[],$h=new Vm,cE=new VE({current:null}),FO=!1,CA=[],sM=0,b_=[];for(var F=0;F0?X:-1}else if(tP=g.K(F,oZ)){F=f7(p,a,l,tP,n,v,Z,cE,X);if(F instanceof N){w=F;break a}F=F(c);I.push(F.Dg); u=[...F.VP,...u];m=[...F.BW,...m];F.ZI&&(CA=[F.ZI,...CA])}else if(tP=g.K(F,zr)){if(w===void 0){w=new N("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:tP});break a}F=ZtE(p,a,l,n,tP,$h,Z,w,v,dp(G,"supports_multi_step_on_desktop"));if(F instanceof N){w=F;break a}F=F(c);I.push(F.Dg);F.ZI&&CA.push(F.ZI);u=[...F.VP,...u];m=[...F.BW,...m];M=[...F.GH,...M];D=[...F.ux,...D];A=[$h,...A]}else if(F=g.K(F,dU)){F=xCF(p,a,l,n,F,$h,Z,v);if(F instanceof N){w= F;break a}F=F(c);I.push(F.Dg);F.ZI&&CA.push(F.ZI);m=[...F.BW,...m]}else{w=new N("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={lK:I,layoutExitSkipTriggers:u,layoutExitUserInputSubmittedTriggers:M,layoutExitUserCancelledTriggers:D,layoutExitMuteTriggers:m,k8:A,TO:CA}}}else a:if(b_=rYv(y,l,G),b_ instanceof N)w=b_;else{KF=0;I=[];u=[];m=[];M=[];D=[];A=[];$h=new Vm;cE=new VE({current:null});FO=!1;CA=[];sM=-1;for(v of y)if(g.K(v,Zp)){X=VMF(a,l,g.K(v,Zp),Z);if(X instanceof N){w=X; break a}X=X(c);I.push(X.Dg);u=[...X.VP,...u];m=[...X.BW,...m];X.ZI&&(CA=[X.ZI,...CA])}else if(g.K(v,ST)){sM=NP(g.K(v,ST),l,G);if(sM instanceof s2){w=new N(sM);break a}X=new VC(KF,b_);X=VFr(a,sM.layoutId,sM.M9,l,He(sM.playerVars,sM.gj,V,d,X),sM.z2,n,X,Z(c),cE,z.get(sM.M9.externalVideoId),void 0,B);KF++;I.push(X.Dg);u=[...X.VP,...u];m=[...X.BW,...m];FO||(A.push(cE),FO=!0);sM=(sM=sM.M9.adPodSkipTarget)&&sM>0?sM:-1}else if(g.K(v,oZ)){X=f7(p,a,l,g.K(v,oZ),n,KF,Z,cE,sM);if(X instanceof N){w=X;break a}X= X(c);I.push(X.Dg);u=[...X.VP,...u];m=[...X.BW,...m];X.ZI&&(CA=[X.ZI,...CA])}else if(g.K(v,zr)){if(w===void 0){w=new N("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.K(v,zr)});break a}X=ZtE(p,a,l,n,g.K(v,zr),$h,Z,w,KF,dp(G,"supports_multi_step_on_desktop"));if(X instanceof N){w=X;break a}X=X(c);I.push(X.Dg);X.ZI&&CA.push(X.ZI);u=[...X.VP,...u];m=[...X.BW,...m];M=[...X.GH,...M];D=[...X.ux,...D];A=[$h,...A]}else if(g.K(v,dU)){X=xCF(p,a,l,n,g.K(v, dU),$h,Z,KF);if(X instanceof N){w=X;break a}X=X(c);I.push(X.Dg);X.ZI&&CA.push(X.ZI);m=[...X.BW,...m]}else{w=new N("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={lK:I,layoutExitSkipTriggers:u,layoutExitUserInputSubmittedTriggers:M,layoutExitUserCancelledTriggers:D,layoutExitMuteTriggers:m,k8:A,TO:CA}}w instanceof N?c=w:(D=c.slotId,KF=w.lK,v=w.layoutExitSkipTriggers,I=w.layoutExitMuteTriggers,u=w.layoutExitUserInputSubmittedTriggers,m=w.k8,c=Z(c),M=S?S.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES", D=S?S.layoutId:d$(a.S.get(),M,D),A={layoutId:D,layoutType:M,qO:"core"},c={layout:{layoutId:D,layoutType:M,Xh:new Map,layoutExitNormalTriggers:[new w$(a.L,D)],layoutExitSkipTriggers:v,layoutExitMuteTriggers:I,layoutExitUserInputSubmittedTriggers:u,layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new ouh(KF),...m]),ao:c(A)},TO:w.TO});return c}}; yC=function(p){const a=g.K(p.renderingContent,ST);if(a?.pings)return xw(a.pings);p=g.K(p.renderingContent,oZ);return p?.skipPings?new Map([["skip",p.skipPings]]):new Map}; zir=function(p,a){a.bounds=p.getBoundingClientRect();const l=["display","opacity","visibility","zIndex"];for(const y of l)a[y]=Tz(p,y);a.hidden=!!p.hidden}; Bnh=function(p,a,l,y,S=!1){d_M(p,y);l=GHA(a,l,p.S,y,S);a=a.length===0?"":zeF(l);p.api.A("delhi_modern_web_player")?p.U.setAttribute("d",a):p.X.setAttribute("d",a);p.Kh=a!=="";g.OW(p.api.getRootNode(),"ytp-heat-map",p.Kh);p.api.A("delhi_modern_web_player")?(p.j.style.display="none",p.L.style.display="none"):p.U.style.display="none"}; cJE=function(p,a){const l={};for(const y of a){if(!y||!y.video)continue;a=y.video.qualityOrdinal;const S=l[a],n=S&&S.L()&&S.video.qualityOrdinal>p.policy.a7,V=a<=p.policy.a7?y.L():y.U();if(!S||n||V)l[a]=y}return l}; rJq=function(p,a){let l;switch(a){case 2:a="Ocultar v\u00eddeos";l="Hide recommendations grid";break;default:a="M\u00e1s v\u00eddeos",l="Show recommendations grid"}p.updateValue("title",a);p.element.ariaLabel=l;p.j.textContent=a}; $_M=function(p,a){Gr(HW(HW(p.SE(),l=>wBF(l,[Sd(a)])),l=>{if(l)for(const {key:y, value:S}of l)y&&S&&(rlh([{settingItemId:y,settingOptionValue:S}]),BJ(p))}),()=>{p.L=!0})}; EUr=function(p){if(!p)return"";const a=document.createElement("div").style;M4r(p).forEach(function(l){const y=g.H5&&l in PHo?l:l.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ag(y,"--")||ag(y,"var")||(l=yKr(LtM,p,p.getPropertyValue?"getPropertyValue":"getAttribute",[l])||"",l=ZeM(l),l!=null&&yKr(XBM,a,a.setProperty?"setProperty":"setAttribute",[y,l]))}); return a.cssText||""}; x_r=function(p,a,l,y,S){a=gOr(p,a);p=cJ(p,a,l);S=S({slotId:p.slotId,slotType:p.slotType,slotPhysicalPosition:p.slotPhysicalPosition,slotEntryTrigger:p.slotEntryTrigger,slotFulfillmentTriggers:p.slotFulfillmentTriggers,slotExpirationTriggers:p.slotExpirationTriggers,qO:p.qO});return S instanceof N?S:{dK:{...p,clientMetadata:new L0([new Z1(S.layout)]),adSlotLoggingData:y},TO:S.TO}}; O8=function(p,a){a<=p.status.status||(p.status={status:a,error:null},a===5&&p.mC.resolve())}; g.K=function(p,a){if(p)return p[a.name]}; FtO=function(p){p.policy.xt&&p.mz&&!p.c7?p.c7=!0:p.y$.Sl()}; EuA=function(p){p.U.read().then(p.wW.bind(p)).catch(p.p_.bind(p))}; rU=function(p){const a=UL(p);p=UL(p);return kO(a,p)}; g.L$=function(p,a){for(const l of Object.keys(a)){const y=a[l];p=p.replace(new RegExp("\\$"+l,"gi"),()=>y)}return p}; CHO=function(p){if(!p.adAvatar||!g.K(p.adAvatar,wU))return g.MD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!p.headline)return g.MD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!p.adBadge||!g.K(p.adBadge,$s))return g.MD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!p.adButton||!g.K(p.adButton,PJ))return g.MD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!p.adInfoRenderer|| !g.K(p.adInfoRenderer,KI))return g.MD(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;p=p.durationMilliseconds||0;return typeof p!=="number"||p<=0?(g.MD(Error("durationMilliseconds was specified incorrectly in "+`VideoInterstitialButtonedCenteredLayoutRenderer with a value of: ${p}`)),!1):!0}; KtF=function(p,a,l,y,S){const n=cA$(L_(p.slotEntryTrigger,l,y),S,p,a);if(n instanceof N)return n;let V=[];for(const Z of p.slotFulfillmentTriggers){const z=L_(Z,l,y);if(z instanceof N)return z;V.push(z)}V=vuM(V,S,p,a);a=[];for(const Z of p.slotExpirationTriggers){p=L_(Z,l,y);if(p instanceof N)return p;a.push(p)}return{slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:a}}; eiA=function(){return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",T:"ytp-svg-fill",Z:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; OZ=function(p){p.delay.stop();p.L.unsubscribe("dragmove",p.D,p);p.L.unsubscribe("dragend",p.X,p);p.U&&(p.U=!1,p.speedmasterUserEdu.X(),p.api.setPlaybackRate(p.Sl),p.api.showControls(),p.w7&&p.api.pauseVideo(),p.A("enable_smart_skip_speedmaster_on_web")&&p.api.publish("speedmasterchanged",!1))}; VAr=function(p,a,l,y,S,n,V){if(a&&l){p.x3=l.cpn;p.Tj(l.cpn,l.startTimeSecs||S);ZvO(p,l);var Z=Ht(p,"a2a",l);p.eb(Z);p.Fw++;p.playback.e0(a,l,y||0,S||0,!!n,!!V)}else p.eb({misspbkonadtrans:1,enter:l?.cpn||"",exit:a?.cpn||"",seek:n,skip:V})}; btr=function(p,a){Ym(p,2,a.k6);Ym(p,5,a.encryptedClientKey);Ym(p,6,a.iv);Ym(p,7,a.TI);ns(p,10,a.h2);ns(p,13,a.Hm);ns(p,14,a.IF);Ym(p,16,a.iR);ns(p,17,a.zL)}; IBf=function(p,a){if(E3(p,"getState")==="loading")return new g.J9(-1,-1);a=E3(p,a);if(!a)return new g.J9(-1,-1);p=parseInt(a.width,10);a=parseInt(a.height,10);return isNaN(p)||isNaN(a)?new g.J9(-1,-1):new g.J9(p,a)}; g.a$=function(){}; Ri$=function(p){let a=1;const l=g.ak(p.g7.experiments,"html5_default_ad_gain");l&&p.isAd()&&(a=l);let y;p.WJ?y=p.j?.audio.U!=null?p.j?.audio.U:p.bf:y=p.j?.audio.U||p.bf;isNaN(y)||(p.K9=1);return Math.min(1,10**(-y/20))||a}; Otf=function(p,a,l=0,y){y=new Vh("",y,!1);y.duration=l||0;for(const S of p){p=Xa(S,a,y.duration);const {RL:n,s:V,xD:Z}=ar(16,S);(l=zA(n||S.url||"",Z,V))&&(p.streamType==="FORMAT_STREAM_TYPE_OTF"?db(y,new uDF(l,p)):db(y,new GA(l,p,ih(S.initRange),ih(S.indexRange))))}y.isOtf=!0;return y}; g.xs=function(p){return p.yr.get("annotations_module")}; Fa=function(){}; Nkr=function(p,a){By(p,1,a.formatId,wx,3);gD(p,2,a.Nb);gD(p,3,a.sequenceNumber);By(p,4,a.yz,xg,1);gD(p,5,a.Dp);gD(p,6,a.oF)}; kHv=function(p,a){if(Em(p,a))return a=jO(p.L,p.pos,8),p.pos+=8,(new DataView(a.buffer,a.byteOffset,a.byteLength)).getFloat64(0,!0)}; gcA=function(p,a,l,y,S){function n(z){Z||(Z=!0,y.call(S,z))} function V(z){Z||(Z=!0,l.call(S,z))} let Z=!1;try{a.call(p,V,n)}catch(z){n(z)}}; fOh=function(p){const a=E$(),l=Date.now()-cg;a?(GD||(B0=l,g.Ir(G1.L,y=>{var S=y.Jo();S.Hs=C_(S,l,y.Ak!=1)})),GD=!0):(p.D=cUq(p,l),GD=!1,MMv=l,g.Ir(G1.L,y=>{y.zW&&(y.Jo().K=l)})); wy(p,pj(),!a)}; pa=function(p){p.length<16?eq(Number(p)):(p=BigInt(p),a1=Number(p&BigInt(4294967295))>>>0,yB=Number(p>>BigInt(32)&BigInt(4294967295)))}; var feq=function(p,a){return Mp[r[12]](this,1,p,a)}; vJ=function(p){const a=[];for(const l in p){if(!p.hasOwnProperty(l))continue;const y=l;a.push(DA(y));for(const S of p[y])a.push(S.itag)}return a.join(".")}; tMO=function(p,a,l){var y=l?l.innertubeApiKey:t_("",a.innertube_api_key),S=l?l.innertubeApiVersion:t_("",a.innertube_api_version);a=l?l.innertubeContextClientVersion:t_("",a.innertube_context_client_version);y=g.R("INNERTUBE_API_KEY")||y;S=g.R("INNERTUBE_API_VERSION")||S;l=g.R("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");var n=FJ(p);var V=typeof p.L.c==="number"?Number(p.L.c):Object.keys(m_Z).indexOf(p.L.c);return{innertubeApiKey:y,innertubeApiVersion:S,xL:l,iY:n,Vm:V,innertubeContextClientVersion:g.R("INNERTUBE_CONTEXT_CLIENT_VERSION")|| a,oJ:p.hostLanguage,Zn:p.region,CD:g.R("INNERTUBE_HOST_OVERRIDE")||"",F8:!!g.R("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),v$:!!g.R("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)}}; Wtv=function(p,a,l){const y=a.Oh,S=a.getMetadata(),n=YLo(p,!0);p=j$F(p,S,n,l+y.getName());l=lm$(n,y.S,!1);T1E(l,S["X-Goog-Encode-Response-If-Executable"]==="base64");a=y.L(a.z6);n.send(p,"POST",a);return l}; K_=function(p,a,l,y){a in p.L||(l=new g.yj(l,y,{id:a,priority:2,namespace:"appad"}),p.api.OE([l],1),p.L[a]=l)}; eH=function(p){if(!/^\w+$/.test(p))throw Error(`ExpectedRegexMismatch: ${p}`);}; Ht$=function(p){var a=p.Sl;isFinite(a)&&(bj(p)?p.refresh():(a=Math.max(0,p.Hs+a-(0,g.h)()),p.D||(p.D=new g.SF(p.refresh,a,p),g.H(p,p.D)),p.D.start(a)))}; g.IZ=function(p){try{const a=g.O_.Ed(),l=g.O_.bO();a&&a.remove(p);l&&l.remove(p)}catch(a){}}; RZ=function(p){return{layoutId:p.Y8(),Lg:p.xp,Lv:p.MO.get(),k$:p.vX()}}; oJ$=function(p,a){const l=[];for(const y of p.S)a(y)||l.push(y);if(p.Y.A("html5_sstm_fixes"))for(const y of p.S)a(y)&&(p.U.delete(y.cpn),y.ME&&p.j.delete(y.ME));p.S=l}; t2O=function(p,a){const l=a.onError?a.onError:()=>{}; a.onError=(S,n)=>{H0().requestComplete(p,!1);l(S,n)}; const y=a.onSuccess?a.onSuccess:()=>{}; a.onSuccess=(S,n)=>{H0().requestComplete(p,!0);y(S,n)}}; uj=function(p){p.hasCompleted=!0;p.Ak!=0&&(p.Ak=3)}; Om=function(p,a){let l=0;for(const y of p.S){p=y.Dy/1E3+l;const S=p+y.durationMs/1E3;if(p>a)break;if(S>a)return{Fq:y,Ve:a-p};l=S-y.w$/1E3}return{Fq:null,Ve:a-l}}; g.itF=function(p){const a=D_M();a&&(p=JSON.stringify(p),a.set("yt-player-lv",p))}; Tnf=function(p,a){a!==p.D&&(p.update({chapterTitle:a,ariaLabel:a}),p.D=a);a?p.show():p.hide()}; NnZ=function(p,a){const l=a.getAudioTrack();return l.id!=="und"?g.B4(p,y=>y.rG?.name===l.getLanguageInfo().name):p}; $hO=function(p,a,l,y,S,n){const V=fO(p.S.get(),"SLOT_TYPE_FORECASTING");a=p7(p,a,l,y);if(a instanceof N)return a;y=[new aa(p.L,V)];p=[new lm(p.L,V),new y5(p.L,l)];return{slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:y,slotExpirationTriggers:p,qO:"core",clientMetadata:new L0([new Z1(n({slotId:V,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:a,slotFulfillmentTriggers:y,slotExpirationTriggers:p}))]),adSlotLoggingData:S}}; s$h=function(p){if(!p)return 0;const a=p.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return a?(Number(a[2])|0)*3600+(Number(a[4])|0)*60+(Number(a[6])|0):Number(p)|0}; qzO=function(p){var a=new ks;a=lX(a,1,p.S);var l=lOM(p);a=U_F(a,l,Q$h);l=[];const y=[];for(var S of p.L.keys())y.push(S.split(","));for(S=0;S{Cc(p,a,l)}))}; JJe=function(p,a,l){if(a){var y=a.adLayoutLoggingData;g.wM(g.vT(),()=>{p.K?.L(y)},l??0)}}; fB$=function(){let p;if(document.visibilityState)p="visibilitychange";else{if(!document[tt+"VisibilityState"])return"";p=tt+"visibilitychange"}return p}; jH=function(p,a,l){a=a==null||typeof a==="number"?a:a==="NaN"||a==="Infinity"||a==="-Infinity"?Number(a):void 0;a!=null&&(qc(p,l,1),p=p.L,l=pNA||(pNA=new DataView(new ArrayBuffer(8))),l.setFloat64(0,+a,!0),a1=l.getUint32(0,!0),yB=l.getUint32(4,!0),E0(p,a1),E0(p,yB))}; aD$=function(p,a,l,y,S){try{if(p.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");const n=l(p.state.reason);n instanceof g.qH?Cj(p,a,n,y,S):y(n)}catch(n){S(n)}}; WJ=function(p,a){p.Y.A("html5_log_rebuffer_reason")&&(a={r:a,lact:Ls()},p.mediaElement&&(a.bh=gH(p.mediaElement)),p.Xu("bufreason",a))}; Dp=function(p){var a=!!p.C&&!p.api.getVideoData()?.isLivePlayback&&!p.api.AN()&&p.api.getPresentingPlayerType()!==2&&!p.api.getPlayerStateObject().L(2)&&!g.HJ(p.api)?.m7()&&!p.api.isEmbedsShortsMode()&&tcZ(p.api.iX());p.j!==a&&(p.j=a,p.j?p.L.subscribe("dragstart",p.N,p):(p.L.unsubscribe("dragstart",p.N,p),p.L.unsubscribe("dragmove",p.D,p),p.L.unsubscribe("dragend",p.X,p),OZ(p)))}; ij=function(p){return p.S.every(a=>a.hasOwnProperty("offsetMilliseconds"))}; qVE=function(p,a,l,y){let S=null;switch(a){case "JSON":let n;try{n=l.responseText}catch(V){throw y=Error("Error reading responseText"),y.params=p,D0(y),V;}p=l.getResponseHeader("Content-Type")||"";n&&p.indexOf("json")>=0&&(n.substring(0,5)===")]}'\n"&&(n=n.substring(5)),S=JSON.parse(n));break;case "XML":if(p=(p=l.responseXML)?Btf(p):null)S={},g.Ir(p.getElementsByTagName("*"),V=>{S[V.tagName]=lDF(V)})}y&&oDq(S); return S}; yrO=function(p){const a=p.Ic||p.Tm;return a?p.snapshot.delay+Math.min(p.lG,(p.C-p.UO)/1E3)+a:p.ir}; Yi=function(p,a,l){if(l&&!l.includes(p.layoutType))return!1;for(const y of a)if(!Ci(p.clientMetadata,y))return!1;return!0}; S_E=function(p,a){if(!(hX||Ye()||Ca()))return null;p=WhE(a,p.A("html5_filter_fmp4_in_hls"));if(!p)return null;a=[];const l={};for(const y of Object.keys(p))for(const S of p[y])if(S.rG){const n=S.rG.getId();if(!l[n]){const V=new g.Tr(n,S.rG);l[n]=V;a.push(V)}}return a.length>0?a:null}; nao=function(p){var a=g.N7(p),l=g.VZ(a,0,1936286840);l=l?l.data.getUint32(l.dataOffset+8):NaN;isNaN(l)&&(p=p.info.L.S,l=(a=g.VZ(a,0,1836476516))?g.Z2(a):p?oq(p):NaN);return l}; db=function(p,a){p.L[a.info.id]=a;p.U.set(Sh(g.UY(a.info,p.va)),a)}; N9=function(p){var a=[];for(var l of p)a[l]||(a[l]=0),a[l]++;var y=a[0]=0;l=[];var S=0,n=0;for(var V=1;V7&&(S+=a[V]);for(y=1;y>z&1;Z=S<<4|V;if(V<=7)for(z=1<<7-V;z--;)n[z<>=7;V--;){n[z]||(n[z]=-a,a+=2);const d=y&1;y>>=1;z=d-n[z]}n[z]=Z}}return n}; V1$=function(p){for(var a=0;a'.charCodeAt(y);p=p.U.createSession("video/mp4",a,l);return new IN(null,null,null,null,p)}; oaA=function(p){p.S.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",p.K.isExpanded())}; mE=function(p){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(p),l=new Uint8Array(p);window.crypto.getRandomValues(l);for(var y=0;ya)break;l++}return l===0?l:l-1}; dOo=function(p,a){xa(p.L,a)&&gu(E1(p.L,a))&&kt(p.L,a)&&!qO(p.L,a)&&(p.Io.L("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,kt(p.L,a)??void 0),p=E1(p.L,a),p.L!=="entered"&&Ql(p.slot,p.L,"enterLayoutForSlot"),p.L="rendering",p.U.startRendering(p.layout))}; s$=function(p){NC(p,g.R("RAW_HOT_CONFIG_GROUP"));p.pg(g.R("SERIALIZED_HOT_HASH_DATA"))}; GKA=function(p,a){(0,g.h)();return p.L.L?.X(a,p.iv)}; B7q=function(p,a){for(let l=0;l{if(a)try{const Z=a(V);S(Z)}catch(Z){n(Z)}else S(V)}); p.U.push(V=>{if(l)try{const Z=l(V);S(Z)}catch(Z){n(Z)}else n(V)}); sm(p);return y}; PoO=function(p,a){if(a.authorizedFormats)for(let l=0;l0&&RN(p.mediaElement)>0&&(p.S=Xm(p,p.S,!1)),a=p.A("html5_pseudogapless_shorts_seek_to_next_start")&&a?.seekSource===60,!p.mediaElement||!pWM(p,a))p.Fu.start(750);else if(!isNaN(p.S)&&isFinite(p.S)&&(a=p.Bs-(p.S-p.timestampOffset),!(a===0||Math.abs(a)<.005)))if(a=p.mediaElement.getCurrentTime()-p.S,Math.abs(a)<=p.Hs||Math.abs(a)<.005)rb(p);else{if(p.videoData.NF)p.videoData.NF= !1;else if(!vM(p.videoData)&&p.S>=p.UE()-.1){p.S=p.UE();p.j.resolve(p.UE());p.Y.Mc()&&p.Lz.Xu("setEndedInSeek",{tgt:`${p.S}`,maxst:`${p.UE()}`});p.Lz.uS();return}try{const l=p.S-p.timestampOffset;p.mediaElement.seekTo(l);p.UO.L=l;p.Bs=l;p.U=p.S;p.N=!1}catch(l){}}}; Um=function(p,a){return a.layoutId!==p.layout.layoutId?(p.uW.N2(p.slot,a,new s2("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${p.layout.layoutId}`+`and LayoutType: ${p.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; L2M=function(p){p.Py().element.setAttribute("aria-live","polite")}; QE=function(p,a){a!=p.bj&&(p.bj=a,p=nP(),a?p.D++:p.D>0&&p.D--)}; eO=function(p){return p.split(",").map(a=>cd(a))}; Kk=function(p){if(p!=null&&typeof p!=="boolean")throw Error(`Expected boolean but got ${cj(p)}: ${p}`);return p}; XNZ=function(p,a,l){function y(){if(G)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 Z} function S(c){if(typeof c!=="function")throw Error(`Expected the listener to be a function. Instead, received: '${typeof c}'`);if(G)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 w=!0;d===z&&(d=z.slice());d.push(c);return function(){if(w){if(G)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."); w=!1;d===z&&(d=z.slice());d.splice(d.indexOf(c),1);z=null}}} function n(c){if(typeof c!=="object"||c===null)var w=!1;else{for(w=c;Object.getPrototypeOf(w)!==null;)w=Object.getPrototypeOf(w);w=Object.getPrototypeOf(c)===w}if(!w)throw Error(`Actions must be plain objects. Instead, the actual type was: '${typeof c}'. 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 c.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(G)throw Error("Reducers may not dispatch actions.");try{G=!0,Z=V(Z,c)}finally{G=!1}w=z=d;for(let X=0;X=p.length?0:a}; CoZ=function(p,a){const l=j1(p,(y,S)=>S.video.S()?Math.min(y,S.video.width):y,Infinity); l{if(y.video.S()||y.video.width{if(y.itag!=="299")return!0;a[y.itag]="ps3hfr1080";return!1})); return p}; s_=function(p){g.mm.setTimeout(()=>{throw p;},0)}; q$h=function(p=!1){return p&&g.nU("vss_through_gel_video_stats")?"video_stats":"log_event"}; vah=function(p,a){let l=-1,y=-1,S=-1;if(p.qd?.items)for(const n of p.qd.items)aa)break;y-(p+15)<5?l++:l=0;p=y}}()})}; eJO=function(p,a){Ym(p,1,a.Xm);By(p,2,a.jU,$jE,3);By(p,3,a.coldStartInfo,Wcv,3)}; QR=function(p,a,l){if(xa(p.L,a))if(E1(p.L,a).j=l?"filled":"not_filled",l===null){p.Io.L("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",a);for(var y of p.S)y.Hl(a);M3(p,a,!1)}else{p.Io.L("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",a,l);p.Io.L("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,l);if(y=l.lK??l.clientMetadata.t9("metadata_type_sub_layouts"))for(const V of y)p.Io.L("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,V);for(const V of p.S)V.Rv(a);if(xa(p.L,a))if(E1(p.L,a).X)M3(p,a,!1);else{p.Io.L("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED", a,l);try{var S=p.L;if(!E1(S,a))throw new s2("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!S.uN.Vp.get(a.slotType))throw new s2("No LayoutRenderingAdapterFactory registered for slot of type: "+a.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(l.layoutExitNormalTriggers.length==0&&l.layoutExitSkipTriggers.length==0&&l.layoutExitMuteTriggers.length==0&&l.layoutExitUserInputSubmittedTriggers.length==0&&l.layoutExitUserCancelledTriggers.length== 0)throw new s2("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");gU(S,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",l.layoutExitNormalTriggers);gU(S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",l.layoutExitSkipTriggers);gU(S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",l.layoutExitMuteTriggers);gU(S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",l.layoutExitUserInputSubmittedTriggers);gU(S,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",l.layoutExitUserCancelledTriggers)}catch(V){V instanceof s2?p.N2(a,l,V,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):p.N2(a,l,new s2(`Unexpected error: ${V}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");M3(p,a,!0);return}E1(p.L,a).D=!0;try{var n=p.L;const V=E1(n,a),Z=n.uN.Vp.get(a.slotType).get().build(n.j,n.S,a,l);Z.init();V.layout=l;if(V.U)throw new s2("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");V.U=Z;Ys(n, V,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",l.layoutExitNormalTriggers);Ys(n,V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",l.layoutExitSkipTriggers);Ys(n,V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",l.layoutExitMuteTriggers);Ys(n,V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",l.layoutExitUserInputSubmittedTriggers);Ys(n,V,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",l.layoutExitUserCancelledTriggers)}catch(V){E4(p,a);V instanceof s2?p.N2(a,l,V,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):p.N2(a, l,new s2(`Unexpected error: ${V}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");M3(p,a,!0);return}p.Io.L("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",a,l);for(const V of p.S)V.NA(a,l);E4(p,a);dOo(p,a)}else p=p.EO.get(),g.ei(p.B.O())||Ya(p.B.O())||g.ur(p.B.O())?p=!0:(Q("Composite VOD on legacy path."),p=!1),p&&Q("slot is unscheduled after been fulfilled.",a,l)}}; hY=function(p,a,l,y,S){HD=!1;const n=(0,g.h)();a.ticks.gelc=n;bjv++;g.nU("disable_compression_due_to_performance_degredation")&&n-a.startTime>=IDO&&(RJr++,g.nU("abandon_compression_after_N_slow_zips")?bjv===g.yh("compression_disable_point")&&RJr>ucr&&(mw=!1):mw=!1);g.nU("gel_compression_csi_killswitch")||!g.nU("log_gel_compression_latency")&&!g.nU("log_gel_compression_latency_lr")||Hp("gel_compression",a,{sampleRate:.1});y.headers||(y.headers={});y.headers["Content-Encoding"]="gzip";y.postBody=p; y.postParams=void 0;S(l,y)}; S0M=function(p){a:{var a=p.initData;try{var l=0;const S=new DataView(a.buffer);for(;l0){const z=S.getUint32(l+28);V+=z*16+4}const Z=S.getUint32(l+V-4);try{const z=OjZ(a.subarray(l+V,l+V+Z));if(z!==null){var y=z;break a}}catch(z){}l+=n}y=null;break a}catch(S){y=null;break a}y=void 0}if(y!=null){a=hI(AI(y,7,void 0,sF));a==null||p.bC||(p.cryptoPeriodIndex=a);a=hI(AI(y,10, void 0,sF));a!=null&&a>0&&!p.bC&&(p.L=a);for(const S of FV(y,2,PD,void 0===kKF?2:4))y=p.U,a=y.push,l=q4(S),l=g.dW(l,4),a.call(y,l)}}; M1q=function(p,a){gD(p,1,a.deviceInterface);jP(p,2,a.deviceVersion);ns(p,3,a.isSleeping)}; mOA=function(p,a){for(const l of a){a=Number(l.playbackRelativePosition?.utcTimeMs)/1E3;const y=a+Number(l.duration?.seconds),S=`composite_embargo_${a}`;if(l.onEnter){const n=l.onEnter.filter(p.j);n.length&&(p.S.set(S,n),p.api.addUtcCueRange(S,a,y,"compositeembargo",!1))}}}; q9=function(p,a,l){const y=Math.floor(a),S=`${y}% ${"volumen"}`+(l?" silenciado":"");l=l?0:a/100;p.updateValue("valuenow",y);p.updateValue("valuetext",S);p.QY.style.left=`${(p.U?60:40)*l}px`;p.volume=a}; Jt=function(p){return Tp(p.volume)&&p.volume>0}; yUq=function(p){if(!Ar(p.adLayoutMetadata))return!1;if(g.K(p.renderingContent,yN$)||g.K(p.renderingContent,Rw))return!0;const a=g.K(p.renderingContent,ek);return g.K(p.renderingContent,bp)||g.K(a?.sidePanel,t1$)||g.K(a?.sidePanel,liE)||g.K(a?.sidePanel,jxr)?!0:!1}; NC=function(p,a){p.S=a;g.eo("yt.gcf.config.hotConfigGroup",p.S||null)}; lx=function(p,a,l){p.L.L();var y=p2(p,a);if(y>=0)return y;p.K?.Sl(a,l);y=Math;var S=y.min,n=p.j;if(n.G)if(n=n.G,n.Fz&&n.Fz.type===3)n=n.Fz.startTime;else if(n.U>0){var V=n.L.index;V=g.Q0(V.offsets.subarray(0,V.count),n.U*n.chunkSize);n=n.L.index.getStartTime(V>=0?V:Math.max(0,-V-2))}else n=0;else n=Infinity;a=S.call(y,a,n);p.S=p.policy.N?null:p.L.D(a).Yv[0];R9(p)&&(p.policy.V2&&l?.seekSource===60||p.Jg&&p.Jg.abort(),p.policy.In&&p.K?.K());p.QY=0;return p.S?p.S.startTime:a}; pq=function(p,a){const l=f_(p,!isNaN(p.j));a&&(p.j=NaN);return l}; Rl=function(p,a){lb(p);p.loader.oo();return aH(a,p.loader.isSeeking())}; Ib=function(p,a,l=!1){hOA(p.X,a,l);p.C=-1;Kt(p,p.L)}; lV=function(p,a,l,y){if(y===void 0){const {[l]:S,...n}=p[a]||{};return{...p,[a]:n}}return{...p,[a]:{...p[a],[l]:y}}}; YCM=function(p,a){p.TR.f0()||(p.Xu("sgap",{f:a}),p.TR.clearQueue(!1,a==="pe"))}; s8v=function(p,a,l,y,S={},n,V){const Z=Math.round((0,g.h)());let z=p.size;const d=q$h(V);for(const [G,B]of p){p=G;V=B;const c=g.vO({context:g.yx(a.config_||g.fm())});if(!g.$m(V)&&!g.nU("throw_err_when_logevent_malformed_killswitch")){y();break}c.events=V;(V=$0[p])&&W2M(c,p,V);delete $0[p];const w=p==="visitorOnlyApprovedKey";HjZ(c,Z,w);kQ(S);const X=u=>{g.nU("start_client_gcf")&&g.XY.zD(async()=>{await $wo(u)}); z--;z||l()}; let v=0;const I=()=>{v++;if(S.bypassNetworkless&&v===1)try{g.TD(a,d,c,iY({writeThenSend:!0},w,X,I,n)),NT=!1}catch(u){g.Wp(u),y()}z--;z||l()}; try{g.TD(a,d,c,iY(S,w,X,I,n)),NT=!1}catch(u){g.Wp(u),y()}}}; DOf=function(p,a){p=g.G0(p.components,a.id,null);p==null&&g.tX(Error("Component not found for element id: "+a.id));return p||null}; PA=function(p){if(p.L!==tF)return!1;var a=p.DI;a=km(a,a[rD]|0);a[rD]|=2048;p.DI=a;p.L=void 0;p.j=void 0;return!0}; g.Fj=function(p,a,l,y,S="",n=!1,V=!1){if(p)if(l&&!g.VI())D0(new g.Qm("Legacy referrer-scrubbed ping detected")),p&&QhM(p,void 0,{scrubReferrer:!0});else if(S)Ss(p,a,"POST",S,y);else if(g.R("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||y||V)Ss(p,a,"GET","",y,void 0,n,V);else{b:{try{c:{var Z=new ijr({url:p});if(Z.L.dsh==="1")var z=null;else{var d=Z.L.ae;if(d==="1"){const B=Z.L.adurl;if(B)try{z={version:3,gL:decodeURIComponent(B),nL:nq(Z.S,"act=1","ri=1",Y$r(Z))};break c}catch(c){}}z=d==="2"?{version:4,gL:nq(Z.S, "dct=1","suid="+Z.U,""),nL:nq(Z.S,"act=1","ri=1","suid="+Z.U)}:null}}if(z){const B=gX(p);var G=!(!B||!B.endsWith("/aclk")||Gg(p,"ri")!=="1");break b}}catch(B){}G=!1}G?a_o(p)?(a&&a(),l=!0):l=!1:l=!1;l||QhM(p,a)}}; vG=function(p,a){if(p.policy.useUmp&&a.nz())return!1;try{var l=a.info.Yv[0].L;const V=l.info.video?p.videoTrack:p.audioTrack;var y=V;if(p.r7.isManifestless&&y){p.D=0;y.G&&(a.nz(),a.isComplete()||a.WL(),y.G=!1);a.qH()&&p.loader.uZ.xn(1,a.qH());var S=a.w6(),n=a.j$();Vx(p.r7,S,n)}if(a.info.K8()&&!CJ(a.info))for(const z of a.r3())T7q(V,z);y=V;for(p.loader.getCurrentTime();y.U.length&&y.U[0].state===4;){const z=y.U.shift();mr(y,z);y.Bs=z.S$()}y.U.length&&mr(y,y.U[0]);const Z=!!b6(V);Z&&a instanceof uF&& (l.info.Bi()?N7r(p.timing):BbO(p.timing));return Z}catch(V){a=a.eS();a.origin="hrhs";a:{p=p.loader;l=V;if(l instanceof Error){a.msg||(a.msg=`${l.message}`);a.name||(a.name=`${l.name}`);if(l instanceof g.Qm&&l.args)for(const [Z,z]of Object.entries(l.args))a[`arg${Z}`]=`${z}`;g.tX(l);if(l.level==="WARNING"){p.Lz.lW(a);break a}}p.handleError("fmt.unplayable",a,1)}return!1}}; AD=function(p,a){YO||(ZR?ZR.logEvent(p,a):(oH.push({type:"EVENT",eventType:p,payload:a}),oH.length>10&&oH.shift()))}; mU=function(p,a){p.api.getPresentingPlayerType()!==1?p.iT.style.removeProperty("clip-path"):(a||(a=Mr(p,p.N,O6(p))),p.iT.style.clipPath='path("'+(p.Me?sxv(p,8,a,p.D?50:36,0,6):sxv(p,4,a,p.D?34:24,2,3))+'")')}; hJA=function(p,a={}){const l=S_(p),y=g.R("INNERTUBE_CLIENT_NAME"),S=g.nU("web_ajax_ignore_global_headers_if_set");for(const Z in UOZ){let z=g.R(UOZ[Z]);const d=Z==="X-Goog-AuthUser"||Z==="X-Goog-PageId";Z!=="X-Goog-Visitor-Id"||z||(z=g.R("VISITOR_DATA"));var n;if(!(n=!z)){if(!(n=l||(g.TX(p)?!1:!0))){n=p;var V;if(V=g.nU("add_auth_headers_to_remarketing_google_dot_com_ping")&&Z==="Authorization"&&(y==="TVHTML5"||y==="TVHTML5_UNPLUGGED"||y==="TVHTML5_SIMPLY")&&QxM(n))n=gX(n)||"",n=n.split("/"),n="/"+ (n.length>1?n[1]:""),V=n==="/pagead";n=V?!0:!1}n=!n}n||S&&a[Z]!==void 0||y==="TVHTML5_UNPLUGGED"&&d||(a[Z]=z)}"X-Goog-EOM-Visitor-Id"in a&&"X-Goog-Visitor-Id"in a&&delete a["X-Goog-Visitor-Id"];if(l||!g.TX(p))a["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(l||!g.TX(p)){let Z;try{Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch{}Z&&(a["X-YouTube-Time-Zone"]=Z)}document.location.hostname.endsWith("youtubeeducation.com")||!l&&g.TX(p)||(a["X-YouTube-Ad-Signals"]=N$(sO())); return a}; Arq=function(p){p=p.L;for(const a in p){const l=p[a].index;if(l.isLoaded())return l.VL()+1}return 0}; gah=function(p){const a=!p.O().g4&&p.getPresentingPlayerType()!==3;return p.isFullscreen()||a}; Y_v=function(p){return p.map(a=>new tn(a.id,"application/x-mpegURL",{rG:a.rG}))}; g.q_h=function(p){const a={};p=(p.L&&g.aU(p)>=2?p.L.getAllResponseHeaders()||"":"").split("\r\n");for(let y=0;y{S=S.snapshot.bind(S);g.eo("yt.abuse.playerAttLoaderRun",S);QA(a.siub,a.scs,a.bgub,a.bgp,a.upb)}):QA(a.siub,a.scs,a.bgub,a.bgp,a.upb))}; JrM=function(p=!1){p?(p=zd().filter(a=>a.startsWith("1")),g.V2("yt-player-performance-cap-active-set",p,2592E3)):g.V2("yt-player-performance-cap-active-set",[],2592E3)}; d9=function(p,a){for(const l of a){a=Mr(p,l.timeRangeStartMillis/(p.U.L*1E3),O6(p));const y=p.api.A("delhi_modern_web_player")?.667:.6;g.VB(l.element,"transform",`translateX(${a}px) scaleX(${y})`)}}; aaF=function(p,{isOtf:a,zI:l,IR:y,Bo:S,aT:n,Zl:V,gm:Z,bx:z,BT:d,disableAv1:G,rW:B}){const c=new fDM(p);if(p.Mc()||p.A("html5_logging_format_selection"))c.S=!0;c.Bs=n;c.Zl=V&&p.K;c.BT=d;g.IW("windows nt 5.1")&&!g.cq&&(c.Ql=!0);if(n=l)n=g.WO(p)?pOf(p):!1;n&&(c.UO=!0);Z&&(c.Ql=!0,c.dG=!0);a&&!p.A("html5_otf_prefer_vp9")&&(c.Ql=!0);p.playerStyle==="picasaweb"&&(a&&(c.Ql=!1),c.N=!1);S&&(c.Ql=!0);Oe(p.X,y9.CHANNELS)&&(p.A("html5_enable_ac3")&&(c.j=!0),p.A("html5_enable_eac3")&&(c.X=!0),p.A("html5_enable_ac3_gapless")&& (c.w7=!0));p.A("html5_block_8k_hfr")&&(c.Rc=!0);c.D=g.ak(p.experiments,"html5_max_selectable_quality_ordinal");c.G=g.ak(p.experiments,"html5_min_selectable_quality_ordinal");Gd&&(c.E6=480);if(y||l)c.N=!1;c.ac=!1;c.disableAv1=G;a=Qz(p,c.L,void 0,c.disableAv1);a>0&&a<2160&&(i8()||p.A("html5_format_hybridization"))&&(c.L.supportsChangeType=+i8(),c.a7=a);a>=2160&&(c.jl=!0);ZN$()&&!p.A("disable_av1_setting")&&(c.L.serveVp9OverAv1IfHigherRes=0,c.Ba=!1);c.bx=z;c.QY=g.av||Fp()&&!z?!1:!0;c.K=p.A("html5_format_hybridization"); c.iT=p.A("html5_disable_encrypted_vp9_live_non_2k_4k");c.Ps=B;return c}; el=function(p){p.policy.Kx&&p.policy.PO&&Math.min(lar(p.videoTrack),lar(p.audioTrack))*1E3>p.policy.MF?p.Ba.JP():p.JN()}; BF=function(p){if(!p.Kz?.XT()){if(p.mediaElement)try{p.Qo=p.mediaElement.playVideo()}catch(a){v6(p,`err.${a}`)}if(p.Qo){const a=p.Qo;a.then(void 0,l=>{if(!(p.playerState.L(4)||p.playerState.L(256)||p.Qo!==a||l&&l.name==="AbortError"&&l.message&&l.message.includes("load"))){let y="promise";l&&l.name&&(y+=`;m.${l.name}`);v6(p,y);p.F3=!0;p.videoData.L1=!0}})}}}; SYM=function(p,a,l,y,S,n,V,Z,z){const d=nW(g.K(a,ST),z),G=l.Fa,B=l.D_,c=Math.min(G+d.videoLengthSeconds*1E3,Z);l.Fa=c;l.D_++;l.B5.push(d.videoLengthSeconds);const w=g.K(a,ST)?.playerOverlay?.instreamSurveyAdRenderer;if(d.adVideoId==="nPpU29QrbiU"&&w==null)throw new TypeError("Survey slate media has no survey overlay");return X=>{B9(d.playerVars,X);var v=d.videoLengthSeconds,I=d.playerVars,u=d.Xh,m=d.N8,M=d.instreamAdPlayerOverlayRenderer,D=d.playerOverlayLayoutRenderer,A=d.adVideoId,$h=g.K(a,ST)?.adLayoutLoggingData, cE=g.K(a,ST)?.sodarExtensionData;const FO=d$(y.S.get(),"LAYOUT_TYPE_MEDIA",p),CA={layoutId:FO,layoutType:"LAYOUT_TYPE_MEDIA",qO:"adapter"};X={layoutId:FO,layoutType:"LAYOUT_TYPE_MEDIA",Xh:u,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"adapter",clientMetadata:new L0([new cF(V),new d_(v),new r9(I),new AQ(G),new gx(c),new w9(B),new $_({current:null}),M&&new PF(M),D&&new Lq(D),new GL(n),new XP(A), new x_(X),cE&&new FP(cE),w&&new y5A(w),new fj,new oL(m)].filter(O3)),ao:S(CA),adLayoutLoggingData:$h};v=WaM(g.K(a,ST),n,V,X.layoutId,y);return{Ej:X,D3:v}}}; nzq=function(p,a){const l=new Map;for(const y of p.L.keys()){const S=y.split("_")[0];a.has(S)||l.set(y,p.L.get(y))}p.L=l}; pY=function(p){return p.pos>=p.L.byteLength}; Eq=function(p,a,l){return typeof p==="string"?(p=encodeURI(p).replace(a,sOM),l&&(p=p.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),p):null}; VkM=function(p){p.channel.classList.remove("ytp-title-show-collapsed");p.channel.classList.remove("ytp-title-show-expanded")}; Zzf=function(){}; nmO=function(p,a){return U_F(p,a,rV)}; lxo=function(){Cq||(Cq=new ozM);return Cq}; zzZ=function(p){const a=[];for(let l of p.split(",")){if(!l)continue;(p=l.startsWith("!"))&&(l=l.substring(1));const y=l.split("-");y.length<3||a.push({lw:y[0],platform:y[1],deviceVersion:y[2],q6:p})}return a}; ns=function(p,a,l){l!==void 0&&gD(p,a,l?1:0)}; dXM=function(){}; wh=function(p,a,...l){a==="onAdStart"||a==="onAdEnd"?g.ZN(p.B,a,...l):g.v0(p.B,a,...l)}; YF=function(p){try{return p.getBoundingClientRect()}catch(a){return{left:0,top:0,right:0,bottom:0}}}; g.UY=function(p,a){return{itag:+p.itag,lmt:a?0:p.lastModified,xtags:p.S||""}}; Kq=function(p,a,l){a=iiF(a);if(a!=null){switch(typeof a){case "string":na(a)}if(a!=null)switch(qc(p,l,0),typeof a){case "number":p=p.L;eq(a);vF(p,a1,yB);break;case "bigint":l=BigInt.asUintN(64,a);l=new f8(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));vF(p.L,l.S,l.L);break;default:l=na(a),vF(p.L,l.S,l.L)}}}; B5r=function(p,a,l,y){y=new GoM(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,y,p.jl);y.lT(p.answers);y.init(Mx("survey-answer"),a,l);p.D&&(a=p.questionText.getAttribute("id"),a!=null&&(y.L!==null?y.L.S.setAttribute("aria-describedby",a):y.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",a)));p.S.push(y)}; c5E=function(p){es(p,4,!1);p.G&&(p.L.Kt(p.G),p.G=null,p.U=p.L.J(p.target,"mouseover",p.Vu));p.U&&(p.L.Kt(p.U),p.U=p.L.J(p.target,"mouseover",p.Vu))}; r5F=function(p){const a=b6(p)?.info;return!a||iE(p,Math.min(a.X+Z8,a.D))}; bV=function(p,a,l,y,S){b4(p);const n=p.DI;wD(n,n[rD]|0,a,(y==="0"?Number(l)===0:l===y)?void 0:l,S);return p}; kK=function(p){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(p)}; IH=function(p){const a=[];for(const l of p.L.keys()){const y=p.L.get(l);a.push(`${l}_${y.maxWidth}_${y.maxHeight}`)}return a.join(".")}; Ppe=function(p){if(p.isExternallyHostedPodcast&&p.Me){const a=bl(p.Me);if(!a[0])return Sk();p.N4=a[0];return wOE(p.g7,a[0]).then(l=>{RH(p,l)})}return p.nC&&p.tU?$Xe(p.g7,p.isAd(),p.nC).then(a=>{RH(p,a)}):Sk()}; LvM=function(p){return fn((a,l)=>g.uV(a,l,4,1E3),p,{format:"RAW", method:"GET",withCredentials:!0})}; XOq=function(){var p;g.nU("csi_use_performance_navigation_timing")?(p=lt?.getEntriesByType?.("navigation")?.[0]?.toJSON?.())?(p.requestStart=Sw(p.requestStart),p.responseEnd=Sw(p.responseEnd),p.redirectStart=Sw(p.redirectStart),p.redirectEnd=Sw(p.redirectEnd),p.domainLookupEnd=Sw(p.domainLookupEnd),p.connectStart=Sw(p.connectStart),p.connectEnd=Sw(p.connectEnd),p.responseStart=Sw(p.responseStart),p.secureConnectionStart=Sw(p.secureConnectionStart),p.domainLookupStart=Sw(p.domainLookupStart),p.isPerformanceNavigationTiming= !0):p=lt.timing:p=g.nU("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(lt.timing)):lt.timing;return p}; df=function(p,a,l){$v(p);AT(p,l);AT(p,~l);Yr.BR(p.Qh,p.window,a,l,p.pending);p.pending+=l}; xXr=function(p,a){const l=[];for(const y of p.values())y.slot.slotId===a&&l.push(y);return l}; g.g3=function(p,a){this.x=p!==void 0?p:0;this.y=a!==void 0?a:0}; Oq=function(p,a,l,y=!1){if(l.indexOf(a)>-1)throw Error(`Deps cycle for: ${a}`);if(p.S.has(a))return p.S.get(a);if(!p.L.has(a)){if(y)return;throw Error(`No provider for: ${a}`);}y=p.L.get(a);l.push(a);if(y.Ur!==void 0)var S=y.Ur;else if(y.OT)S=y[oA]?FvF(p,y[oA],l):[],S=y.OT(...S);else if(y.qP){S=y.qP;const n=S[oA]?FvF(p,S[oA],l):[];S=new S(...n)}else throw Error(`Could not resolve providers for: ${a}`);l.pop();y.CCI||p.S.set(a,S);return S}; fv=function(p){p.j||(p.j=new g.k_(p.S));return p.j}; eg=function(p){return p.includes("vtt")||p.includes("text/mp4")}; Pe=function(p,a){p.Fu=NaN;p.NO=null;p.Ps.stop();p.w7&&a&&p.w7.qD();p.iT=null;p.w7=null}; zd$=async function(p,a){const l=a.isAd();let y=!l,S=l?1:3;for(let V=0;V0){await Pq(5E3);var n=new g.Qm("Retrying OnePlatform request",{attempt:V});g.tX(n)}try{await EzZ(p,a);return}catch(Z){const z=XN(Z);n=z.errorCode;const d=p.O().A("html5_use_network_error_code_enums")?401:"401";y&&n==="manifest.net.badstatus"&&z.details.rc===d&&(y=!1,V===S-1&&(S+=1));if(V===S-1)return p=crO(l,z.details),p.details.backend="op",p.details.originec=n,Promise.reject(p);if(n==="auth"||n==="manifest.net.retryexhausted")return Promise.reject(z); p.handleError(z);if(xW(z.severity))break}}return Promise.reject(crO(l,{backend:"op"}))}; iAM=function(p,a,l=null){const y=xkA(typeof p==="string"?p:p.toString());let S=document.getElementById(y);var n=S&&iUA(S);const V=S&&!n;n?a&&a():(a&&(n=g.HT(y,a),a=`${g.Oz(a)}`,ZuA[a]=n),V||(S=CpM(p,y,()=>{iUA(S)||(GWq(S),g.MK(y),g.jQ(()=>{Fw$(y)},0))},l)))}; tQZ=function(p,a){a||(a=Math.ceil(Math.log(p+2)/Math.log(2)/7));const l=1<<8-a,y=[];for(;y.length{var V=n.slotId;n=y(n);V=d$(p.S.get(),"LAYOUT_TYPE_MEDIA",V);const Z={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",qO:"adapter"};return{Dg:{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA",Xh:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"adapter", clientMetadata:new L0([new bzA,new GL(a),new $_({current:null}),new r9(S)]),ao:n(Z)},VP:[new h6(p.L,V,["error"])],BW:[],GH:[],ux:[]}}}; kA=function(){try{const p=g.o1("yt.ads.biscotti.getId_");return p?p():zbv()}catch(p){return l3(p)}}; WF=function(p){if(/^f([1-9][0-9]*)$/.test(p))throw Error(`ExpectedRegexMatch: ${p}`);}; Yc=function(p){var a=p.A("html5_enable_sabr_on_drive")&&p.g7.UO==="gd";if(p.T1)return p.QS&&p.Xu("fds",{fds:!0},!0),!1;if(p.g7.UO!=="yt"&&!a)return p.QS&&p.Xu("dsvn",{ns:p.g7.UO},!0),!1;if(p.cotn||!p.L||p.L.isOtf&&!p.A("html5_enable_sabr_otf_in_client")||p.U&&!p.U.L()||p.kG&&!p.A("html5_enable_sabr_csdai"))return!1;if(p.A("html5_use_sabr_requests_for_debugging"))return!0;p.QS&&p.Xu("esfw",{usbc:p.QS,hsu:!!p.g4},!0);if(p.QS&&p.g4)return!0;if(p.A("html5_remove_client_sabr_determination"))return!1;var l= !p.L.va&&!p.FF();a=l&&ig&&p.A("html5_enable_sabr_vod_streaming_xhr");l=l&&!ig&&p.A("html5_enable_sabr_vod_non_streaming_xhr");const y=I2(p),S=p.A("html5_enable_sabr_drm_vod_streaming_xhr")&&ig&&p.FF()&&!p.L.va&&(p.drmProduct==="1"?!1:!0);(a=a||l||y||S)&&!p.g4&&p.Xu("sabr",{loc:"m"},!0);return a&&!!p.g4}; WWv=function(p){return Yc(p)&&p.A("html5_enable_server_format_filter")}; Iah=function(p,a,l,y){a={opportunityType:a};p&&(y||l)&&(y=g.Nx(y||[],S=>e_(p,S)),a.debugData={...(l&&l.length>0?{associatedSlotId:l}:{}), ...(y.length>0?{slots:y}:{})});return a}; HF=function(p){return p.w7==="leanback"}; MkM=function(p,a,l=p.schedule){const y=new g.RzM(p);var S=uio({hasSubfragmentedFmp4:a.hasSubfragmentedFmp4,K_:a.K_});y.K=S;OzZ(y,p,a,l);y.MJ=!ib();g.ur(p)||!ib()?(y.Bs=8388608,y.iT=524288,y.uK=5,y.Hs=1048576,y.Ds=1.5,y.Sb=4587520,Zq()&&(y.Sb=786432),y.C*=1.1,y.Sl*=1.1,y.PZ=!0):p.S&&(y.C*=1.3,y.Sl*=1.3);g.TF&&g.IW("crkey")&&(S=p.L.cmodel==="CHROMECAST/ANCHOVY",y.Bs=20971520,y.iT=1572864,S&&(y.Sb=812500,y.Me=1E3,y.LH=5,y.Hs=2097152));g.cq&&(y.PZ=!0);p.supportsGaplessAudio()||(y.SS=!1);Gd&&(y.tP=!0); kov(y,p,a,l);Oe(p.X,y9.BITRATE)&&(y.Sb=NaN);if(l=g.ak(p.experiments,"html5_request_size_max_kb"))y.Hs=l*1024;if(p.X.U)y.o1="; "+y9.EXPERIMENTAL.name+"=allowed";else if(p.A("html5_enable_cobalt_tunnel_mode")&&g.VI()){const {name:n,valid:V}=y9.TUNNELMODE;y.o1=`; ${n}=${V}`}p=a.serverPlaybackStartConfig;p?.enable&&p?.playbackStartPolicy&&(y.Dd=!0,DR(y,p.playbackStartPolicy,2));return y}; ct=function(p){return function*(){return yield{IS:La(p)}}()}; mXq=function(p,a){return CqO(p,Ke(a,u9,1,AV),Ke(a,k0,2,AV),YD(a,3,void 0,AV))}; Td=function(){iV.instance||(iV.instance=new iV);return iV.instance}; tke=function(p,a,l,y,S){y.It?o_(p,4,"cue"):(p.D=a,p.G=l,p.Xu("sdai",{joinad:p.S,sg:p.D,st:p.G.toFixed(3)}),p.C=Date.now(),o_(p,2,p.S===3?"staftpred":"join"),S.aE(y.S5))}; tM=function(p,a){if(a){Vy=a==null||a===Zu||a[jwo]!==Wvv?Zu:a;try{return d7(p)}finally{Vy=void 0}}return d7(p)}; lq=function(p){if(!Ar(p.adLayoutMetadata))return!1;p=p.renderingContent;var a=g.K(p,C9);return a?vq(a):(a=g.K(p,ST))?We(a):(a=g.K(p,Zp))?a.playerVars!==void 0:(a=g.K(p,oZ))?a.durationMilliseconds!==void 0:g.K(p,zr)||g.K(p,dU)?!0:!1}; GB=function(p,a){return Math.floor(a/(p.columns*p.rows))}; $Yo=function(){const p=[];var a=QH();p.push(ND(HzZ));VK(a.AP,"mvp_lv")&&p.push(ND(Q$));a=[new DXh,new izr];a.push(new T5o(p));a.push(new N5r(bn));return a}; Qwf=function(p,a){a instanceof GF&&(p.Hs=a);var l=new Set(a.Az(p.K1()));for(const z of l){if(l=a instanceof $p){l=p.U;var y=l.r7.va,S=$S(l.videoInfos,y);y=swf(l,z,y);var n=S.includes(z);!l.mO.NI||y||n||l.loader.Xu("sabrcpf",{fid:`${z}`,vfids:`${S.join(".")}`,said:l.K||""});l=!(y||S.includes(z))}if(!l&&(l=a.dX(z,p.K1()),S=p.policy.ir&&eg(l[0].L.info.mimeType),a.WL(z,p.K1()))){y=a.r3(z,p.K1());for(const d of y)if(p.policy.U&&a instanceof $p&&p.loader.Xu("omblss",{s:d.info.HZ()}),S)y=p.timing,y.UO|| (y.UO=(0,g.h)(),g.ce("fcb_r",y.UO,y.L)),y=p,y.videoData.va()&&y.D&&Sh(y.D)===Sh(g.UY(d.info.L.info,y.r7.va))&&y.Lz.publish("sabrCaptionsDataLoaded",d,y.f2.bind(y));else{y=d.info.L.info.Bi();var V=d.info.L;if(y){n=p.U;var Z=a.Ud(p.K1())?.token;n.G&&V!==n.X?n=!0:(n.G=!1,V!==n.X&&(n.X=V,n.Ca(V,n.audioTrack,Z)),n=!1);if(n)continue}else UXE(p.U,V,a.Ud(p.K1())?.token);n=y?p.audioTrack:p.videoTrack;a instanceof $p&&(n.G=!1,a instanceof $p&&(y?N7r(p.timing):BbO(p.timing)));try{kh(n,l,d)}catch(G){y=XN(G), p.loader.handleError(y.errorCode,y.details,y.severity),n.C0(),p.Gd(!1,"pushSlice"),dJ(p.loader)}}}}}; Tdo=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X){const v=[];for(const A of p)if(!xc(A)&&A?.adSlotMetadata?.slotType!=="SLOT_TYPE_IN_PLAYER"){var I=NK(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger,u=z.vX(I),m=KtF(A,d,y,l.t3,u);if(m instanceof N)return m;var M={slotId:A.adSlotMetadata.slotId,slotType:A.adSlotMetadata.slotType,slotPhysicalPosition:A.adSlotMetadata.slotPhysicalPosition??1,qO:"core",slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers}, D=g.K(A.fulfillmentContent.fulfilledLayout,zx);if(D){if(!lq(D))return new N("Invalid PlayerBytesAdLayoutRenderer");const $h=B&&!(NK(A)&&A.slotEntryTrigger.beforeContentVideoIdStartedTrigger);m=m.slotFulfillmentTriggers.some(cE=>cE instanceof dV); u=$h?bmO(M,A.adSlotMetadata.triggerEvent,D,l,y,n,d,p,u,c,m,w):RIM(M,A.adSlotMetadata.triggerEvent,D,a,l,y,S,n,V,Z,z,d,p,G,u,A.adSlotMetadata.triggeringSourceLayoutId);if(u instanceof N)return u;D=[];X?D.push(new hzo({current:X})):D.push(new hzo({current:null}));NK(A)&&D.push(new dA({qa:NK(A)&&!!A.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));$h&&D.push(new fj);l.va&&D.push(new A5F({}));D.push(new oa(I));M={...M,clientMetadata:new L0(D),fulfilledLayout:u.layout,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData}; v.push(...u.TO);v.push(M)}else if(I=g.K(A.fulfillmentContent.fulfilledLayout,XJ)){if(!yUq(I))return new N("Invalid PlayerUnderlayAdLayoutRenderer");I=SZM(I,y,l.t3,n,M,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(I instanceof N)return I;M={...M,clientMetadata:new L0([]),fulfilledLayout:I,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};v.push(M)}else if(I=g.K(A.fulfillmentContent.fulfilledLayout,z_A)){if(!Ar(I.adLayoutMetadata)||!g.K(I.renderingContent,Rw))return new N("Invalid InPlayerOrganicOverlayAdLayoutRenderer"); I=I.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?gzM(I,y,l.t3,n,M):new N(`LayoutType [${I.adLayoutMetadata.layoutType}] is invalid for InPlayerOrganicOverlaySlot`);if(I instanceof N)return I;M={...M,clientMetadata:new L0([]),fulfilledLayout:I,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};v.push(M)}else if(I=g.K(A.fulfillmentContent.fulfilledLayout,VZZ)){if(!Z$Z(I))return new N("Invalid AboveFeedAdLayoutRenderer");I=YYv(I,y,l.t3,n,M,A.adSlotMetadata.triggerEvent, A.adSlotMetadata.triggeringSourceLayoutId);if(I instanceof N)return I;M={...M,clientMetadata:new L0([]),fulfilledLayout:I,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};v.push(M)}else if(I=g.K(A.fulfillmentContent.fulfilledLayout,oqe)){if(!Ar(I.adLayoutMetadata)||!g.K(I.renderingContent,dq))return new N("Invalid BelowPlayerAdLayoutRenderer");I=YYv(I,y,l.t3,n,M,A.adSlotMetadata.triggerEvent,A.adSlotMetadata.triggeringSourceLayoutId);if(I instanceof N)return I;M={...M,clientMetadata:new L0([]), fulfilledLayout:I,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};v.push(M)}else if(I=g.K(A.fulfillmentContent.fulfilledLayout,Gx)){if(!Be(I))return new N("Invalid PlayerBytesSequenceItemAdLayoutRenderer");I=gZv(I,y,l.t3,n,M,A.adSlotMetadata.triggerEvent);if(I instanceof N)return I;M={...M,clientMetadata:new L0([]),fulfilledLayout:I,adSlotLoggingData:A.adSlotMetadata.adSlotLoggingData};v.push(M)}else return new N(`Unable to retrieve a client slot [${M.slotType}] from a given AdSlotRenderer`)}return v}; sq=function(p,a){this.topic=p;this.L=a}; qYr=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("-extension://")||p.includes("webkit-masked-url://")}; Uq=function(p,a,l){return p?!0:(g.tX(new g.Qm(`Assertion: ${a}`,l)),!1)}; Qx=function(p,a,l){JB(p.s6,a);p.Bs&&(p.Bs.add(Math.ceil(a)-Math.ceil(p.G)),p.Bs.add(Math.max(0,Math.ceil(l/1024)-Math.ceil(p.X/1024))));const y=a-p.G,S=l-p.X;p.OC=S;p.Lx=Math.max(p.Lx,S/(y+.01)*1E3);p.G=a;p.X=l;p.QY&&l>p.QY&&J5q(p)}; L_=function(p,a,l){if(p.beforeContentVideoIdStartedTrigger)p=p.beforeContentVideoIdStartedTrigger?new SZ(hj,a,p.id):new N("Not able to create BeforeContentVideoIdStartedTrigger");else if(p.layoutIdExitedTrigger)p=p.layoutIdExitedTrigger?.triggeringLayoutId?new wt(hj,p.layoutIdExitedTrigger.triggeringLayoutId,p.id):new N("Not able to create LayoutIdExitedTrigger");else if(p.layoutExitedForReasonTrigger)p.layoutExitedForReasonTrigger?.triggeringLayoutId&&p.layoutExitedForReasonTrigger?.layoutExitReason? (a=faZ(p.layoutExitedForReasonTrigger.layoutExitReason),p=a instanceof N?a:new h6(hj,p.layoutExitedForReasonTrigger.triggeringLayoutId,[a],p.id)):p=new N("Not able to create LayoutIdExitedForReasonTrigger");else if(p.onLayoutSelfExitRequestedTrigger)p=p.onLayoutSelfExitRequestedTrigger?.triggeringLayoutId?new w$(hj,p.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,p.id):new N("Not able to create OnLayoutSelfExitRequestedTrigger");else if(p.onNewPlaybackAfterContentVideoIdTrigger)p=p.onNewPlaybackAfterContentVideoIdTrigger? new y5(hj,a,p.id):new N("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else if(p.skipRequestedTrigger)p=p.skipRequestedTrigger?.triggeringLayoutId?new $C(hj,p.skipRequestedTrigger.triggeringLayoutId,p.id):new N("Not able to create SkipRequestedTrigger");else if(p.slotIdEnteredTrigger)p=p.slotIdEnteredTrigger?.triggeringSlotId?new aa(hj,p.slotIdEnteredTrigger.triggeringSlotId,p.id):new N("Not able to create SlotIdEnteredTrigger");else if(p.slotIdExitedTrigger)p=p.slotIdExitedTrigger?.triggeringSlotId? new lm(hj,p.slotIdExitedTrigger.triggeringSlotId,p.id):new N("Not able to create SkipRequestedTrigger");else if(p.surveySubmittedTrigger)p=p.surveySubmittedTrigger?.triggeringLayoutId?new PH(hj,p.surveySubmittedTrigger.triggeringLayoutId,p.id):new N("Not able to create SurveySubmittedTrigger");else if(p.mediaResumedTrigger)p=p.mediaResumedTrigger&&p.id?new pRA(p.id):new N("Not able to create MediaResumedTrigger");else if(p.closeRequestedTrigger)p=p.closeRequestedTrigger?.triggeringLayoutId?new Sc(hj, p.closeRequestedTrigger.triggeringLayoutId,p.id):new N("Not able to create CloseRequestedTrigger");else if(p.slotIdScheduledTrigger)p=p.slotIdScheduledTrigger?.triggeringSlotId?new mF(hj,p.slotIdScheduledTrigger.triggeringSlotId,p.id):new N("Not able to create SlotIdScheduledTrigger");else if(p.mediaTimeRangeTrigger){var y=Number(p.mediaTimeRangeTrigger?.offsetStartMilliseconds),S=Number(p.mediaTimeRangeTrigger?.offsetEndMilliseconds);isFinite(y)&&isFinite(S)?(S===-1&&(S=l),l=y>S?new N("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.", {offsetStartMs:y,offsetEndMs:S},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",S===l&&y-500<=S):new ft(y,S),p=l instanceof N?l:new zY(hj,a,l,!1,p.id)):p=new N("Not able to create MediaTimeRangeTrigger")}else p=p.contentVideoIdEndedTrigger?p.contentVideoIdEndedTrigger?new Aj(hj,a,!1,p.id):new N("Not able to create ContentVideoIdEndedTrigger"):p.layoutIdEnteredTrigger?p.layoutIdEnteredTrigger?.triggeringLayoutId?new UB(hj,p.layoutIdEnteredTrigger.triggeringLayoutId,p.id):new N("Not able to create LayoutIdEnteredTrigger"): p.timeRelativeToLayoutEnterTrigger?p.timeRelativeToLayoutEnterTrigger?.triggeringLayoutId?new g9(hj,Number(p.timeRelativeToLayoutEnterTrigger.durationMs),p.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,p.id):new N("Not able to create TimeRelativeToLayoutEnterTrigger"):p.onDifferentLayoutIdEnteredTrigger?p.onDifferentLayoutIdEnteredTrigger?.triggeringLayoutId&&p.onDifferentLayoutIdEnteredTrigger.slotType&&p.onDifferentLayoutIdEnteredTrigger.layoutType?new $g(hj,p.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId, p.onDifferentLayoutIdEnteredTrigger.slotType,p.onDifferentLayoutIdEnteredTrigger.layoutType,p.id):new N("Not able to create CloseRequestedTrigger"):p.liveStreamBreakStartedTrigger?p.liveStreamBreakStartedTrigger&&p.id?new Y_(hj,p.id):new N("Not able to create LiveStreamBreakStartedTrigger"):p.liveStreamBreakEndedTrigger?p.liveStreamBreakEndedTrigger&&p.id?new qK(hj,p.id):new N("Not able to create LiveStreamBreakEndedTrigger"):p.liveStreamBreakScheduledDurationMatchedTrigger?p.liveStreamBreakScheduledDurationMatchedTrigger?.breakDurationMs? new dV(Number(p.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,p.id):new N("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger"):p.liveStreamBreakScheduledDurationNotMatchedTrigger?p.liveStreamBreakScheduledDurationNotMatchedTrigger?.breakDurationMs?new Jj(Number(p.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,p.id):new N("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger"):p.newSlotScheduledWithBreakDurationTrigger? p.newSlotScheduledWithBreakDurationTrigger?.breakDurationMs?new fq(Number(p.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,p.id):new N("Not able to create NewSlotScheduledWithBreakDurationTrigger"):p.prefetchCacheExpiredTrigger?new Jr(hj,p.id):new N("Not able to convert an AdsControlflowTrigger.");return p}; LDE=function(p){return new g.AU(function(a,l){p.length||a(void 0);let y;for(let S=0;S{a()}),p.moveTo((screen.width-800)/2,(screen.height-600)/2)}; g.io=function(p){if(!p.length)return"";try{if(pw)return pw.decode(p);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(p)}catch{}let a=0;const l=[],y=p.length;for(;a>10;S=56320|S&1023}aV[n++]=S}}S=String.fromCharCode.apply(String, aV);n<1024&&(S=S.substring(0,n));l.push(S)}return l.join("")}; gH=function(p){return q5(p.xo(),p.getCurrentTime())}; g.UO=function(p){return p.w7==="embedded"}; yuZ=function(p,a,l){p.VY=!0;l=new Xq(a,l);p.Y.A("html5_eme_loader_sync")&&(p.G.get(a)||p.G.set(a,l));l8A(p,l)}; Srr=function(p){p.pz.publish("initializingmode");p.V5(2);n5(p.Ne,"remote");n5(p.Ne,"miniplayer")}; Ux=function(p){const a={};p=p.split("\r\n");for(let l=0;l=5)return g.tX(Error("Failed to fetch attestation challenge after "+`${a} attempts; not retrying for 24h.`)),y1(p,864E5),{challenge:"", Po:{},ea:void 0,bgChallenge:void 0};const z=1E3*Math.pow(2,a-1)+Math.random()*1E3;return new Promise(d=>{g.wM(0,()=>{d(MX(p,a))},z)})}else try{const Z=await ROe(p,l); S=Z.YW;n=Z.LT;y=Z}catch(Z){return g.tX(Error("Failed to fetch attestation challenge after "+`${a} attempts; not retrying for 24h.`)),y1(p,864E5),{challenge:"",Po:{},ea:void 0,bgChallenge:void 0}}y1(p,(Number(n.t)||7200)*1E3);l=void 0;let V;if("c1a"in n&&y.bgChallenge){V=qCv(y.bgChallenge);try{await mXq(Td(),V)}catch(Z){return g.tX(Z),{challenge:S,Po:n,ea:l,bgChallenge:V}}try{l=new i9({challenge:V,o$:{LC:"aGIf"}}),await l.cn}catch(Z){g.tX(Z),l=void 0}}return{challenge:S,Po:n,ea:l,bgChallenge:V}}; G1r=function(p,a,l){const y=[];for(a=nGr(p,a);al)break}return y}; VSO=function(p,a){return a?[g.UY(a.info,p)]:[]}; oGM=function(p,a){p.L&&ZDM(p.L,a)}; Sf=function(p,a){p.L!==a&&(p.L=a,p.S=!0)}; zo$=function(p,a){const l=a/((p.D?135:90)-p.jl)*p.jl;g.VB(p.progressBar,"transform",`translateY(${-a}px)`);g.VB(p.Sl,"transform",`translateY(${-a}px)`);g.VB(p.Ps,"transform",`translateY(${l}px)`);p.Ps.style.height=`${a+l}px`;p.element.parentElement&&(p.element.parentElement.style.height=`${p.jl-l}px`)}; Bv=function(p){const a={},l=[],y=[];if(!p.data)return a;for(var S=0;S>>8&255}; nW=function(p,a){if(!p)throw new TypeError("Expected instream video ad renderer");if(!p.playerVars)throw new TypeError("Expected player vars in url encoded string");const l=cd(p.playerVars);var y=Number(l.length_seconds);if(isNaN(y))throw new TypeError("Expected valid length seconds in player vars");var S=Number(p.trimmedMaxNonSkippableAdDurationMs);y=isNaN(S)?y:Math.min(y,S/1E3);({instreamAdPlayerOverlayRenderer:S=null}=p.playerOverlay||{});const {playerOverlayLayoutRenderer:n=null}=p.playerOverlay|| {};var V=l.video_id;V||(V=(V=p.externalVideoId)?V:void 0);if(!V)throw new TypeError("Expected valid video id in IVAR");return{playerVars:l,videoLengthSeconds:a&&y===0?dbr[V]??y:y,instreamAdPlayerOverlayRenderer:S,playerOverlayLayoutRenderer:n,adVideoId:V,Xh:p.pings?xw(p.pings):new Map,N8:zc(p.pings)}}; I2=function(p){var a;if(!(a=ig&&p.va()&&p.FF()&&(p.drmProduct==="1"?!1:!0)&&p.A("html5_sabr_live_drm_streaming_xhr"))){a=p.va()&&!p.FF()&&ig;var l=p.va()&&p.latencyClass!=="ULTRALOW"&&!p.isLowLatencyLiveStream&&p.A("html5_sabr_live_normal_latency_streaming_xhr"),y=p.isLowLatencyLiveStream&&p.A("html5_sabr_live_low_latency_streaming_xhr");const S=p.latencyClass==="ULTRALOW"&&p.A("html5_sabr_live_ultra_low_latency_streaming_xhr");a=a&&(l||y||S)}l=a;a=p.enableServerStitchedDai&&l&&p.A("html5_enable_sabr_ssdai_streaming_xhr"); l=!p.enableServerStitchedDai&&l;y=p.va()&&!ig&&p.A("html5_enable_sabr_live_non_streaming_xhr");p=ig&&(p.nh()||b3(p)&&p.A("html5_enable_sabr_for_lifa_eligible_streams"));return a||l||y||p}; FYr=function(p){if(p.zW&&p.VI){var a=VK(p.AP,"od")==1,l=nP().L,y=p.VI,S=p.Je?p.Je.getName():"ns",n=p.Oc,V=new g.J9(fU(l),l.getHeight());l=p.l5();p={gB:S,Oc:n,Ng:V,l5:l,ph:p.eE.ph,xa:a};if(a=y.S){a.X();S=a.QY;n=S.j.L;var Z=V=null;S.D!=null&&n&&(V=S.U,V=new g.g3(V.left-n.left,V.top-n.top),Z=new g.J9(n.right-n.left,n.bottom-n.top));S=l?Math.max(S.L,S.X):S.L;l={gB:a.getName(),Oc:V,Ng:Z,l5:l,xa:!1,ph:S}}else l=null;l&&Gs$(y,p,l)}}; cuF=function(p,a,l){if(p.api.A("web_player_nitrate_promo_tooltip")&&p.api.getPresentingPlayerType(!0)!==2){var y=p.api.getVideoData(1);y?.tooltipRenderer&&(y=y.tooltipRenderer,p.hq||a&&(y.tooltipDisplayStrategy?.type==="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"||y.promoConfig?.promoId==="dtip-edu-player-iseecaptions"||y.promoConfig?.promoId==="dtip-edu-player-tc-m2")||(p.hq=new Buo(y,p.api),g.H(p,p.hq),g.g1(p.api,p.hq.element,9)),p.hq?.X(y,l))}}; qs$=function(p,a,l){p.L.has(a)||(p.L.add(a),p.params.FG.eb(a,{...l,p_ac:p.params.adCpn,p_isv:p.params.ZX&&p.params.n1}))}; hv=function(p){const a=mT(p,!0);var l=p.L.byteOffset+p.pos;l=new DataView(p.L.buffer,l,Math.min(a,p.L.buffer.byteLength-l));l=new UW(l,p.start+p.pos);p.pos+=a;return l}; g.Vo=function(){var p=g.mm.navigator;return p&&(p=p.userAgent)?p:""}; ci=async function(p,a){return p?(await g.lz(bG,a)).delete("databases",p):void 0}; ruf=function(p,a,l){let y=0;p=p.L.L.get(l);if(!p)return-1;for(const S of p){if(S.cpn===a)return y;y++}return-1}; gD=function(p,a,l){l!==void 0&&(Nb(p,a*8),Nb(p,l))}; D8h=function(p,a){a.subscribeCommand&&(p.subscribeCommand=a.subscribeCommand);a.unsubscribeCommand&&(p.unsubscribeCommand=a.unsubscribeCommand);a.addToWatchLaterCommand&&(p.addToWatchLaterCommand=a.addToWatchLaterCommand);a.removeFromWatchLaterCommand&&(p.removeFromWatchLaterCommand=a.removeFromWatchLaterCommand);a.getSharePanelCommand&&(p.getSharePanelCommand=a.getSharePanelCommand)}; wRM=function(p){return p.action==="END_LINEAR_AD"||p.action==="END_LINEAR_AD_PLACEMENT"}; g.MA=function(p){const a=[];let l=0;for(let y=0;y>6|192:((S&64512)==55296&&y+1>18|240,a[l++]=S>>12&63|128):a[l++]=S>>12|224,a[l++]=S>>6&63|128),a[l++]=S&63|128)}return a}; eF=function(p,a,l){return(l<0||l===p.D)&&!isNaN(p.G)?p.G:a}; nw=function(p,a){for(const l of p.listeners)a(l)}; P4M=function(p,a){By(p,2,a.hw,rx,3);By(p,3,a.innertubeRequest,btr,3);Ym(p,4,a.onesieUstreamerConfig);Ym(p,9,a.rp);By(p,10,a.Ci,$i,3);By(p,15,a.reloadPlaybackParams,$bE,3);jP(p,18,a.D6)}; g.WW=function(p){const a=p.length;if(a>0){const l=Array(a);for(let y=0;y{p.Y.A("html5_simplify_pings")?(p.L=p.QY,p.ZN=a(),p.zn=0,p.send()):ZW(p).then(l=>{var y=oV(p);y.cmt=y.len;y.lact="0";const S=a().toFixed(3);y.rt=Number(S).toString();y=g.Re(p.uri,y);p.Y.A("vss_through_gel_double")&&XRr(y);p.w7?(l==null&&(l={}),p.Ws?Li().sendAndWrite(y,l):Li().sendThenWrite(y,l)):l?g.$Y(y,l):g.Fj(y)})}}; g.Lu=function(p){if(!p.playerResponse||!p.playerResponse.annotations)return null;for(const a of p.playerResponse.annotations)if(a.playerAnnotationsExpandedRenderer&&a.playerAnnotationsExpandedRenderer.featuredChannel)return a.playerAnnotationsExpandedRenderer;return null}; RS=function(p,a,l){a&&(a=p.GR({playerType:l}))&&a===p.jb()&&(a.getVideoData().A$=!0)}; z$=function(p){if(p&&p.simpleText)return p.simpleText;let a="";if(p&&p.runs)for(let l=0;l{p.G++}); return!0}; I8o=function(p,a,l){var y=p.videoId,S=g.dT(p),n=p.O(),V={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ls()),referer:document.location.toString(),signatureTimestamp:20354},Z=g.ik();p.isAutonav&&(V.autonav=!0);Z.Zy(141)&&(V.autonavState=Z.Zy(140)?"STATE_OFF":"STATE_ON");V.autoCaptionsDefaultOn=Z.Zy(66);EGr(p)&&(V.autoplay=!0);n.K&&p.cycToken&&(V.cycToken=p.cycToken);n.enablePrivacyFilter&&(V.enablePrivacyFilter=!0);p.isFling&&(V.fling=!0);var z=p.forceAdsUrl;if(z){Z={};var d=[];z=z.split(","); for(var G of z){var B=G.split("|");B.length!==3||G.includes("=")||(B[0]=`breaktype=${B[0]}`,B[1]=`offset=${B[1]}`,B[2]=`url=${B[2]}`);z={adtype:"video_ad"};for(var c of B){const [m,...M]=c.split("=");z[m]=M.join("=")}B=z.url;const v=z.presetad,I=z.viralresponseurl,u=Number(z.campaignid);if(z.adtype==="in_display_ad")B&&(Z.url=B),v&&(Z.presetAd=v),I&&(Z.viralAdResponseUrl=I),u&&(Z.viralCampaignId=String(u));else if(z.adtype==="video_ad"){const m={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(z.offset)|| 0)}};if(z=C4M[z.breaktype])m.breakType=z;B&&(m.url=B);v&&(m.presetAd=v);I&&(m.viralAdResponseUrl=I);u&&(m.viralCampaignId=String(u));d.push(m)}}V.forceAdParameters={videoAds:d,inDisplayAd:Z}}p.isInlinePlaybackNoAd&&(V.isInlinePlaybackNoAd=!0);p.isLivingRoomDeeplink&&(V.isLivingRoomDeeplink=!0);G=p.WU;if(G!=null){G={startWalltime:String(G)};if(c=p.nH)G.manifestDuration=String(c||14400);V.liveContext=G}p.mutedAutoplay&&(V.mutedAutoplay=!0,G=n.getWebPlayerContextConfig(),G?.embedsHostFlags?.allowMutedAutoplayDurationMode&& G?.embedsHostFlags?.allowMutedAutoplayDurationMode.includes(vG$[p.mutedAutoplayDurationMode])&&(V.mutedAutoplayDurationMode=vG$[p.mutedAutoplayDurationMode]));if(p.L1?0:p.A$)V.splay=!0;G=p.vnd;G===5&&(V.vnd=G);G={};if(c=p.isMdxPlayback)G.triggeredByMdx=c;if(c=p.GW)G.skippableAdsSupported=c.split(",").includes("ska");if(d=p.zf){c=p.tf;Z=[];for(var w of zzZ(d)){d=w.platform;d={applicationState:w.q6?"INACTIVE":"ACTIVE",clientFormFactor:Kdh[d]||"UNKNOWN_FORM_FACTOR",clientName:eoe[w.lw]||"UNKNOWN_INTERFACE", clientVersion:w.deviceVersion||"",platform:bDr[d]||"UNKNOWN_PLATFORM"};z={};if(c){var X=void 0;try{X=JSON.parse(c)}catch(v){g.tX(v)}X&&(z={params:[{key:"ms",value:X.ms}]},X.advertising_id&&(z.advertisingId=X.advertising_id),X.limit_ad_tracking!==void 0&&X.limit_ad_tracking!==null&&(z.limitAdTracking=X.limit_ad_tracking),d.osName=X.os_name,d.userAgent=X.user_agent,d.windowHeightPoints=X.window_height_points,d.windowWidthPoints=X.window_width_points)}Z.push({adSignalsInfo:z,remoteClient:d})}G.remoteContexts= Z}w=p.sourceContainerPlaylistId;X=p.serializedMdxMetadata;if(w||X)c={},w&&(c.mdxPlaybackContainerInfo={sourceContainerPlaylistId:w}),X&&(c.serializedMdxMetadata=X),G.mdxPlaybackSourceContext=c;V.mdxContext=G;w=a.width;w>0&&(V.playerWidthPixels=Math.round(w));if(a=a.height)V.playerHeightPixels=Math.round(a);l!==0&&(V.vis=l);if(l=n.widgetReferrer)V.widgetReferrer=l.substring(0,128);g.x3(n)&&V&&(V.ancestorOrigins=n.ancestorOrigins);p.defaultActiveSourceVideoId&&(V.compositeVideoContext={defaultActiveSourceVideoId:p.defaultActiveSourceVideoId}); if(n=n.getWebPlayerContextConfig())V.encryptedHostFlags=n.encryptedHostFlags;y={videoId:y,context:S,playbackContext:{contentPlaybackContext:V}};p.Q5&&(y.playbackContext.reloadPlaybackContext={reloadPlaybackParams:p.Q5?.reloadPlaybackParams});p.contentCheckOk&&(y.contentCheckOk=!0);if(S=p.clientPlaybackNonce)y.cpn=S;if(S=p.playerParams)y.params=S;if(S=p.playlistId)y.playlistId=S;p.racyCheckOk&&(y.racyCheckOk=!0);S=p.O();V=S.embedConfig;p.lQ&&S.A("embeds_enable_per_video_embed_config")?y.serializedThirdPartyEmbedConfig= p.lQ:V&&(y.serializedThirdPartyEmbedConfig=V);y.captionParams={};V=g.ik().Zy(65);p.deviceCaptionsOn!=null?y.captionParams.deviceCaptionsOn=p.deviceCaptionsOn:g.p8(S)&&(y.captionParams.deviceCaptionsOn=V!=null?!V:!1);p.u5&&(y.captionParams.deviceCaptionsLangPref=p.u5);p.mZ.length?y.captionParams.viewerSelectedCaptionLangs=p.mZ:g.p8(S)&&(V=g.F9(),V?.length&&(y.captionParams.viewerSelectedCaptionLangs=V));V=p.fetchType==="onesie"&&p.A("html5_onesie_attach_po_token");n=p.fetchType!=="onesie"&&p.A("html5_non_onesie_attach_po_token"); if(V||n)V=p.O(),V.Me&&(y.serviceIntegrityDimensions={},y.serviceIntegrityDimensions.poToken=V.Me);S.A("fetch_att_independently")&&(y.attestationRequest={omitBotguardData:!0});y.playbackContext||(y.playbackContext={});y.playbackContext.devicePlaybackCapabilities=xJq(p);y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&p.Xu("noVp9",{});return y}; ws=function(p,a){p.Qh[p.pending++]=a>>>8&255;p.Qh[p.pending++]=a&255}; Ror=function(p,a,l){const y=a.clientMetadata.t9("metadata_type_sodar_extension_data");if(y)try{mcv(l,y)}catch(S){Q("Unexpected error when loading Sodar",p,a,{error:S})}}; B1=function(p,a){a?p.C||(p.element.removeAttribute("aria-disabled"),p.C=new g.G$(p.progressBar,!0),p.api.A("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&p.C.subscribe("hoverstart",p.HG,p),p.C.subscribe("hovermove",p.kf,p),p.C.subscribe("hoverend",p.R7,p),p.C.subscribe("dragstart",p.Ao,p),p.C.subscribe("dragmove",p.GM,p),p.C.subscribe("dragend",p.vG,p),p.api&&p.api.A("delhi_modern_web_player")&&p.api.A("delhi_modern_web_player_cutout")&&(p.bf=new g.G$(p.progressBar, !0),p.bf.subscribe("hoverstart",()=>{p.Me=!0;mU(p)},p),p.bf.subscribe("hoverend",()=>{p.Me=!1; mU(p)},p)),p.g4=p.listen("keydown",p.TD)):p.C&&(p.element.setAttribute("aria-disabled","true"),p.Kt(p.g4),p.C.cancel(),p.C.dispose(),p.C=null)}; kk=function(p,a,l){if(!g.nU("web_csi_action_sampling_enabled")||!AJ(l).actionDisabled){var y=hJ(l),S;if(S=g.nU("web_csi_debug_sample_enabled")&&y){Fh().resolve(EV(C2))?.Q8()&&!umA&&(umA=!0,kk("gcfl",(0,g.h)(),l));S=Fh().resolve(EV(C2))?.Q8()?.loggingHotConfig?.csiConfig?.debugSampleWeight||0;var n;if(n=S!==0)b:{n=f_F();if(n.length>0)for(let Z=0;Z{const n=S.objectStore("LogsRequestsStore");return n.get(p).then(V=>V?(V.status="NEW",l&&(V.sendCount+=1),y!==void 0&&(V.options.compress=y),g.zg(n,V).then(()=>V)):g.qH.resolve(void 0))})}; g.MSM=function(p){const a=p.O();return a.Ro&&!a.U&&g.x3(a)?p.isEmbedsShortsMode()?(p=p.w3(),Math.min(p.width,p.height)>=315):!p.m7():!1}; saZ=function(p,a){if(p.x3){const l=p.S.get(p.x3);if(l&&l.start-200<=a&&l.end+200>=a)return l}for(const l of p.S.values())if(l.start<=a&&l.end>=a)return l}; mbM=function(){const p=["metadata_type_client_forecasting_ad_renderer"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_FORECASTING"]}}; JOM=function(p,a){if(!p.j){a=zl(142,a);C$();var l;P1.visibilityState?l="visibilitychange":P1.mozVisibilityState?l="mozvisibilitychange":P1.webkitVisibilityState&&(l="webkitvisibilitychange");l&&Lw(P1,l,a,{capture:!1})&&(p.j=a)}}; tSh=function(p,a){p=`https://${a.L()}/initplayback`+`?c=${FJ(p.Y)}`+"&owc=1";Xl(p,"pw",l=>{l.ht=a.S})}; j7o=function(p){return{hD:r3(p,1),aO:r3(p,2)}}; tbE=function(p,a=p.schedule,l){p=B5(a,!0);l=l||!!ym()&&p>1572864;return"DecompressionStream"in window||!l}; Vb=function(p,a,l){const y={};for(const S in a.L){if(!a.L.hasOwnProperty(S))continue;const n=a.L[S].info;if(p.G&&n.video&&n.video.qualityOrdinal=0?p-a:0}; Dbo=function(p,a){jP(p,1,a.cpn);gD(p,2,a.sequenceNumber);jP(p,3,a.serializedWatchEndpointLoggingContext);if(a.decoderInfo)for(var l=0;l{Fl(p,y)})}; Cw=function(p,a,l,y,S,n,V=!0,Z){uG(l)&&EK(S,0,null)&&(!ph(p,"impression")&&Z&&Z(),p.O6("impression"));ph(p,"impression")&&(l.j5(4)&&!l.j5(2)&&p.Fb("pause"),qJ(l,4)<0&&!(qJ(l,2)<0)&&p.Fb("resume"),l.j5(16)&&S>=.5&&p.Fb("seek"),V&&l.j5(2)&&je(p,l.state,a,y,S,n))}; CF=function(p){if(!isNaN(p.Bs))return p.Bs;var a=p.L;for(var l in a){var y=a[l].index;if(y.isLoaded()&&!eg(a[l].info.mimeType)){a=0;for(l=y.xT();l<=y.VL();l++)a+=y.getDuration(l);a/=y.Ll();a=Math.round(a/.5)*.5;y.Ll()>10&&(p.Bs=a);return a}if(p.isLive&&(y=a[l],y.VZ))return y.VZ}return NaN}; ab=function(p,a){if(!p)return NaN;a=Jh(p,a);return a>=0?p.end(a):NaN}; Tue=function(p){let a=null;p.L!=null&&(a=[p.L.serviceEndpoint,p.L.navigationEndpoint].filter(l=>l!=null),p.L.command&&(a=a.concat(p.L.command))); return a||[]}; Nur=function(p){p.S&&(p.S.dispose(),p.S=void 0)}; Ubr=function(p){p.menuItem||(p.menuItem=new s7v(p.api,a=>{p.setVoiceBoostUserPreference(a)},()=>p.getVoiceBoostUserPreference(),()=>p.hasVoiceBoostAudioTrack(),()=>p.getVoiceBoostState()),g.H(p,p.menuItem))}; v1=function(p){p.Rc=[];p.Hs();p.B.RX("featured_product")}; hoq=function(){Q7h=Kw=ef=ml=null}; g.To=function(p,a){g.xe(p,"addEmbedsConversionTrackingParams",[a])}; Db=function(p=0){return p===0?"ROOT_VE_TYPE":`${"ROOT_VE_TYPE"}.${p}`}; gGv=function(p){return new Promise((a,l)=>{const y=g.HA("SCRIPT"),S=Aur(p);g.UZ(y,S);y.onload=()=>{g.hZ(y);a()}; y.onerror=()=>{g.hZ(y);l(Error("EWLS"))}; (g.Uk("HEAD")[0]||document.documentElement).appendChild(y)})}; Yrv=function(p){p.suggestedActions={};p.B.RX("suggested_action_button_visible")}; JuF=function(p,a,l){p=qrM(p);a=a?g.mW(a):"";l=l||5;Jp()&&g.b7(p,a,l)}; Jw=function(p,a){for(const l of p.L.values())for(const y of l)if(y.layoutId===a)return y;Q("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.o4(a)),layoutId:a})}; g.u7=function(p){const a=new IV;return a.isAvailable()?p?new RV(a,p):a:null}; Ip=function(p,a,l,y,S){this.uw=p;this.oB=a;this.ZM=l;this.AI=y;this.XD=S;this.Is=p&&p.length}; f8r=function(){return g.Wk("yt-player-audio-quality-setting")??2}; FvF=function(p,a,l){return a?a.map(y=>y instanceof OK?Oq(p,y.key,l,!0):Oq(p,y,l)):[]}; S$=function(p,a,l,y,S,n,V,Z,z){if((p-6|30)=p){if(l===r[84]){var d;(d=y[r[2]](r[54]))>=0?(l=`cmo=${y[r[38]](0,d)}`,y=y[r[38]](d+1)):(d=y[r[2]](r[26]))>=0&&(l=`cmo=${y[r[38]](0,d)}`,y=y[r[38]](d+3))}a[l]=y}if((p-9&7)==1){if(!(KY(a[r[18]])||a[r[18]][r[41]](r[42])||a[r[18]][r[41]](r[71])||a[r[18]][r[41]](r[85])))throw new g.Qm(r[51],a[r[18]]);d=g.A6(a[r[18]]);a[r[57]]=d[r[82]];a[r[28]]=d[r[7]]+(d[r[28]]!=null?`:${d[r[28]]}`:r[27]);var G=d[r[18]];if(G[r[41]](r[3]))a[r[14]]=r[3],G=G[r[38]](14); else if(G[r[41]](r[21]))a[r[14]]=r[21],G=G[r[38]](13);else if(G[r[41]](r[17])){var B=S$(3,G,a);G=B[0];a=B[1]}else a[r[14]]=G,G=r[27];B=a[r[7]];a[r[7]]=tZ(15,G);Object[r[65]](a[r[7]],gC(4,d[r[11]][r[22]]()));Object[r[65]](a[r[7]],B);a[r[7]][r[16]]===r[24]&&(delete a[r[7]][r[16]],a[r[14]]+=r[88]);a[r[18]]=r[27];a[r[31]]=r[27];a[r[11]]&&(d=gG(6,a),a=d[0]);var c=[a]}(p>>2&11)>=7&&(p>>1&5)<4&&(c=l(y,S,n,V,Z,z));(p-2|18)>=p&&p-7<<10&&G>0?(l[r[14]]=a[r[38]](0, G),a=a[r[38]](G+1)):(l[r[14]]=a,a=r[27]),c=[a,l]);return c}; pe$=function(p){return g.AF(p.L,a=>!!a.info.video&&a.info.video.isHdr())}; aLr=function(){return{e5:["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"],FX:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}}; j0=function(p){if(p.isManifestless)for(const a in p.L)p.L[a].index.segments=[]}; lLO=function(){let p=document.queryCommandSupported&&document.queryCommandSupported("copy");e$("Chromium")>=43&&(p=!0);e$("Firefox")<=40&&(p=!1);return p}; ypq=function(p,a){let l;a&&(l=g.y_(p.j.S,y=>y.id===a)); l||(l=g.y_(p.j.S,y=>!!y.rG?.isDefault),a&&p.Xu("iaf",{id:a, sid:l?.id}));return l}; qr=function(p,a,l){a=a.layoutId;const y=[];for(const n of p.Ag.values())if(n.trigger instanceof w$){var S;if(S=n.trigger.layoutId===a){S=l;const V=Sdv.get(n.category);S=V?V===S:!1}S&&y.push(n)}y.length&&p1(p.L(),y)}; VOv=function(p){const a={},l={};for(const n of p){var y=n.split("|");if(n.match(g.nth))if(p=Number(y.pop()),isNaN(p))l[n]="?";else{var S=y.join("|");(y=a[S])?(S=y[y.length-1],p===S.end+1?S.end=p:y.push({start:p,end:p})):a[S]=[{start:p,end:p}]}else l[n]="?"}for(const n of Object.keys(a))l[n]=a[n].map(V=>`${V.start}-${V.end}`).join(","); return l}; Fl=function(p,a){if(p.HW()===p.VT.length-1)p.yv++,qr(p.Id,p.layout,"normal"),p.vX()||jS(p.sC.get());else a:{if(p.HW()===-1&&(p.callback.VQ(p.slot,p.layout),a>0)){Q("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",p.slot,p.layout,{indexToPlay:a,layoutId:p.layout.layoutId});break a}p.yv=a;a=p.Vr();if(p.HW()>0&&!p.vX()){var l=p.sC.get();l.S=!1;const y={};l.L&&l.videoId&&(y.cttAuthInfo={token:l.L,videoId:l.videoId});JM("ad_to_ad",y)}l=g.K(a.ZV().renderingContent,oZ);!l?.isEligibleToBeSkippedWhenNoEngagementOnLayoutId|| (p.EY.get().fT.get(l.isEligibleToBeSkippedWhenNoEngagementOnLayoutId)??!1)?p.G0(a):Fl(p,p.HW()+1)}}; N$=function(p){const a=[];g.yo(p,(l,y)=>{const S=g.qj(y);g.Ir(Array.isArray(l)?l:[l],n=>{n==""?a.push(S):a.push(`${S}=${g.qj(n)}`)})}); return a.join("&")}; otA=function(p){return zzZ(p).map(({lw:a,deviceVersion:l,q6:y})=>({deviceInterface:Zsv[eoe[a]]||0,deviceVersion:l||"",isSleeping:y}))}; zgh=function(p){const {offsetStartMilliseconds:a,offsetEndMilliseconds:l}=p.adTimeOffset||{};p=Number(a);if(isNaN(p))throw new TypeError("Expected valid start offset");const y=Number(l);if(isNaN(y))throw new TypeError("Expected valid end offset");return{i8:p,qC:y}}; d3o=function(p,a){const l={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(p.A("html5_enable_vp9_fairplay")&&lf(a))return l.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),l.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[l];u8(a)&&(l.initDataTypes=["keyids","cenc"]);for(const S of Object.keys(p.L[a.flavor])){var y=S.indexOf("audio/")===0;const n=y?l.audioCapabilities:l.videoCapabilities;a.flavor!=="widevine"||p.X?n.push({contentType:S}): y?n.push({contentType:S,robustness:"SW_SECURE_CRYPTO"}):(g.TF&&g.IW("windows nt")&&!p.A("html5_drm_enable_moho")||n.push({contentType:S,robustness:"HW_SECURE_ALL"}),y=S,p.g7.X.U&&S.includes("vp09")&&(y=S+"; experimental=allowed"),n.push({contentType:y,robustness:"SW_SECURE_DECODE"}),FJ(p.g7)==="MWEB"&&(lY()||oJ())&&(p.Xu("swcrypto",{}),n.push({contentType:S,robustness:"SW_SECURE_CRYPTO"})))}return[l]}; zX=function(p){return g.iF(GxA,p)>=0}; g.Bqv=function(p){if(p.ZT)return null;let a=p.Se;a||(a=p.playerResponse&&p.playerResponse.endscreen&&p.playerResponse.endscreen.endscreenUrlRenderer&&p.playerResponse.endscreen.endscreenUrlRenderer.url);return a||null}; Imf=function(p){a:{var a=p.Ws;if(p.C>0){var l=Math.floor((0,g.h)()/1E4);if(l===a.RF){if(a.k0>=p.C){a.k0===p.C&&(l={reason:"toomanyrequests"},l.limit=a.k0,p.loader.handleError("player.exception",l),a.k0+=1);a=!1;break a}}else a.RF=l,a.k0=0}a=!0}if(!a||p.loader.isSuspended&&p.loader.Ji)return!1;if(p.UO&&(0,g.h)()0&&(!p.policy.UO||p.L.length!==1||!p.L[0].cV())||!p.r7.UO?.G(p.policy,p.j,p.loader.Gj())||CC(p.audioTrack)&&CC(p.videoTrack))return!1;if(p.policy.S)if(p.policy.D){if(p.K?.UO())return!1}else{a= !1;if(p.Sl.S===2)a=!0;else if(p.Sl.S===3){lb(p);p.loader.oo();var y=aH(p.audioTrack,p.loader.isSeeking()).WZ;l=aH(p.videoTrack,p.loader.isSeeking()).WZ;var S=p.loader.getCurrentTime()||0;y=OA(p,y,S);l=OA(p,l,S);l=Math.min(y,l);S=p.Sl;l>=S.X?(S.Xu("sdai",{haltrq:l,est:S.X}),l=!0):l=!1;l&&(a=!0)}a&&p.policy.G&&p.loader.Xu("sabrcrq",{waitad:1});if(a)return!1}p.policy.L1&&(p.jl=Rl(p,p.audioTrack),p.w7=Rl(p,p.videoTrack));if(!p.S)return p.policy.G&&p.loader.Xu("sabrcrq",{nopolicy:1}),!0;if(p.Lz.gM())return p.policy.G&& p.loader.Xu("sabrcrq",{utc:1}),!0;if(p.U.G)return p.policy.G&&p.loader.Xu("sabrcrq",{audio:1}),!0;if(!p.S.targetAudioReadaheadMs||!p.S.targetVideoReadaheadMs)return p.policy.G&&p.loader.Xu("sabrcrq",{noreadahead:1}),!0;if(p.policy.X&&p.loader.Cw())return p.policy.G&&p.loader.Xu("sabrcrq",{seekToHead:1}),!0;a=Math.min(fu(p.loader,p.audioTrack)*1E3,p.S.targetAudioReadaheadMs);l=Math.min(fu(p.loader,p.videoTrack)*1E3,p.S.targetVideoReadaheadMs);S=Math.min(a,l);y=p.Lz.getCurrentTime()*1E3;const {jq:n, CJ:V}=cpA(p);if(p.policy.L1){var Z=kj(p.jl.WZ,y);var z=kj(p.w7.WZ,y)}else Z=n,z=V;const {y3:d,f5:G,jq:B,CJ:c}={y3:Z,f5:z,jq:n,CJ:V};Z=drpA(p)):p.jE()||(p.S=p.mK()))}; we$=function(p,a){p.B.setOption("captions","sampleSubtitles",a)}; bH=function(p){if(!p.nextVideo||!p.policy.j)if(p.L.isLocked())p.nextVideo=p.L.L<=360?p.r7.L[p.j[0].id]:p.r7.L[g.V$(p.j).id];else{for(var a=Math.min(p.K,p.j.length-1),l=W3(p.Sl),y=H3(p,p.S.info),S=l/p.policy.Sl-y;a>0&&!(H3(p,p.j[a])<=S);a--);for(l=l/p.policy.C-y;a=l);a++);p.nextVideo=p.r7.L[p.j[a].id];p.K=a}}; buo=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v,I,u,m){if(!lq(l))return new N("Invalid PlayerBytesAdLayoutRenderer");const M=yC(l);if(M instanceof N)return M;V={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,qO:V};a:{const cE=l.adLayoutMetadata.layoutId,FO=g.K(l.renderingContent,ST);if(FO&&We(FO)){var D=[];if(w)D.push(new GL(Fz(a)));else{b:{a=cE;for($h of Z){Z=ir$($h.renderer)||[];for(var A of Z)if(A.associatedPlayerBytesLayoutId===a){A.associatedPlayerBytesLayoutId?(Z= A.playerOverlay,a=Z!==void 0&&Z.playerOverlayLayoutRenderer!==void 0&&Z.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&Z.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,Z=Z!==void 0&&Z.instreamAdPlayerOverlayRenderer!==void 0&&Z.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&Z.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||a):Z=!1;var $h=Z?{instreamVideoAdRenderer:A,adPlacementConfig:$h.config.adPlacementConfig}:new N("Invalid InPlayer shim");break b}}$h=new N("Not able to find associated InPlayer slot")}if($h instanceof N){n=$h;break a}A=$h.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;Z=$h.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;a=A?.inPlayerSlotId??Z?.inPlayerSlotId;const CA=A?.inPlayerLayoutId??Z?.inPlayerLayoutId;if(a===void 0){n=new N("InPlayer shim slot id is undefined");break a}if(CA===void 0){n=new N("InPlayer shim layout id is undefined");break a}D.push(new YK(CA),new $3F(a),new w9(S.O9.adPodIndex),new GL($h.adPlacementConfig));A&&D.push(new PF(A));Z&&D.push(new Lq(Z))}D.push(new x_(S.O9), new XP(FO.externalVideoId),new cF(z),new cH({impressionCommands:FO.impressionCommands,abandonCommands:FO.onAbandonCommands,completeCommands:FO.completeCommands,progressCommands:FO.adVideoProgressCommands}),new r9(S.bZ),new $_({current:null}),new d_(S.Ek.z2),new oL(zc(FO.pings)),new qL(S.O9.adPodIndex));m&&D.push(new Iw(m));(S=fqM(cE,c))&&D.push(new Plq(S));n&&D.push(new Lj$(n.bZ));FO.adNextParams&&D.push(new H1(FO.adNextParams));FO.clickthroughEndpoint&&D.push(new DW(FO.clickthroughEndpoint));FO.legacyInfoCardVastExtension&& D.push(new Xeo(FO.legacyInfoCardVastExtension));FO.sodarExtensionData&&D.push(new FP(FO.sodarExtensionData));u&&FO.adPodSkipTarget&&FO.adPodSkipTarget>0&&(D.push(u),D.push(new f9(FO.adPodSkipTarget)));(n=d.get(FO.externalVideoId))&&D.push(new i7(n));n=D}else n=new N("Invalid vod media renderer")}if(n instanceof N)return n;p={...V,...y,Xh:M,renderingContent:l.renderingContent,clientMetadata:new L0(n),ao:Yv(G,p)(V),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData};l=g.K(l.renderingContent, ST);if(!l||!We(l))return new N("Invalid meida renderer");B=A5(B,l.externalVideoId);B.instreamVideoAdRenderer=l;B.Za="AD_PLACEMENT_KIND_START";return w?(z=Zd(c,p,z,v,G,I,X,u,!1),z instanceof N?z:fqM(p.layoutId,c)&&z?{layout:{...p,clientMetadata:new L0(n.concat(new x3q(z)))}}:{layout:p,ZI:z}):{layout:p}}; T$=function(p,a){var l=p.j.get(a);if(l)return l;l=p.levels.length;for(let y=0;y=a)return p.j.set(a,y),y;p.j.set(a,l-1);return l-1}; sK=function(p,a,l){const {N8:y,HT:S,listener:n,Dj:V,k$:Z=!1}=l;if(p.L.has(a))Q("Unexpected registration of layout in LidarApi");else{if(V){if(p.S.has(V))return;p.S.add(V)}p.L.set(a,n);gB(QH().AP,"fmd",1);Fjo(ND(s1),y);var z=Z?a:void 0;J_h(hm(),a,{m2:()=>{if(!S)return{};const d=p.B.getPresentingPlayerType(!0);return p.B.getVideoData(d)?.isAd()?{currentTime:p.sO.get().getCurrentTimeSec(d,!1,z),duration:S,isPlaying:N1(p.sO.get(),d).isPlaying(),isVpaid:!1,isYouTube:!0,volume:p.sO.get().isMuted()?0:p.sO.get().getVolume()/ 100}:{}}})}}; Eto=function(p,a){if(!p)return!1;var l=g.K(p,yYe)?.signal;if(l&&a.Tc)return!!a.Tc[l];if((l=g.K(p,S8f)?.request)&&a.Sy)return!!a.Sy[l];for(const y in p)if(a.CF[y])return!0;return!1}; Cle=function(p,a,l){const y=l.reason==="m"||l.reason==="s";p.policy.Lw&&UK&&g.i3&&(!y||l.L<1080)&&(a=a.filter(S=>S.video&&(!S.X||S.X.powerEfficient))); if(a.length>0)if(i8()){const S=cJE(p,a);a=a.filter(n=>!!n&&!!n.video&&n.mT===S[n.video.qualityOrdinal].mT)}else{const S=a[0]?.video?.qualityOrdinal; if(S){l=a.filter(V=>!!V&&!!V.video&&V.video.qualityOrdinal===S); const n=cJE(p,l)[S].mT;a=a.filter(V=>!!V&&!!V.video&&V.mT===n)}}return a}; P0=function(p,a){a.method="POST";a.postParams||(a.postParams={});return g.$Y(p,a)}; dl=function(p,a){var l=a.raw_watch_next_response;if(!l){var y=a.watch_next_response;y&&(l=JSON.parse(y))}if(l){p.Hs=l;(l=p.Hs.playerCueRangeSet)&&g.Q1(p,l);l=p.Hs.playerOverlays;if(l&&(l=l.playerOverlayRenderer)){if(y=l.autonavToggle)p.autoplaySwitchButtonRenderer=g.K(y,vtr),p.A("web_player_autonav_use_server_provided_state")&&p.mw()&&(p.autonavState=p.autoplaySwitchButtonRenderer.enabled?2:1);if(y=l.videoDetails){var S=y.embeddedPlayerOverlayVideoDetailsRenderer;if(y=y.playerOverlayVideoDetailsRenderer)y.title&& (a.title=g.mQ(y.title)),y.subtitle&&(a.subtitle=g.mQ(y.subtitle))}g.UO(p.g7)&&(p.tN=!!l.addToMenu);HPq(p,l.shareButton);l.startPosition&&l.endPosition&&(p.progressBarStartPosition=l.startPosition,p.progressBarEndPosition=l.endPosition);if(y=l.gatedActionsOverlayRenderer)p.L7=g.K(y,Kjf);if(y=g.K(p.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.infoPanel,TMr))p.y8=Number(y?.durationMs)||NaN,y?.infoPanelOverviewViewModel&&(p.Fu=y?.infoPanelOverviewViewModel),y?.infoPanelDetailsViewModel&& (p.lX=y?.infoPanelDetailsViewModel);p.showSeekingControls=!!l.showSeekingControls}if(l=p.getWatchNextResponse()?.contents?.twoColumnWatchNextResults)if(l=l.desktopOverlay&&g.K(l.desktopOverlay,ege))l.suppressShareButton&&(p.showShareButton=!1),l.suppressWatchLaterButton&&(p.tN=!1);S&&yI(p,a,S);l=Wj(0,a.autoplay_count);var n=p.getWatchNextResponse();y=n.contents?.twoColumnWatchNextResults;S=n.playerOverlays?.playerOverlayRenderer?.autoplay?.playerOverlayAutoplayRenderer;var V=bsA(p);if((n=n.contents?.singleColumnWatchNextResults)&& n.autoplay?.autoplay&&!n.playlist){const v=n.autoplay.autoplay.sets;n={};var Z=new iG(p.O()),z=null,d;if(v){for(var G of v)if((d=G.autoplayVideoRenderer)&&d.compactVideoRenderer){z=d.compactVideoRenderer;break}if(d=v[0].autoplayVideo)(G=d.clickTrackingParams)&&(n.itct=G),n.autonav="1",n.playnext=String(l)}else n.feature="related-auto";d=g.K(d,g.zK);if(z){Z.videoId=z.videoId;if(d=z.shortBylineText)Z.author=g.mQ(d);if(d=z.title)Z.title=g.mQ(d)}else d!=null&&d.videoId&&(Z.videoId=d.videoId);Z.Cr=n;p.suggestions= [];p.Xw=Z}if(V){d=[];for(var B of V){V=void 0;G=null;if(B.endScreenVideoRenderer){n=B.endScreenVideoRenderer;Z=n.title;G=new iG(p.O());G.videoId=n.videoId;G.lengthSeconds=n.lengthInSeconds||0;if(z=n.publishedTimeText)G.publishedTimeText=g.mQ(z);if(z=n.shortBylineText)G.author=g.mQ(z);if(z=n.shortViewCountText)G.shortViewCount=g.mQ(z);Z&&(G.title=g.mQ(Z),(Z=Z.accessibility)&&(Z=Z.accessibilityData)&&Z.label&&(G.ariaLabel=Z.label));if(z=n.navigationEndpoint)V=z.clickTrackingParams,Z=g.K(z,g.zK),z=g.K(z, g.aY),Z?G.ix=Z:z!=null&&(G.watchUrl=z.url);if(Z=n.thumbnailOverlays)for(var c of Z)if(Z=c.thumbnailOverlayTimeStatusRenderer)if(Z.style==="LIVE"){G.isLivePlayback=!0;break}else if(Z.style==="UPCOMING"){G.isUpcoming=!0;break}G.C=ZD(n.thumbnail)}else if(B.endScreenPlaylistRenderer){n=B.endScreenPlaylistRenderer;V=n.navigationEndpoint;if(!V)continue;G=g.K(V,g.zK);if(!G)continue;Z=G.videoId;G=new Na(p.O());G.playlistId=n.playlistId;G.playlistLength=Number(n.videoCount)||0;G.L=Z||null;G.videoId=Z;if(Z= n.title)G.title=g.mQ(Z);if(Z=n.shortBylineText)G.author=g.mQ(Z);V=V.clickTrackingParams;G.C=ZD(n.thumbnail)}G&&(V&&(G.sessionData={itct:V}),d.push(G))}p.suggestions=d}if(S){p.kR=!!S.preferImmediateRedirect;p.Ye=p.Ye||!!S.webShowNewAutonavCountdown;p.kf=p.kf||!!S.webShowBigThumbnailEndscreen;if(p.Ye||p.kf){c=S;y=y||null;B=new iG(p.O());B.videoId=c.videoId;if(d=c.videoTitle)B.title=g.mQ(d),(d=d.accessibility)&&(d=d.accessibilityData)&&d.label&&(B.ariaLabel=d.label);if(d=c.byline)B.author=g.mQ(d);if(d= c.publishedTimeText)B.publishedTimeText=g.mQ(d);if(d=c.shortViewCountText)B.shortViewCount=g.mQ(d);if(d=c.thumbnailOverlays)for(var w of d)if(d=w.thumbnailOverlayTimeStatusRenderer)if(d.style==="LIVE"){B.isLivePlayback=!0;break}else if(d.style==="UPCOMING"){B.isUpcoming=!0;break}else if(d.style==="DEFAULT"&&d.text){B.lengthText=g.mQ(d.text);(w=d.text.accessibility)&&(w=w.accessibilityData)&&w.label&&(B.Zs=w.label||"");break}B.C=ZD(c.background);if(w=c.nextButton)if(w=w.buttonRenderer)if(w=w.navigationEndpoint)if(w= g.K(w,g.zK))B.ix=w;c.topBadges&&(w=c.topBadges[0])&&(w=g.K(w,ILf))&&w.style==="BADGE_STYLE_TYPE_PREMIUM"&&(B.UT=!0);if(w=c.alternativeTitle)B.Sg=g.mQ(w);w=B;l={autonav:"1",playnext:String(l)};w.playlistId&&(l.autoplay="1");if(y){if(c=y.autoplay?.autoplay?.sets?.[0]?.autoplayVideo)if((y=c.clickTrackingParams)&&(l.itct=y),c=g.K(c,g.zK))w.Cb=c}else c&&(c=c.nextButton?.buttonRenderer?.navigationEndpoint?.clickTrackingParams)&&(l.itct=c);l.itct||(l.feature="related-auto");w.Cr=l;p.suggestions||(p.suggestions= []);p.Xw=B}S.countDownSecs!=null&&(p.yU=S.countDownSecs*1E3);S.countDownSecsForFullscreen!=null&&(p.Tv=S.countDownSecsForFullscreen>=0?S.countDownSecsForFullscreen*1E3:-1);p.A("web_autonav_color_transition")&&S.watchToWatchTransitionRenderer&&(p.watchToWatchTransitionRenderer=g.K(S.watchToWatchTransitionRenderer,Rg$))}if(S=bsA(p))S=S?.[0]?.endScreenVideoRenderer?.navigationEndpoint?.clickTrackingParams,w=p.N(),S&&w&&(w.sessionData={itct:S});p.Hs.currentVideoThumbnail&&(p.C=ZD(p.Hs.currentVideoThumbnail)); (S=p.Hs?.contents?.twoColumnWatchNextResults?.results?.results?.contents)&&S[0]&&(w=S[0].videoPrimaryInfoRenderer)&&w&&w.subtitle&&(p.cN=g.mQ(w.subtitle));S&&S[1]&&(S=S[1].videoSecondaryInfoRenderer?.owner?.videoOwnerRenderer?.thumbnail?.thumbnails)&&S.length&&(p.profilePicture=S[S.length-1].url);a=oC(a);if(S=p.getWatchNextResponse()?.onResponseReceivedEndpoints)for(var X of S)g.K(X,ha)&&(p.je=g.K(X,ha)),S=g.K(X,uFh),S?.entityKeys&&(p.Jv=S.entityKeys||[],S.visibleOnLoadKeys&&(p.visibleOnLoadKeys= S.visibleOnLoadKeys));p.A("web_key_moments_markers")&&(X=g.lR.getState().entities,S=g.Aa("visibility_override","markersVisibilityOverrideEntity"),X=H6(X,"markersVisibilityOverrideEntity",S),p.iT=X?.videoId===(p.videoId||a)&&X?.visibilityOverrideMarkersKey?X.visibilityOverrideMarkersKey:p.visibleOnLoadKeys,p.visibleOnLoadKeys=[...p.iT])}}; OsZ=function(p,a){switch(p.style){case gT.CHAPTER_MARKER:return a?8:5;case gT.AD_MARKER:return 6;case gT.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; kxO=function(p,a){p.yp.L===2&&a!==p.X_()&&Q("onClipEntered: unknown cpn",p.slot,p.layout,{cpn:a})}; xv=function(p,a,l,y){var S=a*2,n=l*2;return p[S]l)S=l;y+=a.length+1;return RK(p.slice(y,S!==-1?S:0))}; m3M=function(p,a,l,y,S){if(a&&typeof a==="object"){const n=V=>MOf(p,V,l,y,S); if(Gv(a))return a.then(n);if(dC(a))return HW(a,n)}return MOf(p,a,l,y,S)}; tOE=function(p){return(p?.messageRenderers||[]).find(a=>!!a.timeCounterRenderer)?.timeCounterRenderer||null}; pG=function(p){return p.j&&p.j.takeRecords?p.j.takeRecords():[]}; fJ=function(p,a){if(Em(p,a))return!!Cz(p)}; g3$=function(p){p.K||(p.K=Yj());try{return(new URL(p.K)).toString()}catch(a){return(new URL(p.K,AP().location.origin)).toString()}}; jDh=function(p){p.U.read().then(p.K,p.onError).then(void 0,xS)}; q1=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return p instanceof Promise?p:Promise.resolve()}; EC=function(p,a){for(const l of a.L)p.append(l)}; WY=function(p,a){var l=g.R("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=g.TX(window.location.href);y&&l.push(y);y=g.TX(p);if(g.tU(l,y)||!y&&ag(p,"/"))if(l=document.createElement("a"),g.Uz(l,p),p=l.href)if(p=nu(p),p=WjE(p))if(!a.csn&&(a.itct||a.ved)&&(a=Object.assign({csn:g.c2()},a)),S){var S=parseInt(S,10);isFinite(S)&&S>0&&JuF(p,a,S)}else JuF(p,a)}; Xa=function(p,a,l=0){let y=p.mimeType||"";var S=p.itag;var n=p.xtags;S=S?S.toString():"";n&&(S+=`;${n}`);n=S;if(eT(y)){var V=p.width||640;S=p.height||360;var Z=p.fps,z=p.qualityLabel;const v=p.qualityOrdinal,I=p.colorInfo,u=p.projectionType;var d;p.stereoLayout&&(d=HsO[p.stereoLayout]);const m=fVM(p)||void 0;var G;I?.primaries&&(G=D3e[I.primaries]||void 0);V=new bq(V,S,Z,u,d,void 0,z,v&&isE[v],m,G);y=Iy(y,V,Ry[p.itag||""]);uq&&(y+="; enableflushduringseek=true");O0&&(y+="; enableresetaudiodecoder=true")}let B; if(kK(y)){var c=p.audioSampleRate;d=p.audioTrack;c=new ML(c?+c:void 0,p.audioChannels,p.spatialAudioType,p.isDrc,p.loudnessDb,p.trackAbsoluteLoudnessLkfs,p.audioQuality||"AUDIO_QUALITY_UNKNOWN",p.isVb);d&&(G=d.displayName,S=d.id,d=d.audioIsDefault,G&&(B=new g.mG(G,S||"",!!d)))}let w;p.captionTrack&&(d=p.captionTrack.displayName,G=p.captionTrack.vssId,S=p.captionTrack.languageCode,Z=p.captionTrack.kind,z=p.captionTrack.id,d&&G&&S&&(w=new B$F(d,G,S,Z,p.xtags,z)));d=Number(p.bitrate)/8;G=Number(p.contentLength); S=Number(p.lastModified);z=p.drmFamilies;Z=p.type;p=Number(p.approxDurationMs);let X;if(a&&z){X={};for(const v of z)(z=Ja[v])&&(X[z]=a[z])}return new tn(n,y,{audio:c,video:V,rG:B,uf:X,Sb:d,Q7:l&&G?G/l:0,contentLength:G,lastModified:S,captionTrack:w,streamType:Z,approxDurationMs:p})}; mV=function(p,a){if(Em(p,a)){a=Cz(p);var l=jO(p.L,p.pos,a);p.pos+=a;return l}}; V0=function(){return g.R("EXPERIMENTS_TOKEN","")}; TqE=function(p,a){p=p.itag.toString();a!==null&&(p+=a.itag.toString());return p}; sDZ=function(p,a){const l=[];for(const y of a)a=Nqr[y]||0,p.L&&a>p.L||l.push(y);return l}; U3A=function(p){p.S.forEach(a=>{a.L.toggleButton(!1)}); P8(p.U,Bq(p),!0)}; kj=function(p,a){let l=0,y=-1;for(const S of p)if(!(S.startTimeMs+S.durationMsa||y>=0&&S.WG>y+1)break;l=Math.max(l,S.startTimeMs+S.durationMs);y=Math.max(y,S.XF)}return Math.max(0,l-a)}; J3=function(p,a){return gp(p,a||{},!1)}; g.OW=function(p,a,l){l?g.XX(p,a):g.BM(p,a)}; CT=function(p){switch(typeof p){case "bigint":return!0;case "number":return Cu(p);case "string":return QDr.test(p);default:return!1}}; Kt=function(p,a){p.L=a;var l=p.D.videoInfos;if(!p.L.isLocked()){const n=(0,g.h)();l=g.B4(l,function(V){if(V.Sb>this.policy.Sb)return!1;const Z=this.r7.L[V.id];return bx(this.X).get(V.id)>n||Z.gG.U>4||Z.ac>4?!1:this.w7.has(+V.itag)?!1:!0},p); hgr(p.X)&&(l=g.B4(l,V=>V.video.width<=854&&V.video.height<=480))}l.length||(l=p.D.videoInfos); let y=l;p.policy.w8&&(y=Cle(p,y,a));y=g.B4(y,a.j,a);if(p.L.isLocked()&&p.X.L){var S=g.y_(l,n=>n.id===p.X.L); S?y=[S]:Sf(p.X,"")}p.policy.w8||(y=Cle(p,y,a));y.length||(y=[l[0]]);y.sort((n,V)=>H3(p,n)-H3(p,V)); for(a=1;aS.video.width?(g.s6(y,a),a--):H3(p,l)*p.policy.C>H3(p,S)&&(g.s6(y,a-1),a--);a=y[y.length-1];p.ac=!!p.U&&!!p.U.info&&p.U.info.mT!==a.mT;p.j=y;p.Hs.clear();l=!1;for(S=0;S=1080&&(l=!0);Wwe(p.policy,a,p.r7.va)}; MT=function(p,a,l=!1){let y=0;l&&(a-=OOA(p,a)*Sm(p));for(const S of p.L){if(a>S.width)a-=S.width;else break;y++}return y===p.L.length?y-1:y}; Apo=function(p){p=p.L?.bannerData?.itemData;return!p?.affiliateDisclaimer&&p?.exclusivesData?.exclusiveOfferLabelText&&p?.exclusivesData?.expirationTimestampMs&&p?.exclusivesData?.exclusiveOfferCountdownText?!0:!1}; $QF=function(){function p(l){return a.call(p.src,p.listener,l)} const a=iWr;return p}; Jp$=function(p,a){p.K=a;let l=p.Hs;p.B.A("delhi_modern_web_player_icons")?p.S.d7("ytp-svg-volume-animation-big-ripple").setAttribute("transform",`translate(${EO}, ${Cl}) `+`scale(${a}) `+`translate(-${EO},-${Cl})`):a&&(l+=gto(YdM,qdr,a));p.N.setAttribute("d",l)}; aH$=function(p){var a=new fLM(p),l=-1,y=0;let S=0;for(;!y||!S;){const {id:n,size:V}=pqA(a);if(n<0)return;if(n===176){if(V!==2)return;y=a.L()}else if(n===186){if(V!==2)return;S=a.L()}n===374648427?l=a.L()+V:n!==408125543&&n!==174&&n!==224&&a.skip(V)}a=fw(p,0,l);l=new DataView(a.buffer);l.setUint16(y,3840);l.setUint16(S,2160);y=new F8([a]);EC(y,p);return y}; lHO=function(){if(g.nU("embeds_web_enable_cookie_detection_fix")){if(!g.mm.navigator.cookieEnabled)return!1}else if(!Fo.isEnabled())return!1;if(!Fo.isEmpty())return!0;g.nU("embeds_web_enable_cookie_detection_fix")?Fo.set("TESTCOOKIESENABLED","1",{Wr:60,Pp:"none",secure:!0}):Fo.set("TESTCOOKIESENABLED","1",{Wr:60});if(Fo.get("TESTCOOKIESENABLED")!=="1")return!1;Fo.remove("TESTCOOKIESENABLED");return!0}; aQ=function(p,a){p=p instanceof Uint8Array?new F8([p]):p;return a(new px(p))}; y6E=function(p){const a=p.P9.G9(),l=[];g.yo(p.L,(S,n)=>{l.push(`${n}=${S}`)}); if(!l.length)return a;const y=l.join("&");p=lF(23,p.P9)?"&":"?";return a+p+y}; ner=function(p,a,l){l=T$(p,l);for(let V,Z;l>=0;l--)if(V=p.levels[l],Z=GB(V,a),!V.isLoaded(Z)){var y=p,S=l,n=Z;const z=`${S}-${n}`;y.D.has(z)||(y.D.add(z),y.U.enqueue(S,{lz:S,C3:n}))}SFe(p)}; g.YH=function(p,a){return a?p.L.concat(p.S):p.L}; kY=function(p,a,l,y,S){var n=p.L.length,V=a.L-p.Bs*Sm(p),Z=l*V;l=MT(p,Z);var z=y*V;V=MT(p,z);S==="HOVER_PROGRESS"&&(V=MT(p,a.L*y,!0),z=a.L*y-OOA(p,a.L*y)*Sm(p));y=Math.max(Z-dxf(p,l),0);for(Z=l;Z{lo&&lo.isReady()?s8v(y,lo,n,V,{bypassNetworkless:!0},!0,oX(S)):n()})}}; Li=function(){let p=g.o1("yt.networklessRequestController.instance");p||(p=new z3A,g.eo("yt.networklessRequestController.instance",p),g.nU("networkless_logging")&&g.dt().then(a=>{p.PX=a;dMA(p);p.X.resolve();p.qr&&Math.random()<=p.sN&&p.PX&&Tbf(p.PX);g.nU("networkless_immediately_drop_sw_health_store")&&FnE(p)})); return p}; kJf=function(p,a,l={}){let y={};g.R("EOM_VISITOR_DATA")?y={"X-Goog-EOM-Visitor-Id":g.R("EOM_VISITOR_DATA")}:y={"X-Goog-Visitor-Id":l.visitorData||g.R("VISITOR_DATA","")};if(a&&a.includes("www.youtube-nocookie.com"))return y;a=l.xR||g.R("AUTHORIZATION");a||(p?a=`Bearer ${g.o1("gapi.auth.getToken")().access_token}`:(p=LPE().UK($n),g.nU("pageid_as_header_web")||delete p["X-Goog-PageId"],y={...y,...p}));a&&(y.Authorization=a);return y}; ZS=function(p,a,l,y,S,n,V,Z,z){return qa(l,aLr())||l.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.K(l.renderingContent,S3)!==void 0?new GTr(p,a,l,y,S,n,V,Z,z):qa(l,{e5:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],FX:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||l.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.K(l.renderingContent,nx)!==void 0? new BRf(p,a,l,y,S,n,V,Z,z):qa(l,$UM())||l.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.K(l.renderingContent,oZ)!==void 0?new c6E(p,a,l,y,n):qa(l,fNh())?new r6M(a,l,p,y,S,z):qa(l,{e5:["metadata_type_instream_ad_player_overlay_renderer"],FX:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new wqF(p,a,l,y,S,Z):l.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.K(l.renderingContent,Vv)!==void 0?new $Mq(p,a,l,y,n):null}; dB=function(p,a,l,y){if(!(l.L()||l.w7()||l.UO||!l.gG.G(p.policy,p.j,p.loader.Gj())||l.info.mT==="f"||p.policy.L)){if(y){y=p.X;var S=l.info;y=SB(y,S.video?y.policy.LH:y.policy.uK,S.Sb)}else y=0;y=l.G(y);p=YC(p,y);CJ(y)&&ZC(a,p);l.UO=!0}}; g.QD=function(p,a,l){if(oQ(a.O())&&a.getPresentingPlayerType()!==2){if(g.N_(l))return a.isFullscreen()&&!a.O().externalFullscreen&&a.toggleFullscreen(),l.preventDefault(),!0}else{const y=g.N_(l);y&&a.pauseVideo();g.LD(p,void 0,!0);y&&(g.Dv(p),l.preventDefault())}return!1}; dHo=async function(p,a){return a?await (new g.k_(p.S)).decrypt(a,p.L):a}; Tz=function(p,a){const l=jj(p);return l.defaultView&&l.defaultView.getComputedStyle&&(p=l.defaultView.getComputedStyle(p,null))?p[a]||p.getPropertyValue(a)||"":""}; zMh=function(p){switch(p){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return bF(p,"Unexpected cuepoint event")}}; qUF=function(p){const a={};g.nU("json_condensed_response")&&(a.prettyPrint="false");return p=J3(p,a)}; Lor=function(p){if(p.length===1)return p[0];var a=PJM.UNKNOWN_INTERFACE;if(a){a=new RegExp(a);for(var l of p)if(a.exec(l))return l}const y=[];Object.entries(PJM).forEach(([S,n])=>{"UNKNOWN_INTERFACE"!==S&&y.push(n)}); l=new RegExp(y.join("|"));p.sort((S,n)=>S.length-n.length); for(const S of p)if(!l.exec(S))return S;return p[0]}; N1=function(p,a){return p.B.getPlayerStateObject(a)}; zk=function(){const p=class{constructor(){throw Error();}};Object.setPrototypeOf(p,p.prototype);return p}; Hg=function(p){switch(p){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Ml=function(p,a,l,y){if(l)return Sk();l={};const S=OQ();for(const n of a)if(p.canPlayType(S,n.getInfo().mimeType)||y)if(a=n.L.video.quality,!l[a]||l[a].getInfo().bC())l[a]=n;p=[];l.auto&&p.push(l.auto);for(const n of dg)(y=l[n])&&p.push(y);return p.length?oW(p):Sk()}; Z0=function(p,a,l,y,S,n,V){return(Z,z)=>W1Z(p,z.slotId,Z,n,(d,G)=>{var B=z.layoutId;d=V(d);return qh(a,B,G,S,d,"LAYOUT_TYPE_SURVEY",[new L4E(l),y],l.adLayoutLoggingData)})}; Xqh=function(p){var a=CQr();if(a.values){a=a.values;const V={};for(var l of Object.keys(p.values)){a[l]&&p.S[l]&&(p.values[l]+=a[l]-p.S[l]);var y=p,S=y;if(!S.values[l]){var n=CQr();S.values=n.values||{};S.nw=n.halfLives||{};S.S=n.values?Object.assign({},n.values):{}}V[l]=y.values[l]&&y.nw[l]?y.values[l]/2**(y.L/y.nw[l]):0}p.S=V}l=p.nw;a={};a.values=p.S;a.halfLives=l;g.V2("yt-player-memory",a,2592E3)}; Gk=function(p){if(p.trendingOfferEntityKey){var a=g.lR.getState().entities;(a=H6(a,"trendingOfferEntity",p.trendingOfferEntityKey))?a.encodedSkuId!==p.L?.bannerData?.itemData?.encodedOfferSkuId?EX(p):(p.U.update({trendingOffer:`${a.shortLabel} \u2022 ${a.countLabel}`}),p.U.show(),p.banner.update({vendor:f5(p)})):EX(p)}else EX(p)}; Bz=function(p){const a=p.MO,l=p.EO;p=p.EQ;const y=new xM$,S={FG:new F4q(a.get(),l),EO:l};return{Io:new EeZ(l,p,a,S),context:S,zp:y}}; g.V2=function(p,a,l){var y=l&&l>0?l:0;l=y?Date.now()+y*1E3:0;if((y=y?g.O_.bO():g.O_.Ed())&&window.JSON){typeof a!=="string"&&(a=JSON.stringify(a,void 0));try{y.set(p,a,l)}catch(S){y.remove(p)}}}; b4=function(p){if(!PA(p)&&R4(p,p.DI[rD]|0))throw Error();}; Sk=function(p=null){const a=new jn;GAr(a,p);return a}; CJZ=function(p,a){DO(p);a=jT(p,a);return p.L.has(a)}; vef=function(p){p.isChecked=p.isChecked;p.d7("ytp-autonav-toggle-button").setAttribute("aria-checked",String(p.isChecked));const a=p.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";p.B.O().A("player_tooltip_data_title_killswitch")?p.update({title:a,label:a}):p.update({"data-tooltip-title":a,label:a});p.B.yT()}; kov=function(p,a,l,y=a.schedule){p.tN=a.A("html5_peak_shave");l.fetchType==="onesie"&&a.A("html5_disable_peak_shave_for_onesie")&&(p.tN=!1);const S=l.L?.j();if(TJ(l)){p.DF=!0;p.HG||(p.Em=!0);p.Ro=!0;p.s2=!0;p.qB=!0;if(l.latencyClass==="ULTRALOW"||l.latencyClass==="LOW"&&!a.A("html5_disable_low_pipeline"))p.g8=2,p.Aa=4;p.S8=l.defraggedFromSubfragments;g.aC(l)&&(p.NO=!1);p.n8=g.ei(a)}l.isAd()&&(p.q0=0,p.l_=0);p.d4=a.A("html5_ultra_low_latency_subsegment_readahead")&&l.latencyClass==="ULTRALOW";p.U= a.Mc();Fp()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(a.L.cmodel)&&!a.A("html5_disable_move_pssh_to_moov")&&S&&(p.PZ=!1);var n=0;a.A("html5_live_use_alternate_bandwidth_window_sizes")&&(n=y.policy.L,l.isLivePlayback&&(n=g.ak(a.experiments,l.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":l.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||n));y.S.j=TJ(l)?.5:0;if(!y.policy.S&&n){y=y.U;const d=Math.round(n*y.resolution); if(d!==y.L){n=Array(d);var V=Math.min(d,y.U?y.L:y.S),Z=y.S-V;Z<0&&(Z+=y.L);for(var z=0;z0&&(p.A$=l.g8));p.OY=l.zy;p.a7=Qz(a,{},l.U||void 0,cz(l));p.Tm=nz(l)&&(g.cf(a)||g.bS(a));Yc(l)&&(p.X=!0,p.oK=a.A("html5_estimate_live_partial_slice_duration"), g.ur(a)&&!g.VI()&&a.A("html5_force_audio_to_cover_video_keyframe")?p.Fu=!1:p.Fu=!0,a.A("html5_sabr_report_partial_segment_estimated_duration")&&(p.Mt=!0),p.L=!0,p.Jw=a.A("html5_disable_client_resume_policy_for_sabr"),p.hH=a.A("html5_trigger_loader_when_idle_network"),p.bQ=a.A("html5_sabr_parse_live_metadata_playback_boundaries"),p.rA=a.A("html5_consume_onesie_next_request_policy_for_sabr"),p.Jv=a.A("html5_sabr_report_next_ad_break_time"),p.W8=a.A("html5_log_high_res_buffer_timeline")&&a.Mc(),p.nH= a.A("html5_remove_stuck_slices_beyond_max_buffer_limits"),p.nC=a.A("html5_gapless_sabr_btl_last_slice")&&D6(l),p.In=a.A("html5_reset_last_appended_slice_on_seek")&&D6(l),TJ(l)?(p.G3=!0,p.iW=a.A("html5_disable_variability_tracker_for_live"),p.ac=!0,a.A("html5_simplified_backup_timeout_sabr_live")&&(p.R7=!0,p.Me=p.d8)):p.ZN=a.A("html5_probe_request_on_sabr_request_progress"),p.Av=a.A("html5_serve_start_seconds_seek_for_post_live_sabr"),p.Wy=a.A("html5_flush_index_on_updated_timestamp_offset"),p.UO= Yc(l),p.Z1=a.A("html5_ignore_partial_segment_from_live_readahead"),a.A("html5_include_partial_segment_for_jumbo_ll")&&im(l)&&(p.Z1=!1),p.Y0=a.A("html5_use_non_active_broadcast_for_post_live"),p.Ws=a.A("html5_use_centralized_player_time"),p.Ha=a.A("html5_log_centralized_player_time"),p.zy=a.A("html5_consume_onesie_sabr_seek"),p.N=a.A("html5_enable_sabr_seek_loader_refactor"),p.DK=g.ak(a.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),p.Nj=a.A("html5_update_segment_start_time_from_media_header"), l.enableServerStitchedDai&&(p.S=!0,p.cA=a.A("html5_reset_server_stitch_state_for_non_sabr_seek"),p.uQ=a.A("html5_remove_ssdai_append_pause")&&!l.nh(),p.dG=a.A("html5_ssdai_log_ssevt_in_loader")||a.A("html5_ssdai_log_ssevt_in_loader_200ms")||a.A("html5_ssdai_log_ssevt_in_loader_timers")||a.A("html5_ssdai_log_ssevt_in_loader_cuerange"),a.A("html5_ssdai_log_ssevt_in_loader_timers")?p.Ps=1:a.A("html5_ssdai_log_ssevt_in_loader_200ms")?p.Ps=3:a.A("html5_ssdai_log_ssevt_in_loader_cuerange")&&(p.Ps=0)),p.Gw= a.Mc()||l.nh(),p.lQ=l.va()&&a.A("html5_prebuffer_instream_media_live")&&a.A("html5_report_prefetch_requests"),p.s1=!l.va()&&a.A("html5_prebuffer_instream_media_vod")&&a.A("html5_report_prefetch_requests"));p.ir=g.K4Z(l)}; x4o=function(p=()=>({})){var a=x2; eZ.ZG="av-js";rg.L=.01;e3v([l=>{var y=QH(),S={bin:y.S,type:"error"};y=Xe(y.AP);if(!a.U){var n=bn.document,V=dd>=0?Date.now()-cg-dd:-1;const G=Date.now()-cg;a.L.Jr==-1&&(V=G);const B=nP(),c=QH(),w=Xe(c.AP),X=pj();try{if(X.length>0){var Z=B.L;Z&&(w.bs=[fU(Z),Z.getHeight()]);var z=B.X;z&&(w.ps=[z.width,z.height]);bn.screen&&(w.scs=[bn.screen.width,bn.screen.height])}else w.url=encodeURIComponent(bn.location.href.substring(0,512)),n.referrer&&(w.referrer=encodeURIComponent(n.referrer.substring(0,512))); w.tt=V;w.pt=dd;w.bin=c.S;bn.google_osd_load_pub_page_exp!==void 0&&(w.olpp=bn.google_osd_load_pub_page_exp);w.deb=[1,a.L.sX,a.L.Ig,a.L.MC,a.L.Jr,0,a.S.S,a.L.md,a.L.hm,a.L.NS,a.L.W5,-1].join(";");w.tvt=cUq(a,G);B.S&&(w.inapp=1);if(bn!==null&&bn!=bn.top){X.length>0&&(w.iframe_loc=encodeURIComponent(bn.location.href.substring(0,512)));var d=B.G;w.is=[fU(d),d.getHeight()]}}catch(v){w.error=1}a.U=w}Z=g.O1(a.U);z=QH().L;VK(z.U,"prf")==1?(d=new b9h,n=z.L,V=0,n.L>-1&&(V=n.U.L.now()-n.L),d=bV(d,1,ne(n.j+V), 0),n=z.L,d=bV(d,5,wV(n.L>-1?n.S+1:n.S),0),d=bV(d,2,Cm(z.S.L.U()),"0"),d=bV(d,3,Cm(z.S.L.S()),"0"),z=bV(d,4,Cm(z.S.L.L()),"0"),z={pf:g.dW(z.S())}):z={};g.C0(Z,z);g.C0(l,S,y,Z,p())}])}; ve=function(p=!1){let a=A3(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;a&&a.shadowRoot;)a=a.shadowRoot.fullscreenElement;return a?a:null}; IHZ=function(){return QM(oS(),p=>`${p}`)}; te=function(p,a){for(let l=0;l0}; u$v=function(p=null){return p!=null&&(p=p.thumbnail,p!=null&&p.thumbnails!=null&&p.thumbnails.length!=0&&p.thumbnails[0].width!=null&&p.thumbnails[0].height!=null)?new g.J9(p.thumbnails[0].width||0,p.thumbnails[0].height||0):new g.J9(0,0)}; g.rer=function(p){const a=sW(p,0,1701671783);if(!a)return null;var l=C6$(a);const y=l.Vw;l=Ux(l.qU);if(p=sW(p,a.offset+a.size,1701671783))if(p=C6$(p),p=Ux(p.qU),l&&p)for(const S of Object.keys(p))l[S]=p[S];return l?new $oA(l,y):null}; O9o=function(p,a,l,y,S,n){if(!p.CO)if(g.BX(p,l))p.eb({gdu:"undec",seg:l,itag:S});else if(a=gj(p,a,l,y,n),!p.playback.getVideoData().nh()||!a?.Sd)return a}; $I=function(p,a){let l=!1;if(p.cI){const y=p.cI.element;y.value=a;y.select();try{l=document.execCommand("copy")}catch(S){}}l?p.U6.ke():(p.TH.setContent(a,"text"),g.Go(p.U6,p.l8),E2(p.TH.element),p.cI&&(p.cI=null,kTq(p)));return l}; AVq=function(p,a){p.S.style.setProperty("--yt-slider-shape-gradient-percent",`${(a-p.j)/(p.X-p.j)*100}%`)}; kTq=function(p){const a=!!p.cI;g.Pz(p.mS,a?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");Lx(p.mS,!a);g.Pz(p.Oi,a?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");Lx(p.Oi,!a);g.Pz(p.getVideoUrl,a?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");Lx(p.getVideoUrl,!a);g.Pz(p.FT,a?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");Lx(p.FT,!a);p.Oi.setIcon(a?un$(): null);p.getVideoUrl.setIcon(a?CD():null);p.FT.setIcon(a?CD():null)}; v6=function(p,a){p.playerState.L(128)||(p.X7(Z3(p.playerState,1028,9)),p.Xu("dompaused",{r:a}),p.publish("onAutoplayBlocked"))}; sc=function(p,a){return g.uB(p.toLowerCase(),a.toLowerCase())}; fU=function(p){return p.right-p.left}; Lx=function(p,a){p.element.setAttribute("aria-haspopup",String(a))}; Ano=function(){return g.IW("armv7")||g.IW("aarch64")||g.IW("android")}; ehf=function(p){return{type:r3(p,1),event:r3(p,2),Mg:kHv(p,3),G6:kHv(p,4),Xr:w3(p,5),identifier:w3(p,6),WG:r3(p,9)}}; vuM=function(p,a,l,y){return a&&l.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?p.map(S=>S instanceof aa?new mF(n=>R$(y,n),l.adSlotMetadata.slotId):S):p}; MXr=function(p,a){return new g.Q6("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:a})}; XI=function(p,a){for(var l,y;;){if(p.Pa<262){E6(p);if(p.Pa<262&&a===0)return 1;if(p.Pa===0)break}l=0;p.Pa>=3&&(p.V$=(p.V$<4096)&&(p.BX=2));if(p.uU>=3&&p.BX<=p.uU){y=p.bM+p.Pa-3;l=Cr(p,p.bM-1-p.IC,p.uU-3);p.Pa-=p.uU-1;p.uU-=2;do++p.bM<=y&&(p.V$=(p.V$<=p&&(p-7^31)a.VL(), wM:()=>a.wM()})}; g.kw=function(p,a=""){if(p.vG){const l=new z0;let y;const S=p.vG();S.signedOut?y="":S.token?y=S.token:S.pendingResult.then(n=>{S.signedOut?l.resolve(""):l.resolve(n.token)},n=>{g.tX(new g.Qm("b189348328_oauth_callback_failed",{error:n})); l.resolve(a)}); return y!==void 0?oW(y):new jn(l)}return oW(a)}; Xm=function(p,a,l){if(isNaN(a))return NaN;const y=p.NE();l=p.UE(l);return p.A("html5_clamp_invalid_seek_to_min_seekable_time")&&!p.videoData.isLivePlayback&&a>l+1&&a{p.X=y})}; TlZ=function(p,a,l,y,S,n){p=l.inPlayerLayoutId?l.inPlayerLayoutId:d$(n,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",p);const V=l.instreamAdPlayerOverlayRenderer?l.instreamAdPlayerOverlayRenderer?.adLayoutLoggingData:l.playerOverlayLayoutRenderer?.adLayoutLoggingData,Z={layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qO:a};return{layoutId:p,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xh:new Map,layoutExitNormalTriggers:[new wt(z=>R$(n,z),l.LU)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:a,clientMetadata:y,ao:S(Z),adLayoutLoggingData:V}}; T5=function(...p){return p?p.join(","):"key"}; xI=function(p,a,l,y){if(l==="child"){g.m1(a);let n;y===void 0?n=void 0:n=!Array.isArray(y)||y&&typeof y.W==="string"?[y]:y;l=iXr(p,n);for(var S of l)a.appendChild(S)}else l==="style"?g.VB(a,"cssText",y?y:""):y===null||y===void 0?a.removeAttribute(l):(S=y.toString(),l==="href"&&(S=g.YU(g.ZM(S))),a.setAttribute(l,S))}; XC=function(p){return p.QY?p.QY-(p.C||p.timestampOffset):0}; EK=function(p,a,l){return p{gn("").info.actionType="watch";p&&C8("TIMING_AFT_KEYS",p);C8("TIMING_ACTION","watch");var a=DMv(g.R("TIMING_INFO",{}));Object.keys(a).length>0&&c1(a);a={isNavigation:!0,actionType:fW(g.R("TIMING_ACTION"))};var l=g.R("PREVIOUS_ACTION");l&&(a.previousAction=fW(l));if(l=g.R("CLIENT_PROTOCOL"))a.httpProtocol=l;if(l=g.R("CLIENT_TRANSPORT"))a.transportProtocol=l;(l=g.c2())&&l!=="UNDEFINED_CSN"&&(a.clientScreenNonce=l);l=i9F();if(l===1||l===-1)a.isVisible=!0; l=xX().loadType==="cold";var y=TRA();l||(l=y.yt_lt==="cold");if(l){a.loadType="cold";l=TRA();y=XOq();let V=Pr();const Z=g.R("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!g.nU("embeds_web_enable_csi_start_override_killswitch")&&(V=Z);V&&(kk("srt",y.responseStart),l.prerender!==1&&Yu(V));l=QrO();l>0&&kk("fpt",l);l=XOq();l.isPerformanceNavigationTiming&&c1({performanceNavigationTiming:!0},void 0);kk("nreqs",l.requestStart,void 0);kk("nress",l.responseStart,void 0);kk("nrese",l.responseEnd,void 0);l.redirectEnd- l.redirectStart>0&&(kk("nrs",l.redirectStart,void 0),kk("nre",l.redirectEnd,void 0));l.domainLookupEnd-l.domainLookupStart>0&&(kk("ndnss",l.domainLookupStart,void 0),kk("ndnse",l.domainLookupEnd,void 0));l.connectEnd-l.connectStart>0&&(kk("ntcps",l.connectStart,void 0),kk("ntcpe",l.connectEnd,void 0));l.secureConnectionStart>=Pr()&&l.connectEnd-l.secureConnectionStart>0&&(kk("nstcps",l.secureConnectionStart,void 0),kk("ntcpe",l.connectEnd,void 0));lt&&"getEntriesByType"in lt&&pDo();l=[];if(document.querySelector&& lt&<.getEntriesByName)for(S in FI)FI.hasOwnProperty(S)&&(y=FI[S],NRe(S,y)&&l.push(y));var S=l;if(S.length>0){a.resourceInfo=[];for(var n of S)a.resourceInfo.push({resourceCache:n})}}c1(a);stF();q_(!0);n=g.R("TIMING_ACTION");g.o1("ytglobal.timingready_")&&n&&kJ()&&qSM()&&ODF()})()}; ebv=function(p,a,l,y,S,n,V=!1){const Z=[];try{let z,d=[];if(l.renderer.linearAdSequenceRenderer)z=B=>{B=Qtq(B.slotId,l,a,S(B),y,n,V);d=B.lR;return B.eM}; else if(l.renderer.instreamVideoAdRenderer)z=B=>{var c=B.slotId;B=S(B);const w=l.config.adPlacementConfig,{i8:X,qC:v}=zgh(w);var I=l.renderer.instreamVideoAdRenderer;if(I?.playerOverlay?.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var u=nW(I,V);const m=Math.min(X+u.videoLengthSeconds*1E3,v),M=new VC(0,[u.videoLengthSeconds]);var D=u.videoLengthSeconds,A=u.playerVars,$h=u.instreamAdPlayerOverlayRenderer,cE=u.playerOverlayLayoutRenderer,FO=u.adVideoId, CA=D5$(l),sM=u.Xh;u=u.N8;var b_=I?.adLayoutLoggingData;I=I?.sodarExtensionData;c=d$(a.S.get(),"LAYOUT_TYPE_MEDIA",c);const F={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",qO:"core"};return{layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",Xh:sM,layoutExitNormalTriggers:[new qK(a.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new cF(y),new d_(D),new r9(A),new AQ(X),new gx(m),$h&&new PF($h),cE&& new Lq(cE),new GL(w),new XP(FO),new x_(M),new hQ(CA),I&&new FP(I),new $_({current:null}),new fj,new oL(u)].filter(O3)),ao:B(F),adLayoutLoggingData:b_}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");const G=h3o(p,y,l.adSlotLoggingData,z);Z.push(G);for(const B of d){const c=B(p,S);if(c instanceof N)return c;Z.push(...c)}}catch(z){return new N(z,{errorMessage:z.message,AdPlacementRenderer:l,numberOfSurveyRenderers:UAO(l)})}return Z}; F0=function(p){const a={tick:{},info:{}};g.eo("ytcsi."+(p||"")+"data_",a);return a}; A6o=function(p){const a={},l=p.m$?.NT();l!=null&&(a.SURVEY_ELAPSED_MS=wu(()=>Math.round(l*1E3).toString())); a.SURVEY_LOCAL_TIME_EPOCH_S=wu(()=>Math.round(Date.now()/1E3).toString()); return a}; geO=function(p){return p.info.L.U()&&p.info.Gm===p.info.L.index.VL()}; YF$=function(p,a){if(a.title){var l=g.mQ(a.title);p.updateValue("title",l)}if(a.dialogMessages)for(var y of a.dialogMessages)l=X$(y),p.Bs.appendChild(l);a.cancelLabel&&(y=g.mQ(a.cancelLabel),p.updateValue("cancelLabel",y),p.L.J(p.G,"click",S=>p.j(S))); a.confirmLabel&&(a=g.mQ(a.confirmLabel),p.updateValue("confirmLabel",a),p.L.J(p.N,"click",S=>p.D(S))); p.L.J(p.jl,"click",S=>p.X(S))}; qFf=function(p){let a=p.raw_player_response;if(!a){var l=p.player_response;l&&(a=JSON.parse(l))}delete p.player_response;delete p.raw_player_response;a&&(p.raw_player_response={streamingData:a.streamingData,playerConfig:a.playerConfig},a.playbackTracking?.qoeUrl&&(p.raw_player_response={...p.raw_player_response,playbackTracking:{qoeUrl:a.playbackTracking.qoeUrl}}),a.videoDetails&&(a.videoDetails.videoId||a.videoDetails.lengthSeconds)&&(l={},a.videoDetails.videoId&&(l.videoId=a.videoDetails.videoId), a.videoDetails.lengthSeconds&&(l.lengthSeconds=a.videoDetails.lengthSeconds),p.raw_player_response={...p.raw_player_response,videoDetails:l}))}; Ef=function(p,a,l,y,S,n,V){a={id:a,namespace:V??"appapi"};n==="chapter"?(a.style=gT.CHAPTER_MARKER,a.visible=!0):isNaN(S)||(n==="ad"?a.style=gT.AD_MARKER:(a.style=gT.TIME_MARKER,a.color=S),a.visible=!0);p.LN([new g.yj(l*1E3,y*1E3,a)],1);return!0}; J6v=function(p){if(p.api.O().A("web_player_log_click_before_generating_ve_conversion_params")){var a=Math.floor(-p.scrollPosition/(p.j+8));const l=Math.min(a+p.columns,p.suggestionData.length)-1;for(;a<=l;a++)p.api.logVisibility(p.L[a].element,!0)}}; fHq=function(p){if(p.slot.clientMetadata.t9("metadata_type_prefetch_metadata")){const a=Es(p,p.slot);Cv(p.L.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>[a])}}; gur=function(p){return p.fields.map(a=>a.fieldType)}; Cx=function(p,a){p.S.delete(a)}; nAF=function(p,a,l){const y=[];for(const S of l)y.push(S.triggeringSlotId!=null&&S.triggeringSlotId===p?S.clone(a):S);return y}; pth=function(p){Q("Received layout exit signal when not in layout exit flow.",p.slot,p.layout)}; g.Uz=function(p,a){a=XW(a);a!==void 0&&(p.href=a)}; q9e=function(){return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}}; akv=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}}; lkh=function(p,a,l,y,S,n){y.index&&(S.playlistIndex=String(Number(y.index)+1));S.videoId=l?l:"";a&&n.Cz("embeds_enable_per_video_embed_config")?S.serializedThirdPartyEmbedConfig=a:p&&(S.serializedThirdPartyEmbedConfig=p)}; H7o=async function(p,a,l){p=await g.R2(p.L.UK(a?.KH?.identity||$n,{sessionIndex:a?.KH?.sessionIndex}));return Promise.resolve({...Pg(l),...p})}; d$r=function(p){var a=G1;const l=[];g.Ir(p,y=>{Nh(a.L,S=>S.QZ.Ft===y.QZ.Ft&&S.fC===y.fC)||(a.L.push(y),l.push(y))})}; y3v=function(p){const a=l=>{l.stack&&l.stack.indexOf("player")!==-1&&p.zm().Pz(l)}; yg.subscribe("handleError",a);vz.push(a);return()=>{yg.unsubscribe("handleError",a);const l=vz.indexOf(a);l!==-1&&vz.splice(l,1)}}; Qq=function(){const p=Number(g.R("DCLKSTAT",0));return isNaN(p)?0:p}; Q2=function(){return iz||Tw?!!KA&&!!KA.platform:!1}; Kx=function(p){return p.s1&&p.enableServerStitchedDai}; nOM=function(p,a){const l=b6(p);return l&&l.info.type!==6?!a.N(p,l.info.Gm):!1}; n0F=function(p,a){a=g.K(a.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,e3);if(a?.progressColor)for(let l=0;la?.maxWidth||p?.maxHeight>a?.maxHeight}; Znf=function(p,a){if(a.video&&a.video.length){p.title=a.title||"";p.description=a.description;p.views=a.views;p.likes=a.likes;p.dislikes=a.dislikes;p.author=a.author||"";var l=a.loop;l&&(p.loop=l);l=g.DB(p);p.items=[];for(const y of a.video)y&&(y.video_id=y.encrypted_id,p.items.push(y));p.length=p.items.length;(a=a.index)?p.index=a:p.findIndex(l);p.setShuffle(!1);p.loaded=!0;p.S++;p.L&&p.L()}}; ceq=function(p){let a=p.S.reduce((l,y)=>l+y.S.totalLength,0); p.L&&(a+=p.L.S.totalLength);return a}; yFE=function(p,a,l){uN&&(Of(p.mediaElement,{l:"mswssb",sr:p.mediaElement.Lz?.Gp()},!1),a.A4(p.C,p),l.A4(p.C,p));p.L=a;p.S=l;g.H(p,a);g.H(p,l)}; ZU=function(p){g.eo("yt.ads.biscotti.lastId_",p)}; lDF=function(p){let a="";g.Ir(p.childNodes,l=>{a+=l.nodeValue}); return a}; o0Z=function({Us:p=!1,S8:a=!1,PO:l=!1}={}){return p?l?3:2:a?-1:1}; z1A=function(p){if(p.Fh==="rendering"){aB(p,"pause");var a=lp(p)?.pauseCommands||[];rq(p.uM.get(),a,p.layout.layoutId);p.gA(2)}}; Jnr=function(p,a,l){for(l=T$(p,l);l>=0;){var y=p.levels[l];if(y.isLoaded(GB(y,a))&&(y=g.B2(y,a)))return y;l--}return g.B2(p.levels[0],a)}; IA=function(p,a,l,y,S){p=g.nP$(p,a,l,S);p=new g.kI(p);y&&p.TY();return p}; Jh=function(p,a){if(!p)return-1;try{for(let l=0;l=a)return l}catch(l){}return-1}; By=function(p,a,l,y,S=3){l&&(k3(p,a,S),y(p,l),tA(p))}; ZmO=function(p,a){const l=[];for(const y of p.Ag.values())y.trigger.triggerType===a&&l.push(y);l.length>0&&p1(p.D(),l)}; duF=function(p,a,l){const y=a.type||0;l?.has(y)?p.a8.push(a):p.zY.push(y)}; Oi=function(p){return new Uint8Array(p.data.buffer,p.offset+p.data.byteOffset,p.size)}; th=function(p){return sU(p).then(a=>a?new GiM(p,a):null)}; Bmo=function(p,a){return g.ur(p.api.O())&&v3(a)&&PB(a)?g.kw(p.api.O(),p.api.getVideoData().G()).then(l=>{let y;l&&(y={Authorization:`Bearer ${l}`});return y},void 0):oW()}; c3O=function(p){return Array.prototype.map.call(p,function(a){a=a.toString(16);return a.length>1?a:"0"+a}).join("")}; r3E=function(p,a){p.EE().autonavState=a;g.V2("yt-player-autonavstate",a);p.pz.publish("autonavchange",a)}; Rfr=function(p,a=!1){p.policy.G&&p.loader.Xu("sabrcrq",{create:1});return Fs(p,new xp(0,p.r7.UO,p),a)}; Mz=function(p){return{enterMs:p.clientMetadata.t9("metadata_type_layout_enter_ms"),exitMs:p.clientMetadata.t9("metadata_type_layout_exit_ms")}}; wtq=function(p,a,l,y){const S=p.r7;var n=p.Lz.getVideoData();const V=p.tQ,Z=Zm({s6:p.s6,g7:n.O(),Lz:p.Lz,TV:p.TV,mO:p.mO,X1:p.X1,F4:p.F4,iQ:p.iQ,JH:p.JH,zw:p.zw,B1:p.B1,wy:p.wy,sabrLicenseConstraint:n.sabrLicenseConstraint,vx:p.vx,qt:p.qt,gs:p.gs,Br:p.Br,MX:!!V,authorizedFormats:n.authorizedFormats}),z=ok(n,p.V8,p.nextRequestPolicy,p.KQ,p.mu,p.zE,p.YQ);l&&a&&(l=z.a8?z.a8.map(G=>G.type):[],a("sabr",{stmctxt:l.join("_"), unsntctxt:z.zY?z.zY.join("_"):""}));a=p.vn;l=p.Gu;l===void 0&&a===void 0&&(l=VSO(S.va,p.KL?.video),a=VSO(S.va,p.KL?.audio));let d;n.J3&&(d=n.J3);n={hw:Z,kc:p.kc,vn:a,Gu:l,tQ:V,videoPlaybackUstreamerConfig:d,Ci:z};y&&p.Td?p.Td.length>0&&(n.Td=p.Td):p.PW&&(n.PW=p.PW);n.WZ=p.WZ;n.Qe=S.iT;return n}; xS=function(p){g.MD(p)}; g.hx=function(p){return Qu(oY(p,$uO),p,!1,"Trusted Image URL")}; LVO=function(p,a,l,y){if(!a||!l||!a.videoData.S)return!1;const S=g.ak(p.Y.experiments,"html5_df_downgrade_thresh"),n=p.A("html5_log_media_perf_info");if(!((0,g.h)()-p.j<5E3?0:n||S>0))return!1;const V=((0,g.h)()-p.j)/1E3;p.j=(0,g.h)();l=l.getVideoPlaybackQuality();if(!l)return!1;const Z=l.droppedVideoFrames-p.D,z=l.totalVideoFrames-p.K;p.D=l.droppedVideoFrames;p.K=l.totalVideoFrames;const d=l.displayCompositedVideoFrames===0?0:l.displayCompositedVideoFrames||-1;n&&p.Y.Mc()&&p.Lz.Xu("ddf",{dr:l.droppedVideoFrames, de:l.totalVideoFrames,comp:d});if(y)return p.L=0,!1;if((z-Z)/V>p.C||!S||g.ur(p.Y))return!1;p.L=(z>60?Z/z:0)>S?p.L+1:0;if(p.L!==3)return!1;P9$(p,a.videoData.S);p.Lz.Xu("dfd",Object.assign({dr:l.droppedVideoFrames,de:l.totalVideoFrames},IHZ()));return!0}; CC=function(p){return R9(p)||YA(p.j.JD()?.info)}; FV$=function(p,a,l){a=N9(a);l=N9(l);const y=p.data,S=p.output;let n=p.U;for(var V=p.register,Z=p.L,z=p.S;;){if(Z<15){if(z>y.length){p.error=!0;break}V|=(y[z+1]<<8)+y[z]<>=7;d<0;)d=a[(V&1)-d],V>>=1;else V>>=d&15;Z-=d&15;d>>=4;if(d<256)S[n++]=d;else if(p.register=V,p.L=Z,p.S=z,d>256){V=mR[d];V+=t8(p,j3[d]);z=Xt$(p,l);Z=Wz[z];Z+=t8(p,Hz[z]);if(xuf&&Vn-V); S.sort((n,V)=>n-V); return Or(y,S)}; eMv=function(p){return E0O[p]||""}; JD=function(p){var a=p.Dg,l=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"];for(const y of zu())l.push(y);if(qa(a,{e5:l,FX:["LAYOUT_TYPE_MEDIA_BREAK"]}))return C9F(p);a=p.Dg;l=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];for(const y of zu())l.push(y);if(qa(a,{e5:l,FX:["LAYOUT_TYPE_MEDIA"]}))return Ci(p.Dg.clientMetadata,"metadata_type_ad_intro")?m$r(p):v0e(p)}; iN=function(p){p.G?.dispose();p.G=null}; bQ=function(p,a){g.nU("log_sequence_info_on_gel_web")&&(p.sequenceGroup=a);return p}; Tk=function(p,a){p.L||(p.xv.O6(a),p.L=!0)}; Nz=function(p,a=!0){return HiM(p,l=>l.L,a)}; KVo=function(p,a,l){if(l!=null){switch(typeof l){case "string":gCZ(l)}qc(p,a,1);switch(typeof l){case "number":p=p.L;Qc(l);E0(p,a1);E0(p,yB);break;case "bigint":l=BigInt.asUintN(64,l);l=new m3(Number(l&BigInt(4294967295)),Number(l>>BigInt(32)));p=p.L;a=l.L;E0(p,l.S);E0(p,a);break;default:l=gCZ(l),p=p.L,a=l.L,E0(p,l.S),E0(p,a)}}}; ma=function(p,a,l){const y=[];let S;for(;S=mV(p,a);)y.push(l(new px(new F8([S]))));return y.length?y:void 0}; V5=function(p,a,l,y){return p.EO.get().vX(zW(a))?[new mF(p.L,l)]:y}; ug=function(p){p.eQ?.iM(!p.B.isFullscreen()&&p.B.getPresentingPlayerType()!==2&&p.B.O().showMiniplayerButton)}; e1r=function(p,a){p=p.api.getRootNode();g.OW(p,"ytp-ad-overlay-open",a);g.OW(p,"ytp-ad-overlay-closed",!a)}; bnh=function(p){if(!p||!p.adPlacements&&!p.adSlots)return!1;for(const a of p.adPlacements||[]){if(!a)continue;const l=a.adPlacementRenderer;if(l!=null&&(l.config&&l.config.adPlacementConfig&&l.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0}for(const a of p.adSlots||[])if(g.K(a,Gi)?.adSlotMetadata?.triggerEvent==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0;return!1}; LG=function(p,a,l){const y=[];for(var S of p.layoutExitNormalTriggers||[]){var n=L_(S,a,l);if(n instanceof N)return n;y.push(n)}S=[];for(var V of p.layoutExitSkipTriggers||[]){n=L_(V,a,l);if(n instanceof N)return n;S.push(n)}V=[];for(var Z of p.layoutExitMuteTriggers||[]){n=L_(Z,a,l);if(n instanceof N)return n;V.push(n)}Z=[];for(const z of p.layoutExitUserInputSubmittedTriggers||[]){p=L_(z,a,l);if(p instanceof N)return p;Z.push(p)}return{layoutExitNormalTriggers:y,layoutExitSkipTriggers:S,layoutExitMuteTriggers:V, layoutExitUserInputSubmittedTriggers:Z,layoutExitUserCancelledTriggers:[]}}; Ikh=function(p){const a=[];if(!p||!p.thumbnails)return a;for(const l of p.thumbnails)l.url&&(!l.width||l.width<=0||!l.height||l.height<=0||g.hx(l.url)&&a.push({src:l.url||"",sizes:`${l.width}x${l.height}`,type:"image/jpeg"}));return a}; R1E=function(p,a,l,y=!1){const S=p.S.get(a),n=p.j.getStartTime(a),V=p.j.getDuration(a);p.D=!1;p.G=a;let Z=n;(S?.L??[p.cpn]).forEach((z,d)=>{const G=S?.S[d]??V;l>=Z&&l"FORMAT_STREAM_TYPE_OTF"===a.type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Jx=function(p){if(Uf&&p.Sb)return!1;const a=g.f2.auto;return p.S===a&&p.L===a}; ea$=function(p){if(!Array.isArray(p))for(let a=p.length-1;a>=0;a--)delete p[a];p.length=0}; Qv=function(p){return Object.values(p.tracks).find(a=>a.languageCode==="en"&&a.kind==="asr")}; gWA=function(p){if(!g.nU("universal_csi_network_ticks"))return()=>{}; const a=OnA[p];return a?(nm(a),()=>{var l=g.nU("universal_csi_network_ticks")?(l=kiM[p])?nm(l):!1:!1;return l}):()=>{}}; Mxr=function(p,a,l){if(a.endpoint==="log_event"){SQ(void 0,a);var y=ni(a,!0),S=GJf(p),n=200;if(S){if(S.enabled===!1&&!g.nU("web_payload_policy_disabled_killswitch"))return;n=B3F(S.tier);if(n===400){$5v(p,a,l);return}}Vd[y]=!0;y={cttAuthInfo:y,isJspb:!0,tier:n};ZO().storePayload(y,tM(a.payload));rKv(l,!0,y,oX(p))}}; XMZ=function(p,a,l,y,S,n,V){var Z=a.S||!!S;const z=Z&&a.Lx?n:void 0;var d=new Set;let G=mur(p,a,l,y,n,Z,d);y.j()&&(G=wTF(l,G,S,Z,n,a),Z&&n({enflt:vJ(G)}));a.Ic=txo(G,a);S=D=>!!G[D]; var B=wjM(a);p=[];for(var c of Object.values(G))c?.length&&c[0].Bi()&&p.push(...c);if(bW(y))return n=g.y_(Object.values(G),D=>!!D.length&&!!D[0].audio),Z=g.y_(Object.values(G),D=>!!D.length&&!!D[0].video),n&&Z||Sk(),oW(new zF(Z,n,z,p)); c=G.a;var w=!1;a.Zl&&B[0]!=="a"&&jBZ(c)&&(B.unshift("a"),w=!0);Z&&(n({audioPrefOrder:B.join("_")}),n({preferHighQualityAudio:a.Zl}),n({forcedAacForHqa:w}));c=[];if(a.Ha){B=g.B4(B,S);w=new Set;for(var X of B){var v=G[X];const D=new Set;for(const A of v)if(v=A.rG?.id)w.has(v)?D.has(v)&&c.push(A):(D.add(v),w.add(v),c.push(A))}if(c.length===0){if(B.length===0)return Z&&n({noaudio:1}),Sk();c=G[B[0]]}}else{c=g.y_(B,S);if(!c)return Z&&n({noaudio:1}),Sk();c=G[c]}G["9"]&&G.h&&y.va&&!a.QY&&(Z&&n({dltvp9:1}), delete G["9"]);if(V){Z&&n({bfsflt:vJ(G),bfsflta:IH(l)});nzq(l,d);Z&&n({bfsfltb:IH(l)});for(var I in G)if(G.hasOwnProperty(I)&&(V=I,!(V==="f"||a.BT===0&&WVv.has(V))))for(var u of G[V])a.ZN?Hnv(l,V,u):DuO(l,V,u);Z&&n({aftsflt:IH(l)})}I=G["1h"]?"1h":"1";l=G["9h"]?"9h":"9";V=G[I];d=G[l];V&&V.length&&(a.L.highestAv1Resolution=V[V.length-1].video.qualityOrdinal);d&&d.length&&(a.L.highestVp9Resolution=d[d.length-1].video.qualityOrdinal);u=[];X=[];if(a.tP&&V)u=V,X=[I],n({forceAv1:I});else if(a.K&&!a.Ql){X= pe$(y)?G["1h"]||G["9h"]?["1h","9h"]:["9","h"]:["1","9","h"];Z&&n({newhybpref:X.join(".")});for(var m of X)u=u.concat(G[m]).filter(D=>D)}else a.a7>0&&d&&V&&(X=[I, l],u=V.concat(d).filter(D=>D)); if(u.length&&!a.Ql){xj(u,X);if(Z){Z=[];for(var M of u)Z.push(M.itag);n({hbdfmt:Z.join(".")})}return oW(new zF(u,c,z,p))}M=inM(a);M=g.y_(M,S);if(!M){if(G[I])return n=G[I],xj(n),oW(new zF(n,c,z,p));Z&&n({novideo:1});return Sk()}a.Ba&&(M==="1"||M==="1h")&&G[l]&&(m=h8(G[M]),S=h8(G[l]),S>m?M=l:S===m&&Tmv(G[l])&&(M=l));M==="9"&&G.h&&h8(G.h)>h8(G["9"])&&(M="h");a.iT&&y.isLive&&M==="("&&G.H&&h8(G["("])<1440&&(M="H");Z&&n({vfmly:DA(M)});a=G[M];if(!a.length)return Z&&n({novfmly:DA(M)}),Sk();xj(a);return oW(new zF(a, c,z,p))}; vpo=function(p){const a=Xo();a&&(typeof p==="number"&&(p=[p]),g.Ir(p,l=>{a.unsubscribeByKey(l);delete A8[l]}))}; Cr=function(p,a,l){p.Qh[p.cw+p.y9*2]=a>>>8&255;p.Qh[p.cw+p.y9*2+1]=a&255;p.Qh[p.U7+p.y9]=l&255;p.y9++;a===0?p.Dl[l*2]++:(p.matches++,a--,p.Dl[(vY[l]+256+1)*2]++,p.Sh[(a<256?bw[a]:bw[256+(a>>>7)])*2]++);return p.y9===p.E3-1}; f_=function(p,a){const l=NmA(p,p.C());!isNaN(p.j)&&a&&(l.C=p.j);return l}; sBF=function(p,a){return(l,y)=>{{const n={C2:!0};y&&Object.assign(n,y);l=Wee(l,void 0,void 0,n);try{const V=new p,Z=V.DI;gg(a)(Z,l);var S=V}finally{l.free()}}return S}}; S0=function(p){p.removed=!0;p.listener=null;p.proxy=null;p.src=null;p.handler=null}; QOF=function(p,a){return p.S.some(l=>l.info.Gm===a)}; bTM=function(p,a,l=0){g.Oc(()=>{a.then(y=>{p.S.has(l)&&p.X&&p.X();const S=g.c2(l),n=g.rM(l);if(S&&n){var V={automatedLogEventSource:3};y?.response?.trackingParams&&g.P2(p.client,S,n,g.dn(y.response.trackingParams),!1,V);y?.playerResponse?.trackingParams&&g.P2(p.client,S,n,g.dn(y.playerResponse.trackingParams),!1,V)}})})()}; UuO=function(p,a,l){if(!p.policy.X){p=a.L.index;var y=a.S.Gm;p.NJ(y)||l&&l.Gm===y?(a.X=!p.NJ(y),a.Sl=!p.NJ(y)):(a.X=!0,a.Sl=!0)}}; h1F=function(p,a,...l){a=a.map(y=>({L4:()=>{K2(y.name);eh(()=>y.callback(...l)); bb(y.name)}, priority:p.S??y.priority??0})); a.length&&(p.U=new QBv(a))}; T2=function(){const p=A3o();YI||p===void 0||(YI=new Worker(Vu(p),void 0));return YI}; g0O=function(p,a){return a.getUserAudio51Preference()?g.B4(p,qz):p}; ePf=function(p){var a=p.api.XG();if(a){var l=90*p.scale,y=T$(a,160*p.scale);if(a=a.levels[y]){p.D=a.width;if(!p.j.length){y=[];var S=GB(a,a.S()),n=a.columns*a.rows,V=a.frameCount;for(var Z=0;Z<=S;Z++){var z=V p.j.length;)p.thumbnails.pop()?.dispose();for(;p.thumbnails.lengthl.length;)p.S.pop()?.dispose();for(;p.S.length127;)a.push(l&127|128),l>>>=7,p.S++;a.push(l);p.S++}; fkM=function(p,a,l,y,S=l.schedule,n,V,Z){var z=g.pf(p,Va);if(z=GKA(a,z))return zJ({Hv:z.ew,TI:z.signature},a,l,y,!!p.p6,S,n,V,Z)}; Ub=function(p){return p===void 0?p:Number(p)?sb(p,3):0}; aj=function(p,a){uG(a)?p.gA(1):a.j5(4)&&!a.j5(2)&&z1A(p);qJ(a,4)<0&&!(qJ(a,2)<0)&&zCM(p)}; g.KX=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Lj=function(p,a=!1){a=a?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(a="EMBEDDED_PLAYER_MODE_PFL");let l=p.raw_embedded_player_response;if(!l&&(p=p.embedded_player_response))try{l=JSON.parse(p)}catch(y){return a}return l?O4(a,l.embeddedPlayerMode,pLo):a}; aJM=async function(p,a,l,y){p.L||(p.L=await y.importKey("raw",p.S,{name:"HMAC",hash:"SHA-256"},!1,["sign"]));const S=new Uint8Array(a.length+l.length);S.set(a);S.set(l,a.length);p=await y.sign({name:"HMAC",hash:"SHA-256"},p.L,S);return new Uint8Array(p)}; g.lU=function(p,a,l){p=p.L.createObjectStore(a,l);return new lJh(p)}; gn=function(p){p=p||"";const a=hxM();if(a[p])return a[p];const l=SC(),y={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};l.push(y);return a[p]=y}; WhE=function(p,a=!1,l=!0,y={}){const S={};for(const V of p){if(a&&MediaSource&&MediaSource.isTypeSupported&&(p=V.type,V.audio_channels&&(p=p+"; channels="+V.audio_channels),!MediaSource.isTypeSupported(p))){y[V.itag]="tpus";continue}if(!l&&V.drm_families&&(V.eotf==="smpte2084"||V.eotf==="arib-std-b67")){y[V.itag]="enchdr";continue}p=void 0;const Z={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"};var n=V.type.match(/codecs="([^"]*)"/);n=n?n[1]:"";V.audio_track_id&&(p=new g.mG(V.name, V.audio_track_id,!!V.is_default));const z=V.eotf;p=new DJM({itag:V.itag,url:V.url,codecs:n,width:Number(V.width),height:Number(V.height),fps:Number(V.fps),bitrate:Number(V.bitrate),audioItag:V.audio_itag,VV:z?Z[z]:void 0,uf:V.drm_families,rG:p,audioChannels:Number(V.audio_channels)});S[p.itag]=S[p.itag]||[];S[p.itag].push(p)}return S}; AUh=function(p,a,l){kaZ(a);const y=p.L;g.Ir(a,S=>{const n=g.Nx(S.criteria,V=>{var Z=yWM(V);if(Z==null)V=null;else if(V=new S2q,Z.visible!=null&&(V.L=Z.visible/100),Z.audible!=null&&(V.S=Z.audible==1),Z.time!=null){const z=Z.timetype=="mtos"?"mtos":"tos",d=gM(Z.time,"%")?"%":"ms";Z=parseInt(Z.time,10);d=="%"&&(Z/=100);V.setTime(Z,d,z)}return V}); Nh(n,V=>V==null)||CvF(l,new nkv(S.id,S.event,n,y))})}; EYe=function(p,a){return p.Ua.U?!1:p.Sa.S?!1:typeof p.Ltypeof a.L?!1:p.L>31));gD(p,16,a.zB);gD(p,17,a.detailedNetworkType);gD(p,18,a.b8);gD(p,19,a.gy);gD(p,21,a.wB);gD(p,23,a.T8);gD(p,28,a.Rl);gD(p,29,a.GL);gD(p,34,a.visibility);l=a.playbackRate;if(l!==void 0){var y=new ArrayBuffer(4);(new Float32Array(y))[0]=l;l=(new Uint32Array(y))[0];if(l!==void 0)for(Nb(p,285),ME(p,4),y=0;y<4;)p.view.setUint8(p.pos,l&255),l>>=8,p.pos+=1,y+=1}gD(p,36,a.sj); By(p,38,a.mediaCapabilities,z$r,3);gD(p,39,a.uR);gD(p,40,a.Vv);gD(p,44,a.playerState);ns(p,46,a.Bm);gD(p,48,a.vx);gD(p,50,a.iQ);gD(p,51,a.JH);gD(p,54,a.zw);if(a.PJ)for(l=0;l1.5&&p.loader.Xu("overshoot",{sq:a.Gm,br:l,max:y}))}}; uD=function(p){try{return p.U()==="open"}catch(a){return!1}}; z4M=function(p,a){p.rateLimit?p.L?(g.XY.bk(p.j),p.j=g.XY.zD(()=>{p.U!==a&&(p.dispatchEvent(a),p.U=a,p.L=(0,g.h)())},p.rateLimit-((0,g.h)()-p.L))):(p.dispatchEvent(a),p.U=a,p.L=(0,g.h)()):p.dispatchEvent(a)}; K3=function(p){this.G=p;this.L=null;this.j=0;this.D=null;this.X=0;this.S=[];for(p=0;p<4;p++)this.S.push(0);this.U=0;this.N=g.OB(window,"mousemove",(0,g.Qo)(this.C,this));this.K=g.Bg((0,g.Qo)(this.UO,this),25)}; dPF=function(p){p=rT(p);p.gelInfos||(p.gelInfos={});return p.gelInfos}; h3o=function(p,a,l,y){const S=fO(p.S.get(),"SLOT_TYPE_PLAYER_BYTES"),n=new Y_(p.L),V=[new mF(p.L,S)];p=[new y5(p.L,a)];return{slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:p,qO:"core",clientMetadata:new L0([new Z1(y({slotId:S,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:n,slotFulfillmentTriggers:V,slotExpirationTriggers:p})),new fj]),adSlotLoggingData:l}}; S8=function(p){p.xE=g.Wu(()=>{p.xE=null;p.L&&!p.S&&(p.L=!1,S8(p))},p.mD); const a=p.U;p.U=null;p.X.apply(null,a)}; Lt=function(){nf||(nf=new Gcr);return nf}; jqE=function(p){return cB(p.Uv).concat(cB(p.RD)).concat(cB(p.lA)).concat(cB(p.rC)).concat(cB(p.Vp))}; B_r=function(p){const a=Number(getComputedStyle(p.j).opacity);p.U?.cancel();p.U=void 0;return a}; cWo=function(p){const a=g.m5("html5-video-player");a&&g.OW(a,"ytp-ad-display-override",p)}; Qu=function(p,a,l=!1,y=""){!p&&l&&g.tX(Error(`Player URL validator detects invalid url. ${y}: ${a}`));return p}; rWr=function(p,a,l){const y=a?.text?.simpleText;y&&NrO(p,l,y,a?.icon).listen("click",()=>{a?.icon?.iconType==="HIDE"?p.B.publish("featuredproductdismissed"):a.serviceEndpoint&&g.v0(p.B,"innertubeCommand",a.serviceEndpoint);p.hide()},p)}; aOe=function(p,a){const l={type:a.layoutType,controlFlowManagerLayer:K8.get(a.qO)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};p&&(l.debugData={layoutId:a.layoutId});return l}; wL$=function(p,a,l){if(l>=p.L.length)return!1;const y=p.G-Sm(p)*p.Bs;return Math.abs(a-p.L[l].startTime/1E3)/p.U.L*y<4}; $Pv=function(p,a){QY(p,{sdpvrq:1});p.D=Date.now();if(p.S.flavor!=="widevine")p.error("drm.provision",1,`e.flavor;f.${p.S.flavor};l.${a.byteLength}`);else{var l={cpn:p.videoData.clientPlaybackNonce};Object.assign(l,p.Y.L);l=g.Re("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",l);a={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, a)}),responseType:"arraybuffer"};g.uV(l,a,3,500).then(GS(y=>{y=y.xhr;if(!p.nz()){y=new Uint8Array(y.response);var S=String.fromCharCode.apply(null,y);try{var n=JSON.parse(S)}catch(V){}n&&n.signedResponse?(p.publish("ctmp","drminfo",{provisioning:1}),n=(Date.now()-p.D)/1E3,p.D=NaN,p.publish("ctmp","provs",{et:n.toFixed(3)}),p.U&&p.U.update(y)):(n=n&&n.error&&n.error.message,y="e.parse",n&&(y+=`;m.${n}`),p.error("drm.provision",1,y))}}),GS(y=>{p.nz()||p.error("drm.provision",1,`e.${y.errorCode};c.${y.xhr&& y.xhr.status}`)}))}}; XLr=function(p,a,l,y,S,n,V,Z,z,d,G,B){const c=NP(y,l,d);return c instanceof s2?new N(c):d.B.O().experiments.Cz("html5_refactor_in_player_slot_generation")?w=>{var X=new VC(0,[c.z2]);w=Pcv(a,c.layoutId,c.M9,l,He(c.playerVars,c.gj,n,z,X),c.z2,S,X,V(w),Z.get(c.M9.externalVideoId),B);X=[];if(c.M9.playerOverlay.instreamAdPlayerOverlayRenderer){const v=Pb$(w);if(!v)return Q("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,w),{layout:w,TO:[]};X=[LFf(p, v.contentCpn,v.LU,I=>VX(a,I.slotId,"core",v,Yv(G,I)),v.inPlayerSlotId), ...X];if(v.instreamAdPlayerUnderlayRenderer&&ZI(d)){const I=v.instreamAdPlayerUnderlayRenderer;X=[AN(p,v.contentCpn,v.LU,u=>gf(a,u.slotId,I,v.adPlacementConfig,v.LU,Yv(G,u))), ...X]}}return{layout:w,TO:X}}:w=>{const X=new VC(0,[c.z2]); return{layout:Pcv(a,c.layoutId,c.M9,l,He(c.playerVars,c.gj,n,z,X),c.z2,S,X,V(w),Z.get(c.M9.externalVideoId),B),TO:[]}}}; zh=function(p,a,l,y=!1,S=!1,n,V=!0){S||(S=p.api.O().j);const Z=p.api.getVideoData();a=g.L$(g.oj[a]||"",y?{CPN:Z.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);y=[];n&&y.push({W:"h2",yY:n});y.push(a[0]);V&&y.push({W:"br"});y.push({W:"a",Z:{href:l,target:S?"_blank":null},T:"ytp-error-link",yY:a[2]});p.U=!0;y.push(a[4]);return{W:"span",V:y}}; g.k1=function(p,a){p.style.display=a?"":"none"}; xPh=function(p,a){return a+1=240&&l.oK&&!l.XX&&!p.api.isEmbedsShortsMode()&&!a}; g.jQ=function(p,a){typeof p==="function"&&(p=g.Oc(p));return window.setTimeout(p,a)}; g.dw=function(p,a){return p==a?!0:p&&a?p.width==a.width&&p.height==a.height:!1}; Gh=function(p,a,l){if(l.length==0)throw new N(`No ${FFf.get(a)} triggers found for slot.`,void 0,EkA(a));for(const y of l)if(!p.uN.RD.get(y.triggerType))throw new N("No trigger adapter registered for "+a+" trigger of type: "+y.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; faZ=function(p){switch(p){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 N(`Invalid layout exit reason: ${p}`)}}; TCv=function(p){var a=VK(QH().AP,"sneio")==1;const l=p.S.E9.AFMA_LIDAR_EXP_1!==void 0,y=p.S.E9.AFMA_LIDAR_EXP_2!==void 0;(a=a&&y)&&(p.S.E9.AFMA_LIDAR_EXP_2=!0);l&&(p.S.E9.AFMA_LIDAR_EXP_1=!a)}; CcO=function(p,a){if(a=a.find(l=>!(!l||!l.tooltipRenderer)))p.tooltipRenderer=a.tooltipRenderer}; uio=function({hasSubfragmentedFmp4:p=!1,K_:a=!1}={}){const l=new vkM;l.Us=p||a;return l}; SC=function(){let p=g.o1("ytcsi.debug");p||(p=[],g.eo("ytcsi.debug",p),g.eo("ytcsi.reference",{}));return p}; KFv=function(p,a,l,y,S){if(!lq(a))return new N("Invalid PlayerBytesAdLayoutRenderer");const n=g.K(a.renderingContent,oZ);if(!n||n.durationMilliseconds===void 0)return new N("Invalid endcap renderer");const V={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,qO:"adapter"};y=[new BH(n.durationMilliseconds),new cH({impressionCommands:void 0,abandonCommands:n.abandonCommands?[{commandExecutorCommand:n.abandonCommands}]:void 0,completeCommands:n.completionCommands}),new GL(y), new r$("LAYOUT_TYPE_ENDCAP")];S&&(y.push(new qL(S.O9.adPodIndex-1)),y.push(new w9(S.O9.adPodIndex)),y.push(new f9(S.adPodSkipTarget??-1)));return{...V,...QO,renderingContent:a.renderingContent,clientMetadata:new L0(y),Xh:n.skipPings?new Map([["skip",n.skipPings]]):new Map,ao:Yv(l,p)(V),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData}}; D_M=function(){if(Bl===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(a){}a:{try{var p=!!self.localStorage}catch{p=!1}if(p&&(p=g.u7(`${g.$K()}::${"yt-player"}`))){Bl=new e4M(p);break a}Bl=void 0}}return Bl}; H2v=function(p){const a=[new Iw(p.LU),new bkZ(p.GE),new GL(p.adPlacementConfig),new d_(p.videoLengthSeconds),new Gc(p.QU)];p.instreamAdPlayerOverlayRenderer&&a.push(new PF(p.instreamAdPlayerOverlayRenderer));p.playerOverlayLayoutRenderer&&a.push(new Lq(p.playerOverlayLayoutRenderer));p.HV&&a.push(new VE(p.HV));return a}; R$=function(p,a){if(TT(p.EO.get())){let l=p.U.get(a)||0;l++;p.U.set(a,l);return`${a}_${l}`}return g.NM(16)}; Hu=function(p){let a=p(),l=a&127;if(a<128)return l;a=p();l|=(a&127)<<7;if(a<128)return l;a=p();l|=(a&127)<<14;if(a<128)return l;a=p();return a<128?l|(a&127)<<21:Infinity}; R4f=function(p,a,l,y=!0){if(l&&!p.Ws.has(a.Gm)){var S=a.startTime,n=[];for(var V=0;V=Z,z=p.r7.isManifestless,V?(p.L?.S5.event==="predictStart"&&p.L.Gml.namespace==="ad"); for(const l of a)if(l.start/1E3>p.getCurrentTime())return l.start/1E3;return Infinity}; DR=function(p,a,l,y){p.Dd&&(p.playbackStartPolicy=a,p.zv=l,p.qF=y)}; Ok$=function(p,a){if(JVM(p,a))return null;if(a.reason==="m"&&a.isLocked())return Kt(p,a),p.K=p.j.length-1,eM(p),bH(p),p.N=p.N||p.U!==p.nextVideo,p.U=p.nextVideo,new c6(p.S,p.U,a.reason);a.reason==="r"&&(p.C=-1);Kt(p,a);bH(p);if(a.reason==="r"&&p.nextVideo===p.U)return new c6(p.S,p.nextVideo,a.reason);p.U&&p.nextVideo&&H3(p,p.U.info)rw(p,p.next(l))),l=>rw(p,p.throw(l)))}; xi=function(p,a,l,y,S){WFr(p,a,l,void 0,y,S)}; Yj=function(){return"https://play.google.com/log?format=json&hasfast=true"}; U_F=function(p,a,l){b4(p);const y=p.DI;let S=y[rD]|0;if(a==null)return wD(y,S,3),p;if(!Array.isArray(a))throw xU();let n=a===wW?7:a[rD]|0,V=n;var Z=BT(n);let z=Z||Object.isFrozen(a);Z||(n=0);z||(a=[...a],V=0,n=XV(n,S),z=!1);n|=5;Z=(4&n?512&n?512:1024&n?1024:0:void 0)??0;for(let d=0;d{S=S.match("_rid")?S.split("_rid")[0]:S;typeof n==="number"&&(n=JSON.stringify(n));y.requestIds?y.requestIds.push({endpoint:S,id:n}):y.requestIds=[{endpoint:S,id:n}]}; for(const [y,S]of Object.entries(p)){p=y;const n=S;switch(p){case "GetBrowse_rid":l(a,p,n);break;case "GetGuide_rid":l(a,p,n);break;case "GetHome_rid":l(a,p,n);break;case "GetPlayer_rid":l(a,p,n);break;case "GetSearch_rid":l(a,p,n);break;case "GetSettings_rid":l(a,p,n);break;case "GetTrending_rid":l(a,p,n);break;case "GetWatchNext_rid":l(a,p,n);break;case "yt_red":a.isRedSubscriber=!!n;break;case "yt_ad":a.isMonetized=!!n}}return a}; ZP=function(p){var a=p.data;var l=p.offset+p.L;a=a.getUint32(l)*4294967296+a.getUint32(l+4);p.L+=8;return a}; Ox=function(p){return p?(p=p.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Bs(p):null:null}; bj=function(p){return p.isLive&&(0,g.h)()-p.Hs>=p.Sl}; ww=function(p,a){const l=[];for(const y of p.Ag.values()){const S=y.trigger;S instanceof PH&&S.triggeringLayoutId===a&&l.push(y)}l.length?p1(p.w5(),l):Q("Survey is submitted but no registered triggers can be activated.")}; $x=function(p,a){p.L.objectStoreNames.contains(a)&&p.L.deleteObjectStore(a)}; DPe=function(p,a){const l=p.element.getElementsByTagName("a");for(let y=0;y49?"p60":y>32?"p48":""}`;l=Ut(l,y,n);S>0&&(l=Math.min(l,S));!xx.has(a)&&zd().includes(a)?(y=oS(),+y[a]>0&&(l=Math.min(+y[a],l)),y[a]!==l&&(y[a]=l,g.V2("yt-player-performance-cap",y,2592E3))):xx.has(a)||n==null?(y=zd().slice(),y.includes(a)||(y.push(a),g.V2("yt-player-performance-cap-active-set",y,2592E3)),zS.set(a,l)):(xx.add(a),n?.set(a,l));p.Lz.n9()}; VD=function(p,a,l,y){const S=F3(a,l),n=p.R4.X.get(S)||null;if(!n||n.nz())return null;p.R4.X.remove(S);if(n.getPlayerState().L(128))return n.dispose(),null;if(n===p.GR({playerType:a}))return p.QQ.infoGel({isCacheHit:!0}),n;if((n.getVideoData().oauthToken||l.oauthToken)&&n.getVideoData().oauthToken!==l.oauthToken)return null;a===1&&(a=p.zm().getVideoData(),D6(a)&&a.isAd()&&y||DH(p));y||p.Kg(n,!0);p.QQ.infoGel({isCacheHit:!0});return n}; HOv=function(p){p.G=!0;p.X=!0;p.D=-1;lx(p,Infinity)}; qz=function(p){return p.D()}; g.pf=function(p,a){const l=new T_r(4096);a(l,p);return new Uint8Array(l.L.buffer,l.L.byteOffset,l.pos)}; T9=function(p){return{viewability:p.L,googleViewability:p.S}}; Xfr=function(){ND(N_O);const p=ND(ry);p.L!=null&&p.L.L?f2o(p.L.L):nP().update(bn)}; ZI=function(p){return p.B.O().experiments.Cz("enable_desktop_player_underlay")}; xkA=function(p){const a=document.createElement("a");g.Uz(a,p);p=a.href.replace(/^[a-zA-Z]+:\/\//,"//");return`js-${HY(p)}`}; sLq=function(p,a){p.tD?(a=a.vss_host||"s.youtube.com",a==="s.youtube.com"&&(a=Ct(p.Rd)||"www.youtube.com")):a="video.google.com";return a}; UPE=function(p,a,l){var y=0;if(a.info.L.info.bC()&&!Enh(a))return 0;if(p.jl&&!p.Bi()){let d=0;l&&g.Ta(a.info.L.info)?d=l-p.U:a.info.L.info.bC()&&(d=p.K);var S=a.info.Gm;l=tr(a,p.policy.Ro);var n=p.jl;const {P$:G,Q3:B}={P$:n.ac,Q3:n.K};n=Math.abs(B-d)>.02;if((S===G||S>G&&S>p.ac)&&n){y=Math.max(.95,Math.min(1.05,(l-(B-d))/l));if(g.Ta(a.info.L.info))z7$(g.N7(a),y);else if(a.info.L.info.bC()&&(n=d-B,!g.Ta(a.info.L.info)&&(a.info.L.info.bC(),y=new UW(g.N7(a)),S=a.X?y:new UW(new DataView(a.info.L.S.buffer)), tr(a,!0)))){var V=n*1E3,Z=cu(S);S=y.pos;y.pos=0;if(y.L.getUint8(y.pos)===160||rH(y))if(MU(y,160))if(mT(y,!0),MU(y,155)){n=y.pos;var z=mT(y,!0);y.pos=n;V=V*1E9/Z;Z=Q9(y);V=Z+Math.max(-Z*.7,Math.min(Z,V));V=Math.sign(V)*Math.floor(Math.abs(V));if(!(Math.ceil(Math.log(V)/Math.log(2)/8)>z)){y.pos=n+1;for(n=z-1;n>=0;n--)y.L.setUint8(y.pos+n,V&255),V>>>=8;y.pos=S}}else y.pos=S;else y.pos=S;else y.pos=S}y=tr(a,p.policy.Ro);y=l-y}y&&a.info.L.info.bC()&&p.loader.Xu("webmDurationAdjustment",{durationAdjustment:y, videoDrift:d+y,audioDrift:B})}return y}; QLZ=function(p){p.UO?.a$?.itagDenylist&&p.F1(p.UO?.a$.itagDenylist);p.UO?.playbackStartPolicy&&DR(p.policy,p.UO?.playbackStartPolicy,3,p.UO?.kz());if(p.policy.rA){var a=p.K1();(a=a?p.UO?.mR.get(a):void 0)&&p.S.pE(a)}p.r7.N||(a=p.UO?.R0,a?.Mw&&a?.eP&&p.r7.va&&Vx(p.r7,a.Mw,a.eP));p.UO?.ri&&(a=p.UO.ri.get(p.K1()||""))&&p.r7&&a.formatId&&(p=p.r7.U.get(Sh(a.formatId)))&&(p.info.debugInfo=a.debugInfo)}; a1$=function(p){if(p.S?.isLocked())return p.videoInfos;const a=bx(p.L);let l=g.B4(p.videoInfos,y=>y.Sb>p.mO.Sb?!1:!a.has(y.id)); hgr(p.L)&&(l=g.B4(l,y=>y.video.width<=854&&y.video.height<=480)); return l}; EI=function(p){p.pyz=!0;return p}; ITA=function(p,a){for(const l of a.keys()){const y=a.get(l);if(y.length===0)continue;g.cL(y,(V,Z)=>Z.maxFramerate-V.maxFramerate); const S=[y[0]];let n=0;for(let V=1;V0)return 2;if(a<0)return 1;l=p.VL();return a{q2r(a,y,l,n);p.status="rs"})}else p.error("drm.net",2,"t.r;ic.0")}; jN=function(p){let a=0,l=p.L;const y=l+10,S=p.S;for(;l{const S=$a(y,p.Fz.L.info,PO(p,!0),l,p.policy.Tm,p.j,a,p.crypto);Lz(p,S,!0)})}else Xi(p,new WR("Woffle: Expect always re-mark currentChunkOffset at EOS")); else Xi(p,new WR("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; dH=function(p,a){if(p.byteLength-a<8)return!1;var l=p.getUint32(a);if(l<8||p.byteLength-a122)return!1}return!0}; fJ$=function(p,a,l){if(WM(2,p.L))return!1;var y=$O(l,tZ(33,p.L));if(y.timedOut<1&&y.L<1)return!1;y=y.timedOut+y.L;p=WE(p,a);l=$O(l,tZ(38,p));return l.timedOut+l.L+0=n)if(V=p[n],V!=null&&typeof V==="object"&&V.constructor===Object)l=V[a],Z=!0;else if(S===n)l=V;else return;else l=p[S];if(y&&l!=null){y=y(l);if(y==null)return y;if(!Object.is(y,l))return Z?V[a]=y:p[S]=y,y}return l}}; a5v=function(p,a,l=!1){g.MD(a);p.kE.lastError="player.exception";p.errorMessage=`${a.name}_${a.message}`;l?g.XM(()=>{Ij(p.kE)}):Ij(p.kE)}; JZ=function(){Rj===void 0&&(Rj=skM());return Rj}; g.w7=function(p,a){const l=g.Ln();a!==l[p]&&(a!==0?l[p]=a:delete l[p],g.itF(l))}; l5$=function(p,a){if(a.L.video.quality==="auto"&&a.getInfo().j()&&p.videoData.zn)for(const l of p.videoData.zn)if(l.getHeight()===p.XM&&l.L.video.quality!=="auto")return l.getInfo();return a.getInfo()}; psv=function(p,a){return`${p}${"|"}${a?"v":"a"}`}; kx=function(p,a,l){const y=p.sO.get().getCurrentTimeSec(1,!1);p.EO.get().B.O().Mc()&&W8(p.uT.get(),"sdai",`onopp.1;evt.${l.event};start.${l.startSecs.toFixed(3)};d.${l.Hy.toFixed(3)}`);Cv(p.S.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",()=>{var S=p.U.get(),n=a.adPlacementRenderer.renderer.adBreakServiceRenderer,V=a.contentCpn,Z=a.adPlacementRenderer.adSlotLoggingData;uU(p.EO.get());var z=p.uT;var d=S.EO.get();d=g.ak(d.B.O().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var G=S.EO.get();var B=g.ak(G.B.O().experiments,"min_prefetch_offset_sec_for_livestream_optimization");{G=l.startSecs*1E3;G={DU:new ft(G,G+l.Hy*1E3),S0:!1,cueProcessedMs:y*1E3};const w=l.startSecs+l.Hy;if(y===0)G.XW=new ft(0,w*1E3);else{B=l.startSecs-B;var c=B-y;G.XW=c<=0?new ft(B*1E3,w*1E3):new ft(Math.floor(y+Math.random()*Math.min(c,d))*1E3,w*1E3)}d=G}n=pz(S,n,V,d,Z,[new y$o(l)]);OI(S.EO.get())&&W8(z.get(),"abrsm",`cpi.${l.identifier};cps.${l.startSecs};cpd.${l.Hy};cts.${y};rbf.${d.XW.start}`); z.get().B.Do(l.startSecs-y,d.XW.start/1E3-y);return[n]})}; d4O=function(p){return p.array.slice(nGr(p,0x7ffffffffffff),p.array.length)}; C8=function(...p){p=arguments;p.length>1?s0[p[0]]=p[1]:p.length===1&&Object.assign(s0,p[0])}; EZo=function(p){let a=p[Sj$];if(!a){const l=hO(AO,g6,Y2,p);a=(y,S)=>um(y,S,l); p[Sj$]=a}return a}; Or=function(p,a){return{start(l){return p[l]},end(l){return a[l]},length:p.length}}; C8q=function(p){var a=Qkq;const l=Xo();if(!l)return 0;const y=l.subscribe(a.toString(),(S,n)=>{var V=g.o1("ytPubsub2Pubsub2SkipSubKey");V&&V==y||(V=()=>{if(A8[y])try{if(n&&a instanceof sq&&a!=S)try{{var Z=a.L,z=n;if(!z.args||!z.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");let d;try{if(!Z.Vn){const G=new Z;Z.Vn=G.version}d=Z.Vn}catch(G){}if(!d||z.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{n=Reflect.construct(Z, g.WW(z.args))}catch(G){throw G.message="yt.pubsub2.Data.deserialize(): "+G.message,G;}}}catch(d){throw d.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+d.message,d;}p.call(window,n)}catch(d){g.Wp(d)}},ngO[a.toString()]?g.mA()?g.XY.zD(V):g.jQ(V,0):V())}); A8[y]=!0;Me[a.toString()]||(Me[a.toString()]=[]);Me[a.toString()].push(y);return y}; Z3Z=function(p,a,l){if(l){var y="";uVv(p,a)&&(y=a,p.api.O().Ic=a);y&&w8r(p,y)&&(Vnf(p.api,y),HW(m7(p.api.O(),p.api.getVideoData()?.G()),S=>{var n=y;jMO(S)!==n&&$CZ(p,Sd(S),{stringValue:n})}))}}; gf=function(p,a,l,y,S,n){l=new L0([new ogh(l),new GL(y)]);a=d$(p.S.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",a);y={layoutId:a,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",qO:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xh:new Map,layoutExitNormalTriggers:[new wt(V=>R$(p.S.get(),V),S)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:l,ao:n(y),adLayoutLoggingData:void 0}}; ex=function(p,a,l,y){let S="fmt.unplayable",n=1;l===5||l===3?(S="fmt.unparseable",p.policy.L?!y.L.info.video||bx(p.j.L).size>0||t0(p.j,y.L):!y.L.info.video||bx(p.L.X).size>0||Ib(p.L,y.L)):l===2&&(p.Lx<15?(p.Lx++,S="html5.invalidstate",n=0):S="fmt.unplayable");y=Av(y);y.mrs=p.Kz?.U();y.origin=a;y.reason=l;y.trg="appenderr";p.handleError(S,y,n)}; N8E=function(){if(j8)return j8();j8=g.Wl("LogsDatabaseV2",{WO:{LogsRequestsStore:{ID:2}},shared:!1,upgrade(p,a,l){a(2)&&g.lU(p,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});a(3);a(5)&&(l=l.objectStore("LogsRequestsStore"),l.L.indexNames.contains("newRequest")&&l.L.deleteIndex("newRequest"),g.Hl(l,"newRequestV2",["status","interface","timestamp"]));a(7)&&$x(p,"sapisid");a(9)&&$x(p,"SWHealthLog")},version:9});return j8()}; gzM=function(p,a,l,y,S){if(!g.K(p.renderingContent,Rw))return new N("AdsEngagementPanelSectionListViewModel is missing");const n={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,qO:"core"};a=LG(p,a,l);return a instanceof N?a:{...n,renderingContent:p.renderingContent,Xh:new Map([]),...a,ao:Yv(y,S)(n),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new L0([])}}; zHZ=function(p,a){var l=p.L;l=l.L?l.L.S5:null;if(p.policy.w7&&l)return l.startSecs+l.Hy+15;a=fu(p.loader,a);p.policy.Lx>0&&(l=((0,g.h)()-p.loader.E7)/1E3,a=Math.min(a,p.policy.Lx+p.policy.dE*l));a=p.loader.getCurrentTime()+a;return p.policy.Dk&&(l=ftE(p.loader)+p.policy.Dk,l=0&&Sl.getInfo())))}; Geh=function(p){p.U.length?p.S=g.V$(g.V$(p.U).info.Yv):p.j.S.length?p.S=p.j.JD().info:p.S=gt(p)}; BHO=function(p){var a="Off 10 15 20 30 45 60".split(" ");p.B.getVideoData()?.isLivePlayback||a.push("End of video");const l=p.B.getPlaylist();l&&l.listId?.type!=="RD"&&a.push("End of playlist");p.j(g.Nx(a,p.X));p.Bs=g.Rr(a,p.X,p);a=p.X("End of video");p.options[a]&&g.Pz(p.options[a],p.N)}; c$A=function(p,a){switch(p){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 a(p),8}}; r$F=function(){return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}}; YYv=function(p,a,l,y,S,n,V){const Z={layoutId:p.adLayoutMetadata.layoutId,layoutType:p.adLayoutMetadata.layoutType,qO:"core"};a=LG(p,a,l);if(a instanceof N)return a;l=[];l.push(new GL(Fz(n)));n==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&V!==void 0&&l.push(new Iw(V));return{...Z,renderingContent:p.renderingContent,Xh:new Map([["impression",g.K(p.renderingContent,Lk)?g.K(p.renderingContent,Lk)?.impressionPings||[]:g.K(p.renderingContent,dq)?g.K(p.renderingContent,dq)?.impressionPings||[]:g.K(p.renderingContent, PL)?g.K(p.renderingContent,PL)?.impressionPings||[]:[]]]),...a,ao:Yv(y,S)(Z),clientMetadata:new L0(l),adLayoutLoggingData:p.adLayoutMetadata.adLayoutLoggingData}}; sI=function(p,a,l){const y=[];y.push(new Ne(p.L,l));a&&y.push(a);return y}; UI=function(p,a){p.A("html5_webpo_bge_ctmp")&&p.api.Xu(a,{hwpo:!!p.S,hwpor:p.L})}; dk=function(p,a,l,y){b4(p);const S=p.DI;let n=S[rD]|0;if(y==null){const V=Jd(S);if(q6(V,S,n,l)===a)V.set(l,0);else return p}else n=WN(S,n,l,a);wD(S,n,a,y);return p}; tZM=function(p,a,l,y,S,n,V){const Z=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER"),z=d$(p.S.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Z);y=wuF(p,y,n,V,z);if(y instanceof N)return y;V=[new aa(p.L,Z)];S=[new y5(p.L,n),new aa(p.L,S),new QX(p.L,S)];l=Yv(l,{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:y,slotFulfillmentTriggers:V,slotExpirationTriggers:S});p=p.U.get();n={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",qO:"core"};a={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Xh:new Map,layoutExitNormalTriggers:[new $RZ(p.L,z,a.durationMs)],layoutExitSkipTriggers:[new PRq(p.L,z,a.durationMs)],layoutExitUserCancelledTriggers:[new LsO(p.L,z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],qO:"core",clientMetadata:new L0([new Xuo(a)]),ao:l(n)};return{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:y,slotFulfillmentTriggers:V,slotExpirationTriggers:S,clientMetadata:new L0([new Z1(a)])}}; $HA=function(p){p=YF(p);return new g.g3(p.left,p.top)}; Ys=function(p,a,l,y){for(const S of y)y=p.uN.RD.get(S.triggerType),y.q7(l,S,a.slot,a.layout?a.layout:null),a.N.set(S.triggerId,y)}; xRr=function(p,a){return Ci(p.clientMetadata,"metadata_ad_video_is_listed")?p.clientMetadata.t9("metadata_ad_video_is_listed"):a?a.isListed:(Q("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; Au=function(p){var a=p.app.O().controlsType==="3"&&!p.ZJ&&rr(p)&&!p.app.zo||!1;p.ju.controls=a;p.ju.tabIndex=a?0:-1;p.app.O().j&&(p.ju.ariaHidden="true");a?p.ju.removeEventListener("focus",p.zQ):p.ju.addEventListener("focus",p.zQ)}; l6=function(p,a){const l=(a?a:p.EE()).pJ;p.QQ.tick("ep_pr_r");if(l!=null&&(Znf(p.playlist,l),p.BY))p.playlist.onReady(()=>{yT(p,a)})}; sX=function(p,a){Bf(a,(l,y)=>{l===void 0||p.add(y,l,0)}); return p}; kqM=function(p,a=VH){if(p instanceof g0)return p;for(let l=0;la.adLifecycleCommand?wRM(a.adLifecycleCommand):!1)}; Mhr=function(p){({instreamSurveyAdRenderer:p}=p?.playerOverlay||{});return p?p.playbackCommands&&p.questions&&p.questions.length===1?VTr(g.K(p.questions[0],rj)?.surveyAdQuestionCommon||g.K(p.questions[0],wj)?.surveyAdQuestionCommon):!1:!1}; CRZ=function(p,a,l,y,S,n=!0){const V=p.By();if(!V)return n&&p.getVideoData().isLivePlayback&&p.AT.push({id:a,VB:l,P5:y}),!1;n=V-p.getCurrentTime();return Ef(p,a,l-n,y-n,void 0,void 0,S)}; g.gw=function(p){p=p.DN();const a=p.yr.get("endscreen");return a&&a.BL()?!0:p.JQ()}; zL=function(p,a,l,y){if(p.EO.get().vX(a.kind==="AD_PLACEMENT_KIND_START"))if(l===void 0)Q("Expected SSAP layout ID in renderer",void 0,void 0,{caller:y});else return l}; g.b7=function(p,a,l,y="youtube.com",S=!1){xL||Fo.set(""+p,a,{Wr:l,path:"/",domain:y,secure:S})}; Yx=function(p){p.L!=null&&p.N!==-1&&(p.L.h5(p.N),p.L.h5(p.ac),p.ac=-1,p.N=-1)}; GJf=function(p){if(g.nU("enable_web_tiered_gel")){p=G2e[p||""];var a=Fh().resolve(EV(C2))?.Q8()?.loggingHotConfig?.eventLoggingConfig?.payloadPolicies;if(a)for(let l=0;l0&&(a.request={internalExperimentFlags:l});rk(p,void 0,a);wk(void 0,a);xQ(void 0,a);Ff(p,void 0,a);Eb(void 0,a);g.nU("start_client_gcf")&&Ce(void 0,a);g.R("DELEGATED_SESSION_ID")&& !g.nU("pageid_as_header_web")&&(a.user={onBehalfOfUser:g.R("DELEGATED_SESSION_ID")});!g.nU("fill_delegate_context_in_gel_killswitch")&&(p=g.R("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(a.user={...a.user,serializedDelegationContext:p});p=g.R("INNERTUBE_CONTEXT");g.nU("enable_persistent_device_token")&&p?.client?.rolloutToken&&(a.client.rolloutToken=p?.client?.rolloutToken);p=Object;l=p.assign;var y=a.client,S=g.R("DEVICE","");const n={};for(const [V,Z]of Object.entries(cd(S))){S=V;const z= Z;S==="cbrand"?n.deviceMake=z:S==="cmodel"?n.deviceModel=z:S==="cbr"?n.browserName=z:S==="cbrver"?n.browserVersion=z:S==="cos"?n.osName=z:S==="cosver"?n.osVersion=z:S==="cplatform"&&(n.platform=z)}a.client=l.call(p,y,n);return a}; qe=function(p,a,l){if(!a)return p.length>=1?p[p.length-1]:null;for(const y of p)if(y.width&&y.height&&(l&&y.width>=a||!l&&y.height>=a))return y;for(a=p.length-1;a>=0;a--)if(l&&p[a].width||!l&&p[a].height)return p[a];return p[0]}; vgM=function(p){if(p.L)return p.L;if(p.experimentIds.length<=1)return p.L=p.experimentIds,p.L;const a=[...p.experimentIds].map(l=>Number(l)); a.sort();for(let l=a.length-1;l>0;--l)a[l]-=a[l-1];p.L=a.map(l=>l.toString()); p.L.unshift("v1");return p.L}; C_=function(p,a,l){let y=p.Hs;GD||l||p.K==-1||(y+=a-p.K);return y}; g.J0=function(p){return{value:p,done:!1}}; var VbO=function(p,a){return Mp[r[12]](this,17,p,a)}; U3=function(p,a,l){p.D[a.J5()]=a;p.j=a;l&&(p.G=a);fD(p)}; Tl=function(p){return new ff(p.substring(0,2),p.substring(2))}; eHO=function(p,a){g.Ir(a.L,l=>{p.add(l.S,l.L,Ksq(l))})}; b3M=function(p,a,l,y,S,n,V,Z,z,d,G,B,c){l=Iur(a,l,y,n,V,Z,z,d,G,B,c);W3E(n)?(y=gOr(a,p),p=fO(a.S.get(),"SLOT_TYPE_IN_PLAYER"),n=d$(a.S.get(),"LAYOUT_TYPE_SURVEY",p),Z=cJ(a,y,Z),a=[...Z.slotExpirationTriggers,new Sc(a.L,n)],p=l({slotId:Z.slotId,slotType:Z.slotType,slotPhysicalPosition:Z.slotPhysicalPosition,slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers,slotExpirationTriggers:a,qO:Z.qO},{slotId:p,layoutId:n}),S=p instanceof N?p:{dK:{...Z,slotExpirationTriggers:a, clientMetadata:new L0([new Z1(p.layout)]),adSlotLoggingData:S},TO:p.TO}):S=x_r(a,p,Z,S,l);return S instanceof N?S:[...S.TO,S.dK]}; I5h=function(p,a){if(p=p.flags.get(`${a}`))if(p=p.replace(/\[ *(.*?) *\]/,"$1"))return p.split(",").map(Number);return[]}; pV=function(p){let a=null;try{a=p.toLocaleString("es",{style:"percent"})}catch(l){a=p.toLocaleString(void 0,{style:"percent"})}return a}; RHZ=function(p,a){p.jr()?a=0:p.uc==-1?a=0:(a-=p.uc,a=a>Math.max(1E4,p.U/3)?0:a);var l=p.K(p)||{};l=l.currentTime!==void 0?l.currentTime:p.N;const y=l-p.N;let S=0;y>=0?(p.Sl+=a,p.QY+=Math.max(a-y,0),S=Math.min(y,p.Sl)):p.Rc+=Math.abs(y);y!=0&&(p.Sl=0);p.ac==-1&&y>0&&(p.ac=c0>=0?Date.now()-cg-c0:-1);p.N=l;return S}; keF=function(p){p=p||KW();let a=new Z0M(g.mm.location.href,!1),l=null;const y=p.length-1;for(var S=y;S>=0;--S){var n=p[S];!l&&uth.test(n.url)&&(l=n);if(n.url&&!n.L){a=n;break}}S=null;n=p.length&&p[y].url;a.depth!==0&&n&&(S=p[y]);return new O3M(a,S,l)}; mur=function(p,a,l,y,S,n,V){if(p.L)return p.L;const Z={},z=new Set,d={};if(bW(y)){for(var G in y.L)y.L.hasOwnProperty(G)&&(p=y.L[G],d[p.info.mT]=[p.info]);return d}G=Vb(a,y,Z);n&&S({aftsrt:vJ(G)});const B={};for(const c of Object.keys(G)){const w=c;for(const X of G[w]){const v=X.itag,I=`${w}_${X.video?.fps||0}`;if(B.hasOwnProperty(I)){B[I]===!0?d[w].push(X):Z[v]=B[I];continue}const u=Z6(a,X,l,y.isLive,z);u!==!0?(V.add(w),Z[v]=u,u==="disablevp9hfr"&&(B[I]="disablevp9hfr")):(d[w]=d[w]||[],d[w].push(X), B[I]=!0)}}n&&S({bfflt:vJ(d)});for(const c in d)d.hasOwnProperty(c)&&(y=c,d[y]&&d[y][0].n1()&&(d[y]=d[y],d[y]=jbh(a,d[y],Z),d[y]=CoZ(d[y],Z)));n&&Object.keys(Z).length>0&&S({rjr:ki(Z)});for(const c of z.values())(a=l.j.get(c))&&--a.C$;n&&S({aftflt:vJ(d)});p.L=g.xn(d,c=>!!c.length); return p.L}; RV=function(p,a){this.S=p;this.L=a+"::"}; MnO=function(p){return new g$(p.type,p.L,p.range,"getEmptyStubBefore"+p.K,p.Gm,p.startTime,0,p.S,0)}; mRv=async function(p,a){try{return await navigator.clipboard.writeText(a),!0}catch{let l=!1;const y=g.HA("TEXTAREA");y.value=a;y.setAttribute("readonly","");p=p.api.getRootNode();p.appendChild(y);if(hX){const S=window.getSelection();S.removeAllRanges();const n=document.createRange();n.selectNodeContents(y);S.addRange(n);y.setSelectionRange(0,a.length)}else y.select();try{l=document.execCommand("copy")}catch(S){}p.removeChild(y);return l}}; y1=function(p,a){const l=Date.now()+a,y=async()=>{const S=l-Date.now();S<1E3?await Gf$(p):cR(y,0,Math.min(S,6E4))}; y()}; g.s6=function(p,a){return Array.prototype.splice.call(p,a,1).length==1}; VmA=function(p,a,l,y,S){const n=wr(p,a);if(!n){a.playerVars.prefer_gapless=!0;var V=new g.Uj(p.Y,a.playerVars);V.ME=a.ME;p.api.CN(V,a.playerType)}V=p.app.zm();n||V.addCueRange(a.bA.Tp);V.seekTo(l,{qE:"application_timelinemanager",...y});jo(p,S)}; a5=function(p){p.N&&(p.isToggled()?(g.k1(p.D,!1),g.k1(p.X,!0),p.S.setAttribute("aria-checked",!0)):(g.k1(p.D,!0),g.k1(p.X,!1),p.S.setAttribute("aria-checked",!1)))}; tnv=function(p){p.length===1||g.K0(p,l=>!!l.range); for(var a=1;aa.L&&a.reason==="b";y||S||l?(p.Lz.lW({reattachOnConstraint:y?"u":S?"drm":"perf",lo:a.S,up:a.L}),p.policy.QS||(p.j.L.S= !1)):(p.policy.QS&&(p.j.L.S=!1),dJ(p))}}else!JVM(p.L,a)&&p.videoTrack&&(S=p.L.L,yw(p,Ok$(p.L,a)),I$(p),l=a.isLocked()&&a.reason==="m"&&p.L.N,y=p.policy.OY&&a.reason==="l"&&N3(p.videoTrack),a=S.L>a.L&&a.reason==="b",S=p.L.ac&&!i8(),l||y||a||S?p.Lz.lW({reattachOnConstraint:l?"u":y?"drm":S?"codec":"perf"}):dJ(p))}}; g.C0=function(p,a){let l,y;for(let S=1;S=nV(Z)+y):a=p.getDuration()>=Z.getDuration(),a=!a;a&&geO(l)&&(a=p.jl,LC?(y=nao(l),Z=1/y,y=nV(p,y),a=nV(a)+Z-y):a= a.getDuration()-p.getDuration(),a=1+a/l.info.duration,z7$(g.N7(l),a))}else{y=!1;p.D||(PrZ(l),l.L&&(p.D=l.L,y=!0,n=l.info,V=l.L.nO,n.K="updateWithEmsg",n.Gm=V,n=l.L,n.G&&(V=p.X.index,V.X=!n.G,V.D="emsg"),n=l.info.L.info,V=g.N7(l),g.Ta(n)?Vw(V,1701671783):n.bC()&&Sq([408125543],307544935,V)));a:if((n=tr(l,p.policy.Ro))&&Enh(l))V=UPE(p,l),p.K+=V,n-=V,p.UO+=n,p.U=p.policy.s2?p.U+n:NaN;else{if(p.policy.qB){if(V=z=p.loader.P1(g.wH(l),1),p.U>=0&&l.info.type!==6){if(p.policy.s2&&isNaN(p.Rc)){g.tX(new g.Qm("Missing duration while processing previous chunk", l.info.HZ()));p.loader.isOffline()&&!p.policy.sU||H3r(p,l,V);D5(p,"m");break a}S=z-p.U;var d=S-p.K;const G=l.info.Gm,B=p.Ws?p.Ws.Gm:-1,c=p.Ic,w=p.Rc,X=p.policy.DH&&S>p.policy.DH,v=Math.abs(d)>10,I=Math.abs(p.U-V)<1E-7;if(Math.abs(d)>1E-4){p.Bs+=1;const u=p.D?.U();d={audio:`${+p.Bi()}`,sq:G.toFixed(),sliceStart:z,lastSq:B.toFixed(),lastSliceStart:c,lastSliceDuration:w,totalDrift:(S*1E3).toFixed(),segDrift:(d*1E3).toFixed(),skipRewrite:`${+(X||v)}`};u?.length&&(d.adCpn=u[0]);p.loader.handleError("qoe.avsync", d);p.ac=G}X||v||I||(V=p.U);z=UPE(p,l,z);n-=z;p.K=S+z}}else V=isNaN(p.U)?l.info.startTime:p.U;H3r(p,l,V)&&(p.UO+=n,p.U=V+n,p.policy.QR&&p.Bs>=p.policy.QR&&(p.Bs=0,p.loader.lW({resetForRewrites:"count"})))}p.Ws=l.info;p.Rc=rp(l);l.U>=0&&(p.Ic=l.U);if(y&&p.D){y=l0O(p,!0);ZF(l.info,y);p.L&&ZF(p.L.info,y);for(Z of a)p.policy.X&&Z.Gm!==p.D?.nO||ZF(Z,y);(l.info.j||p.L&&p.L.info.j)&&l.info.type!==6||(p.N=y,p.policy.S?(a=eA(p.D),p.loader.m5(p.X,y,a)):(a=p.loader,a.r7.isManifestless&&mUM(a,y,null,!!p.X.info.video)), p.policy.DF||Zn(p))}}DCO(p,l);p.timestampOffset&&NtM(l,p.timestampOffset)}; TL=async function(p){p=await qu(p);let a=void 0;await g.hs(p,["hotConfigStore"],{mode:"readwrite",nx:!0},l=>g.hr(l.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},y=>{a=y.getValue()})); return a}; xj=function(p,a=[]){g.cL(p,(l,y)=>{const S=y.Sb-l.Sb;if(!l.n1()||!y.n1())return S;let n=y.video.height*y.video.width-l.video.height*l.video.width;!n&&a&&a.length>0&&(l=a.indexOf(l.mT)+1,y=a.indexOf(y.mT)+1,n=l===0||y===0?y||-1:l-y);n||(n=S);return n})}; I_M=function(p){if(!p)throw Error("Fetching Attestation challenge returned falsy");if(!p.challenge)throw Error("Missing Attestation challenge");const a=p.challenge,l=qQ(a);if("c1a"in l&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("Expected bg challenge but missing.");return{...p,YW:a,LT:l}}; sAe=function(p){var a="",l=i3E(p);l.indexOf("//")===0&&(l=p.Y.protocol+":"+l);const y=l.lastIndexOf("/base.js");y!==-1&&(a=l.substring(0,y+1));if(l=Error().stack)if(l=l.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))l=l[1],l.includes(a)||g.tX(Error("Player module URL mismatch: "+`${l} vs ${a}.`));a=new THe(p.pz,a);NHr(a,{destroyed:()=>{p.onApiChange()}}); return a}; URE=function(p){Y(p,"getInternalApiInterface",p.getInternalApiInterface);Y(p,"addEventListener",p.C);Y(p,"removeEventListener",p.bf);Y(p,"cueVideoByPlayerVars",p.Sl);Y(p,"loadVideoByPlayerVars",p.zn);Y(p,"preloadVideoByPlayerVars",p.Wy);Y(p,"getAdState",p.getAdState);Y(p,"sendAbandonmentPing",p.sendAbandonmentPing);Y(p,"setLoopRange",p.setLoopRange);Y(p,"getLoopRange",p.getLoopRange);Y(p,"setAutonavState",p.setAutonavState);Y(p,"seekTo",p.r$);Y(p,"seekBy",p.Me);Y(p,"seekToLiveHead",p.seekToLiveHead); Y(p,"requestSeekToWallTimeSeconds",p.requestSeekToWallTimeSeconds);Y(p,"seekToStreamTime",p.seekToStreamTime);Y(p,"prefetchKeyPlay",p.prefetchKeyPlay);Y(p,"startSeekCsiAction",p.startSeekCsiAction);Y(p,"getStreamTimeOffset",p.getStreamTimeOffset);Y(p,"getVideoData",p.Ha);Y(p,"setInlinePreview",p.setInlinePreview);Y(p,"getAppState",p.getAppState);Y(p,"updateLastActiveTime",p.updateLastActiveTime);Y(p,"setBlackout",p.setBlackout);Y(p,"setUserEngagement",p.setUserEngagement);Y(p,"updateSubtitlesUserSettings", p.updateSubtitlesUserSettings);Y(p,"getPresentingPlayerType",p.U);Y(p,"canPlayType",p.canPlayType);Y(p,"updatePlaylist",p.updatePlaylist);Y(p,"updateVideoData",p.updateVideoData);Y(p,"updateEnvironmentData",p.updateEnvironmentData);Y(p,"sendVideoStatsEngageEvent",p.DF);Y(p,"productsInVideoVisibilityUpdated",p.productsInVideoVisibilityUpdated);Y(p,"setSafetyMode",p.setSafetyMode);Y(p,"isAtLiveHead",a=>p.isAtLiveHead(void 0,a)); Y(p,"getVideoAspectRatio",p.getVideoAspectRatio);Y(p,"getPreferredQuality",p.getPreferredQuality);Y(p,"getPlaybackQualityLabel",p.getPlaybackQualityLabel);Y(p,"setPlaybackQualityRange",p.zy);Y(p,"onAdUxClicked",p.onAdUxClicked);Y(p,"getFeedbackProductData",p.getFeedbackProductData);Y(p,"getStoryboardFrame",p.getStoryboardFrame);Y(p,"getStoryboardFrameIndex",p.getStoryboardFrameIndex);Y(p,"getStoryboardLevel",p.getStoryboardLevel);Y(p,"getNumberOfStoryboardLevels",p.getNumberOfStoryboardLevels);Y(p, "getCaptionWindowContainerId",p.getCaptionWindowContainerId);Y(p,"getAvailableQualityLabels",p.getAvailableQualityLabels);Y(p,"addCueRange",p.addCueRange);Y(p,"addUtcCueRange",p.addUtcCueRange);Y(p,"showAirplayPicker",p.showAirplayPicker);Y(p,"dispatchReduxAction",p.dispatchReduxAction);Y(p,"getPlayerResponse",p.Ps);Y(p,"getWatchNextResponse",p.Ro);Y(p,"getHeartbeatResponse",p.Ic);Y(p,"getCurrentTime",p.Bs);Y(p,"getDuration",p.UH);Y(p,"getPlayerState",p.getPlayerState);Y(p,"getPlayerStateObject", p.VY);Y(p,"getVideoLoadedFraction",p.getVideoLoadedFraction);Y(p,"getProgressState",p.getProgressState);Y(p,"getVolume",p.getVolume);Y(p,"setVolume",p.b5);Y(p,"isMuted",p.isMuted);Y(p,"mute",p.Tq);Y(p,"unMute",p.KJ);Y(p,"loadModule",p.loadModule);Y(p,"unloadModule",p.unloadModule);Y(p,"getOption",p.ww);Y(p,"getOptions",p.getOptions);Y(p,"setOption",p.setOption);Y(p,"loadVideoById",p.v_);Y(p,"loadVideoByUrl",p.t_);Y(p,"playVideo",p.tK);Y(p,"loadPlaylist",p.loadPlaylist);Y(p,"nextVideo",p.nextVideo); Y(p,"previousVideo",p.previousVideo);Y(p,"playVideoAt",p.playVideoAt);Y(p,"getDebugText",p.getDebugText);Y(p,"getWebPlayerContextConfig",p.getWebPlayerContextConfig);Y(p,"notifyShortsAdSwipeEvent",p.notifyShortsAdSwipeEvent);Y(p,"getVideoContentRect",p.getVideoContentRect);Y(p,"setSqueezeback",p.setSqueezeback);Y(p,"toggleSubtitlesOn",p.toggleSubtitlesOn);Y(p,"isSubtitlesOn",p.isSubtitlesOn);Y(p,"getAudioTrack",p.w7);Y(p,"setAudioTrack",p.A$);Y(p,"getAvailableAudioTracks",p.Ws);Y(p,"reportPlaybackIssue", p.reportPlaybackIssue);Y(p,"setAutonav",p.setAutonav);Y(p,"isNotServable",p.isNotServable);Y(p,"channelSubscribed",p.channelSubscribed);Y(p,"channelUnsubscribed",p.channelUnsubscribed);Y(p,"togglePictureInPicture",p.togglePictureInPicture);Y(p,"supportsGaplessAudio",p.supportsGaplessAudio);Y(p,"supportsGaplessShorts",p.supportsGaplessShorts);Y(p,"enqueueVideoByPlayerVars",a=>void p.enqueueVideoByPlayerVars(a)); Y(p,"clearQueue",p.clearQueue);Y(p,"getMaxPlaybackQuality",p.getMaxPlaybackQuality);Y(p,"getUserPlaybackQualityPreference",p.getUserPlaybackQualityPreference);Y(p,"getSubtitlesUserSettings",p.getSubtitlesUserSettings);Y(p,"resetSubtitlesUserSettings",p.resetSubtitlesUserSettings);Y(p,"setMinimized",p.setMinimized);Y(p,"setOverlayVisibility",p.setOverlayVisibility);Y(p,"confirmYpcRental",p.confirmYpcRental);Y(p,"queueNextVideo",p.queueNextVideo);Y(p,"handleExternalCall",p.handleExternalCall);Y(p,"logApiCall", p.logApiCall);Y(p,"isExternalMethodAvailable",p.isExternalMethodAvailable);Y(p,"setScreenLayer",p.setScreenLayer);Y(p,"getCurrentPlaylistSequence",p.getCurrentPlaylistSequence);Y(p,"getPlaylistSequenceForTime",p.getPlaylistSequenceForTime);Y(p,"shouldSendVisibilityState",p.shouldSendVisibilityState);Y(p,"syncVolume",p.syncVolume);Y(p,"highlightSettingsMenuItem",p.highlightSettingsMenuItem);Y(p,"openSettingsMenuItem",p.openSettingsMenuItem);Y(p,"getEmbeddedPlayerResponse",p.getEmbeddedPlayerResponse); Y(p,"getVisibilityState",p.getVisibilityState);Y(p,"isMutedByMutedAutoplay",p.isMutedByMutedAutoplay);Y(p,"isMutedByEmbedsMutedAutoplay",p.isMutedByEmbedsMutedAutoplay);Y(p,"setGlobalCrop",p.setGlobalCrop);Y(p,"setInternalSize",p.setInternalSize);Y(p,"setFauxFullscreen",p.setFauxFullscreen);Y(p,"setAppFullscreen",p.setAppFullscreen)}; QA$=async function(p,a,l){p.a4("oprd_s");a=Zkq(p)?await UDh(p.oY,a,l):p.oY.decrypt(a,l);p.a4("oprd_c");return a}; sB=async function(p,a){const l=p.S;if(!l||l.Bl())return sB(p.network,a);Jl("att_pna",void 0,"attestation_challenge_fetch");return new Promise(y=>{l.ez("publicytnetworkstatus-online",()=>{sB(p.network,a).then(y)})})}; g.o5=function(p,a){O$.get(p);O$.set(p,a)}; q2r=function(p,a,l,y){const S={timeout:3E4,onSuccess:n=>{if(!p.nz()){KU("drm_net_r",void 0,p.timer);var V=n.status==="LICENSE_STATUS_OK"?0:9999,Z=null;if(n.license)try{Z=R1(n.license)}catch(z){g.MD(z)}if(V!==0||Z){Z=new hHr(V,Z);V!==0&&n.reason&&(Z.errorMessage=n.reason);if(n.authorizedFormats){V={};const z=[],d={};for(const G of n.authorizedFormats){if(!G.trackType||!G.keyId)continue;let B=A$f[G.trackType];if(B){B==="HD"&&n.isHd720&&(B="HD720");G.isHdr&&(B+="HDR");V[B]||(z.push(B),V[B]=!0);let c= null;try{c=R1(G.keyId)}catch(w){g.MD(w)}c&&(d[g.dW(c,4)]=B)}}Z.S=z;Z.L=d}n.nextFairplayKeyId&&(Z.nextFairplayKeyId=n.nextFairplayKeyId);n.sabrLicenseConstraint&&(Z.sabrLicenseConstraint=R1(n.sabrLicenseConstraint));n=Z}else n=null;if(n)p.onSuccess(n,p.requestNumber);else p.onError(p,"drm.net","t.p;p.i")}}, onError:n=>{if(!p.nz())if(n&&n.error)n=n.error,p.onError(p,"drm.net.badstatus",`t.r;p.i;c.${n.code};s.${n.status}`,n.code);else p.onError(p,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:()=>{p.onError(p,"drm.net",`${"rt"}.req.${p.requestNumber}`)}}; y&&(S.xR=`Bearer ${y}`);g.TD(l,"player/get_drm_license",a,S)}; gge=function(p){const a=p.B.h9().getPlayerSize().width;return Math.max(a-z4(p)*2,100)}; zc=function(p){return p?.activeViewTracking?.trafficType??"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; TRA=function(){const p=AJ();p.info||(p.info={});return p.info}; YjE=function(p){const a={};for(const l of p)p=l.split("="),p.length===2?a[p[0]]=p[1]:a[l]=!0;return a}; g.dP=function(p,a){m7r(p,{nT:g.ak(a.experiments,"bg_vm_reinit_threshold"),cspNonce:a.cspNonce,Rd:a.Rd||""})}; Ge=function(p,a){const l=p.getUint32(a),y=p.getUint32(a+4);return new qjO(p,a,l,y)}; g.$K=function(p="unknown"){if(g.R("DATASYNC_ID")!==void 0)return g.R("DATASYNC_ID");throw new g.Qm("Datasync ID not set",p);}; nk=function(){const p=g.Wk("yt-player-user-settings"),a=new Map;if(p)for(const [l,y]of Object.entries(p))a.set(l,y);return a}; eOv=function(){const p=DN();if(p){const l=p.isTypeSupported;return(y,S)=>l(S,y)}const a=OQ(); return a&&(a.addKey||a.webkitAddKey)?(l,y)=>!!a.canPlayType(l,y):()=>!1}; Ci=function(p,a){return p.L.has(a)}; G4=function(p,a,l){const y=document.location.protocol;p=NBO(`${y}//${p}/signin?context=popup`,"feature",a,"next",`${y}//${location.hostname}/post_login`);a8h(p,l)}; Of=function(p,a,l=!1){p.Lz?.Mc()&&p.Lz.Xu("rms",a,l)}; s4=function(p,a,l,y=a){p.U.xn(y,l/a);p.D=(0,g.h)()}; wDf=function(p){const a=Object.create(J$$);a.value=p;p=()=>{if(Bb)throw Error("");return a.value}; p[$kq]=a;return[p,l=>f5F(a,l), l=>{f5F(a,l(a.value))}]}; d_M=function(p,a){a>0&&(p.S=a,p.G.style.height=`${p.S}px`)}; g.cb=function(p){if(!p.webPlayerContextConfig?.embedsHostFlags?.enableLiteUx||p.Ha||p.D||p.U||p.jl==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";p=g.ak(p.experiments,"embeds_web_lite_mode");return p===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":p>=0&&p"1"), AD_CPN:wu(()=>d||"")}; l?.renderingContent!==void 0||(p.SLOT_POS=wu(()=>(a.Zp||0).toString())); l={};n=Object.assign({},p,n);for(const G of Object.values(See))p=n[G],p!=null&&p.toString()!=null&&(l[G]=p.toString());return l}; VeM=async function(p,a,l){const y=ym();if(y)try{return await aJM(p,a,l,y)}catch(S){return g.tX(S),p0=!0,niA(p,a,l)}else return niA(p,a,l)}; ZCM=function(p,a){!a.info.L.U()&&a.info.S===0&&(g.Ta(a.info.L.info)||a.info.L.info.bC())&&PrZ(a);if(a.info.type===1)try{z2(p,a),DCO(p,a)}catch(y){g.MD(y);var l=Av(a.info);l.hms="1";p.loader.handleError("fmt.unparseable",l||{},1)}l=a.info.L;l.Hs(a);p.G&&ylZ(p.G,a);if(l.L()&&p.policy.L)a:{p=p.loader.r7;a=a.info.clipId;l=g.UY(l.info,p.va);if(a){const y=Sh({itag:l.itag,lmt:p.va?0:l.lmt||0,xtags:l.xtags});if(p.Ps[y])break a;p.Ps[y]=a}p.iT.push(l)}}; rP=function(p,a){if(!p.S){if(p.U)try{return p.U(a)}catch(l){g.tX(l)}return""}try{p.QQ.Ut(p.L?"pot_cms":"pot_csms");const l={P_:!0,VA:!0,N9:a};p.A("html5_web_po_token_disable_caching")||(l.jg={If:a,OJ:!0,nX:!0});const y=p.S.s3(l);p.QQ.Ut(p.L?"pot_cmf":"pot_csmf");p.L&&(p.j?.resolve(),p.j=null,p.D&&(p.D=!1,p.api.app.zm().zx(!1)));return y}catch(l){return g.tX(l),""}}; oiF=function(){const p=["metadata_type_invideo_overlay_ad_renderer"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; zYZ=function(p){return new g$(p.type,p.L,p.range,"getEmptyStubAfter"+p.K,p.Gm,p.startTime+p.duration,0,p.S+p.U,0)}; daA=function(p,a){if(a.W==="path")return a.Z.d;if(a.V)for(let y=0;y{RH(p,l)})}; Ht=function(p,a,l){return{ssvc:a,cpn:l?.cpn||"",vid:l?.videoData.videoId||"",ct:(p.playback.getCurrentTime()||0).toFixed(3),cmt:(p.playback.bG()||0).toFixed(3)}}; w9o=function(p){p.gI&&(p.xhr.status=p.gI,p.a9=p.gI)}; I8=function(p,a){const l=Os(p,a.L?.videoInfos),y=p.Lz.getPlaybackRate();return y>1&&l?(p=$av(p.Y.X,a.L.videoInfos,y),new fa(0,p,!0,"o")):new fa(0,0,!1,"o")}; g.ew=function(p,a,l=!1){g.Oc(c1)(p,a,l)}; PGF=function(p,a,l){l=p.L.CH(l);var y=p.S;y.L.exports.AES128CTRCipher_setCounter(y.cipher,l.byteOffset);p.L.free(l.byteOffset);a=p.L.CH(a);p.S.encrypt(a);return a}; oQ=function(p){return wP(p)&&!g.CP(p)}; LO$=function(p){return p.errorCode==="net.badstatus"&&(p.severity===1||!!p.details.fmt_unav)}; X9$=function(p,a,l){if(p.A("html5_optimality_defaults_chooses_next_higher")&&l)for(p=a.L.videoInfos,a=1;anew Promise((d,G)=>{if(Z?.aborted){const w=new Wg(1,"Aborted");w.cause=Z.reason;G(w)}else{var B={},c=Wtv(p,z,V);BR(c,"error",w=>void G(w)); BR(c,"metadata",w=>{B=w}); BR(c,"data",w=>{d(x$E(w,B))}); Z&&Z.addEventListener("abort",()=>{c.cancel();const w=new Wg(1,"Aborted");w.cause=Z.reason;G(w)})}}),p.Ex).call(p,S.G(l,y)).then(z=>z.oO)}; bsA=function(p){const a=p.getWatchNextResponse()?.contents?.twoColumnWatchNextResults;(p=p.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.endScreen?.watchNextEndScreenRenderer?.results)||(p=a?.endScreen?.endScreen?.results);return p}; LV=function(p){var a=p.mediaElement;a&&p.Jx&&!p.videoData.UO&&!UV("vfp",p.QQ.timerName)&&a.U()>=2&&!a.isEnded()&&$7(a.xo())&&p.QQ.tick("vfp");return(a=p.mediaElement)&&!p.videoData.UO&&a.getDuration()>0&&(a.isPaused()&&a.U()>=2&&$7(a.xo())&&(UV("pbp",p.QQ.timerName)||p.QQ.tick("pbp"),!p.videoData.s2||p.vg||a.isSeeking()||(p.vg=!0,p.publish("onPlaybackPauseAtStart"))),a=a.getCurrentTime(),Pb(p.Qv,a))?(p.k9(),!0):!1}; X6=function(p){return Array.from(p.L.keys())}; ye=function(p){try{return R1(p)}catch(a){return null}}; FOA=function(p){return{targetAudioReadaheadMs:r3(p,1),targetVideoReadaheadMs:r3(p,2),backoffTimeMs:r3(p,4),playbackCookie:mV(p,7),videoId:w3(p,8)}}; sq$=async function(p,a,l,y,S){a=nco(Ko$(EiE(new CGq,p.QI),a),l);l=p.L();p=await y.X("c",p.QI,S,p.client.create(a,l));const n=q4(JI(p,2));if(n.length)return dM(y,()=>{var V=new Uint8Array(n.length);for(var Z=0;Zp.publish("ctmp","hlsflt",y)).then(y=>{let S=0; const n=[];for(const V of y)n.push(V.getInfo()?.itag),V.getInfo()?.K()?.numChannels>S&&(S=V.getInfo().audio.numChannels);S>2&&p.Xu("hlschl",{mn:S});p.PZ?.S&&p.Xu("hlsfmtaf",{itags:n.join(".")});if(p.A("html5_enable_vp9_fairplay")&&p.X?.L()){p.Xu("drm",{sbdlfbk:1});for(const V of p.ZU)if(lf(V)){p.X=V;break}}RH(p,y)})}return Sk()}; bCf=function(p){if(p.L==null)p.callback.LY(p.slot);else try{p.L.cancel(),p.L=null,p.callback.LY(p.slot)}catch(a){p.L=null,Ae(p.callback,p.slot,new N(a,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; I$M=function(){var p=g.XY;x7.instance||(x7.instance=new x7(p));return x7.instance}; F6=function(p,a){return typeof a==="string"?p.getElementById(a):a}; md=function(p,a,l){p.B.Xu(a,l);rOO(p)}; Ksq=function(p){switch(Math.trunc(p.U)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; g.zg=function(p,a,l){return sU(p.L.put(a,l))}; g.MK=function(p,a){const l=g.Gj();return l?l.publish.apply(l,arguments):!1}; OTq=function(p){const a=p.mediaElement;EG()?p.Lc.J(a,"webkitpresentationmodechanged",p.xW):window.document.pictureInPictureEnabled&&(p.Lc.J(a,"enterpictureinpicture",()=>{p.GA(!0)}),p.Lc.J(a,"leavepictureinpicture",()=>{p.GA(!1)})); Tj&&(p.Lc.J(a,"webkitbeginfullscreen",()=>{p.M5(3)}),p.Lc.J(a,"webkitendfullscreen",()=>{p.M5(0)}))}; wT=function(){CV.instance||(CV.instance=new CV);return CV.instance}; u2E=function(p,a){const l=p.S[a];p.U?.dispose();g.K(l,wj)?zw(p,g.K(l,wj),p.macros):g.K(l,rj)&&RYM(p,g.K(l,rj),p.macros);p.L=a}; Vw=function(p,a){let l=sW(p,0,a);for(;l;){var y=l;y.type=1936419184;y.data.setUint32(y.offset+4,1936419184);l=sW(p,l.offset+l.size,a)}}; g.Ki=function(p){return document.createTextNode(String(p))}; OCM=function(p,a){if(p.api.isMinimized())return!1;const l=u$v(a.image);let y=l;l.width {p.G++;p.api.cS("invideo-overlay",p.layoutId)}); p.J(p.L.element,"mouseout",()=>{p.api.K4("invideo-overlay",p.layoutId)}); return!0}; ATE=function(p){return p.B.O().A("html5_enable_vod_slar_with_notify_pacf")}; Zd=function(p,a,l,y,S,n,V,Z,z){p=p.filter(B=>B.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&B.adSlotMetadata.triggeringSourceLayoutId===a.layoutId); if(p.length!==0){if(p.length!==1)return new N("Invalid InPlayer slot association for the given PlayerBytes layout");p=p[0];n=KtF(p,n,l,y,V);if(n instanceof N)return n;n={slotId:p.adSlotMetadata.slotId,slotType:p.adSlotMetadata.slotType,slotPhysicalPosition:p.adSlotMetadata.slotPhysicalPosition??1,qO:"core",slotEntryTrigger:n.slotEntryTrigger,slotFulfillmentTriggers:n.slotFulfillmentTriggers,slotExpirationTriggers:n.slotExpirationTriggers};V=g.K(p.fulfillmentContent.fulfilledLayout,S3e);if(!V||!nqM(V))return new N("Invalid InPlayerAdLayoutRenderer"); var d={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,qO:"core"};l=LG(V,l,y);if(l instanceof N)return l;y=[];var G=V.adLayoutMetadata.layoutType;z&&y.push(new fj);if(G==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")y.push(...klq(p.adSlotMetadata.triggerEvent,a)),(Z=$Lr(l,a.layoutId))&&y.push(new Me$(Z));else if(G==="LAYOUT_TYPE_ENDCAP"||G==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){y.push(new GL(Fz(p.adSlotMetadata.triggerEvent)));if(G==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new N("Cannot parse endcap layout since AdUxReadyApi is not provided"); Z&&y.push(Z)}else return new N("Not able to parse an SDF InPlayer layout");S={...d,...l,renderingContent:V.renderingContent,Xh:new Map,ao:Yv(S,n)(d),clientMetadata:new L0(y),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData};return{...n,fulfilledLayout:S,clientMetadata:new L0([])}}}; g.V$=function(p){return p[p.length-1]}; ma$=function(p){p.B.isFullscreen()?g.g1(p.B,p.element,10):p.lT(vb(p).body)}; gQM=function(p){if(!p.S){p.S=!0;var a=p.Lz.getPlayerState();a=a.isPaused()||a.isSuspended();p.Lz.Os();a&&!a9(p.videoData)||p.Lz.publish("signatureexpired")}}; teE=function(p){return isNaN(p)?0:Math.max((Date.now()-p)/1E3-30,0)}; UA=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}}; Q=function(p,a,l,y={},S){if(!S||Math.random()<5E-4){a=a||null;l=l||null;p=p instanceof Error?p:new g.Qm(p);if(p.args)for(const n of p.args)n instanceof Object&&(y={...n,...y});y.category="H5 Ads Control Flow";a&&(y.slot=a?`slot: ${""} ${a.slotType}`:"");l&&(y.layout=BL(l),y.layoutId=l.layoutId);S&&(y.known_error_aggressively_sampled=!0);p.args=[y];g.tX(p)}}; j$F=function(p,a,l,y){a["Content-Type"]="application/json+protobuf";a["X-User-Agent"]="grpc-web-javascript/0.1";const S=a.Authorization;if(S&&jNo.has(S.split(" ")[0])||p.withCredentials)l.G=!0;if(p.T$)y=g.KV(y,"$httpHeaders",a);else for(const n of Object.keys(a))l.headers.set(n,a[n]);return y}; WOM=function(p){return g.Wk("yt-player-drc-pref")?g.B4(p,eG):p}; Dav=function(p,a,l=!1){return aw(HCh,function(){const y=this;return function*(){if(!y.S)throw"wasm.ps.ns";const S=yield*ct(P6r(y,a,l));if(!S)throw"wasm.ps.um";if(y.L&&!l)try{return new WebAssembly.Instance(S,p)}catch(n){y.L=!1}return yield*ct(WebAssembly.instantiate(S,p))}()})}; bd=function(p){p.Rc&&p.eb({adf:`0_${(new Date).getTime()/1E3-p.E6}_isTimeout_${p.K}`})}; Hor=function(p){typeof p.S.E9.AFMA_LIDAR==="string"?(p.Bs=!0,NCA(p)):(p.S.compatibility=3,p.K="nc",p.fail("w"))}; ME=function(p,a){a=p.pos+a;if(!(p.L.length>=a)){for(var l=p.L.length*2;l=0?a:g.CX(p.provider);const l=p.provider.Lz.Au();var y=l.xY-(p.Bs||0);y>0&&g.vy(p,a,"bwm",[y,(l.Zo-(p.Ro||0)).toFixed(3)]);isNaN(p.Bs)&&l.xY&&p.isOffline&&p.j0(!1);p.Bs=l.xY;p.Ro=l.Zo;isNaN(l.bandwidthEstimate)||g.vy(p,a,"bwe",[l.bandwidthEstimate.toFixed(0)]);p.provider.Y.Mc()&&Object.keys(l.L).length!==0&&p.Xu("bwinfo",l.L);if(p.provider.Y.Mc()||p.provider.Y.A("html5_log_meminfo"))y=TxA(),Object.values(y).some(S=>S!==void 0)&&p.Xu("meminfo",y); p.provider.Y.Mc()&&(y=p.Tm?.j())&&Object.values(y).some(S=>S!=null)&&p.Xu("cpuinfo",y); p.Rc&&p.Xu("jsprof",p.Rc.flush());p.C&&g.vy(p,a,"bat",[p.C.level,p.C.charging?"1":"0"]);y=p.provider.Lz.getVisibilityState();p.ZN!==y&&(g.vy(p,a,"vis",[y]),p.ZN=y);fe(p,a);(y=pr$(p.provider))&&y!==p.Ba&&(g.vy(p,a,"conn",[y]),p.Ba=y);xG(p,a,l)}; NxF=async function(p,a){const l=[];a=await g.lz(bG,a);await g.hs(a,["databases"],{nx:!0,mode:"readonly"},y=>{l.length=0;return g.Wi(y.objectStore("databases"),{},S=>{p(S.getValue())&&l.push(S.getValue());return g.ul(S)})}); return l}; Xt$=function(p,a){if(p.L<7){var l=p.data;const y=p.S;y>l.length&&(p.error=!0);p.register|=(l[y+1]<<8)+l[y]<=0)return R5(p,l&15),l>>4;for(R5(p,7);l<0;)l=a[t8(p,1)-l];return l>>4}; h7h=function(p,a){return p.g7.A("html5_use_network_error_code_enums")&&a.details.rc===403||a.details.rc==="403"?(p=a.errorCode,p==="net.badstatus"||p==="manifest.net.retryexhausted"):!1}; v3Z=function(p,a){qc(p,a,2);a=p.L.end();vZ(p,a);a.push(p.S);return a}; sNE=function(p,a){const l=new g.g3(0,0);let y=AP(jj(p));if(!aiM(y,"parent"))return l;do{const S=y==a?g.fX(p):$HA(p);l.x+=S.x;l.y+=S.y}while(y&&y!=a&&y!=y.parent&&(p=y.frameElement)&&(y=y.parent));return l}; UaO=function(p,a){let l="";a=a.bb();a.totalLength<=p.policy.Sc&&(p=jO(a),p=ot(p),l=KY(p)?p:"");return l}; ud=function(p,a,l=null){return tV(p,p.state|a,null,l)}; QNr=function(p){const a=p.Lz.mB()?.getCurrentTime()??p.Lz.getCurrentTime(),l=p.j.ov(a);R1E(p,l,a,!0);p.isSeeking=!1;Array.from(p.S.keys()).sort((y,S)=>y-S).forEach(y=>{y>l?p.C(y,p.S.get(y)):y===l&&p.C(y,p.S.get(y),a-p.j.getStartTime(y))})}; hYE=function(){return Q2()?KA.platform==="Android":wv("Android")}; g.v0=function(p,a,...l){p.state.U.publish(a,...l);p.state.S.publish(a,...l)}; OG=function(p,a,l=0){return g.ak(p.g7.experiments,a)||l}; AQZ=function(p,a){return p.L!==a.L?!1:p.UO()&&a.type===3&&p.L.L()?(p=p.L.Ws(p),Nh(p,l=>AQZ(l,a))):p.Gm===a.Gm&&!!a.U&&a.S+a.U>p.S&&a.S+a.U<=p.S+p.U}; giA=function(p){var {interstitials:a}=p.api.getVideoData();const l=[];for(const z of a){a=l;var y=a.push,S=p,n=z.playerVars,V=z.iU,Z=z.time;const d=`yto-${S.K++}`;Z=new g.yj(Z,Z,{id:d,priority:7,namespace:"yto"});S.G[d]={playerVars:n,playerType:V};y.call(a,Z);a=p.api.getVideoData(1);a=Object.assign({oauth_token:a.oauthToken},z.playerVars);p.api.preloadVideoByPlayerVars(a,z.iU)}p.api.OE(l,1)}; VQE=function(p){if(p=p.mediaElement?.audioTracks())for(let a=0;al.QZ.Ft==a):null}; WlA=function(p){/[^a-zA-Z0-9;.!_-]/.test(p)&&(p=p.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return p}; Rp=function(p){for(var a=p.length;--a>=0;)p[a]=0}; Qp=function(p,a,l,y,S,n,V){p=[new mF(p.L,a)];return{slotId:a,slotType:l,slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:p,slotExpirationTriggers:S,qO:"core",clientMetadata:new L0([new Z1(V({slotId:a,slotType:l,slotPhysicalPosition:1,qO:"core",slotEntryTrigger:y,slotFulfillmentTriggers:p,slotExpirationTriggers:S}))]),adSlotLoggingData:n}}; L2=function(p,a,l,y=!1){y?o_(p,1,"seek"):a>0&&Math.abs(a-l)>=5&&p.S===4&&o_(p,5,"sk2t")}; g.Gu=function(p){var a=p.K;p.A("html5_gapless_unlimit_format_selection")&&D6(p)&&(a=!1);const l=!!p.L&&p.L.va;a=aaF(p.g7,{zI:p.zI(),IR:l,aT:nz(p),Zl:p.Zl,gm:a,isOtf:p.isOtf(),bx:p.bx(),Bo:p.Bo,BT:p.getUserAudio51Preference(),disableAv1:cz(p),rW:pJ(p)});Yc(p)&&(a.Ha=p.A("html5_prefer_language_over_codec"));Ca()&&p.playerResponse&&p.playerResponse.playerConfig&&p.playerResponse.playerConfig.webPlayerConfig&&p.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(a.j=!0,a.X=!0); p.K&&p.isAd()&&(p.DH&&(a.C=p.DH),p.QR&&(a.U=p.QR));p.Yn()&&(a.Sl=g.ak(p.g7.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));a.Ws=p.isLivePlayback&&p.FF()&&p.g7.A("html5_drm_live_audio_51");a.Tm=p.hf;a.VY=!Yc(p);return p.PZ=a}; mLh=function(p,a){var l=0;do l|=p&1,p>>>=1,l<<=1;while(--a>0);return l>>>1}; Su=function(p){var a=p.B.getVideoData();if(p=a.A("web_player_defer_ad")){if(g.tU(a.Ws,"ad")||vwM(a)||a.enableServerStitchedDai)var l=!1;else{p=a.startSeconds;var y=a.playerResponse?.adPlacements;if(a=y){a=Number.MAX_VALUE;for(l of y)if(y=l.adPlacementRenderer){const S=y.config?.adPlacementConfig;S?.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&(y=(Number(S?.adTimeOffset?.offsetStartMilliseconds)||0)-Number(y.renderer?.adBreakServiceRenderer?.prefetchMilliseconds||0),y{[,n]=hNA(n);sf(p,n,S,Aw(p.U))}); p.L===0&&(p.jD.Oa("transitiondetector",l),a=(y+p.Lz.oo())*1E3,p.jD.OE([new g.yj(a,a+5E3,{id:l,namespace:"transitiondetector",priority:9})]))}; g.k7=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{W:"path",Z:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; g.lz=function(p,a){if(!a)throw g.tl("openWithToken",g5(p.name));return p.open()}; JQe=function(p){const a=p.timing.K();a.shost=tZ(39,p.aX.P9);return a}; g.hu=function(p,a,l,y){this.left=p;this.top=a;this.width=l;this.height=y}; f$v=function(p,a,l,y=0){if(!a)return!1;y=g.c2(y);if(!y)return!1;xi(p.client,y,g.dn(a),l);return!0}; g.P6=function(p){for(const a in p)return!1;return!0}; g.MZ=function(p,a){By(p,1,a.hw,rx,3);Ym(p,3,a.videoPlaybackUstreamerConfig);By(p,5,a.Ci,$i,3);By(p,6,a.PW,P9,3)}; g.m0=function(p){const a=g.aD();var l=a.client||{};if(p.forcedExperiments){var y=p.forcedExperiments.split(",");const S=[];for(const n of y)S.push(Number(n));l.experimentIds=S}if(y=p.homeGroupInfo)l.homeGroupInfo=JSON.parse(y);if(y=p.getPlayerType())l.playerType=y;if(y=p.L.ctheme)l.theme=y;if(y=p.livingRoomAppMode)l.tvAppInfo={...l.tvAppInfo,livingRoomAppMode:y};y=p.deviceYear;p.A("html5_propagate_device_year")&&y&&(l.tvAppInfo={...l.tvAppInfo,deviceYear:y});if(y=p.livingRoomPoTokenId)l.tvAppInfo= {...l.tvAppInfo,livingRoomPoTokenId:y};a.client=l;l=a.user||{};p.enableSafetyMode&&(l={...l,enableSafetyMode:!0});!p.A("use_pageid_as_header_kabuki")&&p.pageId&&(l={...l,onBehalfOfUser:p.pageId});a.user=l;return a}; KwM=function(p,a,l,y={}){var S=void 0;y.layer||(y.layer=0);S=y.parentLayer!==void 0?y.parentLayer:y.layer;const n=g.c2(S);S=g.rM(S);const V=l||S;let Z;V&&(y.parentCsn!==void 0?Z={clientScreenNonce:y.parentCsn,visualElement:V}:n&&n!=="UNDEFINED_CSN"&&(Z={clientScreenNonce:n,visualElement:V}));let z;const d=g.R("EVENT_ID");n==="UNDEFINED_CSN"&&d&&(z={servletData:{serializedServletEventId:d}});g.nU("combine_ve_grafts")&&n&&$H(p,n);g.nU("no_client_ve_attach_unless_shown")&&V&&n&&L1(V,n);let G;try{G=AKv(p.client, a,Z,y.AO,y.cttAuthInfo,z,y.implicitGestureType,y.loggingExpectations)}catch(c){pYE(c,{Rp:a,rootVe:S,fFO:l,zvv:n,yNl:Z,AO:y.AO});g.MD(c);return}NN(G,a,y.layer,y.cttAuthInfo);n&&n!=="UNDEFINED_CSN"&&S&&!avE(n)&&cqF(p.client,n,S,!0);p.L[p.L.length-1]&&!p.L[p.L.length-1].csn&&(p.L[p.L.length-1].csn=G||"");g.ew({clientScreenNonce:G});tg.instance||(tg.instance=new tg);g.Oc(u3().L).bind(u3())();const B=g.rM(y.layer);n&&n!=="UNDEFINED_CSN"&&B&&(g.nU("web_mark_root_visible")||g.nU("music_web_mark_root_visible"))&& g.bo(G,B);p.S.delete(y.layer||0);p.X=void 0;p.jl.get(y.layer)?.forEach((c,w)=>{c?LP(p,w,c,y.layer):B&&LP(p,w,B,y.layer)}); V1$(p)}; yDA=function(p){p.Tn.onProgress();if(vM(p.videoData)&&Date.now()>p.f4+6283){if(p.A("html5_unified_live_latency_reporting")){var a=p.Tn;a.qoe&&lvM(a.qoe)}else!p.isAtLiveHead()||p.videoData.L&&bj(p.videoData.L)||(a=p.Tn,a.qoe&&lvM(a.qoe));a=g.ei(p.Y);const l=p.A("html5_always_log_rawlat");(a||l)&&p.Xu("rawlat",{l:jG(p.n2,"rawlivelatency").toFixed(3)});p.f4=Date.now()}p.videoData.S&&p.videoData.S.j()&&(a=p.nN())&&a.videoHeight!==p.XM&&(p.XM=a.videoHeight,NL(p,"a",l5$(p,p.videoData.Tm)))}; StM=function(){const p=["metadata_type_invideo_overlay_ad_renderer"];for(const a of zu())p.push(a);return{e5:p,FX:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; DhF=function(p,a){const l=p.S.indexOf(a);l>=0&&p.S.splice(l,1);p.U.delete(a.cpn);a.ME&&p.j.delete(a.ME)}; Z5r=function(p){function a(){l-=y;l-=S;l^=S>>>13;y-=S;y-=l;y^=l<<8;S-=l;S-=y;S^=y>>>13;l-=y;l-=S;l^=S>>>12;y-=S;y-=l;y^=l<<16;S-=l;S-=y;S^=y>>>5;l-=y;l-=S;l^=S>>>3;y-=S;y-=l;y^=l<<10;S-=l;S-=y;S^=y>>>15} p=nSv(p);let l=2654435769,y=2654435769,S=314159265;const n=p.length;let V=n,Z=0;for(;V>=12;V-=12,Z+=12)l+=Wb(p,Z),y+=Wb(p,Z+4),S+=Wb(p,Z+8),a();S+=n;switch(V){case 11:S+=p[Z+10]<<24;case 10:S+=p[Z+9]<<16;case 9:S+=p[Z+8]<<8;case 8:y+=p[Z+7]<<24;case 7:y+=p[Z+6]<<16;case 6:y+=p[Z+5]<<8;case 5:y+=p[Z+4];case 4:l+=p[Z+3]<<24;case 3:l+=p[Z+2]<<16;case 2:l+=p[Z+1]<<8;case 1:l+=p[Z+0]}a();return Vuq.toString(S)}; oSO=function(p,a){return a.reduce((l,y)=>S=>y.intercept(S,l),p)}; $F=function(p,a,l){if(p=mV(p,a))return l(new px(new F8([p])))}; LfF=function(p){const a=new Uint8Array(32);var l=64-p.S;p.S>55&&(l+=64);const y=new Uint8Array(l);y[0]=128;let S=p.j*8;for(let n=1;n<9;n++){const V=S%256;y[l-n]=V;S=(S-V)/256}p.update(y);for(l=0;l<8;l++)a[l*4]=p.L[l]>>>24,a[l*4+1]=p.L[l]>>>16&255,a[l*4+2]=p.L[l]>>>8&255,a[l*4+3]=p.L[l]&255;zk$(p);return a}; Hb=function(p,a){return p.api.getVideoData()?.mutedAutoplay&&a.target?.className?.includes("ytp-info-panel")?!1:g.N_(a)&&p.api.isMutedByMutedAutoplay()?(p.api.unMute(),p.api.getPresentingPlayerType()===2&&p.api.playVideo(),a=p.api.getPlayerStateObject(),!a.L(4)||a.L(8)||a.L(2)||p.zd(),!0):!1}; uU=function(p){return p.B.getVideoData(1).getPlayerResponse()?.playerConfig?.daiConfig?.enableServerStitchedDai||!1}; a_=function(p){p&&(p.startsWith("https://accounts.google.com/AddSession")?wq():p.startsWith("https://accounts.google.com/ServiceLogin")?wq():p.startsWith("https://myaccount.google.com")&&g.A6(p).S.endsWith("/youtubeoptions")&&wq());if(g.R("LOGGED_IN",!0)&&drM()){var a=g.R("VALID_SESSION_TEMPDATA_DOMAINS",[]);var l=g.TX(window.location.href);l&&a.push(l);l=g.TX(p);g.tU(a,l)||!l&&ag(p,"/")?(a=nu(p),(a=WjE(a))?(a=qrM(a),a=(a=g.D3(a)||null)?cd(a):{}):a=null):a=null;a==null&&(a={});l=a;var y=void 0;drM()? (y||(y=g.R("LOGIN_INFO")),y?(l.session_logininfo=y,l=!0):l=!1):l=!1;l&&WY(p,a)}}; bW=function(p){return g.AF(p.L,a=>WM(12,a.gG.L))}; gW=function(p){return String(p).replace(/\-([a-z])/g,function(a,l){return l.toUpperCase()})}; c1=function(p,a){if(!g.nU("web_csi_action_sampling_enabled")||!AJ(a).actionDisabled){var l=gn(a||"");g_(l.info,p);p.loadType&&(l=p.loadType,xX(a).loadType=l);g_(dPF(a),p);l=hJ(a);a=AJ(a).cttAuthInfo;wT().info(p,l,a)}}; km=function(p,a,l,y){y??(y=!!(34&a));p=zD(p,a,qMM,y);y=32;l&&(y|=2);a=a&8380609|y;p[rD]=a;return p}; C$=function(){var p=ND(Gpq);if(!p.L){if(!bn)throw Error("Context has not been set and window is undefined.");p.L=ND(BFA)}return p.L}; DF=function(p){return!!(p.U&&p.U.videoInfos&&p.U.videoInfos.length)}; rDE=function(p,a,l,y=0){if(p.j){var S=p.j.S+p.j.U;if(l.info.S>0)if(l.info.Gm===p.j.Gm&&l.info.S=0&&p.j.Gm>=0&&!Hi(p.j,l.info))throw new g.Qm("improper_continuation",p.j.HZ(),l.info.HZ());FQq(p.j,l.info)||D5(p,"d")}else if(l.info.S>0)throw new g.Qm("continuation_of_null",l.info.HZ());p.j=l.info;p.X=l.info.L;if(l.info.S===0){if(p.L)if(!p.loader.isOffline()||p.policy.sU)p.loader.Xu("slice_not_fully_processed",{buffered:p.L.info.HZ(), push:l.info.HZ()});else throw new g.Qm("slice_not_fully_processed",p.L.info.HZ(),l.info.HZ());PW(p);p.QY=y}else{if(p.QY&&y&&p.QY!==y)throw p=new g.Qm("lmt_mismatch",l.info.Gm,p.QY,y),p.level="WARNING",p;!l.info.L.U()&&p.D&&(y=l.info,S=p.D.nO,y.K="updateWithEmsg",y.Gm=S)}if(p.L){y=p.L.D(l);if(!y)throw new g.Qm("failed_to_merge",p.L.info.HZ(),l.info.HZ());p.L=y}else p.L=l;a:{l=g.Ta(p.L.info.L.info);if(p.L.info.type!==3){if(!p.L.info.j)break a;p.L.info.type===6?DRE(p,a,p.L):ZCM(p,p.L);p.L=null}for(;p.L;){y= p.L.S.totalLength;if(p.Sl<=0&&p.C===0){var n=p.L.S;let d=S=-1;if(l){for(var V=0;V+80))break;if(c!==408125543)if(c===524531317)V=!0,w>=0&&(d=n.L()+w,Z=!0);else{if(V&&(c===160||c===163)&&(S<0&&(S=z),Z))break;c===163&&(S=Math.max(0,S),d=n.L()+w);if(c===160){S<0&&(d=S=n.L()+w);break}n.skip(w)}}S<0&&(d=-1)}const {DX:G, wL:B}={DX:S,wL:d};if(G<0)break;p.Sl=G;p.C=B-G}if(p.Sl>y)break;p.Sl?(y=cDM(p,p.Sl),y.X&&z2(p,y),DRE(p,a,y),LW(p,y),p.Sl=0):p.C&&(y=cDM(p,p.C<0?Infinity:p.C),p.C-=y.S.totalLength,LW(p,y))}}p.L&&p.L.info.j&&(LW(p,p.L),p.L=null)}; fi=function(p,a){try{if(a.length){p.Bs||(p.Bs=Date.now()-cg);var l=sY$(a),y=sNE(p.element,p.S.L.U),S=y.x,n=y.y;p.U=new Wa(Math.round(n),Math.round(S)+l.boundingClientRect.width,Math.round(n)+l.boundingClientRect.height,Math.round(S));p.L=wYE(p,p.U);var V=$rM(l.intersectionRect);p.N=fl(V,p.U.left-V.left,p.U.top-V.top)}}catch(Z){p.unobserve(),eZ.UD(299,Z,void 0,void 0)}}; PwF=function(p,a,l={}){return RZO(p,a,!0,l)}; var n1E=function(p,a){return ar[r[12]](this,9,p,a)}; FUo=function(p,a,l={}){var y=Math.round(l.timestamp||(0,g.h)());vi(p,1,y{var S=p.L;if(!y.L&&(y.U(a,l),y.j())){y.L=!0;var n=y.S();const V=new UX;V.add("id","av-js");V.add("type","verif");V.add("vtype",y.X);y=ND(KUr);V.add("i",y.L++);V.add("adk",S);sX(V,n);S=new ekA(V);ydq(S)}})}; g.b5A=function(p,a){if(p.suggestion!==a){p.suggestion=a;var l=p.api.O(),y="hqdefault.jpg";a.uG("sddefault.jpg")&&(y="sddefault.jpg");g.se(p,a,y);g.x3(l)&&!p.api.A("web_player_log_click_before_generating_ve_conversion_params")&&(l=a.Zb(),y={},g.xe(p.api,"addEmbedsConversionTrackingParams",[y]),l=g.Re(l,y),p.updateValue("url",l));(a=(a=a.sessionData)&&a.itct)&&p.api.setTrackingParams(p.element,a)}}; IvO=function(p){return(p.D-p.L)/1E3}; Pa=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(a){return`unable to serialize ${typeof p} (${a.message})`}}; NZ=function(p,a,l,y){if(y.substring(0,2)==="{{")p.A$[y]=[a,l];else return y}; sG=function(p,a){p=p.hP.get(a);if(HL){if(!p?.PT)return!1;a=p.o7.size>0;return p.Zq.length>0||a}return!!p?.PT&&!!p?.ZF.X()}; RkE=function(p){const a=p.text||"",l=g.m5("ytp-suggested-action-badge-title",p.element);l&&g.kq(l,a);p.badge.element.setAttribute("aria-label",a);p.dismissButton.element.setAttribute("aria-label",p.E6?p.E6:"")}; A3o=function(){UG||(UG=Ox(g.R("WORKER_SERIALIZATION_URL")));return UG||void 0}; VjA=function(p,a,l){l.Bo&&a--;im(l)&&(a=1);eC(l)!==0&&(p=g.ak(p.experiments,"html5_live_chunk_readahead_proxima_override"))&&(a=p,l.L?.Tm()&&a++);return a}; Qw=function(p,a){if(HL){let l=0;p=p.hP.get(a);if(!p?.o7)return 0;for(const y of p.o7.values())l+=y.data.totalLength;return l}return p.hP.get(a)?.ZF.X()||0}; uEM=function(p,a,l){l=daA(p,l);const y=a.getElementsByTagName("path")[0],S=y.getAttribute("d");if(y.getAttribute("id")){const Z=T4();a=a.getElementsByTagName("use");for(let z=0;z{y.setAttribute("d",gto(n,V,Z))},200)}; kpf=async function(p,a){(0,g.h)();var l=p.L;l.X||(l.X=new O5A(l.U));return VeM(l.X,a,p.iv)}; Yu=function(p,a){kk("_start",p,a)}; mro=function(p,a=!1){Mur(a);JrM(a);if(a){for(const l of zS.keys())l.startsWith("1")||zS.delete(l);for(const l of xx.values())l.startsWith("1")||xx.delete(l);for(const l of p.keys())l.startsWith("1")||p.delete(l)}else zS.clear(),xx.clear(),p.clear()}; tue=function(p,a,l){var y;if(y=p.playback.getVideoData().nh())y=(y=p.L.GR({cpn:a}))&&y.wh?(p=p.L.L.get(y?.wh))&&p.slice(-1)[0].cpn===a:!1;return y&&l===2?1E3:0}; jpZ=function(p){var a=null;const l="No puedes cambiar el volumen en este navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK".split(/\$(BEGIN|END)_LINK/);a=new g.Ag(p.B,{W:"span",A9:["ytp-popup","ytp-generic-popup"],Z:{tabindex:"0"},V:[l[0],{W:"a",Z:{href:"https://support.google.com/youtube/?p=noaudio",target:p.B.O().C},yY:l[2]},l[4]]},100,!0);g.H(p,a);a.hide();a.subscribe("show",y=>{p.B.Pw(a,y)}); g.g1(p.B,a.element,4)}; N0r=function(p){p.api.onAdUxClicked("ad-info-icon-button",p.layoutId)}; WUE=function(p){if(p.Xz&&!p.A("html5_onesie_media_capabilities")){p.a4("ogsf_s");var a=bXA(p.Lz.getVideoData(),(y,S)=>{p.Xu(y,S)}),l=ujF(p.Lz); a.video=sDZ(l,a.video);p.a4("ogsf_c");if(a.video.length)return a;p.Xu("ombspf",`l.${l.S};u.${l.L};o.${l.U};r.${l.reason}`)}}; HcA=function(p){return{iv:mV(p,5),TB:fJ(p,7)}}; gP=function(p){p.OQ.Y$();if(p.rr&&p.jy)p.jy=!1;else if(!p.api.O().Bs&&!p.r8()){const a=p.api.getPlayerStateObject();a.L(2)&&g.gw(p.api)||p.ip(a);!p.api.O().iT||a.isCued()||a.L(1024)?p.zd():p.GJ.isActive()?(p.Mz(),p.GJ.stop()):p.GJ.start()}}; H5F=function(p){const a=p.api.getVideoData();p.button.iM(a.nf)}; E9q=function(p,a,l,y,S){const n=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER");l=new Y7(p.L,y,l);y=[new aa(p.L,n)];p=[new y5(p.L,a)];return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:y,slotExpirationTriggers:p,qO:"core",clientMetadata:new L0([new Z1(S({slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:l,slotFulfillmentTriggers:y,slotExpirationTriggers:p}))])}}; sf=function(p,a,l,y,S=!1){a!==p.Iv&&(p.Lz.Xu("ssevt",{tag:p.L===0?"sstd-cr":p.L===1?"sstd-tm":p.L===2?"sstd-poll":p.L===3?"sstd-poll100":"sstd-unknown",ad:p.cpn!==a,cpn:a,st:l.toFixed(3),late:Math.round(p.isSeeking?0:(y-l)*1E3)}),p.Iv=a,p.Lz.publish("playbackstarted",a,l+p.Lz.oo(),S))}; DrE=function(p){var a=p.app.zm();if(a=a?a.getVideoData():null){if(g.Da(a)||g.ip(a)||g.HO(a))return 16/9;if(DF(a)&&a.U.L())return p=a.U.videoInfos[0].video,g8(p.width,p.height)}return(p=p.ju)?g8(p.videoWidth,p.videoHeight):16/9}; Aw=function(p){return p.Lz.mB()?.getCurrentTime()??p.Lz.getCurrentTime()}; D7f=function(p){return{videoId:w3(p,2)}}; g.qZ=function(p){return p==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||p==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; tQ=function(p,a,l,y,S,n,V){dj(p,l*1E3,V);S<=0||l<=0||a?.L(16)||a?.L(32)||(EK(l,S*.25,y)&&(n&&!ph(p,"first_quartile")&&n("first"),p.O6("first_quartile")),EK(l,S*.5,y)&&(n&&!ph(p,"midpoint")&&n("second"),p.O6("midpoint")),EK(l,S*.75,y)&&(n&&!ph(p,"third_quartile")&&n("third"),p.O6("third_quartile")))}; SVe=function(p){return Nh(p.U,a=>a.jF)}; i5O=function(p){return vDe(p,a=>g.nG(a,"ytp-ad-has-logging-urls"))}; TFv=function(p,a){if(a.info.video){if(p.U!==a)return p.U=a,cVv(p)}else p.Rc=p.G!==a,p.G=a;return null}; ki=function(p){const a=[];if(p)for(const [y,S]of Object.entries(p)){p=y;var l=S;l!==void 0&&(l=typeof l==="boolean"?`${+l}`:`${l}`.replace(/[:,=]/g,"_"),a.push(`${p}.${l}`))}return a.join(";")}; NF$=function(p){return{bitrate:r3(p,6),width:r3(p,7),height:r3(p,8),fps:r3(p,25),averageBitrate:r3(p,31),audioSampleRate:r3(p,45),audioChannels:r3(p,46),qualityOrdinal:r3(p,56)}}; sp$=function(p,a){a=g.mQ(a);g.kq(p.questionText,a);p.D&&p.questionText.setAttribute("id",Mx("survey-question-text"))}; $7=function(p){return Jg(p)>0}; UrM=function(p,a,l){for(const y of a)y.layout&&qO(p.L,y.slot)&&JWf(p,y.slot,y.layout,l)}; Xl=function(p,a,l,y){function S(V){const Z=!(V.status!==204&&V.status!==200&&!V.response);V={succ:`${+Z}`,rc:V.status,lb:V.response?.byteLength||0,rt:((0,g.h)()-n).toFixed(),shost:g.TX(p),trigger:a};kWe(V,p);l&&l(V);y&&!Z&&y(new g.cQ("pathprobe.net",V))} const n=(0,g.h)();g.$Y(p,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:S,onTimeout:S})}; Qp$=function(p,a){p.U[a]||(p.U[a]=new VY);return p.U[a]}; hkh=function(p){const a=p.L?.bannerData?.itemData;return a?.priceReplacementText||p.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")||a?.dealsData?.sales?.originalPrice||!a?.dealsData?.priceDrop?.referencePrice?null:a?.dealsData?.priceDrop?.referencePrice}; ADr=function(p,a){if(!p.index.isLoaded()){var l=[],y=a.X;a=a.D.split(",").filter(d=>d.length>0); var S=0,n=0,V=0,Z=/^(\d+)/,z=/r=(\d+)/;for(let d=0;d{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_PANEL"]}}; JD$=function(p){p.U&&g.si(p.U);p.j&&g.si(p.j)}; KY=function(p){return Qu(oY(p,fvZ),p,!1,"Trusted Stream URL")}; pXv=function(p){const a=p.api.O(),l=p.api.getPlayerStateObject().L(128);return a.j&&l&&!p.api.isFullscreen()}; cDM=function(p,a){var l=p.L;a=Math.min(a,l.S.totalLength);if(a===l.S.totalLength)return p.L=null,l;l=KPM(l,a);p.L=l[1];return l[0]}; pp=function(p,a){a=p.MO.get().Rf.get(a)??null;if(a===null)return Q("Expected ad video start time on playback timeline"),0;p=p.B.getCurrentTime(2,!0);return p0&&(a.fexp=p.experimentIds.toString());p.G!==null&&(a.rtn=p.S(p.G));p.SS&&(a.feature=p.SS);p.eR&&(a.ctrl=p.eR);p.zf&&(a.ytr=p.zf);p.Ps&&(a.afmt=p.Ps);p.offlineDownloadUserChoice&&(a.ODUC=p.offlineDownloadUserChoice);p.UO&&(a.lio=p.S(p.UO)); p.X?(a.idpj=p.tP,a.ldpj=p.ir,p.delayThresholdMet&&(a.dtm="1"),p.C!=null&&(a.rti=p.S(p.C)),p.Aa&&(a.ald=p.Aa),p.compositeLiveIngestionOffsetToken&&(a.clio=p.compositeLiveIngestionOffsetToken)):p.adType!==void 0&&(a.at=p.adType);p.Ba&&(p.U||p.X)&&(a.size=p.Ba);p.U&&p.D.length&&(a.pbstyle=p.D.join(","));p.Ro!=null&&(p.U||p.X)&&(a.inview=p.S(p.Ro));p.X&&(a.volume=hT(p,g.Nx(p.segments,l=>l.volume)),a.st=hT(p,g.Nx(p.segments,l=>l.startTime)),a.et=hT(p,g.Nx(p.segments,l=>l.endTime)),Nh(p.segments,l=>l.playbackRate!== 1)&&(a.rate=hT(p,g.Nx(p.segments,l=>l.playbackRate))),Nh(p.segments,l=>l.L!=="-")&&(a.als=g.Nx(p.segments,l=>l.L).join(",")),Nh(p.segments,l=>l.previouslyEnded)&&(a.pe=g.Nx(p.segments,l=>`${+l.previouslyEnded}`).join(","))); a.muted=hT(p,g.Nx(p.segments,l=>l.muted?1:0)); Nh(p.segments,l=>l.visibilityState!==0)&&(a.vis=hT(p,g.Nx(p.segments,l=>l.visibilityState))); Nh(p.segments,l=>l.connectionType!==0)&&(a.conn=hT(p,g.Nx(p.segments,l=>l.connectionType))); Nh(p.segments,l=>l.S!==0)&&(a.blo=hT(p,g.Nx(p.segments,l=>l.S))); Nh(p.segments,l=>!!l.j)&&(a.blo=g.Nx(p.segments,l=>l.j).join(",")); Nh(p.segments,l=>!!l.compositeLiveStatusToken)&&(a.cbs=g.Nx(p.segments,l=>l.compositeLiveStatusToken).join(",")); Nh(p.segments,l=>!!l.heartbeatLoggingToken)&&(a.hb_data=g.Nx(p.segments,l=>l.heartbeatLoggingToken).join(",")); Nh(p.segments,l=>l.U!=="-")&&(a.cc=g.Nx(p.segments,l=>l.U).join(",")); Nh(p.segments,l=>l.clipId!=="-")&&(a.clipid=g.Nx(p.segments,l=>l.clipId).join(",")); if(Nh(p.segments,l=>!!l.audioId)){let l="au"; p.U&&(l="au_d");a[l]=g.Nx(p.segments,y=>y.audioId).join(",")}PB()&&p.N&&(a.ctt=p.N,a.cttype=p.VY,a.mdx_environment=p.mdxEnvironment); p.g$&&(a.etype=p.Sl!==void 0?p.Sl:0);p.Tm&&(a.uoo=p.Tm);p.livingRoomAppMode&&p.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(a.clram=zmv[p.livingRoomAppMode]||p.livingRoomAppMode);p.j?dte(p,a):(a.docid=p.videoId,a.referrer=p.referrer,a.ei=p.eventId,a.of=p.jA,a.osid=p.osid,a.vm=p.videoMetadata,p.adQueryId&&(a.aqi=p.adQueryId),p.autonav&&(a.autonav="1"),p.playlistId&&(a.list=p.playlistId),p.Gw&&(a.ssrt="1"),p.V2&&(a.upt=p.V2));p.U&&(p.embedsRct&&(a.rct=p.embedsRct),p.embedsRctn&&(a.rctn= p.embedsRctn),p.compositeLiveIngestionOffsetToken&&(a.clio=p.compositeLiveIngestionOffsetToken));p.Hs&&(a.host_cpn=p.Hs);return a}; GSM=function(p){Q("getExitReason: unexpected reason",void 0,void 0,{reason:p})}; iT=function(p,a,l={},y){var S={};g.C0(S,{opt_adElement:void 0,opt_fullscreen:void 0},l);var n=p.C(a,l);l=n?n.vj:p.jl();if(S.opt_bounds)return l.L(yk("ol",y));if(y!==void 0)if(BsA(y)!==void 0)if(nC)p=yk("ue",y);else if(LMM(p),IQ=="i")p=yk("i",y),p["if"]=0;else if(a=p.C(a,S)){b:{IQ=="i"&&(a.iA=!0);n=S.opt_fullscreen;n!==void 0&&QE(a,!!n);if(n=!nP().S)(n=sc(g.Vo(),"CrKey")&&!(sc(g.Vo(),"CrKey")&&sc(g.Vo(),"SmartSpeaker"))||sc(g.Vo(),"PlayStation")||sc(g.Vo(),"Roku")||aYF()||sc(g.Vo(),"Xbox"))||(n=g.Vo(), n=sc(n,"AppleTV")||sc(n,"Apple TV")||sc(n,"CFNetwork")||sc(n,"tvOS")),n||(n=g.Vo(),n=sc(n,"sdk_google_atv_x86")||sc(n,"Android TV")),n=!n;n&&(C$(),n=kL(P1)===0);var V=n;if(V){switch(a.gX()){case 1:pvf(a,"pv");break;case 2:p.Rc(a)}RQ("pv")}n=y.toLowerCase();if(!V&&(VK(QH().AP,"ssmol")&&n==="loaded"?0:g.tU(cvO,n))&&a.Ak==0){IQ!="i"&&(x2.done=!1);V=S!==void 0?S.opt_nativeTime:void 0;c0=V=typeof V==="number"?V:Date.now()-cg;a.zW=!0;var Z=E$();a.Ak=1;a.b_={};a.b_.start=!1;a.b_.firstquartile=!1;a.b_.midpoint= !1;a.b_.thirdquartile=!1;a.b_.complete=!1;a.b_.resume=!1;a.b_.pause=!1;a.b_.skip=!1;a.b_.mute=!1;a.b_.unmute=!1;a.b_.viewable_impression=!1;a.b_.measurable_impression=!1;a.b_.fully_viewable_audible_half_duration_impression=!1;a.b_.fullscreen=!1;a.b_.exitfullscreen=!1;a.gi=0;Z||(a.Jo().K=V);wy(x2,[a],!Z)}(V=a.PA[n])&&nr(a.o9,V);VK(QH().AP,"fmd")||g.tU(rvO,n)&&a.jQ&&a.jQ.S(a,null);let z;switch(a.gX()){case 1:z=ag(n,"custom_metric_viewable")?p.iT.custom_metric_viewable:p.iT[n];break;case 2:z=p.zn[n]}if(z&& (y=z.call(p,a,S,y),VK(QH().AP,"fmd")&&g.tU(rvO,n)&&a.jQ&&a.jQ.S(a,null),y!==void 0)){S=yk(void 0,n);g.C0(S,y);y=S;break b}y=void 0}a.Ak==3&&p.K(a);p=y}else p=yk("nf",y);else p=void 0;else nC?p=yk("ue"):n?(p=yk(),g.C0(p,mGE(n,!0,!1,!1))):p=yk("nf");return typeof p==="string"?l.L():l.L(p)}; VX=function(p,a,l,y,S){const n=H2v(y);return TlZ(a,l,y,new L0(n),S,p.S.get())}; Sh=function(p){return p?`${p.itag||""};${p.lmt||0};${p.xtags||""}`:""}; stF=function(){const p=wXM(),a=dPF();var l=void 0;for(var y=0;y{g_(a,Z);g_(n,Z);V=!0}; for(const Z of p)S(Z);V&&c1(n)}}; RbF=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w){a=XLr(p,a,l,S,n,Z,z,d,G,B,c,w);if(a instanceof N)return a;p=DTh(p,l,n,V,y,Z.va,a);return p instanceof N?p:p.TO.concat(p.dK)}; g.OT=function(p,a,...l){p.state.U.publish(a,...l);p.state.S.publish(a,...l);p.state.j.publish(a,...l)}; g.F_=function(p,a,l,y){return new fa(g.f2[p]||0,g.f2[a]||0,l,y)}; Pho=function(p,a,l,y,S,n){return a.d4&&a.Fu&&l===3?new $tM(p,a,y,S,n):null}; aS=function(p){return navigator.requestMediaKeySystemAccess?g.TF&&!g.VI()?zX("45"):g.av||g.qT?p.Cz("edge_nonprefixed_eme"):g.cq?zX("47"):g.i3&&p.Cz("html5_enable_safari_fairplay")?!1:!0:!1}; LEv=function(p,a=""){const l=ye(a)||void 0;a&&l||p.eb({adcfg:a?.length,dcfg:l?.length});return l}; xtM=function(p){p=XXO(p);const a=p[0].mq;if(p=p[1]){const l=gg(p),y=hO(V9,p$,SK,p).lF;return(S,n,V)=>a(S,n,V,y,l)}return a}; ZtE=function(p,a,l,y,S,n,V,Z,z,d=!1){const G=n0(S);if(!S2(S,d))return new N("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:S});if(G<=0)return new N("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:S});const B=Z0(p,a,S,n,l,y,V);return B instanceof N?B:c=>FEE(a,c.slotId,l,G,S,ov(S),V(c),B,Z,z)}; PE=function(){return dv()?BE("Microsoft Edge"):wv("Edg/")}; ELO=function(p){var a=Array.from(p.L.keys()).sort((l,y)=>(p.L[y].priority??0)-(p.L[l].priority??0)); for(const l of a)a=p.L[l],a.jobId===void 0||a.al||(p.scheduler.bk(a.jobId),cR(a.L4,10))}; wP=function(p){return p.w7==="detailpage"}; vLr=function(p){KU("drm_pb_s",void 0,p.Sl);p.ac||p.L&&p.L.j();var a={};p.L&&(a=mur(p.Qi,g.Gu(p),p.g7.X,p.L,l=>p.publish("ctmp","fmtflt",l),!0,new Set)); a=new Che(a,p.g7,p.vD,p.useCobaltWidevine?Ca()?vk(p):!1:!1,(l,y)=>{p.Xu(l,y)}); g.H(p,a);p.rA=!1;p.loading=!0;Vgf(a,l=>{KU("drm_pb_f",void 0,p.Sl);for(var y of l)switch(y.flavor){case "fairplay":y.ac=p.ac;y.Rw=p.Rw;y.Hf=p.Hf;break;case "widevine":y.jo=p.jo}p.ZU=l;if(p.ZU.length>0&&(p.X=p.ZU[0],p.g7.Mc())){l={};for(const [S,n]of Object.entries(p.X.S)){y=n;let V="unk";const Z=S.match(/(.*)codecs="(.*)"/);Z&&(V=Z[2]);l[V]=y}p.Xu("drmProbe",l)}p.hG()})}; wXM=function(){const p=rT();p.preLoggedGelInfos||(p.preLoggedGelInfos=[]);return p.preLoggedGelInfos}; QWM=function(p,a,l,y,S){a=g.K(a.renderingContent,ST);if(!a)return new N("Invalid rendering content for DAI media layout");p=[new cF(y),new d_(l.Ih.videoLengthSeconds),new r9(l.Ih.playerVars),new AQ(l.Fa),new gx(l.rZ),new w9(l.D_),new GL(Fz(p)),new XP(l.Ih.adVideoId),new x_(l.O9),a.sodarExtensionData&&new FP(a.sodarExtensionData),new $_({current:null}),new fj,new oL(zc(a.pings))].filter(UjM);S!==void 0&&p.push(new hQ(S));return p}; cmq=function(p,a){const l=Math.min(2.5,XF(p.s6));p=c5(p);return a-l*p}; np=function(p){return{fieldType:2,fieldName:p}}; Vk=function(p,a){if(p.heightPx===-1){var l=null;try{l=g.HA("CANVAS"),p.S=l.getContext("2d")}catch(V){}if(p.S){var y=p.L*p.sampleCount;p.U=l;p.U.width=y;p.U.style.width=`${y}px`;p.element.appendChild(p.U)}else for(p.sampleCount=Math.floor(p.sampleCount/4),p.L*=4,l=0;l1?2:1,p.U.height=p.heightPx* l,p.U.style.height=`${p.heightPx}px`,p.S.scale(1,l)));for(var S of a){a=p;var n=p.index;for(l=0;l+2{if(!p.nz()){p.X=NaN;var n=p.C(),V=NmA(p,n);V.C=S;var Z=p.jl>1E3;!(n.length>1)&&n[0].isEmpty()||Z||(V.G=Zw(p,S));V.send();p.jl++}},(S-l)*1E3); return p.j=S}; KEO=function(p){const a=fB$();a&&document.addEventListener(a,p,!1)}; emr=function(p,a,l,y){if(Math.random()<(y||p.L))try{let S;l instanceof os?S=l:(S=new os,Bf(l,function(V,Z){var z=S;const d=z.j++;V=m4(Z,V);z.L.push(d);z.S[d]=V})); const n=S.G9(p.S,"pagead2.googlesyndication.com","/pagead/gen_204?id="+a+"&");n&&(C$(),Rg(n))}catch(S){}}; zZo=function(p,a,l){const y={stack:[],error:void 0,hasError:!1};try{const S=oZO(p,l);return kZ(y,new bYv(p.logger,S)).Gq(()=>[],a)}catch(S){y.error=S,y.hasError=!0}finally{w2h(y)}}; IAO=function(p,a){dfh(p,a).then(void 0,()=>{fN(p)}); uo(p,a).then(l=>{pI(p,l)},()=>{fN(p)}); p.Lz.KP(a);if(p.Y.Mc()||JN(p))a=p.mS(),a["native"]=`${+p.N}`,a.tgt=`${p.S}`,a.otgt=`${p.S+p.timestampOffset}`,a.maxst=`${p.UE()}`,p.L&&p.A("html5_high_res_seek_logging")&&(a.tht=`${p.L.X()}`,a.ht=`${p.L.KC()}`,a.adft=`${Rt(p.L)}`),p.A("html5_sabr_parse_live_metadata_playback_boundaries")&&p.videoData.L&&Yc(p.videoData)&&(a.minst=`${p.videoData.L.vk}`,a.cminst=`${p.videoData.L.NE()+p.timestampOffset}`,a.maxst=`${p.videoData.L.HG}`,a.hts=`${p.videoData.L.jl}`,a.cmaxst=`${p.videoData.L.UE()+p.timestampOffset}`), p.Lz.Xu("startSeek",a)}; $De=function(p,a){p=Rmo(p.r7.L,l=>l.info.itag===a); if(!p)throw Error("Itag "+a+" from server not known.");return p}; uzF=function(p,a){if(!p.nz()&&!a.videoData.nz()){p.Qr=a;RTO(p.nt,p.Qr);if(p.videoData.isLivePlayback){var l=VdA(p.TR.SK,p.videoData.videoId)||p.loader&&!isNaN(p.loader.Ws);l=p.A("html5_onesie_live")&&l;kF(p)||p.videoData.Lx>0&&!TJ(p.videoData)||l||p.seekTo(p.UE(),{qE:"videoplayer_playbackData",seekSource:18})}if(p.videoData.U.L()){if(uoE(p.videoData)){p.f1("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",ki({missabrurl:1}));return}p.loader?g.tX(Error("Duplicated Loader")):(l=g.ak(p.Y.experiments,"html5_onesie_defer_content_loader_ms"))&& p.Sr()&&VdA(p.TR.SK,p.videoData.p7)?g.jQ(()=>{p.nz()||p.loader||zt(p)},l):zt(p)}else!p.videoData.U.L()&&a9(p.videoData)&&p.f6(new dO(p.videoData.videoId||"",4)); p.jp();OYo(a).then(()=>{const y={};p.n9(y);p.Y.Mc()&&p.A("html5_log_media_perf_info")&&p.Xu("av1Info",y);SG(p)})}}; kSo=function(p,a){p.S[a]||(p.S[a]=new VY);return p.S[a]}; g.ce=function(p,a,l){UV(p,l)||Jl(p,a,l);UV(p,"video_to_ad")||Jl(p,a,"video_to_ad");UV(p,"ad_to_video")||Jl(p,a,"ad_to_video");UV(p,"ad_to_ad")||Jl(p,a,"ad_to_ad")}; t0=function(p,a,l=!1){hOA(p.L,a,l)}; MyF=function(p,a){return new c6(p.G,p.U,a||p.L.reason)}; mtF=function(p){if(p.Q0!==void 0){var a=Bb;Bb=!0;try{for(let l=p.Q0;l!==void 0;l=l.N$O){const y=l.JgO;y.Ls||(y.Ls=!0,mtF(y),y.CL?.(y))}}finally{Bb=a}}}; tyh=function(p){return g.AF(p.L,a=>a.info.video?a.info.video.projectionType==="MESH":!1)}; dte=function(p,a){if(a&&p.j){var l=new Set(["q","feature","mos"]),y=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),S=new Set(["aqi","autonav","list","ssrt","upt"]);p.j.ns==="3pp"&&(a.ns="3pp");for(const n of Object.keys(p.j))y.has(n)||l.has(n)||S.has(n)&&!p.j[n]||(a[n]=p.j[n])}}; jSE=function(p){switch(p.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}}; WEf=function(p,a){const l=a.filter(S=>(p.S??S.priority??0)===10),y=a.filter(S=>(p.S??S.priority??0)!==10); return p.j.O19?async(...S)=>{await XZF(l,...S);h1F(p,y,...S)}:(...S)=>{LmM(l,...S); h1F(p,y,...S)}}; xD=function(p){var a=p.videoTrack.D!==-1,l=p.audioTrack.D!==-1;if(!a||!l)if(a=!a&&b6(p.videoTrack),l=!l&&b6(p.audioTrack),a||l)if(l=a?p.videoTrack:p.audioTrack,a=a?p.audioTrack:p.videoTrack,l.D=b6(l).info.Gm,p.policy.X&&(a.D=b6(a)?.info.jl()||a.D),a.D!==-1){let y=Math.max(a.L.index.getStartTime(a.D),l.L.index.getStartTime(l.D));XC(p.r7)&&Math.abs(y-XC(p.r7))>432E3&&HYF(p.r7);p.S&&(y=p.S,p.S=0);g.XM(()=>{p.policy.X||Fk(p,y,102)}); p.loader.Xu("initManifestlessSync",{st:y,ost:y+p.loader.oo(),a:p.audioTrack.D,v:p.videoTrack.D});p.U&&(p.U.resolve(y+.1),p.U=null);p.policy.X&&Fk(p,y,102)}}; Dtr=function(p,a){if(!(a instanceof gr))if(a instanceof Wg){const l=Error(a.toString());l.stack=a.stack;a=new gr(11,"EBH:Error",l)}else a=new gr(12,"BSO:Unknown",a);return p.reportError(a)}; g.Wt=function(p,a,l){if(a instanceof g.J9)l=a.height,a=a.width;else if(l==void 0)throw Error("missing height argument");p.style.width=g.qA(a,!0);p.style.height=g.qA(l,!0)}; iYE=function(p){p.L?(p.j.J(p.L,"message",p.jl),p.j.J(p.L,"keystatuseschange",p.rX),p.L.closed&&p.L.closed.then(GS(()=>{p.onClosed()}),null)):p.S&&(IL(p.j,p.S,["mskeymessage", "webkitkeymessage"],p.N),IL(p.j,p.S,["mskeyerror","webkitkeyerror"],p.UO),IL(p.j,p.S,["mskeyadded","webkitkeyadded"],p.C))}; TsA=function(){var p=a1,a=yB,l;a&2147483648?l=""+(BigInt(a|0)<>>0)):l=OV(p,a);return l}; Nsq=function(p,a){p.publish("settingChange",p.setting+"Override",!a);p.U6.y4()}; sSM=function(p){if(p.Yc&&typeof p.Yc=="function")return p.Yc();if(typeof Map!=="undefined"&&p instanceof Map||typeof Set!=="undefined"&&p instanceof Set)return Array.from(p.values());if(typeof p==="string")return p.split("");if(g.$m(p)){const a=[],l=p.length;for(let y=0;yS.bitrate-y.bitrate); l.sort((y,S)=>y.bitrate-S.bitrate); p.S=a.concat(l)}; hmr=function(p,a,l,y){return nP().U?!1:fU(p)<=0||p.getHeight()<=0?!0:l&&y?QSF(208,()=>fYO(p,a,l)):!1}; Xo=function(){return g.o1("ytPubsub2Pubsub2Instance")}; Bc=function(p,a){var l=p.Lx[a]?.chapters;l&&(Avo(p,l),p.api.getVideoData().UY=p.L,WdZ(p));if((l=p.Lx[a]?.markers)&&a!=="HEATSEEKER"){GW(p);for(var y of l){l=new gLE;var S=g.K(y,g.YT$);S&&(l.title=S.title?.simpleText||"",l.timeRangeStartMillis=S.timeRangeStartMillis??NaN,l.onActiveCommand=S?.onActiveCommand??void 0,qTr(p,l))}d9(p,p.K);y=p.K;l=p.UY;S=[];for(var n=0;n=d&&c<=G&&B.push(Z)}S>0&&(p.Sl.style.height=`${S}px`);fAA(p.j[z],B,l,S,z===0);B.length>0&&(V=B[B.length-1])}g.sr(p);a=a.heatMarkersDecorations|| [];Z=[];for(const z of a)if(a=g.K(z,p6M))y=a.label,Z.push({visibleTimeRangeStartMillis:a.visibleTimeRangeStartMillis??-1,visibleTimeRangeEndMillis:a.visibleTimeRangeEndMillis??-1,decorationTimeMillis:a.decorationTimeMillis??NaN,label:y?g.mQ(y):""});p.heatMarkersDecorations=Z}}; g.SH=function(p){return(p=g.cc(p.DN()))?p.H6():{}}; AI=function(p,a,l,y,S){Object.isExtensible(p);a=rW(p.DI,a,l,S);if(a!==null||y&&p.j!==tF)return a}; QZ=function(p,a){g.t9(p.api.DN())&&p.api.setOption("captions","sampleSubtitles",a)}; a3M=function(p){ef=p}; l3h=function(p,a,l){return(p=p.levels[a])?p.j(l):-1}; rO=function(p,a){const l=Math.max(p,a);p=Math.min(p,a);a=dg[0];for(let y=0;y=Math.floor(n*16/9)*1.3||p>=n*1.3)return a;a=S}return"tiny"}; h0=function(p){const a=Lt();XD(a,p);return g.wO(a,MQM())}; g.L9=function(p,a){a=Yt(a);a=x1(a,a);a.j=!0;pt(p,a);return p}; $R=function(p,a){var l=He$(p.U,a.S);if(p.L.length>1){l=MT(p,a.U,!0);let y=0;for(let S=0;S0&&(y+=p.L[S].width,y+=Sm(p));l=(p.L[l].startTime+(a.U-y)/p.L[l].width*((l===p.L.length-1?p.U.L*1E3:p.L[l+1].startTime)-p.L[l].startTime))/1E3||0}return l}; S4r=function(p){const a=p.j.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);a.classList.add("ytp-seek-overlay-arrow-additional");a.classList.remove("ytp-seek-overlay-arrow-persistent");p.j.appendChild(a);yGr(p,a,!0,!0).addEventListener("finish",()=>{a.remove()})}; oXO=function(p,a,l){if(!(l in a))return!1;a=a[l];Array.isArray(a)||(a=[a]);for(const y of a)a={CPN:p.api.getVideoData().clientPlaybackNonce},a=g.xN(y,a),g.Fj(a,void 0,Qu(oY(a,nXr),a,!1,"Active View 3rd Party Integration URL")||Qu(oY(a,VYF),a,!1,"Google/YouTube Brand Lift URL")||Qu(oY(a,ZJf),a,!1,"Nielsen OCR URL"));return!0}; QPr=function(p,a){a<0||(p.S.forEach(l=>{NtM(l,a)}),p.timestampOffset=a)}; LJ=function(p){return p.w7==="adunit"||p.playerStyle==="gvn"}; Pc=function(p,a,l,y,S,n,V,Z){a?a.test(l)?(p.d$(S,a,V),a.D||n()):(!a.S||a.j?l=!1:(l=(0,g.h)(),y?a.L||(a.L=l):a.L=0,n=!y&&l-a.S>3E4,l=a.L&&l-a.L>1E3||n?a.j=!0:!1),l&&(Z={...p.mS(a),...Z},Z.wn=V,Z.we=S,Z.wsuc=y,p.Lz.Xu("workaroundReport",Z),y&&(a.reset(),p.U[S]=!1))):p.Lz.f1("auth",2,"BROWSER_OR_EXTENSION_ERROR",ki({source:"watchdog",name:V}))}; DuO=function(p,a,l){const y=l.video?.fps||0,S=`${a}_${y}`;var n=!!l.audio;const V=p.L.get(S);var Z=p.L.get(S);const z=!!l.audio;Z&&(z||!z&&l.video?.height&&Z.maxHeight&&Z.maxHeight>=l.video?.height)||(Z=l.itag,a=V?V:{itag:Z,mT:a,Bi:n},n?a.numChannels=l.audio.numChannels:(n=l.video,a.maxWidth=n?.width,a.maxHeight=n?.height,a.maxFramerate=y,Oe(p,y9.BITRATE)&&(a.maxBitrateBps=l.Sb*8),a.qw=n?.isHdr()),p.L.set(S,a))}; GY=function(p,a=!1){return p.B.O().A("html5_ssap_force_ads_ctmp")?!0:(a||p.B.O().Mc())&&p.B.O().A("html5_ssap_pacf_qoe_ctmp")}; zUO=function(p,a,l){const y=!(!a||a.L!==p.L||a.type!==p.type||a.Gm!==p.Gm);return l?y&&!!a&&(p.range&&a.range?a.range.end===p.range.end:a.range===p.range)&&a.S+a.U===p.S+p.U:y}; Aur=function(p){if(!p)return null;p=DQ(p,4);return p===null||p===void 0?null:Bs(p)}; Qef=function(p){switch(typeof p){case "number":return Number.isFinite(p)?p:""+p;case "bigint":return qk(p)?Number(p):""+p;case "boolean":return p?1:0;case "object":if(Array.isArray(p)){var a=p[rD]|0;return p.length===0&&a&1?void 0:zD(p,a,Qef)}if(p!=null&&p[Ek]===CU)return d7(p);if(p instanceof hB){a=p.L;if(a==null)p="";else if(typeof a==="string")p=a;else{let l="",y=0;const S=a.length-10240;for(;y0||a>127;)p.L.push(a&127|128),a=(a>>>7|l<<25)>>>0,l>>>=7;p.L.push(a)}; dlE=async function(p,a){const l={startTime:(0,g.h)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}};a=await Ba(a);var y=g.R("INNERTUBE_CONTEXT_CLIENT_NAME",0),S=[p,y,0];y=[p,y,(0,g.h)()];const n=IDBKeyRange.bound(S,y);let V="prev";g.nU("use_fifo_for_networkless")&&(V="next");let Z=void 0;S=p==="NEW"?"readwrite":"readonly";g.nU("use_readonly_for_get_most_recent_by_status_killswitch")&&(S="readwrite");await g.hs(a,["LogsRequestsStore"],{mode:S,nx:!0},z=>g.hr(z.objectStore("LogsRequestsStore").index("newRequestV2"), {query:n,direction:V},d=>{d.getValue()&&(Z=d.getValue(),p==="NEW"&&(Z.status="QUEUED",d.update(Z)))})); l.ticks.tc=(0,g.h)();jkO(l);return Z}; BXA=function(p){GUe(()=>{for(const a of Object.keys(y9))Oe(p,y9[a])})}; pJ=function(p){return p.playerResponse?.playerConfig?.compositeVideoConfig?.compositeBroadcastType==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; g.cGM=function(p){var a=window;p=g.Re(p,{});a_(p);p=g.ZM(p+"");a=a.location;p=XW(p);p!==void 0&&(a.href=p)}; Wee=function(p,a,l,y){if(XL.length){const S=XL.pop();d3(S,y);S.L.init(p,a,l,y);return S}return new rGh(p,a,l,y)}; Hro=function(p,a,l,y){a=p7(p,a,l,y);return a instanceof N?a:cJ(p,a,l)}; yWM=function(p){try{const a=p.split(",");return a.length>g.WA(w6A).length?null:j1(a,(l,y)=>{y=y.toLowerCase().split("=");if(y.length!=2||$lo[y[0]]===void 0||!$lo[y[0]](y[1]))throw Error(`Entry (${y[0]}, ${y[1]}) is invalid.`);l[y[0]]=y[1];return l},{})}catch(a){return null}}; PSh=function(p){const a=p.cpn,l=p.Lv;p=p.Lg;const y=l.X_();md(l,"cx",{xc:a,ia:a!==y,r:V_.t7.has(a),is:p,ctp:tu(a)})}; xR=function(p,a,l,y,S){const n=p.L||p.isDragging||p.S||p.M7;p.L=a;p.isDragging=l;p.S=y;p.M7=S;a=p.L||p.isDragging||p.S||p.M7;n!==a&&(a?p.X=p.J(p.element,"wheel",p.jl):(p.Kt(p.X),p.X=null),g.OW(p.D,"ytp-volume-slider-active",a))}; Lqr=function(){let p;p=mE(16);const a=[];for(let l=0;l=a||(l[p]=y+1,p=Error(),sJO(p,"incident"),s_(p))}}; vXo=function(p,a){if(p.U()===0||p.hasError())return!1;const l=p.getCurrentTime()>0;return a>=0&&(p=p.K(),p.length||!l)?Dq(p,a):l}; XXO=function(p){return Array.isArray(p)?p[0]instanceof q$?p:[Kqv,p]:[p,void 0]}; Eg=function(){let p=0,a;return l=>{a||(a=new jX);const y=new rfF(a,p,1),S=y.Gq(()=>mg(l),!0); y.dispose();p++;return S}}; inM=function(p){if(p.Bs)return["f"];if(g.IW("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");let a=["9h","9","h","8"];p.Ro&&a.push("1e");a=a.concat(["(h","(","H","*"]);p.jl&&(a.unshift("1"),a.unshift("1h"));p.Ql&&a.unshift("h");p.C&&(a=(r_o[p.C]||[p.C]).concat(a));return a}; txo=function(p,a){const l=!(!p.m&&!p.M),y=!(!p.mac3&&!p.MAC3),S=!(!p.meac3&&!p.MEAC3);p=!(!p.i&&!p.I);a.zn=p;return l||y||S||p}; eU$=function(p,a,l){a=Cp(p.gG,JUM(p,a,l),a);p.N1()&&a.set("probe","1");return a}; bJo=function(p){const a=[];p.L.forEach(l=>{for(const y of l.values())a.push(y.slot)}); return a}; g.VZ=function(p,a,l){for(;dH(p,a);){const y=Ge(p,a);if(y.type===l)return y;a=up(y.type)?a+8:a+y.size}return null}; YeZ=function(p,a,l){p.L.get(l)?.delay.dispose();p.L.delete(l);return new Promise(y=>{y={id:l,mediaTime:a,delay:new g.SF(()=>{}), resolve:y};p.L.set(l,y);YY(p,y)})}; I3v=function(p){O7e=p}; ir$=function(p){const a=[],l=p.sandwichedLinearAdRenderer&&p.sandwichedLinearAdRenderer.linearAd&&g.K(p.sandwichedLinearAdRenderer.linearAd,ST);if(l)return a.push(l),a;if(p.instreamVideoAdRenderer)return a.push(p.instreamVideoAdRenderer),a;if(p.linearAdSequenceRenderer&&p.linearAdSequenceRenderer.linearAds){for(const y of p.linearAdSequenceRenderer.linearAds)g.K(y,ST)&&a.push(g.K(y,ST));return a}return null}; Pj=function(p,a){return`${p.getAsJson().veType}${p.getAsJson().veCounter}${a}`}; Kp=function(p){const a=g.cb(p.app.O()),l=p.app.getVideoData()?.t4;p=vc(p.app);return g.qZ(a)&&!l||p?!1:!0}; RUZ=function(p){p.sourceElement&&(document.activeElement&&g.n3(p.element,document.activeElement)&&p.sourceElement.focus(),p.sourceElement.setAttribute("aria-expanded","false"),p.sourceElement=void 0);g.uY(p.X);p.D=void 0}; u_A=function(p){g.V2("yt-player-watch-later-pending",p)}; eK=function(p,a,l,y){p.Io.L(asE(y),a,l);for(const S of p.S)S.lr(a,l,y)}; LTq=function(p,a){for(const l of a){if(l.slotType==="SLOT_TYPE_PLAYER_BYTES"&&l.fulfilledLayout)if(a=void 0,l.fulfilledLayout.renderingContent)a=l.fulfilledLayout.clientMetadata.t9("metadata_type_player_vars");else{if(l.fulfilledLayout.lK)for(const y of l.fulfilledLayout.lK)if(y.renderingContent&&(a=y.clientMetadata.t9("metadata_type_player_vars")))break}else a=void 0;if(a){p.QL.get().B.preloadVideoByPlayerVars(a,2,300);break}}}; Bi=async function(p,a={}){try{const l=self.indexedDB.deleteDatabase(p),y=a.blocked;y&&l.addEventListener("blocked",()=>{y()}); await sUr(l)}catch(l){throw UC(l,p,"",-1);}}; jKe=function(p,a,l,y,S,n,V,Z,z,d,G,B,c){l=XLr(a,l,y,n,V,Z,z,d,G,B,c);if(l instanceof N)return l;p=x_r(a,p,V,S,l);return p instanceof N?p:[...p.TO,p.dK]}; g.Qa=function(p,a){if(a){a=Number(a);if(isNaN(a)||a<0)throw Error("Bad port number "+a);p.U=a}else p.U=null}; r1=function(p,a){(p.loader=a)?TW(p,!0):fN(p)}; AG=function(p){return p.Yo||az(p)==="detailpage"||az(p)==="shortspage"||p.mutedAutoplay}; kD=function(p){return p in bL?bL[p]:bL[p]="on"+p}; oZO=function(p,a){a=a instanceof gr?a:new gr(5,"TVD:error",a);return p.reportError(a)}; ej=function(p,a){Du(p,"cat",a)}; Is=function(p){return p.mediaElement?gH(p.mediaElement):0}; $u=async function(p){if(p.A("html5_generate_session_po_token")&&!p.useLivingRoomPoToken){var a=p.api.O(),l=g.R("EOM_VISITOR_DATA")||g.R("VISITOR_DATA");l=a.Z1?a.datasyncId:l;l=pm(a.experiments,"html5_mock_content_binding_for_session_token")||a.livingRoomPoTokenId||l;a.Me=rP(p,l)}}; Gv$=function(p){var a=p.O();if(a.A("html5_disable_onesie")||!a.A("html5_onesie")||!a.A("html5_onesie_inline")&&p.getVisibilityState()===5||a.UO!=="yt")return!1;var l=a.dG;if(!l||!l.L)return p.handleError(new g.cQ("onesie.unavailable.hotconfig",{key:"0"})),!1;l.L.G<(0,g.h)()&&(p.Xu("okexp","1"),(l=p.SP())&&a.A("html5_prefer_trusted_host_on_key_expiration")&&(l.S=!0,(a=l.L.get(0)?.L())&&!Cf(a)&&l.L.delete(0)));if(FN)return p.Xu("ost3","1"),!1;a={};return Object.keys(a).length>0?(a.onesie="0",p.handleError(new g.cQ("html5.missingapi", a)),!1):!0}; T7q=function(p,a){if(a.info.type===1)if(a.info.L.info.video){var l=p.timing;l.QY||(l.QY=(0,g.h)(),g.ce("vis_r",l.QY,l.L))}else l=p.timing,l.K||(l.K=(0,g.h)(),g.ce("ais_r",l.K,l.L));ZCM(p.j,a);p=p.loader;p.videoTrack.L.L()&&p.audioTrack.L.L()&&p.policy.L&&!p.r7.va&&(a=p.audioTrack.getDuration(),l=p.videoTrack.getDuration(),Math.abs(a-l)>1&&p.Xu("trBug",{af:`${g.UY(p.audioTrack.L.info,!1)}`,vf:`${g.UY(p.videoTrack.L.info,!1)}`,a:`${a}`,v:`${l}`}))}; yAe=function(p){return(HG(p.videoData)||!!p.videoData.liveUtcStartSeconds)&&(!!p.videoData.liveUtcStartSeconds||$A(p))&&!!p.videoData.L}; Ix=function(p){if(!p.nz()&&p.U){p.G="paused";var a=pq(p);a.isFinal=!0;a.send();p.dispose()}}; iIA=function(p,a){if(a=a&&a.buttonRenderer||null)a.serviceEndpoint?(p.S=new Ju(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.H(p,p.S),p.S.init(Mx("ad-feedback-undo-mute-button"),a,p.macros),p.S.listen("click",p.Bs,p),p.S.lT(p.jl)):g.tX(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))}; LgM=function(p,a,l=[],y="",S="",n,V){const Z=lT(p.L).j8,z=p.player.getVideoData(1);z&&z.getPlayerResponse();z&&z.va();l=Tf(a,l,Z,lT(p.L).l1);Xy$(lT(p.L).sE,y,l.df,l.Jp,a,S,n,V)}; EB=function(p){if(BQM(p)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(p))throw Error(String(p));}else if(OJh(p)&&!Number.isSafeInteger(p))throw Error(String(p));return BigInt(p)}; kUZ=function(p,a,l,y,S,n,V,Z,z){y.every(G=>Yi(G,[],["LAYOUT_TYPE_MEDIA"]))||Q("Unexpect subLayout type for DAI composite layout"); a=d$(p.S.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",a);const d={layoutId:a,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",qO:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xh:new Map,layoutExitNormalTriggers:[new qK(p.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new AQ(l),new gx(Z),new ouh(y),new GL(S),new hQ(n),new fj,new fCM(z)]),ao:V(d)}}; h2r=function(p){if(!p.nz())if(p.Y.A("html5_drm_set_server_cert")||p.L.L()){const a=p.X.setServerCertificate();a?a.then(GS(l=>{p.Y.Mc()&&p.publish("ctmp","ssc",{success:l})}),GS(l=>{p.publish("ctmp","ssce",{n:l.name, m:l.message})})).then(GS(()=>{H9(p)})):H9(p)}else H9(p)}; MYM=function(p){if(!p)throw Error();throw p;}; mlf=function(p={},a){switch(a.type){case "ENTITY_LOADED":return a.payload.reduce((l,y)=>{const S=y.options?.persistenceOption;if(S&&S!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&S!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return l;if(!y.entityKey)return g.MD(Error("Missing entity key")),l;if(y.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!y.payload)return y=new g.Qm("REPLACE entity mutation is missing a payload",{entityKey:y.entityKey}),g.MD(y),l;var n=g.E9(y.payload);return lV(l,n,y.entityKey,y.payload[n])}if(y.type=== "ENTITY_MUTATION_TYPE_DELETE"){a:{y=y.entityKey;try{const V=g.Rs(y).entityType;n=lV(l,V,y);break a}catch(V){if(V instanceof Error){y=new g.Qm("Failed to deserialize entity key",{entityKey:y,originalMessage:V.message});g.MD(y);n=l;break a}throw V;}n=void 0}return n}if(y.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!y.payload)return y=new g.Qm("UPDATE entity mutation is missing a payload",{entityKey:y.entityKey}),g.MD(y),l;n=g.E9(y.payload);return Aho(l,n,y.entityKey,y.payload[n],y.fieldMask?.mergeOptions?.repeatedFieldsMergeOption)}return l}, p); case "REPLACE_ENTITY":return lV(p,a.payload.entityType,a.payload.key,a.payload.um);case "REPLACE_ENTITIES":return Object.keys(a.payload).reduce((l,y)=>{const S=a.payload[y];return Object.keys(S).reduce((n,V)=>lV(n,y,V,S[V]),l)},p); case "UPDATE_ENTITY":return Aho(p,a.payload.entityType,a.payload.key,a.payload.um,a.payload.zF9);default:return p}}; CW=function(p,a){const l=p.provider.Y;g.kw(p.provider.Y,p.provider.videoData.G()).then(y=>{const S=p.provider.Y.pageId,n=p.provider.Y.sendVisitorIdHeader?p.provider.videoData.visitorData:void 0,V=p.provider.Y.A("vss_pings_using_networkless")||p.provider.Y.A("kevlar_woffle"),Z=p.provider.Y.A("allow_skip_networkless");y=MJ(a,l,S,n,y);mh(a,y,{token:p.provider.videoData.D,qL:p.provider.videoData.kT,mdxEnvironment:p.provider.videoData.mdxEnvironment},l,void 0,V&&!Z,!1,!0)})}; tYZ=function(p,a){if(!p)return{pH:[],adSlots:[],qI:!0,ssdaiAdsConfig:void 0};p.trackingParams&&uL(p.trackingParams);if(p.adThrottled)return{pH:[],adSlots:[],qI:!0,ssdaiAdsConfig:void 0};const l=p.adSlots??[];var y=p.playerAds??[];if(!(y&&y.length||l.length))return{pH:[],adSlots:l,qI:!1,ssdaiAdsConfig:void 0};y=y.map(S=>S.adPlacementRenderer).filter(S=>!(!S||!S.renderer)); if(!y.length&&!l.length)return{pH:[],adSlots:l,qI:!1,ssdaiAdsConfig:void 0};if(a.end>0){const S=a.end.toString();y.forEach(n=>{(n=n.config&&n.config.adPlacementConfig)&&n.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&n.adTimeOffset&&n.adTimeOffset.offsetEndMilliseconds==="-1"&&n.adTimeOffset.offsetEndMilliseconds!==S&&(n.adTimeOffset.offsetEndMilliseconds=S)}); l.map(n=>g.K(n,Gi)).forEach(n=>{(n=n?.slotEntryTrigger?.mediaTimeRangeTrigger)&&n.offsetEndMilliseconds==="-1"&&(n.offsetEndMilliseconds=S)})}return{pH:y, adSlots:l,qI:!1,ssdaiAdsConfig:p.ssdaiAdsConfig}}; WqF=function(p){j9r(p);p.D=g.Bg(()=>{p.update()},100); p.uc=g.CX(p.provider);p.S=yE(p.provider)}; qBZ=function(p){const a=p.Lz.ZH()||{};a.fs=p.Lz.AD();a.volume=p.Lz.getVolume();a.muted=p.Lz.isMuted()?1:0;a.mos=a.muted;a.clipid=p.Lz.x8();a.playerheight=p.Lz.getPlayerSize()?.height||0;a.playerwidth=p.Lz.getPlayerSize()?.width||0;p=p.videoData;const l={};p.S&&(l.fmt=p.S.itag,p.j&&(p.Ro?p.j.itag!==p.S.itag:p.j.itag!=p.S.itag)&&(l.afmt=p.j.itag));l.ei=p.eventId;l.list=p.playlistId;l.cpn=p.clientPlaybackNonce;p.videoId&&(l.v=p.videoId);p.OU&&(l.infringe=1);(p.L1?0:p.A$)&&(l.splay=1);const y=ht(p);y&& (l.live=y);p.Pk&&(l.sautoplay=1);p.Yo&&(l.autoplay=1);p.DK&&(l.sdetail=p.DK);p.partnerId&&(l.partnerid=p.partnerId);p.osid&&(l.osid=p.osid);p.Oy&&(l.cc=g.GIr(p.Oy));return Object.assign(a,l)}; HJE=function(p){if(g.IW("cobalt")&&g.IW("nintendo switch")){var a=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;p.Xu("nxdock",{d:a})}}; Mo=function(p){var a=p.getStatus();a:switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var l=!0;break a;default:l=!1}if(!l){if(a=a===0)p=g.hq(String(p.K))[1]||null,!p&&g.mm.self&&g.mm.self.location&&(p=g.mm.self.location.protocol.slice(0,-1)),a=!Dl$.test(p?p.toLowerCase():"");l=a}return l}; WX=function(p){if(!p.playerResponse)return!1;if(p.lj)return!0;var a=p.videoData.A("html5_onesie_audio_only_playback")&&nz(p.videoData);if(p.Xz&&p.sb){if(!p.Xz.has(p.Bx))return!1;const y=p.Xz.get(p.Bx);var l;if(l=y){l=!1;for(const S of y.hP.keys()){const n=y.hP.get(S);if(n)for(const V of n.D5)V.rN>0&&(n.Bi?l=!0:a=!0)}l=!(a&&l)}if(l)return!1}p.a4("ofr");p.mC.resolve(p.playerResponse);p.gR||(p.jB?.start(),p.qy.start());return p.lj=!0}; zk$=function(p){p.L=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];p.G=[];p.G.length=64;p.j=0;p.S=0}; m7=function(p,a=""){return p.Z1?La(!0):Gr(HW(La(g.kw(p,a)),l=>La(!!l)),()=>La(!1))}; So=function(p){const a=Number(p);return a==0&&g.o4(p)?NaN:a}; g.rE=function(){try{return g.$K(),!0}catch(p){return!1}}; E3A=function(p,a){var l=null;let y=p.text;a&&(y=FDq(y)||y);p.bold&&(l=mt("B",null,l||y));p.italics&&(l=mt("I",null,l||y));p.strikethrough&&(l=mt("STRIKE",null,l||y));p.navigationEndpoint&&g.K(p.navigationEndpoint,g.aY)&&(a=g.K(p.navigationEndpoint,g.aY),l=mt("A",null,l||y),g.Uz(l,a.url),a.target=="TARGET_NEW_WINDOW"&&(l.target="_blank"),p=p.navigationEndpoint.loggingUrls)&&(p=p.map(S=>S.baseUrl),LF().register(l,p),g.XX(l,"ytp-ad-has-logging-urls")); return l||mt("SPAN",null,y)}; iJr=function(p){const a="loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");for(const l of a)p.AB.J(p.mediaElement,l,p.bv,p);p.Y.t4&&p.mediaElement.X()&&(p.AB.J(p.mediaElement,"webkitplaybacktargetavailabilitychanged",p.HK,p),p.AB.J(p.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",p.Ra,p))}; j2E=function(p,a){gD(p,1,a.Zhz);gD(p,2,a.Pfv)}; g.kBO=function(p){for(;!p.j&&!p.error;){var a=p;a.j=!!t8(a,1);switch(t8(a,2)){case 2:var l=void 0,y=[],S=[];S.length=19;S.fill(0);var n=t8(a,5)+257;l=t8(a,5)+1;var V=t8(a,4)+4;for(var Z=0;Z0;z--)y.push(Z)}y.length!==V?a.error=!0:(l=y.slice(-l),y.length=n,FV$(a,y,l));break;case 1:FV$(a,Og,kR);break; case 0:R5(a,a.L&7);y=t8(a,16);n=t8(a,16);(y^n)!==65535&&(a.error=!0);a.output.set(a.data.subarray(a.S,a.S+y),a.U);a.S+=y;a.U+=y;break;default:a.error=!0}p.U>p.output.length&&(p.output=new Uint8Array(p.U*2),p.U=0,p.S=0,p.j=!1,p.L=0,p.register=0)}p.output.length!==p.U&&(p.output=p.output.subarray(0,p.U));return p.error?new Uint8Array(0):p.output}; EG=function(){const p=OQ();return!(!p.webkitSupportsPresentationMode||typeof p.webkitSetPresentationMode!=="function")}; NXO=function(p){if(p.U&&typeof Mi!="undefined")if(p.C&&g.aU(p)==4)setTimeout(p.f$.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.getStatus();p.U=!1;try{if(Mo(p))p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.S=6;try{var a=g.aU(p)>2?p.L.statusText:""}catch(l){a=""}p.j=a+" ["+p.getStatus()+"]";cnh(p)}}finally{Oj(p)}}}; s9r=function(p){p.gG.UO=(0,g.h)();p=mZ(p);p.S=(0,g.h)();p.started+=1}; jA=function(p,a){a.stack&&(p.stack+="\n"+a.stack);return p}; g.tz=function(p,a,...l){g.Qi(p,a,1,l)}; Ulr=function(p){return p.A("html5_onesie_host_probing")||p.ST?ig:!1}; hUf=async function(p,a,l){try{const S=h0(l);const n=a.O(),V=g.ik(),Z={context:g.dT(a),videoId:a.videoId,racyCheckOk:a.racyCheckOk,contentCheckOk:a.contentCheckOk,autonavState:"STATE_NONE"};az(a)==="adunit"&&(Z.isAdPlayback=!0);n.embedConfig&&(Z.serializedThirdPartyEmbedConfig=n.embedConfig);n.QR&&(Z.showContentOwnerOnly=!0);a.sx&&(Z.showShortsOnly=!0);V.Zy(141)&&(Z.autonavState=V.Zy(140)?"STATE_OFF":"STATE_ON");if(g.p8(n)){const B=V.Zy(65);l=B!=null?!B:!1;const c=!!g.Wk("yt-player-sticky-caption"); Z.captionsRequested=l&&c}const z=n.getWebPlayerContextConfig()?.encryptedHostFlags;z&&(Z.playbackContext={encryptedHostFlags:z});var y=Z;const d=g.oU(Q9q);p.a4("wn_s");const G=await g.xu(S,y,d);p.a4("wn_r");!G||"error"in G&&G.error||(g.UO(a.O())&&G.trackingParams&&uL(G.trackingParams),g.GI(a,{raw_watch_next_response:G},!1))}catch(S){}}; AGO=function(p,a,l){const y=p.eq(a,l);p.hv=y;p.listeners.forEach(S=>{S.Nm(y)})}; jK=async function(p,a){var l=wg(p,"redirector.googlevideo.com");l.set("alr","yes");l.set("id",`${Math.round(Math.random()*1E5)}`);if(a===1||a===2)l.set("cmo=sensitive_content","yes"),l.set("sc","yes");a===2&&l.set("cmo=td","c.youtube.com");var y=await pk(l.G9(),{format:"RAW",timeout:5E3});if(y.xhr.status!==200||!y.xhr.responseText)return Promise.reject(new g.Qm("b204258371_no_host",l.G9(),y.xhr.status));var S=new g.Xh(y.xhr.responseText);l=tZ(36,S);y=S.get("ms");p=wg(p,l);S=S.get("mm");p.set("ms", y);p.set("mm",S);return l&&I4(l)?a!==2||Cf(l)?p:Promise.reject(new g.Qm("b204258371_untrusted",l,y)):Promise.reject(new g.Qm("b204258371_invalid",l,y))}; Wc=function(p,a,l){p=g.Qb(p.Py(),a);return l?(l.addOnDisposeCallback(p),null):p}; var pMF=function(){return nJ[r[12]](this,16)}; a2h=function(p,a){jP(p,1,a.videoId);gD(p,2,a.lmt)}; hyZ=function(p){if(!p.S||!p.L){if(!iB()){const a=g.tl("scheduleGetConfigs");D0(a)}p.j||(p.j=g.XY.zD(async()=>{try{await uKZ(p)}catch{}try{await gnE(p)}catch{}p.j&&(p.j=0)},100))}}; CbA=function(p,a,l,y,S,n,V){a=bPr(a,n,Number(y.prefetchMilliseconds)||0,V);p=a instanceof N?a:pz(p,y,S,a,l);return p instanceof N?p:[p]}; Hc=function(p,a,l){if(p.B.O().A("html5_dispose_modules_in_order"))for(var y of gX$){var S=p.yr.get(y);S&&(l||S.bK(a))&&(g.Er(S),p.yr.delete(y))}else for(const [n,V]of p.yr)y=n,(S=V)&&(l||S.bK(a))&&(g.Er(S),p.yr.delete(y));p.B.publish("modulesDestroyed",a)}; Ap=function(p,a){this.S=this.L=null;this.U=p||null;this.j=!!a}; Y4r=function(p,a=p.O().schedule){p.a4("vir");p.a4("ps_s");Jl("vir",void 0,"video_to_ad");a=cxM(p,a);a.then(function(){p.a4("virc");Jl("virc",void 0,"video_to_ad");p.a4("ps_r");Jl("ps_r",void 0,"video_to_ad")},function(){p.a4("virc"); Jl("virc",void 0,"video_to_ad")}); return a}; JGF=function(p,a){let l="detailpage";a==="adunit"?l=p.j?"embedded":"detailpage":a==="embedded"||p.K?l=O4(l,a,q4v):a&&(l="embedded");return l}; ut=function(p){return p}; sO=function(p=Fhf()){var a=Dw,l=Object,y=l.assign,S=iL(a);var n=a.L;let V,Z,z,d,G,B,c;try{var w=n.screenX;var X=n.screenY}catch(I){}try{var v=n.outerWidth;V=n.outerHeight}catch(I){}try{Z=n.innerWidth,z=n.innerHeight}catch(I){}try{d=n.screenLeft,G=n.screenTop}catch(I){}try{Z=n.innerWidth,z=n.innerHeight}catch(I){}try{B=n.screen.availWidth,c=n.screen.availTop}catch(I){}n=[d,G,w,X,B,c,v,V,Z,z];w=BA$(!1,a.L.top);X=new f3M;"SVGElement"in g.mm&&"createElementNS"in g.mm.document&&X.set(0);v=uUf();v["allow-top-navigation-by-user-activation"]&& X.set(1);v["allow-popups-to-escape-sandbox"]&&X.set(2);g.mm.crypto&&g.mm.crypto.subtle&&X.set(3);"TextDecoder"in g.mm&&"TextEncoder"in g.mm&&X.set(4);X=pJq(X);a=y.call(l,S,{bc:X,bih:w.height,biw:w.width,brdim:n.join(),vis:kL(a.S),wgl:!!bn.WebGLRenderingContext});a.ca_type="image";p&&(a.bid=p);return a}; bev=function(p){return new Tt(p)}; ldq=function(p){return p.L.flavor==="widevine"&&p.videoData.A("html5_drm_cpi_license_key")}; apF=function(p){if(!(p.S<0)){var a=g.CX(p.provider),l=a-p.j;p.j=a;p.playerState.S()?p.playTimeSecs+=l:p.playerState.isBuffering()&&!p.playerState.L(16)&&(p.rebufferTimeSecs+=l)}}; Y3r=function(p){var a=IC();switch(a){case 1:RC.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:a=`${p}-start`;const l=`${p}-end`;RC.performance.mark(l);RC.performance.measure(p,a,l);break;case 0:break;default:bF(a,"unknown trace type")}}; sg=function(p,a,l,y,S,n,V,Z,z){if(a===p)if(z){if(z===Z.layoutId){a:{for(const d of l.keys())if(d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n===l.get(d).layoutId){p=!0;break a}p=!1}p?Ni(y,1):S?S():Q("Tried to call engagePingCallback but it is null",V,Z)}}else Q("Companion AdUxClick received without a layoutId",V,Z)}; Ndr=function(p,a,l,y,S,n){const V=G=>Yv(p.EQ.get(),G),Z=[]; for(const G of a){a=G.renderer;var z=a.sandwichedLinearAdRenderer,d=a.linearAdSequenceRenderer;z&&ikE(z)?(Q("Found AdNotify with SandwichedLinearAdRenderer"),d=g.K(z.adVideoStart,HV),z=g.K(z.linearAd,ST),f$(n,a,G.config.adPlacementConfig.kind),a=jKe(d?.layout.layoutId,p.S.get(),p.L.get(),G.config.adPlacementConfig,G.adSlotLoggingData,z,l,y,V,S,p.loadPolicy,p.EO.get(),p.EQ.get()),a instanceof N?Q(a):Z.push(...a)):d&&(!d.adLayoutMetadata&&z5h(d)||d.adLayoutMetadata&&lph(d))&&(Q("Found AdNotify with LinearAdSequenceRenderer"), f$(n,a,G.config.adPlacementConfig.kind),a=b3M(g.K(d.adStart,HV)?.layout.layoutId,p.S.get(),p.L.get(),G.config.adPlacementConfig,G.adSlotLoggingData,d.linearAds,Ar(d.adLayoutMetadata)?d.adLayoutMetadata:void 0,l,y,V,S,p.loadPolicy,p.EO.get()),a instanceof N?Q(a):Z.push(...a))}return Z}; fl=function(p,a,l){a instanceof g.g3?(p.left+=a.x,p.right+=a.x,p.top+=a.y,p.bottom+=a.y):(p.left+=a,p.right+=a,typeof l==="number"&&(p.top+=l,p.bottom+=l));return p}; Iq=function(p,a,l,y){const S=Math.min(p.u6,300*p.scale);p.element.style.maxWidth=a?"":`${S}px`;p.Hs.gK(p.element,p.L,l,p.type===1,y);p.element.style.top?g.XX(p.element,"ytp-bottom"):p.element.style.bottom&&g.XX(p.element,"ytp-top");p.type===3&&p.jl.start()}; ytO=function(){const p=aLr();p.e5.push("metadata_type_ad_info_ad_metadata");return p}; xAZ=function(p){p=p.document;p=p.compatMode=="CSS1Compat"?p.documentElement:p.body;return new g.J9(p.clientWidth,p.clientHeight)}; O$f=function(p){return y0(p,1,1)}; aX=function(p,a){a=Math.max(Math.max(1,Math.ceil(p.policy.j/vf(p))),a);return Math.min(Math.min(8,Math.floor(p.policy.C/vf(p))),a)}; $z=function(p){return!!p.Fz&&p.Fz.G()}; SmM=function(p,a,l){p.api.isFullscreen()?l<1-a&&p.api.toggleFullscreen():l>1+a&&p.api.toggleFullscreen()}; VHF=function(p){return Qu(oY(p,nsq),p,!1,"Trusted Promoted Video Domain URL")}; IV=function(){let p=null;try{p=g.mm.localStorage||null}catch(a){}Ug.call(this,p)}; qZA=function(p,a){const l=[];for(const y of Object.keys(p.L))l.push(`${y}_${p.L[y].type}_${p.L[y].status}`);return l.join(a)}; dcA=function(p,a=!1){return(["af","be","lt"].includes(iS)||a)&&p<10?Gje().format(p):(new Intl.NumberFormat("en-u-nu-latn")).format(p)}; H4=function(p,a){if(a<0)return!0;const l=p.VL();return a1)return 6;n.Ws=new g.SF(()=>{const V=b6(n);p.nz()||!V?.isLocked?p.Lz.O().Mc()&&p.Xu("eosl",{delayA:V?.info.HZ()}):r5F(n)?(p.Lz.O().Mc()&&p.Xu("eosl",{dunlock:V?.info.HZ()}),Il(p,n===p.audioTrack)):(p.Xu("nue",{ls:V.info.HZ()}),V.info.Sl+=1,p.Kz&&p.eF())},1E4,p); p.Lz.O().Mc()&&p.Xu("eosl",{delayS:y.HZ()});n.Ws.start()}p.policy.Y0&&y?.L instanceof bh&&y.G()&&p.Xu("poseos",{itag:y.L.info.itag,seg:y.Gm,lseg:y.L.index.VL(),es:y.L.index.D});a.appendBuffer(l,y,S)}catch(n){if(n instanceof DOMException){if(n.code===11)return 2;if(n.code===12)return 5;if(n.code===22||n.message.indexOf("Not enough storage")===0)return a=Object.assign({name:"QuotaExceededError",buffered:Bt(a.gP()).replace(/,/g,"_"),vheap:Ti(p.videoTrack),aheap:Ti(p.audioTrack),message:g.K6(n.message, 3),track:p.Kz?a===p.Kz.S?"v":"a":"u"},TxA()),p.handleError("player.exception",a),1;g.MD(n)}return 4}return p.Kz.Cv()?3:0}; g.Qk=function(p,a,l,y){this.j=p;this.X=a;this.L=this.U=p;this.D=l||0;this.G=y||2}; MG=function(p){return p.playerResponse&&p.playerResponse.paidContentOverlay&&p.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.K(p.Hs?.playerOverlays?.playerOverlayRenderer?.playerDisclosure,zqM)||null}; d9A=function(p){p.policy.OC=!1;try{p.eF()}catch(a){g.MD(a)}}; Dpq=function(){return Gre.loaded||(Gre.loaded="loaded".replace(/\-([a-z])/g,(p,a)=>a.toUpperCase()))}; ctE=function(){const p=[];Bf(BUv,a=>{p.push(a)}); return p}; KgF=function(p,a){p.zy=a;p.dG?.L?.D(a)}; i6O=function(p,a){var l=p.c_,y=p.bM,S=p.uU,n=p.Ys,V=p.bM>p.Db-262?p.bM-(p.Db-262):0,Z=p.window,z=p.Cc,d=p.ZE,G=p.bM+258,B=Z[y+S-1],c=Z[y+S];p.uU>=p.Qm&&(l>>=2);n>p.Pa&&(n=p.Pa);do{var w=a;if(Z[w+S]===c&&Z[w+S-1]===B&&Z[w]===Z[y]&&Z[++w]===Z[y+1]){y+=2;for(w++;Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&Z[++y]===Z[++w]&&yS){p.Kl=a;S=w;if(w>=n)break;B=Z[y+S-1];c=Z[y+S]}}}while((a=d[a&z])>V&&--l!== 0);return S<=p.Pa?S:p.Pa}; rt$=function(p,a){let l=NaN;for(const y of p.array)if(y.contains(a)&&(isNaN(l)||y.enda&&(isNaN(l)||y.startg.K(a,zx)); return p.length>0&&p.every(lq)}; hz=function(p){switch(p.Zd()){case 2:return"progressive.net.retryexhausted";case 3:return p=p.yh(),p?.includes("MEDIA_ERR_CAPABILITY_CHANGED")||$9o&&p?.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}}; LHv=function(p){return Object.values(Pj$).includes(p)}; sxv=function(p,a,l,y,S,n){const V=l-y/2;l+=y/2;a+=S;return`M 0 ${S} `+`L 0 ${a} `+`L ${V} ${a} `+`C ${V+n} ${a} ${V+n} ${S} ${V} ${S} `+`L 0 ${S} `+`M ${l} ${S} `+`L ${p.G} ${S} `+`L ${p.G} ${a} `+`L ${l} ${a} `+`C ${l-n} ${a} ${l-n} ${S} ${l} ${S}`}; g.Az=function(p){this.Yp=p}; XJZ=function(p,a){a=ES(p,a)+1;return a{if(S.category===n.category)return S.trigger.triggerId.localeCompare(n.trigger.triggerId);const V=Z=>{Q("TriggerCategoryOrder enum does not contain trigger category: "+Z)}; return c$A(S.category,V)-c$A(n.category,V)}); var l=new Map;for(var y of a)xa(p.L,y.slot)&&(E1(p.L,y.slot).D?E1(p.L,y.slot).K.push(y):(p.Io.D("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",y.slot,y,y.layout),(a=l.get(y.category))||(a=[]),a.push(y),l.set(y.category,a)));for(const [S,n]of Sdv)y=n,(a=l.get(S))&&UrM(p,a,y);(y=l.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&MPM(p,y);(y=l.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&HAA(p,y);(l=l.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&H$O(p,l)}; YR=function(p,a){g.nU("use_event_time_ms_header")&&S_(p)&&(a.headers||(a.headers={}),a.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.h)())));return a}; qi=function(p){return Math.max(p.bottom-p.top,0)*Math.max(p.right-p.left,0)}; x9o=function(p,a){return new Promise(l=>{g.wM(0,()=>{l(a())},p)})}; FHM=function(p,a){a?p.element.classList.add("ytp-jump-button-enabled"):p.element.classList.remove("ytp-jump-button-enabled");p.B.logVisibility(p.element,a);p.B.yT()}; Jz=function(p,a,l){if(p.eD(l)&&(l=l.getVideoData(),!DD(p))){p=p.I4;for(var y of p.S)if(l.ME===y.ME){a+=y.Dy/1E3;break}y=a;for(const S of p.S){if(l.ME===S.ME)break;p=S.Dy/1E3;if(pS&&(a=S-200,p.K=!0);l&&y.getCurrentTime()>=a/1E3?p.G():(p.S=y,l&&(l=a,a=p.S,p.app.pz.addEventListener(g.tT("vqueued"),p.G),l=isFinite(l)||l/1E3>a.getDuration()?l:0x8000000000000,p.D=new g.yj(l,0x8000000000000,{namespace:"vqueued"}),a.addCueRange(p.D)))}; Cjh=function(p,a){var l=p.getCurrentTime();const y=p.isAtLiveHead(l);if(p.K&&y){var S=p.K;if(S.L&&!(l>=S.S&&l50&&S.S.shift())),tf(p.L,l,a),a&&EsE(p,!0));y!==p.Lx&&(a=p.getCurrentTime()-p.Ps<=500,l=p.NO>=1E3,a||l||(a=p.Lz.Tn,a.qoe&&(a=a.qoe,l=g.CX(a.provider),g.vy(a,l,"lh", [y?"1":"0"])),p.Lx=y,p.NO++,p.Ps=p.getCurrentTime()))}; vso=function(p,a){p.ra=p.ra.filter(l=>l!==a)}; cQO=function(p){const a={cpn:p.clientPlaybackNonce,c:p.g7.L.c,cver:p.g7.L.cver};p.jh&&(a.ptk=p.jh,a.oid=p.BJ,a.ptchn=p.bB,a.pltype=p.Qg,p.Av&&(a.m=p.Av));return a}; KHr=function(p,a){p.iM(a.width>=350)}; g.me=function(p){try{return p.L?p.L.responseText:""}catch(a){return""}}; Fjo=function(p,a){a&&(p.Sl=a)}; PB=function(p){p||(p=document.location.href);p=g.hq(p)[1]||null;return p!==null&&p==="https"}; ZO=function(){let p=g.o1("yt.logging.ims");p||(p=new fp,g.eo("yt.logging.ims",p));return p}; BJ=function(p){nk()?.size&&HW(m7(p.api.O(),p.api.getVideoData()?.G()),a=>{(a=jMO(a))&&w8r(p,a)&&(p.api.O().Ic=a)})}; mGE=function(p,a,l,y,S){if(p.iA)return{"if":0,vs:0};var n=p.kp().clone().round();const V=p.Je?p.Je.U:null,Z=nP();var z=QH();const d=p.Jo();var G=p.Je?p.Je.getName():"ns";const B={};B["if"]=Z.U?1:void 0;B.sdk=p.j?p.j:void 0;B.t=p.timeCreated;B.p=[n.top,n.left,n.bottom,n.right];n&&V&&!ay(V,n)&&(n=V.round(),B.cp=[n.top,n.left,n.bottom,n.right]);B.tos=Nz(d.S,!1);B.mtos=lv(d);B.mcvt=d.Rc.U;B.ps=void 0;n=C_(d,Date.now()-cg,p.jr());B.vht=n;B.mut=d.Ps.U;B.a=Ub(p.eE.volume);B.mv=Ub(d.D);B.fs=p.bj?1:0;B.ft= d.UO.L;B.at=d.X.L;B.as=d.j>0?1:0;B.atos=Nz(d.L);B.ssb=Nz(d.iT,!1);B.amtos=aK(d.L,!1);B.uac=p.NO;B.vpt=d.U.L;G=="nio"&&(B.nio=1,B.avms="nio");B.gmm="4";B.gdr=SN(p,d.U.L,!0)?1:0;B.efpf=p.E6;if(G=="gsv"||G=="nis")G=p.Je,G.Sl>0&&(B.nnut=G.Sl);B.tcm=Z_(p);B.nmt=p.Rc;B.bt=p.QY;B.pst=p.ac;B.vpaid=p.UO;B.dur=p.U;B.vmtime=p.N;B.is=p.o9.U;p.L.length>=1&&(B.i0=p.L[0].iO,B.a0=[p.L[0].Ww],B.c0=[p.L[0].ph],B.ss0=[p.L[0].xz],G=p.L[0].position,n=p.L[0].Mk,B.p0=G?Nt(G):void 0,G&&n&&!ay(n,G)&&(B.cp0=Nt(n)));p.L.length>= 2&&(B.i1=p.L[1].iO,B.a1=YG(p.L[1].RZ,p.L[1].Ww,p.L[1].Wz),B.c1=YG(p.L[1].kB,p.L[1].ph,p.L[1].gt),B.ss1=YG(p.L[1].ud,p.L[1].xz,p.L[1].bd),G=p.L[1].position,n=p.L[1].Mk,B.p1=G?Nt(G):void 0,G&&n&&!ay(n,G)&&(B.cp1=Nt(n)),B.mtos1=p.L[1].Mm);p.L.length>=3&&(B.i2=p.L[2].iO,B.a2=YG(p.L[2].RZ,p.L[2].Ww,p.L[2].Wz),B.c2=YG(p.L[2].kB,p.L[2].ph,p.L[2].gt),B.ss2=YG(p.L[2].ud,p.L[2].xz,p.L[2].bd),G=p.L[2].position,n=p.L[2].Mk,B.p2=G?Nt(G):void 0,G&&n&&!ay(n,G)&&(B.cp2=Nt(n)),B.mtos2=p.L[2].Mm);p.L.length>=4&&(B.i3= p.L[3].iO,B.a3=YG(p.L[3].RZ,p.L[3].Ww,p.L[3].Wz),B.c3=YG(p.L[3].kB,p.L[3].ph,p.L[3].gt),B.ss3=YG(p.L[3].ud,p.L[3].xz,p.L[3].bd),G=p.L[3].position,n=p.L[3].Mk,B.p3=G?Nt(G):void 0,G&&n&&!ay(n,G)&&(B.cp3=Nt(n)),B.mtos3=p.L[3].Mm);B.cs=ere(p.o9);a&&(B.ic=J3Z(p.o9),B.dvpt=d.U.S,B.dvs=Dd(d.S,.5),B.dfvs=Dd(d.S,1),B.davs=Dd(d.L,.5),B.dafvs=Dd(d.L,1),l&&(d.U.S=0,JNF(d.S),JNF(d.L)),p.SQ()&&(B.dtos=d.jl,B.dav=d.C,B.dtoss=p.gi+1,l&&(d.jl=0,d.C=0,p.gi++)),B.dat=d.X.S,B.dft=d.UO.S,l&&(d.X.S=0,d.UO.S=0));B.ps=[Z.X.width, Z.X.height];B.bs=[fU(Z.L),Z.L.getHeight()];B.scs=[Z.j.width,Z.j.height];B.dom=Z.domain;p.PC&&(B.vds=p.PC);if(p.D.length>0||p.jQ)a=g.WW(p.D),p.jQ&&a.push(p.jQ),B.pings=g.Nx(a,c=>c.toString()); a=g.Nx(g.B4(p.D,c=>c.D()),c=>c.getId()); lBv(a);B.ces=a;p.S&&(B.vmer=p.S);p.C&&(B.vmmk=p.C);p.w7&&(B.vmiec=p.w7);B.avms=p.Je?p.Je.getName():"ns";p.Je&&g.C0(B,p.Je.HI());y?(B.c=sb(p.eE.ph,2),B.ss=sb(p.eE.xz,2)):B.tth=Date.now()-cg-MMv;B.mc=sb(d.N,2);B.nc=sb(d.G,2);B.mv=Ub(d.D);B.nv=Ub(d.j);B.lte=sb(p.BS,2);y=sQ(p,S);lv(d);B.qmtos=lv(y);B.qnc=sb(y.G,2);B.qmv=Ub(y.D);B.qnv=Ub(y.j);B.qas=y.j>0?1:0;B.qi=p.fC;B.avms||(B.avms="geo");B.psm=d.Ws.L;B.psv=d.Ws.getValue();B.psfv=d.Ic.getValue();B.psa=d.ac.getValue();z=jrh(z.AP);z.length&&(B.veid=z); p.X&&g.C0(B,xNA(p.X));B.avas=p.eN();B.vs=p.bI();B.co=IMh(p);B.tm=d.QY;B.tu=d.Bs;return B}; g.KV=function(p,a,l){if(g.P6(l))return p;l=g.eqe(l);if(typeof p==="string")return JU(p,g.qj(a),l);g.tN(p,a,l);return p}; d5=function(p,a,l,y){JD$(p);a&&(a.unsubscribe("size-change",p.xV,p),a.unsubscribe("back",p.y4,p));l.subscribe("size-change",p.xV,p);l.subscribe("back",p.y4,p);if(p.yQ){g.XX(l.element,y?"ytp-panel-animate-back":"ytp-panel-animate-forward");l.lT(p.content);l.focus();p.element.scrollLeft=0;p.element.scrollTop=0;var S=p.size;b_r(p);g.Wt(p.element,S);p.U=new g.SF(()=>{nne(p,a,l,y)},20,p); p.U.start()}else l.lT(p.content),a&&a.detach()}; WjE=function(p){const a=p.indexOf("#");return a<0?p:p.slice(0,a)}; pH=function(p,a,l){a.layoutId!==p.layout.layoutId?p.L.N2(p.slot,a,new s2("Unknown layout received. "+`Required LayoutId: ${p.layout.layoutId}`+`and LayoutType: ${p.layout.layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):l()}; IYZ=function(p,a,l){if(a&&!a?.sequenceMetaData?.skipProcessing&&p.j)for(const y of Ipr)p.j[y]&&p.j[y].handleResponse(a,l)}; Rqh=function(p){return g.y_(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],a=>`on${a.toLowerCase()}`in p)}; g.ip=function(p){return!!p.L&&ua$(p.L)}; uX=function(){let p=g.R("BATCH_CLIENT_COUNTER")||0;p||(p=Math.floor(Math.random()*65535/2));p++;p>65535&&(p=1);C8("BATCH_CLIENT_COUNTER",p);return p}; u6=function(p){return p.policy.ir&&!!p.D}; O_v=function(p){var a=p.api.A("delhi_modern_web_player_compact_controls"),l=g.ak(p.api.O().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");a=a||l>0&&p.api.getPlayerSize().width<=l;p=p.api.getRootNode();p.classList.toggle("ytp-delhi-modern-compact-controls",a);l=a?"8px":"12px";const y=a?"56px":"72px",S=a?"56px":"64px",n=a?"48px":"56px",V=a?"12px":"20px",Z=a?"72px":"96px";p.style.setProperty("--yt-delhi-pill-height",a?"40px":"48px");p.style.setProperty("--yt-delhi-pill-top-height", l);p.style.setProperty("--yt-delhi-bottom-controls-height",y);p.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",S);p.style.setProperty("--yt-delhi-big-mode-pill-height",n);p.style.setProperty("--yt-delhi-big-mode-pill-top-height",V);p.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",Z)}; wn=function(p){return p.classList?p.classList:krE(p).match(/\S+/g)||[]}; l0O=function(p,a){let l;const y=p.D;if(l=Ve(y))l.startSecs+=p.w7;return new fV(y.nO,p.w7,a?y.VZ:p.UO,y.ingestionTime,`sq/${y.nO}`,void 0,void 0,a,l)}; g.qx=function(p,a,l){return Math.min(Math.max(p,a),l)}; PT=function(p,a,l){if(p.policy.UY)return!1;var y=p.L;var S=a.S?.jl()||-1;!y.policy.r$&&y.S===3&&S+1>=y.j?(y.Xu("sdai",{haltrq:S+1,est:y.j}),y=!1):y=y.S!==2;if(!y||!(a.S?a.S.L.gG:a.L.gG).G(p.policy,p.j,p.loader.Gj())||p.loader.isSuspended&&(!IS(p.schedule)||p.loader.Ji))return!1;if(p.policy.j&&r7>=5)return p.loader.To.JP(),!1;if(p.r7.isManifestless){if(a.U.length>0&&a.S&&a.S.Gm===-1||a.U.length>=p.policy.g8||!p.policy.cN&&a.U.length>0&&!p.policy.K.Us)return!1;if(a.G)return!p.r7.isLive||!isNaN(p.wE)}if(SVe(a))return!1; if(!a.S){if(!a.L.L())return!1;lx(a,p.loader.getCurrentTime())}if(b6(a)&&(a.JD()!==b6(a)||p.loader.isSuspended))return!1;S=(y=p.policy.Af)&&!a.U.length&&ob(a,!0)=p.policy.Aa)return!1;y=a.S;if(!y)return!0;y.UO()&&y.L.L()&&(a.S=g.V$(y.L.Ws(y)),y=a.S);if(!y.G()&&!y.L.j(y))return!1;n=p.r7.IX||p.r7.X;if(p.r7.isManifestless&&n){n=a.L.index.VL();var V=l.L.index.VL(); n=Math.min(n,V);if(a.L.index.w6()>0&&n>0&&y.Gm>=n)return a.w7=n,l.w7=n,!1}if(y.L.info.audio&&y.UO()||y.G())return!1;n=!a.X&&!l.X;if(S=!S)S=y.D,S=!!(l.S&&!YA(l.S)&&l.S.DzHZ(p,a)?(zHZ(p,a),!1):(p=a.Jg)&&p.isLocked()?!1:!0}; fzr=async function(p,a){return a?(new g.k_(p.S)).encrypt(a,p.L):a}; p2=function(p,a,l=!1){if(!p.S||!p.S.U)return NaN;p=yc(p);a=MHE(p,a+.02,l);return a<0?NaN:wGe(p,l?a:0)?p[a].startTime:NaN}; Ug=function(p){this.L=p;this.S=null}; m9F=function(p,a,l){var y=g.UO(a.g7)&&!a.g7.D;if(a.g7.sU&&(wP(a.g7)||a.g7.w7==="shortspage"||HF(a.g7)||y)&&!p.U){p.U=!0;p.D=a.clientPlaybackNonce;g.R("TIMING_ACTION")||C8("TIMING_ACTION",p.Y.csiPageType);p.Y.csiServiceName&&C8("CSI_SERVICE_NAME",p.Y.csiServiceName);if(p.L){y=p.L.L0();for(var S of Object.keys(y))KU(S,y[S],p.timerName);S=g.Oc(DMv)(p.L.nG);g.ew(S,p.timerName);S=p.L;S.S={};S.nG={}}g.ew({playerInfo:{visibilityState:g.Oc(i9F)()},playerType:"LATENCY_PLAYER_HTML5"},p.timerName);p.X!==a.clientPlaybackNonce|| Number.isNaN(p.S)||(UV("_start",p.timerName)?l=g.Oc(ps)("_start",p.timerName)+p.S:g.tX(new g.Qm("attempted to log gapless pbs before CSI timeline started",{cpn:a.clientPlaybackNonce})));l&&!UV("pbs",p.timerName)&&lw(p,l)}}; Ga=function(p){p.L===0&&p.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(()=>{const a=p.L-p.D;let l=a;p.L!==0&&(l=g.qx(a,-.01,.01));p.D+=l;p.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",`${p.D.toString()}`);p.D!==p.L&&Ga(p)})}; g.lC=function(p,a,...l){p.S.has(a)||p.S.set(a,new DY(a,l))}; OYo=async function(p){if(!p.L.L()||typeof navigator.mediaCapabilities?.decodingInfo!=="function")return Promise.resolve();await Promise.resolve();for(const a of p.L.videoInfos)await H9r(a)}; W3E=function(p){for(const a of p)if(g.K(a,zr))return!0;return!1}; Mr=function(p,a,l){var y=-1;for(var S of p.L)a*p.U.L*1E3>S.startTime&&S.width>0&&y++;y=y<0?0:y;S=l.L-Sm(p)*p.Bs;return a*S+Sm(p)*y+l.j}; tHO=function(p,a){a?a.errorMetadata&&g.tX(new g.Qm(`${p} failed with status ${a.errorMetadata.status}`)):g.tX(new g.Qm(`${p} failed with empty response`))}; jZo=function(){return"INNERTUBE_API_KEY"in s0&&"INNERTUBE_API_VERSION"in s0}; WHr=function(p,a,l){W8(p.uT.get(),"ads_qua",`cpn.${p.layout.clientMetadata.t9("metadata_type_content_cpn")};acpn.${H8(p.MO.get(),2)?.clientPlaybackNonce};qt.${a};clr.${l}`)}; TS=function(p,a){for(;a>127;)p.L.push(a&127|128),a>>>=7;p.L.push(a)}; H_$=function(p){if(!p.L)return null;const a=yV(p.L,"atr");return l=>{p.L&&ZDM(p.L,l,a)}}; kXE=function(p){return pn(()=>rw(p,p.next()))}; Lw=function(p,a,l,y){return typeof p.addEventListener==="function"?(p.addEventListener(a,l,Qj(y)),!0):!1}; Oe=function(p,a){a.name in p.K||(p.K[a.name]=D9M(p,a));return p.K[a.name]}; nV=function(p,a=0){a=a?Math.round(p.timestampOffset*a)/a:p.timestampOffset;p.X.Sl&&a&&(a+=p.X.Sl.L);return a+p.getDuration()}; XRr=function(p){p.indexOf("watchtime")!==-1&&g.i0("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:p}})}; g.tO=function(p){window.clearTimeout(p)}; SD=function(p,a){return p.j?p.j:p.j=new Promise(async l=>{const y=window.AbortController?new window.AbortController:void 0,S=y?.signal;let n=!1;try{y&&(p.S=p.yl.zD(()=>{y.abort()},a||2E4)),await fetch("/generate_204",{method:"HEAD", signal:S}),n=!0}catch{n=!1}finally{p.j=void 0,p.S&&(p.yl.bk(p.S),p.S=0),n!==p.L&&(p.L=n,p.L?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline")),l(n)}})}; vrr=function(p,a,l,y=!1){return aw(void 0,function(){return function*(){const S=ax.Pn(),n=p&&nH;if(!n&&!a)return l?.("wasmns",{p:p?"1":"0",a:a?"1":"0",s:nH?"1":"0"}),RWv(Error("wasm.wm.ns"));const V=new i_q;if(n)try{const Z=yield*ct(Dav(V,p,y)),z=new VV(Z,V,!1,!0);ax.oz("winit",S);l?.("wasmsw",{});return z}catch(Z){if(l?.("wasmerrw",{e:`${Z}`}),!a)throw Error(`wasm.wm.iw: ${Z}`);}if(!a)throw Error("wasm.wm.xx");try{const Z=yield*ct(a(V)),z=new VV({exports:Z},V,!0,!0);ax.oz("winitjs",S);l?.("wasmsa", {});return z}catch(Z){throw l?.("wasmerra",{e:`${Z}`}),Error(`wasm.wm.ia: ${Z}`);}}()})}; wJ=function(p){for(;p.L.length&&p.L[0].Tg(p.K1());){const a=p.L.shift();Qwf(p,a)}p.L.length&&Qwf(p,p.L[0])}; g.ZG=function(p,a){p.getPresentingPlayerType()===3?p.publish("mdxautoplaycancel"):g.v0(p,"onAutonavCancelled",a)}; g.FS=function(p){var a=p.B.O();if(a.U||HF(a)||a.D||!a.Ro&&!a.r$)return!1;var l=p.B.getPresentingPlayerType();if(l===2||l===3)return!1;p=p.B.getVideoData();if(!p)return!1;l=!p.isLiveDefaultBroadcast||a.A("allow_poltergust_autoplay");l=p.isLivePlayback&&(!a.A("allow_live_autoplay")||!l);a=p.isLivePlayback&&a.A("allow_live_autoplay_on_mweb");return!l||a}; XS=function(p){return p.B.O().A("html5_allow_asmjs")}; ZDM=function(p,a,l){if(!p.w7){l||(l=yV(p,"atr"));l.attestationResponse=a;try{l.send()}catch(y){if(y.message!=="Unknown Error")throw y;}p.w7=!0}}; TU$=function(p){return p.B.O().A("web_player_autonav_use_server_provided_state")&&p.EE().mw()}; NU$=function(){const p=["metadata_type_action_companion_ad_renderer"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; oy=function(){return g.nU("idb_immediate_commit")}; sZF=function(p){if(p.policy.A$&&p.policy.xC)for(const a of p.policy.A$){const l=g.IE(a),y=+l.clen,S=+l.csz;if(y>0&&S>0&&p.policy.j===l.docid&&p.L.info.id===l.fmtid&&p.L.info.lastModified===+l.lmt)return{clen:y,csz:S,ck:l.ck,civ:l.civ}}}; g.ur=function(p){return/^TVHTML5/.test(FJ(p))}; LI=async function(p,a,l=!1){const y=p.O();l&&(!g.cy(y)||az(a)!=="embedded")||a.Lr||az(a)!=="adunit"&&(g.ur(y)||Hy(y)||g.cf(y)||g.bS(y)||g.CP(y)||FJ(y)==="WEB_CREATOR")||(l=g.kw(y,a.G()),l=l.L?await l.L:l.getValue(),hUf(p,a,l))}; U9r=function(p){return f8r()===1?g.B4(p,of):p}; IJ$=function(p,a){if(p.L){var l=p.L.S5.Hy-(a.startTime+p.K-p.L.S5.startSecs);l<=0||(l=new NH(p.L.S5.startSecs-(isNaN(p.K)?0:p.K),l,p.L.S5.context,p.L.S5.identifier,"stop",p.L.S5.L+a.duration*1E3),p.Xu("cuepointdiscontinuity",{segNum:a.Gm}),i6(p,l,a.Gm))}}; Ar=function(p){return p?.layoutId!=null&&p?.layoutType!=null}; rT=function(p){p=AJ(p);if(p.gel){const a=p.gel;a.gelInfos||(a.gelInfos={});a.gelTicks||(a.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel}; zR=function(p){QZO();UMM();p.timerName=""}; dN=function(p){var a=!!p.lM&&p.api.getPresentingPlayerType()!==2;let l=p.clipStart;var y=p.clipEnd;let S=!0,n=!0;a&&p.lM?(l=p.lM.startTimeMs/1E3,y=p.lM.endTimeMs/1E3):(S=l>p.U.S,n=p.U.L>0&&y{p.removeEventListener("playing",l);a(...y)}; p.addEventListener("playing",l)}; n_o=function(p={}){return g.f0.invoke(p)}; $w=function(p,a,l,y){l+=`.${p}`;p=Pa(a);y[l]=p;return l.length+p.length}; g.tj=function(p){g.YB.call(this);this.D=1;this.U=[];this.j=0;this.L=[];this.S={};this.G=!!p}; Vsr=function(p,a){if(p.videoData.UO)return!1;p.g7.VY+=1;if(p.g7.VY<=10)return!1;a.exiled=`${p.g7.VY}`;p.d$("qoe.start15s",a);p.Lz.publish("playbackstalledatstart");return!0}; Jg=function(p){return p&&p.length?p.end(p.length-1):NaN}; Zqr=function(){const p=g.mm.performance;return p&&p.now?p.now():null}; g.o_O=function(p,a,l){const y=a.query;a=a.direction;p="openKeyCursor"in IDBObjectStore.prototype?p.L.openKeyCursor(y,a):p.L.openCursor(y,a);return UU(p).then(S=>j4(S,l))}; lvM=function(p){var a=p.provider.Lz.Au();const l=g.CX(p.provider);xG(p,l,a);const y=a.U;a=a.j;isNaN(y)||(p.provider.Y.A("html5_unified_live_latency_reporting")&&!isNaN(a)&&a?g.vy(p,l,"e2el",[y.toFixed(3),a.toFixed(3)]):g.vy(p,l,"e2el",[y.toFixed(3)]))}; uW=function(p=mPh){if(p>0&&!(zye()>(0,g.h)()-p*1E3))return 0;p=g.Wk("yt-player-quality");if(typeof p==="string"){if(p=g.f2[p],p>0)return p}else if(p instanceof Object)return p.quality;return 0}; zEq=function(p,a){g.$G(p.api.O())&&(a?p.X.show():p.X.hide())}; B9q=async function(p,a,l,y=Td(),S=Promise.resolve(void 0),n){await 0;let V;for(;;){let Z=null;if(V){rN(p,7);try{Z=await iQ(V.snapshot({}),n.Fi,()=>Promise.resolve("E:CTO"))}catch(G){Z="E:UCE"}}let z; const d=new g.Qk(V?n.rL:n.Ti,n.p5,n.IB,n.aB);for(let G=1;G<=n.maxAttempts;G++){if(G!==1){rN(p,0);p.L=new dKq(d.getValue(),n.cq,n.xP);const B=await p.L.promise;p.L=void 0;B===1?(G=1,d.reset()):g.Ur(d)}try{let B;l?B=l:(rN(p,5),B=await iQ(UEM(a,p.logger,G,y.L,Z),n.zi,()=>Promise.reject(Error("RGF:Fetch timed out")))); rN(p,3);await iQ(mXq(y,B),n.hZ,()=>Promise.reject(Error("DTZ:Script timed out"))); rN(p,8);await S;const c=new i9({challenge:B,o$:p.options.o$,DL:p.options.DL});await iQ(c.cn,n.LW,()=>Promise.reject(Error("QEG:Setup timed out"))); z=c;break}catch(B){p.handleError(B),OX(p)}}if(p.nz())break;z&&(l=void 0,GdE(p,V),V=z,F1M(p,z),OX(p));rN(p,2);p.L=new dKq(n.GS,n.cq,n.xP);await p.L.promise;p.L=void 0;if(p.nz())break}V?.dispose()}; wN=function(p){p.isInitialized&&(p.enabled=p.isVisible,p.Ws=p.isVisible,bK(p),p.S(),p.thumbnailImage.iM(p.isVisible),p.shouldHideDismissButton||p.dismissButton.iM(p.isVisible),p.shouldShowOverflowButton&&p.overflowButton.iM(p.isVisible))}; g.Pz=function(p,a){p.updateValue("label",a)}; bi=function(p,a){if(!a.L.L())return p.X?new fa(0,360,!1,"b"):qN;var l=!1,y=!1;for(var S of a.L.videoInfos)S.L()?l=!0:y=!0;l=l&&y;y=0;S=g.ak(p.Y.experiments,"html5_performance_cap_floor");S=p.Y.S?240:S;for(const n of a.L.videoInfos){if(l&&n.L())continue;a=Ut(n.mT,n.video.fps,p.U);const V=n.video.qualityOrdinal;if(Math.max(a,S)>=V){y=V;break}}return new fa(0,y,!1,"b")}; Mur=function(p=!1){if(p){p=oS();for(const a of Object.keys(p))a.indexOf("1")!==0&&delete p[a];g.V2("yt-player-performance-cap",p,2592E3)}else g.IZ("yt-player-performance-cap")}; $V=function(p){p.L.stop();var a=Infinity;for(const l of p.data)l.expirep.publish("f")),p.L.subscribe("c",()=>p.publish("e")))}; FAM=function(p,a,l,y,S){try{{const V=a.O();if(g.p8(V))var n=new wFE(p,a,l,y,S);else if(g.cy(V))n=new $Kh(p,a,l,y,S);else if(Hy(V))n=new PVM(p,a,l,y,S);else if(g.cf(V))n=new LAE(p,a,l,y,S);else if(g.CP(V))n=new XFA(p,a,l,y,S);else throw new TypeError("Unknown web interface");}return n}catch{return y=a.O(),Q("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:y.L.cplatform,interface:y.L.c,T$m:y.L.cver,reT:y.L.ctheme,M5O:y.L.cplayer,wXI:y.playerStyle}),new xKe(p,a,l,S)}}; FEE=function(p,a,l,y,S,n,V,Z,z,d){a=gE(p,a,l,y,n,new Map,V,G=>Z(G,z),void 0,zL(p,l,S.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); p=new PH(p.L,a.eB);l=new YK(a.eB);d=new qL(d);return{Dg:{layoutId:a.layoutId,layoutType:a.layoutType,Xh:a.Xh,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:a.qO,clientMetadata:new L0([...a.k8,l,d]),ao:a.ao,adLayoutLoggingData:a.adLayoutLoggingData},VP:a.layoutExitSkipTriggers,BW:a.layoutExitMuteTriggers,GH:[...a.layoutExitUserInputSubmittedTriggers,p],ux:a.layoutExitUserCancelledTriggers, ZI:a.ZI}}; E_$=function(p,a){a&&a.screen&&(p.j=new g.J9(a.screen.width,a.screen.height))}; CVE=function(p){Y0$=p}; klq=function(p,a){const l=[];l.push(new GL(Fz(p)));l.push(new Iw(a.layoutId));(p=a.clientMetadata.t9("metadata_type_player_bytes_callback_ref"))&&l.push(new $_(p));(p=a.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref"))&&l.push(new VE(p));(p=a.clientMetadata.t9("metadata_type_remote_slots_data"))&&l.push(new i7(p));(p=a.clientMetadata.t9("metadata_type_ad_next_params"))&&l.push(new H1(p));(p=a.clientMetadata.t9("metadata_type_ad_video_clickthrough_endpoint"))&&l.push(new DW(p));(p= a.clientMetadata.t9("metadata_type_ad_pod_info"))&&l.push(new x_(p));(a=a.clientMetadata.t9("metadata_type_ad_video_id"))&&l.push(new XP(a));return l}; kB=function(p,a,l,y){(p=p.L())||Q("Could not initiate a command router instance.");$3(p,a,l,y)}; uL=function(p){var a=aJ();g.Oc(()=>{const l=g.dn(p);LP(a,l);return l})()}; v_e=function(p,a,l=0,y){y=new Vh("",y.experiments,!1);y.duration=l||0;for(const S of p){p=Xa(S,a,y.duration);l=ih(S.initRange);const n=ih(S.indexRange),{RL:V,s:Z,xD:z}=ar(48,S),d=zA(V||S.url||"",z,Z);d&&db(y,new GA(d,p,l,n))}return y}; AK=function(p,a){p.L=a;p.element.classList.toggle(PK.NOTIFICATIONS_ENABLED,p.L);const l=p.api.getVideoData();l?(a=a?l.zv:l.qF)?(p=p.api.SE())?y2(p,a):g.MD(Error("No innertube service available when updating notification preferences.")):g.MD(Error("No update preferences command available.")):g.MD(Error("No video data when updating notification preferences."))}; E1=function(p,a){return Od(p,`${a.slotType}_${a.slotPhysicalPosition}`).get(a.slotId)}; gpM=function(p){return Qu(oY(p,KAf),p,!1,"Drm Licensor URL")}; eEf=function(p){for(let a=0;ag.hr(l.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},y=>{a=y.getValue()})); return a}; g.Q1=function(p,a){for(const l of a)l.cueRangeSetIdentifier&&p.lJ.set(l.cueRangeSetIdentifier,l.playerCueRanges??[])}; IRe=function(p){return(p=bq$&&bq$.exec(p))?p[0]:""}; k2M=function(p){var a=p.yS();let l=1;var y=!1;const S=YZ(p,a,p.getVideoAspectRatio()),n=p.app.O(),V=n.A("enable_desktop_player_underlay"),Z=hf();var z=g.ak(n.experiments,"player_underlay_min_player_width");z=V&&p.aq&&p.getPlayerSize().width>z;if(rr(p)){var d=DrE(p);var G=isNaN(d)||g.av||UK&&g.i3||z;hX&&!g.Nf(601)?d=S.aspectRatio:G=G||n.controlsType==="3";G?z?(G=n.A("place_shrunken_video_on_left_of_player")?16:p.getPlayerSize().width-a.width-16,d=Math.max((p.getPlayerSize().height-a.height)/2,0),G= new g.hu(G,d,a.width,a.height),p.ju.style.setProperty("border-radius","12px")):G=new g.hu(0,0,a.width,a.height):(l=S.aspectRatio/d,G=new g.hu((a.width-S.width/l)/2,(a.height-S.height)/2,S.width/l,S.height),l===1&&g.i3&&(d=G.width-a.height*d,d>0&&(G.width+=d,G.height+=d)));g.OW(p.element,"ytp-fit-cover-video",Math.max(G.width-S.width,G.height-S.height)<1);if(Z||p.wZ)p.ju.style.display="";p.Yx=!0}else{G=-a.height;hX?G*=window.devicePixelRatio:g.wR&&(G-=window.screen.height);G=new g.hu(0,G,a.width,a.height); if(Z||p.wZ)p.ju.style.display="none";p.Yx=!1}Zc(p.nY,G)||(p.nY=G,g.CP(n)?(p.ju.style.setProperty("width",G.width+"px","important"),p.ju.style.setProperty("height",G.height+"px","important")):g.Wt(p.ju,G.getSize()),y=new g.g3(G.left,G.top),g.Js(p.ju,Math.round(y.x),Math.round(y.y)),y=!0);a=new g.hu((a.width-S.width)/2,(a.height-S.height)/2,S.width,S.height);Zc(p.Ev,a)||(p.Ev=a,y=!0);g.VB(p.ju,"transform",l===1?"":`scaleX(${l})`);V&&z!==p.k_&&(z&&(p.ju.addEventListener(LH,p.Ua),p.ju.addEventListener("transitioncancel", p.Ua),p.ju.classList.add(g.AW.VIDEO_CONTAINER_TRANSITIONING)),p.k_=z,p.app.pz.publish("playerUnderlayVisibilityChange",p.k_?"transitioning":"hidden"));return y}; uPv=function(p,a){if(a.length===0||Ka(p))return null;p.g7.X.U&&(XA=!0);var l=p.uf;var y=p.lengthSeconds,S=p.isLivePlayback,n=p.IX,V=p.g7,Z=uph(a);if(S||n){y=V.experiments;S=new Vh("",y,!0);S.S=!n;S.va=!0;S.isManifestless=!0;S.isLive=!n;S.IX=n;for(const z of a){a=Xa(z,l);const {RL:d,s:G,xD:B}=ar(32,z);V=zA(d||z.url||"",B,G);(Z=V.get("id"))&&Z.includes("%7E")&&(S.N=!0);Z=y?.Cz("html5_max_known_end_time_rebase");const c=Number(z.targetDurationSec||5),w=Number(z.maxDvrDurationSec||14400),X=Number(V.get("mindsq")|| V.get("min_sq")||"0"),v=Number(V.get("maxdsq")||V.get("max_sq")||"0")||Infinity;S.aM=S.aM||X;S.M0=S.M0||v;const I=!eg(a.mimeType);V&&db(S,new REZ(V,a,{VZ:c,xr:I,WI:w,aM:X,M0:v,bF:300,IX:n,OF:Z}))}l=S}else l=Z==="FORMAT_STREAM_TYPE_OTF"?Otf(a,l,y,V.experiments):v_e(a,l,y,V);n=p.isLivePlayback&&!p.IX&&!p.w7&&!p.isPremiere;p.A("html5_live_head_playable")&&(!vM(p)&&n&&p.Xu("missingLiveHeadPlayable",{}),p.g7.UO==="yt"&&(l.Rc=!0));return l}; SK=function(p,a,l,y,S){const n=l.mq;let V,Z;p[a]=(z,d,G)=>n(z,d,G,Z||(Z=hO(V9,p$,SK,y).lF),V||(V=gg(y)),S)}; kd$=function(p){p.addEventListener("updateKevlarOrC3Companion",Yhf);p.addEventListener("updateEngagementPanelAction",a3M);p.addEventListener("changeEngagementPanelVisibility",OqF);window.addEventListener("yt-navigate-start",hoq)}; jS=function(p){p.S=!1;const a={};p.L&&p.videoId&&(a.cttAuthInfo={token:p.L,videoId:p.videoId});JM("ad_to_video",a);Vq(p)}; M_=function(p,a,l){const y=p.DI;return cT(p,y,y[rD]|0,a,l,void 0===kKF?2:4,void 0,!1,!0)}; Msr=function(p,a,l){W8(p.uT.get(),"ads_qua",`cpn.${p.layout.clientMetadata.t9("metadata_type_content_cpn")};acpn.${H8(p.MO.get(),2)?.clientPlaybackNonce};qt.${a};clr.${l}`)}; mKM=function(p){const a=g.m5("html5-video-player");a&&g.OW(a,"ytp-ad-display-override",p)}; QY=function(p,a){ki(a);p.Y.Mc()&&p.publish("ctmp","drmlog",a)}; WFr=function(p,a,l,y,S){sS(l,a);y=y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";const n=bQ({cttAuthInfo:US(a)||void 0},a);l={csn:a,ve:l.getAsJson(),gestureType:y};S&&(l.clientData=S);a==="UNDEFINED_CSN"?Qd("visualElementGestured",n,l):p?IX("visualElementGestured",l,p,n):g.i0("visualElementGestured",l,n)}; Ij=function(p){if(p.lastError==="ump.spsrejectfailure")p.timing.N||pGe(p.gG,!1,p.aX,p.policy,p.j);else{if(p.lastError==="net.timeout")p.timing.NO((0,g.h)());else{var a=p.timing;Qx(a,(0,g.h)(),a.X)}if(p.lastError==="net.nocontent")++p.gG.K;else{if((a=p.lastError==="net.timeout"||p.lastError==="net.connect"||p.lastError==="net.closed")&&!WM(12,p.aX.P9)){var l=mZ(p);l.timedOut+=1}else l=mZ(p),l.L+=1;p.timing.N||pGe(p.gG,a,p.aX,p.policy,p.j)}}p.wG.cZ(5)}; g.cc=function(p){return p.yr.get("webgl")}; KU=function(p,a,l){return g.Oc(kk)(p,a,l)}; xV=function(p,a){const l=Sh(g.UY(a.L.info,p.r7.va));var y=p.N?.dX(l)||[];if(y.length===0)return p.Xu("ombmsi",{}),!1;y=new Al(y);var S;if(S=!p.policy.N||isFinite(p.getCurrentTime())||p.Lz.gM()){a:{S=p.getCurrentTime();for(n of y.Yv)if(n.type===3&&S>=n.X&&S<=n.D){var n=!0;break a}n=!1}S=!n}if(S)return p.Xu("ostmf",{ct:p.getCurrentTime(),a:a.L.info.Bi()}),!1;p.N?.TN(l);return!0}; tsM=function(p,a){a=a?{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:akv();const l=p.B.getPlaybackRate(),y=g.L$("Velocidad: $RATE",{RATE:String(l)});FA(p,a,y,l+"x")}; Cp=function(p,a,l){p=a?WE(p,l):p.L;return new Ev(p)}; jHZ=function(p){if(!p.isRequestPending){p.isRequestPending=!0;p.J9(3);var a=p.B.getVideoData();a=p.L?a.removeFromWatchLaterCommand:a.addToWatchLaterCommand;const l=p.B.SE(),y=p.L?()=>{p.L=!1;p.isRequestPending=!1;p.J9(2);p.B.O().K&&g.v0(p.B,"WATCH_LATER_VIDEO_REMOVED")}:()=>{p.L=!0; p.isRequestPending=!1;p.J9(1);p.B.O().S&&p.B.Z8(p.element);p.B.O().K&&g.v0(p.B,"WATCH_LATER_VIDEO_ADDED")}; y2(l,a).then(y,()=>{p.isRequestPending=!1;p.J9(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");p.B.O().K&&g.v0(p.B,"WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; wQv=function(p,a=[],l,y){p.nz();const S=[],n=[];for(const V of a)g.K(V,WAq)||g.K(V,HqO)?S.push(V):n.push(V);for(const V of S)$3(p,V,l,y);for(const V of n)$3(p,V,l,y)}; sm=function(p){if(p.L==="fulfilled"){var a=p.S;p.S=[];p.U=[];for(var l of a)l(p.result)}else if(p.L==="rejected"){l=p.U;p.S=[];p.U=[];for(a of l)a(p.error)}}; DKo=function(p,a){const l=p.pos;p.pos=0;if(p.L.getUint8(p.pos)!==160&&!rH(p)||!MU(p,160))return p.pos=l,NaN;mT(p,!0);var y=p.pos;if(!MU(p,161))return p.pos=l,NaN;mT(p,!0);tw(p);const S=tw(p)<<8|tw(p);p.pos=y;if(!MU(p,155))return p.pos=l,NaN;y=Q9(p);p.pos=l;return(S+y)*a/1E9}; CH=function(p,a){p.L.has(a.Y8())?Q("Trying to register an existing AdErrorInfoSupplier."):p.L.set(a.Y8(),a)}; Mx=function(p){var a=":"+(De.getInstance().L++).toString(36);return p+a}; g.NM=function(p){p=mE(p);const a=[];for(let l=0;lnew sHO(p.L,l,n,V,S))}; CO=function(p){p.ir?.stop();p.C.hide();p.K.hide();Gk(p)}; UKF=function(p){if(!$6O(p))return!1;p=p.mediaElement?.audioTracks();return!!(p&&p.length>1)}; U9=function(p){return p.L(128)?-1:p.L(2)?0:p.L(2048)?3:p.L(64)?-1:p.L(1)&&!p.L(32)?3:p.L(8)?1:p.L(4)?2:-1}; DAe=function(p,a){if(!p.lM)return!1;const l=p.lM.startTimeMs*.001-1;let y=p.lM.endTimeMs*.001;p.lM.type==="repeatChapter"&&y--;return Math.abs(a-l)<=1E-6||Math.abs(a-y)<=1E-6||a>=l&&a<=y}; KH=function(p,a,l,y,S){const n=[];for(const V of p.Ag.values()){const Z=V.trigger,z=V.slot;if(Z.triggerType===a){if(Z instanceof dV||Z instanceof Jj||Z instanceof fq){if(S&&Z.breakDurationMs!==l)continue;if(!S&&Z.breakDurationMs===l)continue;if(y.has(z.slotId))continue}n.push(V)}}n.length>0&&p1(p.D(),n)}; nGr=function(p,a){p=Am(p.array,l=>a-l.start||1); return p<0?-(p+1):p}; g.N_=function(p){return(!("button"in p)||typeof p.button!=="number"||p.button===0)&&!("shiftKey"in p&&p.shiftKey)&&!("altKey"in p&&p.altKey)&&!("metaKey"in p&&p.metaKey)&&!("ctrlKey"in p&&p.ctrlKey)}; jj=function(p){return p.nodeType==9?p:p.ownerDocument||p.document}; QHO=function(p){let a=g.Ez(p,"Content-Type");if(!a)return null;a=a.toLowerCase();return a.startsWith("application/json")?a.startsWith("application/json+protobuf")?new r5:new dh:a.startsWith("application/x-protobuf")?(p=g.Ez(p,"Content-Transfer-Encoding"))?p.toLowerCase()=="base64"?new H2:null:new W2:null}; hEr=function(p,a,l,y){p.timing.Ba((0,g.h)(),a,l);a=p.gG;a.U=0;a.X=0;a.K=0;dF(mZ(p));y&&(y=mZ(p),y.U+=1);p.SF?.UO(p.aX.P9)}; niA=function(p,a,l){p.U||(p.U=new AjM(p.S));return X4E(p.U,a,l)}; eD=function(p,a){const l={};if(p.app.O().N){for(const y of g_O)a.hasOwnProperty(y)&&(l[y]=a[y]);if(p=l.qoe_cat)a="",typeof p==="string"&&p.length>0&&(a=p.split(",").filter(y=>Yqo.includes(y)).join(",")),l.qoe_cat=a; qFf(l)}else for(const y of qqE)a.hasOwnProperty(y)&&(l[y]=a[y]);return l}; v9=function(p){return p.L&&p.Dd&&p.playbackStartPolicy}; bC=function(p,a){wG(p.uT.get(),{driftRecoveryInfo:{contentCpn:p.MO.get().hv?.clientPlaybackNonce,adClientData:p.layout.ao.adClientDataEntry,...a}})}; If=function(p,a){p.S.add(a)}; Jjh=function(p){ph(p,"impression")&&!ph(p,"seek")&&p.Fb("active_view_viewable")}; aWv=function(){if(fRh()&&!p1f){var p=l=>{l=l.data;if(l.op==="serializedGelBatch"){var y=MY.get(l.key);y&&(Dx(l.serializedBatch,y.client,y.resolve,y.networklessOptions,y.isIsolated,y.useVSSEndpoint,y.dangerousLogToVisitorSession,y.requestsOutstanding),MY.delete(l.key))}},a=T2(); a&&(a.addEventListener("message",p),a.onerror=()=>{MY.clear()}); p1f=!0}}; hCF=function(p,a){var l=g.VZ(p,0,1937011556),y=g.VZ(p,0,1953654136);if(!l||!y||p.getUint32(l.offset+12)>=2)return null;const S=new DataView(a.buffer,a.byteOffset,a.length),n=g.VZ(S,0,1937011556);if(!n)return null;a=S.getUint32(n.dataOffset+8);y=S.getUint32(n.dataOffset+12);if(y!==1701733217&&y!==1701733238)return null;y=new lWA(p.byteLength+a);YL(y,p,0,l.offset+12);y.data.setInt32(y.offset,2);y.offset+=4;YL(y,p,l.offset+16,l.size-16);YL(y,S,S.byteOffset+n.dataOffset+8,a);YL(y,p,l.offset+l.size,p.byteLength- (l.offset+l.size));l=[1836019574,1953653099,1835297121,1835626086,1937007212,1937011556];for(const V of l)l=g.VZ(p,0,V),y.data.setUint32(l.offset,l.size+a);p=g.VZ(y.data,0,1953654136);y.data.setUint32(p.offset+16,2);return y.data}; Rf=function(p,a,l){!p.Y.A("html5_tv_ignore_capable_constraint")&&g.ur(p.Y)&&(l=l.compose(p.GI(a)));return l}; yao=function(p){g.uY(p.S);var a=p.B.O();a.playerStyle==="gvn"||a.S||a.Hs||(a=p.B.h9(),p.S.J(a,"contextmenu",p.QY),p.S.J(a,"touchstart",p.onTouchStart,null,!0),p.S.J(a,"touchmove",p.N,null,!0),p.S.J(a,"touchend",p.N,null,!0))}; SKr=function(p,a){(p.X.get(a)??[]).forEach(l=>{p.L===0&&p.jD.Oa("transitiondetector",l);if(p.L===1){var y=p.U;y.L.get(l)?.delay.dispose();y.L.delete(l)}}); p.X.delete(a)}; g.ju=function(p,a){return eg(p.info.mimeType)?a?p.info.itag===a:!0:!1}; rf=function(p,a,l){var y,S=-1,n=a[1],V=0,Z=7,z=4;n===0&&(Z=138,z=3);for(y=0;y<=l;y++){var d=n;n=a[(y+1)*2+1];if(!(++V0&&p.Kz&&uD(p.Kz)&&(a=a.L.info.video?p.Kz.S:p.Kz.L)&&!a.QP()){a=a.gP();const y=Jh(a,p.getCurrentTime());y>=0&&(a=p.getCurrentTime()-a.start(y),l+=Math.max(0,Math.min(a-p.policy.jc,p.policy.wx)))}p.policy.jl>0&&(l=Math.min(l,p.policy.jl));return l}; cY=function(p){return p&&"status"in p?p.status:-1}; $i=function(p,a){By(p,1,a.clientInfo,VfZ,3);Ym(p,2,a.mu);Ym(p,3,a.playbackCookie);Ym(p,4,a.rp);if(a.a8)for(var l=0;l{p.nz()||(p.S=l,p.element?.setMediaKeys(l),a&&a.Lz?.Gp()&&(a.iT=l))}); L5(p.L)?p.U=new (DN())(p.L.keySystem):At(p.L)?(p.U=new (DN())(p.L.keySystem),p.element?.webkitSetMediaKeys(p.U)):JTF(p);return null}; E$=function(){var p=nP();if(p.D>0||p.K)return!0;p=C$().S.isVisible();const a=kL(P1)===0;return p||a}; ojM=function(){var p=window.h5vcc?.settings?.getPersistentSettingAsString?.("cpu_usage_tracker_intervals");if(p!=null){p=JSON.parse(p)??[];var a=p.filter(l=>l.type==="total").map(l=>l.seconds); for(const l of Zwq)a.indexOf(l)===-1&&p.push({type:"total",seconds:l});window.h5vcc?.settings?.set("cpu_usage_tracker_intervals_enabled",1);window.h5vcc?.settings?.set("cpu_usage_tracker_intervals",JSON.stringify(p))}}; g.BQ=function(p,a=!1){return b0()&&p.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!a&&p.canPlayType(OQ(),"application/x-mpegURL")?!0:!1}; xhq=async function(p){await (await yq(p)).clear("SWHealthLog")}; ZW=function(p,a){const l=p.sendVisitorIdHeader?p.visitorData:void 0;return g.kw(p.Y,p.accessToken).then(y=>MJ(p.uri,p.Y,p.pageId,l,y,a))}; dMA=function(p){UF(p)&&!p.Z$&&(p.L=!0,p.qr&&Math.random()<=p.sN&&p.Ot.OX(p.PX),p.FV(),p.QT.Bl()&&p.U(),p.QT.listen(p.Qf,p.U.bind(p)),p.QT.listen(p.I2,p.j.bind(p)))}; z9O=function(p,a){const l=Number(a?.maxVisibleDurationMilliseconds);l&&(uC(p),p.Sl=setTimeout(()=>{if(p.L!==void 0&&a?.cueRangeId===p.L){p.UO=!1;var y=axo(p,p.L);y&&g.v0(p.api,"innertubeCommand",y)}},l))}; d1h=function(p){let a=0;for(const l of p)a+=l.range.length;return a}; al=function(p,a){p.playlist&&(g.Er(p.playlist),p.playlist=null);a&&(p.TM&&(a.fetch=0),p.playlist=new G$o(p.Y,a))}; KC=function(p,a,l){const y=p.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],S=p.policy.playbackStartPolicy.startMinReadaheadPolicy||[];p=Infinity;a=a&&y.length>0?y:S;for(const n of a)a=n.minReadaheadMs||0,l<(n.minBandwidthBytesPerSec||0)||p>a&&(p=a);return p>16,(p&65280)>>8,p&255];p=a[0];var l=a[1];a=a[2];p=Number(p);l=Number(l);a=Number(a);if(p!=(p&255)||l!=(l&255)||a!=(a&255))throw Error('"('+p+","+l+","+a+'") is not a valid RGB color');l=p<<16|l<<8|a;return p<16?"#"+(16777216|l).toString(16).slice(1):"#"+l.toString(16)}; Khh=function(p,a,l="ERROR"){if(p){p.hasOwnProperty("level")&&p.level&&(l=p.level);if(g.nU("console_log_js_exceptions")){var y=[];y.push(`Name: ${p.name}`);y.push(`Message: ${p.message}`);p.hasOwnProperty("params")&&y.push(`Error Params: ${JSON.stringify(p.params)}`);p.hasOwnProperty("args")&&y.push(`Error args: ${JSON.stringify(p.args)}`);y.push(`File name: ${p.fileName}`);y.push(`Stacktrace: ${p.stack}`);window.console.log(y.join("\n"),p)}if(!(rwr>=5)){y=[];for(S of caA)try{S()&&y.push(S())}catch(X){}var S= y;S=[...ra$,...S];var n=LYh(p);y=n.message||"Unknown Error";const c=n.name||"UnknownError";var V=n.stack||p.S||"Not available";if(V.startsWith(`${c}: ${y}`)){var Z=V.split("\n");Z.shift();V=Z.join("\n")}Z=n.lineNumber||"Not available";n=n.fileName||"Not available";let w=0;if(p.hasOwnProperty("args")&&p.args&&p.args.length)for(var z=0;z=500);z++);else if(p.hasOwnProperty("params")&&p.params){const X=p.params;if(typeof p.params==="object")for(z in X){if(!X[z])continue; const v=`params.${z}`,I=Pa(X[z]);a[v]=I;w+=v.length+I.length;if(w>500)break}else a.params=Pa(X)}if(S.length)for(z=0;z=500);z++);navigator.vendor&&!a.hasOwnProperty("vendor")&&(a["device.vendor"]=navigator.vendor);a={message:y,name:c,lineNumber:Z,fileName:n,stack:V,params:a,sampleWeight:1};z=Number(p.columnNumber);isNaN(z)||(a.lineNumber=`${a.lineNumber}:${z}`);if(p.level==="IGNORED")var d=0;else a:{p=yv();for(d of p.yO)if(a.message&&a.message.match(d.XJ)){d= d.weight;break a}for(var G of p.ai)if(G.callback(a)){d=G.weight;break a}d=1}a.sampleWeight=d;d=a;for(var B of w1r)if(B.gf[d.name]){G=B.gf[d.name];for(const X of G)if(G=d.message.match(X.FP)){d.params["params.error.original"]=G[0];p=X.groups;a={};for(z=0;z=-1&&a.end<=Infinity&&(p.playback.removeCueRange(a),p.S.delete(a.getId()),p.eb({rmAdCR:1}));const {Fq:l,Ve:y}=xY(p,-.001);l&&(a=y*1E3-l.Dy,rXr(p,l,a,l.Dy+a),a=p.S.get(l.cpn))&&(a.start=l.Dy,a.end=l.Dy+l.durationMs);({Fq:a}=xY(p,Infinity));a&&p.Tf(`Invalid_clearEndTimeMs_${Infinity}_that_falls_during_${`playback_timelinePlaybackId_${a.ME}_video_id_${a.videoData?.videoId}_durationMs_${a.durationMs}_enterTimeMs_${a.Dy}_parentReturnTimeMs_${a.w$}`}._`+ "Child_playbacks_can_only_have_duration_updated_not_their_start.")}; Kh=function(p){if(p.B.O().d4)return p.yr.get("remote")}; g.mC=function(){return{W:"svg",Z:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{W:"path",Z:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}}; af=function(p){return p.type===3||p.type===6}; tE=function(p){p=(p.L.cookie||"").split(";");const a=[],l=[];let y,S;for(let n=0;n=0)return a;a=-y-1;return a>=p.L.length||p.L[a]>l?null:p.L[a]}; Hy=function(p){return FJ(p)==="WEB_KIDS"}; h5o=function(p){const a=[];M_(p,EjE,6).forEach(l=>{ku(l,2)<=51&&a.push(ku(l,1))}); return a}; C7M=function(p,a){p.w7=!0;p.A("html5_use_centralized_player_time")&&(p.S=p.D,p.U=p.S,p.D=NaN);IAO(p,a)}; rV=function(p){if(typeof p!=="number")throw xU("int32");if(!Cu(p))throw xU("int32");return p|0}; jYe=function(p,a,l){if(!p.nz())if(a){QY(p,{onkmtyp:l});p.status="km";switch(l){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":$Pv(p,a);return;default:p.publish("ctmp","message_type",{t:l,l:a.byteLength})}p.N||(KU("drm_gk_f",void 0,p.videoData.Sl),p.N=!0,p.publish("newsession",p));if(u8(p.S)&&(a=vjM(a),!a))return;a=new KJF(a,++p.requestNumber,p.videoData.Sl);STv(a,y=>{e9A(p,y)},(y,S,n)=>{if(!p.nz()){var V=0; y.L.S>=3&&(V=1,S="drm.net.retryexhausted");QY(p,{onlcsrqerr:S,info:n});p.error(S,V,n);p.shouldRetry(xW(V),y)&&uNq(p,y)}}); g.H(p,a);RPZ(p,a)}else p.error("drm.unavailable",1,"km.empty")}; g.AU=function(p){this.L=0;this.G=void 0;this.j=this.S=this.U=null;this.X=this.D=!1;if(p!=g.a$)try{const a=this;p.call(void 0,function(l){Sg(a,2,l)},function(l){Sg(a,3,l)})}catch(a){Sg(this,3,a)}}; hI=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return Cu(p)?p>>>0:void 0}; wEM=function(p,a,l){const y=p.L.get(a);y?(y.push(l),g.cL(y,(S,n)=>S.Dy-n.Dy)):p.L.set(a,[l])}; GHA=function(p,a,l,y,S=!1){const n=1E3/p.length,V=[];V.push({x:0,y:100});for(let Z=0;Z200&&(a="manifest.net.badstatus",y===400&&(d=2)),Promise.reject(new g.cQ(a, z,d));a.loading=!1;g.GI(a,{raw_player_response:S},!0);g.UO(a.O())&&S&&S.trackingParams&&uL(S.trackingParams);if(a.errorCode)return Promise.reject(new g.cQ("auth",{ec:a.errorCode,ed:a.errorDetail,es:a.iK||""},2));if(!a.loading&&!zI(a))return l=a.isAd()?"auth":"manifest.net.retryexhausted",y=a.isAd()?2:1,Promise.reject(new g.cQ(l,{successButUnplayable:"1",hasMedia:g.p5(a)?"1":"0"},y))}}; lar=function(p){const a=gt(p);return a?a.D-p.loader.getCurrentTime():0}; N5=function(){return(iz||Tw)&&KA?!KA.mobile&&(wv("iPad")||wv("Android")||wv("Silk")):wv("iPad")||wv("Android")&&!wv("Mobile")||wv("Silk")}; $cF=function(p){return p.mT==="MAC3"||p.mT==="MEAC3"||p.mT==="M"||p.mT==="I"}; bOr=async function(p,a){const l=g.wO();var y=p.O();const S={context:g.dT(p),playbackContext:{contentPlaybackContext:{ancestorOrigins:y.ancestorOrigins}}};var n=y.getWebPlayerContextConfig();n?.encryptedHostFlags&&(S.playbackContext.contentPlaybackContext.encryptedHostFlags=n.encryptedHostFlags);n?.hideInfo&&(S.playerParams={showinfo:!1});n=y.embedConfig;const V=p.lQ;var Z=a.docid||a.video_id||a.videoId||a.id;if(!Z){Z=a.raw_embedded_player_response;if(!Z){var z=a.embedded_player_response;z&&(Z=JSON.parse(z))}Z= Z?g.K(Z?.embedPreview?.thumbnailPreviewRenderer?.playButton?.buttonRenderer?.navigationEndpoint,g.zK)?.videoId||null:null}Z=Z?Z:void 0;z=p.playlistId?p.playlistId:a.list;const d=a.listType;if(z){var G;d==="user_uploads"?G={username:z}:G={playlistId:z};lkh(n,V,Z,a,G,y.experiments);S.playlistRequest=G}else a.playlist?(G={templistVideoIds:a.playlist.toString().split(",")},lkh(n,V,Z,a,G,y.experiments),S.playlistRequest=G):Z&&(G={videoId:Z},V&&y.A("embeds_enable_per_video_embed_config")?G.serializedThirdPartyEmbedConfig= V:n&&(G.serializedThirdPartyEmbedConfig=n),S.singleVideoRequest=G);y=g.oU(IWe);try{const B=await g.xu(l,S,y),c=p.O();a.raw_embedded_player_response=B;c.jl=Lj(a,g.x3(c));c.U=c.jl==="EMBEDDED_PLAYER_MODE_PFL";B&&B.trackingParams&&uL(B.trackingParams);return new g.Uj(c,a)}catch(B){return B instanceof Error||(B=Error("b259802748")),g.MD(B),p}}; au$=function(p){try{return new R9A(p.OD,p.slot,p.layout,p.vy,p.HX,p.MO,p.gq,p.QL,p.Lt,p.sO,p.bR,p)}catch(a){}}; jD=function(p,a,l=!1){var y=p.X();if(y){for(;p.j=y.length)return;if(l<0)throw Error("Missing data");p.j=p.U;p.S=0}for(;ll.lengthSeconds, getCurrentTime:()=>S.getCurrentTime(), bG:()=>S.bG(), Pv:()=>S.Pv(), Au:()=>S.Au(), getPlayerSize:()=>S.getPlayerSize(), getAudioTrack:()=>l.getAudioTrack(), getPlaybackRate:()=>S.getPlaybackRate(), uO:()=>S.uO(), getVisibilityState:()=>S.getVisibilityState(), L0:()=>S.L0(), ZH:()=>S.ZH(), getVolume:()=>S.getVolume(), isMuted:()=>S.isMuted(), AD:()=>S.AD(), x8:()=>S.x8(), getProximaLatencyPreference:()=>S.getProximaLatencyPreference(), XC(){S.XC()},Xu(n,V){S.Xu(n,V)},ZP:()=>S.ZP(), oo:()=>S.oo()})); a.S=y;g.H(p,a);return a}; m1$=function(p){QH();switch(U1(p)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; g.Da=function(p){return!!p.L&&MCq(p.L)}; tff=function(p){p.playlist&&p.playlist.unsubscribe("shuffle",p.onVideoDataChange,p)}; jVe=function(p,a,l,y){const S=x1(null,null,null);S.L=new g.AU(function(n,V){S.U=a?function(Z){try{const z=a.call(y,Z);n(z)}catch(z){V(z)}}:n; S.S=l?function(Z){try{const z=l.call(y,Z);z===void 0&&Z instanceof he?V(Z):n(z)}catch(z){V(z)}}:V}); S.L.U=p;pt(p,S);return S.L}; Evr=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:bF(p,"unknown result type")}}; g.WK=function(){}; Fs=function(p,a,l){var y={s6:p.s6,An:(n,V)=>{p.Lz.yI(n,V)}, K8:p.policy.iW,zV:p.policy.U};p.s6.S.D&&(y.Ho=(p.videoTrack.L.info.Sb||0)+(p.audioTrack.L.info.Sb||0));p.policy.HG&&(y.lG=p.audioTrack.L.index.H2(),y.K8=!1);var S=JUM(a,p.policy,p.j)?2:1;S!==p.N&&(p.N=S,rJ(p));l=ScA(p,l);if(p.policy.UO&&p.policy.U&&l.KQ){let n=S="";for(const V of l.KQ)p.videoData.sabrContextUpdates.has(V)||p.policy.UO&&l.zE&&l.zE.type===V?S+=`_${V}`:n+=`_${V}`;p.loader.Xu("sabrbldrqs",{ctxts:S,misctxts:n})}!a.setData(l,p.policy,p.j)&&p.policy.UO&&p.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);y=new GF(p.policy,a,p.r7,p.j,p,y,p.loader.SP());xO(p.timing);p.policy.G&&p.loader.Xu("sabrcrq",{rn:y.kz(),probe:a.N1()});return y}; HK=function(p,a,l){isNaN(l)||(p.Sl+=l);isNaN(a)||(p.Hs+=a)}; WJr=function(p,a){var l=p.ac[a];a=p.Ro[a];const y=O6(p);let S=kS(p.U,l.start/1E3,0),n;const V=OsZ(l,p.D)/y.width;n=kS(p.U,l.end/1E3,1);V!==Number.POSITIVE_INFINITY&&(S=g.qx(S,0,n-V));n=Math.min(n,S+V);l.color&&(a.style.background=l.color);l=S;a.style.left=`${Math.max(l*y.L+y.j,0)}px`;It(p,a,g.qx((n-l)*y.L+y.j,0,y.width),y.width,!0)}; Sl=function(p,a,l,y,S){y=M8(y,a);EL(p,l,y,S);y&&!R4(y)&&hN(p.DI);return p}; Hwq=function(p){p.provider.videoData.Dd&&ej(p,"prefetch");p.provider.videoData.dG&&p.Xu("reload",{r:p.provider.videoData.reloadReason,ct:p.provider.videoData.dG});p.provider.videoData.Bo&&ej(p,"monitor");p.provider.videoData.isLivePlayback&&ej(p,"live");ig&&ej(p,"streaming");p.provider.videoData.eR&&p.Xu("ctrl",{mode:p.provider.videoData.eR},!0);if(p.provider.videoData.zf){var a=p.provider.videoData.zf.replace(/,/g,"_");p.Xu("ytp",{type:a},!0)}p.provider.videoData.jd&&(a=p.provider.videoData.jd.replace(/,/g, "."),p.Xu("ytrexp",{ids:a},!0));a=p.provider.videoData;var l=p.provider.Y.A("enable_white_noise")||p.provider.Y.A("enable_webgl_noop");const y=g.Yw(a)||g.Da(a)||g.ip(a)||g.HO(a);(l||y)&&(l=(0,g.DG)())&&p.L.set("gpu",[l]);a9(p.provider.videoData)&&g.vy(p,g.CX(p.provider),"dt",["1"]);a.cotn&&!a9(a)&&p.j0(!0);p.provider.Y.Mc()&&(a=(0,g.h)()-p.provider.Y.g$,p.Xu("playerage",{secs:(1.6**Math.round(Math.log(a/1E3)/Math.log(1.6))).toFixed()}));p.X=!0;p.N=g.Bg(()=>{p.reportStats()},1E4)}; Fw$=function(p){const a=g.Gj();if(a)if(a.clear(p),p)A9r(p);else for(let l in AM)A9r(l)}; g.dt=function(){const p=iB();return p?Promise.resolve(p):NJZ().then(a=>{(a=a?e8:void 0)&&g.eo("ytglobal.idbToken_",a);return a})}; g.D$=function(p){switch(cY(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; f5F=function(p,a){p.n5(p.value,a)||(p.value=a,p.version++,D1A++,mtF(p))}; JN=function(p){return p.videoData.Yn()&&p.A("html5_enable_shorts_seek_details_logging")}; SBh=function(p,a){let l=!1;if(a==="")return l;a.split(",").forEach(y=>{const S={},n={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""};let V="ACTIVE";y[0]==="!"&&(y=y.substring(1),V="INACTIVE");y=y.split("-");y.length<3||(y[0]in iwr&&(n.clientName=iwr[y[0]]),y[1]in TTv&&(n.platform=TTv[y[1]]),n.applicationState=V,n.clientVersion=y.length>2?y[2]:"",S.remoteClient=n,p.remoteContexts?p.remoteContexts.push(S):p.remoteContexts=[S],l=!0)}); return l}; iC=function(p){return p.backButton?(p.backButton.focus(),!0):!1}; vnM=function(p,a,l=!1,y=!1){p.policy.w7&&(p.policy.QY&&p.Xu("loader",{setsmb:0}),p.C0(),p.policy.w7=!1);NTA(p,y);if(!a.D()){const S=b6(p.videoTrack),n=b6(p.audioTrack);sVE(a,(S?S.info.L:p.videoTrack.L).info,(n?n.info.L:p.audioTrack.L).info,p.policy.o1)}vmZ(p,a,l,y);try{p.JN()}catch(S){g.MD(S)}}; U1f=function(){V_={contentCpn:"",t7:new Map}}; iU=function(p){return dp(p.EO.get(),"html5_ssap_pass_transition_reason")}; QVO=function(p){const a=p.layoutId;p.k$&&md(p.Lv,"slso",{ec:a,is:p.Lg,ctp:tu(a)})}; h9h=function(p){const a=oJ()&>()>=67&&!p.api.O().G;p=p.api.O().disableOrganicUi;return!g.IW("tizen")&&!Gd&&!a&&!p}; Aah=function(p,a=p.S,l=.02,y=.98){const S=p.U;for(var n=0;n<16;n++)S[n]=p.values[n];n=p.L[0];for(var V=1;V<11;V++){var Z=p.L[V];if(Z===0)break;const z=Math.min(1,(a-n)/Z);for(let d=0;d<16;d++)S[d]+=p.values[V*16+d]*z;n+=Z*z;if(z<1)break}p=V=0;for(a=0;a<16;a++){Z=V+S[a]/n;p+=Math.max(0,Math.min(Z,y)-Math.max(V,l))*(a>0?8192*Math.pow(2,a-1):0);if(Z>y)break;V=Z}return p/(y-l)}; TR=function(p){var a=p.api.O();p.QQ.Ut("pot_ist");p.S||Mpr(p);p.A("html5_bandaid_attach_content_po_token")||(p.A("html5_generate_session_po_token")&&($u(p),gDF(p)),a=g.ak(a.experiments,"html5_session_po_token_interval_time_ms")||0,a>0&&(p.G=g.Bg(()=>{$u(p)},a)),p.K=!0)}; LNr=function(p,a,l=1){const y=a.itag;if(y==="0")return!0;let S=a.mimeType;if(a.mT==="1e"&&!p.X)return"dav1enc";if(a.L()&&p.UO)return"dav1";if(a.video&&(a.video.isHdr()||a.video.primaries==="bt2020")&&!(Oe(p,y9.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(y==="338"&&!(g.TF?zX(53):g.cq&&zX(64)))return"dopus";l=tAr(a,l);p.U&&a.U()&&(l[y9.EXPERIMENTAL.name]= "allowed");for(const Z of Object.keys(y9)){const z=y9[Z];var n;if(n=l[z.name])if(n=!(z===y9.EOTF&&a.mimeType.indexOf("vp09.02")>0)){n=z;var V=a;n=!(p.experiments.Cz("html5_ignore_h264_framerate_cap")&&n===y9.FRAMERATE&&bGr(V))}if(n)if(Oe(p,z))if(p.D){if(p.D[z.name]1080&&a.uf&&(S+="; hdcp=2.2");return y==="227"?"hqcenc":y!=="585"&&y!=="588"&&y!=="583"&&y!=="586"&& y!=="584"&&y!=="587"&&y!=="591"&&y!=="592"||p.experiments.Cz("html5_enable_new_hvc_enc")?Ca()&&Gp()>=21&&g.IW("appletv5")&&(y==="410"||y==="845")?!0:p.isTypeSupported(S)?!0:"tpus":"newhvc"}; JY=function(p,a){return!!window.h5vcc?.settings?.set(p,a)}; kh=function(p,a,l,y=0){isNaN(p.N)||(p.Xu("aswm",{sq:a[0].Gm,id:a[0].L.info.itag,xtag:a[0].L.info.S,ep:Date.now()-p.N}),p.N=NaN);switch(l.info.type){case 1:case 2:T7q(p,l);break;case 4:var S=l.info.L;const n=S.Ic(l);p.S?.UO()&&CYZ(l.info,p.S)&&(p.S=S.Ws(p.S).pop());for(const V of n)kh(p,a,V,y);break;case 3:l.info.L.info.video?(S=p.timing,S.w7||(S.w7=(0,g.h)(),g.ce("fvb_r",S.w7,S.L))):(S=p.timing,S.D||(S.D=(0,g.h)(),g.ce("fab_r",S.D,S.L)));rDE(p.j,a,l,y);p.policy.L&&Geh(p);break;case 6:rDE(p.j,a,l, y),p.S=l.info}}; g.Aa=function(p,a){const l=new T_r;Ym(l,2,hG(p));p=gje[a];if(typeof p==="undefined")throw a=new g.Qm("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:a}),g.MD(a),a;gD(l,4,p);gD(l,5,1);a=new Uint8Array(l.L.buffer,l.L.byteOffset,l.pos);return encodeURIComponent(g.dW(a,0))}; YKo=function(p){return gG[r[12]](this,1,p)}; qKM=function(p){p.created!==p.loaded&&Q("Created and loaded are out of sync")}; h8=function(p){return j1(p,(a,l)=>Math.max(a,l.video.qualityOrdinal),0)}; fAA=function(p,a,l,y,S=!1){d_M(p,y);l=t4M(a,l,p.S,y,S);a=a.length===0?"":zeF(l);p.api.A("delhi_modern_web_player")?p.U.setAttribute("d",a):p.X.setAttribute("d",a);p.Kh=a!=="";g.OW(p.api.getRootNode(),"ytp-heat-map",p.Kh);g.OW(p.api.getRootNode(),"ytp-heat-map-played_bar",p.api.A("web_player_heat_map_played_bar")&&a!=="");p.api.A("delhi_modern_web_player")?(p.j.style.display="none",p.L.style.display="none"):p.U.style.display="none"}; JaZ=function(p){p.L.forEach(a=>{YY(p,a)})}; fWM=async function(p){UI(p,"swpo_i");p.U=Eg();$u(p);var a=await GG(ap());UI(p,"swpo_co");a=await ewA(a);p.A("html5_web_po_token_disable_caching")||a.X$(150);p.S=a;UI(p,"swpo_cc");kzZ(a.nm()).then(()=>{p.L=!0;p.X.resolve();UI(p,"swpo_re")}); g.jQ(()=>{TR(p);UI(p,"swpo_si")},0)}; Vy$=function(p,a=!1){return a?p.S*-1:p.S}; fMe=function(p,a,l){if(!l||g.P6(l))return p;const y=Object.assign({},p),S=a?encodeURIComponent:n=>n; p=(n,V)=>{(V=l[V])&&(y[n]=S(V))}; p("DV_VIEWABILITY","doubleVerifyViewability");p("IAS_VIEWABILITY","integralAdsViewability");p("MOAT_INIT","moatInit");p("MOAT_VIEWABILITY","moatViewability");p=(n,V)=>{(V=l[V])&&(y[n]=V)}; p("GOOGLE_VIEWABILITY","googleViewability");p("VIEWABILITY","viewability");return y}; $X=function(p,a){for(const l in p.L)if(p.L[l].status==="usable"&&p.L[l].type===a)return!0;return!1}; pzO=function(p,a){const l=p.L.L;if(l){p.videoInfos=p.D;var y=g.y_(p.videoInfos,S=>S.id===l); y&&y.video.qualityOrdinal===a?p.videoInfos=[y]:(y=p.videoInfos.map(S=>S.id),p.loader.Xu("sabrpf",{pfid:`${l}`, vfids:`${y.join(".")}`}),YX(p,a,a),Sf(p.L,""))}else YX(p,a,a)}; rk=function(p,a,l){p=p.iY;if(p==="WEB"||p==="MWEB"||p===1||p===2)a?(l=Ke(a,Nd,96)||new Nd,p=Dc(),p=Object.keys(aSM).indexOf(p),p=p===-1?null:p,p!==null&&y0(l,3,p),Sl(a,Nd,96,l)):l&&(l.client.mainAppWebInfo=l.client.mainAppWebInfo??{},l.client.mainAppWebInfo.webDisplayMode=Dc())}; lSZ=function(p){let a=0;for(let l=0;lEB(l)); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; V3o=function(p){const [a,l]=[UT(p,0,p.length>>1,kc),UT(p,p.length>>1)];return a.toString(16)+l.toString(16)}; Uv=function(p){if(p.isAd()&&(p.Ro?p.videoId!==p.g7.Ps:p.videoId!=p.g7.Ps))return p.g7.Ps}; Zxo=function(p){switch(p){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}}; QV=function(p,a,l){p.state.L.hasOwnProperty(a)||Y(p,a,l);p.state.G[a]=(...y)=>l.apply(p,y); p.state.X.add(a)}; oIF=function(p,a){return p.B.A("delhi_modern_web_player_icons")?a?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{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"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{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"}}]}:a?{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"g",T:"ytp-fullscreen-button-corner-2",V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{W:"g",T:"ytp-fullscreen-button-corner-3",V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{W:"g",T:"ytp-fullscreen-button-corner-0",V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{W:"g",T:"ytp-fullscreen-button-corner-1", V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"g",T:"ytp-fullscreen-button-corner-0",V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{W:"g",T:"ytp-fullscreen-button-corner-1",V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{W:"g",T:"ytp-fullscreen-button-corner-2",V:[{W:"path",EC:!0,T:"ytp-svg-fill", Z:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{W:"g",T:"ytp-fullscreen-button-corner-3",V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; D9M=function(p,a){if(p.D)return!!p.D[a.name];if(a===y9.BITRATE&&p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!p.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(a===y9.AV1_CODECS)return p.isTypeSupported(`video/mp4; codecs=${a.valid}`)&&!p.isTypeSupported(`video/mp4; codecs=${a.jT}`);let l;a.video?(l='video/webm; codecs="vp9"',p.isTypeSupported(l)||(l='video/mp4; codecs="avc1.4d401e"')):(l='audio/webm; codecs="opus"', p.isTypeSupported(l)||(l='audio/mp4; codecs="mp4a.40.2"'));return p.isTypeSupported(`${l}; ${a.name}=${a.valid}`)&&!p.isTypeSupported(`${l}; ${a.name}=${a.jT}`)}; Fd=function(p){CT(p);var a=vD(Number(p));if(KT(a))return String(a);a=p.indexOf(".");a!==-1&&(p=p.substring(0,a));a=p.length;(p[0]==="-"?a<20||a===20&&p<="-9223372036854775808":a<19||a===19&&p<="9223372036854775807")||(pa(p),p=TsA());return p}; dzZ=function(p){const a=p.api.O();g1e(p);p.updateValue("flyoutUnfocusable","true");p.updateValue("channelTitleFocusable","-1");p.updateValue("shouldHideExpandedTitleForA11y","true");p.updateValue("shouldHideExpandedSubtitleForA11y","true");a.S||a.Hs||(p.J(p.channel,"mouseenter",p.D),p.J(p.channel,"mouseleave",p.X),p.J(p.channel,"focusin",p.D),p.J(p.channel,"focusout",l=>{p.channel.contains(l.relatedTarget)||p.X()})); p.U=new g.SF(()=>{p.isExpanded()&&(p.api.logVisibility(p.channelName,!1),p.subscribeButton&&(p.subscribeButton.hide(),p.api.logVisibility(p.subscribeButton.element,!1)),p.L&&(p.L.hide(),p.api.logVisibility(p.L.element,!1)),p.channel.classList.remove("ytp-title-expanded"),p.channel.classList.add("ytp-title-show-collapsed"))},500); g.H(p,p.U);p.J(p.channel,zQr,()=>{VkM(p)}); p.J(p.api,"onHideControls",p.G);p.J(p.api,"appresize",p.G);p.J(p.api,"fullscreentoggled",p.G)}; b3=function(p){return!!p.playerResponse?.playerConfig?.mediaCommonConfig?.splitScreenEligible}; Gkf=function(){const p=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; p6=function(p,a,l){if(p.S.length!==0&&(l||p.S.some(y=>y.info.X0){for(const l of p.Yv)a+=l.range?.length||0;return a}if(p.D5.length>0)for(const l of p.D5)a+=l.rN||0;return a+p.zg}; c8r=function(p,a){return Ci(p.clientMetadata,"metadata_type_ad_info_ad_metadata")?p.clientMetadata.t9("metadata_type_ad_info_ad_metadata"):a?{channelId:a.Jk,channelThumbnailUrl:a.profilePicture,channelTitle:a.author,videoTitle:a.title}:(Q("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; p3M=function(p,a,l,y,S){const n=fO(p.S.get(),a);return Qp(p,n,a,new SZ(p.L,l),[new y5(p.L,l),new lm(p.L,n)],y,S)}; r8A=function(p){p.X||(p.X=(0,g.h)());p.policy.C&&(p.D=(0,g.h)())}; Bx$=function(p,a,l,y){const S=[];for(const Z of l)if(Z.url){l=new g.Xh(Z.url,!0);if(Z.s){var n=l,V=Z.sp;const z=nJ(28,decodeURIComponent(Z.s));n[r[6]](V,encodeURIComponent(z))}for(const z of Object.keys(y))l.set(z,y[z]);n=mv(Z.type,Z.quality,Z.itag,Z.width,Z.height);S.push(new wzv(n,l))}return Ml(p.X,S,dQ(p,a),!1)}; gt=function(p){return p.policy.nC?p.K?.Ws()||null:p.Jg&&p.Jg.Qz()}; q8r=function(){var p=document;if("visibilityState"in p)return p.visibilityState;const a=tt+"VisibilityState";if(a in p)return p[a]}; $zh=function(p){if(p.B.getVideoData(1)?.UO){p.S=!1;var a={};p.L&&p.videoId&&(a.cttAuthInfo={token:p.L,videoId:p.videoId});JM("video_to_ad",a)}}; DN=function(){const p=window;let a=p.MSMediaKeys;Ye()&&!a&&(a=p.WebKitMediaKeys);return a&&a.isTypeSupported?a:null}; PN$=function(){QH();const p=nP();return p.U||p.S?0:2}; LRh=function(p){if(document.body&&document.documentElement){const a=document.body.scrollTop+document.documentElement.scrollTop;p.L=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.S=p.clientY+a}}; $e=function(p,a){a=p.split(a);const l={};for(let n=0,V=a.length;n{const n=yl(a,l),V=n.U;n.U=!1;MR(n.S);MR(n.L);n.L=0;lo&&lo.isReady()?l===void 0&&g.nU("enable_web_tiered_gel")?U6r(y,S,p,a,300,V):U6r(y,S,p,a,l,V):(tBv(a,l),y())})}; EIM=function(p,a,l,y){l.Yv.push(...y);if(HL)l.Ob.has(a)||l.Ob.set(a,[]),l.Ob.get(a).push(...y);else if(l.wc)for(const S of y)l.wc.Yv.push(S);else l.wc=new FRf(p.mO,[...l.Yv]),p.mO?.Ao&&g.H(p,l.wc)}; wg=function(p,a){return new g.Xh(`https://${a}${p.Y.dG.baseUrl}`)}; GdE=function(p,a){a&&(Promise.all(p.j).then(()=>void a.dispose()),p.j=[])}; Qh=function(p){p.K=!1;p.G.isActive()&&bd(p);p.G.stop();p.Ma(!1)}; hE=function(p,a,l){const y=p.api.getCurrentTime(),S=mo(p,y);p=mo(p,y+a);return{startMediaTimeMs:S,endMediaTimeMs:p,seekSource:l}}; AE=function(p,a,l,y){p.policy.S&&p.Gd(!1,"rollback");if(p.r7.isManifestless){var S=iR(p.audioTrack,y,l,a),n=iR(p.videoTrack,y,l,a);p.policy.Wy||(n&&bY(p.r7,y,!0),S&&bY(p.r7,y,!1));n&&(p.videoTrack.UO=[]);S&&(p.audioTrack.UO=[]);p.Xu("sdai",{rollbk2_seg:y,rbt:l.toFixed(3),lt:a.toFixed(3),a:S,v:n});(S||n)&&p.policy.S&&dJ(p)}}; JQ=function(p,a,l){const y=p.L.L?.encrypt(a,l);return y?y:(new g.gN(p.L.S)).encrypt(a,l)}; rJ=function(p){p.videoData.Ps.clear();if(p.videoData.sabrContextUpdates.size>0)for(var a of p.videoData.sabrContextUpdates.keys())p.videoData.sabrContextUpdates.get(a)?.sendByDefault&&p.videoData.Ps.add(a);if(p.policy.UO&&p.L.length)for(const l of p.L)(a=l.Xf())&&a.type&&a.sendByDefault&&p.videoData.Ps.add(a.type)}; CNF=function(p,a){a=a?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";FA(p,Jfq(p.B),a)}; TJ=function(p){return!(!p.L||!p.L.isManifestless)}; LY=function(p,a){for(;p;p=p.parentNode){const l=p.getElementsByTagName(a);if(l.length>0)return l[0]}return null}; YV=function(p){const a=p.layoutId;p.k$&&md(p.Lv,"slse",{ec:a,is:p.Lg,ctp:tu(a)})}; vIq=function(p,a){return p.L.length===0?!1:(p=p.L[p.L.length-1])&&p.buffer===a.buffer&&p.byteOffset+p.length===a.byteOffset}; g.KRr=function(p){p=(p=p.getVideoData())&&p.S;return!!p&&!(!p.audio||!p.video)&&p.mimeType!=="application/x-mpegURL"}; He=function(p,a,l,y,S){p.iv_load_policy=y;a=cd(a);if(a.cta_conversion_urls)try{p.cta_conversion_urls=JSON.parse(a.cta_conversion_urls)}catch(n){Q(n)}l.eR&&(p.ctrl=l.eR);l.zf&&(p.ytr=l.zf);l.GW&&(p.ytrcc=l.GW);l.isMdxPlayback&&(p.mdx="1");p.vvt&&(p.vss_credentials_token=p.vvt,l.kT&&(p.vss_credentials_token_type=l.kT),l.mdxEnvironment&&(p.mdx_environment=l.mdxEnvironment));B9(p,S);return p}; Sa=function(p,a){p.D||(p.D=!0,p.S&&(a?p.S.jl.hide():p.S.hide()),a?(p=p.j,p.Fu.show(),p.show()):p.j.show())}; pZM=function(p,a){const l=[];for(const y of a)l.push(g.UY(y,p.r7.va));return l}; fRh=function(){return typeof Worker==="function"&&A3o()?!0:!1}; eQo=function(p){const a=p.L?.bannerData?.itemData;return a?.priceReplacementText?a?.priceReplacementText:a?.promotionText&&p.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")?`${a?.price} ${a?.promotionText?.content}`:a?.dealsData?.sales?.originalPrice?a?.dealsData?.sales?.salesPriceAccessibilityLabel:a?.dealsData?.priceDrop?.referencePrice?`${a?.price} ${a?.dealsData?.priceDrop?.referencePrice}`:a?.price}; aA=function(p,a,l){p.Gf()?p.ke():p.zR(a,l)}; kS=function(p,a,l){return p.L-p.S?g.qx((a-p.S)/(p.L-p.S),0,1):l!=null?l:Infinity}; EsE=function(p,a){if(p.L){var l=p.L;var y=p.getCurrentTime(),S=l.KC();var n=l.policy.S;l.j||(n=Math.max(n-1,0));n*=vf(l);y>=S-n||!l.Hk()?l=yy.playlist||y.list||y.api?new Na(p.g7,y):new iG(p.g7, y)); p.contentCheckOk=EA(p.contentCheckOk,a.cco);p.racyCheckOk=EA(p.racyCheckOk,a.rco);p.isLivingRoomDeeplink=EA(p.isLivingRoomDeeplink,a.is_living_room_deeplink);p.oauthToken=t_(p.oauthToken,a.oauth_token);p.ZN=t_(p.ZN,a.kpt);p.visitorData=t_(p.visitorData,a.visitor_data);if(l=a.session_data)p.sessionData=$e(l,"&");p.G1=t_(p.G1,a.endscreen_ad_tracking_data);p.pf=EA(p.pf,a.wait_for_vast_info_cards_xml);p.ZT=EA(p.ZT,a.suppress_creator_endscreen);p.v0=EA(p.v0,a.is_trueview_action);p.Mh=t_(p.Mh,a.tracking_list); uIO(p,a)}; Oxq=function(p,a,l,y,S=l.schedule,n,V,Z){const z=g.pf(p,Va);let d;var G;p.p6||((G=GKA(a,z))?(d=G.ew,G=G.signature):(G=d=a.encrypt(z),(0,g.h)(),G=X4E(new AjM(a.L.U),G,a.iv)));return zJ(d&&G?{Hv:d,TI:G}:{Z3:z},a,l,y,!!p.p6,S,n,V,Z)}; g.HJ=function(p){return(p=N6M(p.app.DN()))?p.I7():null}; w_=function(p,a,l){nFr(p.uT.get(),p.layoutId,a,l,p.D??void 0,p.X)}; kkM=function(p){const a=p.U;p.U=[];return a}; M3F=async function(p,a){return g.hs(await Ba(a),["LogsRequestsStore"],{mode:"readwrite",nx:!0},l=>{const y=l.objectStore("LogsRequestsStore");return y.get(p).then(S=>{if(S)return S.status="QUEUED",g.zg(y,S).then(()=>S)})})}; iD=function(){if(fRh()&&!DP){var p=l=>{l=l.data;if(l.op==="gzippedGelBatch"){var y=Nk.get(l.key);y&&(hY(l.gzippedBatch,y.latencyPayload,y.url,y.options,y.sendFn),Nk.delete(l.key))}},a=T2(); a&&(a.addEventListener("message",p),a.onerror=()=>{Nk.clear()},DP=!0)}}; Ni=function(p,a){p.B.sendVideoStatsEngageEvent(a,void 0,2)}; g8=function(p,a){return Math.abs(qd*a-p)<1||Math.abs(qd/p-a)<1?qd:p/a}; JE=function(p){p.U.isFinal=!0;p.flush();p.U.isFinal=!1}; $Ge=function(p,a){const l=p.B.O();g.vK(l)||l.controlsType!=="3"||p.B.h9().fJ(a)}; EKr=function(p,a){return a?gGv(a):p?rBv(p):Promise.resolve()}; uh=function(p,a,l=1){if(a.Kh()){var y=IA(p,l,a,!1);p.cancelPlayback(4,l);p.Kg(y);y.TY();l===1&&(p.V5(1),g.x3(p.Y)&&!mJ(a)?(a.dispose(),p.jb().dispose()):Srr(p))}else a.dispose(),(a=p.GR({playerType:l}))&&a.dispose(),Kx(p.EE())&&l===2&&p.Ai()}; sx=function(p){const a=mT(p,!0);p.pos+=a}; Fh=function(){fH||(fH=new mzq);return fH}; jQq=function(p,a){let l=0;for(l=0;l{const V=g.K(n?.onTap,a7);V&&g.v0(p.api,"innertubeCommand",V)}); p.L[l]=y}for(;l{a(y,S)}; p.L=g.y_(p.S,y=>y!=null&&y.N()); p.L&&(p.L.init(l)?f2o(p.L.L):a(p.L.L.C(),p.L));return p.L!=null}; CY=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; e9A=function(p,a){if(!p.nz())if(QY(p,{onlcsrsp:1}),p.status="rr",a.statusCode!==0)p.error("drm.auth",1,`t.f;c.${a.statusCode}`,a.errorMessage||void 0);else{KU("drm_kr_s",void 0,p.videoData.Sl);if(a.heartbeatParams&&a.heartbeatParams.url&&p.videoData.A("outertube_streaming_data_always_use_staging_license_service")){var l=p.S.U.match(/(.*)youtube.com/g);l&&(a.heartbeatParams.url=l[0]+a.heartbeatParams.url)}a.heartbeatParams&&p.publish("newlicense",a.heartbeatParams);a.S&&(p.j=a.S,p.videoData.j1||p.publish("newlicense", new Hxv),p.videoData.j1=!0,p.G=Nh(p.j,y=>y.includes("HDR"))); a.L&&(p.Y.A("html5_enable_vp9_fairplay")&&p.S.L()?(l=g.dW(I1Z(p.fairplayKeyId),4),p.L[l]={type:a.L[l],status:"unknown"}):p.L=QM(a.L,y=>({type:y,status:"unknown"}))); lf(p.S)&&(a.message=V0$(g.dW(a.message)));p.U&&(QY(p,{updtks:1}),p.status="ku",p.U.update(a.message).then(()=>{KU("drm_kr_f",void 0,p.videoData.Sl);du(p)||(QY(p,{ksApiUnsup:1}),p.publish("keystatuseschange",p))},y=>{y=`msuf.req.${p.requestNumber};msg.${g.K6(y.message,3)}`; p.error("drm.keyerror",1,y)})); g.qb(p.S)&&p.publish("fairplay_next_need_key_info",p.baseUrl,a.nextFairplayKeyId);p.Y.A("html5_enable_vp9_fairplay")&&p.S.L()&&p.publish("qualitychange",tj$(p.j));a.sabrLicenseConstraint&&p.publish("sabrlicenseconstraint",a.sabrLicenseConstraint)}}; pR=function(p){return(p=p.exec(g.Vo()))?p[1]:""}; ixv=function(p){p.VY&&!p.isSuspended&&IS(p.schedule)&&(Dze(p,p.VY),p.VY="")}; pqA=function(p){try{const a=TgZ(p,!0),l=TgZ(p,!1);return{id:a,size:l}}catch(a){return{id:-1,size:-1}}}; yb=function(p){var a=Ke(p.L,FF,1);a||(a=new FF,Ed(p,a));p=a;a=Ke(p,aF,11);a||(a=new aF,Sl(p,aF,11,a));return a}; NgM=function(p){const a=[];M_(p,EjE,6).forEach(l=>{ku(l,2)>51&&a.push(ku(l,1))}); return a}; pn=function(p){try{return La(p())}catch(a){return RWv(a)}}; EkA=function(p){switch(p){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"}}; lu=function(p,a){p.uV&&!p.QT.Bl()?p.uV(a):p.handleError(a)}; P9=function(p,a){if(a.T3)for(let l=0;l{a.smooth&&a.powerEfficient&&(p.N=2160)})}; var llv=function(){return lF[r[12]](this,1)}; Em=function(p,a){let l=p.S;for(p.S=-1;p.pos+1<=p.L.totalLength;){l<0&&(l=Cz(p));var y=l>>3;const S=l&7;if(y===a)return!0;if(y>a){p.S=l;break}l=-1;switch(S){case 0:Cz(p);break;case 1:p.pos+=8;break;case 2:y=Cz(p);p.pos+=y;break;case 5:p.pos+=4}}return!1}; FDq=function(p){p=p.split(/(?:\r\n|\r|\n)/g);if(p.length>1){const a=[p[0]];for(let l=1;la(p))}; QQZ=function(p){if(p.timer===void 0){const a=Math.max(0,p.L+p.S-zB());p.timer=setTimeout(()=>{try{p.callback()}finally{p.L=zB(),p.timer=void 0}},a)}}; Kf=function(){const p=/WebKit\/([0-9]+)/.exec(g.Vo());return!!(p&&parseInt(p[1],10)>=602)}; FL=function(p){return p.A("web_settings_menu_surface_custom_playback")}; g.ik=function(){S5||(S5=new hQF);return S5}; $W=function(p,a,l){p.nz();p.L.get(a)&&g.MD(Error(`Extension name ${a} already registered`));p.L.set(a,l)}; Ss=function(p,a,l="GET",y="",S,n,V,Z=!1,z){const d=JmF();if(!d)return null;const G=()=>{(d&&"readyState"in d?d.readyState:0)===4&&a&&g.Oc(a)(d)}; "onloadend"in d?d.addEventListener("loadend",G,!1):d.onreadystatechange=G;g.nU("debug_forward_web_query_parameters")&&(p=KNA(p));d.open(l,p,!0);n&&(d.responseType=n);V&&(d.withCredentials=!0);l=l==="POST"&&(window.FormData===void 0||!(y instanceof FormData));if(S=hJA(p,S))for(const B in S)d.setRequestHeader(B,S[B]),"content-type"===B.toLowerCase()&&(l=!1);l&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded");z&&"onprogress"in d&&(d.onprogress=()=>{z(d.responseText)}); if(Z&&"setAttributionReporting"in XMLHttpRequest.prototype){p={eventSourceEligible:!0,triggerEligible:!1};try{d.setAttributionReporting(p)}catch(B){D0(B)}}d.send(y);return d}; KN=function(p,a){const l=p.Lz.iX();return l.isInline()&&!a.PN?new fa(0,480,!1,"v"):Yc(a)?qN:l.isBackground()&&Ls()/1E3>60&&!g.ur(p.Y)?new fa(0,360,!1,"v"):qN}; A8$=function(p,a,l){if(!(p.videoTrack.L.L()&&p.audioTrack.L.L()&&p.Kz&&p.Kz.S&&p.Kz.L))return!1;if(l&&p.r7.isManifestless&&(p.videoTrack.D===-1||p.audioTrack.D===-1))return!0;const y=En(p.videoTrack,a,l);if(isNaN(y))return!1;p=En(p.audioTrack,p.policy.Fu?a:y,l);return isNaN(p)?!1:!0}; gIh=function(p){for(const a in p)return p[a]}; mu=function(){return g.o1("yt.gcf.config.hotConfigGroup")}; EGr=function(p){const a=az(p)==="adunit"?p.Pk:AG(p)?az(p)==="detailpage"||az(p)==="shortspage"?p.isAutonav||p.dG>0:p.L1?!1:p.g7.L1||p.g7.DF||!g.x3(p.g7)?!0:!1:(p.L1?0:p.A$)&&g.x3(p.g7)?!0:!1;p.A("html5_log_detailpage_autoplay")&&az(p)==="detailpage"&&p.Xu("autoplay_info",{autoplay:p.Yo,autonav:p.isAutonav,wasDompaused:p.L1,result:a});return a}; hWq=function(p){const a=p.B.getPlayerSize(),l=p.B.O(),y=p.B.getVideoData(),S=g.x3(l)&&g.jM(p.B)&&p.B.getPlayerStateObject().L(128),n=l.U;return l.tN&&a.width>=240&&!y.isAd()&&y.tN&&!S&&!y.XX&&!p.B.isEmbedsShortsMode()&&!n}; YfZ=function(p,a,l){p.U=!1;throw Error("The stream is broken @"+p.S+". Error: "+l+". With input:\n"+a);}; g.X0A=function(p){let a;p.responseType&&p.responseType!=="text"?p.responseType==="arraybuffer"&&(a=ot(new Uint8Array(p.response))):a=p.responseText;return!a||a.length>2048?"":a.indexOf("https://")===0?a:""}; see=function(p){return(p=p.G4)&&p.showError?p.showError:!1}; qfr=function(p,a){if(!a)return!1;var l=p.api.mB();if(l.X()&&(l=l.Wa())&&g.n3(l,a))return l.controls;for(l=0;l{p.policy.U&&p.Xu("pathprobe",l)},l=>{p.Lz.handleError(l)})}; lJ=function(p,a){var l=`f${Math.floor(p/31)+1}`;p=1<=0))a:{l=g.N7(p);y=p.info.L.S;let B=a=0;for(var S=0;dH(l,a);){const c=Ge(l,a);if(c.type===1836476516)B=g.Z2(c);else if(c.type===1836019558){!B&&y&&(B=oq(y));if(!B){l=NaN;break a}var n=sW(c.data,c.dataOffset,1953653094),V=n;n=B;var Z=sW(V.data,V.dataOffset,1952868452);V=sW(V.data, V.dataOffset,1953658222);var z=oE(Z);oE(Z);z&2&&oE(Z);Z=z&8?oE(Z):0;var d=oE(V),G=d&1;z=d&4;const w=d&256,X=d&512,v=d&1024;d&=2048;const I=Vn(V);G&&oE(V);z&&oE(V);G=0;for(let u=0;ul.toUpperCase().replace("_","")).replace("Dot",".")}; nR=function(p,a=-1,l=Infinity){for(const [Z,z]of p.X){var y=Z,S=z;S.HL>=a&&S.target&&S.target.w$<=l&&(p.L.removeCueRange(y),p.X.delete(y))}y=[];for(const Z of p.S)Z.Dy>=a&&Z.w$<=l?(S=p,S.G===Z&&$D(S),wr(S,Z)&&S.app.Hx()):y.push(Z);p.S=y;const {Fq:n,Ve:V}=Om(p,a/1E3);n&&(a=V*1E3,NQZ(p,n,a,n.w$===n.Dy+n.durationMs?n.Dy+a:n.w$));({Fq:a}=Om(p,l/1E3));a&&Rx(p,`Invalid clearEndTimeMs=${l} that falls during ${`playback={timelinePlaybackId=${a.ME} video_id=${a.playerVars.video_id} durationMs=${a.durationMs} enterTimeMs=${a.Dy} parentReturnTimeMs=${a.w$}}`}.`+ "Child playbacks can only have duration updated not their start.")}; B5=function(p,a=!1,l=1048576){let y=MP(p);y=1/((p.G.Pi()||0)*p.policy.UO+1/y);let S=p.Ws.Pi();S=S>0?S:1;var n=Math.max(y,S);p.policy.X>0&&S{n instanceof g.qH?Cj(p,a,n,y,S):y(n)},n=>{S(n)})}; O6F=function(p,a,l){p=p.map(async y=>{await Bi(y.actualName,a);await ci(y.actualName,l)}); return Promise.all(p).then(()=>{})}; IC=function(){return"h5vcc"in RC&&RC.h5vcc.traceEvent?.traceBegin&&RC.h5vcc.traceEvent?.traceEnd?1:"performance"in RC&&RC.performance.mark&&RC.performance.measure?2:0}; aE=function(p){var a=Math,l=a.round;const y=Math.min((0,g.h)()-p.U,p.S);a=l.call(a,(p.S-y)/1E3);p.updateValue("duration",FW({seconds:a}));a<=0&&p.L?p.stopTimer():p.L&&p.L.start()}; ZfM=function(p){const a=p.L?.bannerData?.itemData;return a?.priceReplacementText||p.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")||!a?.dealsData?.sales?.originalPrice?null:a?.dealsData?.sales?.originalPrice}; mh=function(p,a,l,y,S,n,V,Z){PB()&&l.token&&(p=Jf(p,{ctt:l.token,cttype:l.qL,mdx_environment:l.mdxEnvironment}));y.A("net_pings_low_priority")&&(a||(a={}),a.priority="low");n||Z&&y.A("nwl_skip_retry")?(a==null?a={}:KW$(p,y.A("html5_assert_cpn_with_regex")),V?Li().sendAndWrite(p,a):Li().sendThenWrite(p,a,Z)):a?(KW$(p,y.A("html5_assert_cpn_with_regex")),fmF(p,a)):g.Fj(p,S)}; oxO=function(p,a,l){p.K&&clearTimeout(p.K);p.L===0&&g.BM(p.api.getRootNode(),"ytp-grid-scrolling");a?cM(p,l):p.L<.1&&(p.K=window.setTimeout(()=>{cM(p)},1E3))}; zt=function(p){var a=p.videoData.L,l={cpn:p.videoData.clientPlaybackNonce,c:p.Y.L.c,cver:p.Y.L.cver};for(const [V,Z]of Object.entries(l)){l=V;var y=Z;for(var S of Object.values(a.L))S.gG.N(l,y);a.UO?.N(l,y)}a=MkM(p.Y,p.videoData,p.s6);S=TDe(p);p.Xp.removeAll();a:{l=p.TR.SK;if(y=p.videoData.videoId){var n=l.L.get(y);if(n){l.L.remove(y);l=n;break a}}l=void 0}p.loader=new g.VP(p,p.s6,a,p.videoData.L,p.videoData.U,R8(p),S,p.videoData.enableServerStitchedDai,l,p.videoData.Sl);a=p.videoData.A("html5_disable_preload_for_ssdai_with_preroll")&& p.videoData.isLivePlayback&&p.Sr()?!0:p.ot&&g.ur(p.Y)&&p.videoData.isLivePlayback;p.loader.initialize(p.getCurrentTime(),R8(p),a);p.videoData.probeUrl&&(p.loader.VY=p.videoData.probeUrl);!p.AJ.length&&!p.ot||p.videoData.cotn||p.loader?.w7(!1);r1(p.nt,p.loader);p.I4&&(YnM(p.loader,new g.Zh(p.I4)),p.Xu("sdai",{sdl:1}));p.videoData.dE()&&(p=p.loader,p.policy.g4=p.policy.tf)}; v4=function(p){return g.R("EXPERIMENT_FLAGS",{})[p]}; xDE=function(p,a,l){if(p.Je){p.Je.X();var y=p.Je.QY,S=y.j,n=S.L;if(y.D!=null){var V=y.U;p.Oc=new g.g3(V.left-n.left,V.top-n.top)}n=p.l5()?Math.max(y.L,y.X):y.L;V={};S.volume!==null&&(V.volume=S.volume);S=p.fD(y);p.jO=y;p.J9(n,a,l,!1,V,S,y.K)}}; Pt=function(p,a){g.tU(p.X,a)||(p.X.push(a),a.UO(p.L),a.D(p.j),a.x$()&&(p.Sl=!0))}; oF=function(p){return p?p:As}; g.CX=function(p){return m6M(p)()}; R5=function(p,a){p.L-=a;p.register>>=a}; zb=function(p,a){const l=new g.Xh(a);(a=l.get("req_id"))&&p.set("req_id",a);g.yo(p.L,(y,S)=>{l["set"](S,null)}); return l}; $rM=function(p){return new Wa(p.top,p.right,p.bottom,p.left)}; zDE=function(p){const a=p.jb();if(!(a.getPlayerState().L(64)&&p.EE().isLivePlayback&&p.lM.startTimeMs<5E3)){if(p.lM.type==="repeatChapter"){var l=N6M(p.DN())?.I7(),y=p.getVideoData()?.UY;l instanceof g.da&&y&&(y=y[ES(y,p.lM.startTimeMs)],l.renderChapterSeekingAnimation(0,y.title));isNaN(Number(p.lM.loopCount))?p.lM.loopCount=0:p.lM.loopCount++;p.lM.loopCount===1&&g.v0(p.pz,"innertubeCommand",p.getVideoData().Im)}l={qE:"application_loopRangeStart"};if(p.lM.type==="clips"||p.lM.type==="shortsLoop")l.seekSource= 58;a.seekTo(p.lM.startTimeMs*.001,l)}}; drM=function(){let p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch{p=!0}return(g.R("INNERTUBE_CLIENT_NAME")==="WEB"||g.R("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p}; deF=function(p){for(const a of p.S.values())p.playback.removeCueRange(a);p.S.clear();p.N.clearAll()}; pJq=function(p){p.L===-1&&(p.L=p.data.reduce((a,l,y)=>a+(l?2**y:0),0)); return p.L}; w1=function(p){if(p.Kz)if(p.Ky(),p.Kz.G)try{p.Y.Mc()&&p.Xu("rms",{l:"vprms",sr:p.Gp(),rs:p.Kz.U()}),p.Kz.clear(),p.mediaElement?.Ro(p.Kz),p.Kz=null}catch(l){var a=new g.Qm(`Error while clearing Media Source in VideoPlayer: ${l.name}, ${l.message}`);a=XN(a);p.handleError(a);p.qR()}else p.qR()}; cz=function(p){return p.g7.A("html5_disable_av1")?!0:!1}; t8=function(p,a){for(;p.L=p.data.length)return p.error=!0,0;p.register|=p.data[p.S++]<>=a;p.L-=a;return l}; VNE=function(p,a){gD(p,1,a.videoCodec);gD(p,3,a.maxHeight);gD(p,4,a.maxWidth);gD(p,11,a.maxFramerate);gD(p,12,a.maxBitrateBps);ns(p,15,a.is10BitSupported)}; f5=function(p){return p.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")?p.U.yQ?null:p.L?.bannerData?.itemData?.vendorName:p.U.yQ||p.K.yQ||p.L?.bannerData?.itemData?.affiliateDisclaimer?null:p.L?.bannerData?.itemData?.vendorName}; UQ=function(p){const a=p.api.O().A("enable_linear_program_progress"),l=p.api.getPresentingPlayerType()===2;return p.xl&&!kN(p)&&(!a||!p.S)&&!l}; TT=function(p){return p.B.O().experiments.Cz("enable_ads_control_flow_deterministic_id_generation")}; oc$=async function(p,a,l){function y(d){d=XN(d);if(xW(d.severity))return Promise.reject(d);p.handleError(d);return!1} function S(){return!0} const n=G0o(p.O(),a,p.getPlayerSize(),p.getVisibilityState(),p.isFullscreen()),V=a.isAd(),Z=V?1:3;for(let d=0;d0&&(await Pq(5E3),z={playerretry:d,playerretrysrc:l},V||(z.recover="embedded"),z=J3(n,z));if(await Ovo(a,z).then(S,y))return}a=V?"auth":"manifest.net.retryexhausted";l=V?2:1;if(!V&&Math.random()<1E-4)try{g.tX(new g.Qm("b/152131571",btoa(n)))}catch{}return Promise.reject(new g.cQ(a,{backend:"gvi"},l))}; oBv=function(p,a){if(a.itagDenylist)for(let l=0;la.startSeconds&&m2(p,a.endSeconds)}; Hnv=function(p,a,l){const y=l.video?.fps||0,S=`${a}_${y}`,n=!!l.audio,V={itag:l.itag,mT:a,Bi:n};if(n)V.numChannels=l.audio.numChannels;else{var Z=l.video;V.maxWidth=Z?.width;V.maxHeight=Z?.height;V.maxFramerate=y;Oe(p,y9.BITRATE)&&(V.maxBitrateBps=l.Sb*8);V.qw=Z?.isHdr()}Z=p.L.get(S);Z?n||(l=Math.max(Z.maxWidth||0,Z.maxHeight||0)>Math.max(V.maxWidth||0,V.maxHeight||0)?Z:V,a={itag:l.itag,mT:a,Bi:n,maxWidth:Math.max(Z.maxWidth||0,V.maxWidth||0),maxHeight:Math.max(Z.maxHeight||0,V.maxHeight||0),maxFramerate:y, qw:l.qw},Oe(p,y9.BITRATE)&&(a.maxBitrateBps=l.maxBitrateBps),p.L.set(S,a)):p.L.set(S,V)}; g.c7=function(p){if(p instanceof Gb||p instanceof c0q||p instanceof B7)return p;if(typeof p.next=="function")return new Gb(()=>p); if(typeof p[Symbol.iterator]=="function")return new Gb(()=>p[Symbol.iterator]()); if(typeof p.q5=="function")return new Gb(()=>p.q5()); throw Error("Not an iterator or iterable.");}; Avo=function(p,a){let l=0,y=!1;for(const V of a){if(g.K(V,r0h)){a=g.K(V,r0h);var S={startTime:NaN,title:null,onActiveCommand:void 0},n=a.title;S.title=n?g.mQ(n):"";n=a.timeRangeStartMillis;n!=null&&(S.startTime=n);S.onActiveCommand=a.onActiveCommand;a=S;l===0&&a.startTime!==0&&(p.L[l].startTime=0,p.L[l].title="",p.L[l].onActiveCommand=a.onActiveCommand,l++,y=!0);p.L.length<=l&&(S=new wlM,p.L.push(S),g.H(p,S),S.lT(p.iT,p.iT.children.length));p.L[l].startTime=a.startTime;p.L[l].title=a.title?a.title: "";p.L[l].onActiveCommand=a.onActiveCommand;p.L[l].index=y?l-1:l}l++}for(;l{l.D(p.j)})}; wa=function(p){p.S&&(p.S.disable(),p.Tm=0,p.Sl.style.removeProperty("transform"),p.progressBar.style.removeProperty("transform"),p.Ps.style.removeProperty("height"),p.element.parentElement&&p.element.parentElement.style.removeProperty("height"))}; PUZ=function(p,a,l){Kt(p,a);a=ypq(p.X,l);l||a||(a=XpO(p));a=a||p.D.S[0];p.S=p.r7.L[a.id];eM(p);p.G=p.S;$e$(p);XVe(p);p.U=p.nextVideo;p.G=p.S;return cVv(p)}; $E=function(p,a,l){const y=[];var S=p.track.Jg;if(S){S=S.gP();for(var n=0;nn?S=0:y[V]>p.buffered[V]&&(V===n-1?S=2:V===n-2&&y[V+1]>p.buffered[V+1]&&(S=3))}p.L.add(a<<3|(l&&4)|S);a=Math.ceil(p.track.fO()*1E3);p.L.add(a-p.X);p.X=a;if(S===1)for(p.L.add(n),a=0,V=0;V= 2&&p.L.add(y[n-1]-p.buffered[n-1]);l&&p.L.add(l);p.buffered=y}; L7Z=function(p,a){if(p.policy.cz){var l=a.info.Sb,y=B5(p.schedule);a=a.index.H2();l=Math.max(1,y/l);p.K=Math.round(Math.max(((l-1)*a+p.policy.Ye)/l,a-p.policy.vG)*1E3)}}; at=function(p,a){return p.A(a)?!0:(p.fflags||"").includes(a+"=true")}; Vx=function(p,a,l){for(const V in p.L){var y=p.L[V].index,S=a,n=l;y.xr&&(S&&(y.DE=Math.max(y.DE,S)),n&&(y.Ui=Math.max(y.Ui||0,n)))}l&&(p.jl=l/1E3)}; XlM=function(p,a={}){let l=!1;g.R("ytLoggingEventsDefaultDisabled",!1)&&(l=!0);FUo(p,l?null:g.Sy,a)}; Sd=function(p){let a=(484).toString();p&&(a=(483).toString());return a}; $O=function(p,a){p[a]||(p[a]=new xev);return p[a]}; P7=function(){return!(!bn||!bn.performance)}; Ghf=function(p,a,l,y){p||(p=a&&F7f.hasOwnProperty(a)&&ExZ.hasOwnProperty(a)?ExZ[a]+"_"+F7f[a]:void 0);a=p;if(!a)return null;p=a.match(CUh);if(!p||p.length!==5)return null;{const n=a.match(CUh);if(n){p=Number(n[3]);var S=[7,8,10,5,6];p=!(Number(n[1])===1&&p===8)&&S.indexOf(p)>=0}else p=!1}return l||y||p?a:null}; LR=function(p,a,l,y){Xl(`https://${a}${"/videoplayback?probe=1"}`,l,S=>{!y.A("html5_onesie_host_racing")||y.videoData.isLivePlayback||y.A("html5_onesie_probe_ec_hosts")||y.FN||y.vP();p.U.push(S)},S=>{p.U.push(S.details)})}; ae=function(p){p.X=0;p.L="hidden";p.S=void 0;p.j=void 0;p.D.stop();p.U=void 0}; vxF=function(p){return dp(p,"html5_ssap_play_cached_preroll")}; iL=function(p){a:{let l;try{l=p.L.top.location.href}catch(y){p=2;break a}p=l?l===p.S.location.href?0:1:2}p={dt:K7f,flash:"0",frm:p};try{p.u_tz=-(new Date).getTimezoneOffset();try{var a=bn.history.length}catch(l){a=0}p.u_his=a;p.u_h=bn.screen?.height;p.u_w=bn.screen?.width;p.u_ah=bn.screen?.availHeight;p.u_aw=bn.screen?.availWidth;p.u_cd=bn.screen?.colorDepth}catch(l){}return p}; vJr=function(){return{W:"svg",Z:{viewBox:"0 0 24 24"},V:[{W:"path",Z:{d:"M0 0h24v24H0z",fill:"none"}},{W:"path",Z:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; eDq=function(p,a=!1){wNh(p.o4,a)}; bfF=function(p){p.mediaElement&&p.mediaElement.gE()&&(p.Uc=(0,g.h)());p.Y.p9?g.jQ(()=>{BF(p)},0):BF(p)}; B8f=function(p){return new cdF(p[0].toLowerCase())}; h3=function(p,a=!1){if(p.S){if(p.D){var l=p.S;p.app.pz.removeEventListener(g.tT("vqueued"),p.G);l.removeCueRange(p.D)}p.S=null;p.D=null}p.U&&(p.U.status.status!==6&&(l=p.U,l.status.status!==Infinity&&l.D!==1&&l.Sj("Canceled")),p.U=null);p.j=null;p.L&&!a&&p.L!==p.app.jb()&&p.L!==p.app.zm()&&p.L.dispose();p.L&&a&&p.L.qR();p.L=null;p.K=!1}; vb=function(p){const a=p.B.getRootNode();return p.B.A("web_watch_pip")||p.B.A("web_shorts_pip")?jj(a):document}; UpE=function(p){return WQ(p.L,a=>a.info.video?a.Rc():!0)}; Ku=function(p,a){p.env.A("delhi_modern_web_player")&&p.scale!==.6&&(p.scale=a?.8:1)}; sVE=function(p,a,l,y=""){y=a.mimeType+y;const S=l.mimeType;a=a.mT;l=l.mT;p.Hs=p.Kz?.addSourceBuffer(S);p.Rc=y.split(";")[0]==="fakesb"?void 0:p.Kz?.addSourceBuffer(y);p.t5&&(p.t5.webkitSourceAddId("0",S),p.t5.webkitSourceAddId("1",y));l=new IIq(p.Hs,p.t5,"0",Te(S),l,!1);y=new IIq(p.Rc,p.t5,"1",Te(y),a,!0);yFE(p,l,y)}; Xw=function(p,a,l,y,S,n,V,Z){y=y||l.clientMetadata.t9(n);p=Sx(p);const z=vj(()=>{S.VQ(a,l)}); Z.push(V(y,p,l.layoutId,{adsClientData:l.ao},()=>{z()}))}; NRe=function(p,a){p=document.querySelector(p);if(!p)return!1;var l="";const y=p.nodeName;y==="SCRIPT"?(l=p.src,l||(l=p.getAttribute("data-timing-href"))&&(l=window.location.protocol+l)):y==="LINK"&&(l=p.href);zs(document)&&p.setAttribute("nonce",zs(document));return l?(p=lt.getEntriesByName(l))&&p[0]&&(p=p[0],l=Pr(),kk("rsf_"+a,l+Math.round(p.fetchStart)),kk("rse_"+a,l+Math.round(p.responseEnd)),p.transferSize!==void 0&&p.transferSize===0)?!0:!1:!1}; g.XX=function(p,a){if(p.classList)p.classList.add(a);else if(!g.nG(p,a)){const l=krE(p);g.rn(p,l+(l.length>0?" "+a:a))}}; Fw=function(p,a){Array.isArray(a)&&(a=a.join(" "));a===""||a==void 0?(xE||(xE={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"}),a=xE,"label"in a?p.setAttribute("aria-label",a.label):p.removeAttribute("aria-label")):p.setAttribute("aria-label",a)}; u3F=function(p){p.L.queryid||(p.L.queryid=new RDo)}; g.qb=function(p){return p.flavor==="fairplay"}; KOE=function(p,a){a.sort((l,y)=>l.toString().localeCompare(y.toString(),p.g7.hostLanguage))}; Qze=function(p,a=""){p.state=1;p.Hs=(0,g.h)();return LvM(a||p.sourceUrl).then(l=>{if(!p.nz()){p.a9=l.status;l=l.responseText;const S=new DOMParser;l=f1(S,TBF(l),"text/xml").getElementsByTagName("MPD")[0];p.Sl=s$h(PX(l,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(l.attributes)for(y of l.attributes)if(y.value==="http://youtube.com/yt/2012/10/10"){var y=y.name.split(":")[1];break b}y=""}p.G=y;p.isLive=p.Sl{let y; l instanceof BY&&(y=l.xhr,p.a9=y.status);p.state=3;p.publish("loaderror");return l3(y)})}; gE=function(p,a,l,y,S,n,V,Z,z,d,G){a=d??d$(p.S.get(),"LAYOUT_TYPE_MEDIA_BREAK",a);d={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",qO:"adapter"};Z=Z(a);const B=Z.clientMetadata.t9("metadata_type_fulfilled_layout");B||Q("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");const c=B?B.layoutId:"";l=[new GL(l),new BH(y),new cH(S)];B&&l.push(new r$(B.layoutType));G&&l.push(new w9(G));return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xh:n, layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new $C(p.L,c)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"adapter",k8:l,ao:V(d),adLayoutLoggingData:z,ZI:Z,eB:c}}; OfA=function(p){return p.B.O().experiments.Cz("html5_load_empty_player_in_media_break_sub_lra")}; Pb=function(p,a){return a>p.mediaTime+p.X&&al.X?.smooth===!1).map(l=>l.itag).join("-")}))}; ZvO=function(p,a){var l=p.app;Kx(l.EE())&&l.R4.U[2]&&g.G3(p.logger,360717806,"SSTM lingering playback");p.api.Ai();p.api.publish("serverstitchedvideochange",a.ME,a.kS)}; g.Vg=function(p){const a=[];if(p.displayName)a.push(p.displayName);else{const l=p.languageName||"";a.push(l);p.kind==="asr"&&l.indexOf("(")===-1&&a.push(" (Subt\u00edtulos autom\u00e1ticos)");p.name&&a.push(` - ${p.name}`)}p.translationLanguage&&a.push(` >> ${p.translationLanguage.languageName}`);return a.join("")}; g.HO=function(p){return!!p.L&&tyh(p.L)}; xz=function(p){return p.Gm+(p.j?1:0)}; g.Ey=function(p){p=p.split(M8M);const a=[];for(let l=0;ly.index.isLoaded()); if(!p)return NaN;p=p.index;const l=p.ov(a);return p.getStartTime(l)===a?a:lS+n.length,0)); a>96E3&&(new g.SF(p.reportStats,0,p)).start()}}; g.Ir=function(p,a,l){Array.prototype.forEach.call(p,a,l)}; Vnf=function(p,a){p=sCO(p.app.h3().X);for(const l of p){p=l.getAvailableAudioTracks();let y=null;for(const S of p)if(S.getLanguageInfo().getId()===a){y=S;break}y&&l.OZ(y,!0)}}; nrr=function(p,a,l,y,S,n,V,Z,z,d,G,B,c){const w={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",qO:l};S=[new GL(S),new x_(z),new XP(y.externalVideoId),new cF(Z),new cH({impressionCommands:y.impressionCommands,abandonCommands:y.onAbandonCommands,completeCommands:y.completeCommands,progressCommands:y.adVideoProgressCommands}),new r9(n),new $_({current:null}),new d_(V)];(n=y.playerOverlay.instreamAdPlayerOverlayRenderer)&&S.push(new PF(n));(V=y.playerOverlay.playerOverlayLayoutRenderer)&&S.push(new Lq(V)); B&&S.push(new Lj$(B));(B=y.playerUnderlay)&&S.push(new ogh(B));Z=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER");B=(B=n?n.elementId:V?.layoutId)?B:d$(p.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Z);S.push(new YK(B));S.push(new $3F(Z));S.push(new w9(z.adPodIndex));y.adNextParams&&S.push(new H1(y.adNextParams));y.shrunkenPlayerBytesConfig&&S.push(new W7$(y.shrunkenPlayerBytesConfig));y.clickthroughEndpoint&&S.push(new DW(y.clickthroughEndpoint));y.legacyInfoCardVastExtension&&S.push(new Xeo(y.legacyInfoCardVastExtension)); y.sodarExtensionData&&S.push(new FP(y.sodarExtensionData));G&&S.push(new i7(G));S.push(new oL(zc(y.pings)));z=xw(y.pings);if(c){a:{for(X of c)if(X.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(c=g.K(X.fulfillmentContent.fulfilledLayout,XJ))&&(c=g.K(c.renderingContent,ek))&&c.associatedPlayerBytesLayoutId===a)break a;var X=void 0}X&&S.push(new Plq(X))}return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA",Xh:z,layoutExitNormalTriggers:[new w$(p.L,a)],layoutExitSkipTriggers:y.skipOffsetMilliseconds? [new $C(p.L,B)]:[],layoutExitMuteTriggers:[new $C(p.L,B)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:l,EA:S,ao:d(w),adLayoutLoggingData:y.adLayoutLoggingData}}; K$=function(p){E3(p,"removeEventListener",p.S.E9.AFMA_LIDAR,IK);p.Bs=!1}; n_=function(p){return p.B.O().experiments.Cz("html5_load_ads_instead_of_cue")}; IJ=function(p){return p===null?"null":p===void 0?"undefined":p}; g.BM=function(p,a){p.classList?p.classList.remove(a):g.nG(p,a)&&g.rn(p,Array.prototype.filter.call(wn(p),function(l){return l!=a}).join(" "))}; KR=function(p,a){if(p===a)p=!0;else if(Array.isArray(p)&&Array.isArray(a))p=g.Pd(p,a,KR);else if(g.pA(p)&&g.pA(a))a:if(g.WA(p).length!=g.WA(a).length)p=!1;else{for(let l in p)if(!KR(p[l],a[l])){p=!1;break a}p=!0}else p=!1;return p}; HfF=function(p,a=!1){let l=null;p.videoData.U?.L()?(l=lC$(p,a),p.loader?.resume()):($B(p),p.videoData.Tm&&(l=p.videoData.Tm.S()));return l}; Deq=function(p){e5(p.D,"data",a=>{if("1"in a){var l=a["1"];let y;try{y=p.G(l)}catch(S){te(p,new Wg(13,`Error when deserializing response data; error: ${S}`+`, response: ${l}`))}y&&TQ(p,y)}if("2"in a)for(a=No(p,a["2"]),l=0;l{DU(p,ir(p));for(let a=0;a{if(p.L.length!==0){var a=p.xhr.S;a!==0||Mo(p.xhr)||(a=6);var l=-1;switch(a){case 0:var y=2;break;case 7:y=10;break;case 8:y=4;break;case 6:l=p.xhr.getStatus();y=Hg(l);break;default:y=14}DU(p,ir(p));a=YMF(a)+", error: "+p.xhr.getLastError();l!==-1&&(a+=`, http status code: ${l}`);te(p,new Wg(y,a))}})}; u8q=function(p,a){return NxF(l=>l.publicName===p&&l.userIdentifier!==void 0,a)}; DTh=function(p,a,l,y,S,n,V){l=Hro(p,a,l,y);if(l instanceof N)return l;V=V({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:l.slotExpirationTriggers,qO:l.qO});if(V instanceof N)return V;y=[new oa(zW(a)),new Z1(V.layout),new dA({qa:p.qa(a)})];n&&y.push(new A5F({}));return{dK:{slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:n7(p, a,l.slotId,l.slotEntryTrigger),slotFulfillmentTriggers:V5(p,a,l.slotId,l.slotFulfillmentTriggers),slotExpirationTriggers:l.slotExpirationTriggers,qO:l.qO,clientMetadata:new L0(y),adSlotLoggingData:S},TO:V.TO}}; gq=function(p,a){a={current:a/1E3,duration:p.ND()/1E3};wh(p.F7.get(),"onAdPlaybackProgress",a)}; Rn=function(p){var a=p.L;const l=p.api.getCurrentTime(),y=p.api.h9().getPlayerSize();var S=T$(a,y.width);S=l3h(a,S,l);p.update({timestamp:g.iH(l)});S!==p.frameIndex&&(p.frameIndex=S,ner(a,S,y.width),a=Jnr(a,S,y.width),fdq(p.S,a,y.width,y.height))}; g.CR=function(p){var a=p.api.bN()?32:16;a=p.G/2+a;p.next.element.style.bottom=`${a}px`;p.previous.element.style.bottom=`${a}px`;a=p.scrollPosition;const l=p.containerWidth-p.suggestionData.length*(p.j+8);g.OW(p.element,"ytp-scroll-min",a>=0);g.OW(p.element,"ytp-scroll-max",a<=l)}; ifr=function(p){switch(p){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}}; g.bu=function(p,a){g.Oc(()=>{g.Ir(a,l=>{sS(l,p);const y=bQ({cttAuthInfo:US(p)||void 0},p);l={csn:p,ve:l.getAsJson(),eventType:4};p==="UNDEFINED_CSN"?Qd("visualElementShown",y,l):g.i0("visualElementShown",l,y)})})()}; IF=function(p){return p.localStorage===void 0?new yR("yt-client-location"):p.localStorage}; g.eo=function(p,a,l){p=p.split(".");l=l||g.mm;for(var y;p.length&&(y=p.shift());)p.length||a===void 0?l[y]&&l[y]!==Object.prototype[y]?l=l[y]:l=l[y]={}:l[y]=a}; qTr=function(p,a){p.K.push(a);g.H(p,a);a.lT(p.QS,p.QS.children.length)}; RF=function(p,a){p.B.setOption("captions","track",a)}; oNf=function(){return{W:"svg",Z:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{W:"path",Z:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z", fill:"white"}}]}}; uu=function(p,a,l,y,S){const n=(a=p.X?p.G[a]:p.jl[a])&&a.quality;var V=a&&a.qualityLabel;V=V?V:"Autom\u00e1tica";y&&(V=`(${V}`);p=ioM(p,V,n||"",S);y&&p.V.push(")");(y=(y=a&&a.paygatedQualityDetails)&&y.paygatedIndicatorText)&&l&&p.V.push({W:"div",T:"ytp-premium-label",yY:y});return p}; eq=function(p){if(p<0){Qc(0-p);p=a1;var a=yB;a=~a;p?p=~p+1:a+=1;const [l,y]=[p,a];a1=l>>>0;yB=y>>>0}else Qc(p)}; Twf=function(p,a){let l=null;p.U&&(l=(a?[p.U.defaultServiceEndpoint,p.U.defaultNavigationEndpoint]:[p.U.toggledServiceEndpoint]).filter(y=>y!=null)); return l||[]}; nKf=function(p,a){if(a>p.VL())p.segments=[];else{var l=yy(p.segments,y=>y.Gm>=a,p); l>0&&p.segments.splice(0,l)}}; o2=function(p,a,l){p.S=a;p.X?.cZ(a,l);p.UO?.cZ(a);p.L=0;Ga(p);QK(p,a)}; ed=function(p,a){const l=[];for(;Em(p,a);)l.push(Cz(p));return l.length?l:void 0}; JqE=function(){let p=g.R("csn-to-ctt-auth-info");p||(p={},C8("csn-to-ctt-auth-info",p));return p}; Nwo=function(p,a,l){let y=p.Ho?Math.max(a,l/p.Ho):a;const S=p.s6.S.U;S&&(y=a,p.Ho&&(y=Math.max(a,l/p.Ho*S)));s4(p.s6,a,l,y)}; dJ=function(p){p.Ro.JP()}; b_r=function(p){const a=p.L[p.L.length-1];if(a){g.Wt(p.element,p.maxWidth||"100%",p.maxHeight||"100%");g.VB(a.element,"width","");g.VB(a.element,"height","");g.VB(a.element,"maxWidth","100%");g.VB(a.element,"maxHeight","100%");g.VB(a.content.element,"height","");const S=g.Lf(a.element);S.width+=1;S.height+=1;g.VB(a.element,"width",`${S.width}px`);g.VB(a.element,"height",`${S.height}px`);g.VB(a.element,"maxWidth","");g.VB(a.element,"maxHeight","");var l=0;a.uI&&(l=g.Lf(a.d7("ytp-panel-header")).height); var y=0;a.tR&&(y=a.d7("ytp-panel-footer"),g.VB(y,"width",`${S.width}px`),y=g.Lf(y).height);g.VB(a.content.element,"height",`${S.height-l-y}px`);a.element instanceof HTMLElement&&(l=a.element,y=l.scrollWidth-l.clientWidth,l.offsetWidth-l.clientWidth>0&&y>0&&(S.width+=y,g.VB(a.element,"width",`${S.width}px`)));p.size=S}}; g.Rs=function(p){var a=new px(new F8([R1(decodeURIComponent(p))]));p=w3(a,2);a=r3(a,4);const l=sjr[a];if(typeof l==="undefined")throw p=new g.Qm("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),g.MD(p),p;return{Gi:a,entityType:l,entityId:p}}; g.Oy=function(p,a){g.lH.call(this);this.mD=p||1;this.U4=a||g.mm;this.LI=(0,g.Qo)(this.td,this);this.dF=g.eB()}; OA=function(p,a,l){p=p.loader.oo()||0;return kj(a,(l+p)*1E3)/1E3+l}; g.jh=function(p){return`crx_${p}`}; i3E=function(p){const a=p.webPlayerContextConfig.trustedJsUrl;return a?Ox(a).toString():p.webPlayerContextConfig.jsUrl}; Ueo=function(p){var a;if(a=!!p.cotn)a=p.videoId,a=!!a&&g.cN(a)===1;return a&&!p.Dk}; B3F=function(p){switch(p){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; d$=function(p,a,l){if(TT(p.EO.get())){let y=p.L.get(a)||0;y++;p.L.set(a,y);return`${l}_${a}_${y}`}return g.NM(16)}; J8o=function(p){p=new qjO(p.data,p.offset,p.size,p.type,p.S);var a=o7(p);p.skip(7);const l=Vn(p);let y;a===0?(a=Vn(p),y=Vn(p)):(a=ZP(p),y=ZP(p));p.skip(2);const S=nT(p),n=[],V=[];for(let Z=0;Z{l=l||{};l.method="POST";l.postParams={atr:p.attestationResponse};p.w7?p.Ws?Li().sendAndWrite(a,l):Li().sendThenWrite(a,l):g.$Y(a,l)})}; MZe=function(p){return p.displayName||p.name||"unknown type name"}; sMh=function(p){I7(vL,Uof,1,p)}; gxA=function(p,a){const l=[];a=Array.from(a.getElementsByTagName("SegmentTimeline"));for(const y of a){a=y.parentNode.parentNode;let S=null;a.nodeName==="Period"?S=hBr(p):a.nodeName==="AdaptationSet"?(a=a.getAttribute("id")||a.getAttribute("mimetype")||"",S=kSo(p,a)):a.nodeName==="Representation"&&(a=a.getAttribute("id")||"",S=Qp$(p,a));if(S==null)return;S.update(y);g.nn(l,kkM(S))}g.nn(p.j,l);Xrr(p.j,y=>y.startSecs*1E3+y.L)}; MW=function(p,a){return!p.api.isInline()&&!qfr(p,rl(a))&&g.N_(a)}; iCv=function(p,a){p=new Uint8Array(p);a&&p.set(a);return p}; m9=function(p,a){a=qi(a);return a===0?0:qi(p)/a}; vjM=function(p){var a="";for(let l=0;l{FY("touchmove",200)},{passive:!0}):(g.OB(l,"resize",()=>{FY("resize",200)}),a&&g.OB(l,"scroll",()=>{FY("scroll",200)})); g.OB(l.document,"touchstart",xA,{passive:!0});g.OB(l.document,"touchend",xA,{passive:!0})}; YIe=function(p,a){let l=mP(G1,a);l||(l=iW(p,a,"h",-1));return l}; ft=function(p,a){this.start=pa.video.height;if(y&&(p.Kz.N=!0,xB('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return l=aH$(l),p.policy.U&&p.Xu("sp4k",{s:!!l}),l}; qIM=function(p,a){G4(g.vB(p.B.O()),"wl_button",()=>{u_A({videoId:a});window.location.reload()})}; J0r=function(p,a,l){return p instanceof t6?AXF(p,l,a,1):p.Gh(l)}; MHE=function(p,a,l=!1){let y=-1;for(let S=0;S=a)return S}return y}; gBv=function(p){var a=new UW(p);a.U9();if(yn(a,[408125543,374648427,174,224]))a=hv(a);else return null;let l=p=null;for(;!pY(a);){var y=mT(a,!1);if(y===21432)switch(Q9(a)){default:p=0;break;case 1:p=1;break;case 3:p=2;break;case 15:p=255}else y===30320?l=hv(a):sx(a)}if(!l)return null;let S=y=a=null;for(;!pY(l);)switch(mT(l,!1)){case 30321:if(Q9(l)!==3)return null;break;case 30324:a=ms(l);break;case 30323:S=ms(l);break;case 30325:y=ms(l);break;case 30322:var n=mT(l,!0);n=Lr(l,n);n=new DataView(n.buffer, n.byteOffset,n.byteLength);break;default:sx(l)}return n?new oYM(p,a,S,y,n):null}; VXh=function(p,a,l,y,S,n,V){V==="PLAY_PROGRESS"&&(l=!y||p.api.O().S?1:l/y,p.ir.clientWidth>0||p.wq.clientWidth>0?(n=a.clientWidth/l,p=-1*p.ir.clientWidth/l):(n/=l,p=-1*p.L[S].element.offsetLeft/l),g.VB(a,"background-size",`${n}px`),g.VB(a,"background-position-x",`${p}px`))}; CN=function(p,a){var l;a:if((l=a.L)&&l.videoInfos.length){for(var y of l.videoInfos)if(y.X?.smooth){l=y.video.qualityOrdinal;break a}l=l.videoInfos[0].video.qualityOrdinal}else l=0;Ano()&&!g.ur(p.Y)&&a.L.videoInfos[0].U()&&(l=Math.min(l,g.f2.large));y=g.ak(p.Y.experiments,"html5_chipset_soft_cap");y>0&&(l=Math.min(l,y));if(y=g.ak(p.Y.experiments,"html5_max_vertical_resolution")){let V=4320;for(var S=0;Sy&&(V=Math.min(V,n.video.qualityOrdinal))}if(V< 4320){S=0;for(n=0;n0&&(z=Math.floor(S/1E3)));const d={AD_BLOCK:V,AD_BREAK_LENGTH:l?l.Hy:z,AUTONAV_STATE:Wq(p.player.O()),CA_TYPE:"image",CPN:p.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:p.player.yP()*1E3,LACT:Ls(),LIVE_INDEX:l?p.U++:1,LIVE_TARGETING_CONTEXT:l&&l.context?l.context:"",MIDROLL_POS:y?Math.round(y.start/1E3):0,MIDROLL_POS_MS:y?Math.round(y.start):0,VIS:p.player.getVisibilityState(), P_H:p.player.h9().yS().height,P_W:p.player.h9().yS().width,YT_REMOTE:Z?Z.join(","):""},G=iL(Dw);Object.keys(G).forEach(B=>{G[B]!=null&&(d[B.toUpperCase()]=G[B].toString())}); n!==""&&(d.BISCOTTI_ID=n);l={};v3(a)&&(l.sts="20354",(p=p.player.O().forcedExperiments)&&(l.forced_experiments=p));return J3(g.xN(a,d),l)}; pbM=function(p,a,l,y,S,n,V){Cw(p,a,new g.e2(l,new g.bB),y,S,V,!1,n)}; g.ii=function(p,a,l){l===void 0?delete p[a.name]:p[a.name]=l}; aFq=function(p,a){const l=p.mediaElement,y=a.type;switch(y){case "seeking":const S=l.getCurrentTime()+p.timestampOffset;if(!p.j||p.N&&S!==p.S)p.j=new z0,p.j.then(n=>{pI(p,n)},()=>{fN(p)}),p.videoData.isAd()&&FrM({adCpn:p.videoData.clientPlaybackNonce, contentCpn:p.videoData.zT??""},a.L),p.Bs=S,EXO(p.UO,l.getCurrentTime()),p.seekTo(S,{seekSource:104,qE:"seektimeline_mediaElementEvent"}),p.N=!0;break;case "seeked":rb(p);break;case "loadedmetadata":kF(p.Lz)||SiO(p);l9(p);break;case "progress":l9(p);break;case "pause":p.G=p.getCurrentTime()}p.G&&((y==="play"||y==="playing"||y==="timeupdate"||y==="progress")&&p.getCurrentTime()-p.G>10&&(p.A("html5_sky_skip_pause_jump")?p.Lz.Xu("skipPauseJump",{evt:y,cmt:p.getCurrentTime(),lpt:p.G}):p.seekTo(p.G,{qE:"pauseJump"})), y!=="pause"&&y!=="play"&&y!=="playing"&&y!=="progress"&&(p.G=0))}; g.t9=function(p){return p.yr.get("captions")}; ygM=function(p,a){const l=!!p.o4?.o1();p.o4||(p.o4=new lFo(p.api),g.H(p,p.o4),g.g1(p.api,p.o4.element,4));p.o4.iM(a);const y=Kh(p.api.DN());y&&y.loaded&&l!==a&&y.ZC();a&&p.api.Xu("sfn",{},!0)}; epE=function(p){return{GQ:r3(p,1),vz:r3(p,2),minReadaheadMs:r3(p,3)}}; SGe=function(p){if(!p)return null;switch(p.iconType){case "ACCOUNT_CIRCLE":return{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return i0q();case "HIDE":return{W:"svg",Z:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"g",V:[{W:"path",Z:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return sA()}}; g.tL=function(p,a){for(const l in p)if(!(l in a)||p[l]!==a[l])return!1;for(const l in a)if(!(l in p))return!1;return!0}; qrM=function(p){for(let a of n7r)p=Xp(p,a);return"ST-"+HY(p).toString(36)}; MOf=function(p,a,l,y,S){const n=(0,g.h)();S=S?S(a):void 0;const V=S?.ow??1;V!==0&&VGO(p,S?.profile??l,n-y,V);return a}; wvO=async function(p,a,l){g.nU("start_client_gcf")&&(bk(p,a),p=iB())&&(l||(l=(await hhq(p))?.config),l&&await AeA(l,a,l.configData,p))}; ymf=function(p){if(p.B.isEmbedsShortsMode())return!1;p=p.B;const a=p.O();if(a.U||a.getWebPlayerContextConfig()?.embedsEnableEmc3ds||a.controlsType==="3")return!1;if(a.playerStyle==="creator-endscreen-editor")return!0;p=p.getVideoData();return!!p&&(!!g.Bqv(p)||!!g.oHE(p))}; i9F=function(){switch(q8r()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; ZVZ=function(p){p.j{p.QQ.tick("bpd_c");if(!p.nz()){p.ot&&(p.X7(ud(ud(p.playerState,512),1)),tG(p));var l=p.videoData;l.endSeconds&&l.endSeconds>l.startSeconds&&m2(p,l.endSeconds);p.HO.finished=!0;DS(p,"dataloaded");p.R6.zj()&&lS(p);khr(p.XP,p.Qr)}}); p.A("html5_log_media_perf_info")&&p.Xu("loudness",{v:p.videoData.bf.toFixed(3)},!0);var a=p.mediaElement?.Wa();if(a&&"disablePictureInPicture"in a&&p.Y.yZ)try{a.disablePictureInPicture=p.Y.wq&&!p.videoData.backgroundable}catch(l){g.tX(l)}zIf(p);p.En=new o7O(p.videoData)}else DS(p,"dataloaded")}; j5=function(p){return p.clientMetadata.t9("metadata_type_invideo_overlay_ad_renderer")}; vQr=function(p){return{minBandwidthBytesPerSec:r3(p,1),minReadaheadMs:r3(p,2)}}; g.syv=function(p){return g.AF(p.L,a=>eg(a.info.mimeType))}; RM=function(p,a,l,y,S){const n=!a.hideCueRangeMarker;switch(a.kind){case "AD_PLACEMENT_KIND_START":return new SZ(p.L,l);case "AD_PLACEMENT_KIND_MILLISECONDS":return p=bPr(a,y),p instanceof N?p:S(p.DU,n);case "AD_PLACEMENT_KIND_END":return new Aj(p.L,l,n);default:return new N("Cannot construct entry trigger",{kind:a.kind})}}; g.K4Z=function(p){return p.va()&&Yc(p)}; G4r=function(p){return g.K(g.K(p.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,e3)?.playerBar,dZe)?.chapters}; cgO=function(p){p&&p!=="web"&&BPr.includes(p)}; rg$=function(p){if(p.L.length===0){const a=new wlM;p.L.push(a);g.H(p,a);a.lT(p.iT,0)}for(;p.L.length>1;)p.L.pop().dispose();Zb(p.L[0],"100%");p.L[0].startTime=0;p.L[0].title=""}; lC$=function(p,a=!1){if(p.Kz)return p.Kz.j;wbr(p,a);return p.mK()?.w7()||null}; $ZM=function(p,a){b6(a)?.isLocked&&r5F(a)&&(p.Lz.O().Mc()&&p.Xu("eosl",{munlock:b6(a)?.info.HZ()}),Il(p,a===p.audioTrack))}; PdE=function(p){let a;a=p[0];p[0]=p[3];p[3]=a;a=p[1];p[1]=p[2];p[2]=a;a=p[4];p[4]=p[5];p[5]=a;a=p[6];p[6]=p[7];p[7]=a}; W7=function(p,a,l,y,S){this.fu=p;this.jX=a;this.l7=l;this.U0=y;this.func=S}; fw=function(p,a=0,l=-1){p=jO(p,a,l);a=new Uint8Array(p.length);try{a.set(p)}catch(y){for(l=0;l=1)return 1;let y=0,S=1,n=0;for(var V=0;V<8;V++){n=H7(p,l);const Z=(H7(p,l+1E-6)-n)/1E-6;if(Math.abs(n-a)<1E-6)return l;if(Math.abs(Z)<1E-6)break;else n1E-6&&V<8;V++)n{let n;n=a!==void 0?self.indexedDB.open(p,a):self.indexedDB.open(p);const V=l.blocked,Z=l.blocking,z=l.H5,d=l.upgrade,G=l.closed;let B;const c=()=>{B||(B=new XbO(n.result,{closed:G}));return B}; n.addEventListener("upgradeneeded",w=>{try{if(w.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(n.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&w.dataLoss!=="none"&&AD("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:g5(p)});const X=c(),v=new NA(n.transaction);d&&d(X,I=>w.oldVersion=I,v); v.done.catch(I=>{S(I)})}catch(X){S(X)}}); n.addEventListener("success",()=>{const w=n.result;Z&&w.addEventListener("versionchange",()=>{Z(c())}); w.addEventListener("close",()=>{AD("IDB_UNEXPECTEDLY_CLOSED",{dbName:g5(p),dbVersion:w.version});z&&z()}); y(c())}); n.addEventListener("error",()=>{S(n.error)}); V&&n.addEventListener("blocked",()=>{V()})})}; Nbq=function(p){const a=cd(p.playerVars);let l=Number(a.length_seconds);isNaN(l)&&(l=0,Q("Expected valid length seconds in player vars but got NaN"));return{playerVars:a,gj:p.playerVars,z2:l}}; D0=function(p,a,l,y,S){var n=g.o1("yt.logging.errors.log");n?n(p,"WARNING",a,l,y,void 0,S):(n=g.R("ERRORS",[]),n.push([p,"WARNING",a,l,y,void 0,S]),C8("ERRORS",n))}; D1=function(p,a=!1){if(!p.S.length)return!1;const l=p.L;p.L=ZXO(p,a);if(a=l!==p.L)p.S=[],p.sS=0;return a}; yQe=function(p,a){const l={};if(a||!p||!p.kind)return l;if(p.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||p.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!p.adTimeOffset||!p.adTimeOffset.offsetStartMilliseconds)return g.MD(Error("malformed AdPlacementConfig")),l;l.MIDROLL_POS=wu(Dh(Math.round(So(p.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else l.MIDROLL_POS=wu(Dh("0"));return l}; F0M=function(){return{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]}}; QxM=function(p){p=CI(p);return p===null?!1:p[1]==="google"?!0:p[2]==="google"?p[0]==="au"&&p[1]==="com"?!0:p[0]==="uk"&&p[1]==="co"?!0:!1:!1}; kzZ=async function(p){try{await p}catch(a){}}; swf=function(p,a,l){if(p.K){var y=g.B4(p.U,S=>S.id===p.K); return $S(y,l).includes(a)}y=g.B4(p.U,S=>!!S.rG?.isDefault); return y.length>0?$S(y,l).includes(a):$S(p.U,l).includes(a)}; E7r=function(p){p.provider.videoData.youtubeRemarketingUrl&&!p.Bs&&(CW(p,p.provider.videoData.youtubeRemarketingUrl),p.Bs=!0)}; zu=function(){return["metadata_type_ad_placement_config"]}; iu=function(p,a){var l=p.S[a];l&&l.forEach(function(y){try{y()}catch(S){}}); (l=p.L[a])&&l.forEach(function(y){y()}); p.L[a]=[]}; Cdo=function(p,a){if(!p)return NaN;a=Jh(p,a);return a>=0?p.start(a):NaN}; TxA=function(){const p={},a=window.performance;if(a){const l=a.memory;l&&(p.jsTotal=l.totalJSHeapSize,p.jsUsed=l.usedJSHeapSize,p.jsLimit=l.jsHeapSizeLimit,p.msTotal=l.getMediaSourceTotalAllocatedMemory?.()??l.totalMediaSourceSize,p.msLimit=l.getMediaSourceMaximumMemoryCapacity?.()??l.mediaSourceSizeLimit,p.msUsed=l.getMediaSourceCurrentMemoryCapacity?.()??l.usedMediaSourceMemorySize);a.measureAvailableCpuMemory&&(p.cbFree=a.measureAvailableCpuMemory());a.measureUsedCpuMemory&&(p.cbUsed=a.measureUsedCpuMemory())}window.h5vcc?.cVal&& (p.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),p.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),p.cbJs=window.h5vcc.cVal.getValue("Memory.JS"));return p}; g.ak=function(p,a,l=0){p=p.Zy(a);JSON.stringify(p);return p===void 0?l:Number(p)}; v7$=function(p,a,l){if(p.policy.Rc&&b6(a)?.isLocked)return!1;if(l.zX())return!0;if(!l.bu())return!1;const y=b6(a);if(!y||y.info.type===6)return!1;if(p.policy.uQ||p.U?.N(a,y.info.Gm))p.ac=0;else return p.Hi.isSeeking()&&dJ(p),p.ac=p.ac||(0,g.h)(),!1;if(!Gt(p,a,l,y.info))return!1;if(p.r7.S&&y.info.S===0){var S;if(l.eh()==null){var n=gt(a);if(!(S=!n||n.L!==y.info.L)){b:if(S=n.N,n=y.info.N,S.length!==n.length)S=!1;else{for(var V=0;Vn)return p.policy.L&&(a===p.videoTrack?p.Ic=p.Ic||(0,g.h)():p.Rc=p.Rc||(0,g.h)()),p.policy.nH&&p6(a.j,n,!1),!1;a===p.videoTrack?p.Ic=0:p.Rc=0;p.policy.g$&&l===p.Kz?.L&&p.NO&&(l.G5()===0?(p.NO=!1,p.policy.g$=!1):p.Fu=l.G5());a:{n=p.policy.Ba?(0,g.h)():0;V=y.X&&y.info.L.S||void 0;var Z=y.S;y.X&&(Z=As$(p,y,Z)||Z);const z=jO(Z);Z=p.policy.Ba?(0,g.h)():0;l=grr(p,l,z,y.info,V);a.C?.K(y.info,l,Z-n,(0,g.h)()-Z);p.QY=0;if(l===0)p.Hs&&(p.Hs=!1,p.dG=!1),p.Lx=0,l=!0;else{if(l===2||l===5)ex(p,"checked", l,y.info);else{if(l===1){if(!p.Hs){p.Hs=!0;l=!1;break a}if(!p.dG){p.dG=!0;p.Lz.seekTo(p.getCurrentTime(),{qE:"quotaExceeded",P1:!0});l=!1;break a}y.info.n1()?(n=p.policy,n.Bs=Math.floor(n.Bs*.8),n.jl=Math.floor(n.jl*.8)):(n=p.policy,n.iT=Math.floor(n.iT*.8),n.jl=Math.floor(n.jl*.8));p.policy.L?t0(p.j,y.info.L):Ib(p.L,y.info.L)}p.Lz.lW({reattachOnAppend:l})}l=!1}}if(!l)return!1;p.policy.Rc&&y.info.G()?(p.Lz.O().Mc()&&p.Xu("eosl",{ls:y.info.HZ()}),y.isLocked=!0):(a.JJ(y),qXr(p.L,y.info));S&&(a=y.info.L.qk)&& p.Lz.eK(new Xq(a.key,a.type));return!0}; ZF=function(p,a){var l=a.Gm;p.K="updateWithSegmentInfo";p.Gm=l;if(p.startTime!==a.startTime||p.duration!==a.duration)p.startTime=a.startTime+0,p.duration=a.duration,Zrr(p)}; i$r=function(p,a=0,l=-1){if(!p.totalLength||!l)return new DataView(new ArrayBuffer(0));l<0&&(l=p.totalLength-a);p.focus(a);if(!zp(p,a,l)){var y=p.S,S=p.U;p.focus(a+l-1);S=new Uint8Array(p.U+p.L[p.S].length-S);let n=0;for(let V=y;V<=p.S;V++)S.set(p.L[V],n),n+=p.L[V].length;p.L.splice(y,p.S-y+1,S);JW(p);p.focus(a)}y=p.L[p.S];return new DataView(y.buffer,y.byteOffset+a-p.U,l)}; bWE=function(p,a){const l=p.clientMetadata.t9("metadata_type_player_bytes_callback_ref")?.current;if(!l)return null;const y=xRr(p,a);return{Am:c8r(p,a),adPlacementConfig:p.clientMetadata.t9("metadata_type_ad_placement_config"),kQ:y,contentCpn:p.clientMetadata.t9("metadata_type_content_cpn"),inPlayerLayoutId:p.clientMetadata.t9("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:p.clientMetadata.t9("metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:p.clientMetadata.t9("metadata_type_instream_ad_player_overlay_renderer"), playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,QU:void 0,GE:l,LU:p.layoutId,videoLengthSeconds:p.clientMetadata.t9("metadata_type_video_length_seconds")}}; CgA=function(p,a){const l={};g.x3(p.api.O())&&(g.xe(p.api,"addEmbedsConversionTrackingParams",[l]),a=g.Re(a,l));return a}; Vu=function(p){if(p instanceof GX)return p.L;throw Error("");}; NW=function(p,a,l){return y$(p)?new Tb(Math.max(a,p.lM.startTimeMs/1E3),Math.min(l,p.lM.endTimeMs/1E3)):new Tb(a,l)}; sy=function(p){return{itag:r3(p,1),lmt:r3(p,2),xtags:w3(p,3)}}; g.qP=function(p){return Array.prototype.concat.apply([],arguments)}; Uy=function(p){let a=!1,l;return function(){a||(l=p(),a=!0);return l}}; a$f=function(p){const a={},l=p.B.getVideoData(1);a.ASR=wu(()=>l?.U1??null); a.EI=wu(()=>l?.eventId??null); return a}; gto=function(p,a,l){let y="";for(let S=0;S{y.set(n,S)}); return y}; iNF=function(p,a){p=g.Q0(p,{startTimeMs:a},(l,y)=>l.startTimeMs-y.startTimeMs); return p>=0?p:-p-2}; yGr=function(p,a,l=!1,y=!1){var S=[];S.push({offset:0,transform:`translateX(${p.S===-1?20:-20}px)`,opacity:l?"0":"1"});l&&S.push({offset:.5,opacity:"1"});S.push({offset:1,transform:"translateX(0)",opacity:"1"});l=a.animate(S,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});a=a.querySelector("path");S=[];const n={offset:0,d:p.S===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};y&&(n.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");S.push(n);y&&S.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"}); p={offset:1,d:p.S===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};y&&(p.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");S.push(p);a.animate(S,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return l}; Dxr=function(p){var a=p.j.filter(l=>l.isChecked()); a.length!==0&&(a=a[0].getCommand(),p.layoutId?p.OO.executeCommand(a,p.layoutId):g.MD(Error("Missing layoutId for ad feedback dialog.")),p.api.onAdUxClicked("ad-feedback-dialog-confirm-button",p.layoutId),p.publish("a"),p.hide())}; g.fc=function(p,a,l){l=g.Q0(p,a,l);l<0&&g.qY(p,-(l+1),0,a)}; ld=function(p,a){return pa?1:0}; J5=function(p,a){p.L=a;g.eo("yt.gcf.config.coldConfigGroup",p.L||null)}; K0v=function(p,a,l){g.MD(l);p.U&&(l instanceof DOMException&&(a+=`;n.${l.name};m.${l.message}`),p.U(a))}; oE=function(p){const a=p.data.getInt32(p.offset+p.L);p.L+=4;return a}; ejM=function(p,a){if(a.encryptedTokenJarContents&&(p.L[a.encryptedTokenJarContents]=a,typeof a.expirationSeconds==="string")){const l=Number(a.expirationSeconds);setTimeout(()=>{delete p.L[a.encryptedTokenJarContents]},l*1E3); p.S&&g.b7("CONSISTENCY",a.encryptedTokenJarContents,l,void 0,!0)}}; Hr=function(p,a){if(p){p=p.split("&");for(let l=0;l=0?(S=p[l].substring(0,y),n=p[l].substring(y+1)):S=p[l];a(S,n?RK(n):"")}}}; PX=function(p,a,l){for(;p;p=p.parentNode){if(!p.attributes||l&&p.nodeName!==l)continue;const y=p.getAttribute(a);if(y)return y}return""}; E6=function(p){var a=p.Db,l;do{var y=p.tV-p.Pa-p.bM;if(p.bM>=a+(a-262)){Yr.BR(p.window,p.window,a,a,0);p.Kl-=a;p.bM-=a;p.LO-=a;var S=l=p.c6;do{var n=p.head[--S];p.head[S]=n>=a?n-a:0}while(--l);S=l=a;do n=p.ZE[--S],p.ZE[S]=n>=a?n-a:0;while(--l);y+=a}if(p.oX.Mb===0)break;S=p.oX;l=p.window;n=p.bM+p.Pa;var V=S.Mb;V>y&&(V=y);V===0?l=0:(S.Mb-=V,Yr.BR(l,S.input,S.hX,V,n),S.state.wrap===1?S.Ae=Ot(S.Ae,l,V,n):S.state.wrap===2&&(S.Ae=rs(S.Ae,l,V,n)),S.hX+=V,S.ZK+=V,l=V);p.Pa+=l;if(p.Pa+p.q3>=3)for(y=p.bM-p.q3, p.V$=p.window[y],p.V$=(p.V$<=p.provider.videoData.NO;return!!a}; bxr=function(p,a){const l=yc(p.videoTrack).find(y=>y.startTime>=a&&A8$(p,y.startTime,!1)); return l&&l.startTimey)&&Ytv(p,l).then(S=>{S&&(S=S.botguardData)&&g.dP(S,a)},S=>{p.nz()||(S=XN(S),p.Xu("attf",S.details))})}; mZq=function(p,a,l){if(p.forEach&&typeof p.forEach=="function")p.forEach(a,l);else if(g.$m(p)||typeof p==="string")Array.prototype.forEach.call(p,a,l);else{const y=cBf(p),S=sSM(p),n=S.length;for(let V=0;V=a)}; GlA=function(p,a,l){a={cpn:a};p.indexOf("/ibw/")===-1&&(a.ibw=l?String(l):"1369843");return{url:g.Re(p,a),type:"application/x-mpegURL",quality:"auto",itag:"93"}}; j5f=function(p,a,l,y,S){a=Jlr(a,y);a!=null&&(l=v3Z(p,l),S(a,p),KDe(p,l))}; TgZ=function(p,a=!1){var l=EF(p);if(l===1){a=-1;for(l=0;l<7;l++){var y=EF(p);a===-1&&y!==255&&(a=0);a>-1&&(a=a*256+y)}return a}y=128;for(let S=0;S<6&&y>l;S++)l=l*256+EF(p),y*=128;return a?l:l-y}; P3e=function(p){return!!p.uf&&!!p.uf.fairplay&&(p.mT==="("||p.mT==="(h"||p.mT==="A"||p.mT==="MEAC3")||AL&&!!p.uf&&p.mT==="1e"}; yqe=function(p){return p.G3||p.Y9}; W0e=function(p,a,l,y,S=!1){const n=`${"https://youtubei.googleapis.com/youtubei/"}${a.l_.innertubeApiVersion}/player`,V=[{name:"Content-Type",value:"application/json"}];y&&V.push({name:"Authorization",value:`Bearer ${y}`});V.push({name:"User-Agent",value:g.Vo()});g.R("EOM_VISITOR_DATA")?V.push({name:"X-Goog-EOM-Visitor-Id",value:g.R("EOM_VISITOR_DATA")}):(l=l.visitorData||g.R("VISITOR_DATA"))&&V.push({name:"X-Goog-Visitor-Id",value:l});(l=g.R("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&V.push({name:"X-YouTube-Lava-Device-Context", value:l});(a=pm(a.experiments,"debug_sherlog_username"))&&V.push({name:"X-Youtube-Sherlog-Username",value:a});p=hG(JSON.stringify(p));return{url:n,TX:V,postBody:p,RO:S,p6:S}}; J5q=function(p){p.Hs=Math.max(p.Hs,p.X-p.g$);p.w7=Math.max(p.w7,p.G-p.bf);p.QY=0}; Kah=function(p,a,l,y,S,n,V){return[QjE(p,n,y,Z=>{var z=Z.slotId;Z=V(Z);z=d$(a.S.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);const d={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",qO:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xh:new Map,layoutExitNormalTriggers:[new y5(a.L,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],qO:"core",clientMetadata:new L0([new PF(S), new GL(l)]),ao:Z(d),adLayoutLoggingData:S.adLayoutLoggingData}})]}; g6=function(p,a,l){p[a]=l.NP}; HVF=function(p){var a=p.api.O(),l=p.api.getVideoData();l=g.Cs(a)+l.VY;if(!g.x3(a))return l;a={};g.xe(p.api,"addEmbedsConversionTrackingParams",[a]);return g.Re(l,a)}; DZr=function(p,a,l="",y=""){a?(p.S!==l&&(p.L.style.backgroundImage=`url(${l})`,p.S=l),p.updateValue("channelLogoLabel",g.L$("Foto de $CHANNEL_NAME",{CHANNEL_NAME:y})),g.XX(p.api.getRootNode(),"ytp-title-enable-channel-logo")):g.BM(p.api.getRootNode(),"ytp-title-enable-channel-logo");p.api.logVisibility(p.L,a&&p.UO);p.api.logVisibility(p.channelName,a&&p.UO)}; TtZ=function(p,a){g.Ta(p.info.L.info)||p.info.L.info.bC();p.U=a;if(g.Ta(p.info.L.info)){var l=g.N7(p);p=p.info.L.S;var y=NaN,S=NaN;let z=0;for(;dH(l,z);){const d=Ge(l,z);isNaN(y)&&(d.type===1936286840?y=d.data.getUint32(d.dataOffset+8):d.type===1836476516&&(y=g.Z2(d)));if(d.type===1952867444){!y&&p&&(y=oq(p));var n=g.Bu(d);isNaN(S)&&(S=Math.round(a*y)-n);var V=d;n+=S;if(V.data.getUint8(V.dataOffset)){var Z=V.data;V=V.dataOffset+4;Z.setUint32(V,Math.floor(n/4294967296));Z.setUint32(V+4,n&4294967295)}else V.data.setUint32(V.dataOffset+ 4,n)}z=up(d.type)?z+8:z+d.size}return!0}l=new UW(g.N7(p));p=p.X?l:new UW(new DataView(p.info.L.S.buffer));y=cu(p);p=l.pos;l.pos=0;if(rH(l)&&MU(l,231))if(S=mT(l,!0),a=Math.floor(a*1E9/y),Math.ceil(Math.log(a)/Math.log(2)/8)>S)a=!1;else{for(y=S-1;y>=0;y--)l.L.setUint8(l.pos+y,a&255),a>>>=8;l.pos=p;a=!0}else a=!1;return a}; iVh=function(p,a){const l=a.L;var y=p.r7.va;if($4f(p))if(p.N&&p.N.IE(Sh(g.UY(l.info,y)))){if(y=Sh(g.UY(l.info,y)),xV(p,a)){var S=new Al(p.N.dX(y)),n=V=>{try{V.bU()?(p.handleError(V.Zd(),V.eS()),z3(a,V),ZV(V.info)&&dB(p.X,a,l,!0),p.JN()):vG(p.X,V)&&(p.U?.QY(V.info,p.K),p.JN())}catch(Z){V=XN(Z),p.handleError(V.errorCode,V.details,V.severity),p.C0()}}; l.UO=!0;CJ(S)&&(ZC(a,new uF(p.policy,y,S,p.N,n)),xO(p.timing))}}else p.Xu("ombfmt",{})}; YE=function(p,a,l){p.playback.ZR(a,l)}; T9M=function(p){p.D||(p.D=!0,g.XM(p.JI,p))}; qW=function(p){var a;if(!(a=!p.L)){a=p.L;var l=window.getComputedStyle(a);a=l.display==="none"||l.visibility==="hidden"||a.getAttribute("aria-hidden")==="true"}if(a||p.B.isMinimized())p.iM(!1);else if(a=g.Lf(p.L),a.width&&a.height){p.B.gK(p.element,p.L);var y=p.B.h9().getPlayerSize().height;l=g.Lf(p.d7("ytp-promotooltip-container")).height;p.U?p.element.style.top=`${y-l-a.height-12}px`:p.K||(y=p.B.w3().height-l-a.height-12,p.element.style.top=`${y}px`);y=p.d7("ytp-promotooltip-pointer");const S=g.l7(p.L, p.B.getRootNode()),n=Number(p.element.style.left.replace(/[^\d\.]/g,""));p=p.B.isFullscreen()?18:12;y.style.left=`${S.x-n+a.width/2-p}px`;y.style.top=`${l}px`}else p.iM(!1)}; s5$=function(p,a,l){a.J(l,"keyboardserviceglobalkeydown",(y,S)=>{p.U&&y.keyCode===86&&!y.repeat&&p.S!==0&&(S&&(S.Ow=!0),p.N("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); a.J(p.api.getRootNode(),"wheel",y=>{if(!p.C&&p.U&&p.X?.element&&!p.api.getPlayerStateObject().L(2)&&p.S!==0&&u_(p))if(g.XX(p.api.getRootNode(),"ytp-grid-scrolling"),p.j===0&&(p.j=window.innerHeight),p.S===1)p.j!==0&&(p.L+=y.deltaY/p.j,p.L=g.qx(p.L,0,.7),Ga(p),oxO(p,p.G/p.j+p.L>=.7,2));else if(p.S===2){const S=y.deltaY<0,n=p.X?.element.scrollTop===0,V=p.L!==0;S&&n||V&&!S?p.j!==0&&(p.L=Math.max(0,p.L-y.deltaY/p.j),Ga(p),oxO(p,p.G/p.j+Math.abs(p.L)>=.7,1)):p.L!==0&&(p.L=0,Ga(p))}},p,!0); a.J(l,"standardControlsInitialized",()=>{if(!p.X){p.X=new TP$(p.api,p.Bs.bind(p));p.w7&&(p.UO=new NPh(p.api),g.H(p,p.UO),p.UO.element.setAttribute("data-overlay-order","12"),p.api.H9(p.UO.element,4),p.UO.listen("click",p.N,p));g.H(p,p.X);var y=p.api.getRootNode().querySelector(".ytp-chrome-bottom");y&&y.parentNode&&y.parentNode.insertBefore(p.X.element,y.nextSibling);Un(p)}}); a.J(l,"presentingplayerstatechange",()=>{mc(p)}); a.J(l,"autonavvisibility",()=>{mc(p)}); p.api.iX().subscribe("visibilitystatechange",()=>{mc(p)}); QK(p,p.S)}; g.G0=function(p,a,l){return p!==null&&a in p?p[a]:l}; XvM=function(){return{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"rect",Z:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{W:"rect",Z:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{W:"path",Z:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{W:"defs",V:[{W:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},V:[{W:"stop",Z:{offset:"0.3","stop-color":"#E1002D"}},{W:"stop",Z:{offset:"0.9","stop-color":"#E01378"}}]}]}]}}; BCe=async function(p,a,l=p.O().schedule){a.fetchType="onesie";var y=I8o(a,p.getPlayerSize(),p.getVisibilityState());y=new $p(p,y,l);l=await y.fetch();var S={player_response:l};a.loading=!1;p=p.TR.SK;if(y.Xz){for(const [V,Z]of y.Xz.entries()){var n=V;const z=Z;p.L.set(n,z,180);n===a.videoId&&(n=z.Az(),a.Ld=n)}p.X4=y}for(const [V,Z]of y.m1.entries())p.S.set(V,Z,180);g.GI(a,S,!0);if(a.loading||zI(a))return Promise.resolve();p.L.removeAll();p.S.removeAll();a.Ld=[];y={};S="onesie.response";p=0;a.errorCode? (S="auth",y.ec=a.errorCode,y.ed=a.errorDetail,y.es=a.iK||"",p=2):(y.successButUnplayable="1",y.disposed=`${+a.nz()}`,y.afmts=`${+/adaptiveFormats/.test(l)}`,y.cpn=a.clientPlaybackNonce);return Promise.reject(new g.cQ(S,y,p))}; yl=function(p,a=200){return p?a===300?IcZ:UZr:a===300?RcZ:Q5v}; jG=function(p,a){return p.L.get(a)?.buffer.U()||0}; JL=function(p){p.D.textContent=`${JX(p,p.L)}x`}; Qtq=function(p,a,l,y,S,n,V){const Z=a.config.adPlacementConfig,{i8:z,qC:d}=zgh(Z);var {linearAds:G}=a.renderer.linearAdSequenceRenderer||{};if(!G?.length)throw new TypeError("Expected linear ads");const B=[],c={Fa:z,D_:0,B5:B};G=G.map(X=>SYM(p,X,c,l,y,Z,S,d,V)).map((X,v)=>{v=new VC(v,B); return X(v)}); const w=G.map(X=>X.Ej); return{eM:kUZ(l,p,z,w,Z,D5$(a),y,d,n),lR:G.map(X=>X.D3)}}; Du=function(p,a,l){const y=p.L.get(a);y?y.push(l):p.L.set(a,[l])}; Agr=function(p,a){var l=Date.now()/1E3,y=l-p.startTimeSecs;const S=l-p.D;var n=S>=p.policy.hn,V=!1;if(n){let Z=0;!isNaN(a)&&a>p.X&&(Z=a-p.X,p.X=a);Z/S=p.policy.vG&&!p.U;if(!n&&!l&&hjA(p,a))return NaN;l&&(p.U=!0);a:{y=V;l=(0,g.h)()/1E3-(p.vR.Pi()||0)-p.G.L-p.policy.Ye;n=p.S.startTime;l=n+l;if(y){if(isNaN(a)){pD(p,NaN,"n",a);n=NaN;break a}y=a-p.policy.kf;y{RQ("i")})?x2.done||(Rwf(),Se()):RQ("i")}; xB=function(p){if(/opus/.test(p)&&g.TF&&!zX("38")&&!g.VI())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(p);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(p);if(/webm/.test(p)&&!j_$())return!1;p==='audio/mp4; codecs="mp4a.40.2"'&&(p='video/mp4; codecs="avc1.4d401f"');return!!Fe(p)}; n5=function(p,a,l=!1,y=!1,S){var n;let V=p.yr.get(a);if(!V||y)if(S||(S=()=>{n5(p,a,l,y)}),n||(n=()=>{MC(p,a)}),V=V||Ilo(p,a,nBr(p,a),S,n))p.yr.set(a,V),V.create(),p.B.publish("modulecreated",a),l&&g.ZN(p.B,"onApiChange")}; fFf=function(p){const a=p.experiments,l=a.Cz.bind(a);pE=l("html5_use_async_stopVideo");g7F=l("html5_pause_for_async_stopVideo");aG=l("html5_not_reset_media_source");l("html5_listen_for_audio_output_changed")&&($9o=!0);uN=l("html5_not_reset_media_source");YGh=l("html5_not_reset_media_source");la=l("html5_retain_source_buffer_appends_for_debugging");CVE(l("web_watch_pip")||l("web_shorts_pip"));qG$(l("web_player_pip_logging_fix"));l("html5_mediastream_applies_timestamp_offset")&&(LC=!0);const y=g.ak(a, "html5_cobalt_override_quic");y&&JY("QUIC",+(y>0));p.Mc()&&ojM();Error.stackTraceLimit=50;const S=g.ak(a,"html5_idle_rate_limit_ms");S&&Object.defineProperty(window,"requestIdleCallback",{value:n=>window.setTimeout(n,S)}); BXA(p.X);JgM(l("html5_use_ump_request_slicer"));I3v(l("html5_record_now"));l("html5_disable_streaming_xhr")&&(ig=!1);l("html5_byterate_constraints")&&(Uf=!0);l("html5_use_non_active_broadcast_for_post_live")&&(yL=!0);l("html5_enable_encrypted_av1")&&(AL=!0);tdo(g.ak(p.experiments,"html5_sticky_duration_mos"))}; Gr=function(p,a){return HW(p,void 0,a)}; mO=function(p){const a=(0,g.h)();p.data.forEach(l=>{l.expire!(l.expire0&&S))return y;a=[n[0]+a,...n.slice(1).map((V,Z)=>V-n[Z]), S+l-a,S];return a.some(V=>V<0)?(g.G3(p.logger,347111855,`Neg vss scheduled pings ${n} ${S}`),y):a}; g.SJ=function(p,a){switch(a.kind){case "asr":awr(a,p.S);break;default:awr(a,p.L)}}; lwE=function(p){return p.B.O().experiments.Cz("enable_progres_commands_lr_feeds")}; g.eP=function(p,a){if(p.classList)Array.prototype.forEach.call(a,function(y){g.XX(p,y)}); else{var l={};Array.prototype.forEach.call(wn(p),function(y){l[y]=!0}); Array.prototype.forEach.call(a,function(y){l[y]=!0}); a="";for(const y in l)a+=a.length>0?" "+y:y;g.rn(p,a)}}; D6=function(p){return p.Yn()&&p.O().supportsGaplessShorts()}; v0e=function(p){const a=l=>{p.F7.get().Ny(l)}; return Wr(p.slot,p.EO.get())?new yzq({...p,gA:a}):new yu({...p,gA:a})}; l8A=function(p,a){if(!p.nz()){p.S({onInitData:1});if(p.Y.A("html5_eme_loader_sync")&&p.videoData.U&&p.videoData.U.L()){var l=p.K.get(a.initData);a=p.G.get(a.initData);if(!l||!a)return;a=l;l=a.initData;p.G.remove(l);p.K.remove(l)}p.S({initd:a.initData.length,ct:a.contentType});if(p.L.flavor==="widevine")if(p.Bs&&!p.videoData.isLivePlayback)W9(p);else{if(!(p.Y.A("vp9_drm_live")&&p.videoData.isLivePlayback&&a.bC)){p.Bs=!0;l=a.cryptoPeriodIndex;var y=a.L;S0M(a);a.bC||(y&&a.L!==y?p.publish("ctmp","cpsmm", {emsg:y,pssh:a.L}):l&&a.cryptoPeriodIndex!==l&&p.publish("ctmp","cpimm",{emsg:l,pssh:a.cryptoPeriodIndex}));p.publish("widevine_set_need_key_info",a)}}else p.QY(a)}}; Sgh=function(p){if(navigator.mediaSession.setPositionState)if(p.api.A("web_player_media_session_infinity")&&p.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(y){}else{var a=p.api.getProgressState().seekableEnd,l=Math.min(p.api.getCurrentTime(),a);a&&Number.isFinite(l)&&navigator.mediaSession.setPositionState({duration:a,playbackRate:p.api.getPlaybackRate(),position:l})}}; sPh=function(p,a){if(a.Qe)for(var l=0;lnew g.AU(d=>{setTimeout(d,z)}),Z=(z,d,G)=>z.Lo(B=>{if(d<=0||cY(B.xhr)===403)return l3(new BY("Request retried too many times","net.retryexhausted",B.xhr)); const c=Math.pow(2,l-d+1)*G,w=S>0?Math.min(S,c):c;return V(G).then(()=>{n&&n(B,d-1);return Z(pk(p,a),d-1,w)})}); return Z(pk(p,a),l-1,y)}; nqM=function(p){if(!Ar(p.adLayoutMetadata))return!1;p=p.renderingContent;return g.K(p,oZ)||g.K(p,Vv)||g.K(p,nRA)||g.K(p,S3)||g.K(p,nx)?!0:!1}; nE=function(p){const a=p.clientMetadata.t9("metadata_type_player_bytes_callback_ref")?.current;if(!a)return null;const l=p.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref");var y=p.layoutId,S=p.clientMetadata.t9("metadata_type_content_cpn"),n=p.clientMetadata.t9("metadata_type_instream_ad_player_overlay_renderer"),V=p.clientMetadata.t9("metadata_type_player_overlay_layout_renderer"),Z=p.clientMetadata.t9("metadata_type_player_underlay_renderer"),z=p.clientMetadata.t9("metadata_type_ad_placement_config"), d=p.clientMetadata.t9("metadata_type_video_length_seconds");var G=Ci(p.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?p.clientMetadata.t9("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Ci(p.clientMetadata,"metadata_type_layout_enter_ms")&&Ci(p.clientMetadata,"metadata_type_layout_exit_ms")?(p.clientMetadata.t9("metadata_type_layout_exit_ms")-p.clientMetadata.t9("metadata_type_layout_enter_ms"))/1E3:void 0;return{LU:y,contentCpn:S,GE:a,HV:l,instreamAdPlayerOverlayRenderer:n,playerOverlayLayoutRenderer:V, instreamAdPlayerUnderlayRenderer:Z,adPlacementConfig:z,videoLengthSeconds:d,QU:G,inPlayerLayoutId:p.clientMetadata.t9("metadata_type_linked_in_player_layout_id"),inPlayerSlotId:p.clientMetadata.t9("metadata_type_linked_in_player_slot_id")}}; ZpA=function(p,a){v1(p);if(a){var l=g.lR.getState().entities;l=H6(l,"featuredProductsEntity",a);if(l?.productsData){a=[];for(const y of l.productsData)if(y?.identifier&&y.featuredSegments){p.Rc.push(y);for(const S of y?.featuredSegments){l=VKv(S.startTimeSec);if(l===void 0)continue;const n=VKv(S.endTimeSec);a.push(new g.yj(l*1E3,n===void 0?0x7ffffffffffff:n*1E3,{id:y.identifier,namespace:"featured_product"}))}}p.B.OE(a)}}}; awr=function(p,a){g.y_(a,l=>p.equals(l))||a.push(p)}; oRA=function(p,a,l=null,y=p.withCredentials){const S={},n=new URL(g3$(p));l&&(S.Authorization=l);p.sessionIndex&&(S["X-Goog-AuthUser"]=p.sessionIndex,n.searchParams.set("authuser",p.sessionIndex));p.pageId&&(Object.defineProperty(S,"X-Goog-PageId",{value:p.pageId}),n.searchParams.set("pageId",p.pageId));return{url:n.toString(),body:a,IT:1,requestHeaders:S,requestType:"POST",withCredentials:y,timeoutMillis:p.timeoutMillis}}; g.J9=function(p,a){this.width=p;this.height=a}; zse=function(p,a){p.U=!1;p.L&&(p.X=!0,p.L.abort(),p.X=!1);p.j=a;p.S=5;cnh(p);Oj(p)}; lRr=function(p,a,l,y){if(cK.instance!==void 0){if(y=cK.instance,p=[p!==y.U,a!==y.QT,l!==y.L,!1,!1,!1,!1],p.some(S=>S))throw new g.Qm("InnerTubeTransportService is already initialized",p); }else cK.instance=new cK(p,a,l,y)}; yw=function(p,a){a&&ql(p.Lz,new VL(a.video,a.reason));p.L.Rc&&(a=MyF(p.L,"a"),p.Lz.X5(new VL(a.audio,a.reason)))}; IK=function(p,a){try{var l=ND(Q$);l.QY=!0;let S;S=p?new Wa(p.y,p.x+p.width,p.y+p.height,p.x):new Wa(0,0,0,0);const n=Date.now()-cg,V=E$();var y=new di$(n,V,l);y.L=S;y.volume=a;l.D(y)}catch(S){eZ.UD(542,S,void 0,void 0)}}; EV=function(p){return new OK(p)}; mVr=function(p,a,l,y){const S=fO(p.S.get(),"SLOT_TYPE_IN_PLAYER");l=new UB(p.L,l);var n=[new aa(p.L,S)];const V=[new lm(p.L,S),new y5(p.L,a)];n={slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,qO:"core",slotEntryTrigger:l,slotFulfillmentTriggers:n,slotExpirationTriggers:V};return{slotId:S,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:l,slotFulfillmentTriggers:[new aa(p.L,S)],slotExpirationTriggers:[new y5(p.L,a),new lm(p.L,S)],qO:"core",clientMetadata:new L0([new Z1(y(n))])}}; Gtf=function(p,a){return bWE(p,a)}; e8M=function(p){const a=ag(p,"custom_metric_viewable")?"custom_metric_viewable":p;p=VT(Zs,l=>l==a); return ZK[p]}; g.Hl=function(p,a,l){p.L.createIndex(a,l,{unique:!1})}; BOv=function(p,a,l){const y=g.CX(p.provider);Ah(p,y,a,0,l);I5(p,y);v7(p)}; czF=function(p,a=!1){if(p.loader){p.videoData.enableServerStitchedDai&&APh(p.loader);const l=p.getCurrentTime()-p.oo();p.loader.seek(l,{Ks:a}).Lo(()=>{})}else zt(p)}; g.i0=function(p,a,l={}){let y=g.Sy;g.R("ytLoggingEventsDefaultDisabled",!1)&&g.Sy===g.Sy&&(y=null);IX(p,a,y,l)}; rzM=function(p,a,l){if(p.logger){var y=[];for(let S=0;S{a=Number(l);return`${a===1?2:a-1}---`})}; C7=function(p,a){for(const l in p)!isNaN(l)&&a(p,+l,p[l])}; oG=function(p,a,l){l?(l=l instanceof g.Xh?l:wg(p,l),p.L.get(a)?.L()!==tZ(34,l)&&p.L.set(a,new PLv(l,a))):p.L.delete(a)}; b7f=function(p,a,l={}){return xZo(p,a,l)}; zO=function(){}; ph=function(p,a){return p.L.has(a)}; de=function(p,a,l){let y;a<=0?(l=X4(),a="silenciado",y=0):(l=l?{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},y=Math.floor(a),a=y+"volumen");FA(p,l,a,`${y}%`)}; ODF=function(p){const a=ps("_start",p),l=qSM(p),y=!LZq;a&&l&&y&&(RX(XcM,new xiM(Math.round(l-a),p)),LZq=!0)}; b2Z=function(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v){p=fO(p,"SLOT_TYPE_PLAYER_BYTES");y=tZM(a,V,y,S,p,d,G);if(y instanceof N)return y;V=y.clientMetadata.t9("metadata_type_fulfilled_layout")?.layoutId;if(!V)return new N("Invalid adNotify layout");a=b3M(V,a,l,S,n,z,Z,d,B,c,w,X,v);return a instanceof N?a:[y,...a]}; g.Wk=function(p){const a=g.O_.Ed(),l=g.O_.bO();if(!a&&!l||!window.JSON)return null;let y;try{y=a.get(p)}catch(S){}if(typeof y!=="string")try{y=l.get(p)}catch(S){}if(typeof y!=="string")return null;try{y=JSON.parse(y,void 0)}catch(S){}return y}; bx=function(p){for(const [a,l]of p.U.entries()){const y=a;l<(0,g.h)()&&p.U.delete(y)}return p.U}; GO=function(p){return p.B.O().experiments.Cz("html5_ssdai_enable_media_end_cue_range")}; BK=function(p){return()=>new p}; z4=function(p){if(p.B.A("web_player_rtr_ctrls")&&p.B.h9().s9)return 0;const a=p.B.bN(),l=p.B.getVideoData().XX;let y=0;p.B.bN()&&p.B.isEmbedsShortsMode()&&(y=(p.B.h9().getPlayerSize().width-p.B.getVideoContentRect().width)/2);return 12*(l?0:a?2:1)+y}; Bx=function(p){if(!p.A("use_rta_for_player"))if(p.A("fetch_att_independently"))p.zN.JP();else{var a=p.getVideoData().botguardData;a&&g.dP(a,p.Y,p.getVideoData().v8||"")}}; wgM=function(p){const a=mT(p,!0);return ot(Lr(p,a))}; g.rn=function(p,a){typeof p.className=="string"?p.className=a:p.setAttribute&&p.setAttribute("class",a)}; EJM=function(){return{W:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{W:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{W:"path",Z:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; FZe=function(p,a){var l=a?.primary;oG(p,0,l);l=l?$iF(l):void 0;oG(p,2,l);oG(p,1,a?.secondary)}; ERr=function(p,a){p.U.some(l=>l.rG?.getId()===a); p.L=a}; VKv=function(p){if(p!==void 0&&p.trim()!==""&&(p=Math.trunc(Number(p.trim())),!(isNaN(p)||p<0)))return p}; war=function(p){const a=Yce(p);if(a.binP)return a.binP;a.binP=Promise.resolve().then(()=>fetch(p)).then(l=>{if(!l.ok)throw Error(`HTTP${l.statusText}`); return l.arrayBuffer()}); a.binP.then(l=>{a.bin=l},()=>{$JZ(p)}); return a.binP}; CLf=function(p){p.gq?.get().EG(p.slot.clientMetadata.t9("metadata_type_cue_point").identifier)}; Ee=function(p){p.UQ&&(p.UQ.dispose(),p.UQ=null)}; hO=function(p,a,l,y){var S=y[p];if(S)return S;S={};S.pL=y;S.lF=JBA(y[0]);var n=y[1];let V=1;n&&n.constructor===Object&&(S.extensions=n,n=y[++V],typeof n==="function"&&(S.YH=!0,cx??(cx=n),re??(re=y[V+1]),n=y[V+=2]));const Z={};for(;n&&Array.isArray(n)&&n.length&&typeof n[0]==="number"&&n[0]>0;){for(var z=0;z({getId(){return this.id},end:n.end,id:n.getId(),namespace:n.namespace==="ad"?"ad":"",start:n.start,style:n.style,visible:n.visible,markerPositionMs:n.markerPositionMs})))}}; g.qA=function(p,a){typeof p=="number"&&(p=(a?Math.round(p):p)+"px");return p}; NrO=function(p,a,l,y,S){a=new g.yz(g.kE({},[],!1,!!S),a,l);S&&a.updateValue("secondaryIcon",SGe(S));a.setIcon(SGe(y));g.H(p,a);p.wP.Su(a,!0);return a}; U1=function(p){if(p.S)return p.S;const a=ND(ry).L;if(a)switch(a.getName()){case "nis":p.S="n";break;case "gsv":p.S="m"}p.S||(p.S="h");return p.S}; vOh=function(p,a,l,y,S,n,V,Z){p=LJM(p,l,n,V,y,(z,d)=>{var G=z.slotId;z=Z(z);var B=S.contentSupportedRenderer;B?B.textOverlayAdContentRenderer?(B=d$(a.S.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",G),d=pC(a,B,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",S,l,z,sI(a,d,G))):B.enhancedTextOverlayAdContentRenderer?(B=d$(a.S.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",G),d=pC(a,B,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",S,l,z,sI(a,d,G))):B.imageOverlayAdContentRenderer?(B=d$(a.S.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", G),d=sI(a,d,G),d.push(new g9(a.L,45E3,B)),d=pC(a,B,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",S,l,z,d)):d=new s2("InvideoOverlayAdRenderer without appropriate sub renderer"):d=new s2("InvideoOverlayAdRenderer without contentSupportedRenderer");return d}); return p instanceof N?p:[p]}; $8=function(p,a){g.lH.call(this);this.Sl=p;this.D=a;this.X=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.C=new Headers;this.S=null;this.N="GET";this.UO="";this.L=!1;this.G=this.U=this.j=null;this.K=new AbortController}; fbM=function(p,a,l,y,S,n,V){const Z=fO(p.S.get(),a);return Qp(p,Z,a,new h6(p.L,S,["normal"]),[new y5(p.L,l),new lm(p.L,Z),new h6(p.L,y,["error"])],n,V)}; ua$=function(p){return g.AF(p.L,a=>a.info.video?a.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1)}; H3r=function(p,a,l){if(!TtZ(a,l))return a=Av(a.info),a.smst="1",p.loader.handleError("fmt.unparseable",a||{},1),!1;isNaN(p.w7)&&(p.w7=l);return!0}; l$$=function(p,a,l){const y={};nWh(p,y,a,l);KZM(y);y.LACT=wu(()=>Ls().toString()); y.VIS=wu(()=>p.getVisibilityState().toString()); y.SDKV="h.3.0";y.VOL=wu(()=>p.isMuted()?"0":Math.round(p.getVolume()).toString()); y.VED="";return y}; $JZ=function(p){const a=window;a.ywc&&delete a.ywc[p]}; b6=function(p){return eN(p.j)}; wHr=async function(p,a,l){a={context:g.aD(),settingItemId:a,newValue:l};l=g.oU(eso);(p=await g.xu(p,a,l))&&!p.errorMetadata||tHO("SetSettingRequest",p)}; bpM=function(p){return{first:r3(p,1),XZ:r3(p,2)}}; ir=function(p){const a={},l=g.q_h(p.xhr);Object.keys(l).forEach(y=>{a[y]=l[y]}); return a}; TQM=function(p,a,l){const y=a.bA;a.bA=l;wr(p,a)&&(l=p.app.zm(),y.Tp===p.U&&$D(p),l.removeCueRange(y.Tp),l.addCueRange(a.bA.Tp))}; Px=function(p,a){let l=p.D[a.sessionId];!l&&p.j&&(l=p.j,p.j=null,l.sessionId=a.sessionId,p.D[a.sessionId]=l);return l}; g.pW=async function(p){return g.lz(IwF(),p)}; rN=function(p,a){p.K=a;p.options.U2O?.(a)}; RsF=function(p){const a=p.S;a&&a.Gm===-1&&(p=p.j.JD())&&af(p.info)&&(p=p.info.Gm,a.K="updateLastSliceRequested",a.Gm=p)}; uLh=function(){const p=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; IFM=function(p,a,l,y){return new g$(p.type,p.L,p.range,"reslice"+p.K,p.Gm,p.startTime,p.duration,a,l,y,p.Nb,p.clipId)}; LE=function(p){p.iM(!1);p.S&&p.B.logVisibility(p.element,p.yQ)}; GS=function(p){return p?function(){try{return p.apply(this,arguments)}catch(a){g.MD(a)}}:p}; tA=function(p){let a=p.S.pop(),l=p.S.pop(),y=p.pos-l-a;for(;a--;){const S=a?128:0;p.view.setUint8(l++,y&127|S);y>>=7}}; vc=function(p){return p.zo&&p.getVideoData().mutedAutoplay}; Jp=function(){return tle()||XG()||lY()?!0:g.R("EOM_VISITOR_DATA")?!1:!0}; Opf=function(p){const a=g.m5("html5-video-player");a&&g.OW(a,"ytp-ad-display-override",p)}; gd=function(p){return p.isPlaying()&&!p.L(16)&&!p.L(32)}; kt$=function(p,a){if(p.B.O().Ws){var l=g.HB(p.B,"Silenciar","m");const y=g.HB(p.B,"Activar sonido","m");l=a?y:l;p.B.O().A("player_tooltip_data_title_killswitch")?p.updateValue("title",l):p.update({"tooltip-title":l,"aria-label":l});p.update({"data-title-no-tooltip":a?"Activar sonido":"Silenciar"});p.tooltip.yT()}}; MKo=function(p,a){return a.priority-p.priority}; mie=function(p,a){const l=document.createElement("img");p.crossOrigin&&(l.crossOrigin=p.crossOrigin);l.src=p.levels[a.lz].G9(a.C3);l.onload=()=>{var y=a.lz,S=a.C3;p.L!==null&&(p.L.onload=null,p.L=null);y=p.levels[y];y.loaded.add(S);SFe(p);const n=y.columns*y.rows;S*=n;y=Math.min(S+n-1,y.X()-1);S=[S,y];p.publish("l",S[0],S[1])}; return l}; sA=function(){return{W:"svg",Z:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{W:"path",Z:{d:"M0 0h48v48H0z",fill:"none"}},{W:"path",Z:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}}; VfZ=function(p,a){jP(p,1,a.hl);jP(p,12,a.deviceMake);jP(p,13,a.deviceModel);gD(p,16,a.clientName);jP(p,17,a.clientVersion);jP(p,18,a.osName);jP(p,19,a.osVersion)}; x8=function(p,a="fmt.noneavailable"){var l=p.g7.X;l.G=!1;l.S=!0;p.d$("qoe.restart",{e:a,detail:"hdr"});p.Lz.UU(!0)}; tKM=function(p,a){Q(`${a}: undefined adapter`,p.slot,p.layout)}; FE=function(p,a){p.msg=Tx[a];return a}; gU=function(p,a,l){for(const y of l)if(!p.uN.RD.get(y.triggerType))throw new s2(`No trigger adapter registered for ${FFf.get(a)} trigger of type: ${y.triggerType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; FG=function(p,a,l){return new g.yj(p*1E3,a*1E3,{priority:9,namespace:l})}; Kc=function(p){p.C0();p.Hi.isSeeking();p.G&&L7Z(p.G,p.videoTrack.L);dJ(p);return DGr(p.Hi)}; oX=function(p){return p==="gelDebuggingEvent"}; ED=function(p,a,l){const y=p.api.getCurrentTime()*1E3>>=1)if(a&1&&p.Dl[l*2]!==0)return 0;if(p.Dl[18]!==0||p.Dl[20]!==0||p.Dl[26]!==0)return 1;for(l=32;l<256;l++)if(p.Dl[l*2]!==0)return 1;return 0}; MP=function(p){p=p.U.Pi();return p>0?p:1}; vx=function(p,a,l){const y=p.videoData.S;var S=p.videoData.j,n=p.g7.A("html5_disable_codec_fallback_for_drm")&&p.videoData.FF();D6(p.Lz.getVideoData())&&p.g7.A("html5_gapless_fallback_on_qoe_restart")&&YCM(p.Lz,"pe");if((a==="progressive.net.retryexhausted"||a==="fmt.unplayable"||a==="fmt.decode")&&!p.Lz.XP.X&&y&&y.itag==="22")return p.Lz.XP.X=!0,p.d$("qoe.restart",{reason:"fmt.unplayable.22"}),p.Lz.Um(),!0;var V=!1;if(p.videoData.isExternallyHostedPodcast){if(V=p.videoData.N4)l.mimeType=V.type,p.Xu("3pp", {url:V.url});l.ns="3pp";p.Lz.f1(a,1,"VIDEO_UNAVAILABLE",ki((new g.cQ(a,l,1)).details));return!0}var Z=p.U3+3E4<(0,g.h)()||p.L.isActive();if(p.g7.A("html5_empty_src")&&p.videoData.isAd()&&a==="fmt.unplayable"&&/Empty src/.test(`${l.msg}`))return l.origin="emptysrc",p.d$("auth",l),!0;Z||tcZ(p.Lz.iX())||(l.nonfg="paused",Z=!0,p.Lz.pauseVideo());a!=="fmt.decode"&&a!=="fmt.unplayable"||!S?.D()||(m4E(p.g7.X,S.mT),l.acfallexp=S.mT,V=Z=!0);!Z&&p.U>0&&(p.L.start(),Z=!0,l.delayed="1",--p.U);S=p.Lz.loader;Z|| !y?.L()&&!y?.U()||n||(m4E(p.g7.X,y.mT),V=Z=!0,l.cfallexp=y.mT);if(!Z)return Vsr(p,l);n=!1;p.X?p.U3=(0,g.h)():n=p.X=!0;Z=p.videoData;if(Z.Tm){Z=Z.Tm.X();var z=Date.now()/1E3+1800;Z=Z=2||(a.Lh(a.ZV(),l),V1(a.z4())&&(eK(p.v1,p.slot,a.ZV(),l),p.uC=void 0))}; KE=function(p,a,l,y){l&&(p.W9(),ZB(p));l=p.zm();l.ol(a);const S=p.getVideoData(),n={};n.video_id=S.videoId;n.adformat=S.adFormat;S.isLivePlayback||(n.start=l.getCurrentTime(),n.resume="1");S.isLivePlayback&&TJ(S)&&g.ei(p.Y)&&(n.live_utc_start=l.By(),n.resume="1");S.Bs&&(n.vvt=S.Bs);S.D&&(n.vss_credentials_token=S.D,n.vss_credentials_token_type=S.kT);S.oauthToken&&(n.oauth_token=S.oauthToken);n.autoplay=1;n.reload_count=S.dG+1;n.reload_reason=a;S.vN&&(n.unplugged_partner_opt_out=S.vN);S.Z1&&(n.ypc_is_premiere_trailer= S.Z1);S.playerParams&&(n.player_params=S.playerParams);p.A("html5_forward_click_tracking_params_on_reload")&&S.jl&&(n.itct=S.jl);p.loadVideoByPlayerVars(n,void 0,!0,void 0,void 0,y);a==="signature"&&p.Yy&&VO(p)}; ipv=function(p){return GK.includes("es")?p?BN():{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:p?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{W:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; yc=function(p){let a=[];const l=gt(p);l&&a.push(l);a=g.qP(a,p.j.dX());for(const y of p.U)for(const S of y.info.Yv)y.GX&&(a=g.B4(a,n=>!CYZ(n,S))),(af(S)||S.UO())&&a.push(S); p.S&&!zUO(p.S,g.V$(a),p.S.L.U())&&a.push(p.S);return a}; BpA=function(p){return{videoId:w3(p,1),formatId:$F(p,2,sy),debugInfo:ma(p,3,TOM)}}; XZ=function(p){return`${Math.round(p.width)}x${Math.round(p.height)}`}; zWe=function(p){const a=QH(),l=ND(Q$);p&&!a.j&&(a.j=!0,l.VY=!0,l.K&&l.fail("w",!0))}; uO=function(p,a,l){return l&2?!0:l&32&&!(l&4096)?(a[rD]=l|2,p.L=tF,!0):!1}; tG=function(p,a=!1){if(!p.mediaElement||!p.videoData.U)return!1;var l=HfF(p,a),y=p.mediaElement.QY();let S=!1;y&&y.equals(l)||(Pie(p,l),S=!0);p.playerState.L(2)||NOh(p.nt,a);a:{a=S;if(Yc(p.videoData)){if(!p.videoData.FF())break a}else if(!g.Hv(p.videoData))break a;if(p.mediaElement)if((l=p.videoData.X)&&p.mediaElement.X()){y=p.mediaElement.Wa();if(p.UQ)if(y!==p.UQ.element)Ee(p);else if(a&&l.flavor==="fairplay"&&!Ca())Ee(p);else break a;if(p.A("html5_report_error_for_unsupported_tvos_widevine")&&Ca()&& l.flavor==="widevine")p.f1("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{p.UQ=new ssr(y,p.videoData,p.Y,p.mediaElement);p.UQ.subscribe("licenseerror",p.hx,p);p.UQ.subscribe("qualitychange",p.qo,p);p.UQ.subscribe("heartbeatparams",p.PS,p);p.UQ.subscribe("keystatuseschange",p.rX,p);p.UQ.subscribe("ctmp",p.Xu,p);for(const n of p.Xp.keys)a=p.Xp.get(n),p.UQ.eK(a);p.A("html5_eme_loader_sync")||p.Xp.removeAll()}}else p.f1("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", "trg.updatedrm")}return S}; S6$=function(p,a,l,y,S){if(S&&y){var n=y.S5,V=S.MR(n);n.event==="predictStart"&&(p.Sl=a);p.Xu("sdai",{onqevt:n.event,sq:a,mt:l,gab:V,cst:n.startSecs,cueid:p.policy.a_&&(V||n.event==="start")?n.identifier:void 0},!0);V?n.event!=="predictStart"?(n.event==="start"&&p.Sl===a-1&&p.Xu("sdai",{gabonstart:a}),tke(p,a,l,y,S)):p.policy.r$?o_(p,3,"predict"):(a+=Math.max(Math.ceil(-n.L/5E3),1),n=Math.floor(l-n.L/1E3),p.policy.S?p.X=n:p.j=a,p.Xu("sdai",{onpred:l,estsq:a,estmt:n.toFixed(3)}),AE(p.loader,n,n,a), p.C=Date.now(),o_(p,3,"predict"),S.aE(y.S5)):p.S===1?p.U?.DP(l)?(AE(p.loader,l,l,a),o_(p,4,"sk2head")):o_(p,5,"nogab"):n.event==="predictStart"?p.policy.S&&p.X>0?(l=Math.floor(l-n.L/1E3),p.X!==l&&p.Xu("sdai",{updateSt:l,old:p.X}),p.X=l):p.j>0&&(l=a+Math.max(Math.ceil(-n.L/5E3),1),p.j!==l&&(p.Xu("sdai",{updateSt:l,old:p.j}),p.j=l)):p.policy.r$&&p.S===3&&tke(p,a,l,y,S)}else p.Xu("sdai",{nulldec:1,sq:a,mt:l.toFixed(3),evt:y?.S5?.event||"none"})}; QUE=function(){g.Oc(()=>{const p=hJ();requestAnimationFrame(()=>{setTimeout(()=>{p===hJ()&&KU("ftl",void 0,void 0)},0)})})()}; UiM=function(p){const a=fB$();a&&document.removeEventListener(a,p,!1)}; x8o=function(p){for(const a of p.S)a.detach(),g.Er(a);p.S=[]}; g.Wl=function(p,a){return cYf(p,a)}; Qsr=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; hsM=function(p){g.ix(p.DR);LV(p)||(p.DR=g.Bg(()=>LV(p),100))}; RYM=function(p,a,l){const y=new Azr(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,p.j.bind(p));y.lT(p.X);y.init(Mx("survey-question-multi-select"),a,l);p.api.O().A("supports_multi_step_on_desktop")?p.U=y:p.questions.push(y);g.H(p,y)}; wBF=async function(p,a){a={context:g.aD(),settingItemIds:a};const l=g.oU(gRq);p=await g.xu(p,a,l);if(!p||p.errorMetadata)tHO("GetSettingValuesRequest",p);else return p.settingValues}; wOE=function(p,a){const l=[],y=mv(a.type,"auto",a.itag);l.push(new Ygo(y,a.url));return Ml(p.X,l,!1,!0)}; eJ=function(p,a,l){if(a&2)throw Error();const y=Xg(a);let S=$9(p,l,y),n=S===wW?7:S[rD]|0,V=LU(n,a);if(2&V||BT(V)||16&V)S=[...S],n=0,V=XV(V,a),wD(p,a,l,S,y);V&=-13;V!==n&&(S[rD]=V);return S}; w2h=function(p){function a(){for(;y=p.stack.pop();)try{if(!y.async&&S===1)return S=0,p.stack.push(y),Promise.resolve().then(a);if(y.dispose){var n=y.dispose.call(y.value);if(y.async)return S|=2,Promise.resolve(n).then(a,function(V){l(V);return a()})}else S|=1}catch(V){l(V)}if(S===1)return p.hasError?Promise.reject(p.error):Promise.resolve(); if(p.hasError)throw p.error;} function l(n){p.error=p.hasError?new SuppressedError(n,p.error,"An error was suppressed during disposal."):n;p.hasError=!0} var y,S=0;a()}; Od=function(p,a){return(p=p.L.get(a))?p:new Map}; wYE=function(p,a){return p.K?new Wa(Math.max(a.top+p.K.top,a.top),Math.min(a.left+p.K.right,a.right),Math.min(a.top+p.K.bottom,a.bottom),Math.max(a.left+p.K.left,a.left)):a.clone()}; qgM=function(p,a){p.array=p.array.filter(l=>!a.has(l))}; Mte=function(p,a,l){p=p.S;var y=g.Q0(p,{Dy:a},(S,n)=>S.Dy-n.Dy); y=y<0?(y+2)*-1:y;if(y>=0)for(let S=y;S<=y+1&&S=n.Dy-l&&a<=n.w$+l)return n}}; ba=function(p,a){return vr(p,a.e5,a.slotType)?!0:!1}; Jzr=function(p,a){var l=`${a(p.error.message)}:${a(p.error.stack)}`.substring(0,2048);a=l.length+1;l=mg(l);const y=new Uint8Array(4+l.length);y.set([42,a&127|128,a>>7,p.error.code]);y.set(l,4);return y}; pKv=function(p){p.menuItem||(p.menuItem=new fwo(p.api),g.H(p,p.menuItem),p.menuItem.J9(p.L))}; $OE=function(){let p,a;return{IS:new Bk((l,y)=>{p=l;a=y}), resolve:p,reject:a}}; KTf=function(p){return p.mT==="("||p.mT==="(h"||p.mT==="H"||AL&&p.mT==="1e"}; Gje=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; yEh=function(p,a){if(a){var l=a.background;l&&g.K(l,aGe)&&(l=(l=g.K(l,aGe).image)&&mq(l)||"",g.o4(l)?g.tX(Error("Found ThumbnailDetails without valid image URL")):g.VB(p.Rc,"backgroundImage",`url(${l})`));if(a.durationMilliseconds==null||a.durationMilliseconds===void 0||a.durationMilliseconds===0)p=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+`${JSON.stringify(a)}`),g.MD(p);else{p.j=g.eB();p.L=new IG(p.api,a.durationMilliseconds);g.H(p,p.L);if(p.L&&a.instreamAdPlayerOverlay&& g.K(a.instreamAdPlayerOverlay,RG))try{var y=new lGM(p.api,p.layoutId,p.interactionLoggingClientData,p.OO,p.L);y.lT(p.playerOverlay);y.init(Mx("survey-player-overlay"),g.K(a.instreamAdPlayerOverlay,RG),p.macros);p.U=y;g.H(p,y);p.G()}catch(S){y=Error("ISAPOR had an error when initializing. Error: "+`${S} SurveyAdQuestionCommon: ${JSON.stringify(a)}`),g.MD(y)}else y=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+`${JSON.stringify(a)}`),g.MD(y);p.L&&a.durationMilliseconds&&a.durationMilliseconds> 0?(a=new ua(p.api,p.L),a.lT(p.playerOverlay),g.H(p,a)):(p=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+`${JSON.stringify(a)}`),g.MD(p))}}else g.MD(Error("addCommonComponents() needs to be called before starting countdown."))}; hjA=function(p,a){return isNaN(a)?!0:isNaN(p.L)?!1:a>6|192:((S&64512)===55296&&y+1>18|240,a[l++]=S>>12&63|128):a[l++]=S>>12|224,a[l++]=S>>6&63|128),a[l++]=S&63|128)}return l}; It=function(p,a,l,y,S){S||p.api.O().S?a.style.width=`${l}px`:g.VB(a,"transform",`scalex(${y?l/y:0})`)}; eZA=function(p,a,l,y){if(g.pA(p)&&!Array.isArray(p)){a="playlist list listType index startSeconds suggestedQuality".split(" ");l={};for(y=0;y=1080||a.osid))return qN;let y=g.ak(p.Y.experiments,"html5_autonav_quality_cap");const S=g.ak(p.Y.experiments,"html5_autonav_cap_idle_secs");return y&&a.isAutonav&&Ls()/1E3>S?(l&&(y=X9$(p,l,y)),new fa(0,y,!1,"e")):qN}; g.rM=function(p=0){return(p=PEA(p))?new eQ({veType:p,youtubeData:void 0,jspbYoutubeData:void 0}):null}; NOh=function(p,a=!1){p.X||!(p.U>0)||p.mediaElement&&p.mediaElement.getCurrentTime()>0||(a={qE:"seektimeline_resumeTime",Ks:a},p.videoData.UO||(a.seekSource=15),p.seekTo(p.U,a))}; V1=function(p){if(p.currentState!==2)return!1;p.currentState=3;return!0}; ra=function(p){if(p.G){var a=p.api.getProgressState(),l=p.api.getVideoData();if(!(l&&l.enableServerStitchedDai&&l.s1)||isFinite(a.current)){l=p.api.getVideoData()?.Ic()&&a.airingStart&&a.airingEnd?NW(p,a.airingStart,a.airingEnd):p.api.getPresentingPlayerType()===2?(l=p.api.getVideoData()?.getPlayerResponse()?.playerConfig?.webPlayerConfig?.skippableAdProgressBarDuration)?NW(p,a.seekableStart,l/1E3):NW(p,a.seekableStart,a.seekableEnd):NW(p,a.seekableStart,a.seekableEnd);var y=kS(l,a.loaded,0);a=kS(l, a.current,0);var S=p.U.S!==l.S||p.U.L!==l.L;p.U=l;tD(p,a,y);S&&Kyv(p);hLE(p);a=48;l=p.api.O();y=g.ak(p.api.O().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");y=p.api.A("delhi_modern_web_player_compact_controls")||y>0&&p.api.getPlayerSize().width<=y;p.api.A("delhi_modern_web_player")?a=p.api.getPlayerSize().width<=528?y?56:64:p.D?y?72:96:y?56:72:p.D?a=54:g.x3(l)&&!l.S&&(a=40);p.jl=a}}}; Sg=function(p,a,l){p.L==0&&(p===l&&(a=3,l=new TypeError("Promise cannot resolve to itself")),p.L=1,L7(l,p.c5,p.Jd,p)||(p.G=l,p.L=a,p.U=null,T9M(p),a!=3||l instanceof he||i8$(p,l)))}; ZHq=function(p,a){for(const [l,y]of p.Ag.entries())if(p=l,a===y.cueRangeId)return p;return""}; oVh=function(p,a){g.K0(a,S=>S.depth>=0); const l=j1(a,(S,n)=>Math.max(S,n.depth),-1),y=xfr(l+2); y[0]=p;g.Ir(a,S=>y[S.depth+1]=S.L); return y}; ok=function(p,a,l,y,S,n,V){const Z={};a&&(Z.V8=a);if(!p)return Z;Z.playbackCookie=l?.playbackCookie;S&&(Z.mu=S);Z.zY=[];Z.a8=[];if(V?.size)for(const z of V.values())Z.a8.push(z);if(p.sabrContextUpdates.size>0)for(const z of p.sabrContextUpdates.values())duF(Z,z,y);Yc(p)&&n&&duF(Z,n,y);a=p.O().L;Z.clientInfo={clientName:zVf[a.c.toUpperCase()]||0};a.cbrand&&(Z.clientInfo.deviceMake=a.cbrand);a.cmodel&&(Z.clientInfo.deviceModel=a.cmodel);a.cver&&(Z.clientInfo.clientVersion=a.cver);a.cos&&(Z.clientInfo.osName= a.cos);a.cosver&&(Z.clientInfo.osVersion=a.cosver);a=p.O();a.A("html5_sabr_enable_server_xtag_selection")&&a.ZN&&(Z.clientInfo.hl=a.ZN);p.rp&&(Z.rp=p.rp);return Z}; g.R2=function(p){if(p instanceof g.AU)return p;const a=new g.AU(g.a$);Sg(a,2,p);return a}; xGo=function(p,a){return Hi(p,a)||Math.abs(p.D-a.X)<=1E-6||p.Gm+1===a.Gm&&a.S===0&&p.j?!0:!1}; g.dT=function(p){var a=p.O();const l=g.m0(a);var y=a.Wy;g.UO(a)&&(y&&(l.thirdParty={...l.thirdParty,embedUrl:y}),Qe(l,p));(y=p.jl)?l.clickTracking={clickTrackingParams:y}:g.UO(p.O())&&g.R("EVENT_ID")?l.clickTracking={clickTrackingParams:g.R("EVENT_ID")}:a.A("html5_log_missing_itct")&&(y=new g.Qm("Missing ITCT in InnerTubeContext",{isAd:p.isAd(),Oxm:a.getWebPlayerContextConfig()?.contextId}),g.MD(y));y=l.client||{};var S="EMBED";const n=az(p);n==="leanback"?S="WATCH":a.A("gvi_channel_client_screen")&& n==="profilepage"?S="CHANNEL":p.Bo?S="LIVE_MONITOR":n==="detailpage"?S="WATCH_FULL_SCREEN":n==="adunit"?S="ADUNIT":n==="sponsorshipsoffer"&&(S="UNKNOWN");y.clientScreen=S;if(a=p.kidsAppInfo)y.kidsAppInfo=JSON.parse(a);(S=p.rR)&&!a&&(y.kidsAppInfo={contentSettings:{ageUpMode:ddr[S]}});if(a=p.Cd)y.unpluggedAppInfo={enableFilterMode:!0};(S=p.unpluggedFilterModeType)&&!a&&(y.unpluggedAppInfo={filterModeType:GRr[S]});if(a=p.tP)y.unpluggedLocationInfo=a;l.client=y;y=l.request||{};p.Dd&&(y.isPrefetch=!0); if(a=p.mdxEnvironment)y.mdxEnvironment=a;if(a=p.mdxControlMode)y.mdxControlMode=BNq[a];l.request=y;y=l.user||{};if(a=p.Bs)y.credentialTransferTokens=[{token:a,scope:"VIDEO"}];if(a=p.ZN)y.delegatePurchases={oauthToken:a},y.kidsParent={oauthToken:a};l.user=y;if(y=p.contextParams)l.activePlayers=[{playerContextParams:y}];if(p=p.clientScreenNonce)l.clientScreenNonce=p;return l}; g.jd=function(){return{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}}; cEv=function(p,a,l=0,y){y=new Vh("",y,!1);y.duration=l||0;for(const S of p)if(p=ZT(S,a,y.duration),l=zA(S.url,S.sp,S.s))if(p.streamType==="FORMAT_STREAM_TYPE_OTF")db(y,new uDF(l,p));else{const n=oK(S.init),V=oK(S.index);db(y,new GA(l,p,n,V))}y.isOtf=!0;return y}; cMe=function(p){g.yo(p.L,a=>{a.U>1E5||++a.U})}; gg=function(p){let a=p[ZJ];if(a!=null)return a;const l=hO(V9,p$,SK,p);a=l.YH?(y,S)=>cx(y,S,l):(y,S)=>{for(;DM(S)&&S.S!=4;){var n=S.U,V=l[n]; if(V==null){var Z=l.extensions;Z&&(Z=Z[n])&&(Z=xtM(Z),Z!=null&&(V=l[n]=Z))}if(V==null||!V(S,y,n)){Z=S;V=Z.j;tm(Z);if(Z.nI)var z=void 0;else z=Z.L.L-V,Z.L.L=V,z=Aqe(Z.L,z);V=void 0;Z=y;z&&((V=Z[Ok]??(Z[Ok]=new on))[n]??(V[n]=[])).push(z)}}if(y=k9(y))y.FC=l.pL[rEr];return!0}; p[ZJ]=a;p[rEr]=Hve.bind(p);return a}; D5=function(p,a){a={rst4disc:a,cd:p.K.toFixed(3),sq:p.Ws?p.Ws.Gm:-1};p.U=NaN;p.K=0;p.ac=-1;p.Ws=null;p.Ic=NaN;p.Rc=NaN;p.Hs=null;p.loader.Xu("mdstm",a)}; mZ=function(p){return $O(p.j,tZ(34,p.aX.P9))}; zp=function(p,a,l){p.isFocused(a);return a-p.U+l<=p.L[p.S].length}; wKo=function(p){if(p.B.A("delhi_modern_web_player_icons"))return p=GK.includes("es")?jw(p)&&p.isEnabled()?{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{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"}}]}:BN():jw(p)&&p.isEnabled()?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{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"}}]}:q9e()}; zs=function(p=document){p=p.querySelector?.("script[nonce]");return p==null?"":p.nonce||p.getAttribute("nonce")||""}; $dh=function(p,a,l=!0,y,S){const n=p.GR({playerType:1});let V=0;n&&n.getStreamTimeOffset()&&!n.oo()&&(V=n.getStreamTimeOffset());Ex(p,a-V,l,y,1,S)}; PCh=function(p,a){p.S=a}; jx=function(p){const a=p.j.JD();return a?a.info:gt(p)}; eY=function(p){this.L=p||g.mm.document||document}; RMq=function(p,a,l){const y=JqE();(l=g.c2(l))&&delete y[l];a&&(y[p]=a)}; LCM=function(p,a){return ES(p,a)-1}; XKh=function(p){return g.H5?"webkit"+p:p.toLowerCase()}; XG=function(){return(Tj||OD)&&g.IW("applewebkit")&&!g.IW("version")&&(!g.IW("safari")||g.IW("gsa/"))}; xdO=function(p){return Nh(p,a=>"FORMAT_STREAM_TYPE_OTF"===a.stream_type)?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; FCf=function(p){if(p.Y.storeUserVolume){p=g.Wk("yt-player-volume")||{};const a=p.volume;p={volume:isNaN(a)?100:g.qx(Math.floor(a),0,100),muted:!!p.muted}}else p={volume:100,muted:p.Y.mute};return p}; k8=function(p,a,l){p.L[a]||(p.Xu("huli-sdai-err",l),p.L[a]=!0)}; E3=function(p,a,...l){try{return p.S.E9[a].apply(p.S.E9,l)}catch(y){EVq(y,S=>{S.method=a})}}; $e$=function(p){var a=p.policy.Sl;const l=W3(p.Sl)/a-H3(p,p.S.info);a=g.Zz(p.j,function(y){return H3(this,y){}))){const l=p.send(new ArrayBuffer(0)); l&&(a=String.fromCharCode(...(new Uint8Array(l))));p.close()}return a}; flo=function(p,a){var l=p[a];if(l)return l;if(l=p.extensions)if(l=l[a]){l=XXO(l);var y=l[0].NP;if(l=l[1]){const S=EZo(l),n=hO(AO,g6,Y2,l).lF;l=p.YH?re(n,S):(V,Z,z)=>y(V,Z,z,n,S)}else l=y; return p[a]=l}}; wb=function(p,a){if(dp(a.get(),"html5_ssap_pass_transition_reason"))switch(p){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return GSM(p),"abandoned";case 3:case 1:return GSM(p),"error";default:bF(p,"unexpected transition reason")}else switch(p){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Q("getExitReason: unexpected reason",void 0,void 0,{reason:p}),"error";default:bF(p,"unexpected transition reason")}}; sC=function(p,a,l,y,S,n,V){a=l-a;S?(S instanceof g.Q6&&(S.type==="QUOTA_EXCEEDED"||S.type==="QUOTA_MAYBE_EXCEEDED")&&AD("QUOTA_EXCEEDED",{dbName:g5(p.L.name),objectStoreNames:n,transactionCount:p.transactionCount,transactionMode:V.mode}),S instanceof g.Q6&&S.type==="UNKNOWN_ABORT"&&(l-=p.U,l<0&&l>=2147483648&&(l=0),AD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:n,transactionDuration:a,transactionCount:p.transactionCount,dbDuration:l}),p.S=!0),q0q(p,!1,y,n,a,V.tag),wE(S)):q0q(p,!0,y,n,a,V.tag)}; vVh=function(p){return function(){const a=new CCM;um(this.DI,a,hO(AO,g6,Y2,p));vZ(a,a.L.end());const l=new Uint8Array(a.S),y=a.U,S=y.length;let n=0;for(let V=0;V{p.S?.removeEventListener(a,p.j)}),p.S=void 0)}; g.Mn=function(p){if(p.simpleText)return p=document.createTextNode(p.simpleText),p;const a=[];if(p.runs)for(let Z=0;Z=0;y--)if(p.L[y].width>0){tb(p.L[y],0);const S=Math.floor(p.L[y].width);p.L[y].width=S;Zb(p.L[y],`${S}px`);break}p.L[l].width=0;Zb(p.L[l],"0")}else l===p.L.length-1?(y=Math.floor(p.L[l].width+a),p.L[l].width=y,Zb(p.L[l],`${y}px`)):(a=p.L[l].width+a,y=Math.round(a),a-=y,p.L[l].width=y,Zb(p.L[l],`${y}px`));l=0;if(p.j.length===p.L.length)for(a= 0;a{kJ()&&KU("aa",void 0,void 0);Mh();mn();q_(!1);p.cttAuthInfo&&(AJ().cttAuthInfo=p.cttAuthInfo);C8("TIMING_AFT_KEYS",[]);p.IIm?g.ew({loadType:"hot"}):g.ew({loadType:"warm"});C8("TIMING_ACTION","");delete g.R("TIMING_INFO",{}).yt_lt;g.Oc(Yu)(p.startTime,void 0)})()}; jzE=function(p){switch(p){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}}; eV$=function(p,a){let l=0,y=!1;const S=p.L.length;let n=p.U.L*1E3;n===0&&(n=p.api.getProgressState().seekableEnd*1E3);if(n>0&&p.G>0){const z=p.G-Sm(p)*p.Bs,d=p.Fu===0?3:z*p.Fu;for(var V of p.L)V.width=0;for(;l1);const B=(n===0?0:G/n*z)+p.L[l].width;if(B>d)p.L[l].width=B;else{p.L[l].width=0;V=p;var Z=l;const c=V.L[Z-1];c!==void 0&&c.width>0?c.width+= B:Zp.Fu&&(p.Fu=G/n),y=!0)}l++}}return y}; jAr=function(p,a){p.mO.VY()&&(p.N=a.reason==="m"||a.reason==="l"?!0:!1);a.reason==="m"?a.isLocked()&&pzO(p,a.L):kcO(p,a)?YX(p,a.S,a.L):p.videoInfos=p.D;p.S=a}; bR=function(p,a){for(const l of a)if(a=p.N.get(l.triggerId))a.Co(l),p.N.delete(l.triggerId)}; bHZ=function(p){p=p.adPlacementRenderer.config.adPlacementConfig;if(p.prefetchModeConfig&&p.prefetchModeConfig.cacheFetchRefreshDurationMs&&(p=Number(p.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(p)||p<=0)))return p}; IGM=function(p,a,l){l-=p.uc;return a===p.L&&l>.5}; SFe=function(p){if(!p.L&&!p.U.isEmpty()){var a=p.U.remove();p.L=mie(p,a)}}; uAA=function(p){QV(p,"cueVideoById",p.N);QV(p,"loadVideoById",p.ZN);QV(p,"cueVideoByUrl",p.jl);QV(p,"loadVideoByUrl",p.Ye);QV(p,"playVideo",p.OC);QV(p,"pauseVideo",p.pauseVideo);QV(p,"stopVideo",p.dE);QV(p,"clearVideo",p.clearVideo);QV(p,"getVideoBytesLoaded",p.Lx);QV(p,"getVideoBytesTotal",p.E6);QV(p,"getVideoLoadedFraction",p.j);QV(p,"getVideoStartBytes",p.dG);QV(p,"cuePlaylist",p.cuePlaylist);QV(p,"loadPlaylist",p.Kx);QV(p,"nextVideo",p.tP);QV(p,"previousVideo",p.g$);QV(p,"playVideoAt",p.ir);QV(p, "setShuffle",p.setShuffle);QV(p,"setLoop",p.setLoop);QV(p,"getPlaylist",p.Fu);QV(p,"getPlaylistIndex",p.getPlaylistIndex);QV(p,"getPlaylistId",p.getPlaylistId);QV(p,"loadModule",p.D);QV(p,"unloadModule",p.G);QV(p,"setOption",p.S);QV(p,"getOption",p.iT);QV(p,"getOptions",p.L);QV(p,"mute",p.wq);QV(p,"unMute",p.Dd);QV(p,"isMuted",p.isMuted);QV(p,"setVolume",p.ej);QV(p,"getVolume",p.getVolume);QV(p,"seekTo",p.L1);QV(p,"getPlayerMode",p.getPlayerMode);QV(p,"getPlayerState",p.NO);QV(p,"getAvailablePlaybackRates", p.getAvailablePlaybackRates);QV(p,"getPlaybackQuality",()=>p.getPlaybackQuality(1)); QV(p,"setPlaybackQuality",p.OY);QV(p,"getAvailableQualityLevels",p.QY);QV(p,"getCurrentTime",p.Hs);QV(p,"getDuration",p.ac);QV(p,"addEventListener",p.UO);QV(p,"removeEventListener",p.tN);QV(p,"getDebugText",p.Rc);QV(p,"getVideoData",()=>RVr(p)); QV(p,"addCueRange",p.K);QV(p,"removeCueRange",p.removeCueRange);QV(p,"setSize",p.setSize);QV(p,"getApiInterface",p.getApiInterface);QV(p,"destroy",p.destroy);QV(p,"mutedAutoplay",p.mutedAutoplay);const a=p.app.O();a.D||(QV(p,"getVideoEmbedCode",p.getVideoEmbedCode),QV(p,"getVideoUrl",p.Ba));QV(p,"getMediaReferenceTime",p.Tm);QV(p,"getSize",p.getSize);QV(p,"setFauxFullscreen",p.UY);a.A("embeds_enable_move_set_center_crop_to_public")&&QV(p,"setCenterCrop",p.setCenterCrop);a.D||QV(p,"logImaAdEvent", p.logImaAdEvent);QV(p,"preloadVideoById",p.PZ);QV(p,"wakeUpControls",p.wakeUpControls)}; $av=function(p,a,l){let y=480;for(const S of a)a=S.video.qualityOrdinal,a<=1080&&a>y&&LNr(p,S,l)===!0&&(y=a);return y}; g.jJ=function(p){return p.w7==="profilepage"}; kRr=function(p,a,l,y,S){this.listener=p;this.proxy=null;this.src=a;this.type=l;this.capture=!!y;this.handler=S;this.key=++OHM;this.removed=this.gz=!1}; MDo=function(p){return p.B.O().experiments.Cz("enable_desktop_discovery_video_abandon_pings")||g.$G(p.B.O())}; $A=function(p){return!!p.videoData.startSeconds&&isFinite(p.videoData.startSeconds)&&p.videoData.startSeconds>1E9}; W3=function(p){return c5(p)/p.playbackRate}; JgM=function(p){HL=p}; uIO=function(p,a){a.inlineMetricEnabled&&(p.inlineMetricEnabled=!0);a.playback_progress_0s_url&&(p.In=new mdM(a));if(a=a.video_masthead_ad_quartile_urls)p.yc=a.quartile_0_url,p.tp=a.quartile_25_url,p.uB=a.quartile_50_url,p.GN=a.quartile_75_url,p.vJ=a.quartile_100_url,p.Tx=a.quartile_0_urls,p.wx=a.quartile_25_urls,p.HN=a.quartile_50_urls,p.kC=a.quartile_75_urls,p.eA=a.quartile_100_urls}; PQ=function(p){var a=p.api.O();const l=p.api.getVideoData();let y=g.Cs(a)+l.VY;g.eS(l)&&(y="https://music.youtube.com"+l.VY);if(!g.x3(a))return y;a={};g.xe(p.api,"addEmbedsConversionTrackingParams",[a]);return g.Re(y,a)}; wE=function(p){YO||(ZR?ZR.Tf(p):(oH.push({type:"ERROR",payload:p}),oH.length>10&&oH.shift()))}; ts=function(p,a){Bmo(p,a).then(l=>{g.Fj(a,void 0,void 0,l)})}; Wx=function(p,a){p.L.delete(a.Y8())||Q("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; tDM=function(p,a){return a&&p.Y.wq&&!p.getVideoData()?.backgroundable?(p.pm?p.pm.start():p.Sw(),!0):!1}; PWe=function(p){p=p.B.getVideoData(1);return!!p&&p.A("html5_preload_first_vod_video_ad")&&!p.isDaiEnabled()&&!p.isLivePlayback}; tb=function(p,a){g.VB(p.L,"margin-right",`${a}px`)}; Vn=function(p){const a=p.data.getUint32(p.offset+p.L);p.L+=4;return a}; xlM=function(p,a){p.Sl=a;p.X=g.L$("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:a.toString()});a=p.Bs.map(FK);a.unshift(p.X);p.G&&a.push(p.G);p.j(a)}; rlh=function(p){let a=nk();a||(a=new Map);for(const l of p)a.set(l.settingItemId,l.settingOptionValue);p=JSON.stringify(Object.fromEntries(a));g.V2("yt-player-user-settings",p,2592E3)}; Hx=function(p){p=p.getAttribute("aria-label");return p==null||p==void 0?"":String(p)}; g.jM=function(p){const a=Kh(p.DN());return p.app.TM&&!p.isFullscreen()||p.getPresentingPlayerType()===3&&a&&a.Wo()&&a.Bk()||!!p.getPlaylist()}; var yBo=function(p){return gC[r[12]](this,27,p)}; g.n3=function(p,a){return p&&a?p==a||p.contains(a):!1}; g.DK=function(p,a){for(const l in p)if(p[l]==a)return!0;return!1}; H7=function(p,a){if(a==0)return p.L;if(a==1)return p.S;let l=nh(p.L,p.U,a),y=nh(p.U,p.j,a);p=nh(p.j,p.S,a);l=nh(l,y,a);y=nh(y,p,a);return nh(l,y,a)}; JWf=function(p,a,l,y){xa(p.L,a)&&(p.Io.L(paM.get(y)?.n6||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED",a,l),p=E1(p.L,a),p.L!=="rendering"&&Ql(p.slot,p.L,"exitLayout"),p.L="rendering_stop_requested",p.U.Lh(l,y))}; i8=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; B9=function(p,a){a.L>=2&&(p.slot_pos=a.adPodIndex);p.autoplay="1"}; Ue=function(p,a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ue);else{const l=Error().stack;l&&(this.stack=l)}p&&(this.message=String(p));a!==void 0&&(this.cause=a)}; lph=function(p){if(!EPr(p))return!1;p=g.K(p.adStart,HV);return p?nX(p)?!0:(Q("Invalid LASR with notify"),!1):!1}; Cv=function(p,a,l,y){p.L().Ty(a,y);l=l();p=p.L();p.Io.X("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,y,l);for(const Z of l)a:{a=p;a.Io.S("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",Z);a.Io.S("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",Z);try{var S=a.L;if(g.o4(Z.slotId))throw new N("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(E1(S,Z))throw new N("Duplicate registration for slot.",{slotId:Z.slotId,slotEntryTriggerType:Z.slotEntryTrigger.triggerType},"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT"); if(!S.uN.lA.has(Z.slotType))throw new N("No fulfillment adapter factory registered for slot of type: "+Z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!S.uN.rC.has(Z.slotType))throw new N("No SlotAdapterFactory registered for slot of type: "+Z.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Gh(S,"TRIGGER_CATEGORY_SLOT_ENTRY",Z.slotEntryTrigger?[Z.slotEntryTrigger]:[]);Gh(S,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",Z.slotFulfillmentTriggers);Gh(S, "TRIGGER_CATEGORY_SLOT_EXPIRATION",Z.slotExpirationTriggers);var n=a.L;const z=`${Z.slotType}_${Z.slotPhysicalPosition}`,d=Od(n,z);if(E1(n,Z))throw new N("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");d.set(Z.slotId,new jfM(Z));n.L.set(z,d)}catch(z){z instanceof N&&z.Yz?(a.Io.U("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",z.Yz,Z),Q(z,Z,void 0,void 0,z.Iw)):(a.Io.U("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Z),Q(z,Z)); break a}E1(a.L,Z).D=!0;try{var V=a.L;const z=E1(V,Z),d=Z.slotEntryTrigger,G=V.uN.RD.get(d.triggerType);G&&(G.q7("TRIGGER_CATEGORY_SLOT_ENTRY",d,Z,null),z.Sl.set(d.triggerId,G));for(const w of Z.slotFulfillmentTriggers){const X=V.uN.RD.get(w.triggerType);X&&(X.q7("TRIGGER_CATEGORY_SLOT_FULFILLMENT",w,Z,null),z.UO.set(w.triggerId,X))}for(const w of Z.slotExpirationTriggers){const X=V.uN.RD.get(w.triggerType);X&&(X.q7("TRIGGER_CATEGORY_SLOT_EXPIRATION",w,Z,null),z.C.set(w.triggerId,X))}const B=V.uN.lA.get(Z.slotType).get().build(V.U, Z);z.G=B;const c=V.uN.rC.get(Z.slotType).get().build(V.X,Z);c.init();z.S=c}catch(z){z instanceof N&&z.Yz?(a.Io.U("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",z.Yz,Z),Q(z,Z,void 0,void 0,z.Iw)):(a.Io.U("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",Z),Q(z,Z));M3(a,Z,!0);break a}a.Io.S("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",Z);a.L.I9(Z);for(const z of a.S)z.I9(Z);E4(a,Z)}}; VTr=function(p){if(!p)return!1;p=g.K(p.instreamAdPlayerOverlay,RG);const a=g.K(p?.skipOrPreviewRenderer,Dt),l=g.K(p?.adInfoRenderer,KI);return(g.K(p?.skipOrPreviewRenderer,ia)||a)&&l?!0:!1}; YQ=function(p,a,l){return arguments.length<=2?Array.prototype.slice.call(p,a):Array.prototype.slice.call(p,a,l)}; uC=function(p){p.Sl&&clearTimeout(p.Sl);p.Sl=void 0;p.UO=!1}; HHq=function(p,a,l){p.r7=a;p.mO=l;for(const [y,S]of p.hP){a=y;l=S;for(const n of l.Uw){const V=WCe(p,a,n);EIM(p,n.lc,l,V)}}}; I_=function(p){if(typeof p!=="number"&&p&&!p.removed){var a=p.src;if(rd(a))g.nN(a.F_,p);else{var l=p.type,y=p.proxy;a.removeEventListener?a.removeEventListener(l,y,p.capture):a.detachEvent?a.detachEvent(kD(l),y):a.addListener&&a.removeListener&&a.removeListener(y);M4--;(l=bf(a))?(g.nN(l,p),l.L==0&&(l.src=null,a[Ih]=null)):S0(p)}}}; e5=function(p,a,l){let y=p.S[a];y||(y=[],p.S[a]=y);y.push(l)}; z3=function(p,a){let l;for(l=0;lAQZ(S,y))?(p.S=y,p.policy.U&&p.Xu("cer",{lsr:"lsp", lsp:y.HZ()})):(af(a.info.Yv[0])?(p.S=a.wc&&a.wc.U?zYZ(a.wc.U):MnO(a.info.Yv[0]),p.policy.U&&p.Xu("cer",{lsr:p.S.HZ(),lsp:y?.HZ()})):(p.S=null,p.policy.U&&p.Xu("cer",{lsr:"null",lsp:y?.HZ()})),p.loader.isOffline()&&!p.policy.sU||xm(p,a,!0))}}; wr=function(p,a){p=p.app.zm();return!!p&&p.getVideoData().ME===a.ME}; Ddr=function(){const p=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];zu().forEach(a=>{p.push(a)}); return{e5:p,FX:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; eG=function(p){return p.audio?.L===!0}; Mdo=function(){function p(B,c){if(typeof B==="string"){B=unescape(encodeURIComponent(B));for(var w=[],X=0,v=B.length;X>>31)&4294967295;B=S[0];var X=S[1],v=S[2],I=S[3],u=S[4];for(w=0;w<80;w++){if(w<40)if(w<20){var m=I^X&(v^I);var M=1518500249}else m=X^v^I,M=1859775393;else w<60?(m=X&v|I&(X|v),M=2400959708):(m=X^v^I,M=3395469782);m=((B<<5|B>>>27)&4294967295)+m+u+M+c[w]&4294967295;u=I;I=v;v=(X<<30|X>>>2)&4294967295;X=B;B=m}S[0]=S[0]+B&4294967295;S[1]=S[1]+X&4294967295;S[2]= S[2]+v&4294967295;S[3]=S[3]+I&4294967295;S[4]=S[4]+u&4294967295} function l(){var B=[],c=G*8;d<56?p(Z,56-d):p(Z,64-(d-56));for(var w=63;w>=56;w--)n[w]=c&255,c>>>=8;a(n);for(w=c=0;w<5;w++)for(var X=24;X>=0;X-=8)B[c++]=S[w]>>X&255;return B} function y(){S[0]=1732584193;S[1]=4023233417;S[2]=2562383102;S[3]=271733878;S[4]=3285377520;G=d=0} for(var S=[],n=[],V=[],Z=[128],z=1;z<64;++z)Z[z]=0;var d,G;y();return{reset:y,update:p,digest:l,Wm:function(){for(var B=l(),c="",w=0;w{p.QQ.Ut("pt_mf");if(y=ye(y))a.o_={Xm:y}}).catch(y=>{p.QQ.Ut("pt_me"); sT(y,"player_generate");p.handleError(y,a)})}catch(y){sT(y,"player_generate_catch"),p.handleError(y,a)}}}; HY=function(p){let a=0;for(let l=0;l>>0;return a}; TNr=function(p,a){const l=p.hP.get(a),y=Bgv(p,a),S=!y&&!!l.bytesReceived;if(HL){if(p.r7?.va){for(var n of l.o7.values())if(!n.vH)return!1;return S}}else if(n=p.AX(a),S&&p.U&&n!==void 0)return n;return(S||l.bytesReceived===y)&&l.Ay+Qw(p,a)===l.bytesReceived}; Pv=function(p){return p.Lz.Gj(){}})}; t_=function(p,a){return a===void 0||a===null?p:a.toString()}; OqF=function(p){Kw=p}; Nn=function(p){var a=p.B.bN()?72:50;const l=p.B.O();g.p8(l)&&(l.A("delhi_modern_web_player")?(a=g.ak(l.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),a=p.B.A("delhi_modern_web_player_compact_controls")||a>0&&p.B.getPlayerSize().width<=a,a=p.B.bN()?112:a?70:78,p.B.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(p=getComputedStyle(p.B.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",a+=Number(p.replace("px","")))):a=62,g.UO(l)&&(a=54)); return a}; EiE=function(p,a){return nI(p,1,a)}; hVr=function(p,a,l=!1){a.xY=p.Sl;a.Zo=p.Hs;a.bandwidthEstimate=B5(p);if(l){l=(p.K.Pi()*1E3).toFixed();var y=(p.w7.Pi()*1E3).toFixed(),S=XF(p).toFixed(2),n=((p.G.Pi()||0)*1E9).toFixed(2),V=p.U.Pi().toFixed(0),Z=p.Ws.Pi().toFixed(0),z=p.C.percentile(.5).toFixed(2),d=p.C.percentile(.92).toFixed(2),G=p.C.percentile(.96).toFixed(2),B=p.C.percentile(.98).toFixed(2);p.L?p.L.reset():p.L=new sD;p.L.add(p.jl);p.L.add(p.interruptions.length);let X=0;for(var c=p.interruptions.length-1;c>=0;c--){var w=p.interruptions[c]; p.L.add(w-X);X=w}X=0;for(c=p.j.length-1;c>=0;c--){w=p.j[c];const v=w.stamp/36E5;p.L.add(v-X);X=v;p.L.add(w.net/1E3);p.L.add(w.max)}p=p.L.Lq();a.L={ttr:l,ttm:y,d:S,st:n,bw:V,abw:Z,v50:z,v92:d,v96:G,v98:B,"int":p}}}; AEf=function(p,a){if(!isNaN(p.E6)){const l=Date.now()-p.E6;l<1E4&&p.Xu("bfaswtch",{ep:l,sk:a!==void 0?"1":"0",sr:a||""})}}; gVO=function(p){p.loading=!0;p.OY=!1;if(Ueo(p))g.Uwq(p.videoId).then(y=>{if(p.playerResponse?.streamingData){var S=[];for(const n of y)y=Object.assign({},n),y.signatureCipher="",S.push(y);S.length<2&&p.Xu("offmlf",{len:S.length});S=uPv(p,S);nz(p)&&jJE(S,!1);t$(p,S);p.Xu("dlr",{})}else p.Xu("offsdm",{cotn:p.YV?p.YV.cotn:"0",cpn:p.clientPlaybackNonce})}).then(()=>{p.hG()}); else{KY(p.Kx)||g.tX(new g.Qm("DASH MPD Origin invalid: ",p.Kx));var a=p.Kx,l=g.ak(p.g7.experiments,"dash_manifest_version")||4;a=g.Re(a,{mpd_version:l});p.isLowLatencyLiveStream&&p.latencyClass!=="NORMAL"||(a=g.Re(a,{pacing:0}));hTr(a,p.g7.experiments,p.isLivePlayback).then(y=>{p.nz()||(t$(p,y,!0),KU("mrc",void 0,p.Sl),p.hG())},y=>{p.nz()||(p.loading=!1,p.publish("dataloaderror",new g.cQ("manifest.net.retryexhausted",{backend:"manifest", rc:y.status},1)))}); KU("mrs",void 0,p.Sl)}}; WCe=function(p,a,l){const y=p.r7?.U.get(a);if(!y)return[];if(l.U9)return y.G(0,l.clipId)?.Yv||[];if(y.U()){var S=l.startMs,n=l.durationMs,V=1E3;p.mO?.L&&l.timeRange&&(S=l.timeRange.startTicks??-1,n=l.timeRange.On??-1,V=l.timeRange.timescale??-1);if(l.RN<0||l.E2<0||n<0||S<0||l.rN<0||V<0)return DJ(p,a),[];p=hl(l.RN,l.rN);a=l.qm||0;return[new g$(3,y,p,"makeSliceInfosMediaBytes",l.E2-1,S/V,n/V,a,p.length-a,void 0,l.Nb,l.clipId)]}return l.E2<0?(DJ(p,a),[]):p.r7?.va?(n=y.VZ,V=n*y.info.Sb,a=l.qm,p.mO?.Nj&& l.timeRange&&!a&&(S=l.timeRange.startTicks/l.timeRange.timescale),[new g$(3,y,void 0,"makeSliceInfosMediaBytes",l.E2,S,n,a,V,!0,l.Nb,l.clipId)]):[]}; FA=function(p,a,l="",y=""){p.updateValue("label",l);p.updateValue("icon",a);p.L.mE();p.S.start();p.updateValue("title",y);g.OW(p.element,"ytp-bezel-text-hide",!y)}; UD=function(p,a){p.L.has(a)?(p.L.delete(a),delete hm().L[a]):Q("Unexpected unregistration of layout in LidarApi")}; X2=function(p,a){try{a={detail:`pr.${a}`},(g.$G(p.g7)||FJ(p.g7)==="TVHTML5_FOR_KIDS")&&p.g7.A("html5_reload_by_kabuki_app")?p.Lz.f1("qoe.restart",1,void 0,ki(a),"7"):(p.d$("qoe.restart",a),window.location.reload())}catch{}}; QL=function(p){return p.api.A("allow_autohide_on_paused_videos")?!(p.S&-129):!p.S}; g.DC=function(p){const a=g.Gj();a&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),g.Ir(p,l=>{a.unsubscribeByKey(l);delete gk[l]}))}; g.Bu=function(p){if(p.data.getUint8(p.dataOffset)){var a=p.data;p=p.dataOffset+4;a=a.getUint32(p)*4294967296+a.getUint32(p+4)}else a=p.data.getUint32(p.dataOffset+4);return a}; YvA=function(p){p.updateValue("channelLink","");p.updateValue("channelName","");g.UO(p.api.O())||p.api.A("enable_channel_title_always_focusable")?p.updateValue("channelTitleFocusable","0"):p.updateValue("channelTitleFocusable","-1")}; nJ=function(p,a,l,y,S,n,V,Z,z,d){if(p+3>>1=p){var G=a[r[4]](r[27]);Ab[r[67]](G,45);Ab[r[67]](G,7);Ab[r[0]](G,3);Ab[r[39]](G,34);Ab[r[0]](G,3);Ab[r[67]](G,37);var B=G[r[5]](r[27])}if(p-7>>3==1){G=64;for(var c=[];++G-c[r[9]]-32;)switch(G){case 58:G=96;continue;case 91:G=44;break;case 65:G=47;continue;case 46:G=153;case 123:G-=58;default:c[r[1]](String[r[30]](G))}B=c}(p|2)>>4||(B=y(S,n,V,Z,z,d));return B}; NmA=function(p,a){const l=yV(p,"watchtime");k4h(p)&&(l.delayThresholdMet=!0,p.QY=!0);if(p.S>0){for(const y of a)y.startTime-=p.S,y.endTime-=p.S;l.L-=p.S}else l.L=p.L.L;l.segments=a;return l}; Ma=function(p,a,l,y,S,n,V,Z,z){S?A5(p,S).A8.push({veO:a,hB:l,isContentVideoCompanion:y,sP:V,associatedCompositePlayerBytesLayoutId:n,adSlotLoggingData:Z,yk:z}):Q("Companion AdPlacementSupportedRenderer without adVideoId")}; lj=function(p,a,l){const y=p.GR({playerType:l});y&&(a=y.RX(a),l&&p.getPresentingPlayerType()!==l||we(p,"cuerangesremoved",a))}; ta=function(p){return window.navigator.msPointerEnabled?`MSPointer${p.charAt(0).toUpperCase()}${p.substring(1)}`:`mouse${p}`}; g.Y8=function(p){var a;let l=a=0,y=!1;p=p.split(qvr);for(let S=0;S.4?-1:1;return(a==0?null:a)==-1?"rtl":"ltr"}; xW=function(p){return p===1||p===2}; ahh=function(p){ph(p,"impression")&&!ph(p,"seek")&&p.Fb("audio_audible")}; VaF=function(p,a,l){if(a.jg?.OJ)try{const y=p.cache?.S(tJ(p,a),a.jg.If);return y?l?dM(p.logger,()=>g.dW(y,2),"a"):y:void 0}catch(y){p.reportError(new gr(23,"RXO:read",y))}}; $Xe=function(p,a,l){const y=[];for(const S of l)S&&S.url&&(l=mv(S.type,"medium","0"),y.push(new Ygo(l,S.url)));return Ml(p.X,y,dQ(p,a),!1)}; xm=function(p,a,l=!1){Qy$(p,a,l);a.dispose()}; wf=function(p){var a;for(a=0;a<286;a++)p.Dl[a*2]=0;for(a=0;a<30;a++)p.Sh[a*2]=0;for(a=0;a<19;a++)p.VS[a*2]=0;p.Dl[512]=1;p.l4=p.Zw=0;p.y9=p.matches=0}; lhv=function(p,a){const l=p.clientMetadata.t9("metadata_type_ad_placement_config");return new qn(p.Xh,a,l,p.layoutId)}; Jb=async function(p){let a=void 0;p.X++;const l=new g.un;p.ea instanceof Tt&&p.ea.j.push(l.promise);if(p.rT){const n=new g.un;setTimeout(()=>void n.resolve()); await n.promise}const y=p.logger.share();try{p.state=5;const n=[],V=await iQ(p.ea.snapshot({N9:{},Ru:n}),p.jW.ET,()=>Promise.reject(new gr(15,"MDA:Timeout"))); Mk(p,"MDA:Disposed");const Z=n[0];p.state=6;const z=await iQ(J0r(p.X4,y,V),p.jW.x6,()=>Promise.reject(new gr(10,"BWB:Timeout"))); Mk(p,"BWB:Disposed");p.state=7;a=dM(y,()=>{const d=F5Z(p,z,l,Z);d.j.promise.then(()=>void p.D()); return d},"i")}catch(n){a?.dispose(); if(!p.S){const V=Dtr(p,n);l.resolve();var S;if(S=p.ea instanceof Tt&&p.X<2)a:if(n instanceof gr)S=n.code!==32&&n.code!==20&&n.code!==10;else{if(n instanceof Wg)switch(n.code){case 2:case 13:case 14:case 4:break;default:S=!1;break a}S=!0}if(S){const Z=setTimeout(()=>void p.D(),(1+Math.random()*.25)*(p.L?6E4:1E3)); p.addOnDisposeCallback(()=>void clearTimeout(Z)); return}p.S=V}y.Tf(p.L?13:14);p.j.reject(p.S);return}finally{y.dispose()}p.state=8;p.X=0;p.L?.dispose();p.L=a;p.j.resolve()}; yLe=function(p){p.Wv();var a=p.z5;ZB(p);p.events.J(window,"resize",p.IA);const l=p.EE();g.ZN(p.pz,"onVolumeChange",p.i_);if(a&&Kn(a)){const y=oQ(p.Y);y&&!p.TM&&(a.fetch=0);const S=g.x3(p.Y);S&&!p.TM&&(a.fetch=0);al(p,a);g.x3(p.Y)&&p.QQ.tick("ep_pr_s");if(!y||p.TM)if(S&&!p.TM)l6(p);else if(!l.Kh())p.playlist.onReady(()=>{yT(p)})}p.Kg(p.jb(),!1,!0); p.jb().getPlayerState().L(128)||(a=WrO(!p.Y.deviceIsAudioOnly),a==="fmt.noneavailable"?p.Sj("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):a==="html5.missingapi"?p.Sj(a,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):l&&l.Kh()&&SM(p)&&(p.Y.L1||p.Y.DF)?zH(p):l.I_?p.pz.mutedAutoplay({durationMode:l.mutedAutoplayDurationMode}):g.Wk("yt-player-playback-on-reload")?(g.i0("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!p.Y.Sl}),g.V2("yt-player-playback-on-reload",!1),zH(p)): HF(p.Y)||Srr(p),g.p8(p.Y)||FJ(p.Y)==="MWEB"?(g.wM(g.vT(),()=>{Bx(p)}),g.wM(g.vT(),()=>{o3q()})):(Bx(p),o3q()))}; ji=function(p,a){var l=p.pz.getAvailablePlaybackRates();a=Number(a.toFixed(2));p=l[0];l=l[l.length-1];a<=p?a=p:a>=l?a=l:(p=Math.floor(a*100+.001)%5,p!==0&&(a-=p*.01,a=Math.floor(a*100+.001)/100));return a}; fE=function(p){p.S.startTime=p.U;p.S.endTime=p.L;let a=!1;p.segments.length&&g.V$(p.segments).isEmpty()?(p.segments[p.segments.length-1].previouslyEnded&&(p.S.previouslyEnded=!0),p.segments[p.segments.length-1]=p.S,a=!0):p.segments.length&&p.S.isEmpty()||(p.segments.push(p.S),a=!0);a?p.S.endTime===0&&(p.previouslyEnded=!1):p.S.previouslyEnded&&(p.previouslyEnded=!0);p.X+=p.L-p.U;p.S=yE(p.provider);p.S.previouslyEnded=p.previouslyEnded;p.previouslyEnded=!1;p.U=p.L}; BvA=function(p){if(!MU(p,440786851,!0))return null;const a=p.pos;mT(p,!1);const l=mT(p,!0)+p.pos-a;p.pos=a+l;if(!MU(p,408125543,!1))return null;mT(p,!0);if(!MU(p,357149030,!0))return null;const y=p.pos;mT(p,!1);const S=mT(p,!0)+p.pos-y;p.pos=y+S;if(!MU(p,374648427,!0))return null;const n=p.pos;mT(p,!1);const V=mT(p,!0)+p.pos-n,Z=new Uint8Array(l+12+S+V),z=new DataView(Z.buffer);Z.set(new Uint8Array(p.L.buffer,p.L.byteOffset+a,l));z.setUint32(l,408125543);z.setUint32(l+4,33554431);z.setUint32(l+8, 4294967295);Z.set(new Uint8Array(p.L.buffer,p.L.byteOffset+y,S),l+12);Z.set(new Uint8Array(p.L.buffer,p.L.byteOffset+n,V),l+12+S);return Z}; Wb=function(p,a){return p[a+0]+(p[a+1]<<8)+(p[a+2]<<16)+(p[a+3]<<24)}; Nb=function(p,a){if(a>268435455){ME(p,4);let l=a&1073741823;for(let y=0;y<4;y++)p.view.setUint8(p.pos,l&127|128),l>>=7,p.pos+=1;a=Math.floor(a/268435456)}for(ME(p,4);a>127;)p.view.setUint8(p.pos,a&127|128),a>>=7,p.pos+=1;p.view.setUint8(p.pos,a);p.pos+=1}; BN=function(){return{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z", fill:"white"}}]}}; VGO=function(p,a,l,y=1){l>=0&&(a in p.L||(p.L[a]=new Syv),p.L[a].G_(l,y))}; RVr=function(p,a=1){const l={};if(a=p.app.GO(a)){a=a.getVideoData();if(X9(a))return{};l.video_id=a.videoId;l.author=a.author;l.title=a.title;l.isPlayable=mJ(a);l.errorCode=a.errorCode;if(a.S&&a.S.video){l.video_quality=a.S.video.quality;a=a.S.video;const y=[];a.S()&&y.push("hfr");a.isHdr()&&y.push("hdr");a.primaries==="bt2020"&&y.push("wcg");l.video_quality_features=y}}if(p=p.getPlaylistId())l.list=p;return l}; SQ=function(p,a){var l=g.o1("yt.logging.transport.enableScrapingForTest"),y=v4("il_payload_scraping");y=(y!==void 0?String(y):"")==="enable_il_payload_scraping";if(!l)if(y)pL=[],g.eo("yt.logging.transport.enableScrapingForTest",!0),g.eo("yt.logging.transport.scrapedPayloadsForTesting",pL),g.eo("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.eo("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.eo("yt.logging.transport.scrapeClientEvent",!0);else return;l=g.o1("yt.logging.transport.scrapedPayloadsForTesting");y=g.o1("yt.logging.transport.payloadToScrape");a&&(a=a.payload,(a=g.o1("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(a)())&&l.push(a));a=g.o1("yt.logging.transport.scrapeClientEvent");if(y&&y.length>=1)for(let S=0;S{a.S>1E5||++a.S})}; Pcv=function(p,a,l,y,S,n,V,Z,z,d,G){p=nrr(p,a,"core",l,y,S,n,V,Z,z,d,void 0,G);return{layoutId:p.layoutId,layoutType:p.layoutType,Xh:p.Xh,layoutExitNormalTriggers:p.layoutExitNormalTriggers,layoutExitSkipTriggers:p.layoutExitSkipTriggers,layoutExitMuteTriggers:p.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:p.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:p.layoutExitUserCancelledTriggers,qO:p.qO,clientMetadata:new L0(p.EA),ao:p.ao,adLayoutLoggingData:p.adLayoutLoggingData}}; nEM=function(p){var a=p.B.getVideoData()?.iT;if(a){p=p.j.Ic;for(const l of a)if((a=p[l])&&a.onTap?.innertubeCommand?.changeEngagementPanelVisibilityAction?.targetId!=="engagement-panel-macro-markers-problem-walkthroughs")return a}}; nq=function(p,...a){a=a.filter(Boolean).join("&");if(!a)return p;const l=p.match(/[?&]adurl=/);return l?p.slice(0,l.index+1)+a+"&"+p.slice(l.index+1):p+(p.indexOf("?")<0?"?":"&")+a}; cJ=function(p,a,l){const y=fO(p.S.get(),"SLOT_TYPE_PLAYER_BYTES"),S=[new aa(p.L,y)];p=[new lm(p.L,y),new y5(p.L,l)];return{slotId:y,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:a,slotFulfillmentTriggers:S,slotExpirationTriggers:p,qO:"core"}}; Dh=function(p){return function(){return p}}; KZM=function(p){p.CONN=wu(Dh("0"));p.WT=wu(()=>Date.now().toString())}; hg=function(p,a,l){p.S=a;p.startTime=(0,g.h)();p.duration=l;p.L()}; kgq=function(){this.oX=null;this.status=0;this.Qh=null;this.wrap=this.pending=this.Pr=this.dA=0;this.Q$=null;this.h4=0;this.method=8;this.Go=-1;this.Cc=this.fn=this.Db=0;this.window=null;this.tV=0;this.head=this.ZE=null;this.Ys=this.Qm=this.strategy=this.level=this.s7=this.c_=this.uU=this.Pa=this.Kl=this.bM=this.OI=this.IC=this.BX=this.LO=this.Om=this.q1=this.nQ=this.c6=this.V$=0;this.Dl=new Yr.B8(1146);this.Sh=new Yr.B8(122);this.VS=new Yr.B8(78);Rp(this.Dl);Rp(this.Sh);Rp(this.VS);this.YR=this.pG= this.SO=null;this.nU=new Yr.B8(16);this.Gy=new Yr.B8(573);Rp(this.Gy);this.Eo=this.zF=0;this.depth=new Yr.B8(573);Rp(this.depth);this.v9=this.rd=this.q3=this.matches=this.Zw=this.l4=this.cw=this.y9=this.E3=this.U7=0}; Qe=function(p,a,l){const y=a.O();p.thirdParty||(p.thirdParty={});y.ancestorOrigins&&(p.thirdParty.embeddedPlayerContext={...p.thirdParty.embeddedPlayerContext,ancestorOrigins:y.ancestorOrigins});y.Ao!=null&&(p.thirdParty.embeddedPlayerContext={...p.thirdParty.embeddedPlayerContext,visibilityFraction:Number(y.Ao)});y.HG&&(p.thirdParty.embeddedPlayerContext={...p.thirdParty.embeddedPlayerContext,visibilityFractionSource:y.HG});p.thirdParty.embeddedPlayerContext={...p.thirdParty.embeddedPlayerContext, autoplayBrowserPolicy:PY(),autoplayIntended:gv(a),autoplayStatus:qf(a,l)}}; FlF=function(){var p=window.location.href;if(g.nU("kevlar_disable_theme_param"))return null;const a=gX(p);if(g.nU("enable_dark_theme_only_on_shorts")&&a?.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{const l=g.IE(p).theme;return V5O.get(l)||null}catch(l){}return null}; ZRF=function(p,a){const l=p.lM!==a;p.lM=a;l&&vl(p)}; es=function(p,a,l){p.nz();const y=QL(p);l?(p.S|=a,a&1&&p.C.start(),a&2&&p.UO.start(),a&2048&&p.N.start()):(p.S&=~a,a&1&&p.C.stop(),a&2&&p.UO.stop(),a&2048&&p.N.stop(),a&512&&p.Sl.stop());p.S&512&&!(p.S&128)&&p.Sl.JP(p.QY);a=QL(p);y!==a&&p.publish("autohideupdate",a)}; Sfo=function(p,a){p=p.flags.get(`${a}`);return Number(p)||0}; e7q=function(p){const a=pm(p.experiments,"html5_web_po_request_key");return a?a:g.ur(p)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; lVM=function(p){return p.TR.O().A("html5_gapless_no_clear_buffer_timeline")&&p.D===1&&Yc(p.L.getVideoData())}; CxM=function(){return window&&"requestIdleCallback"in window?new Bk(p=>{requestIdleCallback(()=>{p()},{timeout:2E3})}):K2$()}; o$=function(p,a){const l=p.zm(),y=l.getPlayerType();if(y!==2||p.eD()){if(y===2&&p.eD()||y===5||y===6||y===7)if(a===-1||a===0||a===5)return;if(a===0){if(p.lM)return;if(l.V9()&&g.ur(p.Y)){p.playVideo();return}}p.XN!==a&&(p.XN=a,g.ZN(p.pz,"onStateChange",a))}else p.vv!==a&&(p.vv=a,g.ZN(p.pz,"onAdStateChange",a))}; kp=function(p){if(!p.nz())if(p.S.length===0)p.callback(p.j);else{var a=p.S[0],l=p.U[a],y=d3o(p,l);RW&&RW.keySystem===a&&RW.J2===JSON.stringify(y)?(p.Xu("remksa",{re:!0}),Mw(p,l,RW.keySystemAccess)):(p.Xu("remksa",{re:!1,ok:RW?.keySystem??""}),RW=void 0,navigator.requestMediaKeySystemAccess(a,y).then(GS(S=>{Mw(p,l,S,y)}),GS(()=>{p.X=!p.X&&p.U[p.S[0]].flavor==="widevine"; p.X||p.S.shift();kp(p)})))}}; qG$=function(p){aR=p}; oEZ=function(p,a,l,y){p.U=y;y=a.ME;const S=a.playerVars,n=a.playerType;p.G=a;S&&p.api.enqueueVideoByPlayerVars(S,n,l,y)}; LwE=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; Ch=function(p,a,l){AEf(p,l.qE||"unknown");p.Lz.seekTo(a,l)}; Sm=function(p){return p.api.A("delhi_modern_web_player")?4:p.D?3:2}; zAh=function(p){const a=p.videoData;Y4r(p,p.s6).then(void 0,l=>{p.videoData!==a||a.nz()||(l=XN(l),l.errorCode==="auth"&&p.videoData.errorDetail&&p.videoData.errorDetail!=="7"?p.f1(l.errorCode,2,unescape(p.videoData.errorReason),ki(l.details),p.videoData.errorDetail,p.videoData.iK||void 0):p.handleError(l))})}; Tmv=function(p){for(const a of p)if(a.itag&&dWM.has(a.itag))return!0;return!1}; aK=function(p,a=!0){return HiM(p,l=>l.U,a)}; uoE=function(p){return p.QS&&!p.g4}; NV=function(p){this.L=p||{cookie:""}}; GbZ=function(p){if(!p.api.O().Fu){var a=p.api.getVideoData(),l=new g.hK("Suscribirme",null,"Suscrito",null,!0,!1,a.Jk,a.subscribed,"channel_avatar",null,p.api,!0);p.api.createServerVe(l.element,p);p.api.setTrackingParams(l.element,a.subscribeButtonRenderer?.trackingParams||null);p.J(l.element,"click",()=>{p.api.logClick(l.element)}); p.subscribeButton=l;g.H(p,p.subscribeButton);p.subscribeButton.lT(p.element)}}; ku=function(p,a,l=0){return v5(AI(p,a))??l}; Ya=function(p){return/web/i.test(FJ(p))}; hp=function(p,a,l){a instanceof Ap?(p.j=a,SXM(p.j,p.G)):(l||(a=Eq(a,Baf)),p.j=new Ap(a,p.G))}; ynv=function(p){return isNaN(p.cryptoPeriodIndex)?g.dW(p.initData):`${p.cryptoPeriodIndex}`}; CpM=function(p,a,l,y=null){const S=g.HA("SCRIPT");S.id=a;S.onload=()=>{l&&setTimeout(l,0)}; S.onreadystatechange=()=>{switch(S.readyState){case "loaded":case "complete":S.onload()}}; y&&S.setAttribute("nonce",y);g.UZ(S,typeof p==="string"?g.OO(p):p);p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(S,p.firstChild);return S}; rko=function(p,a,l,y={}){p.addEventListener&&(a!="mouseenter"||"onmouseenter"in document?a!="mouseleave"||"onmouseenter"in document?a=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(a="MozMousePixelScroll"):a="mouseout":a="mouseover");return VT(TK,S=>{const n=typeof S[4]==="boolean"&&S[4]==!!y,V=g.pA(S[4])&&g.pA(y)&&g.tL(S[4],y);return!!S.length&&S[0]==p&&S[1]==a&&S[2]==l&&(n||V)})}; pBF=function(p){return(p=p?.error?.code)&&p>=400&&p<=599?!1:!0}; lP=function(p){DH(p);p.setLoopVideo(!1);p.setLoopRange(null);p.pz.publish("legacyadtrackingpingreset");p.MN={};p.AT=[];WoO(p.QQ);if(p.Yy){var a=p.Yy,l=p.jb();l.getPlayerType();Pe(a,!1);Md(a);hU(a);a.playback=l}a=p.I4;p=p.jb();p.getPlayerType()!==1&&Rx(a,"invalidParentVideoPlayerType");Vi(a,!1);nR(a);a.L=p}; cLf=function(p){return p.j&&p.j.closeButton&&p.j.closeButton.buttonRenderer&&(p=p.j.closeButton.buttonRenderer,p.serviceEndpoint)?[p.serviceEndpoint]:[]}; Hmr=function(p,a=null){p.U=1;p.S=a}; RU=function(p,a,l){const y=g.O1(p.macros),S=g.Lf(a);y.AW={toString:()=>S.width.toString()}; y.AH={toString:()=>S.height.toString()}; const n=g.l7(l,a).floor();y.I_X={toString:()=>n.x.toString()}; y.NX={toString:()=>n.x.toString()}; y.I_Y={toString:()=>n.y.toString()}; y.NY={toString:()=>n.y.toString()}; y.NM={toString:()=>p.G.toString()}; for(const V of p.D)p.layoutId?kB(p.OO,V,p.layoutId,y):g.MD(Error("Missing layoutId for invideo_overlay_ad."));p.api.pauseVideo()}; w7v=function(p){return p[rLM]??(p[rLM]=new Map(ezM(Qgf(p)).map(a=>[a.getName(),ku(a,2)])))}; ISh=function(p){if(p){if(cOM(p))return p;p=SSO(p);if(cOM(p,!0))return p}return""}; MFF=function(p){const a=[];return g.o_O(p,{query:void 0},l=>{a.push(l.cursor.primaryKey);return g.xEM(l)}).then(()=>a)}; iTF=[];COo=typeof Object.defineProperties=="function"?Object.defineProperty:function(p,a,l){if(p==Array.prototype||p==Object.prototype)return p;p[a]=l.value;return p}; EmF=globalThis;yZO=typeof Object.create=="function"?Object.create:function(p){function a(){} a.prototype=p;return new a}; SMr=Object.setPrototypeOf;pP("Symbol.dispose",function(p){return p?p:Symbol("Symbol.dispose")}); pP("SuppressedError",function(p){function a(l,y,S){if(!(this instanceof a))return new a(l,y,S);S=Error(S);"stack"in S&&(this.stack=S.stack);this.message=S.message;this.error=l;this.suppressed=y} if(p)return p;nh$(a,Error);a.prototype.name="SuppressedError";return a}); pP("String.prototype.replaceAll",function(p){return p?p:function(a,l){if(a instanceof RegExp&&!a.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return a instanceof RegExp?this.replace(a,l):this.replace(new RegExp(String(a).replace(/([-()\[\]{}+?*.$\^|,:#>>0);nHF=0;g.yi(Ue,Error);Ue.prototype.name="CustomError";var OGF;var $We={NONE:0,vM:1},Pur={S9:0,D4:1,QK:2,le:3},yQ={JV:"a",QM:"d",VIDEO:"v"};var L9F=class{constructor(){this.ph=0;this.L=!1;this.S=-1;this.kt=!1;this.xz=0}isVisible(){return this.kt?this.ph>=.3:this.ph>=.5}};var Sz={hj:0,zk:1},X7r={NONE:0,o5:1,NV:2};var Wsr="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");var nL=class{constructor(){this.S=null;this.L=!1}getValue(){return this.S}},HTE=class extends nL{constructor(p){super();this.j=p}U(p){this.S===null&&g.DK(this.j,p)&&(this.S=p)}},xWf=class extends nL{U(p){this.S===null&&typeof p==="number"&&(this.S=p)}},RDo=class extends nL{U(p){this.S===null&&typeof p==="string"&&(this.S=p)}};var F9$=class{constructor(){this.L={};this.S=!0;this.U={}}disable(){this.S=!1}enable(){this.S=!0}isEnabled(){return this.S}reset(){this.L={};this.S=!0;this.U={}}};var EEE=p=>{fk(p,"od",$We);fk(p,"opac",Sz).L=!0;fk(p,"sbeos",Sz).L=!0;fk(p,"prf",Sz).L=!0;fk(p,"mwt",Sz).L=!0;fk(p,"iogeo",Sz)};var P1=document,bn=window;var CuM=zv(1,!0),iz=zv(610401301,!1);zv(899588437,!1);zv(772657768,!1);zv(513659523,!1);zv(568333945,!0);var FL$=zv(1331761403,!1);zv(651175828,!1);zv(722764542,!1);zv(748402145,!1);zv(748402146,!1);var JMh=zv(748402147,CuM);zv(333098724,!1);zv(2147483644,!1);zv(2147483645,!1);zv(2147483646,CuM);zv(2147483647,!0);var Tw=!!g.o1("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var b1q=/&/g,INr=//g,udE=/"/g,O1Z=/'/g,kjM=/\x00/g,e5r=/[\x00&<>"']/;var KA,vEO=g.mm.navigator;KA=vEO?vEO.userAgentData||null:null;var N3r=globalThis.trustedTypes,Rj;var GX=class{constructor(p){this.L=p}toString(){return this.L+""}};var g0=class{constructor(p){this.L=p}toString(){return this.L}},M$E=new g0("about:invalid#zClosurez");var jl=class{constructor(p){this.Kh=p}},K9v=Wv("tel"),eAE=Wv("sms"),VH=[Wv("data"),Wv("http"),Wv("https"),Wv("mailto"),Wv("ftp"),new jl(p=>/^[^:]*([/?#]|$)/.test(p))],KlZ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var fA=class{constructor(p){this.L=p}toString(){return this.L+""}};var cs=class{constructor(p){this.L=p}toString(){return this.L+""}};var cdF=class{constructor(p){this.L=p}toString(){return this.L}};var pv={};TI[" "]=function(){};var D2,UK,Isv,bRM,Ihr,RAr,VQ,Gd,Z7;g.rR=or();g.qT=Ze();g.av=wv("Edge");g.wR=g.av||g.qT;D2=wv("Gecko")&&!(sc(g.Vo(),"WebKit")&&!wv("Edge"))&&!(wv("Trident")||wv("MSIE"))&&!wv("Edge");g.H5=sc(g.Vo(),"WebKit")&&!wv("Edge");UK=h_();Isv=lsA();g.an=hYE();bRM=yX();Ihr=wv("iPad");RAr=wv("iPod");VQ=sz();Gd=sc(g.Vo(),"KaiOS"); a:{let p="";const a=function(){const l=g.Vo();if(D2)return/rv:([^\);]+)(\)|;)/.exec(l);if(g.av)return/Edge\/([\d\.]+)/.exec(l);if(g.qT)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(l);if(g.H5)return/WebKit\/(\S+)/.exec(l);if(g.rR)return/(?:Version)[ \/]?(\S+)/.exec(l)}(); a&&(p=a?a[1]:"");if(g.qT){var oR;const l=g.mm.document;oR=l?l.documentMode:void 0;if(oR!=null&&oR>parseFloat(p)){Z7=String(oR);break a}}Z7=p}var Tq=Z7,mMZ={};var Tj,OD;g.cq=XO();Tj=yX()||wv("iPod");OD=wv("iPad");g.zM=EM();g.TF=LA();g.i3=xh()&&!sz();var PDf=!g.qT&&!xh();g.C=g.g3.prototype;g.C.clone=function(){return new g.g3(this.x,this.y)}; g.C.equals=function(p){return p instanceof g.g3&&dr(this,p)}; g.C.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.C.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.C.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.C.scale=function(p,a){this.x*=p;this.y*=typeof a==="number"?a:p;return this};g.C=g.J9.prototype;g.C.clone=function(){return new g.J9(this.width,this.height)}; g.C.aspectRatio=function(){return this.width/this.height}; g.C.isEmpty=function(){return!B3(this)}; g.C.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.C.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.C.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.C.scale=function(p,a){this.width*=p;this.height*=typeof a==="number"?a:p;return this};Mc.prototype.toString=function(){return this.L}; var kU={};new Mc(kU,"");var Ps=/^[a-z][a-z\d-]*$/i,j4E="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),H8v="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),ON$=["action","formaction","href"];var pO={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.C=eY.prototype;g.C.Wa=function(p){return F6(this.L,p)}; g.C.getElementsByTagName=function(p,a){return(a||this.L).getElementsByTagName(String(p))}; g.C.d7=function(p){return g.m5(p,this.L)}; g.C.setProperties=ln;g.C.createElement=function(p){return BW(this.L,p)}; g.C.appendChild=g.lL;g.C.append=function(p,a){zwM(jj(p),p,arguments,1)}; g.C.canHaveChildren=function(p){if(p.nodeType!=1)return!1;switch(p.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.C.removeNode=g.hZ;g.C.getChildren=function(p){return p.children}; g.C.contains=g.n3;g.C.isFocusable=MH;var uwM=class{constructor(){this.L=this.Ft=null}};var OR$=class{now(){return 0}S(){return 0}U(){return 0}L(){return 0}};var kbA=class extends OR${constructor(){super();if(!P7())throw Error();}now(){return P7()&&bn.performance.now?bn.performance.now():super.now()}S(){return P7()&&bn.performance.memory?bn.performance.memory.totalJSHeapSize||0:super.S()}U(){return P7()&&bn.performance.memory?bn.performance.memory.usedJSHeapSize||0:super.U()}L(){return P7()&&bn.performance.memory?bn.performance.memory.jsHeapSizeLimit||0:super.L()}};var zQr=XKh("AnimationEnd"),LH=XKh("TransitionEnd");g.C=Wa.prototype;g.C.getHeight=function(){return this.bottom-this.top}; g.C.clone=function(){return new Wa(this.top,this.right,this.bottom,this.left)}; g.C.contains=function(p){return this&&p?p instanceof Wa?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1}; g.C.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.C.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.C.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.C.scale=function(p,a){a=typeof a==="number"?a:p;this.left*=p;this.right*=p;this.top*=a;this.bottom*=a;return this};g.C=g.hu.prototype;g.C.clone=function(){return new g.hu(this.left,this.top,this.width,this.height)}; g.C.contains=function(p){return p instanceof g.g3?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height}; g.C.getSize=function(){return new g.J9(this.width,this.height)}; g.C.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.C.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.C.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.C.scale=function(p,a){a=typeof a==="number"?a:p;this.left*=p;this.width*=p;this.top*=a;this.height*=a;return this};var W5={};var h8M=Uy(()=>{let p=!1;try{const a=Object.defineProperty({},"passive",{get(){p=!0}});g.mm.addEventListener("test",null,a)}catch(a){}return p});var M5f=class{isVisible(){return kL(P1)===1}};var uth=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)"),O3M=class{constructor(p,a,l){this.L=p;this.S=a;this.U=l}},Z0M=class{constructor(p,a){this.url=p;this.L=!!a;this.depth=null}};var os=class{constructor(){this.U="&";this.S={};this.j=0;this.L=[]}G9(p,a,l){p=p+"//"+a+l;var y=L1q(this)-l.length;if(y<0)return"";this.L.sort((S,n)=>S-n); l=null;a="";for(let S=0;S=z.length){y-=z.length;p+=z;a=this.U;break}l=l==null?n:l}}}y="";l!=null&&(y=`${a}${"trn"}=${l}`);return p+y}};var d2=class{constructor(p,a){this.L=p;this.depth=a}},AZE=()=>{var p=KW();const a=Math.max(p.length-1,0);var l=keF(p);p=l.L;var y=l.S;const S=l.U,n=[];l=(Z,z)=>Z==null?z:Z; S&&n.push(new d2([S.url,S.L?2:0],l(S.depth,1)));y&&y!=S&&n.push(new d2([y.url,2],0));p.url&&p!=S&&n.push(new d2([p.url,0],l(p.depth,a)));const V=g.Nx(n,(Z,z)=>n.slice(0,n.length-z)); !p.url||(S||y)&&p!=S||(y=/https?:\/\/[^\/]+/.exec(p.url)?.[0]??"")&&V.push([new d2([y,1],l(p.depth,a))]);V.push([]);return g.Nx(V,Z=>oVh(a,Z))};var OJh=EI(p=>typeof p==="number"),BQM=EI(p=>typeof p==="string"),Gv=EI(p=>p!=null&&typeof p==="object"&&typeof p.then==="function"),mWo=EI(p=>!!p&&(typeof p==="object"||typeof p==="function"));var BUv={Rj:"allow-forms",kh:"allow-modals",t1:"allow-orientation-lock",uL:"allow-pointer-lock",GK:"allow-popups",nZ:"allow-popups-to-escape-sandbox",aj:"allow-presentation",M_:"allow-same-origin",rk:"allow-scripts",TK:"allow-top-navigation",pZ:"allow-top-navigation-by-user-activation"},RrZ=Uy(()=>ctE());var ND=p=>{const a="Wl";if(p.Wl&&p.hasOwnProperty(a))return p.Wl;const l=new p;p.Wl=l;p.hasOwnProperty(a);return l};var BFA=class{constructor(){this.S=new M5f;this.L=P7()?new kbA:new OR$}setInterval(p,a){return bn.setInterval(p,a)}clearInterval(p){bn.clearInterval(p)}setTimeout(p,a){return bn.setTimeout(p,a)}clearTimeout(p){bn.clearTimeout(p)}};var Gpq=class{};var zi=!0,oB,kIA;var FGF={},ZY=null;var MN=/[-_.]/g,E0O={"-":"+",_:"/",".":"="},tI={};var hB=class{isEmpty(){return this.L==null}sizeBytes(){const p=Ra(this);return p?p.length:0}constructor(p,a){jv(a);this.L=p;if(p!=null&&p.length===0)throw Error("ByteString should be constructed with non-empty values");}},qOf;var CSo=void 0;var rD=Xc("jas",!0),qG=Xc(),Ok=Xc(),t5f=Xc(),rxh=Xc(),pdM=Xc(),fxO=Xc(),Ek=Xc("m_m",!0),jwo=Xc(),jFM=Xc();[...Object.values({wY:1,EW:2,fR:4,ef:8,tlV:16,Y5:32,Vx:64,gb:128,Ck:256,Nv:512,hW:1024,b9:2048,LA:4096})];var wW,W9E=[];W9E[rD]=7;wW=Object.freeze(W9E);var CU={},tF={},kKF=Object.freeze({}),ca={},AV={};var qk=EI(p=>p>=HRv&&p<=DWq),HRv=BigInt(Number.MIN_SAFE_INTEGER),DWq=BigInt(Number.MAX_SAFE_INTEGER);var a1=0,yB=0,pNA;var C1=typeof BigInt==="function"?BigInt.asIntN:void 0,ukO=typeof BigInt==="function"?BigInt.asUintN:void 0,KT=Number.isSafeInteger,Cu=Number.isFinite,vD=Math.trunc,QDr=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Wvv={};var on=class{},iRE={Ok:!0};var Vy;var BZ,cZ;var NNM=EB(0),sF={};var R7=class{constructor(p,a,l){this.buffer=p;if(l&&!a)throw Error();this.L=a}};var TaF=class{constructor(p,a,l,y){this.S=null;this.D=!1;this.X=null;this.L=this.U=this.j=0;this.init(p,a,l,y)}init(p,a,l,{t8:y=!1,C2:S=!1}={}){this.t8=y;this.C2=S;p&&(p=u4(p,this.C2),this.S=p.buffer,this.D=p.L,this.X=null,this.j=a||0,this.U=l!==void 0?this.j+l:this.S.length,this.L=this.j)}free(){this.clear();GM.length<100&&GM.push(this)}clear(){this.S=null;this.D=!1;this.X=null;this.L=this.U=this.j=0;this.t8=!1}reset(){this.L=this.j}},GM=[];var rGh=class{constructor(p,a,l,y){if(GM.length){const S=GM.pop();S.init(p,a,l,y);p=S}else p=new TaF(p,a,l,y);this.L=p;this.j=this.L.L;this.S=this.U=-1;d3(this,y)}free(){this.L.clear();this.S=this.U=-1;XL.length<100&&XL.push(this)}reset(){this.L.reset();this.j=this.L.L;this.S=this.U=-1}},XL=[];var Naq=class{constructor(){if(ca!==ca)throw Error();}};var m3=class{constructor(p,a){this.S=p>>>0;this.L=a>>>0}},AlE,f8=class{constructor(p,a){this.S=p>>>0;this.L=a>>>0}},JP;var sFM=class{constructor(){this.L=[]}length(){return this.L.length}end(){const p=this.L;this.L=[];return p}};var CCM=class{constructor(){this.U=[];this.S=0;this.L=new sFM}};var ke=zk(),UWO=zk(),BS=zk(),cS=zk(),QFM=zk(),hAf=zk(),r2=zk(),ALr=zk(),w2=zk(),gEM=zk(),Yyf=zk();var U6=class{constructor(p,a,l){this.DI=q3E(p,a,l)}toJSON(){return tM(this)}Lq(p){return JSON.stringify(tM(this,p))}clone(){const p=this.DI,a=p[rD]|0;return uO(this,p,a)?O7(this,p,!0):new this.constructor(km(p,a,!1))}};U6.prototype[Ek]=CU;U6.prototype.toString=function(){return this.DI.toString()};var q$=class{constructor(p,a,l){this.mq=p;this.NP=a;p=ut(ke);this.L=!!p&&l===p||!1}},vRM=MM(function(p,a,l,y,S){if(p.S!==2)return!1;Jm(p,Fg(a,y,l),S);return!0},j5f),Kqv=MM(function(p,a,l,y,S){if(p.S!==2)return!1; Jm(p,Fg(a,y,l),S);return!0},j5f),AO=Symbol(),V9=Symbol(),ZJ=Symbol(),Sj$=Symbol(),rEr=Symbol(),cx,re;var qyo=Jk(function(p,a,l){if(p.S!==1)return!1;n$(a,l,Mu(p.L));return!0},jH,w2),JLM=Jk(function(p,a,l,y){if(p.S!==1)return!1; HN(a,l,y,Mu(p.L));return!0},jH,w2),$M=Jk(function(p,a,l){if(p.S!==0)return!1; n$(a,l,kr(p.L));return!0},Kq,r2),fhE=Jk(function(p,a,l,y){if(p.S!==0)return!1; HN(a,l,y,kr(p.L));return!0},Kq,r2),PS=Jk(function(p,a,l){if(p.S!==0)return!1; n$(a,l,Hf(p.L));return!0},uR,cS),pxf=Jk(function(p,a,l,y){if(p.S!==0)return!1; HN(a,l,y,Hf(p.L));return!0},uR,cS),aK$=Jk(function(p,a,l){if(p.S!==1)return!1; n$(a,l,rU(p.L));return!0},function(p,a,l){KVo(p,l,Ohv(a))},ALr),lKv=Z5(function(p,a,l){if(p.S!==1&&p.S!==2)return!1; a=eJ(a,a[rD]|0,l);if(p.S==2)for(l=Hf(p.L)>>>0,l=p.L.L+l;p.L.L>>0);return!0},function(p,a,l){a=hI(a); a!=null&&a!=null&&(qc(p,l,0),TS(p.L,a))},QFM),vS=Jk(function(p,a,l){if(p.S!==0)return!1; n$(a,l,Hf(p.L));return!0},function(p,a,l){a=v5(a); a!=null&&(a=parseInt(a,10),qc(p,l,0),XiZ(p.L,a))},Yyf);var z0f=new Map,dnr=class extends Naq{constructor(p,a){super();this.typeName=p;this.L=a;if(ca!==ca)throw Error();z0f.set(p,this)}};var Ber=class{constructor(p){var a=GOq;this.L=p;this.isRepeated=0;this.S=Ke;this.defaultValue=void 0;this.U=a.messageId!=null?AV:void 0}register(){TI(this)}};var b9h=class extends U6{constructor(p){super(p)}};b9h.prototype.S=vVh([0,Jk(function(p,a,l){if(p.S!==1)return!1;p=Mu(p.L);n$(a,l,p===0?void 0:p);return!0},jH,w2), Jk(function(p,a,l){if(p.S!==0)return!1;p=kr(p.L);n$(a,l,p===0?void 0:p);return!0},Kq,r2), -2,Jk(function(p,a,l){if(p.S!==0)return!1;p=Hf(p.L);n$(a,l,p===0?void 0:p);return!0},uR,cS)]);var cbE=class{constructor(p){this.U=p;this.L=-1;this.S=this.j=0}};var rbf=class{constructor(p,a){this.S=p;this.U=a;this.L=new cbE(p)}};var wxE=class{constructor(){this.L={}}Zy(p){const a=this.L[p.key];if(p.valueType==="proto"){try{const l=JSON.parse(a);if(Array.isArray(l))return l}catch(l){}return p.defaultValue}return typeof a===typeof p.defaultValue?a:p.defaultValue}};var $nq={nA:1,gO:2,Pu:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};var s1v=class{constructor(){this.U=void 0;this.S=this.D=0;this.X=-1;this.AP=new F9$;fk(this.AP,"mv",X7r).L=!0;fk(this.AP,"omid",Sz);fk(this.AP,"epoh",Sz).L=!0;fk(this.AP,"epph",Sz).L=!0;fk(this.AP,"umt",Sz).L=!0;fk(this.AP,"phel",Sz).L=!0;fk(this.AP,"phell",Sz).L=!0;fk(this.AP,"oseid",$nq).L=!0;var p=this.AP;p.L.sloi||(p.L.sloi=new xWf);p.L.sloi.L=!0;fk(this.AP,"mm",yQ);fk(this.AP,"ovms",Pur).L=!0;fk(this.AP,"xdi",Sz).L=!0;fk(this.AP,"amp",Sz).L=!0;fk(this.AP,"prf",Sz).L=!0;fk(this.AP,"gtx",Sz).L= !0;fk(this.AP,"mvp_lv",Sz).L=!0;fk(this.AP,"ssmol",Sz).L=!0;fk(this.AP,"fmd",Sz).L=!0;fk(this.AP,"gen204simple",Sz);this.L=new rbf(C$(),this.AP);this.j=!1;this.flags=new wxE}Md(p){if(typeof p==="string"&&p.length!=0){var a=this.AP;if(a.S){p=p.split("&");for(let S=p.length-1;S>=0;S--){var l=p[S].split("="),y=decodeURIComponent(l[0]);l.length>1?(l=decodeURIComponent(l[1]),l=/^[0-9]+$/g.exec(l)?parseInt(l,10):l):l=1;(y=a.L[y])&&y.U(l)}}}}};var PaF=class{constructor(){let p="https:";bn&&bn.location&&bn.location.protocol==="http:"&&(p="http:");this.S=p;this.L=.01}};var L$h=class{constructor(p,a){this.error=p;this.meta={};this.context=a.context;this.msg=a.message||"";this.id=a.id||"jserror"}};var KL=null;var XxA=class{constructor(p,a,l){this.label=p;this.type=a;this.value=l;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}};var T0=g.mm.performance,xno=!!(T0&&T0.mark&&T0.measure&&T0.clearMarks),NJ=Uy(()=>{var p;if(p=xno){var a;p=window;if(KL===null){KL="";try{let l="";try{l=p.top.location.hash}catch(y){l=p.location.hash}l&&(KL=(a=l.match(/\bdeid=([\d,]+)/))?a[1]:"")}catch(l){}}a=KL;p=!!a.indexOf&&a.indexOf("1337")>=0}return p});var zrO=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Xt=/#|$/,jPr=/[?&]($|#)/;var F$F=class{constructor(p=null){this.L=rg;this.ZG="jserror";this.HY=!0;this.kF=null;this.S=this.UD;this.xE=p}UD(p,a,l,y,S){S=S||this.ZG;let n;try{const c=new os;var V=c;V.L.push(1);V.S[1]=m4("context",p);a.error&&a.meta&&a.id||(a=new Rxo(QT(a)));V=a;if(V.msg){a=c;var Z=V.msg.substring(0,512);a.L.push(2);a.S[2]=m4("msg",Z)}var z=V.meta||{};Z=z;if(this.kF)try{this.kF(Z)}catch(w){}if(y)try{y(Z)}catch(w){}y=c;z=[z];y.L.push(3);y.S[3]=z;n=keF();if(n.S){z=c;var d=n.S.url||"";z.L.push(4);z.S[4]=m4("top", d)}var G={url:n.L.url||""};if(n.L.url){const w=g.hq(n.L.url);var B=SP(w[1],null,w[3],w[4])}else B="";d=c;G=[G,{url:B}];d.L.push(5);d.S[5]=G;emr(this.L,S,c,l)}catch(c){try{emr(this.L,S,{context:"ecmserr",rctx:p,msg:QT(c),url:n&&n.L.url},l)}catch(w){}}return this.HY}},Rxo=class extends L$h{constructor(p){super(Error(p),{message:p})}};var rg,eZ,ez=new class{constructor(p,a){this.events=[];this.S=a||g.mm;let l=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.events=a.google_js_reporting_queue,l=a.google_measure_js_timing);this.L=NJ()||(l!=null?l:Math.random()2048||this.events.push(p)}}}(1,window),E8q=()=>{bn&&typeof bn.google_measure_js_timing!="undefined"&&(bn.google_measure_js_timing||ez.disable())}; rg=new PaF;eZ=new F$F(ez);bn&&bn.document&&(bn.document.readyState=="complete"?E8q():ez.L&&Lw(bn,"load",()=>{E8q()})); var EVq=(p,a)=>{eZ.UD(538,p,.01,a)},QSF=(p,a)=>uME(eZ,p,a),e3v=p=>{eZ.kF=a=>{g.Ir(p,l=>{l(a)})}},vQ=(p,a)=>zl(p,a);var cg=Date.now(),B0=-1,dd=-1,MMv,c0=-1,GD=!1;var di$=class{constructor(p,a,l){var y=new Wa(0,0,0,0);this.time=p;this.volume=null;this.U=a;this.L=y;this.S=l}equals(p,a=!1){return!!p&&(!a||this.volume==p.volume)&&this.U==p.U&&ay(this.L,p.L)&&!0}};var Ca$=class{constructor(p,a,l,y,S,n,V,Z){this.j=p;this.G=a;this.U=l;this.D=y;this.L=S;this.X=n;this.S=V;this.K=Z}Wa(){return this.G}equals(p,a=!1){return this.j.equals(p.j,a)&&this.G==p.G&&ay(this.U,p.U)&&ay(this.D,p.D)&&this.L==p.L&&this.X==p.X&&this.S==p.S&&this.K==p.K}};var v8E={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Zs={fL:"start",f7:"firstquartile",q4:"midpoint",eL:"thirdquartile",COMPLETE:"complete",ERROR:"error",Zi:"metric",PAUSE:"pause",jL:"resume",Xi:"skip",Wc:"viewable_impression",z7:"mute",wO:"unmute",e9:"fullscreen",Xo:"exitfullscreen",VX:"bufferstart",PD:"bufferfinish",E$:"fully_viewable_audible_half_duration_impression",Jb:"measurable_impression",Iu:"abandon",j9:"engagedview",gU:"impression",Nh:"creativeview",LOADED:"loaded", Tt:"progress",CLOSE:"close",qn:"collapse",b0:"overlay_resize",B3:"overlay_unmeasurable_impression",Qj:"overlay_unviewable_impression",l0:"overlay_viewable_immediate_impression",Dx:"overlay_viewable_end_of_session_impression",YX:"custom_metric_viewable",iV:"audio_audible",ou:"audio_measurable",ZL:"audio_impression"},cvO="start firstquartile midpoint thirdquartile resume loaded".split(" "),rvO=["start","firstquartile","midpoint","thirdquartile"],Q1M=["abandon"],ZK={UNKNOWN:-1,fL:0,f7:1,q4:2,eL:3,COMPLETE:4, Zi:5,PAUSE:6,jL:7,Xi:8,Wc:9,z7:10,wO:11,e9:12,Xo:13,E$:14,Jb:15,Iu:16,j9:17,gU:18,Nh:19,LOADED:20,YX:21,VX:22,PD:23,ZL:27,ou:28,iV:29};var Ax$={gk:"addEventListener",LB:"getMaxSize",Sm:"getScreenSize",UL:"getState",jm:"getVersion",w_:"removeEventListener",dY:"isViewable"};var JPM=()=>{const p=window.document;return p&&typeof p.elementFromPoint==="function"};var sb=(p,a)=>{a=Math.pow(10,a);return Math.floor(p*a)/a};var aIE=class{constructor(){this.U=!hP(bn.top);this.isMobileDevice=N5()||sL();const p=KW();this.domain=p.length>0&&p[p.length-1]!=null&&p[p.length-1].url!=null?g.TX(p[p.length-1].url)||"":"";this.L=new Wa(0,0,0,0);this.j=new g.J9(0,0);this.X=new g.J9(0,0);this.G=new Wa(0,0,0,0);this.frameOffset=new g.g3(0,0);this.D=0;this.K=!1;this.S=!(!bn||!HQ(bn).E9);this.update(bn)}update(p){p&&p.document&&(this.G=Ha(!1,p,this.isMobileDevice),this.L=Ha(!0,p,this.isMobileDevice),po(this,p),E_$(this,p))}};var K$o=class{constructor(p){this.U=p;this.S=0;this.L=null}cancel(){C$().clearTimeout(this.L);this.L=null}schedule(){const p=C$(),a=QH().L.L;this.L=p.setTimeout(a8(a,vQ(143,()=>{this.S++;this.U.sample()})),O0Z())}};var bP=class{constructor(p,a,l="na"){this.U=p;this.NO=l;this.X=[];this.isInitialized=!1;this.j=new di$(-1,!0,this);this.L=this;this.N=a;this.Ws=this.Sl=!1;this.Ic="uk";this.Hs=!1;this.G=!0}jl(){return!1}initialize(){return this.isInitialized=!0}C(){return this.L.Ic}w7(){return this.L.Ws}fail(p,a=!1){if(!this.Ws||a)this.Ws=!0,this.Ic=p,this.N=0,this.L!=this||VW(this)}getName(){return this.L.NO}HI(){return this.L.Tm()}Tm(){return{}}oi(){return this.L.N}Rc(){var p=nP();p.L=Ha(!0,this.U,p.isMobileDevice)}ac(){E_$(nP(), this.U)}iT(){return this.j.L}sample(){}isActive(){return this.L.G}UO(p){const a=this.L;this.L=p.oi()>=this.N?p:this;a!==this.L?(this.G=this.L.G,VW(this)):this.G!==this.L.G&&(this.G=this.L.G,VW(this))}D(p){if(p.S===this.L){const a=!this.j.equals(p,this.Sl);this.j=p;a&&g2o(this)}}x$(){return this.Sl}dispose(){this.Hs=!0}nz(){return this.Hs}};var e0r=class{constructor(p,a,l,y){this.element=p;this.L=new Wa(0,0,0,0);this.U=null;this.N=new Wa(0,0,0,0);this.S=a;this.AP=l;this.iT=y;this.Rc=!1;this.timestamp=-1;this.QY=new Ca$(a.j,this.element,this.L,new Wa(0,0,0,0),0,0,Date.now()-cg,0);this.K=void 0}observe(){return!0}unobserve(){}G(p){this.K=p}dispose(){if(!this.nz()){var p=this.S;g.yA(p.X,this);p.Sl&&this.x$()&&kFM(p);this.unobserve();this.Rc=!0}}nz(){return this.Rc}HI(){return this.S.HI()}oi(){return this.S.oi()}C(){return this.S.C()}w7(){return this.S.w7()}UO(){}D(){this.X()}x$(){return this.iT}};var IR=class{constructor(p){this.K=!1;this.L=p;this.G=()=>{}}oi(){return this.L.oi()}C(){return this.L.C()}w7(){return this.L.w7()}create(p,a,l){let y=null; this.L&&(y=this.j(p,a,l),Pt(this.L,y));return y}N(){return this.U()}U(){return!1}init(p){return this.L.initialize()?(Pt(this.L,this),this.G=p,!0):!1}UO(p){p.oi()==0&&this.G(p.C(),this)}D(){}x$(){return!1}dispose(){this.K=!0}nz(){return this.K}HI(){return{}}};var bEe=class{constructor(p,a,l=0){this.U=l;this.S=p;this.L=a==null?"":a}};var UX=class{constructor(){this.U=0;this.L=[];this.S=!1}add(p,a,l){++this.U;p=new bEe(p,a,l);this.L.push(new bEe(p.S,p.L,p.U+this.U/4096));this.S=!0;return this}};var F3q=p=>{const a=p.S;p=p.L;return p===""?a:typeof p==="boolean"?p?a:"":Array.isArray(p)?p.length===0?a:`${a}=${p.join()}`:`${a}=${g.tU(["mtos","tos","p"],a)?p:encodeURIComponent(p)}`};var ekA=class{constructor(p){this.L=new UX;p!==void 0&&eHO(this.L,p);this.L.add("v","unreleased",-16)}toString(){let p="//pagead2.googlesyndication.com//pagead/gen_204";const a=NG(this.L);a.length>0&&(p+="?"+a);return p}};var bcr=p=>{const a=[],l=[];g.yo(p,(y,S)=>{if(!(S in Object.prototype)&&typeof y!="undefined")switch(Array.isArray(y)&&(y=y.join(",")),y=[S,"=",y].join(""),S){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":a.unshift(y);break;case "req":case "url":case "referrer":case "iframe_loc":l.push(y);break;default:a.push(y)}}); return a.concat(l)},ydq=p=>{p=p.toString(); C$();Rg(p)};var KUr=class{constructor(){this.L=0}};g.YB.prototype.Em=!1;g.YB.prototype.nz=function(){return this.Em}; g.YB.prototype.dispose=function(){this.Em||(this.Em=!0,this.fz())}; g.YB.prototype[Symbol.dispose]=function(){this.dispose()}; g.YB.prototype.addOnDisposeCallback=function(p,a){this.Em?a!==void 0?p.call(a):p():(this.Xq||(this.Xq=[]),a&&(p=p.bind(a)),this.Xq.push(p))}; g.YB.prototype.fz=function(){if(this.Xq)for(;this.Xq.length;)this.Xq.shift()()};var IKh=[0,$M,ybM,-1];var RR=class{constructor(){this.S=this.U=this.j=this.L=0}update(p,a,l=!p){p&&(this.L+=a,this.S+=a,this.j+=a,this.U=Math.max(this.U,this.j));l&&(this.j=0)}};var R0f=[1,.75,.5,.3,0],uP=class{constructor(p=R0f){this.S=p;this.L=g.Nx(this.S,()=>new RR)}update(p,a,l,y,S,n=!0){a=S?Math.min(p,a):a; for(S=0;S0&&a>=V;V=!(p>0&&p>=V)||l;this.L[S].update(n&&Z,y,!n||V)}}};var uGq=class{constructor(){this.S=new uP;this.Bs=this.QY=0;this.Rc=new RR;this.N=this.G=-1;this.Tm=1E3;this.iT=new uP([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.w7=this.Sl=-1}update(p,a,l,y){this.G=this.G!=-1?Math.min(this.G,a.ph):a.ph;this.N=Math.max(this.N,a.ph);this.Sl=this.Sl!=-1?Math.min(this.Sl,a.xz):a.xz;this.w7=Math.max(this.w7,a.xz);this.iT.update(a.xz,l.xz,a.L,p,y);this.QY+=p;a.ph===0&&(this.Bs+=p);this.S.update(a.ph,l.ph,a.L,p,y);l=y||l.kt!=a.kt?l.isVisible()&&a.isVisible():l.isVisible(); a=!a.isVisible()||a.L;this.Rc.update(l,p,a)}SQ(){return this.Rc.U>=this.Tm}};if(P1&&P1.URL){var OEv=P1.URL,OR;a:{if(OEv){var kOf=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{const p=kOf.exec(decodeURIComponent(OEv));if(p){OR=p[1]&&p[1].length>1?p[1].substring(1):"true";break a}}catch{}}OR=""}eZ.HY=!(OR.length>0)}var aN=(p,a,l,y)=>{l=zl(y,l);Lw(p,a,l,{capture:!1})};var MJf=new Wa(0,0,0,0);var mnO=new Wa(0,0,0,0),tJr=class extends g.YB{constructor(p,a){super();this.position=mnO.clone();this.Bz=this.DJ();this.BS=-2;this.timeCreated=Date.now();this.Pq=-1;this.uc=a;this.jO=null;this.zW=!1;this.Oc=null;this.opacity=-1;this.requestSource=7;this.rB=!1;this.AM=()=>{}; this.WD=()=>{}; this.QZ=new uwM;this.QZ.Ft=p;this.QZ.L=p;this.iA=!1;this.Vi={rg:null,Mp:null};this.dZ=!0;this.VI=null;this.bj=this.iy=!1;QH().D++;this.eE=this.SY();this.Jh=-1;this.Je=null;this.hasCompleted=this.pu=!1;this.AP=new F9$;EEE(this.AP);XDf(this);this.requestSource==1?gB(this.AP,"od",1):gB(this.AP,"od",0)}fz(){if(this.QZ.L){if(this.Vi.rg){var p=this.QZ.L;typeof p.removeEventListener==="function"&&p.removeEventListener("mouseover",this.Vi.rg,Qj());this.Vi.rg=null}this.Vi.Mp&&(p=this.QZ.L,typeof p.removeEventListener=== "function"&&p.removeEventListener("mouseout",this.Vi.Mp,Qj()),this.Vi.Mp=null)}this.VI&&this.VI.dispose();this.Je&&this.Je.dispose();delete this.Bz;delete this.AM;delete this.WD;delete this.QZ.Ft;delete this.QZ.L;delete this.Vi;delete this.VI;delete this.Je;delete this.AP;super.fz()}kp(){return this.Je?this.Je.L:this.position}Md(p){QH().Md(p)}x$(){return!1}DJ(){return new uGq}Jo(){return this.Bz}fD(p){return jWr(this,p,1E4)}J9(p,a,l,y,S,n,V){this.iA||(this.zW&&(p=this.pF(p,l,S,V),y=y&&this.eE.ph>= (this.kt()?.3:.5),this.YK(n,p,y),this.uc=a,p.ph>0&&-1===this.Jh&&(this.Jh=a),this.Pq==-1&&this.SQ()&&(this.Pq=a),this.BS==-2&&(this.BS=qi(this.kp())?p.ph:-1),this.eE=p),this.AM(this))}YK(p,a,l){this.Jo().update(p,a,this.eE,l)}SY(){return new L9F}pF(p,a,l,y){l=this.SY();l.L=a;a=C$().S;a=kL(P1)===0?-1:a.isVisible()?0:1;l.S=a;l.ph=this.h8(p);l.kt=this.kt();l.xz=y;return l}h8(p){return this.opacity===0&&VK(this.AP,"opac")===1?0:p}kt(){return!1}l5(){return this.pu||this.iy}Vu(){Date.now()}Oo(){Date.now()}gX(){return 0}SQ(){return this.Bz.SQ()}bI(){var p= this.zW;p=(this.hasCompleted||this.nz())&&!p;const a=QH().S!==2||this.rB;return this.iA||a&&p?2:this.SQ()?4:3}eN(){return 0}};g.WK.prototype.next=function(){return g.kM}; g.kM={done:!0,value:void 0};g.WK.prototype.q5=function(){return this};var jGE=class{constructor(){this.j=this.L=this.U=this.S=this.X=0}};var W$o=class extends L9F{constructor(){super();this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}};var HEo=p=>a=>{for(let l=0;ll?g.B4(p,(y,S)=>g.tU(a,S)):g.Nx(a,(y,S,n)=>p.slice(S>0?n[S-1]+1:0,y+1).reduce((V,Z)=>V+Z,0)),MF=(p,a,l=!0,y=()=>!0)=>S=>{const n=S[p]; if(Array.isArray(n)&&y(S))return DnM(n,a,l)},mz=(p,a)=>l=>a(l)?l[p]:void 0;var t1=HEo([void 0,1,2,3,4,8,16]),jz=HEo([void 0,4,8,16]),iEr={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:mz("p0",jz),p1:mz("p1",jz),p2:mz("p2",jz),p3:mz("p3",jz),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:MF("mtos1",[0,2,4],!1,jz),mtos2:MF("mtos2",[0,2,4],!1,jz),mtos3:MF("mtos3",[0,2,4],!1,jz),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:mz("a0",jz),a1:mz("a1",jz),a2:mz("a2",jz),a3:mz("a3",jz),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:mz("c0",jz),c1:mz("c1",jz),c2:mz("c2",jz),c3:mz("c3",jz),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:mz("qmtos",t1),qnc:mz("qnc",t1),qmv:mz("qmv",t1),qnv:mz("qnv",t1), 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:mz("ss0",jz),ss1:mz("ss1",jz),ss2:mz("ss2",jz),ss3:mz("ss3",jz),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"},Teq=Object.assign({},iEr,{avid:Dh("audio"),avas:"avas",vs:"vs"}),Neh={atos:"atos",avt:MF("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:((p,a)=>l=>l[p]===void 0&&a!==void 0?a:l[p])("ss",0), t:"t"};var sGZ=class{constructor(){this.S=this.L=""}};var UnO=class{};var QGE=class{constructor(){this.S={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.L={};for(const p in this.S)this.S[p][1]>0&&(this.L[p]=0);this.U=0}};var WS=class{constructor(){this.L=this.S=0}getValue(){return this.S}update(p,a){p>=32||(this.L&1<=.5;Tp(a.volume)&&(this.j=this.j!=-1?Math.min(this.j,a.volume):a.volume,this.D=Math.max(this.D,a.volume));n&&(this.jl+=p,this.C+=S?p:0);this.L.update(a.ph,l.ph,a.L,p,y,S); this.U.update(!0,p);this.X.update(S,p);this.UO.update(l.fullscreen,p);this.Ps.update(S&&!n,p);p=Math.floor(a.mediaTime/1E3);this.Ws.update(p,a.isVisible());this.Ic.update(p,a.ph>=1);this.ac.update(p,Jt(a))}}};var Abr=class{constructor(){this.X=!1}S(p){this.X||(this.L(p)?(p=vH(this.C,this.U,p),this.j|=p,p=p==0):p=!1,this.X=p)}};var HS=class extends Abr{constructor(p,a){super();this.U=p;this.C=a;this.j=0}L(){return!0}D(){return!1}getId(){const p=VT(Zs,a=>a==this.U); return ZK[p].toString()}toString(){let p="";this.D()&&(p+="c");this.X&&(p+="s");this.j>0&&(p+=`:${this.j}`);return this.getId()+p}};var g8$=class extends HS{constructor(p,a){super(p,a);this.G=[]}S(p,a=null){a!=null&&this.G.push(a);super.S(p)}};var YDE=class{};var D7=class extends YDE{S(){return null}U(){return[]}};var iP=class extends e0r{Ws(){if(this.element){var p=this.element,a=this.S.L.U;try{try{var l=$rM(p.getBoundingClientRect())}catch(d){l=new Wa(0,0,0,0)}const S=l.right-l.left,n=l.bottom-l.top,V=sNE(p,a),Z=V.x,z=V.y;var y=new Wa(Math.round(z),Math.round(Z+S),Math.round(z+n),Math.round(Z))}catch(S){y=MJf.clone()}this.U=y;this.L=wYE(this,this.U)}}ac(){this.N=this.S.j.L}Tm(p){const a=VK(this.AP,"od")==1;return hmr(p,this.N,this.element,a)}Ic(){this.timestamp=Date.now()-cg}X(){this.Ic();this.Ws();if(this.element&& typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var p=this.element;var a=new g.J9(p.videoWidth,p.videoHeight);p=this.L;var l=fU(p),y=p.getHeight(),S=a.width;a=a.height;S<=0||a<=0||l<=0||y<=0||(S/=a,a=l/y,p=p.clone(),S>a?(l/=S,y=(y-l)/2,y>0&&(y=p.top+y,p.top=Math.round(y),p.bottom=Math.round(y+l))):(y*=S,l=Math.round((l-y)/2),l>0&&(l=p.left+l,p.left=Math.round(l),p.right=Math.round(l+y))));this.L=p}this.ac();p=this.L;l=this.N;p=p.left<=l.right&&l.left<=p.right&& p.top<=l.bottom&&l.top<=p.bottom?new Wa(Math.max(p.top,l.top),Math.min(p.right,l.right),Math.min(p.bottom,l.bottom),Math.max(p.left,l.left)):new Wa(0,0,0,0);l=p.top>=p.bottom||p.left>=p.right?new Wa(0,0,0,0):p;p=this.S.j;a=S=y=0;(this.L.bottom-this.L.top)*(this.L.right-this.L.left)>0&&(this.Tm(l)?l=new Wa(0,0,0,0):(y=nP().j,a=new Wa(0,y.height,y.width,0),y=m9(l,this.K??this.L),S=m9(l,nP().L),a=m9(l,a)));l=l.top>=l.bottom||l.left>=l.right?new Wa(0,0,0,0):fl(l,-this.L.left,-this.L.top);E$()||(S=y=0); this.QY=new Ca$(p,this.element,this.L,l,y,S,this.timestamp,a)}getName(){return this.S.getName()}};var qDr=new Wa(0,0,0,0),JbF=class extends iP{constructor(p,a,l){super(null,p,a,l);this.jl=p.isActive();this.Sl=0}observe(){this.j();return!0}D(){super.X()}Ic(){}Ws(){}X(){this.j();super.X()}UO(p){p=p.isActive();p!==this.jl&&(p?this.j():(nP().L=new Wa(0,0,0,0),this.L=new Wa(0,0,0,0),this.N=new Wa(0,0,0,0),this.timestamp=-1));this.jl=p}};var tar={firstquartile:0,midpoint:1,thirdquartile:2,complete:3},fKf=class extends tJr{constructor(p,a,l,y=new D7){super(p,a);this.vj=l;this.gi=0;this.b_={};this.o9=new QGE;this.AV={};this.fC="";this.Ic=null;this.Fu=!1;this.L=[];this.jQ=y.S();this.D=y.U();this.j=null;this.U=-1;this.Hs=this.UO=void 0;this.Sl=this.N=0;this.Ws=-1;this.iT=this.Tm=!1;this.w7=this.C=this.S=this.PC=this.NO=0;new uP;this.QY=this.Rc=0;this.ac=-1;this.Ak=0;this.K=g.a$;this.jl=[this.DJ()];this.E6=2;this.PA={};this.PA.pause="p"; this.PA.resume="r";this.PA.skip="s";this.PA.mute="m";this.PA.unmute="um";this.PA.exitfullscreen="ef";this.X=null;this.Ps=this.VY=!1;this.Lx=Math.floor(Date.now()/1E3-1704067200);this.Bs=0}x$(){return!0}jr(){return this.Ak==2}fD(p){return jWr(this,p,Math.max(1E4,this.U/3))}J9(p,a,l,y,S,n,V){const Z=this.K(this)||{};g.C0(Z,S);this.U=Z.duration||this.U;this.UO=Z.isVpaid||this.UO;this.Hs=Z.isYouTube||this.Hs;C$();this.Ps=!1;S=RHZ(this,a);Z_(this)===1&&(n=S);super.J9(p,a,l,y,Z,n,V);this.jQ&&this.jQ.X&& g.Ir(this.D,z=>{z.S(this)})}YK(p,a,l){super.YK(p,a,l); sQ(this).update(p,a,this.eE,l);this.iT=Jt(this.eE)&&Jt(a);this.Ws==-1&&this.Tm&&(this.Ws=this.Jo().U.L);this.o9.U=0;p=this.SQ();a.isVisible()&&nr(this.o9,"vs");p&&nr(this.o9,"vw");Tp(a.volume)&&nr(this.o9,"am");Jt(a)?nr(this.o9,"a"):nr(this.o9,"mut");this.bj&&nr(this.o9,"f");a.S!=-1&&(nr(this.o9,"bm"),a.S==1&&(nr(this.o9,"b"),Jt(a)&&nr(this.o9,"umutb")));Jt(a)&&a.isVisible()&&nr(this.o9,"avs");this.iT&&p&&nr(this.o9,"avw");a.ph>0&&nr(this.o9,"pv");SN(this,this.Jo().U.L,!0)&&nr(this.o9,"gdr");qE(this.Jo().S, 1)>=2E3&&nr(this.o9,"pmx");this.Ps&&nr(this.o9,"tvoff")}DJ(){return new h0E}Jo(){return this.Bz}SY(){return new W$o}pF(p,a,l,y=-1){p=super.pF(p,a,l,y);p.fullscreen=this.bj;p.paused=this.jr();p.volume=l.volume;Tp(p.volume)||(this.NO++,a=this.eE,Tp(a.volume)&&(p.volume=a.volume));l=l.currentTime;p.mediaTime=l!==void 0&&l>=0?l:-1;return p}h8(p){return nP(),this.bj?1:super.h8(p)}gX(){return 1}getDuration(){return this.U}bI(){return this.iA?2:nF(this)?5:this.SQ()?4:3}eN(){return this.VY?this.Jo().X.U>= 2E3?4:3:2}G(p){this.Je&&this.Je.G(p)}};var pSr=g.eB(),Nve=class{constructor(){this.L={};const p=AP();lG(this,p,document);const a=CFE();try{if("1"==a){for(let l=p.parent;l!=p.top;l=l.parent)lG(this,l,l.document);lG(this,p.top,p.top.document)}}catch(l){}}};var a7A=class{constructor(){this.L=[];this.S=[]}reset(){this.L=[];this.S=[]}},G1=ND(a7A);var ry=class{constructor(){this.L=this.S=null}};var T5o=class extends IR{constructor(p){p=k3v(p);super(p.length?p[p.length-1]:new bP(bn,0));this.X=p;this.S=null}getName(){return(this.S?this.S:this.L).getName()}HI(){return(this.S?this.S:this.L).HI()}oi(){return(this.S?this.S:this.L).oi()}init(p){let a=!1;g.Ir(this.X,l=>{l.initialize()&&(a=!0)}); a&&(this.G=p,Pt(this.L,this));return a}dispose(){g.Ir(this.X,p=>{p.dispose()}); super.dispose()}N(){return Nh(this.X,p=>p.jl())}U(){return Nh(this.X,p=>p.jl())}j(p,a,l){return new iP(p,this.L,a,l)}D(p){this.S=p.S}};var Cnf={threshold:[0,.3,.5,.75,1]},l7v=class extends iP{constructor(p,a,l,y){super(p,a,l,y);this.Hs=this.Bs=this.Sl=this.jl=this.j=null}observe(){this.Hs||(this.Hs=Date.now()-cg);if(QSF(298,()=>vZM(this)))return!0; this.S.fail("msf");return!1}unobserve(){if(this.j&&this.element)try{this.j.unobserve(this.element),this.jl?(this.jl.unobserve(this.element),this.jl=null):this.Sl&&(this.Sl.disconnect(),this.Sl=null)}catch(p){}}X(){const p=pG(this);p.length>0&&fi(this,p);super.X()}Ws(){}Tm(){return!1}ac(){}HI(){return Object.assign(this.S.HI(),{niot_obs:this.Hs,niot_cbk:this.Bs})}getName(){return"nio"}};var N5r=class extends IR{constructor(p=bn){super(new bP(p,2))}getName(){return"nio"}U(){return!nP().S&&this.L.L.U.IntersectionObserver!=null}j(p,a,l){return new l7v(p,this.L,a,l)}};var HzZ=class extends bP{constructor(){const p=PN$();super(bn.top,p,"geo")}iT(){return nP().L}jl(){const p=PN$();this.N!==p&&(this.L!=this&&p>this.L.N&&(this.L=this,VW(this)),this.N=p);return p==2}};var N_O=class{};var y1O=class{constructor(){this.done=!1;this.L={sX:0,Ig:0,v39:0,MC:0,Jr:-1,md:0,hm:0,NS:0,W5:0};this.j=null;this.X=!1;this.U=null;this.D=0;this.S=new K$o(this)}sample(){wy(this,pj(),!1)}},x2=ND(y1O);var $P=null,IQ="",nC=!1;var SRA=()=>"av.default_js".includes("ima_html5_sdk")?{mG:"ima",Yr:null}:"av.default_js".includes("ima_native_sdk")?{mG:"nima",Yr:null}:"av.default_js".includes("admob-native-video-javascript")?{mG:"an",Yr:null}:"youtube.player.web_20250923_21_RC00".includes("cast_js_sdk")?{mG:"cast",Yr:JG()}:"youtube.player.web_20250923_21_RC00".includes("youtube.player.web")?{mG:"yw",Yr:JG()}:"youtube.player.web_20250923_21_RC00".includes("outstream_web_client")?{mG:"out",Yr:JG()}:"youtube.player.web_20250923_21_RC00".includes("drx_rewarded_web")? {mG:"r",Yr:JG()}:"youtube.player.web_20250923_21_RC00".includes("gam_native_web_video")?{mG:"n",Yr:JG()}:"youtube.player.web_20250923_21_RC00".includes("admob_interstitial_video")?{mG:"int",Yr:JG()}:{mG:"j",Yr:null},xC=SRA().mG,Xb=SRA().Yr;var yk=(p,a)=>{const l={sv:"968"};Xb!==null&&(l.v=Xb);l.cb=xC;l.nas=G1.L.length;l.msg=p;a!==void 0&&(p=BsA(a))&&(l.e=ZK[p]);return l},BsA=p=>{const a=ag(p,"custom_metric_viewable")?"custom_metric_viewable":p.toLowerCase(); return VT(Zs,l=>l==a)};var w6A={xU:"visible",fS:"audible",SOv:"time",UO9:"timetype"},$lo={visible:p=>/^(100|[0-9]{1,2})$/.test(p), audible:p=>p=="0"||p=="1", timetype:p=>p=="mtos"||p=="tos", time:p=>/^(100|[0-9]{1,2})%$/.test(p)||/^([0-9])+ms$/.test(p)},S2q=class{constructor(){this.L=void 0; this.S=!1;this.U=0;this.j=-1;this.X="tos"}setTime(p,a,l="tos"){a=="ms"?(this.U=p,this.j=-1):(this.U=-1,this.j=p);this.X=l;return this}};var nkv=class extends HS{constructor(p,a,l,y){super(a,y);this.G=p;this.K=l}getId(){return this.G}D(){return!0}L(p){const a=p.Jo(),l=p.getDuration();return Nh(this.K,y=>{if(y.L!=void 0)var S=mpo(y,a);else b:{switch(y.X){case "mtos":S=y.S?a.X.U:a.U.L;break b;case "tos":S=y.S?a.X.L:a.U.L;break b}S=0}S==0?y=!1:(y=y.U!=-1?y.U:l!==void 0&&l>0?y.j*l:-1,y=y!=-1&&S>=y);return y})}};var nMM=class extends UnO{L(p){const a=new sGZ;a.L=QG(p,iEr);a.S=QG(p,Neh);return a}};var Vzr=class extends HS{constructor(p){super("fully_viewable_audible_half_duration_impression",p)}L(p){return nF(p)}};var ZLv=class extends YDE{constructor(p){super();this.L=p}};var oMO=class extends HS{constructor(p){super("viewable_impression",p)}L(p){return p.Jo().SQ()}};var zGE=class extends g8${constructor(p){super("measurable_impression",p)}L(p){const a=g.tU(this.G,VK(QH().AP,"ovms"));return!p.iA&&(p.Ak!=0||a)}};var dFo=class extends ZLv{S(){return new zGE(this.L)}U(){return[new oMO(this.L),new Vzr(this.L)]}};var GMA=class extends JbF{j(){const p=g.o1("ima.admob.getViewability"),a=VK(this.AP,"queryid");typeof p==="function"&&a&&p(a)}getName(){return"gsv"}};var DXh=class extends IR{constructor(){super(new bP(bn,2))}getName(){return"gsv"}U(){const p=nP();QH();return p.S&&!1}j(p,a,l){return new GMA(this.L,a,l)}};var B2o=class extends JbF{j(){const p=g.o1("ima.bridge.getNativeViewability"),a=VK(this.AP,"queryid");typeof p==="function"&&a&&p(a,l=>{g.P6(l)&&this.Sl++;const y=l.opt_nativeViewVisibleBounds||{},S=l.opt_nativeViewHidden;this.L=sbv(l.opt_nativeViewBounds||{});const n=this.S.j;n.L=S?qDr.clone():sbv(y);this.timestamp=l.opt_nativeTime||-1;nP().L=n.L;l=l.opt_nativeVolume;l!==void 0&&(n.volume=l)})}getName(){return"nis"}};var izr=class extends IR{constructor(){super(new bP(bn,2))}getName(){return"nis"}U(){const p=nP();QH();return p.S&&!1}j(p,a,l){return new B2o(this.L,a,l)}};var Q$=class extends bP{constructor(){super(bn,2,"mraid");this.Ps=0;this.QY=this.Bs=!1;this.K=null;this.S=HQ(this.U);this.j.L=new Wa(0,0,0,0);this.VY=!1}jl(){return this.S.E9!=null}Tm(){const p={};this.Ps&&(p.mraid=this.Ps);this.Bs&&(p.mlc=1);p.mtop=this.S.XE;this.K&&(p.mse=this.K);this.VY&&(p.msc=1);p.mcp=this.S.compatibility;return p}initialize(){if(this.isInitialized)return!this.w7();this.isInitialized=!0;if(this.S.compatibility===2)return this.K="ng",this.fail("w"),!1;if(this.S.compatibility=== 1)return this.K="mm",this.fail("w"),!1;nP().K=!0;this.U.document.readyState&&this.U.document.readyState=="complete"?dkA(this):aN(this.U,"load",()=>{C$().setTimeout(vQ(292,()=>dkA(this)),100)},292); return!0}Rc(){const p=nP(),a=IBf(this,"getMaxSize");p.L=new Wa(0,a.width,a.height,0)}ac(){nP().j=IBf(this,"getScreenSize")}dispose(){K$(this);super.dispose()}};var c1r=new class{constructor(p,a=!1){this.key=p;this.defaultValue=a;this.valueType="boolean"}}("45378663");var r1v=class{constructor(){this.isInitialized=!1;this.L=this.S=null;this.iT={start:this.Kx,firstquartile:this.E6,midpoint:this.dG,thirdquartile:this.ZN,complete:this.NO,error:this.Fu,pause:this.Bs,resume:this.VY,skip:this.Ro,viewable_impression:this.U,mute:this.j,unmute:this.j,fullscreen:this.Ha,exitfullscreen:this.Lx,fully_viewable_audible_half_duration_impression:this.U,measurable_impression:this.U,abandon:this.Bs,engagedview:this.U,impression:this.U,creativeview:this.U,progress:this.j,custom_metric_viewable:this.U, bufferstart:this.Bs,bufferfinish:this.VY,audio_measurable:this.U,audio_audible:this.U};this.zn={overlay_resize:this.Ba,abandon:this.Ws,close:this.Ws,collapse:this.Ws,overlay_unmeasurable_impression:p=>Fb(p,"overlay_unmeasurable_impression",E$()), overlay_viewable_immediate_impression:p=>Fb(p,"overlay_viewable_immediate_impression",E$()), overlay_unviewable_impression:p=>Fb(p,"overlay_unviewable_impression",E$()), overlay_viewable_end_of_session_impression:p=>Fb(p,"overlay_viewable_end_of_session_impression",E$())}; QH().S=3;Ffr(this);this.X=null}K(p){QE(p,!1);Iqo(p)}C(){}N(p,a,l,y){p=new fKf(p,l?a:-1,this.jl(),this.Ic());p.fC=y;u3F(p.AP);gB(p.AP,"queryid",p.fC);p.Md("");yJr(p,(...S)=>this.Tm(...S),(...S)=>a6M(this,...S)); (y=ND(ry).L)&&Izq(p,y);this.X&&(p.G(this.X),this.X=null);p.QZ.Ft&&ND(N_O);return p}UO(p){switch(p.oi()){case 0:if(p=ND(ry).L)p=p.L,g.yA(p.X,this),p.Sl&&this.x$()&&kFM(p);yO();break;case 2:Se()}}D(){}x$(){return!1}Kx(p){var a=p.K(p);a&&(a=a.volume,p.VY=Tp(a)&&a>0);WTO(p,0);return Fb(p,"start",E$())}j(p,a,l){wy(x2,[p],!E$());return this.U(p,a,l)}U(p,a,l){return Fb(p,l,E$())}E6(p){return FC(p,"firstquartile",1)}dG(p){p.Tm=!0;return FC(p,"midpoint",2)}ZN(p){return FC(p,"thirdquartile",3)}NO(p){const a= FC(p,"complete",4);uj(p);return a}Fu(p){p.Ak=3;return Fb(p,"error",E$())}VY(p,a,l){a=E$();if(p.jr()&&!a){var y=p.Jo(),S=Date.now()-cg;y.K=S}wy(x2,[p],!a);p.jr()&&(p.Ak=1);return Fb(p,l,a)}Ro(p,a){a=this.j(p,a||{},"skip");uj(p);return a}Ha(p,a){QE(p,!0);return this.j(p,a||{},"fullscreen")}Lx(p,a){QE(p,!1);return this.j(p,a||{},"exitfullscreen")}Bs(p,a,l){a=p.Jo();var y=Date.now()-cg;a.Hs=C_(a,y,p.Ak!=1);wy(x2,[p],!E$());p.Ak==1&&(p.Ak=2);return Fb(p,l,E$())}Ba(p){wy(x2,[p],!E$());return p.S()}Ws(p){wy(x2, [p],!E$());this.Ps(p);uj(p);return p.S()}Tm(){}Rc(){}Ps(){}ac(){}w7(){}Ic(){this.L||(this.L=this.w7());return this.L==null?new D7:new dFo(this.L)}jl(){return new nMM}};var wS$=class extends HS{constructor(p){super("audio_audible",p)}L(p){return p.eN()==4}};var $Fh=class extends g8${constructor(p){super("audio_measurable",p)}L(p){p=p.eN();return p==3||p==4}};var PPe=class extends ZLv{S(){return new $Fh(this.L)}U(){return[new wS$(this.L)]}};var Lzf=class extends UnO{L(p){p&&(p.e===28&&(p=Object.assign({},p,{avas:3})),p.vs===4||p.vs===5)&&(p=Object.assign({},p,{vs:3}));const a=new sGZ;a.L=QG(p,Teq);a.S=QG(p,Neh);return a}};var XSO=class{constructor(p){this.L=p}S(){return g.o1(this.L)}};var s1=class extends r1v{constructor(){super();this.Hs=null;this.QY=!1;this.Sl="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}C(p,a){let l;const y=ND(ry);if(y.L!=null)switch(y.L.getName()){case "nis":l=UNO(this,p,a);break;case "gsv":l=SLo(this,p,a);break;case "exc":l=YIe(this,p)}l||(a.opt_overlayAdElement?l=void 0:a.opt_adElement&&(l=GX$(this,p,a.opt_adElement,a.opt_osdId)));l&&l.gX()==1&&(l.K==g.a$&&(l.K=S=>this.ac(S)),gqE(this,l,a)); return l}ac(p){p.S=0;p.w7=0;let a;if(p.j=="h"||p.j=="n"){QH();p.Ic&&(QH(),U1(this)!="h"&&U1(this));var l=g.o1("ima.common.getVideoMetadata");if(typeof l==="function")try{a=l(p.fC)}catch(y){p.S|=4}else p.S|=2}else if(p.j=="b")if(l=g.o1("ytads.bulleit.getVideoMetadata"),typeof l==="function")try{a=l(p.fC)}catch(y){p.S|=4}else p.S|=2;else if(p.j=="ml")if(l=g.o1("ima.common.getVideoMetadata"),typeof l==="function")try{a=l(p.fC)}catch(y){p.S|=4}else p.S|=2;else p.S|=1;p.S||(a===void 0?p.S|=8:a===null? p.S|=16:g.P6(a)?p.S|=32:a.errorCode!=null&&(p.w7=a.errorCode,p.S|=64));a==null&&(a={});l=a;p.C=0;for(const y in v8E)l[y]==null&&(p.C|=v8E[y]);ux(l,"currentTime");ux(l,"duration");Tp(a.volume)&&Tp()&&(a.volume*=NaN);return a}w7(){QH();U1(this)!="h"&&U1(this);const p=m1$(this);return p!=null?new XSO(p):null}Rc(p){!p.L&&p.iA&&ea(this,p,"overlay_unmeasurable_impression")&&(p.L=!0)}Ps(p){p.dZ&&(p.SQ()?ea(this,p,"overlay_viewable_end_of_session_impression"):ea(this,p,"overlay_unviewable_impression"),p.dZ= !1)}Tm(){}N(p,a,l,y){if(QH().flags.Zy(c1r)){var S=VK(QH().AP,"mm");(S={[yQ.JV]:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",[yQ.VIDEO]:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}[S])&&Fjo(this,S);this.Sl==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&eZ.UD(1044,Error(),void 0,void 0)}p=super.N(p,a,l,y);this.QY&&(a=this.Hs,p.X==null&&(p.X=new jGE),a.L[p.fC]=p.X,p.X.X=pSr);return p}K(p){p&&p.gX()==1&&this.QY&&delete this.Hs.L[p.fC];return super.K(p)}Ic(){this.L||(this.L=this.w7());return this.L==null?new D7:this.Sl==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"? new PPe(this.L):new dFo(this.L)}jl(){return this.Sl==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Lzf:new nMM}G(p,a,l,y,S){a=new Wa(l,a+y,l+S,a);(p=mP(G1,p))?p.G(a):this.X=a}},xFF=zl(193,NE,void 0,Vt);g.eo("Goog_AdSense_Lidar_sendVastEvent",xFF);var Fzv;Fzv=zl(194,function(p,a={}){p=iT(ND(s1),p,a);return T9(p)}); g.eo("Goog_AdSense_Lidar_getViewability",Fzv);var EMM=zl(195,function(){return RhM()}); g.eo("Goog_AdSense_Lidar_getUrlSignalsArray",EMM);var CPM;CPM=zl(196,function(){return JSON.stringify(RhM())}); g.eo("Goog_AdSense_Lidar_getUrlSignalsList",CPM);var ijr=class{constructor({url:p,L79:a}){this.S=p;this.j=a;this.U=(new Date).getTime()-17040672E5;this.L={};const l=/[?&]([^&=]+)=([^&]*)/g;for(;a=l.exec(p);)this.L[a[1]]=a[2]}};var gr=class extends Error{constructor(p,a,l=Error()){super();this.code=p;a+=":";l instanceof Error?(this.message=a+l.message,this.stack=l.stack||""):(this.message=a+String(l),this.stack="");Object.setPrototypeOf(this,new.target.prototype)}};var KLE=class extends g.YB{constructor(p){super();this.wpc=p}nm(){return this.wpc.f()}X$(p){this.wpc.c(p)}U(p){return this.wpc.m(bO(p))}s3(p){return this.wpc.mws(bO(p))}},oO=class extends g.YB{constructor(p){super();this.ea=p;this.U="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.S=void 0;this.cn=this.ea.p;this.j=this.Wd.bind(this);this.addOnDisposeCallback(()=>void KCe(this))}snapshot(p){return this.ea.s({...(p.N9&&{c:p.N9}), ...(p.A6&&{s:p.A6}),...(p.Rk!==void 0&&{p:p.Rk})})}Wd(p){this.ea.e(p)}Q1(){return this.ea.l()}};var vMr=class extends g.YB{constructor(){super(...arguments);this.UO=1}share(){if(this.nz())throw Error("E:AD");this.UO++;return this}dispose(){--this.UO||super.dispose()}};var Kzr=class{constructor(p){this.L=p;aL(p,"/client_streamz/bg/frs",g.PN("mk"))}G_(p,a){this.L.G_("/client_streamz/bg/frs",p,a)}},eGF=class{constructor(p){this.L=p;aL(p,"/client_streamz/bg/wrl",g.PN("mn"),np("ac"),np("sc"),g.PN("rk"),g.PN("mk"))}G_(p,a,l,y,S,n){this.L.G_("/client_streamz/bg/wrl",p,a,l,y,S,n)}},bLr=class{constructor(p){this.S=p;g.lC(p,"/client_streamz/bg/ec",g.PN("en"),g.PN("mk"))}L(p,a){g.tz(this.S,"/client_streamz/bg/ec",p,a)}},I7h=class{constructor(p){this.L=p;aL(p,"/client_streamz/bg/el", g.PN("en"),g.PN("mk"))}G_(p,a,l){this.L.G_("/client_streamz/bg/el",p,a,l)}},RG$=class{constructor(p){this.S=p;g.lC(p,"/client_streamz/bg/cec",np("ec"),g.PN("mk"))}L(p,a){g.tz(this.S,"/client_streamz/bg/cec",p,a)}},uRv=class{constructor(p){this.S=p;g.lC(p,"/client_streamz/bg/po/csc",np("cs"),g.PN("mk"))}L(p,a){g.tz(this.S,"/client_streamz/bg/po/csc",p,a)}},OLA=class{constructor(p){this.S=p;g.lC(p,"/client_streamz/bg/po/ctav",g.PN("av"),g.PN("mk"))}L(p,a){g.tz(this.S,"/client_streamz/bg/po/ctav",p, a)}},kMM=class{constructor(p){this.S=p;g.lC(p,"/client_streamz/bg/po/cwsc",g.PN("su"),g.PN("mk"))}L(p,a){g.tz(this.S,"/client_streamz/bg/po/cwsc",p,a)}};var V_h=class extends U6{constructor(p){super(p)}};var Yzf=class extends U6{constructor(p){super(p)}},mH=[1,2,3];var hiv=class extends U6{constructor(p){super(p)}},M9=[1,2,3];var AJZ=class extends U6{constructor(p){super(p)}};var MzZ=class extends U6{constructor(p){super(p)}};var mFv=class extends U6{constructor(p){super(p)}},tzA=[1,2,3];var ks=class extends U6{constructor(p){super(p)}Ii(){var p=FV(this,3,lQ,3,!0);XE(p);return p[void 0]}};ks.prototype.S=vVh([0,LL,[0,tzA,FR,[0,LL,-1,SDr],FR,[0,LL,-1,PS,SDr],FR,[0,LL]],VJf,xM,[0,xM,[0,mH,ZEe,pxf,n8h],[0,M9,fhE,JLM,FR,[0,xM,[0,qyo,$M]]]],aK$,lKv]);var jRE=class extends U6{constructor(p){super(p)}};g.C=NV.prototype;g.C.isEnabled=function(){if(!g.mm.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{Wr:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.C.set=function(p,a,l){let y;var S=!1;let n;if(typeof l==="object"){n=l.Pp;S=l.secure||!1;y=l.domain||void 0;var V=l.path||void 0;var Z=l.Wr}if(/[;=\s]/.test(p))throw Error('Invalid cookie name "'+p+'"');if(/[;\r\n]/.test(a))throw Error('Invalid cookie value "'+a+'"');Z===void 0&&(Z=-1);l=y?";domain="+y:"";V=V?";path="+V:"";S=S?";secure":"";Z=Z<0?"":Z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+Z*1E3)).toUTCString();this.L.cookie=p+"="+a+l+V+Z+S+(n!=null?";samesite="+ n:"")}; g.C.get=function(p,a){const l=p+"=",y=(this.L.cookie||"").split(";");for(let S=0,n;S=0;a--)this.remove(p[a])}; var Fo=new NV(typeof document=="undefined"?null:document);var Wzq=class{async compress(p){var a=new CompressionStream("gzip");const l=(new Response(a.readable)).arrayBuffer();a=a.writable.getWriter();await a.write((new TextEncoder).encode(p));await a.close();return new Uint8Array(await l)}isSupported(p){return p<1024?!1:typeof CompressionStream!=="undefined"}};var TM=class extends U6{constructor(p){super(p)}};var HLM=class{constructor(p,a){this.intervalMs=p;this.callback=a;this.enabled=!1;this.L=()=>g.eB(); this.S=this.L()}setInterval(p){this.intervalMs=p;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.S=this.L())}stop(){this.enabled=!1; this.timer&&(clearTimeout(this.timer),this.timer=void 0)}tick(){if(this.enabled){const p=Math.max(this.L()-this.S,0);p{this.tick()},this.intervalMs-p):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0}};var DFF=class extends U6{constructor(p){super(p)}};var iLF=class extends U6{constructor(p){super(p)}};var T2v=class extends U6{constructor(p){super(p)}v6(){return GH(this,1)}};var Uof=class extends U6{constructor(p){super(p)}};var no=class extends U6{constructor(p){super(p)}},P_Z=BB(no);var aF=class extends U6{constructor(p){super(p)}};var l8=["platform","platformVersion","architecture","model","uaFullVersion"],vL=new no,Ck=null;var FF=class extends U6{constructor(p){super(p)}};var N2r=class extends U6{constructor(p){super(p)}};var sR$=class extends U6{constructor(p){super(p,4)}};var NF=class extends U6{constructor(p){super(p,36)}A(){const p=this.DI;return ZhA(p,p[rD]|0,N2r,7)!==void 0}Fk(){return Ke(this,TM,16)}};var UFO=class extends U6{constructor(p){super(p,19)}rD(p){return y0(this,2,p)}};var QRM=class{constructor(p,a=!1){this.YS=a;this.uach=this.locale=null;this.S=0;this.isFinal=!1;this.L=new UFO;Number.isInteger(p)&&this.L.rD(p);a||(this.locale=document.documentElement.getAttribute("lang"));Ed(this,new FF)}rD(p){this.L.rD(p);return this}build(p,a=0,l=0,y=null,S=0,n=0){if(!this.YS){var V=yb(this);var Z=new T2v;Z=y0(Z,1,this.S);Z=EL(Z,2,Kk(this.isFinal));l=EL(Z,3,wV(l>0?l:void 0));S=EL(l,4,wV(S>0?S:void 0));n=EL(S,5,wV(n>0?n:void 0));S=n.DI;l=S[rD]|0;n=R4(n,l)?n:uO(n,S,l)?O7(n,S): new n.constructor(km(S,l,!0));Sl(V,T2v,10,n)}V=this.L.clone();n=Date.now().toString();V=EL(V,4,Cm(n));p=I7(V,NF,3,p.slice());y&&(V=new DFF,y=EL(V,13,wV(y)),V=new iLF,y=Sl(V,DFF,2,y),V=new sR$,y=Sl(V,iLF,1,y),y=y0(y,2,9),Sl(p,sR$,18,y));a&&vi(p,14,a);return p}};g.Qk.prototype.S=0;g.Qk.prototype.reset=function(){this.L=this.U=this.j;this.S=0}; g.Qk.prototype.getValue=function(){return this.U};var GOq=class extends U6{constructor(p){super(p,8)}},hGM=BB(GOq);var sR;sR=new Ber(class extends U6{constructor(p){super(p)}});var A1e=class extends g.YB{constructor(p){super();this.componentId="";this.L=[];this.QY="";this.pageId=null;this.Bs=this.Sl=-1;this.G=this.experimentIds=null;this.UO=this.N=this.D=this.j=0;this.Hs=1;this.timeoutMillis=0;this.jl=!1;this.logSource=p.logSource;this.zH=p.zH||(()=>{}); this.U=new QRM(p.logSource,p.YS);this.network=p.network||null;this.bJ=p.bJ||null;this.K=p.qg||null;this.sessionIndex=p.sessionIndex||null;this.iZ=p.iZ||!1;this.logger=null;this.withCredentials=!p.Qk;this.YS=p.YS||!1;this.C=!this.YS&&!!AP()&&!!AP().navigator&&AP().navigator.sendBeacon!==void 0;this.Ws=typeof URLSearchParams!=="undefined"&&!!(new URL(Yj())).searchParams&&!!(new URL(Yj())).searchParams.set;const a=O$f(new FF);Ed(this.U,a);this.X=new g.Qk(1E4,3E5,.1);p=iav(this,p.hp);this.S=new HLM(this.X.getValue(), p);this.w7=new HLM(6E5,p);this.iZ||this.w7.start();this.YS||(document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&JE(this)}),document.addEventListener("pagehide",()=>{JE(this)}))}fz(){JE(this); this.S.stop();this.w7.stop();super.fz()}dispatch(p){if(p instanceof NF)this.log(p);else try{var a=new NF,l=p.Lq();var y=lX(a,8,l);this.log(y)}catch{}}log(p){if(this.Ws){p=p.clone();var a=this.Hs++;p=vi(p,21,a);this.componentId&&lX(p,26,this.componentId);a=p;{var l=AI(a,1);const y=typeof l;l=l==null?l:y==="bigint"?String(C1(64,l)):CT(l)?y==="string"?Fd(l):bD(l):void 0}l==null&&(l=Date.now(),l=Number.isFinite(l)?l.toString():"0",EL(a,1,Cm(l)));l=AI(a,15);l!=null&&(typeof l==="bigint"?qk(l)?l=Number(l): (l=C1(64,l),l=qk(l)?Number(l):String(l)):l=CT(l)?typeof l==="number"?bD(l):Fd(l):void 0);l!=null||vi(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(l=this.experimentIds.clone(),Sl(a,TM,16,l));a=this.L.length-1E3+1;a>0&&(this.L.splice(0,a),this.j+=a);this.L.push(p);this.iZ||this.S.enabled||this.S.start()}}flush(p,a){if(this.L.length===0)p&&p();else if(this.jl&&this.C)this.U.S=3,VwM(this);else{var l=Date.now();if(this.Bs>l&&this.Sl{this.network&&this.network.send(V,d,z)},z=(G,B)=>{var c=M_(y,NF,3); var w=Number(sfh(y,14));g.Ur(this.X);this.S.setInterval(this.X.getValue());G===401&&S&&(this.QY=S);w&&(this.j+=w);B===void 0&&(B=this.isRetryable(G));B&&(this.L=c.concat(this.L),this.iZ||this.S.enabled||this.S.start());a&&a("net-send-failed",G);++this.D},d=G=>{this.X.reset(); this.S.setInterval(this.X.getValue());if(G){var B=null;try{var c=JSON.stringify(JSON.parse(G.replace(")]}'\n","")));B=hGM(c)}catch(w){}if(B){G=Number(sfh(B,1,EB("-1")));G>0&&(this.Sl=Date.now(),this.Bs=this.Sl+G);(G=ut(Ok))&&B.DI[G]?.[175237375]!=null&&Ec(t5f,3);if(ut(jFM)&&ut(Ok)&&void 0===jFM&&(G=B.DI,c=G[Ok])&&(c=c.FC))try{c(G,175237375,iRE)}catch(w){s_(w)}B=sR.L?sR.S(B,sR.L,175237375,sR.U):sR.S(B,175237375,null,sR.U);if(B=B===null?void 0:B)B=ku(B,1,-1),B!==-1&&(this.X=new g.Qk(B<1?1:B,3E5,.1), this.S.setInterval(this.X.getValue()))}}p&&p();this.D=0}; n?n.then(G=>{V.requestHeaders["Content-Encoding"]="gzip";V.requestHeaders["Content-Type"]="application/binary";V.body=G;V.IT=2;Z()},()=>{Z()}):Z()}}}}isRetryable(p){return 500<=p&&p<600||p===401||p===0}};var gMF=class{constructor(){this.bq=typeof AbortController!=="undefined"}async send(p,a,l){const y=this.bq?new AbortController:void 0,S=y?setTimeout(()=>{y.abort()},p.timeoutMillis):void 0; try{const n=await fetch(p.url,{method:p.requestType,headers:{...p.requestHeaders},...(p.body&&{body:p.body}),...(p.withCredentials&&{credentials:"include"}),signal:p.timeoutMillis&&y?y.signal:null});n.status===200?a?.(await n.text()):l?.(n.status)}catch(n){switch(n?.name){case "AbortError":l?.(408);break;default:l?.(400)}}finally{clearTimeout(S)}}v6(){return 4}};var Uc=class extends g.YB{constructor(){super();this.logSource=1828;this.sessionIndex="0";this.Yw="https://play.google.com/log?format=json&hasfast=true";this.network=this.S=null;this.componentId="";this.L=this.bJ=null;this.U=!1;this.pageId=null}Qk(){this.j=!0;return this}build(){this.network||(this.network=new gMF);const p=new A1e({logSource:this.logSource,zH:this.zH?this.zH:haM,sessionIndex:this.sessionIndex,qg:this.Yw,YS:!1,iZ:!1,Qk:this.j,hp:this.hp,network:this.network});g.H(this,p);if(this.S){var a= this.S,l=yb(p.U);lX(l,7,a)}p.G=new Wzq;this.componentId&&(p.componentId=this.componentId);this.bJ&&(p.bJ=this.bJ);this.pageId&&(p.pageId=this.pageId);this.L&&((l=this.L)?(p.experimentIds||(p.experimentIds=new TM),a=p.experimentIds,l=l.Lq(),lX(a,4,l)):p.experimentIds&&EL(p.experimentIds,4));this.U&&(p.jl=p.C);LcA(p.U);this.network.rD&&this.network.rD(this.logSource);this.network.Nx&&this.network.Nx(p);return p}};var Z8e=class extends g.YB{constructor(p){super();this.logSource=1828;this.componentId="";p||(p=new Uc,p.componentId="",g.H(this,p),p=p.build());this.L=p}flush(p){p=p||[];if(p.length){const a=new jRE,l=[];for(let y=0;y-1?(a=p[V],l||(a.gz=!1)):(a=new kRr(a,this.src,n,!!y,S),a.gz=l,p.push(a));return a}; g.C.remove=function(p,a,l,y){p=p.toString();if(!(p in this.listeners))return!1;const S=this.listeners[p];a=ol(S,a,l,y);return a>-1?(S0(S[a]),g.s6(S,a),S.length==0&&(delete this.listeners[p],this.L--),!0):!1}; g.C.removeAll=function(p){p=p&&p.toString();let a=0;for(const l in this.listeners)if(!p||l==p){const y=this.listeners[l];for(let S=0;S-1?p[S]:null}; g.C.hasListener=function(p,a){const l=p!==void 0,y=l?p.toString():"",S=a!==void 0;return g.AF(this.listeners,function(n){for(let V=0;V>>0);g.yi(g.lH,g.YB);g.lH.prototype[M2r]=!0;g.C=g.lH.prototype;g.C.addEventListener=function(p,a,l,y){g.kn(this,p,a,l,y)}; g.C.removeEventListener=function(p,a,l,y){EDo(this,p,a,l,y)}; g.C.dispatchEvent=function(p){var a=this.Hj;if(a){var l=[];for(var y=1;a;a=a.Hj)l.push(a),++y}a=this.lq;y=p.type||p;if(typeof p==="string")p=new g.Fc(p,a);else if(p instanceof g.Fc)p.target=p.target||a;else{var S=p;p=new g.Fc(y,a);g.C0(p,S)}S=!0;let n,V;if(l)for(V=l.length-1;!p.S&&V>=0;V--)n=p.currentTarget=l[V],S=gF(n,y,!0,p)&&S;p.S||(n=p.currentTarget=a,S=gF(n,y,!0,p)&&S,p.S||(S=gF(n,y,!1,p)&&S));if(l)for(V=0;!p.S&&Vp&&AsyncContext.Snapshot.wrap(p):p=>p;var qRv=class{constructor(p,a){this.U=p;this.j=a;this.S=0;this.L=null}get(){let p;this.S>0?(this.S--,p=this.L,this.L=p.next,p.next=null):p=this.U();return p}};var q3;var J1E=class{constructor(){this.S=this.L=null}add(p,a){const l=oWh.get();l.set(p,a);this.S?this.S.next=l:this.L=l;this.S=l}remove(){let p=null;this.L&&(p=this.L,this.L=this.L.next,this.L||(this.S=null),p.next=null);return p}},oWh=new qRv(()=>new f7F,p=>p.reset()),f7F=class{constructor(){this.next=this.scope=this.L=null}set(p,a){this.L=p; this.scope=a;this.next=null}reset(){this.next=this.scope=this.L=null}};var UR,vR,ZIE,pnF;vR=!1;ZIE=new J1E;g.XM=(p,a)=>{UR||pnF();vR||(UR(),vR=!0);ZIE.add(p,a)}; pnF=()=>{const p=Promise.resolve(void 0);UR=()=>{p.then(zP$)}};ui.prototype.reset=function(){this.context=this.S=this.U=this.L=null;this.j=!1}; var XK=new qRv(function(){return new ui},function(p){p.reset()}); g.AU.prototype.then=function(p,a,l){return jVe(this,Yt(typeof p==="function"?p:null),Yt(typeof a==="function"?a:null),l)}; g.AU.prototype.$goog_Thenable=!0;g.C=g.AU.prototype;g.C.finally=function(p){p=Yt(p);return new g.AU((a,l)=>{gb(this,y=>{p();a(y)},y=>{p(); l(y)})})}; g.C.Lo=function(p,a){return jVe(this,null,Yt(p),a)}; g.C.catch=g.AU.prototype.Lo;g.C.cancel=function(p){if(this.L==0){const a=new he(p);g.XM(function(){b0F(this,a)},this)}}; g.C.c5=function(p){this.L=0;Sg(this,2,p)}; g.C.Jd=function(p){this.L=0;Sg(this,3,p)}; g.C.JI=function(){let p;for(;p=I0$(this);)dCr(this,p,this.L,this.G);this.D=!1}; var Ll=s_;g.yi(he,Ue);he.prototype.name="cancel";g.yi(g.Oy,g.lH);g.C=g.Oy.prototype;g.C.enabled=!1;g.C.xE=null;g.C.setInterval=function(p){this.mD=p;this.xE&&this.enabled?(this.stop(),this.start()):this.xE&&this.stop()}; g.C.td=function(){if(this.enabled){const p=g.eB()-this.dF;p>0&&pa.L.size); p.length&&this.K.flush(p,this.D);Vtf(p);this.X=0;this.L.enabled&&this.L.stop()}G_(p,a,...l){(p=Hd(this,p))&&p instanceof kQM&&(p.G_(a,l),U7(this))}};var Wg=class extends Error{constructor(p,a,l={}){super(a);this.code=p;this.metadata=l;this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype)}toString(){let p=`RpcError(${QCf(this.code)||String(this.code)})`;this.message&&(p+=": "+this.message);return p}};hd.prototype.Lq=function(p){const a=[];SO(this,p,a);return a.join("")}; var bi$={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},eer=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;var a4o;g.yi(zO,Zzf);zO.prototype.L=function(){return new XMLHttpRequest}; a4o=new zO;g.yi(g.Bj,g.lH);var Dl$=/^https?$/i,l4o=["POST","PUT"],Sno=[];g.C=g.Bj.prototype;g.C.z8=function(){this.dispose();g.yA(Sno,this)}; g.C.send=function(p,a,l,y){if(this.L)throw Error("[goog.net.XhrIo] Object is active with another request="+this.K+"; newUri="+p);a=a?a.toUpperCase():"GET";this.K=p;this.j="";this.S=0;this.N=!1;this.U=!0;this.L=this.w7?this.w7.L():a4o.L();this.L.onreadystatechange=Yt((0,g.Qo)(this.f$,this));try{this.getStatus(),this.Sl=!0,this.L.open(a,String(p),!0),this.Sl=!1}catch(n){this.getStatus();zse(this,n);return}p=l||"";l=new Map(this.headers);if(y)if(Object.getPrototypeOf(y)===Object.prototype)for(var S in y)l.set(S, y[S]);else if(typeof y.keys==="function"&&typeof y.get==="function")for(const n of y.keys())l.set(n,y.get(n));else throw Error("Unknown input type for opt_headers: "+String(y));y=Array.from(l.keys()).find(n=>"content-type"==n.toLowerCase()); S=g.mm.FormData&&p instanceof g.mm.FormData;!g.tU(l4o,a)||y||S||l.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const [n,V]of l)this.L.setRequestHeader(n,V);this.jl&&(this.L.responseType=this.jl);"withCredentials"in this.L&&this.L.withCredentials!==this.G&&(this.L.withCredentials=this.G);try{this.D&&(clearTimeout(this.D),this.D=null),this.UO>0&&(this.getStatus(),this.D=setTimeout(this.rU.bind(this),this.UO)),this.getStatus(),this.C=!0,this.L.send(p),this.C=!1}catch(n){this.getStatus(), zse(this,n)}}; g.C.rU=function(){typeof Mi!="undefined"&&this.L&&(this.j="Timed out after "+this.UO+"ms, aborting",this.S=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.C.abort=function(p){this.L&&this.U&&(this.getStatus(),this.U=!1,this.X=!0,this.L.abort(),this.X=!1,this.S=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Oj(this))}; g.C.fz=function(){this.L&&(this.U&&(this.U=!1,this.X=!0,this.L.abort(),this.X=!1),Oj(this,!0));g.Bj.SD.fz.call(this)}; g.C.f$=function(){this.nz()||(this.Sl||this.C||this.X?NXO(this):this.nM())}; g.C.nM=function(){NXO(this)}; g.C.isActive=function(){return!!this.L}; g.C.isComplete=function(){return g.aU(this)==4}; g.C.getStatus=function(){try{return g.aU(this)>2?this.L.status:-1}catch(p){return-1}}; g.C.getResponseHeader=function(p){if(this.L&&this.isComplete())return p=this.L.getResponseHeader(p),p===null?void 0:p}; g.C.getLastError=function(){return typeof this.j==="string"?this.j:String(this.j)};var Hkr=class{send(p,a=()=>{},l=()=>{}){nDo(p.url,y=>{y=y.target; Mo(y)?a(g.me(y)):l(y.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)}v6(){return 1}};var QQ=class{constructor(p,a){this.logger=p;this.event=a;this.startTime=zB()}done(){this.logger.U(this.event,zB()-this.startTime)}},h1=class extends vMr{constructor(){super(...arguments);this.hg={Fk:()=>[]}}},jX=class extends h1{j(){}L(){}U(){}Tf(){}S(){}X(p,a,l,y){return y}K(){}D(){}G(){}},y2q=class extends h1{constructor(p){super(); this.logger=p;this.hg={Muc:()=>this.logger, Fk:()=>this.logger.hg.Fk()}; this.addOnDisposeCallback(()=>void this.logger.dispose())}update(p){this.logger.dispose(); this.logger=p}L(p){this.logger.L(p)}U(p,a){this.logger.U(p,a)}Tf(p){this.logger.Tf(p)}S(){this.logger.S()}X(p,a,l,y){return this.logger.X(p,a,l,y)}K(p){this.logger.K(p)}D(p){this.logger.D(p)}G(p){this.logger.G(p)}j(p){this.logger.j(p)}},SwO=class extends g.YB{constructor(p,a){super();this.callback=p;this.S=a;this.L=-a;this.addOnDisposeCallback(()=>void clearTimeout(this.timer))}},n$M=class extends h1{constructor(p,a){super(); this.metrics=p;this.LC=a}j(p){this.metrics.fW.G_(p,this.LC)}L(p){this.metrics.eventCount.L(p,this.LC)}U(p,a){this.metrics.K5.G_(a,p,this.LC)}Tf(p){this.metrics.errorCount.L(p,this.LC)}X(p,a,l,y){const S=zB(),n=V=>{if(!this.nz()){var Z=zB()-S;this.metrics.Sk.G_(Z,p,l,V,a,this.LC)}}; y.then(()=>void n(0),V=>void n(V instanceof Wg?V.code:-1)); return y}K(p){this.metrics.jk.L(p,this.LC)}D(p){this.metrics.Jm.L(p,this.LC)}G(p){this.metrics.Uz.L(p,this.LC)}},iuq=class extends n$M{constructor(p,a=[]){const l={LC:p.LC||"_",jN:p.jN||[],QH:p.QH|0,Yw:p.Yw,VU:p.VU||(()=>{}), oN:p.oN||((S,n)=>omM(S,n,l.VU,l.Yw))},y=l.oN("51",l.jN.concat(a)); super({fW:new Kzr(y),errorCount:new RG$(y),eventCount:new bLr(y),K5:new I7h(y),Sk:new eGF(y),jk:new uRv(y),Jm:new OLA(y),Uz:new kMM(y)},l.LC);this.hg={Fk:()=>this.options.jN.concat(this.Sl).sort((S,n)=>S-n)}; this.options=l;this.service=y;this.N=!p.oN;this.C=new SwO(()=>void this.service.j(),l.QH); this.addOnDisposeCallback(()=>{this.C.dispose();this.N&&this.service.dispose()}); g.cL(this.Sl=a.slice())}S(){QQZ(this.C)}};var u9=class extends U6{constructor(p){super(p)}};var k0=class extends U6{constructor(p){super(p)}};var RB=class extends U6{constructor(p){super(p,0,RB.messageId)}},viv=BB(RB),VRo=function(p){return EI(a=>a instanceof p&&!R4(a))}(RB); RB.messageId="bfkj";var EjE=class extends U6{constructor(p){super(p)}};var ZgM=class extends U6{constructor(p){super(p)}},o$$=BB(ZgM);g.un=class{constructor(){this.promise=new Promise((p,a)=>{this.resolve=p;this.reject=a})}};var i9=class extends g.YB{constructor(p){super();this.S=Math.floor(Math.random()*200);this.L=new ZgM;let a;if("challenge"in p&&VRo(p.challenge)){a=YD(p.challenge,4,void 0,AV);var l=YD(p.challenge,5,void 0,AV);YD(p.challenge,7,void 0,AV)&&(this.L=o$$(YD(p.challenge,7,void 0,AV)))}else({program:a,globalName:l}=p);this.addOnDisposeCallback(async()=>{const {ji:d}=await this.U;d?.()}); this.logger=A_v(p.o$||{},this.L);g.H(this,this.logger);const y=new g.un;this.U=y.promise;this.logger.L("t");const S=this.logger.share(),n=new QQ(S,"t"),V=(d,G,B,c)=>{if(!this.logger.nz()){var w="k";G?w="h":B&&(w="u");w!=="k"?c!==0&&(this.logger.L(w),this.logger.U(w,d)):this.S<=0?(this.logger.L(w),this.logger.U(w,d),this.S=Math.floor(Math.random()*200)):this.S--}},Z=(d,G,B,c)=>{Promise.resolve().then(()=>{n.done(); S.S();S.dispose();y.resolve({G8:d,ji:G,Uk:B,rgl:c})})}; if(!g.mm[l])throw this.logger.Tf(25),Error("EGOU");if(!g.mm[l].a)throw this.logger.Tf(26),Error("ELIU");try{const d=g.mm[l].a;l=[];const G=[];var z=h5o(this.L);for(let w=0;w{})}catch(d){throw this.logger.Tf(28),d; }}snapshot(p){if(this.nz())throw Error("Already disposed");this.logger.L("n");const a=this.logger.share();return this.U.then(({G8:l})=>new Promise(y=>{const S=new QQ(a,"n");l(n=>{S.done();a.j(n.length);a.S();a.dispose();y(n)},[p.N9, p.A6,p.Ru,p.Rk])}))}Dc(p){if(this.nz())throw Error("Already disposed"); this.logger.L("n");const a=dM(this.logger,()=>this.j([p.N9,p.A6,p.Ru,p.Rk]),"n"); this.logger.j(a.length);this.logger.S();return a}Wd(p){this.U.then(({Uk:a})=>{a?.(p)})}Q1(){return this.logger.share()}};var iV=class{constructor(){this.S={};this.L=null}};var CGq=class extends U6{constructor(p){super(p)}};var Uxo=class extends U6{constructor(p){super(p)}};var t6=class{constructor(p,a,l){this.client=p;this.QI=a;this.L=l}Gh(p){return AXF(this,p,new jX,0)}};var Tt=class extends g.YB{constructor(p){super();this.options=p;this.D=new g.un;this.cn=this.D.promise;this.X=new g.un;this.K=1;this.U=new g.un;this.j=[];this.YB=p.YB||(()=>{}); this.logger=new y2q(A_v(p.o$||{}));B9q(this,p.X4,p.nyO,p.kOO,p.qQY,{...zRh,...(p.jW||{})});this.addOnDisposeCallback(()=>void aPZ(this))}async snapshot(p){if(this.nz())throw Error("Already disposed"); this.S||this.G||await this.X.promise;if(this.S)return await this.S.snapshot(p);throw this.G;}Wd(p){this.S?.Wd?.(p)}handleError(p){this.nz()||(this.G=p,this.X.resolve(),this.options.cK?.(p))}Q1(){return this.logger.share()}},zRh={GS:432E5,cq:3E5,xP:10,Fi:1E4,zi:3E4,hZ:3E4,LW:6E4,Ti:1E3,rL:6E4,p5:6E5,IB:.25,aB:2,maxAttempts:10},dKq=class{constructor(p,a,l){this.endTimeMs=Date.now()+p;this.promise=new Promise(S=>{this.Dw=S}); const y=()=>{const S=this.endTimeMs-Date.now();S<=l?this.Dw(0):setTimeout(y,Math.min(S,a))}; y()}L(){this.endTimeMs=0;this.Dw(1)}};var kuF=Math.imul??((p,a)=>p*a|0),kc=[196, 200,224,18],wd=class{constructor(p,a=0,l=[]){this.maxItems=p;this.L=a;this.S=l}Lq(){return String(this.L)+","+this.S.join()}q3(p,a){let l=void 0;if(this.S[this.L]!==p){const y=this.S.indexOf(p);y!==-1?(this.S.splice(y,1),yhMf(this.index,V3o(p),a,l,y),"W"):"u"; this.logger.G(S)}S(p,a){const [l,y]=this.index?dM(this.logger,()=>Krq(V3o(p),a),"R"):["u"]; this.logger.D(l);return y}};var Vuq={toString:function(p){let a=[],l=0;p-=-2147483648;a[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(p%52);for(p=Math.floor(p/52);p>0;)a[l++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return a.join("")}};var A1=class extends g.YB{constructor(p){super();this.logger=p;this.j=new g.un}s3(p,a){const l=this.U(p);a?.(l);return dM(this.logger,()=>g.dW(l,2),this.S)}Gq(p,a,l){return dM(this.logger,()=>a?this.s3(p,l):this.U(p,l),this.L)}},fh=class extends A1{constructor(p,a,l,y){super(p); this.X=a;this.G=l;this.L="m";this.S="x";this.D=0;Z$(this,y)}U(p,a){this.logger.L(this.L);++this.D>=this.G&&this.j.resolve();const l=p();p=dM(this.logger,()=>this.X(l),"C"); if(p===void 0)throw new gr(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new gr(18,"ODM:Invalid");a?.(p);return p}},xQM=class extends A1{constructor(p,a,l){super(p);this.X=a;this.L="f";this.S="z";Z$(this,l)}U(){return this.X}},Xdh=class extends A1{constructor(p,a,l){super(p);this.X=a;this.L="w";this.S="z";Z$(this,l)}U(){return dM(this.logger,()=>R1(this.X),"d")}s3(){return this.X}},bYv=class extends A1{constructor(p,a){super(p); this.error=a;this.L="e";this.S="y"}U(){if(this.X)return this.X;this.X=Jzr(this,p=>"_"+Z5r(p)); return Jzr(this,p=>p)}},rfF=class extends A1{constructor(p,a,l){super(p); this.X=a;this.clientState=l;this.L="S";this.S="q"}U(){var p=Math.floor(Date.now()/1E3),a=[Math.random()*255,Math.random()*255],l=a.concat([this.X&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+l.length);p[0]=34;p[1]=l.length;p.set(l,2);l=p.subarray(2);a=a.length;for(let y=a;y{}); this.rT=p.rT||!1;if(BKr(p)){const y=this.ea;this.D=()=>Gw$(y).catch(S=>{this.S=S=this.reportError(new gr(this.L?20:32,"TRG:Disposed",S));this.L?.dispose();this.L=void 0;this.j.reject(S)}); mQr(y,()=>void Jb(this)); y.K===2&&Jb(this)}else this.D=p.SQI,Jb(this);const a=this.logger.share();a.L("o");const l=new QQ(a,"o");this.j.promise.then(()=>{l.done();a.S();a.dispose()},()=>void a.dispose()); this.addOnDisposeCallback(()=>{this.L?(this.L.dispose(),this.L=void 0):this.S?this.logger.S():(this.S=this.reportError(new gr(32,"TNP:Disposed")),this.logger.S(),this.j.reject(this.S))}); g.H(this,this.logger)}nm(){return this.j.promise}U(p){return dGA(this,{...p},!1)}s3(p){return dGA(this,{...p},!0)}X$(p){if(!(p>150))try{this.cache=new dso(p,this.logger)}catch(a){this.reportError(new gr(22,"GBJ:init",a))}}reportError(p){this.logger.Tf(p.code);this.onError(p);return p}},BKr=function(p){return EI(a=>{if(!mWo(a))return!1;for(const [l,y]of Object.entries(p)){const S=l,n=y;if(!(S in a)){if(n.KOs===!0)continue;return!1}if(!n(a[S]))return!1}return!0})}({ea:function(p){return EI(a=>a instanceof p)}(Tt)},"");var K7f=(new Date).getTime();var c2$=class extends U6{constructor(p){super(p)}};var r2F=class{constructor(p,a,l){this.z6=p;this.Oh=a;this.metadata=l}getMetadata(){return this.metadata}};var Xsf=class{constructor(p,a={}){this.oO=p;this.metadata=a;this.status=null}getMetadata(){return this.metadata}getStatus(){return this.status}};var wnh=class{constructor(p,a,l,y,S){this.name=p;this.methodType="unary";this.requestType=a;this.responseType=l;this.L=y;this.S=S}G(p,a={}){return new r2F(p,this,a)}getName(){return this.name}};var $sr=new wnh("/google.internal.waa.v1.Waa/Create",CGq,c2$,p=>p.Lq(),BB(c2$));var PZO=class extends U6{constructor(p){super(p)}};var hPo=new wnh("/google.internal.waa.v1.Waa/GenerateIT",Uxo,PZO,p=>p.Lq(),BB(PZO));var jNo=new Set(["SAPISIDHASH","APISIDHASH"]);var ZPo=class extends U6{constructor(p){super(p)}getValue(){const p=AI(this,2);if(Array.isArray(p)||p instanceof U6)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return JI(this,2)}};var VBo=BB(class extends U6{constructor(p){super(p)}getMessage(){return YD(this,2)}});var amv=class{constructor(p,a){this.S=[];this.j=[];this.X=[];this.U=[];this.L=[];this.D=p.s0;this.G=a;this.xhr=p.xhr;this.D&&Deq(this)}removeListener(p,a){p==="data"?iJ(this.S,a):p==="metadata"?iJ(this.j,a):p==="status"?iJ(this.X,a):p==="end"?iJ(this.U,a):p==="error"&&iJ(this.L,a);return this}cancel(){this.xhr.abort()}},iF$=class extends Error{constructor(){super();this.name="AsyncStack";Object.setPrototypeOf(this,new.target.prototype)}};g.yi(g.h$,Zzf);g.h$.prototype.L=function(){const p=new $8(this.j,this.U);this.S&&p.setCredentialsMode(this.S);return p}; g.h$.prototype.setCredentialsMode=function(p){this.S=p}; g.yi($8,g.lH);g.C=$8.prototype;g.C.open=function(p,a){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.N=p;this.UO=a;this.readyState=1;rA(this)}; g.C.send=function(p){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.K.signal.aborted)throw this.abort(),Error("Request was aborted.");this.L=!0;const a={headers:this.C,method:this.N,credentials:this.X,cache:void 0,signal:this.K.signal};p&&(a.body=p);(this.Sl||g.mm).fetch(new Request(this.UO,a)).then(this.B$.bind(this),this.p_.bind(this))}; g.C.abort=function(){this.response=this.responseText="";this.C=new Headers;this.status=0;this.K.abort("Request was aborted.");this.U&&this.U.cancel("Request was aborted.").catch(()=>{}); this.readyState>=1&&this.L&&this.readyState!=4&&(this.L=!1,qX(this));this.readyState=0}; g.C.B$=function(p){if(this.L&&(this.j=p,this.S||(this.status=this.j.status,this.statusText=this.j.statusText,this.S=p.headers,this.readyState=2,rA(this)),this.L&&(this.readyState=3,rA(this),this.L)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.gW.bind(this),this.p_.bind(this));else if(typeof g.mm.ReadableStream!=="undefined"&&"body"in p){this.U=p.body.getReader();if(this.D){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;EuA(this)}else p.text().then(this.by.bind(this),this.p_.bind(this))}; g.C.wW=function(p){if(this.L){if(this.D&&p.value)this.response.push(p.value);else if(!this.D){var a=p.value?p.value:new Uint8Array(0);if(a=this.G.decode(a,{stream:!p.done}))this.response=this.responseText+=a}p.done?qX(this):rA(this);this.readyState==3&&EuA(this)}}; g.C.by=function(p){this.L&&(this.response=this.responseText=p,qX(this))}; g.C.gW=function(p){this.L&&(this.response=p,qX(this))}; g.C.p_=function(){this.L&&qX(this)}; g.C.setRequestHeader=function(p,a){this.C.append(p,a)}; g.C.getResponseHeader=function(p){return this.S?this.S.get(p.toLowerCase())||"":""}; g.C.getAllResponseHeaders=function(){if(!this.S)return"";const p=[],a=this.S.entries();for(var l=a.next();!l.done;)l=l.value,p.push(l[0]+": "+l[1]),l=a.next();return p.join("\r\n")}; g.C.setCredentialsMode=function(p){this.X=p}; Object.defineProperty($8.prototype,"withCredentials",{get:function(){return this.X==="include"}, set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});g.pr.prototype.toString=function(){const p=[];var a=this.X;a&&p.push(Eq(a,Lpo,!0),":");var l=this.L;if(l||a=="file")p.push("//"),(a=this.K)&&p.push(Eq(a,Lpo,!0),"@"),p.push(g.qj(l).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),l=this.U,l!=null&&p.push(":",String(l));if(l=this.S)this.L&&l.charAt(0)!="/"&&p.push("/"),p.push(Eq(l,l.charAt(0)=="/"?Xnr:xsO,!0));(l=this.j.toString())&&p.push("?",l);(l=this.D)&&p.push("#",Eq(l,FpO));return p.join("")}; g.pr.prototype.resolve=function(p){const a=this.clone();let l=!!p.X;l?g.ID(a,p.X):l=!!p.K;l?a.K=p.K:l=!!p.L;l?g.Ud(a,p.L):l=p.U!=null;var y=p.S;if(l)g.Qa(a,p.U);else if(l=!!p.S){if(y.charAt(0)!="/")if(this.L&&!this.S)y="/"+y;else{var S=a.S.lastIndexOf("/");S!=-1&&(y=a.S.slice(0,S+1)+y)}S=y;if(S==".."||S==".")y="";else if(g.uB(S,"./")||g.uB(S,"/.")){y=ag(S,"/");S=S.split("/");const n=[];for(let V=0;V1||n.length==1&&n[0]!= "")&&n.pop(),y&&V==S.length&&n.push("")):(n.push(Z),y=!0)}y=n.join("/")}else y=S}l?a.S=y:l=p.j.toString()!=="";l?hp(a,p.j.clone()):l=!!p.D;l&&(a.D=p.D);return a}; g.pr.prototype.clone=function(){return new g.pr(this)}; var Lpo=/[#\/\?@]/g,xsO=/[#\?:]/g,Xnr=/[#\?]/g,Baf=/[#\?@]/g,FpO=/#/g;g.C=Ap.prototype;g.C.add=function(p,a){DO(this);this.U=null;p=jT(this,p);let l=this.L.get(p);l||this.L.set(p,l=[]);l.push(a);this.S=this.S+1;return this}; g.C.remove=function(p){DO(this);p=jT(this,p);return this.L.has(p)?(this.U=null,this.S=this.S-this.L.get(p).length,this.L.delete(p)):!1}; g.C.clear=function(){this.L=this.U=null;this.S=0}; g.C.isEmpty=function(){DO(this);return this.S==0}; g.C.forEach=function(p,a){DO(this);this.L.forEach(function(l,y){l.forEach(function(S){p.call(a,S,y,this)},this)},this)}; g.C.Ep=function(){DO(this);const p=Array.from(this.L.values()),a=Array.from(this.L.keys()),l=[];for(let y=0;y0?String(p[0]):a}; g.C.toString=function(){if(this.U)return this.U;if(!this.L)return"";const p=[],a=Array.from(this.L.keys());for(let y=0;y>>3;n.U!=1&&n.U!=2&&n.U!=15&&Kz(n,V,Z,"unexpected tag");n.L=1;n.S=0;n.j=0} function S(z){n.X[n.K++]=z;n.K==n.S&&l()} const n=this,V=p instanceof Array?p:new Uint8Array(p);let Z=0;for(;Z0?p:null};H2.prototype.isInputValid=function(){return this.L===null}; H2.prototype.yh=function(){return this.L}; H2.prototype.xi=function(){return!1}; H2.prototype.parse=function(p){this.L!==null&&pgr(this,p,"stream already broken");let a=null;try{{var l=this.U;l.U||YfZ(l,p,"stream already broken");l.L+=p;const n=Math.floor(l.L.length/4);if(n==0)var y=null;else{try{var S=Aq(l.L.slice(0,n*4))}catch(V){YfZ(l,l.L,V.message)}l.S+=n*4;l.L=l.L.slice(n*4);y=S}}a=y===null?null:this.j.parse(y)}catch(n){pgr(this,p,n.message)}this.S+=p.length;return a};var CZO={INIT:0,FQ:1,g5:2,Xk:3,hT:4,Fp:5,STRING:6,d5:7,UJ:8,DO:9,lB:10,sJ:11,Dt:12,l6:13,AU:14,H0:15,fb:16,EJ:17,wJ:18,Fo:19,WV:20};g.C=dh.prototype;g.C.isInputValid=function(){return this.X!=3}; g.C.yh=function(){return this.C}; g.C.done=function(){return this.X===2}; g.C.xi=function(){return!1}; g.C.parse=function(p){function a(){const X=V.pop();return X!=null?X:z.FQ} function l(){for(;c0;)if(X= p[c++],n.K===4?n.K=0:n.K++,!X)break a;if(X==='"'&&!n.G){n.L=a();break}if(X==="\\"&&!n.G&&(n.G=!0,X=p[c++],!X))break;if(n.G)if(n.G=!1,X==="u"&&(n.K=1),X=p[c++])continue;else break;Z.lastIndex=c;X=Z.exec(p);if(!X){c=p.length+1;break}c=X.index+1;X=p[X.index];if(!X)break}n.U+=c-v;continue;case z.DO:if(!X)continue;X==="r"?n.L=z.lB:lc(n,p,c);continue;case z.lB:if(!X)continue;X==="u"?n.L=z.sJ:lc(n,p,c);continue;case z.sJ:if(!X)continue;X==="e"?n.L=a():lc(n,p,c);continue;case z.Dt:if(!X)continue;X==="a"? n.L=z.l6:lc(n,p,c);continue;case z.l6:if(!X)continue;X==="l"?n.L=z.AU:lc(n,p,c);continue;case z.AU:if(!X)continue;X==="s"?n.L=z.H0:lc(n,p,c);continue;case z.H0:if(!X)continue;X==="e"?n.L=a():lc(n,p,c);continue;case z.fb:if(!X)continue;X==="u"?n.L=z.EJ:lc(n,p,c);continue;case z.EJ:if(!X)continue;X==="l"?n.L=z.wJ:lc(n,p,c);continue;case z.wJ:if(!X)continue;X==="l"?n.L=a():lc(n,p,c);continue;case z.Fo:X==="."?n.L=z.WV:lc(n,p,c);continue;case z.WV:if("0123456789.eE+-".indexOf(X)!==-1)continue;else c--, n.U--,n.L=a();continue;default:lc(n,p,c)}}} function S(X){n.S>1||(X||(X=B===-1?n.j+p.substring(G,c):p.substring(B,c)),n.UO?n.D.push(X):n.D.push(JSON.parse(X)),B=c)} const n=this,V=n.N,Z=n.Sl,z=CZO,d=p.length;let G=0,B=-1,c=0;for(;c0?(w=n.D,n.D=[],w):null}return null};r5.prototype.isInputValid=function(){return this.X===null}; r5.prototype.yh=function(){return this.X}; r5.prototype.xi=function(){return!1}; r5.prototype.parse=function(p){function a(z){if(z){(n.D||z.length>1)&&y("extra status: "+z);n.D=!0;const d={};d[2]=z[0];n.j.push(d)}} function l(z){if(z)for(let d=0;d0?(p=n.j,n.j=[],p):null};var f0M=class{constructor(p){this.L=p;this.S=null;this.X=this.U=0;this.C=!1;this.j=this.G=this.D=null;this.K=new g.hL(this);this.K.listen(this.L,"readystatechange",this.UO)}BP(){return this.L}getStatus(){return this.X}UO(p){p=p.target;try{if(p==this.L)a:{const n=g.aU(this.L);var a=this.L.S,l=this.L.getStatus();const V=g.me(this.L);p=[];if(g.gR(this.L)instanceof Array){const Z=g.gR(this.L);Z.length>0&&Z[0]instanceof Uint8Array&&(this.C=!0,p=Z)}if(!(n<3||n==3&&!V&&p.length==0))if(l=l==200||l==206,n== 4&&(a==8?I9(this,7):a==7?I9(this,8):l||I9(this,3)),this.S||(this.S=QHO(this.L),this.S==null&&I9(this,5)),this.X>2)ic(this);else{if(p.length>this.U){const Z=p.length;a=[];try{if(this.S.xi())for(var y=0;ythis.U){y=V.slice(this.U);this.U=V.length;try{const Z=this.S.parse(y);Z!=null&&this.j&&this.j(Z)}catch(Z){I9(this,5);ic(this);break a}}n==4?(V.length!=0||this.C?I9(this,2):I9(this,4),ic(this)):I9(this,1)}}}catch(n){I9(this,6),ic(this)}}};var pyA=class{constructor(p){p=this.U=p;var a=(0,g.Qo)(this.j,this);p.j=a;p=this.U;a=(0,g.Qo)(this.X,this);p.G=a;this.S={};this.L={}}addListener(p,a){e5(this,p,a);return this}removeListener(p,a){const l=this.S[p];l&&g.yA(l,a);(p=this.L[p])&&g.yA(p,a);return this}once(p,a){let l=this.L[p];l||(l=[],this.L[p]=l);l.push(a);return this}j(p){var a=this.S.data;a&&T6e(p,a);(a=this.L.data)&&T6e(p,a);this.L.data=[]}X(){switch(this.U.getStatus()){case 1:iu(this,"readable");break;case 5:case 6:case 4:case 7:case 3:iu(this, "error");break;case 8:iu(this,"close");break;case 2:iu(this,"end")}}};var TAe=class{constructor(){var p={format:"jspb"};this.T$=p.T$||g.o1("suppressCorsPreflight",p)||!1;this.withCredentials=p.withCredentials||g.o1("withCredentials",p)||!1;this.Ms=p.Ms||[];this.Ex=p.Ex||[];this.w2=p.w2;this.L=p.UAu||!1}serverStreaming(p,a,l,y){const S=p.substring(0,p.length-y.name.length);return oSO(n=>{const V=n.Oh;var Z=n.getMetadata();const z=YLo(this,!1);Z=j$F(this,Z,z,S+V.getName());const d=lm$(z,V.S,!0);n=V.L(n.z6);z.send(Z,"POST",n);return d},this.Ms).call(this,y.G(a,l))}};NAh.prototype.create=function(p,a,l){return QYM(this.L,this.S+"/$rpc/google.internal.waa.v1.Waa/Create",p,a||{},$sr,l)};var g2=class{constructor(p){this.mX=3;this.BI=p;this.defaultValue=!1;this.aS="bool"}},YM=class{constructor(p){this.mX=3;this.BI=p;this.defaultValue=0;this.aS="double"}};var v$O=new g2(45724570),o9o=new g2(45725537),KpZ=new g2(45727950),qF=new g2(45727949);var r9r=new YM(45725542),c9M=new YM(45725543),dpo=new YM(45725539),BWo=new YM(45725541),G6h=new YM(45725540),zTo=new YM(45725538),ZUv=new class{constructor(p,a,l,y){this.mX=p;this.BI=a;this.defaultValue=y;this.aS="int"}}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",EB("0"));var eRE=class{constructor(p){this.L=p}};var bgf=class{constructor(p){this.L=p}};var ECF="://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(" "),CBr=/\bocr\b/;var T8O=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var I4r=class extends U6{constructor(p){super(p,500)}};var RRv=class extends U6{constructor(p){super(p,500)}};var KvF=class extends U6{constructor(p){super(p)}getName(){return YD(this,1)}getOptions(){return Ke(this,RRv,3)}clearOptions(){return EL(this,3)}};var UGr=function(p){return a=>{a=JSON.parse(a);if(!Array.isArray(a))throw Error("Expected jspb data to be an array, got "+cj(a)+": "+a);a[rD]|=34;return new p(a)}}(class extends U6{constructor(p){super(p)}getName(){return YD(this,1)}getOptions(){return Ke(this,I4r,3)}clearOptions(){return EL(this,3)}iX(){return GH(this,6)}iM(p){y0(this,6,p)}});var sgM=Symbol();var rLM=Symbol();var Bb=!1,D1A=1,$kq=Symbol("SIGNAL");var J$$={version:0,ihc:0,Ls:!1,producers:void 0,lFY:void 0,Q0:void 0,q6T:void 0,sMv:!1,ix7:!1,ZxY:!1,kind:"unknown",QMl:()=>!1, D2s:()=>{}, CL:()=>{}, oez:()=>{}, n5:function(p,a){return Object.is(p,a)}, value:void 0,kind:"signal"};var x7=class extends g.lH{constructor(p){super();this.X=this.S=0;this.yl=p??{zD:(a,l)=>setTimeout(a,l), bk:a=>{clearTimeout(a)}}; this.L=window.navigator?.onLine??!0;this.U=async()=>{await SD(this)}; window.addEventListener("offline",this.U);window.addEventListener("online",this.U);this.X||this.JN()}dispose(){window.removeEventListener("offline",this.U);window.removeEventListener("online",this.U);this.yl.bk(this.X);delete x7.instance}Bl(){return this.L}JN(){this.X=this.yl.zD(async()=>{this.L?window.navigator?.onLine||await SD(this):await SD(this);this.JN()},3E4)}};var uTZ=sBF(class extends U6{constructor(p){super(p)}S(){return GH(this,5)}},[0,vS,IKh,PS,vS,-2,PS,$M]);var f3M=class{constructor(){this.data=[];this.L=-1}set(p,a=!0){0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==a&&(this.data[p]=a,this.L=-1)}get(p){return!!this.data[p]}};var xE;g.yi(g.qD,g.YB);g.C=g.qD.prototype;g.C.start=function(){this.stop();this.j=!1;const p=p4Z(this),a=K3$(this);p&&!a&&this.S.mozRequestAnimationFrame?(this.L=g.kn(this.S,"MozBeforePaint",this.U),this.S.mozRequestAnimationFrame(null),this.j=!0):this.L=p&&a?p.call(this.S,this.U):this.S.setTimeout(kYo(this.U),20)}; g.C.stop=function(){if(this.isActive()){const p=p4Z(this),a=K3$(this);p&&!a&&this.S.mozRequestAnimationFrame?I_(this.L):p&&a?a.call(this.S,this.L):this.S.clearTimeout(this.L)}this.L=null}; g.C.isActive=function(){return this.L!=null}; g.C.T7=function(){this.j&&this.L&&I_(this.L);this.L=null;this.D.call(this.X,g.eB())}; g.C.fz=function(){this.stop();g.qD.SD.fz.call(this)};g.yi(g.SF,g.YB);g.C=g.SF.prototype;g.C.sy=0;g.C.fz=function(){g.SF.SD.fz.call(this);this.stop();delete this.L;delete this.S}; g.C.start=function(p){this.stop();this.sy=g.Wu(this.U,p!==void 0?p:this.mD)}; g.C.JP=function(p){this.isActive()||this.start(p)}; g.C.stop=function(){this.isActive()&&g.mm.clearTimeout(this.sy);this.sy=0}; g.C.mE=function(){this.isActive()&&g.si(this)}; g.C.isActive=function(){return this.sy!=0}; g.C.Lb=function(){this.sy=0;this.L&&this.L.call(this.S)};g.J1=class extends g.YB{constructor(p,a,l){super();this.X=l!=null?p.bind(l):p;this.mD=a;this.U=null;this.L=!1;this.S=0;this.xE=null}j(p){this.U=arguments;this.xE||this.S?this.L=!0:S8(this)}stop(){this.xE&&(g.mm.clearTimeout(this.xE),this.xE=null,this.L=!1,this.U=null)}pause(){this.S++}resume(){this.S--;this.S||!this.L||this.xE||(this.L=!1,S8(this))}fz(){super.fz();this.stop()}};g.Ogh=class{constructor(p,a){this.L=p[g.mm.Symbol.iterator]();this.S=a}[Symbol.iterator](){return this}next(){const p=this.L.next();return{value:p.done?void 0:this.S.call(void 0,p.value),done:p.done}}};g.yi(g.yD,g.lH);g.C=g.yD.prototype;g.C.isPlaying=function(){return this.L==1}; g.C.isPaused=function(){return this.L==-1}; g.C.zq=function(){this.J4("begin")}; g.C.b4=function(){this.J4("end")}; g.C.onFinish=function(){this.J4("finish")}; g.C.onStop=function(){this.J4("stop")}; g.C.J4=function(p){this.dispatchEvent(p)};var kVO=Uy(function(){const p=g.HA("DIV");var a=g.H5?"-webkit":D2?"-moz":null;let l="transition:opacity 1s linear;";a&&(l+=a+"-transition:opacity 1s linear;");a=DQM({style:l});if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("");p.innerHTML=Rz(a);return g.qp(p.firstChild,"transition")!=""});g.yi(ya,g.yD);g.C=ya.prototype;g.C.play=function(){if(this.isPlaying())return!1;this.zq();this.J4("play");this.startTime=g.eB();this.L=1;if(kVO())return g.VB(this.S,this.D),this.U=g.Wu(this.yw,void 0,this),!0;this.T0(!1);return!1}; g.C.yw=function(){g.Lf(this.S);$pF(this.S,this.G);g.VB(this.S,this.j);this.U=g.Wu((0,g.Qo)(this.T0,this,!1),this.X*1E3)}; g.C.stop=function(){this.isPlaying()&&this.T0(!0)}; g.C.T0=function(p){g.VB(this.S,"transition","");g.mm.clearTimeout(this.U);g.VB(this.S,this.j);this.endTime=g.eB();this.L=0;if(p)this.onStop();else this.onFinish();this.b4()}; g.C.fz=function(){this.stop();ya.SD.fz.call(this)}; g.C.pause=function(){};var Vpr={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};St("Element","attributes")||St("Node","attributes");St("Element","innerHTML")||St("HTMLElement","innerHTML");St("Node","nodeName");St("Node","nodeType");St("Node","parentNode");St("Node","childNodes");St("HTMLElement","style")||St("Element","style");St("HTMLStyleElement","sheet");var LtM=rUF("getPropertyValue"),XBM=rUF("setProperty");St("Element","namespaceURI")||St("Node","namespaceURI");var PHo={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var fGr,me$,JEq,qvr,p7h;fGr=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]");me$=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.MRA=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.ge=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]");JEq=/^http:\/\/.*/;g.msE=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");qvr=/\s+/;p7h=/[\d\u06f0-\u06f9]/;var Gb=class{constructor(p){this.S=p}q5(){return new c0q(this.S())}[Symbol.iterator](){return new B7(this.S())}L(){return new B7(this.S())}},c0q=class extends g.WK{constructor(p){super();this.S=p}next(){return this.S.next()}[Symbol.iterator](){return new B7(this.S)}L(){return new B7(this.S)}},B7=class extends Gb{constructor(p){super(()=>p); this.U=p}next(){return this.U.next()}};ru.prototype.clone=function(){return new ru(this.L,this.G,this.U,this.X,this.j,this.D,this.S,this.K)}; ru.prototype.equals=function(p){return this.L==p.L&&this.G==p.G&&this.U==p.U&&this.X==p.X&&this.j==p.j&&this.D==p.D&&this.S==p.S&&this.K==p.K};ft.prototype.clone=function(){return new ft(this.start,this.end)};(function(){if(Isv){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(g.Vo()))?p[1]:"0"}return UK?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(g.Vo()))?p[0].replace(/_/g,"."):"10"):g.an?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(g.Vo()))?p[1]:""):bRM||Ihr||RAr?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(g.Vo()))?p[1].replace(/_/g,"."):""):""})();var GxA=function(){if(g.cq)return pR(/Firefox\/([0-9.]+)/);if(g.qT||g.av||g.rR)return Tq;if(g.TF){if(sz()||h_()){var p=pR(/CriOS\/([0-9.]+)/);if(p)return p}return pR(/Chrome\/([0-9.]+)/)}if(g.i3&&!sz())return pR(/Version\/([0-9.]+)/);if(Tj||OD){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vo()))return p[1]+"."+p[2]}else if(g.zM)return(p=pR(/Android\s+([0-9.]+)/))?p:pR(/Version\/([0-9.]+)/);return""}();g.yi(g.tj,g.YB);g.C=g.tj.prototype;g.C.subscribe=function(p,a,l){let y=this.S[p];y||(y=this.S[p]=[]);const S=this.D;this.L[S]=p;this.L[S+1]=a;this.L[S+2]=l;this.D=S+3;y.push(S);return S}; g.C.unsubscribe=function(p,a,l){if(p=this.S[p]){const y=this.L;if(p=p.find(function(S){return y[S+1]==a&&y[S+2]==l}))return this.h5(p)}return!1}; g.C.h5=function(p){const a=this.L[p];if(a){const l=this.S[a];this.j!=0?(this.U.push(p),this.L[p+1]=()=>{}):(l&&g.yA(l,p),delete this.L[p],delete this.L[p+1],delete this.L[p+2])}return!!a}; g.C.publish=function(p,a){var l=this.S[p];if(l){const S=Array(arguments.length-1);var y=arguments.length;let n;for(n=1;n0&&this.j==0)for(;l=this.U.pop();)this.h5(l)}}return n!=0}return!1}; g.C.clear=function(p){if(p){const a=this.S[p];a&&(a.forEach(this.h5,this),delete this.S[p])}else this.L.length=0,this.S={}}; g.C.fz=function(){g.tj.SD.fz.call(this);this.clear();this.U.length=0};g.Az.prototype.set=function(p,a){a===void 0?this.Yp.remove(p):this.Yp.set(p,g.Ad(a))}; g.Az.prototype.get=function(p){let a;try{a=this.Yp.get(p)}catch(l){return}if(a!==null)try{return JSON.parse(a)}catch(l){throw"Storage: Invalid value was encountered";}}; g.Az.prototype.remove=function(p){this.Yp.remove(p)};g.yi(Tu,g.Az);Tu.prototype.set=function(p,a){Tu.SD.set.call(this,p,s9(a))}; Tu.prototype.Xl=function(p){p=Tu.SD.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";}; Tu.prototype.get=function(p){if(p=this.Xl(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};g.yi(X3,Tu);X3.prototype.set=function(p,a,l){if(a=s9(a)){if(l){if(l=l.length)return g.kM;var S=l.key(a++);if(p)return g.J0(S);S=l.getItem(S);if(typeof S!=="string")throw"Storage mechanism: Invalid value was encountered";return g.J0(S)}; return y}; g.C.clear=function(){U_(this);this.L.clear()}; g.C.key=function(p){U_(this);return this.L.key(p)};g.yi(IV,Ug);g.yi(ulr,Ug);g.yi(RV,Fa);RV.prototype.set=function(p,a){this.S.set(this.L+p,a)}; RV.prototype.get=function(p){return this.S.get(this.L+p)}; RV.prototype.remove=function(p){this.S.remove(this.L+p)}; RV.prototype.q5=function(p){const a=this.S[Symbol.iterator](),l=this,y=new g.WK;y.next=function(){var S=a.next();if(S.done)return S;for(S=S.value;S.slice(0,l.L.length)!=l.L;){S=a.next();if(S.done)return S;S=S.value}return g.J0(p?S.slice(l.L.length):l.S.get(S))}; return y};qo.prototype.getValue=function(){return this.S}; qo.prototype.clone=function(){return new qo(this.L,this.S)};var fL=class{constructor(p){this.L=[];if(p)a:{let l;if(p instanceof fL){if(l=p.Ep(),p=p.Yc(),this.L.length<=0){var a=this.L;for(let y=0;y0;){const y=p-1>>1;if(a[y].L>l.L)a[p]=a[y],p=y;else break}a[p]=l}remove(){var p=this.L,a=p.length;const l=p[0];if(!(a<=0)){if(a==1)p.length=0;else{p[0]=p.pop();p=0;a=this.L; const S=a.length,n=a[p];for(;p>1;){var y=p*2+1;const V=p*2+2;y=Vn.L)break;a[p]=a[y];p=y}a[p]=n}return l.getValue()}}Yc(){const p=this.L,a=[],l=p.length;for(let y=0;y>>16&65535|0;for(var n;l!==0;){n=l>2E3?2E3:l;l-=n;do S=S+a[y++]|0,p=p+S|0;while(--n);S%=65521;p%=65521}return S|p<<16|0};for(var rs={},pg,igA=[],ad=0;ad<256;ad++){pg=ad;for(var TKM=0;TKM<8;TKM++)pg=pg&1?3988292384^pg>>>1:pg>>>1;igA[ad]=pg}rs=function(p,a,l,y){l=y+l;for(p^=-1;y>>8^igA[(p^a[y])&255];return p^-1};var Tx={};Tx={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 C5=[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],eu=[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],HWA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],o8=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],BV=Array(576);BD(BV);var cV=Array(60);BD(cV);var bw=Array(512);BD(bw);var vY=Array(256);BD(vY);var Et=Array(29);BD(Et);var K5=Array(30);BD(K5);var tTM,jyq,WGZ,MTF=!1;var uw;uw=[new W7(0,0,0,0,function(p,a){var l=65535;for(l>p.dA-5&&(l=p.dA-5);;){if(p.Pa<=1){E6(p);if(p.Pa===0&&a===0)return 1;if(p.Pa===0)break}p.bM+=p.Pa;p.Pa=0;var y=p.LO+l;if(p.bM===0||p.bM>=y)if(p.Pa=p.bM-y,p.bM=y,LN(p,!1),p.oX.Sa===0)return 1;if(p.bM-p.LO>=p.Db-262&&(LN(p,!1),p.oX.Sa===0))return 1}p.q3=0;if(a===4)return LN(p,!0),p.oX.Sa===0?3:4;p.bM>p.LO&&LN(p,!1);return 1}), new W7(4,4,8,4,Cn),new W7(4,5,16,8,Cn),new W7(4,6,32,32,Cn),new W7(4,4,16,16,XI),new W7(8,16,32,32,XI),new W7(8,16,128,128,XI),new W7(8,32,128,256,XI),new W7(32,128,258,1024,XI),new W7(32,258,258,4096,XI)];var OWA={};OWA=function(){this.input=null;this.ZK=this.Mb=this.hX=0;this.output=null;this.z0=this.Sa=this.xZ=0;this.msg="";this.state=null;this.di=2;this.Ae=0};var DLq=Object.prototype.toString; il.prototype.push=function(p,a){var l=this.oX,y=this.options.chunkSize;if(this.ended)return!1;var S=a===~~a?a:a===!0?4:0;typeof p==="string"?l.input=Jdq(p):DLq.call(p)==="[object ArrayBuffer]"?l.input=new Uint8Array(p):l.input=p;l.hX=0;l.Mb=l.input.length;do{l.Sa===0&&(l.output=new Yr.m9(y),l.xZ=0,l.Sa=y);p=Y6h(l,S);if(p!==1&&p!==0)return this.b4(p),this.ended=!0,!1;if(l.Sa===0||l.Mb===0&&(S===4||S===2))if(this.options.to==="string"){var n=Yr.ll(l.output,l.xZ);a=n;n=n.length;if(n<65537&&(a.subarray&& Dso||!a.subarray))a=String.fromCharCode.apply(null,Yr.ll(a,n));else{for(var V="",Z=0;Z0||l.Sa===0)&&p!==1);if(S===4)return(l=this.oX)&&l.state?(y=l.state.status,y!==42&&y!==69&&y!==73&&y!==91&&y!==103&&y!==113&&y!==666?p=FE(l,-2):(l.state=null,p=y===113?FE(l,-3):0)):p=-2,this.b4(p),this.ended=!0,p===0;S===2&&(this.b4(0),l.Sa=0);return!0}; il.prototype.b4=function(p){p===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Yr.P7(this.chunks));this.chunks=[];this.err=p;this.msg=this.oX.msg};var d0=()=>Math.random().toString(36).substring(7).split("").join("."),zj=`@@redux/INIT${d0()}`,xOZ=`@@redux/REPLACE${d0()}`;var F2E=typeof Symbol==="function"&&Symbol.observable||"@@observable";var OjZ=sBF(class extends U6{constructor(p){super(p)}},[0,vS,o8F,LL,ER,LL,-1,CL,ER,CL,-1,vS,CL,o8F,xM,[0,ER,-3,CL],LL,-1,CL]);var Ga$=-996060077;var NKF=function(p,a){return(()=>{const l=new dnr(p,a);return()=>l})()}("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.lZ=class{constructor(p){this.name=p}};var my=new g.lZ("adInfoDialogEndpoint");var HqO=new g.lZ("adPingingEndpoint");var YAe=new g.lZ("crossDeviceProgressCommand");var dq=new g.lZ("actionCompanionAdRenderer");var oZ=new g.lZ("adActionInterstitialRenderer");var sdZ=new g.lZ("adDurationRemainingRenderer");var KI=new g.lZ("adHoverTextButtonRenderer");var cjF=new g.lZ("adInfoDialogRenderer");var HV=new g.lZ("adMessageRenderer");var ia=new g.lZ("adPreviewRenderer");var Lk=new g.lZ("adsEngagementPanelRenderer");var liE=new g.lZ("dismissablePanelTextPortraitImageRenderer");var Rw=new g.lZ("adsEngagementPanelSectionListViewModel");var Usr=new g.lZ("flyoutCtaRenderer");var PL=new g.lZ("imageCompanionAdRenderer");var S3=new g.lZ("instreamAdPlayerOverlayRenderer");var aGe=new g.lZ("instreamSurveyAdBackgroundImageRenderer");var RG=new g.lZ("instreamSurveyAdPlayerOverlayRenderer");var zr=new g.lZ("instreamSurveyAdRenderer"),wj=new g.lZ("instreamSurveyAdSingleSelectQuestionRenderer"),rj=new g.lZ("instreamSurveyAdMultiSelectQuestionRenderer"),y8=new g.lZ("instreamSurveyAdAnswerRenderer"),Qdr=new g.lZ("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var ST=new g.lZ("instreamVideoAdRenderer");var hRo=new g.lZ("textOverlayAdContentRenderer"),A2v=new g.lZ("enhancedTextOverlayAdContentRenderer"),g$r=new g.lZ("imageOverlayAdContentRenderer");var nx=new g.lZ("playerOverlayLayoutRenderer");var Vv=new g.lZ("videoInterstitialButtonedCenteredLayoutRenderer");var VZZ=new g.lZ("aboveFeedAdLayoutRenderer");var oqe=new g.lZ("belowPlayerAdLayoutRenderer");var S3e=new g.lZ("inPlayerAdLayoutRenderer");var z_A=new g.lZ("inPlayerOrganicOverlayAdLayoutRenderer");var zx=new g.lZ("playerBytesAdLayoutRenderer");var Gx=new g.lZ("playerBytesSequenceItemAdLayoutRenderer");var XJ=new g.lZ("playerUnderlayAdLayoutRenderer");var Zp=new g.lZ("adIntroRenderer");var C9=new g.lZ("playerBytesSequentialLayoutRenderer");var hwM=new g.lZ("slidingTextPlayerOverlayRenderer");var dU=new g.lZ("surveyTextInterstitialRenderer");var Xz=new g.lZ("videoAdTrackingRenderer");var nRA=new g.lZ("videoInterstitialCenteredLayoutViewModel");var Ywf=new g.lZ("simpleAdBadgeRenderer");var Dt=new g.lZ("skipAdRenderer"),qwA=new g.lZ("skipButtonRenderer");var Gi=new g.lZ("adSlotRenderer");var ek=new g.lZ("squeezebackPlayerSidePanelRenderer");var J2M=new g.lZ("timedPieCountdownRenderer");var wU=new g.lZ("adAvatarViewModel");var $s=new g.lZ("adBadgeViewModel");var PJ=new g.lZ("adButtonViewModel");var f4h=new g.lZ("adDetailsLineViewModel");var phA=new g.lZ("adDisclosureBannerViewModel");var aEM=new g.lZ("adPodIndexViewModel");var lEq=new g.lZ("imageBackgroundViewModel");var ych=new g.lZ("adGridCardCollectionViewModel");var SlM=new g.lZ("adGridCardTextViewModel");var nov=new g.lZ("adPreviewViewModel");var VEh=new g.lZ("playerAdAvatarLockupCardButtonedViewModel");var Z4F=new g.lZ("skipAdButtonViewModel");var ooF=new g.lZ("skipAdViewModel");var z6M=new g.lZ("timedPieCountdownViewModel");var d0q=new g.lZ("visitAdvertiserLinkViewModel");var XB=new g.lZ("bannerImageLayoutViewModel");var xk=new g.lZ("topBannerImageTextIconButtonedLayoutViewModel");var FB=new g.lZ("adsEngagementPanelLayoutViewModel");var bp=new g.lZ("displayUnderlayTextGridCardsLayoutViewModel");g.ox=new g.lZ("browseEndpoint");var G7$=new g.lZ("confirmDialogEndpoint");var B4$=new g.lZ("commandContext");var cFE=new g.lZ("rawColdConfigGroup");var BJA=new g.lZ("rawHotConfigGroup");g.A0=new g.lZ("commandExecutorCommand");var ccE=class extends U6{constructor(p){super(p)}};var m_Z={uum:0,ZzO:1,mOz:32,jo9:61,dcz:67,fNv:103,ygO:86,hIT:42,N7T:60,qOO:62,Uc9:73,LSV:76,evz:88,Ee9:90,WSc:99,CTO:98,waT:100,S6l:102,geu:41,bxT:69,BGI:70,QoI:71,xM:2,Sf:27,ANDROID:3,J1:54,iL:14,mJ:91,Zr:55,q_:24,Oz:20,zK:18,Vb:21,CZ:104,Yh:30,Ug:29,XY:28,IVO:101,yx:34,N_:36,Ph:38,IOS:5,OL:15,YO:92,zb:40,PE:25,Vs:17,CB:19,F6:64,hc:66,mY:26,St:22,UW:33,jt:68,Xn:35,NK:53,LR:37,xO:39,WTu:7,gvO:57,bzz:43,Qcm:59,B7m:93,Sv:74,DOO:75,lVO:85,scY:65,Hz9:80,RII:8,ws9:10,vv9:58,kmY:63,A9T:72,LS:23,som:11, Agc:13,Jj:12,dOY:16,FTz:56,XaT:31,mf:77,X6:84,YOT:87,fB:89,ys:94,IH:95};var Sp=class extends U6{constructor(p){super(p)}hI(){return YD(this,3)}Lu(){return YD(this,5)}pg(p){return lX(this,5,p)}};var Nd=class extends U6{constructor(p){super(p)}};var rch=class extends U6{constructor(p){super(p)}};var aP=class extends U6{constructor(p){super(p)}getDeviceId(){return YD(this,6)}Fk(p){var a=FV(this,9,v5,3,!0);XE(a,p);return a[p]}getPlayerType(){return GH(this,36)}setHomeGroupInfo(p){return Sl(this,rch,81,p)}clearLocationPlayabilityToken(){return EL(this,89)}};var zz=class extends U6{constructor(p){super(p)}getValue(){return YD(this,ee(this,Gz,2))}},Gz=[2,3,4,5,6];var wh$=class extends U6{constructor(p){super(p)}setTrackingParams(p){return EL(this,1,$N(p,!1))}};var oP=class extends U6{constructor(p){super(p)}};var tp=class extends U6{constructor(p){super(p)}Fk(p){var a=FV(this,5,hI,3,!0);XE(a,p);return a[p]}};var IP=class extends U6{constructor(p){super(p)}getToken(){return DQ(this,2)}setToken(p){return lX(this,2,p)}};var vp=class extends U6{constructor(p){super(p)}setSafetyMode(p){return y0(this,5,p)}};var pe=class extends U6{constructor(p){super(p)}U(p){return Sl(this,aP,1,p)}};var An=new g.lZ("thumbnailLandscapePortraitRenderer");g.$0q=new g.lZ("changeEngagementPanelVisibilityAction");var S8f=new g.lZ("continuationCommand");g.SR=new g.lZ("openPopupAction");var PMo=new g.lZ("signalAction");g.ng=new g.lZ("webCommandMetadata");var ILf=new g.lZ("metadataBadgeRenderer");var yYe=new g.lZ("signalServiceEndpoint");var a7=new g.lZ("innertubeCommand");var LIr=new g.lZ("loggingDirectives");var pLo={MV:"EMBEDDED_PLAYER_MODE_UNKNOWN",uD:"EMBEDDED_PLAYER_MODE_DEFAULT",nk:"EMBEDDED_PLAYER_MODE_PFP",Gk:"EMBEDDED_PLAYER_MODE_PFL"};var lbr=new g.lZ("channelThumbnailEndpoint");var U8E=new g.lZ("embeddedPlayerErrorMessageRenderer");var jeF=new g.lZ("embeddedPlayerOverlayVideoDetailsRenderer"),yxO=new g.lZ("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Spo=new g.lZ("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var TMr=new g.lZ("embedsInfoPanelRenderer");var V8=new g.lZ("feedbackEndpoint");var Xhr=new g.lZ("callToActionButtonViewModel");var x0r=new g.lZ("interactionLoggingCommandMetadata");var aSM={Vll:"WEB_DISPLAY_MODE_UNKNOWN",Oz9:"WEB_DISPLAY_MODE_BROWSER",xO9:"WEB_DISPLAY_MODE_MINIMAL_UI",PTT:"WEB_DISPLAY_MODE_STANDALONE",zIO:"WEB_DISPLAY_MODE_FULLSCREEN"};var FIe=class extends U6{constructor(p){super(p)}getPlayerType(){return GH(this,7)}K1(){return YD(this,19)}setVideoId(p){return lX(this,19,p)}};var XYO=class extends U6{constructor(p){super(p)}};var LUv=class extends U6{constructor(p){super(p)}};var jp=class extends U6{constructor(p){super(p,500)}},Eof=[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];var CMF=new g.lZ("loggingContext");var Ob=class extends U6{constructor(p){super(p)}};var bX=class extends U6{constructor(p){super(p)}K1(){return DQ(this,ee(this,wm,1))}setVideoId(p){return dk(this,1,wm,Bp(p))}getPlaylistId(){return DQ(this,ee(this,wm,2))}},wm=[1,2];var twM=class extends U6{constructor(p){super(p)}};var ha=new g.lZ("changeKeyedMarkersVisibilityCommand");var voo=new g.lZ("changeMarkersVisibilityCommand");var uFh=new g.lZ("loadMarkersCommand");var KIe=new g.lZ("suggestedActionDataViewModel");var U7r=new g.lZ("timelyActionViewModel");var s2M=new g.lZ("timelyActionsOverlayViewModel");var srh=new g.lZ("productListItemRenderer");var e6f=new g.lZ("shoppingOverlayRenderer");var WLv=new g.lZ("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var b4A=new g.lZ("adFeedbackEndpoint");var IEM=new g.lZ("menuEndpoint");var R6F=new g.lZ("phoneDialerEndpoint");var uvM=new g.lZ("sendSmsEndpoint");var HDO=new g.lZ("copyTextEndpoint");var O4r=new g.lZ("shareEndpoint"),k7v=new g.lZ("shareEntityEndpoint"),MEM=new g.lZ("shareEntityServiceEndpoint"),m0M=new g.lZ("webPlayerShareEntityServiceEndpoint");g.aY=new g.lZ("urlEndpoint");g.zK=new g.lZ("watchEndpoint");var tEF=new g.lZ("watchPlaylistEndpoint");g.jcZ=new g.lZ("offlineOrchestrationActionCommand");var WIM=new g.lZ("compositeVideoOverlayRenderer");var H4A=new g.lZ("miniplayerRenderer");var zqM=new g.lZ("paidContentOverlayRenderer");var D0v=new g.lZ("playerMutedAutoplayOverlayRenderer"),i4$=new g.lZ("playerMutedAutoplayEndScreenRenderer");var gmh=new g.lZ("unserializedPlayerResponse"),T4h=new g.lZ("unserializedPlayerResponse");var N4O=new g.lZ("playlistEditEndpoint");var Z4;g.gA=new g.lZ("buttonRenderer");Z4=new g.lZ("toggleButtonRenderer");var yN$=new g.lZ("counterfactualRenderer");var sco=new g.lZ("resolveUrlCommandMetadata");var U0E=new g.lZ("modifyChannelNotificationPreferenceEndpoint");var WAq=new g.lZ("pingingEndpoint");var Qcq=new g.lZ("unsubscribeEndpoint");g.lE=new g.lZ("subscribeButtonRenderer");var h6F=new g.lZ("subscribeEndpoint");var t3r=new g.lZ("buttonViewModel");var t1$=new g.lZ("qrCodeRenderer");var AcE={tC:"LIVING_ROOM_APP_MODE_UNSPECIFIED",RH:"LIVING_ROOM_APP_MODE_MAIN",Hu:"LIVING_ROOM_APP_MODE_KIDS",k5:"LIVING_ROOM_APP_MODE_MUSIC",vu:"LIVING_ROOM_APP_MODE_UNPLUGGED",AC:"LIVING_ROOM_APP_MODE_GAMING"};var vtr=new g.lZ("autoplaySwitchButtonRenderer");var e3,dZe,UzF,r0h;e3=new g.lZ("decoratedPlayerBarRenderer");dZe=new g.lZ("chapteredPlayerBarRenderer");UzF=new g.lZ("multiMarkersPlayerBarRenderer");r0h=new g.lZ("chapterRenderer");g.YT$=new g.lZ("markerRenderer");var Sxf=new g.lZ("decoratedPlayheadRenderer");var ege=new g.lZ("desktopOverlayConfigRenderer");var jxr=new g.lZ("engagementPanelSectionListRenderer");var Kjf=new g.lZ("gatedActionsOverlayViewModel");var m5o=new g.lZ("heatMarkerRenderer");var JvE=new g.lZ("heatmapRenderer");var Rg$=new g.lZ("watchToWatchTransitionRenderer");var iPr=new g.lZ("playlistPanelRenderer");var goO=new g.lZ("productUpsellSuggestedActionViewModel");var YlM=new g.lZ("suggestedActionTimeRangeTrigger"),qlO=new g.lZ("suggestedActionsRenderer"),Jcq=new g.lZ("suggestedActionRenderer");var p6M=new g.lZ("timedMarkerDecorationRenderer");var Lre=new g.lZ("cipher");var Y7f=new g.lZ("playerVars");var fEr=new g.lZ("playerVars");var pPo=g.mm.window,s0=pPo?.yt?.config_||pPo?.ytcfg?.data_||{};g.eo("yt.config_",s0);var vz=[];var h4o=/^[\w.]*$/,xzv={q:!0,search_query:!0},XzO=String($e);var Dw=new class{constructor(p,a){this.L=p;this.S=a}}(window,window.document);g.eo("yt.ads_.signals_.getAdSignalsString",function(p){return N$(sO(p))});g.eB();var G2="XMLHttpRequest"in g.mm?()=>new XMLHttpRequest:null;var ao$="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");[...ao$];var UOZ={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"},vUe=["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",...ao$],gw$=!1,YVr=Ss;var BY=class extends Ue{constructor(p,a,l){super(`${p}, errorCode=${a}`);this.errorCode=a;this.xhr=l;this.name="PromiseAjaxError"}},LGe=class{constructor(p){this.xhr=p}};var jn=class{constructor(p=null){this.L=p;this.U=0;this.S=null}then(p,a,l){return this.L?this.L.then(p,a,l):this.U===1&&p?(p=p.call(l,this.S))&&typeof p.then==="function"?p:oW(p):this.U===2&&a?(p=a.call(l,this.S))&&typeof p.then==="function"?p:Sk(p):this}getValue(){return this.S}};jn.prototype.$goog_Thenable=!0;var xL=!1;var hX=Tj||OD;var NfZ=/^([0-9\.]+):([0-9\.]+)$/;var PY$=class extends Ue{constructor(p){super(p.message||p.description||p.name);this.isMissing=p instanceof VR;this.isTimeout=p instanceof BY&&p.errorCode=="net.timeout";this.isCanceled=p instanceof he}};PY$.prototype.name="BiscottiError";var VR=class extends Ue{constructor(){super("Biscotti ID is missing from server")}};VR.prototype.name="BiscottiMissingError";var Z2M={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},oM=null;var Gre={};var loo=0,tt=g.H5?"webkit":D2?"moz":g.qT?"ms":g.rR?"o":"",yoA=g.o1("ytDomDomGetNextId")||(()=>++loo); g.eo("ytDomDomGetNextId",yoA);var SHf={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},$$h=class{constructor(p){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(p=p||window.event){this.event=p;for(let y in p)y in SHf||(this[y]=p[y]);this.scale=p.scale;this.rotation=p.rotation;var a=p.target||p.srcElement;a&&a.nodeType==3&&(a=a.parentNode);this.target=a;var l=p.relatedTarget;if(l)try{l=l.nodeName?l:null}catch(y){l=null}else this.type=="mouseover"?l=p.fromElement:this.type=="mouseout"&&(l=p.toElement);this.relatedTarget=l;this.clientX=p.clientX!=void 0?p.clientX:p.pageX;this.clientY=p.clientY!=void 0?p.clientY:p.pageY;this.keyCode=p.keyCode?p.keyCode: p.which;this.charCode=p.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=p.altKey;this.ctrlKey=p.ctrlKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.L=p.pageX;this.S=p.pageY}}catch(y){}}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 TK=g.mm.ytEventsEventsListeners||{};g.eo("ytEventsEventsListeners",TK);var wsZ=g.mm.ytEventsEventsCounter||{count:0};g.eo("ytEventsEventsCounter",wsZ);var x6M=Uy(function(){let p=!1;try{const a=Object.defineProperty({},"passive",{get:function(){p=!0}}); window.addEventListener("test",null,a)}catch(a){}return p}),Pkr=Uy(function(){let p=!1; try{const a=Object.defineProperty({},"capture",{get:function(){p=!0}}); window.addEventListener("test",null,a)}catch(a){}return p});var od;od=window;g.h=od.ytcsi&&od.ytcsi.now?od.ytcsi.now:od.performance&&od.performance.timing&&od.performance.now&&od.performance.timing.navigationStart?()=>od.performance.timing.navigationStart+od.performance.now():()=>(new Date).getTime();g.yi(K3,g.YB);K3.prototype.C=function(p){p.L===void 0&&LRh(p);var a=p.L;p.S===void 0&&LRh(p);this.L=new g.g3(a,p.S)}; K3.prototype.kp=function(){return this.L||new g.g3}; K3.prototype.UO=function(){if(this.L){var p=(0,g.h)();if(this.j!=0){var a=this.D,l=this.L,y=a.x-l.x;a=a.y-l.y;y=Math.sqrt(y*y+a*a)/(p-this.j);this.S[this.U]=Math.abs((y-this.X)/this.X)>.5?1:0;a=0;for(l=0;l<4;l++)a+=this.S[l]||0;a>=3&&this.G();this.X=y}this.j=p;this.D=this.L;this.U=(this.U+1)%4}}; K3.prototype.fz=function(){g.ix(this.K);g.wF(this.N)};var zV=class extends g.YB{constructor(p){super();this.G=[];this.E6=p||this}J(p,a,l,y,S){l=g.Oc((0,g.Qo)(l,y||this.E6));l={target:p,name:a,callback:l};let n;S&&x6M()&&(n={passive:!0});p.addEventListener(a,l.callback,n);this.G.push(l);return l}Kt(p){for(let a=0;a{a.preventDefault();this.S=a}); p.addEventListener("appinstalled",()=>{this.L=!0},{once:!0})}};var sY=class{constructor(){this.pX=!0}UK(p,a){p={};var l=[];"USER_SESSION_ID"in s0&&l.push({key:"u",value:g.R("USER_SESSION_ID")});if(l=haM(l))p.Authorization=l,l=a=a?.sessionIndex,l===void 0&&(l=Number(g.R("SESSION_INDEX",0)),l=isNaN(l)?0:l),g.nU("voice_search_auth_header_removal")||(p["X-Goog-AuthUser"]=l.toString()),"INNERTUBE_HOST_OVERRIDE"in s0||(p["X-Origin"]=window.location.origin),a===void 0&&"DELEGATED_SESSION_ID"in s0&&(p["X-Goog-PageId"]=g.R("DELEGATED_SESSION_ID"));return p}};var $n={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var ey=g.o1("ytglobal.prefsUserPrefsPrefs_")||{};g.eo("ytglobal.prefsUserPrefsPrefs_",ey); var hQF=class{constructor(){this.L=g.R("ALT_PREF_COOKIE_NAME","PREF");this.S=g.R("ALT_PREF_COOKIE_DOMAIN","youtube.com");const p=g.D3(this.L);p&&this.parse(p)}get(p,a){eH(p);WF(p);p=ey[p]!==void 0?ey[p].toString():null;return p!=null?p:a?a:""}set(p,a){eH(p);WF(p);if(a==null)throw Error("ExpectedNotNull");ey[p]=a.toString()}Zy(p){return!!((n2M(`f${Math.floor(p/31)+1}`)||0)&1<{let p;return()=>{p||(p=new yR("ytidb"));return p}})();var oH=[],ZR,YO=!1;var coE,rov,wPe,$Sr,Yz,bN$; coE={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"}; rov={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"}; wPe={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.Q6=class extends g.Qm{constructor(p,a={},l=coE[p],y=rov[p],S=wPe[p]){super(l,{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p,...a});this.type=p;this.message=l;this.level=y;this.L=S;Object.setPrototypeOf(this,g.Q6.prototype)}};$Sr=class extends g.Q6{constructor(p,a){super("MISSING_OBJECT_STORES",{expectedObjectStores:a,foundObjectStores:p},coE.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,$Sr.prototype)}}; Yz=class extends Error{constructor(p,a){super();this.index=p;this.objectStore=a;Object.setPrototypeOf(this,Yz.prototype)}};bN$=["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 JO;JO=class{constructor(p){this.L=p}};g.qH=class{constructor(p){this.state={status:"PENDING"};this.L=[];this.S=[];p=p.L;const a=y=>{if(this.state.status==="PENDING"){this.state={status:"FULFILLED",value:y};for(const S of this.L)S()}},l=y=>{if(this.state.status==="PENDING"){this.state={status:"REJECTED", reason:y};for(const S of this.S)S()}}; try{p(a,l)}catch(y){l(y)}}static all(p){return new g.qH(new JO((a,l)=>{const y=[];let S=p.length;S===0&&a(y);for(let n=0;n{y[n]=V;S--;S===0&&a(y)}).catch(V=>{l(V)})}))}static resolve(p){return new g.qH(new JO((a,l)=>{p instanceof g.qH?p.then(a,l):a(p)}))}static reject(p){return new g.qH(new JO((a,l)=>{l(p)}))}then(p,a){const l=p??Dfr,y=a??MYM; return new g.qH(new JO((S,n)=>{this.state.status==="PENDING"?(this.L.push(()=>{ykv(this,this,l,S,n)}),this.S.push(()=>{aD$(this,this,y,S,n)})):this.state.status==="FULFILLED"?ykv(this,this,l,S,n):this.state.status==="REJECTED"&&aD$(this,this,y,S,n)}))}catch(p){return this.then(void 0,p)}};var F8$=class{constructor(p,a){this.request=p;this.cursor=a}};var XbO=class{constructor(p,a){this.L=p;this.options=a;this.transactionCount=0;this.U=Math.round((0,g.h)());this.S=!1}add(p,a,l){return g.hs(this,[p],{mode:"readwrite",nx:!0,commit:oy()},y=>y.objectStore(p).add(a,l))}clear(p){return g.hs(this,[p],{mode:"readwrite", nx:!0},a=>a.objectStore(p).clear())}close(){this.L.close(); this.options?.closed&&this.options.closed()}count(p,a){return g.hs(this,[p],{mode:"readonly",nx:!0,commit:oy()},l=>l.objectStore(p).count(a))}delete(p,a){return g.hs(this,[p],{mode:"readwrite", nx:!0,commit:oy()&&!(a instanceof IDBKeyRange)},l=>l.objectStore(p).delete(a))}get(p,a){return g.hs(this,[p],{mode:"readonly", nx:!0,commit:oy()},l=>l.objectStore(p).get(a))}getAll(p,a,l){return g.hs(this,[p],{mode:"readonly", nx:!0},y=>y.objectStore(p).getAll(a,l))}objectStoreNames(){return Array.from(this.L.objectStoreNames)}getName(){return this.L.name}},lJh=class{constructor(p){this.L=p}add(p,a){return sU(this.L.add(p,a))}autoIncrement(){return this.L.autoIncrement}clear(){return sU(this.L.clear()).then(()=>{})}count(p){return sU(this.L.count(p))}delete(p){return p instanceof IDBKeyRange?FNF(this,p):sU(this.L.delete(p))}get(p){return sU(this.L.get(p))}getAll(p,a){return"getAll"in IDBObjectStore.prototype?sU(this.L.getAll(p, a)):YsM(this,p,a)}index(p){try{return new P1F(this.L.index(p))}catch(a){if(a instanceof Error&&a.name==="NotFoundError")throw new Yz(p,this.L.name); throw a;}}getName(){return this.L.name}keyPath(){return this.L.keyPath}},NA=class{constructor(p){this.L=p;this.U=new Map;this.S=!1;this.done=new Promise((a,l)=>{this.L.addEventListener("complete",()=>{a()}); this.L.addEventListener("error",y=>{y.currentTarget===y.target&&l(this.L.error)}); this.L.addEventListener("abort",()=>{var y=this.L.error;if(y)l(y);else if(!this.S){y=g.Q6;var S=this.L.objectStoreNames;const n=[];for(let V=0;Va.delete().then(()=>g.ul(a)))}get(p){return sU(this.L.get(p))}getAll(p,a){return"getAll"in IDBIndex.prototype?sU(this.L.getAll(p,a)):Fgq(this,p,a)}keyPath(){return this.L.keyPath}unique(){return this.L.unique}}, GiM=class{constructor(p,a){this.request=p; this.cursor=a}delete(){return sU(this.cursor.delete()).then(()=>{})}getValue(){return this.cursor.value}update(p){return sU(this.cursor.update(p))}};var LB$=class{constructor(p,a){this.name=p;this.options=a;this.U=!0;this.X=this.j=0}S(p,a,l={}){return b7f(p,a,l)}delete(p={}){return Bi(this.name,p)}open(){if(!this.U)throw MXr(this);if(this.L)return this.L;let p;const a=()=>{this.L===p&&(this.L=void 0)},l={blocking:S=>{S.close()}, closed:a,H5:a,upgrade:this.options.upgrade},y=async()=>{var S=Error().stack??"";try{const Z=await this.S(this.name,this.options.version,l);var n=Z,V=this.options;const z=[];for(const d of Object.keys(V.WO)){const {ID:G,ANc:B=Number.MAX_VALUE}=V.WO[d];!(n.L.version>=G)||n.L.version>=B||n.L.objectStoreNames.contains(d)||z.push(d)}if(z.length!==0){const d=Object.keys(this.options.WO),G=Z.objectStoreNames();if(this.Xthis.options.version+1)throw S.close(),this.U=!1,MXr(this,n);return S}a();Z instanceof Error&&!g.nU("ytidb_async_stack_killswitch")&&(Z.stack=`${Z.stack}\n${S.substring(S.indexOf("\n")+1)}`);throw UC(Z,this.name,"",this.options.version??-1);}}; return this.L=p=y()}};var bG=new LB$("YtIdbMeta",{WO:{databases:{ID:1}},upgrade(p,a){a(1)&&g.lU(p,"databases",{keyPath:"actualName"})}});var gl,e8=new class{constructor(){}}(new class{constructor(){}});new g.un;var BV$=class extends LB${constructor(p,a){super(p,a);this.options=a;Gw(p)}S(p,a,l={}){return(this.options.shared?PwF:uWv)(p,a,{...l})}delete(p={}){return(this.options.shared?rt:YZe)(this.name,p)}};var nVv=g.Wl("ytGcfConfig",{WO:{coldConfigStore:{ID:1},hotConfigStore:{ID:1}},shared:!1,upgrade(p,a){a(1)&&(g.Hl(g.lU(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Hl(g.lU(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},version:1});var XPZ=class extends g.YB{constructor(){super();this.S=[];this.L=[];const p=g.o1("yt.gcf.config.hotUpdateCallbacks");p?(this.S=[...p],this.L=p):(this.L=[],g.eo("yt.gcf.config.hotUpdateCallbacks",this.L))}fz(){for(const a of this.S){var p=this.L;const l=p.indexOf(a);l>=0&&p.splice(l,1)}this.S.length=0;super.fz()}};var C2=class{constructor(){this.X=!1;this.U=this.j=0;this.D=new XPZ;this.hg={aIs:()=>{this.X=!0}, tuV:()=>this.L, Ky7:p=>{NC(this,p)}, pg:p=>{this.pg(p)}, aFm:p=>{J5(this,p)}, hI:()=>this.coldHashData, Lu:()=>this.hotHashData, zic:()=>this.S, KBI:()=>bc(), JPI:()=>mu(), cPm:()=>g.o1("yt.gcf.config.coldHashData"), itT:()=>g.o1("yt.gcf.config.hotHashData"), NPv:()=>{hyZ(this)}, H1c:()=>{this.pg(void 0);bk(this);delete C2.instance}, TPl:p=>{this.U=p}, Tqs:()=>this.U}}Q8(){return mu()??g.R("RAW_HOT_CONFIG_GROUP")}pg(p){this.hotHashData=p; g.eo("yt.gcf.config.hotHashData",this.hotHashData||null)}};var xS$=typeof TextEncoder!=="undefined"?new TextEncoder:null,Qn=xS$?p=>xS$.encode(p):p=>{p=g.MA(p); const a=new Uint8Array(p.length);for(let l=0;l{}; this.fl=()=>{}; this.now=Date.now;this.Z$=!1;this.hg={rNT:a=>{this.PX=a}, YQY:()=>{this.U()}, Zj:()=>{this.j()}, IU:async a=>{await this.IU(a)}, Pd:(a,l)=>this.Pd(a,l), FV:()=>{this.FV()}}; this.KX=p.KX??100;this.hS=p.hS??1;this.oC=p.oC??2592E6;this.JS=p.JS??12E4;this.Fj=p.Fj??5E3;this.PX=p.PX??void 0;this.qr=!!p.qr;this.sN=p.sN??.1;this.tE=p.tE??10;p.handleError&&(this.handleError=p.handleError);p.fl&&(this.fl=p.fl);p.Z$&&(this.Z$=p.Z$);p.EN&&(this.EN=p.EN);this.Cz=p.Cz;this.yl=p.yl;this.Ot=p.Ot;this.QT=p.QT;this.sendFn=p.sendFn;this.Qf=p.Qf;this.I2=p.I2;UF(this)&&(!this.Cz||this.Cz("networkless_logging"))&&dMA(this)}writeThenSend(p,a={}){if(UF(this)&&this.L){const l={url:p,options:a, timestamp:this.now(),status:"NEW",sendCount:0};this.Ot.set(l,this.PX).then(y=>{l.id=y;this.QT.Bl()&&this.IU(l)}).catch(y=>{this.IU(l); lu(this,y)})}else this.sendFn(p,a)}sendThenWrite(p,a={},l){if(UF(this)&&this.L){const y={url:p, options:a,timestamp:this.now(),status:"NEW",sendCount:0};this.Cz&&this.Cz("nwl_skip_retry")&&(y.skipRetry=l);if(this.QT.Bl()||this.Cz&&this.Cz("nwl_aggressive_send_then_write")&&!y.skipRetry){if(!y.skipRetry){const S=a.onError?a.onError:()=>{}; a.onError=async(n,V)=>{await this.Ot.set(y,this.PX).catch(Z=>{lu(this,Z)}); S(n,V)}}this.sendFn(p,a,y.skipRetry)}else this.Ot.set(y,this.PX).catch(S=>{this.sendFn(p,a,y.skipRetry); lu(this,S)})}else l=this.Cz&&this.Cz("nwl_skip_retry")&&l,this.sendFn(p,a,l)}sendAndWrite(p,a={}){if(UF(this)&&this.L){const l={url:p, options:a,timestamp:this.now(),status:"NEW",sendCount:0};let y=!1;const S=a.onSuccess?a.onSuccess:()=>{}; l.options.onSuccess=(n,V)=>{l.id!==void 0?this.Ot.Iz(l.id,this.PX):y=!0;this.QT.Cs&&this.Cz&&this.Cz("vss_network_hint")&&this.QT.Cs(!0);S(n,V)}; this.sendFn(l.url,l.options,void 0,!0);this.Ot.set(l,this.PX).then(n=>{l.id=n;y&&this.Ot.Iz(l.id,this.PX)}).catch(n=>{lu(this,n)})}else this.sendFn(p,a,void 0,!0)}U(){if(!UF(this))throw Error("IndexedDB is not supported: throttleSend"); this.S||(this.S=this.yl.zD(async()=>{const p=await this.Ot.e$("NEW",this.PX);p?(await this.IU(p),this.S&&(this.S=0,this.U())):this.j()},this.KX))}j(){this.yl.bk(this.S); this.S=0}async IU(p){if(!UF(this))throw Error("IndexedDB is not supported: immediateSend");p.id!==void 0&&(await this.Ot.Y1(p.id,this.PX)||this.fl(Error("The request cannot be found in the database.")));this.Pd(p,this.oC)?(p.skipRetry||(p=aBr(this,p)),p&&(p.skipRetry&&p.id!==void 0&&await this.Ot.Iz(p.id,this.PX),this.sendFn(p.url,p.options,!!p.skipRetry))):(this.fl(Error("Networkless Logging: Stored logs request expired age limit")),p.id!==void 0&&await this.Ot.Iz(p.id,this.PX))}Pd(p,a){p=p.timestamp; return this.now()-p>=a?!1:!0}FV(){if(!UF(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Ot.e$("QUEUED",this.PX).then(p=>{p&&!this.Pd(p,this.JS)?this.yl.zD(async()=>{p.id!==void 0&&await this.Ot.xd(p.id,this.PX);this.FV()}):this.QT.Bl()&&this.U()})}};var j8;var G2e={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72, visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var Ptr=g.Wl("ServiceWorkerLogsDatabase",{WO:{SWHealthLog:{ID:1}},shared:!0,upgrade:(p,a)=>{a(1)&&g.Hl(g.lU(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var J_={},U4F=0;var lr;var W0=class{constructor(){this.L=new Map;this.S=!1}requestComplete(p,a){a&&(this.S=!0);p=this.removeParams(p);this.L.get(p)||this.L.set(p,a)}isEndpointCFR(p){p=this.removeParams(p);return(p=this.L.get(p))?!1:p===!1&&this.S?!0:null}removeParams(p){return p.split("?")[0]}};W0.prototype.removeParams=W0.prototype.removeParams;W0.prototype.isEndpointCFR=W0.prototype.isEndpointCFR;W0.prototype.requestComplete=W0.prototype.requestComplete;W0.getInstance=H0;var $t=class extends g.lH{constructor(){super();this.S=!1;this.L=I$M();this.L.listen("networkstatus-online",()=>{if(this.S&&g.nU("offline_error_handling")){var p=Af().get("errors",!0);if(p){for(const a in p)if(p[a]){const l=new g.Qm(a,"sent via offline_errors");l.name=p[a].name;l.stack=p[a].stack;l.level=p[a].level;g.Wp(l)}Af().set("errors",{},2592E3,!0)}}})}Bl(){return this.L.Bl()}Cs(p){this.L.L=p}yq(){const p=window.navigator.onLine; return p===void 0?!0:p}RB(){this.S=!0}listen(p,a){return this.L.listen(p,a)}UF(p){p=SD(this.L,p);p.then(a=>{g.nU("use_cfr_monitor")&&H0().requestComplete("generate_204",a)}); return p}};$t.prototype.sendNetworkCheckRequest=$t.prototype.UF;$t.prototype.listen=$t.prototype.listen;$t.prototype.enableErrorFlushing=$t.prototype.RB;$t.prototype.getWindowStatus=$t.prototype.yq;$t.prototype.networkStatusHint=$t.prototype.Cs;$t.prototype.isNetworkAvailable=$t.prototype.Bl;$t.getInstance=XQF;g.GV=class extends g.lH{constructor(p={}){super();this.L=this.j=0;this.S=XQF();const a=g.o1("yt.networkStatusManager.instance.listen").bind(this.S);a&&(p.rateLimit?(this.rateLimit=p.rateLimit,a("networkstatus-online",()=>{z4M(this,"publicytnetworkstatus-online")}),a("networkstatus-offline",()=>{z4M(this,"publicytnetworkstatus-offline")})):(a("networkstatus-online",()=>{this.dispatchEvent("publicytnetworkstatus-online")}),a("networkstatus-offline",()=>{this.dispatchEvent("publicytnetworkstatus-offline")})))}Bl(){const p= g.o1("yt.networkStatusManager.instance.isNetworkAvailable"); return p?p.bind(this.S)():!0}Cs(p){const a=g.o1("yt.networkStatusManager.instance.networkStatusHint").bind(this.S);a&&a(p)}async UF(p){const a=g.o1("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(this.S);return g.nU("skip_network_check_if_cfr")&&H0().isEndpointCFR("generate_204")?new Promise(l=>{this.Cs(window.navigator?.onLine||!0);l(this.Bl())}):a?a(p):!0}};var Bn,z3A=class extends ETo{constructor(){Bn||(Bn=new g.GV({oyu:!0,Vbu:!0}));super({Ot:{OX:c_E,Iz:mjA,e$:dlE,Y1:M3F,xd:ksf,set:Nye},QT:Bn,handleError:(p,a,l)=>{const y=l?.error?.code;y===400||y===415?(p=new g.Qm(p.message,a,l?.error?.code),D0(p,void 0,void 0,void 0,!0)):g.Wp(p)}, fl:D0,sendFn:jvM,now:g.h,uV:k5E,yl:g.vT(),Qf:"publicytnetworkstatus-online",I2:"publicytnetworkstatus-offline",qr:!0,sN:.1,tE:g.yh("potential_esf_error_limit",10),Cz:g.nU,Z$:!(g.rE()&&g.TX(document.location.toString())!=="www.youtube-nocookie.com")});this.X=new g.un;g.nU("networkless_immediately_drop_all_requests")&&vzF();rt("LogsDatabaseV2")}writeThenSend(p,a){a||(a={});a=YR(p,a);g.rE()||(this.L=!1);super.writeThenSend(p,a)}sendThenWrite(p,a,l){a||(a={});a=YR(p,a);g.rE()||(this.L=!1);super.sendThenWrite(p, a,l)}sendAndWrite(p,a){a||(a={});a=YR(p,a);g.rE()||(this.L=!1);super.sendAndWrite(p,a)}awaitInitialization(){return this.X.promise}};var MjE=g.mm.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.eo("ytNetworklessLoggingInitializationOptions",MjE);g.Sy=class{constructor(p){this.config_=null;p?this.config_=p:jZo()&&(this.config_=g.fm())}isReady(){!this.config_&&jZo()&&(this.config_=g.fm());return!!this.config_}};var C1E,gk,AM;C1E=g.mm.ytPubsubPubsubInstance||new g.tj;gk=g.mm.ytPubsubPubsubSubscribedKeys||{};AM=g.mm.ytPubsubPubsubTopicToKeys||{};g.KD=g.mm.ytPubsubPubsubIsSynchronous||{};g.tj.prototype.subscribe=g.tj.prototype.subscribe;g.tj.prototype.unsubscribeByKey=g.tj.prototype.h5;g.tj.prototype.publish=g.tj.prototype.publish;g.tj.prototype.clear=g.tj.prototype.clear;g.eo("ytPubsubPubsubInstance",C1E);g.eo("ytPubsubPubsubTopicToKeys",AM);g.eo("ytPubsubPubsubIsSynchronous",g.KD); g.eo("ytPubsubPubsubSubscribedKeys",gk);var ZuA={};var vTE=class extends g.YB{append(p){p=p.Wa();this.Wa().appendChild(p)}},cn=class extends vTE{constructor(p){super();this.L=p}Wa(){return this.L}};var KBM=class extends g.YB{constructor(p,a){super();this.U=[];this.G=!1;this.S=0;this.X=this.D=this.j=!1;this.UO=null;const l=(0,g.Qo)(p,a);this.L=new g.SF(()=>l(this.UO),300); g.H(this,this.L);this.C=this.K=Infinity}onTouchStart(p){this.G=!0;this.S=p.touches.length;this.L.isActive()&&(this.L.stop(),this.X=!0);p=p.touches;this.D=ZYr(this,p)||p.length!=1;var a=p.item(0);this.D||!a?this.C=this.K=Infinity:(this.K=a.clientX,this.C=a.clientY);this.U.length=0;for(a=0;a=0)}if(a||p&&(p.clientX-this.K)**2+(p.clientY-this.C)**2>25)this.j=!0}onTouchEnd(p){var a= p.changedTouches;a&&this.G&&this.S==1&&!this.j&&!this.X&&!this.D&&ZYr(this,a)&&(this.UO=p,this.L.start());this.S=p.touches.length;this.S===0&&(this.j=this.G=!1,this.U.length=0);this.X=!1}};var jC=Date.now().toString();var Lm={};var oA=Symbol("injectionDeps"),rK=class{constructor(p){this.name=p}toString(){return`InjectionToken(${this.name})`}},OK=class{constructor(p){this.key=p}},mzq=class{constructor(){this.L=new Map;this.U=new Map;this.S=new Map;this.hg={Pr9:()=>new Map(this.L)}}resolve(p){return p instanceof OK?Oq(this,p.key,[],!0):Oq(this,p,[])}};var fH;var RC=window;var sd=g.nU("web_enable_lifecycle_monitoring")&&IC()!==0,Jhv=g.nU("web_enable_lifecycle_monitoring");var QBv=class{constructor(p){this.scheduler=g.vT();this.S=new g.un;this.L=p;for(let a=0;a{l.L4();this.L[a].al=!0;this.L.every(S=>S.al===!0)&&this.S.resolve()}; const y=cR(p,l.priority??0);this.L[a]={...l,L4:p,jobId:y}}}cancel(){for(const p of this.L)p.jobId===void 0||p.al||this.scheduler.bk(p.jobId),p.al=!0;this.S.resolve()}};var eKM=class{constructor(){this.state="none";this.plugins=[];this.S=void 0;this.j={};sd&&ub(this.state)}get currentState(){return this.state}install(p){this.plugins.push(p);return this}uninstall(...p){p.forEach(a=>{a=this.plugins.indexOf(a);a>-1&&this.plugins.splice(a,1)})}transition(p,a){sd&&Y3r(this.state); var l=this.transitions.find(y=>Array.isArray(y.from)?y.from.find(S=>S===this.state&&y.to===p):y.from===this.state&&y.to===p); if(l){this.U&&(ELO(this.U),this.U=void 0);fcA(this,p,a);this.state=p;sd&&ub(this.state);l=l.action.bind(this);const y=this.plugins.filter(S=>S[p]).map(S=>S[p]); l(WEf(this,y),a)}else throw Error(`no transition specified from ${this.state} to ${p}`);}};var ozM=class extends eKM{constructor(){super();this.L=null;this.S=10;this.transitions=[{from:"none",to:"application_navigating",action:this.X},{from:"application_navigating",to:"none",action:this.D},{from:"application_navigating",to:"application_navigating",action:()=>{}}, {from:"none",to:"none",action:()=>{}}]}X(p,a){this.L=g.wM(0,()=>{this.currentState==="application_navigating"&&this.transition("none")},5E3); p(a?.event)}D(p,a){this.L&&(g.XY.bk(this.L),this.L=null);p(a?.event)}},Cq;var pL=[];g.eo("yt.logging.transport.getScrapedGelPayloads",function(){return pL});var fp=class{constructor(){this.store={};this.L=0;this.S={};this.hg={pZO:()=>this.L}}storePayload(p,a){p=xF(p); this.store[p]?this.store[p].push(a):(this.S={},this.store[p]=[a]);this.L++;g.nU("more_accurate_gel_parser")&&(a=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(a));return p}smartExtractMatchingEntries(p){if(!p.keys.length)return[];const a=Eh(this,p.keys.splice(0,1)[0]),l=[];for(let y=0;y`Cannot read property '${p.key}'`, gf:{Error:[{FP:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{FP:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{FP:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{FP:/\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"]},{FP:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{FP:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{FP:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{vS:p=>`Cannot call '${p.key}'`, gf:{TypeError:[{FP:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{FP:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{FP:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{FP:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{FP:/\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"]}, {FP:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{vS:p=>`${p.key} is not defined`, gf:{ReferenceError:[{FP:/(.*) is not defined/,groups:["key"]},{FP:/Can't find variable: (.*)/,groups:["key"]}]}}];var oeA={yO:[],ai:[{callback:qYr,weight:500},{callback:UTM,weight:500}]};var Z9r=class{constructor(){this.ai=[];this.yO=[]}},lN;var yg=new g.tj;var cwE=new Set,rwr=0,dTF=0,z2M=0,ra$=[],caA=[],GDq=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var j8h=new g.lZ("parallelCommand");var D6F=new g.lZ("performOnceCommand");var HNE=new g.lZ("serialCommand");var l4=void 0;U2({},"sgPmTd");U2(null,"jypsq");U2(null,"mWiOof");var hfr=class extends mN{constructor(p){super(arguments);this.csn=p}},Qkq=new sq("screen-created",hfr),uc=[],UUq=Lqr,O2=0,uQ=new Map,OS=new Map,k2=new Map;var Pn=class{constructor(p,a=null,l={},y,S,n){this.componentType=p;this.renderer=a;this.macros=l;this.layoutId=y;this.interactionLoggingClientData=S;this.L=n;this.id=Mx(p)}};g.yi(g.js,g.YB);g.C=g.js.prototype;g.C.subscribe=function(p,a,l){return this.nz()?0:this.d4.subscribe(p,a,l)}; g.C.unsubscribe=function(p,a,l){return this.nz()?!1:this.d4.unsubscribe(p,a,l)}; g.C.h5=function(p){return this.nz()?!1:this.d4.h5(p)}; g.C.publish=function(p,a){return this.nz()?!1:this.d4.publish.apply(this.d4,arguments)}; g.C.A4=function(p,a){for(let l in p)this.subscribe(l,p[l],a)}; g.C.zA=function(p,a){for(let l in p)this.unsubscribe(l,p[l],a)};var qd=16/9,Lg=[.25,.5,.75,1,1.25,1.5,1.75,2],bZM=Lg.concat([3,4,5,6,7,8,9,10,15]),Ioq=Lg.concat([2.5,3,3.5,4]),RKM=Lg.concat([2.5,3]),uxr=Lg.concat([2.5,3,3.5,4]);var vSA=1;g.XT=class extends g.YB{constructor(p){super();this.Ha={};this.A$={};this.element=this.createElement(p)}createElement(p,a){a=a||p.W==="svg";let l;var y=p.T,S=p.A9;a?(l=document.createElementNS("http://www.w3.org/2000/svg",p.W),g.wR&&(p.Z||(p.Z={}),p.Z.focusable="false")):l=g.HA(p.W);if(y){if(y=NZ(this,l,"class",y))xI(this,l,"class",y),this.Ha[y]=l}else if(S){for(var n of S)this.Ha[n]=l;xI(this,l,"class",S.join(" "))}y=p.yY;S=p.V;if(y)a=NZ(this,l,"child",y),a!==void 0&&l.appendChild(g.Ki(a));else if(S){y= 0;for(var V of S)V&&(typeof V==="string"?(S=NZ(this,l,"child",V),S!=null&&l.appendChild(g.Ki(S))):V.element?l.appendChild(V.element):(n=V,S=this.createElement(n,a),l.appendChild(S),n.EC&&(n=T4(),S.id=n,S=document.createElementNS("http://www.w3.org/2000/svg","use"),S.setAttribute("class","ytp-svg-shadow"),S.setAttributeNS("http://www.w3.org/1999/xlink","href",`#${n}`),L8(l,S,y++))))}if(p=p.Z){a=l;for(const Z of Object.keys(p))V=p[Z],xI(this,a,Z,typeof V==="string"?NZ(this,a,Z,V):V)}return l}d7(p){return this.Ha[p]}lT(p, a){typeof a==="number"?L8(p,this.element,a):p.appendChild(this.element)}detach(){g.hZ(this.element)}update(p){for(const a of Object.keys(p))this.updateValue(a,p[a])}updateValue(p,a){(p=this.A$[`{{${p}}}`])&&xI(this,p[0],p[1],a)}fz(){this.Ha={};this.A$={};this.detach();super.fz()}};g.t=class extends g.XT{constructor(p){super(p);this.yQ=!0;this.UO=!1;this.listeners=[]}setContent(p,a){this.updateValue(a||"content",p)}show(){this.yQ||(g.VB(this.element,"display",""),this.yQ=!0)}hide(){this.yQ&&(g.VB(this.element,"display","none"),this.yQ=!1)}iM(p){p?this.show():this.hide()}UC(p){this.UO=p}o1(){return this.yQ}listen(p,a,l){return this.J(this.element,p,a,l)}J(p,a,l,y){l=(0,g.Qo)(l,y||this);y={target:p,type:a,listener:l};this.listeners.push(y);p.addEventListener(a,l);return y}Kt(p){this.listeners.forEach((a, l)=>{a===p&&(a=this.listeners.splice(l,1)[0],a.target.removeEventListener(a.type,a.listener))})}focus(){this.element.focus()}fz(){for(;this.listeners.length;){const p=this.listeners.pop(); p&&p.target.removeEventListener(p.type,p.listener)}super.fz()}};g.et=class extends g.t{constructor(p){super(p);this.E6=new g.js;g.H(this,this.E6)}subscribe(p,a,l){return this.E6.subscribe(p,a,l)}unsubscribe(p,a,l){return this.E6.unsubscribe(p,a,l)}h5(p){return this.E6.h5(p)}publish(p,...a){return this.E6.publish(p,...a)}};var OZo=new WeakSet,x$=class extends g.et{constructor(p,a,l,y,S,n,V=null){super(a);this.api=p;this.macros={};this.componentType=l;this.K=this.C=null;this.VY=V;this.layoutId=y;this.interactionLoggingClientData=S;this.OO=n;this.Ic=null;this.hK=new cn(this.element);g.H(this,this.hK);this.Ps=this.J(this.element,"click",this.onClick);this.QY=[];this.Ws=new KBM(this.onClick,this);g.H(this,this.Ws);this.Lx=!1;this.Hs=this.Sl=null}bind(p){this.Ic||p.renderer&&this.init(p.id,p.renderer,{},p);return Promise.resolve()}init(p, a,l){this.Ic=p;this.element.setAttribute("id",this.Ic);this.VY&&g.XX(this.element,this.VY);this.Sl=a&&a.adRendererCommands;this.Hs=a.interaction;this.Hs?.onTap&&g.XX(this.element,"ytp-ad-component--clickable");this.macros=l;this.C=a.trackingParams||null;this.K=g.K(a.rendererContext,CMF)?.loggingDirectives??a.loggingDirectives;this.C!=null?this.createServerVe(this.element,this.C):this.K&&(p=this.element,a=this.K,this.api.createServerVe(p,this,!0),this.api.setTrackingParams(p,a.trackingParams||null))}clear(){}hide(){super.hide(); (this.C!=null||this.K)&&this.logVisibility(this.element,!1)}show(){super.show();if(!this.Lx){this.Lx=!0;var p=this.Sl&&this.Sl.impressionCommand;const a=this.Hs?.onFirstVisible;p?this.w7(p):a&&(p=yY(a))&&this.w7(p)}(this.C!=null||this.K)&&this.logVisibility(this.element,!0)}onClick(p){if((this.C||this.K)&&!OZo.has(p)){var a=this.element;this.api.hasVe(a)&&this.yQ&&this.api.logClick(a,this.interactionLoggingClientData);OZo.add(p)}var l=this.Sl&&this.Sl.clickCommand;a=this.Hs?.onTap;if(l){var y=this.NO(l); this.w7(y)}else{if(l=a)a:{l=this.element;p=p.composedPath();for(y of p){if(y===l)break;if(y.className.indexOf("ytp-ad-component--clickable")>=0){l=!1;break a}}l=!0}l&&(y=yY(a))&&this.w7(y)}}NO(p){return p}onTouchStart(p){this.Ws.onTouchStart(p)}onTouchMove(p){this.Ws.onTouchMove(p)}onTouchEnd(p){if(this.Ws)this.Ws.onTouchEnd(p)}w7(p){this.layoutId?this.OO.executeCommand(p,this.layoutId):(p=new g.Qm("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}), g.MD(p))}createServerVe(p,a){this.api.createServerVe(p,this);this.api.setTrackingParams(p,a)}logVisibility(p,a){this.api.hasVe(p)&&this.api.logVisibility(p,a,this.interactionLoggingClientData)}fz(){this.clear(null);this.Kt(this.Ps);for(const p of this.QY)this.Kt(p);super.fz()}};var Ju=class extends x${constructor(p,a,l,y,S=[],n="button",V=!1,Z,z=!1){S={W:"button",A9:["ytp-ad-button"].concat(S)};Z!=null&&(S.Z={tabindex:Z});super(p,S,n,a,l,y);this.L=this.S=this.U=null;this.X=V;this.j=z;this.hide()}init(p,a,l){super.init(p,a,l);this.L=a;if(a.text==null&&a.icon==null)g.tX(Error("ButtonRenderer did not have text or an icon set."));else{switch(a.style||null){case "STYLE_UNKNOWN":p="ytp-ad-button-link";break;default:p=null}p!=null&&g.XX(this.element,p);a.text!=null&&(p=g.mQ(a.text), g.o4(p)||(this.element.setAttribute("aria-label",p),this.U=new g.et({W:"span",T:"ytp-ad-button-text",yY:p}),g.H(this,this.U),this.U.lT(this.element)));a.accessibilityData&&a.accessibilityData.accessibilityData&&a.accessibilityData.accessibilityData.label&&!g.o4(a.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",a.accessibilityData.accessibilityData.label);a.icon!=null&&(a=bz(a.icon,this.j),a!=null&&(this.S=new g.et({W:"span",T:"ytp-ad-button-icon",V:[a]}),g.H(this, this.S)),this.X?L8(this.element,this.S.element,0):this.S.lT(this.element))}}clear(){this.hide()}onClick(p){super.onClick(p);for(const a of Tue(this))this.layoutId?this.OO.executeCommand(a,this.layoutId):g.MD(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)}};var t$q=class extends g.YB{constructor(){super();this.L=new Map;this.S=i5O(p=>{if(p.target&&(p=this.L.get(p.target))&&p)for(let a=0;a0&&(this.toggleButton(!this.isToggled()),this.G());super.onClick(p)}G(){g.OW(this.j,"ytp-ad-toggle-button-toggled",this.isToggled());for(const p of Twf(this,this.isToggled()))this.layoutId? this.OO.executeCommand(p,this.layoutId):g.MD(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);a5(this)}clear(){this.hide()}toggleButton(p){g.OW(this.j,"ytp-ad-toggle-button-toggled",p);this.L.checked=p;a5(this)}isToggled(){return this.L.checked}};var UCA=class{constructor(p,a,l){this.actionType=a;this.id=l;this.content=p}};var mSf=class extends zV{constructor(p){super();this.L=p;this.J(this.L,"onAdUxUpdate",this.X)}X(p){if(Array.isArray(p))for(const a of p)a instanceof UCA&&this.U(a)}};var UcZ=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-feedback-dialog-background",V:[{W:"div",T:"ytp-ad-feedback-dialog-container",V:[{W:"div",T:"ytp-ad-feedback-dialog-form",Z:{role:"dialog",tabindex:"-1"},V:[{W:"div",T:"ytp-ad-feedback-dialog-title",V:[{W:"span",yY:"{{title}}"}]},{W:"span",T:"ytp-ad-info-dialog-feedback-options-title",yY:"{{reasonsTitle}}"},{W:"div",T:"ytp-ad-info-dialog-feedback-options"},{W:"div",T:"ytp-ad-feedback-dialog-confirm-container",V:[{W:"button",T:"ytp-ad-feedback-dialog-cancel-button", yY:"{{cancelLabel}}"},{W:"button",T:"ytp-ad-feedback-dialog-confirm-button",yY:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",a,l,y);this.j=[];this.L=null;this.X=this.d7("ytp-ad-feedback-dialog-cancel-button");this.D=this.d7("ytp-ad-feedback-dialog-confirm-button");this.N=this.d7("ytp-ad-info-dialog-feedback-options");this.jl=this.d7("ytp-ad-feedback-dialog-title");this.U=this.S=null;this.hide()}init(p,a,l){super.init(p,a,l);a.reasons?a.confirmLabel==null?g.MD(Error("AdFeedbackRenderer.confirmLabel was not set.")): (a.cancelLabel==null&&g.tX(Error("AdFeedbackRenderer.cancelLabel was not set.")),a.title==null&&g.tX(Error("AdFeedbackRenderer.title was not set.")),Tpq(this,a)):g.MD(Error("AdFeedbackRenderer.reasons were not set."))}clear(){SY(this.X);SY(this.D);this.j.length=0;this.hide()}hide(){this.L&&this.L.hide();this.S&&this.S.hide();super.hide();this.U&&this.U.focus()}show(){this.L&&this.L.show();this.S&&this.S.show();this.U=document.activeElement;super.show();this.X.focus()}G(){this.api.onAdUxClicked("ad-feedback-dialog-close-button", this.layoutId);this.publish("a");this.hide()}Bs(){this.hide()}},SIE=class{constructor(p,a){this.S=a;this.L=new g.et({W:"label",T:"ytp-ad-feedback-dialog-reason-label",V:[{W:"input",T:"ytp-ad-feedback-dialog-reason-input",Z:{type:"radio",name:"feedback-reason-group"}},{W:"span",T:"ytp-ad-feedback-dialog-reason-text",yY:g.mQ(p)}]});this.U=this.L.d7("ytp-ad-feedback-dialog-reason-input")}Wa(){return this.L.element}getCommand(){return this.S}isChecked(){return this.U.checked}};var QXr=class extends M6${X(p){super.X(p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}j(p){super.j(p);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}D(p){super.D(p);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")}};var rjo=class extends x${constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-ad-info-dialog-background",V:[{W:"div",T:"ytp-ad-info-dialog-container",V:[{W:"div",T:"ytp-ad-info-dialog-form",Z:{role:"dialog",tabindex:"-1"},V:[{W:"div",T:"ytp-ad-info-dialog-title",yY:"{{title}}"},{W:"ul",T:"ytp-ad-info-dialog-ad-reasons"},{W:"div",T:"ytp-ad-info-dialog-message"},{W:"div",T:"ytp-ad-info-dialog-mute-container"},{W:"div",T:"ytp-ad-info-dialog-confirm-container",V:[{W:"button",T:"ytp-ad-info-dialog-confirm-button", yY:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",a,l,y);this.L=this.S=null;this.D=this.d7("ytp-ad-info-dialog-confirm-button");this.Tm=this.d7("ytp-ad-info-dialog-mute-container");this.ac=this.d7("ytp-ad-info-dialog-message");this.Bs=this.d7("ytp-ad-info-dialog-ad-reasons");this.j=this.U=null;this.N=S;this.X=null;this.Rc=!1;this.G=null;this.hide()}init(p,a,l){super.init(p,a,l);this.X=a;if(a.dialogMessage==null&&a.title==null)g.MD(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set.")); else{a.confirmLabel==null&&g.tX(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(p=a.closeOverlayRenderer&&g.K(a.closeOverlayRenderer,g.gA)||null)this.L=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),g.H(this,this.L),this.L.init(Mx("button"),p,this.macros),this.L.lT(this.element);a.title&&(p=g.mQ(a.title),this.updateValue("title",p));if(a.adReasons)for(p=a.adReasons,l=0;lthis.hide()); g.H(this,this.jl);this.Rc=0;this.Tm=!1;this.Fu=n;this.hide()}init(p,a,l){super.init(p,a,l);p=a.durationMilliseconds;typeof p==="number"&&p<0&&g.MD(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+p));this.Fu&&(this.D?g.XX(this.S.element,"modern-countdown-next-to-thumbnail"):g.XX(this.S.element,"countdown-next-to-thumbnail"));p=a.durationMilliseconds;this.Rc=p==null||p===0?this.L.wQ():p;if(a.templatedCountdown)var y=a.templatedCountdown.templatedAdText; else a.staticPreview&&(y=a.staticPreview);this.j.init(Mx("ad-text"),y,l);(y=this.api.getVideoData(1))&&y.R7&&a.thumbnail?this.G.init(Mx("ad-image"),a.thumbnail,l):(this.Bs.hide(),this.D&&this.Fu&&g.XX(this.j.element,"ytp-ad-preview-text-modern-postroll"))}clear(){this.hide()}hide(){this.S.hide();this.j.hide();this.G.hide();Yx(this);super.hide()}show(){q7(this);this.S.show();this.j.show();this.G.show();super.show()}X(){this.hide()}U(){if(this.L!=null){var p=this.L.getProgressState();p!=null&&p.current!= null&&(p=1E3*p.current,!this.Tm&&p>=this.Rc?(this.jl.hide(),this.Tm=!0,this.publish("i")):this.j&&this.j.isTemplated()&&(p=Math.max(0,Math.ceil((this.Rc-p)/1E3)),p!=this.iT&&(mx(this.j,{TIME_REMAINING:String(p)}),this.iT=p)))}}};var jIo=class extends vn{constructor(p,a,l,y,S,n){super(p,{W:"div",A9:["ytp-flyout-cta","ytp-flyout-cta-inactive"],V:[{W:"div",T:"ytp-flyout-cta-icon-container"},{W:"div",T:"ytp-flyout-cta-body",V:[{W:"div",T:"ytp-flyout-cta-text-container",V:[{W:"div",T:"ytp-flyout-cta-headline-container"},{W:"div",T:"ytp-flyout-cta-description-container"}]},{W:"div",T:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",a,l,y,S);this.j=new FT(this.api,this.layoutId,this.interactionLoggingClientData,this.OO, "ytp-flyout-cta-icon");g.H(this,this.j);this.j.lT(this.d7("ytp-flyout-cta-icon-container"));this.j.element.classList.add("ytp-flyout-cta-icon-rounded");this.G=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-flyout-cta-headline");g.H(this,this.G);this.G.lT(this.d7("ytp-flyout-cta-headline-container"));this.D=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-flyout-cta-description");g.H(this,this.D);this.D.lT(this.d7("ytp-flyout-cta-description-container")); p=["ytp-flyout-cta-action-button"];this.api.O().A("web_modern_buttons")&&p.push("ytp-flyout-cta-action-button-rounded");this.S=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,p);g.H(this,this.S);this.S.lT(this.d7("ytp-flyout-cta-action-button-container"));this.S.element.setAttribute("tabIndex","-1");fC(this.S.element);this.jl=null;this.Rc=0;this.Tm=n;this.hide()}init(p,a,l){super.init(p,a,l);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if((p=a.actionButton&& g.K(a.actionButton,g.gA))&&p.navigationEndpoint){const S=this.api.getVideoData(2);if(S!=null)if(a.image&&a.image.thumbnail){var y=a.image.thumbnail.thumbnails;y!=null&&y.length>0&&g.o4(g.wQ(y[0].url))&&(y[0].url=S.profilePicture)}else g.tX(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.j.init(Mx("ad-image"),a.image,l);this.G.init(Mx("ad-text"),a.headline,l);this.D.init(Mx("ad-text"),a.description,l);this.S.init(Mx("button"),p,l);l=Hx(this.S.element);Fw(this.S.element,l+" This link opens in new tab"); this.jl=p.navigationEndpoint;this.api.kZ()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Bs.bind(this));this.Rc=a.startMs||0;q7(this)}else g.MD(Error("FlyoutCtaRenderer has no valid action button."));else g.MD(Error("FlyoutCtaRenderer has no description AdText."));else g.MD(Error("FlyoutCtaRenderer has no headline AdText."));else g.tX(Error("FlyoutCtaRenderer has no image."))}onClick(p){super.onClick(p);this.api.pauseVideo();!g.n3(this.S.element,p.target)&&this.jl&& (this.layoutId?this.OO.executeCommand(this.jl,this.layoutId):g.MD(Error("Missing layoutId for flyout cta.")))}U(){if(this.L){var p=this.L.getProgressState();(p&&p.current||this.Tm)&&1E3*p.current>=this.Rc&&(Yx(this),g.BM(this.element,"ytp-flyout-cta-inactive"),this.S.element.removeAttribute("tabIndex"))}}X(){this.clear()}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Bs.bind(this))}show(){this.S&&this.S.show();super.show()}hide(){this.S&&this.S.hide();super.hide()}Bs(p){p== "hidden"?this.show():this.hide()}};var WBo=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",a,l,y,null);this.L=null;this.U=new Ew(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-instream-user-sentiment-like-button"]);g.H(this,this.U);this.U.lT(this.element);this.S=new Ew(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-instream-user-sentiment-dislike-button"]);g.H(this,this.S);this.S.lT(this.element);this.j= new g.Kg(this,400,!1,500,()=>this.hide()); g.H(this,this.j);this.hide()}init(p,a,l){super.init(p,a,l);this.L=a;if(this.L.rectangle){p=this.L.likeButton&&g.K(this.L.likeButton,Z4);a=this.L.dislikeButton&&g.K(this.L.dislikeButton,Z4);this.U.init(Mx("toggle-button"),p,l);this.S.init(Mx("toggle-button"),a,l);this.J(this.element,"change",this.X);this.j.show(100);this.show();for(const y of this.L&&this.L.impressionCommands||[])this.layoutId?this.OO.executeCommand(y,this.layoutId):g.MD(Error("Missing layoutId for instream user sentiment."))}}clear(){this.hide()}hide(){this.U.hide(); this.S.hide();super.hide()}show(){this.U.show();this.S.show();super.show()}X(){MaM(this.element,"ytp-ad-instream-user-sentiment-selected");this.L.postMessageAction&&g.v0(this.api,"onYtShowToast",this.L.postMessageAction);this.j.hide()}onClick(p){this.QY.length>0&&this.X();super.onClick(p)}};var bZ=class extends g.YB{constructor(p,a,l,y,S=0,n=!1){super();this.S=p;this.U=!1;this.Sl=y;this.jl=n;this.D=!1;this.L=null;a>0&&(this.L=new g.SF(this.UO,a,this),g.H(this,this.L));this.X=new g.SF(this.UO,l,this);g.H(this,this.X);this.N=JXr(this.S,S,1,y);g.H(this,this.N);this.G=JXr(this.S,0,y,1);g.H(this,this.G);this.j=new zV;g.H(this,this.j)}fz(){this.reset();super.fz()}reset(){g.uY(this.j);this.D=!1;this.L&&this.L.stop();this.X.stop();this.U&&(this.U=!1,this.G.play())}start(){this.reset();this.j.J(this.S, "mouseover",this.C,this);this.j.J(this.S,"mouseout",this.K,this);this.jl&&(this.j.J(this.S,"focusin",this.C,this),this.j.J(this.S,"focusout",this.K,this));this.L?this.L.start():(this.D=this.U=!0,g.VB(this.S,{opacity:this.Sl}))}C(){this.U&&(this.U=!1,this.G.play());this.X.stop();this.L&&this.L.stop()}K(){this.D?this.X.start():this.L&&this.L.start()}UO(){this.U||(this.U=!0,this.N.play(),this.D=!0)}};var Id=class{constructor(p,a,l){this.S=p;this.isAsync=a;this.L=l}},FPE=[new Id("b.f_",!1,0),new Id("j.s_",!1,2),new Id("r.s_",!1,4),new Id("e.h_",!1,6),new Id("i.s_",!0,8),new Id("s.t_",!1,10),new Id("p.h_",!1,12),new Id("s.i_",!1,14),new Id("f.i_",!1,16),new Id("a.b_",!1,18),new Id("a.o_",!1),new Id("g.o_",!1,22),new Id("p.i_",!1,24),new Id("p.m_",!1),new Id("n.k_",!0,20),new Id("i.f_",!1),new Id("a.s_",!0),new Id("m.c_",!1),new Id("n.h_",!1,26),new Id("o.p_",!1),new Id("m.p_",!0,28),new Id("o.a_", !1),new Id("d.p_",!1),new Id("e.i_",!1)].reduce((p,a)=>{p[a.S]=a;return p},{});g.e2=class{constructor(p,a){this.state=p;this.oldState=a}j5(p){return qJ(this,p)>0}};var HZO=class extends vn{constructor(p,a,l,y,S,n){super(p,{W:"div",T:"ytp-ad-skip-button-slot"},"skip-button",a,l,y,S);this.jl=null;this.Bs=!1;this.Tm=n;this.G=this.api.O().experiments.Cz("enable_modern_skip_button_on_web");this.iT=!1;this.D=new g.et({W:"span",A9:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.H(this,this.D);this.D.lT(this.element);this.S=this.j=null;this.Fu=new g.Kg(this.D,500,!1,100,()=>this.hide()); g.H(this,this.Fu);this.Rc=new bZ(this.D.element,15E3,5E3,.5,.5,this.G);g.H(this,this.Rc);this.hide()}init(p,a,l){super.init(p,a,l);this.jl=a;(this.Bs=Egq(this))&&g.tX(Error("hasAdControlInClickCommands_ is true."));!a||g.P6(a)?g.MD(Error("SkipButtonRenderer was not specified or empty.")):!a.message||g.P6(a.message)?g.MD(Error("SkipButtonRenderer.message was not specified or empty.")):(p=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},a=this.api.O().A("delhi_modern_web_player_icons"),a=bz(p, !1,!1,a),a==null?g.MD(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+p.iconType+".")):(this.api.O().A("disable_touch_events_on_skip_button")&&(a.Z={...a.Z,"aria-hidden":"true",eiz:"false"}),this.j=new g.et({W:"button",A9:[this.G?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{W:"span",T:this.G?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[a]}]}),g.H(this,this.j),this.j.lT(this.D.element),this.S=new Cg(this.api,this.layoutId,this.interactionLoggingClientData, this.OO,"ytp-ad-skip-button-text"),this.G&&this.S.element.classList.add("ytp-ad-skip-button-text-centered"),this.S.init(Mx("ad-text"),this.jl.message,l),g.H(this,this.S),L8(this.j.element,this.S.element,0)),this.api.O().A("disable_touch_events_on_skip_button")||(l=this.api.O(),!(this.QY.length>0)&&l.S&&(Gd?0:"ontouchstart"in document.documentElement&&(sL()||N5()))&&(this.Kt(this.Ps),this.QY=[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.Rc.reset();this.hide()}hide(){this.D.hide();this.S&&this.S.hide();Yx(this);super.hide()}onClick(p){if(this.j!=null){if(p){var a=p||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}if(oUo(p,{contentCpn:this.api.getVideoData(1)?.clientPlaybackNonce||""})===0)g.v0(this.api,"onAbnormalityDetected");else if(super.onClick(p),this.publish("j"),g.v0(this.api,"onAdSkip"),this.Tm||!this.Bs)this.api.onAdUxClicked(this.componentType, this.layoutId)}}NO(p){if(!this.Tm)return this.Bs&&Q("SkipButton click commands not pruned while ALC exist"),p;const a=g.K(p,g.A0)?.commands;if(!a)return p;p=[];for(let l=0;l=this.G&&Sa(this,!0)}};var DSf=class extends Ju{constructor(p,a,l,y){super(p,a,l,y,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}init(p,a,l){super.init(p,a,l);p=!1;a.text!=null&&(p=g.mQ(a.text),p=!g.o4(p));p?a.navigationEndpoint==null?g.tX(Error("No visit advertiser clickthrough provided in renderer,")):a.style!=="STYLE_UNKNOWN"?g.tX(Error("Button style was not a link-style type in renderer,")):this.show():g.tX(Error("No visit advertiser text was present in the renderer."))}};var Rd=class extends x${constructor(p,a,l,y,S=!1,n=!1){super(p,{W:"span",T:"ytp-ad-simple-ad-badge"},"simple-ad-badge",a,l,y);this.L=this.d7("ytp-ad-simple-ad-badge");(this.S=S)&&this.L.classList.add("ytp-ad-simple-ad-badge--clean-player");n&&this.L.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}init(p,a,l){super.init(p,a,l);p=a.text;g.o4(Mj(p))?g.tX(Error("SimpleAdBadgeRenderer has invalid or empty text")):(p&&p.text&&(a=p.text,this.S||(a=this.api.O(),a=p.text+" "+(a&&a.S?"\u2022":"\u00b7")), a={text:a,isTemplated:p.isTemplated},p.style&&(a.style=p.style),p.targetId&&(a.targetId=p.targetId),p=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),p.init(Mx("simple-ad-badge"),a,l),p.lT(this.element),g.H(this,p)),this.show())}clear(){this.hide()}};var uZ=class extends Pn{constructor(p,a,l,y,S=!1){super("player-overlay",p,{},a,y);this.videoAdDurationSeconds=l;this.interactionLoggingClientData=y;this.D2=S}};var IG=class extends g.js{constructor(p,a){super();this.api=p;this.durationMs=a;this.L=null;this.handler=new zV(this);g.H(this,this.handler);this.S=t6r;this.handler.J(this.api,"presentingplayerstatechange",this.U);this.L=this.handler.J(this.api,"onAdPlaybackProgress",this.rq)}wQ(){return this.durationMs}stop(){this.L&&this.handler.Kt(this.L)}rq(p){this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:p.current};this.publish("h")}getProgressState(){return this.S}U(p){p.j5(2)&&this.publish("g")}};var Ow=class extends g.js{constructor(p){super();this.L=!1;this.bX=0;this.handler=new zV(this);g.H(this,this.handler);this.durationMs=p;this.timer=new g.Oy(100);g.H(this,this.timer);this.handler.J(this.timer,"tick",this.rq);this.S={seekableStart:0,seekableEnd:p/1E3,current:0};this.start()}wQ(){return this.durationMs}start(){this.L||(this.L=!0,this.timer.start())}stop(){this.L&&(this.L=!1,this.timer.stop())}rq(){this.bX+=100;let p=!1;this.bX>this.durationMs&&(this.bX=this.durationMs,this.timer.stop(), p=!0);this.S={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.bX/1E3};this.publish("h");p&&this.publish("g")}getProgressState(){return this.S}};var k$=class extends vn{constructor(p,a,l,y,S,n,V){super(p,{W:"span",T:V?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",a,l,y,S);this.videoAdDurationSeconds=n;this.S=null;V&&this.api.O().S&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),hX&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}init(p,a,l){super.init(p,a,l);if(a?.templatedCountdown?.templatedAdText){p=a.templatedCountdown.templatedAdText;if(!p.isTemplated){g.tX(Error("AdDurationRemainingRenderer has no templated ad text.")); return}this.S=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);this.S.init(Mx("ad-text"),p,{});this.S.lT(this.element);g.H(this,this.S)}this.show()}clear(){this.hide()}hide(){Yx(this);super.hide()}X(){this.hide()}U(){if(this.L!=null){var p=this.L.getProgressState();if(p!=null&&p.current!=null&&this.S){var a=this.L instanceof IG?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:p.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.L instanceof Ow?p.seekableEnd:this.api.getDuration(2,!1);p=p.current;a=this.api.getVideoData()?.nh?.()?Math.max(a-p,0):a-p;mx(this.S,{FORMATTED_AD_DURATION_REMAINING:String(g.iH(a)),TIME_REMAINING:String(Math.ceil(a))})}}}show(){q7(this);super.show()}};var iZF=class extends Cg{constructor(p,a,l,y){super(p,a,l,y,"ytp-video-ad-top-bar-title","ad-title")}onClick(p){super.onClick(p);this.api.onAdUxClicked(this.componentType)}};var Ms=class{constructor(p){this.content=p.content;if(p.commandRuns)for(const a of p.commandRuns)this.loggingDirectives=g.K(a,LIr),a.onTap&&(this.interaction={onTap:a.onTap})}},mp=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ad-simple-attributed-string"},"ad-simple-attributed-string",a,l,y);this.hide()}init(p,a){super.init(p,a,{});(p=a.content)?(g.kq(this.element,p),this.element.setAttribute("aria-label",a.interaction?.accessibility?.label||p)):g.MD(Error("AdSimpleAttributedString does not have text content"))}clear(){this.hide()}onClick(p){super.onClick(p)}};var t2=class extends x${constructor(p,a,l,y,S){super(p,{W:"span",T:S?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",a,l,y);this.S=S;this.adBadgeText=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);this.adBadgeText.lT(this.element);g.H(this,this.adBadgeText);S?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),hX&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text"); this.hide()}init(p,a){super.init(p,a,{});(p=a.label)&&p.content&&!g.o4(p.content)?(this.adBadgeText.init(Mx("ad-simple-attributed-string"),new Ms(p)),(a=a.adPodIndex)&&a.content&&!g.o4(a.content)&&(this.L=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),this.L.lT(this.element),g.H(this,this.L),this.L.element.classList.add("ytp-ad-badge__pod-index"),this.L.init(Mx("ad-simple-attributed-string"),new Ms(a))),this.element.classList.add(this.S?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.MD(Error("No label is returned in AdBadgeViewModel."))}show(){this.adBadgeText.show();this.L?.show();super.show()}hide(){this.adBadgeText.hide();this.L?.hide();super.hide()}};var Tzv=class extends x${constructor(p,a,l,y){super(p,{W:"span",T:"ytp-ad-pod-index"},"ad-pod-index",a,l,y);this.api.O().S&&(this.element.classList.add("ytp-ad-pod-index--mweb"),hX&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}init(p,a){super.init(p,a,{});(p=a.adPodIndex)&&p.content&&!g.o4(p.content)&&(this.L=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),this.L.lT(this.element),g.H(this,this.L),this.L.init(Mx("ad-simple-attributed-string"),new Ms(p)), a.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.L?.show();super.show()}hide(){this.L?.hide();super.hide()}};var Nzv=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",a,l,y);this.hide()}init(p,a){super.init(p,a,{});a?.text?a.text?.content&&!g.o4(a.text.content)&&(this.L=new g.et({W:"div",T:"ytp-ad-disclosure-banner__text",yY:a.text.content}),g.H(this,this.L),this.L.lT(this.element),this.api.O().A("enable_ad_disclosure_banner_a11y_fix")?((p=a.interaction?.accessibility?.label)||(p=`${a.text.content} ${"This link opens in new tab"}`),Fw(this.element, p)):this.element.setAttribute("aria-label",a.interaction?.accessibility?.label||a.text.content),a.interaction?.onTap&&(this.S=new g.et({W:"div",T:"ytp-ad-disclosure-banner__chevron",V:[g.n6()]}),g.H(this,this.S),this.S.lT(this.element),this.api.O().A("enable_ad_disclosure_banner_a11y_fix")&&(fC(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.TD))),this.show()):g.MD(Error("No banner text found in AdDisclosureBanner."))}TD(p){if(p.key==="Enter"||p.key===" ")p.preventDefault(), this.element.click()}clear(){this.hide()}};var Tb=class{constructor(p,a){this.S=p;this.L=a}};var ua=class extends g.et{constructor(p,a,l,y=!1){super({W:"div",T:"ytp-ad-persistent-progress-bar-container",V:[{W:"div",T:"ytp-ad-persistent-progress-bar"}]});this.api=p;this.S=a;this.U=l;y&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.H(this,this.S);this.progressBar=this.d7("ytp-ad-persistent-progress-bar");this.L=-1;this.J(p,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}rq(){const p=this.S.getProgressState();let a= p.seekableEnd;this.api.getPresentingPlayerType()===2&&(a=this.U?this.U/1E3:p.seekableEnd);this.progressBar.style.width=kS(new Tb(p.seekableStart,a),p.current,0)*100+"%"}onStateChange(){g.CP(this.api.O())||(this.api.getPresentingPlayerType()===2?this.L===-1&&(this.show(),this.L=this.S.subscribe("h",this.rq,this),this.rq()):this.L!==-1&&(this.hide(),this.S.h5(this.L),this.L=-1))}};var uer=class extends x${constructor(p,a,l,y,S,n){super(p,{W:"div",T:"ytp-ad-player-overlay",V:[{W:"div",T:"ytp-ad-player-overlay-flyout-cta"},{W:"div",T:"ytp-ad-player-overlay-instream-info"},{W:"div",T:"ytp-ad-player-overlay-skip-or-preview"},{W:"div",T:"ytp-ad-player-overlay-progress-bar"},{W:"div",T:"ytp-ad-player-overlay-instream-user-sentiment"},{W:"div",T:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",a,l,y);this.D=n;this.X=this.d7("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.L=this.d7("ytp-ad-player-overlay-instream-info");this.j=null;LhA(this)&&(p=mt("div"),g.XX(p,"ytp-ad-player-overlay-top-bar-gradients"),a=p,l=this.L,l.parentNode&&l.parentNode.insertBefore(a,l),(a=this.api.getVideoData(2))&&a.isListed&&a.title&&(l=new iZF(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),l.lT(p),l.init(Mx("ad-title"),{text:a.title},this.macros),g.H(this,l)),this.j=p);this.U=null;this.Bs=this.d7("ytp-ad-player-overlay-skip-or-preview");this.jl=this.d7("ytp-ad-player-overlay-progress-bar"); this.N=this.d7("ytp-ad-player-overlay-instream-user-sentiment");this.G=this.d7("ytp-ad-player-overlay-ad-disclosure-banner");this.S=S;g.H(this,this.S);this.hide()}init(p,a,l,y){super.init(p,a,l);if(a.skipOrPreviewRenderer){if(p=g.K(a.skipOrPreviewRenderer,Dt))l=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S,this.D),l.lT(this.Bs),l.init(Mx("skip-button"),p,this.macros),g.H(this,l);if(p=g.K(a.skipOrPreviewRenderer,Dt))var S=p.skipOffsetMilliseconds}a.brandInteractionRenderer&& (p=a.brandInteractionRenderer.brandInteractionRenderer,l=new WBo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),l.lT(this.N),l.init(Mx("instream-user-sentiment"),p,this.macros),g.H(this,l));if(p=g.K(a,Usr))if(l=g.K(p,Usr))p=new jIo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S,!!a.showWithoutLinkedMediaLayout),g.H(this,p),p.lT(this.X),p.init(Mx("flyout-cta"),l,this.macros);y=y&&y.videoAdDurationSeconds;a.adBadgeRenderer&&(l=a.adBadgeRenderer,p=g.K(l,$s), p!=null?(l=new t2(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!1),g.H(this,l),l.lT(this.L),l.init(Mx("ad-badge"),p,this.macros),this.U=l.element):(p=l.simpleAdBadgeRenderer,p==null&&(p={text:{text:"Anuncio",isTemplated:!1}}),l=new Rd(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,l),l.lT(this.L),l.init(Mx("simple-ad-badge"),p,this.macros)));a.adPodIndex&&(p=g.K(a.adPodIndex,aEM),p!=null&&(l=new Tzv(this.api,this.layoutId,this.interactionLoggingClientData, this.OO),g.H(this,l),l.lT(this.L),l.init(Mx("ad-pod-index"),p)));a.adDurationRemaining&&!a.showWithoutLinkedMediaLayout&&(p=a.adDurationRemaining.adDurationRemainingRenderer,p==null&&(p={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),y=new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S,y,!1),g.H(this,y),y.lT(this.L),y.init(Mx("ad-duration-remaining"),p,this.macros));a.adInfoRenderer&&(y=g.K(a.adInfoRenderer,KI))&&(p=new kW(this.api, this.layoutId,this.interactionLoggingClientData,this.OO,this.element,void 0,!1),g.H(this,p),this.U!==null?this.L.insertBefore(p.element,this.U.nextSibling):p.lT(this.L),p.init(Mx("ad-info-hover-text-button"),y,this.macros));a.visitAdvertiserRenderer&&(p=g.K(a.visitAdvertiserRenderer,g.gA))&&(l=LhA(this)&&this.j?this.j:this.L)&&(y=new DSf(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,y),y.lT(l),y.init(Mx("visit-advertiser"),p,this.macros),fC(y.element),p=Hx(y.element), Fw(y.element,p+" This link opens in new tab"));!(y=this.api.O())||g.vK(y)||g.x3(y)||y.controlsType!="3"&&!y.disableOrganicUi||(S=new ua(this.api,this.S,S,!1),S.lT(this.jl),g.H(this,S));a.adDisclosureBannerRenderer&&(S=g.K(a.adDisclosureBannerRenderer,phA))&&(a=new Nzv(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),a.lT(this.G),a.init(Mx("ad-disclosure-banner"),S),g.H(this,a));this.api.O().A("enable_updated_html5_player_focus_style")&&g.XX(this.element,"ytp-ad-player-overlay-updated-focus-style"); this.show()}clear(){this.hide()}};var ufM;g.sIM=class{flush(p=[],a=!1){if(g.nU("enable_client_streamz_web"))for(const l of p)p=qzO(l),this.L&&Sl(p,mFv,2,this.L),p={serializedIncrementBatch:g.dW(p.S())},g.i0("streamzIncremented",p,{sendIsolatedPayload:a})}};ufM=class extends g.sIM{constructor(p){super();var a=new mFv;var l=new MzZ;l=lX(l,1,"botguard");p=lX(l,2,p);this.L=nQM(a,MzZ,1,tzA,p)}};var R7$=new Map;var e4M=class{constructor(p){this.L=new X3(p)}set(p,a,l){l=l!==void 0?Date.now()+l:void 0;this.L.set(p,a,l)}get(p){return this.L.get(p)}remove(p){this.L.remove(p)}};var Lxf=null;var ml=null,ef=null,Kw=null,Q7h=null;g.eo("yt.www.ads.eventcache.getLastCompanionData",function(){return ml}); g.eo("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.eo("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return ef}); g.eo("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Kw}); g.eo("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Q7h});var V5O=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var tv=class{constructor(){this.L={};if(this.S=lHO()){const p=g.D3("CONSISTENCY");p&&ejM(this,{encryptedTokenJarContents:p})}}handleResponse(p,a){if(!a)throw Error("request needs to be passed into ConsistencyService");a=a.Dq.context?.request?.consistencyTokenJars||[];(p=p.responseContext?.consistencyTokenJar)&&this.replace(a,p)}replace(p,a){for(const l of p)delete this.L[l.encryptedTokenJarContents];ejM(this,a)}};var USO=window.location.hostname.split(".").slice(-2).join("."),jy=class{constructor(){this.S=-1;let p=g.R("LOCATION_PLAYABILITY_TOKEN");g.R("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=IF(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.L=void 0)}static getInstance(){jR=g.o1("yt.clientLocationService.instance");jR||(jR=new jy,g.eo("yt.clientLocationService.instance",jR));return jR}setLocationOnInnerTubeContext(p){p.client||(p.client= {});if(this.L)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.L.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.L.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.L.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.U||this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.U||this.locationPlayabilityToken}handleResponse(p){p=p.responseContext?.locationPlayabilityToken; p!==void 0&&(this.locationPlayabilityToken=p,this.L=void 0,g.R("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=IF(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):g.b7("YT_CL",JSON.stringify({loctok:p}),15552E3,USO,!0))}clearLocationPlayabilityToken(p){p==="TVHTML5"?(this.localStorage=IF(this))&&this.localStorage.remove("yt-location-playability-token"):g.ET("YT_CL");this.U=void 0;this.S!==-1&&(clearTimeout(this.S),this.S=-1)}getCurrentPositionFromGeolocation(){if(!(navigator&& navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));let p=!1,a=1E4;g.R("INNERTUBE_CLIENT_NAME")==="MWEB"&&(p=!0,a=15E3);return new Promise((l,y)=>{navigator.geolocation.getCurrentPosition(S=>{this.L=S;l(S)},S=>{y(S)},{enableHighAccuracy:p, maximumAge:0,timeout:a})})}createUnpluggedLocationInfo(p){const a={}; p=p.coords;p?.latitude&&(a.latitudeE7=Math.floor(p.latitude*1E7));p?.longitude&&(a.longitudeE7=Math.floor(p.longitude*1E7));p?.accuracy&&(a.locationRadiusMeters=Math.round(p.accuracy));return a}createLocationInfo(p){const a={};p=p.coords;p?.latitude&&(a.latitudeE7=Math.floor(p.latitude*1E7));p?.longitude&&(a.longitudeE7=Math.floor(p.longitude*1E7));return a}},jR;var QIr=class{constructor(){this.L={}}contains(p){return Object.prototype.hasOwnProperty.call(this.L,p)}get(p){if(this.contains(p))return this.L[p]}set(p,a){this.L[p]=a}Ep(){return Object.keys(this.L)}remove(p){delete this.L[p]}};new class{constructor(){this.mappings=new QIr}get(p){a:{var a=this.mappings.get(p.toString());switch(a.type){case "mapping":p=a.value;break a;case "factory":a=a.value();this.mappings.set(p.toString(),{type:"mapping",value:a});p=a;break a;default:p=bF(a,void 0)}}return p}registerService(p,a){this.mappings.set(p.toString(),{type:"mapping",value:a});return p}};var PJM={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 hKv=class{X(p,a={},l=$n){var y={context:g.aD(p.clickTrackingParams,!1,this.j)};var S=this.S(p);if(S)return this.L(y,S,a),a=g.oU(this.U()),(S=g.K(p.commandMetadata,g.ng)?.apiUrl)&&(a=S),a=qUF(ll(a)),p={command:p,...(void 0)},y={input:a,RI:n8(a),Dq:y,config:p},y.config.KH?y.config.KH.identity=l:y.config.KH={identity:l},y;l=new g.Qm("Error: Failed to create Request from Command.",p);g.MD(l)}get j(){return!1}},Wn=class extends hKv{};var AoA={GET_DATASYNC_IDS:BK(class extends Wn{X(){return{input:"/getDatasyncIdsEndpoint",RI:n8("/getDatasyncIdsEndpoint","GET"),Dq:{}}}U(){return[]}S(){}L(){}})};var FuM={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_KIDS_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_KIDS_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_KIDS_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",seek:"LATENCY_ACTION_PLAYER_SEEK",settings:"LATENCY_ACTION_SETTINGS",store:"LATENCY_ACTION_STORE",supervision_dashboard:"LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",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(FuM,{"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.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 xiM=class extends mN{constructor(p,a){super(arguments);this.timer=a}},XcM=new sq("aft-recorded",xiM);var xrA=g.mm.ytLoggingGelSequenceIdObj_||{};g.eo("ytLoggingGelSequenceIdObj_",xrA);var D8=g.mm.ytLoggingLatencyUsageStats_||{};g.eo("ytLoggingLatencyUsageStats_",D8); var CV=class{constructor(){this.L=0}tick(p,a,l,y){i4(this,`tick_${p}_${a}`)||g.i0("latencyActionTicked",{tickName:p,clientActionNonce:a},{timestamp:l,cttAuthInfo:y})}info(p,a,l){const y=Object.keys(p).join("");i4(this,`info_${y}_${a}`)||(p=Object.assign({},p),p.clientActionNonce=a,g.i0("latencyActionInfo",p,{cttAuthInfo:l}))}jspbInfo(p,a,l){let y="";for(let S=0;S{}; this.webkitClearResourceTimings=()=>{}; this.mozClearResourceTimings=()=>{}; this.msClearResourceTimings=()=>{}; this.oClearResourceTimings=()=>{}}},lt=Hn.performance||Hn.mozPerformance||Hn.msPerformance||Hn.webkitPerformance||new gTr;var LZq=!1,umA=!1,FI={'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"},CK$=(0,g.Qo)(lt.clearResourceTimings||lt.webkitClearResourceTimings||lt.mozClearResourceTimings||lt.msClearResourceTimings||lt.oClearResourceTimings||g.a$,lt);var D4=window;D4.ytcsi&&(D4.ytcsi.infoGel=g.ew,D4.ytcsi.tick=KU);var Ipr="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" "),b8q=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"],cK=class{constructor(p,a,l,y){this.U=p;this.QT=a;this.L=l;this.j=y;this.S=new Map;p.Tc||(p.Tc={});p.Tc={...AoA,...p.Tc}}pD(p){return Eto(p,this.U)}};var yjo=new rK("INNERTUBE_TRANSPORT_TOKEN");var fpZ=class extends Wn{U(){return dSA}get j(){return!0}S(p){return g.K(p,h6F)||void 0}L(p,a,l={}){a.channelIds&&(p.channelIds=a.channelIds);a.siloName&&(p.siloName=a.siloName);a.params&&(p.params=a.params);l.botguardResponse&&(p.botguardResponse=l.botguardResponse);l.feature&&(p.clientFeature=l.feature)}};var pFZ=class extends Wn{U(){return GZF}get j(){return!0}S(p){return g.K(p,Qcq)||void 0}L(p,a){a.channelIds&&(p.channelIds=a.channelIds);a.siloName&&(p.siloName=a.siloName);a.params&&(p.params=a.params)}};var Jto=class extends Wn{constructor(p){super();this.D=p}U(){return nTM}S(p){return g.K(p,k7v)||g.K(p,MEM)||g.K(p,O4r)}L(p,a){a.serializedShareEntity&&(p.serializedSharedEntity=a.serializedShareEntity);a.clientParamIdentifier&&this.D?.L(a.clientParamIdentifier)&&(p.clientParams=this.D.S(a.clientParamIdentifier))}};Jto[oA]=[new rK("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN")];var gsr=class extends Wn{U(){return ZZv}get j(){return!0}S(p){return g.K(p,V8)||void 0}L(p,a,l){p.feedbackTokens=[];a.feedbackToken&&p.feedbackTokens.push(a.feedbackToken);if(a=a.cpn||l.cpn)p.feedbackContext={cpn:a};p.isFeedbackTokenUnencrypted=!!l.is_feedback_token_unencrypted;p.shouldMerge=!1;l.extra_feedback_tokens&&(p.shouldMerge=!0,p.feedbackTokens=p.feedbackTokens.concat(l.extra_feedback_tokens))}};var Ymr=class extends Wn{U(){return oTo}S(p){return g.K(p,U0E)||void 0}L(p,a){a.params&&(p.params=a.params);a.secondaryParams&&(p.secondaryParams=a.secondaryParams)}};var qmo=class extends Wn{U(){return zKq}S(p){return g.K(p,N4O)||void 0}L(p,a){a.actions&&(p.actions=a.actions);a.params&&(p.params=a.params);a.playlistId&&(p.playlistId=a.playlistId)}};var aRr=class extends Wn{U(){return V6v}S(p){return g.K(p,m0M)}L(p,a,l={}){a.serializedShareEntity&&(p.serializedSharedEntity=a.serializedShareEntity);l.includeListId&&(p.includeListId=!0)}};g.iZ=class extends g.Qm{constructor(p){super(p,[]);this.errorType=1;Object.setPrototypeOf(this,new.target.prototype)}};var AtM=class{constructor(p,a,l,y){this.L=p;this.S=a;this.U=l;this.j=y}async fetch(p,a,l){p=FJM(this,p,a);return(this.S??fetch)(p).then(y=>this.handleResponse(y,l)).catch(y=>{g.tX(y); if(l?.TF&&y instanceof g.iZ&&y.errorType===1)return Promise.reject(y)})}handleResponse(p,a){const l=this.U??JSON.parse; let y;y=p.text().then(S=>{if(a?.oR&&p.ok)return AIM(a.oR,S);S=S.replace(")]}'","");let n;if(a?.TF&&S)try{n=l(S)}catch(V){throw new g.iZ("JSON parsing failed after fetch");}return n??l(S)}); p.redirected||p.ok?this.L&&this.L.success():(this.L&&this.L.yPY(),y=y.then(S=>{g.tX(new g.Qm("Error: API fetch failed",p.status,p.url,S));return{...S,errorMetadata:{status:p.status}}})); return y}};AtM[oA]=[EV(new rK("NETWORK_SLI_TOKEN")),EV(new rK("FETCH_FN_TOKEN")),EV(new rK("PARSE_FN_TOKEN")),EV(new rK("WINDOW_REQUEST_TOKEN")),EV(new rK("TEXT_DECODER_TOKEN"))];var hqO=new rK("NETWORK_MANAGER_TOKEN");var GR;var FyO=class{constructor(p){this.L=p}bindInnertubeChallengeFetcher(p){this.L.bicf(p)}registerChallengeFetchedCallback(p){this.L.bcr(p)}getLatestChallengeResponse(){return this.L.blc()}};var VP$=[],n3h=(0,g.sZ)`https://static.doubleclick.net/instream/ad_status.js`,fs=!1;var fz=class{constructor(p,a,l){this.network=p;this.options=a;this.S=l;this.L=null;if(a.SYO){const y=new g.un;this.L=y.promise;g.mm.ytAtRC&&cR(async()=>{if(g.mm.ytAtRC){var S=await sB(this,nD(null));g.mm.ytAtRC&&g.mm.ytAtRC(JSON.stringify(S))}},2); EWE().then(async S=>{S.bindInnertubeChallengeFetcher(Z=>sB(this,nD(Z))); const n=await GG(ap());var V=S.getLatestChallengeResponse().challenge;if(!V)throw Error("BGE_MACIL");V={challenge:V,Po:qQ(V),ea:n,bgChallenge:new RB};y.resolve(V);S.registerChallengeFetchedCallback(Z=>{Z=Z.challenge;if(!Z)throw Error("BGE_MACR");Z={challenge:Z,Po:qQ(Z),ea:n,bgChallenge:new RB};this.L=Promise.resolve(Z)})})}else a.preload&&puo(this,new Promise(y=>{g.wM(0,()=>{y(MX(this))},0)}))}async j(){return!!await Promise.race([this.L, null])}async U(p,a,l){this.L===null&&puo(this,MX(this));let y=!1;const S={};return Promise.race([(async()=>{var n=await this.L;S.challenge=n.challenge;if(n.ea){var V={c:n.challenge,e:p,...a};try{y=!0;let Z;(Z=await n.ea.snapshot({N9:V}))?S.webResponse=Z:S.error="ATTESTATION_ERROR_VM_NO_RESPONSE"}catch{S.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR"}}else"c1a"in n.Po&&(S.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");p==="ENGAGEMENT_TYPE_PLAYBACK"&&(n=n.Po,V={},n.c6a&&(V.reportingStatus=String(Number(n.c)^ Qq())),n.c6b&&(V.broadSpectrumDetectionResult=String(Number(n.c)^Number(g.R("CATSTAT",0)))),S.adblockReporting=V);return S})(), x9o(l,()=>{const n=Object.assign({},S);y&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})])}};var u4q=["APP_STATE","PI"];var GzO=[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,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,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,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,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,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,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,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,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,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,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,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473, 166861,43375,46674,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,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075, 194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,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,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,277848,173191,173192,173193,101951,171502,196043,198305,97346, 118051,95102,64882,119505,63595,257268,63349,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,21409,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,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,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,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,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,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,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,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,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var qHe=class{constructor(){var p=YHf;const a=d8Z(GBq());this.store=XNZ(p,void 0,a)}getState(){return this.store.getState()}dispatch(p){return this.store.dispatch(p)}subscribe(p){return this.store.subscribe(p)}replaceReducer(p){return this.store.replaceReducer(p)}[Symbol.observable](){return this.store[Symbol.observable]()}};var F8=class{constructor(p=[]){this.L=[];this.U=this.S=0;this.j=void 0;this.totalLength=0;p.forEach(a=>{this.append(a)})}X(){return this.totalLength}append(p){if(vIq(this,p)){const a=this.L[this.L.length-1]; this.L[this.L.length-1]=new Uint8Array(a.buffer,a.byteOffset,a.length+p.length);JW(this)}else this.L.push(p);this.totalLength+=p.length}split(p){const a=new F8,l=new F8;for(const y of this.L)p>=y.length?(a.append(y),p-=y.length):p?(a.append(new Uint8Array(y.buffer,y.byteOffset,p)),l.append(new Uint8Array(y.buffer,y.byteOffset+p,y.length-p)),p=0):l.append(y);return{r6:a,pO:l}}isFocused(p){return p>=this.U&&p{const p=y=>{const S=new Uint8Array(y.length);for(let n=0;nnew Uint8Array(y),l=new Uint8Array([1]); return l.length===1&&l[0]===1?a:p})(); aV=Array(1024);pw=window.TextDecoder?new TextDecoder:void 0;QW=window.TextEncoder?new TextEncoder:void 0;var px=class{constructor(p){this.L=p;this.pos=0;this.S=-1}};var T_r=class{constructor(p=4096){this.pos=0;this.S=[];this.L=iCv(p);this.view=new DataView(this.L.buffer,this.L.byteOffset,this.L.byteLength)}};var gje={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393, emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164, mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248, musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382, suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},sjr={};for(const [p,a]of Object.entries(gje)){const l=p,y=a;y&&(sjr[y]=l)};var Joe=!1,ZH,yp,SX,n9,Vp,foZ=class extends g.YB{constructor(p){super();this.counter=[0,0,0,0];this.S=new Uint8Array(16);this.L=16;if(!Joe){var a,l=new Uint8Array(256),y=new Uint8Array(256);var S=1;for(a=0;a<256;a++)l[S]=a,y[a]=S,S^=S<<1^(S>>7&&283);ZH=new Uint8Array(256);yp=qt(256);SX=qt(256);n9=qt(256);Vp=qt(256);for(let V=0;V<256;V++){S=V?y[255^l[V]]:0;S^=S<<1^S<<2^S<<3^S<<4;S=S&255^S>>>8^99;ZH[V]=S;a=S<<1^(S>>7&&283);var n=a^S;yp[V]=a<<24|S<<16|S<<8|n;SX[V]=n<<24|yp[V]>>>8;n9[V]=S<<24|SX[V]>>> 8;Vp[V]=S<<24|n9[V]>>>8}Joe=!0}S=qt(44);for(l=0;l<4;l++)S[l]=p[4*l]<<24|p[4*l+1]<<16|p[4*l+2]<<8|p[4*l+3];for(y=1;l<44;l++)p=S[l-1],l%4||(p=(ZH[p>>16&255]^y)<<24|ZH[p>>8&255]<<16|ZH[p&255]<<8|ZH[p>>>24],y=y<<1^(y>>7&&283)),S[l]=S[l-4]^p;this.key=S}encrypt(p){const a=p.length;p=new Uint8Array(p.buffer.slice(p.byteOffset,p.byteOffset+a));const l=this.S;let y=0;for(;y{const p=y=>{const S=new Uint8Array(y.length);for(let n=0;nnew Uint8Array(y),l=new Uint8Array([1]); return l.length===1&&l[0]===1?a:p})(); var lB;var ade;g.k_=class{constructor(p){const a=ym();a&&(this.L=new ade(p,a));this.S=new g.gN(p)}async encrypt(p,a){if(this.L)try{return await this.L.encrypt(p,a)}catch(l){g.tX(l),p0=!0,this.L=void 0}return this.S.encrypt(p,a)}decrypt(p,a){return this.encrypt(p,a)}};ade=class{constructor(p,a){this.S=p;this.subtleCrypto=a}async encrypt(p,a){try{return await C0F(this,p,a)}catch(l){throw g.tX(l),p0=!0,l;}}}; g.gN=class{constructor(p){this.S=p}encrypt(p,a){this.L||(this.L=new foZ(this.S));var l=this.L;for(let y=0;y<4;y++)l.counter[y]=a[y*4]<<24|a[y*4+1]<<16|a[y*4+2]<<8|a[y*4+3];l.L=16;return this.L.encrypt(p)}decrypt(p,a){return this.encrypt(p,a)}};var Pfh=class{constructor(p){this.X=new Uint8Array(64);this.U=new Uint8Array(64);this.j=0;this.D=new Uint8Array(64);this.S=0;this.X.set(p);this.U.set(p);for(p=0;p<64;p++)this.X[p]^=92,this.U[p]^=54;this.reset()}reset(){zk$(this);this.update(this.U)}update(p){let a=0;const l=p.length;this.j+=l;this.S&&this.S+l>=64&&(this.D.set(p.subarray(0,64-this.S),this.S),a=64-this.S,this.S=0,Sv(this,this.D,0));for(;a+64<=l;a+=64)Sv(this,p,a);ap.snapshot(l))}else g.eo("yt.abuse.playerAttLoader",null),g.eo("yt.abuse.playerAttLoaderRun",null)}S(){return!!w5()}U(p){return w5().bgvmc(p)}};var kvM=class{Ii(){return"crossDeviceProgressCommand"}rI(p){if(p.crossDevicePings){const a=[];for(const l of p.crossDevicePings)a.push({baseUrl:l.baseUrl});g.i0("crossDeviceNotificationTransfer",{crossDevicePings:a})}}};var IbA=class{constructor(p,a){this.Dz=p;this.wp=a}Ii(){return"muteAdEndpoint"}rI(p,a){switch(p.type){case "SKIP":hbo(this.Dz,this.wp,a)}}};var OaA=class{Ii(){return"openPopupAction"}rI(){}};var Rdq=class{Ii(){return"pingingEndpoint"}rI(){}};var lM$={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0},vcr=class extends g.YB{constructor(p){super();this.F7=p;this.L=new Map;$W(this,"commandExecutorCommand",(a,l,y)=>{wQv(this,a.commands,l,y)}); $W(this,"clickTrackingParams",()=>{})}};var See={fZ:"FINAL",Bh:"AD_BREAK_LENGTH",Qb:"AD_CPN",Dr:"AH",lL:"AD_MT",sz:"ASR",Hh:"AW",IW:"NM",KS:"NX",cF:"NY",Og:"CONN",Y2:"CPN",Rb:"DV_VIEWABILITY",Kk:"ERRORCODE",ZB:"ERROR_MSG",qV:"EI",EL:"GOOGLE_VIEWABILITY",Tb:"IAS_VIEWABILITY",bE:"LACT",sW:"LIVE_TARGETING_CONTEXT",Mi:"I_X",rY:"I_Y",KR:"MT",Zu:"MIDROLL_POS",oH:"MIDROLL_POS_MS",OW:"MOAT_INIT",zC:"MOAT_VIEWABILITY",RV:"P_H",kN:"PV_H",v3:"PV_W",t0:"P_W",Gt:"TRIGGER_TYPE",vB:"SDKV",OB:"SLOT_POS",LTm:"SURVEY_LOCAL_TIME_EPOCH_S",YI:"SURVEY_ELAPSED_MS", gO:"VIS",ps7:"VIEWABILITY",KTO:"VED",c9I:"VOL",izT:"WT",Hx7:"YT_ERROR_CODE"};var uJv=class{constructor(p,a,l){this.Lv=p;this.L=a;this.uT=l;MV(Fh(),{Q2:DYv,qP:afA})}Ii(){return"urlEndpoint"}rI(p,a,l){{var y=this.uT.get();const S=Jw(y.S.get(),a);S?a=fr(y,pi(S),S,void 0,void 0,l):(Q("Trying to ping from an unknown layout",void 0,void 0,{layoutId:a}),a={})}a={...a};dp(this.L,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(l=H8(this.Lv,2))&&(a.AD_CPN=l.clientPlaybackNonce);a=g.xN(p.url,a);p=g.Dv(a,void 0,void 0,void 0,p.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"); ief(p,a)}};var Ns=class{constructor(p){this.value=p}get(){return this.value}},IVM=class extends Ns{L(){return"metadata_type_action_companion_ad_renderer"}},aqh=class extends Ns{L(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"}},LaF=class extends Ns{L(){return"metadata_type_ads_engagement_panel_renderer"}},XTh=class extends Ns{L(){return"metadata_type_ads_engagement_panel_layout_view_model"}},H1=class extends Ns{L(){return"metadata_type_ad_next_params"}},DW=class extends Ns{L(){return"metadata_type_ad_video_clickthrough_endpoint"}}, BkM=class extends Ns{L(){return"metadata_type_invideo_overlay_ad_renderer"}},xVZ=class extends Ns{L(){return"metadata_type_image_companion_ad_renderer"}},FaM=class extends Ns{L(){return"metadata_type_banner_image_layout_view_model"}},EOO=class extends Ns{L(){return"metadata_type_shopping_companion_carousel_renderer"}},DVf=class extends Ns{L(){return"metadata_type_ad_info_ad_metadata"}},i2O=class extends Ns{L(){return"metadata_ad_video_is_listed"}},GL=class extends Ns{L(){return"metadata_type_ad_placement_config"}}, x_=class extends Ns{L(){return"metadata_type_ad_pod_info"}},qL=class extends Ns{L(){return"metadata_type_ad_pod_skip_index"}},f9=class extends Ns{L(){return"metadata_type_ad_pod_skip_target"}},VE=class extends Ns{L(){return"metadata_type_ad_pod_skip_target_callback_ref"}},XP=class extends Ns{L(){return"metadata_type_ad_video_id"}},cF=class extends Ns{L(){return"metadata_type_content_cpn"}},PF=class extends Ns{L(){return"metadata_type_instream_ad_player_overlay_renderer"}},Lq=class extends Ns{L(){return"metadata_type_player_overlay_layout_renderer"}}, ogh=class extends Ns{L(){return"metadata_type_player_underlay_renderer"}},Plq=class extends Ns{L(){return"metadata_type_player_underlay_ad_slot_renderer"}},x3q=class extends Ns{L(){return"metadata_type_media_associated_in_player_slot"}},W7$=class extends Ns{L(){return"metadata_type_shrunken_player_bytes_config"}},Jq=class extends Ns{L(){return"metadata_type_ad_action_interstitial_renderer"}},XHM=class extends Ns{L(){return"metadata_type_valid_survey_text_interstitial_renderer"}},jCO=class extends Ns{L(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"}}, L4E=class extends Ns{L(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"}},Cto=class extends Ns{L(){return"metadata_type_sliding_text_player_overlay_renderer"}},Iw=class extends Ns{L(){return"metadata_type_linked_player_bytes_layout_id"}},Me$=class extends Ns{L(){return"metadata_type_linked_second_player_bytes_layout_id"}},YK=class extends Ns{L(){return"metadata_type_linked_in_player_layout_id"}},r$=class extends Ns{L(){return"metadata_type_linked_in_player_layout_type"}},$3F=class extends Ns{L(){return"metadata_type_linked_in_player_slot_id"}}, bkZ=class extends Ns{L(){return"metadata_type_player_bytes_callback"}},$_=class extends Ns{L(){return"metadata_type_player_bytes_callback_ref"}},Vm=class extends Ns{constructor(){super({current:null})}L(){return"metadata_type_player_bytes_layout_controls_callback_ref"}},ouh=class extends Ns{L(){return"metadata_type_sub_layouts"}},y$o=class extends Ns{L(){return"metadata_type_cue_point"}},hzo=class extends Ns{L(){return"metadata_type_triggering_cue_point"}},d_=class extends Ns{L(){return"metadata_type_video_length_seconds"}}, r9=class extends Ns{L(){return"metadata_type_player_vars"}},Lj$=class extends Ns{L(){return"metadata_type_preload_player_vars"}},FP=class extends Ns{L(){return"metadata_type_sodar_extension_data"}},AQ=class extends Ns{L(){return"metadata_type_layout_enter_ms"}},gx=class extends Ns{L(){return"metadata_type_layout_exit_ms"}},w9=class extends Ns{L(){return"metadata_type_media_sub_layout_index"}},fj=class extends Ns{constructor(){super({})}L(){return"metadata_type_dai"}},bzA=class extends Ns{constructor(){super({})}L(){return"metadata_type_ad_intro"}}, Pm$=class extends Ns{L(){return"metadata_type_client_forecasting_ad_renderer"}},hQ=class extends Ns{L(){return"metadata_type_drift_recovery_ms"}},Z1=class extends Ns{L(){return"metadata_type_fulfilled_layout"}},ilZ=class extends Ns{L(){return"metadata_type_ad_break_request_data"}},N1q=class extends Ns{L(){return"metadata_type_ad_break_response_data"}},i7=class extends Ns{L(){return"metadata_type_remote_slots_data"}},Gc=class extends Ns{L(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"}},BH= class extends Ns{L(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"}},Xeo=class extends Ns{L(){return"metadata_type_legacy_info_card_vast_extension"}},Xuo=class extends Ns{L(){return"metadata_type_valid_ad_message_renderer"}},cH=class extends Ns{L(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"}},A5F=class extends Ns{L(){return"metadata_type_served_from_live_infra"}},y5A=class extends Ns{L(){return"metadata_type_survey_overlay"}},oL=class extends Ns{L(){return"metadata_type_active_view_traffic_type"}}, Doh=class extends Ns{L(){return"metadata_type_active_view_identifier"}},fCM=class extends Ns{L(){return"metadata_type_ssdai_ads_config"}},oa=class extends Ns{L(){return"metadata_type_eligible_for_ssap"}},nNh=class extends Ns{constructor(){super(!0)}L(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"}},dA=class extends Ns{L(){return"metadata_type_player_bytes_slot_metadata"}},blE=class extends Ns{constructor(){super({})}L(){return"metadata_type_prefetch_metadata"}};var Sdv=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 hj=()=>"",FFf=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 s2=class extends Ue{constructor(p,a,l,y=!1){super(p);this.Yz=l;this.Iw=y;this.args=[];a&&this.args.push(a)}};var N=class extends Ue{constructor(p,a,l,y=!1){super(p);this.Yz=l;this.Iw=y;this.args=[];a&&this.args.push(a)}};var L0=class{constructor(p){const a=new Map;p.forEach(l=>{a.set(l.L(),l)}); this.L=a}t9(p){p=this.L.get(p);if(p!==void 0)return p.get()}};new Promise(()=>{});var K8=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"]]),paM=new Map([["normal",{n6:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{n6:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}], ["muted",{n6:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{n6:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{n6:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{n6:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}], ["error",{n6:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",K6:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]),Uw=class{constructor(p){this.EO=p;p=Math.random();var a=this.EO.get();a=g.ak(a.B.O().experiments,"html5_debug_data_log_probability");a=Number.isFinite(a)&&a>=0&&a<=1?a:0;this.L=p{g.Er(this.instance);this.instance=null})}get(){Math.random()<.001&&this.nz()&&Q("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance}); this.instance||(this.instance=this.L());return this.instance}};var SaM=class extends g.YB{constructor(p){super();this.L=p;this.S=WDr(this)}U(){return this.S}};var Q8=class{constructor(p){this.L=p}executeCommand(p,a){$3(this.L(),p,a)}};var nbF=class{constructor(){this.listeners=new Set}addListener(p){this.listeners.add(p)}removeListener(p){this.listeners.delete(p)}};var h2=class{constructor(p){this.EO=p}};var V9Z=class{constructor(p,a,l,y,S){this.callback=p;this.slot=a;this.S=l;this.EQ=y;this.EO=S;this.L=null}};var gT={AD_MARKER:"ytp-ad-progress",CHAPTER_MARKER:"ytp-chapter-marker",TIME_MARKER:"ytp-time-marker"};var nXr=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/)"),bq$=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]+)?/)"), VYF=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),B6O=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)|$))"), KAf=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)|$))"),$uO=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)))\\/|^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/)"), ZJf=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),nsq=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)"),fvZ=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)))\\/|^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/.*$)"), Ciq=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)"), ZBo=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://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)[.]?(:[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)"), obF=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)$|^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 zXO;g.yj=class{constructor(p,a,l={}){this.start=p;this.end=a;this.active=!0;this.color="";this.S=zXO++;this.id=l.id||"";this.priority=l.priority||9;this.visible=l.visible||!1;this.style=l.style||gT.AD_MARKER;this.namespace=l.namespace||"";if(p=l.color)p=p.toString(16),this.color=`#${Array(7-p.length).join("0")}${p}`;this.tooltip=l.tooltip;this.icons=l.icons?l.icons.filter(y=>g.K0(y.thumbnails,S=>g.hx(S.url))):null; this.associatedClipId=l.associatedClipId;this.markerPositionMs=l.markerPositionMs;this.visible=this.visible;this.style=this.style;this.start=this.start}getId(){return this.id}toString(){return"CueRange{"+this.namespace+":"+this.id+"}["+B0o(this.start)+", "+B0o(this.end)+"]"}contains(p,a){return p>=this.start&&(p{const a=this.slot.clientMetadata.t9("metadata_type_ad_break_request_data");p=Date.now();W8(this.uT.get(),"abrs",`ct.${p};cmt.${this.sO.get().getCurrentTimeSec(1,!1)};sid.${this.slot.slotId};`);return this.S.get().fetch({Sx:a.getAdBreakUrl,ey:new g.yj(a.vO,a.kY),py:this.slot.clientMetadata.t9("metadata_type_cue_point"),cueProcessedMs:a.cueProcessedMs})}, ()=>{CLf(this)},a=>{var l=Date.now()-p; W8(this.uT.get(),"abrr",`ct.${(new Date).getTime()};cmt.${this.sO.get().getCurrentTimeSec(1,!1)};l.${l.toString()};sid.${this.slot.slotId};`);l=a.pH;l.length>=2&&a.ssdaiAdsConfig&&Q("Unexpected ad placement renderers length",this.slot,null,{length:l.length});a.adSlots?.some(y=>g.K(y,Gi)?.adSlotMetadata?.slotType==="SLOT_TYPE_PLAYER_BYTES")||l.some(y=>!!y.renderer?.linearAdSequenceRenderer?.linearAds?.length||!!y.renderer?.instreamVideoAdRenderer)||CLf(this)})}J8(){bCf(this.L)}};var Gmo=class{constructor(p,a,l,y,S,n){this.slot=a;this.L=l;this.S=new V9Z(p,a,y,S,n)}F0(){gy(this.S,()=>{const p=this.slot.clientMetadata.t9("metadata_type_ad_break_request_data");return p.cueProcessedMs?this.L.get().fetch({Sx:p.getAdBreakUrl,ey:new g.yj(p.vO,p.kY),cueProcessedMs:p.cueProcessedMs}):this.L.get().fetch({Sx:p.getAdBreakUrl,ey:new g.yj(p.vO,p.kY)})})}J8(){bCf(this.S)}};var BoA=class{constructor(p,a){this.callback=p;this.slot=a}F0(){var p=this.slot.clientMetadata;p=this.slot.fulfilledLayout??p.t9("metadata_type_fulfilled_layout");QR(this.callback,this.slot,p)}J8(){Ae(this.callback,this.slot,new N(`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 cRq=class{build(p,a){return a.fulfilledLayout||ba(a,{e5:["metadata_type_fulfilled_layout"]})?new BoA(p,a):this.U(p,a)}};var A2=class extends cRq{constructor(p,a,l,y,S,n,V){super();this.L=p;this.S=a;this.EQ=l;this.EO=y;this.uT=S;this.sO=n;this.gq=V}U(p,a){if(ba(a,{e5:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new d2O(p,a,this.L,this.S,this.EQ,this.EO,this.uT,this.sO,this.gq);if(ba(a,{e5:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Gmo(p,a,this.L,this.S,this.EQ,this.EO);throw new N(`Unsupported slot with type: ${a.slotType} and client metadata: ${X6(a.clientMetadata)} in `+ "AdBreakRequestSlotFulfillmentAdapterFactory.");}};var gK=class extends cRq{U(p,a){throw new N(`Unsupported slot with type: ${a.slotType} and client metadata: ${X6(a.clientMetadata)} in `+"DefaultFulfillmentAdapterFactory.");}};var rRZ=class{constructor(p,a,l,y,S,n){this.callback=p;this.slot=a;this.layout=l;this.U=y;this.L=S;this.S=n}qc(){return this.slot}ZV(){return this.layout}init(){}release(){}startRendering(p){if(p.layoutId!==this.layout.layoutId)this.callback.N2(this.slot,p,new s2("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 a=p.clientMetadata.t9("metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.VQ(this.slot,p),XG$(this.U,this.slot,a)):Q("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,p)}}Lh(p,a){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new s2("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.lr(this.slot,p,a),KYF(this),fHq(this))}};var wwr=class{constructor(p,a,l){this.L=p;this.slot=a;this.layout=l}};var Y$=class extends g.js{constructor(p,a,l,y){super();this.callback=p;this.U=y;this.L=[];this.S=new wwr(p,a,l)}qc(){return this.S.slot}ZV(){return this.S.layout}get slot(){return this.S.slot}get layout(){return this.S.layout}init(){this.U.get().addListener(this)}release(){this.U.get().removeListener(this);this.dispose()}HP(){}Ar(){}lY(){}Mf(){}startRendering(p){pH(this.S,p,()=>void this.sF())}sF(){this.U.get().sF(this.L)}Lh(p,a){pH(this.S,p,()=>{var l=this.U.get(); QvZ(l,this.L,3);this.L=[];this.callback.lr(this.slot,p,a)})}fz(){this.U.nz()||this.U.get().removeListener(this); super.fz()}};var qn=class{constructor(p,a,l,y,S=null){this.U=p;this.uT=a;this.layoutId=y;this.j=0;this.D=null;this.X=void 0;this.L=new Set;this.S=Array.from(this.U.get("progress")||[]);this.S.sort((n,V)=>(n.offsetMilliseconds||0)-(V.offsetMilliseconds||0)); this.G={adPlacementConfig:l,Zp:S}}Fb(p,a=!1){const l=(this.U.get(p)||[]).concat();if(a=a&&rsM(p)){const y=this.U.get(a);y&&l.push(...y)}w_(this,p,l);this.L.add(p);a&&this.L.add(a)}O6(p,a=!1){if(!this.L.has(p)){var l=a&&rsM(p);l&&(a=!this.L.has(l));this.Fb(p,a)}}};var $2Z=class extends Pn{constructor(p,a,l,y,S){super("ads-engagement-panel-layout",p,a,l,y,S)}};var P$r=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}fv(p,a){sg("ads-engagement-panel-layout",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),g.K(this.ZV().renderingContent, FB),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",(a,l,y,S,n)=>new $2Z(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var LSe=class extends Pn{constructor(p,a,l,y,S){super("banner-image",p,a,l,y,S)}};var Xw$=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);this.adPlacementConfig=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,this.adPlacementConfig,l.layoutId)}fv(p,a){sg("banner-image",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),g.K(this.ZV().renderingContent, XB),this.callback,"metadata_type_banner_image_layout_view_model",(a,l,y,S,n)=>new LSe(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var x2M=class extends Pn{constructor(p,a,l,y,S){super("action-companion",p,a,l,y,S)}};var FSh=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}fv(p,a){sg("action-companion",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),g.K(this.ZV().renderingContent,dq),this.callback, "metadata_type_action_companion_ad_renderer",(a,l,y,S,n)=>new x2M(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){a.layoutId===this.layout.layoutId?this.xv.O6("impression"):this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var Ebh=class extends Pn{constructor(p,a,l,y,S){super("image-companion",p,a,l,y,S)}};var C$M=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}fv(p,a){sg("image-companion",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),g.K(this.ZV().renderingContent,PL),this.callback, "metadata_type_image_companion_ad_renderer",(a,l,y,S,n)=>new Ebh(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){a.layoutId===this.layout.layoutId?this.xv.O6("impression"):this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var vbZ=class extends Pn{constructor(p,a,l,y,S){super("shopping-companion",p,a,l,y,S)}};var KSe=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}fv(p,a){sg("shopping-companion",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer", (a,l,y,S,n)=>new vbZ(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){a.layoutId===this.layout.layoutId?this.xv.O6("impression"):this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var eXE=class{constructor(p,a,l,y){this.uM=p;this.layoutId=l;this.X=y;this.S=[];this.L=[];this.U=this.j=0;for(const S of a)switch(S.adVideoOffset?.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":(S.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_PERCENT"?0:S.adVideoOffset?.percent!=null)?this.S.push(S):Q("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":(S.adVideoOffset?.kind!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS"?0:S.adVideoOffset?.milliseconds!=null&&!isNaN(Number(S.adVideoOffset.milliseconds)))? this.L.push(S):Q("Invalid AdVideoProgressMillisecondsCommand");break;default:Q("Unknown or invalid AdVideoProgressOffSet kind")}this.S.sort((S,n)=>S.adVideoOffset.percent-n.adVideoOffset.percent); this.L.sort((S,n)=>Number(S.adVideoOffset.milliseconds)-Number(n.adVideoOffset.milliseconds))}};var bBF=class extends Y${constructor(p,a,l,y,S,n){super(p,a,l,y);this.uT=S;this.Lt=n;this.Vh=!0;If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",(a,l,y,S,n)=>new x2M(a,l,y,S,n),this.L); super.startRendering(p)}VQ(){}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}fv(){}};var If$=class{constructor(p,a,l,y,S,n,V,Z){this.callback=p;this.slot=a;this.layout=l;this.sO=y;this.uT=S;this.EO=V;this.Gn=Z;this.L=!1;p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId);p=this.layout.clientMetadata.t9("METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")?.progressCommands||[];const z=l.clientMetadata.t9("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds");this.S=new eXE(n,p,l.layoutId,()=>z*1E3)}qc(){return this.slot}ZV(){return this.layout}init(){this.sO.get().addListener(this); this.sO.get().ra.push(this);const p=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),a=this.layout.clientMetadata.t9("metadata_type_active_view_traffic_type");uJ(this.layout.Xh)&&sK(this.Gn.get(),this.layout.layoutId,{N8:a,HT:p,listener:this})}release(){this.sO.get().removeListener(this);vso(this.sO.get(),this);uJ(this.layout.Xh)&&UD(this.Gn.get(),this.layout.layoutId)}startRendering(p){this.callback.VQ(this.slot,p)}Lh(p,a){MDo(this.EO.get())&&!this.L&&(this.xv.O6("abandon"),this.L= !0);this.callback.lr(this.slot,p,a)}qb(p){switch(p.id){case "part2viewed":this.xv.O6("start");this.xv.O6("impression");break;case "videoplaytime25":this.xv.O6("first_quartile");break;case "videoplaytime50":this.xv.O6("midpoint");break;case "videoplaytime75":this.xv.O6("third_quartile");break;case "videoplaytime100":MDo(this.EO.get())?this.L||(this.xv.O6("complete"),this.L=!0):this.xv.O6("complete");ij(this.xv)&&dj(this.xv,Infinity,!0);lwE(this.EO.get())&&jD(this.S,Infinity,!0);break;case "engagedview":ij(this.xv)|| this.xv.O6("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Q("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}SR(){}lN(){}zM(){}onFullscreenToggled(){}pv(){}r4(){}ZZ(p){lwE(this.EO.get())&&jD(this.S,p*1E3,!1);ij(this.xv)&&dj(this.xv,p*1E3,!1)}PG(){}L6(){this.xv.O6("active_view_measurable")}S_(){this.xv.O6("active_view_viewable")}Yt(){this.xv.O6("active_view_fully_viewable_audible_half_duration")}N$(){this.xv.O6("audio_measurable")}m6(){this.xv.O6("audio_audible")}};var wqF=class extends Y${constructor(p,a,l,y,S,n){super(p,a,l,y);this.sO=S;this.X=n;this.j=!1}init(){super.init();const p=this.layout.clientMetadata.t9("metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.ao};this.L.push(new uZ(p,this.layout.layoutId,this.layout.clientMetadata.t9("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,!0))}aK(){this.j||this.sO.get().resumeVideo(1)}startRendering(p){super.startRendering(p);TO(this.sO.get(),"ad-showing");this.callback.VQ(this.slot, p);this.X.hJ=this}Lh(p,a){super.Lh(p,a);lh(this.sO.get(),"ad-showing");Zk(this.X,this)}fv(p){switch(p){case "ad-info-icon-button":(this.j=this.sO.get().jr(1))||this.sO.get().pauseVideo();break;case "visit-advertiser":this.sO.get().pauseVideo()}}fz(){super.fz()}};var RXv=class extends Pn{constructor(p,a,l,y,S){super("top-banner-image-text-icon-buttoned",p,a,l,y,S)}};var uuq=class extends Y${constructor(p,a,l,y,S,n){super(p,a,l,y);this.uT=S;this.Lt=n;this.Vh=!0;If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(a,l,y,S,n)=>new RXv(a,l,y,S,n),this.L); super.startRendering(p)}VQ(){}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}fv(){}};var OBM=class extends Pn{constructor(p,a,l){super("display-underlay-text-grid-cards",p,{},a,l);this.interactionLoggingClientData=l}};var kmo=class extends Y${constructor(p,a,l,y,S,n){super(p,a,l,y);this.uT=S;this.j=n;this.X=this.layout.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id")}init(){super.init();this.L.push(new OBM(g.K(this.layout.renderingContent,bp),this.layout.layoutId,{adsClientData:this.layout.ao}))}fv(){Ak(this.j.get(),this.X)&&Ni(this.uT.get(),3)}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p)}fz(){super.fz()}};var qs=class extends Pn{constructor(p,a,l,y){super("ad-action-interstitial",p,a,l,y);this.interactionLoggingClientData=y;this.D2=this.DC=!0}};var c6E=class extends Y${constructor(p,a,l,y,S){super(p,a,l,y);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,S,p,l.layoutId)}init(){super.init();const p=g.K(this.layout.renderingContent,oZ)||this.layout.clientMetadata.t9("metadata_type_ad_action_interstitial_renderer"),a=Sx(this.xv);this.L.push(new qs(p,a,this.layout.layoutId,{adsClientData:this.layout.ao}))}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p)}fv(p,a){if(a===this.layout.layoutId)switch(p){case "skip-button":(p= this.layout.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&p.iF(this.qc(),this.layout)}}fz(){super.fz()}};var J2=class{constructor(p,a,l){this.S=p;this.U=a;this.L=l}build(p,a,l,y){if(qa(y,{e5:["metadata_type_ad_break_response_data"],FX:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new rRZ(p,l,y,this.S,this.U,this.L);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"AdBreakRequestLayoutRenderingAdapterFactory.");}};var M9q=class extends Pn{constructor(p,a,l,y,S){super("ads-engagement-panel",p,a,l,y,S)}};var m2f=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}fv(p,a){sg("ads-engagement-panel",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv,this.qc(),this.ZV(),g.K(this.ZV().renderingContent,Lk),this.callback, "metadata_type_ads_engagement_panel_renderer",(a,l,y,S,n)=>new M9q(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){a.layoutId===this.layout.layoutId?this.xv.O6("impression"):this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var t9O=class extends Y${constructor(p,a,l,y,S,n,V){super(p,a,l,y);this.uT=S;this.Lt=n;this.D=V;this.Vh=!0;this.j=null;this.X=l.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id");If(this.Lt(),this);this.adPlacementConfig=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,this.adPlacementConfig,l.layoutId)}fv(p,a){sg("top-banner-image-text-icon-buttoned",p,this.D.get().wd,this.uT.get(),this.j,this.X,this.qc(),this.ZV(),a)}startRendering(p){Xw(this.xv, this.qc(),this.ZV(),g.K(this.ZV().renderingContent,xk),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",(a,l,y,S,n)=>new RXv(a,l,y,S,n),this.L); super.startRendering(p)}VQ(p,a){this.X===a.layoutId&&(this.j===null?this.j=this.uT.get().Et():Q("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}fz(){Cx(this.Lt(),this);super.fz()}};var jTr=class{constructor(p,a,l,y,S){this.yL=p;this.uT=a;this.Lt=l;this.L=y;this.Gn=S}build(p,a,l,y){if(qa(y,uLh())||g.K(y.renderingContent,Lk)!==void 0)return new m2f(p,l,y,this.yL,this.uT,this.Lt,this.L);if(qa(y,vNA())||g.K(y.renderingContent,dq)!==void 0)return new FSh(p,l,y,this.yL,this.uT,this.Lt,this.L);if(qa(y,yXM())||g.K(y.renderingContent,PL)!==void 0)return new C$M(p,l,y,this.yL,this.uT,this.Lt,this.L);if(qa(y,Gkf()))return new KSe(p,l,y,this.yL,this.uT,this.Lt,this.L);if(qa(y,NU$()))return new bBF(p, l,y,this.yL,this.uT,this.Lt);if(qa(y,cNq())||g.K(y.renderingContent,XB)!==void 0)return new Xw$(p,l,y,this.yL,this.uT,this.Lt,this.L);if(qa(y,WQe())||g.K(y.renderingContent,xk)!==void 0)return new t9O(p,l,y,this.yL,this.uT,this.Lt,this.L);if(qa(y,Ddr()))return new uuq(p,l,y,this.yL,this.uT,this.Lt);if(qa(y,qtq())||g.K(y.renderingContent,FB)!==void 0)return new P$r(p,l,y,this.yL,this.uT,this.Lt,this.L);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+ "DesktopAboveFeedLayoutRenderingAdapterFactory.");}};var WSr=class{constructor(p,a,l){this.yL=p;this.uT=a;this.L=l}build(p,a,l,y){if(qa(y,{e5:["metadata_type_linked_player_bytes_layout_id"],FX:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new kmo(p,l,y,this.yL,this.uT,this.L);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");}};var HBM=class{constructor(p,a,l,y,S){this.callback=p;this.slot=a;this.layout=l;this.uT=y;this.Id=S;p=this.layout.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}qc(){return this.slot}ZV(){return this.layout}init(){}release(){}startRendering(p){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new s2("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.VQ(this.slot,p),this.xv.O6("impression"),qr(this.Id,p,"normal"))}Lh(p,a){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new s2("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.lr(this.slot, p,a)}};var D2E=class{constructor(p,a,l,y,S){this.callback=p;this.slot=a;this.layout=l;this.uT=y;this.Id=S;p=this.layout.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}qc(){return this.slot}ZV(){return this.layout}init(){}release(){}startRendering(p){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new s2("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.VQ(this.slot,p),this.xv.O6("impression"),qr(this.Id,p,"normal"))}Lh(p,a){p.layoutId!==this.layout.layoutId?this.callback.N2(this.slot,p,new s2("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.lr(this.slot, p,a)}};var fg=class{constructor(p,a,l,y){this.EO=p;this.uT=a;this.Id=l;this.Gn=y}build(p,a,l,y){if(!this.EO.get().B.O().A("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(qa(y,mbM()))return new HBM(p,l,y,this.uT,this.Id)}else if(qa(y,{e5:[],FX:["LAYOUT_TYPE_FORECASTING"]}))return new D2E(p,l,y,this.uT,this.Id);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"ForecastingLayoutRenderingAdapterFactory.");}};var iBr=class extends Pn{constructor(p,a,l,y){super("player-overlay-layout",p,{},l,y);this.videoAdDurationSeconds=a;this.interactionLoggingClientData=y}};var BRf=class extends Y${constructor(p,a,l,y,S,n,V,Z,z){super(p,a,l,y);this.sO=S;this.uT=n;this.D=V;this.X=Z;this.EO=z;this.j=!1;this.G=this.layout.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const p=g.K(this.layout.renderingContent,nx)||this.layout.clientMetadata.t9("metadata_type_player_overlay_layout_renderer"),a={adsClientData:this.layout.ao};this.L.push(new iBr(p,this.layout.clientMetadata.t9("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId, a))}aK(){this.j||this.sO.get().resumeVideo(2)}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p);this.X.hJ=this}Lh(p,a){super.Lh(p,a);Zk(this.X,this)}fv(p,a){if(!dp(this.EO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(Ak(this.D.get(),this.G))switch(p){case "visit-advertiser-link":Ni(this.uT.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j|| this.sO.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.sO.get().jr(2))||this.sO.get().pauseVideo();break;case "visit-advertiser-link":this.sO.get().pauseVideo();tpq(this).zU();break;case "skip-button":p=tpq(this),this.layout.renderingContent&&!Ci(this.layout.clientMetadata,"metadata_type_dai")||!p||!p.hA?(p=this.layout.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&p.iF(this.qc(),this.layout):(Q("Requesting to skip by LegacyPlayerBytes when components enabled"), p.EZ(this.qc(),this.layout))}}}fz(){super.fz()}};var GTr=class extends Y${constructor(p,a,l,y,S,n,V,Z,z){super(p,a,l,y);this.sO=S;this.uT=n;this.D=V;this.X=Z;this.EO=z;this.j=!1;this.G=this.layout.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id")}init(){super.init();const p=g.K(this.layout.renderingContent,S3)||this.layout.clientMetadata.t9("metadata_type_instream_ad_player_overlay_renderer"),a={adsClientData:this.layout.ao};var l;(l=!!this.layout.renderingContent)||(l=zU(this),l=!(l&&l.hA));this.L.push(new uZ(p,this.layout.layoutId, this.layout.clientMetadata.t9("METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),a,l))}aK(){this.j||this.sO.get().resumeVideo(2)}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p);this.X.hJ=this}Lh(p,a){super.Lh(p,a);Zk(this.X,this)}fv(p,a){if(!this.EO||!dp(this.EO.get(),"stop_handling_click_for_non_rendering_overlay_layout")||a===this.layout.layoutId){if(Ak(this.D.get(),this.G))switch(p){case "visit-advertiser":Ni(this.uT.get(),3)}switch(p){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.j|| this.sO.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.j=this.sO.get().jr(2))||this.sO.get().pauseVideo();break;case "visit-advertiser":this.sO.get().pauseVideo();zU(this).zU();break;case "skip-button":p=zU(this),this.layout.renderingContent&&!Ci(this.layout.clientMetadata,"metadata_type_dai")||!p||!p.hA?(p=this.layout.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref")?.current)&&p.iF(this.qc(),this.layout):(Q("Requesting to skip by LegacyPlayerBytes"), p.EZ(this.qc(),this.layout))}}}fz(){super.fz()}};var ToZ=class extends Pn{constructor(p,a,l){super("ad-message",p,void 0,a,l)}};var r6M=class extends Y${constructor(p,a,l,y,S,n){super(l,p,a,y);this.sO=S;this.EO=n}startRendering(p){pH(this.S,p,()=>{this.L.push(new ToZ(this.layout.clientMetadata.t9("metadata_type_valid_ad_message_renderer"),p.layoutId,p.ao));this.sF();this.callback.VQ(this.slot,p);N1(this.sO.get(),1).L(512)&&this.callback.N2(this.qc(),this.ZV(),new s2("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}r4(){}pv(p){p.state.isError()&& this.callback.N2(this.qc(),this.ZV(),new s2("A player error happened during adNotify",{playerErrorCode:p.state.Kq?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}onFullscreenToggled(){}lN(){}zM(){}SR(){}onVolumeChange(){}qb(){}PG(){}fv(){}};var Nor=class extends Pn{constructor(p,a,l,y){super("video-interstitial-buttoned-centered",p,a,l,y);this.interactionLoggingClientData=y}};var $Mq=class extends Y${constructor(p,a,l,y,S){super(p,a,l,y);p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,S,p,l.layoutId)}init(){super.init();const p=g.K(this.layout.renderingContent,Vv),a=Sx(this.xv);this.L.push(new Nor(p,a,this.layout.layoutId,{adsClientData:this.layout.ao}))}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p)}fv(p,a){if(a===this.layout.layoutId)switch(p){case "skip-button":(p=this.layout.clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref")?.current)&& p.iF(this.qc(),this.layout)}}fz(){super.fz()}};var sTq=class{constructor(p,a,l,y,S,n){this.yL=p;this.sO=a;this.uT=l;this.S=y;this.L=S;this.EO=n}build(p,a,l,y){if(p=ZS(p,l,y,this.yL,this.sO,this.uT,this.S,this.L,this.EO))return p;throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"OtherWebInPlayerLayoutRenderingAdapterFactory.");}};var U2f=class{constructor(p,a,l,y,S,n,V,Z){this.callback=p;this.slot=a;this.layout=l;this.sO=y;this.uT=S;this.EO=n;this.Gn=V;this.MO=Z;this.L=!1;p=l.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId)}qc(){return this.slot}ZV(){return this.layout}init(){this.sO.get().addListener(this);this.sO.get().ra.push(this);if(this.layout.renderingContent){var p=this.MO.get();p=H8(p,1).kJ/1E3}else p=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"); var a=g.K(this.layout.renderingContent,Xz);const l=a?zc(a.pings):this.layout.clientMetadata.t9("metadata_type_active_view_traffic_type");a=a?a.pings?.activeViewTracking?.identifier:this.layout.clientMetadata.t9("metadata_type_active_view_identifier");uJ(this.layout.Xh)&&sK(this.Gn.get(),this.layout.layoutId,{N8:l,HT:p,listener:this,Dj:a})}release(){this.sO.get().removeListener(this);vso(this.sO.get(),this);uJ(this.layout.Xh)&&UD(this.Gn.get(),this.layout.layoutId)}startRendering(p){this.callback.VQ(this.slot, p)}Lh(p,a){Tk(this,"abandon");this.callback.lr(this.slot,p,a)}qb(p){switch(p.id){case "part2viewed":this.xv.O6("start");this.xv.O6("impression");break;case "videoplaytime25":this.xv.O6("first_quartile");break;case "videoplaytime50":this.xv.O6("midpoint");break;case "videoplaytime75":this.xv.O6("third_quartile");break;case "videoplaytime100":Tk(this,"complete");ij(this.xv)&&dj(this.xv,Infinity,!0);break;case "engagedview":ij(this.xv)||this.xv.O6("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Q("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}onVolumeChange(){}SR(){}lN(){}zM(){}onFullscreenToggled(){}pv(p){this.L||(p.j5(4)&&!p.j5(2)?$k(this.xv,"pause"):qJ(p,4)<0&&!(qJ(p,2)<0)&&$k(this.xv,"resume"))}r4(){}ZZ(p){ij(this.xv)&&dj(this.xv,p*1E3,!1)}PG(){Tk(this,"swipe")}L6(){this.xv.O6("active_view_measurable")}S_(){this.xv.O6("active_view_viewable")}Yt(){this.xv.O6("active_view_fully_viewable_audible_half_duration")}N$(){this.xv.O6("audio_measurable")}m6(){this.xv.O6("audio_audible")}};var QTO=class{constructor(p,a,l,y,S,n){this.sO=p;this.uT=a;this.uM=l;this.EO=y;this.Gn=S;this.MO=n}build(p,a,l,y){if(l.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.K(y.renderingContent,Xz)!==void 0)return new U2f(p,l,y,this.sO,this.uT,this.EO,this.Gn,this.MO);a=["metadata_type_ad_placement_config"];for(const S of zu())a.push(S);if(qa(y,{e5:a,FX:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return l.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new U2f(p,l,y,this.sO,this.uT,this.EO,this.Gn, this.MO):new If$(p,l,y,this.sO,this.uT,this.uM,this.EO,this.Gn);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"PlaybackTrackingLayoutRenderingAdapterFactory.");}};var p4=class{constructor(){this.currentState=1;this.L="unknown"}};var V_={contentCpn:"",t7:new Map},hXM=class{constructor(p){this.params=p;this.L=new Set}},F4q=class{constructor(p,a){this.Lv=p;this.EO=a}eb(p,a){a={...a,cc:this.Lv.X_()};this.Lv.B.Xu(p,a)}};g.cQ=class{constructor(p,a={},l=0){this.errorCode=p;this.details=a;this.severity=l}};var ARM; ARM={Ij:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Eg:"AUTHENTICATION_MALFORMED",wS:"AUTHENTICATION_MISSING",gS:"BAD_REQUEST",RW:"CAST_SESSION_DEVICE_MISMATCHED",vF:"CAST_SESSION_VIDEO_MISMATCHED",tj:"CAST_TOKEN_EXPIRED",u3:"CAST_TOKEN_FAILED",Ga:"CAST_TOKEN_MALFORMED",nS:"CGI_PARAMS_MALFORMED",aW:"CGI_PARAMS_MISSING",fk:"DEVICE_FALLBACK",cM:"GENERIC_WITH_LINK_AND_CPN",JW:"ERROR_HDCP",iD:"LICENSE",ob:"VIDEO_UNAVAILABLE",VM:"FORMAT_UNAVAILABLE",YU:"GEO_FAILURE",u9:"HTML5_AUDIO_RENDERER_ERROR", Gb:"GENERIC_WITHOUT_LINK",nB:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",a5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",MK:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",rb:"HTML5_SPS_UMP_STATUS_REJECTED",qK:"INVALID_DRM_MESSAGE",KA:"PURCHASE_NOT_FOUND",J0:"PURCHASE_REFUNDED",d_:"RENTAL_EXPIRED",sB:"RETRYABLE_ERROR",GZ:"SERVER_ERROR",JL:"SIGNATURE_EXPIRED",VK:"STOPPED_BY_ANOTHER_PLAYBACK",CV:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Fe:"STREAMING_NOT_ALLOWED",hL:"STREAM_LICENSE_NOT_FOUND",y9z:"TOO_MANY_REQUESTS", fVI:"TOO_MANY_REQUESTS_WITH_LINK",eIz:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Evc:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",r9T:"VIDEO_FORBIDDEN",T7m:"VIDEO_NOT_FOUND",l3:"BROWSER_OR_EXTENSION_ERROR"}; g.oj={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 ac;{var gb$=g.Vo();const p=gb$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!p||p.length<2)ac=void 0;else{var lM=gb$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);ac=lM&&lM.length===6?Number(lM[5].replace("_",".")):0}}var jk=ac,t5=jk>=0;g.yr=class extends zV{J(p,a,l,y,S){return super.J(p,a,l,y,S)}};var Ja={FAIRPLAY:"fairplay",PLAYREADY:"playready",WIDEVINE:"widevine",CLEARKEY:null,FLASHACCESS:null,UNKNOWN:null,WIDEVINE_CLASSIC:null};var ML=class{constructor(p=0,a=0,l="SPATIAL_AUDIO_TYPE_NONE",y=!1,S,n,V="AUDIO_QUALITY_UNKNOWN",Z=!1){this.sampleRate=p;this.numChannels=a;this.spatialAudioType=l;this.L=y;this.U=S;this.j=n;this.audioQuality=V;this.S=Z}isMultiChannelAudio(){return this.numChannels>2}};var y9={WIDTH:{name:"width",video:!0,valid:640,jT:99999},HEIGHT:{name:"height",video:!0,valid:360,jT:99999},FRAMERATE:{name:"framerate",video:!0,valid:30,jT:9999},BITRATE:{name:"bitrate",video:!0,valid:3E5,jT:2E9},EOTF:{name:"eotf",video:!0,valid:"bt709",jT:"catavision"},CHANNELS:{name:"channels",video:!1,valid:2,jT:99},CRYPTOBLOCKFORMAT:{name:"cryptoblockformat",video:!0,valid:"subsample",jT:"invalidformat"},DECODETOTEXTURE:{name:"decode-to-texture",video:!0,valid:"false",jT:"nope"},AV1_CODECS:{name:"codecs", video:!0,valid:"av01.0.05M.08",jT:"av99.0.05M.08"},EXPERIMENTAL:{name:"experimental",video:!0,valid:"allowed",jT:"invalid"},TUNNELMODE:{name:"tunnelmode",video:!0,valid:"true",jT:"false"}};var Ya$=["h","H"],qa$=["9","("],JRe=["9h","(h"],ff$=["8","*"],pUo=["a","A"],ajM=["o","O"],ljO=["m","M"],yCO=["mac3","MAC3"],S5h=["meac3","MEAC3"],r_o={h:Ya$,H:Ya$,["9"]:qa$,["("]:qa$,["9h"]:JRe,["(h"]:JRe,["8"]:ff$,["*"]:ff$,a:pUo,A:pUo,o:ajM,O:ajM,m:ljO,M:ljO,mac3:yCO,MAC3:yCO,meac3:S5h,MEAC3:S5h},n5o=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),WVv=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var Ry={["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"]:"("};var HsO={STEREO_LAYOUT_UNKNOWN:0,STEREO_LAYOUT_LEFT_RIGHT:1,STEREO_LAYOUT_TOP_BOTTOM:2};var Pj$={Xe:0,P3:124,xN:144,F2:220,CA:240,mW:340,h0:360,Nq:480,LV:588,YN:608,SH:720,UB:740,qq:1080,Of:1100,zt:1440,Vj:2160,jH: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.VIo={Ox:"auto",jc9:"tiny",Du:"light",zZ:"small",JC:"medium",Bu:"large",sL:"hd720",BE:"hd1080",Qs:"hd1440",Df:"hd2160",l9:"hd2880",vE:"highres",UNKNOWN:"unknown"};var rX,isE;g.f2={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320};rX={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"}; isE={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 dg="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");var bq=class{constructor(p,a,l,y,S,n,V,Z,z,d){this.width=p;this.height=a;this.U=Z;this.quality=n||rO(p,a);this.qualityOrdinal=g.f2[this.quality];this.fps=l||0;this.stereoLayout=!S||y!=null&&y!=="UNKNOWN"&&y!=="RECTANGULAR"?0:S;this.projectionType=y?y==="EQUIRECTANGULAR"&&S===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":y:"UNKNOWN";(p=V)||(l=g.f2[this.quality],l===0?p="Autom\u00e1tica":(p=this.projectionType,a=this.fps,p=l.toString()+(p==="EQUIRECTANGULAR"||p==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||p==="MESH"? "s":"p")+(a>55?"60":a>49?"50":a>39?"48":"")));this.qualityLabel=p;this.L=z||"";this.primaries=d||""}S(){return this.fps>32}isHdr(){return this.L==="smpte2084"||this.L==="arib-std-b67"}};var tn=class{constructor(p,a,l={}){this.id=p;this.mimeType=a;l.Sb>0||(l.Sb=16E3);Object.assign(this,l);[this.itag,this.S]=this.id.split(";");this.containerType=Te(a);this.mT=Ry[this.itag]||""}G(){return this.video}K(){return this.audio}bC(){return this.containerType===2}U(){return this.mT==="9"||this.mT==="("||this.mT==="9h"||this.mT==="(h"}L(){return this.mT==="1"||this.mT==="1h"||AL&&this.mT==="1e"}D(){return this.mT==="mac3"||this.mT==="meac3"||this.mT==="m"||this.mT==="i"||$cF(this)}isEncrypted(){return!!this.uf}Bi(){return!!this.audio}n1(){return!!this.video}j(){return this.mimeType=== "application/x-mpegURL"}},AL=!1;var SQM=class extends g.js{constructor(p,a,l,y){super();this.fh=p;this.start=a;this.end=l;this.isActive=y;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.H4={error:()=>{!this.nz()&&this.isActive&&this.publish("error",this)}, updateend:()=>{!this.nz()&&this.isActive&&this.publish("updateend",this)}}; this.fh.A4(this.H4);this.tB=this.isActive}appendBuffer(p,a,l){if(this.fh.SI()!==this.appendWindowStart+this.start||this.fh.f_()!==this.appendWindowEnd+this.start||this.fh.oo()!==this.timestampOffset+this.start)this.fh.supports(1),this.fh.yN(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.fh.Aw(this.timestampOffset+this.start);this.fh.appendBuffer(p,a,l)}abort(){this.fh.abort()}remove(p,a){this.fh.remove(p+this.start,a+this.start)}removeAll(){this.remove(this.appendWindowStart, this.appendWindowEnd)}clear(){this.fh.clear()}yN(p,a){this.appendWindowStart=p;this.appendWindowEnd=a}d0(){return this.timestampOffset+this.start}SI(){return this.appendWindowStart}f_(){return this.appendWindowEnd}Aw(p){this.timestampOffset=p}oo(){return this.timestampOffset}gP(p=!1){p=this.fh.gP(p);return kG(p,this.start,this.end)}QP(){return this.fh.QP()}G5(){return this.fh.G5()}XT(){return this.fh.XT()}zX(){return this.fh.zX()}Rz(){this.fh.Rz()}M$(p){return this.fh.M$(p)}eh(){return this.fh.eh()}gQ(){return this.fh.gQ()}mL(p, a,l){this.fh.mL(p,a,l)}NL(p,a,l){this.fh.NL(p,a,l)}D8(p,a){return this.fh.D8(p,a)}supports(p){return this.fh.supports(p)}Qz(){return this.fh.Qz()}isView(){return!0}bu(){return this.fh.bu()?this.isActive:!1}isLocked(){return this.tB&&!this.isActive}mS(p){p=this.fh.mS(p);p.vw=`${this.start}-${this.end}`;return p}B6(){return this.fh.B6()}d6(){return this.fh.d6()}jY(){return this.fh.jY()}fz(){this.fh.zA(this.H4);super.fz()}};var LC=!1;var IIq=class extends g.js{constructor(p,a,l,y,S,n){super();this.Jg=p;this.t5=a;this.id=l;this.containerType=y;this.mT=S;this.n1=n;this.yH=this.LP=this.Fz=null;this.Hb=!1;this.appendWindowStart=this.timestampOffset=0;this.KF=Or([],[]);this.A7=!1;this.Yl=[];this.lP=la?[]:void 0;this.handler=V=>this.publish(V.type,this); this.Jg?.addEventListener&&(this.Jg.addEventListener("updateend",this.handler),this.Jg.addEventListener("error",this.handler))}appendBuffer(p,a,l){this.A7=!1;l&&(this.LP=l);p.length&&(this.Jg?.appendBuffer?this.Jg.appendBuffer(p):this.Jg?this.Jg.append(p):this.t5&&this.t5.webkitSourceAppend(this.id,p));a&&(a.isEncrypted()&&(this.yH=this.LP),a.type===3&&(this.Fz=a),this.Yl.push(a.HZ()),this.Yl.length>4&&this.Yl.shift());this.lP&&(this.lP.length>=2||p.length>1048576?delete this.lP:this.lP.push(p))}abort(){try{this.Jg? this.Jg.abort():this.t5&&this.t5.webkitSourceAbort(this.id)}catch(a){if(YGh){var p=new g.Qm(`Error while abort the source buffer: ${a.name}, ${a.message}`);g.MD(p)}}this.LP=this.Fz=null}remove(p,a,l){this.A7=!1;this.Jg?.remove&&(l&&l({b:Bt(this.gP()),s:p,e:a}),this.Jg.remove(p,a))}removeAll(){this.remove(this.SI(),this.f_())}clear(){this.XT()||(this.abort(),this.removeAll(),this.yH=this.LP=this.Fz=null,this.appendWindowStart=this.timestampOffset=0,this.KF=Or([],[]),this.A7=!1,this.lP=la?[]:void 0, this.Hb=!0)}SI(){return LC&&this.n1?this.appendWindowStart:this.Jg?.appendWindowStart||0}f_(){return this.Jg?.appendWindowEnd||0}yN(p,a){this.Jg&&(LC&&this.n1?(this.appendWindowStart=p,this.Jg.appendWindowEnd=a):p>this.SI()?(this.Jg.appendWindowEnd=a,this.Jg.appendWindowStart=p):(this.Jg.appendWindowStart=p,this.Jg.appendWindowEnd=a))}d0(){return this.timestampOffset}Aw(p){LC?this.timestampOffset=p:this.supports(1)&&(this.Jg.timestampOffset=p)}oo(){return LC?this.timestampOffset:this.supports(1)? this.Jg.timestampOffset:0}gP(p=!1){if(p)return this.A7||this.QP()||(this.KF=this.gP(!1),this.A7=!0),this.KF;try{return this.Jg?this.Jg.buffered:this.t5?this.t5.webkitSourceBuffered(this.id):Or([0],[Infinity])}catch(a){return Or([],[])}}QP(){return this.Jg?.updating||!1}XT(){return this.Hb}zX(){return!this.Hb&&this.QP()}Rz(){this.Hb=!1}M$(p){const a=p?.mT;p=p?.containerType;return!a&&!p||a===this.mT&&p===this.containerType}eh(){return this.LP}gQ(){return this.yH}D8(p,a){return this.containerType!== p||this.mT!==a}mL(p,a,l){if(this.containerType!==p||l&&this.D8(p,l))this.supports(4),i8()&&this.Jg.changeType(a),l&&(this.mT=l);this.containerType=p}NL(p,a,l){this.containerType&&this.D8(p,a)&&i8()&&this.Jg.changeType(l);this.containerType=p;this.mT=a}Qz(){return this.Fz}isView(){return!1}supports(p){switch(p){case 1:return this.Jg?.timestampOffset!==void 0;case 0:return!!this.Jg?.appendBuffer;case 2:return!!this.Jg?.remove;case 3:return!(!this.Jg?.addEventListener||!this.Jg?.removeEventListener); case 4:return!(!this.Jg||!this.Jg.changeType);default:return!1}}bu(){return!this.QP()}isLocked(){return!1}mS(p){p.to=this.oo();p.up=this.QP();p.aw=`${(this.Jg?.appendWindowStart||0).toFixed(3)}-${(this.Jg?.appendWindowEnd||Infinity).toFixed(3)}`;return p}G5(){return this.Jg?.writeHead||0}B6(){const p={};for(let a=0;a{}); this.L?.clear();this.S?.clear()}UO(){this.L?.Rz();this.S?.Rz();this.G=!1}XT(){return this.S?.XT()||this.L?.XT()}M$(p,a){return!!this.L&&!!this.S&&this.L.M$(a)&&this.S.M$(p)}Ws(){return!!this.Kz&&this.Kz.streaming===!1}},uN=!1;var z0=class{constructor(){this.ZD=this.Dw=dXM;this.promise=new g.AU((p,a)=>{this.Dw=p;this.ZD=a})}then(p,a){return this.promise.then(p,a)}resolve(p){this.Dw(p)}reject(p){this.ZD(p)}};var Zdv=class extends g.YB{constructor(){super();this.oE=!1;this.gG=null;this.E6=this.Ps=!1;this.Ws=new g.lH;this.iT=this.Lz=null;g.H(this,this.Ws)}QY(){return this.gG}activate(p){let a="";p&&(Dz(this,p),a=p.gG);if(!this.jE()||a)a&&this.jE()!==a&&(this.Tm(a),delete this.S,this.j&&(this.j.reject(),delete this.j),!window.MediaSource&&window.ManagedMediaSource&&this.dG(!!p?.U())),p&&p.L||this.load(),this.E6||(this.addEventListener("volumechange",this.Ba),this.E6=!0)}mK(p,a){if(this.S)if(aG&&this.S.D()&& !this.S.M$(p,a))Of(this,{l:"megms",sr:this.Lz?.Gp()}),Nur(this),this.stopVideo();else return this.Kz=this.S,this.S=void 0,this.Kz;p=window.MediaSource?new n2(this,new window.MediaSource,!1):window.ManagedMediaSource?new n2(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new n2(this,new window.WebKitMediaSource,!1):new n2(this,void 0,!1);this.activate(p.j);this.Kz=p;this.oE=!1;return p}Ro(p){this.S=p}playVideo(){this.isEnded()&&this.seekTo(0);!this.jE()&&this.gG&&(g.MD(Error("playVideo without src")), this.Tm(this.gG.gG),this.gG.L||this.load());const p=this.play();this.Lz?.Si()||t5&&(jk||0)>=7&&(!p||this.Lz?.A("mweb_ios_allow_playback_workaround_when_ready"))&&SqM(this,()=>{g.jQ(()=>{CTM(this,this.getCurrentTime(),0)},500)}); return p}seekTo(p){this.U()>0&&(t5&&jk<4&&(p=Math.max(.1,p)),this.setCurrentTime(p))}Os(){if(!this.S&&this.Kz)if(this.Kz.G)try{Of(this,{l:"mer",sr:this.Lz?.Gp(),rs:this.Kz.U()}),this.Kz.clear(),this.Ro(this.Kz),this.Kz=void 0}catch(p){const a=new g.Qm(`Error while clearing Media Source in MediaElement: ${p.name}, ${p.message}`);g.MD(a);this.stopVideo()}else this.stopVideo()}stopVideo(){if(!this.S)if(this.Kz?.UO(),pE){if(!this.j){var p=new z0;p.then(void 0,()=>{}); this.j=p;g7F&&this.pause();g.jQ(()=>{this.j===p&&(AX(this),p.resolve())},200)}}else AX(this)}R1(){const p=this.xo(); return $7(p)&&this.getDuration()?ab(p,this.getCurrentTime()):0}WH(){const p=this.getDuration();return p===Infinity?1:p?this.R1()/p:0}mS(){try{const p=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Bt(this.D(),",",3),vbu:Bt(this.xo()),vbs:Bt(this.K()),vpa:`${+this.isPaused()}`,vsk:`${+this.isSeeking()}`,ven:`${+this.isEnded()}`,vpr:`${this.getPlaybackRate()}`,vrs:`${this.U()}`,vns:`${this.Rc()}`,vec:`${this.Zd()}`,vemsg:this.yh(),vvol:`${this.getVolume()}`, vdom:`${+this.Lx()}`,vsrc:`${+!!this.jE()}`,vw:`${p.width}`,vh:`${p.height}`}}catch{return{}}}hasError(){return this.Zd()>0}addEventListener(p,a){this.Ws.listen(p,a,!1,this);this.Fu(p)}removeEventListener(p,a){this.Ws.Kt(p,a,!1,this)}dispatchEvent(p){if(this.j&&p.type==="pause")return!1;if(aG){var a=p.L?.timeStamp||Infinity;a=a>performance.now()?a-Date.now()+performance.now():a;const l=this.S||this.Kz;if(l?.XT()||a<=(l?.K||0))return Of(this,{l:"mede",sr:this.Lz?.Gp(),et:p.type}),!1;if(this.oE)return Of(this, {l:"medes",et:p.type}),l&&p.type==="seeking"&&(l.K=performance.now(),this.oE=!1),!1}return this.Ws.dispatchEvent(p)}NO(){this.Ps=!1}VY(){this.Ps=!0;this.C(!0)}Ba(){this.Ps&&!this.Hs()&&this.C(!0)}equals(p){return!!p&&p.Wa()===this.Wa()}fz(){this.E6&&this.removeEventListener("volumechange",this.Ba);pE&&AX(this);super.fz()}},pE=!1,g7F=!1,aG=!1,$9o=!1;var n4;g.bB=class{constructor(p,a=null,l=null){this.Kq=a;this.seekSource=l;this.state=p||64}L(p){return!!(this.state&p)}isPaused(){return this.L(4)}isPlaying(){return this.L(8)&&!this.L(512)&&!this.L(64)&&!this.L(2)}isOrWillBePlaying(){return this.L(8)&&!this.L(2)&&!this.L(1024)}S(){return this.state===8}isCued(){return this.L(64)&&!this.L(8)&&!this.L(4)}isBuffering(){return this.L(1)&&!this.L(2)}isError(){return this.L(128)}isSuspended(){return this.L(512)}Zv(){return this.L(64)&&this.L(4)}toString(){return`PSt.${this.state.toString(16)}`}}; n4={BUFFERING:"buffering-mode",CUED:"cued-mode",ENDED:"ended-mode",PAUSED:"paused-mode",PLAYING:"playing-mode",SEEKING:"seeking-mode",UNSTARTED:"unstarted-mode"};var o5M=class extends g.YB{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v){super();this.uW=p;this.slot=a;this.layout=l;this.uT=y;this.Gn=S;this.MO=n;this.sO=V;this.sC=Z;this.uM=z;this.gA=d;this.position=G;this.D=B;this.EO=c;this.xp=w;this.zp=X;this.context=v;this.Vh=!0;this.X=!1;this.Fh="not_rendering";this.S=!1;this.U=new p4;p=this.layout.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(l.Xh,this.uT,p,l.layoutId);p=lp(this)?.progressCommands||[];this.j=new eXE(z,p,l.layoutId,()=> this.ND()); this.L=new hXM({adCpn:this.layout.layoutId,FG:v.FG,ZX:this.xp,n1:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}z4(){return this.U}qc(){return this.slot}ZV(){return this.layout}init(){var p=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),a=this.layout.clientMetadata.t9("metadata_type_active_view_traffic_type");uJ(this.layout.Xh)&&sK(this.Gn.get(),this.layout.layoutId,{N8:a,HT:p,listener:this,k$:this.vX()});CH(this.uT.get(),this);p=this.zp;a=this.layout.layoutId;var l={k$:this.vX()}; p.L.set(a,l);this.qf()}Bt(){}release(){uJ(this.layout.Xh)&&UD(this.Gn.get(),this.layout.layoutId);Wx(this.uT.get(),this);this.zp.L.delete(this.layout.layoutId);this.tH()}sD(){}a6(){}startRendering(p){YV(RZ(this));if(Um(this,p)){var a=this.L;GY(a.params.FG.EO.get(),!0)&&qs$(a,"p_sr",{});M6(this);this.I8(p);this.vX()||this.fG(!1)}}VQ(p,a){a.layoutId===this.layout.layoutId&&(this.Fh="rendering",this.S=this.sO.get().isMuted()||this.sO.get().getVolume()===0,this.O6("impression"),this.O6("start"),this.sO.get().isMuted()&& (aB(this,"mute"),p=lp(this)?.muteCommands||[],rq(this.uM.get(),p,this.layout.layoutId)),this.sO.get().isFullscreen()&&(this.Fb("fullscreen"),p=lp(this)?.fullscreenCommands||[],rq(this.uM.get(),p,this.layout.layoutId)),this.vX()||(p=this.sC.get(),p.U&&!p.S&&(p.X=!1,p.S=!0,p.actionType!=="ad_to_video"&&(Jl("pbs",void 0,p.actionType),g.nU("finalize_all_timelines")&&tq(p.actionType)))),this.gA(1),this.FM(a),a=lp(this)?.impressionCommands||[],rq(this.uM.get(),a,this.layout.layoutId))}oZ(p,a,l){this.G= {hY:3,s4:p==="load_timeout"?402:400,errorMessage:a.message};this.O6("error");p=lp(this)?.errorCommands||[];rq(this.uM.get(),p,this.layout.layoutId);this.vX()||this.uW.N2(this.slot,this.layout,a,l)}o8(p,a=!1){if(this.Fh==="rendering"){var l={currentTimeSec:p,flush:a};RL(this.L,"p_ip",l);dj(this.xv,p*1E3,a);iOe(this,p*1E3,a);var y=this.ND();if(y){y/=1E3;if(p>=y*.25||a)this.O6("first_quartile"),RL(this.L,"p_fq",l);if(p>=y*.5||a)this.O6("midpoint"),RL(this.L,"p_sq",l);if(p>=y*.75||a)this.O6("third_quartile"), RL(this.L,"p_tq",l);this.EO.get().B.O().experiments.Cz("enable_progress_command_flush_on_kabuki")?jD(this.j,p*1E3,a):jD(this.j,p*1E3,qAA(this)?a:!1)}}}X_(){return H8(this.MO.get(),1)?.clientPlaybackNonce||""}xk(p,a){p.layoutId!==this.layout.layoutId?this.uW.N2(this.slot,p,new s2("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"): a()}lr(p,a,l){if(a.layoutId===this.layout.layoutId)switch(this.Fh="not_rendering",this.layoutExitReason=void 0,this.vX()||(p=l!=="normal"||this.position+1===this.D)&&this.fG(p),this.Lf(l),this.gA(0),l){case "abandoned":ph(this.xv,"impression")&&(l=lp(this)?.abandonCommands||[],rq(this.uM.get(),l,this.layout.layoutId));break;case "normal":l=lp(this)?.completeCommands||[];rq(this.uM.get(),l,this.layout.layoutId);break;case "skipped":l=lp(this)?.skipCommands||[],rq(this.uM.get(),l,this.layout.layoutId)}}Y8(){return this.layout.layoutId}Km(){return this.G}L6(){if(this.Fh=== "rendering"){this.xv.O6("active_view_measurable");var p=lp(this)?.activeViewMeasurableCommands||[];rq(this.uM.get(),p,this.layout.layoutId)}}Yt(){if(this.Fh==="rendering"){this.xv.O6("active_view_fully_viewable_audible_half_duration");var p=lp(this)?.activeViewFullyViewableAudibleHalfDurationCommands||[];rq(this.uM.get(),p,this.layout.layoutId)}}S_(){if(this.Fh==="rendering"){this.xv.O6("active_view_viewable");var p=lp(this)?.activeViewViewableCommands||[];rq(this.uM.get(),p,this.layout.layoutId)}}m6(){if(this.Fh=== "rendering"){this.xv.O6("audio_audible");var p=lp(this)?.activeViewAudioAudibleCommands||[];rq(this.uM.get(),p,this.layout.layoutId)}}N$(){if(this.Fh==="rendering"){this.xv.O6("audio_measurable");var p=lp(this)?.activeViewAudioMeasurableCommands||[];rq(this.uM.get(),p,this.layout.layoutId)}}fG(p){this.sC.get().fG(this.layout.clientMetadata.t9("metadata_type_ad_placement_config").kind,p,this.position,this.D,!1)}onFullscreenToggled(p){this.Fh==="rendering"&&(p?(this.Fb("fullscreen"),p=lp(this)?.fullscreenCommands|| [],rq(this.uM.get(),p,this.layout.layoutId)):(this.Fb("end_fullscreen"),p=lp(this)?.endFullscreenCommands||[],rq(this.uM.get(),p,this.layout.layoutId)))}onVolumeChange(){if(this.Fh==="rendering")if(this.sO.get().isMuted()){aB(this,"mute");var p=lp(this)?.muteCommands||[];rq(this.uM.get(),p,this.layout.layoutId)}else aB(this,"unmute"),p=lp(this)?.unmuteCommands||[],rq(this.uM.get(),p,this.layout.layoutId)}lN(){}zM(){}SR(){}qb(){}PG(){}Fb(p){this.xv.Fb(p,!this.S)}O6(p){this.xv.O6(p,!this.S)}vX(){const p= this.slot.clientMetadata.t9("metadata_type_eligible_for_ssap");return p===void 0?(Q("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.EO.get().vX(p)}};var zuF=class extends o5M{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v,I,u){super(p,a,l,y,S,n,V,Z,d,G,c,w,X,v,I,u);this.F7=z;this.xS=B;this.hA=!0;this.dg=this.bX=0;this.GV=vj(()=>{QVO(RZ(this));this.uW.VQ(this.slot,this.layout)}); this.aL=vj(()=>{wrr(RZ(this));this.Fh!=="rendering_stop_requested"&&this.xS(this);this.layoutExitReason?this.uW.lr(this.slot,this.layout,this.layoutExitReason):pth(this)}); this.timer=new g.Oy(200);this.timer.listen("tick",()=>{this.rq()}); g.H(this,this.timer)}qf(){}tH(){var p=this.uT.get();p.m$===this&&(p.m$=null);this.timer.stop()}sD(){this.timer.stop();z1A(this)}a6(){W1(this);zCM(this)}ND(){return this.ZV().clientMetadata.t9("METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}NT(){return this.bX/1E3}Lh(p,a){this.xk(p,()=>{this.Fh!=="rendering_stop_requested"&&(this.Fh="rendering_stop_requested",this.layoutExitReason=a,IB(this,a),this.timer.stop())})}rq(){const p=Date.now(),a=p-this.dg; this.dg=p;this.bX+=a;this.bX>=this.ND()?this.DQ():(this.o8(this.bX/1E3),gq(this,this.bX))}Lf(){}r4(){}},zBA=class extends zuF{constructor(p){super(p.uW,p.slot,p.Dg,p.uT,p.Gn,p.MO,p.sO,p.sC,p.F7,p.uM,p.gA,p.xS,p.D_,p.yE,p.EO,p.xp,p.zp,p.context)}pv(p){if(this.Fh!=="not_rendering"){p=Iv(this,p);var a=this.sO.get().getPresentingPlayerType()===2;this.Fh==="rendering_start_requested"?a&&uG(p)&&this.GV():a?p.j5(2)?Q("Receive player ended event during MediaBreak",this.qc(),this.ZV()):aj(this,p):this.ye()}}I8(){bt(this); gh(this.sO.get());this.uT.get().m$=this;UV("pbp")||UV("pbs")||Jl("pbp");UV("pbp","watch")||UV("pbs","watch")||Jl("pbp",void 0,"watch");this.GV()}FM(p){this.sC.get();var a=p.clientMetadata.t9("metadata_type_ad_placement_config").kind,l=this.position===0;p=p.clientMetadata.t9("metadata_type_linked_in_player_layout_type");p={adBreakType:vA(a),adType:QKF(p)};let y=void 0;l?a!=="AD_PLACEMENT_KIND_START"&&(y="video_to_ad"):y="ad_to_ad";KU("ad_mbs",void 0,y);g.ew(p,y);W1(this)}ye(){this.aL()}DQ(){p5M(this); this.aL()}},dBO=class extends zuF{constructor(p){super(p.uW,p.slot,p.Dg,p.uT,p.Gn,p.MO,p.sO,p.sC,p.F7,p.uM,p.gA,p.xS,p.D_,p.yE,p.EO,p.xp,p.zp,p.context)}pv(p){this.Fh!=="not_rendering"&&(p=Iv(this,p),aj(this,p))}I8(){Q("Not used in SSAP")}FM(){W1(this)}ye(){Q("Not used in SSAP")}DQ(){p5M(this);this.uW.QV(this.qc(),this.ZV(),"normal")}},ovA=class extends dBO{Lh(p,a){this.xk(p,()=>{mj(this.U,a)&&(this.Fh="rendering_stop_requested",this.layoutExitReason=a,IB(this,a),this.timer.stop())})}startRendering(p){YV(RZ(this)); Um(this,p)&&(M6(this),this.uT.get().m$=this)}};var yu=class extends o5M{constructor(p){super(p.callback,p.slot,p.Dg,p.uT,p.Gn,p.MO,p.sO,p.sC,p.uM,p.gA,p.D_,p.yE,p.EO,p.xp,p.zp,p.context);this.adCpn="";this.yA=this.cJ=0;this.GV=vj(()=>{QVO(RZ(this));this.uW.VQ(this.slot,this.layout)}); this.aL=vj(()=>{wrr(RZ(this));this.Fh!=="rendering_stop_requested"&&this.xS(this);this.layoutExitReason?this.uW.lr(this.slot,this.layout,this.layoutExitReason):pth(this)}); this.oM=p.oM;this.QL=p.QL;this.BZ=p.BZ;this.F7=p.F7;this.MA=p.MA;this.xS=p.xS;if(!this.vX()){dp(this.EO.get(),"html5_disable_media_load_timeout")||(this.De=new g.SF(()=>{this.oZ("load_timeout",new s2("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); p=n_(this.EO.get());var a=JV(this.EO.get());p&&a&&(this.ij=new g.SF(()=>{const l=this.layout.clientMetadata.t9("metadata_type_preload_player_vars");l&&this.QL.get().B.preloadVideoByPlayerVars(l,2,300)}))}}ye(){this.aL()}pv(p){if(this.Fh!=="not_rendering"){p=Iv(this,p); var a=this.sO.get().getPresentingPlayerType()===2;this.Fh==="rendering_start_requested"?a&&uG(p)&&this.GV():!a||p.j5(2)?this.aL():aj(this,p)}}qf(){this.ZV().clientMetadata.t9("metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=this.ZV().clientMetadata.t9("metadata_type_shrunken_player_bytes_config")}tH(){this.ZV().clientMetadata.t9("metadata_type_player_bytes_callback_ref").current=null;if(this.fq){var p=this.context.FG,a=this.fq,l=this.ZV().layoutId;GY(p.EO.get(), !0)&&p.eb("mccru",{cid:a,p_ac:l});this.BZ.get().removeCueRange(this.fq)}this.fq=void 0;this.De?.dispose();this.ij&&this.ij.dispose()}I8(p){const a=n_(this.EO.get());var l=JV(this.EO.get());if(a&&l&&!this.vX()){l=p.clientMetadata.t9("metadata_type_preload_player_vars");var y=this.EO.get();y=g.ak(y.B.O().experiments,"html5_preload_wait_time_secs");l&&this.ij&&this.ij.start(y*1E3)}tCO(this,p);bt(this);a?(l=this.QL.get(),p=p.clientMetadata.t9("metadata_type_player_vars"),l.B.loadVideoByPlayerVars(p,!1, 2)):FD(this.QL.get(),p.clientMetadata.t9("metadata_type_player_vars"));this.De?.start();a||this.QL.get().B.playVideo(2)}FM(){this.De?.stop();this.gg();(this.adCpn=H8(this.MO.get(),2)?.clientPlaybackNonce||"")||Q("Media layout confirmed started, but ad CPN not set.");wh(this.F7.get(),"onAdStart",this.adCpn);this.cJ=Date.now()}ND(){return H8(this.MO.get(),2)?.kJ}zU(){this.xv.Fb("clickthrough")}Lh(p,a){this.xk(p,()=>{this.Fh!=="rendering_stop_requested"&&(this.Fh="rendering_stop_requested",this.layoutExitReason= a,IB(this,a),this.De?.stop(),this.ij&&this.ij.stop(),Pne(this))})}onCueRangeEnter(p){if(p!==this.fq)Q("Received CueRangeEnter signal for unknown layout.",this.qc(),this.ZV(),{cueRangeId:p}); else{var a=this.context.FG,l=this.ZV().layoutId;GY(a.EO.get(),!0)&&a.eb("mccre",{cid:p,p_ac:l});this.BZ.get().removeCueRange(this.fq);this.fq=void 0;dp(this.context.EO.get(),"html5_ssap_flush_at_stop_rendering")&&this.vX()||(p=this.ZV().clientMetadata.t9("metadata_type_video_length_seconds"),this.o8(p,!0),this.O6("complete"))}}Lf(p){p!=="abandoned"&&wh(this.F7.get(),"onAdComplete");wh(this.F7.get(),"onAdEnd",this.adCpn)}gg(){this.fq=`${"adcompletioncuerange"}:${this.ZV().layoutId}`;this.BZ.get().addCueRange(this.fq, 0x7ffffffffffff,0x8000000000000,!1,this,2,2);var p=this.context.FG,a=this.fq,l=this.ZV().layoutId;GY(p.EO.get(),!0)&&p.eb("mccr",{cid:a,p_ac:l})}onCueRangeExit(){}r4(p){this.Fh==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&p>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.sO.get().CE(!0),this.o8(p))}o8(p,a=!1){super.o8(p,a);a=Date.now()-this.cJ;const l=p*1E3,y={contentCpn:this.X_(),adCpn:H8(this.MO.get(),2)?.clientPlaybackNonce|| ""};if(p-this.yA>=5){const S=a{if(mj(this.U,a)){this.Fh="rendering_stop_requested";this.layoutExitReason=a;IB(this,a);if(dp(this.context.EO.get(),"html5_ssap_flush_at_stop_rendering")&&a==="normal"){const l=this.ZV().clientMetadata.t9("metadata_type_video_length_seconds");this.o8(l,!0)}Pne(this)}})}startRendering(p){YV(RZ(this)); Um(this,p)&&(M6(this),tCO(this,p))}};var R9A=class extends g.YB{constructor(p,a,l,y,S,n,V,Z,z,d,G,B){super();this.OD=p;this.slot=a;this.layout=l;this.vy=y;this.HX=S;this.MO=n;this.gq=V;this.QL=Z;this.Lt=z;this.sO=d;this.params=B;this.Vh=!0;p=JD(G);if(!p)throw Error("Invalid params for sublayout");this.Ct=p}init(){const p=this.layout.clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.MO.get().addListener(this);this.Ct.init();oz([this.layout],this.MO.get());this.vV()}vV(){var p=this.Ct.ZV().clientMetadata.t9("metadata_type_player_vars"); p?this.QL.get().addPlayerResponseForAssociation({playerVars:p}):(p=h_F(this.Ct.ZV()),this.QL.get().addPlayerResponseForAssociation({sA:p}))}Nm(){}qc(){return this.slot}ZV(){return this.layout}sD(){this.Ct.sD()}a6(){this.Ct.a6()}EZ(){Q("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter. Skip should be handled by Triggers")}VQ(p,a){this.Ct.VQ(p,a)}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}r4(p){this.Ct.r4(p)}onFullscreenToggled(p){this.Ct.onFullscreenToggled(p)}lN(p){this.Ct.lN(p)}SR(p){this.Ct.SR(p)}onVolumeChange(){this.Ct.onVolumeChange()}qb(){}PG(){}zM(){}P6(){return this.sO.get().getPresentingPlayerType()=== 2}uF(p){$Tq({cpn:p,Lv:this.MO.get(),Lg:!0});this.layout.layoutId===p&&(jae(this.vy,this.slot.slotId),this.OD.VQ(this.slot,this.layout))}startRendering(p){if(p.layoutId!==this.layout.layoutId)return void Q("wrong layout");this.sO.get().addListener(this);If(this.Lt(),this);this.Ct.startRendering(this.layout)}pv(p){this.Ct.pv(p)}lr(p,a,l){this.Ct.lr(p,a,l)}release(){this.MO.get().removeListener(this);this.Ct.release();U1f();Cx(this.Lt(),this)}Mj(){return dp(this.params.context.EO.get(),"html5_ssap_exit_without_waiting_for_transition")}Lh(p, a){const l=()=>{dp(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(a)||Q("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:a}))}; p.layoutId!==this.layout.layoutId?Q("wrong layout"):this.Mj()&&this.Ct.z4().currentState>=2||(this.Ct.Lh(this.layout,a),p=dp(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&a==="abandoned",this.P6()&&!p&&(l(),this.gq.get().finishSegmentByCpn(this.layout.layoutId,H8(this.MO.get(),1).clientPlaybackNonce,Th(a,this.params.context.EO))),this.sO.get().removeListener(this),this.Mj()&&V1(this.Ct.z4())&&this.OD.lr(this.slot,this.layout,this.Ct.z4().L))}Gz(p,a,l){PSh({cpn:p,Lv:this.MO.get(), Lg:!0});this.ZV().layoutId!==p||dp(this.params.context.EO.get(),"html5_ssap_pass_transition_reason")&&l===5||(this.Ct.z4().currentState<2&&(p=wb(l,this.params.context.EO),p==="error"?this.OD.N2(this.slot,this.layout,new s2("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:l},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):qr(this.HX,this.layout,p)),dp(this.params.context.EO.get(), "html5_ssap_exit_without_waiting_for_transition")||this.OD.lr(this.slot,this.layout,this.Ct.z4().L))}};var Biv=class{constructor(){this.L=1;this.S=new p4}},cCr=class extends g.YB{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w){super();this.callback=p;this.MO=a;this.gq=l;this.QL=y;this.sO=S;this.EY=n;this.sC=V;this.v1=Z;this.slot=z;this.layout=d;this.vy=G;this.Id=B;this.Lt=c;this.EO=w;this.Vh=!0;this.sI=!1;this.VT=[];this.yv=-1;this.Od=!1;this.yp=new Biv}qc(){return this.slot}ZV(){return this.layout}Nm(){}Vr(){return this.VT[this.yv]}HW(){return this.yv}sD(p,a){const l=this.Vr();a.layoutId!==lk(l,p,a)?Q("pauseLayout for a PlayerBytes layout that is not currently active", p,a):l.sD()}a6(p,a){const l=this.Vr();a.layoutId!==lk(l,p,a)?Q("resumeLayout for a PlayerBytes layout that is not currently active",p,a):l.a6()}EZ(p,a){const l=this.Vr();k9Z(this,p,a);kLr(l,p,a)&&this.U8(l.qc(),l.ZV(),"skipped")}iF(p,a){const l=this.Vr();QqM(this);Km(l,p,a)&&(p=dEh(this,l,p,a),p!==void 0&&(this.vX()?Q("Should not happen. Should delete"):iDr(this,l.qc(),l.ZV(),p)))}E_(p,a){var l={...Mb(this),layoutId:a.layoutId};const y=l.layoutId;l.k$&&md(l.Lv,"wrse",{ec:y,is:l.Lg,ctp:tu(y)});LO(this.v1, p,a)}VQ(p,a){this.Vr()?.VQ(p,a)}lr(p,a,l){a.layoutId===this.ZV().layoutId&&(this.sI=!1,Cx(this.Lt(),this));this.Vr()?.lr(p,a,l)}r4(p){this.Vr()?.r4(p)}rQ(p,a,l){this.HW()===-1&&(this.callback.VQ(this.slot,this.layout),this.yv++);const y=this.Vr();y?(y.oZ(p,a,l),this.vX()&&this.callback.N2(this.slot,this.layout,a,l)):Q("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.HW()),layoutId:this.ZV().layoutId})}onFullscreenToggled(p){this.Vr()?.onFullscreenToggled(p)}lN(p){this.Vr()?.lN(p)}SR(p){this.Vr()?.SR(p)}onVolumeChange(){this.Vr()?.onVolumeChange()}YF(p, a,l){eK(this.v1,p,a,l)}G0(p){p.startRendering(p.ZV())}init(){var p=this.ZV().clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);if(this.VT.length<1)throw new N("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.VT.length)});if(p=this.ZV().clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref"))p.current=this;for(var a of this.VT)a.init(),chZ(this.v1,this.slot,a.ZV()),GLA(this.v1,this.slot,a.ZV()); if(this.vX()){this.MO.get().addListener(this);oz(T3(this),this.MO.get());a=T3(this);for(const l of a)this.vV(l)}}vV(p){const a=p.clientMetadata.t9("metadata_type_player_vars");a?(p.layoutType!=="LAYOUT_TYPE_MEDIA"&&Q("Non-video ad contains playerVars",this.slot,p),this.QL.get().addPlayerResponseForAssociation({playerVars:a})):(p=h_F(p),this.QL.get().addPlayerResponseForAssociation({sA:p}))}release(){var p=this.ZV().clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current= null);if(p=this.ZV().clientMetadata.t9("metadata_type_ad_pod_skip_target_callback_ref"))p.current=null;for(const y of this.VT){p=this.v1;var a=this.slot,l=y.ZV();for(const S of p.S)S.Y3(a,l);y.release()}this.vX()&&(this.MO.get().removeListener(this),U1f())}xk(p){return p.layoutId!==this.ZV().layoutId?(this.callback.N2(this.qc(),p,new s2("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.ZV().layoutId}`+`and LayoutType: ${this.ZV().layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"), "ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}m3(){this.sO.get().addListener(this);If(this.Lt(),this)}pv(p){if(p.state.isError())this.rQ(p.state.Kq?.errorCode,new s2("There was a player error during this media layout.",{playerErrorCode:p.state.Kq?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var a=this.Vr();a&&a.pv(p)}}vX(){const p=this.qc().clientMetadata.t9("metadata_type_eligible_for_ssap");return p===void 0?(Q("Expected SSAP eligibility in PlayerBytes slots", this.qc(),this.ZV()),!1):this.EO.get().vX(p)}zM(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}qb(){}PG(){}},atA=class extends cCr{constructor(p){super(p.OD,p.MO,p.gq,p.QL,p.sO,p.EY,p.sC,p.v1,p.slot,p.layout,p.vy,p.Id,p.Lt,p.EO)}Wg(p,a,l){this.U8(p,a,l)}dn(p,a){this.U8(p,a,"error")}U8(p,a,l){w3f(this,p,a,l,()=>{Fl(this,this.HW()+1)})}startRendering(p){this.xk(p)&&(this.m3(),$zh(this.sC.get()),OfA(this.EO.get())||gh(this.sO.get()),this.HW()===-1&&Fl(this,this.HW()+1))}Lh(p,a){this.sI= !0; this.HW()===this.VT.length?this.callback.lr(this.slot,this.layout,a):(p=this.Vr(),p.Lh(p.ZV(),a),this.ZQ=()=>{this.callback.lr(this.slot,this.layout,a)}); this.sO.get().B.Hx();FD(this.QL.get(),{});p=N1(this.sO.get(),1);p.isPaused()&&!p.L(2)&&this.sO.get().playVideo();this.sO.get().removeListener(this);this.sI&&GYe(this)}Gz(){}uF(){}QV(){}},p8M=class extends cCr{constructor(p){super(p.OD,p.MO,p.gq,p.QL,p.sO,p.EY,p.sC,p.v1,p.slot,p.layout,p.vy,p.Id,p.Lt,p.EO);this.uC=void 0}Wg(p,a,l){p={...Mb(this),layoutId:a.layoutId,layoutExitReason:l};a=p.layoutId;md(p.Lv,"prse",{xc:a,ler:p.layoutExitReason,ctp:tu(a)})}dn(){Q("onSubLayoutError in SSAP")}U8(){Q("exitSubLayoutAndPlayNext in SSAP")}Vr(){return this.uC}HW(){return this.VT.findIndex(p=> p.ZV().layoutId===this.uC?.ZV().layoutId)}G0(p){Uq(this.uC===void 0,"replacing another adapter"); this.uC=p;p.startRendering(p.ZV())}YF(p,a,l){eK(this.v1,p,a,l);(()=>Uq(a.layoutId===this.uC?.ZV().layoutId,"currentAdapter does not match exiting layout",{slot:p?`slot: ${""} ${p.slotType}`:"",subLayout:BL(a)}))()&&(this.uC=void 0)}release(){super.release(); Uq(this.uC===void 0,"currentAdapter is still active during release");this.uC=void 0}P6(){return this.sO.get().getPresentingPlayerType()===2}Lh(p,a){function l(){if(this.uC){var n=this.uC;n.z4().currentState<2&&n.Lh(n.ZV(),a);n=iU(this)&&a==="abandoned";this.P6()&&!n&&(S.call(this),this.gq.get().finishSegmentByCpn(this.uC.ZV().layoutId,H8(this.MO.get(),1).clientPlaybackNonce,Th(a,this.EO)))}} function y(){this.uC&&DI(this,this.uC,a);if(this.P6()&&(!iU(this)||a!=="abandoned")){S.call(this);var n=this.MO.get().B.getVideoData()?.clientPlaybackNonce||"";var V=H8(this.MO.get(),1).clientPlaybackNonce;this.gq.get().finishSegmentByCpn(n,V,Th(a,this.EO))}LdF(this,a)} function S(){iU(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(a)||Q("Composite stopRendering: Unexpected layout exit reason",this.slot,p,{layoutExitReason:a}))} Uq(p.layoutId===this.ZV().layoutId,"StopRendering for wrong layout")&&mj(this.yp.S,a)&&(this.Mj()?y.call(this):l.call(this))}lr(p,a,l){super.lr(p,a,l);a.layoutId===this.ZV().layoutId&&this.sO.get().removeListener(this)}X_(){return H8(this.MO.get(),1).clientPlaybackNonce}Gz(p,a,l){PSh({...Mb(this),cpn:p});if(!iU(this)||l!==5)if(this.Mj()){if(this.uC&&this.uC.ZV().layoutId!==a){var y=this.uC.ZV().layoutId;y!==p&&Q("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:y,exitingCpn:p,enteringCpn:a}); p=wb(l,this.EO);DI(this,this.uC,p)}else this.uC&&Q("onClipExited: active layout is entering again");a===this.X_()&&Udr(this,l)}else this.uC&&this.uC.ZV().layoutId===p?$q(this,this.uC,l):Q("Exiting cpn does not match active cpn",this.slot,this.uC?.ZV(),{exitingCpn:p,transitionReason:l,activeCpn:this.uC?.ZV().layoutId}),a===this.X_()&&(this.uC!==void 0&&(Q("active adapter is not properly exited",this.slot,this.layout,{activeLayout:BL(this.uC.ZV())}),$q(this,this.uC,l)),Udr(this,l),LdF(this,this.yp.S.L))}Mj(){return dp(this.EO.get(), "html5_ssap_exit_without_waiting_for_transition")}startRendering(p){this.xk(p)&&(p=this.yp,Uq(p.L===1,"tickStartRendering: state is not initial"),p.L=2,this.m3())}uF(p){$Tq({...Mb(this),cpn:p});const a=this.VT.find(l=>l.ZV().layoutId===p); a?(this.yp.L!==2&&(jae(this.vy,this.slot.slotId),Uq(this.yp.L===2,"Expect started"),this.callback.VQ(this.slot,this.layout)),this.G0(a),LO(this.v1,this.slot,a.ZV())):kxO(this,p)}EZ(p,a){k9Z(this,p,a);const l=this.Vr();l?kLr(l,p,a)&&dRo(this,"skipped"):tKM(this,"onSkipRequested")}iF(p,a){var l;a:{if(l=this.Vr()){if(QqM(this),Km(l,p,a)&&(p=dEh(this,l,p,a),p!==void 0)){l={Q6:l,sT:this.VT[p]};break a}}else tKM(this,"SkipWithAdPodSkip");l=void 0}if(p=l)l=p.Q6,a=p.sT,p=l.ZV().layoutId,this.Mj()?DI(this, l,"skipped"):l.Lh(l.ZV(),"skipped"),l=a.ZV().layoutId,this.gq.get().finishSegmentByCpn(p,l,Th("skipped",this.EO))}E_(){Q("Not used in html5_ssap_fix_layout_exit")}pv(p){this.Vr()?.pv(p)}rQ(){Q("Not used in html5_ssap_fix_layout_exit")}QV(p,a,l){if(this.Vr()?.ZV().layoutId!==a.layoutId)return void Q("requestToExitSubLayout: wrong layout");dRo(this,l)}};var lue=class extends g.YB{constructor(p,a,l,y,S,n,V){super();this.callback=p;this.QL=a;this.sO=l;this.sC=y;this.Ct=S;this.Lt=n;this.EO=V;this.Vh=!0;this.sI=!1}qc(){return this.Ct.qc()}ZV(){return this.Ct.ZV()}init(){const p=this.ZV().clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=this);this.qf()}qf(){this.Ct.init()}release(){const p=this.ZV().clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref");p&&(p.current=null);this.tH()}tH(){this.Ct.release()}sD(){this.Ct.sD()}a6(){this.Ct.a6()}EZ(p, a){Q("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.qc(),this.ZV(),{requestingSlot:p,requestingLayout:a})}startRendering(p){p.layoutId!==this.ZV().layoutId?this.callback.N2(this.qc(),p,new s2("Tried to start rendering an unknown layout, this adapter "+`requires LayoutId: ${this.ZV().layoutId}`+`and LayoutType: ${this.ZV().layoutType}`,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"): (this.sO.get().addListener(this),If(this.Lt(),this),$zh(this.sC.get()),OfA(this.EO.get())||gh(this.sO.get()),this.Ct.startRendering(p))}Lh(p,a){this.sI=!0;this.Ct.Lh(p,a);this.sO.get().B.Hx();FD(this.QL.get(),{});p=N1(this.sO.get(),1);p.isPaused()&&!p.L(2)&&this.sO.get().playVideo();this.sO.get().removeListener(this);this.sI&&this.Ct.ye()}VQ(p,a){this.Ct.VQ(p,a)}lr(p,a,l){a.layoutId===this.ZV().layoutId&&(this.sI=!1,Cx(this.Lt(),this));this.Ct.lr(p,a,l);a.layoutId===this.ZV().layoutId&&jS(this.sC.get())}r4(p){this.Ct.r4(p)}pv(p){p.state.isError()? this.rQ(p.state.Kq?.errorCode,new s2("There was a player error during this media layout.",{playerErrorCode:p.state.Kq?.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):this.Ct.pv(p)}rQ(p,a,l){this.Ct.oZ(p,a,l)}onFullscreenToggled(p){this.Ct.onFullscreenToggled(p)}lN(p){this.Ct.lN(p)}SR(p){this.Ct.SR(p)}onVolumeChange(){this.Ct.onVolumeChange()}zM(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}qb(){}PG(){}};var rCr=class{constructor(p,a,l,y,S,n,V,Z,z,d){this.callback=p;this.slot=a;this.layout=l;this.MO=y;this.gq=S;this.z9=n;this.sO=V;this.xv=Z;this.uT=z;this.G=d;this.driftRecoveryMs=this.layout.clientMetadata.t9("metadata_type_drift_recovery_ms")||null;this.j=this.layout.clientMetadata.t9("metadata_type_prefetch_metadata")!==void 0}qc(){return this.slot}ZV(){return this.layout}init(){this.z9.get().addListener(this);this.sO.get().addListener(this);var p=this.layout.clientMetadata.t9("metadata_type_layout_enter_ms"); var a=this.layout.clientMetadata.t9("metadata_type_layout_exit_ms");if(this.j){var l=this.z9.get().Ov.slice(-1)[0];l!==void 0&&(p=l.startSecs*1E3,a=(l.startSecs+l.Hy)*1E3)}this.Bt(p,a);l=this.MO.get().hv?.clientPlaybackNonce;const y=this.layout.ao.adClientDataEntry;wG(this.uT.get(),{daiStateTrigger:{filledAdsDurationMs:a-p,contentCpn:l,adClientData:y}});var S=this.z9.get();S=Jee(S.U,p,a);S!==null&&(wG(this.uT.get(),{daiStateTrigger:{filledAdsDurationMs:S-p,contentCpn:l,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER", adClientData:y}}),this.gq.get().HR(S,a))}release(){this.tH();this.z9.get().removeListener(this);this.sO.get().removeListener(this)}startRendering(){this.I8();this.callback.VQ(this.slot,this.layout)}Lh(p,a){this.D(a);this.driftRecoveryMs!==null&&(bC(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(fUq(this)-this.layout.clientMetadata.t9("metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.sO.get().B.yP()*1E3).toString()}),this.driftRecoveryMs= null);this.callback.lr(this.slot,this.layout,a)}Sn(){return!1}o2(p){const a=this.layout.clientMetadata.t9("metadata_type_layout_enter_ms"),l=this.layout.clientMetadata.t9("metadata_type_layout_exit_ms");p*=1E3;a<=p&&pn.ZV().clientMetadata.t9("metadata_type_media_sub_layout_index")-V.ZV().clientMetadata.t9("metadata_type_media_sub_layout_index")); p.forEach(n=>{const V=l,Z=n.ZV().clientMetadata.t9("metadata_type_video_length_seconds"),z=Math.min(V+Z*1E3,a);l=z;y++;S.push(Z);n.Bt(V,z)})}else this.U.forEach(n=>{n.init()}); this.S!=null&&W8(this.uT.get(),"ads_ssmplra_init",`lid.${this.layout.layoutId};smlid.${this.S}`)}tH(){this.MO.get().removeListener(this);this.L=null;this.U.forEach(p=>{p.release()})}I8(){if(this.L)Q("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.S)}); else{var p=this.MO.get().hv?.layoutId;W4(this,p)}}D(p){this.L?.p8?.Lh(this.L?.p8?.ZV(),p);this.L=null}Nm({videoId:p,layoutId:a}){p==="nPpU29QrbiU"&&W8(this.uT.get(),"ads_ssmplra_opdcs",`vid.${p};lid.${this.layout.layoutId};smlid.${this.S};slrs.${!!this.L};slrslid.${this.L?.p8?.ZV().layoutId}`);this.L&&(this.L.p8?.ZV().layoutId===a?Q("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:a}):(this.L.p8?.Lh(this.L.p8?.ZV(),"normal"),W4(this,a)))}Gz(){}uF(){}X(){}pv(){}onFullscreenToggled(){}};var $BZ=class{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c){this.callback=p;this.slot=a;this.layout=l;this.gq=y;this.xv=S;this.sO=n;this.NR=V;this.Gn=Z;this.oM=z;this.EO=d;this.uT=G;this.MO=B;this.BZ=c;this.hA=!0;this.ME=this.Fh=null;this.adCpn=void 0;this.L=!1}qc(){return this.slot}ZV(){return this.layout}z4(){Q("Should not get exitStateMachine for DAI");return new p4}Bt(p,a){this.layout.clientMetadata.t9("metadata_type_player_bytes_callback_ref").current=this;this.ME=k1Z(this.slot,this.layout,this.layout.clientMetadata.t9("metadata_type_player_vars"), p,a,this.layout.clientMetadata.t9("metadata_type_video_length_seconds")*1E3,this.gq.get(),this.NR.get(),()=>{var l={...Mz(this.layout)};var y=this.slot.clientMetadata.t9("metadata_type_fulfilled_layout")||this.slot.fulfilledLayout;const S=y.clientMetadata.t9("metadata_type_sub_layouts")||y.lK;y={...Mz(y),adPlacementConfig:y.clientMetadata.t9("metadata_type_ad_placement_config"),subLayouts:(S||[]).map(Mz)};return{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",...l,compositeLayout:y,hasSurveyOverlay:Ci(this.layout.clientMetadata, "metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.t9("metadata_type_survey_overlay")}},this.uT.get()); this.sO.get().addListener(this);p=this.layout.clientMetadata.t9("metadata_type_video_length_seconds");a=this.layout.clientMetadata.t9("metadata_type_active_view_traffic_type");uJ(this.layout.Xh)&&sK(this.Gn.get(),this.layout.layoutId,{N8:a,HT:p,listener:this});chZ(this.callback,this.slot,this.layout);GLA(this.callback,this.slot,this.layout)}init(){const p=this.layout.clientMetadata.t9("metadata_type_layout_enter_ms"),a=this.layout.clientMetadata.t9("metadata_type_layout_exit_ms");this.Bt(p,a)}release(){this.sO.get().removeListener(this); uJ(this.layout.Xh)&&UD(this.Gn.get(),this.layout.layoutId);this.EO.get();var p=this.callback,a=this.slot,l=this.layout;for(const y of p.S)y.Y3(a,l);GO(this.EO.get())&&(this.fq&&(W8(this.uT.get(),"ads_ccru",`acpn.${H8(this.MO.get(),2)?.clientPlaybackNonce};cr.${this.fq}`),this.BZ.get().removeCueRange(this.fq)),this.fq=void 0)}startRendering(){Ci(this.layout.clientMetadata,"metadata_type_survey_overlay")&&W8(this.uT.get(),"ads_ssmlra_srs",`lid.${this.layout.layoutId}`);if(this.Fh)Q("Expected the layout not to be entered before start rendering", this.slot,this.layout,{hasSurveyOverlay:Ci(this.layout.clientMetadata,"metadata_type_survey_overlay"),surveyOverlay:this.layout.clientMetadata.t9("metadata_type_survey_overlay")});else{this.Fh={f9:null,kD:!1};this.L=!1;hM(this.EO.get())&&(this.adCpn=H8(this.MO.get(),2)?.clientPlaybackNonce);this.EO.get().B.O().experiments.Cz("html5_disable_sodar_for_tvhtml5")||Ror(this.slot,this.layout,this.oM.get());uJ(this.layout.Xh)&&hrh(this.Gn.get(),this.layout.layoutId);this.xv.O6("start");if(uU(this.EO.get())){const p= N1(this.sO.get()),a=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),l=aW(this.sO.get(),2,!1);pbM(this.xv,this.Fh.f9,p,a,l,()=>void TE(this,"teois"),H8(this.MO.get(),1).nh)}LO(this.callback,this.slot,this.layout); GO(this.EO.get())&&(this.adCpn||Q("Media layout confirmed started, but ad CPN not set."),this.gg());Ci(this.layout.clientMetadata,"metadata_type_survey_overlay")&&W8(this.uT.get(),"ads_ssmlra_sre",`lid.${this.layout.layoutId}`)}}Lh(p,a){if(this.Fh){if(uU(this.EO.get()))if(this.ME===null)Q("Unexpected media sub layout exited without a timeline playback ID");else{p=this.layout.clientMetadata.t9("metadata_type_video_length_seconds");const l=pp(this.sO.get(),this.ME);hM(this.EO.get())&&this.adCpn===void 0&& Q("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.t9("metadata_type_content_cpn")});CXO(this.xv,l,this.adCpn);je(this.xv,null,this.Fh.f9,p,l,H8(this.MO.get(),1).nh,y=>void Msr(this,y,"fue"),hM(this.EO.get()),GO(this.EO.get()))}this.Fh=null; eK(this.callback,this.slot,this.layout,this.L&&this.EO.get().B.O().A("dai_layout_log_skip_exit_reason")?"skipped":a)}else Q("Expected the layout to be entered before stop rendering",this.slot,this.layout)}onCueRangeEnter(p){if(p!==this.fq)Q("Received CueRangeEnter signal for unknown layout.",this.qc(),this.ZV(),{cueRangeId:p});else if(this.adCpn===void 0&&Q("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:this.layout.clientMetadata.t9("metadata_type_content_cpn")}),ph(this.xv, "impression")&&uU(this.EO.get()))if(this.ME===null)Q("Unexpected cue range enter without a timeline playback ID");else{const a=pp(this.sO.get(),this.ME);W8(this.uT.get(),"ads_ccre",`cpn.${this.layout.clientMetadata.t9("metadata_type_content_cpn")};acpn.${H8(this.MO.get(),2)?.clientPlaybackNonce};cr.${p};cts.${a}`);this.BZ.get().removeCueRange(this.fq);this.fq=void 0;this.xv.O6("complete")}}onCueRangeExit(){}oZ(){}ye(){}r4(p){if(this.Fh){if(ph(this.xv,"impression")){const a=N1(this.sO.get()),l=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"); tQ(this.xv,a,p,this.Fh.f9,l,y=>void Msr(this,y,"tpaqe"))}this.Fh.f9=p}}pv(p){if(this.Fh){uU(this.EO.get())||this.Fh.kD||(this.Fh.kD=!0,p=new g.e2(p.state,new g.bB)); var a=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),l=aW(this.sO.get(),2,!1);Cw(this.xv,this.Fh.f9,p,a,l,H8(this.MO.get(),1).nh,!uU(this.EO.get()),()=>void TE(this,"teosc"))}}onFullscreenToggled(p){NjA(this.xv,p)}lN(){}zM(){}SR(){}EZ(p,a){p=this.uT.get(); var l=ph(this.xv,"impression"),y=ph(this.xv,"skip");var S=!!this.xv.U.get("skip")?.length;W8(p,"ads_dsr",`ti.${l};ts.${y};hp.${S};cpn.${this.layout.clientMetadata.t9("metadata_type_content_cpn")};acpn.${H8(this.MO.get(),2)?.clientPlaybackNonce};sl.${a.clientMetadata.t9("metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId}`);ph(this.xv,"impression")&&this.xv.O6("skip");a=H8(this.MO.get(),1).nh;this.L=!0;this.gq.get().Q9(a)||(this.L=!1,Q("Unexpected failure to skip a server stitched ad", this.slot,this.layout))}onVolumeChange(){}VQ(){}lr(){}sD(){}a6(){}zU(){bVf(this.xv)}L6(){SvE(this.xv)}Yt(){OiF(this.xv)}S_(){Jjh(this.xv)}m6(){ahh(this.xv)}N$(){ah(this.xv)}qb(){}PG(){}gg(){this.fq||(this.fq=`${"adcompletioncuerange"}:${this.ZV().layoutId}`,this.BZ.get().addCueRange(this.fq,0x7ffffffffffff,0x8000000000000,!1,this,2,2,this.adCpn),W8(this.uT.get(),"ads_ccr",`acpn.${H8(this.MO.get(),2)?.clientPlaybackNonce};cr.${this.fq}`))}};var Pyr=class extends rCr{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w){super(p,a,l,y,S,V,Z,z,d,B);this.NR=n;this.oM=G;this.Gn=c;this.EO=w;this.ME=this.Fh=null}Bt(){this.layout.clientMetadata.t9("metadata_type_player_bytes_callback_ref").current=this;const p=this.layout.clientMetadata.t9("metadata_type_layout_enter_ms"),a=this.layout.clientMetadata.t9("metadata_type_layout_exit_ms");this.ME=k1Z(this.slot,this.layout,this.layout.clientMetadata.t9("metadata_type_player_vars"),p,a,this.layout.clientMetadata.t9("metadata_type_video_length_seconds")* 1E3,this.gq.get(),this.NR.get(),()=>({layoutType:"LAYOUT_TYPE_MEDIA",enterMs:p,exitMs:a,adPlacementConfig:this.layout.clientMetadata.t9("metadata_type_ad_placement_config")}),this.uT.get()); const l=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),y=this.layout.clientMetadata.t9("metadata_type_active_view_traffic_type");uJ(this.layout.Xh)&&sK(this.Gn.get(),this.layout.layoutId,{N8:y,HT:l,listener:this})}tH(){uJ(this.layout.Xh)&&UD(this.Gn.get(),this.layout.layoutId)}I8(){if(this.Fh)Q("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Fh={f9:null,kD:!1},Ror(this.slot,this.layout,this.oM.get()),this.xv.O6("start"),uU(this.EO.get())){const p= N1(this.sO.get()),a=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),l=aW(this.sO.get(),2,!1);pbM(this.xv,this.Fh.f9,p,a,l,()=>void kEZ(this,"teois"),!1)}}D(){if(this.Fh){if(uU(this.EO.get()))if(this.ME===null)Q("Unexpected single media layout exited without a timeline playback ID"); else{const p=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),a=pp(this.sO.get(),this.ME);CXO(this.xv,a);je(this.xv,null,this.Fh.f9,p,a,!1,l=>void WHr(this,l,"fue"))}this.Fh=null}else Q("Expected the layout to be entered before stop rendering",this.slot,this.layout)}X(p){if(this.Fh){if(ph(this.xv,"impression")){const a=N1(this.sO.get()),l=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"); tQ(this.xv,a,p,this.Fh.f9,l,y=>void WHr(this,y,"tpaqe"))}this.Fh.f9=p}}pv(p){if(this.Fh){uU(this.EO.get())||this.Fh.kD||(this.Fh.kD=!0,p=new g.e2(p.state,new g.bB)); var a=this.layout.clientMetadata.t9("metadata_type_video_length_seconds"),l=aW(this.sO.get(),2,!1);Cw(this.xv,this.Fh.f9,p,a,l,!1,!uU(this.EO.get()),()=>void kEZ(this,"teosc"))}}onFullscreenToggled(p){NjA(this.xv,p)}zU(){bVf(this.xv)}L6(){SvE(this.xv)}Yt(){OiF(this.xv)}S_(){Jjh(this.xv)}m6(){ahh(this.xv)}N$(){ah(this.xv)}};var LK$=class{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v,I,u,m,M,D,A){this.Lt=p;this.vy=a;this.Id=l;this.MO=y;this.gq=S;this.sO=n;this.EY=V;this.uT=Z;this.NR=z;this.z9=d;this.Gn=G;this.oM=B;this.QL=c;this.BZ=w;this.sC=X;this.F7=v;this.uM=I;this.MA=u;this.EO=m;this.L=M;this.context=D;this.zp=A}build(p,a,l,y){if(Ci(l.clientMetadata,"metadata_type_dai")){var S=y.clientMetadata.t9("metadata_type_ad_placement_config");qa(y,{e5:"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(" "), FX:["LAYOUT_TYPE_MEDIA"]})&&S!==void 0?(S=new qn(y.Xh,this.uT,S,y.layoutId,null),S=new Pyr(p,l,y,this.MO,this.gq,this.NR,this.z9,this.sO,S,this.uT,this.oM,this.L,this.Gn,this.EO)):S=null;if(S)return S;a:{var n=y.lK??y.clientMetadata.t9("metadata_type_sub_layouts");const V=y.clientMetadata.t9("metadata_type_ad_placement_config");if(qa(y,{e5:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],FX:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&n!==void 0&&V!== void 0){S=[];for(const Z of n){n=Z.clientMetadata.t9("metadata_type_media_sub_layout_index");if(!qa(Z,{e5:"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(" "),FX:["LAYOUT_TYPE_MEDIA"]})||n===void 0){p=null;break a}n=new qn(Z.Xh,this.uT,V,Z.layoutId,n);S.push(new $BZ(a,l,Z,this.gq,n,this.sO,this.NR,this.Gn,this.oM,this.EO,this.uT,this.MO,this.BZ))}a=new qn(y.Xh, this.uT,V,y.layoutId);p=new wUM(p,l,y,this.MO,this.gq,this.z9,this.sO,a,this.uT,this.L,S)}else p=null}if(p)return p}else if(p=ywr(p,a,l,y,this.Lt,this.vy,this.Id,this.uT,this.Gn,this.oM,this.QL,this.MO,this.sO,this.EY,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,this.gq,this.context,this.zp))return p;throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"PlayerBytesLayoutRenderingAdapterFactory.");}};var Vr=class{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v,I,u,m){this.Lt=p;this.vy=a;this.Id=l;this.uT=y;this.Gn=S;this.oM=n;this.QL=V;this.MO=Z;this.sO=z;this.EY=d;this.BZ=G;this.sC=B;this.F7=c;this.uM=w;this.MA=X;this.EO=v;this.gq=I;this.context=u;this.zp=m}build(p,a,l,y){if(p=ywr(p,a,l,y,this.Lt,this.vy,this.Id,this.uT,this.Gn,this.oM,this.QL,this.MO,this.sO,this.EY,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,this.gq,this.context,this.zp))return p;throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+ "PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");}};var XUr=class extends Pn{constructor(p,a,l,y){super("survey-interstitial",p,a,l,y)}};var xBO=class extends Y${constructor(p,a,l,y,S){super(l,p,a,y);this.uT=S;p=a.clientMetadata.t9("metadata_type_ad_placement_config");this.xv=new qn(a.Xh,S,p,a.layoutId)}startRendering(p){const a=Sx(this.xv),l={adsClientData:this.layout.ao};this.L.push(new XUr(this.layout.clientMetadata.t9("metadata_type_valid_survey_text_interstitial_renderer"),a,this.ZV().layoutId,l));super.startRendering(p);this.callback.VQ(this.slot,p)}fv(p,a){a!==this.layout.layoutId||p!=="survey-interstitial"&&p!=="button"||((p= this.layout.clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref").current)?p.EZ(this.slot,this.layout):Q("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))}fz(){super.fz()}};var LX=new g.J9(320,63);var FKr=class extends Pn{constructor(p,a,l,y){super("invideo-overlay",p,a,l,y);this.interactionLoggingClientData=y}};var E5$=class extends Y${constructor(p,a,l,y,S,n,V,Z,z,d,G){super(S,p,a,y);this.uT=l;this.j=n;this.sO=V;this.uM=Z;this.EO=z;this.D=d;this.X=G;this.xv=lhv(a,l)}r4(){}pv(){}onFullscreenToggled(){}lN(p){p&&Jv(this.j,this.layout)}zM(){}SR(p){const a=j5(this.layout);if(this.G=uK(p,cIo(this.sO.get())))a.onErrorCommand&&this.uM.get().executeCommand(a.onErrorCommand,this.layout.layoutId),Jv(this.j,this.layout)}onVolumeChange(){}Y8(){return this.ZV().layoutId}Km(){return this.G}fv(p){this.X.fv(p);p==="in_video_overlay_close_button"&& Jv(this.j,this.layout)}Mf(p){p==="invideo-overlay"&&Jv(this.j,this.layout)}aK(){this.X.aK()}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p);this.D.hJ=this}Lh(p,a){super.Lh(p,a);Zk(this.D,this)}init(){super.init();CH(this.uT.get(),this);this.sO.get().addListener(this);this.L.push(new FKr(j5(this.layout),Sx(this.xv),this.layout.layoutId,{adsClientData:this.layout.ao}))}release(){super.release();this.sO.get().removeListener(this);Wx(this.uT.get(),this)}qb(){}PG(){}};var CyE=class extends Y${constructor(p,a,l,y,S,n,V,Z,z,d,G,B){super(S,p,a,y);this.uT=l;this.j=n;this.K=V;this.sO=Z;this.uM=z;this.EO=d;this.D=G;this.X=B;this.xv=lhv(a,l)}init(){super.init();CH(this.uT.get(),this);this.sO.get().addListener(this);this.L.push(new FKr(j5(this.layout),Sx(this.xv),this.layout.layoutId,{adsClientData:this.layout.ao}))}aK(){this.X.aK()}startRendering(p){super.startRendering(p);this.callback.VQ(this.slot,p);this.D.hJ=this}Lh(p,a){super.Lh(p,a);Zk(this.D,this)}fv(p){this.X.fv(p); p==="in_video_overlay_close_button"&&Jv(this.j,this.layout)}Ar(p){if(p==="invideo-overlay"){p=Xar(this.K,this.layout);for(const a of p)a.stop()}}Mf(p){p==="invideo-overlay"&&Jv(this.j,this.layout)}lY(p){if(p==="invideo-overlay"){p=Xar(this.K,this.layout);for(const a of p)a.start()}}r4(){}pv(){}onFullscreenToggled(){}lN(p){p&&Jv(this.j,this.layout)}zM(){}SR(p){const a=j5(this.layout),l=a.contentSupportedRenderer.imageOverlayAdContentRenderer;if(this.G=uK(p,cIo(this.sO.get()),DHA(l.image)))a.onErrorCommand&& this.uM.get().executeCommand(a.onErrorCommand,this.layout.layoutId),Jv(this.j,this.layout)}onVolumeChange(){}Y8(){return this.ZV().layoutId}Km(){return this.G}release(){super.release();this.sO.get().removeListener(this);Wx(this.uT.get(),this)}qb(){}PG(){}};var ZE=class{constructor(p){this.sO=p;this.L=!1}fv(p){p==="ad-info-hover-text-button"&&((this.L=this.sO.get().jr(1))||this.sO.get().pauseVideo())}aK(){this.L||this.sO.get().resumeVideo(1)}};var v5f=class extends Pn{constructor(p,a,l){super("survey",p,{},a,l)}};var KKA=class extends Y${constructor(p,a,l,y,S,n,V){super(l,p,a,y);this.j=S;this.sO=n;this.EO=V}init(){super.init();this.sO.get().addListener(this)}startRendering(p){const a=this.layout.clientMetadata.t9("METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.L.push(new v5f(a,this.layout.layoutId,{adsClientData:this.layout.ao}));super.startRendering(p);this.callback.VQ(this.slot,p)}VQ(){}fv(p,a){a!==this.layout.layoutId||p!=="ad-info-icon-button"&&p!=="ad-info-dialog-close-button"||((a=this.layout.clientMetadata.t9("metadata_type_player_bytes_layout_controls_callback_ref").current)? p==="ad-info-icon-button"?a.sD(this.slot,this.layout):p==="ad-info-dialog-close-button"&&a.a6(this.slot,this.layout):Q("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:p}))}SR(p){p.width<450&&Jv(this.j,this.layout)}onVolumeChange(){}r4(){}onFullscreenToggled(){}lN(){}zM(){}pv(){}qb(){}PG(){}fz(){super.fz()}release(){super.release();this.sO.get().removeListener(this)}};var euh=class{constructor(p,a,l,y,S,n,V,Z,z,d){this.yL=p;this.sO=a;this.uT=l;this.j=y;this.Gn=S;this.S=n;this.U=V;this.uM=Z;this.EO=z;this.L=d}build(p,a,l,y){if(a=ZS(p,l,y,this.yL,this.sO,this.uT,this.j,this.L,this.EO))return a;if(qa(y,StM()))return new CyE(l,y,this.uT,this.yL,p,this.S,this.U,this.sO,this.uM,this.EO,this.L,new ZE(this.sO));if(qa(y,oiF()))return new E5$(l,y,this.uT,this.yL,p,this.S,this.sO,this.uM,this.EO,this.L,new ZE(this.sO));if(qa(y,{e5:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"], FX:["LAYOUT_TYPE_SURVEY"]}))return new KKA(l,y,p,this.yL,this.S,this.sO,this.EO);if(qa(y,{e5:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],FX:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new xBO(l,y,p,this.yL,this.uT);if(qa(y,fNh()))return new r6M(l,y,p,this.yL,this.sO,this.EO);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+ "WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");}};var bdo=class{constructor(p,a,l,y,S,n,V,Z,z,d){this.yL=p;this.sO=a;this.uT=l;this.j=y;this.Gn=S;this.S=n;this.U=V;this.uM=Z;this.EO=z;this.L=d}build(p,a,l,y){if(a=ZS(p,l,y,this.yL,this.sO,this.uT,this.j,this.L,this.EO))return a;if(qa(y,StM()))return new CyE(l,y,this.uT,this.yL,p,this.S,this.U,this.sO,this.uM,this.EO,this.L,new ZE(this.sO));if(qa(y,oiF()))return new E5$(l,y,this.uT,this.yL,p,this.S,this.sO,this.uM,this.EO,this.L,new ZE(this.sO));throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+ "WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");}};var IjZ=class extends GTr{constructor(p,a,l,y,S,n,V,Z,z,d){super(p,a,l,y,S,n,V,z);this.T4=Z;this.MO=d}startRendering(p){super.startRendering(p);if(p.renderingContent?xRr(p,H8(this.MO.get(),2)||void 0):this.layout.clientMetadata.t9("metadata_ad_video_is_listed")){const a=p.renderingContent?c8r(p,H8(this.MO.get(),2)||void 0):this.layout.clientMetadata.t9("metadata_type_ad_info_ad_metadata");p=this.T4.get();g.v0(p.B,"onAdMetadataAvailable",a)}}};var RuA=class{constructor(p,a,l,y,S,n,V){this.yL=p;this.sO=a;this.uT=l;this.S=y;this.T4=S;this.L=n;this.MO=V}build(p,a,l,y){if(qa(y,ytO())||y.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.K(y.renderingContent,S3)!==void 0)return new IjZ(p,l,y,this.yL,this.sO,this.uT,this.S,this.T4,this.L,this.MO);throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"WebRemixInPlayerLayoutRenderingAdapterFactory.");}};var uHM=class{constructor(p,a,l,y,S,n,V,Z){this.yL=p;this.sO=a;this.uT=l;this.S=y;this.T4=S;this.L=n;this.EO=V;this.MO=Z}build(p,a,l,y){if(qa(y,ytO()))return new IjZ(p,l,y,this.yL,this.sO,this.uT,this.S,this.T4,this.L,this.MO);if(p=ZS(p,l,y,this.yL,this.sO,this.uT,this.S,this.L,this.EO))return p;throw new s2(`Unsupported layout with type: ${y.layoutType} and client metadata: ${X6(y.clientMetadata)} in `+"WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");}};var fG=class{constructor(p,a){this.slotId=a;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=p(this.triggerType)}};var VC=class{constructor(p,a){this.adPodIndex=p;this.L=a.length;this.adBreakLengthSeconds=a.reduce((y,S)=>y+S,0); let l=0;for(p+=1;pthis.triggerId,p)}};var lm=class{constructor(p,a,l){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=l||p(this.triggerType)}clone(p){return new lm(()=>this.triggerId,p)}};var zo=class{constructor(p,a){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=p(this.triggerType)}clone(p){return new zo(()=>this.triggerId,p)}};var ow=class{constructor(p,a){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=p(this.triggerType)}clone(p){return new ow(()=>this.triggerId,p)}};var mF=class{constructor(p,a,l){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=l||p(this.triggerType)}clone(p){return new mF(()=>this.triggerId,p)}};var QX=class{constructor(p,a){this.triggeringSlotId=a;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=p(this.triggerType)}clone(p){return new QX(()=>this.triggerId,p)}};var PH=class{constructor(p,a,l){this.triggeringLayoutId=a;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=l||p(this.triggerType)}};var g9=class{constructor(p,a,l,y){this.durationMs=a;this.triggeringLayoutId=l;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=y||p(this.triggerType)}};var GU=class{constructor(p,a,l,y){this.category=p;this.trigger=a;this.slot=l;this.layout=y}};var oc=class extends g.YB{constructor(p,a,l,y,S,n,V){super();this.EO=p;this.L=a;this.S=l;this.MO=y;this.j=S;this.U=n;this.QL=V}};var dbr={WVdDU7FEFNo:15,"c-6Sb-muKCY":6,"O9f9wIR-UI8":6,"JNL-wFYNAP0":15,dLYcTkdHPNA:15,ZdVP0_LJZUE:15,VXcUXyDNdEI:15,VGQ8C9uQc_I:15,"o2HqYt-U7YU":15,rwNqPgKVbus:15,ATgzDto2XcY:15,attyPCCLlC4:15,w3aSYOeWyYU:15,wZMtuR2zzRA:30,e3TvPYADCQA:15,eMOw2R8yUHg:15,"6lLyZenufEY":15,"4q_FdWfUxR4":15,"3NOPsNQV0zY":15,IcEJuv4zMSI:15,"8Eo9vaW_CqY":15,O0DMDUDJK88:15,wnboazT1Lio:15,ZfRdOlbXmog:5,"X-sKfjrb7uc":15,RCVZbiJbZA0:6,"7syqtZsUUwY":15,OrlZSFgzFVA:15,ulrgBGVttFg:15,"1qC82K99ecI":15,E9lmhFAK78w:30,QSJFJNk_VSg:15, "i-8wX-g3FjI":30,vgSkhTaAP6U:15,iqslKcmG9zA:15,VkNDKDDDSWA:15,"2-Sj3oWDJCk":6,z4zsVPqUVnc:15,xKc7UMf8V4s:15,wwrWuIYPaDE:6,"_5NVge-Kmpk":6,"eUdn6DcJx-4":6,gxvBLc_C6Io:15,O40oPma0obU:15,"6xXRRLxj3DA":15,T5sMvex24Os:15,"74ccAT84jIY":15,"YTlgTC-KM2U":15,XxcipO9EBWc:15,zI7xwG4M62k:15,XrUrvpDMmOk:15,H5KIgG21WjA:15,R94pfM1wcac:6,"TD0-7fMqNOE":5,_evnWGoDAT8:15,Wov4GF3oUSM:6,DKcQEuGWmp4:15,kp4aH06VQBg:15,CI3LdgGodUw:15,lcQzcg6e73Y:15};var QO={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};var z7={uE:1,GC:2,nR:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};var d4=class{constructor(p,a,l,y,S,n,V,Z,z,d=1){this.j=p;this.S=a;this.L=l;this.EO=y;this.EQ=S;this.U=n;this.sO=V;this.rE=Z;this.iC=z;this.loadPolicy=d}};var G7=class extends g.YB{constructor(p,a,l,y,S,n,V,Z){super();this.S=p;this.U=a;this.z9=y;this.sO=S;this.EO=n;this.uT=V;this.gq=Z;this.L=null;l.get().addListener(this);this.addOnDisposeCallback(()=>{l.nz()||l.get().removeListener(this)}); y.get().addListener(this);this.addOnDisposeCallback(()=>{y.nz()||y.get().removeListener(this)})}qp(p){if(this.L)Q("Unexpected multiple fetch instructions for the current content"); else{this.L=p;for(const a of this.z9.get().Ov)kx(this,this.L,a)}}Sn(p){if(!this.L)return this.EO.get().B.O().A("high_ccv_client_side_caching_h5")||this.gq?.get().EG(p.identifier),!1;kx(this,this.L,p);return!0}o2(){}O2(p){this.L&&this.L.contentCpn!==p&&(Q("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.L.contentCpn}),this.L=null)}eT(p){this.L&&this.L.contentCpn!==p&&Q("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.L.contentCpn},!0);this.L=null}fz(){super.fz();this.L=null}};var Ode=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],kNo=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];var Bh=class extends g.YB{constructor(p,a,l,y,S,n,V,Z){super();this.j=p;this.D=Ode;this.X=a;this.U=l;this.L=y;this.S=S;this.EQ=n;this.EO=V;this.MO=Z;this.Vh=!0}VQ(p,a){if(a.layoutType==="LAYOUT_TYPE_MEDIA"&&(Yi(a,this.D)||Yi(a,kNo))){var l=H8(this.MO.get(),2),y=this.j(a,l||void 0);y?Cv(this.U.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",()=>{const S=[LFf(this.L.get(),y.contentCpn,y.LU,n=>this.X(n.slotId,"core",y,Yv(this.EQ.get(),n)),y.inPlayerSlotId)]; y.instreamAdPlayerUnderlayRenderer&&ZI(this.EO.get())&&S.push(abr(this,y,y.instreamAdPlayerUnderlayRenderer));return S}):Q("Expected MediaLayout to carry valid opportunity on entered",p,a)}}I9(){}vl(){}M2(){}A5(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}lr(){}};var ch=class extends g.YB{constructor(p,a,l,y,S,n,V,Z){super();this.S=p;this.L=a;this.U=l;this.EO=y;this.j=S;this.MO=n;this.sO=V;this.sC=Z}O2(p,a,l,y,S,n,V){const Z=H8(this.MO.get(),1);!vxF(this.EO.get())&&Z.Zk?qR(this.sO.get()):(HaF(this.sC.get(),y),Cv(this.S.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",()=>d6(this.L.get(),y,S,n,p,a,V,Z,"")),yMr(this.U))}eT(){}};var r4=class extends g.YB{constructor(p){super();this.L=p}};var w4=class extends g.YB{constructor(p,a,l,y,S){super();this.S=p;this.U=a;this.BZ=l;this.context=S;this.L=new Map;y.get().addListener(this);this.addOnDisposeCallback(()=>{y.nz()||y.get().removeListener(this)})}onCueRangeEnter(){}onCueRangeExit(p){const a=this.L.get(p); a&&(this.L.delete(p),this.BZ.get().removeCueRange(p),Cv(this.S.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",()=>{var l=this.U.get();l=fO(l.S.get(),"SLOT_TYPE_AD_BREAK_REQUEST");if(a.slotEntryTrigger){var y=a.slotId;var S=a.slotEntryTrigger;y=S.triggeringSlotId!=null&&S.triggeringSlotId===y?S.clone(l):S}else y=void 0;return[{...a,slotId:l,slotEntryTrigger:y,slotFulfillmentTriggers:QEM(a.slotId,l,a.slotFulfillmentTriggers),slotExpirationTriggers:QEM(a.slotId,l,a.slotExpirationTriggers)}]}, a.slotId))}O2(){for(const p of this.L.keys())this.BZ.get().removeCueRange(p); this.L.clear()}eT(){}};var $o=class extends g.YB{constructor(){super(...arguments);this.Vh=!0;this.wd=new Map;this.L=new Map}I9(){}vl(p){g.wM(g.vT(),()=>{const a=this.L.get(p);a&&Q("Expected layouts to be properly unscheduled",p,void 0,{slotType:p.slotType,layoutTypes:[...a].map(l=>l.layoutType)})},0)}M2(){}A5(){}rP(){}Hl(){}Rv(){}NA(p,a){this.L.has(p)||this.L.set(p,new Set); this.L.get(p).add(a)}Y3(p,a){this.wd.has(p)&&this.wd.get(p)===a&&Q("Unscheduled a Layout that is currently entered.",p,a);if(this.L.has(p)){var l=this.L.get(p);l.has(a)?(l.delete(a),l.size===0&&this.L.delete(p)):Q("Trying to unscheduled a Layout that was not scheduled.",p,a)}else Q("Trying to unscheduled a Layout that was not scheduled.",p,a)}VQ(p,a){this.wd.set(p,a)}lr(p){this.wd.delete(p)}Ty(){}};var xM$=class{constructor(){this.L=new Map}};var MIF=class{constructor(p,a){this.callback=p;this.slot=a}init(){}qc(){return this.slot}CG(){this.callback.M2(this.slot)}L_(){this.callback.rP(this.slot)}release(){}};var Ph=class{build(p,a){return new MIF(p,a)}};var mBq=class{constructor(p,a,l){this.callback=p;this.slot=a;this.sO=l}init(){}qc(){return this.slot}CG(){TO(this.sO.get(),"ad-showing");this.callback.M2(this.slot)}L_(){this.callback.rP(this.slot);lh(this.sO.get(),"ad-showing")}release(){}};var tIA=class{constructor(p,a,l){this.callback=p;this.slot=a;this.sO=l;this.S=!1;this.L=0}init(){}qc(){return this.slot}CG(){TO(this.sO.get(),"ad-showing");TO(this.sO.get(),"ad-interrupting");this.S=this.sO.get().isAtLiveHead();this.L=Math.ceil(Date.now()/1E3);this.callback.M2(this.slot)}L_(){lh(this.sO.get(),"ad-showing");lh(this.sO.get(),"ad-interrupting");const p=this.S?Infinity:aW(this.sO.get(),1,!0)+Math.floor(Date.now()/1E3)-this.L;this.sO.get().B.seekTo(p,void 0,void 0,1);this.callback.rP(this.slot)}release(){}};var ji$=class{constructor(p,a,l){this.callback=p;this.slot=a;this.sO=l}init(){}qc(){return this.slot}CG(){TO(this.sO.get(),"ad-showing");TO(this.sO.get(),"ad-interrupting");this.callback.M2(this.slot)}L_(){qR(this.sO.get());lh(this.sO.get(),"ad-showing");lh(this.sO.get(),"ad-interrupting");this.callback.rP(this.slot)}release(){qR(this.sO.get())}};var L4=class{constructor(p){this.sO=p}build(p,a){if(vr(a,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new mBq(p,a,this.sO);if(a.slotEntryTrigger instanceof zY&&vr(a,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new tIA(p,a,this.sO);if(vr(a,[],"SLOT_TYPE_PLAYER_BYTES"))return new ji$(p,a,this.sO);throw new N(`Unsupported slot with type ${a.slotType} and `+`client metadata: ${X6(a.clientMetadata)} `+"in PlayerBytesSlotAdapterFactory.");}};var WKM=class extends g.YB{constructor(p){super();this.w5=p;this.Ag=new Map}};var Xv=class extends WKM{constructor(p,a,l){super(p);this.EO=l;a.get().addListener(this);this.addOnDisposeCallback(()=>{a.nz()||a.get().removeListener(this)})}fv(p,a){if(a)if(p==="skip-button"){p=[]; for(const l of this.Ag.values()){const y=l.trigger;y instanceof $C&&l.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&y.triggeringLayoutId===a&&p.push(l)}p.length&&p1(this.w5(),p)}else dp(this.EO.get(),"supports_multi_step_on_desktop")?p==="ad-action-submit-survey"&&ww(this,a):p==="survey-submit"?ww(this,a):p==="survey-single-select-answer-button"&&ww(this,a)}HP(p){const a=[];for(const l of this.Ag.values()){const y=l.trigger;y instanceof $C&&l.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&& y.triggeringLayoutId===p&&a.push(l)}a.length?p1(this.w5(),a):Q("Mute requested but no registered triggers can be activated.")}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof PH||a instanceof $C))throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in AdUxUpdateTriggerAdapter.");this.Ag.set(a.triggerId,new GU(p,a,l,y))}Co(p){this.Ag.delete(p.triggerId)}Ar(){}lY(){}Mf(){}};var xo=class extends g.YB{constructor(p){super();this.L=p;this.Vh=!0;this.Ag=new Map;this.X=new Set;this.U=new Set;this.j=new Set;this.D=new Set;this.S=new Set}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof aa||a instanceof lm||a instanceof zo||a instanceof ow||a instanceof mF||a instanceof QX||a instanceof Ne||a instanceof UB||a instanceof wt||a instanceof h6||a instanceof $g||a instanceof Y7))throw new N("Incorrect TriggerType: Tried to register trigger of type "+ a.triggerType+" in AdsControlFlowEventTriggerAdapter");p=new GU(p,a,l,y);this.Ag.set(a.triggerId,p);a instanceof mF&&this.X.has(a.triggeringSlotId)&&p1(this.L(),[p]);a instanceof aa&&this.U.has(a.triggeringSlotId)&&p1(this.L(),[p]);a instanceof UB&&this.S.has(a.triggeringLayoutId)&&p1(this.L(),[p])}Co(p){this.Ag.delete(p.triggerId)}I9(p){this.X.add(p.slotId);const a=[];for(const l of this.Ag.values())l.trigger instanceof mF&&p.slotId===l.trigger.triggeringSlotId&&a.push(l);a.length>0&&p1(this.L(), a)}vl(p){this.X.delete(p.slotId);const a=[];for(const l of this.Ag.values()){const y=l.trigger;y instanceof QX&&y.triggeringSlotId===p.slotId&&a.push(l)}a.length>0&&p1(this.L(),a)}A5(p){const a=[];for(const l of this.Ag.values()){const y=l.trigger;y instanceof Ne&&y.slotType===p.slotType&&y.L!==p.slotId&&a.push(l)}a.length>0&&p1(this.L(),a)}M2(p){this.U.add(p.slotId);const a=[];for(const l of this.Ag.values())l.trigger instanceof aa&&p.slotId===l.trigger.triggeringSlotId&&a.push(l);a.length>0&&p1(this.L(), a)}rP(p){this.U.delete(p.slotId);this.j.add(p.slotId);const a=[];for(const l of this.Ag.values())if(l.trigger instanceof lm)p.slotId===l.trigger.triggeringSlotId&&a.push(l);else if(l.trigger instanceof Y7){const y=l.trigger;p.slotId===y.slotId&&this.S.has(y.triggeringLayoutId)&&a.push(l)}a.length>0&&p1(this.L(),a)}Hl(p){const a=[];for(const l of this.Ag.values())l.trigger instanceof zo&&p.slotId===l.trigger.triggeringSlotId&&a.push(l);a.length>0&&p1(this.L(),a)}Rv(p){const a=[];for(const l of this.Ag.values())l.trigger instanceof ow&&p.slotId===l.trigger.triggeringSlotId&&a.push(l);a.length>0&&p1(this.L(),a)}NA(p,a){this.D.add(a.layoutId)}Y3(p,a){this.D.delete(a.layoutId)}VQ(p,a){this.S.add(a.layoutId);const l=[];for(const S of this.Ag.values())if(S.trigger instanceof UB)a.layoutId===S.trigger.triggeringLayoutId&&l.push(S);else if(S.trigger instanceof $g){var y=S.trigger;p.slotType===y.slotType&&a.layoutType===y.layoutType&&a.layoutId!==y.L&&l.push(S)}else S.trigger instanceof Y7&&(y=S.trigger,a.layoutId===y.triggeringLayoutId&& this.j.has(y.slotId)&&l.push(S));l.length>0&&p1(this.L(),l)}lr(p,a,l){this.S.delete(a.layoutId);p=[];for(const y of this.Ag.values())if(y.trigger instanceof wt&&a.layoutId===y.trigger.triggeringLayoutId&&p.push(y),y.trigger instanceof h6){const S=y.trigger;a.layoutId===S.triggeringLayoutId&&S.L.includes(l)&&p.push(y)}p.length>0&&p1(this.L(),p)}Ty(){}O2(){this.j.clear()}eT(){}};var HdF=class extends g.YB{constructor(p){super();this.L=p;this.Ag=new Map}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof Sc))throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CloseRequestedTriggerAdapter");this.Ag.set(a.triggerId,new GU(p,a,l,y))}Co(p){this.Ag.delete(p.triggerId)}};var Fv=class extends g.YB{constructor(p,a,l){super();this.L=p;this.context=l;this.Ag=new Map;a.get().addListener(this);this.addOnDisposeCallback(()=>{a.nz()||a.get().removeListener(this)})}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot."); if(!(a instanceof SZ||a instanceof y5))throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Ag.set(a.triggerId,new GU(p,a,l,y))}Co(p){this.Ag.delete(p.triggerId)}O2(p){const a=[];var l=a.push,y=this.Ag,S=[];for(const n of y.values())n.trigger instanceof SZ&&n.trigger.OG===p&&S.push(n);l.call(a,...S);l=a.push;y=this.Ag;S=[];for(const n of y.values())n.trigger instanceof y5&&n.trigger.L!==p&&S.push(n);l.call(a,...S); a.length&&p1(this.L(),a)}eT(p){const a=[];var l=a.push,y=this.Ag;const S=[];for(const n of y.values())y=n.trigger,y instanceof y5&&y.L===p&&S.push(n);l.call(a,...S);a.length&&p1(this.L(),a)}};var El=class extends g.YB{constructor(p,a,l,y,S){super();this.S=p;this.BZ=a;this.sO=l;this.MO=y;this.context=S;this.Vh=!0;this.Ag=new Map;this.L=new Set;l.get().addListener(this);this.addOnDisposeCallback(()=>{l.nz()||l.get().removeListener(this)})}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot."); const S=`${"adtriggercuerange"}:${a.triggerId}`;if(a instanceof zY)Bj$(this,p,a,l,y,S,a.L.start,a.L.end,a.OG,a.visible);else if(a instanceof Aj)Bj$(this,p,a,l,y,S,0x7ffffffffffff,0x8000000000000,a.OG,a.visible);else throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in CueRangeTriggerAdapter");}Co(p){const a=this.Ag.get(p.triggerId);a&&this.BZ.get().removeCueRange(a.cueRangeId);this.Ag.delete(p.triggerId)}onCueRangeEnter(p){var a=ZHq(this,p);if(a&&(a=this.Ag.get(a)))if(N1(this.sO.get()).L(32))this.L.add(a.cueRangeId); else{var l=a?.D$.trigger;if(l instanceof zY||l instanceof Aj)GY(this.context.EO.get())&&this.context.FG.eb("cre",{ca:a.D$.category,tt:l.triggerType,st:a.D$.slot.slotType,lt:a.D$.layout?.layoutType,cid:p}),p1(this.S(),[a.D$])}}onCueRangeExit(p){(p=ZHq(this,p))&&(p=this.Ag.get(p))&&this.L.delete(p.cueRangeId)}pv(p){if(qJ(p,16)<0){for(const a of this.L)this.onCueRangeEnter(a,!0);this.L.clear()}}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}VQ(){}lr(){}Ty(){}r4(){}onFullscreenToggled(){}lN(){}zM(){}SR(){}onVolumeChange(){}qb(){}PG(){}};var DBf=class extends g.YB{constructor(p,a){super();this.j=p;this.S=new Map;this.U=new Map;this.L=null;a.get().addListener(this);this.addOnDisposeCallback(()=>{a.nz()||a.get().removeListener(this)}); this.L=a.get().hv?.slotId||null}q7(p,a,l,y){if(this.S.has(a.triggerId)||this.U.has(a.triggerId))throw new N("Tried to re-register the trigger.");p=new GU(p,a,l,y);if(p.trigger instanceof Y_)this.S.set(p.trigger.triggerId,p);else if(p.trigger instanceof qK)this.U.set(p.trigger.triggerId,p);else throw new N("Incorrect TriggerType: Tried to register trigger of type "+p.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.S.has(p.trigger.triggerId)&&p.slot.slotId===this.L&&p1(this.j(), [p])}Co(p){this.S.delete(p.triggerId);this.U.delete(p.triggerId)}Nm({slotId:p}){if(this.L!==p){var a=[];this.L!=null&&a.push(...xXr(this.U,this.L));p!=null&&a.push(...xXr(this.S,p));this.L=p;a.length&&p1(this.j(),a)}}Gz(){}uF(){}};var C4=class extends g.YB{constructor(p){super();this.L=p;this.Vh=!0;this.Ag=new Map}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof w$))throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Ag.set(a.triggerId,new GU(p,a,l,y))}Co(p){this.Ag.delete(p.triggerId)}VQ(){}lr(){}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}};var vh=class extends g.YB{constructor(p){super();this.L=p;this.Vh=!0;this.Ag=new Map}Ty(p,a){const l=[];for(const y of this.Ag.values()){const S=y.trigger;S.opportunityType===p&&(S.associatedSlotId&&S.associatedSlotId!==a||l.push(y))}l.length&&p1(this.L(),l)}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof Us))throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in OpportunityEventTriggerAdapter"); this.Ag.set(a.triggerId,new GU(p,a,l,y))}Co(p){this.Ag.delete(p.triggerId)}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}VQ(){}lr(){}};var K4=class extends g.YB{constructor(p,a,l,y,S,n){super();this.D=p;this.z9=a;this.sO=l;this.uT=y;this.rE=n;this.L=null;this.j=!1;this.Vh=!0;this.Ag=new Map;a.get().addListener(this);this.addOnDisposeCallback(()=>{a.nz()||a.get().removeListener(this)}); S.get().addListener(this);this.addOnDisposeCallback(()=>{S.nz()||S.get().removeListener(this)})}q7(p,a,l,y){p=new GU(p,a,l,y); if(a instanceof dV||a instanceof fq||a instanceof Jj||a instanceof Jr||a instanceof Inr){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");this.Ag.set(a.triggerId,p)}else throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in PrefetchTriggerAdapter");}Co(p){this.Ag.delete(p.triggerId)}I9(p){const a=p.slotFulfillmentTriggers.find(l=>l instanceof dV); a&&(KH(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",a.breakDurationMs,new Set([p.slotId]),!0),W8(this.uT.get(),"ads_css",`sid.${p.slotId};bd.${a.breakDurationMs}`))}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}VQ(){}lr(){}Ty(){}Sn(p){if(!this.L)return Q("Unexpected cue break before fetch instructions are available"),!1;this.S&&this.S.stop();this.X&&this.X.JP();const a=q1$(this,p);if(!a){var l=oAA(this);const y=this.G!==void 0&&Date.now()<=this.G+1E4;W8(this.uT.get(),"ads_ncfs",`cid.${p.identifier};cd.${p.Hy.toFixed(3)};ccs.${y};cfa.${this.j};bdc.${l.length};${l.slice(0, 6).map(S=>`;bd.${S}`).join("")}`); return y?(kx(this.rE,this.L,p),!0):!1}(l=a.slot.clientMetadata.t9("metadata_type_triggering_cue_point"))?l.current=p:Q("Expected triggering cue point ref to be available",a.slot);(new g.SF(()=>{const y=a.trigger,S=a.slot;KH(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",y.breakDurationMs,new Set,!0);KH(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",y.breakDurationMs,new Set,!1);let n=0;for(const V of this.Ag.values()){const Z=V.trigger;V.slot.slotId===S.slotId&& (this.Ag.delete(Z.triggerId),n++)}W8(this.uT.get(),"ads_csf",`sid.${S.slotId};bd.${y.breakDurationMs};dt.${n}`)},10)).start(); return!0}o2(){}O2(p){this.j=!1;this.G=Date.now();this.L&&this.L.contentCpn!==p?(Q("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:p,fetchInstructionsCpn:this.L.contentCpn}),TU(this)):(this.U=new g.SF(()=>{if(this.j)delete this.U;else{var a=this.sO.get().getGetAdBreakContext();Number(a?.livePlaybackPosition?.utcTimeMillis)>0?(delete this.U,zcM(this)):this.U?.start()}},200),this.U?.start())}eT(p){this.L&&this.L.contentCpn!==p&&Q("Expected content video of the current fetch instructions to end", void 0,void 0,{contentCpn:p, fetchInstructionsCpn:this.L.contentCpn},!0);TU(this)}qp(p){if(this.L)Q("Unexpected multiple fetch instructions for the current content");else{this.L=p;p=bHZ(p);this.S=new g.SF(()=>{zcM(this)},p?p:6E5); this.S.start();this.X=new g.SF(()=>{this.L&&(this.S&&(this.S.stop(),this.S.start()),ZmO(this,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},qW$(this.L)); p=this.sO.get().getCurrentTimeSec(1,!1);for(const a of this.z9.get().Ov)W8(this.uT.get(),"nocache",`ct.${Date.now()};cmt.${p};d.${a.Hy.toFixed(3)};tw.${a.startSecs-p};cid.${a.identifier};`)}}fz(){super.fz();TU(this)}};var idA=class extends g.YB{constructor(p){super();this.U=p;this.Vh=!0;this.Ag=new Map;this.L=new Map;this.S=new Map}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof g9))throw new N("Incorrect TriggerType: Tried to register trigger "+`of type ${a.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Ag.set(a.triggerId,new GU(p,a,l,y));p=this.L.has(a.triggeringLayoutId)?this.L.get(a.triggeringLayoutId):new Set;p.add(a); this.L.set(a.triggeringLayoutId,p)}Co(p){this.Ag.delete(p.triggerId);if(!(p instanceof g9))throw new N("Incorrect TriggerType: Tried to unregister trigger "+`of type ${p.triggerType}`+" in TimeRelativeToLayoutEnterTriggerAdapter");var a=this.S.get(p.triggerId);a&&(a.dispose(),this.S.delete(p.triggerId));if(a=this.L.get(p.triggeringLayoutId))a.delete(p),a.size===0&&this.L.delete(p.triggeringLayoutId)}I9(){}vl(){}A5(){}M2(){}rP(){}Hl(){}Rv(){}NA(){}Y3(){}Ty(){}VQ(p,a){if(this.L.has(a.layoutId)){p=this.L.get(a.layoutId); for(const l of p)p=new g.SF(()=>{const y=this.Ag.get(l.triggerId);p1(this.U(),[y])},l.durationMs),p.start(),this.S.set(l.triggerId,p)}}lr(){}};var eE=class extends g.YB{constructor(p){super();this.L=p;this.Ag=new Map}q7(p,a,l,y){if(this.Ag.has(a.triggerId))throw new N("Tried to register duplicate trigger for slot.");if(!(a instanceof fG))throw new N("Incorrect TriggerType: Tried to register trigger of type "+a.triggerType+" in VideoTransitionTriggerAdapter.");this.Ag.set(a.triggerId,new GU(p,a,l,y))}Co(p){this.Ag.delete(p.triggerId)}};var bM=class{constructor(p){this.EO=p;this.S=new Map;this.L=new Map;this.U=new Map}};var Ic=class{constructor(p,a){this.S=p;this.EO=a;this.L=l=>R$(this.S.get(),l)}};var Rc=class{constructor(p,a,l){this.S=p;this.U=a;this.EO=l;this.L=y=>R$(this.S.get(),y)}qa(p){return p.kind==="AD_PLACEMENT_KIND_START"}};var gNv=class{L(p){p&&g.i0("adsSeenClientLogging",{serializedAdServingDataEntry:p.serializedAdServingDataEntry})}};var Tih=class extends g.YB{constructor(p,a){super();this.EO=p;this.G=a;this.eventCount=0;this.K=Y8h()()}logEvent(p){this.j(p)}S(p,a,l){this.j(p,void 0,void 0,void 0,a,void 0,void 0,void 0,a.adSlotLoggingData,void 0,void 0,l)}L(p,a,l,y){this.j(p,void 0,void 0,void 0,a,l?l:void 0,void 0,void 0,a.adSlotLoggingData,l?l.adLayoutLoggingData:void 0,void 0,y);p=Fh().resolve(EV(C2))?.Q8();a=p?.adsHotConfig;p?.adsSeenHotConfig?.logOnAdsSeen&&a?.webEnablePremiumAdsSeenLogging&&JJe(this,l?l:void 0,y)}D(p,a,l, y){dp(this.EO.get(),"h5_enable_pacf_debug_logs")&&console.log(`[PACF]: ${p}`,"trigger:",l,"slot:",a,"layout:",y);Ts(this.G.get())&&this.j(p,void 0,void 0,void 0,a,y?y:void 0,void 0,l,a.adSlotLoggingData,y?y.adLayoutLoggingData:void 0)}X(p,a,l,y,S){this.j(p,a,l,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,S)}U(p,a,l,y){this.j("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,l,y,void 0,void 0,l.adSlotLoggingData,y?y.adLayoutLoggingData:void 0,{errorType:p,errorMessage:a})}j(p,a,l,y,S,n,V,Z, z,d,G,B=0){dp(this.EO.get(),"h5_enable_pacf_debug_logs")&&console.log(`[PACF]: ${p}`,"slot:",S,"layout:",n,"ping:",V,"Opportunity:",{opportunityType:a,associatedSlotId:l,Fyu:y,m2O:Z,adSlotLoggingData:z,adLayoutLoggingData:d});try{const c=()=>{if(!this.EO.get().B.O().A("html5_disable_client_tmp_logs")&&p!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){p||Q("Empty PACF event type",S,n);var w=Ts(this.G.get());const X={eventType:p,eventOrder:++this.eventCount},v={};S&&(v.slotData=e_(w,S));n&&(v.layoutData=aOe(w, n));V&&(v.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:V.L.serializedAdPingMetadata,pingIndex:V.index});Z&&(v.triggerData=XU(Z.trigger,Z.category));a&&(v.opportunityData=Iah(w,a,l,y));w={organicPlaybackContext:{contentCpn:H8(this.MO.get(),1).clientPlaybackNonce}};w.organicPlaybackContext.isLivePlayback=H8(this.MO.get(),1).va;w.organicPlaybackContext.isMdxPlayback=H8(this.MO.get(),1)?.isMdxPlayback;H8(this.MO.get(),1)?.daiEnabled&&(w.organicPlaybackContext.isDaiContent= !0);const I=H8(this.MO.get(),2)?.clientPlaybackNonce;I&&(w.adVideoPlaybackContext={adVideoCpn:I});w&&(v.externalContext=w);X.adClientData=v;z&&(X.serializedSlotAdServingData=z.serializedSlotAdServingDataEntry);d&&(X.serializedAdServingData=d.serializedAdServingDataEntry);G&&(X.errorInfo=G);g.i0("adsClientStateChange",{adsClientEvent:X})}}; B&&B>0?g.wM(g.vT(),()=>c(),B):c()}catch(c){dp(this.EO.get(),"html5_log_pacf_logging_errors")&&g.wM(g.vT(),()=>{Q(c instanceof Error?c:String(c),S,n,{pacf_message:"exception during pacf logging"})})}}};var Nir=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" ")),EeZ=class extends Tih{constructor(p,a,l,y){super(p,a);this.EO=p;this.MO=l;this.context=y}S(p,a,l){super.S(p,a,l);GY(this.EO.get())&&this.context.FG.eb("pacf",{et:p, st:a.slotType,si:a.slotId})}L(p,a,l,y){const S=Nir.has(p);super.L(p,a,l,y);GY(this.EO.get(),S)&&this.context.FG.eb("pacf",{et:p,st:a.slotType,si:a.slotId,lt:l?.layoutType,li:l?.layoutId,p_ac:l?.layoutId})}X(p,a,l,y,S){super.X(p,a,l,y,S);GY(this.EO.get())&&this.context.FG.eb("pacf",{et:p,ot:a,ss:y?.length})}D(p,a,l,y){super.D(p,a,l,y);GY(this.EO.get())&&this.context.FG.eb("pacf",{et:p,tt:l.trigger.triggerType,tc:l.category,st:a.slotType,si:a.slotId,lt:y?.layoutType,li:y?.layoutId,p_ac:y?.layoutId})}U(p, a,l,y){super.U(p,a,l,y);GY(this.EO.get(),!0)&&this.context.FG.eb("perror",{ert:p,erm:a,st:l.slotType,si:l.slotId,lt:y?.layoutType,li:y?.layoutId,p_ac:y?.layoutId})}j(p,a,l,y,S,n,V,Z,z,d,G){var B=this.EO.get();g.ur(B.B.O())?(B=this.EO.get(),B=g.ak(B.B.O().experiments,"H5_async_logging_delay_ms")):B=void 0;super.j(p,a,l,y,S,n,V,Z,z,d,G,B)}};var uM=class{constructor(){this.L=new Map}clear(){this.L.clear()}};var Bk=class{constructor(p){this.L="pending";this.S=[];this.U=[];try{p(this.j.bind(this),this.reject.bind(this))}catch(a){this.reject(a)}}state(){return this.L==="fulfilled"?{state:"fulfilled",value:this.result}:this.L==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}j(p){Gv(p)||dC(p)?HW(La(p),this.j.bind(this),this.reject.bind(this)):(this.L="fulfilled",this.result=p,sm(this))}reject(p){this.L="rejected";this.error=p;sm(this)}},dC=EI(p=>mWo(p)?p instanceof Bk:!1);var iS=window.Rvs||"es";var R_=class{constructor(){this.j=new Set;this.S=new Set;this.X=new Map;this.client=void 0;this.csn=null}U(p){this.client=p}L(){this.clear();this.csn=g.c2()}clear(){this.j.clear();this.S.clear();this.X.clear();this.csn=null}};var tg=class{U(p){g.Oc(u3().U).bind(u3())(p)}clear(){g.Oc(u3().clear).bind(u3())()}};var pl=class{constructor(){this.K=[];this.C=[];this.L=[];this.D=[];this.UO=[];this.j=new Map;this.G=new Map;this.S=new Set;this.jl=new Map}U(p){this.client=p}Sl(p,a={}){g.Oc(()=>{const l=g.K(p?.commandMetadata,g.ng)?.rootVe||g.K(p?.commandMetadata,x0r)?.screenVisualElement?.uiType;if(l){var y=g.K(p?.commandMetadata,sco);if(y?.parentTrackingParams){var S=g.dn(y.parentTrackingParams);if(y.parentCsn)var n=y.parentCsn}else a.clickedVisualElement?S=a.clickedVisualElement:p.clickTrackingParams&&(S=g.dn(p.clickTrackingParams)); a:{y=g.K(p,g.zK);var V=g.K(p,tEF);if(y){if(V=V8r(y,"VIDEO")){y={token:V,videoId:y.videoId};break a}}else if(V&&(y=V8r(V,"PLAYLIST"))){y={token:y,playlistId:V.playlistId};break a}y=void 0}a={cttAuthInfo:y,parentCsn:n,...a};g.nU("expectation_logging")&&(a.loggingExpectations=g.K(p?.commandMetadata,x0r)?.loggingExpectations||void 0);f3(this,l,S,a)}else g.tX(new g.Qm("Error: Trying to create a new screen without a rootVeType",p))})()}clickCommand(p,a,l=0){return f$v(this,p.clickTrackingParams,a,l)}stateChanged(p, a,l=0){this.visualElementStateChanged(g.dn(p),a,l)}visualElementStateChanged(p,a,l=0){l===0&&this.S.has(l)?this.C.push([p, a]):eWM(this,p,a,l)}};var Qg=class{fetch(p,a,l){const y=EhM(p,a,l);return new Promise((S,n)=>{const V=()=>{if(l?.TF)try{const Z=this.handleResponse(p,y.status,y.response,l);S(Z)}catch(Z){n(Z)}else S(this.handleResponse(p,y.status,y.response,l))}; y.onerror=V;y.onload=V;y.send(a.body??null)})}handleResponse(p,a,l,y){l=l.replace(")]}'",""); let S;try{S=JSON.parse(l)}catch(n){g.tX(new g.Qm("JSON parsing failed after XHR fetch",p,a,l));if(y?.TF&&l)throw new g.iZ("JSON parsing failed after XHR fetch");S={}}a!==200&&(g.tX(new g.Qm("XHR API fetch failed",p,a,l)),S={...S,errorMetadata:{status:a}});return S}};var kg=class{static getInstance(){let p=g.o1("ytglobal.storage_");p||(p=new kg,g.eo("ytglobal.storage_",p));return p}async estimate(){const p=navigator;if(p.storage?.estimate)return p.storage.estimate();if(p.webkitTemporaryStorage?.queryUsageAndQuota)return tmM()}};g.eo("ytglobal.storageClass_",kg);var siv=class{constructor(p,a){this.handleError=p;this.L=a;this.S=!1;self.document===void 0||self.addEventListener("beforeunload",()=>{this.S=!0}); this.U=Math.random()<=.2}Tf(p){this.handleError(p)}logEvent(p,a){switch(p){case "IDB_DATA_CORRUPTED":g.nU("idb_data_corrupted_killswitch")||this.L("idbDataCorrupted",a);break;case "IDB_UNEXPECTEDLY_CLOSED":this.L("idbUnexpectedlyClosed",a);break;case "IS_SUPPORTED_COMPLETED":g.nU("idb_is_supported_completed_killswitch")||this.L("idbIsSupportedCompleted",a);break;case "QUOTA_EXCEEDED":x5v(this,a);break;case "TRANSACTION_ENDED":this.U&&Math.random()<=.1&&this.L("idbTransactionEnded",a);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":this.L("idbTransactionAborted", {...a,hasWindowUnloaded:this.S})}}};var IwF=g.Wl("yt-player-local-media",{WO:{index:{ID:2},media:{ID:2},captions:{ID:5}},shared:!1,upgrade(p,a){a(2)&&(g.lU(p,"index"),g.lU(p,"media"));a(5)&&g.lU(p,"captions");a(6)&&($x(p,"metadata"),$x(p,"playerdata"))},version:5});var UBq={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},Ol;a:{var ko=g.Vo();ko=ko.toLowerCase();if(g.uB(ko,"android")){var Qih=ko.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Qih){const p=parseFloat(Qih[1]);if(p<100){Ol=p;break a}}var huM=ko.match("("+Object.keys(UBq).join("|")+")");Ol=huM?UBq[huM[0]]:0}else Ol=void 0}var M0=Ol,gO=M0>=0;var FMM=Uy(()=>window.matchMedia?.("(prefers-reduced-motion: reduce)").matches);var pX;g.f0=new yRe;pX=0;g.AC$=class{constructor(p){this.videoData=p;this.L={c1a:()=>{const a=[];if(g.f0.isInitialized()){var l="";this.videoData&&this.videoData.v8&&(l=this.videoData.v8+`&${"r1b"}=${this.videoData.clientPlaybackNonce}`);l={atr_challenge:l};Jl("bg_v",void 0,"player_att");(l=n_o(l))?(Jl("bg_s",void 0,"player_att"),a.push(`${"r1a"}=${l}`)):(Jl("bg_e",void 0,"player_att"),a.push("r1c=2"))}else Jl("bg_e",void 0,"player_att"),window.trayride||window.botguard?a.push("r1c=1"):a.push("r1c=4");a.push(`${"r1d"}=${g.f0.getState()}`); return a.join("&")}, c6a:a=>"r6a="+(Number(a.c)^Qq()), c6b:a=>`${"r6b"}=${Number(a.c)^Number(g.R("CATSTAT",0))}`}; this.videoData&&this.videoData.v8?this.Po=cd(this.videoData.v8):this.Po={}}};var ig=Wfr()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.av?!0:!1;var Ab={oV:function(p){p[r[29]]()}, bT:function(p,a){var l=p[0];p[0]=p[a%p[r[9]]];p[a%p[r[9]]]=l}, Kc:function(p,a){p[r[25]](0,a)}};var q4v={A1:"adunit",yM:"detailpage",kU:"editpage",tW:"embedded",QJ:"leanback",aV:"previewpage",rV:"profilepage",dO:"unplugged",u0:"playlistoverview",PB:"sponsorshipsoffer",pV:"shortspage",wb:"handlesclaiming",pB:"immersivelivepage",SV:"creatormusic",I5:"immersivelivepreviewpage",bL:"admintoolyurt",TZ:"shortsaudiopivot",CS:"consumption"};var mPh=2592E3;var NR;g.AW={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"};NR={RIGHT_CONTROLS_LEFT:"ytp-right-controls-left",RIGHT_CONTROLS_RIGHT:"ytp-right-controls-right"};var KGA={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Zsv={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},eoe={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"},g5O={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var RQ$={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Tr=class{constructor(p,a){this.id=p;this.rG=a;this.captionTracks=[];this.U=this.j=null;this.xtags="";this.X=!1;this.L=null;this.S="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";p=this.rG.id.split(".");p.length>1&&(this.X=p[1]==="2")}getLanguageInfo(){return this.rG}getXtags(){if(!this.xtags){const p=this.id.split(";");p.length>1&&(this.xtags=p[1])}return this.xtags}toString(){return this.rG.name}};g.Tr.prototype.getLanguageInfo=g.Tr.prototype.getLanguageInfo;var fa=class{constructor(p,a,l,y,S=0){this.S=p;this.L=a;this.U=l;this.reason=y;this.Sb=S}equals(p){return this.S===p.S&&this.L===p.L&&this.U===p.U&&this.reason===p.reason&&(!Uf||this.Sb===p.Sb)}isLocked(){return this.U&&!!this.S&&this.S===this.L}compose(p){if(p.U&&Jx(p))return qN;if(p.U||Jx(this))return p;if(this.U||Jx(p))return this;let a=this.S&&p.S?Math.max(this.S,p.S):this.S||p.S;const l=this.L&&p.L?Math.min(this.L,p.L):this.L||p.L;a=Math.min(a,l);let y=0;Uf&&(y=this.Sb!==0&&p.Sb!==0?Math.min(this.Sb, p.Sb):this.Sb===0?p.Sb:this.Sb);return Uf&&a===this.S&&l===this.L&&y===this.Sb||!Uf&&a===this.S&&l===this.L?this:Uf?new fa(a,l,!1,l===this.L&&y===this.Sb?this.reason:p.reason,y):new fa(a,l,!1,l===this.L?this.reason:p.reason)}j(p){return!p.video||Uf&&this.Sb!==0&&this.Sbp.j(S)),l=[],y={}; for(let S=0;Sp.j(a))}getAvailableAudioTracks(){return this.audioTracks}L(){return!!this.S}};var dWM=new Set(["356"]),q5e=class extends g.YB{constructor(){super(...arguments);this.L=null}fz(){super.fz()}};var BGM;g.Xh=class{constructor(p,a=!1){this[r[18]]=p;this[r[11]]=a;this[r[28]]=this[r[14]]=this[r[57]]=r[27];this[r[7]]={};this[r[31]]=r[27]}set(p,a){this[r[7]][p]!==a&&(this[r[7]][p]=a,this[r[31]]=r[27])}get(p){ar(5,this);return this[r[7]][p]||null}G9(){this[r[31]]||(this[r[31]]=nA(27,this));return this[r[31]]}clone(){const p=new g.Xh(this[r[18]],this[r[11]]);p[r[57]]=this[r[57]];p[r[14]]=this[r[14]];p[r[28]]=this[r[28]];p[r[7]]=g.O1(this[r[7]]);p[r[31]]=this[r[31]];return p}};BGM=[YKo];var fV=class{constructor(p,a,l,y,S,n,V,Z,z){this.Gm=p;this.startTime=a;this.duration=l;this.ingestionTime=y;this.sourceURL=S;this.S5=z;this.endTime=a+l;this.L=V||0;this.range=n||null;this.pending=Z||!1;this.S5=z||null}};g.tc=class{constructor(){this.segments=[];this.S=null;this.X=!0;this.D=""}G(p){this.segments.push(p)}NJ(p){return!!this.U(p)}getDuration(p){return(p=this.U(p))?p.duration:0}C(p){return this.getDuration(p)}H2(){return 0}xT(){return this.segments.length?this.segments[0].Gm:-1}By(p){return(p=this.U(p))?p.ingestionTime:NaN}VL(){return this.segments.length?this.segments[this.segments.length-1].Gm:-1}FH(p){return this.VL()===p&&!this.X&&p>=0}KU(){const p=this.segments[this.segments.length-1];return p?p.endTime: NaN}NE(){return this.segments[0].startTime}Ll(){return this.segments.length}L(){return 0}ov(p){return(p=this.j(p))?p.Gm:-1}K(p){return(p=this.U(p))?p.sourceURL:""}getStartTime(p){return(p=this.U(p))?p.startTime:0}F$(p){return this.getStartTime(p)+this.getDuration(p)}isLoaded(){return this.segments.length>0}U(p){if(this.S&&this.S.Gm===p)return this.S;p=g.Q0(this.segments,new fV(p,0,0,0,""),(a,l)=>a.Gm-l.Gm); return this.S=p>=0?this.segments[p]:null}j(p){if(this.S&&this.S.startTime<=p&&pa.startTime-l.startTime); return this.S=p>=0?this.segments[p]:this.segments[Math.max(0,-p-2)]}append(p){if(p.length)if(p=g.WW(p),this.segments.length){var a=this.segments.length?g.V$(this.segments).endTime:0,l=p[0].Gm-this.VL();l>1&&ea$(this.segments);l=l>0?0:-l+1;for(let y=l;y1?p=p.yU:(a=$O(a,HE(this,this.So(p,a),p)),p=Math.max(this.X,a.timedOut)+p.zT*(this.U-this.X)+.25*this.K,p=p>3?1E3*1.6**(p-3):0);return p===0?!0:this.UO+p<(0,g.h)()}N(p,a){this.L.set(p,a);this.S.set(p,a);this.j&&this.j.set(p,a)}s8(p){return this.S.get(p)}J5(){return this.S.get("cpn")||""}vW(p,a){p.P9===this.L&&(this.L= zb(p,a));p.P9===this.j&&(this.j=zb(p,a))}Sl(){this.C=!0}qt(){return this.L!==this.j&&!this.D}};var jE=class{constructor(p,a,l,y){this.initRange=l;this.indexRange=y;this.S=null;this.UO=!1;this.ac=0;this.Sl=this.qk=this.C=null;this.info=a;this.gG=new jU$(p)}L(){return!!this.S&&this.index.isLoaded()}w7(){return!1}Ic(p){return[p]}Ws(p){return[p]}};var PR=class{constructor(p,a){this.start=p;this.end=a;this.length=a-p+1}toString(){return this.start+"-"+(this.end==null?"":this.end)}L(){return this.end==null?{start:String(this.start)}:{start:String(this.start),end:String(this.end)}}};var g$=class{constructor(p,a,l,y="",S,n,V,Z,z,d,G,B=""){this.type=p;this.L=a;this.range=l;this.source=y;this.Nb=G;this.clipId=B;this.N=[];this.K="";this.Gm=-1;this.Sl=0;this.K=y;this.Gm=S>=0?S:-1;this.startTime=n||0;this.duration=V||0;this.S=Z||0;this.U=z>=0?z:this.range?this.range.length:NaN;this.j=this.range?this.S+this.U===this.range.length:d===void 0?!!this.U:d;this.range?(this.X=this.startTime+this.duration*this.S/this.range.length,this.C=this.duration*this.U/this.range.length,this.D=this.X+ this.C):Zrr(this)}G(){return this.j&&this.L.index.FH(this.Gm)}isEncrypted(){return this.L.info.isEncrypted()}equals(p){return!(!p||p.L!==this.L||p.type!==this.type||(this.range&&p.range?p.range.start!==this.range.start||p.range.end!==this.range.end:p.range!==this.range)||p.Gm!==this.Gm||p.S!==this.S||p.U!==this.U)}UO(){return this.type===4}n1(){return!!this.L.info.video}jl(){return this.Gm}HZ(){const p=Av(this);let a="";g.yo(p,(l,y)=>{a+=`${y}_${l}_`}); return a.slice(0,-1)}};var Al=class{constructor(p,a){this.Yv=p;this.j=this.L=null;this.X=this.wE=NaN;this.So=this.requestId=null;this.hg={fIz:()=>this.range}; this.gG=p[0].L.gG;this.S=a||"";this.Yv[0].range&&this.Yv[0].U>0&&(MwO(p)?(this.range=tnv(p),this.U=this.range.length):(this.range=this.Yv[this.Yv.length-1].range,this.U=d1h(p)))}Cy(){return this.L?this.L.G9():""}isDecorated(){return!!(this.L||this.j&&this.j.PW)}K8(){return V6(this.Yv[0])}vW(p,a){this.gG.vW(p,a);if(this.L){this.L=zb(p,a);for(const l of["acpns","cpn","daistate","skipsq"])this.L["set"](l,null)}this.requestId=p.get("req_id")}};var bh=class extends jE{constructor(p,a,l,y,S,n=0){super(p,a,y);this.Tm=l;this.VZ=n;this.index=S||new g.tc}U(){return!1}K(){return!0}jl(){return!1}w7(){return!this.Tm}G(){return new Al([new g$(1,this,this.initRange,"getMetadataRequestInfo")],this.Tm)}N(){return null}QY(p){this.j(p);return this.K()&&p.U&&!p.j?new Al([new g$(p.type,p.L,p.range,"liveGetNextRequestInfoBySegment",p.Gm,p.startTime,p.duration,p.S+p.U,NaN,!0)],this.index.K(p.Gm)):this.X(xz(p),!1)}D(p,a=!1){p=this.index.ov(p);a&&(p=Math.min(this.index.VL(), p+1));return this.X(p,!0)}Hs(p){QU(p)}j(p){return p.U===0?!0:this.index.VL()>p.Gm&&this.index.xT()<=p.Gm+1}update(p,a,l){this.index.append(p);nKf(this.index,l);p=this.index;p.X=a;p.D="update"}L(){return this.w7()?!0:super.L()}X(p,a){const l=this.index.K(p),y=this.index.getStartTime(p);let S=this.index.getDuration(p),n;a?S=n=0:n=this.info.Sb>0?this.info.Sb*S:1E3;return new Al([new g$(3,this,void 0,"liveCreateRequestInfoForSegment",p,y,S,0,n,!a)],l)}Bs(){return this.w7()?0:this.initRange.length}Rc(){return!1}};var fjO=class{constructor(p,a,l,y,S){this.Gm=p;this.startSecs=a;this.Hy=l;this.L=y||NaN;this.S=S||NaN}};var VY=class{constructor(){this.L=[];this.S=null;this.D=0;this.U=[];this.X=!1;this.G="";this.j=-1}update(p){var a=void 0;this.S&&(a=this.S);{const X=new VY;var l=Array.from(p.getElementsByTagName("S"));if(l.length){var y=+PX(p,"timescale")||1,S=(+l[0].getAttribute("t")||0)/y,n=+PX(p,"startNumber")||0;X.j=S;var V=a?a.startSecs+a.Hy:0,Z=Date.parse(e2F(PX(p,"yt:segmentIngestTime")))/1E3;X.X=p.parentElement.tagName==="SegmentTemplate";X.X&&(X.G=PX(p,"media"));p=a?n-a.Gm:1;X.D=p>0?0:-p+1;for(w of l){p= +w.getAttribute("d")/y;l=(+w.getAttribute("yt:sid")||0)/y;const v=+w.getAttribute("r")||0;for(let I=0;I<=v;I++)if(a&&n<=a.Gm)n++;else{var z=new fjO(n,V,p,Z+l,S);X.L.push(z);b:{var d=w;var G=y,B=z.startSecs;z=d.getAttribute("yt:cuepointTimeOffset");var c=d.getAttribute("yt:cuepointDuration");if(!z||!c){d=null;break b}z=Number(z);B=-z/G+B;G=Number(c)/G;c=d.getAttribute("yt:cuepointContext")||null;const u=d.getAttribute("yt:cuepointIdentifier")||"";d=d.getAttribute("yt:cuepointEvent")||"";d=new NH(B, G,c,u,JCO[d]||"unknown",z)}d&&X.U.push(d);n++;V+=p;S+=p;Z+=p+l}}X.L.length&&(X.S=g.V$(X.L))}var w=X}this.D=w.D;this.S=w.S||this.S;g.nn(this.L,w.L);g.nn(this.U,w.U);this.X=w.X;this.G=w.G;this.j===-1&&(this.j=w.getStreamTimeOffset())}getStreamTimeOffset(){return this.j===-1?0:this.j}};var p_v=class{constructor(){this.j=[];this.L=null;this.S={};this.U={}}};var a9v=class extends g.tc{constructor({VZ:p=0,xr:a=!1,WI:l=0,aM:y=0,M0:S=Infinity,bF:n=0,IX:V=!1,OF:Z=!1}={}){super();this.Ui=this.DE=-1;this.lG=p;this.WI=l;this.xr=a;this.aM=y;this.M0=S;this.bF=n;((this.IX=V)||isFinite(S)&&this.M0>0)&&a&&yL&&(this.X=!1,this.D="postLive");this.OF=Z}H2(){return this.lG}NJ(p,a){p=rm(this,p);return p>=0&&(a||!this.segments[p].pending)}xT(){return this.xr?this.segments.length?this.j(this.NE()).Gm:-1:super.xT()}NE(){if(this.IX)return 0;if(!this.xr)return super.NE();if(!this.segments.length)return 0; const p=Math.max(g.V$(this.segments).endTime-this.WI,0);return this.aM>0&&this.j(p).Gm0)return this.Ui/1E3;if(!this.segments.length)return super.KU();var p=this.VL();if(!this.xr||p<=this.segments[this.segments.length-1].Gm)p=this.segments[this.segments.length-1];else{var a=this.segments[this.segments.length-1];p=new fV(p,Math.max(0,a.startTime-(a.Gm-p)*this.lG),this.lG,0,`sq/${p}`,void 0,void 0,!0)}return this.IX?Math.min(this.WI, p.endTime):p.endTime}Ll(){return this.xr?this.segments.length?this.VL()-this.xT()+1:0:super.Ll()}VL(){let p=Math.min(this.M0,Math.max(super.VL(),this.DE));var a=this.WI*1E3;a=this.Ui>0&&this.Ui0&&this.DE>0&&!a&&(a=this.j(this.WI))&&(p=Math.min(a.Gm-1,p));return p}wM(){return this.segments.length?this.segments[this.segments.length-1]:null}G(p){var a=rm(this,p.Gm);if(a>=0)this.segments[a]=p;else if(this.segments.splice(-(a+1),0,p),this.bF&&p.Gm%(300/this.lG)===0){var l=this.segments[0].Gm, y=Math.floor(this.bF/this.lG);p=p.Gm-y;a=-(a+1)-y;a>0&&p>l&&(this.segments=this.segments.slice(a))}}UO(p){p=rm(this,p);p>=0&&this.segments.splice(p,1)}w6(){return this.DE}FH(p){return yL?!this.X&&p>=0&&this.VL()<=p:super.FH(p)}j(p){if(!this.xr)return super.j(p);if(!this.segments.length)return null;var a=this.segments[this.segments.length-1];if(p=a.endTime)a=a.Gm+Math.floor((p- a.endTime)/this.lG+1);else{a=Am(this.segments,y=>p=y.endTime?1:0); if(a>=0)return this.segments[a];var l=-(a+1);a=this.segments[l-1];l=this.segments[l];a=Math.floor((p-a.endTime)/((l.startTime-a.endTime)/(l.Gm-a.Gm-1))+1)+a.Gm}return this.U(a)}U(p){if(!this.xr)return super.U(p);if(!this.segments.length)return null;var a=rm(this,p);if(a>=0)return this.segments[a];const l=-(a+1);a=this.lG;if(l===0)var y=Math.max(0,this.segments[0].startTime-(this.segments[0].Gm-p)*a);else l===this.segments.length?(y=this.segments[this.segments.length-1],y=y.endTime+(p-y.Gm-1)*a):(y= this.segments[l-1],a=this.segments[l],a=(a.startTime-y.endTime)/(a.Gm-y.Gm-1),y=y.endTime+(p-y.Gm-1)*a);return new fV(p,y,a,0,`sq/${p}`,void 0,void 0,!0)}},yL=!1;var REZ=class extends bh{constructor(p,a,l={}){super(p,a,"",void 0,void 0,l.VZ||0);this.index=new a9v(l)}jl(){return!0}L(){return!0}j(p){return this.K()&&p.U&&!p.j||!p.L.index.FH(p.Gm)}G(){}D(p,a=!1){return typeof p!=="number"||isFinite(p)?super.D(p,a):new Al([new g$(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.VZ,void 0,this.VZ*this.info.Sb)],"")}X(p,a){if(this.index.NJ(p))return super.X(p,a);const l=this.index.getStartTime(p);let y=Math.round(this.VZ*this.info.Sb),S=this.VZ;a&&(S= y=0);return new Al([new g$(3,this,void 0,"mlLiveCreateReqInfoForSeg",p,l,S,void 0,y,!a)],p>=0?`sq/${p}`:"")}};var uDF=class extends jE{constructor(p,a){super(p,a);p=this.index=new g.tc;p.X=!1;p.D="d"}U(){return!1}K(){return!1}jl(){return!1}G(){return new Al([new g$(1,this,void 0,"otfInit")],"sq/0")}N(){return null}QY(p){this.j(p);return Ewq(this,xz(p),!1)}D(p,a=!1){p=this.index.ov(p);a&&(p=Math.min(this.index.VL(),p+1));return Ewq(this,p,!0)}Hs(p){p.info.type===1&&(this.S||(this.S=fw(p.S)),p.L&&p.L.uri==="http://youtube.com/streaming/otf/durations/112015"&&ADr(this,p.L))}j(p){return p.U===0?!0:this.index.VL()> p.Gm&&this.index.xT()<=p.Gm+1}Bs(){return 0}Rc(){return!1}};var dAO,l9f,BBA,csv,G3r;g.Xj=class{constructor(p){this.tag=p}};dAO=new Map;l9f=class{constructor(){this.L=new Map;this.hg={s4z:()=>this.L}}}; BBA=class{constructor(){this.L=10;this.S=Date.now()}};csv=new Map;G3r=new l9f;var h5=class{constructor(p,a){this.info=p;this.S=a;this.L=null;this.j=this.U=-1;this.timestampOffset=0;this.isLocked=this.G=!1;this.X=this.info.L.w7()&&!this.info.S}D(p,a=!1,l=0){if(this.isLocked||p.isLocked||!Hi(this.info,p.info)||this.info.j)return null;if(l){if(this.S.totalLength+p.S.totalLength>l)return null}else if(a&&(a=this.S,l=p.S,a=!(l.L.length?vIq(a,l.L[0]):1)),a)return null;a=new g$(this.info.type,this.info.L,this.info.range,this.info.K,this.info.Gm,this.info.startTime,this.info.duration, this.info.S,this.info.U,this.info.j,this.info.Nb,this.info.clipId);l=p.info;a.U+=l.U;a.range&&(a.C+=l.C);a.D=l.D;a.j=l.j;l=new F8;EC(l,this.S);EC(l,p.S);a=new h5(a,l);a.L!=null&&p.L!=null&&g.G3("dash",414627957,`merged slice emsg overridden; prev: ${a.L.It()} next: ${p.L.It()}`);a.L=p.L||this.L;a.U=this.U!==-1?this.U:p.U;a.j=this.j!==-1?this.j:p.j;return a}};g.Wh=class{constructor(){this.count=0;this.S=1;this.U=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}NJ(p){return p<=this.VL()}L(p){return this.offsets[p]}getStartTime(p){return this.startTicks[p]/this.S}F$(p){return this.getStartTime(p)+this.getDuration(p)}By(){return NaN}getDuration(p){p=this.C(p);return p>=0?p/this.S:-1}C(p){return p+1=0}KU(){return this.U?this.startTicks[this.count]/this.S:NaN}NE(){return 0}Ll(){return this.count}K(){return""}ov(p){p=g.Q0(this.startTicks.subarray(0,this.count),p*this.S);return p>=0?p:Math.max(0,-p-2)}isLoaded(){return this.VL()>=0}X8(p,a){if(p>=this.VL())return 0;let l=0;for(a=this.getStartTime(p)+a;pthis.getStartTime(p);p++)l=Math.max(l,xPh(this,p)/this.getDuration(p));return l}resize(p){p+=2;const a=this.offsets;this.offsets=new Float64Array(p+1);const l=this.startTicks;this.startTicks= new Float64Array(p+1);for(p=0;pthis.sK(S,n,V,Z)}; this.index=new g.Wh}G(p,a){var l=new g$(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a);const y=[new g$(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a),l];this.info.contentLength>0&&p&&(l=l.range.end+1,p=Math.min(p,this.info.contentLength-l),p>0&&y.push(new g$(4,this,hl(l,p),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a)));return new Al(y)}Hs(p){if(p.info.type===1){if(this.S)return;this.S=fw(p.S)}else if(p.info.type=== 2){if(this.X||this.index.VL()>=0)return;if(g.Ta(this.info)){var a=this.index,l=g.N7(p);p=p.info.range.start;var y=g.VZ(l,0,1936286840);l=J8o(y);a.S=l.timescale;var S=l.lm;a.offsets[0]=l.Pm+p+y.size;a.startTicks[0]=S;a.U=!0;var n=l.Ik.length;for(var V=0;V0&&l===n[0].Rh)for(l=0;l=a+l)break}S.length||(p=new g.Qm("b189619593",`${p}`,`${a}`,`${l}`),g.MD(p));return new Al(S)}Ic(p){const a=this.Ws(p.info),l=p.info.range.start+p.info.S,y=[];for(let S=0;S=this.index.L(l+1);)l++;return this.sK(l,a,p.U).Yv}j(p){p.G();return this.L()? !0:p.range.end+1this.info.contentLength&&(a=new PR(a.start,this.info.contentLength-1)),new Al([new g$(4,p.L,a,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,p.clipId)]);p.type===4&&(p=this.Ws(p),p=p[p.length-1]);let l=0;const y=p.range.start+p.S+p.U;p.type===3&&(p.G(),l=p.Gm,y===p.range.end+1&&(l+=1));return this.sK(l,y,a)}QY(){return null}D(p,a=!1){p=this.index.ov(p);a&&(p=Math.min(this.index.VL(), p+1));return this.sK(p,this.index.L(p),0,void 0)}U(){return!0}K(){return!0}jl(){return!1}Bs(){return this.indexRange.length+this.initRange.length}Rc(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1}};var B$F=class{constructor(p,a,l,y="",S="",n=""){this.displayName=p;this.vssId=a;this.languageCode=l;this.kind=y;this.xtags=S;this.id=n}};var D3e={COLOR_PRIMARIES_BT709:"bt709",COLOR_PRIMARIES_BT2020:"bt2020",COLOR_PRIMARIES_UNKNOWN:null,COLOR_PRIMARIES_UNSPECIFIED:null},Jso={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.mG=class{constructor(p,a,l){this.name=p;this.id=a;this.isDefault=l}getName(){return this.name}getId(){return this.id}getIsDefault(){return this.isDefault}toString(){return this.name}};g.mG.prototype.getName=g.mG.prototype.getName;g.mG.prototype.getId=g.mG.prototype.getId;g.mG.prototype.getIsDefault=g.mG.prototype.getIsDefault;var L3F=/action_display_post/;var Vh=class extends g.js{constructor(p="",a=null,l=!1){super();this.sourceUrl=p;this.isLivePlayback=l;this.ac=this.duration=0;this.isPremiere=this.IX=this.X=this.isLiveHeadPlayable=this.isLive=this.S=!1;this.M0=this.aM=0;this.isOtf=this.va=!1;this.Hs=(0,g.h)();this.Sl=Infinity;this.L={};this.U=new Map;this.state=this.a9=0;this.K=null;this.isManifestless=!1;this.w7=[];this.D=null;this.Ws=0;this.G="";this.Bs=NaN;this.QY=this.Ha=this.timestampOffset=this.C=0;this.HG=this.vk=NaN;this.Ba=0;this.Rc=this.N= !1;this.iT=[];this.Ps={};this.jl=NaN;this.hg={tbs:y=>{db(this,y)}}; this.VY=a?.Cz("html5_use_network_error_code_enums");jsE=!!a&&a.Cz("html5_modern_vp9_mime_type");uq=!!a?.Cz("html5_enable_flush_during_seek")&&g.VI();O0=!!a?.Cz("html5_enable_reset_audio_decoder")&&g.VI()}isLoading(){return this.state===1}bU(){return this.state===3}Tm(){return g.AF(this.L,p=>!!p.info.video&&p.info.video.qualityOrdinal>=2160)}j(){return g.AF(this.L,p=>!!p.info.uf)}NO(p){var a=p.getElementsByTagName("Representation"); if(p.getElementsByTagName("SegmentList").length>0||p.getElementsByTagName("SegmentTemplate").length>0){this.va=this.S=!0;this.K||(this.K=new p_v);gxA(this.K,p);this.publish("refresh");for(p=0;p=0?B=oK(c):w=`${w}?range=${c}`}Z.call(S,new fV(z.Gm,z.startSecs,z.Hy,z.L,w,B,z.S))}y=d}l.update(y,this.isLive,this.ac)}MoM(this.K);return!0}this.duration=s$h(PX(p,"mediaPresentationDuration"));a:{for(V=0;V{})}}resume(){Ht$(this)}UE(){if(this.isManifestless&&this.X&&ds(this))return ds(this); const p=this.L;let a=!1,l=NaN,y=NaN;for(const n in p){const V=p[n];var S=V.index;S.isLoaded()&&!eg(V.info.mimeType)&&(V.Sl&&(a=!0),S=S.KU(),V.info.Bi()&&(isNaN(l)||S0))return this.UE()-p}}p=this.L;for(const a in p){const l=p[a].index;if(l.isLoaded()&&!eg(p[a].info.mimeType))return l.NE()}return 0}getStreamTimeOffset(){return this.C}By(p){for(const a in this.L){const l= this.L[a].index;if(l.isLoaded()){const y=l.ov(p),S=l.By(y);if(S)return S+p-l.getStartTime(y)}}return NaN}Fu(){for(const p in this.L)this.L.hasOwnProperty(p)&&(this.L[p].S=null,this.L[p].UO=!1)}},jsE,uq,O0,CE=null,XA=!!navigator.mediaCapabilities?.decodingInfo,q6F={commentary:1,alternate:2,dub:3,main:4};var xx=new Set,zS=new Map;var fDM=class{constructor(p){this.g7=p;this.dG=this.Ql=this.w7=this.X=this.j=this.Zl=this.Bs=this.UO=!1;this.G=this.D=0;this.ac=!1;this.N=!0;this.Rc=!1;this.a7=0;this.bx=this.jl=!1;this.Ba=!0;this.QY=this.Ws=!1;this.L={};this.Ps=this.VY=this.Ha=this.disableAv1=this.Tm=this.zn=this.Ic=this.iT=this.S=this.K=!1;this.Sl=0;this.Ye=this.g7.A("html5_disable_aac_preference");this.E6=Infinity;this.BT=0;this.Lx=this.g7.Mc();this.NO=this.g7.experiments.Cz("html5_enable_vp9_fairplay");this.tP=this.g7.A("html5_force_av1_for_testing"); this.Hs=g.ak(this.g7.experiments,"html5_av1_ordinal_cap");this.wq=this.g7.A("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.Kx=this.g7.A("html5_account_onesie_format_selection_during_format_filter");this.Sb=g.ak(this.g7.experiments,"html5_max_byterate");this.Fu=this.g7.A("html5_enable_iamf_audio");this.ZN=this.g7.experiments.Cz("html5_allow_capability_merge");this.Ro=this.g7.A("html5_enable_encrypted_av1")}};var Nc=class{constructor(p,a,l,y){this.flavor=p;this.keySystem=a;this.U=l;this.experiments=y;this.S={};this.ac=this.keySystemAccess=null;this.Hf=this.Rw=-1;this.jo=null;this.j=!!y&&y.Cz("edge_nonprefixed_eme");y&&y.Cz("html5_enable_vp9_fairplay")}clone(p){return new Nc(this.flavor,p,this.U,this.experiments)}L(){return this.keySystem==="com.youtube.fairplay.sbdl"}mS(){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}}},qM={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.youtube.widevine.l3","com.widevine.alpha"]},Y2r={widevine:"DRM_SYSTEM_WIDEVINE",fairplay:"DRM_SYSTEM_FAIRPLAY",playready:"DRM_SYSTEM_PLAYREADY"},y7Z={widevine:1,fairplay:2,playready:3};var Che=class extends g.YB{constructor(p,a,l,y=!1,S){super();this.g7=a;this.useCobaltWidevine=y;this.Xu=S;this.S=[];this.U={};this.L={};this.callback=null;this.X=!1;this.j=[];this.initialize(p,!l)}initialize(p,a){for(const y of Object.keys(p)){var l=y;for(const S of p[l])if(S.uf)for(const n of Object.keys(S.uf)){l=n;let V=qM[n];!V&&this.A("html5_enable_vp9_fairplay")&&l==="fairplay"&&(V=["com.youtube.fairplay.sbdl"]);if(V)for(const Z of V)this.U[Z]=this.U[Z]||new Nc(l,Z,S.uf[l],this.g7.experiments), this.L[l]=this.L[l]||{},this.L[l][S.mimeType]=!0}}Ca()&&(this.U["com.youtube.fairplay"]=new Nc("fairplay","com.youtube.fairplay","",this.g7.experiments),this.A("html5_enable_vp9_fairplay")||(this.L.fairplay=this.L.fairplay||{},this.L.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.L.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.S=aVM(a,this.useCobaltWidevine,this.A("html5_enable_safari_fairplay")&&!0,this.A("html5_enable_vp9_fairplay")).filter(y=>!!this.U[y])}A(p){return this.g7.experiments.Cz(p)}}, RW;var SPM={"":"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 ndM={OFF:"0",ON:"1",Ox:"2",xM:"3"};var VVO=class{constructor(p){this.experiments=p;this.L=2048;this.j=0;this.UO=(this.G=this.A("html5_streaming_resilience"))?.5:.25;this.U=g.ak(this.experiments,"html5_media_time_weight_prop")||0;this.C=(this.X=this.experiments.Cz("html5_consider_end_stall"))&&ig;this.S=this.experiments.Cz("html5_measure_max_progress_handling");this.K=this.A("html5_treat_requests_pre_elbow_as_metadata");this.D=this.A("html5_media_time_weight")||!!this.U;this.A("html5_sabr_live_audio_early_return_fix")&&ig&&(this.L= 65536)}A(p){return this.experiments.Cz(p)}};var Zyr={RED:"red",DcV:"white"};var odE=class{constructor(p){p=$e(p.serializedClientExperimentFlags??"","&");this.flags=new Map(Object.entries(p).map(([a,l])=>typeof l==="string"?[a,l]:[a,l[0]]))}Zy(p){if(p.mX!==3)throw Error("WpccFlagRetriever only supports WPCC flags"); return nI$(this,p)}Cz(p){return this.flags.get(`${p}`)==="true"}};var zSh=class{constructor(p,a,l){this.L=void 0;this.experimentIds=p?p.split(","):[];this.flags=$e(a||"","&");p={};for(const y of this.experimentIds)p[y]=!0;this.experiments=p;l=new odE(l);this.U=new bgf(l);this.S=new eRE(l)}e8(){return this.U}Da(){return this.S}Cz(p){p=this.Zy(p);JSON.stringify(p);return p==="true"}Zy(p){return this.flags[p]}};var dgM=Promise.resolve(),GPM=p=>dgM.then(p),GUe=window.queueMicrotask?window.queueMicrotask.bind(window):GPM;var w_M=class{constructor(p,a,l=!1){this.experiments=p;this.jl=a;this.w7=l;this.C=!!g.o1("cast.receiver.platform.canDisplayType");this.K={};this.UO=!1;this.j=new Map;this.G=!0;this.S=this.U=!1;this.L=new Map;this.N=0;this.Sl=this.experiments.Cz("html5_disable_vp9_encrypted");this.X=this.experiments.Cz("html5_enable_encrypted_av1");p=g.o1("cast.receiver.platform.getValue");this.D=!this.C&&p&&p("max-video-resolution-vpx")||null;sQM(this);this.U=!!(Ca()&&Gp()>=21)}canPlayType(p,a){p=p.canPlayType?p.canPlayType(a): !1;hX?p=p||BYf[a]:M0===2.2?p=p||c7v[a]:oJ()&&(p=p||r7O[a]);return!!p}isTypeSupported(p){return this.C?window.cast.receiver.platform.canDisplayType(p):xB(p)}},c7v={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},r7O={"application/x-mpegURL":"maybe"},BYf={"application/x-mpegURL":"maybe"};var $gr=class extends g.js{constructor(){super();this.items={}}add(p,a){if(!this.items[p]&&(a.Qt||a.ZS||a.Ns)){var l=this.items;let y=a;Object.isFrozen&&!Object.isFrozen(a)&&(y=Object.create(a),Object.freeze(y));l[p]=y;this.publish("vast_info_card_add",p)}}remove(p){const a=this.get(p);delete this.items[p];return a}get(p){return this.items[p]||null}isEmpty(){return g.P6(this.items)}};var P5F=class{constructor(p,a){this.L=p;this.cipher=this.L.exports.AES128CTRCipher_create(a.byteOffset)}encrypt(p){this.L.exports.AES128CTRCipher_encrypt(this.cipher,p.byteOffset,p.byteLength);return p}nz(){return this.cipher===0}dispose(){this.L.exports.AES128CTRCipher_release(this.cipher);this.cipher=0}};var Syv=class{constructor(){this.S=this.ow=0;this.L=Array.from({length:Hh.length}).fill(0)}G_(p,a=1){this.ow+=a;this.S+=p;p/=a;for(let l=0;ln.apply(Z,[G].concat(V)))}}}}Pn(){return new X_r}oz(p,a,l=1){a instanceof X_r&&(VGO(this,p,(0,g.h)()-a.startTimeMs,l),a.L=!0)}Kj(p,a){const l=(0,g.h)(); a=a();m3M(this,a,p,l)}V0(){const p={};for(const l in this.L)if(this.L.hasOwnProperty(l)){a:{var a=this.L[l];if(a.ow===0){a=null;break a}let y=Math.ceil(a.ow).toFixed(0)+"."+a.S.toFixed(0);for(let S=0;S0)y+="."+Hh[S].toFixed(0)+"_"+a.L[S].toFixed(0);else break;a=y}a&&(p[l]=a)}this.L=new LXv;return p}toString(){return""}};var DE=new class{isActive(){return!1}hR(){}Pn(){}oz(){}Kj(p,a){a()}V0(){return{}}toString(){return""}},FXh=!!+U0("html5_enable_profiler"),EdZ=!!+U0("html5_onesie_enable_profiler"),iM=FXh||EdZ?new xgE:DE,rnM=FXh?iM:DE,ax=EdZ?iM:DE;var C5v=class{emscripten_notify_memory_growth(){}},vdq=class{constructor(){this.proc_exit=()=>{}; this.fd_write=(p,a,l)=>{if(!this.exports)return 1;p=new Uint32Array(this.exports.memory.buffer,a,l*2);a=[];for(let S=0;SS+n.length,0)}}},i_q=class{constructor(){this.env=new C5v; this.wasi_snapshot_preview1=new vdq}};var VV=class{constructor(p,a,l){this.instance=p;this.L=l;this.exports=this.instance.exports;a.wasi_snapshot_preview1.exports=this.exports;p=Math.floor(Math.random()*256);a=Math.floor(Math.random()*256);l=0;try{l=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,l,16)).fill(p);if(this.exports.sentinel(l,16,a)!==a*16%256)throw"wasm.wm.vi";const y=new Uint8Array(this.exports.memory.buffer,l,16);for(let S=0;S<16;S++)if(y[S]!==(p+a)%256)throw`wasm.wm.vi${S}`;}finally{l!==0&&this.exports.free(l)}}malloc(p){return this.exports.malloc(p)}free(p){this.exports.free(p)}realloc(p, a){return this.exports.realloc(p,a)}CH(p){if(p.buffer!==this.exports.memory.buffer){var a=this.malloc(p.byteLength);a=new Uint8Array(this.exports.memory.buffer,a,p.byteLength);a.set(p);return a}}Hr(p){if(p.buffer===this.exports.memory.buffer){var a=p.slice();this.free(p.byteOffset);return a}}},HCh=new class{constructor(){this.L=this.S="WebAssembly"in window}},nH="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); ax.hR(VV,{CH:p=>({profile:"copyj2w",ow:p===void 0?0:Math.ceil(p.byteLength/16)}), Hr:p=>({profile:"copyw2j",ow:p===void 0?0:Math.ceil(p.byteLength/16)})});var KXE=class{constructor(p,a,l){this.L=p;this.U=!1;a=this.L.CH(a);this.S=new P5F(p,a);this.L.free(a.byteOffset);this.j=this.L.CH(l)}encrypt(p,a){try{return this.L.Hr(PGF(this,p,a))}catch(l){g.tX(Error(`ocwce: wasm encrypt failed: ${l}`))}}X(p,a){try{const n=PGF(this,p,a),V=this.L.CH(a);var l=this.L;p=n;var y=this.j;const Z=new Uint8Array(l.exports.memory.buffer,l.malloc(32),32);l.exports.Sha256Hmac(y.byteOffset,y.byteLength,V.byteOffset,V.byteLength,p.byteOffset,p.byteLength,Z.byteOffset);var S= Z;this.L.free(V.byteOffset);return{ew:this.L.Hr(n),signature:this.L.Hr(S)}}catch(n){g.tX(Error(`ocwceas: wasm encryptAndSign failed: ${n}`))}}nz(){return this.U}dispose(){this.nz()||(g.Er(this.S),this.L.free(this.j.byteOffset),this.U=!0)}};var eSo=class extends g.YB{constructor(p,a,l){super();this.encryptedClientKey=a;this.G=l;this.S=new Uint8Array(p.buffer,0,16);this.U=new Uint8Array(p.buffer,16)}D(p){this.L=new KXE(p,this.S,this.U);g.H(this,this.L)}};var byE=class extends g.YB{constructor(p,a){super();if(!a&&p)try{a=JSON.parse(p)}catch{}if(a){p=a.clientKey?ye(a.clientKey):null;var l=a.encryptedClientKey?ye(a.encryptedClientKey):null,y=a.keyExpiresInSeconds?Number(a.keyExpiresInSeconds)*1E3+(0,g.h)():null;p&&l&&y&&(this.L=new eSo(p,l,y),g.H(this,this.L));a.onesieUstreamerConfig&&(this.onesieUstreamerConfig=ye(a.onesieUstreamerConfig)||void 0);this.baseUrl=a.baseUrl}}};var T7,sD=class{constructor(){this.data=new Uint8Array(2048);this.pos=0;T7||(T7=hG("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}add(p){if(this.pos+20>this.data.length){const a=new Uint8Array(this.data.length*2);a.set(this.data);this.data=a}for(;p>31;)this.data[this.pos++]=T7[(p&31)+32],p>>=5;this.data[this.pos++]=T7[p|0]}Lq(){return g.io(this.data.subarray(0,this.pos))}reset(){this.pos=0}};var N0=class{constructor(p){this.L=this.S=0;this.alpha=Math.exp(Math.log(.5)/p)}xn(p,a){const l=this.alpha**p;this.L=a*(1-l)+l*this.L;this.S+=p}Pi(){return this.L/(1-this.alpha**this.S)}};var I9h=class{constructor(p=15){this.S=p;this.values=new Float64Array(176);this.L=new Float64Array(11);this.U=new Float64Array(16)}xn(p,a){for(var l=0;l<10;l++){var y=this.L[l],S=y+(l===0?p:0),n=1*Math.pow(2,l);if(S<=n)break;y=Math.min(1,(S-n*.5)/y);for(S=0;S<16;S++)n=this.values[l*16+S]*y,this.values[(l+1)*16+S]+=n,this.L[l+1]+=n,this.values[l*16+S]-=n,this.L[l]-=n}y=l=0;S=8192;a>8192&&(l=Math.ceil(Math.log(a/8192)/Math.log(2)),y=8192*Math.pow(2,l-1),S=y*2);l+2>16?this.values[15]+=p:(a=(a-y)/(S- y),this.values[l]+=p*(1-a),this.values[l+1]+=p*a);this.L[0]+=p}Pi(){return Aah(this)}};var sl=class{constructor(p,a,l=.5,y=0){this.resolution=a;this.S=0;this.U=!1;this.Ls=!0;this.L=Math.round(p*this.resolution);this.values=Array(this.L);for(p=0;p=this.L&&(this.U=!0);for(;p--;)this.values[this.S]=a,this.S=(this.S+1)%this.L;this.Ls=!0}percentile(p){if(!this.U&&this.S===0)return 0;this.Ls&&(g.cL(this.X,(a,l)=>this.values[a]-this.values[l]), this.Ls=!1); return this.values[this.X[Math.round(p*((this.U?this.L:this.S)-1))]]||0}Pi(){return this.D?(this.percentile(this.j-this.D)+this.percentile(this.j)+this.percentile(this.j+this.D))/3:this.percentile(this.j)}};var RSr=class extends g.YB{constructor(p,a,l,y){super();this.policy=p;this.S=a;this.TR=l;this.ac=y;this.Sl=this.Hs=0;this.N=-1;this.jl=this.X=0;this.UO=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.QY=this.D=(0,g.h)();this.K=new sl(4,1,.6,.4);this.w7=new sl(4,1,.6,.4);this.G=new sl(20,1,.5,.4);p.N?this.U=new I9h(p.L):p.S?this.U=new N0(p.L):this.U=new sl(p.L,20,.5,.4);this.Ws=new sl(5,1,.25);this.C=new sl(30,1,.5);p=g.Wk("yt-player-bandwidth")||{};a=this.policy.U;p.byterate>0?(a=p.byterate, this.UO=!0):(l=(navigator.connection?.downlink||0)*64*1024,l>0&&(a=l,this.UO=!0));this.U.xn(this.policy.D,a);p.delay>0&&this.K.xn(1,Math.min(p.delay,2));p.stall>0&&this.G.xn(1,p.stall);p.init>0&&(this.QY=Math.min(p.init,this.QY));p.interruptions&&(this.j=this.j.concat(p.interruptions),this.j.length>16&&this.j.pop());this.N=(0,g.h)();this.policy.G>0&&(this.Bs=new g.SF(this.Rc,this.policy.G,this),g.H(this,this.Bs),this.Bs.start())}Rc(){this.Bs?.start();IS(this)&&this.policy.K&&(this.TR?this.TR.wN(): this.ac())}};var TGO=class{constructor(p){this.experiments=p;this.L=17;this.U=13E4;this.D=.5;this.j=this.S=!1;this.N=this.A("html5_use_histogram_for_bandwidth");this.X=g.ak(this.experiments,"html5_auxiliary_estimate_weight");this.UO=g.ak(this.experiments,"html5_stall_factor")||1;this.G=g.ak(this.experiments,"html5_check_for_idle_network_interval_ms");this.K=this.experiments.Cz("html5_trigger_loader_when_idle_network");this.C=this.experiments.Cz("html5_sabr_fetch_on_idle_network_preloaded_players")}A(p){return this.experiments.Cz(p)}};var uro=class extends g.YB{constructor(){super();this.values={};this.nw={};this.S={};this.U=this.L=0;this.j=new g.SF(()=>{Xqh(this)},1E4); g.H(this,this.j)}};var OyE="blogger discover-ads ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),KfM={FA:"caoe",h1:"capsv",Qx:"cbrand",D9:"cbr",Aj:"cbrver",rS:"cchip",Z9:"ccappver",oW:"ccrv",PM:"cfrmver",cE:"c",Zf:"cver",i9:"ctheme",Jc:"cplayer",x5:"cmodel",Vd:"cnetwork",gV:"cos",OS_VERSION:"cosver",H3:"cplatform",BB:"crqyear"},kPv=class extends g.YB{constructor(p,a,l,y,S){super();this.webPlayerContextConfig=a;this.vG= y;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.dE=this.Ps=this.Ye=this.OY=this.userDisplayName=this.userDisplayImage=this.UY="";this.L={};this.NO={};this.controlsType="0";this.E6=NaN;this.Tm=!1;this.g$=(0,g.h)();this.VY=0;this.GM=this.K9=!1;this.A3=!0;this.preferGapless=this.R7=this.PZ=this.U=this.OC=!1;this.o1=[];this.bf=!1;this.rA=0;p=p?g.O1(p):{};a&&a.csiPageType&&(this.csiPageType=a.csiPageType);a&&a.csiServiceName&&(this.csiServiceName=a.csiServiceName);a&&a.preferGapless&&(this.preferGapless= a.preferGapless);this.experiments=new zSh(a?a.serializedExperimentIds:p.fexp,a?a.serializedExperimentFlags:p.fflags,a??{});this.forcedExperiments=a?a.serializedForcedExperimentIds:t_("",p.forced_experiments)||void 0;this.cspNonce=a?.cspNonce?a.cspNonce:t_("",p.csp_nonce);jjF(this.A("web_player_deprecated_uvr_killswitch"));try{var n=document.location.toString()}catch(w){n=""}this.ir=n;this.ancestorOrigins=(y=window.location.ancestorOrigins)?Array.from(y):[];this.j=EA(!1,a?a.isEmbed:p.is_embed);a&& a.device?qLM(this,a.device):(this.L.c=p.c||"web",this.L.cver=p.cver||"html5",this.L.cplayer="UNIPLAYER");this.loaderUrl=a?this.j||Ep(this)&&a.loaderUrl?a.loaderUrl||"":this.ir:this.j||Ep(this)&&p.loaderUrl?t_("",p.loaderUrl):this.ir;this.j&&g.eo("yt.embedded_player.embed_url",this.loaderUrl);this.K=oY(this.loaderUrl,ZBo);this.Gw=vvZ(this.loaderUrl);this.Ha=EA(!1,p.privembed);this.protocol=this.ir.indexOf("http:")===0?"http":"https";this.Rd=IRe((a?a.customBaseYoutubeUrl:p.BASE_YT_URL)||"")||IRe(this.ir)|| `${this.protocol}://www.youtube.com/`;this.w7=JGF(this,a?a.eventLabel:p.el);X3r();y=null;n=a?a.playerStyle:p.ps;const V=g.tU(OyE,n);!n||V&&!this.K||(y=n);this.playerStyle=y;this.D=g.tU(OyE,this.playerStyle);this.houseBrandUserStatus=a?.houseBrandUserStatus;this.N=this.D&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.tD=!this.N;this.Bs=EA(!1,p.disableplaybackui);this.disablePaidContentOverlay=EA(!1,a?.disablePaidContentOverlay);this.disableSeek=EA(!1,a?.disableSeek);this.enableSpeedOptions= a?.enableSpeedOptions||(OQ().defaultPlaybackRate?VQ||g.an||Gd?g.cq&&zX("20")||g.TF&&zX("4")||g.rR&&zX("11")||Kf():!(g.rR&&!g.IW("chrome")||VQ||g.IW("android")||g.IW("silk")):!1);this.iW=EA(!1,p.enable_faster_speeds);this.supportsVarispeedExtendedFeatures=a?.supportsVarispeedExtendedFeatures??!1;this.S=EA(this.playerStyle==="blazer",p.is_html5_mobile_device||a&&a.isMobileDevice);this.Hs=XG()||lY();this.vk=this.A("mweb_allow_background_playback")?!1:this.S&&!this.D;this.Ws=JJ();this.p9=g.zM;this.nC= !!a?.embedsHostFlags?.optOutApiDeprecation;var Z;a?a.hideInfo!==void 0&&(Z=!a.hideInfo):Z=p.showinfo;this.uK=g.x3(this)&&!this.nC||EA(!LJ(this)&&!wP(this)&&!this.D,Z);this.Es=a?!!a.mobileIphoneSupportsInlinePlayback:EA(!1,p.playsinline);Z=this.S&&gO&&M0!=null&&M0>0&&M0<=2.3;y=a?a.useNativeControls:p.use_native_controls;this.G=g.x3(this)&&this.S;n=this.S&&!this.G;y=g.vK(this)||!Z&&EA(n,y)?"3":"1";this.disableOrganicUi=!!a?.disableOrganicUi;n=a?a.controlsType:p.controls;this.controlsType=this.disableOrganicUi|| n==="0"||n===0?"0":y;this.A$=this.S;this.controlsType==="1"&&(this.A$||O4("2",a?a.autohide:p.autohide,ndM));this.color=O4("red",a?a.progressBarColor:p.color,Zyr);this.Sp=this.controlsType==="3";this.Lx=!this.j;this.G4=(y=!this.Lx&&!wP(this)&&!this.N&&!this.D&&!LJ(this))&&!this.Sp&&this.controlsType==="1";this.Kx=g.UO(this)&&y&&this.controlsType==="0"&&!this.G4&&!a?.embedsEnableEmc3ds;this.Aa=this.W8=Z;this.Ba=(this.controlsType==="3"||this.S||EA(!1,p.use_media_volume))&&!this.G;this.n8=Tj&&!g.Nf(601)? !1:!0;this.Q5=this.j||!1;this.Wy=wP(this)?"":(this.loaderUrl||p.post_message_origin||"").substring(0,128);this.widgetReferrer=t_("",a?a.widgetReferrer:p.widget_referrer);var z;a?a.disableCastApi&&(z=!1):z=p.enablecastapi;z=!this.K||EA(!0,z);Z=!0;a&&a.disableMdxCast&&(Z=!1);this.d4=this.A("enable_cast_for_web_unplugged")&&g.CP(this)&&Z||g.cf(this)&&Z||z&&Z&&this.controlsType==="1"&&!this.S&&(wP(this)||g.UO(this)||g.jJ(this));this.DH=!!window.document.pictureInPictureEnabled||EG();z=a?!!a.supportsAutoplayOverride: EA(!1,p.autoplayoverride);this.L1=!(this.S&&!g.x3(this))&&!g.IW("nintendo wiiu")||z;this.DF=(a?!!a.enableMutedAutoplay:EA(!1,p.mutedautoplay))&&!1;z=(wP(this)||LJ(this))&&this.playerStyle==="blazer";this.g4=a?!!a.disableFullscreen:!EA(!0,p.fs);Z=g.qZ(g.cb(this))&&g.x3(this);this.iT=!this.g4&&(z||g.gm())&&!Z;this.w8=this.A("html5_picture_in_picture_logging_onresize");this.d8=g.ak(this.experiments,"html5_picture_in_picture_logging_onresize_ratio")??.33;this.jo=this.A("html5_picture_in_picture_blocking_onresize"); this.Xv=this.A("html5_picture_in_picture_blocking_ontimeupdate");this.yR=this.A("html5_picture_in_picture_blocking_document_fullscreen");this.yZ=this.A("html5_picture_in_picture_blocking_standard_api");z=oJ()&&zX(58)&&!lY();Z=hX||typeof MediaSource==="undefined";this.wq=this.A("uniplayer_block_pip")&&(z||Z)||this.jo||this.Xv||this.yZ;z=g.x3(this)&&!this.nC;var d;a?a.disableRelatedVideos!==void 0&&(d=!a.disableRelatedVideos):d=p.rel;this.Ro=z||EA(!this.D,d);this.QR=EA(!1,a?a.enableContentOwnerRelatedVideos: p.co_rel);this.C=lY()&&M0>0&&M0<=4.4?"_top":"_blank";this.r$=g.jJ(this);this.sU=EA(this.playerStyle==="blazer",a?a.enableCsiLogging:p.enablecsi);switch(this.playerStyle){case "blogger":d="bl";break;case "discover-ads":d="da";break;case "gmail":d="gm";break;case "gac":d="ga";break;case "ads-preview":d="ap";break;case "books":d="gb";break;case "docs":case "flix":d="gd";break;case "duo":d="gu";break;case "google-live":d="gl";break;case "google-one":d="go";break;case "play":case "play-ads":d="gp";break; case "chat":d="hc";break;case "hangouts-meet":d="hm";break;case "photos-edu":case "picasaweb":d="pw";break;default:d="yt"}this.UO=d;this.Sl=t_("",a?a.authorizedUserIndex:p.authuser);this.Fu=g.x3(this)&&(this.Ha||!lHO()||this.Hs);var G;a?a.disableWatchLater!==void 0&&(G=!a.disableWatchLater):G=p.showwatchlater;this.tN=((d=!this.Fu)||!!this.Sl&&d)&&EA(!this.N,this.K?G:void 0);this.tP=a?a.isMobileDevice||!!a.disableKeyboardControls:EA(!1,p.disablekb);this.loop=EA(!1,p.loop);this.pageId=t_("",a?a.initialDelegatedSessionId: p.pageid);this.g8=EA(!0,p.canplaylive);this.GF=2;this.Bo=EA(!1,p.livemonitor);this.disableSharing=EA(this.D,a?a.disableSharing:p.ss);this.aD=rPO(a&&this.A("fill_video_container_size_override_from_wpcc")?a.videoContainerOverride:p.video_container_override);this.mute=a?!!a.startMuted:EA(!1,p.mute);this.storeUserVolume=!this.mute&&EA(this.controlsType!=="0",a?a.storeUserVolume:p.store_user_volume);G=a?a.annotationsLoadPolicy:p.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:O4(void 0, G,z7);this.captionsLanguagePreference=a?a.captionsLanguagePreference||"":t_("",p.cc_lang_pref);G=O4(2,a?a.captionsLanguageLoadPolicy:p.cc_load_policy,z7);this.controlsType==="3"&&G===2&&(G=3);this.lX=G;this.ZN=a?a.hl||"en_US":t_("en_US",p.hl);this.region=a?a.contentRegion||"US":t_("US",p.cr);this.hostLanguage=a?a.hostLanguage||"en":t_("en",p.host_language);this.Jw=!this.Ha&&Math.random(){}); g.H(this,this.schedule);this.enableSafetyMode=a?.initialEnableSafetyMode??EA(!1,p.enable_safety_mode);S=this.Bs?!1:wP(this)&&this.playerStyle!=="blazer";var B;a?a.disableAutonav!=null&&(B=!a.disableAutonav):B=p.allow_autonav;this.zn=EA(S,!this.N&&B);this.sendVisitorIdHeader=a?!!a.sendVisitorIdHeader:EA(!1,p.send_visitor_id_header);let c;this.playerStyle==="docs"&&(a?c=a.disableNativeContextMenu:c=p.disable_native_context_menu);this.disableNativeContextMenu=EA(!1,c);this.SS=Ya(this)&&this.A("enable_skip_intro_button"); this.embedConfig=t_("",a?a.serializedEmbedConfig:p.embed_config);this.jl=Lj(p,g.x3(this));this.U=this.jl==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!!a?.embedsErrorLinks;this.QS=EA(!1,p.full_window);this.ac=!this.webPlayerContextConfig?.chromeless;this.livingRoomAppMode=O4("LIVING_ROOM_APP_MODE_UNSPECIFIED",p.living_room_app_mode||a?.device?.livingRoomAppMode,AcE);B=Wj(NaN,a?.device?.deviceYear);isNaN(B)||(this.deviceYear=B);this.transparentBackground=a?!!a.transparentBackground:EA(!1,p.transparent_background); this.showMiniplayerButton=a?!!a.showMiniplayerButton:EA(!1,p.show_miniplayer_button);this.externalFullscreen=g.x3(this)&&!a?.embedsHostFlags?.allowSetFauxFullscreen?!1:a?!!a.externalFullscreen:EA(!1,p.external_fullscreen);this.showMiniplayerUiWhenMinimized=a?!!a.showMiniplayerUiWhenMinimized:EA(!1,p.use_miniplayer_ui);this.A3=p.show_loop_video_toggle??!0;this.oK=Math.random()<1E-4;if(p.onesie_hot_config||a?.onesieHotConfig)this.dG=new byE(p.onesie_hot_config,a?.onesieHotConfig),g.H(this,this.dG); this.isTectonic=a?!!a.isTectonic:!!p.isTectonic;this.playerCanaryState=l;this.playerCanaryStage=a?.canaryStage;this.kf=new uro;g.H(this,this.kf);this.datasyncId=a?.datasyncId||g.R("DATASYNC_ID");this.Z1=g.R("LOGGED_IN",!1);this.ej=a?.allowWoffleManagement||!1;this.q0=Infinity;this.OU=NaN;this.livingRoomPoTokenId=a?.livingRoomPoTokenId;this.A("html5_high_res_logging_always")?this.PZ=!0:this.PZ=Math.random()*100'}supportsGaplessAudio(){return g.TF&& !hX&>()>=74||g.cq&&g.Nf(68)?!0:!1}supportsGaplessShorts(){return!this.A("html5_enable_short_gapless")||this.Hs||g.i3?!1:!0}getPlayerType(){return this.L.cplayer}Mc(){return this.PZ}},kAv=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],p9F=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],HpZ=[19];var sEE={["140"]:{numChannels:2},["141"]:{numChannels:2},["251"]:{audioSampleRate:48E3,numChannels:2},["774"]:{audioSampleRate:48E3,numChannels:2},["380"]:{numChannels:6},["328"]:{numChannels:6},["773"]:{}},NVe={["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"'},IOM={["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 Ul=class{constructor(p){this.L=p}getInfo(){return this.L}S(){return null}X(){var p=this.S();return p?(p=g.IE(p.gG),Number(p.expire)):NaN}j(){}getHeight(){return this.L.video.height}};var DJM=class{constructor(p){this.itag=p.itag;this.url=p.url;this.codecs=p.codecs;this.width=p.width;this.height=p.height;this.fps=p.fps;this.bitrate=p.bitrate;this.S=p.audioItag?.split(",")||[];this.VV=p.VV;this.uf=p.uf||"";this.rG=p.rG;this.audioChannels=p.audioChannels;this.L=""}};var XjF=class{constructor(p,a,l,y,S){this.U=p;this.S=a;this.X=l;this.cpn=y;this.D=S;this.j=0;this.L=""}build(){UtM(this);const p=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],a={};a:if(this.L)var l=this.L;else{l="";for(var y of this.U)if(y.rG){if(y.rG.getIsDefault()){l=y.rG.getId();break a}l||(l=y.rG.getId())}}for(var S of this.U)if(this.D||!S.rG||S.rG.getId()===l)a[S.itag]||(a[S.itag]=[]),a[S.itag].push(S);for(var n of this.S)if(S=a[n.L])for(var V of S){S=p;l=S.push;y="#EXT-X-MEDIA:TYPE=AUDIO,";let G= "YES";var Z="audio";if(V.rG){Z=V.rG;var z=Z.getId().split(".")[0];z&&(y+=`LANGUAGE="${z}",`);(this.L?this.L===Z.getId():Z.getIsDefault())||(G="NO");Z=Z.getName()}z="";n!==null&&(z=n.itag.toString());z=Kj(this,V.url,z);y=y+(`NAME="${Z}",`+`DEFAULT=${G},AUTOSELECT=YES,`)+(`GROUP-ID="${TqE(V,n)}",`+`URI="${z}"`);l.call(S,y)}for(var d of this.X)n=MVO,n=(V=d.rG)?'#EXT-X-MEDIA:URI="'+Kj(this,d.url)+'",TYPE=SUBTITLES,GROUP-ID="'+n+'",LANGUAGE="'+V.getId()+'",NAME="'+V.getName()+'",DEFAULT=NO,AUTOSELECT=YES': void 0,n&&p.push(n);d=this.X.length>0?MVO:void 0;for(const G of this.S)V=a[G.L],V?.length>0&&(n=G,V=V[0],V=`#EXT-X-STREAM-INF:BANDWIDTH=${n.bitrate+V.bitrate},`+`CODECS="${n.codecs},${V.codecs}",`+`RESOLUTION=${n.width}x${n.height},`+`AUDIO="${TqE(V,n)}",`+(d?'SUBTITLES="'+d+'",':"")+"CLOSED-CAPTIONS=NONE",n.fps>1&&(V+=`,FRAME-RATE=${n.fps}`),n.VV&&(V+=`,VIDEO-RANGE=${n.VV}`),p.push(V),p.push(Kj(this,G.url,"")));return p.join("\n")}},MVO="text";var xcq=class extends Ul{constructor(p,a,l){super(p);this.U=a;this.expiration=l;this.gG=null}X(){return this.expiration}S(){if(!this.gG||this.gG.nz()){var p=this.U.build();p="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(p);this.gG=new SE(p)}return this.gG}};var wzv=class extends Ul{constructor(p,a){super(p);this.U=a}S(){return new SE(this.U.G9())}j(){this.U=Za(this.U)}};var Ygo=class extends Ul{constructor(p,a){super(p);this.U=a}S(){return new SE(this.U)}};var plf={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 bAr=class{constructor(p){if(p=p.commonConfig)this.url=p.url,this.urlQueryOverride=p.urlQueryOverride,p.ustreamerConfig&&(this.rp=ye(p.ustreamerConfig)||void 0)}};g.Qr=class{constructor(p={}){this.languageCode=p.languageCode||"";this.languageName=p.languageName||null;this.kind=p.kind||"";this.name=p.name===void 0?null:p.name;this.displayName=p.displayName||null;this.id=p.id||null;this.L=p.is_servable||!1;this.isTranslateable=p.is_translateable||!1;this.url=p.url||null;this.vssId=p.vss_id||"";this.isDefault=p.is_default||!1;this.translationLanguage=p.translationLanguage||null;this.xtags=p.xtags||"";this.captionId=p.captionId||""}getId(){return this.id}getName(){return this.name}isServable(){return this.L}G9(){return this.url}getXtags(){return this.xtags}toString(){return this.languageCode+ ": "+g.Vg(this)+" - "+this.vssId+" - "+(this.captionId||"")}equals(p){return p?this.toString()===p.toString():!1}Kh(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)}};var F7f={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},ExZ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},CUh=/^(\d*)_((\d*)_?(\d*))$/;var QB={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},xTv={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var mgO={ALWAYS:1,BY_REQUEST:3,UNKNOWN:void 0},tVM={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 YHf; YHf=function(p){const a=Object.keys(p),l={};for(let n=0;n{const l={};a=[g.Wi(a.objectStore("index"),{},y=>{l[y.cursor.key]=y.getValue();return g.ul(y)}), mAr(a.objectStore("media")),mAr(a.objectStore("captions"))];return g.qH.all(a).then(([,y,S])=>({index:l,media:VOv(y||[]),captions:S}))})});var j0F=class extends g.js{constructor(){super();this.L=null;this.U=new tRq;this.L=null;this.D=new Set;this.crossOrigin=""}fz(){this.L&&(this.L=this.L.onload=null);super.fz()}};g.hc=class{constructor(p,a,l,y){this.level=p;this.UO=a;this.loaded=new Set;this.level=p;this.UO=a;p=l.split("#");this.width=Math.floor(Number(p[0]));this.height=Math.floor(Number(p[1]));this.frameCount=Math.floor(Number(p[2]));this.columns=Math.floor(Number(p[3]));this.rows=Math.floor(Number(p[4]));this.L=Math.floor(Number(p[5]));this.K=p[6];this.signature=p[7];this.videoLength=y}getHeight(){return this.height}X(){return this.frameCount}isDefault(){return this.K.indexOf("default")!==-1}isLoaded(p){return this.loaded.has(p)}G9(p){let a= this.UO;a=a.replace("$N",this.K);a=a.replace("$L",this.level.toString());a=a.replace("$M",p.toString());this.signature&&(a=g.Re(a,{sigh:this.signature}));return RD(a)}j(p){const a=this.X()-1;return g.qx(this.L===0?Math.round(p*this.frameCount/this.videoLength):Math.round(p*1E3/this.L),0,a)}S(){return this.frameCount-1}D(){return this.frameCount?0:-1}G(){}};g.hc.prototype.C=Gl(2);var Ac=class extends j0F{constructor(p,a,l=!1,y=!1){super();this.isLive=l;this.G=!!y;this.levels=this.S(p,a);this.j=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}S(p,a){const l=[];p=p.split("|");const y=p[0];for(let S=1;Sy-a?-1:p}S(){return this.U.VL()}D(){return this.U.xT()}G(p){this.U=p}};var Hy$=class extends Ac{constructor(p,a,l,y=!1){super(p,0,a,!!y);for(p=0;p{this.setData(l)}, hG:()=>{this.hG()}, wr:l=>{this.wr(l)}}; this.Ye=this.A("web_new_autonav_countdown");this.kf=this.A("web_new_big_thumbnail_endscreen");this.WJ=this.g7.experiments.Cz("html5_audio_gain_null_coalescing");this.g7.s2&&(this.jl=this.g7.s2);this.setData(a);this.Qi=new q5e;g.H(this,this.Qi)}setData(p){p=p||{};const a=p.errordetail;a!=null&&(this.errorDetail=a);const l=p.errorcode;l!=null?this.errorCode=l:p.status==="fail"&&(this.errorCode="auth");const y=p.reason;y!=null&&(this.errorReason=y);const S=p.subreason;S!=null&&(this.iK=S);this.clientPlaybackNonce|| (this.clientPlaybackNonce=p.cpn||(this.g7.Mc()?"r"+g.NM(15):g.NM(16)));this.Bo=EA(this.g7.Bo,p.livemonitor);Vl$(this,p);let n=p.raw_player_response;if(n)this.YV=n;else{const ck=p.player_response;ck&&(n=JSON.parse(ck))}n&&(this.playerResponse=n);if(this.playerResponse){const ck=this.playerResponse.annotations;if(ck)for(const AZ of ck){const pc=AZ.playerAnnotationsUrlsRenderer;if(pc){pc.adsOnly&&(this.jc=!0);const za=pc.loadPolicy;za&&(this.annotationsLoadPolicy=mgO[za]);const rC=pc.invideoUrl;rC&& (this.Rc=RD(rC));break}}const pF=this.playerResponse.attestation;pF&&usr(this,pF);const j2=this.playerResponse.cotn;j2&&(this.cotn=j2);const Wd=this.playerResponse.heartbeatParams;if(Wd){this.g2=!0;const AZ=Wd.heartbeatToken;AZ&&(this.drmSessionId=Wd.drmSessionId||"",this.heartbeatToken=AZ,this.uQ=Number(Wd.intervalMilliseconds),this.b6=Number(Wd.maxRetries),this.B0=!!Wd.softFailOnError,this.Rx=!!Wd.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=Wd.heartbeatServerData;this.Ao=!!Wd.heartbeatAttestationConfig?.requiresAttestation}const Q_= this.playerResponse.messages;Q_&&CcO(this,Q_);const K7=this.playerResponse.overlay;if(K7){const AZ=K7.playerControlsOverlayRenderer;if(AZ)if(cA(this,AZ.controlBgHtml),AZ.mutedAutoplay){const pc=g.K(AZ.mutedAutoplay,D0v);if(pc&&pc.endScreen){const za=g.K(pc.endScreen,i4$);za&&za.text&&(this.dJ=g.mQ(za.text))}}else this.mutedAutoplay=!1}const Si=this.playerResponse.playabilityStatus;if(Si){const AZ=Si.backgroundability;AZ&&AZ.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);Si.offlineability?.offlineabilityRenderer?.offlineable&& (this.offlineable=!0);const pc=Si.contextParams;pc&&(this.contextParams=pc);const za=Si.pictureInPicture;za&&za.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Si.playableInEmbed&&(this.allowEmbed=!0);const rC=Si.ypcClickwrap;if(rC){const G5=rC.playerLegacyDesktopYpcClickwrapRenderer,sp=rC.ypcRentalActivationRenderer;if(G5)this.Xv=G5.durationMessage||"",this.DF=!0;else if(sp){const aO=sp.durationMessage;this.Xv=aO?g.mQ(aO):"";this.DF=!0}}const s7=Si.errorScreen;if(s7){let G5,sp;if(s7.playerLegacyDesktopYpcTrailerRenderer){G5= s7.playerLegacyDesktopYpcTrailerRenderer;this.p9=G5.trailerVideoId||"";const aO=s7.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;sp=aO&&aO.ypcTrailerRenderer}else if(s7.playerLegacyDesktopYpcOfferRenderer)G5=s7.playerLegacyDesktopYpcOfferRenderer;else if(s7.ypcTrailerRenderer){sp=s7.ypcTrailerRenderer;const aO=sp.fullVideoMessage;this.yR=aO?g.mQ(aO):"";this.p9=g.K(sp,T4h)?.videoDetails?.videoId||""}G5&&(this.w8=G5.itemTitle||"",G5.itemUrl&&(this.Y0=G5.itemUrl),G5.itemBuyUrl&&(this.m0=G5.itemBuyUrl), this.Nj=G5.itemThumbnail||"",this.NB=G5.offerHeadline||"",this.d8=G5.offerDescription||"",this.yZ=G5.offerId||"",this.LH=G5.offerButtonText||"",this.YC=G5.offerButtonFormattedText||null,this.W8=G5.overlayDurationMsec||NaN,this.yR=G5.fullVideoMessage||"",this.l_=!0);if(sp){const aO=g.K(sp,T4h);if(aO)this.Es={raw_player_response:aO};else{const u0=g.K(sp,fEr);this.Es=u0?cd(u0):null}this.l_=!0}}}const EQ=this.playerResponse.playbackTracking;if(EQ){var V=EQ,Z=p;const AZ=Lp(V.googleRemarketingUrl);AZ&& (this.googleRemarketingUrl=AZ);const pc=Lp(V.youtubeRemarketingUrl);pc&&(this.youtubeRemarketingUrl=pc);const za={},rC=Lp(V.ptrackingUrl);if(rC){const j$=RE(rC),Y1=j$.oid;Y1&&(this.BJ=Y1);const jb=j$.pltype;jb&&(this.Qg=jb);const vd=j$.ptchn;vd&&(this.bB=vd);const wC=j$.ptk;wC&&(this.jh=encodeURIComponent(wC));const nc=j$.m;nc&&(this.Av=nc)}const s7=Lp(V.qoeUrl);if(s7){var z;const j$=g.IE(s7);for(const wC of Object.keys(j$)){const nc=j$[wC];j$[wC]=Array.isArray(nc)?nc.join(","):nc}this.Ax=z=j$;const Y1= z.cat;Y1&&(this.A("html5_enable_qoe_cat_list")?this.q9=this.q9.concat(Y1.split(",")):this.o1=Y1);const jb=z.live;jb&&(this.NI=jb);const vd=z.drm_product;vd&&(this.drmProduct=vd)}const G5=Lp(V.videostatsPlaybackUrl);if(G5){const j$=RE(G5),Y1=j$.adformat;if(Y1){Z.adformat=Y1;const $Q=this.O(),R2M=Ghf(Y1,this.hH,$Q.j,$Q.K);R2M&&(this.adFormat=R2M)}const jb=j$.aqi;jb&&(Z.ad_query_id=jb);const vd=j$.autoplay;vd&&(this.Yo=vd=="1",this.Pk=vd=="1");const wC=j$.autonav;wC&&(this.isAutonav=wC=="1");const nc= j$.delay;nc&&(this.NO=So(nc));const eb=j$.ei;eb&&(this.eventId=eb);const Bd=ye(j$.adcontext);if(Bd)try{const $Q=uTZ(Bd);$Q&&(this.KG=$Q)}catch($Q){g.tX(Error("Malformed adContext"))}if(Bd||Y1)this.Yo=!0;const Up=j$.feature;Up&&(this.SS=Up);const zG=j$.list;zG&&(this.playlistId=zG);const Co=j$.of;Co&&(this.jA=Co);const BG=j$.osid;BG&&(this.osid=BG);const uqA=j$.referrer;uqA&&(this.referrer=uqA);const OrF=j$.sdetail;OrF&&(this.DK=OrF);const kDf=j$.ssrt;kDf&&(this.Gw=kDf=="1");const MgM=j$.subscribed; MgM&&(this.subscribed=MgM=="1");const mTr=j$.uga;mTr&&(this.userGenderAge=mTr);const tgO=j$.upt;tgO&&(this.V2=tgO);const jnv=j$.vm;jnv&&(this.videoMetadata=jnv);za.playback=j$}const sp=Lp(V.videostatsWatchtimeUrl);if(sp){const j$=RE(sp),Y1=j$.ald;Y1&&(this.Aa=Y1);za.watchtime=j$}const aO=Lp(V.atrUrl);if(aO){const j$=RE(aO);za.atr=j$}const u0=Lp(V.engageUrl);if(u0){const j$=RE(u0);za.engage=j$}this.Jw=za;if(V.promotedPlaybackTracking){const j$=V.promotedPlaybackTracking;j$.startUrls&&(this.Tx=j$.startUrls); j$.firstQuartileUrls&&(this.wx=j$.firstQuartileUrls);j$.secondQuartileUrls&&(this.HN=j$.secondQuartileUrls);j$.thirdQuartileUrls&&(this.kC=j$.thirdQuartileUrls);j$.completeUrls&&(this.eA=j$.completeUrls);j$.engagedViewUrls&&(j$.engagedViewUrls.length>1&&g.tX(new g.Qm("There are more than one engaged_view_urls.")),this.xt=j$.engagedViewUrls[0])}}const WH=this.playerResponse.playerCueRanges;WH&&WH.length>0&&(this.cueRanges=WH);const D_=this.playerResponse.playerCueRangeSet;D_&&g.Q1(this,D_);a:{var d= this.playerResponse.adPlacements;if(d)for(const AZ of d){const pc=AZ.adPlacementRenderer?.renderer?.videoAdTrackingRenderer;if(pc){var G=pc;break a}}G=null}const T1=G;EQ&&EQ.promotedPlaybackTracking&&T1&&g.tX(new g.Qm("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var B;if(!(B=T1))a:{var c=this.playerResponse.adSlots;for(const AZ of c||[]){const pc=g.K(AZ,Gi);if(pc===void 0||!djv(pc))break;const za=g.K(pc.fulfillmentContent?.fulfilledLayout,Gx);if(za&&Be(za)){B= !0;break a}}B=!1}B&&(this.d2=!0);const ec=this.playerResponse.playerAds;if(ec){var w=ec,X=p;for(const AZ of w)if(AZ){const pc=AZ.playerLegacyDesktopWatchAdsRenderer;if(pc){const za=pc.playerAdParams;if(za){za.autoplay=="1"&&(this.Pk=this.Yo=!0);this.U1=za.encodedAdSafetyReason||null;za.showContentThumbnail!==void 0&&(this.R7=!!za.showContentThumbnail);X.enabled_engage_types=za.enabledEngageTypes;break}}}}const $c=this.playerResponse.playerConfig;if($c){const AZ=$c.manifestlessWindowedLiveConfig;if(AZ){const nc= Number(AZ.minDvrSequence),eb=Number(AZ.maxDvrSequence),Bd=Number(AZ.minDvrMediaTimeMs),Up=Number(AZ.maxDvrMediaTimeMs),zG=Number(AZ.startWalltimeMs);nc&&(this.aM=nc);Bd&&(this.QY=Bd/1E3,this.A("html5_sabr_parse_live_metadata_playback_boundaries")&&Yc(this)&&(this.vk=Bd/1E3));eb&&(this.M0=eb);Up&&(this.Ha=Up/1E3,this.A("html5_sabr_parse_live_metadata_playback_boundaries")&&Yc(this)&&(this.HG=Up/1E3));zG&&(this.Ba=zG/1E3);(nc||Bd)&&(eb||Up)&&(this.allowLiveDvr=this.isLivePlayback=this.w7=!0,this.IX= !1)}const pc=$c.daiConfig;if(pc){if(pc.enableDai){this.eD=!0;const nc=pc.enableServerStitchedDai;nc&&(this.enableServerStitchedDai=nc);const eb=pc.enablePreroll;eb&&(this.s1=eb)}if(pc.daiType==="DAI_TYPE_SS_DISABLED"||pc.debugInfo?.isDisabledUnpluggedChannel)this.G3=!0;pc.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.kG=!0);pc.allowUstreamerRequestAdconfig&&(this.cA=!0)}const za=$c.audioConfig;if(za){const nc=za.loudnessDb;nc!=null&&(this.bf=nc);const eb=za.trackAbsoluteLoudnessLkfs;eb!=null&&(this.au= eb);const Bd=za.loudnessTargetLkfs;Bd!=null&&(this.loudnessTargetLkfs=Bd);za.audioMuted&&(this.OU=!0);za.muteOnStart&&(this.YL=!0);const Up=za.loudnessNormalizationConfig;if(Up){Up.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Up.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);const zG=Up.minimumLoudnessTargetLkfs;zG!=null&&(this.minimumLoudnessTargetLkfs=zG);const Co=Up.maxStatefulTimeThresholdSec;Co!=null&&(this.maxStatefulTimeThresholdSec=Co)}za.playAudioOnly&& (this.r$=!0)}const rC=$c.playbackEndConfig;if(rC){const nc=rC.endSeconds,eb=rC.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(nc&&(this.endSeconds=nc),eb&&(this.limitedPlaybackDurationInSeconds=eb))}const s7=$c.fairPlayConfig;if(s7){const nc=s7.certificate;nc&&(this.ac=ye(nc));const eb=Number(s7.keyRotationPeriodMs);eb>0&&(this.Rw=eb);const Bd=Number(s7.keyPrefetchMarginMs);Bd>0&&(this.Hf=Bd)}const G5=$c.playbackStartConfig;if(G5){this.iW=Number(G5.startSeconds);const nc=G5.liveUtcStartSeconds, eb=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;nc&&!eb&&(this.liveUtcStartSeconds=Number(nc));const Bd=G5.startPosition;if(Bd){const Up=Bd.utcTimeMillis;Up&&!eb&&(this.liveUtcStartSeconds=Number(Up)*.001);const zG=Bd.streamTimeMillis;zG&&(this.wq=Number(zG)*.001)}this.progressBarStartPosition=G5.progressBarStartPosition;this.progressBarEndPosition=G5.progressBarEndPosition}else{const nc=$c.skippableSegmentsConfig;if(nc){const eb=nc.introSkipDurationMs;eb&&(this.aD=Number(eb)/1E3);const Bd= nc.outroSkipDurationMs;Bd&&(this.Uy=Number(Bd)/1E3)}}const sp=$c.skippableIntroConfig;if(sp){const nc=Number(sp.startMs),eb=Number(sp.endMs);isNaN(nc)||isNaN(eb)||(this.ej=nc,this.Wy=eb)}const aO=$c.streamSelectionConfig;aO&&(this.E6=Number(aO.maxBitrate));const u0=$c.vrConfig;u0&&(this.Ht=u0.partialSpherical=="1");const j$=$c.webDrmConfig;if(j$){j$.skipWidevine&&(this.vD=!0);const nc=j$.widevineServiceCert;nc&&(this.jo=ye(nc));j$.useCobaltWidevine&&(this.useCobaltWidevine=!0);j$.startWithNoQualityConstraint&& (this.zy=!0)}const Y1=$c.mediaCommonConfig;if(Y1){const nc=Y1.dynamicReadaheadConfig;if(nc){this.maxReadAheadMediaTimeMs=nc.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=nc.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=nc.readAheadGrowthRateMs||NaN;const Up=Y1?.mediaUstreamerRequestConfig?.videoPlaybackUstreamerConfig;Up&&(this.J3=ye(Up));const zG=Y1?.sabrContextUpdates;if(zG&&zG.length>0)for(const Co of zG)if(Co.type&&Co.value){const BG={type:Co.type,scope:Co.scope,value:ye(Co.value)|| void 0,sendByDefault:Co.sendByDefault};this.sabrContextUpdates.set(Co.type,BG)}}const eb=Y1.serverPlaybackStartConfig;eb&&(this.serverPlaybackStartConfig=eb);Y1.useServerDrivenAbr&&(this.QS=!0);const Bd=Y1.requestPipeliningConfig;Bd&&(this.requestPipeliningConfig=Bd)}const jb=$c.inlinePlaybackConfig;jb&&(this.FI=!!jb.showAudioControls);const vd=$c.embeddedPlayerConfig;if(vd){this.embeddedPlayerConfig=vd;const nc=vd.embeddedPlayerMode;if(nc){var v=this.O();v.jl=nc;v.U=nc==="EMBEDDED_PLAYER_MODE_PFL"}const eb= vd.permissions;eb&&(this.allowImaMonetization=!!eb.allowImaMonetization)}const wC=$c.webPlayerConfig;wC&&(wC.gatewayExperimentGroup&&(this.gatewayExperimentGroup=wC.gatewayExperimentGroup),wC.isProximaEligible&&(this.isProximaLatencyEligible=!0))}const vv=this.playerResponse.streamingData;if(vv){const AZ=vv.formats;if(AZ){let u0=[];for(const j$ of AZ)u0.push(`${j$.itag}/${j$.width}x${j$.height}`);this.Lw=u0.join(",");u0=[];for(const j$ of AZ){const Y1={itag:j$.itag,type:j$.mimeType,quality:j$.quality}, jb=j$.url;jb&&(Y1.url=jb);const {kH:vd,RL:wC,xD:nc,s:eb}=ar(8,j$);vd&&(Y1.url=wC,Y1.sp=nc,Y1.s=eb);u0.push(g.mW(Y1))}this.Me=u0.join(",")}const pc=vv.hlsFormats;if(pc){var I=pc,u=$c||null;const u0={};if(u){const jb=u.audioPairingConfig;if(jb&&jb.pairs)for(const vd of jb.pairs){const wC=vd.videoItag;u0[wC]||(u0[wC]=[]);u0[wC].push(vd.audioItag)}}const j$={};for(const jb of I)j$[jb.itag]=jb.bitrate;const Y1=[];for(const jb of I){const vd={itag:jb.itag,type:jb.mimeType,url:jb.url,bitrate:jb.bitrate, width:jb.width,height:jb.height,fps:jb.fps},wC=jb.audioTrack;if(wC){const Bd=wC.displayName;Bd&&(vd.name=Bd,vd.audio_track_id=wC.id,wC.audioIsDefault&&(vd.is_default="1"))}if(jb.drmFamilies){const Bd=[];for(const Up of jb.drmFamilies)Bd.push(Ja[Up]);vd.drm_families=Bd.join(",")}const nc=u0[jb.itag];if(nc&&nc.length){vd.audio_itag=nc.join(",");const Bd=j$[nc[0]];Bd&&(vd.bitrate+=Bd)}const eb=fVM(jb);eb&&(vd.eotf=eb);jb.audioChannels&&(vd.audio_channels=jb.audioChannels);Y1.push(g.mW(vd))}this.hlsFormats= Y1.join(",")}const za=vv.licenseInfos;if(za&&za.length>0){const u0={};for(const j$ of za){const Y1=j$.drmFamily,jb=j$.url;Y1&&jb&&(u0[Ja[Y1]]=jb)}this.uf=u0}const rC=vv.drmParams;rC&&(this.drmParams=rC);const s7=vv.dashManifestUrl;s7&&(this.Kx=g.Re(s7,{cpn:this.clientPlaybackNonce}));const G5=vv.hlsManifestUrl;G5&&(this.hlsvp=G5);const sp=vv.probeUrl;sp&&(this.probeUrl=RD(g.Re(sp,{cpn:this.clientPlaybackNonce})));const aO=vv.serverAbrStreamingUrl;aO&&(this.g4=new g.Xh(aO,!0))}const cG=this.playerResponse.trackingParams; cG&&(this.jl=cG);const bE=this.playerResponse.videoDetails;if(bE){var m=bE,M=p;const AZ=m.videoId;AZ&&(this.videoId=AZ,M.video_id||(M.video_id=AZ));const pc=m.title;pc&&(this.title=pc,M.title||(M.title=pc));const za=m.lengthSeconds;za&&(this.lengthSeconds=Number(za),M.length_seconds||(M.length_seconds=za));const rC=m.keywords;rC&&(this.keywords=YjE(rC));const s7=m.channelId;s7&&(this.Jk=s7,M.ucid||(M.ucid=s7));const G5=m.viewCount;G5&&(this.rawViewCount=Number(G5));const sp=m.author;sp&&(this.author= sp,M.author||(M.author=sp));const aO=m.shortDescription;aO&&(this.shortDescription=aO);const u0=m.isCrawlable;u0&&(this.isListed=u0);const j$=m.musicVideoType;j$&&(this.musicVideoType=j$);const Y1=m.isLive;Y1!=null&&(this.isLivePlayback=Y1);if(Y1||m.isUpcoming)this.isPremiere=!m.isLiveContent;const jb=m.thumbnail;jb&&(this.C=ZD(jb));const vd=m.isExternallyHostedPodcast;vd&&(this.isExternallyHostedPodcast=vd);const wC=m.viewerLivestreamJoinPosition;wC?.utcTimeMillis&&(this.hn=So(wC.utcTimeMillis)); var D=bE,A=$c||null,$h=p;D.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);D.isUpcoming&&(this.isUpcoming=!0);if(D.isPostLiveDvr){this.IX=!0;const eb=D.latencyClass;eb&&(this.latencyClass=tVM[eb]||"UNKNOWN");D.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{let eb=!1;this.Bo?(this.allowLiveDvr=b0()?!0:OD&&jk<5?!1:!0,this.isLivePlayback=!0):D.isLive?($h.livestream="1",this.allowLiveDvr=D.isLiveDvrEnabled?b0()?!0:OD&&jk<5?!1:!0:!1,this.partnerId=27,eb=!0):D.isUpcoming&&(eb=!0); if(D.isLive||this.Bo){D.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);const Bd=D.latencyClass;Bd&&(this.latencyClass=tVM[Bd]||"UNKNOWN");const Up=D.liveChunkReadahead;Up&&(this.liveChunkReadahead=Up);const zG=A&&A.livePlayerConfig;if(zG){zG.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);zG.hasSubfragmentedWebm&&(this.K_=!0);zG.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);const Co=zG.liveExperimentalContentId;Co&&(this.liveExperimentalContentId=Number(Co));const BG= zG.isLiveHeadPlayable;this.A("html5_live_head_playable")&&BG!=null&&(this.isLiveHeadPlayable=BG)}}eb&&(this.isLivePlayback=!0,$h.adformat&&$h.adformat.split("_")[1]!=="8"||this.Ws.push("heartbeat"))}const nc=bE.isPrivate;nc!==void 0&&(this.isPrivate=EA(this.isPrivate,nc))}if(Si){var cE=Si,FO=bE||null;const AZ=cE.errorScreen;if(!(AZ&&(AZ.playerLegacyDesktopYpcOfferRenderer||AZ.playerLegacyDesktopYpcTrailerRenderer||AZ.ypcTrailerRenderer)||FO&&FO.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(cE.status))){this.errorCode= NM$(cE.errorCode)||"auth";const pc=AZ&&AZ.playerErrorMessageRenderer;if(pc){this.playerErrorMessageRenderer=pc;const rC=pc.reason;rC&&(this.errorReason=g.mQ(rC));const s7=pc.subreason;s7&&(this.iK=g.mQ(s7),this.tv=s7)}else this.errorReason=cE.reason||null;const za=cE.status;if(za==="LOGIN_REQUIRED")this.errorDetail="1";else if(za==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(za==="AGE_CHECK_REQUIRED"){const rC=cE.errorScreen,s7=rC&&rC.playerKavRenderer;this.errorDetail=s7&&s7.kavUrl?"4": "3"}else{const rC=AZ?.playerErrorMessageRenderer?.proceedButton?.buttonRenderer?.command;this.errorDetail=cE.isBlockedInRestrictedMode?"5":g.K(rC,PMo)?.signal==="RELOAD_PAGE"?"7":"0"}}}const rB=this.playerResponse.interstitialPods;rB&&q7q(this,rB);this.Rc&&this.eventId&&(this.Rc=J3(this.Rc,{ei:this.eventId}));const Pp=this.playerResponse.captions;if(Pp&&Pp.playerCaptionsTracklistRenderer)a:{var CA=Pp.playerCaptionsTracklistRenderer;this.captionTracks=[];if(CA.captionTracks)for(const AZ of CA.captionTracks){const pc= ISh(AZ.baseUrl);if(!pc)break a;const za={is_translateable:!!AZ.isTranslatable,languageCode:AZ.languageCode,languageName:AZ.name&&g.mQ(AZ.name),url:pc,vss_id:AZ.vssId,kind:AZ.kind};za.name=AZ.trackName;za.displayName=AZ.name&&g.mQ(AZ.name);this.captionTracks.push(new g.Qr(za))}this.Kd=CA.audioTracks||[];this.TU=CA.defaultAudioTrackIndex||0;this.bQ=[];if(CA.translationLanguages)for(const AZ of CA.translationLanguages){const pc={};pc.languageCode=AZ.languageCode;pc.languageName=g.mQ(AZ.languageName); if(AZ.translationSourceTrackIndices){pc.translationSourceTrackIndices=[];for(const za of AZ.translationSourceTrackIndices)pc.translationSourceTrackIndices.push(za)}if(AZ.excludeAudioTrackIndices){pc.excludeAudioTrackIndices=[];for(const za of AZ.excludeAudioTrackIndices)pc.excludeAudioTrackIndices.push(za)}this.bQ.push(pc)}this.Jf=[];if(CA.defaultTranslationSourceTrackIndices)for(const AZ of CA.defaultTranslationSourceTrackIndices)this.Jf.push(AZ);this.g1=!!CA.contribute&&!!CA.contribute.captionsMetadataRenderer}(this.clipConfig= this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.iW=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&D8h(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);this.compositeLiveIngestionOffsetToken=this.playerResponse.playbackTracking?.compositeLiveIngestionOffsetToken;this.compositeLiveStatusToken= this.playerResponse.playbackTracking?.compositeLiveStatusToken;this.A("html5_fill_default_mosaic_audio_track_id")&&this.MJ()&&(this.g7.Ic=R_M(this,this.A("html5_cdm_use_first_as_default_audio_track")));const Le=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.minimumPlaybackRate,wB=this.playerResponse.playerConfig?.granularVariableSpeedConfig?.maximumPlaybackRate;Le&&wB&&(this.yg=Le/100,this.X3=wB/100);this.heartbeatLoggingToken=this.playerResponse.heartbeatLoggingToken}dl(this,p);const sM= p.raw_reel_item_watch_response;sM&&(this.reelItemWatchResponse=sM);p.queue_info&&(this.queueInfo=p.queue_info);const b_=p.hlsdvr;b_!=null&&(this.allowLiveDvr=Number(b_)===1?b0()?!0:OD&&jk<5?!1:!0:!1);this.adQueryId=p.ad_query_id||null;this.U1||(this.U1=p.encoded_ad_safety_reason||null);this.OU=EA(this.OU,p.infringe||p.muted);this.yd=p.authkey;this.Cf=p.authuser;this.mutedAutoplay=EA(this.mutedAutoplay,p&&p.playmuted);this.mutedAutoplayDurationMode=Wj(this.mutedAutoplayDurationMode,p&&p.muted_autoplay_duration_mode); this.I_=EA(this.I_,p&&p.mutedautoplay);const F=p.length_seconds;F&&(this.lengthSeconds=typeof F==="string"?So(F):F);if(this.isAd()||this.t4||!g.qZ(g.cb(this.g7)))this.endSeconds=Wj(this.endSeconds,this.Uy||p.end||p.endSeconds);else{var tP=g.cb(this.g7),l0=this.lengthSeconds;switch(tP){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":l0>30?this.limitedPlaybackDurationInSeconds=30:l0<30&&l0>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds= l0*.2}}this.jl=t_(this.jl,p.itct);this.GT=EA(this.GT,p.is_live_destination);this.isLivePlayback=EA(this.isLivePlayback,p.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.va();p.isUpcoming&&(this.isUpcoming=EA(this.isUpcoming,p.isUpcoming));this.IX=EA(this.IX,p.post_live_playback);this.w7&&(this.IX=!1);this.isMdxPlayback=EA(this.isMdxPlayback,p.mdx);const KF=p.mdx_control_mode;KF&&(this.mdxControlMode=typeof KF==="number"?KF:So(KF));this.isInlinePlaybackNoAd=EA(this.isInlinePlaybackNoAd, p.is_inline_playback_no_ad);this.dG=Wj(this.dG,p.reload_count);this.reloadReason=t_(this.reloadReason,p.reload_reason);this.R7=EA(this.R7,p.show_content_thumbnail);this.cycToken=p.cyc||null;const Rh=Ax(p);Object.keys(Rh).length>0&&(this.C=Rh);this.Bs=t_(this.Bs,p.vvt);this.mdxEnvironment=t_(this.mdxEnvironment,p.mdx_environment);p.source_container_playlist_id&&(this.sourceContainerPlaylistId=p.source_container_playlist_id);p.serialized_mdx_metadata&&(this.serializedMdxMetadata=p.serialized_mdx_metadata); this.BU=p.osig;this.eventId||(this.eventId=p.eventid);this.osid||(this.osid=p.osid);this.playlistId=t_(this.playlistId,p.list);p.index&&(this.playlistIndex=this.playlistIndex===void 0?Wj(0,p.index):Wj(this.playlistIndex,p.index));this.iB=p.pyv_view_beacon_url;this.pI=p.pyv_quartile25_beacon_url;this.OA=p.pyv_quartile50_beacon_url;this.B4=p.pyv_quartile75_beacon_url;this.Gr=p.pyv_quartile100_beacon_url;const uf=p.session_data;!this.KD&&uf&&(this.KD=$e(uf,"&").feature);this.isFling=Wj(this.isFling? 1:0,p.is_fling)===1;this.vnd=Wj(this.vnd,p.vnd);this.forceAdsUrl=t_(this.forceAdsUrl,p.force_ads_url);this.eR=t_(this.eR,p.ctrl);this.zf=t_(this.zf,p.ytr);this.GW=p.ytrcc;this.jd=p.ytrexp;this.tf=p.ytrext;this.g$=t_(this.g$,p.adformat);this.hH=t_(this.hH,p.attrib);this.slotPosition=Wj(this.slotPosition,p.slot_pos);this.breakType=p.break_type;this.Gw=EA(this.Gw,p.ssrt);this.videoId=oC(p)||this.videoId;this.D=t_(this.D,p.vss_credentials_token);this.kT=t_(this.kT,p.vss_credentials_token_type);this.r$= EA(this.r$,p.audio_only);this.Zl=EA(this.Zl,p.aac_high);this.R_=EA(this.R_,p.prefer_low_quality_audio);this.PN=EA(this.PN,p.uncap_inline_quality);this.A("html5_enable_qoe_cat_list")?p.qoe_cat&&(this.q9=this.q9.concat(p.qoe_cat.split(","))):this.o1=t_(this.o1,p.qoe_cat);this.Dk=EA(this.Dk,p.download_media);var IY=p.prefer_gapless;this.K=IY!=null?EA(this.K,IY):this.K?this.K:this.g7.preferGapless&&this.g7.supportsGaplessShorts();bnh(this.playerResponse)&&this.Ws.push("ad");const RY=p.adaptive_fmts;RY&& (this.adaptiveFormats=RY,this.Xu("adpfmts",{},!0));const $r=p.allow_embed;$r&&(this.allowEmbed=Number($r)===1);const uE=p.backgroundable;uE&&(this.backgroundable=Number(uE)===1);const PG=p.autonav;PG&&(this.isAutonav=Number(PG)===1);const L6=p.autoplay;L6&&(this.Yo=this.Pk=Number(L6)===1);const X8=p.iv_load_policy;X8&&(this.annotationsLoadPolicy=O4(this.annotationsLoadPolicy,X8,z7));const gJ=p.cc_lang_pref;gJ&&(this.captionsLanguagePreference=t_(gJ,this.captionsLanguagePreference));const f=p.cc_load_policy; f&&(this.XQ=O4(this.XQ,f,z7));this.deviceCaptionsOn=p.device_captions_on??void 0;this.u5=p.device_captions_lang_pref??"";this.mZ=p.viewer_selected_caption_langs??[];const GJ=p.cached_load;GJ&&(this.Zk=EA(this.Zk,GJ));if(p.dash==="0"||p.dash===0||p.dash===!1)this.Vc=!0;const L=p.dashmpd;L&&(this.Kx=g.Re(L,{cpn:this.clientPlaybackNonce}));const T=p.delay;T&&(this.NO=So(T));const RJ=this.Uy||p.end;if(this.Ro?RJ!=null:RJ!=void 0)this.clipEnd=Wj(this.clipEnd,RJ);const OU=p.fmt_list;OU&&(this.Lw=OU);p.heartbeat_preroll&& this.Ws.push("heartbeat");Dgr&&(this.Ey=-Math.floor(Math.random()*10),this.Af=-Math.floor(Math.random()*40));const Xf=p.is_listed;Xf&&(this.isListed=EA(this.isListed,Xf));const h9=p.is_private;h9&&(this.isPrivate=EA(this.isPrivate,h9));const rG=p.is_dni;rG&&(this.XX=EA(this.XX,rG));const xr=p.dni_color;xr&&(this.jS=t_(this.jS,xr));const Ko=p.pipable;Ko&&(this.pipable=EA(this.pipable,Ko));this.nf=(this.n_=this.pipable&&this.g7.DH)&&!this.g7.showMiniplayerButton;const x=p.paid_content_overlay_duration_ms; x&&(this.paidContentOverlayDurationMs=So(x));const P=p.paid_content_overlay_text;P&&(this.paidContentOverlayText=P);const E=p.url_encoded_fmt_stream_map;E&&(this.Me=E);const e=p.hls_formats;e&&(this.hlsFormats=e);const k=p.hlsvp;k&&(this.hlsvp=k);const U=p.live_start_walltime;U&&(this.WU=typeof U==="number"?U:So(U));const O=p.live_manifest_duration;O&&(this.nH=typeof O==="number"?O:So(O));const W=p.player_params;W&&(this.playerParams=W);const b=p.partnerid;b&&(this.partnerId=Wj(this.partnerId,b)); const Gq=p.probe_url;Gq&&(this.probeUrl=RD(g.Re(Gq,{cpn:this.clientPlaybackNonce})));const Sb=p.pyv_billable_url;Sb&&VHF(Sb)&&(this.xt=Sb);const q=p.pyv_conv_url;q&&VHF(q)&&(this.fI=q);uIO(this,p);this.startSeconds>0?this.A("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.iW||this.aD||p.start||p.startSeconds)&&this.Xu("lss",{css:this.startSeconds,pcss:this.iW,iss:this.aD,ps:p.start||void 0,pss:p.startSeconds||void 0}):this.Lx=this.startSeconds=Wj(this.startSeconds,this.iW||this.aD|| p.start||p.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){const ck=p.live_utc_start;if(ck!=null)this.liveUtcStartSeconds=Number(ck);else{var Yh=this.startSeconds;Yh&&isFinite(Yh)&&Yh>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){const ck=p.utc_start_millis;ck&&(this.liveUtcStartSeconds=Number(ck)*.001)}const OM=p.stream_time_start_millis;OM&&(this.wq=Number(OM)*.001);const zq=this.aD||p.start;(this.Ro?zq== null||Number(p.resume)===1:zq==void 0||p.resume=="1")||this.isLivePlayback||(this.clipStart=Wj(this.clipStart,zq));const A9=p.url_encoded_third_party_media;A9&&(this.nC=eO(A9));const VU=p.ypc_offer_button_formatted_text;if(VU){const ck=JSON.parse(VU);this.YC=ck!=null?ck:null;this.W0=VU}const PM=p.ypc_offer_button_text;PM&&(this.LH=PM);const rv=p.ypc_offer_description;rv&&(this.d8=rv);const nO=p.ypc_offer_headline;nO&&(this.NB=nO);const Mf=p.ypc_full_video_message;Mf&&(this.yR=Mf);const Zl=p.ypc_offer_id; Zl&&(this.yZ=Zl);const l_=p.ypc_buy_url;l_&&(this.m0=l_);const uk=p.ypc_item_thumbnail;uk&&(this.Nj=uk);const a2=p.ypc_item_title;a2&&(this.w8=a2);const VG=p.ypc_item_url;VG&&(this.Y0=VG);const M7=p.ypc_vid;M7&&(this.p9=M7);p.ypc_overlay_timeout&&(this.W8=Number(p.ypc_overlay_timeout));const Lc=p.ypc_trailer_player_vars;Lc&&(this.Es=cd(Lc));const dG=p.ypc_original_itct;dG&&(this.SL=dG);this.Jk=t_(this.Jk,p.ucid);this.qB=p.storyboard_spec||null;this.Mt=p.live_storyboard_spec||null;this.Se=p.iv_endscreen_url|| null;this.l_=EA(this.l_,p.ypc_module);this.DF=EA(this.DF,p.ypc_clickwrap_module);this.l_&&this.Ws.push("ypc");this.DF&&this.Ws.push("ypcRentalActivation");this.HJ={video_id:p.video_id,eventid:p.eventid,cbrand:p.cbrand,cbr:p.cbr,cbrver:p.cbrver,c:p.c,cver:p.cver,ctheme:p.ctheme,cplayer:p.cplayer,cmodel:p.cmodel,cnetwork:p.cnetwork,cos:p.cos,cosver:p.cosver,cplatform:p.cplatform,user_age:p.user_age,user_display_image:p.user_display_image,user_display_name:p.user_display_name,user_gender:p.user_gender, csi_page_type:p.csi_page_type,csi_service_name:p.csi_service_name,enablecsi:p.enablecsi,enabled_engage_types:p.enabled_engage_types};ZoO(this,p);const Pk=p.cotn;Pk&&(this.cotn=Pk);if(I1(this))Ka(this)&&(this.isLivePlayback&&this.Kx&&(this.OY=!0),this.ac&&(this.rA=!0));else if(Ueo(this))this.OY=!0;else{{const ck=this.playerResponse?.streamingData?.adaptiveFormats||[];let pF=null;if(ck.length>0)pF=uPv(this,ck);else if(!this.A("html5_deprecate_adaptive_formats_string")){this.Xu("pafmtstr",{s:this.adaptiveFormats.substring(0, 50)});var Yp=this.adaptiveFormats;if(Yp&&!Ka(this)){this.g7.X.U&&(XA=!0);var ZQ=bl(Yp),qw=this.uf,Zt=this.lengthSeconds,bm=this.isLivePlayback,RO=this.IX,d1=this.g7;const j2=xdO(ZQ);if(bm||RO){var og=d1?.experiments;const Wd=new Vh("",og,!0);Wd.va=!0;Wd.isManifestless=!0;Wd.S=!RO;Wd.isLive=!RO;Wd.IX=RO;for(const Q_ of ZQ){const K7=ZT(Q_,qw),Si=zA(Q_.url,Q_.sp,Q_.s),EQ=Si.get("id");EQ&&EQ.includes("%7E")&&(Wd.N=!0);const WH=og?.Cz("html5_max_known_end_time_rebase"),D_=Number(Q_.target_duration_sec)|| 5,T1=Number(Q_.max_dvr_duration_sec)||14400,ec=Number(Si.get("mindsq")||Si.get("min_sq")||"0"),$c=Number(Si.get("maxdsq")||Si.get("max_sq")||"0")||Infinity;Wd.aM=Wd.aM||ec;Wd.M0=Wd.M0||$c;const vv=!eg(K7.mimeType);Si&&db(Wd,new REZ(Si,K7,{VZ:D_,xr:vv,WI:T1,aM:ec,M0:$c,bF:300,IX:RO,OF:WH}))}var zE=Wd}else zE=j2==="FORMAT_STREAM_TYPE_OTF"?cEv(ZQ,qw,Zt,d1?.experiments):tir(ZQ,qw,Zt,d1);var d8=zE;if(ZQ.length>0){const Wd=ZQ[0];if(this.O().playerStyle==="hangouts-meet"&&Wd.url){const Q_=g.IE(Wd.url);this.Sp= this.Sp||Number(Q_.expire)}}var Ia=this.isLivePlayback&&!this.IX&&!this.w7&&!this.isPremiere;this.A("html5_live_head_playable")&&(!vM(this)&&Ia&&this.Xu("missingLiveHeadPlayable",{}),this.g7.UO==="yt"&&(d8.Rc=!0));pF=d8}else pF=null;this.Xu("pafmts",{isManifestFilled:!!pF})}if(pF){t$(this,pF);var HH=!0}else HH=!1}HH?this.enableServerStitchedDai=this.enableServerStitchedDai&&TJ(this):this.Kx&&(this.g7.UO==="yt"&&this.va()&&this.A("drm_manifestless_unplugged")&&this.A("html5_deprecate_manifestful_fallback")? this.Xu("deprecateMflFallback",{}):this.OY=!0)}const JF=p.adpings;JF&&(this.Sc=JF?cd(JF):null);const GE=p.feature;GE&&(this.SS=GE);const B8=p.referrer;B8&&(this.referrer=B8);this.clientScreenNonce=t_(this.clientScreenNonce,p.csn);this.Rp=Wj(this.Rp,p.root_ve_type);this.rR=Wj(this.rR,p.kids_age_up_mode);this.Ro||p.kids_app_info==void 0||(this.kidsAppInfo=p.kids_app_info);this.Ro&&p.kids_app_info!=null&&(this.kidsAppInfo=p.kids_app_info);this.Cd=EA(this.Cd,p.upg_content_filter_mode);this.unpluggedFilterModeType= Wj(this.unpluggedFilterModeType,p.unplugged_filter_mode_type);const c8=p.unplugged_location_info;c8&&(this.tP=c8);const r8=p.unplugged_partner_opt_out;r8&&(this.vN=t_("",r8));this.Lr=EA(this.Lr,p.disable_watch_next);this.tq=t_(this.tq,p.internal_ip_override);this.fp=!!p.is_yto_interstitial;(this.interstitials.length||this.fp)&&this.Ws.push("playableSequences");const w8=p.f8;w8&&(this.f8=w8);this.Sl=t_(this.Sl,p.csi_timer);p.watchUrl&&(this.watchUrl=p.watchUrl);const fo=p.watch_endpoint;this.A("html5_attach_watch_endpoint_ustreamer_config")&& fo&&tx(this,fo);fo?.ustreamerConfig&&(this.rp=ye(fo.ustreamerConfig));const $Z=fo?.loggingContext?.qoeLoggingContext?.serializedContextData;$Z&&(this.PU=$Z);g.x3(this.g7)&&this.g7.R7&&(this.embedsRct=t_(this.embedsRct,p.rct),this.embedsRctn=t_(this.embedsRctn,p.rctn));p.embed_config&&(this.lQ=p.embed_config);this.s2=this.s2||!!p.pause_at_start;p.default_active_source_video_id&&(this.defaultActiveSourceVideoId=p.default_active_source_video_id)}mw(){return this.autoplaySwitchButtonRenderer?.enabled!== void 0}O(){return this.g7}A(p){return this.g7.A(p)}h$(){return!this.isLivePlayback||this.allowLiveDvr}hasSupportedAudio51Tracks(){return!!this.PZ?.Ic}getUserAudio51Preference(){let p=1;Kr(this.g7)&&this.A("html5_ytv_surround_toggle_default_off")?p=0:g.$G(this.g7)&&this.isLivePlayback&&this.FF()&&(p=0);return g.Wk("yt-player-audio51")??p}gJ(){this.nz()||(this.L.S||this.L.unsubscribe("refresh",this.gJ,this),this.hE(-1))}hE(p){if(!this.isLivePlayback||!this.X||this.X.flavor!=="fairplay"){var a=this.L.Ic(this.mH); if(a.length>0){for(const l of a)l.startSecs=Math.max(l.startSecs,this.NE()),this.A("html5_cuepoint_identifier_logging")&&l.event==="start"&&this.Xu("cuepoint",{pubCue:l.identifier,segNum:p});this.publish("cuepointupdated",a,p);this.mH+=a.length;if(TJ(this)&&this.g7.Mc())for(const l of a)this.Xu("cuepoint",{segNum:p,event:l.event,startSecs:l.startSecs,id:l.identifier.slice(-16)}),l.event==="start"&&(a=l.startSecs,this.u2.start=this.ir,this.u2.end=a+3)}}}hG(){this.nz()||(this.loading=!1,this.publish("dataloaded"))}FF(){return this.Wf!== void 0?this.Wf:this.Wf=!!this.uf||!!this.L&&this.L.j()}eq(p){if(this.nz())return Sk();this.zn=this.Tm=this.U=null;at(this,"html5_high_res_logging_always")&&(this.g7.PZ=!0);return Hlr(this,p).then(void 0,()=>eYf(this,p)).then(void 0,()=>Ppe(this)).then(void 0,()=>rQ$(this))}wr(p){this.U=p; KOE(this,this.U.getAvailableAudioTracks());if(this.U)for(var a of this.U.videoInfos)p=a.containerType,p!==0&&(this.Bf[p]=a.id);a=this.getAvailableAudioTracks();a=a.concat(this.sU);for(p=0;p0?this.U.getAvailableAudioTracks():this.A3||[]:[]}getAudioTrack(){if(this.j&&!this.j.j()){var p=g.y_(this.getAvailableAudioTracks(),a=>a.id===this.j.id); if(!p&&this.j.rG?.id){const a=this.j.rG.id;p=g.y_(this.getAvailableAudioTracks(),l=>l.rG.id===a); this.Xu("nat",{id:this.j.id,track:!!p})}return p||this.sU}if(this.A3){if(!this.tD)for(p of this.A3)if(p.rG.getIsDefault()){this.tD=p;break}return this.tD||this.sU}return this.sU}getPlayerResponse(){return this.playerResponse}getWatchNextResponse(){return this.Hs}getReelItemWatchResponse(){return this.reelItemWatchResponse}getHeartbeatResponse(){return this.Nw}Zb(){return this.watchUrl?this.watchUrl:this.g7.getVideoUrl(this.videoId)}zI(){return!!this.L&&(MCq(this.L)||ua$(this.L)||tyh(this.L))}dU(){const p= g.Gu(this),a=this.O().X,l=w6("243");return l?Z6(p,l,a,!0)===!0:!1}vG(){return this.A("enable_wn_infocards")}n8(){return(this.vG()?this.Hs?.cards?.cardCollectionRenderer:this.playerResponse?.cards?.cardCollectionRenderer)||null}getEmbeddedPlayerResponse(){return this.u_}Yn(){return(this.eventLabel||this.g7.w7)==="shortspage"}isAd(){return!!this.adFormat}G(){return this.oauthToken||this.g7.dE}isDaiEnabled(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&& this.playerResponse.playerConfig.daiConfig.enableDai)}nh(){return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!this.playerResponse?.playerConfig?.daiConfig?.ssaEnabledPlayback}MJ(){return!!this.playerResponse?.compositePlayabilityStatus}Mu(){return!this.MJ()}Gv(){return this.g2}JQ(){return this.l_||this.Z1}wU(){return!1}dE(){if(!this.L||!this.S||!this.j)return!1;var p=this.L.L;const a=!!p[this.S.id]&&WM(4,p[this.S.id].gG.L);p=!!p[this.j.id]&&WM(4,p[this.j.id].gG.L);return(this.S.itag==="0"|| a)&&p}bx(){return at(this,"html5_samsung_vp9_live")}Xu(p,a,l){this.publish("ctmp",p,a,l)}cj(p,a,l){this.publish("ctmpstr",p,a,l)}hasProgressBarBoundaries(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}Ic(){return!(!this.isLivePlayback||!this.hasProgressBarBoundaries())}N(){return this.Xw||this.suggestions?.[0]||null}getGetAdBreakContext(p=NaN,a=NaN){const l={isSabr:Yc(this)};var y=this.getHeartbeatResponse()?.adBreakHeartbeatParams;y&&(l.adBreakHeartbeatParams=y);if(this.A("enable_ltc_param_fetch_from_innertube")&& this.isLivePlayback&&this.L&&!isNaN(p)&&!isNaN(a)){a=p-a;for(var S in this.L.L)if(y=this.L.L[S],y.info.n1()||y.info.Bi())if(y=y.index,y.isLoaded()){S=y.ov(a);y=y.By(S)+a-y.getStartTime(S);this.Xu("gabc",{t:p.toFixed(3),mt:a.toFixed(3),sg:S,igt:y.toFixed(3)});l.livePlaybackPosition={utcTimeMillis:""+(y*1E3).toFixed(0)};break}}return l}isEmbedsShortsMode(p,a){return!g.x3(this.g7)||(this.g7.jl||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||a?!1:this.A("embeds_enable_shorts")?!!this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible: !!(this.embeddedPlayerConfig?.embeddedPlayerFlags?.isShortsExperienceEligible&&p.width<=p.height)}RC(){return this.K||this.A("web_player_media_session_infinity")&&this.isLivePlayback}fz(){super.fz();this.Sc=null;delete this.U$;delete this.accountLinkingConfig;delete this.L;this.U=this.Nw=this.playerResponse=this.Hs=null;this.Me=this.adaptiveFormats="";delete this.botguardData;this.iT=this.suggestions=this.Xw=null;this.sabrContextUpdates.clear()}};Dgr=!0;var Kdh={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},bDr={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},C4M={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ddr={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"},BNq={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},GRr={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"},vG$={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 iyf=class extends g.YB{constructor(p,a){super();this.app=p;this.state=a}handleExternalCall(p,a,l){const y=this.state.G[p],S=this.state.K[p];let n=y;if(S)if(l&&oY(l,obF))n=S;else if(!y)throw Error(`API call from an untrusted origin: "${l}"`);this.logApiCall(p,l);if(n){l=!1;for(const V of a)if(String(V).includes("javascript:")){l=!0;break}l&&g.tX(Error(`Dangerous call to "${p}" with [${a}].`));return n.apply(this,a)}throw Error(`Unknown API method: "${p}".`);}logApiCall(p,a,l){const y=this.app.O(); y.Jw&&!this.state.C.has(p)&&(this.state.C.add(p),g.i0("webPlayerApiCalled",{callerUrl:y.loaderUrl,methodName:p,origin:a||void 0,playerStyle:y.playerStyle||void 0,embeddedPlayerMode:y.jl,errorCode:l}))}publish(p,...a){this.state.U.publish(p,...a);if(p==="videodatachange"||p==="resize"||p==="cardstatechange")this.state.S.publish(p,...a),this.state.j.publish(p,...a)}A(p){return this.app.O().A(p)}fz(){if(this.state.element){var p=this.state.element,a;for(a in this.state.L)this.state.L.hasOwnProperty(a)&& (p[a]=null);this.state.element=null}super.fz()}};var g4=class extends g.tj{constructor(){super();this.X=new Map}publish(p,...a){if(this.X.has(p))return this.X.get(p).push(a),!0;let l=!1;try{for(a=[a],this.X.set(p,a);a.length;)l=super.publish(p,...a.shift())}finally{this.X.delete(p)}return l}};var TYZ=class extends g.YB{constructor(){super(...arguments);this.element=null;this.X=new Set;this.G={};this.K={};this.L={};this.C=new Set;this.U=new g4;this.S=new g4;this.j=new g4;this.D=new g4}fz(){this.D.dispose();this.j.dispose();this.S.dispose();this.U.dispose();this.C=this.L=this.K=this.G=this.X=void 0}};var Crq=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));var NYh=class extends iyf{getApiInterface(){return Array.from(this.state.X)}UO(p,a){this.state.D.subscribe(p,a)}tN(p,a){this.state.D.unsubscribe(p,a)}getPlayerState(p){return Qt(this.app,p)}NO(){return Qt(this.app)}L1(p,a,l){Kp(this)&&(RS(this.app,!0,1),Ex(this.app,p,a,l,1))}getCurrentTime(p,a,l){const y=this.getPlayerState(p);return this.app.getAppState()===2&&y===5?this.app.getVideoData()?.startSeconds||0:this.A("web_player_max_seekable_on_ended")&&y===0?aZ(this.app,p):p?this.app.getCurrentTime(p, a,l):this.app.getCurrentTime(p)}Hs(){return this.app.getCurrentTime(1)}Tm(){const p=this.app.By(1);return isNaN(p)?this.getCurrentTime(1):p}ac(){return this.app.getDuration(1)}b5(p,a){p=g.qx(Math.floor(p),0,100);isFinite(p)&&fF(this.app,{volume:p,muted:this.isMuted()},a)}ej(p){this.b5(p,!1)}Tq(p){fF(this.app,{muted:!0,volume:this.getVolume()},p)}wq(){this.Tq(!1)}KJ(p){fF(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},p)}Dd(){vc(this.app)||this.KJ(!1)}getPlayerMode(){const p={};this.app.getVideoData().XX&& (p.pfp={enableIma:this.app.EE().allowImaMonetization,autoplay:AG(this.app.EE()),mutedAutoplay:this.app.EE().mutedAutoplay});return p}tK(){const p=this.app.getPresentingPlayerType();if(p===2&&!this.app.eD()){var a=Hq(this.app.DN());if(!(jLo(a)||g.x3(this.app.O())&&this.app.zm().getPlayerState().L(1024))||yZ(a))return}(a=this.app.h3().EU)?a.playVideo():this.app.playVideo(p)}OC(){RS(this.app,!0,1);this.tK()}pauseVideo(p){const a=this.app.getPresentingPlayerType();if(a!==2||this.app.eD()||jLo(Hq(this.app.DN()))){var l= this.app.h3().EU;l?l.pauseVideo():this.app.pauseVideo(a,p)}}dE(){var p=this.app;let a=!1;p.Y.Lx&&(p.pz.publish("pageTransition"),a=!0);p.stopVideo(a)}clearVideo(){}getAvailablePlaybackRates(){const p=this.app.O();if(p.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(p.j?p.ancestorOrigins[0]:window.location.origin)||p.iW)return bZM;const a=this.app.getVideoData();if(a.playerResponse?.playerConfig?.granularVariableSpeedConfig){const l= a.yg,y=a.X3;return uxr.filter(S=>S>=l&&S<=y)}return p.supportsVarispeedExtendedFeatures?Ioq:p.A("web_remix_allow_up_to_3x_playback_rate")&&g.cf(p)?RKM:Lg}return[1]}getPlaybackQuality(p){return(p=this.app.GO(p))?p.getPlaybackQuality():"unknown"}OY(){}getAvailableQualityLevels(p){return(p=this.app.GO(p))?(p=g.Nx(p.oD(),a=>a.quality),p.length&&(p[0]==="auto"&&p.shift(),p=p.concat(["auto"])),p):[]}QY(){return this.getAvailableQualityLevels(1)}Lx(){return this.j()}E6(){return 1}getVideoLoadedFraction(p){return this.app.getVideoLoadedFraction(p)}j(){return this.getVideoLoadedFraction()}dG(){return 0}getSize(){const p= this.app.h9().getPlayerSize(); return{width:p.width,height:p.height}}setSize(){this.app.h9().resize()}loadVideoById(p,a,l,y){if(!p)return!1;p=Y0(p,a,l);return this.app.loadVideoByPlayerVars(p,y)}ZN(p,a,l){p=this.loadVideoById(p,a,l,1);RS(this.app,p,1)}cueVideoById(p,a,l,y){p=Y0(p,a,l);this.app.cueVideoByPlayerVars(p,y)}N(p,a,l){this.cueVideoById(p,a,l,1)}loadVideoByUrl(p,a,l,y){p=wcr(p,a,l);return this.app.loadVideoByPlayerVars(p,y)}Ye(p,a,l){p=this.loadVideoByUrl(p,a,l,1);RS(this.app,p,1)}cueVideoByUrl(p,a,l,y){p=wcr(p,a,l);this.app.cueVideoByPlayerVars(p, y)}jl(p,a,l){this.cueVideoByUrl(p,a,l,1)}Ba(){const p=this.app.O();if(p.N)return"";const a=this.app.EE();let l=void 0;a.isLivePlayback||(l=Math.floor(this.app.getCurrentTime(1)));return p.getVideoUrl(a.videoId,this.getPlaylistId()||void 0,l)}Rc(){return this.app.getDebugText()}getVideoEmbedCode(){const p=this.app.O();if(p.N)return"";const a=this.app.EE();return p.getVideoEmbedCode(a.isPrivate?"":a.title,this.app.EE().videoId,this.app.h9().getPlayerSize(),this.getPlaylistId()||void 0)}K(p,a,l){return Ef(this.app, p,a,l)}removeCueRange(p){return this.app.Oa(p)}loadPlaylist(p,a,l,y){this.app.loadPlaylist(p,a,l,y)}Kx(p,a,l,y){this.loadPlaylist(p,a,l,y);RS(this.app,!0,1)}cuePlaylist(p,a,l,y){this.app.cuePlaylist(p,a,l,y)}nextVideo(p,a){this.app.nextVideo(p,a)}tP(){this.nextVideo();RS(this.app,!0,1)}previousVideo(p){this.app.previousVideo(p)}g$(){this.previousVideo();RS(this.app,!0,1)}playVideoAt(p){this.app.playVideoAt(p)}ir(p){this.playVideoAt(p);RS(this.app,!0,1)}setShuffle(p){const a=this.app.getPlaylist(); a&&a.setShuffle(p)}setLoop(p){const a=this.app.getPlaylist();a&&(a.loop=p)}Fu(){const p=this.app.getPlaylist();if(!p)return null;const a=[];for(let l=0;l{g.tX(l)}; var a=this.app.O();if(a.externalFullscreen){if(!g.cy(a))return this.isFullscreen()?op(window.document.documentElement):q1(window.document.documentElement).catch(p)}else if(g.gm()||a.G)return this.isFullscreen()?op(ve()):a.controlsType!=="3"&&g.gm()?q1(this.app.h9().element).catch(p):(a=this.app.mB().Wa())?q1(a).catch(p):Promise.reject(Error("Media element missing"));g.ZN(this,"onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)}isFullscreen(){return this.app.isFullscreen()}AD(){return this.app.AD()}cancelPlayback(){var p= Hq(this.app.DN());p&&p.created&&p.destroy();this.app.zm().stopVideo();(p=this.app.DN().yr.get("endscreen"))&&p.aR()&&g.ZG(this.app.pz,!0)}getProgressState(p){if(this.U()===3)return Kh(this.app.DN()).getProgressState();const a=this.app.getVideoData();var l=this.app.GO(p)||this.app.zm(),y=l.getPlayerType();a:{var S=this.app.getVideoData();if(S.progressBarStartPosition?.utcTimeMillis&&(S=Number(S.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(S))){S=this.Rt(S,p);break a}S=0}a:{var n=this.app.getVideoData(); if(n.progressBarEndPosition?.utcTimeMillis&&(n=Number(n.progressBarEndPosition.utcTimeMillis)/1E3,!isNaN(n))){n=this.Rt(n,p);break a}n=0}const V=this.getCurrentTime(p);p=this.getDuration(p);const Z=this.app.By(y),z=this.app.isAtLiveHead(y),d=this.app.R1();var G=this.app;var B=G.GR({playerType:y});B?(B=gV(G,B),G=Jz(G,B.c8(),B)):G=G.R4.L.c8();B=aZ(this.app,y);l=l.oo();const c=this.app.getVideoData().hn;y=!c||isNaN(c)?0:this.Rt(c,y);return{airingStart:S,airingEnd:n,allowSeeking:this.app.h$(),clipEnd:a.clipEnd, clipStart:a.clipStart,current:V,displayedStart:-1,duration:p,ingestionTime:Z,isAtLiveHead:z,loaded:d,seekableStart:G,seekableEnd:B,offset:l,viewerLivestreamJoinMediaTime:y}}Rt(p,a){const l=this.app.By(a);if(!l)return 0;a=l-this.app.getCurrentTime(a);return p-a}isInline(){return this.app.isInline()}setInline(p){this.app.setInline(p)}Xg(){return this.app.jb().mS(!0)}toggleSubtitles(){const p=g.t9(this.app.DN());p&&p.nW()}getPlayerSize(){const p=this.app.h9().getPlayerSize();return{width:p.width,height:p.height}}setCenterCrop(p){this.app.h9().setCenterCrop(p)}getLoopVideo(){return this.app.getLoopVideo()}setLoopVideo(p){this.app.setLoopVideo(p)}}, g_O="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(" "), qqE="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 lIq={["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.Yo=class extends s0v{isExternalMethodAvailable(p,a){return this.state.G[p]?!0:!!(this.state.K[p]&&a&&oY(a,obF))}getBandwidthEstimate(){return this.app.O().e8().L.Zy(v$O)?B5(this.app.s6):B5(this.app.O().schedule)}reportPlaybackIssue(p=""){const a=this.app.zm();p={gpu:(0,g.DG)(),d:p};a.handleError(new g.cQ("feedback",p))}getInternalApi(){return{...this.state.L}}getInternalApiInterface(){return g.WA(this.state.L)}queueNextVideo(p,a,l=NaN,y="",S=""){this.app.queueNextVideo(p,a,l,y,S)}VY(p){p=this.app.getPlayerStateObject(p); return{isBuffering:p.L(1),isCued:p.isCued(),isDomPaused:p.L(1024),isEnded:p.L(2),isError:p.L(128),isOrWillBePlaying:p.isOrWillBePlaying(),isPaused:p.isPaused(),isPlaying:p.isPlaying(),isSeeking:p.L(16),isUiSeeking:p.L(32),isUnstarted:p.L(64)}}createSubtitlesModuleIfNeeded(){return this.app.createSubtitlesModuleIfNeeded()}startSeekCsiAction(){this.app.L0().j.L=(0,g.h)()}Bs(p=1,a,l){return this.getCurrentTime(p,a,l)}seekToStreamTime(p,a,l,y){$dh(this.app,p,a,l,y)}getStreamTimeOffset(){return this.app.jb().getStreamTimeOffset()}seekToLiveHead(p, a){const l=this.app.jb().getVideoData();l&&l.isLivePlayback&&Ex(this.app,Infinity,p,a,1)}requestSeekToWallTimeSeconds(p,a,l){this.app.jb().u4(p,a,l)}r$(p,a,l,y=1,S){this.seekTo(p,a,l,y,S)}Me(p,a,l,y){this.seekBy(p,a,l,y,1)}prefetchKeyPlay(p,a){this.app.jb().prefetchKeyPlay(p,a)}setVolume(p,a=!0){this.b5(p,a)}mute(p=!0){this.Tq(p)}unMute(p=!0){this.KJ(p)}syncVolume(){const p=FCf(this.app);fF(this.app,{volume:p.volume,muted:p.muted},!1)}getAvailableQualityLabels(){return g.Nx(this.app.jb().oD(),p=> p.qualityLabel)}channelSubscribed(){g.v0(this,"SUBSCRIBE",this.app.EE().Jk)}channelUnsubscribed(){g.v0(this,"UNSUBSCRIBE",this.app.EE().Jk)}setScreenLayer(p){this.app.setScreenLayer(p)}getCurrentPlaylistSequence(){return this.app.zm().getPlaylistSequenceForTime(this.app.getCurrentTime())}getPlaylistSequenceForTime(p){return this.app.zm().getPlaylistSequenceForTime(p)}shouldSendVisibilityState(){return!0}confirmYpcRental(){this.app.jb().Kv("ypcRentalActivation")}setHomeGroupInfo(p){this.app.O().homeGroupInfo= p}setConnectedRemoteApps(p){this.app.O().Dd=p}setLivingRoomAppMode(p){this.app.O().livingRoomAppMode=O4("LIVING_ROOM_APP_MODE_UNSPECIFIED",p,AcE)}setEnablePrivacyFilter(p=!1){this.app.O().enablePrivacyFilter=p}togglePictureInPicture(){this.app.togglePictureInPicture()}addUtcCueRange(p,a,l,y,S){return CRZ(this.app,p,a,l,y,S)}Ha(p=1){const a=this.gw(p); if(p=this.app.GO(p))p=p.getVideoData(),a.hasProgressBarBoundaries=p.hasProgressBarBoundaries(),a.isPremiere=p.isPremiere,a.itct=p.jl,a.playerResponseCpn=p.playerResponseCpn,a.progressBarStartPositionUtcTimeMillis=p.hasProgressBarBoundaries()&&p.progressBarStartPosition?.utcTimeMillis?So(p.progressBarStartPosition.utcTimeMillis):null,a.progressBarEndPositionUtcTimeMillis=p.hasProgressBarBoundaries()&&p.progressBarEndPosition?.utcTimeMillis?So(p.progressBarEndPosition.utcTimeMillis):null,a.ypcOriginalItct= p.SL,a.ypcPreview=p.ypcPreview,a.paidContentOverlayText=td(p),a.paidContentOverlayDurationMs=wA(p),p.L&&bW(p.L)&&(a.usingLocalMedia="true"),a.transitionEndpointAtEndOfStream=p.transitionEndpointAtEndOfStream;return a}getAdState(){return this.app.getAdState()}isNotServable(p){if(p!==this.app.z5.video_id)return!1;const a=(p=this.app.jb().getPlayerState())?p.Kq:null;return!!(p&&a&&p.L(128)&&y0O(a.errorCode)===5)}supportsGaplessAudio(){return this.app.O().supportsGaplessAudio()}supportsGaplessShorts(){return this.app.O().supportsGaplessShorts()}enqueueVideoByPlayerVars(p, a,l=Infinity,y=""){this.app.enqueueVideoByPlayerVars(p,a,l,y)}clearQueue(){this.app.clearQueue()}I7(){return g.HJ(this)}sendAbandonmentPing(){this.app.zm().sendAbandonmentPing()}setAutonavState(p,a=!1){if(this.A("web_player_autonav_use_server_provided_state")&&!a&&(a=this.app.EE(),a?.mw()))if(p===3)a.autonavState!==3&&(a.a_=a.autonavState);else if(a.a_!==void 0)p=a.a_,a.a_=void 0;else return;r3E(this.app,p)}setAutonav(p,a=!1){this.setAutonavState(p?2:1,a)}setLoopRange(p){this.app.setLoopRange(p)}getLoopRange(){return this.app.getLoopRange()}hasSupportedAudio51Tracks(){return this.app.jb().hasSupportedAudio51Tracks()}setUserAudio51Preference(p, a=!1){this.app.jb().setUserAudio51Preference(p,a)}getUserAudio51Preference(){return this.app.jb().getUserAudio51Preference()}setProximaLatencyPreference(p){this.app.jb().setProximaLatencyPreference(p)}getProximaLatencyPreference(){return this.app.jb().getProximaLatencyPreference()}isProximaLatencyEligible(){return this.app.jb().isProximaLatencyEligible()}getAppState(){return this.app.getAppState()}updateLastActiveTime(){xA()}setBlackout(p){this.app.setBlackout(p)}setUserEngagement(p){this.app.O().GM!== p&&(this.app.O().GM=p,this.app.jb().jp())}updateSubtitlesUserSettings(p,a=!0){g.t9(this.app.DN()).bV(p,a)}getCaptionWindowContainerId(){const p=g.t9(this.app.DN());return p?p.getCaptionWindowContainerId():""}toggleSubtitlesOn(){const p=g.t9(this.app.DN());p&&p.VG()}isSubtitlesOn(){const p=g.t9(this.app.DN());return p?p.isSubtitlesOn():!1}getPlayerResponse(p){return(p=this.app.GO(p))?p.getVideoData().getPlayerResponse():null}Ps(){return this.getPlayerResponse(1)}getEmbeddedPlayerResponse(){return this.app.jb().getVideoData().getEmbeddedPlayerResponse()}getWatchNextResponse(p){return(p= this.app.GO(p))?p.getVideoData().getWatchNextResponse():null}Ro(){return this.getWatchNextResponse(1)}getHeartbeatResponse(p){return(p=this.app.GO(p))?p.getVideoData().getHeartbeatResponse():null}Ic(){return this.getHeartbeatResponse(1)}getStoryboardFrame(p,a){const l=this.app.XG();if(!l)return null;a=l.levels[a];return a?(p=g.B2(a,p))?{column:p.column,columns:p.columns,height:p.PH,row:p.row,rows:p.rows,url:p.url,width:p.Aq}:null:null}getStoryboardFrameIndex(p,a){const l=this.app.XG();if(!l)return-1; a=l.levels[a];if(!a)return-1;p-=this.oo();return a.j(p)}getStoryboardLevel(p){var a=this.app.XG();return a?(a=a.levels[p])?{index:p,intervalMs:a.L,maxFrameIndex:a.S(),minFrameIndex:a.D()}:null:null}getNumberOfStoryboardLevels(){const p=this.app.XG();return p?p.levels.length:0}Z_(p){return this.app.zm().Z_(p)}pC(){this.app.zm().pC()}w7(){return this.getAudioTrack(1)}getAudioTrack(p){return(p=this.app.GO(p))?p.getAudioTrack():this.app.getVideoData().sU}OS(){const p=this.app.GO();return p?p.OS():null}setAudioTrack(p, a,l){const y=this.app.h3().EU;y&&y.OZ(p);l=this.app.GO(l);if(!l)return!1;(p=l.OZ(p,a))&&this.pC();return p}A$(p,a){return this.setAudioTrack(p,a,1)}Ws(){return this.getAvailableAudioTracks(1)}getAvailableAudioTracks(p){return this.app.GO(p).getAvailableAudioTracks()}getMaxPlaybackQuality(){const p=this.app.jb();return p.getVideoData().S?wX(p.RE()):"unknown"}getUserPlaybackQualityPreference(){return this.app.jb().getUserPlaybackQualityPreference()}getSubtitlesUserSettings(){const p=g.t9(this.app.DN()); return p?p.UR():null}resetSubtitlesUserSettings(){g.t9(this.app.DN()).Zm()}setMinimized(p){this.app.setMinimized(p)}setOverlayVisibility(p){this.publish("overlayvisibilitychange",p)}setInlinePreview(p){this.app.setInlinePreview(p)}setSqueezeback(p){this.app.setSqueezeback(p)}setGlobalCrop(p){this.app.h9().setGlobalCrop(p)}setAppFullscreen(p){this.app.M5(p?4:0)}iX(){return this.app.iX()}getVisibilityState(){return this.iX().getVisibilityState(this.gE(),this.AD()||g.vK(this.app.O()),this.isMinimized(), this.isInline(),this.app.N0(),this.app.AG(),this.app.tG(),this.app.n0())}isMutedByMutedAutoplay(){return this.app.zo}isMutedByEmbedsMutedAutoplay(){return vc(this.app)}setInternalSize(p,a){this.app.h9().setInternalSize(new g.J9(p,a))}oo(p){return(p=this.app.GO(p))?p.oo():0}isMinimized(){return this.app.isMinimized()}N0(){return this.app.N0()}gE(){return this.app.zm().gE()}setSafetyMode(p){this.app.O().enableSafetyMode=p}canPlayType(p){return this.app.canPlayType(p)}updatePlaylist(p){if(p){var a=this.getPlaylistId(), l=!1;a&&a!==p.list&&(l=!0);p.external_list!==void 0&&(this.app.TM=EA(!1,p.external_list));const y=p.video;(a=this.app.getPlaylist())&&!l?this.isFullscreen()&&((l=y[a.index])&&l.encrypted_id!==g.DB(a).videoId||(p.index=a.index)):al(this.app,{list:p.list,index:p.index,playlist_length:y.length});Znf(this.app.getPlaylist(),p);g.OT(this,"onPlaylistUpdate")}else this.app.updatePlaylist()}updateVideoData(p,a){g.GI(this.app.jb().getVideoData(),p,a)}updateEnvironmentData(p){Hj(this.app.O(),p,!1)}DF(p){this.app.sendVideoStatsEngageEvent(p, 1)}productsInVideoVisibilityUpdated(p){this.publish("changeProductsInVideoVisibility",p)}isAtLiveHead(p,a=!0){return this.app.isAtLiveHead(p,a)}getVideoAspectRatio(){return this.app.h9().getVideoAspectRatio()}getPreferredQuality(){return this.app.zm().getPreferredQuality()}getPlaybackQualityLabel(p){return(p=this.app.GO(p))?p.getVideoData().S?.G()?.qualityLabel||"":""}setPlaybackQualityRange(p,a,l,y){(y=this.app.GO(y))&&y.Ki(g.F_(p,a||p,!0,"m"),!0,l)}zy(p,a,l){this.setPlaybackQualityRange(p,a,l,1)}onAdUxClicked(p, a){this.publish("aduxclicked",p,a)}showAirplayPicker(){this.app.showAirplayPicker()}dispatchReduxAction(p){g.lR.dispatch(p)}highlightSettingsMenuItem(p){this.publish("highlightSettingsMenu",p)}openSettingsMenuItem(p){this.publish("openSettingsMenuItem",p)}C(p,a){this.state.S.subscribe(p,a)}bf(p,a){this.state.S.unsubscribe(p,a)}Sl(p,a=1){this.cueVideoByPlayerVars(p,a)}zn(p,a,l=1,y){this.loadVideoByPlayerVars(p,a,l,y)}Wy(p,a=1,l,y){this.preloadVideoByPlayerVars(p,a,l,y)}getFeedbackProductData(){return this.app.getFeedbackProductData()}bN(){return g.HJ(this).bN()}m7(){return g.HJ(this).m7()}M7(){return g.HJ(this).M7()}Py(){return this.I7().Py()}xc(...p){this.Py().xc(...p)}yT(){this.Py().yT()}r0(){this.Py().r0()}X(){this.Py().hide()}AY(p, a,l,y,S,n,V,Z){this.Py().AY(p,a,l,y,S,n,V,Z)}Z8(p,a){this.Py().Z8(p,a)}gK(p,a,l,y,S){this.I7().gK(p,a,l,y,S)}Ip(p){this.Py().setEnabled(p)}WR(p,a){this.I7().WR(p,a)}Pw(p,a){this.I7().Pw(p,a)}Jy(p,a){this.I7().Jy(p,a)}r8(){this.I7().r8()}Ew(p,a){this.I7().Ew(p,a)}renderChapterSeekingAnimation(p,a,l){this.I7().renderChapterSeekingAnimation(p,a,l)}yu(){this.I7().yu()}getWebPlayerContextConfig(){return this.app.O().getWebPlayerContextConfig()}notifyShortsAdSwipeEvent(){this.publish("shortsadswipe")}C8(){return this.app.zm().C8()}H9(p, a,l=!1){this.I7()?.H9(p,a,l)}};g.Yo.prototype.uP=Gl(4);g.q0=class extends g.Yo{constructor(p,a){super(p,a);URE(this);B6(this,"addEventListener",this.vc);B6(this,"removeEventListener",this.pT);B6(this,"cueVideoByPlayerVars",this.jM);B6(this,"loadVideoByPlayerVars",this.mU);B6(this,"preloadVideoByPlayerVars",this.Bp);B6(this,"loadVideoById",this.v_);B6(this,"loadVideoByUrl",this.t_);B6(this,"playVideo",this.tK);B6(this,"loadPlaylist",this.loadPlaylist);B6(this,"nextVideo",this.nextVideo);B6(this,"previousVideo",this.previousVideo);B6(this,"playVideoAt", this.playVideoAt);B6(this,"getVideoData",this.gw);B6(this,"seekBy",this.CT);B6(this,"seekTo",this.Fm);B6(this,"showControls",this.showControls);B6(this,"hideControls",this.hideControls);B6(this,"cancelPlayback",this.cancelPlayback);B6(this,"getProgressState",this.getProgressState);B6(this,"isInline",this.isInline);B6(this,"setInline",this.setInline);B6(this,"setLoopVideo",this.setLoopVideo);B6(this,"getLoopVideo",this.getLoopVideo);B6(this,"getVideoContentRect",this.getVideoContentRect);B6(this,"getVideoStats", this.Xg);B6(this,"getCurrentTime",this.m8);B6(this,"getDuration",this.UH);B6(this,"getPlayerState",this.S7);B6(this,"getVideoLoadedFraction",this.j7);B6(this,"mute",this.Tq);B6(this,"unMute",this.KJ);B6(this,"setVolume",this.b5);B6(this,"loadModule",this.loadModule);B6(this,"unloadModule",this.unloadModule);B6(this,"getOption",this.ww);B6(this,"getOptions",this.getOptions);B6(this,"setOption",this.setOption);B6(this,"addCueRange",this.addCueRange);B6(this,"getDebugText",this.getDebugText);B6(this, "getStoryboardFormat",this.getStoryboardFormat);B6(this,"toggleFullscreen",this.toggleFullscreen);B6(this,"isFullscreen",this.isFullscreen);B6(this,"getPlayerSize",this.getPlayerSize);B6(this,"toggleSubtitles",this.toggleSubtitles);B6(this,"setCenterCrop",this.setCenterCrop);B6(this,"setFauxFullscreen",this.setFauxFullscreen);B6(this,"setSizeStyle",this.setSizeStyle);B6(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);B6(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);uAA(this)}vL(p,a,l,y,S, n,V){return this.app.vL(p,a,l,y,S,n,V)}jI(){return this.app.jI()}DN(){return this.app.DN()}AN(){const p=this.DN().yr.get("endscreen");return!!p&&p.AN()}getRootNode(){return this.h9().element}O(){return this.app.O()}SE(p){return this.app.SE(p)}GD(){return g.HJ(this)?.GD()||null}jP(){return this.app.zm().jP()}getPlayerStateObject(p){return this.app.getPlayerStateObject(p)}h9(){return this.app.h9()}getPlaylist(){return this.app.getPlaylist()}getVideoData(p,a=!1){var l=this.app.GO(p);if(!l)return null; l=l.getVideoData();a?p=l:l.enableServerStitchedDai&&p===2?(p=this.app,p=p.Yy?p.R4.j?.getVideoData()||p.getVideoData():p.getVideoData()):p=l;return p}nN(){return this.app.zm().nN()}XG(p){return this.app.XG(p)}n0(){return this.app.n0()}isHdr(){return this.app.zm().isHdr()}Ff(){return this.app.Ff()}isEmbedsShortsMode(){var p=g.HJ(this);const a=this.getVideoData();p=p?p.O8:this.getPlayerSize();const l=!!this.getPlaylist();return!(!a||!a.isEmbedsShortsMode(new g.J9(p.width,p.height),l))}GY(p,a){this.app.GY(p, 1,a)}f1(p,a,l,y,S){this.app.Sj(p,a,l,y,S)}playVideo(p,a){try{const l=this.app.h3().EU;if(l){l.playVideo();return}if(!p&&this.getPresentingPlayerType()===2){const y=Hq(this.app.DN());if(y&&yZ(y))return}}catch(l){g.MD(l)}this.app.playVideo(p,a)}stopVideo(p){this.app.GO(p).stopVideo()}Os(p){this.app.GO(p).Os()}addEventListener(p,a){this.state.U.subscribe(p,a)}removeEventListener(p,a){this.state.U.unsubscribe(p,a)}Ny(p){this.app.Ny(p)}setPlaybackQuality(p,a){this.setPlaybackQualityRange(p,p,a)}oD(){const p= {},a=this.app.zm().oD();for(const l of a)p[l.quality]=l;return p}pU(){return this.app.zm().pU()}x_(p){this.app.x_(p);p&&r3E(this.app,p)}getVideoUrl(p,a,l,y){let S=this.getPresentingPlayerType(),n=S===2;if(y&&n||S===3)n=!1,S=1;y=this.getVideoData(S);if(!y)return"";let V;p||y.isLivePlayback||(V=Math.floor(this.getCurrentTime(S)));p=n?void 0:this.getPlaylistId()||void 0;a&&p==="WL"&&(p=void 0);return this.app.getVideoUrl(y.videoId,p,V,a,l)}CC(p){this.app.zm().CC(p)}rl(p,a){this.DN().rl(p,a)}gh(){const p= g.xs(this.DN());return!!p&&p.gh()}Vl(){const p=g.xs(this.DN());return!!p&&p.Vl()}vC(p,a,l){const y=g.xs(this.DN());y&&y.vC(p,a,l)}VO(){this.app.zm().m_()}fJ(p){g.OT(this,"onVideoAreaChange");g.OT(this,p?"onShowControls":"onHideControls")}w3(p,a){const l=g.HJ(this);if(l)return l.w3(p,a);p=this.app.h9().yS();return new g.hu(0,0,p.width,p.height)}P2(){const p=this.DN().yr.get("heartbeat");return!!p&&p.P2()}h$(){var p=this.O();if(p.Bs||p.disableSeek)return!1;const a=this.app.zm(),l=a.getVideoData();if(!l.Kh()|| g.aC(l)||this.getPresentingPlayerType()===2&&!this.app.eD()||l.nh()&&this.getPresentingPlayerType(!0)===2||a.g3()&&this.getPresentingPlayerType()!==3)return!1;p=g.cb(p);return g.qZ(p)&&!l.t4||vc(this.app)?!1:!0}Vz(){return this.app.zm().W6()}isLifaAdPlaying(){const p=this.getVideoData()?.nh();return p?this.getPresentingPlayerType(p)===2:!1}isOrchestrationLeader(){return this.app.isOrchestrationLeader()}H1(){this.app.zm().H1()}sendVideoStatsEngageEvent(p,a,l){this.app.sendVideoStatsEngageEvent(p,l, a)}OE(p,a,l){this.app.LN(p,a,l)}mM(p,a){this.app.uJ(p,a)}RX(p,a){lj(this.app,p,a)}oI(p){return this.app.oI(p)}Kv(p,a){this.app.GO(a)?.Kv(p)}g3(){const p=this.app.GO();return p?p.g3():!0}Qu(){const p=this.getVideoData();return!!p&&(p.Qu()||!!p.hlsFormats||!!p.Kx)}getPlaybackRate(){return this.app.jb().getPlaybackRate()}setPlaybackRate(p,a){this.app.setPlaybackRate(p,a)}mB(){return this.app.mB()}L0(){return this.app.L0()}Et(p){return this.app.Et(p)}createClientVe(p,a,l,y=!1){this.O().Rc&&this.app.P8.createClientVe(p, a,l,y)}createServerVe(p,a,l=!1){this.O().Rc&&this.app.P8.createServerVe(p,a,l)}setTrackingParams(p,a){this.O().Rc&&this.app.P8.setTrackingParams(p,a)}logClick(p,a){this.O().Rc&&(this.app.P8.click(p,a),this.publish("veClickLogged",p))}logVisibility(p,a,l){this.O().Rc&&this.app.P8.iM(p,a,l)}hasVe(p){return this.O().Rc?this.app.P8.hasVe(p):!1}destroyVe(p){this.O().Rc&&this.app.P8.destroyVe(p)}getPresentingPlayerType(p){return this.app.getPresentingPlayerType(p)}Hx(){this.app.Hx()}V5(p){this.app.V5(p)}I$(){this.app.I$()}addPlayerResponseForAssociation(){}finishSegmentByCpn(p, a,l){return this.app.finishSegmentByCpn(p,a,l)}e1(p,a,l,y,S,n,V,Z){return this.app.e1(p,a,l,y,S,n,V,Z)}Ju(p,a,l,y,S,n,V,Z){this.app.Ju(p,a,l,y,S,n,V,Z)}ma(){return this.app.ma()}EG(p){this.app.EG(p)}HR(p=-1,a=Infinity){this.app.HR(p,a)}JY(p){g.t9(this.DN())?.JY(p)}wR(p,a,l){this.app.wR(p,a,l)}yP(){return this.app.yP()}Vt(p,a,l=0){this.app.Vt(p,a,l)}f0(){return this.app.f0()}eD(){return this.app.eD()}CN(p,a,l){return this.app.CN(p,a,l)}Xu(p,a,l=!1,y){this.app.GO(y)?.Xu(p,a,l)}cS(p,a){this.publish("aduxmouseover", p,a)}K4(p,a){this.publish("aduxmouseout",p,a)}Lj(p,a){this.publish("muteadaccepted",p,a)}kZ(){return this.app.h9().kZ()}CE(p){this.app.h9().CE(p)}Q9(p){return p?this.app.kK():this.app.zm().Q9()}wH(p){this.app.wH(p)}Um(){this.app.zm().Um()}Ai(){this.app.Ai()}getGetAdBreakContext(){const p=this.app.jb();return p.getVideoData().getGetAdBreakContext(p.getCurrentTime(),p.oo())}Do(p,a){this.app.zm().Do(p,a)}R$(){return this.app.zm().R$()}fO(p){return this.app.GO(p)?.fO()||0}};g.C=g.q0.prototype; g.C.wD=Gl(49);g.C.Tu=Gl(47);g.C.TW=Gl(45);g.C.bc=Gl(43);g.C.kV=Gl(39);g.C.Pl=Gl(38);g.C.xg=Gl(32);g.C.U2=Gl(26);g.C.Qa=Gl(20);g.C.wX=Gl(18);g.C.FW=Gl(14);g.C.PL=Gl(10);g.C.sV=Gl(6);var Gcr=class extends sY{constructor(){super(...arguments);this.requestHeaders={}}UK(p,a){return{...super.UK(p,a),...this.requestHeaders}}},nf;g.kI=class extends g.YB{constructor(p){super();this.Lz=p;this.hg={bY:()=>this.Lz}}fz(){this.X(); super.fz()}X(){this.Lz.dispose()}addCueRange(p){this.Lz.addCueRange(p)}LN(p,a){this.Lz.LN(p,a)}Hw(){this.Lz.Hw()}z3(){return this.Lz.z3()}DG(p){return this.Lz===p}m_(){this.Lz.VO()}ZY(p,a){this.Lz.ZY(p,a)}UI(p,a){return this.Lz.UI(p,a)}qD(p){this.Lz.qD(p)}pC(){this.Lz.pC()}Z_(p){return this.Lz.Z_(p)}getAudioTrack(){return this.Lz.getAudioTrack()}OS(){return this.Lz.OS()}getAvailableAudioTracks(){return this.Lz.getAvailableAudioTracks()}oD(){return this.Lz.oD()}pU(){return this.Lz.pU()}J5(){return this.getVideoData().clientPlaybackNonce}iN(){return this.Lz.iN()}PR(){return this.Lz.PR()}bG(){return this.Lz.bG()}getCurrentTime(){return this.Lz.getCurrentTime()}V7(){return this.Lz.V7()}fE(){return this.Lz.fE()}mS(p){return this.Lz.mS(p)}getDuration(p){return this.Lz.getDuration(p)}KC(){return this.Lz.KC()}By(){return this.Lz.By()}W6(){return this.Lz.W6()}yP(){return this.Lz.yP()}R1(){return this.Lz.R1()}fO(){return this.Lz.fO()}V9(){return this.Lz.V9()}cG(p){return this.Lz.cG(p)}mB(){return this.Lz.mB()}mK(){return this.Lz.mK()}NE(){return this.Lz.NE()}c8(){return this.Lz.c8()}UU(p, a,l){return this.Lz.UU(p,a,l)}getPlaybackQuality(){return this.Lz.getPlaybackQuality()}getPlaybackRate(){return this.Lz.getPlaybackRate()}getPlayerState(){return this.Lz.getPlayerState()}getPlayerType(){return this.Lz.getPlayerType()}getPlaylistSequenceForTime(p){return this.Lz.getPlaylistSequenceForTime(p)}Et(p){return this.Lz.Et(p)}C8(){return this.Lz.C8()}getPreferredQuality(){return this.Lz.getPreferredQuality()}vI(){return this.Lz.vI()}getProximaLatencyPreference(){return this.Lz.getProximaLatencyPreference()}RE(){return this.Lz.RE()}XG(){return this.getVideoData().XG()}getStoryboardFormat(){return this.getVideoData().getStoryboardFormat()}getStreamTimeOffset(){return this.Lz.getStreamTimeOffset()}Wk(){return this.Lz.Wk()}oo(){return this.Lz.oo()}jP(){return this.Lz.jP()}getUserAudio51Preference(){return this.Lz.getUserAudio51Preference()}getUserPlaybackQualityPreference(){return this.Lz.getUserPlaybackQualityPreference()}getVideoData(){return this.Lz.getVideoData()}nN(){return this.Lz.nN()}K1(){return this.Lz.K1()}getVideoLoadedFraction(){if(this.getVideoData().dE())return 1; const p=this.Lz.mB();return p?p.WH():0}bY(){return this.Lz}Ma(p){this.Lz.Ma(p)}handleError(p){this.Lz.handleError(p)}b1(p){this.Lz.b1(p)}T5(p){this.Lz.T5(p)}g3(){return this.Lz.g3()}hasSupportedAudio51Tracks(){return this.Lz.hasSupportedAudio51Tracks()}Sr(){return this.Lz.Sr()}gE(){return this.Lz.gE()}isAtLiveHead(p,a){return this.Lz.isAtLiveHead(p,a)}Rn(){return this.Lz.Rn()}isGapless(){return this.Lz.isGapless()}isHdr(){return this.Lz.isHdr()}Zv(){return this.Lz.Zv()}Va(){return this.Lz.Va()}R$(){return this.Lz.R$()}isProximaLatencyEligible(){return this.Lz.isProximaLatencyEligible()}f0(){return this.Lz.f0()}vt(p){return!!this.Lz.loader?.vt(p)}rM(){return this.Lz.rM()}dt(){this.Lz.dt()}zx(p){this.Lz.zx(p)}Ze(){this.Lz.Ze()}wN(){this.Lz.wN()}k9(){this.Lz.k9()}xB(){this.Lz.xB()}Pz(p){this.Lz.Pz(p)}SB(){this.Lz.SB()}pauseVideo(p){this.Lz.pauseVideo(p)}prefetchKeyPlay(p, a){this.Lz.prefetchKeyPlay(p,a)}MI(p){this.Lz.MI(p)}aN(p){this.Lz.aN(p)}playVideo(p,a){return this.Lz.playVideo(p,a)}tJ(p,a,l,y,S){this.Lz.tJ(p,a,l,y,S)}Ub(p,a,l,y,S){this.Lz.Ub(p,a,l,y,S)}Xu(p,a,l){this.Lz.Xu(p,a,l)}CC(p){this.Lz.CC(p)}Do(p,a){this.Lz.Tn.Do(p,a)}lS(p,a,l){this.Lz.lS(p,a,l)}d$(p){this.Lz.d$(p)}ib(p){this.Lz.ib(p)}ZR(p,a){this.Lz.ZR(p,a)}e0(p,a,l,y,S,n,V,Z){this.Lz.e0(p,a,l,y,S,n,V,Z)}ZA(){c9(this.Lz.Tn)}ol(p){this.Lz.ol(p)}Os(p,a){this.Lz.Os(p,a)}removeCueRange(p){this.Lz.removeCueRange(p)}uJ(p){this.Lz.uJ(p)}RX(p){return this.Lz.jD.RX(p)}qR(p){this.Lz.qR(p)}W9(p, a,l){this.Lz.W9(p,a,l)}bP(){this.Lz.bP()}Pg(){this.Lz.jD.reset()}CY(){this.Lz.CY()}u4(p,a,l){this.Lz.u4(p,a,l)}seekTo(p,a){this.Lz.seekTo(p,a)}sendAbandonmentPing(){this.Lz.sendAbandonmentPing()}sendVideoStatsEngageEvent(p,a){this.Lz.sendVideoStatsEngageEvent(p,a)}uS(p,a,l){this.Lz.uS(p,a,l)}setLoop(p){this.Lz.setLoop(p)}EF(){this.Lz.EF()}setMediaElement(p){this.Lz.setMediaElement(p)}tT(p,a,l,y){this.Lz.tT(p,a,l,y)}setPlaybackRate(p){this.Lz.setPlaybackRate(p)}f1(p,a,l,y,S,n){this.Lz.f1(p,a,l,y,S, n)}aI(p,a){this.Lz.aI(p,a)}Kv(p){this.Lz.Kv(p)}setProximaLatencyPreference(p){this.Lz.setProximaLatencyPreference(p)}cO(p,a,l){this.Lz.cO(p,a,l)}TY(){this.Lz.TY()}gr(p){this.Lz.gr(p)}setUserAudio51Preference(p,a){this.Lz.setUserAudio51Preference(p,a)}Ki(p,a,l){this.Lz.Ki(p,a,l)}Gp(){return this.Lz.Gp()}H1(){this.Lz.H1()}Q9(){return this.Lz.Q9()}o6(p){this.Lz.o6(p)}JT(){this.Lz.JT()}iP(p){this.Lz.iP(p)}stopVideo(){this.Lz.stopVideo()}subscribe(p,a,l){return this.Lz.subscribe(p,a,l)}A4(p,a){this.Lz.A4(p, a)}togglePictureInPicture(){this.Lz.togglePictureInPicture()}oI(p){return this.Lz.jD.oI(p)}dD(p){this.Lz.jD.dD(p)}unsubscribe(p,a,l){return this.Lz.unsubscribe(p,a,l)}zA(p,a){this.Lz.zA(p,a)}OZ(p,a){return this.Lz.OZ(p,a)}jp(){this.Lz.jp()}Z2(p){this.Lz.Z2(p)}Um(){this.Lz.Um()}};g.C=g.kI.prototype;g.C.RQ=Gl(54);g.C.bc=Gl(42);g.C.Pl=Gl(37);g.C.xg=Gl(31);g.C.U2=Gl(25);g.C.wX=Gl(17);g.C.PL=Gl(9);g.Ag=class extends g.et{constructor(p,a,l,y=!1){super(a);this.B=p;this.Ws=y;this.X=new g.yr(this);this.fade=new g.Kg(this,l,!0,void 0,void 0,()=>{this.C()}); g.H(this,this.X);g.H(this,this.fade)}show(){const p=this.Gf();super.show();this.Ws&&(this.X.J(window,"blur",this.ke),this.X.J(vb(this),"click",this.jl));p||this.publish("show",!0)}hide(){const p=this.Gf();super.hide();RUZ(this);p&&this.publish("show",!1)}zR(p,a){this.sourceElement=p;this.fade.show();a?(this.D||(this.D=this.X.J(this.B,"appresize",this.K)),this.K()):this.D&&(this.X.Kt(this.D),this.D=void 0)}C(){this.sourceElement&&this.element&&(this.sourceElement.getAttribute("aria-haspopup"),this.sourceElement.setAttribute("aria-expanded", "true"),this.focus())}K(){const p=g.HJ(this.B);this.sourceElement&&p.gK(this.element,this.sourceElement)}ke(){const p=this.Gf();RUZ(this);this.fade.hide();p&&this.publish("show",!1)}jl(p){const a=rl(p);a&&(g.n3(this.element,a)||this.sourceElement&&g.n3(this.sourceElement,a)||!g.N_(p))||this.ke()}Gf(){return this.yQ&&this.fade.state!==4}};var Ugh=class extends g.Ag{constructor(p,a,l,y){y=new g.t({W:"div",A9:["ytp-linked-account-popup-button"],yY:y,Z:{role:"button",tabindex:"0"}});a=new g.t({W:"div",T:"ytp-linked-account-popup",Z:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{W:"div",T:"ytp-linked-account-popup-title",yY:a},{W:"div",T:"ytp-linked-account-popup-description",yY:l},{W:"div",T:"ytp-linked-account-popup-buttons",V:[y]}]});super(p,{W:"div",T:"ytp-linked-account-popup-container",V:[a]},100);this.dialog=a;g.H(this,this.dialog); y.listen("click",()=>{this.ke()}); g.H(this,y);g.g1(this.B,this.element,4);this.hide()}zR(){super.zR();this.dialog.focus()}};g.yz=class extends g.et{constructor(p,a,l,y){super(p);this.priority=a;l&&g.Pz(this,l);y&&this.setContent(y)}setIcon(p){this.updateValue("icon",p)}updateValue(p,a){super.updateValue(p,a);this.publish("size-change")}};g.Jc={K7:18,b$:17,EB:16,oP:15,O$:14,EX:13,z1:12,hV:11,cD:10,AUDIO:9,SUBTITLES:8,Rg:7,SLEEP_TIMER:6,y6:5,qh:4,UX:3,lE:2,REMOTE:1,FY:0,18:"LOOP",17:"STABLE_VOLUME",16:"REMOTE_SELECT",15:"SIZE",14:"MINIPLAYER",13:"THREED",12:"AUTONAV",11:"CINEMATIC",10:"ANNOTATIONS",9:"AUDIO",8:"SUBTITLES",7:"VOICE_BOOST",6:"SLEEP_TIMER",5:"SPEED",4:"AUDIO_SETTINGS",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};var Q0r=class extends g.yz{constructor(p){super(g.kE({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);this.B=p;this.S=this.L=!1;this.U6=p.GD();p.createServerVe(this.element,this,!0);this.J(this.B,"settingsMenuVisibilityChanged",a=>{this.UC(a)}); this.J(this.B,"videodatachange",this.j);this.listen("click",this.onClick);this.j()}UC(p){this.S&&this.B.logVisibility(this.element,this.L&&p)}j(){var p=this.B.getVideoData()?.accountLinkingConfig?.linked;p&&!this.L?(p=this.B.getVideoData()?.accountLinkingConfig,this.setIcon(CD()),g.Pz(this,Ie(p?.menuData?.connectedMenuLabel)),this.U=new Ugh(this.B,Ie(p?.menuData?.connectedDialogTitle),Ie(p?.menuData?.connectedDialogMessage),Ie(p?.menuData?.confirmButtonText)),g.H(this,this.U),p=p?.menuData?.trackingParams|| null,(this.S=!!p)&&this.B.setTrackingParams(this.element,p),this.U6.Su(this),this.L=!0):!p&&this.L&&(this.U6.RM(this),this.L=!1)}onClick(){this.S&&this.B.logClick(this.element);this.U6.ke();this.U&&this.U.zR()}};var f4=class extends g.YB{constructor(p){super();this.api=p}A(p){return this.api.A(p)}};var hSe=class extends f4{constructor(p){super(p);Y(p,"setAccountLinkState",a=>{this.setAccountLinkState(a)}); Y(p,"updateAccountLinkingConfig",a=>{this.updateAccountLinkingConfig(a)}); p.addEventListener("videodatachange",(a,l)=>{this.onVideoDataChange(l)}); p.addEventListener("settingsMenuInitialized",()=>{this.menuItem=new Q0r(this.api);g.H(this,this.menuItem)})}onVideoDataChange(p){if(!p.accountLinkingConfig){var a=p.getPlayerResponse()?.accountLinkingConfig; p.accountLinkingConfig=a}if(a=p.accountLinkingConfig?.alsParam)p.O4=a}setAccountLinkState(p){this.api.getVideoData().O4=p;this.api.VO()}updateAccountLinkingConfig(p){const a=this.api.getVideoData(),l=a.accountLinkingConfig;l&&(l.linked=p);this.api.publish("videodatachange","dataupdated",a,this.api.getPresentingPlayerType())}};var A7F=class extends f4{constructor(p){super(p);this.L=null;this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"applicationvideodatachange",()=>{this.JM()})}JM(){const p=this.api.getPlaybackRate(); var a=this.api.getVideoData();if(a){var l=a.adFormat==="17_8";var y=a.KG?.S()===8;l=a.isAd()&&(l||y)}else l=!1;l||((a=this.api.getVideoData())?(l=a.adFormat==="15_6",y=a.KG?.S()===7,l=a.isAd()&&(l||y)):l=!1);l?(p!==1&&(this.L=p),this.api.setPlaybackRate(1)):this.L!==null&&(this.api.setPlaybackRate(this.L),this.L=null)}};var gdA=class{constructor(p){this.api=p;this.L={}}};var YPM=class extends f4{constructor(p){super(p);this.events=new g.yr(this);g.H(this,this.events);this.L=new gdA(this.api);this.events.J(this.api,"legacyadtrackingpingreset",()=>{this.L.L={}}); this.events.J(this.api,"legacyadtrackingpingchange",a=>{var l=this.L;K_(l,"part2viewed",1,0x8000000000000);K_(l,"engagedview",Math.max(1,a.NO*1E3),0x8000000000000);if(!a.isLivePlayback){var y=a.lengthSeconds*1E3;D6(a)&&l.api.A("html5_shorts_gapless_ads_duration_fix")&&(y=l.api.getProgressState().seekableEnd*1E3-a.mI);K_(l,"videoplaytime25",y*.25,y);K_(l,"videoplaytime50",y*.5,y);K_(l,"videoplaytime75",y*.75,y);K_(l,"videoplaytime100",y,0x8000000000000);K_(l,"conversionview",y,0x8000000000000);K_(l, "videoplaybackstart",1,y);K_(l,"videoplayback2s",2E3,y);K_(l,"videoplayback10s",1E4,y)}}); this.events.J(this.api,g.tT("appad"),this.S);this.events.J(this.api,g.jh("appad"),this.S)}S(p){var a=p.getId();const l=this.api.getVideoData(1),y=!this.api.isInline();if(!l.inlineMetricEnabled||y){if(a==="part2viewed"){if(l.iB&&g.Fj(l.iB),l.yc&&ts(this,l.yc),l.Tx){var S={CPN:this.api.getVideoData().clientPlaybackNonce};for(var n of l.Tx)ts(this,g.xN(n,S))}}else a==="engagedview"&&l.xt&&(S={CPN:this.api.getVideoData().clientPlaybackNonce},g.Fj(g.xN(l.xt,S)));l.fI&&(S=l.fI,n=p.getId(),S=Jf(S,{label:n}), g.Fj(S));switch(a){case "videoplaytime25":l.tp&&ts(this,l.tp);l.wx&&jF(this,l.wx);l.pI&&g.Fj(l.pI);break;case "videoplaytime50":l.uB&&ts(this,l.uB);l.HN&&jF(this,l.HN);l.OA&&g.Fj(l.OA);break;case "videoplaytime75":l.GN&&ts(this,l.GN);l.kC&&jF(this,l.kC);l.B4&&g.Fj(l.B4);break;case "videoplaytime100":l.vJ&&ts(this,l.vJ),l.eA&&jF(this,l.eA),l.Gr&&g.Fj(l.Gr)}(S=this.api.getVideoData().Sc)&&oXO(this,S,p.getId())&&oXO(this,S,`${p.getId()}gaia`)}if(l.inlineMetricEnabled&&!y)switch(a){case "videoplaybackstart":(a= l.In?.L)&&ts(this,a);break;case "videoplayback2s":(a=l.In?.U)&&ts(this,a);break;case "videoplayback10s":(a=l.In?.S)&&ts(this,a)}this.api.mM([p],1)}};var qPf=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"videoready",a=>{p.getPresentingPlayerType()===1&&(a={playerDebugData:{pmlSignal:!!a.getPlayerResponse()?.adPlacements?.some(l=>l?.adPlacementRenderer?.renderer), contentCpn:a.clientPlaybackNonce}},g.i0("adsClientStateChange",a))})}};var pZ=class extends g.yz{constructor(p,a){super(g.kE({role:"menuitemcheckbox","aria-checked":"false"}),a,p,{W:"div",T:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}onClick(){this.enabled&&(this.L(!this.checked),this.publish("select",this.checked))}getValue(){return this.checked}L(p){this.checked=p;this.element.setAttribute("aria-checked",String(this.checked))}setEnabled(p){(this.enabled=p)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled", "true")}};var J7f={ev:2,Rg:1,b$:0,2:"AUDIO_TRACK",1:"VOICE_BOOST",0:"STABLE_VOLUME"};var GK=["en-CA","en","es-MX","fr-CA"];var f9Z=class extends pZ{constructor(p,a){super(p.A("web_fix_annotations")?"Superposiciones con anotaciones":"Anotaciones",g.Jc.cD);this.B=p;this.U6=a;this.S=!1;p.A("web_settings_menu_icons")&&(a=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(a));this.J(p,"videodatachange",this.J9);this.J(p,"onApiChange",this.J9);this.subscribe("select",this.onSelect,this);this.J9()}isLoaded(){const p=g.xs(this.B.DN());return p!==void 0&&p.loaded}J9(){!this.B.A("web_fix_annotations")&&g.xs(this.B.DN())===void 0||this.B.getPresentingPlayerType()===3?this.S&&(this.U6.RM(this),this.S=!1):this.S||(this.U6.Su(this),this.S=!0);this.L(this.isLoaded())}onSelect(p){this.isLoaded();p?this.B.loadModule("annotations_module"):this.B.unloadModule("annotations_module"); this.B.publish("annotationvisibility",p)}fz(){this.S&&this.U6.RM(this);super.fz()}};var pmO=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);p.addEventListener("settingsMenuInitialized",()=>{const a=new f9Z(this.api,this.api.GD());g.H(this,a)})}};var ayE=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);const a=this.api.A("html5_enable_audio_quality_setting_feature");Y(this.api,"getUserAudioQualitySetting",()=>a?this.getUserAudioQualitySetting():2); Y(this.api,"setUserAudioQualitySetting",l=>{a&&this.setUserAudioQualitySetting(l)}); Y(this.api,"hasHqaAudioTrack",()=>a?this.hasHqaAudioTrack():!1); Y(this.api,"getAudioQualitySettingState",()=>a?this.api.Z_(4):1); this.GF=f8r();this.updateEnvironmentData()}getUserAudioQualitySetting(){return this.GF}setUserAudioQualitySetting(p){this.api.Xu("aqs_set",{setting:p});g.V2("yt-player-audio-quality-setting",p);p!==this.GF&&(this.GF=p,this.updateEnvironmentData())}hasHqaAudioTrack(){const p=this.api.getVideoData()?.U?.S;return p?Nh(p,a=>a.audio?.audioQuality==="AUDIO_QUALITY_HIGH"):!1}updateEnvironmentData(){this.api.O().GF=this.GF}};var lyh=class extends f4{constructor(p){super(p);Y(this.api,"getAudioTrackState",()=>this.api.Z_(0))}};var ySO=class extends g.t{constructor(p){super({W:"button",A9:["ytp-button","ytp-autonav-toggle"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{W:"div",T:"ytp-autonav-toggle-button-container",V:[{W:"div",T:"ytp-autonav-toggle-button",Z:{"aria-checked":"true"}}]}]});this.B=p;this.U=[];this.L=!1;this.isChecked=!0;p.createClientVe(this.element, this,113681);this.J(p,"presentingplayerstatechange",this.S);this.listen("click",this.onClick);this.U.push(this.J(this.B,"videodatachange",this.S));this.U.push(this.J(this.B,"videoplayerreset",this.S));this.U.push(this.J(this.B,"onPlaylistUpdate",this.S));this.U.push(this.J(this.B,"autonavchange",this.j));Wc(p,this.element,this);this.S()}S(){var p;if(p=this.B.getPresentingPlayerType()!==3&&g.WB(this.B)&&this.B.h9().getPlayerSize().width>=400)p=this.EE(),p=this.B.O().A("client_respect_autoplay_switch_button_renderer")? !!p.autoplaySwitchButtonRenderer:!!p.getWatchNextResponse()?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay!==!1;p?this.L||(this.L=!0,this.iM(this.L),p=this.EE(),this.j(p.autonavState),this.B.logVisibility(this.element,this.L)):(this.L=!1,this.iM(this.L))}j(p){TU$(this)?this.isChecked=p!==1:((p=p!==1)||(p=g.ik(),p=g.nU("web_autonav_allow_off_by_default")&&!p.Zy(141)&&g.R("AUTONAV_OFF_BY_DEFAULT")?!1:!p.Zy(140)),this.isChecked=p);vef(this)}onClick(){this.isChecked=!this.isChecked;this.B.x_(this.isChecked? 2:1);vef(this);if(TU$(this)){const p=this.EE().autoplaySwitchButtonRenderer;this.isChecked&&p?.onEnabledCommand?g.v0(this.B,"innertubeCommand",p.onEnabledCommand):!this.isChecked&&p?.onDisabledCommand&&g.v0(this.B,"innertubeCommand",p.onDisabledCommand)}this.B.logClick(this.element)}getValue(){return this.isChecked}EE(){return this.B.getVideoData(1)}};var SJE=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"standardControlsInitialized",()=>{const a=new ySO(p);g.H(this,a);p.WR(a,"RIGHT_CONTROLS_LEFT")})}};var fwo=class extends pZ{constructor(p){super(p.A("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica",g.Jc.hV);this.B=p;this.S=!1;this.U=new g.SF(()=>{g.BM(this.element,"ytp-menuitem-highlighted")},0); this.U6=p.GD();p=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(p);this.subscribe("select",this.j,this);this.listen(LH,this.X);g.H(this,this.U)}J9(p){p?this.S||(this.U6.Su(this),this.S=!0):this.S&&(this.U6.RM(this), this.S=!1);this.S&&this.L(EQM())}X(){g.BM(this.element,"ytp-menuitem-highlight-transition-enabled")}j(p){var a=EQM();p!==a&&(a=g.ik(),lJ(190,p),lJ(192,!0),a.save(),g.v0(this.B,"cinematicSettingsToggleChange",p))}fz(){this.S&&this.U6.RM(this);super.fz()}};var n6O=class extends f4{constructor(p){super(p);this.L=!1;p.addEventListener("settingsMenuInitialized",()=>{pKv(this)}); p.addEventListener("highlightSettingsMenu",a=>{pKv(this);var l=this.menuItem;a==="menu_item_cinematic_lighting"&&(g.XX(l.element,"ytp-menuitem-highlighted"),g.XX(l.element,"ytp-menuitem-highlight-transition-enabled"),l.U.start())}); Y(p,"updateCinematicSettings",a=>{this.updateCinematicSettings(a)})}updateCinematicSettings(p){this.L=p; this.menuItem?.J9(p);this.api.publish("onCinematicSettingsVisibilityChange",p)}};var VUr=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"applicationvideodatachange",(a,l)=>{l=l.clipConfig;a==="dataloaded"&&l&&l.startTimeMs!=null&&l.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(l.startTimeMs)),endTimeMs:Math.floor(Number(l.endTimeMs)),postId:l.postId,type:"clips"})})}};var ZQA=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);Y(p,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Y(p,"setCreatorEndscreenHideButton",this.L.bind(this))}setCreatorEndscreenVisibility(p){E8(this.api.DN())?.iM(p)}L(p){this.hideButton=p;p=a=>{a==="creatorendscreen"&&(a=E8(this.api.DN()))&&a.mx(this.hideButton)}; this.events.J(this.api,"modulecreated",p);p("creatorendscreen")}};var o6M=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"videodatachange",()=>{var a=this.api.getRootNode();const l=this.api.O();g.XX(a,"ytp-delhi-modern");l.A("delhi_modern_web_player_icons")&&g.XX(a,"ytp-delhi-modern-icons");l.A("delhi_modern_web_player_horizontal_volume_controls")&&g.XX(a,"ytp-delhi-horizontal-volume-controls");l.A("delhi_modern_web_player_compact_controls")&&g.XX(a,"ytp-delhi-modern-compact-controls");switch(pm(l.experiments, "delhi_modern_web_player_blending_mode")){case "luminosity":g.XX(a,"ytp-delhi-modern-with-luminosity");break;case "difference":g.XX(a,"ytp-delhi-modern-with-difference");break;case "exclusion":g.XX(a,"ytp-delhi-modern-with-exclusion")}a=this.api.isHdr()||this.api.A("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";this.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",a);O_v(this)}); this.events.J(p,"resize",()=>{O_v(this)})}};var zvh=class extends pZ{constructor(p,a,l,y,S){const n=p.A("html5_enable_new_audio_settings_menu");super("Volumen estable",n?J7f.b$:g.Jc.b$);this.B=p;this.j=a;this.U=l;this.hasDrcAudioTrack=y;this.getDrcState=S;this.enableNewAudioSettingsMenu=this.S=!1;g.XX(this.element,"ytp-drc-menu-item");this.U6=(this.enableNewAudioSettingsMenu=n)?p.GD().UN:p.GD();p.addEventListener("videodatachange",this.q2.bind(this));p.A("mta_drc_mutual_exclusion_removal")&&this.J(p,"onPlaybackAudioChange",this.q2);p.A("html5_enable_audio_ve_logging")&& (p.createClientVe(this.element,this,273317),this.listen("click",this.D));a=this.U()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(p=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(p));this.subscribe("select",this.X,this);this.enableNewAudioSettingsMenu?this.q2():(this.setEnabled(this.hasDrcAudioTrack()),this.L(a),this.U6.Su(this))}X(p){this.j(p?1:0)}q2(){if(this.enableNewAudioSettingsMenu){var p= this.B.getPresentingPlayerType();p!==2&&p!==3||!this.S?(p=this.getDrcState(),p!==1?(p===0?(this.L(this.U()===1),this.setEnabled(!0)):(this.L(!1),this.setEnabled(!1)),this.S||(this.U6.Su(this),this.S=!0)):this.S&&(this.U6.RM(this),this.S=!1)):(this.S=!1,this.U6.RM(this))}else{p=this.hasDrcAudioTrack();const a=this.U()===1&&p;this.L(a);this.setEnabled(p)}}fz(){this.U6.RM(this);super.fz()}D(){this.B.logClick(this.element)}};var dyf=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);p.A("html5_show_drc_toggle")&&p.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new zvh(this.api,this.setDrcUserPreference.bind(this),this.getDrcUserPreference.bind(this),this.S.bind(this),this.getDrcState.bind(this)),g.H(this,this.menuItem))}); Y(this.api,"setDrcUserPreference",a=>{this.setDrcUserPreference(a)}); Y(this.api,"getDrcUserPreference",()=>this.getDrcUserPreference()); Y(this.api,"hasDrcAudioTrack",()=>this.S()); Y(this.api,"getDrcState",()=>this.getDrcState()); this.L=g.Wk("yt-player-drc-pref")??1;this.updateEnvironmentData()}getDrcUserPreference(){return this.L}setDrcUserPreference(p){this.api.Xu("drc_set",{pref:p});g.V2("yt-player-drc-pref",p,31536E3);p!==this.L&&(this.L=p,this.updateEnvironmentData(),this.S()&&this.api.Um(),this.api.pC())}updateEnvironmentData(){this.api.O().bf=this.L===1}S(){const p=this.api.getVideoData()?.U?.S;if(!p)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.A("mta_drc_mutual_exclusion_removal")){const a=this.api.OS()?.rG?.id; return Nh(p,l=>l.audio.L&&l.rG?.id===a)}return Nh(p,a=>a.audio?.L===!0)}getDrcState(){return this.api.Z_(3)}};var GyA=class extends f4{constructor(p){super(p);this.L={};this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"videodatachange",()=>{this.onVideoDataChange()}); this.events.J(p,g.tT("embargo"),a=>{this.api.CC(!0);var l=this.L[a.id]??[];for(const y of l)this.api.hideControls(),this.api.f1("auth",2,"This video isn't available in your current playback area",ki({embargoed:1,id:a.id,idx:a.S,start:a.start})),(l=y.embargo?.onTrigger)&&g.v0(this.api,"innertubeCommand",l)})}onVideoDataChange(){const p=this.api.getVideoData(); this.api.RX("embargo",1);const a=p?.lJ.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");a?.length?gAf(this,a.filter(l=>l.onEnter?.some(this.S))):p?.cueRanges&&gAf(this,p.cueRanges.filter(l=>l.onEnter?.some(this.S)))}S(p){return p.embargo!==void 0}fz(){super.fz(); this.L={}}};var BLE=class extends f4{constructor(p){super(p);this.L=[];this.events=new g.yr(p);g.H(this,this.events);Y(p,"addEmbedsConversionTrackingParams",a=>{this.addEmbedsConversionTrackingParams(a)}); this.events.J(p,"veClickLogged",a=>{this.api.hasVe(a)&&(a=a.visualElement.getAsJspb(),a=ku(a,2),this.L.push(a))})}addEmbedsConversionTrackingParams(p){var a=this.api.O(); const l=a.widgetReferrer,y=a.Wy,S=this.L;let n="";const V=a.getWebPlayerContextConfig();V&&(n=V.embedsIframeOriginParam||"");l.length>0&&(p.embeds_widget_referrer=l);y.length>0&&(p.embeds_referring_euri=y);a.j&&n.length>0&&(p.embeds_referring_origin=n);V&&V.embedsFeature&&(p.feature=V.embedsFeature);S.length>0&&(a.A("embeds_web_enable_lite_experiment_control_arm_logging")?S.unshift(28572):g.qZ(g.cb(a))&&S.unshift(159628),a=S.join(","),a=g.VI()?a:g.K6(a,4),p.source_ve_path=a);this.L.length=0}};var cSh=class extends f4{constructor(p){super(p);Y(p,"isEmbedsShortsMode",()=>p.isEmbedsShortsMode()); Y(p,"getReelItemWatchResponse",()=>p.getVideoData(1)?.getReelItemWatchResponse()??null)}};var rSO=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"initialvideodatacreated",a=>{f3(aJ(),16623);this.L=g.c2();var l=p.O().L1&&!a.L1;AG(a)&&l?(f3(aJ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),a.getWatchNextResponse()&&(l=a.getWatchNextResponse()?.trackingParams)&&uL(l),a.getPlayerResponse()&&(a=a.getPlayerResponse()?.trackingParams)&&uL(a)):(f3(aJ(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}), a.getEmbeddedPlayerResponse()&&(a=a.getEmbeddedPlayerResponse()?.trackingParams)&&uL(a))}); this.events.J(p,"loadvideo",()=>{f3(aJ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.L})}); this.events.J(p,"cuevideo",()=>{f3(aJ(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:this.L})}); this.events.J(p,"largeplaybuttonclicked",a=>{f3(aJ(),27240,a.visualElement)}); this.events.J(p,"playlistnextbuttonclicked",a=>{f3(aJ(),27240,a.visualElement)}); this.events.J(p,"playlistprevbuttonclicked",a=>{f3(aJ(),27240,a.visualElement)}); this.events.J(p,"playlistautonextvideo",()=>{f3(aJ(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}};var UQf=class extends g.YB{constructor(p,a){super();this.L=null;this.U=a;a=[];for(let l=0;l<=100;l++)a.push(l/100);a={threshold:a,trackVisibility:!0,delay:1E3};(this.S=window.IntersectionObserver?new IntersectionObserver(l=>{l=l[l.length-1];let y=null;typeof l.isVisible==="undefined"?document.visibilityState==="visible"&&l.isIntersecting&&l.intersectionRatio>0?y=l.intersectionRatio:document.visibilityState==="hidden"?y=0:y=null:y=l.isVisible?l.intersectionRatio:0;y!=null&&(y=Math.max(y,0),y=Math.min(y, 1));this.L=y;typeof this.U==="function"&&this.U(this.L)},a):null)&&this.S.observe(p)}fz(){super.fz(); this.L=null;this.S&&this.S.disconnect()}};var wmv=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"applicationInitialized",()=>{Q4v(this)})}};var $yr=class extends g.t{constructor(p){super({W:"div",A9:["ytp-player-content","ytp-iv-player-content"],V:[{W:"div",T:"ytp-free-preview-countdown-timer",V:[{W:"span",yY:"{{label}}"},{W:"span",T:"ytp-free-preview-countdown-timer-separator",yY:"\u2022"},{W:"span",yY:"{{duration}}"}]}]});this.api=p;this.L=null;this.U=this.S=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.L&& (this.L.dispose(),this.L=null)}onVideoDataChange(p){var a=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;a&&(a=tOE(a),this.api.getPlayerStateObject().L(128)||p==="dataloaderror"||!a?(this.S=0,this.stopTimer(),this.hide()):(p=(a.remainingTimeSecs||0)*1E3,p>0&&(this.show(),this.updateValue("label",z$(a.label)),h$r(this,p))))}fz(){this.stopTimer();super.fz()}};var PAM=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"basechromeinitialized",()=>{this.L=new $yr(p);g.H(this,this.L);g.g1(p,this.L.element,4);this.L.hide()})}};var Li$=class extends g.t{constructor(p){super({W:"button",A9:["ytp-fullerscreen-edu-button","ytp-button"],V:[{W:"div",A9:["ytp-fullerscreen-edu-text"],yY:"Desliza hacia abajo para ver m\u00e1s detalles"},{W:"div",A9:["ytp-fullerscreen-edu-chevron"],V:[{W:"svg",Z:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",Z:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],Z:{"data-priority":"2"}});this.pz=p;this.fade=new g.Kg(this,250,void 0,100);this.S=this.L=!1; p.createClientVe(this.element,this,61214);g.H(this,this.fade);this.J(p,"fullscreentoggled",this.J9);this.J(p,"presentingplayerstatechange",this.J9);this.listen("click",this.onClick);this.J9()}j(p){g.OW(this.element,"ytp-fullerscreen-edu-button-subtle",p);p&&!this.S&&(this.pz.A("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"),Wc(this.pz, this.element,this),this.S=!0)}onClick(){this.pz.logClick(this.element);g.v0(this.pz,"onFullerscreenEduClicked")}U(p){this.L=p;this.J9()}J9(){this.pz.isFullscreen()?this.L?this.fade.hide():this.fade.show():this.hide();this.pz.logVisibility(this.element,this.pz.isFullscreen()&&!this.L)}};var XmA=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);Y(this.api,"updateFullerscreenEduButtonSubtleModeState",l=>{this.updateFullerscreenEduButtonSubtleModeState(l)}); Y(this.api,"updateFullerscreenEduButtonVisibility",l=>{this.updateFullerscreenEduButtonVisibility(l)}); const a=p.O();p.A("external_fullscreen_with_edu")&&a.externalFullscreen&&oQ(a)&&a.controlsType==="1"&&this.events.J(p,"standardControlsInitialized",()=>{this.L=new Li$(p);g.H(this,this.L);p.WR(this.L)})}updateFullerscreenEduButtonSubtleModeState(p){this.L?.j(p)}updateFullerscreenEduButtonVisibility(p){this.L?.U(p)}};var xyr=class extends g.t{constructor(p){super({W:"div",T:"ytp-gated-actions-overlay",V:[{W:"div",T:"ytp-gated-actions-overlay-background",V:[{W:"div",T:"ytp-gated-actions-overlay-background-overlay"}]},{W:"button",A9:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],Z:{"aria-label":"Cerrar"},V:[g.S4()]},{W:"div",T:"ytp-gated-actions-overlay-bar",V:[{W:"div",T:"ytp-gated-actions-overlay-text-container",V:[{W:"div",T:"ytp-gated-actions-overlay-title",yY:"{{title}}"},{W:"div",T:"ytp-gated-actions-overlay-subtitle", yY:"{{subtitle}}"}]},{W:"div",T:"ytp-gated-actions-overlay-button-container"}]}]});this.api=p;this.background=this.d7("ytp-gated-actions-overlay-background");this.S=this.d7("ytp-gated-actions-overlay-button-container");this.L=[];this.J(this.d7("ytp-gated-actions-overlay-miniplayer-close-button"),"click",()=>{g.v0(this.api,"onCloseMiniplayer")}); this.hide()}};var Fio=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.L=new xyr(this.api);g.H(this,this.L);this.events.J(p,"videodatachange",()=>{const a=this.api.getVideoData()?.L7;var l=this.L;if(a){l.update({title:a.title?.content||"",subtitle:a.subtitle?.content||""});var y=a.thumbnail;let S="none";if(y?.sources){let n=0;for(const V of y.sources)V.width&&V.url&&V.width>n&&(n=V.width,S=`url(${V.url})`)}l.background.style.backgroundImage=S;jQq(l,a.actionButtons||[]); l.show()}else l.hide()}); g.g1(this.api,this.L.element,4)}};var E6Z=class extends f4{constructor(p){super(p);B6(this.api,"getSphericalProperties",()=>this.getSphericalProperties()); B6(this.api,"setSphericalProperties",(...a)=>{this.setSphericalProperties(...a)}); QV(this.api,"getSphericalProperties",()=>this.api.getPresentingPlayerType()===2?{}:this.getSphericalProperties()); QV(this.api,"setSphericalProperties",(...a)=>{this.api.getPresentingPlayerType()!==2&&this.setSphericalProperties(...a)})}getSphericalProperties(){const p=g.cc(this.api.DN()); return p?p.getSphericalProperties():{}}setSphericalProperties(p){if(p){var a=g.cc(this.api.DN());a&&a.setSphericalProperties(p,!0)}}};var CAq=class extends f4{constructor(p){super(p);Y(p,"createClientVe",this.createClientVe.bind(this));Y(p,"createServerVe",this.createServerVe.bind(this));Y(p,"destroyVe",this.destroyVe.bind(this));Y(p,"hasVe",this.hasVe.bind(this));Y(p,"logClick",this.logClick.bind(this));Y(p,"logVisibility",this.logVisibility.bind(this));Y(p,"setTrackingParams",this.setTrackingParams.bind(this))}createClientVe(p,a,l,y=!1){this.api.createClientVe(p,a,l,y)}createServerVe(p,a,l=!1){this.api.createServerVe(p,a,l)}setTrackingParams(p, a){this.api.setTrackingParams(p,a)}logClick(p,a){this.api.logClick(p,a)}logVisibility(p,a,l){this.api.logVisibility(p,a,l)}hasVe(p){return this.api.hasVe(p)}destroyVe(p){this.api.destroyVe(p)}};var v6r={[0]:p=>PvM(p,a=>a.rG?.id), [2]:p=>C3(p,qz), [3]:p=>C3(p,eG), [4]:p=>C3(p,of), [1]:p=>C3(p,UM)},o7O=class{constructor(p){this.L={}; this.U={};this.hg={lyv:()=>this.L}; this.videoData=p;const a=p.U?.U;a&&a.length>0?this.S=a:(p=p.getAvailableAudioTracks(),this.S=p.length>0?Y_v(p):[]);for(const l of aI)this.L[l]=v6r[l](this.S);this.pC()}Z_(p){return this.U[p]}pC(){let p=this.S;const a={};for(const l of aI)if(this.L[l]){p=l1[l].h7(p,this.videoData);for(const y of aI)a[y]!==void 0||Nh(p,l1[y].Dh)||(a[y]=l1[l].Kw);a[l]===void 0&&(a[l]=0)}else a[l]=1;this.U=a}},aI=[0,1,2,3,4],l1={[0]:{Kw:2,Dh:I6E,h7:NnZ},[2]:{Kw:4,Dh:qz,h7:g0O},[3]:{Kw:5,Dh:eG,h7:WOM},[1]:{Kw:3,Dh:UM, h7:K1$},[4]:{Kw:6,Dh:of,h7:U9r}};var O7e=!1;var Kio=class{constructor(p,a){this.s6=p;this.policy=a;this.playbackRate=1}setPlaybackRate(p){this.playbackRate=Math.max(1,p)}getPlaybackRate(){return this.playbackRate}};var evA=class{constructor(p,a,l,y){this.QY=p;this.r7=a;this.policy=l;this.logger=y;this.wA=[];this.WZ=[];this.L=-1;this.Jg=null;this.C=this.timestampOffset=0;this.S=10;this.X=new Set;this.hg={B2:S=>this.B2(S)}; this.j=a.va?0:1;l.g1>0&&(this.S=l.g1)}w7(p){this.X.add(p.info.Gm);this.L=Tfr(this,this.WZ,this.wA,p,this.L);this.U=p;this.C=(0,g.h)()}G(){if(this.WZ.length===0||this.policy.GM&&this.L<0)return null;var p=this.WZ[this.L]?this.WZ[this.L].formatId:null;return p?(p=this.r7.U.get(Sh(p)))?p.info:null:null}UO(p){rzM(this,this.WZ,"og");fQO(this,p);rzM(this,this.WZ,"trim");const {WZ:a,wA:l}=TEh(this);p=[];for(let y=0;y0){const d=Jh(Z,n);d>=0&&(z=(Z.end(d)-n+.1)*1E3)}p.push({formatId:g.UY(S.info.L.info,this.r7.va),Nb:S.info.Nb,sequenceNumber:S.info.Gm+this.j,yz:V,Dp:S.info.U,oF:z})}return{WZ:a,kc:p}}Sl(p,a){a?.Ks||(this.wA=[]);this.policy.GM?(p=g.Q0(this.WZ,{startTimeMs:p*1E3},(l,y)=>l.startTimeMs-y.startTimeMs),this.L!==p&&(this.L=-1,this.U=void 0)):(fQO(this,!0),this.L= iNF(this.WZ,p*1E3))}jl(p){this.Jg=p}Ws(){return this.U?.info}B2(p){const a=g.UY(p.info.L.info,this.r7.va),l=p.info.Gm+this.j; var y=p.info.startTime*1E3;if(this.policy.ac)try{y=this.policy.ac?g.wH(p)*1E3:p.info.startTime*1E3}catch(V){Math.random()>.99&&this.logger&&(y=fw(p.S).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:p.info.HZ(),encodedDataView:g.dW(y,4)})),y=p.info.startTime*1E3}const S=p.info.clipId;let n=this.policy.ac?g.wp(p)*1E3:p.info.duration*1E3;this.policy.ac&&(y<0||n<0)&&(this.logger&&(this.logger({missingSegInfo:p.info.HZ(),startTimeMs:y,durationMs:n}),this.policy.Es||(y<0&&(y=p.info.startTime* 1E3),n<0&&(n=p.info.duration*1E3))),this.policy.Es&&(y<0&&(y=p.info.startTime*1E3),n<0&&(n=p.info.duration*1E3)));return{formatId:a,Gm:l,startTimeMs:y,clipId:S,DM:n}}D(){this.WZ=[];this.wA=[];this.X.clear();this.L=-1;this.U=void 0}K(){this.U=void 0}Aw(p){this.timestampOffset=p}N(p){return this.X.has(p)}};var bQf=class{constructor(p,a,l,y,S){this.loader=p;this.r7=a;this.videoTrack=l;this.audioTrack=y;this.policy=S;this.seekCount=this.targetTime=0;this.j=!1;this.U=null;this.S=0;this.L=this.r7.isManifestless&&!this.r7.IX}seek(p,a){p!==this.targetTime&&(this.seekCount=0);this.targetTime=p;const l=this.videoTrack.S,y=this.audioTrack.S,S=this.audioTrack.Jg,n=y6(this,this.videoTrack,p,this.videoTrack.Jg,a);a=y6(this,this.audioTrack,this.policy.Fu?p:n,S,a);p=Math.max(p,n,a);this.j=!0;this.r7.isManifestless&& (UuO(this,this.videoTrack,l),UuO(this,this.audioTrack,y));return p}isSeeking(){return this.j}dH(p){this.S=p}},B1h=2/24;var IyM=0;var RvE=class{constructor(p,a){this.wG=p;this.requestNumber=++IyM;this.L=this.now();this.C=this.UO=NaN;this.G=this.L;this.U=this.OC=this.X=0;this.D=this.L;this.Lx=this.w7=this.Hs=this.bf=this.g$=this.QY=this.S=this.j=0;this.N=this.isActive=!1;this.zn=this.dG=0;this.hg={cem:()=>this.K8}; this.s6=a.s6;this.snapshot=lPr(this.s6);this.policy=this.s6.S;this.Up=!!a.Up;this.An=a.An;this.Ho=a.Ho||0;this.lG=a.lG||0;a.zV&&(this.Bs=new sD);this.K8=a.K8??!1;this.Up||r8A(this.s6)}gC(){this.UO=this.now();JB(this.s6,this.UO);this.wG.gC()}D7(p,a){const l=this.policy.S?(0,g.h)():0;Qx(this,p,a);p-this.D<10&&this.S>0||this.jl(p,a);this.wG.D7(p,a);this.policy.S&&(p=(0,g.h)()-l,this.zn+=p,this.dG=Math.max(p,this.dG))}jl(p,a){const l=(p-this.D)/1E3,y=a-this.U;this.Up||(HK(this.s6,l,y),this.An(l,y));this.D= p;this.U=a}gp(){this.QY&&J5q(this);this.wG.gp()}BO(p){this.QY||(this.QY=this.X-this.OC+p,this.g$=this.X,this.bf=this.G)}Sl(p=this.G,a=this.X){this.S>0||(this.C=p,this.S=a,this.N=this.isActive=!0)}VY(){return this.lG||2}PZ(){}K(){const p={rn:this.requestNumber,rt:(this.G-this.L).toFixed(),lb:this.X,stall:(1E3*this.j).toFixed(),ht:(this.UO-this.L).toFixed(),elt:(this.C-this.L).toFixed(),elb:this.S,d:this.Bs?.Lq()};this.url&&kWe(p,this.url);this.policy.S&&(p.mph=this.dG.toFixed(),p.tph=this.zn.toFixed()); p.ulb=this.Hs;p.ult=this.w7;return p}now(){return(0,g.h)()}deactivate(){this.isActive&&(this.isActive=!1)}};var y3=class extends RvE{constructor(p,a){super(p,a);this.Ro=this.Ye=!1;this.Rc=this.Ws=Infinity;this.ac=NaN;this.ZN=!1;this.Fu=NaN;this.Wy=this.Ic=this.Tm=0;this.ZW=a.ZW||1;this.DD=a.DD||this.ZW;this.sM=a.sM;this.Gm=a.Gm;this.wE=a.wE;N4(this);this.Kx(this.L);this.ir=(this.Fu-this.L)/1E3}K(){const p=super.K();p.pb=this.ZW;p.pt=(1E3*this.ir).toFixed();p.se=this.Wy;return p}y5(){const p=this.wG;this.iT||(this.iT=p.y5?p.y5():1);return this.iT}mF(){return this.sM?this.y5()!==1:!1}Ba(p,a,l){if(!this.Ye){this.Ye= !0;if(!this.Up){Qx(this,p,a);this.jl(p,a);var y=this.y5();this.Wy=l;if(!this.Up)if(y===2){y=p-this.C0)||U4(this,y,a),this.S>0&&cl(this.s6,a,this.j));p=(p-this.L)/1E3||.01;this.policy.K&&!(this.S>0)||rF(this.s6, p,this.U,yrO(this),this.K8)}this.deactivate()}}wC(p,a,l){l&&(this.iT=2);p<0&&this.lG&&(p=this.lG);a?this.Tm+=p:this.Ic+=p}VY(){return this.Ic||this.Tm||super.VY()}jl(p,a){const l=(p-this.D)/1E3,y=a-this.U,S=this.y5();this.isActive?S===1&&((y>0||this.policy.X)&&(l>.2||y<1024)?(this.j+=l,y>0&&l>.2&&U4(this,this.Ho?l:.05,y),this.Ro=!0):y>0&&(U4(this,l,y),this.Ro=!0)):a&&a>=this.policy.L&&this.Sl(p,a);super.jl(p,a)}NO(p){if(!this.Up){Qx(this,p,this.X);var a=(p-this.L)/1E3;this.y5()!==2&&this.S>0&&(this.j+= (p-this.D)/1E3,cl(this.s6,this.U,this.j));rF(this.s6,a,this.U,yrO(this),this.K8,!0);p=(p-this.D)/1E3;HK(this.s6,p,0);this.An(p,0)}}Sl(p=this.G,a=this.X){if(!(this.S>0)&&(super.Sl(p,a),this.y5()===1)){a=(this.UO-this.L)/1E3;var l=(p-this.UO)/1E3;this.sM&&sn(this,this.now());this.ZN||this.Up||(this.lG&&(l=Math.max(0,l-this.lG)),p=this.s6,p.K.xn(1,a),p.w7.xn(1,l))}}wq(){this.sM&&sn(this,this.now());return this.ac}tX(){var p;if(p=this.U>this.DD)p=(p=this.U)?p>=this.policy.L:!1;return p}E6(){return this.Fu}Kx(p= this.now()){let a;if(this.sM){sn(this,p);if(this.iT?this.mF():this.Ws!==this.Rc){if(a=this.Rc,p0?l+p:l+Math.max(p,a)}Ps(){return this.now()-this.C}Ha(){return(this.U-this.S)*1E3/this.Ps()||0}tP(){return this.C}};var S6=class{constructor(p){this.wG=p;this.L=new F8}feed(p){EC(this.L,p);this.JN()}JN(){if(this.j){if(!this.L.totalLength)return;const {r6:a,pO:l}=this.L.split(this.U-this.S);if(!this.wG.BO(this.j,a,this.S,this.U))return;this.S+=a.totalLength;this.L=l;this.S===this.U&&(this.j=this.U=this.S=void 0)}for(;;){var p=0;let a,l;[a,p]=BEq(this.L,p);[l,p]=BEq(this.L,p);if(a<0||l<0)break;if(!(p+l<=this.L.totalLength)){if(!(this.wG.BO&&p+1<=this.L.totalLength))break;({pO:p}=this.L.split(p));this.wG.BO(a,p,0, l)&&(this.j=a,this.S=p.totalLength,this.U=l,this.L=new F8([]));break}const {r6:y,pO:S}=this.L.split(p).pO.split(l);this.wG.Le(a,y);this.L=S}}dispose(){this.L=new F8}};var u1v=class{constructor(p,a){this.info=p;this.callback=a;this.state=1;this.jF=this.GX=!1;this.wc=null}qH(){return 0}w6(){return null}j$(){return null}zj(){return this.state>=1}isComplete(){return this.state>=3}bU(){return this.state===5}onStateChange(){}cZ(p){const a=this.state;this.state=p;this.onStateChange(a);this.callback&&this.callback(this,a)}Pt(p){p&&this.state{p+= `${a.HZ()}.`}); return p.slice(0,-1)}dispose(){this.nz()||(this.info.Yv[0].L.UO=!1,this.cZ(-1))}fQ(){return 0}};var HhM=class{constructor(p,a,l,y={}){this.policy=a;this.wG=l;this.status=0;this.L=new F8;this.S=0;this.nz=this.j=this.U=!1;this.xhr=new XMLHttpRequest;this.xhr.open(y.method||"GET",p);if(y.headers){p=y.headers;for(const S of Object.keys(p))this.xhr.setRequestHeader(S,p[S])}this.xhr.withCredentials=!0;this.xhr.onreadystatechange=()=>this.mP(); this.xhr.onload=()=>this.onDone(); this.xhr.onerror=()=>this.onError(); this.xhr.fetch(S=>{this.L.append(S);this.S+=S.length;S=(0,g.h)();this.wG.D7(S,this.S)},()=>{},y.body||null)}mP(){this.xhr.status&&(this.status=this.xhr.status); this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.wG.gC()}onError(){this.U=!0;this.onDone()}onDone(){this.nz||(this.j=!0,this.wG.gp())}pN(){return this.xhr.readyState>=this.xhr.HEADERS_RECEIVED}getResponseHeader(p){try{return this.xhr.getResponseHeader(p)}catch{return""}}XH(){return+this.getResponseHeader("content-length")}N5(){return this.S}sZ(){return this.status>=200&&this.status<300&&!!this.S}VR(){return this.L.totalLength>0}rK(){const p=this.L;this.L=new F8;return p}bb(){return this.L}abort(){this.nz= !0;this.xhr.abort()}II(){return!0}KY(){return this.U}yh(){return""}};var OQr=class{constructor(p,a){this.S=(new TextEncoder).encode(p);this.L=(new TextEncoder).encode(a)}};var jhM=class{constructor(p,a){this.L=p;this.wG=a;this.loaded=this.status=0;this.error="";p=oK(this.L.get("range")||"");if(!p)throw Error("bad range");this.range=p;this.S=new F8;this.run().then(()=>{this.wG.gp()},l=>{this.error=`${l}`||"unknown_err"; this.wG.gp()})}async run(){this.status=200; const p=this.L.get("docid"),a=RK(this.L.get("fmtid")||""),l=this.L.get("lmt")||"0",y=+(this.L.get("csz")||0);if(!p||!a||!y)throw Error("Invalid local URL");let S;this.L.get("ck")&&this.L.get("civ")&&(S=new OQr(this.L.get("ck"),this.L.get("civ")));const n=this.range;var V=Math.floor(n.start/y);const Z=Math.floor(n.end/y);for(;V<=Z;V++){var z=await GuE(p,a,l,V,S);if(z===void 0)throw Error("invariant: data is undefined");var d=V*y;const G=Math.max(0,n.start-d);d=Math.min(n.end+1,(V+1)*y)-(G+d);z=new Uint8Array(z.buffer, G,d);this.S.append(z);this.loaded+=d;this.loaded{if(S)if(this.status=S.status,S.ok&&S.body&&this.status!==204)this.status=this.status||242,this.U=S.body.getReader(),this.nz()?this.U.cancel().catch(()=>{}):(this.responseHeaders=S.headers,this.wG.gC(),jDh(this)); else this.onDone();else this.onError(Error("null_response"))}; this.K=S=>{const n=(0,g.h)();this.nz()||(S.done?(this.U=void 0,this.onDone()):(S=S.value,this.S+=S.length,this.L.append(S),jDh(this),this.wG.D7(n,this.S)))}; this.onError=S=>{this.errorMessage=String(S);this.D=!0;this.onDone()}; this.L=new F8;this.j=window.AbortController?new AbortController:void 0;this.start(p)}start(p){const a={credentials:"include",cache:"no-store"};Object.assign(a,this.G);this.j&&(a.signal=this.j.signal);p=new Request(p,a);fetch(p).then(this.C,this.onError).then(void 0,xS)}onDone(){this.nz()||this.wG.gp()}getResponseHeader(p){return this.responseHeaders?this.responseHeaders.get(p):null}pN(){return!!this.responseHeaders}N5(){return this.S}XH(){return+this.getResponseHeader("content-length")}sZ(){return this.status>= 200&&this.status<300&&!!this.S}VR(){return!!this.L.totalLength}rK(){const p=this.L;this.L=new F8;return p}bb(){return this.L}nz(){return this.X}abort(){this.U&&this.U.cancel().catch(()=>{}); this.j&&this.j.abort();this.X=!0}II(){return!0}KY(){return this.D}yh(){return this.errorMessage}};var ihr=class{constructor(p,a,l={}){this.wG=a;this.S=this.status=0;this.nz=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(l.method||"GET",p);if(l.headers){p=l.headers;for(var y of Object.keys(p))this.xhr.setRequestHeader(y,p[y])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=S=>{this.mP(S)}; y=GS(S=>{this.onDone(S)}); this.xhr.addEventListener("load",y,!1);this.xhr.addEventListener("error",y,!1);l.body?this.xhr.send(l.body):this.xhr.send();this.xhr.addEventListener("progress",GS(S=>{this.onProgress(S)}),!1)}onDone(){if(!this.nz){this.status=this.xhr.status; try{this.response=this.xhr.response,this.S=this.response.byteLength}catch{}this.L=!0;this.wG.gp()}}mP(){this.xhr.readyState===2&&this.wG.gC()}onProgress(p){this.nz||(this.status=this.xhr.status,this.L||(this.S=p.loaded),this.wG.D7((0,g.h)(),p.loaded))}pN(){return this.xhr.readyState>=2}getResponseHeader(p){try{return this.xhr.getResponseHeader(p)}catch{return g.tX(Error(`Could not read XHR header ${p}`)),""}}XH(){return+this.getResponseHeader("content-length")}N5(){return this.S}sZ(){return this.status>= 200&&this.status<300&&this.L&&!!this.S}VR(){return this.L&&!!this.response&&!!this.response.byteLength}rK(){const p=this.response;this.response=void 0;return new F8([new Uint8Array(p)])}bb(){return new F8([new Uint8Array(this.response)])}abort(){this.nz=!0;this.xhr.abort()}II(){return!1}KY(){return!1}yh(){return""}};var FRf=class extends g.YB{constructor(p,a){super();this.policy=p;this.Yv=a;this.S=0;this.L=null;this.ZF=[];this.U=null;this.hg={dX:()=>this.Yv}; this.Yv.length===1||g.K0(this.Yv,l=>!!l.range)}r3(){if(!this.ZF.length)return[]; const p=this.ZF;this.ZF=[];this.U=g.V$(p).info;return p}x9(){return this.ZF}fz(){super.fz();this.L=null;this.ZF.length=0;this.Yv.length=0;this.U=null}};var ky$=class extends g.YB{constructor(p,a,l,y,S,n,V,Z,z=!1){super();this.wG=p;this.policy=a;this.aX=l;this.gG=y;this.timing=S;this.logger=n;this.j=V;this.SF=Z;this.D=z;this.lastError=null;this.L=0;this.X=!1;this.U=0;this.S=new g.SF(this.G,this.policy.Me,this)}G(){if(!this.nz()){var p=(0,g.h)(),a=!1;if(this.policy.R7){var l=this.timing.S>0?this.timing.C:this.timing.L;this.policy.rR&&this.U&&(l=this.U);p=p-l-this.timing.VY()*1E3;l=A$(mZ(this),!1);p>=2E3*l?a=!0:p>=this.policy.d8*l&&(this.L=this.policy.A3)}else if(this.timing.S> 0){if(this.D){this.policy.ZN&&(this.L=0);return}p=this.timing.E6();this.timing.Kx();this.timing.E6()-p>=this.policy.Me*.8?(this.L++,a=this.L>=5):this.L=0}else a=p-this.timing.wq(),this.policy.A3&&a>0&&(this.L+=1),p=A$(mZ(this),!1)*this.policy.Uy,a=a>p*1E3;this.L>0&&this.wG.RJ();a?this.qj():this.S.start()}}qj(){this.X=!0;this.wG.y7();this.lastError="net.timeout";Ij(this)}canRetry(p){const a=mZ(this);p=p?this.policy.F5:this.policy.g4;return a.timedOut{this.cZ(I)}, wyu:()=>this.wc, Z1Y:I=>{this.wc=I}, JNT:I=>{this.a9=I}, cNm:I=>{this.kE.lastError=I}, BP:()=>this.xhr}; this.timing=new y3(this,l);this.Ry=V;this.Cq=B;this.J3=c;this.aX=g.QP(this.info,this.policy,y);this.aX.set("rn",this.kz().toString());this.aX.set("rbuf",(Z*1E3).toFixed().toString());this.Ry&&this.aX.set("smb","1");this.policy.t4&&z&&this.aX.set("pot",z);G&&this.aX.set("bbs",G);this.policy.useUmp&&!WM(14,this.aX.P9)&&(this.KO=new S6(this),this.aX.set("ump","1"),this.aX.set("srfvp","1"));if(p=this.policy.PO?this.policy.XK&&!isNaN(this.info.wE)&&this.info.wE>this.policy.jA?!1:!0:!1)a=null,this.policy.GT&& this.policy.S8?a=[1]:w&&(a=[]),a!=null&&(this.policy.YC&&a.push(2),this.aX.set("defsel",a.join(",")));this.kE=new ky$(this,this.policy,this.aX,this.info.gG,this.timing,this.logger,y,d);this.Bd=n||null;this.jF=wih(this);s9r(this.kE);y=void 0;if(this.policy.pJ||this.KO||this.policy.QY)y={method:"POST"},n=(0,g.id)([120,0]),d={},this.policy.hf&&v&&(v=ok(void 0,v),d.Ci=v),this.policy.lJ&&this.J3&&(d.videoPlaybackUstreamerConfig=this.J3),this.policy.QY&&(v=this.info.j)&&Object.assign(d,v),Object.keys(d).length> 0?y.body=g.pf(d,g.MZ):y.body=n;this.Cq&&this.J3&&(this.aX.set("iwts","1"),y={method:"POST"},v=g.pf({hw:{vx:this.Cq*1E3},PW:this.info.j?.PW||void 0,videoPlaybackUstreamerConfig:this.J3},g.MZ),y.body=v);try{this.xhr=A_(this.aX,this.policy.K,this.timing,p,y),this.kE.S.start(),X&&(this.jK=new g.SF(this.iz,X,this),this.jK.start(X+(this.timing.s6.K.Pi()||0)*1E3)),this.policy.Rw&&J$(this.timing,this.G9()),g.XM(()=>{})}catch(I){a5v(this,I,!0)}}kz(){return this.timing.requestNumber}G9(){return this.aX.G9()}eS(){const p= JQe(this.kE); if(this.KO){var a=this.KO,l=a.L.totalLength;p.ulen=l;l>0&&(a=EY(a.L,0),p.ubyte=a,l===1&&a===0&&(p.b248180278=!0))}this.a9&&(p.rc=this.policy.Xv?this.a9:this.a9.toString());this.policy.wq&&this.z$&&(p.tr=this.z$);p.itag=this.info.Yv[0].L.info.itag;p.ml=`${+this.info.Yv[0].L.L()}`;p.sq=`${this.info.Yv[0].Gm}`;this.aX&&(p.ifi=`${+gG(87,this.info.gG.S)}`);this.a9!==410&&this.a9!==500&&this.a9!==503||(p.fmt_unav="true");(l=this.errorMessage||this.xhr?.yh())&&(p.msg=l);this.Ry&&(p.smb="1");this.info.isDecorated()&& (p.sdai="1");return p}S$(){return IvO(this.timing)}yh(){return this.xhr.yh()||""}tX(){return this.isComplete()||this.timing.tX()}D7(){!this.nz()&&this.xhr&&(this.a9=this.xhr.status,this.policy.U1&&this.wc&&this.L8(!1),this.WL()?this.Pt(2):!this.nD&&this.tX()&&(this.Pt(),this.nD=!0))}gC(){if(!this.nz()&&this.xhr){if(!this.vR&&this.xhr.pN()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var p=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.vR=((0,g.h)()-p)/1E3}this.xhr.pN()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&& this.policy.Ax&&!Xn()&&g.V2("yt-player-headers-readable",!0,2592E3);p=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var a=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.jK?.stop();this.DE=p||this.DE;this.Ui=a||this.Ui}}gp(){var p=this.xhr;!this.nz()&&p&&(this.a9=p.status,p=this.uY(p),this.policy.wq&&this.jK?.stop(),p===5?Ij(this.kE):this.cZ(p),this.kE.S.stop())}uY(p){w9o(this);if(kX(this.kE,this.xhr.status,this.gI?this.timing.N||this.Iy:this.xhr.sZ(),!1,this.Gx))return 5;var a= "";oD(this.kE,this.xhr)&&(a=UaO(this.kE,this.xhr));if(a)return dF(mZ(this.kE)),this.info.vW(this.aX,a),3;a=p.N5();if(this.KO){this.L8(!0);w9o(this);if(kX(this.kE,this.xhr.status,this.timing.N||this.Iy,!1,this.Gx))return 5;if(!this.eC){if(this.Iy)return dF(mZ(this.kE)),3;this.kE.lastError="net.closed";return 5}}else{if(kX(this.kE,this.xhr.status,this.xhr.sZ(),!1,this.Gx))return 5;var l=this.info.U;if(l&&l!==a||p.KY())return this.kE.lastError="net.closed",5;this.L8(!0)}l=mHe(this)?p.getResponseHeader("X-Bandwidth-Est"): 0;if(p=mHe(this)?p.getResponseHeader("X-Bandwidth-Est3"):0)this.Xy=!0,this.policy.Cd&&(l=p);hEr(this.kE,a,l?Number(l):0,this.info.Yv[0].type===5);return 4}canRetry(){this.nz();const p=this.info.isDecorated();return this.kE.canRetry(p)}onStateChange(){this.isComplete()&&(this.policy.Sp?this.y7():this.timing.deactivate())}qj(){this.kE.qj()}RJ(){this.callback&&this.callback(this,this.state)}Ja(){return this.kE.Ja()}dispose(){super.dispose();this.kE.dispose();this.jK?.dispose();this.policy.Sp||this.y7()}y7(){this.xhr&& this.xhr.abort();this.timing.deactivate()}r3(){if(!this.x9().length)return[];this.GX=!0;return this.wc.r3()}WL(){return this.state<1?!1:this.wc&&this.wc.ZF.length||this.xhr?.VR()?!0:!1}x9(){this.L8(!1);return this.wc?this.wc.x9():[]}L8(p){try{if(p||this.xhr.pN()&&this.xhr.VR()&&!oD(this.kE,this.xhr)&&!this.jF)this.wc||(this.wc=new FRf(this.policy,this.info.Yv)),this.xhr.VR()&&(this.KO?this.KO.feed(this.xhr.rK()):SA(this.wc,this.xhr.rK(),p&&!this.xhr.VR()))}catch(a){this.KO?a5v(this,a):g.tX(a)}}Le(p, a){switch(p){case 21:({pO:p}=a.split(1));nv(this,p);break;case 22:this.eC=!0;SA(this.wc,new F8([]),!0);break;case 43:({redirectUrl:p}={redirectUrl:w3(new px(a),1)});p&&(this.info.vW(this.aX,p),this.Iy=!0);break;case 45:const {NN:l,L2:y}=HR(new px(a));l&&y&&(this.Wb=l/y);break;case 44:this.HC=PgF(new px(a));!this.timing.N&&this.HC?.action===4&&this.HC?.NZ?.gI&&(this.gI=this.HC.NZ.gI);break;case 53:this.policy.wq&&({ED:p}=boO(new px(a)),p&&(this.jK||(this.ED=p,this.jK=new g.SF(this.iz,p,this)),this.jK.start())); break;case 60:this.a$=Py(new px(a));break;case 58:if(p=j7o(new px(a)))this.hD=p,p.hD===3&&(this.Gx=!0)}}BO(p,a,l,y){l||this.timing.BO(y);if(p!==21)return!1;if(p=this.policy.U1)if(p*=this.info.Yv[0].L.info.Sb,a.totalLength+l!==y&&a.totalLength0)return!1;if(!this.xhr.pN())return!0;if(this.KO)var p= !this.info.U;else this.xhr.XH()?p=!1:(p=this.xhr.getResponseHeader("content-type"),p=p==="audio/mp4"||p==="video/mp4"||p==="video/webm");if(!p)return!1;if(isNaN(this.info.wE)){p=this.xhr.getResponseHeader("x-head-seqnum");const a=this.timing.policy.G?1:0;if(p&&Number(p)>this.info.Yv[0].Gm+a)return!1}return!0}fQ(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}w6(){this.xhr&&(this.DE=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.DE}j$(){this.xhr&&(this.Ui=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"))); return this.Ui}Zd(){return this.kE.Zd()}iz(){if(!this.nz()&&this.xhr){this.z$="heartbeat";var p=this.kE;p.L+=2;this.RJ()}}};var nZ=class extends RvE{constructor(p,a){super(p,a);this.Rc=!0;this.Ws=!1;this.Ic=this.ac=0;this.Tm=NaN}jl(p,a){const l=(p-this.D)/1E3,y=a-this.U;this.S>0?y>0&&(this.Ws&&(l>.2||y<1024?(this.j+=l,l>.2&&Nwo(this,.05,y)):Nwo(this,l,y)),this.Rc&&(this.ac+=y,this.Ic+=l)):a>this.policy.L&&this.Sl(p,a);super.jl(p,a)}Ba(p,a){Qx(this,p,a);this.jl(p,a);this.Ws&&(a=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.S>0&&cl(this.s6,this.ac,this.j),p=(p-this.L)/1E3||.01,this.policy.K&&!(this.S>0)|| rF(this.s6,p,this.U,a,!1))}NO(p){Qx(this,p,this.X);var a=(p-this.D)/1E3;HK(this.s6,a,0);this.An(a,0);!this.Ws&&this.S>0||(a=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.S>0&&(this.j+=(p-this.D)/1E3,cl(this.s6,this.ac,this.j)),rF(this.s6,(p-this.L)/1E3||.01,this.U,a,!1,!0))}Z5(p){p=p.TG||2147483647;(p&2)!==2&&(this.Rc=!1);(p&1)===1&&(this.Ws=!0)}nP(p){p=p.TG||2147483647;(p&2)===2&&(this.Rc=!1);(p&1)===1&&(this.Ws=!1)}tP(){return this.C}Ps(){const p=this.Rc?this.now()-this.D:0;return Math.max(this.Ic* 1E3+p,1)}Ha(){return this.ac*1E3/this.Ps()}Sl(p=this.G,a=this.X){this.S>0||(super.Sl(p,a),a=this.s6,p=(p-this.UO)/1E3,a.K.xn(1,(this.UO-this.L)/1E3),a.w7.xn(1,p))}PZ(p){this.Tm=p}K(){const p=super.K();p.rbw=this.Ha();p.rbe=+this.Rc;p.gbe=+this.Ws;p.ackt=(this.Tm-this.L).toFixed();return p}Kx(){}E6(){return NaN}wq(){return this.L+this.snapshot.delay*1E3}};var MUf=class{constructor(p){this.S={};this.logger=new g.Xj(p)}Le(p,a){switch(p){case 20:p=new px(a);p={lc:r3(p,1),videoId:w3(p,2),itag:r3(p,3),lmt:r3(p,4),xtags:w3(p,5),RN:r3(p,6),U9:fJ(p,8),E2:r3(p,9),xcm:r3(p,10),startMs:r3(p,11),durationMs:r3(p,12),rN:r3(p,14),timeRange:$F(p,15,bvo),Nb:r3(p,16),qm:r3(p,17),clipId:w3(p,1E3)};this.G(p);break;case 21:this.D(a,!1);break;case 22:this.Tw(a);break;case 31:p=aQ(a,WN$);this.yn(p);break;case 52:p=aQ(a,oQh);this.NG(p);break;default:this.X(p,a)}}G(){}X(){}};var myM=class extends MUf{constructor(p){super("sabr");this.wG=p}X(p,a){switch(p){case 35:this.pE(a);break;case 44:this.pP(a);break;case 43:this.yf(a);break;case 53:this.jn(a);break;case 56:this.My();break;case 57:this.e_(a);break;case 42:this.xu(a);break;case 45:this.KE(a);break;case 59:this.Tz(a);break;case 51:this.Jq(a);break;case 49:this.Z5(a);break;case 50:this.nP(a);break;case 47:this.IY(a);break;case 58:this.dC(a);break;case 61:this.wG.y$.PZ((0,g.h)());break;case 66:this.QO(a);break;case 46:this.aY(a); break;case 67:this.onSnackbarMessage(a);break;case 69:this.gN(a)}}Jq(p){p=new px(p);p={uzT:ma(p,1,sy),tac:ma(p,2,sy)};this.wG.Jq(p)}Tz(p){var a=new px(p);p=ed(a,1);var l=ed(a,2);a=ed(a,3);this.wG.Tz(p,l,a)}KE(p){p=HR(new px(p));this.wG.KE(p)}IY(p){p=aQ(p,KMM);this.wG.IY(p)}xu(p){p=new px(p);p={videoId:w3(p,1),formatId:$F(p,2,sy),endTimeMs:r3(p,3),hv7:r3(p,4),mimeType:w3(p,5),xH:$F(p,6,bpM),indexRange:$F(p,7,bpM),Th:$F(p,8,NF$)};this.wG.xu(p)}e_(p){p=new px(p);p={type:r3(p,1),scope:r3(p,2),value:mV(p, 3),sendByDefault:fJ(p,4),writePolicy:r3(p,5)};this.wG.e_(p)}My(){this.wG.My()}pE(p){p=FOA(new px(p));this.wG.pE(p)}jn(p){p=boO(new px(p));this.wG.jn(p)}pP(p){p=PgF(new px(p));this.wG.pP(p)}yf(p){p={redirectUrl:w3(new px(p),1)};this.wG.yf(p)}D(p){const a=EY(p,0);if(p.totalLength!==1){({pO:p}=p.split(1));var l=this.S[a]||null;l&&this.wG.hN.L(a,l,p)}}Tw(p){p=EY(p,0);const a=this.S[p]||null;a&&this.wG.Tw(p,a)}NG(p){this.wG.NG(p)}G(p){const a=p.lc,l=p.U9,y=p.RN,S=p.qm,n=p.Nb,V=p.E2,Z=p.startMs,z=p.durationMs, d=p.timeRange,G=p.rN,B=p.clipId,c=Sh(p);p=n5o.has(Ry[`${p.itag}`]);this.S[a]=c;this.wG.wC(c,p,{lc:a,U9:!!l,RN:y??-1,E2:V??-1,startMs:Z??-1,durationMs:z??-1,rN:G,qm:S,Nb:n,clipId:B,timeRange:d})}Z5(p){p={TG:r3(new px(p),1)};this.wG.Z5(p)}nP(p){p={TG:r3(new px(p),1)};this.wG.nP(p)}yn(p){this.wG.yn(p)}dC(p){p=j7o(new px(p));this.wG.dC(p)}QO(p){p={oU:$F(new px(p),1,cXr)};this.wG.QO(p)}onSnackbarMessage(p){p=r3(new px(p),1);this.wG.onSnackbarMessage(p)}gN(p){p={rz:ma(new px(p),1,IUM)};this.wG.gN(p)}aY(p){p= new px(p);p={reloadPlaybackParams:$F(p,1,DkE),QX:fJ(p,2)};this.wG.aY(p)}};var tUO=class extends g.YB{constructor(p){super();this.G=p;this.logger=new g.Xj("onesie");this.hP=new Map;this.j=this.U=!1;this.mO=this.r7=null;this.X=!1}Az(){return Array.from(this.hP.keys())}IE(p){return this.hP.has(p)}TN(p){this.hP.get(p).PT=!0}K(){let p=0;const a=this.Az();for(let l=0;l0||!l[0].range&&G.vH)S=void 0,l=l[0],n=G.wz,y=G.data,l.range||(S=G.vH),S=new h5(IFM(l,l.S+n,y.totalLength,S),y),G.wz+=S.info.U,a.Zq.push(S);a.o7.get(d).data=new F8;G.vH&&a.o7.delete(d)}p=this.hP.get(p);if(!p)return[];a=p.Zq;p.Zq=[];for(var V of a)p.Ay+=V.info.U;return a||[]}V=this.hP.get(p)?.wc;if(!V)return[];this.L8(p,V);return V.r3()}WL(p){return HL?sG(this,p):!!this.hP.get(p)?.wc?.x9()?.length||sG(this,p)}L8(p,a){for(;sG(this,p);){var l=this.JJ(p); var y=p;y=this.hP.get(y).Cv&&!Qw(this,y);SA(a,l,y&&TNr(this,p))}}D(){return this.X?!1:this.X=!0}C(){this.U=!0}fz(){super.fz();for(const p of this.hP.keys())this.S(p);if(this.mO?.Ao)for(const p of this.hP.values())p.o7.clear(),p.Ob.clear(),p.Zq.length=0,p.Yv.length=0,p.Uw.length=0,p.D5.length=0;this.hP.clear()}},HL=!1;var GF=class extends g.YB{constructor(p,a,l,y,S,n,V){super();this.policy=p;this.info=a;this.r7=l;this.wG=S;this.logger=new g.Xj("sabr");this.KO=new S6(this);this.LX=new myM(this);this.hN=new tUO(this);this.state=1;this.YJ=!1;this.Ou=0;this.clipId="";this.nO=-1;this.qZ=0;this.wi=-1;this.c7=this.Gx=this.ZO=!1;this.policy.Lr?this.y$=new nZ(this,n):this.y$=new y3(this,n);this.aX=this.policy.E6?a.LJ:eU$(a,this.policy,y);this.aX.set("rn",`${this.kz()}`);this.aX.set("alr","yes");HHq(this.hN,l,p);this.kE= new ky$(this,this.policy,this.aX,a.gG,this.y$,this.logger,y,V,this.policy.enableServerDrivenRequestCancellation);s9r(this.kE);this.policy?.Ao&&(g.H(this,this.hN),g.H(this,this.kE));p=a.S;a={method:"POST",body:p};p&&(this.qZ=p.length);try{this.xhr=A_(this.aX,this.policy.K,this.y$,ig,a),this.policy.Rw&&J$(this.y$,this.G9()),this.kE.S.start()}catch(Z){g.tX(Z)}}D7(){!this.nz()&&this.xhr&&(this.L8(!1),b8(this.wG,this))}gC(){}gp(){if(!this.nz()&&this.xhr){var p=this.uY();p===5?Ij(this.kE):this.cZ(p);this.kE.S.stop(); this.Bn?.stop()}}uY(){let p="";oD(this.kE,this.xhr)&&(p=UaO(this.kE,this.xhr));if(p)return this.info.gG.vW(this.aX,p),3;this.L8(!0);if(kX(this.kE,this.xhr.status,this.xhr.sZ(),this.info.N1(),this.Gx))return 5;if(this.YJ)return 3;hEr(this.kE,this.xhr.N5(),0,this.N1());this.policy.zn&&RBq(this.wG);return 4}L8(p){const a=this.xhr;!p&&oD(this.kE,this.xhr)||!a.VR()||(p=a.rK(),this.KO.feed(p))}Le(p,a){this.xhr.II()&&p===21&&FtO(this);this.LX.Le(p,a)}BO(p,a,l,y){l||(this.y$.BO(y),this.policy.xt&&p===21&& FtO(this));if(p!==21)return!1;this.y$.N=!0;p=a.totalLength;l||(this.wi=EY(a,0),a=a.split(1).pO);var S=this.policy.eA;const n=this.LX.S[this.wi],V=this.r7.U.get(n);if(S&&V&&(S*=V.info.Sb,p+l!==y&&p0)){this.policy.R7&&this.kE.S.stop();var p=this.y$.Ps(), a=this.y$.Ha(),l=vah(this,p);a>l.vz||l.n4>0&&this.info.Vk()>l.n4||(this.Ou=(0,g.h)(),this.Bn?.stop(),this.policy.zn&&(l=this.wG,p={iQ:Math.round(a*p/1E3),JH:p},l.policy.zn&&(l.QY=p,l.zw++)),this.qj())}}qj(){this.kE.qj()}pP(p){this.wG.pP(p,this.kz())}yf(p){this.YJ=!0;this.info.gG.vW(this.aX,p.redirectUrl)}Z5(p){this.y$ instanceof nZ&&this.y$.Z5(p)}nP(p){this.y$ instanceof nZ&&this.y$.nP(p)}xu(p){var a=p.formatId;const l=new PR(p.xH?.first||0,p.xH?.XZ||0),y=new PR(p.indexRange?.first||0,p.indexRange?.XZ|| 0);if(!this.r7.U.get(Sh({itag:a.itag,lmt:a.lmt,xtags:a.xtags}))){var S=p.Th||{};S.mimeType=p.mimeType;S.itag=a.itag;S.lastModified=`${a.lmt||0}`;S.xtags=a.xtags;p=this.r7;a=zA("");S=Xa(S,null);db(p,new GA(a,S,l,y))}}KE(p){this.wG.KE(p,this.kz())}onSnackbarMessage(p){if(this.policy.Un)this.wG.onSnackbarMessage(p)}gN(p){this.policy.D&&this.wG.gN(p,this.kz())}yn(p){this.mz=p;this.kE.U=(0,g.h)();this.wG.yn(p)}Tz(p,a,l){this.wG.Tz(p,a,l)}e_(p){p.scope===2&&(this.Yd=p);this.wG.e_(p)}My(){this.ZO=!0;this.wG.My()}Jq(p){this.policy.tD&& this.wG.Jq(p)}IY(p){this.wG.IY(p,this.kz())}dC(p){p.hD===3&&(this.Gx=!0);this.wG.dC(p)}QO(p){this.wG.QO(p)}aY(p){this.wG.aY(p)}canRetry(){this.nz();return this.kE.canRetry(!1)}dispose(){this.nz()||(super.dispose(),this.kE.dispose(),this.Bn?.dispose(),this.cZ(-1),this.y7())}cZ(p){this.state=p;b8(this.wG,this)}N1(){return this.info.N1()}cV(){return this.ZO}Xf(){return this.Yd}wC(p,a,l){l.clipId&&(this.clipId=l.clipId);this.policy.S&&!a&&(this.nO=l.E2);if(this.info.isDecorated()){var y=this.info;y=y.data?.PW?.cC? y.data.PW.cC:-1;y>=0&&y>l.E2&&this.wG.loader.Xu("sdai",{skpsqmismatch:"1",stsq:y,rcvsq:l.E2,a})}this.hN.wC(p,a,l);this.policy.HG&&this.mz&&this.y$ instanceof y3&&(y=this.mz.Mw,this.y$.wC(l.durationMs/1E3,a,y>0&&l.E2+1>=y));this.hN.TN(p)}Tw(p,a){this.hN.Tw(p,a)}NG(p){this.requestIdentifier=p}r3(p){return this.hN.r3(p)}dX(p){return this.hN.dX(p)}WL(p){return this.hN.WL(p)}Az(){return this.hN.Az()}y5(){return 1}kz(){return this.y$.requestNumber}Ud(){return this.requestIdentifier}G9(){return this.aX.G9()}L$(){this.y7()}y7(){this.y$.deactivate(); this.xhr?.abort()}isComplete(){return this.state>=3}L3(){return this.state===3}bU(){return this.state===5}Uh(){return this.state===4}Tg(){return this.isComplete()}zj(){return this.state>=1}Ja(){return this.policy.ZN?this.kE.Ja():0}RJ(){this.policy.ZN&&b8(this.wG,this)}W4(){return this.info.L?.hw?.Rl||0}Zd(){return this.kE.Zd()}eS(){const p=JQe(this.kE);Object.assign(p,Bv(this.info));p.req="sabr";p.rn=this.kz();this.xhr?.status&&(p.rc=this.policy.Xv?this.xhr.status:this.xhr.status.toString());var a= this.xhr?.yh();a&&(p.msg=a);this.Ou&&(a=vah(this,this.Ou-this.y$.tP()),p.letm=a.qX,p.mrbps=a.vz,p.mram=a.n4);return p}};var j6F=class{constructor(p){this.L=p;this.C=this.Bs=this.G=this.Ws=this.j=this.X=this.UO=this.D=this.w7=this.K=this.QY=this.Sl=this.jl=this.N=0;this.ticks={}}tick(p,a){this.ticks[p]=a?window.performance.timing.navigationStart+a:(0,g.h)()}};var WiE=class extends g.js{constructor(p,a,l,y,S,n){super();this.loader=p;this.r7=a;this.policy=l;this.videoTrack=y;this.audioTrack=S;this.UO=this.L=null;this.D=this.G=NaN;this.K=0;this.C=NaN;this.U=null;this.w7=this.jl=NaN;this.Ws=new Map;this.Sl=this.X=this.j=NaN;this.hg={bhV:()=>this.S}; this.S=n?1:0}m5(p,a,l,y){if(this.policy.Q5&&this.policy.S){var S=p.S5||null;S?(S6$(this,p.Gm,eF(this,p.startTime,p.Gm),{S5:S,Gm:p.Gm,It:!!a,n1:l},this.U),y&&this.U&&this.U.YZ(p.Gm,p.startTime,this.S,a?.L||[],a?.S||[],a?.j||[],l,a?.e3||0,a?.U||void 0)):this.S===1&&o_(this,5,"noad")}else{S=!1;this.policy.S&&(S=l?this.w7===p.Gm:this.jl===p.Gm);if(this.U&&y&&!S){y=[];S=[];let n=[],V=void 0,Z=0;a&&(y=a.L,S=a.S,n=a.j,V=a.U,Z=a.e3,this.Xu("sdai",{sq:p.Gm,ssvicpns:y.join("."),ssvid:S.join(".")}));this.policy.S&& (l?this.w7=p.Gm:this.jl=p.Gm);this.U.YZ(p.Gm,p.startTime,this.S,y,S,n,l,Z,V)}this.policy.S?l&&(this.S===1&&o_(this,5,"noad"),p.Gm!==this.L?.Gm&&(R4f(this,p,a,l),isNaN(p.startTime)||nYr(this,p.Gm,eF(this,p.startTime,p.Gm),!!a,this.U))):l&&R4f(this,p,a)}}Np(p,a,l){const y=this.videoTrack.L.index.VL()<=a;this.L={S5:p,Gm:a,It:l};y&&i6(this,p,a)}BH(){this.U&&this.U.BH()}QY(p,a){if(this.S!==0&&a&&p.Yv[0].n1()){var l=p.Yv[0].Gm,y=p.Yv[0].X;p=p.isDecorated();nYr(this,l,y,p,a)}}N(p,a){if(this.policy.Q5&&this.policy.S)return!(this.S=== 1||this.S===2||!this.policy.r$&&this.S===3&&a>=this.j);if(this.S===1||this.S===2)return!1;if(this.S!==0&&p===this.audioTrack){if(this.policy.S)return pT(this.videoTrack,a)||pT(this.videoTrack,a+1);p=jx(this.videoTrack);if(a>(p?p.Gm:-1))return!1}return!0}Xu(p,a,l=!1){(p!=="sdai"||this.policy.Gw||l)&&this.loader.Xu(p,a)}Q9(p,a){const l=this.videoTrack.L.index.ov(p);if(l>=0){var y=a.I4.Uo(l,2)?.Nt||"";if(this.policy.S||y)return a.i4(p,l),AE(this.loader,p,p,l),this.Xu("sdai",{cmskpad:1,t:p.toFixed(3), sq:l}),!0}this.Xu("sdai",{cmskpad:0,t:p.toFixed(3),sq:l});return!1}};var HQM=class{constructor(p,a){this.j=p;this.Xu=a;this.L="";this.U=new Set;this.S=new Map;this.hg={nEO:()=>this.U}}cO(p,a,l){const y=p||this.L; this.Xu("clsdai",{setadcfg:1,ocid:p,cid:y,acpn:l,acfglen:a?.length||0});this.S.has(y)||(this.Xu("clsdai",{setadcfg:"noentry",cid:y}),this.S.set(y,{event:"unknown",startTimeSecs:0,Hy:0,Nu:[],uu:Date.now(),X9:-1,N7:6}));(p=this.S.get(y))?a?(p.N7=6,p.Nu.push(l),p.FL=a):p.N7=2:this.Xu("clsdai",{setadcfg:"notfound",cid:y})}gN(p,a,l){if(!((p.rz?.length||0)<=0)&&(p=p.rz[0],p.S5)){var y=-(p.S5?.G6||0);p.timeRange&&(y+=(p.timeRange.startTicks||0)/(p.timeRange.timescale||1));this.D(new NH(y,p.S5?.Mg||0,p.S5?.Xr|| "",p.S5?.identifier||"",NEv(p.S5?.event),(p.S5?.G6||0)*1E3),a,p.E2||0,l)}}C(){this.U.clear()}D(p,a,l,y){let S;this.S.has(p.identifier)?(S=this.S.get(p.identifier),l>S.X9&&(S.startTimeSecs=p.startSecs,S.Hy=p.Hy,S.event==="predictStart"&&S.N7===5&&p.event!=="predictStart"&&(S.uu=Date.now()),S.event=p.event)):(S={event:p.event,startTimeSecs:p.startSecs,Hy:p.Hy,Nu:[],X9:l,N7:0},this.S.set(p.identifier,S));y&&S.N7===0&&(y.MR(p)?S.N7=5:(S.N7=2,S.FL=""),S.uu=Date.now(),S.X9=l);l>S.X9&&(y?.MR(p),S.X9=l); this.X&&a>-1&&a1E4?(p.N7=1,!1):!0:!1}};var c6=class{constructor(p,a,l){this.audio=p;this.video=a;this.reason=l}},VL=class{constructor(p,a,l){this.L=p;this.reason=a;this.token=l;this.videoId=void 0}};var DyZ=class extends g.YB{constructor(p,a,l){super();this.policy=p;this.j=a;this.Xu=l;this.U=new Map;this.X=0;this.D=!1;this.L="";this.S=!1}n9(p,a=!1,l={}){this.policy.a7=Qz(p,l,this.j,a)}};var iQh=class{constructor(p,a,l,y,S,n=[]){this.loader=p;this.Sl=a;this.policy=l;this.r7=y;this.D=S;this.Tm=n;this.logger=new g.Xj("dash/abr");this.L=qN;this.U=this.G=null;this.C=-1;this.QY=!1;this.nextVideo=this.S=null;this.j=[];this.Hs=new Set;this.Ws={};this.Ic=new N0(1);this.K=0;this.Rc=this.N=this.UO=!1;this.jl=0;this.ac=!1;this.w7=new Set;this.Bs=!1;this.hg={U5:()=>{eM(this)}}; this.X=new DyZ(this.policy,S,(V,Z)=>{this.loader.Xu(V,Z)})}F1(p){if(this.policy.Vc){var a=new Set(p); a.size===this.w7.size&&[...a].every(l=>this.w7.has(l))||(this.loader.Xu("lwnmow",{itagDenylist:[...p].join()}),this.loader.Gc(!!a.size),this.C=-1,this.w7=a,Kt(this,this.L),this.Bs=!0)}}n9(p,a=!1,l={}){const y=this.policy.a7; this.X.n9(p,a,l);y!==this.policy.a7&&(Kt(this,this.L),bH(this),y>this.policy.a7&&this.U?.info.L()&&!this.nextVideo?.info.L()&&(this.UO=!0))}};var sh={Zc:-1,JZ:!1,B1:0},TLM=class extends g.YB{constructor(p){super();this.a4=p;this.L=null;this.S=sh;this.hg={i19:a=>{this.L=a}}; this.a4("ismp_i")}fz(){Uh(this);super.fz()}};var NLA=class{constructor(p){this.track=p;this.buffered=[];this.U=this.j=0;this.D={};this.X=0;this.L=new sD}Aw(p){this.timestampOffset=p;this.flush()}C(p,a){this.flush();this.S=a;$E(this,3,p)}K(p,a,l,y){!this.S||FQq(this.S,p)&&this.S.Gm===p.Gm||this.flush();this.j+=l;this.U+=y;l=1;!this.S&&p.S&&(l=2);$E(this,l,a);a=Math.ceil(p.S/1024);l===2&&this.L.add(a);this.L.add(Math.ceil((p.S+p.U)/1024)-a);this.S=p}UO(){$E(this,0)}G(){$E(this,4);this.flush()}flush(){if(this.L.pos>0){var p={a:this.track.Bi(), u:this.L.Lq(),pd:Math.round(this.j),ad:Math.round(this.U)},a=this.S;if(a){const l=a.L.info;p.itag=l.itag;l.S&&(p.xtags=l.S);p.sq=a.Gm;p.st=a.startTime;p.sd=a.duration;this.track.policy.YV&&(p.si=a.HZ());a.j&&(p.esl=a.S+a.U);a.G()&&(p.eos=1)}isNaN(this.timestampOffset)||(p.to=this.timestampOffset);if(a=this.track.Jg?.mS({})){for(const l in a)this.D[l]!==a[l]&&(p["sb_"+l]=a[l]);this.D=a}this.track.Xu("sbu",p);this.L.reset();this.buffered=[];this.X=this.U=this.j=0;this.timestampOffset=this.S=void 0}}};var s6h=class{constructor(p,a,l){this.policy=p;this.L=a;this.jl=l;this.j=this.S=0;this.Fz=null;this.UO=new Set;this.C=[];this.indexRange=this.initRange=null;this.K=new z0;this.N=this.Sl=!1;this.hg={jXc:()=>this.U, vEu:()=>this.chunkSize, Bq7:()=>this.G, btT:()=>this.D}; (a=sZF(this))?(this.chunkSize=a.csz,this.U=Math.floor(a.clen/a.csz),this.G=a.ck,this.D=a.civ):(this.chunkSize=p.Oy,this.U=0,this.G=g.NM(16),this.D=g.NM(16));this.X=new Uint8Array(this.chunkSize);this.G&&this.D&&(this.crypto=new OQr(this.G,this.D))}dispose(){this.N=!0}nz(){return this.N}},WR=class extends Error{constructor(p){super(p)}};var e$F=class{constructor(p,a,l,y,S,n){this.ids=p;this.L=a;this.S=l;this.j=y;this.U=S;this.e3=n}};var Xq=class{constructor(p,a,l){this.initData=p;this.contentType=a;this.isPrefetch=l;this.L=this.cryptoPeriodIndex=NaN;this.U=[];this.bC=!1;this.S=null;if(a?.toLowerCase()==="webm"||p.length===16)this.bC=!0}};var dO=class{constructor(p,a,{eU:l=!1,videoDuration:y=0,rf:S,IJ:n=!1}={}){this.videoId=p;this.status=a;this.eU=l;this.videoDuration=y;this.rf=S;this.IJ=n}},Uyq=class{constructor(p,a,l,y,S){this.videoId=p;this.Th=a;this.S=l;this.bytesDownloaded=y;this.L=S}};var fLM=class{constructor(p){this.S=p;this.offset=0}skip(p){this.offset+=p}L(){return this.offset}};var Q6r=class{constructor(p,a,l){this.loader=p;this.policy=a;this.X=l;this.logger=new g.Xj("dash");this.S=[];this.L=null;this.Sl=-1;this.C=0;this.w7=NaN;this.UO=0;this.U=NaN;this.K=this.QY=0;this.ac=-1;this.Ws=this.j=this.D=this.jl=null;this.Ic=this.Rc=NaN;this.G=this.N=this.Hs=this.Tm=null;this.iT=!1;this.Bs=this.timestampOffset=0;this.hg={dw:()=>this.S}; if(this.policy.j){const y=this.X,S=this.policy.j;this.policy.Tm&&p.Xu("atv",{ap:this.policy.Tm});this.G=new s6h(this.policy,y,(n,V,Z)=>{p.Lz.f6(new dO(this.policy.j,2,{rf:new Uyq(S,n,y.info,V,Z)}))}); this.G.K.promise.then(n=>{this.G=null;n===1?p.Lz.f6(new dO(this.policy.j,n)):this.loader.Xu("offlineerr",{status:n.toString()})},n=>{const V=(n.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); n instanceof WR?(this.loader.Xu("offlinenwerr",{em:V}),iN(this),p.Lz.f6(new dO(this.policy.j,4))):(this.loader.Xu("dldbwerr",{em:V}),iN(this),p.Lz.f6(new dO(this.policy.j,4,{IJ:!0})))})}}dw(){return this.S}JD(){return this.S.length?this.S[this.S.length-1]:null}C0(){this.S=[]; PW(this);iN(this)}JJ(p){this.Hs=this.S.shift().info;p.info.equals(this.Hs)}dX(){return g.Nx(this.S,p=>p.info)}Bi(){return!!this.X.info.audio}isDrm(){return!!this.X.info.uf}getDuration(){return this.X.index.KU()}};var uF=class extends u1v{constructor(p,a,l,y,S){super(l,S);this.policy=p;this.formatId=a;this.hN=y;this.lastError=null;this.onProgress=()=>{this.nz()||(this.hN.IE(this.formatId)?(this.isComplete()||this.L.start(),sG(this.hN,this.formatId)&&this.Pt(2),this.hN.Cv(this.formatId)&&(TNr(this.hN,this.formatId)?this.cZ(4):(this.lastError="net.closed",this.cZ(5)))):(this.lastError="player.exception",this.cZ(5)))}; this.L=new g.SF(()=>{this.isComplete()||(this.lastError="net.timeout",this.cZ(5))},1E3); this.L.start();uCr(this.hN,this.formatId,this.onProgress);g.XM(this.onProgress)}onStateChange(){this.nz()&&(DJ(this.hN,this.formatId),this.L.dispose())}eS(){return{expected:Bgv(this.hN,this.formatId),received:this.hN.hP.get(this.formatId)?.bytesReceived||0,bytesShifted:this.hN.hP.get(this.formatId)?.Ay||0,sliceLength:Qw(this.hN,this.formatId),isAnyMediaEndReceived:this.hN.AX(this.formatId)}}S$(){return 0}tX(){return!0}r3(){return this.hN.r3(this.formatId)}x9(){return[]}WL(){return this.hN.WL(this.formatId)}Zd(){return this.lastError}Ja(){return 0}};var hvv=class extends g.YB{constructor(p,a,l,y){super();this.loader=p;this.policy=a;this.L=l;this.timing=y;this.logger=new g.Xj("dash");this.U=[];this.jl=[];this.S=this.Jg=null;this.Hs=!1;this.QY=this.Bs=0;this.D=-1;this.Sl=!1;this.w7=-1;this.Ws=null;this.N=NaN;this.UO=[];this.hg={LQ:()=>this.j, SEO:()=>this.U, APv:()=>this.K}; this.j=new Q6r(p,a,l);this.policy.L&&(this.K=new evA(this.j,this.loader.getManifest(),this.policy,S=>{this.policy.W8&&this.Xu("buftl",S)})); this.policy.Ba&&(this.C=new NLA(this));this.Sb=l.info.Sb;this.G=this.policy.N?!1:l.jl();this.isManifestless=l.jl();this.X=this.G;g.H(this,this.Ws)}Bi(){return!!this.L.info.audio}JD(){return this.j.JD()}JJ(p){this.j.JJ(p);this.K?.w7(p);this.Sb=Math.max(this.Sb,p.info.L.info.Sb||0)}getDuration(){return this.L.index.KU()}C0(){FU(this);this.j.C0()}LQ(){return this.j}isRequestPending(p){return this.U.length?p===this.U[this.U.length-1].info.Yv[0].Gm:!1}Aw(p){this.K?.Aw(p);this.C?.Aw(p)}Xu(p,a){this.loader.Xu(p, a)}fO(){return this.loader.fO()}dispose(){this.C?.flush();super.dispose()}};var vkM=class{constructor(){this.Us=!1}};g.RzM=class{constructor(p){this.g7=p;this.K=new vkM;this.Qi=this.Bf=!1;this.Aa=2;this.Bs=20971520;this.iT=8388608;this.jl=120;this.Ds=this.uK=this.LH=2;this.R7=this.MJ=!1;this.d8=1E3;this.Lx=15;this.dE=1;this.C=1.15;this.Sl=1.05;this.G4=1;this.Em=this.PZ=!1;this.q0=6;this.U=!1;this.m0=100;this.g4=10;this.tf=6;this.d4=!1;this.g8=1;this.S8=this.tN=!1;this.A3=2;this.jo=this.qB=this.OY=!1;this.NO=!0;this.OC=this.Xq=this.Zl=this.tP=!1;this.SS=!0;this.Tx=!1;this.j="";this.A$=[];this.n8=this.Ba=!1;this.a7= 0;this.o1="";this.rA=this.hH=this.W8=this.Jv=this.UY=this.X=this.tv=this.Jw=this.Dd=this.L=this.Tm=this.w7=this.In=this.nC=this.UO=this.DF=this.V2=!1;this.g$=!0;this.Av=this.oK=this.Z1=this.iW=this.bQ=this.S=this.ac=!1;this.Rc=!0;this.ir=this.cA=this.N=this.zy=this.Ha=this.Ws=!1;this.DK=3;this.dG=this.Gw=this.nH=this.G3=this.Wy=this.ZN=this.Nj=this.uQ=this.Mt=this.Y0=!1;this.Ps=2;this.s1=this.lQ=this.p9=this.D=this.vk=!1;this.jc=g.ak(this.g7.experiments,"html5_min_readbehind_secs");this.wx=g.ak(this.g7.experiments, "html5_min_readbehind_cap_secs");this.sU=this.g7.A("html5_offline_reset_media_stream_on_unresumable_slices");this.Sb=NaN;this.lX=OG(this,"html5_request_size_min_kb",64)*1024;this.Hs=2097152;this.Af=OG(this,"html5_bypass_contention_secs");this.jh=1048576;this.Me=OG(this,"html5_repredict_interval_ms",1800);this.Uy=OG(this,"html5_head_miss_secs",5);this.kC=OG(this,"html5_min_upgrade_health_secs",10);this.HN=OG(this,"html5_min_seconds_between_format_selections",8);this.Ld=OG(this,"html5_max_buffer_health_for_downgrade_secs", 15);this.PO=ig;this.OU=g.ak(this.g7.experiments,"html5_min_startup_buffered_media_duration_secs");this.Dk=g.ak(this.g7.experiments,"html5_post_interrupt_readahead");this.Tv=this.g7.A("html5_disable_classic_alr");this.Hf=g.ak(this.g7.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.F5=OG(this,"html5_ssdai_failure_retry_limit",3);this.aD=this.g7.experiments.Cz("html5_clone_original_for_fallback_location");this.Ye=g.ak(this.g7.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.vG=g.ak(this.g7.experiments,"html5_subsegment_readahead_timeout_secs");this.TU=g.ak(this.g7.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.kf=g.ak(this.g7.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.hE=g.ak(this.g7.experiments,"html5_subsegment_readahead_min_load_speed");this.hn=g.ak(this.g7.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.Be=g.ak(this.g7.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.l_=OG(this,"html5_hopeless_secs",15);this.XK=this.g7.A("html5_restrict_streaming_xhr_on_sqless_requests");this.jA=g.ak(this.g7.experiments,"html5_max_headm_for_streaming_xhr");this.cN=this.g7.A("html5_pipeline_manifestless_allow_nonstreaming");this.Cd=this.g7.A("html5_prefer_server_bwe3");this.fp=this.g7.A("html5_last_slice_transition");this.Ax=this.g7.A("html5_store_xhr_headers_readable");this.DH=g.ak(this.g7.experiments,"html5_max_drift_per_track_secs");this.Xw=this.g7.A("html5_no_placeholder_rollbacks"); this.cz=this.g7.A("html5_subsegment_readahead_enable_mffa");this.Fu=this.g7.A("html5_allow_video_keyframe_without_audio");this.jo=g.ur(this.g7)&&!g.VI()&&this.g7.A("html5_adjust_media_time_for_non_cobalt_tv");this.I_=this.g7.A("html5_enable_vp9_fairplay");this.Oy=1048576;this.xC=this.g7.A("html5_woffle_resume");this.yZ=this.g7.A("html5_abs_buffer_health");this.tq=this.g7.A("html5_interruption_resets_seeked_time");this.yc=g.ak(this.g7.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.mH=this.g7.A("html5_report_captions_ctmp_qoe");this.Sp=this.g7.A("html5_explicitly_dispose_xhr");this.Ey=!this.g7.A("html5_encourage_array_coalescing");this.g7.A("html5_limit_media_merge_size")?ig?Gp()<21?this.bf=786432:this.bf=8388608:this.bf=262144:this.bf=0;this.Lw=this.g7.A("html5_filter_non_efficient_formats_for_safari");this.g7.A("html5_format_hybridization");this.XQ=this.g7.A("html5_abort_before_separate_init");this.DY=Kf();this.JA=this.g7.A("html5_serialize_server_stitched_ad_request"); this.t4=this.g7.A("html5_attach_po_token_to_bandaid");this.Sc=g.ak(this.g7.experiments,"html5_max_redirect_response_length")||8192;this.s2=this.g7.A("html5_rewrite_timestamps_for_webm");this.Ro=this.g7.A("html5_only_media_duration_for_discontinuities");this.zT=g.ak(this.g7.experiments,"html5_resource_bad_status_delay_scaling")||1;this.g7.A("html5_onesie_live");this.Gv=g.ak(this.g7.experiments,"html5_onesie_live_ttl_secs")||8;this.Wf=g.ak(this.g7.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.u5=this.g7.A("html5_update_container_type_on_codec_family_change");this.g7.A("html5_apply_ssap_slice_info_adjustment");this.E6=this.g7.A("html5_enable_sabr_host_fallback");this.mw=this.g7.A("html5_gapless_fallback_on_append_error");this.YL=this.g7.A("html5_shorts_stop_request_when_buffer_to_end");this.FI=this.g7.A("html5_vod_stop_request_when_buffer_to_end");this.QY=this.g7.A("html5_ssdai_use_post_for_media")&&this.g7.A("gab_return_sabr_ssdai_config");this.pJ=this.g7.A("html5_use_post_for_media"); this.wq=this.g7.A("html5_use_live_ump_heartbeat");this.useUmp=this.g7.A("html5_use_ump");this.PN=this.g7.bf;this.O4=this.g7.A("html5_reset_primary_stats_on_redirector_failure");this.mZ=this.g7.A("html5_remap_to_original_host_when_redirected");this.NF=this.g7.A("html5_sabr_support_quality_constraints");this.R_=this.g7.A("html5_iterative_seeking_buffered_time");this.Xv=this.g7.A("html5_use_network_error_code_enums");this.Kd=this.g7.A("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation= this.g7.A("html5_enable_server_driven_request_cancellation");this.Lr=this.g7.A("html5_enable_sabr_request_timing");this.tD=this.g7.A("html5_enable_server_format_filter");this.Vc=this.g7.A("html5_enable_lawnmower");this.ej=this.g7.Mc()?g.ak(this.g7.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.Y9=g.ak(this.g7.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Mu=this.g7.A("html5_live_defrag_only_h264_playbacks");this.GT=this.g7.A("html5_live_defrag_only_h264_formats"); this.Rw=this.g7.A("html5_record_now");this.ZU=g.ak(this.g7.experiments,"html5_drm_byterate_soft_cap");this.q9=g.ak(this.g7.experiments,"html5_drm_live_byterate_soft_cap");this.G=this.g7.A("html5_sabr_log_request_creation");this.L1=this.g7.A("html5_use_buffer_timeline_for_sabr_request_creation");this.zn=this.g7.A("html5_sabr_report_request_cancellation_info");this.C6=this.g7.A("html5_spoof_4k");this.U1=OG(this,"html5_min_media_duration_for_cabr_slice");this.eA=OG(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")|| .01;this.YC=this.g7.A("html5_remove_defrag_without_frame_level_streaming");this.vN=this.g7.A("html5_consume_all_buffered_bytes_one_poll");this.o_=this.g7.A("html5_disable_urgent_adaptation");this.fd=this.g7.A("html5_apply_constraints_in_client_for_sabr");this.lJ=this.g7.A("html5_send_video_playback_ustreamer_config");this.QR=OG(this,"html5_max_discontinuity_rewrite_count");this.yR=OG(this,"html5_fixed_media_duration_for_request");this.Es=this.g7.A("html5_apply_fix_for_missing_seg_info_without_logger"); this.Xq=this.g7.A("html5_enable_audio_quality_setting");this.g7.A("html5_enable_audio_quality_setting_feature");this.NB=OG(this,"html5_sabr_request_limit_per_period");this.KG=OG(this,"html5_sabr_request_limit_per_period_for_low_latency");this.n_=OG(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.Ao=this.g7.A("html5_sabr_dispose_media_objects");this.QS=this.g7.A("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.hf=this.g7.A("html5_enable_d6de4");this.g7.A("html5_high_res_seek_logging"); this.K9=this.g7.A("html5_disable_chunk_synchronization_sabr_seek");this.g7.A("html5_enable_ssap_multi_audio_format_filtering");this.g1=g.ak(this.g7.experiments,"html5_override_micro_discontinuities_threshold_ms");this.w8=this.g7.A("html5_byterate_constraints");this.Nw=this.g7.A("html5_refactor_sabr_audio_format_selection_logging");this.Un=this.g7.A("enable_sabr_snackbar_message");this.g7.A("html5_reinit_source_buffer_by_new_element");this.y8=this.g7.A("html5_refactor_sabr_video_format_selection_logging"); this.YV=this.g7.A("html5_log_slice_info_in_sbu");this.Kx=OG(this,"html5_paced_poll_ms");this.MF=OG(this,"html5_paced_poll_min_health_ms");this.Jf=this.g7.A("html5_disable_sabr_fallback");this.GM=this.g7.A("html5_track_current_buffered_range_at_sync");this.yU=g.ur(this.g7)?500:2E3;this.HG=this.g7.A("html5_sabr_live_timing");this.u2=this.g7.A("html5_count_updating_slice_for_buffer_health");this.S1=this.g7.A("html5_report_max_buffer_bytes_limit_to_sabr");this.xt=this.g7.A("html5_sabr_live_audio_early_return_fix"); this.ZT=g.ak(this.g7.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.a_=this.g7.A("html5_cuepoint_identifier_logging");this.Q5=this.g7.A("html5_new_sabr_ssdai_cuepoint_logic");this.NI=this.g7.A("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.La=this.g7.A("html5_skip_client_drm_license_constraint");this.r$=this.g7.A("html5_ssdai_not_block_on_predict_start");this.V2=this.g7.A("html5_pseudogapless_shorts_skip_abort_on_transition");this.rR=this.g7.A("html5_live_metadata_resets_timeout"); this.vk=this.g7.A("html5_sabr_log_invalid_sabr_current_time");this.Ic=this.g7.A("html5_ssdai_new_decoration_logic");this.j1=this.g7.A("html5_enable_smooth_audio_offset");this.p9=this.g7.A("html5_ssdai_log_missing_ad_config_reason")}VY(){return this.L&&this.tD}};var tX$=class{constructor({S8:p,Us:a,lG:l,VL:y,wM:S}={}){this.S8=p;this.Us=a;this.lG=l;this.VL=y;this.wM=S}};var g6$=class extends g.YB{constructor(p,a,l){super();this.loader=p;this.policy=a;this.s6=l;this.U=0;this.L=!1;this.delay=new g.SF(this.j,this.policy.ej,this);g.H(this,this.delay)}S(p){WM(10,p.L)||(this.gG=p,this.U=0,this.delay.JP())}j(){this.U++>15||(this.L=!this.L,new ASF(this.loader,this.policy,this.s6,this.gG,this.L),this.delay.start())}},ASF=class{constructor(p,a,l,y,S){this.loader=p;this.policy=a;this.s6=l;this.gG=y;this.So=S;this.done=!1;this.onTimeout=()=>{this.done||(this.done=!0,this.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*B5(this.s6)));this.timing=new y3(this,{s6:this.s6,ZW:this.size,Up:!0,An:()=>{}, zV:this.policy.U});p=Cp(this.gG,this.So,this.policy).P9.clone();ar(37,p);p["path"]!=="/videogoodput"&&(p["path"]="/videogoodput",p["url"]="");this.location=new Ev(p);this.location.set("rn",`${this.timing.requestNumber}`);this.location.set("range",`0-${this.size-1}`);this.xhr=A_(this.location,this.policy.K,this.timing,this.policy.PO,{});setTimeout(this.onTimeout,1E4)}gC(){}D7(){}gp(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.N5()===this.size)this.loader.Xu("rqs",this.getInfo()); else{var p="net.connect";this.xhr.status>200?p="net.badstatus":this.xhr.pN()&&(p="net.closed");this.onError(p)}}onError(p){this.loader.handleError(p,this.getInfo());Xl(`https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn=${this.timing.requestNumber}`,"gp",a=>{this.loader.Xu("pathprobe",a)},a=>{this.loader.handleError(a.errorCode,a.details)})}getInfo(){const p=this.timing.K(); p.shost=tZ(37,this.location.P9);p.pb=this.size;return p}};var YJq=class extends g.YB{constructor(p,a,l,y,S,n,V,Z,z,d,G,B,c,w=null){super();this.loader=p;this.policy=a;this.videoTrack=l;this.audioTrack=y;this.j=S;this.L=n;this.timing=V;this.X=Z;this.schedule=z;this.r7=d;this.U=G;this.UO=B;this.cY=c;this.J3=w;this.N=!1;this.Il="";this.sM=null;this.wE=NaN;this.Sl=!1;this.S=null;this.Cq=this.C=NaN;this.ED=this.D=0;this.logger=new g.Xj("dash");this.hg={CQ:(X,v)=>this.CQ(X,v)}; this.policy.Wf>0&&(this.Il=g.NM(this.policy.Wf));this.policy.ej&&(this.K=new g6$(this.loader,this.policy,this.schedule),g.H(this,this.K))}G(p,a){if(p.G){this.r7.isLive?(p=this.r7.aM&&this.r7.X?p.L.X(this.r7.aM,!1):p.L.D(Infinity),p.wE=this.wE):p=p.L.X(0,!1);if(this.UO){var l=this.UO;p.wE===0&&(p.X=l.K)}else p.X=this.C;return p}var y=p.S;if(!y.L.L())return y.L.U()?(l=HX(this.X,p.L.info.Sb,a.L.info.Sb,0),l=y.L.N(y,l)):l=y.L.QY(y),l;var S=y.D-this.loader.getCurrentTime(),n=!y.range||y.U===0&&y.S===0? 0:y.range.length-(y.S+y.U),V=y.L;this.CQ(p,S)&&n===0&&(this.r7.isManifestless?V=p.L:(V=y.startTime+Z8,y.U&&(V+=y.duration),lx(p,V),y=p.S,V=y.L));V.U()?(n=this.U,a=HX(this.X,V.info.Sb,a.L.info.Sb,S,n.j.length>0&&n.K===0&&this.loader.RK),S=N3(p),p=y.L.N(y,a),(a=p.U)&&p.Yv.length>1&&(S||p.gG.U||p.Yv[0].L!==y.L?p=y.L.N(y,p.Yv[0].U):(S=p.Yv[p.Yv.length-1],V=S.U/a,!S.j&&V<.4&&(p=y.L.N(y,a-S.U))))):(y.Gm<0&&(a=Av(y),a.pr=`${p.U.length}`,this.loader.isSeeking()&&(a.sk="1"),a.snss=y.K,this.loader.Xu("nosq", a)),p=V.QY(y));if(this.policy.w7)for(l of p.Yv)l.type=6;return p}CQ(p,a){if(!N3(p)||!p.L.L())return!1;var l;(l=this.U.Bs)||(l=N3(p)&&p.L.L()&&p.S.L.info.Sb{this.loader.Xu(z,d)}); this.isAudioOnly&&UXE(this,this.r7.L["0"])}Ca(p,a,l){this.loader.Ca(new VL(p,this.S?.reason==="m"?"m":this.S&&kcO(this,this.S)?this.S.reason:"a",l));bg(this.loader,a,p,!0)}U5(p,a){for(const l of this.jl)if(l.id===p)return this.X=this.r7.L[p],this.mO.VY()&&(this.UO=!0),p=new VL(this.X,a?"t":"m"),a&&(this.G=!0),p;this.U=[];return null}n9(p,a=!1,l={}){this.L.n9(p,a,l)}};var xp=class{constructor(p,a,l){this.requestType=p;this.gG=a;this.wG=l;this.S=null;this.hg={B1:()=>this.data?.B1, mu:()=>this.data?.mu}}setData(p,a,l={}){a?.E6&&(this.LJ=eU$(this,a,l),p.qt=this.gG.qt()); if(this.N1())return!0;this.data=p;this.L=wtq(p,(y,S)=>{this.wG?.eb(y,S)},a?.U,a?.D); if(!this.L)return!1;this.S=g.pf(this.L,UYO);return!0}N1(){return this.requestType===1}Vk(){return this.wG?.Vk()||0}isDecorated(){return!(!this.data?.PW&&!this.data?.Td?.length)}};var JSv=class{constructor(p){this.L=p;this.iv=(0,g.id)(mE(16))}encrypt(p){(0,g.h)();return this.L.L?JQ(this,p,this.iv):(new g.gN(this.L.S)).encrypt(p,this.iv)}decrypt(p,a){(0,g.h)();return this.L.L?JQ(this,p,a):(new g.gN(this.L.S)).decrypt(p,a)}};var pCq=class extends g.YB{constructor(p){super();this.Y=p;this.L=new Map;this.U=[];this.S=!ym();this.C=g.ak(this.Y.experiments,"html5_onesie_prewarm_interval_ms");this.K=new g.SF(this.G,this.C,this);this.D=-1;this.hg={qC7:()=>this.L, Crm:()=>this.X, OtO:()=>fy$}; g.H(this,this.K);FZe(this,g.Wk("yt-player-bandaid-host"));this.X=this.load();this.C&&this.X.then(()=>{this.G()})}UO(p){if(!((0,g.h)()=p||(p=this.L.get(0))&&tSh(this,p)}j(){const p=this.U;this.U=[];return p}},fy$={Mq:0,tL:1,fV:2,ue:3,XS:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"},PLv=class{constructor(p,a){this.location=p;this.S=a}L(){return tZ(33,this.location)}};var aZF=class{constructor(p){this.Ei=p;this.S=!1;this.L=[]}async decrypt(p){if(!this.L.length||this.L[0].isEncrypted){this.S=!0;this.Ei.a4("omd_s");var a=new Uint8Array(16),l,y;for(ym()?l=new g.k_(p):y=new g.gN(p);this.L.length&&this.L[0].isEncrypted;){var S=this.L.shift(),n=l?await l.decrypt(jO(S.buffer),a):y.decrypt(jO(S.buffer),a);for(p=0;p{if(!this.isComplete()){const y=Rv(this);this.fail(new g.cQ("net.timeout",y))}},1E3); this.Bg=new g.SF(this.yy,2E3,this);this.wl=this.Lz.SP();this.sb=this.A("html5_onesie_wait_for_media_availability");g.H(this.videoData,this);g.H(this,this.OP);g.H(this,this.qy);g.H(this,this.Bg);p=b0();ig&&p&&(this.Xz=new Map);this.m1=new Map;this.mR=new Map;this.O_=new Map;this.ri=new Map}Az(p){return this.Xz?.get(p)?.Az()||[]}WL(p,a){return!!this.Xz?.get(a)?.WL(p)}r3(p,a){return this.Xz?.get(a)?.r3(p)||[]}dX(p,a){return this.Xz?.get(a)?.dX(p)||[]}cZ(p){this.state=p;this.notifySubscribers()}N1(){return!1}cV(){return!1}Xf(){}a4(p){this.Lz.a4(p)}Ut(p){return this.Lz.Ut(p)}BO(p, a,l,y){l||this.y$.BO(y);return!1}Le(p,a){this.Ei.Le(p,a)}O7(){this.a4("orfb");this.FN=!0;if(Ulr(this)&&this.xhr){var p={rc:this.xhr.status,lb:this.xhr.N5(),rt:(1E3*IvO(this.y$)).toFixed(),shost:g.TX(this.Bj),trigger:"o1"};this.Xu("pathprobe",ki(p))}}Uu(){this.a4("opr_r");this.Gg=!0}wC(p,a,l,y){if(this.Xz){if(!this.Xz.has(p)){const S=new tUO(this);this.Xz.set(p,S);g.H(this,S)}this.Xz.get(p)?.wC(a,l,y);WX(this);l||(this.nO=y.E2)}else WX(this)}yn(p){this.R0=p;p.eO!=null&&this.Lz.vA(p.eO)}C4(p){this.a$= p}pE(p){p.videoId&&this.mR.set(p.videoId,p)}mQ(){if(this.Xz)for(const p of this.Xz.keys())this.Xz.get(p)?.Pt()}KE(p){this.DA=p}QO(p){if(p?.oU&&(p=p.oU.hO))for(const a of p)a.videoId&&this.ri.set(a.videoId,a)}Xu(p,a,l=!1){this.Lz.Xu(p,a,l)}Tw(p,a,l){this.Xz?.get(p)?.Tw(a,l)}NG(p){this.O_.set(p.videoId,p)}async fetch(){this.gR?this.OP.start():this.qy.start();this.a4("or_i");var p=this.Y.experiments.Cz("html5_onesie_verbose_timing")?this.a4.bind(this):()=>{}; p("oloc_ss");var a=Yq(this.videoData,this.wl);a||(p("oloc_sa"),a=g.ak(this.Y.experiments,"html5_onesie_redirector_timeout_ms"),a=await qpr(this.videoData,this.wl,a));if(!a)return this.fail(new g.cQ("onesie.unavailable.hotconfig",{url:"0"})),this.mC;this.LJ=tZ(35,a);p("oloc_e");var l=g.kw(this.Y,this.videoData.G()),y=!!l.L;l=y?await l.L:l.getValue();this.A("html5_log_onesie_empty_oauth")&&!l&&this.Xu("no_token",{async:y});y=W0e(this.playerRequest,this.Y,this.videoData,l,Cf(this.LJ));var S;try{this.Y.zy&& !y?.p6&&this.A("html5_wasm_onesie_request_encryption")&&(p("orqb_w"),(S=fkM(y,this.oY,this.Y,this.Lz,this.s6,this.Mr.onesieUstreamerConfig,this.videoData.XV?.rp,this.A("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0))&&this.Xu("orpqenc",{i:"w"})),S||(Zkq(this,y)?(p("orqb_a"),S=await Rj$(y,this.oY,this.Y,this.Lz,this.s6,this.Mr.onesieUstreamerConfig,this.videoData.XV?.rp,this.A("onesie_cdm_mosaic_send_audio_tracks_from_client")? this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0),this.Xu("orpqenc",{i:"a"})):(p("orqb_s"),S=Oxq(y,this.oY,this.Y,this.Lz,this.s6,this.Mr.onesieUstreamerConfig,this.videoData.XV?.rp,this.A("onesie_cdm_mosaic_send_audio_tracks_from_client")?this.playerRequest.playbackContext?.contentPlaybackContext?.compositeVideoContext?.defaultActiveSourceVideoId:void 0),this.Xu("orpqenc",{i:"j"})))}catch(n){return this.fail(n),this.mC}p("orqb_e"); this.enableCompression=S.innertubeRequest.IF;this.xJ=S?.hw?.Rl||0;this.a4("osor");p=uio();S={method:"POST",body:g.pf(S,P4M),headers:{"Content-Type":"text/plain",Referer:location.origin}};y=this.A("html5_onesie_media_capabilities");O8M(a,this.videoData,WUE(this),y);this.ST&&this.Xu("ombrs","1");this.y$=new y3(this,{s6:this.s6,zV:this.ST,An:(n,V)=>{this.Lz.yI(n,V)}, K8:!0});a.set("rn",`${this.y$.requestNumber}`);this.Bj=a.G9();J$(this.y$,this.Bj);this.a4("or_p");this.xhr=A_(new Ev(a),p,this.y$,ig,S);this.Bg.start();this.Lz.onPlayerRequestSent(this.videoData.videoId);return this.mC}y5(){return 2}gC(){this.a4("orh_r")}D7(){!this.FN&&this.xhr.N5()&&this.O7();this.lj&&!this.gR&&this.jB?.start();this.L8()}gp(p=!1){this.L8();if(!(this.nz()||this.state>=4)){var a=Rv(this),l=this.xhr;a.rc=l.status;p&&(a.ab=!0);if(l.yh()){var y="onesie.net";a.msg=l.yh()}else l.status>= 400?y="onesie.net.badstatus":l.sZ()?this.Gg||(y="onesie.response.noplayerresponse"):y=l.status===204?"onesie.net.nocontent":"onesie.net.connect";y?this.fail(new g.cQ(y,a)):(this.a4("or_fs"),this.y$.Ba((0,g.h)(),l.N5(),0),this.cZ(4),this.ST&&this.Xu("rqs",a));this.ST&&this.Xu("ombre",`ok.${+!y}`);this.sb=!1;WX(this);Zv(this.Ei);this.gR||(this.qy.stop(),this.jB?.stop());if(p=this.wl?.j())for(y=0;y1E3){this.y$?.NO((0,g.h)());const a=Rv(this);if(this.Y.Mc()&& this.xhr instanceof HhM){var p=this.xhr;a.xrs=p.xhr.readyState;a.xpb=p.L.totalLength;a.xdc=p.j}this.fail(new g.cQ("net.timeout",a))}}else(0,g.h)()-this.y$.L>1E4&&(this.y$?.NO((0,g.h)()),this.vP());this.isComplete()||this.OP.start()}}vP(){this.sb=!1;if(!WX(this)){var p=Rv(this);p.timeout="1";this.fail(new g.cQ("onesie.request",p))}}fail(p){p=XN(p);this.lj?this.Lz.d$(p):(this.mC.reject(p),this.lj=!0);Zv(this.Ei);this.gR||this.qy.stop();this.a4("or_fe");this.wl?.j()?.forEach(a=>{this.Xu("pathprobe", a)}); this.cZ(5);this.dispose()}isComplete(){return this.state>=3}Uh(){return this.state===4}Tg(p){return this.isComplete()||!!this.Xz?.get(p)?.U}L3(){return!1}bU(){return this.state===5}notifySubscribers(p){for(let a=0;a102400&&!this.N6&&(this.a4("or100k"),this.N6= !0);if(p.VR()){const a=p.rK(),l=a.totalLength;this.ST&&this.Xu("ombrss",`len.${l}`);this.KO.feed(a)}if(this.Xz)for(const a of this.Xz.keys())this.Xz.get(a)?.Pt(),this.notifySubscribers(a)}catch(p){this.fail(p)}}Bc(p){return!!this.Xz?.get(p)?.D()}kz(){return this.y$.requestNumber}Ud(p){return this.O_.get(p)}};var yiA=class extends g.YB{constructor(p,a,l,y,S,n,V,Z,z,d,G,B){super();this.Lz=p;this.loader=a;this.policy=l;this.audioTrack=y;this.videoTrack=S;this.r7=n;this.s6=V;this.iT=Z;this.U=z;this.timing=d;this.Sl=G;this.K=B;this.L=[];this.j={};this.ac=this.Tm=!1;this.N=this.Ic=this.zw=0;this.Ws={RF:0,k0:0};this.G=null;this.jl={WZ:[],kc:[]};this.w7={WZ:[],kc:[]};this.D=null;this.X=[];this.hg={Eyv:()=>this.L, ays:()=>this.j, TGu:()=>{this.L.length=0}, xEO:()=>this.videoData.Ps, oE9:()=>this.N, IFO:c=>{this.N=c}, o3m:c=>{this.Ws.k0=c}, yG:c=>{this.D=c}, f2:c=>{this.X=c}}; this.videoData=this.Lz.getVideoData();this.C=this.videoData.latencyClass==="LOW"?this.policy.KG:this.videoData.latencyClass==="ULTRALOW"?this.policy.n_:this.policy.NB;this.policy.ej&&(this.Bs=new g6$(this.loader,this.policy,this.s6),g.H(this,this.Bs))}Gd(p,a){this.UO=void 0;RBq(this);Ble(this,p,a)}PP(p){if(this.L.length===0)return!1;const a=this.L[0];return a instanceof $p?p===this.loader.getCurrentTime()*1E3:!(a instanceof GF&&a.info.L?.hw?.vx)&&Math.abs(a.W4()-p)<50}pE(p){this.S=p;this.UO=(0,g.h)()+ (p.backoffTimeMs||0)}pP(p,a){if(p.action===void 0)p=this.Lz.gM(),p!==void 0&&this.loader.Na(p);else if(p.action!==0||!this.ac)if(p.action===0&&this.policy.Jf&&(p.action=2),p.Li==="sabr.malformed_config"&&this.Ic++<3)this.loader.handleError("sabr.malformed_config",{action:p.action,rn:a,retry:this.Ic},0);else{p.Li==="sabr.malformed_config"&&(p.action=2);var l={};l.reason=p.Li;l.action=p.action;l.rn=a;switch(p.action){case 1:this.policy.S&&this.G&&this.G.cR(void 0,void 0,l);break;case 0:this.ac=!0;this.videoData.nh()&& this.policy.S&&this.G&&this.G.cR(void 0,void 0,l,!1);this.loader.Bv(l);break;case 2:UJf(p.Li)!=="sabr.config"&&delete l.reason;this.loader.handleError(UJf(p.Li),l,1);break;case 3:this.policy.E6&&(this.r7.UO?.Sl(),this.loader.handleError("sabr.hostfallback",l))}}}e_(p){p&&(this.loader.Xu("sabrctxt",{onsbrctxt:p.type,scp:p.scope,dflt:p.sendByDefault}),p.type&&p.sendByDefault&&this.videoData.Ps.add(p.type),p.scope!==2&&(p.type&&this.videoData.sabrContextUpdates.set(p.type,p),this.Lz.e_(p)))}My(){}KE(p, a){if(this.loader.OV)this.loader.Xu("sdai",{ignSabrSeek:1,smt:p?.NN,rn:a});else if(p.NN!==void 0&&p.L2){const l=p.NN/p.L2;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.N||this.policy.zy||this.policy.K9)this.loader.Hi.L=!1;const y=this.loader.P1(l,1);this.policy.Ic&&this.policy.S&&this.loader.dR(y,a);this.Lz.getCurrentTime()!==l&&(a={qE:"sabr_seek",Ks:!0,gZ:!0},p.seekSource&&(a.seekSource=p.seekSource),Ch(this.loader,l+.1,a))}}onSnackbarMessage(p){this.Lz.publish("onSnackbarMessage",p)}gN(p, a){this.policy.D&&!yqe(this.videoData)&&this.loader.gN(p,a)}yn(p){p.Mw&&p.eP&&Vx(this.r7,p.Mw,p.eP);this.policy.bQ&&(p.zP&&p.xs&&(this.r7.vk=p.zP/p.xs),p.I0&&p.K3&&(this.r7.HG=p.I0/p.K3));HG(this.videoData)&&!this.videoData.w7&&p.eP&&this.loader.P1(p.eP,1E3);p.eO!=null&&this.Lz.vA(p.eO);p.Er&&(p=((0,g.h)()-p.Er)/1E3,this.loader.uZ.xn(1,p))}dC(p){this.loader.dC(p)}vt(p){return this.videoData.Ps.has(p)}Tz(p,a,l){this.policy.U&&this.loader.Xu("sabrctxtplc",{start:p?p.join("_"):"",stop:a?a.join("_"): "",discard:l?l.join("_"):""});if(p)for(const y of p)this.videoData.Ps.add(y);if(a)for(const y of a)this.videoData.Ps.has(y)&&this.videoData.Ps.delete(y);if(l)for(const y of l)if(this.videoData.sabrContextUpdates.has(y)&&this.videoData.sabrContextUpdates.delete(y),this.policy.UO&&this.L.length)for(const S of this.L)S instanceof $p||S.Yd?.type!==y||(S.Yd=void 0)}Jq(){}yG(p){this.D=p}f2(p){this.X=p}IY(p,a){DR(this.policy,p,4,a)}QO(p){if(p?.oU&&(p=p.oU.hO))for(const a of p)a.formatId&&(p=this.r7.U.get(Sh(a.formatId)))&& p.info&&(p.info.debugInfo=a.debugInfo)}aY(p){this.Lz.publish("reloadplayer",p)}K1(){return this.Lz.K1()||""}Vk(){const {jq:p,CJ:a}=cpA(this);return Math.min(p,a)}eb(p,a){this.loader.Xu(p,a)}lI(p){yw(this.loader,TFv(this.iT,p))}Rc(){return{requestNumber:this.Hs?.kz()||-1,isDecorated:this.Hs?.info.isDecorated()}}fz(){super.fz();this.S=void 0;Ble(this,!0,"i");this.L=[]}};var SNF=class{constructor(p){this.Lz=p;this.L=new Map}},nfF=class{constructor(p,a,l,y){this.j=p;this.cpn=a;this.Lz=l;this.L=y;this.S=new Map;this.X=new Map;this.G=this.K=NaN;this.D=!1;this.Iv="";this.isSeeking=!1;this.N=0;this.U=new SNF(l);this.jD=l.jD;this.Lz.subscribe("statechange",this.Sl,this);this.Lz.subscribe("SEEK_TO",()=>{this.KP()}); this.Lz.subscribe("SEEK_COMPLETE",()=>{QNr(this)})}Sl(p){gd(p.state)&&JaZ(this.U)}UO(p){if(!this.isSeeking&&this.N!==p&&!isNaN(this.K)){this.N=p; var a=this.D?this.G:this.j.ov(p);(a!==this.G||this.D)&&R1E(this,a,p)}}clear(){Cfe(this.U);this.X.clear();this.S.clear();this.G=this.K=NaN;this.D=!1;this.Iv=""}C(p,a,l=0){if(p!==this.K||this.S.get(p)?.U!==a?.U)if(a?this.S.set(p,a):this.S.delete(p),!this.isSeeking){var y=this.j.getStartTime(p);this.K=p;SKr(this,p);var S=this.S.get(p-1)?.L??[this.cpn],n=S[S.length-1];if(a){let V=y;a.L.forEach((Z,z)=>{V=2&&!p.bU()&&p.info.wE===0&&(this.j=p,this.G=l,this.S=a.info,this.D=this.startTimeSecs=Date.now()/1E3,this.X=this.S.startTime)}return NaN}clear(){this.S=this.G=this.j=null;this.L=this.X=this.D= this.startTimeSecs=NaN;this.U=!1}};var V7r=class extends g.YB{constructor(){super();try{this.U=mxo(p=>{this.S=p.at(-1)}),this.X=this.U?.observe("cpu",{sampleInterval:2E3}).catch(p=>{p instanceof DOMException&&(this.L=p)})}catch(p){p instanceof DOMException&&(this.L=p)}}j(){const p={},a=window.h5vcc; p.hwConcurrency=navigator.hardwareConcurrency;this.L&&(p.cpe=this.L.message);this.S&&(p.cpt=this.S.time,p.cps=this.S.state);a?.cVal&&(p.cb2s=a.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),p.cb5s=a.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),p.cb30s=a.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30"));return p}fz(){mfr(this);super.fz()}};var vPo=/[?&]cpn=/;var ZSq=class extends g.YB{constructor(){super();this.maxBufferSize=this.sampleInterval=100;this.X=brM;this.encoder=new sD;this.L=[];this.U=0;jXr(this)}flush(){const p={};this.S&&(p.pe=this.S);this.L.length>0&&(p.pt=this.L.join("."));this.L=[];return p}async stop(){try{const p=await this.j?.stop();p&&this.logTrace(p)}catch(p){this.S=WlA(p.message)}}logTrace(p){this.encoder.reset();this.encoder.add(1);this.encoder.add(p.resources.length);for(var a of p.resources){const l=a.replace("https://www.youtube.com/s/", "");this.encoder.add(l.length);for(let y=0;y{let p="";try{const a=g.HA("CANVAS").getContext("webgl");a&&(a.getExtension("WEBGL_debug_renderer_info"),p=a.getParameter(37446),p=p.replace(/[ :]/g,"_"))}catch(a){}return p});g.Zo=class extends g.YB{constructor(p){super();this.provider=p;this.logger=new g.Xj("qoe");this.L=new Map;this.sequenceNumber=1;this.N=NaN;this.Ch="N";this.K=this.dj=this.wj=this.UO=this.U=0;this.dG=this.QY=this.D=this.Hs="";this.Ro=this.Bs=NaN;this.Ba=0;this.ZN=-1;this.Kx=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.NO=this.isEmbargoed=this.w7=this.isOffline=this.isBuffering=!1;this.Ye=[];this.C=null;this.VY=this.X=this.Ps=this.G=!1;this.j=-1;this.Ic=!1;this.zn=new g.SF(this.ir,750,this);this.ES= this.adCpn=this.jl=this.contentCpn="";this.adFormat=void 0;this.PZ=0;this.iT=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.OC=new Set(["gd","pw","gp","gm","da"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.Fu=!1;this.Ha=NaN;this.Ws=0;this.Lx=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.E6=!1;this.wq=new Set;this.hg={j0:l=>{this.j0(l)}, Vum:()=>this.S, X_:()=>this.contentCpn, u7z:()=>this.jl, reportStats:()=>{this.reportStats()}, Htl:()=>this.L.get("cat")||[], s8:l=>this.L.get(l)||[], sXO:()=>this.L, k99:()=>0, dEv:()=>({adCpn:this.adCpn,ES:this.ES,adFormat:this.adFormat})}; this.Sl=this.provider.Y.A("html5_qoe_relaxed_reporting");var a=g.ak(this.provider.Y.experiments,"html5_qoe_proto_mock_length");a&&!V3.length&&(V3=y8M(a));g.H(this,this.zn);try{navigator.getBattery?.().then(l=>{this.C=l})}catch{}g.vy(this,0,"vps",["N"]); p.Y.Mc()&&(this.Ws=(0,g.h)(),this.Ha=g.Bg(()=>{const l=(0,g.h)(),y=l-this.Ws;y>500&&this.Xu("vmlock",{diff:y.toFixed()});this.Ws=l},250)); this.provider.videoData.eR&&(this.remoteControlMode=g5O[this.provider.videoData.eR]||0);this.provider.videoData.zf&&(a=otA(this.provider.videoData.zf),a?.length&&(this.remoteConnectedDevices=a));p.Y.Mc()&&(this.Tm=new V7r,g.H(this,this.Tm));p.Y.webPlayerContextConfig?.enableSelfProfilingLogging&&(this.Rc=new ZSq,g.H(this,this.Rc))}ir(){const p=g.CX(this.provider);fe(this,p)}W2(){return this.uj}vI(){return{wj:this.wj,dj:this.dj}}aI(p,a){this.wj=p;this.dj=a}vA(p){if(!this.E6){this.E6=!0;var a="";switch(p){case 1:a= "proximaui";break;case 2:a=this.provider.videoData.g7.getWebPlayerContextConfig()?.enableProximaLowLatency?"proximawpcc":this.provider.videoData.A("html5_enable_proxima")||this.provider.videoData.A("html5_sabr_force_proxima")?"proximaexp":"proximaclient";break;case 3:a="proximaauto"}a!==""&&ej(this,a)}}sG(p,a,l,y){if(!this.wq.has(p)){this.wq.add(p);var S=g.CX(this.provider);g.vy(this,S,"lse",[p,a,l,y.toFixed(3)])}}Xa(p){Du(this,"lwc",[p.aM?p.aM.toFixed():"",p.M0?p.M0.toFixed():"",p.QY?(p.QY*1E3).toFixed(): "",p.Ha?(p.Ha*1E3).toFixed():"",p.Ba?(p.Ba*1E3).toFixed():""].join(":"))}reportStats(p=NaN){if(!this.nz()&&(p=p>=0?p:g.CX(this.provider),this.Sl?ofr.has(this.Ch)&&(this.L.size||(this.Ch==="PL"?p>=this.U+30:p<=this.UO+30||p>=this.U+1200&&p<=this.UO+86400))&&(g.vy(this,p,"vps",[this.Ch]),this.U=p):["PL","B","S"].indexOf(this.Ch)>-1&&(this.L.size||p>=this.U+30)&&(g.vy(this,p,"vps",[this.Ch]),this.U=p),this.L.size)){this.sequenceNumber===7E3&&g.tX(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>= 7E3)){I5(this,p);var a=this.provider.Lz.ZP();for(const {key:z,value:d}of a)this.Xu(z,d);a=p;var l=this.provider.Lz.uO();const S=l.droppedVideoFrames||0,n=l.totalVideoFrames||0,V=S-this.wj,Z=n&&!this.dj;S>l.totalVideoFrames||V>5E3?BOv(this,"html5.badframedropcount",`df.${S};tf.${l.totalVideoFrames}`):(V>0||Z)&&g.vy(this,a,"df",[V]);this.wj=S;this.dj=n;this.K>0&&(g.vy(this,p,"glf",[this.K]),this.K=0);iM.isActive()&&(p=iM.V0(),Object.keys(p).length>0&&this.Xu("profile",p));this.Lx&&ej(this,"lwnmow"); this.provider.Y.Mc()&&this.provider.A("html5_record_now")&&this.Xu("now",{wt:(0,g.h)()});p={};this.provider.videoData.S&&(p.fmt=this.provider.videoData.S.itag,(a=this.provider.videoData.j)&&a.itag!==p.fmt&&(p.afmt=a.itag));p.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(p.adcpn=this.adCpn);this.ES&&(p.addocid=this.ES);this.contentCpn&&(p.ccpn=this.contentCpn);this.jl&&(p.cdocid=this.jl);this.provider.videoData.cotn&&(p.cotn=this.provider.videoData.cotn);p.el=az(this.provider.videoData); p.content_v=Uv(this.provider.videoData);p.ns=this.provider.Y.UO;p.fexp=vgM(this.provider.Y.experiments).toString();p.cl=(810467872).toString();(a=this.provider.videoData.adFormat||this.adFormat)&&(p.adformat=a);(a=ht(this.provider.videoData))&&(p.live=a);this.provider.videoData.FF()&&(p.drm=1,this.provider.videoData.X&&(p.drm_system=y7Z[this.provider.videoData.X.flavor]||0),this.provider.videoData.drmProduct&&(p.drm_product=this.provider.videoData.drmProduct));PB()&&this.provider.videoData.D&&(p.ctt= this.provider.videoData.D,p.cttype=this.provider.videoData.kT,this.provider.videoData.mdxEnvironment&&(p.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(p.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Y9&&(p.dai_fallback="1")):this.provider.videoData.ME?p.dai="cs":this.provider.videoData.G3&&(p.dai="disabled");p.seq=this.sequenceNumber++;if(this.provider.videoData.Ax){if(a=this.provider.videoData.Ax,p&&a){a.ns=== "3pp"&&(p.ns="3pp");this.OC.has(a.ns)&&ej(this,"hbps");a.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=a.shbpslc);this.provider.Y.experiments.Cz("html5_use_server_qoe_el_value")&&this.iT.delete("el");for(y of Object.keys(a))this.iT.has(y)||(p[y]=a[y])}}else p.event="streamingstats",p.docid=this.provider.videoData.videoId,p.ei=this.provider.videoData.eventId;this.isEmbargoed&&(p.embargoed="1");var y=p;Object.assign(y,this.provider.Y.L);if(p=y.seq)p={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+p,serializedWatchEndpointLoggingContext:this.provider.videoData.PU},this.serializedHouseBrandPlayerServiceLoggingContext&&(p.serializedHouseBrandPlayerServiceLoggingContext=R1(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(p.playerResponseCpn=this.provider.videoData.playerResponseCpn),V3.length&&(p.decoderInfo=V3),this.remoteControlMode&&(p.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(p.remoteConnectedDevices= this.remoteConnectedDevices),p=g.pf(p,Dbo),p=g.dW(p,4),this.L.set("qclc",[p]);y=g.Re("//"+this.provider.Y.MJ+"/api/stats/qoe",y);a=p="";for(const [z,d]of this.L.entries())l=d,l?.join&&(l=`&${z}=${l.join(",")}`,l.length>100?a+=l:p+=l);Z7$(this,y+p,a.replace(/ /g,"%20"))}this.L.clear()}}Gc(p){this.Lx=p}tP(){if(this.provider.videoData.X){var p=this.provider.videoData.X;ej(this,`eme-${p.keySystemAccess?"final":L5(p)?"ms":lf(p)?"ytfp":At(p)?"safarifp":"nonfinal"}`)}}CC(p){this.isEmbargoed=p}onPlaybackRateChange(p){const a= g.CX(this.provider);p&&p!==this.Kx&&(g.vy(this,a,"rate",[p]),this.Kx=p);this.Sl||this.reportStats(a)}getPlayerState(p){if(p.L(128))return"ER";if(p.L(2048))return"B";if(p.L(512))return"SU";if(p.L(16)||p.L(32))return"S";if(p.isOrWillBePlaying()&&p.L(64))return"B";let a=ztF[U9(p)];g.ur(this.provider.Y)&&a==="B"&&this.provider.Lz.getVisibilityState()===3&&(a="SU");a==="B"&&p.L(4)&&(a="PB");return a}Eb(p){const a=g.CX(this.provider);g.vy(this,a,"vfi",[p===0?"":`${p}`,p===0?"A":"M"])}ac(p,a){const l=g.CX(this.provider); g.vy(this,l,"vfi",[p==="A"?"":`${a??0}`,p])}fz(){super.fz();g.ix(this.N);g.ix(this.Ha)}j0(p){this.isOffline=p;g.vy(this,g.CX(this.provider),"is_offline",[this.isOffline?"1":"0"])}Xu(p,a,l){const y=this.Ye.indexOf(p)!==-1;y||this.Ye.push(p);if(!l||!y){a=typeof a!=="string"?ki(a):a;a=hh(a);if(!l&&!/^t[.]/.test(a)){var S=g.CX(this.provider)*1E3;a=`t.${S.toFixed()};${a}`}Du(this,"ctmp",`${p}:${a}`);v7(this);return S}}lS(p,a,l){this.S={zS:Number(this.Xu("glrem",{nst:p.toFixed(),rem:a.toFixed(),ca:+l})), NU:p,Mx:a,isAd:l}}tJ(p,a,l){g.vy(this,g.CX(this.provider),"ad_playback",[p,a,l])}Do(p,a){const l=g.CX(this.provider)*1E3;Du(this,"daism",`t.${l.toFixed(0)};smw.${(p*1E3).toFixed(0)};smo.${(a*1E3).toFixed(0)}`)}resume(){isNaN(this.N)?Hwq(this):this.N=g.Bg(()=>{this.reportStats()},1E4)}}; g.Zo.prototype.RQ=Gl(53);g.Zo.prototype.Pl=Gl(36);g.Zo.prototype.xg=Gl(30);g.Zo.prototype.U2=Gl(24);var ztF={[5]:"N",[-1]:"N",[3]:"B",[0]:"EN",[2]:"PA",[1]:"PL",[-1E3]:"ER",[1E3]:"N"},ofr=new Set(["PL","B","S"]),V3=[];g.VP=class extends g.YB{constructor(p,a,l,y,S,n,V,Z=!1,z,d){super();this.Lz=p;this.schedule=a;this.policy=l;this.r7=y;this.N=z;this.OC=d;this.Bs=this.Kz=null;this.ac=this.Ic=this.Rc=this.jl=0;this.RK=this.Ji=this.isSuspended=!1;this.VY="";this.Wy={};this.E6=NaN;this.Lx=0;this.K=null;this.dG=this.Hs=!1;this.E7=0;this.NO=!1;this.QY=this.Fu=0;this.ZN=null;this.OV=!1;this.fO=()=>this.Lz.fO(); this.timing=new j6F(this.OC);this.C=new Kio(this.schedule,this.policy);this.Ro=new g.SF(this.JN,0,this);this.Ba=new g.SF(this.JN,this.policy.Kx,this);this.To=new g.SF(this.JN,1E3,this);this.ir=new g.SF(this.JN,void 0,this);this.Ps=new g.SF(()=>{this.isSuspended||this.JN()},1E4,this); this.wq=new g.SF(this.L1,250,this);this.D=this.currentTime=NaN;this.uZ=new N0(5);this.Ws=this.timestampOffset=NaN;this.logger=new g.Xj("dash");this.tP=Infinity;this.hg={kRT:()=>this.Hi, GRc:()=>this.U, getAudioTrack:()=>this.audioTrack, HhO:()=>this.videoTrack, rPu:()=>this.Sl, getManifest:()=>this.r7, gyV:()=>this.S, JN:()=>{this.JN()}, eF:()=>{this.jl=0;this.eF()}, g3l:G=>Gt(this,this.videoTrack,this.Kz.S,G)}; p=z&&z.Az();z&&(HHq(z,this.r7,this.policy),this.Ws=Date.now());this.L=new iQh(this,this.C,l,this.r7,S,p);l=PUZ(this.L,n,V&&V.id);this.audioTrack=new hvv(this,this.policy,l.audio,this.timing);this.videoTrack=new hvv(this,this.policy,l.video,this.timing);this.videoTrack.j.jl=this.audioTrack.LQ();this.iT={updateend:this.bf,error:this.Me};g.H(this,this.Ro);g.H(this,this.Ba);g.H(this,this.To);g.H(this,this.ir);g.H(this,this.Ps);l=this.policy.Mu&&this.policy.S8?!bGr(this.videoTrack.L.info):!1;this.zn=o0Z({Us:this.policy.K.Us|| l,S8:this.policy.S8&&!l,PO:this.policy.PO});this.G=Pho(this,this.policy,this.zn,this.schedule,this.uZ,(G,B)=>A8$(this,G,B)); this.U=new WiE(this,this.r7,this.policy,this.videoTrack,this.audioTrack,Z);this.policy.Ic&&this.policy.S&&(this.Sl=new HQM(this.policy.D,(G,B)=>{this.Xu(G,B)})); this.Hi=new bQf(this,this.r7,this.videoTrack,this.audioTrack,this.policy);Z=this.policy.lJ?this.Lz.getVideoData().J3:null;this.X=new YJq(this,this.policy,this.videoTrack,this.audioTrack,this.Wy,this.U,this.timing,this.C,this.schedule,this.r7,this.L,this.G,l,Z);g.H(this,this.X);this.j=new qJh(this,this.policy,this.videoTrack,this.audioTrack,this.r7,S,nz(this.Lz.getVideoData()),V?.id);g.H(this,this.j);jAr(this.j,n);this.S=new yiA(this.Lz,this,this.policy,this.audioTrack,this.videoTrack,this.r7,this.schedule, this.L,this.j,this.timing,this.U,this.Sl);g.H(this,this.S);this.UO=this.Lz.TR.SK.X4;this.policy.X||QLZ(this);this.policy.dG&&(this.Tm=new nfF(this.videoTrack.L.index,this.Lz.getVideoData().clientPlaybackNonce??"",this.Lz,this.policy.Ps),this.policy.Ps===3&&(this.Ha=new g.SF(this.tN,200,this),this.Ha.start(),g.H(this,this.Ha)))}initialize(p,a,l){p=p||0;this.policy.L||(a=MyF(this.L),ql(this.Lz,new VL(a.video,a.reason)),this.Lz.X5(new VL(a.audio,a.reason)));this.policy.L&&dX(this);this.r7.isManifestless&& jtf(this.X);this.G&&L7Z(this.G,this.videoTrack.L);a=isNaN(this.getCurrentTime())?0:this.getCurrentTime();let y=!this.r7.isManifestless;this.policy.Av&&(y=y||this.r7.IX);if(!this.policy.Ws||this.policy.Ha)this.currentTime=y?p:a;this.policy.N&&this.seek(this.getCurrentTime(),{}).Lo(()=>{}); this.policy.L?this.UO?.Bc(this.K1()||"")&&$4f(this)&&xV(this,this.videoTrack)&&xV(this,this.audioTrack)&&(aAM(this.S,this.UO),this.policy.X&&QLZ(this)):this.N&&(iVh(this,this.videoTrack),iVh(this,this.audioTrack),okh(this.N),delete this.N);l?(this.w7(!1),this.To.JP()):(p=this.getCurrentTime()===0,dB(this.X,this.videoTrack,this.videoTrack.L,p),dB(this.X,this.audioTrack,this.audioTrack.L,p),this.policy.L&&uZq(this.S,!0),this.policy.N||this.seek(this.getCurrentTime(),{}).Lo(()=>{}),this.timing.tick("gv")); (this.r7.aM||this.r7.M0||this.r7.QY||this.r7.Ha||this.r7.Ba)&&this.Lz.Xa(this.r7)}w7(p){this.Ji=p;this.policy.w7||(this.isSuspended=!0,this.policy.hH&&(this.To.stop(),this.Ba.stop(),this.Ro.stop()),this.Ps.stop())}resume(){if(this.isSuspended||this.RK){this.Ji=this.RK=this.isSuspended=!1;try{this.JN()}catch(p){g.MD(p)}}}Rn(){return!this.policy.OC}Ky(p=!1,a=!1){NTA(this);this.Lz.Gp()&&(this.D=NaN);p?(this.policy.QY&&this.Xu("loader",{setsmb:1}),this.policy.w7=!0,this.C0()):(this.w7(!1),a||this.C0())}setAudioTrack(p, a,l=!1){if(!this.nz()){var y=!isNaN(a);l&&y&&(this.audioTrack.N=Date.now(),this.policy.g$&&(this.NO=!0));l=this.Lz.Gp()&&!this.Lz.getVideoData().UO;if(this.policy.L){var S=this.j.U5(p.id,y);this.Lz.X5(S)}else S=this.L,S.S=S.r7.L[p.id],S.G=S.S,S=new c6(S.G,S.U,y?"t":"m"),this.Lz.X5(new VL(S.audio,S.reason));y?(this.E6=Date.now(),y=this.audioTrack.L.index.ov(a),this.Xu("setAudio",{id:p.id,cmt:a,sq:y}),y>=0&&(p=this.policy.j1?y+1:y,this.policy.L&&this.Gd(!0,"mosaic"),iR(this.audioTrack,p,NaN,NaN),!this.policy.Wy&& this.r7.isLive&&bY(this.r7,p,!1))):l||this.Lz.lW()}}setPlaybackRate(p){p!==this.C.getPlaybackRate()&&this.C.setPlaybackRate(p)}MI(p){const a=this.S.D;this.S.yG(p);this.Xu("scfidc",{curr:Sh(a),"new":Sh(p)});p&&Sh(p)!==Sh(a)&&(this.Gd(!0,"caption change"),this.bW())}aN(p){this.S.f2(p)}Ca(p){p.L.info.Bi()?this.Lz.X5(p):ql(this.Lz,p)}lI(p){af(p.Yv[p.Yv.length-1])&&yw(this,TFv(this.L,p.Yv[0].L))}C8(){return this.Lz.C8()}AA(){return this.Lz.AA()}dC(p){this.Lz.O().Mc()&&this.Xu("sps",{status:p.hD||""}); if(p.hD===1)this.Lz.videoData.MF=0;else if(p.hD===2||p.hD===3){var a=!1;p.hD===3&&(a=this.Lz.Gj(),this.tP=p.aO??Infinity,this.Lz.videoData.MF=a+1,(a=Pv(this))&&this.zx(!0));this.Lz.wu(!0,a)}}SP(){return this.Lz.SP()}iN(){return this.Lz.iN()}Wj(p){this.Lz.Wj(p)}bW(){this.JN()}L1(){const p=this.Lz.mB()?.getCurrentTime();p?this.Lz.Xu("rms",{cta:p}):this.wq.JP()}JN(){as(this);if(this.Kz&&uD(this.Kz)&&!this.Kz.QP()&&(!this.policy.Ws||isFinite(this.getCurrentTime()))){var p=gt(this.videoTrack);p=this.policy.fp&& p&&p.G();this.r7.isManifestless&&this.r7.X&&ds(this.r7)?(this.D=ds(this.r7),this.Kz.aQ(this.D)):K1(this.r7)&&!p?isNaN(this.D)?(this.D=this.getCurrentTime()+3600,this.Kz.aQ(this.D)):this.D<=this.getCurrentTime()+1800&&(this.D=Math.max(this.D+1800,this.getCurrentTime()+3600),this.Kz.aQ(this.D)):this.Kz.isView||(p=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),(!isFinite(this.D)||this.D!==p)&&p>0&&(this.Kz.aQ(p),this.D=p))}if(!this.nz())if(bj(this.r7)&&this.r7.bU()){var a=this.r7; this.handleError("manifest.net.retryexhausted",a.VY?{rc:a.a9}:{rc:a.a9.toString()},1)}else if(this.policy.L)a:{try{if(wJ(this.S),this.r7.isManifestless&&this.policy.X&&xD(this.Hi),this.Kz?.D()&&this.eF(),uZq(this.S),this.Bs){var l=this.Bs;l.S.Zc>=0&&l.L===null&&l.a4("ismp_a")}}catch(n){g.tX(n);if(n.message.includes("changeType")){this.Xu("ctype",{exp:n.name,msg:n.message,s:n.stack});break a}this.handleError("fmt.unplayable",{exp:n.name,msg:n.message,s:n.stack,trg:"sabrslicerqt"},1)}ixv(this);this.Ps.JP()}else if(!this.r7.S|| !azr(this.videoTrack)&&!azr(this.audioTrack)||(this.videoTrack.X||this.audioTrack.X)&&this.policy.NO?l=!1:(this.C0(),this.Lz.seekTo(Infinity,{qE:"checkLoaderTracksSync",P1:!0}),l=!0),!l){as(this);this.r7.isManifestless&&(RsF(this.videoTrack),RsF(this.audioTrack),xD(this.Hi),(l=b6(this.videoTrack))&&l.L&&(l=l.L.j&&!this.policy.S8,this.Xu(l===this.policy.K.Us?"strm":"strmbug",{strm:l,sfmp4:this.policy.K.Us,dfs:this.policy.S8},!0)));if(this.Kz)this.eF();else if(this.policy.j){var y;l=!1;if(this.policy.vN)for(var S of[this.videoTrack, this.audioTrack]){for(p=b6(S);p&&S.JD()!==gt(S);p=b6(S))S.JJ(p);l=l||!!p}else(a=b6(this.videoTrack))&&this.videoTrack.JJ(a),(y=b6(this.audioTrack))&&this.audioTrack.JJ(y);R9(this.videoTrack)&&R9(this.audioTrack)||(a||y||l)&&dJ(this)}I$(this);dB(this.X,this.videoTrack,this.videoTrack.L,!1);dB(this.X,this.audioTrack,this.audioTrack.L,!1);if(!this.policy.o_&&(a=this.videoTrack,l=this.audioTrack,(!this.Kz||uD(this.Kz)&&!this.policy.MJ)&&!this.Hi.isSeeking()&&(this.policy.L||N3(a)&&a.L.L()&&this.L.UO)))a:{if(y= this.getCurrentTime(),S=this.C,p=HX(S,a.L.info.Sb,l.L.info.Sb,0),l=XF(S.s6)+p/B5(S.s6),y+=Math.max(l,l+S.policy.kC-p/a.L.info.Sb),a.U.length){if(a.U[0].info.Yv[0].startTime<=y)break a;FU(a)}S=a.j;for(l=S.S.length-1;l>=0;l--)S.S[l].info.startTime>y&&S.S.pop();Geh(a);a.S&&y5&&p.UO.shift();a=a.Gm;this.Lz.getVideoData()?.enableServerStitchedDai&&(l=nje(this.audioTrack,a),p=nje(this.videoTrack,a),l!==0&&p!==0&&l!==p&&this.handleError("ssdai.avsync",{sq:a,a:l,v:p},0))}}Np(p, a,l,y){p.info.video&&this.U.Np(a,l,y)}F1(p){this.L.F1(p)}tN(){if(this.Lz.getPlayerState().L(8)){const p=this.Lz.mB()?.getCurrentTime()??this.Lz.getCurrentTime();this.Tm?.UO(p)}this.Ha?.JP()}Cw(){return this.videoTrack.G||this.audioTrack.G}seek(p,a){if(this.nz())return l3();if(this.Cw())return l3("seeking to head");if(this.policy.N&&!isFinite(p))return DGr(this.Hi),g.R2(Infinity);as(this);dX(this);this.policy.L||I$(this,p);this.Kz&&this.Kz.L&&this.Kz.S&&!this.Lz.getVideoData().JA&&(this.Kz.L.isLocked()|| this.Kz.S.isLocked())&&this.Lz.lW({reattachOnLockedBuffer:1,vsb:`${this.Kz.S.isLocked()}`,asb:`${this.Kz.L.isLocked()}`});const l=this.getCurrentTime(),y=this.Hi.seek(p,a);if(!this.policy.Ws||this.policy.Ha)this.currentTime=y;L2(this.U,p,l,this.policy.cA&&!a.Ks);dJ(this);return g.R2(y)}PP(p){return this.policy.L&&this.S.PP(p)}vt(p){return this.S.vt(p)}Gd(p,a){this.S.Gd(p,a)}getCurrentTime(){if(this.policy.Ws){const p=this.oo()||0;return this.Lz.getCurrentTime(!0)-p}return this.currentTime}Kx(){return this.currentTime}xm(){return this.audioTrack.L.info}fE(){return this.videoTrack.L.info}PR(){return this.audioTrack.L.info.mT}V7(){return this.videoTrack.L.info.mT}fz(){try{this.Ky(), FU(this.audioTrack),FU(this.videoTrack),nY(this.audioTrack),nY(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),super.fz()}catch(p){g.MD(p)}}handleError(p,a,l=0){const y=xW(l);p==="fmt.unplayable"&&this.r7.isLive&&(this.policy.PO=!1,j0(this.r7));a=new g.cQ(p,a,l);g.Oz(this);ki(a.details);this.Lz.handleError(a);p!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&p!=="fmt.unparseable"&&y&&this.dispose()}mS(){var p=gt(this.audioTrack);const a=gt(this.videoTrack);p={lct:this.getCurrentTime().toFixed(3), lsk:this.Hi.isSeeking(),lmf:this.L.L.isLocked(),lbw:MP(this.schedule).toFixed(3),lhd:XF(this.schedule).toFixed(3),lst:((this.schedule.G.Pi()||0)*1E9).toFixed(3),laa:p?p.HZ():"",lva:a?a.HZ():"",lar:this.audioTrack.S?this.audioTrack.S.HZ():"",lvr:this.videoTrack.S?this.videoTrack.S.HZ():"",laq:`${Ti(this.audioTrack)}`,lvq:`${Ti(this.videoTrack)}`};this.Kz&&!this.Kz.Cv()&&this.Kz.L&&this.Kz.S&&(p.lab=Bt(this.Kz.L.gP()),p.lvb=Bt(this.Kz.S.gP()));this.jl&&(p.lapt=((0,g.h)()-this.jl).toFixed(0),p.lapr= Vh$(this));this.Rc&&(p.lapmabht=((0,g.h)()-this.Rc).toFixed(0),p.lapmabh=fu(this,this.audioTrack).toFixed(0));this.Ic&&(p.lapmvbht=((0,g.h)()-this.Ic).toFixed(0),p.lapmvbh=fu(this,this.videoTrack).toFixed(0));this.ac&&(p.lapsdai=((0,g.h)()-this.ac).toFixed(0));return p}PZ(){return this.L.L}C0(){try{this.policy.L&&this.S.Gd(!1,"pending"),this.audioTrack.C0(),this.videoTrack.C0()}catch(p){g.MD(p)}this.policy.j=""}oS(){return c5(this.C)}Xu(p,a,l=!1){this.Lz.Xu(p,a,l)}K1(){return this.Lz.K1()}P1(p,a){p/= a;isNaN(this.timestampOffset)&&WV(this,p-Math.min(p,this.policy.yc));return(p-this.timestampOffset)*a}oo(){return this.timestampOffset}isSeeking(){return this.Hi.isSeeking()}BH(){this.U.BH()}n9(p,a=!1,l={}){this.policy.L?this.j.n9(p,a,l):this.L.n9(p,a,l)}r$(){this.policy.S&&this.OV&&(this.Xu("sdai",{skipAdSked:"1"}),this.OV=!1)}Q9(p,a){if(this.policy.S&&(this.OV||this.isSeeking()))return this.Xu("sdai",{ignoreSkip:"1",isSkip:this.OV,isSeek:this.isSeeking(),t:p.toFixed(3)}),!1;const l=this.policy.S&& (this.policy.D||this.policy.Ic),y=this.videoTrack.L.index.ov(p);let S=!1;l?S=!!this.Sl?.i4(p,y,this.timestampOffset):this.K&&(S=!!this.U.Q9(p,this.K));if(!S)return this.handleError("ad.skipfailed",{dec:!!this.K,t:p.toFixed(3),sq:y}),!1;this.policy.S&&(this.Xu("sdai",{skipAdStd:"1"}),this.OV=!0);this.policy.dG&&this.Tm?.clear();WV(this,this.timestampOffset-a);dJ(this);this.policy.S&&(j0(this.r7),nY(this.audioTrack),nY(this.videoTrack),this.C0());return!0}DF(){WV(this,this.timestampOffset-1E3);var p= this.r7;const a=new Set;for(const y in p.L){const S=p.L[y].index;var l=S.wM();l&&!a.has(l)&&(l.startTime+=1E3,l.endTime=l.startTime+l.duration,a.add(l));S.segments.length&&(l=S.segments[S.segments.length-1],S.segments=[],S.segments.push(l))}this.K&&this.K.AQ();this.policy.Ic&&this.policy.S&&this.Sl?.AQ();L2(this.U,0,0,!0);this.OV=!1}getManifest(){return this.r7}isOffline(){return!!this.Lz.getVideoData().cotn}yI(p,a){this.Lz.yI(p,a)}u4(p){if(this.policy.L)this.S.Gd(!0,"utc"),this.bW();else{var a=this.Lz.getVideoData().J3; if(a){var l=this.X;l.Cq=p;l.J3=a;Kc(this)}}}Na(p){this.videoTrack.G=!1;this.audioTrack.G=!1;this.Hi.L=!1;this.Lz.Na(p)}dH(p){this.Hi.dH(p-this.oo())}kA(){this.Lz.kA()}zx(p){p!==this.policy.UY&&((this.policy.UY=p)||this.JN())}lW(p){this.Lz.lW(p)}Gc(p){this.Lz.Gc(p)}cO(p,a,l){this.Sl?.cO(p,a,l);this.policy.D&&(this.S.UO=void 0,this.JN())}dR(p,a){this.Sl?.dR(p,a)}Gj(){return this.Lz.Gj()}gN(p,a){if(this.policy.D){const l=p.rz?.[0];this.Xu("clidai",{onqlst:1,len:p.rz?.length||0,rn:a,evt:NEv(l?.S5?.event), cid:l?.S5?.identifier||"null",sq:l?.E2||-1,trk:l?.trackType||"null"});this.Sl?.gN(p,a,this.K||void 0)}}g$(p){this.Tm?.jl(p)}prefetchKeyPlay(p,a){if(this.policy.lQ||this.policy.s1)this.Bs||(this.Bs=new TLM(l=>{this.Lz.a4(l)}),g.H(this,this.Bs)),Djh(this.Bs,{Zc:p, JZ:a,B1:2}),this.JN()}};g.VP.prototype.RU=Gl(12);g.Zh=class{constructor(p){this.I4=p}Cy(p,a,l,y,S,n){return this.I4.Cy(p,a,l,y,S,n)}us(p,a,l,y,S,n){return this.I4.us(p,a,l,y,S,n)}eY(p){return this.I4.eY(p)}aE(p){this.I4.aE(p)}cR(p,a,l,y){return this.I4.cR(p,a,l,y)}BH(){this.I4.BH()}i4(p,a){this.I4.i4(p,a)}AQ(){this.I4.AQ()}vW(p,a,l){this.I4.vW(p,a,l)}YZ(p,a,l,y,S,n,V,Z,z){this.I4.YZ(p,a,l,y,S,n,V,Z,z)}WY(p){this.I4.WY(p)}MR(p){return this.I4.MR(p)}WP(p){return this.I4.WP(p)}DP(p){return this.I4.DP(p)}};g.Zh.prototype.x0=Gl(59); g.Zh.prototype.ya=Gl(56);var dqA=class extends g.js{};var GnM=class extends dqA{constructor(p,a,l,y){super();this.U=-1;this.L={};this.j=new g.SF(this.X,0,this);g.H(this,this.j);this.S=new g.SF(()=>{this.nz()||(this.j.start(Math.random()*l),this.S.start(a))},p,this); g.H(this,this.S);y.subscribe("fairplay_next_need_key_info",this.D,this)}D(p,a){if(p&&a){var l=Number(Gg(p,"cpi"))*1+1;isNaN(l)||l<=0||lthis.U&&(this.U=l,g.P6(this.L)||(this.L={},this.j.stop(),this.S.stop())),this.L[a]=p,this.S.JP())}}X(){for(const S of Object.keys(this.L)){var p=this.publish,a=this.U,l=g.hq(this.L[S]),y=l[6];const n=[];for(const V of y.split("&"))V.indexOf("cpi=")===0?n.push("cpi="+a.toString()):V.indexOf("ek=")===0?n.push("ek="+ g.qj(S)):n.push(V);l[6]="?"+n.join("&");a="skd://"+l.slice(2).join("");y=a.length*2;l=new Uint8Array(y+4);l[0]=y%256;l[1]=(y-l[0])/256;for(y=0;y{this.publish("log_qoe",{wvagt:"timer",reqlen:this.L?this.L.length:-1});if(this.L){if(this.L.length>0){var l=this.L.shift();YSq(this,l.info)}this.L.length>0&&(l=this.L[0].time-(0,g.h)(),this.S.start(Math.max(0,l)))}},0); g.H(this,this.S);a.subscribe("widevine_set_need_key_info",this.j,this)}j(p){var a;a:{if((a=p.cryptoPeriodIndex)&&this.L.length>0)for(var l of this.L)if(a===l.info.cryptoPeriodIndex){a=!0;break a}a=!1}if(!a){a=(0,g.h)();a:{l=p.cryptoPeriodIndex;if(!isNaN(l))for(y of this.U.values())if(Math.abs(y.cryptoPeriodIndex-l)<=1){var y=!0;break a}y=!1}y?(y=p.L,y=Math.max(0,Math.random()*((isNaN(y)?120:y)-30))*1E3):y=0;this.publish("log_qoe",{wvagt:`delay.${y}`,cpi:p.cryptoPeriodIndex,reqlen:this.L.length}); y<=0?YSq(this,p):(this.L.push({time:a+y,info:p}),this.S.JP(y))}}fz(){this.L=[];super.fz()}};var Hxv=class{constructor(){({url:l,interval:a,retries:p}={});var p,a,l;this.url=l;this.interval=a;this.retries=p}};var hHr=class{constructor(p,a){this.statusCode=p;this.message=a;this.S=this.heartbeatParams=this.errorMessage=null;this.L={};this.nextFairplayKeyId=null}},A$f={DRM_TRACK_TYPE_AUDIO:"AUDIO",DRM_TRACK_TYPE_SD:"SD",DRM_TRACK_TYPE_HD:"HD",DRM_TRACK_TYPE_UHD1:"UHD1"};var KJF=class extends g.YB{constructor(p,a,l=""){super();this.message=p;this.requestNumber=a;this.timer=l;this.onError=this.onSuccess=null;this.L=new g.Qk(5E3,2E4,.2)}};var ci$=class extends g.js{constructor(p,a,l,y){super();this.videoData=p;this.Y=a;this.K=l;this.sessionId=y;this.X={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.UO=this.N=!1;this.U=null;this.Sl=[];this.j=[];this.authorizedFormats=[];this.G=!1;this.L={};this.status="";this.D=NaN;this.S=p.X;this.cryptoPeriodIndex=l.cryptoPeriodIndex;p={};Object.assign(p,this.Y.L);p.cpn=this.videoData.clientPlaybackNonce;this.videoData.Bs&&(p.vvt=this.videoData.Bs,this.videoData.mdxEnvironment&& (p.mdx_environment=this.videoData.mdxEnvironment));this.Y.Sl&&(p.authuser=this.Y.Sl);this.Y.pageId&&(p.pageid=this.Y.pageId);isNaN(this.cryptoPeriodIndex)||(p.cpi=this.cryptoPeriodIndex.toString());var S=(S=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Vo()))?S[1]:"";S==="ATV"&&(p.cdt=S);this.X=p;this.X.session_id=y;this.C=!0;this.S.flavor==="widevine"&&(this.X.hdr="1");this.S.flavor==="playready"&&(a=Number(pm(a.experiments,"playready_first_play_expiration")),!isNaN(a)&&a>=0&&(this.X.mfpe=`${a}`),this.C= !1);a="";g.qb(this.S)?this.S.L()?(y=l.S)&&(a="https://www.youtube.com/api/drm/fps?ek="+c3O(y)):(a=l.initData.subarray(4),a=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),a=String.fromCharCode.apply(null,a).replace("skd://","https://")):a=this.S.U;this.baseUrl=a;this.fairplayKeyId=Gg(this.baseUrl,"ek")||"";if(a=Gg(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(a);this.Sl=l.bC?[g.dW(l.initData,4)]:l.U;QY(this,{sessioninit:l.cryptoPeriodIndex});this.status="in"}rX(p){if(!(this.nz()||p.size<= 0)){var a={};p.forEach((l,y)=>{const S=u8(this.S)?y:l;y=new Uint8Array(u8(this.S)?l:y);u8(this.S)&&PdE(y);l=g.dW(y,4);PdE(y);y=g.dW(y,4);this.L[l]?this.L[l].status=S:this.L[y]?this.L[y].status=S:this.L[l]={type:"",status:S};rVM(this,this.L[l].type,a)}); qZA(this,",");QY(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}error(p,a,l,y){this.nz()||(this.publish("licenseerror",p,a,l,y),p==="drm.provision"&&(p=(Date.now()-this.D)/1E3,this.D=NaN,this.publish("ctmp","provf",{et:p.toFixed(3)})));xW(a)&&this.dispose()}shouldRetry(p,a){return!p&&this.requestNumber===a.requestNumber}fz(){this.L={};super.fz()}mS(){const p={ctype:this.K.contentType||"",length:this.K.initData.length,requestedKeyIds:this.Sl,cryptoPeriodIndex:this.cryptoPeriodIndex}; this.U&&(p.keyStatuses=this.L);return p}getInfo(){let p=this.j.join();if(du(this)){const a=new Set;for(const l in this.L)this.L[l].status!=="usable"&&a.add(this.L[l].type);p+=`/UKS.${Array.from(a)}`}return p+=`/${this.cryptoPeriodIndex}`}G9(){return this.url}};var IN=class extends g.YB{constructor(p,a,l,y,S,n=!1){super();this.element=p;this.K=a;this.initData=l;this.L=y;this.S=S;this.Sl=n;this.sessionId="";this.G=this.D=this.U=this.X=null;this.j=new g.yr(this);g.H(this,this.j);iYE(this)}jl(p){if(this.X){var a=p.messageType||"license-request";this.X(new Uint8Array(p.message),a)}}rX(){this.G&&this.G(this.L.keyStatuses)}onClosed(){this.nz()||g.IW("xboxone")&&this.U&&this.U("closedShouldNotRetry")}N(p){this.X&&this.X(p.message,"license-request")}UO(p){if(this.U){if(this.S){var a= this.S.error.code;p=this.S.error.systemCode}else a=p.errorCode,p=p.systemCode;this.U(`t.prefixedKeyError;c.${a};sc.${p}`,a,p)}}C(){this.D&&this.D()}update(p){if(this.L)return this.L.update(p).then(null,GS(a=>{K0v(this,"t.update",a)})); this.S?this.S.update(p):this.element.addKey?this.element.addKey(this.K.keySystem,p,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.K.keySystem,p,this.initData,this.sessionId);return oW()}fz(){this.L&&(this.Sl?this.L.close().catch(g.tX):this.L.close());this.element=null;super.fz()}};var riq=class extends g.YB{constructor(p,a,l=!1){super();this.element=p;this.L=a;this.G=l;this.D={};this.j=null;this.X=new g.yr(this);this.U=this.S=null;g.H(this,this.X)}setServerCertificate(){return this.S.setServerCertificate?this.L.flavor==="widevine"&&this.L.jo?this.S.setServerCertificate(this.L.jo):this.L.L()&&this.L.ac?this.S.setServerCertificate(this.L.ac):null:null}createSession(p,a){let l=p.initData;if(this.L.keySystemAccess){a&&a("createsession");const y=this.S.createSession();lf(this.L)? l=rQ(l,this.L.ac):this.L.L()&&(l=ESo(l)||new Uint8Array(0));a&&a("genreq");p=y.generateRequest(p.contentType,l);const S=new IN(null,null,null,y,null,this.G);p.then(()=>{a&&a("genreqsuccess")},GS(n=>{K0v(S,"t.generateRequest",n)})); return S}if(L5(this.L))return ZjO(this,l);if(At(this.L))return cTh(this,l);this.element?.generateKeyRequest?this.element.generateKeyRequest(this.L.keySystem,l):this.element?.webkitGenerateKeyRequest(this.L.keySystem,l);return this.j=new IN(this.element,this.L,l,null,null,this.G)}UO(p){const a=Px(this,p);a&&a.N(p)}C(p){const a=Px(this,p);a&&a.UO(p)}K(p){const a=Px(this,p);a&&a.C(p)}getMetrics(){let p=null;if(this.S&&this.S.getMetrics)try{p=this.S.getMetrics()}catch{}return p}fz(){this.U=this.S=null; this.j?.dispose();for(const p of Object.values(this.D))p.dispose();this.D={};super.fz();delete this.element}};var oI=class{constructor(){this.keys=[];this.values=[]}get(p){p=this.findIndex(p);return p!==-1?this.values[p]:null}remove(p){p=this.findIndex(p);p!==-1&&(this.keys.splice(p,1),this.values.splice(p,1))}removeAll(){this.keys=[];this.values=[]}set(p,a){const l=this.findIndex(p);l!==-1?this.values[l]=a:(this.keys.push(p),this.values.push(a))}findIndex(p){return g.Zz(this.keys,a=>g.Pd(p,a))}};var ssr=class extends g.js{constructor(p,a,l,y=null){super();this.element=p;this.videoData=a;this.Y=l;this.mediaElement=y;this.j=[];this.Rc=2;this.VY=this.Bs=!1;this.heartbeatParams=null;this.w7=this.UO=!1;this.D=null;this.Hs=!1;this.L=this.videoData.X;this.drmSessionId=this.videoData.drmSessionId||g.xHM();this.U=new Map;this.G=new oI;this.K=new oI;this.Sl=new g.yr(this);this.jl=this.Y.A("html5_eme_ignore_teardown_errors");(p=this.element)&&(p.addKey||p.webkitAddKey)||DN()||aS(l.experiments);this.Y.A("html5_enable_vp9_fairplay")&& this.L.L()?l=mI:(l=this.videoData.zy,l=this.L.flavor==="fairplay"||l?qN:mI);this.C=l;this.X=new riq(this.element,this.L,this.jl);g.H(this,this.X);L5(this.L)&&(this.N=new riq(this.element,this.L,this.jl),g.H(this,this.N));g.H(this,this.Sl);l=this.element;this.L.keySystemAccess?this.Sl.J(l,"encrypted",this.Fu):IL(this.Sl,l,L5(this.L)?["msneedkey"]:["needkey","webkitneedkey"],this.Lx);Aw$(this);a:switch(p=this.L,l=this.U,p.flavor){case "fairplay":Gp()>19.2999?(l=p.Rw,p=p.Hf,p>=l&&(p=l*.75),a=(l-p)*.5, l=new GnM(a,l,l-a-p,this)):l=null;break a;case "widevine":l=new BSe(l,this);break a;default:l=null}if(this.D=l)g.H(this,this.D),this.D.subscribe("rotated_need_key_info_ready",this.QY,this),this.D.subscribe("log_qoe",this.S,this);aS(this.Y.experiments);this.S({cks:this.L.getInfo()})}Fu(p){this.S({onecpt:1});p.initData&&yuZ(this,new Uint8Array(p.initData),p.initDataType)}Lx(p){this.S({onndky:1});yuZ(this,p.initData,p.contentType)}eK(p){this.S({onneedkeyinfo:1});this.Y.A("html5_eme_loader_sync")&&(this.K.get(p.initData)|| this.K.set(p.initData,p));l8A(this,p)}QY(p){this.j.push(p);W9(this)}createSession(p){var a=ldq(this)?ynv(p):g.dW(p.initData);this.U.get(a);this.w7=!0;p=new ci$(this.videoData,this.Y,p,this.drmSessionId);this.U.set(a,p);p.subscribe("ctmp",this.ac,this);p.subscribe("keystatuseschange",this.rX,this);p.subscribe("licenseerror",this.hx,this);p.subscribe("newlicense",this.Tm,this);p.subscribe("newsession",this.iT,this);p.subscribe("sessionready",this.Ps,this);p.subscribe("fairplay_next_need_key_info",this.Ic, this);this.Y.A("html5_enable_vp9_fairplay")&&p.subscribe("qualitychange",this.Ws,this);p.subscribe("sabrlicenseconstraint",this.E6,this);Wyo(p,this.X)}Tm(p){this.nz()||(this.S({onnelcswhb:1}),p&&!this.heartbeatParams&&(this.heartbeatParams=p,this.publish("heartbeatparams",p)))}iT(){this.nz()||(this.S({newlcssn:1}),this.j.shift(),this.w7=!1,W9(this))}Ps(){if(L5(this.L)&&(this.S({onsnrdy:1}),this.Rc--,this.Rc===0)){var p=this.N;p.element?.msSetMediaKeys?.(p.U)}}rX(p){if(!this.nz()){this.Hs||(this.Hs= !0,this.Y.Mc()&&cko(this));this.S({onksch:1});var a=this.Ws;if(!du(p)&&g.av&&p.S.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var l="large";else{l=[];var y=!0;if(du(p))for(const S of Object.keys(p.L))p.L[S].status==="usable"&&l.push(p.L[S].type),p.L[S].status!=="unknown"&&(y=!1);if(!du(p)||y)l=p.j;l=tj$(l)}a.call(this,l);if(!du(p)){a={};for(const S of p.j)rVM(p,S,a)}this.videoData.authorizedFormats=p.authorizedFormats;this.publish("keystatuseschange",p)}}ac(p,a){this.nz()|| this.publish("ctmp",p,a)}Ic(p,a){this.nz()||this.publish("fairplay_next_need_key_info",p,a)}hx(p,a,l,y){this.nz()||(this.videoData.A("html5_log_drm_metrics_on_error")&&cko(this),this.publish("licenseerror",p,a,l,y))}dM(){return this.C}Ws(p){const a=g.F_("auto",p,!1,"l");if(this.videoData.zy){if(this.C.equals(a))return}else if(tGA(this.C,p))return;this.C=a;this.publish("qualitychange");this.S({updtlq:p})}E6(p){this.videoData.sabrLicenseConstraint=p}fz(){this.L.keySystemAccess&&this.element&&!this.mediaElement?.Lz?.Gp()&& (this.jl?this.element.setMediaKeys(null).catch(g.tX):this.element.setMediaKeys(null));this.element=null;this.j=[];for(const p of this.U.values())p.unsubscribe("ctmp",this.ac,this),p.unsubscribe("keystatuseschange",this.rX,this),p.unsubscribe("licenseerror",this.hx,this),p.unsubscribe("newlicense",this.Tm,this),p.unsubscribe("newsession",this.iT,this),p.unsubscribe("sessionready",this.Ps,this),p.unsubscribe("fairplay_next_need_key_info",this.Ic,this),this.Y.A("html5_enable_vp9_fairplay")&&p.unsubscribe("qualitychange", this.Ws,this),p.dispose();this.U.clear();this.G.removeAll();this.K.removeAll();this.heartbeatParams=null;super.fz()}mS(){const p={systemInfo:this.L.mS(),sessions:[]};for(const a of this.U.values())p.sessions.push(a.mS());return p}getInfo(){return this.U.size<=0?"no session":`${this.U.values().next().value.getInfo()}${this.D?"/KR":""}`}S(p,a=!1){this.nz()||(ki(p),(this.Y.Mc()||a)&&this.publish("ctmp","drmlog",p))}NO(){let p=void 0,a=void 0;for(const l of this.U.values())p||(p=BME(l,"SD")),a||(a=BME(l, "AUDIO"));this.S({sd:p,audio:a});return p==="output-restricted"||a==="output-restricted"}};var aR=!1;var wCZ=class extends g.YB{constructor(p){super();this.Lz=p;this.U3=0;this.S=this.X=!1;this.j=0;this.g7=this.Lz.O();this.videoData=this.Lz.getVideoData();this.U=g.ak(this.g7.experiments,"html5_delayed_retry_count");this.L=new g.SF(()=>{this.Lz.UU()},g.ak(this.g7.experiments,"html5_delayed_retry_delay_ms")); g.H(this,this.L)}x4(){return!!this.U3}rM(){return this.S}handleError(p){tvZ(this,p);var a;if(a=!((p.errorCode==="html5.invalidstate"||p.errorCode==="fmt.unplayable"||p.errorCode==="fmt.unparseable")&&vx(this,p.errorCode,p.details)))if(a=!Ybh(this,p))this.videoData.errorDetail==="7"&&g.ur(this.g7)?(X2(this,"innertube_player_reload_required"),a=!0):a=!1,a=!a;if(a)if(this.g7.UO!=="yt"&&h7h(this,p)&&this.videoData.Sp&&(0,g.h)()/1E3>this.videoData.Sp&&this.g7.UO==="hm"&&(a=Object.assign({e:p.errorCode}, p.details),a.stalesigexp="1",a.expire=this.videoData.Sp,a.init=this.videoData.Ap/1E3,a.now=(0,g.h)()/1E3,a.systelapsed=((0,g.h)()-this.videoData.Ap)/1E3,p=new g.cQ(p.errorCode,a,2),this.Lz.f1(p.errorCode,2,"SIGNATURE_EXPIRED",ki(p.details))),xW(p.severity)){a=this.Lz.loader?.PZ();let y;if(this.g7.A("html5_use_network_error_code_enums"))if(LO$(p)&&a&&a.isLocked())var l="FORMAT_UNAVAILABLE";else this.g7.D||p.errorCode!=="auth"||p.details.rc!==429?p.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED"): (l="TOO_MANY_REQUESTS",y="6");else LO$(p)&&a&&a.isLocked()?l="FORMAT_UNAVAILABLE":this.g7.D||p.errorCode!=="auth"||p.details.rc!=="429"?p.errorCode==="ump.spsrejectfailure"&&(l="HTML5_SPS_UMP_STATUS_REJECTED"):(l="TOO_MANY_REQUESTS",y="6");this.Lz.f1(p.errorCode,p.severity,l,ki(p.details),y)}else this.Lz.publish("nonfatalerror",p),l=/^pp/.test(this.videoData.clientPlaybackNonce),this.d$(p.errorCode,p.details),l&&p.errorCode==="manifest.net.connect"&&(p=`https://www.youtube.com/generate_204?cpn=${this.videoData.clientPlaybackNonce}&t=${(0,g.h)()}`, Xl(p,"manifest",y=>{this.Xu("pathprobe",y)},y=>{this.d$(y.errorCode,y.details)}))}Xu(p,a){this.Lz.Tn.Xu(p,a)}d$(p,a){a=ki(a); this.Lz.Tn.d$(p,a)}};var Tg=class{constructor(p,a,l,y,S,n){this.videoData=p;this.L=a;this.reason=l;this.S=y;this.token=S;this.videoId=n}};var $q$=class{constructor(p,a,l,y=p.schedule){this.Y=p;this.Ke=a;this.Lz=l;this.s6=y;this.K=this.D=this.L=this.j=this.G=this.S=0;this.X=!1;this.C=g.ak(this.Y.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.U=new Map}Jt(p){const a=EZ(this);if(!p)return{Hg:qN,u8:qN,QG:qN,HD:qN,JO:qN,s5:qN,G$:a};let l=qN;if(Jx(a)||this.A("html5_perf_cap_override_sticky"))l=bi(this,p);return{Hg:l,u8:vV(this,p),QG:CN(this,p),HD:KN(this,p.videoData),JO:e0(this,p.videoData,p),s5:I8(this,p),G$:a}}GI(p){if(g.ur(this.Y)&& Oe(this.Y.X,y9.HEIGHT))var a=p.L.videoInfos[0].video.qualityOrdinal;else{var l=this.E8(p.L.L());nz(p.videoData)||a9(p.videoData);p=p.L.videoInfos;if(p.length){var y=.85,S=p[0].video;S.projectionType!=="MESH"&&S.projectionType!=="EQUIRECTANGULAR"&&S.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||gO||(y=.45);S=g.ak(this.Y.experiments,"html5_viewport_undersend_maximum");for(let n=0;n{this.Fl()}}; this.Fl=()=>{this.jsErrorCount++}; g.H(this,this.delay);window.addEventListener("error",this.Fl);window.addEventListener("unhandledrejection",this.Fl)}IK(){const p=g.CX(this.provider);this.L<0&&(this.L=p,this.delay.start());this.j=this.S=p}onError(p){if(p!=="player.fatalexception"||this.provider.A("html5_exception_to_health"))p==="sabr.fallback"&&(this.encounteredSabrFallback=!0),p.match(PeM)?this.networkErrorCount++:this.nonNetworkErrorCount++}send(){if(!(this.U||this.L<0)){apF(this);var p=g.CX(this.provider)-this.L,a="PLAYER_PLAYBACK_STATE_UNKNOWN", l=this.playerState.Kq;this.playerState.isError()?a=l&&l.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":this.playerState.L(2)?a="PLAYER_PLAYBACK_STATE_ENDED":this.playerState.L(64)?a="PLAYER_PLAYBACK_STATE_UNSTARTED":this.playerState.L(16)||this.playerState.L(32)?a="PLAYER_PLAYBACK_STATE_SEEKING":this.playerState.L(1)&&this.playerState.L(4)?a="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":this.playerState.L(1)?a="PLAYER_PLAYBACK_STATE_BUFFERING":this.playerState.L(4)?a= "PLAYER_PLAYBACK_STATE_PAUSED":this.playerState.L(8)&&(a="PLAYER_PLAYBACK_STATE_PLAYING");l=SPM[ht(this.provider.videoData)];a:switch(this.provider.Y.playerCanaryState){case "canary":var y="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":y="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:y="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var S=zpZ(this.provider),n=this.S<0?p:this.S-this.L;p=this.provider.Y.g$+36E5<(0,g.h)();a={started:this.S>=0,stateAtSend:a,joinLatencySecs:n,jsErrorCount:this.jsErrorCount, playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:y,playerCanaryStage:S,isAd:this.provider.videoData.isAd(),liveMode:l,hasDrm:!!g.Hv(this.provider.videoData),isGapless:this.provider.videoData.K,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Yc(this.provider.videoData)}; p||g.i0("html5PlayerHealthEvent",a);this.U=!0;this.dispose()}}fz(){this.U||this.send();window.removeEventListener("error",this.Fl);window.removeEventListener("unhandledrejection",this.Fl);super.fz()}},PeM=/\bnet\b/;var XCr=class{constructor(p){this.provider=p;this.G=!1;this.L=0;this.j=-1;this.uc=NaN;this.U=0;this.segments=[];this.D=this.X=0;this.previouslyEnded=!1;this.C=this.provider.Lz.getVolume();this.K=this.provider.Lz.isMuted()?1:0;this.S=yE(this.provider)}update(){if(this.G){var p=this.bG()||0,a=g.CX(this.provider);p>=this.provider.Lz.getDuration()-.1&&(this.previouslyEnded=!0);if(p!==this.L||IGM(this,p,a)){var l;if(!(l=pa-this.uc+2||IGM(this,p,a))){{l=this.provider.Lz.getVolume();const y= l!==this.C,S=this.provider.Lz.isMuted()?1:0;S!==this.K?(this.K=S,l=!0):(!y||this.j>=0||(this.C=l,this.j=a),l=a-this.j,this.j>=0&&l>2?(this.j=-1,l=!0):l=!1)}}l&&(fE(this),this.U=p);this.uc=a;this.L=p}}}bG(){const p=this.provider.Lz.bG();return this.provider.Y.A("html5_disable_live_dvr_shrink_for_cdm_vss")&&pJ(this.provider.videoData)?p+this.provider.Lz.oo():p}};var iqA=class{constructor(p,a,l,y){this.Y=a;this.Ha=l;this.segments=[];this.experimentIds=[];this.ac=this.E6=this.isFinal=this.delayThresholdMet=this.Fu=this.Kx=this.autoplay=this.autonav=!1;this.dG="yt";this.D=[];this.G=this.C=null;this.sendVisitorIdHeader=this.Ic=!1;this.K=this.pageId="";this.X=l==="watchtime";this.U=l==="playback";this.jl=l==="atr";this.g$=l==="engage";this.sendVisitorIdHeader=!1;this.uri=this.jl?`/api/stats/${l}`:"//"+a.MJ+"/api/stats/"+l;y&&(this.E6=y.fs,y.rtn&&(this.G=y.rtn), this.X?(this.playerState=y.state,y.rti>0&&(this.C=y.rti)):(this.bf=y.mos,this.L1=y.volume,y.at&&(this.adType=y.at)),y.autonav&&(this.autonav=y.autonav),y.inview!=null&&(this.Ro=y.inview),y.size&&(this.Ba=y.size),y.playerwidth&&(this.PZ=y.playerwidth),y.playerheight&&(this.OC=y.playerheight));this.wq=g.O1(a.L);this.K=pm(a.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.K==="all"||this.K==="once")this.Lx=g.O1(a.NO);this.Wy=a.Wy;this.experimentIds=vgM(a.experiments);this.Rc=a.ZN;this.dG=a.UO; this.region=a.region;this.userAge=a.userAge;this.iT=a.OY;this.zn=Ls();this.sendVisitorIdHeader=a.sendVisitorIdHeader;this.w7=a.A("vss_pings_using_networkless")||a.A("kevlar_woffle");this.tN=a.A("vss_final_ping_send_and_write");this.Ws=a.A("vss_use_send_and_write");this.pageId=a.pageId;this.Me=a.A("vss_playback_use_send_and_write");a.livingRoomAppMode&&(this.livingRoomAppMode=a.livingRoomAppMode);g.x3(a)&&(this.Bs=a.jl);g.qZ(g.cb(a))&&this.D.push(1);this.accessToken=p.G();p.Jw[this.Ha]?this.j=p.Jw[this.Ha]: p.Jw.playback&&(this.j=p.Jw.playback);this.adFormat=p.adFormat;this.adQueryId=p.adQueryId;this.autoplay=EGr(p);this.U&&(this.Kx=p.Pk&&az(p)==="adunit"?!0:!1);this.autonav=p.isAutonav||this.autonav;this.contentVideoId=Uv(p);this.clientPlaybackNonce=p.clientPlaybackNonce;this.Fu=p.XX;p.D&&(this.N=p.D,this.VY=p.kT);p.mdxEnvironment&&(this.mdxEnvironment=p.mdxEnvironment);this.L=p.ir;this.NO=p.NO;p.S&&(this.Ye=p.S.itag,p.j&&p.j.itag!==this.Ye&&(this.Ps=p.j.itag));p.L&&bW(p.L)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=az(p);this.ac=p.L1?!1:p.A$;this.tP=p.Ey;if(a=ht(p))this.r$=a;this.ir=p.Af;this.partnerId=p.partnerId;this.eventId=p.eventId;this.playlistId=p.Mh||p.playlistId;this.DK=p.DK;this.eR=p.eR;this.zf=p.zf;this.Gw=p.Gw;this.subscribed=p.subscribed;this.videoId=p.videoId;this.videoMetadata=p.videoMetadata;this.visitorData=p.visitorData;this.osid=p.osid;this.jA=p.jA;this.referrer=p.referrer;this.SS=p.KD||p.SS;this.Tm=p.vN;this.V2=p.V2;this.userGenderAge=p.userGenderAge;this.Aa=p.Aa;this.embedsRct= p.embedsRct;this.embedsRctn=p.embedsRctn;g.x3(this.Y)&&p.mutedAutoplay&&(p.mutedAutoplayDurationMode===2&&p.limitedPlaybackDurationInSeconds===0&&p.endSeconds===0?this.D.push(7):this.D.push(2));p.isEmbedsShortsMode(new g.J9(this.PZ,this.OC),!!this.playlistId)&&this.D.push(3);g.eS(p)&&this.D.push(4);this.Hs=p.zT;p.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=p.compositeLiveIngestionOffsetToken)}send(p){if(!this.Ic){var a=oV(this),l=g.Re(this.uri,a);this.Y.A("vss_through_gel_double")&& XRr(l);this.jl&&!this.Y.A("html5_simplify_pings")?A0o(this,l):ZW(this,p).then(y=>{this.Y.A("html5_switch_vss_to_post")&&(y=y||{},y.method="POST");this.jl&&(y=y||{},y.method="POST",y.postParams={atr:this.attestationResponse});mh(l,y,{token:this.N,qL:this.VY,mdxEnvironment:this.mdxEnvironment},this.Y,p,this.w7,this.isFinal&&this.tN||this.Ws||this.U&&this.Me)}); this.Ic=!0}}S(p){p===void 0&&(p=NaN);return Number(p.toFixed(3)).toString()}},zmv={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},oLr={EMBEDDED_PLAYER_MODE_UNKNOWN:0,EMBEDDED_PLAYER_MODE_DEFAULT:1,EMBEDDED_PLAYER_MODE_PFP:2,EMBEDDED_PLAYER_MODE_PFL:3};var Owv=class extends g.YB{constructor(p){super();this.provider=p;this.G="paused";this.X=NaN;this.N=[10,10,10,40];this.jl=this.Sl=0;this.Ws=this.Bs=this.QY=this.w7=this.U=!1;this.S=this.j=NaN;this.logger=new g.Xj("vss");this.L=new XCr(p)}IK(){if(!this.U){this.provider.videoData.Rp===16623&&g.tX(Error("Playback for EmbedPage"));var p=yV(this,"playback");this.N=pcv(this);WqF(this.L);p.G=Zw(this);this.S>0&&(p.L-=this.S);p.send();if(this.provider.videoData.jh){p=this.provider.Y;var a=this.provider.videoData; const l={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,ei:a.eventId,ptk:a.jh,oid:a.BJ,ptchn:a.bB,pltype:a.Qg,content_v:Uv(a)};a.Av&&Object.assign(l,{m:a.Av});p=g.Re(p.Rd+"ptracking",l);CW(this,p)}this.provider.videoData.NO||(E7r(this),V2F(this));this.U=!0;p=this.L;p.L=p.bG();p.uc=g.CX(p.provider);!(p.U===0&&p.L<5)&&p.L-p.U>2&&(p.U=p.L);p.G=!0}}D(){g.tO(this.X);this.X=NaN}K(){fE(this.L)}C(){this.L.update();var p=this.L;p.segments.length&&p.L===p.U||fE(p);const a=p.segments;p.segments=[];return a}onProgress(){this.L.update(); k4h(this)&&(E7r(this),V2F(this))}UO(p){if(!this.nz())if(p.state.L(2)||p.state.L(512)){if(this.G="paused",p.j5(2)||p.j5(512))p.j5(2)&&(this.L.previouslyEnded=!0),this.U&&(this.D(),pq(this).send(),this.j=NaN)}else if(p.state.L(8)){this.G="playing";const a=this.U&&isNaN(this.X)?Zw(this):NaN;if(!isNaN(a)&&(qJ(p,64)<0||qJ(p,512)<0)){const l=f_(this,!1);l.G=a;l.send()}p.j5(16)&&p.state.seekSource===58&&(this.L.previouslyEnded=!0)}else this.G="paused"}fz(){super.fz();this.D();j9r(this.L)}mS(){return oV(yV(this, "playback"))}Et(p){const a=yV(this,"engage");a.Sl=p;return xbo(a,m6M(this.provider))}};var YBf=class{constructor(){this.endTime=this.startTime=-1;this.U="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.S=0;this.muted=!1;this.L=this.clipId="-";this.previouslyEnded=!1}isEmpty(){return this.endTime===this.startTime}};var k$q=class{constructor(p,a,l){this.videoData=p;this.Y=a;this.Lz=l;this.L=void 0}A(p){return this.Y.A(p)}getCurrentTime(){return this.Lz.getCurrentTime()}bG(){return this.Lz.bG()}},fuh={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.zZ=class extends g.YB{constructor(p){super();this.provider=p;this.U=new Map;this.Ch=new g.bB;this.hg={Xyl:()=>this.qoe, RFI:()=>this.L, Zts:()=>this.S}; this.provider.videoData.Kh()&&!this.provider.videoData.nC&&(this.L=new Owv(this.provider),this.L.S=0,g.H(this,this.L),this.qoe=new g.Zo(this.provider),g.H(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Iv=this.provider.videoData.clientPlaybackNonce)&&this.U.set(this.Iv,this.L));if(p.Y.playerCanaryState==="canary"||p.Y.playerCanaryState==="holdback")this.S=new LbM(this.provider),g.H(this,this.S)}IK(){this.L&&this.L.IK();this.S&&this.S.IK()}onProgress(){if(this.provider.videoData.enableServerStitchedDai&& this.Iv)this.U.get(this.Iv)?.onProgress();else if(this.L)this.L.onProgress()}CC(p){this.qoe&&this.qoe.CC(p)}Do(p,a){this.qoe&&this.qoe.Do(p,a)}m_(){this.provider.videoData.enableServerStitchedDai&&this.Iv?this.U.get(this.Iv)?.K():this.L&&this.L.K()}d$(p,a){this.qoe&&BOv(this.qoe,p,a);if(this.S)this.S.onError(p)}Eb(p){this.qoe?.Eb(p)}onPlaybackRateChange(p){if(this.qoe)this.qoe.onPlaybackRateChange(p);this.L&&this.L.K()}Xu(p,a,l){this.qoe&&this.qoe.Xu(p,a,l)}lS(p,a,l){this.qoe&&this.qoe.lS(p,a,l)}vA(p){this.qoe?.vA(p)}Xa(p){this.qoe?.Xa(p)}sG(p, a,l,y){this.qoe?.sG(p,a,l,y)}Gc(p){this.qoe&&this.qoe.Gc(p)}tJ(p,a,l){this.qoe&&this.qoe.tJ(p,a,l)}W2(){if(this.qoe)return this.qoe.W2()}mS(){return this.provider.videoData.enableServerStitchedDai&&this.Iv?this.U.get(this.Iv)?.mS()??{}:this.L?this.L.mS():{}}vI(){return this.qoe?.vI()}aI(p,a){this.qoe?.aI(p,a)}Et(p){return this.L?this.L.Et(p):()=>{}}getVideoData(){return this.provider.videoData}resume(){this.qoe&&this.qoe.resume()}}; g.zZ.prototype.RQ=Gl(52);g.zZ.prototype.Pl=Gl(35);g.zZ.prototype.xg=Gl(29);g.zZ.prototype.U2=Gl(23);var xqZ=class{constructor(){this.lx=0;this.j=this.U=this.Zo=this.xY=this.S=NaN;this.L={};this.bandwidthEstimate=NaN}};var Fbq=class{constructor(){this.L=g.M1;this.array=[]}};g.dz=class extends g.YB{constructor(p,a){super();this.Lz=p;this.G=a;this.U=NaN;this.X=this.D=this.started=!1;this.S=[];this.K=new g.SF(this.sync,250,this);g.H(this,this.K);this.j=new g.SF(this.sync,0,this);g.H(this,this.j);this.L=new Fbq}OE(p,a){this.sync();a&&this.L.array.length>=2E3&&this.UI("captions",1E4);a=this.L;if(p.length>1&&p.length>a.array.length)a.array=a.array.concat(p),a.array.sort(a.L);else for(const l of p)!a.array.length||a.L(l,a.array[a.array.length-1])>0?a.array.push(l):g.fc(a.array, l,a.L);this.U=NaN;this.sync()}mM(p){p.length>1E4&&g.tX(new g.Qm("Over 10k cueRanges removal occurs with a sample: ",p[0]));if(!this.nz()){var a=new Set(p);this.S=this.S.filter(l=>!a.has(l)); qgM(this.L,a);this.sync()}}Oa(p,a){if(!this.nz()){var l=this.iN().find(y=>y.id===a&&y.namespace===p); l&&this.mM([l])}}UI(p,a){const l=(isNaN(this.U)?zOM(this):this.U)-a;a=this.iN().filter(y=>y.namespace===p&&y.endl.namespace===p); this.mM(a);return a}oI(p){let a=[];var l=w0(this.L,0x7ffffffffffff);const y=[];for(const S of l)S.active&&p===S.associatedClipId&&y.push(S);a=a.concat($U(this,y));WT(this,a);a=[];l=[];for(const S of this.S)S.active&&S.associatedClipId===p&&S.start===0x7ffffffffffff&&l.push(S);a=a.concat(r0(this,l));WT(this,a);return y.length}dD(p){const a=w0(this.L,0x7ffffffffffff),l=[];for(const y of a)y.active&&p===y.associatedClipId&&l.push(y);this.mM(l)}sync(){this.X=!0;if(!this.D){for(var p=3;this.X&&p;)this.X= !1,this.D=!0,BrO(this),this.D=!1,p--;this.Lz.getPlayerState().isPlaying()&&(p=rt$(this.L,this.U),!isNaN(p)&&p<0x7ffffffffffff&&(p=(p-this.U)/this.Lz.getPlaybackRate(),this.j.start(p)))}}isEnded(p,a){a=this.Lz.cG()*1E3-a;a=this.Lz.Fx()&&p.L(1)&&a<500;return p.L(2)||this.Lz.O().A("html5_pseudogapless_shorts")&&a}fz(){this.S=[];this.L.array=[];super.fz()}};g.dz.prototype.bc=Gl(41);var EfM=class{constructor(p){this.Y=p;this.U=this.S=this.mediaTime=NaN;this.j=this.L=!1;this.X=.001;g.ur(p)&&(this.X=.01)}};var j1Z=class{constructor(p,a){this.videoData=p;this.L=a}};var Ce$=class{constructor(p){this.data=window.Float32Array?new Float32Array(p):Array(p);this.S=this.L=p-1}add(p){this.L=(this.L+1)%this.data.length;this.data[this.L]=p}U(){return this.data[this.L]||0}forEach(p){for(var a=this.L+1;athis.L,S=a.L(8)&&a.L(16),n=this.Lz.iX().isBackground()||a.isSuspended();Pc(this,this.ac,S&&!n,y,"qoe.slowseek",()=>{},"timeout"); var V=isFinite(this.L);V=S&&V&&vXo(p,this.L);var Z=!l||Math.abs(l-this.L)>10,z=this.Y.A("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),d=l===0&&this.S&&[11,10].includes(this.S);Pc(this,this.Ic,V&&Z&&!n&&(!z||!d),y,"qoe.slowseek",()=>{p.seekTo(this.L)},"set_cmt"); Z=V&&Dq(p.xo(),this.L);var G=this.Lz.loader;V=!G||G.Rn();var B=()=>{p.seekTo(this.L+.001)}; Pc(this,this.Ws,Z&&V&&!n,y,"qoe.slowseek",B,"jiggle_cmt");V=()=>this.Lz.UU(); Pc(this,this.Bs,Z&&!n,y,"qoe.slowseek",V,"new_elem");var c=gd(a);d=a.isBuffering();var w=p.xo(),X=Jh(w,l),v=X>=0&&w.end(X)>l+5;Z=c&&d&&v;z=this.Lz.getVideoData();Pc(this,this.QY,l<.002&&this.L<.002&&S&&g.ur(this.Y)&&g.wl(z)&&!n,y,"qoe.slowseek",V,"slow_seek_shorts");Pc(this,this.C,z.Yn()&&S&&!n&&!z.UO,y,"qoe.slowseek",V,"slow_seek_gapless_shorts");Pc(this,this.UO,Z&&!n,c&&!d,"qoe.longrebuffer",B,"jiggle_cmt");Pc(this,this.N,Z&&!n,c&&!d,"qoe.longrebuffer",V,"new_elem_nnr");if(G){const m=G.getCurrentTime(); S=p.D();S=Cdo(S,m);S=!G.isSeeking()&&l===S;Pc(this,this.Fu,c&&d&&S&&!n,c&&!d&&!S,"qoe.longrebuffer",()=>{p.seekTo(m)},"seek_to_loader")}S={}; B=Jh(w,Math.max(l-3.5,0));var I=B>=0&&l>w.end(B)-1.1,u=B>=0&&B+1=0&&I&&u<11;S.close2edge=I;S.gapsize=u;S.buflen=w.length;this.S&&(S.seekSour=this.S);Pc(this,this.Sl,c&&d&&!n,c&&!d,"qoe.longrebuffer",()=>{},"timeout",S); S=a.isSuspended();S=this.Lz.Sr()&&!S;Pc(this,this.G,S,!S,"qoe.start15s",()=>{this.Lz.Kv("ad")},"ads_preroll_timeout"); S=this.Y.experiments.Cz("html5_use_playback_rate_in_skip_slow_ad")?this.Lz.getPlaybackRate()*1E3:1E3;X=l-this.j{var m=this.Lz;const M=m.TR.getVideoData();(!M||!m.videoData.isAd()||M.ME!==m.getVideoData().ME)&&m.videoData.eD||m.f1("ad.rebuftimeout",2,"RETRYABLE_ERROR",`skipslad.vid.${m.videoData.videoId}`)}; Pc(this,this.Ps,I,!I,"ad.rebuftimeout",S,"skip_slow_ad");X=B&&d&&Dq(p.xo(),l+5)&&X;Pc(this,this.VY,X&&!n,!X,"ad.rebuftimeout",S,"skip_slow_ad_buf");S=a.isOrWillBePlaying()&&a.L(64)&&!n;Pc(this,this.NO,S,y,"qoe.start15s",()=>{},"timeout"); G=!!G&&!G.Kz&&a.isOrWillBePlaying();Pc(this,this.jl,G,y,"qoe.start15s",V,"newElemMse");G=q5(w,0);w=a.L(16)||a.L(32);G=!n&&a.isOrWillBePlaying()&&d&&!w&&(a.L(64)||l===0)&&G>5;Pc(this,this.Rc,g.wl(z)&&G,c&&!d,"qoe.longrebuffer",()=>{this.Lz.lW()},"reset_media_source"); Pc(this,this.Hs,g.wl(z)&&G,c&&!d,"qoe.longrebuffer",V,"reset_media_element");this.j===0&&(this.D=l);G=d&&this.L===0&&l>1&&l===this.D;Pc(this,this.w7,g.wl(z)&&G,c&&!d,"qoe.slowseek",()=>{p.seekTo(0)},"reseek_after_time_jump"); n=a.isOrWillBePlaying()&&!n;v=this.Lz.cG()-l<6&&!v&&this.Lz.Fx();Pc(this,this.K,z.Yn()&&n&&d&&v,c&&!d,"qoe.longrebuffer",()=>{this.Lz.UU(!1,!0)},"handoff_end_long_buffer_reload"); n=this.S===104||this.Lz.kP;a=D6(z)&&z.isAd()&&!z.UO&&n&&(d||a.L(8)&&a.L(16));Pc(this,this.Tm,a,y,"qoe.start15s",V,"gapless_ad_slow_start");a=D6(z)&&!z.UO&&n&&Z;Pc(this,this.iT,a,y,"qoe.longrebuffer",V,"gapless_slow_start");this.j=l;this.X.start()}}d$(p,a,l){a=this.mS(a);a.wn=l;a.wdup=this.U[p]?"1":"0";this.Lz.d$(new g.cQ(p,a));this.U[p]=!0}mS(p){p=Object.assign(this.Lz.mS(!0),p.mS());this.L&&(p.stt=this.L.toFixed(3));this.Lz.getVideoData().isLivePlayback&&(p.ct=this.Lz.getCurrentTime().toFixed(3), p.to=this.Lz.oo().toFixed(3));delete p.uga;delete p.euri;delete p.referrer;delete p.fexp;delete p.vm;return p}},xq=class{constructor(p,a=!1){this.D=a;this.L=this.S=this.U=this.startTimestamp=0;this.j=!1;this.X=Math.ceil(p/1E3)}reset(){this.L=this.S=this.U=this.startTimestamp=0;this.j=!1}test(p){if(!this.X||this.S)return!1;if(!p)return this.reset(),!1;p=(0,g.h)();if(!this.startTimestamp)this.startTimestamp=p,this.U=0;else if(this.U>=this.X)return this.S=p,!0;this.U+=1;return!1}mS(){const p={},a=(0,g.h)(); this.startTimestamp&&(p.wsd=(a-this.startTimestamp).toFixed());this.S&&(p.wtd=(a-this.S).toFixed());this.L&&(p.wssd=(a-this.L).toFixed());return p}};var bSr=class extends g.YB{constructor(p){super();this.Lz=p;this.K=this.L=this.loader=this.mediaElement=this.playbackData=null;this.U=0;this.X=this.Sl=this.j=null;this.w7=!1;this.NO=0;this.N=!1;this.timestampOffset=0;this.C=!0;this.Hs=0;this.ac=this.Lx=!1;this.G=0;this.Tm=!1;this.jl=0;this.hg={Rt:a=>this.Rt(a)}; this.Y=this.Lz.O();this.videoData=this.Lz.getVideoData();this.policy=new eth;this.UO=new KbM(this.Lz);this.Ps=this.Bs=this.QY=this.D=this.S=NaN;this.Ws=new g.SF(()=>{EsE(this,!1)},2E3); this.Fu=new g.SF(()=>{l9(this)}); this.Rc=new g.SF(()=>{C7M(this,{})}); this.VY=NaN;this.iT=new g.SF(()=>{var a=this.Y.kf;a.L+=1E4/36E5;a.L-a.U>1/6&&(Xqh(a),a.U=a.L);this.iT.start()},1E4); g.H(this,this.UO);g.H(this,this.Ws);g.H(this,this.Rc);g.H(this,this.Fu);g.H(this,this.iT)}setMediaElement(p){(this.mediaElement=p)?(this.mediaElement&&(this.X||this.U||!this.mediaElement.Ha()||this.seekTo(.01,{qE:"seektimeline_setupMediaElement"})),l9(this)):fN(this)}getCurrentTime(p=!1){if(kF(this.Lz)){if(this.A("html5_use_centralized_player_time")&&!p&&!isNaN(this.D))return this.D;if(!isNaN(this.S))return this.S}else{if(this.A("html5_use_centralized_player_time")&&!p&&!isNaN(this.D)&&isFinite(this.D))return this.D; if(!isNaN(this.S)&&isFinite(this.S))return this.S}return this.mediaElement&&pWM(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.U||0}gM(){return this.Ic}bG(){return this.getCurrentTime()-this.oo()}KC(){return this.L?this.L.KC():Infinity}isAtLiveHead(p){if(!this.L)return!1;p===void 0&&(p=this.getCurrentTime());return mL(this.L,p)}Hk(){return!!this.L&&this.L.Hk()}seekTo(p,{eW:a=!1,yX:l=0,Wt:y=!1,CX:S=0,qE:n="",seekSource:V,P1:Z=!1,Ks:z=!1,gZ:d=!1}={}){Z&&(p+=this.oo());Yc(this.videoData)&& V===29&&(this.Ic=void 0);Z=p=this.UE())||!g.aC(this.videoData),B||(G={st:G,mst:this.UE()}, this.L&&this.A("html5_high_res_seek_logging")&&(G.ht=this.L.KC(),G.adft=Rt(this.L)),this.Lz.Xu("seeknotallowed",G)),G=B)}}if(!G)return this.j&&(this.j=null,uo(this)),g.R2(this.getCurrentTime());G=.005;z&&this.A("html5_sabr_seek_no_shift_tolerance")&&(G=0);if(Math.abs(p-this.S)<=G&&this.w7)return this.X;n&&(G=p,this.Y.Mc()||this.A("html5_log_seek_reasons"))&&(n={reason:n,tgt:G},this.A("html5_sabr_csdai_seek_log")&&(n.source=V),this.Lz.Xu("seekreason",n));V&&(this.UO.S=V);this.w7&&fN(this);this.X|| (this.X=new z0);p&&!isFinite(p)&&TW(this,!1);(d=d||Z)||(d=p,d=!(this.videoData.isLivePlayback&&this.videoData.U&&!this.videoData.U.L()&&!(this.mediaElement&&this.mediaElement.U()>0&&RN(this.mediaElement)>0)||TJ(this.videoData)&&this.NE()===this.UE(!1)?0:isFinite(d)||!TJ(this.videoData)));d||(p=Xm(this,p,y));p&&!isFinite(p)&&TW(this,!1);this.A("html5_use_centralized_player_time")?this.D=p:this.S=this.U=p;this.Hs=S;this.G=0;this.L&&tf(this.L,p,!1);y=this.Lz;S=p;d={eW:a,seekSource:V};y.nt.U=S;n=y.Qv; n.mediaTime=S;n.L=!0;d.eW&&y.iP(d);d=S>y.videoData.endSeconds&&S>y.videoData.limitedPlaybackDurationInSeconds;y.M1&&d&&isFinite(S)&&MO(y);Sa.start&&MO(this.Lz);return this.X}UE(p){return this.videoData.isLivePlayback?this.videoData.Ic()&&this.mediaElement?.isPaused()&&this.videoData.L?(p=this.getCurrentTime(),teE(this.By(p)*1E3)+p): this.A("html5_sabr_parse_live_metadata_playback_boundaries")&&Yc(this.videoData)&&this.videoData.L?p?this.videoData.L.jl||0:this.videoData.L.HG||0:TJ(this.videoData)&&this.videoData.w7&&this.videoData.L?this.videoData.L.UE()+this.timestampOffset:this.videoData.U&&this.videoData.U.L()?!p&&this.L?this.L.KC():this.Lz.videoData.UE()+this.timestampOffset:this.mediaElement?Ca()?teE(this.mediaElement.Bs().getTime()):RN(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset:this.Lz.videoData.UE()}NE(){if(this.A("html5_sabr_parse_live_metadata_playback_boundaries")&& Yc(this.videoData))return this.videoData.L?.vk||0;const p=this.videoData?this.videoData.NE()+this.timestampOffset:this.timestampOffset;if(this.videoData.Ic()&&this.videoData.L){var a=Number(this.videoData.progressBarStartPosition?.utcTimeMillis)/1E3;if(!isNaN(a)&&(a=this.Rt(a),!isNaN(a)))return Math.max(p,a)}return p}MH(){this.X||this.seekTo(this.U,{qE:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}Cw(){return this.w7&&!isFinite(this.S)}fz(){r1(this,null);this.UO.dispose(); super.fz()}mS(){const p={};this.loader&&Object.assign(p,this.loader.mS());this.mediaElement&&Object.assign(p,this.mediaElement.mS());return p}du(p){this.timestampOffset=p}getStreamTimeOffset(){return TJ(this.videoData)?0:this.videoData.L?this.videoData.L.getStreamTimeOffset():0}oo(){return this.timestampOffset}By(p){return this.videoData&&this.videoData.L?this.videoData.L.By(p-this.timestampOffset):NaN}WH(){if(!this.mediaElement)return 0;if(HG(this.videoData)){var p=this.mediaElement,a=p.xo();p=($7(a)&& p.getDuration()?a.end(a.length-1):0)+this.timestampOffset-this.NE();a=this.UE()-this.NE();return Math.max(0,Math.min(1,p/a))}return this.mediaElement.WH()}X5(p){this.K&&(this.K.L=p)}u4(p,a){this.Lz.Xu("requestUtcSeek",{time:p});Yc(this.videoData)&&(this.Ic=p);this.loader?.u4(p);a&&(this.jl=a)}Na(p){Yc(this.videoData)&&(this.Ic=void 0);this.jl?(this.Lz.Xu("utcSeekingFallback",{source:"streamTime",timeSeconds:this.jl}),this.Lz.seekTo(this.jl,{qE:"utcSeekingFallback_streamTime"}),this.jl=0):(p=this.Rt(p), isNaN(p)||(this.Lz.Xu("utcSeekingFallback",{source:"estimate",timeSeconds:p}),this.Lz.seekTo(p,{qE:"utcSeekingFallback_estimate"})))}kA(){this.jl=0}Rt(p){const a=this.getCurrentTime();if(isNaN(a))return NaN;const l=this.By(a);return isNaN(l)?NaN:p-(l-a)}A(p){return this.Y&&this.Y.A(p)}},eth=class{};var uQO=class extends g.YB{constructor(p){super();this.U=p;this.L=new Map;this.S=new g.SF(this.sample,250,this);g.H(this,this.S);this.start()}start(){this.S.start()}stop(){this.S.stop()}clear(){for(const p of this.L.values())p.clear()}sample(){for(const [p,a]of this.U){const l=p,y=a;this.L.has(l)||this.L.set(l,new IZq(RtO.has(l)));this.L.get(l).update(y())}this.S.start()}},RtO=new Set(["networkactivity"]),IZq=class{constructor(p){this.S=p;this.L=NaN;this.buffer=new Ce$(100)}update(p){this.S?(this.buffer.add(p- this.L||0),this.L=p):this.buffer.add(p)}clear(){this.buffer.clear();this.L=0}};var OSM=class{constructor(){this.finished=this.started=!1}zj(){return this.started}start(){this.started=!0}reset(){this.finished=this.started=!1}};var FN=!1;g.vN=class extends g.js{constructor(p,a,l,y,S,n,V,Z,z=p.schedule,d=new g.Uj(p),G=!0){super();this.Y=p;this.playerType=a;this.QQ=l;this.Ke=y;this.getVisibilityState=n;this.visibility=V;this.TR=Z;this.s6=z;this.videoData=d;this.iq=G;this.logger=new g.Xj("VideoPlayer");this.UQ=null;this.Xp=new oI;this.M1=null;this.Rs=!0;this.Kz=this.loader=null;this.AJ=[];this.HO=new OSM;this.Qr=this.zz=null;this.R6=new OSM;this.Qo=null;this.M6=this.ot=!1;this.DR=NaN;this.vg=!1;this.playerState=new g.bB;this.Hd=[];this.AB= new g.yr;this.mediaElement=null;this.SJ=this.Jx=!1;this.BA=NaN;this.LG=!1;this.GG=0;this.Vz=!1;this.Uc=NaN;this.U3=0;this.loop=!1;this.playbackRate=1;this.f4=0;this.F3=!1;this.AE=[];this.XM=this.tS=0;this.Cj=this.gT=!1;this.Zo=this.xY=0;this.kP=!1;this.En=this.Pe=this.Sq=this.I4=null;this.cX=()=>{var B=this.Tn;B.provider.Y.OC||B.provider.Lz.getVisibilityState()===3||(B.provider.Y.OC=!0);B.m_();if(B.S){var c=B.S;c.X&&c.L<0&&c.provider.Lz.getVisibilityState()!==3&&aq(c)}B.qoe&&(B=B.qoe,B.Ic&&B.j<0&& B.provider.Y.OC&&MAM(B),B.X&&I5(B));this.loader&&SG(this);jY(this)}; this.hg={rX:B=>{this.rX(B)}, pX7:B=>{this.UQ=B}, FBl:()=>this.Tn, mK:()=>this.Kz, Q47:()=>this.nF, DET:()=>this.MY, YEY:()=>{}, O:()=>this.Y, mB:()=>this.mediaElement, Ly9:B=>{this.bv(B)}, QXT:()=>this.Ke}; this.UM=new wCZ(this);this.q$=new g.SF(this.O0,15E3,this);this.n2=new uQO(new Map([["bufferhealth",()=>Is(this.nt)], ["bandwidth",()=>this.oS()], ["networkactivity",()=>this.s6.Sl], ["livelatency",()=>this.isAtLiveHead()&&this.isPlaying()?NU(this):NaN], ["rawlivelatency",()=>NU(this)]])); this.nt=new bSr(this);this.DS=new g.SF(this.ER,0,this);this.As=[this.AB,this.DS,this.q$,this.n2];this.Qv=new EfM(this.Y);this.XP=new $q$(this.Y,this.Ke,this,this.s6);this.jD=new g.dz(this,(B,c)=>{B!==g.tT("endcr")||this.playerState.L(32)||this.uS();S(B,c,this.playerType);B===g.tT("transitiondetector")&&this.loader?.g$(c)}); g.H(this,this.jD);g.H(this,this.nt);Bwr(this,d);this.videoData.subscribe("dataupdated",this.mA,this);this.videoData.subscribe("dataloaded",this.zG,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Xu,this);this.videoData.subscribe("ctmpstr",this.cj,this);!this.Tn||this.Tn.nz();this.Tn=new g.zZ(new k$q(this.videoData,this.Y,this));KEO(this.cX);this.visibility.subscribe("visibilitystatechange",this.cX);this.nF=new g.SF(this.Ss,g.ak(this.Y.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.MY=new g.SF(this.Ss,g.ak(this.Y.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.yD=new g.J1(this.Gs,350,this);g.H(this,this.yD)}fz(){g.ix(this.DR);UiM(this.cX);this.visibility.unsubscribe("visibilitystatechange",this.cX);ZlZ(this.Tn);g.Er(this.Tn);$B(this);g.XY.bk(this.BA);this.W9();this.Qr=null;g.Er(this.videoData);g.Er(this.UM);g.Er(this.nF);g.Er(this.MY);g.Fm(this.As);this.M1=null;super.fz()}tJ(p,a,l,y,S){if(this.Y.A("html5_log_ad_playback_docid")){var n= this.Tn;if(n.qoe){n=n.qoe;var V=this.Y.UO||"yt";g.vy(n,g.CX(n.provider),"ad_playback",[p,a,l,S,V])}}else this.Tn.tJ(p,a,l);this.A("html5_log_media_perf_info")&&this.Xu("adloudness",{ld:y.toFixed(3),cpn:p})}PR(){return this.loader?.PR()}V7(){return this.loader?.V7()}fE(){return this.loader?.fE()}xm(){return this.loader?.xm()}FF(){return this.videoData.FF()}Gp(){return this.A("html5_not_reset_media_source")}TY(){this.videoData.K&&(this.videoData.QR=this.videoData.QR||this.TR.zm().PR(),this.videoData.DH= this.videoData.DH||this.TR.zm().V7());if(see(this.videoData)||!mJ(this.videoData)){const p=this.videoData.errorDetail;this.f1(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),p,p,this.videoData.iK||void 0)}this.A("html5_generate_content_po_token")&&this.zc();this.A("html5_enable_d6de4")&&this.E4()}getVideoData(){return this.videoData}O(){return this.Y}Jt(){return this.XP.Jt(this.Qr)}iX(){return this.visibility}nN(){return this.mediaElement&&this.mediaElement.X()?this.mediaElement.Wa(): null}mB(){return this.mediaElement}z3(){if(this.videoData.errorCode)return!1;this.O().D&&this.O().houseBrandUserStatus&&this.Xu("hbut",{status:this.O().houseBrandUserStatus},!0);if(this.videoData.Kh())return!0;this.f1("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}o6(p=!1){p||c9(this.Tn);this.ot=p;!this.z3()||this.HO.zj()?g.ur(this.Y)&&this.videoData.isLivePlayback&&this.HO.zj()&&!this.HO.finished&&!this.ot&&this.zG():(this.HO.start(),p=this.Tn,g.CX(p.provider),p.qoe&&Hwq(p.qoe),this.zG())}zG(){if(this.videoData.isLoaded()){var p= this.UM;g.ak(p.g7.experiments,"html5_player_min_build_cl")>0&&g.ak(p.g7.experiments,"html5_player_min_build_cl")>810467872&&X2(p,"oldplayer");zje(this)}else this.videoData.OY||this.videoData.rA?this.ot&&g.ur(this.Y)&&this.videoData.isLivePlayback||(this.videoData.OY?gVO(this.videoData):(p=this.Tn,p.qoe&&(p=p.qoe,ej(p,"protected"),p.provider.videoData.X?p.tP():p.provider.videoData.subscribe("dataloaded",p.tP,p)),vLr(this.videoData))):!this.videoData.loading&&this.iq&&zAh(this)}gr(p){this.I4=p;this.loader&& (YnM(this.loader,new g.Zh(p)),this.Xu("sdai",{sdsstm:1}))}cO(p,a,l){this.loader?.cO(p,a,l)}isFullscreen(){return this.visibility.isFullscreen()}isBackground(){return this.visibility.isBackground()}Um(){KJ(this).then(()=>tG(this)); this.playerState.isOrWillBePlaying()&&this.playVideo()}JT(){this.mediaElement&&this.mediaElement.activate();this.o6();this.z3()&&!this.playerState.L(128)&&(this.R6.zj()||(this.R6.start(),this.videoData.s2?this.X7(ud(this.playerState,4)):this.X7(ud(ud(this.playerState,8),1))),lS(this))}Va(){return this.HO.finished}sendAbandonmentPing(){this.getPlayerState().L(128)||(this.publish("internalAbandon"),this.Ss(!0),ZlZ(this.Tn),g.Er(this.Tn),g.XY.bk(this.BA))}uS(p=!0,a=!0,l){a&&this.mediaElement&&this.mediaElement.pause(); p&&l&&this.loader&&TJ(this.videoData)&&this.loader.sG(l);this.X7(p?new g.bB(14):new g.bB)}VO(){this.Tn.m_()}f1(p,a,l,y,S,n){let V,Z;g.DK(ARM,l)?V=l:l?Z=l:V="GENERIC_WITHOUT_LINK";y=(y||"")+`;a6s.${Qq()}`;if(p==="auth"||p==="drm.auth"||p==="heartbeat.stop")l&&(y+=`;r.${l.replaceAll(" ","_")}`),n&&(y+=`sr.${n.replaceAll(" ","_")}`);a={errorCode:p,errorDetail:S,errorMessage:Z||g.oj[V]||"",RS:V,iK:n||"",pY:y,Y4:a,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=p;DS(this,"dataloaderror"); this.X7(tV(this.playerState,128,a));g.XY.bk(this.BA);$B(this);this.Os()}Kv(p){this.AJ=this.AJ.filter(a=>p!==a); this.R6.zj()&&lS(this)}g3(){var p;(p=!!this.AJ.length)||(p=this.jD.L.array[0],p=!!p&&p.start<=-0x8000000000000);return p}Hk(){return this.nt.Hk()}isPlaying(){return this.playerState.isPlaying()}Zv(){return this.playerState.Zv()&&this.videoData.s2}getPlayerState(){return this.playerState}MI(p){this.loader?.MI(p)}aN(p){this.loader?.aN(p)}getPlayerType(){return this.playerType}getPreferredQuality(){if(this.Qr){var p=this.Qr;p=p.videoData.C6.compose(p.videoData.cz);p=wX(p)}else p="auto";return p}isGapless(){return!!this.mediaElement&& this.mediaElement.isView()}setMediaElement(p){if(this.mediaElement&&p.Wa()===this.mediaElement.Wa()&&(p.isView()||this.mediaElement.isView())){if(p.isView()||!this.mediaElement.isView())this.bP(),this.mediaElement=p,this.mediaElement.Lz=this,iJr(this),this.nt.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.W9();if(!this.playerState.isError()){let a=jm(this.playerState,512);a.L(8)&&!a.L(2)&&(a=ud(a,1));p.isView()&&(a=jm(a,64));this.X7(a)}this.mediaElement=p;this.mediaElement.Lz=this; !g.ur(this.Y)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);iJr(this);this.nt.setMediaElement(this.mediaElement);this.A("html5_prewarm_media_source")&&!this.UM.x4()&&rpA(this.mediaElement)}}W9(p=!1,a=!1,l=!1){if(this.mediaElement){var y=this.getCurrentTime();y>0&&(this.nt.U=y);this.nt.setMediaElement(null);!p&&this.Gp()?w1(this):this.qR(l);this.loader&&(dJ(this.loader),this.loader?.w7(a));this.q$.stop();if(this.mediaElement&&(!this.R6.zj()&&!this.Sr()|| this.playerState.isError()||this.playerState.L(2)||this.X7(ud(this.playerState,512)),this.mediaElement)){this.bP();if(p||!this.mediaElement.isView())this.QQ.iS("mesv_s"),this.mediaElement.stopVideo(),Ee(this);this.mediaElement=this.mediaElement.Lz=null}}}async playVideo(p=!1,a=!1){var l=window.google_image_requests;l&&l.length>10&&(window.google_image_requests=l.slice(-10));if(!this.playerState.L(128))if(this.UM.rM())this.publish("signatureexpired");else if(this.mediaElement&&c9(this.Tn),this.JT(), (this.playerState.L(64)||p)&&this.X7(ud(this.playerState,8)),this.R6.finished&&this.mediaElement){if(!this.Qr&&this.zz&&(await this.zz,this.playerState.L(128)))return;if(this.videoData.U){if(this.gE()&&this.videoData.U.L())return KJ(this);if(kF(this))p=this.nt,vM(p.videoData)&&!p.isAtLiveHead(p.getCurrentTime())&&p.Hk()&&p.Lz.seekTo(Infinity,{qE:"seektimeline_peggedToLive",seekSource:34});else if(vM(this.videoData)){p=this.getCurrentTime()l.video)?.sort((l,y)=>(y.U??0)-(l.U??0)); qbr(this.Tn,"M",a?.[0]?.U??(LHv(p.L)?p.L:0))}}Ki(p,a,l){this.A("html5_use_format_stream_ordinal")?this.Eb(p):this.Tn.Eb(p.L);this.videoData.C6=p;if(this.Qr&&a){a=this.XP;var y=this.Qr;if(y.L.L()){var S=g.ak(a.Y.experiments,"html5_max_quality_sel_upgrade"),n=S?p.L:g.f2[wX(p)],V=y.L.videoInfos[0].video.qualityOrdinal,Z=V!==0&&p.L===V;V=uW()>V;Z&&V||(S&&Z&&(n=Math.max(n,S)),S=Os(a,y.L?.videoInfos),Z=a.Lz.getPlaybackRate(),Z>1&&S&&(S=$av(a.Y.X,y.L.videoInfos,Z),p.L!==0&&S=480,a.A("html5_perf_cap_override_sticky")&&mro(a.U,a.A("html5_perserve_av1_perf_cap")))}}this.loader&&(p=this.loader,l=l||"",p.policy.L?Sf(p.j.L,l):Sf(p.L.X,l));this.jp()}getUserPlaybackQualityPreference(){return this.videoData.U&&!this.videoData.U.L()?wX(this.videoData.C6):rX[uW()]}hasSupportedAudio51Tracks(){return this.videoData.hasSupportedAudio51Tracks()}setUserAudio51Preference(p, a){this.getUserAudio51Preference()!==p&&(this.Xu("toggle51",{pref:p}),g.V2("yt-player-audio51",p,a?31536E3:2592E3),this.Um())}getUserAudio51Preference(){return this.videoData.getUserAudio51Preference()}setProximaLatencyPreference(p){const a=this.getProximaLatencyPreference();this.Xu("proxima",{pref:p});g.V2("yt-player-proxima-pref",p,31536E3);a!==p&&(p=this.nt,p.Tm=!0,p.Lz.seekTo(Infinity,{qE:"seektimeline_proximaSeekToHead",seekSource:34}))}getProximaLatencyPreference(){return xt()??0}isProximaLatencyEligible(){return this.videoData.isProximaLatencyEligible}zc(){this.videoData.videoId? this.TR.zc(this.videoData):this.Xu("povid",{})}E4(){this.videoData.videoId?this.TR.E4(this.videoData):this.Xu("piavid",{})}jp(){if(!this.nz()&&!this.playerState.L(128)&&this.videoData.U){if(this.videoData.U.L())SG(this);else{const y=R8(this);var p=this.videoData;a:{var a=y;var l=this.videoData.zn;if(a.L){for(const S of l){const n=S.getInfo(),V=g.f2[n.video.quality];if((!a.U||n.video.quality!=="auto")&&V<=a.L){a=S;break a}}a=l[l.length-1]}else a=l[0]}p.Tm=a;NL(this,y.reason,l5$(this,this.videoData.Tm))}if(this.A("html5_check_unstarted")? this.playerState.isOrWillBePlaying():this.isPlaying())this.nt.C=!1,this.playVideo()}}OZ(p,a){if(this.nz()||this.playerState.L(128))return!1;var l=!!this.videoData.U?.L(),y=l&&a?this.getCurrentTime()-this.oo():NaN;if(p.rG&&p.rG.id){var S=this.Tn;if(S.qoe){S=S.qoe;const V=[p.rG.id,isNaN(y)?"m":"t"];g.vy(S,g.CX(S.provider),"afi",V)}}if(l){if(a){var n=Is(this.nt);this.Xu("aswh",{id:p.id,xtags:p.xtags,bh:n.toFixed(3)})}this.loader.setAudioTrack(p,y,a);return!0}if(UKF(this)){a:{n=this.mediaElement.audioTracks(); for(a=0;a{try{Ker(this,S,a,l)}catch(n){g.tX(n),this.handleError(new g.cQ("fmt.unplayable",{msi:"1",ename:n&&typeof n==="object"&&"name"in n?String(n.name):void 0,trg:"setmediasrc"},1))}}; this.Gp()&&this.Kz.U()==="open"?p(this.Kz):vYo(this.Kz,p)}eK(p){this.Xp.set(p.initData,p);this.UQ&&(this.UQ.eK(p),this.A("html5_eme_loader_sync")||this.Xp.remove(p.initData))}Wj(p){this.videoData.F5=g.F_("auto",p,!1,"u");SG(this)}X5(p){var a=p.reason,l=p.L.info,y=p.token,S=p.videoId,n=this.Tn;const V=this.videoData;if(l!==V.j){var Z=!V.j;V.j=l;a!=="m"&&a!=="t"&&(a=Z?"i":"a");var z=a==="m"||a==="t";this.Y.experiments.Cz("html5_refactor_sabr_audio_format_selection_logging")?this.Sq=new Tg(V,l,a,"", y,S):(a=new Tg(V,l,a,"",y),n.qoe&&(n=n.qoe,l=g.CX(n.provider),ANr(n,l,a)));this.publish("internalaudioformatchange",V,!Z&&z)}this.pC();this.nt.X5(p.L.index)}f6(p){this.publish("localmediachange",p)}n9(p={}){this.loader?.n9(this.Y,cz(this.videoData),p)}rM(){return this.UM.rM()}ol(p){this.d$(new g.cQ("staleconfig",{reason:p}))}handleError(p){this.UM.handleError(p)}x4(){return this.UM.x4()}Na(p){this.nt.Na(p)}async UU(p=!1,a=!1){this.loader&&this.loader.BH();this.loader&&this.loader.nz()&&$B(this);this.A("html5_enable_vp9_fairplay")&& this.FF()&&this.videoData.L?.Fu();this.X7(ud(this.playerState,2048));this.publish("newelementrequired");p&&await KJ(this);this.videoData.va()&&this.loader?.Ws&&!kF(this)&&(this.isAtLiveHead()&&vM(this.videoData)?this.seekTo(Infinity,{qE:"videoPlayer_getNewElement"}):this.videoData.IX&&this.loader&&(p=this.loader,p.r7.va&&(p.r7.IX||p.r7.X||p.r7.isPremiere?(p.seek(0,{qE:"loader_resetSqless"}),p.videoTrack.G=!0,p.audioTrack.G=!0,p.videoTrack.X=!0,p.audioTrack.X=!0):K1(p.r7)&&Kc(p))));a&&this.seekTo(0, {seekSource:105});this.playerState.L(8)&&this.playVideo()}b1(p){this.Xu("hgte",{ne:+p});this.videoData.K=!1;p&&this.UU();this.loader&&d9A(this.loader)}T5(p){this.Xu("newelem",{r:p});this.UU()}pauseVideo(p=!1){if((this.playerState.L(64)||this.playerState.L(2))&&!p)if(this.playerState.L(8))this.X7(Z3(this.playerState,4,8));else if(this.Zv())tG(this);else return;this.playerState.L(128)||(p?this.X7(ud(this.playerState,256)):this.X7(Z3(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause(); g.aC(this.videoData)&&this.loader&&this.loader?.w7(!1)}stopVideo(){this.pauseVideo();this.loader&&(this.loader?.w7(!1),this.loader.C0())}Os(p=!1,a=!1){this.Gp()&&a?this.mediaElement?.Os():this.mediaElement?.stopVideo();Ee(this);$B(this);this.playerState.L(128)||(p?this.X7(jm(jm(ud(this.playerState,4),8),16)):this.X7(tV(this.playerState)));this.videoData.videoId&&this.Y.QY.remove(this.videoData.videoId)}seekTo(p,a={}){this.playerState.L(2)&&tG(this);a.Oh7&&this.X7(ud(this.playerState,2048));if((a.seekSource=== 58||a.seekSource===60)&&this.A("html5_update_vss_during_gapless_seeking")){var l=this.Tn;l.L&&(l=l.L,a.seekSource===58?l.L.update():l.U&&(l.D(),pq(l).send(),l.j=NaN))}this.nt.seekTo(p,a);this.jD.sync()}iP(p){this.QQ.j.S=(0,g.h)();this.playerState.L(32)||(this.X7(ud(this.playerState,32,p?.seekSource)),this.playerState.L(8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.rq()}qD(p){p=p?.seekSource;this.playerState.L(32)?(this.X7(Z3(this.playerState,16,32,p)),this.publish("endseeking")):this.playerState.L(2)|| this.X7(ud(this.playerState,16,p));p=this.QQ.j;var a=this.videoData,l=this.playerState.isPaused();if(a.clientPlaybackNonce&&!isNaN(p.L)){if(Math.random()<.01){l=l?"pbp":"pbs";const y={startTime:p.L};a.D&&(y.cttAuthInfo={token:a.D,videoId:a.videoId});JM("seek",y);g.ew({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(p.S)||KU("pl_ss",p.S,"seek");KU(l,(0,g.h)(),"seek")}p.reset()}}KP(p){this.qD(p)}Eu(){this.publish("SEEK_COMPLETE")}e_(p){var a=this.TR,l=this.videoData.clientPlaybackNonce,y=this.playerType; if(p.scope===4){var S=p.type;if(S){var n=a.jb(),V=n.getVideoData().clientPlaybackNonce;y===1&&(V=l);if(y=X1f(a,V)){if(l=y.getVideoData())p.writePolicy===2&&l.sabrContextUpdates.has(S)||(p.sendByDefault&&l.Ps.add(S),l.sabrContextUpdates.set(S,p)),a.A("html5_enable_t1_enf_on_sabr")&&(p=S===5,S=bnh(l.playerResponse),p?(p=S?1:0,E7(p,"m.p_",{}),C8("MBSTAT",p)):p=1,p===0&&g.v0(a.pz,"onAbnormalityDetected"))}else n.Xu("scuset",{ncpf:"1",ccpn:V,crcpn:l})}else g.tX(Error("b/380308491: contextUpdateType is undefined"))}}Oq(){if(this.playerType=== 2)return this.TR.Oq("")}getCurrentTime(p=!1){return this.nt.getCurrentTime(p)}gM(){return this.nt.gM()}bG(){return this.nt.bG()}Pv(){return this.bG()}KC(){return this.nt.KC()}getPlaylistSequenceForTime(p){return this.videoData.getPlaylistSequenceForTime(p-this.oo())}R1(){let p=NaN;this.mediaElement&&(p=this.mediaElement.R1());return p>=0?p:this.getCurrentTime()}By(){if(this.videoData.L?.By)return this.videoData.L.By(this.getCurrentTime()-this.oo());if(this.mediaElement){var p=this.mediaElement.Bs(); if(p&&(p=p.getTime(),!isNaN(p)))return p/1E3+this.getCurrentTime()}return NaN}getDuration(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.oo():this.UE()?this.UE():0}Au(){const p=new xqZ;if(this.loader){hVr(this.s6,p,this.Y.Mc());var a=this.loader;if(a.Kz&&a.Kz.X&&!a.Kz.Cv()&&(p.lx=ob(a.videoTrack),p.S=ob(a.audioTrack),a.policy.U)){const l=Ti(a.videoTrack),y=Ti(a.audioTrack),S=Bt(a.Kz.S.gP(),"_",5),n=Bt(a.Kz.L.gP(),"_",5);Object.assign(p.L,{lvq:l,laq:y,lvb:S,lab:n})}p.bandwidthEstimate= c5(a.C);a.audioTrack.C?.flush();a.videoTrack.C?.flush()}else this.mediaElement&&(p.lx=gH(this.mediaElement));p.xY=this.xY;p.Zo=this.Zo;p.U=this.isAtLiveHead()&&this.isPlaying()?NU(this):NaN;a=this.nt;a=a.L?Rt(a.L):0;p.j=a;return p}yI(p,a){this.Zo+=p;this.xY+=a}WH(){return this.mediaElement?g.aC(this.videoData)?1:HG(this.videoData)?this.isAtLiveHead()||this.Hk()?1:this.nt.WH():this.mediaElement.WH():0}jP(){var p=this.n2;const a=jG(p,"bandwidth"),l=jG(p,"bufferhealth"),y=jG(p,"livelatency"),S=jG(p, "networkactivity"),n=Ov(p,"bandwidth"),V=Ov(p,"bufferhealth"),Z=Ov(p,"livelatency");p=Ov(p,"networkactivity");var z=this.uO();const d=z.droppedVideoFrames;z=z.totalVideoFrames;var G=this.getCurrentTime();if(this.UQ){var B="IT/"+(this.UQ.L.getInfo()+"/"+wX(this.dM()));B+="/"+this.UQ.getInfo()}else B="";var c=this.isGapless(),w=this.f0(),X=this.W2(),v=g.iq(this),I=this.getPlayerState(),u=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var m=0;var M="";if(this.I4){if(this.I4.CO){M="D,";break a}m= this.I4.Fw;M=this.I4.x3.substring(0,4)}m>0?(m=`AD${m}, `,M&&(m+=`${M}, `),M=m):M=""}return{Nl:n,sS:V,currentTime:G,qk:B,droppedVideoFrames:d,isGapless:c,f0:w,uj:X,W_:a,gF:l,B_:y,QA:S,H_:Z,FZ:p,s_:v,playerState:I,n$:u,O5:M,totalVideoFrames:z}}mS(p=!1){const a={};if(p){Object.assign(a,this.Tn.mS());this.mediaElement&&(Object.assign(a,this.mediaElement.mS()),p=this.uO(),a.dvf=p.droppedVideoFrames,a.tvf=p.totalVideoFrames);this.loader&&Object.assign(a,this.loader.mS());this.UQ&&(a.drm=JSON.stringify(this.UQ.mS())); a.state=this.playerState.state.toString(16);this.playerState.L(128)&&(a.debug_error=JSON.stringify(this.playerState.Kq));this.g3()&&(a.prerolls=this.AJ.join(","));this.videoData.E6&&(a.ismb=this.videoData.E6);this.videoData.latencyClass!=="UNKNOWN"&&(a.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(a.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)a.is_mosaic= 1;this.videoData.cotn&&(a.is_offline=1,a.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(a.playerResponseCpn=this.videoData.playerResponseCpn);this.TR.isOrchestrationLeader()&&(a.leader=1);this.videoData.isLivePlayback&&(this.videoData.L&&CF(this.videoData.L)&&(a.segduration=CF(this.videoData.L)),p=this.nt,a.lat=p.K?p.K.j.U():0,a.liveutcstart=this.videoData.liveUtcStartSeconds);a.relative_loudness=this.videoData.bf.toFixed(3);if(p=g.iq(this))a.optimal_format=p.video.qualityLabel;a.user_qual= uW();a.release_version="youtube.player.web_20250923_21_RC00"}a.debug_videoId=this.videoData.videoId;return a}addCueRange(p){this.LN([p])}removeCueRange(p){this.jD.mM([p])}xB(){var p=this.jD;if(p.Lz.O().A("html5_sort_cueranges_on_update")&&!(p.iN().length<=0||p.nz())){var a=p.L;a.array.sort(a.L)}p.sync()}UI(p,a){return this.jD.UI(p,a)}LN(p,a){this.jD.OE(p,a)}uJ(p){this.jD.mM(p)}iN(){return this.jD.iN()||[]}W6(){return this.Vz}gE(){return this.visibility.gE()}H1(){this.mediaElement&&this.mediaElement.H1()}mA(){DS(this)}togglePictureInPicture(){this.mediaElement&& this.mediaElement.togglePictureInPicture()}bP(){g.uY(this.AB)}Gs(){this.rq();this.publish("onLoadProgress",this.WH())}bv(p){this.e8().L.Zy(KpZ)&&jY(this);var a=p.target.jE();if(this.mediaElement&&this.mediaElement.jE()&&this.mediaElement.jE()===a){yfA(this,p.type);switch(p.type){case "error":var l=hz(this.mediaElement)||"",y=this.mediaElement.yh();if(l==="capability.changed"){this.A("html5_restart_on_capability_change")?(this.Xu("capchg",{msg:y}),this.UU(!0)):KJ(this);return}if(this.mediaElement.hasError()&& vx(this.UM,l,{msg:y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Zd()===4){this.Os();v6(this,"unplayable");return}break;case "durationchange":l=this.mediaElement.getDuration();isFinite(l)&&(!this.Kz||l>0)&&l!==1&&this.aQ(l);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());l=this.jD;l.started=!0;l.sync();this.Tn.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.e8().L.Zy(qF)&&jY(this);HJE(this); this.publish("onLoadedMetadata");hsM(this);l=this.By();this.videoData.hn&&(this.videoData.hn=l);break;case "loadstart":hsM(this);break;case "progress":case "suspend":this.yD.j();break;case "seeked":this.loader?.r$();break;case "playing":this.e8().L.Zy(qF)&&jY(this);this.QQ.iS("plev");this.SJ&&!kF(this)&&(this.SJ=!1,this.isAtLiveHead()||this.seekTo(Infinity,{qE:"videoplayer_onPlaying"}));break;case "timeupdate":this.e8().L.Zy(qF)&&jY(this);l=this.mediaElement&&!this.mediaElement.getCurrentTime();y= this.mediaElement&&this.mediaElement.U()===0;if(l&&(!this.Jx||y))return;this.Jx=this.Jx||!!this.mediaElement.getCurrentTime();LV(this);this.rq();if(!this.mediaElement||this.mediaElement.jE()!==a)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.D().length>0&&this.mediaElement.xo().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.A("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()|| this.mediaElement.U()>2||!this.mediaElement.isSeeking()&&Dq(this.mediaElement.xo(),this.mediaElement.getCurrentTime()))&&(l=this.mediaElement.mS(),l.bh=gH(this.mediaElement).toFixed(3),this.Xu("uwe",l));break;case "resize":HJE(this);this.videoData.S&&this.videoData.S.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.F3&&this.playerState.L(8)&&!this.playerState.L(1024)&&this.getCurrentTime()===0&&g.i3){v6(this,"safari_autoplay_disabled"); return}}if(this.mediaElement&&this.mediaElement.jE()===a){aFq(this.nt,p);this.publish("videoelementevent",p);a=this.playerState;y=this.Qv;var S=this.mediaElement;l=this.videoData.clientPlaybackNonce;if(!a.L(128)){var n=a.state;S=S?S:p.target;var V=S.getCurrentTime();if(!a.L(64)||p.type!=="ended"&&p.type!=="pause"){var Z=S.getDuration();Z=S.isEnded()||V>1&&Math.abs(V-Z)<1.1;var z=p.type==="pause"&&S.isEnded();V=p.type==="ended"||p.type==="waiting"||p.type==="timeupdate"&&!a.L(4)&&!Pb(y,V);if(z||Z&& V)S.Rc()>0&&S.jE()&&(n=14);else switch(p.type){case "error":hz(S)&&(n|=128);break;case "pause":a.L(256)?(n^=256)||(n=64):a.L(32)||a.L(2)||a.L(4)||(n=4,a.L(1)&&a.L(8)&&(n|=1));break;case "playing":Z=n;n=(n|8)&-1093;Z&4?(n|=1,Yg(y,S,!0)):Pb(y,S.getCurrentTime())&&(n&=-2);a.L(1)&&Yg(y,S)&&(n|=1);break;case "seeking":n|=16;a.L(8)&&(n|=1);n&=-3;break;case "seeked":n&=-17;Yg(y,S,!0);break;case "waiting":a.L(2)||(n|=1);Yg(y,S);break;case "timeupdate":Z=a.L(16),z=a.L(4),(a.L(8)||Z)&&!z&&Pb(y,S.getCurrentTime())&& (n=8),Yg(y,S)&&(n|=1)}}y=n;n=null;y&128&&(n=p.target,z=hz(n),V=1,z?(z==="capability.changed"&&(V=2),S="GENERIC_WITHOUT_LINK",Z=n.mS(),Z.mediaElem="1",Z.trg="melem",/AUDIO_RENDERER/.test(n.yh())&&(S="HTML5_AUDIO_RENDERER_ERROR"),n={errorCode:z,errorMessage:g.oj[S]||"",RS:S,pY:ki(Z),Y4:V,cpn:a.Kq?a.Kq.cpn:""}):n=null,n&&(n.cpn=l));a=tV(a,y,n)}!this.playerState.L(1)&&a.L(1)&&WJ(this,"evt"+p.type);this.X7(a)}}}HK(p){p=p.L.availability==="available";p!==this.Vz&&(this.Vz=p,this.publish("airplayavailabilitychange"))}Ra(){var p= (0,g.h)();const a=this.mediaElement.gE();this.Xu("airplay",{ia:a});!a&&!isNaN(this.Uc)&&p-this.Uc<2E3||(this.Uc=p,a!==this.gE()&&(p=this.visibility,p.L!==a&&(p.L=a,p.cX()),this.Xu("airplay",{rbld:a}),this.Um()),this.publish("airplayactivechange"))}Ma(p){if(this.loader){var a=this.loader,l=a.U,y=a.getCurrentTime();const S=Date.now()-l.C;l.C=NaN;l.Xu("sdai",{adfetchdone:p,d:S});p&&!isNaN(l.G)&&l.S!==3&&AE(l.loader,y,l.G,l.D);l.policy.S?l.X=NaN:l.j=NaN;o_(l,4,l.S===3?"adfps":"adf");dJ(a)}}k9(){g.ix(this.DR); this.q$.stop();this.videoData.UO=!0;this.Y.K9=!0;this.Y.VY=0;var p=this.UM;if(p.videoData.S){var a=p.g7.X,l=p.videoData.S.mT;a.j.has(l)&&(a.j.delete(l),a.S=!0)}p.L.stop();this.Hw();this.playerState.L(8)&&this.X7(jm(this.playerState,65));this.ot=!1;this.Tn.IK();this.nF.JP();this.publish("playbackstarted");(p=g.o1("yt.scheduler.instance.clearPriorityThreshold"))?p():jc(0)}Hw(){var p=this.TR.EE(),a={};const l={};!UV("pbs",this.QQ.timerName)&<.measure&<.getEntriesByName&&(lt.getEntriesByName("mark_nr")[0]? toE("mark_nr"):toE());p.videoId&&(a.videoId=p.videoId);p.clientPlaybackNonce&&!this.A("web_player_early_cpn")&&(a.clientPlaybackNonce=p.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(l.isPausedOnLoad=!0);l.itag=p.S?Number(p.S.itag):-1;p.Dd&&(l.preloadType=String(this.M6?2:1));a.liveStreamMode=SPM[ht(p)];a.playerInfo=l;this.QQ.infoGel(a);if(this.loader){p=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(p.U&&(a=window.performance.getEntriesByName(p.U), a.length&&(a=a[0],p.tick("vri",a.fetchStart),p.tick("vdns",a.domainLookupEnd),p.tick("vreq",a.requestStart),p.tick("vrc",a.responseEnd))),p.S&&(a=window.performance.getEntriesByName(p.S),a.length&&(a=a[0],p.tick("ari",a.fetchStart),p.tick("adns",a.domainLookupEnd),p.tick("areq",a.requestStart),p.tick("arc",a.responseEnd))));p=p.ticks;for(const y in p)p.hasOwnProperty(y)&&this.QQ.tick(y,p[y])}}rq(p=!1){if(this.mediaElement&&this.videoData){Cjh(this.nt,this.isPlaying());var a=this.getCurrentTime(); this.loader&&(this.playerState.L(4)&&g.aC(this.videoData)||this.playerState.L(32)&&Yc(this.videoData)||gvM(this.loader,a),this.A("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-this.loader.currentTime)>10&&this.Xu("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.Kx()},!0));a>5&&(this.nt.U=a);var l=g.mA();l?g.XY.bk(this.BA):g.tO(this.BA);var y=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!y||this.videoData.Ic())&&!this.playerState.L(128)){const S= ()=>{if(this.mediaElement&&!this.playerState.L(128)){this.Y.Mc()&&yfA(this,"pfx");var n=this.getCurrentTime();this.A("html5_buffer_underrun_transition_fix")&&(n-=this.oo());var V=gH(this.mediaElement),Z=this.playerState.L(8),z=Pb(this.Qv,n),d=lW(this.Qv,n,(0,g.h)(),V);Z&&z?this.X7(jm(this.playerState,1)):Z&&d?(Z=this.getDuration(),z=vM(this.videoData),Z&&Math.abs(Z-n)<1.1?(this.Xu("setended",{ct:n,bh:V,dur:Z,live:z}),this.mediaElement.V9()?this.seekTo(0,{qE:"videoplayer_loop",seekSource:37}):this.uS()): (this.playerState.isBuffering()||WJ(this,"progress_fix"),this.X7(ud(this.playerState,1)))):(Z&&!z&&!d&&n>0&&(Z=(Date.now()-this.U3)/1E3,z=this.getDuration(),n>z-1&&this.Xu("misspg",{t:n.toFixed(2),d:z.toFixed(2),r:Z.toFixed(2),bh:V.toFixed(2)})),this.playerState.isPaused()&&this.playerState.isBuffering()&&gH(this.mediaElement)>5&&this.X7(jm(this.playerState,1)));this.rq()}}; this.mediaElement.D().length===0?this.BA=l?g.XY.zD(S,100):g.jQ(S,100):this.BA=l?g.XY.zD(S,500):g.jQ(S,500)}this.videoData.ir=a;!p&&this.isPlaying()&&yDA(this);LVO(this.XP,this.Qr,this.mB(),this.isBackground())&&SG(this);this.publish("progresssync",p);y&&this.videoData.Ic()&&this.publish("onVideoProgress",this.getCurrentTime())}}ER(){this.f1("ad.rebuftimeout",2,"RETRYABLE_ERROR",`vps.${this.playerState.state.toString(16)}`)}W2(){return this.Tn.W2()}oS(){return this.loader?this.loader.oS():B5(this.s6, !0)}X7(p){if(!g.p_(this.playerState,p)){var a=new g.e2(p,this.playerState);this.playerState=p;zhZ(this);var l=!this.Hd.length;this.Hd.push(a);var y=this.mediaElement&&this.mediaElement.isSeeking();a.j5(1)&&this.loader&&AEf(this.loader);y=a.oldState.S()&&!y;if(a.j5(1)&&y&&this.playerState.L(8)&&!this.playerState.L(64)&&this.loader&&(y=this.loader,y.RK=!0,y.policy.Ba&&y.Kz&&y.Xu("lr_rb",{c:y.getCurrentTime(),s:y.isSeeking(),ab:Bt(y.Kz.L.gP()),ala:gt(y.audioTrack)?.HZ(),alr:y.audioTrack.S?.HZ(),vb:Bt(y.Kz.S.gP()), vla:gt(y.videoTrack)?.HZ(),vlr:y.videoTrack.S?.HZ()}),y.Lz.Gj()!==0&&y.Xu("sps_rebuffer",{c:y.getCurrentTime()}),this.mediaElement&&gH(this.mediaElement)>=5)){y=this.XP;var S=this.Qr;!S.videoData.S||y.A("html5_disable_performance_downgrade")?y=!1:(Date.now()-y.G>6E4&&(y.S=0),y.S++,y.G=Date.now(),y.S!==4?y=!1:(P9$(y,S.videoData.S),y=!0));y&&SG(this)}(y=g.ak(this.Y.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&p.L(1)&&(p.L(8)||p.L(16))?this.DS.start(y):this.DS.stop();(qJ(a,8)<0||a.j5(1024))&& this.q$.stop();!a.j5(8)||this.videoData.UO||a.state.L(1024)||this.q$.start();a.state.L(8)&&qJ(a,16)<0&&!a.state.L(32)&&!a.state.L(2)&&this.playVideo();a.state.L(2)&&HG(this.videoData)&&(this.aQ(this.getCurrentTime()),this.rq(!0));a.j5(2)&&(this.Ss(!0),this.Y.Mc()&&this.A("html5_sabr_parse_live_metadata_playback_boundaries")&&Yc(this.videoData)&&this.videoData.L&&(p={minst:`${this.videoData.L.vk}`,cminst:`${this.videoData.L.NE()+this.oo()}`,maxst:`${this.videoData.L.HG}`,hts:`${this.videoData.L.jl}`, cmaxst:`${this.videoData.L.UE()+this.oo()}`},this.Xu("sabrSeekableBoundaries",p)));a.j5(128)&&this.Os();this.videoData.L&&this.videoData.isLivePlayback&&!this.gT&&(qJ(a,8)<0?(p=this.videoData.L,p.D&&p.D.stop()):a.j5(8)&&this.videoData.L.resume());p=this.nt;p.UO.X.JP();if(p.mediaElement)if(a.oldState.S()&&gd(a.state)&&a.state.isBuffering()){y=p.mediaElement.getCurrentTime();S=p.mediaElement.xo();var n=p.A("manifestless_post_live_ufph")||p.A("manifestless_post_live")?Jh(S,Math.max(y-3.5,0)):Jh(S,y- 3.5);n>=0&&y>S.end(n)-1.1&&n+10?(m2(p.Lz,p.getCurrentTime()+p.videoData.limitedPlaybackDurationInSeconds),p.ac=!0):p.videoData.isLivePlayback&&p.videoData.endSeconds>0&&(m2(p.Lz,p.getCurrentTime()+p.videoData.endSeconds),p.ac=!0));p=this.Tn;if(a.j5(1024)|| a.j5(512)||a.j5(4))p.S&&(y=p.S,y.S>=0||(y.L=-1,y.delay.stop())),p.qoe&&(y=p.qoe,y.G||(y.j=-1));p.provider.videoData.enableServerStitchedDai&&p.Iv?p.U.get(p.Iv)?.UO(a):p.L&&p.L.UO(a);if(p.qoe){y=p.qoe;S=a.state;n=g.CX(y.provider);var V=y.getPlayerState(S),Z=n,z=S.seekSource||void 0;if(V!==y.Ch){y.Sl||Z=10&&y.playTimeSecs<=180&&(y.L.set("qoealert",["1"]),y.NO=!0)), V!=="B"||y.Ch!=="PL"&&y.Ch!=="PB"||(y.isBuffering=!0),y.U=Z);y.Ch==="PL"&&(V==="B"||V==="S")||y.provider.Y.Mc()?I5(y,Z):(y.Fu||V!=="PL"||(y.Fu=!0,xG(y,Z,y.provider.Lz.Au())),fe(y,Z));V==="PL"&&y.zn.JP();var d=[V];V==="S"&&z&&d.push(`${"ss"}.${z}`);g.vy(y,Z,"vps",d);y.Ch=V;y.UO=Z;y.U=Z;y.X=!0}Z=S.Kq;S.L(128)&&Z&&(Z.pY=Z.pY||"",Ah(y,n,Z.errorCode,Z.Y4,Z.pY));(S.L(2)||S.L(128))&&y.reportStats(n);S.isPlaying()&&!y.G&&(y.j>=0&&y.L.set("user_intent",[y.j.toString()]),y.G=!0);v7(y)}p.S&&(p=p.S,apF(p),p.playerState= a.state,p.S>=0&&a.j5(16)&&p.seekCount++,a.state.isError()&&p.send());if(l&&!this.nz())try{for(const B of this.Hd){var G=this.jD;if(G.started&&(G.sync(),B.oldState.L(16))){a=G;const c=rt$(a.L,Math.max(a.U-2E3,0));!isNaN(c)&&c<0x7ffffffffffff&&a.j.start()}this.publish("statechange",B)}}finally{this.Hd.length=0}}}XC(){this.QQ.tick("qoes")}MH(){this.nt.MH()}hx(p,a,l,y="LICENSE"){a:{var S=this.UM;l=l.substring(0,256);let n=xW(a);p==="drm.keyerror"&&this.UQ&&this.UQ.U.keys.length>1&&S.j<96&&(p="drm.sessionlimitexhausted", n=!1);const V=S.g7.experiments.Cz("html5_retry_on_drm_unavailable"),Z=S.g7.experiments.Cz("html5_retry_on_drm_key_error"),z=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(V&&p==="drm.unavailable"||Z&&p==="drm.keyerror"&&!l.match(z))S.d$("qoe.restart",{retryOnDrmError:1,e:p,detail:l}),S.Lz.UU(!0);else{if(n)if(S.videoData.S&&S.videoData.S.video.isHdr())x8(S,p);else{if(S.Lz.f1(p,a,y,l),Vsr(S,{detail:l}))break a}else S.d$(p,{detail:l});p==="drm.sessionlimitexhausted"&&(S.Xu("retrydrm",{sessionLimitExhausted:1}), S.j++,yTh(S.Lz))}}}qo(){var p=g.ak(this.Y.experiments,"html5_license_constraint_delay");const a=Fp();p&&a?(p=new g.SF(()=>{this.jp();DS(this)},p),g.H(this,p),p.start()):(this.jp(),DS(this))}PS(p){this.publish("heartbeatparams",p)}rX(p){this.Xu("keystatuses",Gs(p)); var a="auto",l=!1;this.videoData.S&&(a=this.videoData.S.video.quality,l=this.videoData.S.video.isHdr());a:{switch(a){case "highres":case "hd2880":a="UHD2";break;case "hd2160":case "hd1440":a="UHD1";break;case "hd1080":case "hd720":a="HD";break;case "large":case "medium":case "small":case "light":case "tiny":a="SD";break;default:a="";break a}l&&(a+="HDR")}a=du(p)?$X(p,a):p.j.includes(a);if(this.A("html5_enable_vp9_fairplay")){if(l){if(!p.G){this.videoData.hf||(this.videoData.hf=!0,this.Xu("drm",{dphdr:1}), this.UU(!0));return}if(this.UQ?.L.L()?this.UQ?.NO():!a){this.Xu("drm",{dshdr:1});x8(this.UM);return}}if(this.UQ?.L.L())return}else{const y=p.G&&a;if(l&&!y){x8(this.UM);return}}if(l=!a)l=!($X(p,"AUDIO")&&$X(p,"SD"));l&&(p=Gs(p),this.Cj?(this.publish("drmoutputrestricted"),this.A("html5_report_fatal_drm_restricted_error_killswitch")||this.f1("drm.keyerror",2,void 0,`info.${p}`)):(this.Cj=!0,this.d$(new g.cQ("qoe.restart",{retrydrm:1,...p})),SG(this),yTh(this)))}O0(){if(!this.videoData.UO&&this.mediaElement&& !this.isBackground()){var p="0";this.mediaElement.U()>0&&gH(this.mediaElement)>=5&&this.videoData.U&&this.videoData.U.L()&&(this.X7(ud(this.playerState,1)),WJ(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),p="1");zhZ(this);var a=this.videoData.U;p={restartmsg:p,mfmt:!DF(this.videoData),mdrm:!(!(a&&a.videoInfos&&a.videoInfos.length&&a.videoInfos[0].uf)||this.UQ),mfmtinfo:!this.videoData.S,prerolls:this.g3()?this.AJ.join(","):"0"};if(this.UQ){a=this.UQ;if(a.U.size<=0){let l="ns;"; a.UO||(l+="nr;");a=l+=`ql.${a.j.length}`}else a=Gs(a.U.values().next().value),a=ki(a);p.drmp=a}Object.assign(p,this.loader?.mS()||{});Object.assign(p,this.mediaElement?.mS()||{});this.Tn.d$("qoe.start15s",ki(p));this.publish("loadsofttimeout")}}aQ(p){this.videoData.lengthSeconds!==p&&(this.videoData.lengthSeconds=p,DS(this))}Ss(p=!1,a){if(!this.LG)if(UV("att_s","player_att")||Jl("att_s",void 0,"player_att"),this.A("use_rta_for_player"))(async()=>{if(!p||await g.CzE())try{const y=H_$(this.Tn);if(!y)throw Error(); const S=await g.Iiq({cpn:this.videoData.clientPlaybackNonce,encryptedVideoId:this.videoData.videoId||""},3E4);if(this.LG)throw Error();if(!S.challenge)throw g.tX(Error("Not sending attestation ping; no attestation challenge string")),Error();this.LG=!0;const n=[S.challenge];if(S.error){const V=NKF(),Z=w7v(V).get(S.error)||0;n.push(`${"r1c"}=${Z}`)}else S.webResponse&&n.push(`${"r1a"}=${S.webResponse}`);S.adblockReporting?.reportingStatus!==void 0&&n.push(`${"r6a"}=${S.adblockReporting.reportingStatus}`); S.adblockReporting?.broadSpectrumDetectionResult!==void 0&&n.push(`${"r6b"}=${S.adblockReporting.broadSpectrumDetectionResult}`);y(n.join("&"));Jl("att_f",void 0,"player_att")}catch(y){Jl("att_e",void 0,"player_att")}})().then(()=>{a?.()}); else{var l=new g.AC$(this.videoData);if("c1a"in l.Po&&!g.f0.isInitialized()){Jl("att_wb",void 0,"player_att");this.GG===2&&Math.random()<.01&&g.tX(Error("Botguard not available after 2 attempts"));if(p)return;if(this.GG<5){this.MY.JP();this.GG++;return}}(l=g.snr(l))?(Jl("att_f",void 0,"player_att"),oGM(this.Tn,l),this.LG=!0):Jl("att_e",void 0,"player_att")}}cG(p=!1){return vM(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Hk()||g.aC(this.videoData))?this.getCurrentTime(): this.UE(p)}c8(){return this.NE()}UE(p=!1){return this.nt.UE(p)}NE(){return this.nt.NE()}oo(){return this.nt?this.nt.oo():0}getStreamTimeOffset(){return this.nt?this.nt.getStreamTimeOffset():0}Wk(){return this.getStreamTimeOffset()===0?this.oo():this.getStreamTimeOffset()}setPlaybackRate(p){this.playbackRate!==p&&Os(this.XP,this.videoData.U?.videoInfos)&&(this.playbackRate=p,SG(this));this.playbackRate=p;this.mediaElement&&this.mediaElement.setPlaybackRate(p)}getPlaybackRate(){return this.playbackRate}getPlaybackQuality(){let p= "unknown";if(this.videoData.S&&(p=this.videoData.S.video.quality,p==="auto"&&this.mediaElement)){const a=this.nN();a&&a.videoHeight>0&&(p=rO(a.videoWidth,a.videoHeight))}return p}isHdr(){return!!(this.videoData.S&&this.videoData.S.video&&this.videoData.S.video.isHdr())}sendVideoStatsEngageEvent(p,a){var l=this.Tn;l.L?(l=yV(l.L,"engage"),l.Sl=p,l.send(a)):a&&a()}Et(p){return this.Tn.Et(p)}isAtLiveHead(p,a=!1){return vM(this.videoData)&&(this.Rs||a)?this.nt.isAtLiveHead(p):!1}yP(){const p=this.UE(), a=this.getCurrentTime();var l;(l=!vM(this.videoData))||(l=this.nt,l=!(l.L&&l.L.U));return l||this.Hk()||isNaN(p)||isNaN(a)?0:Math.max(0,p-a)}Z2(p){(this.Rs=p)||this.q$.stop();if(this.videoData.L)if(p)this.videoData.L.resume();else{var a=this.videoData.L;a.D&&a.D.stop()}this.loader&&(a=this.videoData.A("html5_disable_preload_for_ssdai_with_preroll")&&this.Sr()&&this.videoData.isLivePlayback,p&&!a?this.loader.resume():this.loader?.w7(!0));this.playerState.L(2)||p?this.playerState.L(512)&&p&&this.X7(jm(this.playerState, 512)):this.X7(ud(this.playerState,512));a=this.Tn;a.qoe&&(a=a.qoe,g.vy(a,g.CX(a.provider),"stream",[p?"A":"I"]))}Pz(p){this.Tn.d$("player.exception",ki({n:p.name,m:p.message}))}CC(p){this.Tn.CC(p)}vA(p){this.Tn.vA(p)}Gc(p){this.Tn.Gc(p)}Xa(p){this.Tn.Xa(p)}sG(p,a,l,y){this.Tn.sG(p,a,l,y)}dt(){this.Xu("hidden",{},!0)}uO(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}Rn(){return this.loader?this.loader.Rn():!0}setLoop(p){this.loop=p;this.mediaElement&&!g.ur(this.Y)&&this.mediaElement.setLoop(p)}V9(){return this.mediaElement&& !g.ur(this.Y)?this.mediaElement.V9():this.loop}du(p){this.Xu("timestamp",{o:p.toString()});this.nt.du(p)}a4(p){this.QQ.tick(p)}Ut(p){return this.QQ.Ut(p)}iS(p){this.QQ.iS(p)}Xu(p,a,l=!1){this.Tn.Xu(p,a,l)}cj(p,a,l=!1){this.Tn.Xu(p,a,l)}d$(p){this.Tn.d$(p.errorCode,ki(p.details));p=p.errorCode;if(this.videoData.isLivePlayback&&(p==="qoe.longrebuffer"||p==="qoe.slowseek")||p==="qoe.restart")p=this.loader?WZM(this.loader.videoTrack):{},this.Xu("lasoe",Object.assign(this.loader?WZM(this.loader.audioTrack): {},this.Kz?.L?.B6())),this.Xu("lvsoe",Object.assign(p,this.Kz?.S?.B6()));this.A("html5_log_centralized_player_time")&&this.Xu("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:this.loader?.Kx()})}lS(p,a,l){this.Tn.lS(p,a,l)}e0(p,a,l,y,S,n,V,Z){if(this.videoData.L?.isLive){var z=a.playerType===2?a:p,d=p.videoData.videoId,G=a.videoData.videoId;if(d&&G){var B=this.Tn;if(B.qoe){var c=B.qoe,w=p.cpn,X=a.cpn,v=z.videoData.g$,I=c.provider.videoData.clientPlaybackNonce;const u=c.provider.videoData.videoId, m=X!==I&&G!==u;I=w!==I&&d!==u;c.reportStats();c.adCpn&&c.adCpn!==w||(c.adCpn=I?w:"",c.ES=I?d:"",c.adFormat=I?v:void 0,vWe(c,n?4:S?2:0,X,G,y),c.reportStats(),c.adCpn=m?X:"",c.ES=m?G:"",c.adFormat=m?v:void 0,vWe(c,n?5:S?3:1,w,d,l),c.reportStats())}l=B;S=p.cpn;l.U.has(S)?(n=l.U.get(S),pq(n,!0).send(),n.D(),S!==l.provider.videoData.clientPlaybackNonce&&(Ix(n),l.L?.C(),l.U.delete(S))):(l.Iv=l.provider.videoData.clientPlaybackNonce,l.Iv&&l.L&&(l.U.set(l.Iv,l.L),pq(l.L).send(),l.L.D()));l=a.cpn;z=z.videoData; y-=this.Wk();B.U.has(l)?(z=B.U.get(l),y=z.U&&isNaN(z.X)?Zw(z):NaN,z=f_(z,!1),isNaN(y)||(z.G=y),z.send()):(y=Mff(B,B.provider,z,y),B.U.set(l,y),y.UO(new g.e2(ud(new g.bB,8),new g.bB)),y.IK(),B.L?.D());B.Iv=l;this.A("html5_unify_csi_server_stitched_transition_logging")?(y=this.QQ,z=a.cpn,B=this.videoData.clientPlaybackNonce,a=a.videoData,B=`${p.cpn===B?"video":"ad"}_to_${z===B?"video":"ad"}`,B!=="video_to_ad"&&(l=B==="ad_to_video"?void 0:a,p=l?.sA,S={},a?.D&&(S.cttAuthInfo={token:a.D,videoId:a.videoId}), V&&(S.startTime=V),JM(B,S),V={targetVideoId:a?.videoId??"empty_video",targetCpn:z,adVideoId:l?.videoId??"empty_video",adClientPlaybackNonce:p?.cpn??l?.clientPlaybackNonce},p&&(V.adBreakType=p.adBreakType,V.adType=p.adType),g.ew(V,B),lw(y,Z,B))):(y=this.QQ,B=this.videoData.clientPlaybackNonce,z=a.videoData,p=`${p.cpn===B?"video":"ad"}_to_${a.cpn===B?"video":"ad"}`,B={},z.D&&(B.cttAuthInfo={token:z.D,videoId:z.videoId}),V&&(B.startTime=V),JM(p,B),g.ew({targetVideoId:z.videoId,targetCpn:a.cpn,isSsdai:!0}, p),V||lw(y,Z,p))}}else g.G3(this.logger,360717806,"SSTEvent for nonSS")}ZP(){var p=this.TR;const a=p.XR;p.XR=[];return a}Bv(p){this.videoData.T1=!0;this.d$(new g.cQ("sabr.fallback",p));this.UU(!0)}ZY(p,a=!0){this.videoData.Y9=!0;a&&(this.d$(new g.cQ("qoe.restart",p)),this.UU(!0))}ib(p){this.Xu("sdai",{aftimeout:p});this.d$(new g.cQ("ad.fetchtimeout",{timeout:p}))}ZR(p,a){this.Xu("timelineerror",p);p=new g.cQ("dai.timelineerror",p);a?this.f1("dai.timelineerror",1,"RETRYABLE_ERROR",ki(p.details)):this.d$(p)}fO(){return g.CX(this.Tn.provider)}getPlayerSize(){return this.Ke.getPlayerSize()}yS(){return this.Ke.yS()}L0(){return this.QQ}ZH(){return this.TR.ZH()}getVolume(){return this.TR.getVolume()}AD(){return this.TR.AD()}isMuted(){return this.TR.isMuted()}x8(){return this.TR.x8()}EF(){this.gT= !0}A(p){return this.Y.A(p)}e8(){return this.Y.e8()}Ub(p,a,l,y,S){this.Xu("xvt",{m:p,g:a?1:0,tt:l?1:0,np:y?1:0,c:S})}CY(){this.loader?.resume()}Sr(){return g.tU(this.AJ,"ad")}Q9(){const p=this.getCurrentTime(),a=p-this.oo();var l=this.mediaElement?Jg(this.mediaElement.xo()):0;l=Math.floor(Math.max(l-a,0))+100;return this.loader?.Q9(a,l)?(this.Xu("sdai",{skipad:1,ct:a.toFixed(3),adj:l.toFixed(3)}),Yc(this.videoData)&&this.loader.seek(a+l,{seekSource:89,qE:"videoplayer_skipServerStitchedAd"}),oPo(this.nt, p),!0):!1}Mc(){return this.Y.Mc()}C8(){if(this.A("html5_generate_content_po_token"))return this.videoData.Be||"";this.TR.Ln();return this.Y.Me||""}AA(){if(this.videoData.videoId)return this.videoData.o_}K1(){return this.videoData.videoId}SP(){return this.TR.SF}R$(){return this.ot}Fx(){return this.TR.Fx()}u4(p,a,l){this.X7(ud(this.playerState,16,l));this.nt.u4(p,a)}prefetchKeyPlay(p,a){this.loader?.prefetchKeyPlay(p,a)}kA(){this.nt.kA()}wu(p,a){const l=this.A("html5_generate_content_po_token")?this.videoData: void 0;this.TR.wu(p,a,l)}Si(){return this.A("html5_remove_ios_7_hack_force_play")}aI(p,a){this.Tn.aI(p,a)}vI(){return this.Tn.vI()}Gj(){return this.videoData.MF}f0(){return this.TR.f0()}VF(){return this.TR.VF(this)}SB(){this.kP=!0}zx(p){this.loader?.zx(p)}};g.C=g.vN.prototype;g.C.RQ=Gl(51);g.C.Pl=Gl(34);g.C.xg=Gl(28);g.C.U2=Gl(22);g.C.wX=Gl(16);g.C.PL=Gl(8);var knv=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);Y(this.api,"isLifaAdPlaying",()=>this.api.isLifaAdPlaying()); this.events.J(p,"serverstitchedvideochange",()=>{this.api.getVideoData()?.nh()&&(this.api.isLifaAdPlaying()?(this.playbackRate=this.api.getPlaybackRate(),this.api.setPlaybackRate(1)):this.api.setPlaybackRate(this.playbackRate))}); this.playbackRate=1}};var M7A=class extends pZ{constructor(p){super("Bucle",g.Jc.K7);this.B=p;const a=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:r$F();this.setIcon(a);this.subscribe("select",this.U,this);p.createClientVe(this.element,this,28661);this.J(p,"settingsMenuVisibilityChanged",this.S);this.listen("click",this.logClick);this.J(p,"onLoopChange",this.onLoopChange);this.L(p.getLoopVideo());p.GD().Su(this)}S(p){p&&this.L(this.B.getLoopVideo());this.B.logVisibility(this.element,p)}logClick(){this.B.logClick(this.element)}onLoopChange(p){this.L(p)}U(p){this.B.setLoopVideo(p)}};var mqh=class extends f4{constructor(p){super(p);p.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new M7A(this.api),g.H(this,this.menuItem))}); p.addEventListener("videodatachange",(a,l)=>{a=this.api.getPresentingPlayerType()===2;this.menuItem?.iM(!l.isLivePlayback&&!a)})}};var t7r=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);Y(this.api,"seekToChapterWithAnimation",a=>{this.seekToChapterWithAnimation(a)}); Y(this.api,"seekToTimeWithAnimation",(a,l)=>{this.seekToTimeWithAnimation(a,l)}); Y(this.api,"renderChapterSeekingAnimation",(a,l,y)=>{this.api.renderChapterSeekingAnimation(a,l,y)}); Y(this.api,"setMacroMarkers",a=>{this.setMacroMarkers(p,a)}); Y(this.api,"changeMarkerVisibility",(a,l,y)=>{this.changeMarkerVisibility(a,l,y)}); Y(this.api,"isSameMarkerTypeVisible",a=>this.isSameMarkerTypeVisible(a))}seekToChapterWithAnimation(p){if(g.HJ(this.api)&&!(p<0)){var a=this.api.getVideoData(),l=a.UY; if(l&&p{S===p&&ED(this,y.timeRangeStartMillis,y.title)})}}seekToTimeWithAnimation(p,a){g.HJ(this.api)&&ED(this,p,a)}setMacroMarkers(p,a){a={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:a}}}}}}; p=p.getVideoData();p.getWatchNextResponse();p&&p.getWatchNextResponse()==null&&(dl(p,{raw_watch_next_response:a}),p.publish("dataupdated"))}changeMarkerVisibility(p,a,l){const y=this.api.getVideoData();if(y){var S=!1;if(p)for(const n of a){if((p=y.iT)&&!p.includes(n))switch(l){case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_SAME_TYPE":Ukv(n,y)||(S=!0,y.iT?.push(n));break;case "CHANGE_MARKERS_VISIBILITY_RESTRICTION_MODE_NOT_OVERWRITE_ANY_TYPE":p.length===0&&(S=!0,y.iT?.push(n));break; default:S=!0,y.iT?.push(n)}}else for(const n of a)y.visibleOnLoadKeys.includes(n)||g.yA(y.iT,n)&&(S=!0);S&&this.api.publish("updatemarkervisibility")}}isSameMarkerTypeVisible(p){const a=this.api.getVideoData();return a?Ukv(p,a):!1}};var j3v=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"videodatachange",()=>{this.updateMetadata()}); this.events.J(p,"presentingplayerstatechange",()=>{x1$(this)}); this.events.J(p,"SEEK_COMPLETE",()=>{Sgh(this)})}updateMetadata(){var p=this.api.getVideoData(); if(p?.Kh()){var a=this.api.O(),l=[],y="";if(!a.N){const S=this.api.getVideoData().getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.browserMediaSession?.browserMediaSessionRenderer;g.cf(a)&&S?(l=Ikh(S.thumbnailDetails),S.album&&(y=z$(S.album))):l=[{src:p.uG("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}this.api.getVideoData()?.RC()&&Sgh(this);x1$(this);nvh(this);navigator.mediaSession.metadata=new MediaMetadata({title:p.title,artist:p.author,artwork:l,album:y});a=p=null;g.jM(this.api)&& (a=()=>{this.api.previousVideo()},p=()=>{this.api.nextVideo()}); OY("nexttrack",p);OY("previoustrack",a)}}fz(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;const p="nexttrack previoustrack play pause seekbackward seekforward seekto".split(" ");for(const a of p)OY(a,null);this.api.getVideoData()?.RC()&&navigator.mediaSession.setPositionState&&navigator.mediaSession.setPositionState({});super.fz()}};var WbM=class extends f4{constructor(p){super(p);this.S=new Map;this.X=this.L=void 0;this.compositeVideoState=null;this.U=void 0;this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"modulecreated",a=>{a:{var l=this.api.getVideoData()?.getPlayerResponse()?.overlay?.playerControlsOverlayRenderer;if(l&&(l=g.K(l.compositeVideoOverlay,WIM),l?.sources?.length))for(y of l?.sources)if(y.isActive)break a;var y=void 0}a==="captions"&&y?.topLeftCornerX!==void 0&&y?.topLeftCornerY!==void 0&&y?.width!== void 0&&y?.height!==void 0&&this.api.JY({top:y.topLeftCornerY,right:1-y.topLeftCornerX-y.width,bottom:1-y.topLeftCornerY-y.height,left:y.topLeftCornerX})}); this.events.J(p,"videodatachange",a=>{const l=this.api.getVideoData();this.L=void 0;this.S.clear();this.api.RX("compositeembargo",1);const y=l?.lJ.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");y?.length?mOA(this,y.filter(S=>S.onEnter?.some(this.j))):l?.cueRanges&&mOA(this,l.cueRanges.filter(S=>S.onEnter?.some(this.j))); a==="dataupdated"&&l?.compositeLiveStatusToken!==this.X&&(this.X=l?.compositeLiveStatusToken,this.api.VO())}); this.events.J(p,g.tT("compositeembargo"),a=>{if(this.L?.id!==a.id&&(this.api.CC(!0),this.S.has(a.id))){var l=this.S.get(a.id),y=this.api.getVideoData();for(const S of l)l=S.compositeEmbargo?.embargoStatusToken,y.fd!==l&&(y.fd=l,this.api.VO()),zJq(this,a)}}); this.events.J(p,g.jh("compositeembargo"),a=>{if(this.L?.id===a.id&&(this.api.CC(!1),this.S.has(a.id))){if(a=this.api.getVideoData())a.fd=void 0;this.api.VO();zJq(this)}}); this.events.J(p,"heartbeatRequest",a=>{this.compositeVideoState!==null&&(a.playbackState||(a.playbackState={}),a.playbackState.compositeVideoState=this.compositeVideoState)}); this.events.J(p,"internalaudioformatchange",(a,l)=>{const y=this.api.getVideoData(void 0,!0);y?.Xu("atrkchg",{id:a,m:l});if(y&&!y.Mu()){l=this.api.getAvailableAudioTracks();for(const S of l)if(S.getLanguageInfo().getId()===a){this.api.O().Ic=a;break}}}); this.events.J(p,"onPlaybackAudioChange",()=>{this.api.VO()}); Y(p,"setCompositeParam",a=>{this.compositeVideoState=a}); this.api.A("web_watch_enable_multiview_manager")&&Y(p,"setCompositeVideoOverlayRendererComponent",a=>{this.setCompositeVideoOverlayRendererComponent(a)})}setCompositeVideoOverlayRendererComponent(p){this.U&&(this.U.remove(),g.BM(this.U,"ytp-composite-video-overlay-renderer"),this.U=void 0); p&&(g.XX(p,"ytp-composite-video-overlay-renderer"),g.g1(this.api,p,4),this.U=p)}j(p){return p.compositeEmbargo!==void 0}fz(){super.fz();this.S.clear()}};var HSr=class extends f4{constructor(p){super(p);this.events=new g.yr;g.H(this,this.events);this.events.J(p,"applicationInitialized",()=>{({handleError:a=xS,logEvent:l=g.i0}={});var a;for(ZR=new siv(a,l);oH.length>0;){var l=oH.shift();switch(l.type){case "ERROR":ZR.Tf(l.payload);break;case "EVENT":ZR.logEvent(l.eventType,l.payload)}}}); Y(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));Y(this.api,"updateDownloadState",this.updateDownloadState.bind(this));Y(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));Y(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));Y(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));Y(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));Y(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}async queueOfflineAction(p, a,l,y){const S=NO(this.api.DN());return S&&(p=await S.cg([p],a,l,y),p.length)?p[0]:Promise.reject()}updateDownloadState(p,a){const l=NO(this.api.DN());return l?l.updateDownloadState(p,a):Promise.reject()}pauseVideoDownload(p){const a=NO(this.api.DN());a&&a.kd(p)}async resumeVideoDownload(p){const a=NO(this.api.DN());return a?a.Hn(p):Promise.reject()}isOrchestrationLeader(){return this.api.isOrchestrationLeader()}refreshAllStaleEntities(p){p===void 0&&(p=14400);const a=NO(this.api.DN());return a?a.refreshAllStaleEntities(p): Promise.reject()}setUpPositionSyncInterval(p){const a=NO(this.api.DN());a&&a.setUpPositionSyncInterval(p)}};var Dqr=class extends f4{constructor(p){super(p);this.loaded=!1;this.overlay=null;this.events=new g.yr(p);g.H(this,this.events);this.L=new g.yr(p);g.H(this,this.L);this.events.J(p,"modulesCreated",()=>{this.BL()&&this.load()}); this.events.J(p,"modulesDestroyed",a=>{let l=!0;switch(a){case 2:case 3:l=!1;break;case 4:l=this.api.getPresentingPlayerType()===1}l&&this.unload()})}BL(){var p=this.api.getVideoData(); return p.DF&&!p.fp}load(){this.loaded||g.CP(this.api.O())||(this.overlay=new g.t({W:"div",A9:["ytp-ypc-clickwrap-overlay","ytp-player-content"],V:[{W:"h2",T:"ytp-ypc-clickwrap-header",yY:"\u00bfQuieres iniciar este alquiler?"},{W:"div",T:"ytp-ypc-clickwrap-description",yY:this.api.getVideoData().Xv},{W:"button",A9:["ytp-ypc-clickwrap-confirm","ytp-button"],yY:"Iniciar periodo de alquiler"}]}),g.H(this,this.overlay),g.g1(this.api,this.overlay.element,4),this.overlay.J(this.overlay.d7("ytp-ypc-clickwrap-confirm"), "click",()=>{this.onConfirm()}),this.loaded=!0)}onConfirm(){this.overlay&&this.overlay.hide(); this.L.J(this.api,"videodatachange",()=>{this.api.Kv("ypcRentalActivation")}); this.api.Kv("ypcRentalActivation")}unload(){this.loaded&&(this.overlay&&(this.overlay.dispose(),this.overlay=null),g.uY(this.L),this.loaded=!1)}fz(){this.unload();super.fz()}};var iSZ=class extends f4{constructor(p){super(p);Y(p,"getAvailableQualityData",()=>this.getAvailableQualityData()); Y(p,"getAvailableQualityDataAndMessaging",()=>this.getAvailableQualityDataAndMessaging())}getAvailableQualityDataAndMessaging(){return{qualityData:this.getAvailableQualityData(), qualityMessagingFormattedString:void 0}}getAvailableQualityData(){var p=this.api.getVideoData();if(!p)return[];var a=[],l=p.getPlayerResponse()?.playabilityStatus?.paygatedQualitiesMetadata,y=l?.qualityDetails||[],S=new Map;S=g.pA(y)&&!Array.isArray(y)?new Map(Object.entries(y)):new Map(y.map(Z=>[Z.key,Z.value])); if(y=l?.restrictedAdaptiveFormats){l=[];for(var n of y)y=mv(n.mimeType,n.quality,n.itag.toString(),n.width.toString(),n.height.toString(),n.qualityLabel,n.qualityOrdinal&&isE[n.qualityOrdinal]),l.push(y);p=g.Gu(p);xj(l);n=[];for(var V of l)Z6(p,V,this.api.O().X)===!0&&n.push(V);a=a.concat(RNq(n,!1,S))}V=this.api.pU();a=a.concat(RNq(V,!0,S));S=[];if(this.api.A("web_player_enable_premium_hbr_in_h5_api"))return a=uBZ(a),lSZ(a),a;V={};for(const Z of a)a=Z.quality,V[a]||(Z.formatId=void 0,S.push(Z),V[a]= !0);return S}};var TSM={["internal-error"]:-1,["non-recoverable-error"]:-2,["api-disabled-by-application"]:-3,["invalid-argument"]:-4,["token-provider-invalid"]:-5},NSM=class extends f4{constructor(p){super(p);this.U=1;this.QQ=null;this.hg={UeY:()=>this.U}; this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"d6de4videobindingchange",a=>{this.E4(a)}); this.events.J(p,"csiinitialized",()=>{yOE(this)})}E4(p){if(CY())if(!this.S&&this.L){R8r(this,p); try{this.L.then(()=>{iHZ(this,p)},a=>{sT(a,"player_update"); this.handleError(a,p)})}catch(a){sT(a,"player_update_catch"),this.handleError(a,p)}}else this.S?iHZ(this,p):this.api.Xu("pf",{m:this.S?1:0, p:this.L?1:0})}handleError(p,a){g.tX(p);if(this.api.A("html5_enable_d6de4_cold_start_and_error")){var l=0;p.mediaIntegrityErrorName?l||(l=TSM[p.mediaIntegrityErrorName]):p.code&&(l=p.code());a.o_={jU:{code:l}}}}};var s3A=class extends g.t{constructor(p){super({W:"button",A9:["ytp-pip-button","ytp-button"],Z:{title:p.A("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"},V:[QC()]});this.api=p;this.listen("click",this.onClick);const a=this.api.iX(),l=a.subscribe("visibilitystatechange",()=>{this.J9(a.N0())}); this.addOnDisposeCallback(()=>{a.h5(l)}); Wc(p,this.element,this);this.J9(a.N0())}J9(p){p=p?"Salir de la funci\u00f3n Imagen en imagen":"Imagen en imagen";this.api.O().A("player_tooltip_data_title_killswitch")?this.update({title:p,"data-title-no-tooltip":p}):this.update({"data-tooltip-title":p,"data-title-no-tooltip":p});this.api.yT()}onClick(){this.api.togglePictureInPicture()}};var UqZ=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"standardControlsInitialized",()=>{this.createButton()}); g.p8(this.api.O())&&(this.A("web_watch_pip")||this.A("web_shorts_pip"))&&Y(this.api,"setDocumentPictureInPicture",a=>{this.setDocumentPictureInPicture(a)})}createButton(){this.button=new s3A(this.api); g.H(this,this.button);this.api.WR(this.button);this.events.J(this.api,"videodatachange",()=>{H5F(this)}); H5F(this)}setDocumentPictureInPicture(p){this.api.iX().GA(p);p=this.api.N0();const a=Kl(this.api.DN());a&&(p?a.load():a.unload());this.api.publish("documentpictureinpicturechange")}};var Q3e=class extends f4{constructor(p){super(p);this.loaded=!1;this.K=0;this.L=!1;this.G={};this.S=[];this.j=0;this.D=!1;this.events=new g.yr(p);g.H(this,this.events);this.U=new g.yr(p);g.H(this,this.U);this.events.J(p,"modulesCreated",()=>{this.BL()&&this.load()}); this.events.J(p,"modulesDestroyed",a=>{const l=this.api.getPresentingPlayerType();switch(a){case 2:case 3:a=l!==1&&!(l===5||l===6||l===7);break;case 4:a=!this.L;break;default:a=!0}a&&this.unload()})}BL(){return this.api.getVideoData().Ws.includes("playableSequences")}load(){if(!this.loaded){this.X||(this.X=new g.t({W:"div", A9:["ytp-player-content","ytp-yto-overlay"],V:[{W:"div",A9:["ytp-yto-preroll-message"],yY:"El v\u00eddeo empezar\u00e1 en breve"}]}),g.H(this,this.X),zEq(this,!1),g.g1(this.api,this.X.element,4));var p=this.api.getPresentingPlayerType();this.U.J(this.api,"playbackChange",()=>{var a=this.api.getPresentingPlayerType()===5;g.OW(this.api.getRootNode(),"ytp-yto-preroll",a);zEq(this,a)}); this.U.J(this.api,"presentingplayerstatechange",a=>{this.onStateChange(a)}); this.U.J(this.api,g.tT("yto"),(a,l)=>{this.onCueRangeEnter(a,l)}); this.U.J(this.api,"ytoprerollinternstitialnext",()=>{ZVZ(this)}); giA(this);this.loaded=!0;this.api.Kv("playableSequences",p)}}onCueRangeEnter(p){p=p.getId();if(!this.L){if(this.api.getPlayerStateObject(1).L(2)){if(this.D)return}else this.D=!1;this.S.includes(p)||this.S.push(p);this.api.getPresentingPlayerType()===1&&ppr(this)}}onStateChange(p){var a=this.api.getPresentingPlayerType();p=p.state;this.L||a!==5&&a!==6&&a!==7||p.L(1)||p.L(16)||p.L(32)||(a=p.L(128),(p.L(2)||a)&&ZVZ(this))}unload(){this.loaded&&(this.K=0,this.D=this.L=!1,this.G={},this.j=0,this.S.length= 0,g.uY(this.U),this.loaded=!1)}fz(){this.unload();super.fz()}};var htZ=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);Y(this.api,"musicDisableUi",()=>{g.XX(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); Y(this.api,"musicEnableUi",()=>{g.BM(this.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}};var GZ=class extends g.t{constructor(p,a=!0,l=!1){super({W:"div",T:"ytp-suggested-action"});this.B=p;this.wq=this.Ws=this.QY=this.w7=this.G=this.N=this.expanded=this.enabled=this.dG=!1;this.Kx=new g.SF(()=>{this.badge.element.style.width=""},200,this); this.NO=new g.SF(()=>{dx(this);bK(this)},200,this); this.Fu=this.B.A("delhi_modern_web_player")?40:34;this.dismissButton=new g.t({W:"button",A9:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.H(this,this.dismissButton);this.j=new g.t({W:"div",T:"ytp-suggested-action-badge-expanded-content-container",V:[{W:"label",T:"ytp-suggested-action-badge-title",yY:"{{badgeLabel}}"},this.dismissButton]});g.H(this,this.j);this.iT=new g.t({W:"div",T:"ytp-suggested-action-badge-icon-container",V:[a?{W:"div",T:"ytp-suggested-action-badge-icon"}: ""]});g.H(this,this.iT);this.badge=new g.t({W:l?"div":"button",A9:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.iT,this.j]});g.H(this,this.badge);this.badge.lT(this.element);this.jl=new g.Kg(this.badge,250,!1,100,()=>{this.B.A("web_player_overlay_positioned_layout")&&this.hide()}); g.H(this,this.jl);p.A("web_player_overlay_positioned_layout")&&this.hide();this.Ro=new g.Kg(this.j,250,!1,100);g.H(this,this.Ro);this.ZN=new g.qD(this.r$,null,this);g.H(this,this.ZN);this.Ba=new g.qD(this.g$,null,this);g.H(this,this.Ba);g.H(this,this.Kx);g.H(this,this.NO);this.B.createServerVe(this.badge.element,this.badge,!0);this.B.createServerVe(this.dismissButton.element,this.dismissButton,!0);this.J(this.B,"onHideControls",()=>{this.Ic(!1)}); this.J(this.B,"onShowControls",()=>{this.Ic(!0)}); this.J(this.badge.element,"click",this.Bs);this.J(this.dismissButton.element,"click",this.X);this.J(this.B,"pageTransition",this.zn);this.J(this.B,"appresize",this.S);this.J(this.B,"fullscreentoggled",this.tN);this.J(this.B,"cardstatechange",this.bf);this.J(this.B,"annotationvisibility",this.DF,this);this.J(this.B,"offlineslatestatechange",this.UY,this)}Bs(){}X(){}D(){return!0}r$(){let p;this.expanded?(this.Ro.show(),p=this.j.element.scrollWidth):(p=this.j.element.scrollWidth,this.Ro.hide());this.OC= this.Fu+p;g.OW(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=`${this.expanded?this.Fu:this.OC}px`;this.Ba.start()}g$(){this.badge.element.style.width=`${this.expanded?this.OC:this.Fu}px`;this.Kx.start()}ac(){this.G&&this.B.logVisibility(this.badge.element,this.D());this.w7&&this.B.logVisibility(this.dismissButton.element,this.D()&&this.Ps())}Ic(p){this.QY=p;bK(this);dx(this);this.S()}UY(){g.OW(this.badge.element,"ytp-suggested-action-badge-with-offline-slate", !0)}Ps(){return this.Ws||this.QY||!this.N}S(){this.D()?(this.show(),this.jl.show()):this.jl.hide();this.ac()}zn(){this.enabled=!1;this.S()}Sl(p){p?this.w7&&this.B.logClick(this.dismissButton.element):this.G&&this.B.logClick(this.badge.element)}DF(){this.S()}bf(p){this.wq=p===1;this.S();g.OW(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)}tN(){g.OW(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.B.isFullscreen());this.S()}};var BP=class extends g.et{constructor(p,a,l,y,S,n){const V={W:"div",T:"ytp-panel"};let Z,z,d;if(l){Z="ytp-panel-back-button";z="ytp-panel-title";const G={W:"div",T:"ytp-panel-header",V:[{W:"div",A9:["ytp-panel-back-button-container"],V:[{Z:{"aria-label":"Volver al men\u00fa anterior"},W:"button",A9:["ytp-button",Z]}]},{W:"span",A9:[z],Z:p.A("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,V:[l]}]};S&&(d="ytp-panel-options",G.V.push({W:"button",A9:["ytp-button",d],V:[y]})); V.V=[G]}y=!1;n&&(n={W:"div",T:"ytp-panel-footer",V:[n]},y=!0,V.V?V.V.push(n):V.V=[n]);super(V);this.content=a;y&&V.V?a.lT(this.element,V.V.length-1):a.lT(this.element);this.uI=!1;this.tR=y;l&&(this.backButton=this.d7(Z),l=this.d7(z),this.J(this.backButton,"click",this.SZ),this.J(l,"click",this.SZ),this.uI=!0,S&&this.J(this.d7(d),"click",S));a.subscribe("size-change",this.U_,this);this.J(p,"fullscreentoggled",this.U_);this.B=p}U_(){this.publish("size-change")}CI(){return iC(this)}Fc(){return iC(this)}focus(){this.content.focus()}SZ(){this.publish("back")}};g.cP=class extends BP{constructor(p,a=null,l,y,S,n){const V={role:"menu"};a&&(V.id=a);a=new g.et({W:"div",T:"ytp-panel-menu",Z:V});super(p,a,l,y,S,n);this.menuItems=a;this.items=[];g.H(this,this.menuItems)}Su(p,a=!1){if(a)this.items.push(p),this.menuItems.element.appendChild(p.element);else{a=g.Q0(this.items,p,MKo);if(a>=0)return;a=~a;g.qY(this.items,a,0,p);L8(this.menuItems.element,p.element,a)}p.subscribe("size-change",this.Yu,this);this.menuItems.publish("size-change")}CI(){iC(this)||this.items[0].focus(); return!0}Fc(){this.items[this.items.length-1].focus();return!0}RM(p){p.unsubscribe("size-change",this.Yu,this);this.nz()||(g.yA(this.items,p),this.menuItems.element.removeChild(p.element),this.menuItems.publish("size-change"))}Yu(){this.menuItems.publish("size-change")}focus(){let p=0;for(let a=0;a1&&g.dR(this)}xV(){JD$(this);this.yQ&&(b_r(this),g.Wt(this.element,this.size))}y4(){const p=this.L.pop();d5(this,p,this.L[this.L.length-1],!0)}TD(p){if(!p.defaultPrevented)switch(p.keyCode){case 27:this.ke();p.preventDefault();break;case 37:this.L.length>1&&this.y4();p.preventDefault();break;case 39:p.preventDefault()}}focus(){this.L.length&&this.L[this.L.length- 1].focus()}fz(){super.fz();this.U&&this.U.dispose();this.j&&this.j.dispose()}};var Aiv=class extends g.rz{constructor(p){super(p,"ytp-shopping-product-menu");this.wP=new g.cP(this.B);g.H(this,this.wP);this.hide();g.Go(this,this.wP);g.g1(this.B,this.element,4)}open(p,a){this.initialize(p.items)&&this.zR(a,!!a)}initialize(p){g.oN(this.wP);if(p===void 0||p.length===0)return!1;let a=p.length;for(const l of p)this.Su(l,a--);return!0}Su(p,a){p.menuNavigationItemRenderer?shE(this,p.menuNavigationItemRenderer,a):p.menuServiceItemRenderer&&rWr(this,p.menuServiceItemRenderer,a)}};var gfE=class extends GZ{constructor(p){super(p,!1,!0);this.isCounterfactual=this.U=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.N=!0;this.overflowButton=new g.t({W:"button",A9:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.H(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.t({W:"img",T:"ytp-suggested-action-badge-img",Z:{src:"{{url}}"}}); this.thumbnailImage.hide();g.H(this,this.thumbnailImage);this.thumbnailIcon=new g.t({W:"div",T:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.H(this,this.thumbnailIcon);this.banner=new g.t({W:"a",T:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{W:"div",T:"ytp-suggested-action-details",V:[{W:"text",T:"ytp-suggested-action-title",yY:"{{title}}"},{W:"text",T:"ytp-suggested-action-subtitle",yY:"{{subtitle}}"},{W:"text",T:"ytp-suggested-action-metadata-text", yY:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.H(this,this.banner);this.banner.lT(this.j.element);this.J(this.B,"videodatachange",this.onVideoDataChange);this.J(this.B,g.tT("suggested_action_view_model"),this.VY);this.J(this.B,g.jh("suggested_action_view_model"),this.Lx);this.J(this.overflowButton.element,"click",this.Tm);this.J(p,"featuredproductdismissed",this.X);this.B.createServerVe(this.banner.element,this.banner,!0)}Bs(p){p.target!==this.dismissButton.element&&p.target!==this.overflowButton.element&& (this.Sl(),this.onClickCommand&&g.v0(this.B,"innertubeCommand",this.onClickCommand))}X(){this.enabled=!1;this.jl.hide()}D(){return!!this.L&&this.enabled}onVideoDataChange(p,a){this.Hs(a);if(this.L){this.Rc();a:if(!this.isCounterfactual){this.banner.update({title:this.L?.title,subtitle:this.L?.subtitle,metadata:this.L?.metadataText});this.onClickCommand=g.K(this.L?.onTap,a7);if(p=g.K(this.L?.onOverflow,a7))this.C=g.K(p,IEM);if(this.L?.thumbnailImage){p=this.L?.thumbnailImage?.sources||[];if(p.length=== 0)break a;this.thumbnailImage.update({url:p[0].url})}else this.L?.thumbnailIconName&&this.thumbnailIcon.update({icon:this.L?.thumbnailIconName});this.shouldShowOverflowButton=!!this.L?.shouldShowOverflowButton;this.shouldHideDismissButton=!!this.L?.shouldHideDismissButton}this.banner.element.setAttribute("aria-label",this.L?.a11yLabel||"");this.E6=this.L?.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;wN(this)}}VY(){this.isVisible=!0;wN(this)}Lx(){this.isVisible= !1;wN(this)}ac(){super.ac();this.U&&this.B.logVisibility(this.banner.element,this.isVisible)}Sl(){super.Sl(!1);this.U&&this.B.logClick(this.banner.element)}Tm(p){this.K||(this.K=new Aiv(this.B),g.H(this,this.K));this.C?.menu?.menuRenderer&&(this.K.open(this.C.menu.menuRenderer,p.target),p.preventDefault())}Hs(){}Rc(){}fz(){this.B.RX("suggested_action_view_model");super.fz()}};var YNE=class extends gfE{Hs(p){this.productUpsellSuggestedActionViewModel=g.K(p.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionViewModel,goO);this.productUpsellSuggestedActionViewModel?.content&&(this.L=g.K(this.productUpsellSuggestedActionViewModel?.content,KIe));(this.U=!!this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams)&&this.B.setTrackingParams(this.banner.element,this.productUpsellSuggestedActionViewModel?.loggingDirectives?.trackingParams|| null);this.isCounterfactual=!!this.productUpsellSuggestedActionViewModel?.isCounterfactualServing}Rc(){const p=[];for(const a of this.productUpsellSuggestedActionViewModel?.ranges||[]){if(!a)continue;const l=Number(a.startTimeMilliseconds),y=Number(a.endTimeMilliseconds);isNaN(l)||isNaN(y)||p.push(new g.yj(l,y,{id:"product_upsell",namespace:"suggested_action_view_model"}))}this.B.OE(p)}};var qNE=class extends f4{constructor(p){super(p);this.L=new YNE(this.api);g.H(this,this.L);g.g1(this.api,this.L.element,4)}};var JiE=class extends f4{constructor(p){super(p);this.L=!0;const a=new g.yr(p);g.H(this,a);a.J(p,"internalaudioformatchange",(l,y)=>{Z3Z(this,l,y)}); a.J(p,"annotationvisibility",l=>{this.api.A("web_fix_annotations")&&$CZ(this,(294).toString(),{boolValue:l})}); a.J(p,"videoplayerreset",()=>{BJ(this)}); a.J(p,"videodatachange",(l,y)=>{this.onVideoDataChange(l,y)})}onVideoDataChange(p,a){a.Mu()&&(p==="newdata"&&BJ(this),this.L&&p==="dataloaded"&&(this.L=!1,Gr(HW(m7(this.api.O(),this.api.getVideoData()?.G()),l=>{$_M(this,l)}),()=>{this.L=!0})))}SE(){if(g.ur(this.api.O())){const p=g.kw(this.api.O(),this.api.getVideoData()?.G()); return HW(La(p),a=>{const l=Lt();XD(l,a);return this.api.SE(l)})}return La(this.api.SE())}};g.wz=class extends g.yz{constructor(p,a,l,y,S,n,V){super(g.kE({"aria-haspopup":"true"}),a,p);this.U6=y;this.Ws=!1;this.K=null;this.options={};this.o4=new g.cP(l,void 0,p,S,n,V);g.H(this,this.o4);this.listen("keydown",this.TD);this.listen("click",this.open)}open(){g.Go(this.U6,this.o4)}S(p){v2r(this);const a=this.options[p];a&&(a.element.setAttribute("aria-checked","true"),this.setContent(this.U(p)),this.K=p)}j(p){g.oN(this.o4);const a={};let l=!1;for(let y=0;y{this.QY(p)}); return a}enable(p){this.Ws?p||(this.Ws=!1,this.D(!1)):p&&(this.Ws=!0,this.D(!0))}D(p){p?this.U6.Su(this):this.U6.RM(this)}L(p){this.publish("select",p)}QY(p){this.L(p)}U(p){return p.toString()}TD(p){p.defaultPrevented||p.keyCode!==39||(this.open(),p.preventDefault())}fz(){this.Ws&&this.U6.RM(this);super.fz();for(const p of Object.keys(this.options))this.options[p].dispose()}};var fZq=class extends g.wz{constructor(p,a){super("Temporizador de suspensi\u00f3n",g.Jc.SLEEP_TIMER,p,a);this.B=p;this.Bs={};this.Sl=this.X("Off");this.jl=this.G="";p.A("web_settings_menu_icons")&&(a=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(a)); this.N=new g.t({W:"div",A9:["ytp-menuitem-label-wrapper"],V:[{W:"div",yY:"Final del v\u00eddeo"},{W:"div",A9:["ytp-menuitem-sublabel"],yY:"{{content}}"}]});g.H(this,this.N);this.listen("click",this.onClick);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"presentingplayerstatechange",this.J9);this.J(p,"settingsMenuVisibilityChanged",this.Hs);p.createClientVe(this.element,this,218889);this.J9();g.v0(this.B,"onSleepTimerFeatureAvailable")}J9(){const p=this.X("Off");this.B.getPresentingPlayerType()!== 2?(BHO(this),this.S(this.Sl),this.G&&(this.Sl===p?this.G="":this.setSleepTimerTimeLeft(this.G)),this.jl&&this.setVideoTimeLeft(this.jl),this.enable(!0)):(this.j([]),this.enable(!1))}L(p){this.w7(p);this.U6.y4()}X(p){switch(p){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`${p.toString()} ${"Minutos"}`.toLowerCase()}}w7(p){const a=this.Bs[p],l=a==="End of video"||a==="End of playlist";a==="Off"&& (this.G="");this.B.getPlayerState()!==0&&this.B.getPlayerState()!==5||!l?(this.Sl=p,super.L(p),this.S(p),g.v0(this.B,"onSleepTimerSettingsChanged",a)):g.v0(this.B,"innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El v\u00eddeo ya ha acabado"}}}}})}onVideoDataChange(p){p==="dataloaded"&&BHO(this)}Hs(p){this.B.logVisibility(this.element,p)}onClick(){this.B.logClick(this.element)}resetSleepTimerMenuSettings(){this.w7(this.X("Off"))}setSleepTimerTimeLeft(p){this.G= p;this.setContent(p)}setVideoTimeLeft(p){this.jl=p;this.N.setContent(p)}};var pof=class extends f4{constructor(p){super(p);p.addEventListener("settingsMenuInitialized",()=>{this.menuItem||(this.menuItem=new fZq(this.api,this.api.GD()),g.H(this,this.menuItem))}); p.addEventListener("openSettingsMenuItem",a=>{a==="menu_item_sleep_timer"&&(this.menuItem||this.api.GD()?.zR(),this.menuItem.open())}); Y(p,"resetSleepTimerMenuSettings",()=>{this.resetSleepTimerMenuSettings()}); Y(p,"setSleepTimerTimeLeft",a=>{this.setSleepTimerTimeLeft(a)}); Y(p,"setVideoTimeLeft",a=>{this.setVideoTimeLeft(a)})}resetSleepTimerMenuSettings(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()}setSleepTimerTimeLeft(p){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(p)}setVideoTimeLeft(p){this.menuItem&&this.menuItem.setVideoTimeLeft(p)}};var aXr=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"onSnackbarMessage",a=>{switch(a){case 1:a=this.api.getPlayerStateObject(),a.isBuffering()&&(this.api.A("html5_disable_snackbar_message_checking_on_seeking_to_play")||a.L(8)&&a.L(16))&&g.v0(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 Y0$; g.G$=class extends g.js{constructor(p,a=!1,l,y=!1,S=!1){super();this.w7=S;this.N=!1;this.j=new zV(this);this.X=this.G=null;this.U=this.S=!1;g.H(this,this.j);this.target=p;this.L=a;this.Sl=l||p;this.N=y;a&&(g.H5&&this.target.setAttribute("draggable","true"),S||(this.target.style.touchAction="none"));jf(this)}J(p,a){this.j.J(this.Sl,p,a,void 0,!this.L)}cancel(){this.U&&(this.U=!1,this.publish("dragend",0,0,null));this.S&&(this.S=!1,this.publish("hoverend",0,0,null),kV(this),jf(this))}Vu(p){kV(this);this.J(ta("move"), this.C);this.J(ta("out"),this.Oo);this.J("touchstart",this.K);this.L&&this.J(ta("down"),this.D);const a=p.target;p=new g.g3(p.pageX,p.pageY);this.S=!0;this.publish("hoverstart",p.x,p.y,a);this.publish("hovermove",p.x,p.y,a)}C(p){const a=p.target;p=new g.g3(p.pageX,p.pageY);if(this.X){const l=this.X;this.X=null;if(l.relatedTarget===a&&dr(new g.g3(l.pageX,l.pageY),p))return}this.publish("hovermove",p.x,p.y,a)}Oo(p){const a=new g.g3(p.pageX,p.pageY),l=p.relatedTarget;try{if(l&&g.n3(this.target,l)){this.X= p;this.publish("hovermove",a.x,a.y,l);return}}catch(y){}kV(this);jf(this);this.S=!1;this.publish("hoverend",a.x,a.y,l)}Bs(p){this.Vu(p);this.D(p)}D(p){if(typeof p.button!=="number"||p.button===0){kV(this);this.j.J(hD(p.target),ta("move"),this.QY);this.j.J(hD(p.target),ta("up"),this.jl);var a=p.target;if(g.H5)this.J("dragstart",this.Ws);else if(p.preventDefault(),(g.wR||D2)&&a)a:{let l=a;for(;l;){if(MH(l)||l.getAttribute("tabindex")==="-1"){l.focus();break a}l=l.parentElement}hD(a).activeElement.blur()}this.U= !0;p=new g.g3(p.pageX,p.pageY);this.publish("dragstart",p.x,p.y,a);this.publish("dragmove",p.x,p.y,a)}}Ws(p){p.preventDefault()}QY(p){let a=p.target;a===hD(p.target)&&(a=null);p=new g.g3(p.pageX,p.pageY);this.publish("hovermove",p.x,p.y,a);this.publish("dragmove",p.x,p.y,a)}jl(p){kV(this);this.U=!1;const a=rl(p),l=p.target;p=new g.g3(p.pageX,p.pageY);a&&g.n3(this.target,a)?(this.J(ta("move"),this.C),this.J(ta("out"),this.Oo),this.J(ta("down"),this.D),this.J("touchstart",this.K),this.publish("dragend", p.x,p.y,l)):(jf(this),this.S=!1,this.publish("dragend",p.x,p.y,l),this.publish("hoverend",p.x,p.y,l))}K(p){const a=p.changedTouches[0];a&&(kV(this),this.w7||(this.J("touchmove",this.Hs),this.J("touchend",this.UO),this.J("touchcancel",this.UO),this.G=a.identifier,p=p.target,this.S||(this.S=!0,this.publish("hoverstart",a.pageX,a.pageY,p)),this.publish("hovermove",a.pageX,a.pageY,p),this.L&&(this.U=!0,this.publish("dragstart",a.pageX,a.pageY,p),this.publish("dragmove",a.pageX,a.pageY,p))))}Hs(p){const a= B7q(this,p);a&&(this.L&&p.preventDefault(),p=p.target,this.publish("hovermove",a.pageX,a.pageY,p),this.L&&this.publish("dragmove",a.pageX,a.pageY,p))}UO(p){const a=B7q(this,p);if(a){kV(this);jf(this);this.S=!1;const l=p.target;this.L&&(this.N||p.preventDefault(),this.U=!1,this.publish("dragend",a.pageX,a.pageY,l));this.publish("hoverend",a.pageX,a.pageY,l)}}fz(){this.L&&(g.H5&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");kV(this);super.fz()}};Y0$=!1;var lXv=class extends g.t{constructor(p,a){super({W:"div",A9:["ytp-overlay","ytp-speedmaster-overlay"],V:[{W:"div",T:"ytp-speedmaster-user-edu",V:[{W:"div",T:"ytp-speedmaster-label",yY:a},{W:"div",T:"ytp-speedmaster-icon",yY:"{{icon}}"}]}]});this.B=p;this.L=this.d7("ytp-speedmaster-user-edu");this.updateValue("icon",akv());g.XX(this.L,"ytp-speedmaster-has-icon");this.B.createClientVe(this.L,this,173040,!0);this.X()}X(){g.VB(this.element,"display","none");this.B.logVisibility(this.L,!1)}};var yHv=class extends f4{constructor(p){super(p);this.j=this.U=!1;this.S=new g.yr(p);g.H(this,this.S);this.C="2x";this.speedmasterUserEdu=new lXv(p,this.C);g.H(this,this.speedmasterUserEdu);g.g1(this.api,this.speedmasterUserEdu.element,4);this.L=new g.G$(this.api.h9().Pf,!0,null,!1,!0);g.H(this,this.L);this.delay=new g.SF(this.jl,500,this);g.H(this,this.delay);this.S.J(p,"videodatachange",()=>{Dp(this)},this); this.S.J(p,"presentingplayerstatechange",()=>{Dp(this)},this); this.S.J(p,"autonavvisibility",()=>{Dp(this)},this); this.api.iX().subscribe("visibilitystatechange",()=>{Dp(this)}); this.S.J(p,"rootnodemousedown",a=>{this.G=a}); this.A("web_speedmaster_spacebar_control")&&(this.S.J(p,"keyboardserviceglobalkeydown",(a,l)=>{this.UO=l;kv(this,a,l.SG,!0)},this),this.S.J(p,"keyboardserviceglobalkeyup",a=>{kv(this,a,!1,!1)},this))}N(p,a){this.nz()||(this.K=[p, a],this.L.subscribe("dragmove",this.D,this),this.L.subscribe("dragend",this.X,this),this.U||this.delay.JP())}jl(){if(this.j){this.U=!0;this.Sl=this.api.getPlaybackRate();this.w7=this.api.getPlayerStateObject().isPaused();var p=this.speedmasterUserEdu;g.VB(p.element,"display","");p.B.logVisibility(p.L,!0);this.api.setPlaybackRate(2);this.api.hideControls();this.api.playVideo();this.G&&(this.G.dl=!0);this.UO&&(this.UO.pw=!0);this.A("enable_smart_skip_speedmaster_on_web")&&this.api.publish("speedmasterchanged", !0)}}D(p,a){if(!this.U){p=[p,a];var l=this.K;l&&p&&l.length===2&&p.length===2?(a=Math.abs(l[0]-p[0]),l=Math.abs(l[1]-p[1]),a=Math.sqrt(a*a+l*l)):a=-1;a<10?this.K=p:OZ(this)}}X(){OZ(this)}};var Sor=class extends f4{constructor(p){super(p);this.S=new Set;this.L={};this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"videodatachange",a=>{a==="newdata"&&(this.api.RX("stationsEmbargo"),this.api.RX("stationsMetadataUpdate"),this.L={},this.S.clear());a=this.api.getVideoData().lJ;const l=a.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");l&&nxf(this,l,"stationsEmbargo");(a=a.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&nxf(this,a,"stationsMetadataUpdate")}); this.events.J(p,g.tT("stationsEmbargo"),a=>{this.api.CC(!0);var l=this.L[a.id]??[];for(const y of l)if(l=y.embargo)this.api.hideControls(),this.api.f1("auth",2,z$(l.errorRenderer.reason),ki({embargoed:1,id:a.id,idx:a.S,start:a.start})),(l=l.onTrigger)&&g.v0(this.api,"innertubeCommand",l)}); this.events.J(p,g.tT("stationsMetadataUpdate"),a=>{a=this.L[a.id]??[];for(const l of a)(a=l.command)&&g.v0(this.api,"innertubeCommand",a)})}};var nle=class extends g.Fc{constructor(p,a,l){super(a,p);this.L=l}preventDefault(){super.preventDefault();this.L&&this.L.preventDefault()}stopPropagation(){super.stopPropagation();this.L&&this.L.stopPropagation()}};g.hW=class extends Zdv{constructor(p){super();this.L=p;this.ac={};this.listener=a=>{this.dispatchEvent(new nle(this,a.type,a))}}X(){return!0}isView(){return!1}Ha(){return!1}Wa(){return this.L}jE(){return this.L.src}Tm(p){const a=this.getPlaybackRate(); this.L.src=p;this.setPlaybackRate(a)}Ic(){this.L.removeAttribute("src")}getPlaybackRate(){try{return this.L.playbackRate>=0?this.L.playbackRate:1}catch{return 1}}setPlaybackRate(p){this.getPlaybackRate()!==p&&(this.L.playbackRate=p);return p}V9(){return this.L.loop}setLoop(p){this.L.loop=p}canPlayType(p,a){return this.L.canPlayType(p,a)}isPaused(){return this.L.paused}isSeeking(){return this.L.seeking}isEnded(){return this.L.ended}Hs(){return this.L.muted}C(p){JJ();this.L.muted=p}D(){return this.L.played|| Or([],[])}xo(){let p;try{p=this.L.buffered}catch{}return p||Or([],[])}K(){return this.L.seekable||Or([],[])}Bs(){const p=this.L;return p.getStartDate?p.getStartDate():null}getCurrentTime(){return this.L.currentTime}setCurrentTime(p){this.L.currentTime=p}getDuration(){return this.L.duration}load(){const p=this.L.playbackRate;try{this.L.load()}catch{}this.L.playbackRate=p}pause(){this.L.pause()}play(){const p=this.L.play();if(!p||!p.then)return null;p.then(void 0,()=>{}); return p}U(){return this.L.readyState}Rc(){return this.L.networkState}Zd(){return this.L.error?this.L.error.code:null}yh(){return this.L.error?this.L.error.message:""}getVideoPlaybackQuality(){if(window.HTMLVideoElement&&this.L instanceof window.HTMLVideoElement&&this.L.getVideoPlaybackQuality)return this.L.getVideoPlaybackQuality();if(this.L){var p=this.L;const a=p.webkitDroppedFrameCount;if(p=p.webkitDecodedFrameCount)return{droppedVideoFrames:a||0,totalVideoFrames:p}}return{}}gE(){return!!this.L.webkitCurrentPlaybackTargetIsWireless}H1(){return!!this.L.webkitShowPlaybackTargetPicker()}togglePictureInPicture(){const p= this.L,a=window.document;window.document.pictureInPictureEnabled?this.L!==a.pictureInPictureElement?p.requestPictureInPicture():a.exitPictureInPicture():EG()&&p.webkitSetPresentationMode(p.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}kp(){var p=this.L;return new g.g3(p.offsetLeft,p.offsetTop)}getSize(){return g.Lf(this.L)}setSize(p){g.Wt(this.L,p)}getVolume(){return this.L.volume}setVolume(p){JJ();this.L.volume=p}Fu(p){this.ac[p]||(this.L.addEventListener(p,this.listener), this.ac[p]=this.listener)}setAttribute(p,a){this.L.setAttribute(p,a)}removeAttribute(p){this.L.removeAttribute(p)}hasAttribute(p){return this.L.hasAttribute(p)}N(){return op(this.L)}YY(p){g.XX(this.L,p)}Sl(p){return g.qp(this.L,p)}Lx(){return g.n3(document.body,this.L)}audioTracks(){const p=this.L;if("audioTracks"in p)return p.audioTracks}fz(){for(const p of Object.keys(this.ac))this.L.removeEventListener(p,this.ac[p]);super.fz()}dG(p){this.L.disableRemotePlayback=p}};g.hW.prototype.G=Gl(67); g.hW.prototype.w7=Gl(65);g.hW.prototype.jl=Gl(63);g.hW.prototype.UO=Gl(61);var $T=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-horizonchart"});this.sampleCount=150;this.j=p;this.X=a;this.index=0;this.heightPx=-1;this.U=this.S=null;this.L=2;this.element.style.width=`${this.L*this.sampleCount}px`;this.element.style.height="1em"}};var lFo=class extends g.t{constructor(p){var a=null;a={W:"button",A9:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],Z:{title:"close"},yY:"[X]"};super({W:"div",A9:["html5-video-info-panel","ytp-sfn"],V:[a,{W:"div",A9:["html5-video-info-panel-content","ytp-sfn-content"],V:[{W:"div",V:[{W:"div",yY:"Video ID / sCPN"},{W:"span",yY:"{{video_id_and_cpn}}",T:"ytp-sfn-cpn"}]},{W:"div",V:[{W:"div",yY:"Viewport / Frames"},{W:"span",yY:"{{dims_and_frames}}"}]},{W:"div",V:[{W:"div",yY:"Current / Optimal Res"}, {W:"span",yY:"{{resolution}}"}]},{W:"div",V:[{W:"div",yY:"Volume / Normalized"},{W:"span",yY:"{{volume}}"}]},{W:"div",V:[{W:"div",yY:"Codecs"},{W:"span",yY:"{{codecs}}"}]},{W:"div",Z:{style:"{{shader_info_style}}"},V:[{W:"div",yY:"Shader Info"},{W:"span",yY:"{{shader_info}}"}]},{W:"div",Z:{style:"{{color_style}}"},V:[{W:"div",yY:"Color"},{W:"span",yY:"{{color}}"}]},{W:"div",Z:{style:"{{drm_style}}"},V:[{W:"div",yY:"Protected"},{W:"span",yY:"{{drm}}"}]},{W:"div",Z:{style:"{{bandwidth_style}}"},V:[{W:"div", yY:"Connection Speed"},{W:"span",V:[{W:"span",yY:"{{bandwidth_chart}}"},{W:"span",yY:"{{bandwidth_kbps}}"}]}]},{W:"div",Z:{style:"{{network_activity_style}}"},V:[{W:"div",yY:"Network Activity"},{W:"span",V:[{W:"span",yY:"{{network_activity_chart}}"},{W:"span",yY:"{{network_activity_bytes}}"}]}]},{W:"div",V:[{W:"div",yY:"Buffer Health"},{W:"span",V:[{W:"span",yY:"{{buffer_health_chart}}"},{W:"span",yY:"{{buffer_health_seconds}}"}]}]},{W:"div",Z:{style:"{{live_latency_style}}"},V:[{W:"div",yY:"Live Latency"}, {W:"span",V:[{W:"span",yY:"{{live_latency_chart}}"},{W:"span",yY:"{{live_latency_secs}}"}]}]},{W:"div",Z:{style:"{{live_mode_style}}"},V:[{W:"div",yY:"Live Mode"},{W:"span",yY:"{{live_mode}}"}]},{W:"div",Z:{style:"{{playback_categories_style}}"},V:[{W:"div",yY:"Playback Categories"},{W:"span",yY:"{{playback_categories}}"}]},{W:"div",Z:{style:"{{fmt_debug_info_style}}"},V:[{W:"div",yY:"Format Debug Info"},{W:"span",yY:"{{fmt_debug_info}}"}]},{W:"div",V:[{W:"div",yY:"Mystery Text"},{W:"span",yY:"{{debug_info}}"}]}, {W:"div",Z:{style:"{{extra_debug_info_style}}"},V:[{W:"div",yY:""},{W:"span",V:[{W:"span",yY:"{{extra_debug_info}}"}]}]},{W:"div",V:[{W:"div",yY:"Date"},{W:"span",yY:"{{date}}"}]},{W:"div",Z:{style:"{{cotn_and_local_media_style}}"},V:[{W:"div",yY:"COTN / Local Media"},{W:"span",yY:"{{cotn_and_local_media}}"}]},{W:"div",Z:{style:"{{release_style}}"},V:[{W:"div",yY:"Player Release"},{W:"span",yY:"{{release_name}}"}]}]}]});this.pz=p;this.position=0;this.X=!0;a?this.J(this.d7("ytp-sfn-close"),"click", this.hide):this.J(this.element,"click",this.hide);p=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];a="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");const l=p.map(y=>y/4); this.G={};this.L=new $T(p,a);g.H(this,this.L);this.updateValue("bandwidth_chart",this.L);this.U=new $T([0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.H(this,this.U);this.updateValue("live_latency_chart",this.U);this.S=new $T([0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.H(this,this.S);this.updateValue("buffer_health_chart",this.S);this.D=new $T(l,a);g.H(this,this.D);this.updateValue("network_activity_chart",this.D);this.delay= new g.SF(this.J9,500,this);g.H(this,this.delay);this.j=new g.SF(this.K,2E4,this);g.H(this,this.j)}show(){super.show();this.J9()}hide(){super.hide();this.delay.stop();this.j.stop()}J9(){var p=(0,g.h)(),a=nue(this.pz);Vk(this.L,a.bandwidth_samples);Vk(this.D,a.network_activity_samples);Vk(this.U,a.live_latency_samples);Vk(this.S,a.buffer_health_samples);const l={};for(const [y,S]of Object.entries(a)){a=y;const n=S;this.G[a]!==n&&(l[a]=" "+String(n));this.G[a]=n}this.update(l);p=(0,g.h)()-p>25?5E3:500; this.delay.start(p)}K(){this.X?(this.position+=1,this.position>15&&(this.X=!1)):(--this.position,this.position<=0&&(this.X=!0));this.element.style.left=`${this.position}%`;this.element.style.top=`${this.position}%`;this.j.start(2E4)}};var Vrr=class extends f4{constructor(p){super(p);Y(p,"getStatsForNerds",()=>nue(this.api)); QV(p,"showVideoInfo",()=>{ygM(this,!0)}); QV(p,"hideVideoInfo",()=>{ygM(this,!1)}); QV(p,"isVideoInfoVisible",()=>!!this.o4?.o1())}};var PP=class extends g.YB{constructor(){super();this.S=null;this.startTime=this.duration=0;this.delay=new g.qD(this.L,null,this);g.H(this,this.delay)}L(){var p=(0,g.h)()-this.startTime;p=p{this.button=new olM(p);g.H(this,this.button);p.WR(this.button,"RIGHT_CONTROLS_RIGHT")})}};var dmO=class extends f4{constructor(p){super(p);this.w7={TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED:()=>!1, TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK:a=>cD(this,a), TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK:a=>cD(this,a), TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN:()=>this.api.O().experiments.Cz("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?this.D&&this.C:this.D&&this.K, TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER:()=>this.jl}; this.jl=this.C=this.K=this.D=!1;this.X={};this.events=new g.yr(p);g.H(this,this.events);this.G=new g.G$(this.api.h9().Pf);g.H(this,this.G);if(this.api.A("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.ak(this.api.O().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")){const a=g.ak(this.api.O().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds");this.N=new g.SF(this.j,a,this);g.H(this,this.N)}this.events.J(p,"videodatachange",(a,l)=>{if(a!=="dataupdated"|| l.videoId!==this.videoId||!KR(this.timelyActions,Wy(l)))this.onVideoDataChange(l)}); this.events.J(p,"presentingplayerstatechange",a=>{this.jR(a)}); p.A("enable_smart_skip_player_controls_shown_on_web")&&(this.events.J(p,"onShowControls",()=>{this.D=!0;this.j()}),this.events.J(p,"onHideControls",()=>{this.D=!1}),this.G.subscribe("hoverstart",()=>{this.K=!0; this.j()},this),this.G.subscribe("hoverend",()=>{this.K=!1},this),p.A("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.J(p,"progressBarHoverStart",()=>{this.C=!0; this.api.A("enable_smart_skip_web_player_bar_hover_length_threshold")?this.N?.JP():this.j()}),this.events.J(p,"progressBarHoverEnd",()=>{this.C=!1; this.api.A("enable_smart_skip_web_player_bar_hover_length_threshold")&&this.N?.stop()}))); p.A("enable_smart_skip_speedmaster_on_web")&&this.events.J(p,"speedmasterchanged",a=>{(this.jl=a)&&this.j()}); this.events.J(p,g.tT("timelyAction"),a=>{this.onCueRangeEnter(a.getId())}); this.events.J(p,g.jh("timelyAction"),a=>{this.onCueRangeExit(a.getId())}); p.A("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.J(p,"keyboardserviceglobalkeydown",(a,l)=>{if((UK?a.altKey:a.ctrlKey)&&a.keyCode===39&&this.UO&&this.L&&(a=g.K(g7(this,this.L)?.rendererContext,B4$),a=yY(a?.onTap))&&(g.v0(this.api,"innertubeCommand",a),l&&(l.pw=!0),l=aJ(),a=u9$(l))){const y=g.c2(0);y&&xi(l.client,y,a,void 0)}},this); this.S=new g.t({W:"div",A9:["ytp-player-content","ytp-timely-actions-content"]});this.S.hide();Y(p,"insertTimelyActionUi",a=>{this.S.element.children.length>0&&g.m1(this.S.element);a.classList.add("ytp-timely-actions-overlay");this.S.element.appendChild(a)}); g.H(this,this.S);this.A("web_player_overlay_positioned_layout")?this.events.J(p,"basechromeinitialized",()=>{this.api.H9(this.S.element,4,!0);this.S.element.setAttribute("data-overlay-order","10")}):g.g1(this.api,this.S.element,4)}onVideoDataChange(p){this.mM(); this.videoId=p.videoId;this.U=this.L=void 0;this.timelyActions=Wy(p);QbM(this);uC(this);this.OE()}jR(p){const a=p.oldState,l=p.state,y=l.seekSource;!a.L(16)&&l.L(16)?this.KP(y??void 0):a.L(16)&&!l.L(16)&&this.Eu();p=p.state;p=!p.isCued()&&!p.L(1024);this.S.iM(p)}OE(){const p=this.iN();p&&this.api.OE(p)}mM(){this.api.RX("timelyAction",1);if(this.L!==void 0)this.onCueRangeExit(this.L)}iN(){if(this.timelyActions){var p=[];for(const l of this.timelyActions){var a=l.startTimeMilliseconds!=null&&l.endTimeMilliseconds!= null&&l.cueRangeId!=null?new g.yj(Number(l.startTimeMilliseconds),Number(l.endTimeMilliseconds),{id:l.cueRangeId,namespace:"timelyAction"}):void 0;a&&p.push(a)}return p}}onCueRangeEnter(p){const a=g7(this,p);a&&this.X[p]!==void 0&&(a.maxShowCount===void 0||a?.maxShowCount>this.X[p])&&(this.L=p,this.j())}onCueRangeExit(p){const a=axo(this,p);a&&this.L===p&&g.v0(this.api,"innertubeCommand",a);uC(this);this.L=void 0}KP(p){this.U=p}Eu(){this.j();this.U=void 0}j(){if(this.L!==void 0){var p=(p=g7(this, this.L))&&p.onCueRangeEnter?yY(p.onCueRangeEnter):void 0;var a=g7(this,this.L);a:if(a&&a.additionalTrigger){for(l of a.additionalTrigger)if(l.type&&(0,this.w7[l.type])?.(l.args??{})){var l=!0;break a}l=!1}else l=!0;p&&l&&(g.v0(this.api,"innertubeCommand",p),z9O(this,a),this.X[this.L]!==void 0&&this.X[this.L]++,this.UO=!0)}}fz(){this.timelyActions=this.U=this.L=this.videoId=void 0;this.X={};this.mM();uC(this);super.fz()}};var G_v=class extends f4{constructor(p){super(p);QV(this.api,"getPlaybackRate",()=>this.api.getPlaybackRate()); QV(this.api,"setPlaybackRate",a=>{typeof a==="number"&&this.api.setPlaybackRate(a)})}};var s7v=class extends pZ{constructor(p,a,l,y,S){super("Mejora de voz",g.Jc.Rg);this.B=p;this.j=a;this.U=l;this.hasVoiceBoostAudioTrack=y;this.getVoiceBoostState=S;this.S=!1;this.U6=this.B.A("html5_enable_new_audio_settings_menu")?p.GD().UN:p.GD();this.J(p,"videodatachange",this.q2.bind(this));this.J(p,"onPlaybackAudioChange",this.q2);this.B.A("html5_enable_new_audio_settings_menu")||this.setIcon(F0M());this.subscribe("select",this.X,this);this.q2()}X(p){this.j(p?2:1)}q2(){var p=this.B.getPresentingPlayerType(); p!==2&&p!==3||!this.S?this.B.A("html5_enable_new_audio_settings_menu")?(p=this.getVoiceBoostState(),p!==1?(p===0?(this.L(this.U()===2),this.setEnabled(!0)):(this.L(!1),this.setEnabled(!1)),this.S||(this.U6.Su(this),this.S=!0)):this.S&&(this.U6.RM(this),this.S=!1)):this.S||(p=this.hasVoiceBoostAudioTrack(),this.setEnabled(p),p=this.U()===2&&p,this.L(p),this.U6.Su(this),this.S=!0):(this.S=!1,this.U6.RM(this))}fz(){this.U6.RM(this);super.fz()}};var Bce=class extends f4{constructor(p){super(p);this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"settingsMenuInitialized",()=>{Ubr(this)}); Y(this.api,"getVoiceBoostUserPreference",()=>this.getVoiceBoostUserPreference()); Y(this.api,"setVoiceBoostUserPreference",a=>{this.setVoiceBoostUserPreference(a)}); Y(this.api,"hasVoiceBoostAudioTrack",()=>this.hasVoiceBoostAudioTrack()); Y(this.api,"getVoiceBoostState",()=>this.getVoiceBoostState()); this.L=vAo()??0;this.updateEnvironmentData()}getVoiceBoostUserPreference(){return this.L}setVoiceBoostUserPreference(p){this.api.Xu("vb_set",{pref:p});g.V2("yt-player-voice-boost",p);p!==this.L&&(this.L=p,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.Um(),this.api.pC())}hasVoiceBoostAudioTrack(){const p=this.api.getVideoData()?.U?.S;return p?Nh(p,a=>a.audio?.S===!0):!1}getVoiceBoostState(){return this.api.Z_(1)}updateEnvironmentData(){this.api.O().rA=this.L}};var Ixh=["www.youtube-nocookie.com","www.youtubeeducation.com"],cHo=class extends f4{constructor(p){super(p);this.useLivingRoomPoToken=!1;this.X=new g.un;this.L=!1;this.QQ=null;this.K=!1;this.j=null;this.D=!1;const a=p.O().getWebPlayerContextConfig();this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"spsumpreject",(l,y,S)=>{this.D=y;l&&this.K&&!this.j&&(this.A("html5_generate_content_po_token")&&S?this.zc(S):this.A("html5_generate_session_po_token")&&gDF(this));this.j||this.api.Xu("stp", {s:+this.K,b:+this.D})}); this.events.J(p,"poTokenVideoBindingChange",l=>{this.zc(l)}); this.useLivingRoomPoToken=!!a?.useLivingRoomPoToken;p.addEventListener("csiinitialized",()=>{this.QQ=p.L0();const l=(this.A("html5_generate_session_po_token")||this.A("html5_generate_content_po_token"))&&!this.useLivingRoomPoToken;try{if(this.A("html5_use_shared_owl_instance"))fWM(this);else if(l){this.QQ.Ut("pot_isc");const y=g.ak(this.api.O().experiments,"html5_webpo_kaios_defer_timeout_ms");y?(this.U=Eg(),g.jQ(()=>{TR(this)},y)):this.A("html5_webpo_idle_priority_job")?(this.U=Eg(),g.wM(g.vT(), ()=>{TR(this)})):TR(this)}}catch(y){y instanceof Error&&g.tX(y)}}); p.addEventListener("trackListLoaded",this.K0.bind(this));p.wH(this)}fz(){this.G&&(g.ix(this.G),this.G=void 0);super.fz()}Ln(){(this.S?!this.L:this.U)&&$u(this)}K0(p,a,l){if(xjo(p)){var y=l||"";if(this.L)a=rP(this,y),fP(p,a);else{var S=new g.un;a.push(S.promise);this.X.promise.then(()=>{const n=rP(this,y);fP(p,n);S.resolve()})}}}zc(p){if(this.S||this.U)p.Be=rP(this,p.videoId),this.L||(this.j=new z0,this.X.promise.then(()=>{this.QQ.Ut("pot_if"); p.Be=rP(this,p.videoId)}))}};g.rHZ=class extends g.t{constructor(p){const a=p.O(),l=g.TF||g.rR?{style:"will-change: opacity"}:void 0,y=a.j,S=["ytp-modern-videowall-still"];a.S&&S.push("ytp-videowall-show-text");super({W:"a",A9:S,Z:{href:"{{url}}",target:y?a.C:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{W:"div",T:"ytp-modern-videowall-still-image",Z:{style:"{{background}}"},V:[{W:"span",T:"ytp-modern-videowall-still-info-duration",yY:"{{duration}}"}]}, {W:"span",T:"ytp-modern-videowall-still-info",Z:{"aria-hidden":"true"},V:[{W:"span",T:"ytp-modern-videowall-still-info-bg",V:[{W:"span",T:"ytp-modern-videowall-still-info-content",Z:l,V:[{W:"span",T:"ytp-modern-videowall-still-info-title",yY:"{{title}}"},{W:"span",T:"ytp-modern-videowall-still-info-author",yY:"{{author}}"},{W:"span",T:"ytp-modern-videowall-still-view-count-and-date-info",yY:"{{views_and_publish_time}}"},{W:"span",T:"ytp-modern-videowall-still-info-live",yY:"En directo"}]}]}]},{W:"span", A9:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{W:"span",T:"ytp-modern-videowall-still-listlabel-icon"},"Lista de reproducci\u00f3n",{W:"span",T:"ytp-modern-videowall-still-listlabel-length",V:[" (",{W:"span",yY:"{{playlist_length}}"},")"]}]},{W:"span",A9:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],Z:{"aria-hidden":"true"},V:[{W:"span",T:"ytp-modern-videowall-still-listlabel-mix-icon"}, "Mix",{W:"span",T:"ytp-modern-videowall-still-listlabel-length",yY:" (50+)"}]}]});this.suggestion=null;this.S=y;this.api=p;this.L=new g.yr(this);g.H(this,this.L);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.L.J(p,"videodatachange",this.onVideoDataChange);p.createServerVe(this.element,this);this.onVideoDataChange()}select(){this.api.vL(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.ix||void 0)&&this.api.logClick(this.element)}onClick(p){if(g.x3(this.api.O())&& this.api.A("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);let a=this.suggestion.Zb();const l={};g.To(this.api,l);a=g.Re(a,l);g.QD(a,this.api,p)}else g.NX(p,this.api,this.S,this.suggestion.sessionData||void 0)&&this.select()}onKeyPress(p){switch(p.keyCode){case 13:case 32:p.defaultPrevented||(this.select(),p.preventDefault())}}onVideoDataChange(){const p=this.api.getVideoData(),a=this.api.O();this.S=p.XX?!1:a.j}};var TP$=class extends g.t{constructor(p,a){super({W:"div",A9:["ytp-fullscreen-grid"],V:[{W:"div",T:"ytp-fullscreen-grid-hover-overlay",Z:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid","data-tooltip-offset-y":"-70"},V:[{W:"div",A9:["ytp-fullscreen-grid-expand-button","ytp-button"],V:[{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"g",Z:{filter:"url(#filter0_d_3104_799356)"},V:[{W:"path", Z:{d:"M5.29 15.20C4.92 14.84 4.90 14.26 5.22 13.86L5.29 13.79L11.99 7.08L18.70 13.79C19.09 14.18 19.09 14.81 18.70 15.20C18.31 15.59 17.68 15.59 17.29 15.20L11.99 9.91L6.70 15.20L6.63 15.27C6.23 15.59 5.65 15.57 5.29 15.20Z",fill:"white"}}]},{W:"defs",V:[{W:"filter",Z:{"color-interpolation-filters":"sRGB",filterUnits:"userSpaceOnUse",height:"26",width:"26",x:"-1",y:"-1"},V:[{W:"feFlood",Z:{"flood-opacity":"0",result:"BackgroundImageFix"}},{W:"feColorMatrix",Z:{"in":"SourceAlpha",result:"hardAlpha", type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}},{W:"feOffset"},{W:"feGaussianBlur",Z:{stdDeviation:"0.5"}},{W:"feComposite",Z:{in2:"hardAlpha",operator:"out"}},{W:"feColorMatrix",Z:{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0"}},{W:"feBlend",Z:{in2:"BackgroundImageFix",mode:"normal",result:"effect1_dropShadow_3104_799356"}},{W:"feBlend",Z:{"in":"SourceGraphic",in2:"effect1_dropShadow_3104_799356",mode:"normal",result:"shape"}}]}]}]}]}]},{W:"div",T:"ytp-fullscreen-grid-main-content", V:[{W:"div",T:"ytp-fullscreen-grid-stills-container"}]}]});this.player=p;this.stills=[];this.videoData=null;this.currentState=0;this.L=this.d7("ytp-fullscreen-grid-main-content");this.j=this.d7("ytp-fullscreen-grid-stills-container");this.S=new g.yr(this);g.H(this,this.S);this.U=a;if(this.L&&this.j){if(p=this.d7("ytp-fullscreen-grid-hover-overlay"))this.J(p,"click",this.X),Wc(this.player,p,this);if(p=this.player.getVideoData(1))this.videoData=p;this.player.createClientVe(this.L,this,223051);this.S.J(this.player, "videodatachange",this.onVideoDataChange)}}fz(){this.hide();g.uY(this.S);g.Fm(this.stills);this.stills.length=0;super.fz()}X(p){this.U&&this.U(p)}onVideoDataChange(){this.videoData=this.player.getVideoData(1);const p=(this.videoData?.suggestions?.length?this.videoData?.suggestions:this.videoData?.N()?[this.videoData?.N()]:[]).slice(0,18),a=this.j;if(a&&this.L)if(g.m1(a),p.length){this.stills.length>p.length&&g.Fm(this.stills.splice(p.length));this.stills.length=p.length;for(let l=0;l{tB(this)}); a.J(p,"videodatachange",()=>{if(this.U){var l=this.api.getVideoData(1);this.videoData!==l&&this.S===2&&(g.BM(this.api.getRootNode(),"ytp-grid-scrolling"),o2(this,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));this.videoData=l}},this); a.J(p,"sizestylechange",()=>{this.U&&tB(this)}); Y(this.api,"setFullscreenQuickActions",l=>{this.setFullscreenQuickActions(l)}); Y(this.api,"setPlayerOverlayVideoDetailsRenderer",l=>{this.setPlayerOverlayVideoDetailsRenderer(l)}); this.U&&s5$(this,a,p)}Bs(){this.U&&this.S!==0&&this.N("INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}N(p){this.U&&(p==="INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"&&(this.C&&clearTimeout(this.C),this.C=window.setTimeout(()=>{this.C=null},1E3)),this.S===1?o2(this,2,p):o2(this,1,p))}setFullscreenQuickActions(p){this.Sl&&this.Sl.remove(); p?(g.XX(p,"ytp-fullscreen-quick-actions"),this.A("web_player_overlay_positioned_layout")?(p.setAttribute("data-overlay-order","13"),this.api.H9(p,4)):(g.XX(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions"),g.g1(this.api,p,4))):g.BM(this.api.getRootNode(),"ytp-has-fullscreen-quick-actions");this.Sl=p;tB(this)}setPlayerOverlayVideoDetailsRenderer(p){this.playerOverlayVideoDetailsRenderer&&this.playerOverlayVideoDetailsRenderer.remove();if(p){g.XX(p,"ytp-fullscreen-metadata");g.XX(this.api.getRootNode(), "ytp-hide-fullscreen-title");p.setAttribute("data-overlay-order","1");var a=this.api.A("delhi_modern_web_player_fullscreen_metadata_bottom");const l=a?3:1;a=a?"ytp-fullscreen-metadata-bottom":"ytp-fullscreen-metadata-top";g.XX(this.api.getRootNode(),a);this.A("web_player_overlay_positioned_layout")?this.api.H9(p,l):g.g1(this.api,p,4)}else g.BM(this.api.getRootNode(),"ytp-hide-fullscreen-title"),g.BM(this.api.getRootNode(),"ytp-fullscreen-metadata-bottom"),g.BM(this.api.getRootNode(),"ytp-fullscreen-metadata-top"); this.playerOverlayVideoDetailsRenderer=p;tB(this)}};var $me=class extends f4{constructor(p){super(p);this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.yr(p);g.H(this,this.events);this.events.J(p,"heartbeatRequest",a=>{if(this.freePreviewUsageDetails.length||this.freePreviewWatchedDuration!==null)a.heartbeatRequestParams||(a.heartbeatRequestParams={}),a.heartbeatRequestParams.unpluggedParams||(a.heartbeatRequestParams.unpluggedParams={}),this.freePreviewUsageDetails.length>0?a.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= this.freePreviewUsageDetails:a.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:`${this.freePreviewWatchedDuration}`}}); Y(p,"setFreePreviewWatchedDuration",a=>{this.freePreviewWatchedDuration=a}); Y(p,"setFreePreviewUsageDetails",a=>{this.freePreviewUsageDetails=a})}};var P2A=class extends g.YB{constructor(p){super();this.features=[];var a=new CAq(p),l=new hSe(p),y=new iSZ(p),S=new cHo(p);var n=g.ei(p.O())?void 0:new GyA(p);var V=new WbM(p),Z=new Vrr(p),z=new G_v(p),d=new E6Z(p);var G=g.ei(p.O())?new $me(p):void 0;var B=p.O().getWebPlayerContextConfig()?.cinematicSettingsAvailable?new n6O(p):void 0;var c=new XmA(p);var w=p.A("enable_courses_player_overlay_purchase")?new Fio(p):void 0;var X=g.p8(p.O())?new PAM(p):void 0;var v=new BLE(p);var I=p.O().j?new rSO(p): void 0;var u=g.x3(p.O())?new cSh(p):void 0;var m=p.A("web_player_move_autonav_toggle")&&p.O().zn?new SJE(p):void 0;var M=g.p8(p.O())?new t7r(p):void 0;var D=p.A("web_enable_speedmaster")&&g.p8(p.O())?new yHv(p):void 0;var A=p.O().QS?void 0:new zlv(p);var $h=p.A("report_pml_debug_signal")?new qPf(p):void 0;var cE=new HSr(p),FO=new UqZ(p);var CA=g.cf(p.O())?new htZ(p):void 0;var sM=navigator.mediaSession&&window.MediaMetadata&&p.O().ZU?new j3v(p):void 0;var b_=p.A("html5_enable_drc")&&!p.O().D?new dyf(p): void 0;var F=new YPM(p);var tP=g.p8(p.O())?new qNE(p):void 0;var l0=p.A("html5_enable_d6de4")?new NSM(p):void 0;var KF=g.p8(p.O())&&p.A("web_sleep_timer")?new pof(p):void 0;var Rh=g.x3(p.O())?new wmv(p):void 0;var uf=new JiE(p),IY=new VUr(p),RY=new knv(p);var $r=p.A("enable_sabr_snackbar_message")?new aXr(p):void 0;var uE=p.A("web_enable_timely_actions")?new dmO(p):void 0;var PG=new ZQA(p);var L6=p.O()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature?new wov(p):void 0;var X8=p.A("html5_enable_voice_boost")? new Bce(p):void 0;var gJ=p.A("web_player_loop_settings_menu")&&p.O().A3?new mqh(p):void 0;var f=g.ei(p.O())?void 0:new A7F(p);var GJ=new Q3e(p),L=new ayE(p),T=new Dqr(p),RJ=new lyh(p);var OU=g.p8(p.O())&&p.O().A("delhi_modern_web_player")?new o6M(p):void 0;var Xf=p.O().U?void 0:new pmO(p);p=[a,l,y,S,n,V,Z,z,d,G,B,c,w,X,v,I,u,m,M,D,A,$h,cE,FO,CA,void 0,sM,b_,F,void 0,tP,l0,KF,Rh,void 0,uf,IY,RY,void 0,$r,uE,PG,L6,X8,void 0,gJ,void 0,f,GJ,L,T,RJ,OU,Xf,new Sor(p)];for(const h9 of p)h9&&this.features.push(h9)}fz(){for(let p= this.features.length-1;p>=0;p--)this.features[p].dispose();this.features.length=0;super.fz()}};var L_f=class{constructor(){this.S=this.L=NaN}reset(){this.L=this.S=NaN}};var SOh=class{constructor(p,a){this.Y=p;this.timerName="";this.U=!1;this.S=NaN;this.j=new L_f;this.L=a||null;this.U=!1}reset(){mn(this.timerName)}tick(p,a){KU(p,a,this.timerName)}Ut(p){return nm(p,void 0,this.timerName)}iS(p){g.ce(p,void 0,this.timerName)}infoGel(p){g.ew(p,this.timerName)}};var G$o=class extends g.js{constructor(p,a){super();this.g7=p;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.L=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.C={};this.S=0;if(p=a.session_data)this.sessionData=$e(p,"&");this.index=Math.max(0,Number(a.index)||0);this.loop=!!a.loop;this.startSeconds=Number(a.startSeconds)||0;this.title=a.playlist_title||"";this.description=a.playlist_description|| "";this.author=a.author||a.playlist_author||"";a.video_id&&(this.items[this.index]=a);if(p=a.api)typeof p==="string"&&p.length===16?a.list="PL"+p:a.playlist=p;if(p=a.list)switch(a.listType){case "user_uploads":this.listId=new ff("UU",`PLAYER_${p}`);break;default:var l=a.playlist_length;l&&(this.length=Number(l)||0);this.listId=Tl(p);if(l=a.video)this.items=l.slice(0),this.loaded=!0}else if(a.playlist){p=a.playlist.toString().split(",");this.index>0&&(this.items=[]);for(l of p)l&&this.items.push({video_id:l}); this.length=this.items.length;if(l=a.video)this.items=l.slice(0),this.loaded=!0}this.setShuffle(!!a.shuffle);if(l=a.suggestedQuality)this.quality=l;this.C=Ax(a,"playlist_");this.U=(a=a.thumbnail_ids)?a.split(","):[]}Wo(p){return this.loop||!!p||this.index+1=0}setShuffle(p){this.shuffle=p;p=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var a=0;a{}),this.D=a,Promise.all(l).then(a.resolve,a.reject).finally(()=>{this.D=null})):p.K0()}else p.K0()}fz(){this.D&&(this.D.reject(),this.D=null); this.U();super.fz()}};g.Xx.prototype.N=Gl(71);g.Xx.prototype.j=Gl(70);g.xT=class extends g.Xx{constructor(p,a,l){super(p);this.videoData=a;this.audioTrack=l;this.L=null;this.K=!1;this.C=a.bQ;this.jl=a.Jf;this.K=g.wl(a)}G(p){if(this.audioTrack)for(const a of this.audioTrack.captionTracks)g.SJ(this.S,a);this.K0(p,this.videoData.videoId)}X(p,a){const l=p.G9(),y={fmt:a};if(a==="srv3"||a==="3"||a==="json3")g.VI()?Object.assign(y,{xorb:2,xobt:1,xovt:1}):Object.assign(y,{xorb:2,xobt:3,xovt:3});p.translationLanguage&&(y.tlang=g.ka(p));this.K&&(y.xosf="1");Object.assign(y,this.pz.O().L); return Jf(l,y)}U(){this.L&&this.L.abort()}};g.xT.prototype.j=Gl(69);g.xmh=new Map;g.Fx=class extends g.Xx{constructor(p,a,l,y,S,n){super(p);this.videoId=l;this.OH=S;this.eventId=n;this.UO={};this.L=null;p=y||g.IE(a).hl||"";p=p.split("_").join("-");this.K=Jf(a,{hl:p})}G(p){let a=this.K;const l={type:"list",tlangs:1,v:this.videoId,vssids:1};this.OH&&(l.asrs=1);a=Jf(a,l);this.U();this.L=g.$Y(a,{format:"RAW",onSuccess:y=>{this.L=null;if((y=y.responseXML)&&y.firstChild){var S=y.getElementsByTagName("track");for(var n=0;nthis.D}; this.C=this.B.A("web_player_defer_modules");this.yr=new Map;g.H(this,this.G);this.G.J(p,"videodatachange",this.onVideoDataChange)}createSubtitlesModuleIfNeeded(){Ei(this)&&n5(this,"captions");return!!g.t9(this)}JQ(){return this.B.getVideoData().JQ()}Gv(){return this.B.getVideoData().Gv()}K(){const p=this.yr.get("heartbeat");n5(this,"heartbeat",!1,!0,this.K);!p&&this.yr.has("heartbeat")&&this.B.publish("offlineslatestatechange")}L(){n5(this,"annotations_module",!0,void 0,this.L);const p=this.yr.get("annotations_module"); if(p)for(const a in this.U){if(!this.U.hasOwnProperty(a))continue;const l=a;p.subscribe(l,this.U[l])}}j(){if(!this.yr.get("ad"))try{P5(this)?n5(this,"ad",!1,!0,this.j):MC(this,"ad")}catch(p){MC(this,"ad"),g.MD(p)}}L0(){return this.S}ZH(){const p={},a=g.t9(this);a&&Object.assign(p,a.ZH());return p}rl(p,a){Object.assign(this.S,p||null);Object.assign(this.nG,a||null)}tA(){if(g.CP(this.B.O()))return this.yr.get("unplugged")}onVideoDataChange(){const p=this.B.getVideoData();this.B.A("enable_wn_infocards")&& p.n8()&&!g.xs(this)&&this.L()}fz(){super.fz();Hc(this,1,!0);for(const [p,a]of Object.entries(CDv)){const l=p;this.X.has(a)&&O$.delete(l)}this.X.clear()}},CDv={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", ypc_clickwrap:"ypc_clickwrap.js",yto:"yto.js"},$VM={ad:["ad"],annotations_module:[],asmjs:[],creatorendscreen:[],embed:[],endscreen:[],heartbeat:["heartbeat"],kids:[],remote:["mdx"],miniplayer:[],offline:[],captions:[],unplugged:[],ux:[],webgl:["webgl"],ypc_clickwrap:["ypcRentalActivation"],ypc:[],yto:["playableSequences"]},gX$="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");var F_$=class extends g.js{constructor(p,a,l,y){super();this.target=p;this.api=a;this.Bb=l;this.S=0;this.D=!1;this.j=new g.g3(NaN,NaN);this.L=new g.yr(this);this.w7=this.U=this.G=null;g.H(this,this.L);a=y?g.ak(this.api.O().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.ak(this.api.O().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.C=new g.SF(()=>{es(this,1,!1)},a,this); g.H(this,this.C);this.UO=new g.SF(()=>{es(this,2,!1)},a,this); g.H(this,this.UO);this.N=new g.SF(()=>{es(this,2048,!1)},a,this); g.H(this,this.N);this.Sl=new g.SF(()=>{es(this,512,!1)},a,this); g.H(this,this.Sl);this.QY=3E3;y||(this.U=this.L.J(p,"mouseover",this.Vu),this.L.J(p,"mousemove",this.Bs),this.L.J(p,"mouseleave",this.Tm));this.api.A("web_player_enable_fullscreen_grid_components")&&this.L.J(p,"wheel",this.iT,this,!0);D2?this.L.J(p,"keypress",this.Ic):this.L.J(p,"focusin",this.ac);this.X=this.L.J(p,"mousedown",this.jl);this.K=this.L.J(p,"touchstart",this.Ws,void 0,!0);es(this,640,!0)}Bs(p){p=new g.g3(p.pageX,p.pageY);if(!dr(p,this.j)){let a=2;this.D&&(a|=8);this.j=p;es(this,a,!0)}}iT(){es(this, 2048,!0)}Tm(){this.D&&es(this,8,!0);es(this,2,!1)}Vu(p){const a=new g.g3(p.pageX,p.pageY);dr(a,this.j)||(this.j=a,(p=p.target)&&this.Bb(p)&&(es(this,4,!0),this.L.Kt(this.U),this.U=this.L.J(this.target,"mouseover",this.Oo),this.G=this.L.J(this.target,"mouseout",this.Oo)))}Oo(p){p=p.relatedTarget;p&&this.Bb(p)||(this.j=new g.g3(NaN,NaN),c5E(this))}Ic(){es(this,1,!0)}ac(p){p=p.target;p instanceof Element&&!(p.tabIndex>0)||es(this,1,!0)}jl(){this.D=!0;this.L.Kt(this.X);this.X=this.L.J(document,"mouseup", this.Hs)}Hs(){this.D=!1;es(this,8,!1);this.L.Kt(this.X);this.X=this.L.J(this.target,"mousedown",this.jl)}Ws(p){if(p=(p=p.changedTouches)&&p[0])this.w7=p.identifier,this.L.Kt(this.K),this.K=this.L.J(this.target,"touchend",this.Rc,void 0,!0),es(this,1024,!0)}Rc(p){let a;if(p=p.changedTouches)for(let l=0;l{this.L.JP()}),this.S.J(this.api,"videoplayerreset",()=>{this.L.JP()})); super.show()}hide(){this.S&&g.uY(this.S);super.hide()}Cx(){this.L.JP()}onStateChange(){this.L.JP()}j(){this.L.JP()}onReset(){this.fade.stop();this.hide();this.L.JP()}J9(){const p=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(p.isPlaying()||p.isPaused()))var a=!0;else(a=this.api.DN().yr.get("ypc"))&&a.Ea?a=!0:(a=this.api.O(),a=p.L(2)&&g.gw(this.api)&&a.r$?!0:!1);a?(a=!0,this.U.hide()):(this.U.show(),a=p.isCued()&&this.api.getPresentingPlayerType()!==2||p.L(2)&&!g.gw(this.api)&& !this.api.jI()||p.L(1024)?!0:!1);const l=this.api.getVideoData();a&&!l.XK?(this.fade.show(),hcq(this,this.api.getPlaylist(),l)):(this.fade.hide(),p.L(1)||this.fade.stop())}};var M8M; g.vlv=class extends g.t{constructor(p){super({W:"div",A9:["ytp-error"],Z:{role:"alert"},V:[{W:"div",T:"ytp-error-content",V:[{W:"div",T:"ytp-error-icon-container",V:[{W:"svg",Z:{fill:"#fff",viewBox:"0 0 48 48"},V:[{W:"path",Z:{d:"M0 0h48v48H0V0z",fill:"none"}},{W:"path",Z:{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"}}]}]},{W:"div",T:"ytp-error-content-wrap",V:[{W:"div", T:"ytp-error-content-wrap-reason",yY:"{{content}}"},{W:"div",T:"ytp-error-content-wrap-subreason",yY:"{{subreason}}"}]}]}]});this.api=p;this.keys=[];this.U=!1;p.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.yQ)}resize(){}S(p){this.U=!1;eEf(this);var a=p.RS,l=this.api.O();a!=="GENERIC_WITHOUT_LINK"||l.D?a==="TOO_MANY_REQUESTS"?(l=this.api.getVideoData(),this.setContent(zh(this,"TOO_MANY_REQUESTS_WITH_LINK",l.Zb(),void 0,void 0,void 0,!1))):a!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"|| l.D?this.api.O().A("html5_enable_bandaid_error_screen")&&a==="HTML5_SPS_UMP_STATUS_REJECTED"&&!l.D?(l=l.hostLanguage,p="//support.google.com/youtube?p=videoError",l&&(p=g.Re(p,{hl:l})),this.setContent(zh(this,"HTML5_SPS_UMP_STATUS_REJECTED",p))):this.api.O().A("enable_adb_handling_in_sabr")&&a==="BROWSER_OR_EXTENSION_ERROR"&&!l.D?(l=l.hostLanguage,p="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",l&&(p=g.Re(p,{hl:l})),this.setContent(zh(this,"BROWSER_OR_EXTENSION_ERROR", p))):this.setContent(g.Ey(p.errorMessage)):this.setContent(zh(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(p=l.hostLanguage,a="//support.google.com/youtube/?p=player_error1",p&&(a=g.Re(a,{hl:p})),this.setContent(zh(this,"GENERIC_WITH_LINK_AND_CPN",a,!0)),l.Lx&&!l.j&&DPe(this,y=>{if(g.NX(y,this.api,!oQ(this.api.O()))){const S={as3:!1,html5:!0,player:!0,cpn:this.api.getVideoData().clientPlaybackNonce};y=this.api;g.OT(y,"onFeedbackArticleRequest", {articleId:3037019,helpContext:"player_error",productData:S});y.isFullscreen()&&y.toggleFullscreen()}})); if(this.U){const y=this.d7("ytp-error-link");y&&(this.api.createClientVe(y,this,216104),this.api.logVisibility(y,!0),DPe(this,()=>{this.api.logClick(y)}))}}}; M8M=/([^<>]+)<\/a>/;var K_h=class extends g.t{constructor(p){super({W:"div",A9:["ytp-overlays-container"],V:[{W:"div",T:"ytp-overlay-top-left"},{W:"div",T:"ytp-overlay-top-right"},{W:"div",T:"ytp-overlay-bottom-left"},{W:"div",T:"ytp-overlay-bottom-right"}]});this.U=this.d7("ytp-overlay-top-left");this.j=this.d7("ytp-overlay-top-right");this.L=this.d7("ytp-overlay-bottom-left");this.S=this.d7("ytp-overlay-bottom-right");g.g1(p,this.element,4)}H9(p,a,l=!1){switch(a){case 1:vu(this,p,this.U,l);break;case 2:vu(this,p,this.j, l);break;case 3:vu(this,p,this.L,l);break;case 4:vu(this,p,this.S,l)}}};var elo=class extends g.t{constructor(p){super({W:"div",T:"ytp-paid-content-overlay",Z:{"aria-live":"assertive","aria-atomic":"true",["data-overlay-order"]:"5"}});this.B=p;this.videoId=null;this.U=!1;this.innertubeCommand=this.Ch=this.L=null;const a=p.O();p.A("enable_new_paid_product_placement")&&!g.cy(a)?(this.S=new g.t({W:"a",T:"ytp-paid-content-overlay-link",Z:{href:"{{href}}",target:"_blank"},V:[{W:"div",T:"ytp-paid-content-overlay-indicator"},{W:"div",T:"ytp-paid-content-overlay-icon",yY:"{{icon}}"}, {W:"div",T:"ytp-paid-content-overlay-text",yY:"{{text}}"},{W:"div",T:"ytp-paid-content-overlay-chevron",yY:"{{chevron}}"}]}),this.J(this.S.element,"click",this.onClick)):this.S=new g.t({W:"div",A9:["ytp-button","ytp-paid-content-overlay-text"],yY:"{{text}}"});this.fade=new g.Kg(this.S,250,!1,100);g.H(this,this.S);this.S.lT(this.element);g.H(this,this.fade);this.B.createServerVe(this.element,this);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"presentingplayerstatechange",this.j)}onClick(p){this.innertubeCommand? (g.v0(this.B,"innertubeCommand",this.innertubeCommand),p.preventDefault()):g.NX(p,this.B,!0);this.B.logClick(this.element)}onVideoDataChange(p,a){PZ(this,a);this.Ch&&yvr(this,this.Ch)}j(p){const a=this.B.getVideoData();this.videoId!==a.videoId&&PZ(this,a);this.L&&yvr(this,p.state);this.Ch=p.state}zR(){this.fade.show();this.B.publish("paidcontentoverlayvisibilitychange",!0);this.B.logVisibility(this.element,!0)}ke(){this.fade.hide();this.B.publish("paidcontentoverlayvisibilitychange",!1);this.B.logVisibility(this.element, !1)}};var bMv=class extends g.t{constructor(p){super({W:"div",T:"ytp-spinner",V:[vW(),{W:"div",T:"ytp-spinner-message",yY:"Si la reproducci\u00f3n no empieza en breve, prueba a reiniciar el dispositivo."}]});this.api=p;this.message=this.d7("ytp-spinner-message");this.L=new g.SF(this.show,500,this);g.H(this,this.L);this.J(p,"presentingplayerstatechange",this.onStateChange);this.J(p,"playbackstalledatstart",this.S);this.cZ(p.getPlayerStateObject())}hide(){this.L.stop();this.message.style.display="none";super.hide()}onStateChange(p){this.cZ(p.state)}cZ(p){(p.L(128)|| this.api.R$()||this.api.A("web_watch_enable_multiview_manager")&&this.api.getVideoData()?.MJ()?0:p.L(16)||p.L(1))?this.L.start():this.hide()}S(){this.message.style.display="block"}};var IXe=class extends g.Ag{constructor(p){const a=[{W:"div",A9:["ytp-unmute-icon"],V:[{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{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"}}]}]}, {W:"div",A9:["ytp-unmute-text"],yY:"Activar el sonido"}];a.push({W:"div",A9:["ytp-unmute-box"],V:[]});super(p,{W:"button",A9:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{W:"div",T:"ytp-unmute-inner",V:a}]},100);this.L=this.clicked=!1;this.api=p;this.api.createClientVe(this.element,this,51663);this.J(p,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.J(p,"presentingplayerstatechange",this.jR);this.listen("click",this.onClick,this);p=p.isMutedByMutedAutoplay()&& !g.x3(this.api.O());this.iM(p);p&&sXM(this);this.S=p}onMutedAutoplayChange(p){this.S&&(p?(sXM(this),this.zR()):(this.L&&this.logClick(),this.ke()))}jR(p){this.api.isMutedByMutedAutoplay()&&p.j5(2)&&this.ke()}onClick(){this.api.unMute();this.logClick()}logClick(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))}};g.da=class extends g.yr{constructor(p){super();this.api=p;this.R2=!1;this.L9=null;this.Uq=!1;this.t$=null;this.jy=this.rr=!1;this.PY=this.VN=null;this.Eh=NaN;this.xK=this.oL=!1;this.vr=0;this.Q_=[];this.AK=!1;this.O8={height:0,width:0};this.Bq=480;this.XA=["ytp-player-content","html5-endscreen","ytp-overlay"];this.aZ={dl:!1};this.V4=null;const a=p.O(),l=p.h9();this.O8=p.getPlayerSize();this.Vg=new g.SF(this.ih,0,this);g.H(this,this.Vg);a.disableOrganicUi||(this.cL=new g.C2e(p),g.H(this,this.cL),g.g1(p, this.cL.element,4));this.api.A("web_player_overlay_positioned_layout")&&(this.V4=new K_h(this.api),g.H(this,this.V4));if(h9h(this)){var y=new bMv(p);g.H(this,y);y=y.element;g.g1(p,y,4)}var S=p.getVideoData();this.OQ=new F_$(l,p,n=>this.Bb(n),a.A$); g.H(this,this.OQ);this.OQ.subscribe("autohideupdate",this.Cl,this);QL(this.OQ);if(!a.disablePaidContentOverlay){const n=new elo(p);g.H(this,n);this.V4?this.V4.H9(n.element,g.cy(a)?3:1):g.g1(p,n.element,4)}this.h6=new IXe(p);g.H(this,this.h6);g.g1(this.api,this.h6.element,2);this.aJ=this.api.isMutedByMutedAutoplay();this.J(p,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.GJ=new g.SF(this.zd,200,this);g.H(this,this.GJ);this.Sz=S.videoId;this.VD=new g.SF(()=>{this.vr=0},350); g.H(this,this.VD);this.oh=new g.SF(()=>{this.xK||gP(this)},350,this); g.H(this,this.oh);S=p.getRootNode();S.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube");switch(a.color){case "white":g.XX(S,"ytp-color-white")}this.J(p,"appresize",this.Cx);this.J(p,"presentingplayerstatechange",this.jR);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"videoplayerreset",this.FD);this.J(p,"autonavvisibility",()=>{this.Xx()}); this.J(p,"sizestylechange",()=>{this.Xx()}); this.J(l,"click",this.KM,this);this.J(l,"dblclick",this.cQ,this);this.J(l,"mousedown",this.Z0,this);a.iT&&(this.J(l,"gesturechange",this.JF,this),this.J(l,"gestureend",this.iH,this));this.RY=[l.Pf];this.cL&&this.RY.push(this.cL.element);y&&this.RY.push(y);this.api.A("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(l.element,this,247482),this.api.logVisibility(l.element,!0))}init(){const p=this.api,a=p.getPlayerStateObject();this.O8=p.getPlayerSize();this.X7(a);this.Xx();this.Cx(); this.api.publish("basechromeinitialized",this);this.w0()&&this.api.publish("standardControlsInitialized")}onVideoDataChange(p,a){var l=this.Sz!==a.videoId;if(l||p==="newdata")p=this.api,p.isFullscreen()||(this.O8=p.getPlayerSize());l&&(this.Sz=a.videoId,l=this.OQ,l.QY=3E3,es(l,512,!0),this.Xx());this.api.A("web_render_jump_buttons")&&a.showSeekingControls&&(this.Bq=572)}FD(){this.onVideoDataChange("newdata",this.api.getVideoData())}IN(){const p=this.api.gh()&&this.api.Vl(),a=this.api.ma();return this.Uq|| p||this.aJ||a}Px(){const p=!this.IN();g.OW(this.api.getRootNode(),"ytp-menu-shown",!p)}Bb(p){try{if(!g.n3(this.api.getRootNode(),p))return!1}catch(a){return!1}for(;p&&!MH(p);)p=p===this.api.getRootNode()?null:p.parentElement||null;return!!p}Cl(p){const a=this.api.getRootNode();g.OW(a,"ytp-autohide",p);g.OW(a,"ytp-autohide-active",!0);this.Vg.start(p?250:100);p&&(this.rr=!1,g.BM(a,"ytp-touch-mode"));this.jy=!p;this.api.fJ(!p);this.api.A("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate", p)}ih(){const p=this.api.getRootNode();g.OW(p,"ytp-autohide-active",!1)}qW(){this.xK=!0}oA(p){if(this.api.O().A("player_doubletap_to_seek")||this.api.O().G)this.xK=!1,this.PY&&this.Kt(this.PY),this.vr===0&&MW(this,p)?(this.Mz(),this.oh.start(),this.PY=this.J(this.api.h9(),"touchmove",this.qW,void 0,!0)):this.oh.stop();Bfh(this)&&MW(this,p)&&!this.api.O().G&&gP(this);var a=this.h6.Gf();if(!g.x3(this.api.O())&&VQ&&Hb(this,p))a&&p.preventDefault();else if(this.rr=!0,g.XX(this.api.getRootNode(),"ytp-touch-mode"), this.OQ.Y$(),this.api.O().A("player_doubletap_to_seek")||this.api.O().G)if(a=this.api.getPlayerStateObject(),!(!this.api.h$()||a.L(2)&&g.gw(this.api)||a.L(64))){a=Date.now()-this.Eh;this.vr+=1;if(a<=350){this.oL=!0;a=this.api.getPlayerSize().width/3;var l=this.api.getRootNode().getBoundingClientRect();const y=p.targetTouches[0].clientX-l.left;l=p.targetTouches[0].clientY-l.top;const S=(this.vr-1)*10;y>0&&ya*2&&y{this.aU(l)}),this.api.A("web_player_fullscreen_double_click_ve")&&this.api.logClick(this.api.h9().element)}catch(l){this.aU(l)}}aU(p){String(p).includes("fullscreen error")?g.tX(p):g.MD(p)}JF(p){SmM(this,.3,p.scale); p.preventDefault()}iH(p){SmM(this,.1,p.scale)}Cx(){const p=this.api.h9().getPlayerSize(),a=this.api.getRootNode(),l=p.width>=650,y=p.width<528;this.OQ.resize();if(this.api.A("web_player_use_screen_width_for_big_mode")){const S=p.width>=(g.ak(this.api.O().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);g.OW(a,"ytp-big-mode",S)}g.OW(a,"ytp-fullscreen",this.api.isFullscreen());g.OW(a,"ytp-large-width-mode",l);this.api.A("delhi_modern_web_player")?g.OW(a,"ytp-xsmall-width-mode",y):g.OW(a, "ytp-small-mode",this.m7());g.OW(a,"ytp-tiny-mode",this.Nf());g.OW(a,"ytp-big-mode",this.bN());this.t$&&this.t$.resize(p)}jR(p){this.X7(p.state);this.Xx()}Ym(){var p=!!this.Sz&&!this.api.AN()&&!this.AK,a=this.api.getPresentingPlayerType()===2,l=this.api.O();if(a)return l=Hq(this.api.DN()),p&&(l&&l.player?p=(p=l.player.getVideoData(2))?p.isListed&&!g.ei(l.player.O()):!1:(Q("showInfoBarDuringAd: this is null"),p=!1)),p;a=l.A("web_player_imax_theater_mode")&&this.api.n0()&&!this.api.isInline();return p&& (l.uK||a||this.api.isFullscreen()||l.QS)}Xx(){const p=this.Ym();this.L9!==p&&(this.L9=p,g.OW(this.api.getRootNode(),"ytp-hide-info-bar",!p))}X7(p){const a=p.isCued()||this.api.g3()&&this.api.getPresentingPlayerType()!==3;a!==this.isCued&&(this.isCued=a,this.VN&&this.Kt(this.VN),this.VN=this.J(this.api.h9(),"touchstart",this.oA,void 0,a));var l=this.OQ,y=p.isPlaying()&&!p.L(32)||this.api.P2();es(l,128,!y);l=this.OQ;y=this.api.getPresentingPlayerType()===3;es(l,256,y);l=this.api.getRootNode();p.L(2)? y=[n4.ENDED]:(y=[],p.L(8)?y.push(n4.PLAYING):p.L(4)&&y.push(n4.PAUSED),p.L(1)&&!p.L(32)&&y.push(n4.BUFFERING),p.L(32)&&y.push(n4.SEEKING),p.L(64)&&y.push(n4.UNSTARTED));g.Pd(this.Q_,y)||(g.bT(l,this.Q_),this.Q_=y,g.eP(l,y));y=this.api.O();const S=p.L(2);a:{var n=this.api.O();const V=n.controlsType;switch(V){case "2":case "0":n=!1;break a}n=V==="3"&&!p.L(2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:yZ(Hq(this.api.DN())))||this.api.ma()||g.x3(n)&&this.api.getPresentingPlayerType()===2? !1:!0}g.OW(l,"ytp-hide-controls",!n);g.OW(l,"ytp-native-controls",y.controlsType==="3"&&!a&&!S&&!this.aJ);p.L(128)&&!g.x3(y)?(this.t$||(this.t$=new g.vlv(this.api),g.H(this,this.t$),g.g1(this.api,this.t$.element,4)),this.t$.S(p.Kq),this.t$.show()):this.t$&&(this.t$.dispose(),this.t$=null)}r8(){return this.api.gh()&&this.api.Vl()?(this.api.vC(!1,!1),!0):this.api.AN()?(g.ZG(this.api,!0),!0):!1}onMutedAutoplayChange(p){this.aJ=p;this.Px()}bN(){return!1}m7(){return!this.bN()&&(this.api.getPlayerSize().width< this.Bq||this.api.getPlayerSize().height<290)}Nf(){return this.m7()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)}M7(){return this.rr}GD(){return null}LD(){return null}w3(){const p=this.api.h9().getPlayerSize();return new g.hu(0,0,p.width,p.height)}handleGlobalKeyDown(){return!1}handleGlobalKeyUp(){return!1}gK(){}showControls(p){p!==void 0&&this.api.h9().fJ(p)}Y$(){}w0(){return null}};g.da.prototype.uP=Gl(3);g.RlZ=class extends g.t{constructor(p){super({W:"div",V:[{W:"div",T:"ytp-bezel-text-wrapper",V:[{W:"div",T:"ytp-bezel-text",yY:"{{title}}"}]},{W:"div",T:"ytp-bezel",Z:{role:"status","aria-label":"{{label}}"},V:[{W:"div",T:"ytp-bezel-icon",yY:"{{icon}}"}]}]});this.B=p;this.S=new g.SF(this.show,10,this);p=this.B.A("delhi_modern_web_player")?1E3:500;this.L=new g.SF(this.hide,p,this);g.H(this,this.S);g.H(this,this.L);this.hide()}show(){super.show();this.L.JP()}hide(){this.S.stop();super.hide()}ip(p){var a= this.B.A("delhi_modern_web_player_icons");p?this.B.getPlayerStateObject().L(64)||(a=a?t3():tW(),FA(this,a,"Bot\u00f3n de reproducci\u00f3n")):(p=this.B.getVideoData(),p.isLivePlayback&&!p.allowLiveDvr?(a=a?oNf():Mvr(),FA(this,a,"Detener reproducci\u00f3n en directo")):(a=a?Mcr():H6A(),FA(this,a,"Pausa")))}};var u5A=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-button","ytp-cards-button"],Z:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.x3(p.O()))},V:[{W:"span",T:"ytp-cards-button-icon-default",V:[{W:"div",T:"ytp-cards-button-icon",V:[p.O().A("player_new_info_card_format")?U5E():{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {W:"div",T:"ytp-cards-button-title",yY:"Informaci\u00f3n"}]},{W:"span",T:"ytp-cards-button-icon-shopping",V:[{W:"div",T:"ytp-cards-button-icon",V:[{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",T:"ytp-svg-shadow",Z:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{W:"path",T:"ytp-svg-fill",Z:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{W:"path",T:"ytp-svg-shadow-fill",Z:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{W:"div", T:"ytp-cards-button-title",yY:"Shopping"}]}]});this.B=p;this.S=a;this.L=null;this.fade=new g.Kg(this,250,!0,100);g.H(this,this.fade);g.OW(this.S,"ytp-show-cards-title",g.x3(p.O()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Ip(!0)}Ip(p){p?this.L=Wc(this.B,this.element,null):(this.L=this.L,this.L(),this.L=null)}zR(){this.B.O().A("player_new_info_card_format")&&g.nG(this.B.getRootNode(),"ytp-cards-teaser-shown")&&!g.x3(this.B.O())||(this.fade.show(),g.MK("iv-button-shown"))}ke(){g.MK("iv-button-hidden"); this.fade.hide()}Gf(){return this.yQ&&this.fade.state!==4}fz(){this.L&&this.L();super.fz()}onHover(){g.MK("iv-button-mouseover")}onClicked(p){this.B.gh();const a=g.nG(this.B.getRootNode(),"ytp-cards-teaser-shown");g.MK("iv-teaser-clicked",a);this.B.getVideoData()?.vG()?(p=this.B.getVideoData()?.n8(),p?.onIconTapCommand&&g.v0(this.B,"innertubeCommand",p.onIconTapCommand)):(p=p.screenX===0&&p.screenY===0,this.B.vC(!this.B.Vl(),p,"YOUTUBE_DRAWER_MANUAL_OPEN"))}};var OMo=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-cards-teaser",V:[{W:"div",T:"ytp-cards-teaser-box"},{W:"div",T:"ytp-cards-teaser-text",V:p.O().A("player_new_info_card_format")?[{W:"button",T:"ytp-cards-teaser-info-icon",Z:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},V:[U5E()]},{W:"img",T:"ytp-cards-teaser-channel-avatar",Z:{alt:"","aria-hidden":"true"}},{W:"span",T:"ytp-cards-teaser-label",yY:"{{text}}"},{W:"button",T:"ytp-cards-teaser-close-button",Z:{"aria-label":"Cerrar"}, V:[g.S4()]}]:[{W:"span",T:"ytp-cards-teaser-label",yY:"{{text}}"}]}]});this.B=p;this.qA=a;this.fade=new g.Kg(this,250,!1,250);this.L=null;this.G=new g.SF(this.Hs,300,this);this.D=new g.SF(this.Bs,2E3,this);this.j=[];this.S=null;this.Sl=new g.SF(()=>{this.element.style.margin="0"},250); this.onClickCommand=this.U=null;g.H(this,this.fade);g.H(this,this.G);g.H(this,this.D);g.H(this,this.Sl);p.O().A("player_new_info_card_format")?(g.XX(p.getRootNode(),"ytp-cards-teaser-dismissible"),this.J(this.d7("ytp-cards-teaser-close-button"),"click",this.w7),this.J(this.d7("ytp-cards-teaser-info-icon"),"click",this.K),this.J(this.d7("ytp-cards-teaser-label"),"click",this.K)):this.listen("click",this.K);this.J(a.element,"mouseover",this.N);this.J(a.element,"mouseout",this.C);this.J(p,"cardsteasershow", this.Rc);this.J(p,"cardsteaserhide",this.ke);this.J(p,"cardstatechange",this.jl);this.J(p,"presentingplayerstatechange",this.jl);this.J(p,"appresize",this.X);this.J(p,"onShowControls",this.X);this.J(p,"onHideControls",this.QY);this.listen("mouseenter",this.Ws)}jl(){this.B.gh()&&this.B.Vl()&&this.Gf()&&this.ke()}K(){this.ke();!this.B.gh()&&this.B.O().A("enable_error_corrections_infocards_icon_web")&&this.qA.ke();g.MK("iv-teaser-clicked",this.L!=null);this.onClickCommand?g.v0(this.B,"innertubeCommand", this.onClickCommand):this.B.getVideoData()?.vG()||this.B.vC(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}Ws(){g.MK("iv-teaser-mouseover");this.L&&this.L.stop()}Rc(p){this.B.O().A("player_new_info_card_format")&&!g.x3(this.B.O())?this.qA.ke():this.B.O().A("enable_error_corrections_infocards_icon_web")&&this.qA.zR();this.L||!p||this.B.Vl()||this.S&&this.S.isActive()||(this.zR(p),g.MK("iv-teaser-shown"))}zR(p){this.onClickCommand=p.onClickCommand;this.updateValue("text",p.teaserText);this.element.setAttribute("dir", g.Y8(p.teaserText));this.fade.show();if(this.B.O().A("player_new_info_card_format")){const a=this.d7("ytp-cards-teaser-info-icon"),l=this.d7("ytp-cards-teaser-channel-avatar");l&&p.YD&&g.hx(p.YD)&&(l.src=p.YD,l.style.display="block",a.style.display="none")}this.S=new g.SF(function(){g.XX(this.B.getRootNode(),"ytp-cards-teaser-shown");this.B.A("player_new_info_card_format")&&!g.x3(this.B.O())&&this.qA.ke();this.X()},0,this); this.S.start();this.qA.Ip(!1);this.L=new g.SF(this.ke,580+p.durationMs,this);this.L.start();this.j.push(this.listen("mouseover",this.N,this));this.j.push(this.listen("mouseout",this.C,this))}X(){if(!this.B.O().A("player_new_info_card_format")&&g.x3(this.B.O())&&this.yQ){const p=this.qA.element.offsetLeft,a=g.m5("ytp-cards-button-icon"),l=this.B.isFullscreen()?54:36;if(a){const y=p+a.offsetLeft;this.element.style.marginRight=this.qA.element.offsetParent.offsetWidth-p-a.offsetLeft-l+"px";this.element.style.marginLeft= y+"px"}}}QY(){g.x3(this.B.O())&&this.B.m7()&&this.yQ&&this.Sl.start()}N(){this.D.stop();this.L&&this.L.isActive()&&this.G.start()}C(){this.G.stop();this.L&&!this.L.isActive()&&this.D.start()}Hs(){this.L&&this.L.stop()}Bs(){this.ke()}w7(){this.ke()}ke(){!this.L||this.U&&this.U.isActive()||(g.MK("iv-teaser-hidden"),this.fade.hide(),g.BM(this.B.getRootNode(),"ytp-cards-teaser-shown"),this.U=new g.SF(function(){for(const p of this.j)this.Kt(p);this.j=[];this.L&&(this.L.dispose(),this.L=null);this.qA.Ip(!0); !this.B.gh()&&this.B.O().A("enable_error_corrections_infocards_icon_web")&&this.qA.ke()},330,this),this.U.start())}Gf(){return this.yQ&&this.fade.state!==4}fz(){const p=this.B.getRootNode(); p&&g.BM(p,"ytp-cards-teaser-shown");g.Fm(this.S,this.U,this.L);super.fz()}};var PK={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"},ABq=class extends g.t{constructor(p){super({W:"button",A9:[PK.BUTTON,PK.TITLE_NOTIFICATIONS],Z:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{W:"div",T:PK.TITLE_NOTIFICATIONS_ON,Z:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo", "aria-label":"Notificaciones de suscripciones activadas"},V:[g.GQ()]},{W:"div",T:PK.TITLE_NOTIFICATIONS_OFF,Z:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},V:[{W:"svg",Z:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{W:"path",Z:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); this.api=p;this.L=!1;p.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 p=!this.L;this.updateValue("label",p?"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",p);AK(this,p)}};g.eo("yt.pubsub.publish",g.MK);g.hK=class extends g.t{constructor(p,a,l,y,S,n,V,Z,z,d,G,B){p=p.charAt(0)+p.substring(1).toLowerCase();l=l.charAt(0)+l.substring(1).toLowerCase();if(a==="0"||a==="-1")a=null;if(y==="0"||y==="-1")y=null;const c=G.O(),w=c.userDisplayName&&g.UO(c);super({W:"div",A9:["ytp-button","ytp-sb"],V:[{W:"div",T:"ytp-sb-subscribe",Z:w?{title:G.O().A("player_tooltip_data_title_killswitch")?g.L$("Suscribirse como $USER_NAME",{USER_NAME:c.userDisplayName}):"","data-tooltip-title":g.L$("Suscribirse como $USER_NAME", {USER_NAME:c.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":J6(c),"data-tooltip-opaque":String(g.x3(c)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},V:[{W:"div",T:"ytp-sb-text",V:[{W:"div",T:"ytp-sb-icon"},p]},a?{W:"div",T:"ytp-sb-count",yY:a}:""]},{W:"div",T:"ytp-sb-unsubscribe",Z:w?{title:G.A("player_tooltip_data_title_killswitch")?g.L$("Te has suscrito como $USER_NAME",{USER_NAME:c.userDisplayName}):"","data-tooltip-title":g.L$("Te has suscrito como $USER_NAME", {USER_NAME:c.userDisplayName}),"aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":J6(c),"data-tooltip-opaque":String(g.x3(c)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},V:[{W:"div",T:"ytp-sb-text",V:[{W:"div",T:"ytp-sb-icon"},l]},y?{W:"div",T:"ytp-sb-count",yY:y}:""]}],Z:{"aria-live":"polite"}});this.channelId=V;this.B=G;this.U=B;const X=this.d7("ytp-sb-subscribe"),v=this.d7("ytp-sb-unsubscribe");n&&g.XX(this.element,"ytp-sb-classic");if(S){Z?this.L(): this.S();var I=()=>{if(c.Sl){var m=this.channelId;if(z||d){var M={c:m};var D;g.f0.isInitialized()&&(D=n_o(M));M=D||"";if(D=G.getVideoData())if(D=D.subscribeCommand){var A=G.SE();A?(y2(A,D,{botguardResponse:M,feature:z}),g.v0(G,"SUBSCRIBE",m)):g.MD(Error("No innertube service available when updating subscriptions."))}else g.MD(Error("No subscribe command in videoData."));else g.MD(Error("No video data available when updating subscription."))}v.focus();v.removeAttribute("aria-hidden");X.setAttribute("aria-hidden", "true")}else G4(g.vB(this.B.O()),"sb_button",this.j)},u=()=>{var m=this.channelId; if(z||d){var M=G.getVideoData();y2(G.SE(),M.unsubscribeCommand,{feature:z});g.v0(G,"UNSUBSCRIBE",m)}X.focus();X.removeAttribute("aria-hidden");v.setAttribute("aria-hidden","true")}; this.J(X,"click",I);this.J(v,"click",u);this.J(X,"keypress",m=>{m.keyCode===13&&I(m)}); this.J(v,"keypress",m=>{m.keyCode===13&&u(m)}); this.J(G,"SUBSCRIBE",this.L);this.J(G,"UNSUBSCRIBE",this.S);this.U&&w&&(L2M(G),Wc(G,X,this),Wc(G,v,this))}else g.XX(X,"ytp-sb-disabled"),g.XX(v,"ytp-sb-disabled")}j(){window.location.reload()}L(){g.XX(this.element,"ytp-sb-subscribed")}S(){g.BM(this.element,"ytp-sb-subscribed")}};var k_Z=class extends g.t{constructor(p){super({W:"div",T:"ytp-title-channel",V:[{W:"div",T:"ytp-title-beacon"},{W:"a",T:"ytp-title-channel-logo",Z:{href:"{{channelLink}}",target:p.O().C,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{W:"div",T:"ytp-title-expanded-overlay",Z:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{W:"div",T:"ytp-title-expanded-heading",V:[{W:"div",T:"ytp-title-expanded-title",V:[{W:"a",yY:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:p.O().C,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{W:"div",T:"ytp-title-expanded-subtitle",yY:"{{expandedSubtitle}}",Z:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});this.api=p;this.channel=this.d7("ytp-title-channel");this.S=this.d7("ytp-title-channel-logo");this.channelName=this.d7("ytp-title-expanded-title");this.K=this.d7("ytp-title-expanded-overlay");this.U=this.L=this.subscribeButton=null;this.j=!1;p.createClientVe(this.S,this,36925);p.createClientVe(this.channelName,this,37220);g.x3(this.api.O())&& dzZ(this);this.J(p,"videodatachange",this.J9);this.J(p,"videoplayerreset",this.J9);this.J(this.channelName,"click",a=>{this.api.logClick(this.channelName);g.xZ(window,PQ(this));a.preventDefault()}); this.J(this.S,"click",this.N);this.J9()}N(p){this.api.logClick(this.S);const a=this.api.O();a.S||a.Hs?Vor(this)&&(this.isExpanded()?this.X():this.D()):g.xZ(window,PQ(this));p.preventDefault()}G(){VkM(this);this.channel.classList.remove("ytp-title-expanded")}isExpanded(){return this.channel.classList.contains("ytp-title-expanded")}D(){if(Vor(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y", "false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.U&&this.U.stop();this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));const p=this.api.getVideoData();this.L&&p.GM&&p.subscribed&&(this.L.show(),this.api.logVisibility(this.L.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}}X(){this.updateValue("flyoutUnfocusable", "true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.U&&this.U.start()}J9(){const p=this.api.O();this.iM(!this.api.isEmbedsShortsMode());const a=this.api.getVideoData(),l=this.api.O(),y=this.api.getVideoData();this.j=!1;const S=!!y.videoId&&!!y.VY&&!!y.profilePicture;this.api.getPresentingPlayerType()===2?this.j=S&&!!y.isListed&&!!y.author:g.x3(l)&&(this.j=S&&!y.XX&&!l.U&& !(l.G&&this.api.getPlayerSize().width<200));DNe(this,a.profilePicture,g.x3(p)?a.expandedTitle:a.author);this.subscribeButton&&(this.subscribeButton.channelId=a.Jk);this.updateValue("expandedTitle",a.expandedTitle);this.updateValue("expandedSubtitle",a.expandedSubtitle)}UC(p){super.UC(p);this.api.logVisibility(this.S,this.j&&p)}};var EH=class extends g.yz{constructor(p){super(g.kE({"aria-haspopup":"true"}),p);this.listen("keydown",this.TD)}TD(p){p.defaultPrevented||p.keyCode!==39||(this.element.click(),p.preventDefault())}};var Mrf=class extends g.t{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(p,a){super({W:"div",T:"ytp-user-info-panel",Z:{"aria-label":"Informaci\u00f3n del usuario"},V:p.O().Sl&&!p.A("embeds_web_always_enable_signed_out_state")?[{W:"div",T:"ytp-user-info-panel-icon",yY:"{{icon}}"}, {W:"div",T:"ytp-user-info-panel-content",V:[{W:"div",T:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable}}",role:"text"},yY:"{{watchingAsUsername}}"},{W:"div",T:"ytp-user-info-panel-info",Z:{tabIndex:"{{userInfoFocusable2}}",role:"text"},yY:"{{watchingAsEmail}}"}]}]:[{W:"div",T:"ytp-user-info-panel-icon",yY:"{{icon}}"},{W:"div",T:"ytp-user-info-panel-content",V:[{W:"div",V:[{W:"text",Z:{tabIndex:"{{userInfoFocusable}}"},yY:"Sesi\u00f3n cerrada"}]},{W:"div",T:"ytp-user-info-panel-login", V:[{W:"a",Z:{tabIndex:"{{userInfoFocusable2}}",role:"button"},yY:p.O().Fu?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.pz=p;this.sourceElement=a;p.O().Sl||p.O().Fu||this.J(this.d7("ytp-user-info-panel-login"),"click",this.S);this.closeButton=new g.t({W:"button",A9:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"},V:[g.mC()]});this.closeButton.lT(this.element);g.H(this,this.closeButton);this.J(window,"blur",this.hide);this.J(document,"click",this.L);this.J9()}L(p){const a=rl(p),l=g.n3(this.closeButton.element, a),y=g.n3(this.element,a);p=this.sourceElement&&g.n3(this.sourceElement,a)&&g.N_(p);a&&(y||p)&&!l||this.hide()}S(){G4(g.vB(this.pz.O()),"user_info_panel",()=>{window.location.reload()})}J9(){const p=this.pz.O(),a={USER_NAME:p.userDisplayName, USER_EMAIL:p.UY};this.updateValue("icon",eiA());this.updateValue("watchingAsUsername",g.L$("Has iniciado sesi\u00f3n como $USER_NAME",a));p.UY?this.updateValue("watchingAsEmail",g.L$("($USER_EMAIL)",a)):this.updateValue("watchingAsEmail","")}};var mm$=class extends g.cP{constructor(p,a,l){super(p);this.U6=a;this.T9=l;this.getVideoUrl=new EH(6);this.FT=new EH(5);this.Oi=new EH(4);this.mS=new EH(3);this.gD=new g.yz(g.kE({href:"{{href}}",target:this.B.O().C},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.yz(g.kE(),1,"Estad\u00edsticas para nerds");this.TH=new g.et({W:"div",A9:["ytp-copytext","ytp-no-contextmenu"],Z:{draggable:"false",tabindex:"1"},yY:"{{text}}"});this.l8=new BP(this.B,this.TH);this.QE= this.cI=null;g.x3(this.B.O())&&(this.closeButton=new g.t({W:"button",A9:["ytp-collapse","ytp-button"],Z:{title:"Cerrar"},V:[g.mC()]}),g.H(this,this.closeButton),this.closeButton.lT(this.element),this.closeButton.listen("click",this.xQ,this));g.x3(this.B.O())&&(this.T_=new g.yz(g.kE(),8,"Cuenta"),g.H(this,this.T_),this.Su(this.T_,!0),this.T_.listen("click",this.VC,this),p.createClientVe(this.T_.element,this.T_,137682));this.B.O().A3&&(this.lU=new pZ("Bucle",7),g.H(this,this.lU),this.Su(this.lU,!0), this.lU.listen("click",this.zl,this),p.createClientVe(this.lU.element,this.lU,28661));this.B.A("web_player_miniplayer_in_context_menu")&&(this.eQ=new g.yz(g.kE(),6,"Minirreproductor"),g.H(this,this.eQ),this.Su(this.eQ,!0),this.eQ.listen("click",this.Vy,this),p.createClientVe(this.eQ.element,this.eQ,62946));g.H(this,this.getVideoUrl);this.Su(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.Z6,this);p.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.H(this,this.FT);this.Su(this.FT, !0);this.FT.listen("click",this.oa,this);p.createClientVe(this.FT.element,this.FT,28660);g.H(this,this.Oi);this.Su(this.Oi,!0);this.Oi.listen("click",this.i7,this);p.createClientVe(this.Oi.element,this.Oi,28658);g.H(this,this.mS);this.Su(this.mS,!0);this.mS.listen("click",this.Js,this);g.H(this,this.gD);this.Su(this.gD,!0);this.gD.listen("click",this.Ts,this);g.H(this,this.showVideoInfo);this.Su(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.CM,this);g.H(this,this.TH);this.TH.listen("click", this.KK,this);g.H(this,this.l8);lLO()&&(this.cI=new g.t({W:"textarea",T:"ytp-html5-clipboard",Z:{readonly:"",tabindex:"-1"}}),g.H(this,this.cI),this.cI.lT(this.element));this.T_?.setIcon(eiA());this.lU?.setIcon(r$F());this.eQ?.setIcon(QC());this.mS.setIcon({W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.gD.setIcon(i0q());this.showVideoInfo.setIcon(EJM());this.J(p,"onLoopChange",this.onLoopChange);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"fullscreentoggled",()=>{ug(this)}); kTq(this);O9(this,this.B.getVideoData())}xQ(){this.U6.ke()}KK(){E2(this.TH.element)}Js(){$I(this,this.B.getDebugText(!0))&&FA(this.T9,br())}i7(){$I(this,this.B.getVideoEmbedCode())&&FA(this.T9,un$());this.B.logClick(this.Oi.element)}Z6(){$I(this,this.B.getVideoUrl(!0,!0))&&FA(this.T9,CD());this.B.logClick(this.getVideoUrl.element)}oa(){$I(this,this.B.getVideoUrl(!1,!0))&&FA(this.T9,CD());this.B.logClick(this.FT.element)}onLoopChange(p){this.lU?.L(p)}zl(){this.B.setLoopVideo(this.lU.getValue());this.U6.ke(); this.B.logClick(this.lU.element)}Vy(){g.v0(this.B,"onCollapseMiniplayer");this.U6.ke()}Ts(p){this.B.reportPlaybackIssue();if(g.NX(p,this.B,!oQ(this.B.O()))){p=this.B;const a=p.app.getFeedbackProductData();g.OT(p,"onFeedbackStartRequest",a);p.isFullscreen()&&p.toggleFullscreen()}this.U6.ke()}CM(){g.xe(this.B,"isVideoInfoVisible",[])?g.xe(this.B,"hideVideoInfo",[]):g.xe(this.B,"showVideoInfo",[]);this.U6.ke()}VC(){this.T_&&(this.QE||(this.QE=new Mrf(this.B,this.T_.element),g.H(this,this.QE),g.g1(this.B, this.QE.element,4)),this.QE.show(),this.U6.ke(),this.B.logClick(this.T_.element))}onVideoDataChange(p,a){O9(this,a)}UC(p){super.UC(p);this.B.logVisibility(this.Oi.element,p);this.B.logVisibility(this.getVideoUrl.element,p);this.B.logVisibility(this.FT.element,p);this.lU&&this.B.logVisibility(this.lU.element,p);this.T_&&this.B.logVisibility(this.T_.element,p);this.eQ&&this.B.logVisibility(this.eQ.element,p)}};var trr=class extends g.rz{constructor(p,a){super(p);this.T9=a;this.S=new g.yr(this);this.G=new g.SF(this.ac,1E3,this);this.Sl=this.o4=null;g.H(this,this.S);g.H(this,this.G);a=this.B.O();p.createClientVe(this.element,this,28656);g.XX(this.element,"ytp-contextmenu");this.B.O().experiments.Cz("delhi_modern_web_player")&&g.p8(a)&&g.XX(this.element,"ytp-delhi-modern-contextmenu");yao(this);this.hide()}onTouchStart(p){const a=rl(p);a&&(OF(a,"a")||OF(a,null,"ytp-no-contextmenu"))||this.yQ||(this.Sl=(p= p.touches?.item(0))?new g.g3(p.clientX,p.clientY):new g.g3(0,0),this.G.start())}N(){this.G.stop()}ac(){this.open(this.Sl)}C(){if(this.o4&&D$v(this.o4)){const p=D$v(this.o4).element;p.tabIndex=-1;p.focus()}else this.element.tabIndex=-1,this.element.focus()}show(){this.o4||(this.o4=new mm$(this.B,this,this.T9),g.H(this,this.o4),g.Go(this,this.o4));this.o4.onLoopChange(this.B.getLoopVideo());super.show();this.B.logVisibility(this.element,!0);this.o4.UC(!0)}hide(){yao(this);super.hide();this.B.logVisibility(this.element, !1);this.o4&&this.o4.UC(!1)}QY(p){const a=rl(p);this.yQ||a&&(OF(a,"a")||OF(a,null,"ytp-no-contextmenu"))||(p.preventDefault(),this.open(new g.g3(p.pageX,p.pageY)))}zR(p){if(p){const a=p.getBoundingClientRect();this.open(new g.g3(a.x,a.y))}super.zR(p)}open(p){ma$(this);var a=this.B.getVideoData();g.OW(this.element,"ytp-dni",a.XX);this.element.style.left="";this.element.style.top="";p.x++;p.y++;super.zR();var l=vb(this).body;a=new Wa(0,Infinity,Infinity,0);var y=qU(l);for(var S=y.L.body,n=y.L.documentElement, V=TA(y.L);l=qc$(l);)if((!g.H5||l.clientHeight!=0||l!=S)&&l!=S&&l!=n&&NY(l,"overflow")!="visible"){const Z=g.fX(l),z=new g.g3(l.clientLeft,l.clientTop);Z.x+=z.x;Z.y+=z.y;a.top=Math.max(a.top,Z.y);a.right=Math.min(a.right,Z.x+l.clientWidth);a.bottom=Math.min(a.bottom,Z.y+l.clientHeight);a.left=Math.max(a.left,Z.x)}S=V.scrollLeft;V=V.scrollTop;a.left=Math.max(a.left,S);a.top=Math.max(a.top,V);y=xAZ(y.L.defaultView||window);a.right=Math.min(a.right,S+y.width);a.bottom=Math.min(a.bottom,V+y.height);y= a.top>=0&&a.left>=0&&a.bottom>a.top&&a.right>a.left?a:null;a=this.size;p=p.clone();a=a.clone();y&&(V=a,S=5,(S&65)==65&&(p.x=y.right)&&(S&=-2),(S&132)==132&&(p.y=y.bottom)&&(S&=-5),p.xy.right&&(V.width=Math.min(y.right-p.x,n+V.width-y.left),V.width=Math.max(V.width,0))),p.x+V.width>y.right&&S&1&&(p.x=Math.max(y.right-V.width,y.left)),p.yy.bottom&&(V.height=Math.min(y.bottom-p.y,n+V.height-y.top),V.height=Math.max(V.height,0))),p.y+V.height>y.bottom&&S&4&&(p.y=Math.max(y.bottom-V.height,y.top)));y=new g.hu(0,0,0,0);y.left=p.x;y.top=p.y;y.width=a.width;y.height=a.height;g.Js(this.element,new g.g3(y.left,y.top));g.uY(this.S);this.S.J(vb(this),"contextmenu",this.Bs);this.S.J(this.B,"fullscreentoggled",this.onFullscreenToggled);this.S.J(this.B,"pageTransition",this.w7)}Bs(p){if(!p.defaultPrevented){const a=rl(p);g.n3(this.element, a)||this.ke();this.B.O().disableNativeContextMenu&&p.preventDefault()}}onFullscreenToggled(){this.ke();ma$(this)}w7(){this.ke()}};var joZ=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-button","ytp-copylink-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.x3(p.O()))},V:[{W:"div",T:"ytp-copylink-icon",yY:"{{icon}}"},{W:"div",T:"ytp-copylink-title",yY:"Copiar enlace",Z:{"aria-hidden":"true"}}]});this.api=p;this.L=a;this.visible=!1;this.tooltip=this.L.Py();a=p.O();this.tooltip.element.setAttribute("aria-live", "polite");g.OW(this.element,"ytp-show-copylink-title",g.x3(a));p.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.J(p,"videodatachange",this.J9);this.J(p,"videoplayerreset",this.J9);this.J(p,"appresize",this.J9);this.J9();this.addOnDisposeCallback(g.Qb(this.tooltip,this.element))}async onClick(){var p=this.api.O();const a=this.api.getVideoData(),l=this.api.getPlaylistId();p=p.getVideoUrl(a.videoId,l,void 0,!0);await mRv(this,p)&&bFo(this);this.api.logClick(this.element)}J9(){this.updateValue("icon", {W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar enlace");this.updateValue("tooltip-title","Copiar enlace");this.visible=AYF(this);g.OW(this.element,"ytp-copylink-button-visible", this.visible);this.iM(this.visible);this.tooltip.yT();this.api.logVisibility(this.element,this.visible&&this.UO)}UC(p){super.UC(p);this.api.logVisibility(this.element,this.visible&&p)}fz(){super.fz();g.BM(this.element,"ytp-copylink-button-visible")}};var W_r=class extends g.t{constructor(p){super({W:"div",T:"ytp-doubletap-ui-legacy",V:[{W:"div",T:"ytp-doubletap-fast-forward-ve"},{W:"div",T:"ytp-doubletap-rewind-ve"},{W:"div",T:"ytp-doubletap-static-circle",V:[{W:"div",T:"ytp-doubletap-ripple"}]},{W:"div",T:"ytp-doubletap-overlay-a11y"},{W:"div",T:"ytp-doubletap-seek-info-container",V:[{W:"div",T:"ytp-doubletap-arrows-container",V:[{W:"span",T:"ytp-doubletap-base-arrow"},{W:"span",T:"ytp-doubletap-base-arrow"},{W:"span",T:"ytp-doubletap-base-arrow"}]}, {W:"div",T:"ytp-doubletap-tooltip",V:[{W:"div",T:"ytp-seek-icon-text-container",V:[{W:"div",T:"ytp-seek-icon",yY:"{{seekIcon}}"},{W:"div",T:"ytp-chapter-seek-text-legacy",yY:"{{seekText}}"}]},{W:"div",T:"ytp-doubletap-tooltip-label",yY:"{{seekTime}}"}]}]}]});this.B=p;this.j=new g.SF(this.show,10,this);this.S=new g.SF(this.hide,700,this);this.D=this.U=0;this.C=this.X=!1;this.L=this.d7("ytp-doubletap-static-circle");g.H(this,this.j);g.H(this,this.S);this.hide();this.G=this.d7("ytp-doubletap-fast-forward-ve"); this.K=this.d7("ytp-doubletap-rewind-ve");this.B.createClientVe(this.G,this,28240);this.B.createClientVe(this.K,this,28239);this.B.logVisibility(this.G,!0);this.B.logVisibility(this.K,!0);this.X=p.A("web_show_cumulative_seek_time");this.C=p.A("web_center_static_circles")}show(){super.show();this.S.JP()}hide(){this.j.stop();this.U=0;this.d7("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.BM(this.element,"ytp-chapter-seek");g.BM(this.element,"ytp-time-seeking");super.hide()}BC(p, a,l,y){this.U=p===this.D?this.U+y:y;this.D=p;var S=p===-1?this.K:this.G;S&&this.B.logClick(S);this.X?this.S.stop():this.S.mE();this.j.start();this.element.setAttribute("data-side",p===-1?"back":"forward");var n=3*this.B.h9().getPlayerSize().height;S=this.B.h9().getPlayerSize();S=S.width/3-3*S.height;this.L.style.width=`${n}px`;this.L.style.height=`${n}px`;p===1?(this.L.style.left="",this.L.style.right=`${S}px`):p===-1&&(this.L.style.right="",this.L.style.left=`${S}px`);const V=n*2.5;n=V/2;const Z= this.d7("ytp-doubletap-ripple");Z.style.width=`${V}px`;Z.style.height=`${V}px`;p===1?(p=this.B.h9().getPlayerSize().width-a+Math.abs(S),Z.style.left="",Z.style.right=`${p-n}px`):p===-1&&(p=Math.abs(S)+a,Z.style.right="",Z.style.left=`${p-n}px`);Z.style.top=`calc((33% + ${Math.round(l)}px) - ${n}px)`;if(l=this.d7("ytp-doubletap-ripple"))l.classList.remove("ytp-doubletap-ripple"),l.classList.add("ytp-doubletap-ripple");Fxe(this,this.X?this.U:y)}Op(p,a,l=null){if(l){var y=p===-1?this.K.visualElement: this.G.visualElement;l={seekData:l};const S=g.c2();S&&Hs(S,y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",l)}this.U=p===this.D?this.U+a:a;this.D=p;y=this.B.h9().getPlayerSize();this.X?this.S.stop():this.S.mE();this.j.start();this.element.setAttribute("data-side",p===-1?"back":"forward");g.XX(this.element,"ytp-time-seeking");this.L.style.width="110px";this.L.style.height="110px";l=y.width*.1-15;p===1?this.C?(this.L.style.right=`${l}px`,this.L.style.left=""):(this.L.style.right="",this.L.style.left= `${y.width*.8-30}px`):p===-1&&(this.C?(this.L.style.right="",this.L.style.left=`${l}px`):(this.L.style.right="",this.L.style.left=`${y.width*.1-15}px`));this.L.style.top=`${y.height*.5+15}px`;Fxe(this,this.X?this.U:a)}Wn(p,a,l=null){this.S.mE();this.j.start();switch(p){case -1:p="back";break;case 1:p="forward";break;default:p=""}this.element.setAttribute("data-side",p);this.L.style.width="0";this.L.style.height="0";g.XX(this.element,"ytp-chapter-seek");this.updateValue("seekText",a);this.updateValue("seekTime", "");a=this.d7("ytp-seek-icon");if(l){a:if(l){switch(l){case "PREMIUM_STANDALONE":l=EU();break a;case "PREMIUM_STANDALONE_CAIRO":l=XvM();break a}l=void 0}else l=null;this.updateValue("seekIcon",l);a.style.display="inline-block"}else a.style.display="none"}};var HMA=class extends GZ{constructor(p){super(p,!1,!0);this.Rc=[];this.tP=[];this.element.setAttribute("data-overlay-order","9");this.N=!0;this.badge.element.classList.add("ytp-featured-product");this.Tm=new g.t({W:"div",T:"ytp-featured-product-open-in-new"});g.H(this,this.Tm);this.countdownTimer=new g.t({W:"text",T:"ytp-featured-product-countdown",yY:"{{content}}"});this.countdownTimer.hide();g.H(this,this.countdownTimer);this.U=new g.t({W:"div",T:"ytp-featured-product-trending",V:[{W:"div",T:"ytp-featured-product-trending-icon"}, {W:"text",T:"ytp-featured-product-trending-text",yY:"{{trendingOffer}}"}]});this.U.hide();g.H(this,this.U);this.overflowButton=new g.t({W:"button",A9:["ytp-featured-product-overflow-icon","ytp-button"],Z:{"aria-haspopup":"true"}});this.overflowButton.hide();g.H(this,this.overflowButton);this.C=new g.t({W:"text",T:"ytp-featured-product-exclusive-countdown",yY:"{{content}}",Z:{id:"exclusiveCountdown","aria-hidden":"true"}});this.C.hide();g.H(this,this.C);this.K=new g.t({W:"div",T:"ytp-featured-product-exclusive-container", Z:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{W:"div",T:"ytp-featured-product-exclusive-badge-container",V:[{W:"div",T:"ytp-featured-product-exclusive-badge",V:[{W:"text",T:"ytp-featured-product-exclusive-badge-text",yY:"{{exclusive}}",Z:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.C]});this.K.hide();g.H(this,this.K);this.banner=new g.t({W:"a",T:"ytp-featured-product-container",V:[{W:"div",T:"ytp-featured-product-thumbnail",V:[{W:"img",Z:{src:"{{thumbnail}}"}},this.Tm]},{W:"div", T:"ytp-featured-product-details",V:[{W:"text",T:"ytp-featured-product-title",yY:"{{title}}"},this.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{W:"div",T:"ytp-featured-product-price-container",Z:{"aria-label":"{{priceA11yText}}"},V:[{W:"text",T:"ytp-featured-product-price-when-promotion-text-enabled",yY:"{{price}}",Z:{"aria-hidden":"true"}},{W:"text",T:"ytp-featured-product-promotion-text",yY:"{{promotionText}}",Z:{"aria-hidden":"true"}}]}:{W:"div",Z:{"aria-label":"{{priceA11yText}}"}, V:[{W:"text",T:"ytp-featured-product-price",yY:"{{price}}",Z:{"aria-hidden":"true"}},{W:"text",T:"ytp-featured-product-sales-original-price",yY:"{{salesOriginalPrice}}",Z:{"aria-hidden":"true"}},{W:"text",T:"ytp-featured-product-price-drop-reference-price",yY:"{{priceDropReferencePrice}}",Z:{"aria-hidden":"true"}}]},this.B.A("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{W:"div",T:"ytp-featured-product-when-promotion-text-enabled",V:[{W:"text",T:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", yY:"{{affiliateDisclaimer}}"},this.U,{W:"text",T:"ytp-featured-product-vendor-when-promotion-text-enabled",yY:"{{vendor}}"}]}:{W:"div",V:[{W:"text",T:"ytp-featured-product-affiliate-disclaimer",yY:"{{affiliateDisclaimer}}"},this.B.A("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.U,{W:"text",T:"ytp-featured-product-vendor",yY:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.H(this,this.banner);this.banner.lT(this.j.element);this.J(this.B,g.tT("featured_product"), this.Me);this.J(this.B,g.jh("featured_product"),this.Hs);this.J(this.B,"videodatachange",this.onVideoDataChange);this.J(this.overflowButton.element,"click",this.Wy);this.J(p,"featuredproductdismissed",this.X)}Wy(p){this.VY||(this.VY=new Aiv(this.B),g.H(this,this.VY));this.Ye?.menu?.menuRenderer&&(this.VY.open(this.Ye.menu.menuRenderer,p.target),p.preventDefault())}D(){return!!this.L}Ps(){return!!this.L}Bs(p){p.target===this.overflowButton.element?p.preventDefault():(this.PZ&&g.v0(this.B,"innertubeCommand", this.PZ),this.Sl(!1))}X(){this.Sl(!0);this.L?.bannerData?.dismissedStatusKey&&this.tP.push(this.L.bannerData.dismissedStatusKey);this.Hs()}zn(){this.Hs();v1(this)}Me(p){if(p.id!==this.L?.identifier){this.Hs();for(const a of this.Rc){const l=a?.bannerData?.itemData;if(!l||a.identifier!==p.id)continue;if(this.tP.includes(a?.bannerData?.dismissedStatusKey||""))return;this.L=a;this.banner.element.setAttribute("aria-label",l.accessibilityLabel||"");l.trackingParams&&(this.G=!0,this.B.setTrackingParams(this.badge.element, l.trackingParams));this.show();this.jl.show();bK(this);this.Tm.iM(!l.stayInApp);this.Lx?.stop();this.countdownTimer.hide();CO(this);Gk(this);this.PZ=g.K(l.onTapCommand,a7);const y=g.K(l.menuOnTap,a7);y&&(this.Ye=g.K(y,IEM));this.banner.update({thumbnail:(l.thumbnailSources||[])[0]?.url,title:l.productTitle,price:l.priceReplacementText?l.priceReplacementText:l.price,salesOriginalPrice:ZfM(this),priceDropReferencePrice:hkh(this),promotionText:g9Z(this),priceA11yText:eQo(this),affiliateDisclaimer:l.affiliateDisclaimer, vendor:f5(this)});l?.hiddenProductOptions?.showDropCountdown&&l?.hiddenProductOptions?.dropTimestampMs&&(this.Lx=new g.SF(()=>{WZ(this)},1E3),this.Tm.hide(),this.countdownTimer.show(),WZ(this)); this.B.A("web_player_enable_featured_product_banner_exclusives_on_desktop")&&Apo(this)&&(this.ir=new g.SF(()=>{v8(this)},1E3),v8(this))}this.B.getRootNode()&&g.XX(this.B.getRootNode(),"ytp-featured-product-shown")}}Hs(){this.L&&(this.L=void 0,this.S(),this.B.getRootNode()&&g.BM(this.B.getRootNode(),"ytp-featured-product-shown"))}onVideoDataChange(p,a){p==="dataloaded"&&v1(this); p=g.K(a.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,e6f);this.overflowButton.show();this.dismissButton.hide();const l=p?.featuredProductsEntityKey;this.trendingOfferEntityKey=p?.trendingOfferEntityKey;this.Rc.length||(ZpA(this,l),Gk(this));this.L1?.();this.L1=g.lR.subscribe(()=>{ZpA(this,l);Gk(this)})}fz(){v1(this); this.Lx?.stop();this.countdownTimer.hide();CO(this);super.fz()}};var Dmr=class extends g.t{constructor(p,a,l){super({W:"div",A9:["ytp-info-panel-action-item"],V:[{W:"div",T:"ytp-info-panel-action-item-disclaimer",yY:"{{disclaimer}}"},{W:"a",A9:["ytp-info-panel-action-item-button","ytp-button"],Z:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{W:"div",T:"ytp-info-panel-action-item-icon",yY:"{{icon}}"},{W:"div",T:"ytp-info-panel-action-item-label",yY:"{{label}}"}]}]});this.B=p;this.S=l;this.disclaimer=this.d7("ytp-info-panel-action-item-disclaimer"); this.button=this.d7("ytp-info-panel-action-item-button");this.Kh=!1;this.B.createServerVe(this.element,this,!0);this.listen("click",this.onClick);p="";var y=g.K(a?.onTap,a7);l=g.K(y,g.aY);this.Kh=!1;l?(p=l.url||"",p.startsWith("//")&&(p="https:"+p),this.Kh=!0,g.Uz(this.button,g.ZM(p))):(l=g.K(y,uvM))&&!this.S?((p=l.phoneNumbers)&&p.length>0?(p="sms:"+p[0],l.messageText&&(p+="?&body="+encodeURI(l.messageText))):p="",this.Kh=!0,g.Uz(this.button,g.ZM(p,[eAE]))):(l=g.K(y,R6F))&&!this.S&&(p=l.phoneNumber? "tel:"+l.phoneNumber:"",this.Kh=!0,g.Uz(this.button,g.ZM(p,[K9v])));this.B.A("embeds_enable_info_panel_dismissal")&&!p&&(l=g.K(a?.onTap,a7),y=g.K(l,V8))&&(this.Kh=!0,this.L=l,this.feedbackToken=y.feedbackToken);(l=a.disclaimerText?.content)?(this.button.style.borderBottom="1px solid white",this.button.style.paddingBottom="16px",this.update({label:a.bodyText?.content,icon:sA(),disclaimer:l})):(this.disclaimer.style.display="none",this.update({label:a.bodyText?.content,icon:sA()}));this.B.setTrackingParams(this.element, a.trackingParams||null);this.Kh&&(this.U={externalLinkData:{url:p}})}onClick(){this.B.logClick(this.element,this.U);if(this.B.A("embeds_enable_info_panel_dismissal")&&this.L&&this.feedbackToken){const p=this.B.SE();p?.pD(this.L)&&(y2(p,this.L,{feedbackTokens:[this.feedbackToken]}),this.B.publish("infopaneldetaildismissed"))}}};var iMF=class extends g.Ag{constructor(p,a){const l=T4();super(p,{W:"div",T:"ytp-info-panel-detail-skrim",V:[{W:"div",T:"ytp-info-panel-detail",Z:{role:"dialog",id:l},V:[{W:"div",T:"ytp-info-panel-detail-header",V:[{W:"div",T:"ytp-info-panel-detail-title",yY:"{{title}}"},{W:"button",A9:["ytp-info-panel-detail-close","ytp-button"],Z:{"aria-label":"Cerrar"},V:[g.S4()]}]},{W:"div",T:"ytp-info-panel-detail-body",yY:"{{body}}"},{W:"div",T:"ytp-info-panel-detail-items"}]}]},250);this.L=a;this.items=this.d7("ytp-info-panel-detail-items"); this.S=new g.yr(this);this.itemData=[];this.U=l;this.J(this.d7("ytp-info-panel-detail-close"),"click",this.ke);this.J(this.d7("ytp-info-panel-detail-skrim"),"click",this.ke);this.J(this.d7("ytp-info-panel-detail"),"click",y=>{y.stopPropagation()}); this.J(this.B,"infopaneldetaildismissed",()=>{p.A("embeds_enable_info_panel_dismissal")&&this.ke()}); g.H(this,this.S);this.B.createServerVe(this.element,this,!0);this.J(p,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",p.getVideoData());this.hide()}show(){super.show();this.B.publish("infopaneldetailvisibilitychange",!0);this.B.logVisibility(this.element,!0);for(const p of this.itemData)p.B.logVisibility(p.element,!0)}hide(){super.hide();this.B.publish("infopaneldetailvisibilitychange",!1);this.B.logVisibility(this.element,!1);for(const p of this.itemData)p.B.logVisibility(p.element, !1)}getId(){return this.U}hk(){return this.itemData.length}onVideoDataChange(p,a){if(a){this.update({title:a.lX?.title?.content||"",body:a.lX?.bodyText?.content||""});this.B.setTrackingParams(this.element,a.lX?.trackingParams||null);for(const l of this.itemData)l.dispose();this.itemData=[];if(a.lX?.ctaButtons)for(const l of a.lX.ctaButtons)if(p=g.K(l,Xhr))p=new Dmr(this.B,p,this.L),p.Kh&&(this.itemData.push(p),p.lT(this.items))}}fz(){this.hide();super.fz()}};var TcZ=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-info-panel-preview",Z:{"aria-live":"assertive","aria-atomic":"true","aria-owns":a.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.x3(p.O()))},V:[{W:"div",T:"ytp-info-panel-preview-text",yY:"{{text}}"},{W:"div",T:"ytp-info-panel-preview-chevron",yY:"{{chevron}}"}]});this.B=p;this.Ch=this.L=this.videoId=null;this.isDismissed=this.U=this.showControls=this.S=!1;this.J(this.element,"click",()=>{p.logClick(this.element);p.r8(); aA(a)}); this.fade=new g.Kg(this,250,!1,100);g.H(this,this.fade);this.B.createServerVe(this.element,this,!0);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"presentingplayerstatechange",this.G);this.J(this.B,"paidcontentoverlayvisibilitychange",this.j);this.J(this.B,"infopaneldetailvisibilitychange",this.j);const l=p.getVideoData()||{};(l.Fu?.title?.content||l.Fu?.bodyText?.content)&&x0(this,l);this.J(p,"onShowControls",this.D);this.J(p,"onHideControls",this.X);this.J(this.B,"infopaneldetaildismissed", ()=>{p.A("embeds_enable_info_panel_dismissal")&&(this.isDismissed=!0,this.hide())})}onVideoDataChange(p,a){x0(this,a); this.Ch&&u6r(this,this.Ch)}G(p){const a=this.B.getVideoData();this.videoId!==a.videoId&&x0(this,a);u6r(this,p.state);this.Ch=p.state}j(p){(this.U=p)?this.hide():this.L&&!this.isDismissed&&this.show()}D(){this.S||this.zR();this.showControls=!0}X(){this.S||this.ke();this.showControls=!1}zR(){if(!this.isDismissed){var p=this.B?.getPlayerSize(),a=p.width<380;p=p.height<(this.B?.isEmbedsShortsMode()?400:280);(this.B?.getPlayerStateObject().isCued()||this.B?.getPlayerStateObject().L(1024))&&a&&p||!this.L|| this.U||(this.fade.show(),this.B.publish("infopanelpreviewvisibilitychange",!0),this.B.logVisibility(this.element,!0))}}ke(){this.L&&!this.U&&(this.fade.hide(),this.B.publish("infopanelpreviewvisibilitychange",!1),this.B.logVisibility(this.element,!1))}K(){this.S=!1;this.showControls||this.ke()}};var NcM={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(NcM).reduce((p,a)=>{p[NcM[a]]=a;return p},{}); var soq={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(soq).reduce((p,a)=>{p[soq[a]]=a;return p},{}); var UmF={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(UmF).reduce((p,a)=>{p[UmF[a]]=a;return p},{});var CZ,QoM;CZ=[{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"}];QoM=[{option:0,text:pV(0)},{option:.25,text:pV(.25)},{option:.5,text:pV(.5)},{option:.75,text:pV(.75)},{option:1,text:pV(1)}]; g.Ui=[{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:CZ},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:pV(.5)},{option:-1,text:pV(.75)},{option:0,text:pV(1)},{option:1, text:pV(1.5)},{option:2,text:pV(2)},{option:3,text:pV(3)},{option:4,text:pV(4)}]},{option:"background",text:"Color de fondo",options:CZ},{option:"backgroundOpacity",text:"Opacidad del fondo",options:QoM},{option:"windowColor",text:"Color de la ventana",options:CZ},{option:"windowOpacity",text:"Opacidad de la ventana",options:QoM},{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:pV(.25)},{option:.5,text:pV(.5)},{option:.75,text:pV(.75)},{option:1,text:pV(1)}]}];var hlZ=[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],AHr=class extends g.yr{constructor(p,a,l,y,S,n,V,Z){super();this.api=p;this.K=a;this.contextMenu=l;this.OQ=y;this.T9=S;this.L=n;this.C=V;this.progressBar=Z;this.j=new g.SF(()=>{QZ(this,!1)},1E3); this.S="";this.U={pw:!1,SG:!1,Ow:!1};g.H(this,this.j);this.J(a,"mousedown",()=>{Xd(this,!1)}); this.J(l.element,"mousedown",()=>{Xd(this,!1)}); this.J(a,"keydown",this.X);this.J(l.element,"keydown",this.X);this.J(a,"keyup",this.D);this.J(l.element,"keyup",this.D)}X(p){p.repeat||(this.U.pw=!1);let a=!1;const l=p.keyCode;var y=rl(p);let S=!p.altKey&&!p.ctrlKey&&!p.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||hlZ.includes(l));var n=!1;let V=!1;const Z=this.api.O();p.defaultPrevented?(S=!1,V=!0):Z.tP&&!this.api.isMutedByEmbedsMutedAutoplay()&&(S=!1);if(l===9)a=!0;else{if(y)switch(l){case 32:case 13:if(y.tagName==="BUTTON"||y.tagName=== "A"||y.tagName==="INPUT")a=!0,S=!1;else if(S){var z=y.getAttribute("role");!z||z!=="option"&&z!=="button"&&z.indexOf("menuitem")!==0||(a=!0,y.click(),n=!0)}break;case 37:case 39:case 36:case 35:a=y.getAttribute("role")==="slider";break;case 38:case 40:z=y.getAttribute("role"),y=l===38?y.previousSibling:y.nextSibling,z==="slider"?a=!0:S&&(z==="option"?(y&&y.getAttribute("role")==="option"&&y.focus(),n=a=!0):z&&z.indexOf("menuitem")===0&&(y&&y.hasAttribute("role")&&y.getAttribute("role").indexOf("menuitem")=== 0&&y.focus(),n=a=!0))}if(S&&!n)switch(l){case 38:n=Math.min(this.api.getVolume()+5,100);de(this.T9,n,!1);this.api.setVolume(n);V=n=!0;break;case 40:n=Math.max(this.api.getVolume()-5,0);de(this.T9,n,!0);this.api.setVolume(n);V=n=!0;break;case 36:this.api.h$()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),V=n=!0);break;case 35:this.api.h$()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),V=n=!0)}}a&&Xd(this,!0);(a||V)&&this.OQ.Y$();(n|| S&&this.handleGlobalKeyDown(l,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat))&&p.preventDefault();Z.K&&(p={keyCode:p.keyCode,altKey:p.altKey,ctrlKey:p.ctrlKey,metaKey:p.metaKey,shiftKey:p.shiftKey,handled:p.defaultPrevented,fullscreen:this.api.isFullscreen()},g.ZN(this.api,"onKeyPress",p))}D(p){const a=p.keyCode;!this.U.SG&&this.handleGlobalKeyUp(a,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)&&p.preventDefault()}handleGlobalKeyUp(p,a,l,y,S,n,V){this.api.publish("keyboardserviceglobalkeyup", {keyCode:p,shiftKey:a,ctrlKey:l,altKey:y,metaKey:S,key:n,code:V});a=!1;if(this.U.pw)return a;(n=g.cc(this.api.DN()))&&(n=n.Z7)&&n.yQ&&(n.AR(p),a=!0);switch(p){case 9:Xd(this,!0);a=!0;break;case 32:this.api.A("web_speedmaster_spacebar_control")&&(this.api.O().tP||(a=this.zd(this.progressBar?.Dd()?.isEnabled)));break;case 39:(this.api.A("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(S||l&&y))&&(UK?y:l)&&this.api.h$()&&this.api.A("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(), p=(p=this.api.getVideoData())?p.UY:[],l=XJZ(p,this.api.getCurrentTime()*1E3),l!==-1&&this.L!=null&&(this.L.Wn(1,p[l].title),this.api.seekTo(p[l].startTime/1E3,void 0,void 0,void 0,52),a=!0))}return a}handleGlobalKeyDown(p,a,l,y,S,n,V,Z){Z||(this.U.pw=!1);var z=!1,d=this.api.O();if(d.tP&&!this.api.isMutedByEmbedsMutedAutoplay())return z;var G=g.cc(this.api.DN());if(G&&(G=G.Z7)&&G.yQ)switch(p){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:z=G.sH(p)}d.D||z||(z=n||String.fromCharCode(p).toLowerCase(), this.S+=z,"awesome".indexOf(this.S)===0||this.api.A("web_player_rtr_ctrls")&&"bday".indexOf(this.S)===0?(z=!0,4===this.S.length&&this.S==="bday"&&this.api.A("web_player_rtr_ctrls")&&(tFF(this.K),this.OQ.Y$()),7===this.S.length&&this.S==="awesome"&&MaM(this.api.getRootNode(),"ytp-color-party")):(this.S=z,z="awesome".indexOf(this.S)===0||"bday".indexOf(this.S)===0));if(!z&&(!this.api.isMutedByEmbedsMutedAutoplay()||hlZ.includes(p))){G=this.api.getVideoData();var B=this.progressBar?.Dd()?.isEnabled; G=G?G.UY:[];const c=UK?y:l;switch(p){case 80:a&&!d.Bs&&(FA(this.T9,$1r(),"Anterior"),this.api.previousVideo(),z=!0);break;case 78:a&&!d.Bs&&(FA(this.T9,UA(),"Siguiente"),this.api.nextVideo(),z=!0);break;case 74:this.api.h$()&&(this.api.startSeekCsiAction(),this.L?this.api.A("enable_key_press_seek_logging")?(z=hE(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.Op(-1,10,z)):this.L.Op(-1,10):FA(this.T9,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"}, V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),z=!0);break;case 76:this.api.h$()&&(this.api.startSeekCsiAction(),this.L?this.api.A("enable_key_press_seek_logging")?(z=hE(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.Op(1,10,z)):this.L.Op(1,10):FA(this.T9,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),z=!0);break;case 37:if(this.api.h$())if(this.api.startSeekCsiAction(),c){if(this.api.A("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(S||l&&y))B=LCM(G,this.api.getCurrentTime()*1E3),B!==-1&&this.L!=null&&(this.L.Wn(-1,G[B].title),this.api.seekTo(G[B].startTime/1E3,void 0,void 0,void 0,53),z=!0)}else this.L?this.api.A("enable_key_press_seek_logging")?(z=hE(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.L.Op(-1,5,z)):this.L.Op(-1,5):FA(this.T9,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),z=!0;break;case 39:this.api.h$()&&(this.api.startSeekCsiAction(),c?this.api.A("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.A("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(S||l&&y)||(B=XJZ(G,this.api.getCurrentTime()*1E3),B!==-1&&this.L!=null&&(this.L.Wn(1,G[B].title),this.api.seekTo(G[B].startTime/1E3,void 0,void 0,void 0,52),z=!0)):(this.L!=null?this.api.A("enable_key_press_seek_logging")?(z=hE(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.Op(1,5,z)):this.L.Op(1,5):FA(this.T9,{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),z=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),de(this.T9,this.api.getVolume(),!1)):(this.api.mute(),de(this.T9,0,!0));z=!0;break;case 32:z=this.api.A("web_speedmaster_spacebar_control")?!this.api.O().Bs:this.zd(B);break;case 75:z=this.zd(B);break;case 190:a?d.enableSpeedOptions&&dLZ(this)&&(z=this.api.getPlaybackRate(),this.api.setPlaybackRate(z+.25,!0),tsM(this.T9,!1),z=!0):this.api.h$()&&(this.step(1),z=!0);break;case 188:a? d.enableSpeedOptions&&dLZ(this)&&(z=this.api.getPlaybackRate(),this.api.setPlaybackRate(z-.25,!0),tsM(this.T9,!0),z=!0):this.api.h$()&&(this.step(-1),z=!0);break;case 70:gah(this.api)&&(this.api.toggleFullscreen().catch(()=>{}),z=!0); break;case 27:B?(this.progressBar.yu(),z=!0):this.C()&&(z=!0)}if(d.controlsType!=="3")switch(p){case 67:g.t9(this.api.DN())&&(d=this.api.getOption("captions","track"),this.api.toggleSubtitles(),CNF(this.T9,!d||d&&!d.displayName),z=!0);break;case 79:hA(this,"textOpacity");break;case 87:hA(this,"windowOpacity");break;case 187:case 61:hA(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:hA(this,"fontSizeIncrement",!0,!0)}let w;a||l||y||(p>=48&&p<=57?w=p-48:p>=96&&p<=105&&(w=p-96));w!=null&&this.api.h$()&& !this.api.A("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),d=this.api.getProgressState(),this.api.seekTo(w/10*(d.seekableEnd-d.seekableStart)+d.seekableStart,void 0,void 0,void 0,81),z=!0);z&&this.OQ.Y$()}this.U.Ow=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:p,shiftKey:a,ctrlKey:l,altKey:y,metaKey:S,key:n,code:V,repeat:Z},this.U);this.U.Ow&&(z=!0,this.OQ.Y$());return z}step(p){this.api.h$();if(this.api.getPlayerStateObject().isPaused()){var a=this.api.getVideoData().S; a&&(a=a.video)&&this.api.seekBy(p/(a.fps||30),void 0,void 0,p>0?77:78)}}zd(p){if(!this.api.O().Bs){const a=this.api.getVideoData()?.getPlayerResponse()?.playabilityStatus;a&&g.K(a.miniplayer,H4A)?.playbackMode==="PLAYBACK_MODE_PAUSED_ONLY"&&g.v0(this.api,"onExpandMiniplayer");p?this.progressBar.Wy():(p=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.T9.ip(p),p?this.api.playVideo():this.api.pauseVideo());return!0}return!1}fz(){this.j.mE();super.fz()}};var glO=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-button","ytp-overflow-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"M\u00e1s":"","data-tooltip-title":"M\u00e1s","aria-haspopup":"true","aria-owns":a.element.id},V:[{W:"div",T:"ytp-overflow-icon",V:[{W:"svg",Z:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{W:"path",Z:{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.B=p;this.w4=a;this.visible=!1;p.createClientVe(this.element,this,16499);this.J(p,"videoplayerreset",this.J9);this.J(p,"appresize",this.J9);this.J(p,"fullscreentoggled",this.J9);this.J(p,"presentingplayerstatechange",this.J9);this.J9();Wc(p,this.element,this);this.listen("click",()=>{p.logClick(this.element);aA(a,this.element,!1)}); this.J(a.closeButton,"click",()=>{this.focus()})}J9(){var p=this.B.O(); const a=p.U||this.B.A("web_player_hide_overflow_button_if_empty_menu")&&this.w4.isEmpty();p=g.x3(p)&&g.jM(this.B)&&this.B.getPlayerStateObject().L(128);const l=this.B.getPlayerSize();this.visible=this.B.m7()&&!p&&l.width>=240&&!this.B.getVideoData().XX&&!a&&!this.B.isEmbedsShortsMode();g.OW(this.element,"ytp-overflow-button-visible",this.visible);this.iM(this.visible);this.visible&&this.B.yT();this.B.logVisibility(this.element,this.visible&&this.UO)}UC(p){super.UC(p);this.B.logVisibility(this.element, this.visible&&p)}fz(){super.fz();g.BM(this.element,"ytp-overflow-button-visible")}};var Yor=class extends g.Ag{constructor(p){super(p,{W:"div",T:"ytp-overflow-panel",Z:{id:T4(),role:"dialog"},V:[{W:"div",T:"ytp-overflow-panel-content",V:[{W:"div",T:"ytp-overflow-panel-action-buttons",yY:"{{buttons}}"}]},{W:"button",A9:["ytp-overflow-panel-close","ytp-button"],Z:{"data-tooltip-title":"Cerrar",title:p.O().A("player_tooltip_data_title_killswitch")?"Cerrar":""},V:[g.S4()]}]},250);this.actionButtons=[];this.L=this.d7("ytp-overflow-panel-content");this.closeButton=this.d7("ytp-overflow-panel-close"); this.J(this.closeButton,"click",this.ke);Wc(p,this.closeButton,this);this.listen("click",this.S);this.J(p,"videoplayerreset",this.hide);this.J(p,"fullscreentoggled",this.onFullscreenToggled);this.hide()}S(p){p=rl(p);g.n3(this.element,p)&&(g.n3(this.L,p)||g.n3(this.closeButton,p)||aA(this))}ke(){super.ke();this.B.xc(this.element)}show(){this.yQ&&this.B.publish("OVERFLOW_PANEL_OPENED");super.show();this.element.setAttribute("aria-modal","true");for(const p of this.actionButtons)p.UC(!0)}hide(){super.hide(); this.element.removeAttribute("aria-modal");for(const p of this.actionButtons)p.UC(!1)}onFullscreenToggled(p){!p&&this.Gf()&&aA(this)}isEmpty(){return this.actionButtons.length===0}focus(){for(const p of this.actionButtons)if(p.yQ){p.focus();break}}};var qoh=class extends g.t{constructor(p,a,l){const y=g.DB(a,l),S=y.uG("default.jpg");super({W:"a",A9:["ytp-video-menu-item","ytp-button"],Z:{role:"menuitemradio","aria-label":y.title,href:p.O().getVideoUrl(y.videoId,a.listId?a.listId.toString():null)},V:[{W:"div",T:"ytp-video-menu-item-index",yY:String(l+1)},{W:"div",T:"ytp-video-menu-item-now-playing",yY:"\u25b6"},{W:"div",T:"ytp-video-menu-item-thumbnail",Z:{style:S?`background-image: url(${S});`:void 0}},{W:"div",T:"ytp-video-menu-item-title", yY:y.title},{W:"div",T:"ytp-video-menu-item-author",yY:y.author}]});this.api=p;this.index=l;this.listen("click",this.onClick)}onClick(p){g.NX(p,this.api)&&this.api.playVideoAt(this.index)}};var JHv=class extends g.Ag{constructor(p){super(p,{W:"div",T:"ytp-playlist-menu",Z:{role:"dialog",id:T4()},V:[{W:"div",T:"ytp-playlist-menu-header",V:[{W:"div",T:"ytp-playlist-menu-title",V:[p.O().U?{W:"span",T:"ytp-playlist-menu-title-name",yY:"{{title}}"}:{W:"a",T:"ytp-playlist-menu-title-name",Z:{href:"{{playlisturl}}"},yY:"{{title}}"},{W:"button",A9:["ytp-playlist-menu-close","ytp-button"],Z:{"aria-label":"Cerrar"},V:[g.S4()]}]},{W:"div",T:"ytp-playlist-menu-subtitle",yY:"{{subtitle}}"}]},{W:"div", T:"ytp-playlist-menu-items",Z:{role:"menu"}}]},250);this.api=p;this.U=this.selected=this.G=this.playlist=null;this.items=this.d7("ytp-playlist-menu-items");this.L=new g.yr(this);this.playlistData=[];this.J(this.d7("ytp-playlist-menu-close"),"click",this.ke);const a=this.d7("ytp-playlist-menu-title-name");p.O().U||(this.U=this.J(a,"click",this.N));g.H(this,this.L);this.hide()}show(){super.show();this.L.J(this.api,"videodatachange",this.j);this.L.J(this.api,"onPlaylistUpdate",this.j);this.j()}hide(){super.hide(); g.uY(this.L);this.updatePlaylist(null)}j(){this.updatePlaylist(this.api.getPlaylist());this.api.O().U&&(this.d7("ytp-playlist-menu-title-name").removeAttribute("href"),this.U&&(this.Kt(this.U),this.U=null))}S(){const p=this.playlist;var a=p.author,l=a?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",y={CURRENT_POSITION:String(p.index+1),PLAYLIST_LENGTH:String(p.length)};a&&(y.AUTHOR=a);this.update({title:p.title,subtitle:g.L$(l,y),playlisturl:this.api.getVideoUrl(!0)}); a=p.S;if(a===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[p.index];else{for(var S of this.playlistData)S.dispose();S=p.length;this.playlistData=[];for(l=0;l{p.logClick(this.element); p.A("delhi_web_player_use_external_playlist_panel")?g.v0(p,"onToggleExternalPlaylistPanel"):aA(a,this.element,!1)})}hide(){super.hide(); this.UC(!1);this.api.yT()}J9(){const p=g.x3(this.api.O());g.OW(this.element,"ytp-playlist-menu-button-tiny",this.api.h9().getPlayerSize().width<400&&!p);this.api.isEmbedsShortsMode()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.L$("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.L$("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title}),"tooltip-title":g.L$("Lista de reproducci\u00f3n: $PLAYLIST_NAME", {PLAYLIST_NAME:this.playlist.title})}),this.api.A("delhi_modern_web_player")&&this.update({playlistTitle:g.L$("Lista de reproducci\u00f3n: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.yQ||(this.show(),this.api.yT()),this.visible=!0,this.UC(!0)):this.yQ&&this.hide()}UC(p){super.UC(p);this.api.logVisibility(this.element,this.visible&&p)}L(){this.playlist&&this.playlist.unsubscribe("shuffle",this.J9,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.J9, this);this.J9()}};var Buo=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-promotooltip-wrapper",V:[{W:"div",T:"ytp-promotooltip-container",V:[{W:"div",T:"ytp-promotooltip-content",V:[{W:"div",T:"ytp-promotooltip-title",yY:"{{title}}"},{W:"div",T:"ytp-promotooltip-details",yY:"{{details}}"}]},{W:"div",T:"ytp-promotooltip-buttons",V:[{W:"div",T:"ytp-promotooltip-dismiss-button",yY:"{{dismissButtonText}}",Z:{tabindex:"0"}},{W:"div",T:"ytp-promotooltip-accept-button",yY:"{{acceptButtonText}}",Z:{tabindex:"0", "aria-haspopup":"true"}}]}]},{W:"div",T:"ytp-promotooltip-pointer"}]});this.tooltipRenderer=p;this.B=a;this.L=this.sourceElement=null;this.title=this.d7("ytp-promotooltip-title");this.details=this.d7("ytp-promotooltip-details");this.acceptButton=this.d7("ytp-promotooltip-accept-button");this.dismissButton=this.d7("ytp-promotooltip-dismiss-button");this.S=this.j=!1;this.U=!0;this.C=this.D=this.K=this.G=!1;this.hg={MM:l=>{this.MM(l)}}; this.iM(!1);p=this.tooltipRenderer.trackingParams||null;if(this.S=!!p)this.B.createServerVe(this.element,this,!0),this.B.setTrackingParams(this.element,p);this.J(a,"onShowControls",this.Sl);this.J(a,"onHideControls",this.N);this.J(a,"resize",this.Cx);this.J(this.acceptButton,"click",this.w7);this.J(this.dismissButton,"click",this.Ws);this.J(document,"click",this.jl)}X(p,a){if(!this.j){if(p){this.tooltipRenderer=p;p=this.tooltipRenderer.text;var l=!1;p?.runs?.length&&p.runs[0].text&&(this.update({title:p.runs[0].text.toString()}), l=!0);g.k1(this.title,l);l=this.tooltipRenderer.detailsText;p=!1;if(l?.runs?.length&&l.runs[0].text){{var y=l.runs[0].text.toString();const z=y.indexOf("$TARGET_ICON");if(z>-1)if(this.tooltipRenderer.targetId){l=[];y=y.split("$TARGET_ICON");var S=new g.XT({W:"span",T:"ytp-promotooltip-details-icon",V:[pIh[this.tooltipRenderer.targetId]]});g.H(this,S);var n=[];for(V of y){const d=new g.XT({W:"span",T:"ytp-promotooltip-details-component",yY:V});g.H(this,d);n.push(d)}y.length===2?(l.push(n[0].element), l.push(S.element),l.push(n[1].element)):y.length===1&&(z===0?(l.push(S.element),l.push(n[0].element)):(l.push(n[0].element),l.push(S.element)));var V=l.length?l:null}else V=null;else V=y}if(V){if(typeof V!=="string"){g.m1(this.details);for(var Z of V)this.details.appendChild(Z)}else this.update({details:V});p=!0}}g.k1(this.details,p);Z=this.tooltipRenderer.acceptButton;V=!1;g.K(Z,g.gA)?.text?.runs?.length&&g.K(Z,g.gA).text.runs[0].text&&(this.update({acceptButtonText:g.K(Z,g.gA).text.runs[0].text.toString()}), V=!0);g.k1(this.acceptButton,V);Z=this.tooltipRenderer.dismissButton;V=!1;g.K(Z,g.gA)?.text?.runs?.length&&g.K(Z,g.gA).text.runs[0].text&&(this.update({dismissButtonText:g.K(Z,g.gA).text.runs[0].text.toString()}),V=!0);g.k1(this.dismissButton,V)}a&&(this.sourceElement=a);this.L=LyZ(this);this.D=!1;this.B.O().A("web_player_hide_nitrate_promo_tooltip")||this.iM(!0);qW(this);this.yQ&&!this.C&&(this.C=!0,this.hg.MM(0));this.S&&this.B.logVisibility(this.element,this.yQ)}}Sl(){this.U?this.X():qW(this)}N(){this.U? (LE(this),this.D=!0):qW(this)}w7(){this.j=!0;this.MM(1);this.B.publish("promotooltipacceptbuttonclicked",this.acceptButton);LE(this);this.S&&this.B.logClick(this.acceptButton)}Ws(){this.j=!0;this.MM(2);LE(this);this.S&&this.B.logClick(this.dismissButton)}jl(p){if(this.B.getPresentingPlayerType()===1||this.B.getPresentingPlayerType()===2&&this.G){var a=!0,l=g.m5("ytp-ad-overlay-ad-info-dialog-container"),y=g.m5("ytp-ad-player-overlay-layout"),S=rl(p);if(this.sourceElement&&S&&g.n3(this.sourceElement, S))this.sourceElement=null;else{this.B.getPresentingPlayerType()===1&&S&&Array.from(S.classList).forEach(V=>{if(V.startsWith("ytp-ad")||V.startsWith("ytp-skip-ad"))a=!1}); var n=dQE(this.tooltipRenderer);this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"?n&&(a=a&&!g.n3(this.element,S)):this.tooltipRenderer.dismissStrategy?.type==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(a=n?!1:a&&g.n3(this.element,S));this.L&&this.yQ&&!l&&!y&&(!S||a&&g.N_(p))&&(this.j=!0,LE(this))}}}MM(p){var a=this.tooltipRenderer.promoConfig;if(a){let l;switch(p){case 0:a.impressionEndpoints?.length&&(l=a.impressionEndpoints[0]);break;case 1:l=a.acceptCommand;break;case 2:l= a.dismissCommand}p=g.K(l,V8)?.feedbackToken;l&&p&&(p={feedbackTokens:[p]},a=this.B.SE(),a?.pD(l)&&y2(a,l,p))}}Cx(){this.D||(this.L||(this.L=LyZ(this)),this.X())}},pIh={"ytp-settings-button":g.Pl()};var agh=class extends g.t{constructor(p){super({W:"button",A9:["ytp-replay-button","ytp-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"Ver de nuevo":"","data-tooltip-title":"Ver de nuevo"},V:[g.jd()]});this.B=p;this.J(p,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.cZ(p.getPlayerStateObject());Wc(this.B,this.element,this)}onStateChange(p){this.cZ(p.state)}cZ(p){this.iM(p.L(2))}onClick(){this.B.getPlayerStateObject().isOrWillBePlaying(); this.B.playVideo()}};var lgq=class extends g.t{constructor(p){super({W:"button",A9:["ytp-button","ytp-search-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.x3(p.O()))},V:[{W:"div",T:"ytp-search-icon",yY:"{{icon}}"},{W:"div",T:"ytp-search-title",yY:"Buscar"}]});this.api=p;this.visible=!1;this.updateValue("icon",{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",T:"ytp-svg-fill",Z:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); p.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.J(p,"appresize",this.L);this.J(p,"videodatachange",this.L);Wc(p,this.element,this)}onClick(p){this.api.logClick(this.element);var a=g.Re(this.api.O().Rd,{focusSearch:"true"}),l={};g.xe(this.api,"addEmbedsConversionTrackingParams",[l]);a=g.Re(a,l);(l=this.api.getVideoData().cU?.params)&&(a=g.Re(a,{bp:l}));g.xZ(window,a);p.preventDefault()}L(){if(this.api.A("embeds_web_enable_search_button")){var p=this.api.O(); var a=this.api.getVideoData(),l=this.api.h9().getPlayerSize().width;p=g.x3(p)&&l>=240&&!p.U&&!a.isAd()&&!this.api.isEmbedsShortsMode()}else p=!1;this.visible=p;this.iM(this.visible);g.OW(this.element,"ytp-search-button-visible",this.visible);g.OW(this.element,"ytp-show-search-title",!this.api.m7());this.api.logVisibility(this.element,this.visible&&this.UO)}UC(p){super.UC(p);this.api.logVisibility(this.element,this.visible&&p)}};var y4h=class extends g.t{constructor(p){super({W:"div",T:"ytp-seek-overlay",V:[{W:"div",A9:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{W:"div",A9:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{W:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{W:"path",Z:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{W:"div",T:"ytp-seek-overlay-duration",yY:"{{durationBack}}"}]},{W:"div",A9:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],V:[{W:"div",T:"ytp-seek-overlay-duration",yY:"{{durationForward}}"},{W:"div",A9:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{W:"svg",Z:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{W:"path",Z:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{W:"div",T:"ytp-seek-overlay-message",V:[{W:"div",T:"ytp-seek-overlay-message-icon",yY:"{{icon}}"},{W:"div",T:"ytp-seek-overlay-message-text", yY:"{{text}}"}]}]});this.B=p;this.X=0;this.L="hidden";this.G=this.d7("ytp-seek-overlay-animation-back");this.K=this.d7("ytp-seek-overlay-animation-forward");this.C=this.d7("ytp-seek-overlay-message");this.D=new g.SF(()=>{lg(this)},g.ak(this.B.O().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.H(this,this.D);this.B.createClientVe(this.K,this,28240);this.B.createClientVe(this.G,this,28239);this.B.logVisibility(this.K,!0);this.B.logVisibility(this.G,!0);this.hide()}trigger(p,a,l,y){this.show();if(this.S&&p!==this.S){let S=1;this.U&&(S=B_r(this));lg(this,S,!1);ae(this)}this.S=p;this.j=this.S===-1?this.G:this.K;p="";a?(this.S===-1&&this.B.getCurrentTime()<=a?this.X=a:this.X+=a,p=`${this.S===-1?"\u2212":"+"} ${this.X}`):this.X=0;this.updateValue(this.S===-1?"durationBack":"durationForward", p);if(this.L==="hidden"||this.L==="fading-out")a=0,this.L==="fading-out"&&(a=B_r(this),S4r(this)),pEr(this,a),this.L!=="fading-out"&&yGr(this,this.j.querySelector(".ytp-seek-overlay-arrow-persistent")),this.L="fading-in";else if(this.L==="fading-in"||this.L==="lingering")a=this.j.querySelector(".ytp-seek-overlay-duration"),p=g.ak(this.B.O().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,a.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(${p})`},{offset:1,transform:"scale(1)"}],{duration:184}),S4r(this),this.L==="lingering"&&(this.D.stop(),this.D.start());l&&xwh(this,l,y)}BC(p,a,l,y){this.trigger(p,y)}Op(p,a,l){this.trigger(p,a);l&&(p=p===-1?this.K.visualElement:this.G.visualElement,l={seekData:l},(a=g.c2())&&Hs(a,p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",l))}Wn(p,a,l){this.trigger(p,void 0,a,l)}};var SEM=class extends g.t{constructor(p,a,l){super({W:"button",A9:["ytp-button","ytp-share-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":l.element.id,"data-tooltip-opaque":String(g.x3(p.O()))},V:[{W:"div",T:"ytp-share-icon",yY:"{{icon}}"},{W:"div",T:"ytp-share-title",yY:"Compartir"}]});this.api=p;this.L=a;this.S=l;this.visible=!1;this.tooltip=this.L.Py();p.createClientVe(this.element,this,28664);this.listen("click", this.onClick);this.J(p,"videodatachange",this.J9);this.J(p,"videoplayerreset",this.J9);this.J(p,"appresize",this.J9);this.J(p,"presentingplayerstatechange",this.J9);this.J9();this.addOnDisposeCallback(g.Qb(this.tooltip,this.element))}onClick(){var p=this.api.O();const a=this.api.getVideoData(this.api.getPresentingPlayerType()),l=this.api.getPlaylistId();p=this.api.A("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):p.getVideoUrl(a.videoId,l,void 0,!0);if(navigator.share)try{const y=navigator.share({title:a.title, url:p});y instanceof Promise&&y.catch(S=>{TVO(this,S)})}catch(y){y instanceof Error&&TVO(this,y)}else this.L.r8(),aA(this.S,this.element,!1); this.api.logClick(this.element)}J9(){var p=this.api.O();const a=this.api.isEmbedsShortsMode();g.OW(this.element,"ytp-show-share-title",g.x3(p)&&!a);this.L.bN()&&a?(p=(this.api.h9().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.VB(this.element,"right",`${p}px`)):a&&g.VB(this.element,"right","0px");this.updateValue("icon",{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=Sn(this);g.OW(this.element,"ytp-share-button-visible",this.visible);this.iM(this.visible);this.tooltip.yT();this.api.logVisibility(this.element,Sn(this)&&this.UO)}UC(p){super.UC(p);this.api.logVisibility(this.element,this.visible&&p)}fz(){super.fz();g.BM(this.element,"ytp-share-button-visible")}};var nyM=class extends g.Ag{constructor(p,a){var l=T4();const y=p.O();l={W:"div",T:"ytp-share-panel",Z:{id:T4(),role:"dialog","aria-labelledby":l},V:[{W:"div",T:"ytp-share-panel-inner-content",V:[{W:"div",T:"ytp-share-panel-title",Z:{id:l},yY:"Compartir"},{W:"a",A9:["ytp-share-panel-link","ytp-no-contextmenu"],Z:{href:"{{link}}",target:y.C,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},yY:"{{linkText}}"},{W:"label",T:"ytp-share-panel-include-playlist",V:[{W:"input",T:"ytp-share-panel-include-playlist-checkbox", Z:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{W:"div",T:"ytp-share-panel-loading-spinner",V:[vW()]},{W:"div",T:"ytp-share-panel-service-buttons",yY:"{{buttons}}"},{W:"div",T:"ytp-share-panel-error",yY:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{W:"button",A9:["ytp-share-panel-close","ytp-button"],Z:{title:"Cerrar"},V:[g.S4()]}]};super(p,l,250);this.moreButton=null;this.api=p;this.tooltip=a.Py(); this.S=[];this.j=this.d7("ytp-share-panel-inner-content");this.closeButton=this.d7("ytp-share-panel-close");this.J(this.closeButton,"click",this.ke);this.addOnDisposeCallback(g.Qb(this.tooltip,this.closeButton));this.U=this.d7("ytp-share-panel-include-playlist-checkbox");this.J(this.U,"click",this.J9);this.L=this.d7("ytp-share-panel-link");this.addOnDisposeCallback(g.Qb(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.J(this.L,"click",S=>{S.preventDefault();this.api.logClick(this.L); var n=this.api.getVideoUrl(!0,!0,!1,!1);n=CgA(this,n);g.QD(n,this.api,S)&&g.v0(this.api,"SHARE_CLICKED")}); this.listen("click",this.G);this.J(p,"videoplayerreset",this.hide);this.J(p,"fullscreentoggled",this.onFullscreenToggled);this.J(p,"onLoopRangeChange",this.N);this.hide()}G(p){p=rl(p);g.n3(this.j,p)||g.n3(this.closeButton,p)||aA(this)}ke(){super.ke();this.tooltip.xc(this.element);this.api.logVisibility(this.L,!1);for(const p of this.S)this.api.hasVe(p.element)&&this.api.logVisibility(p.element,!1)}show(){const p=this.yQ;super.show();this.J9();p||g.v0(this.api,"onSharePanelOpened")}N(){this.yQ&&this.J9()}J9(){g.XX(this.element, "ytp-share-panel-loading");g.BM(this.element,"ytp-share-panel-fail");var p=this.api.getVideoData();const a=this.api.getPlaylistId()&&this.U.checked;p.getSharePanelCommand&&y2(this.api.SE(),p.getSharePanelCommand,{includeListId:a}).then(l=>{this.nz()||(g.BM(this.element,"ytp-share-panel-loading"),vHq(this,l))}); p=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",p);this.updateValue("linkText",p);this.updateValue("shareLinkWithUrl",g.L$("Compartir enlace: $URL",{URL:p}));E2(this.L);this.api.logVisibility(this.L,!0)}onFullscreenToggled(p){!p&&this.Gf()&&aA(this)}focus(){this.L.focus()}fz(){super.fz();x8o(this)}};var VLM=class extends GZ{constructor(p){super(p);this.U=this.L=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");gYE(this);this.J(this.B,"changeProductsInVideoVisibility",this.Hs);this.J(this.B,"videodatachange",this.onVideoDataChange)}fz(){TY(this);super.fz()}Bs(p){p.target!==this.dismissButton.element&&(this.Sl(!1),g.v0(this.B,"innertubeCommand",this.onClickCommand))}X(){this.dG=!0;this.Sl(!0);this.S()}Hs(p){this.C=p;this.S()}onVideoDataChange(p,a){if(p=!!a.videoId&& this.videoId!==a.videoId)this.videoId=a.videoId,this.dG=!1,this.QY=!0,this.N=this.Ws=!1,TY(this),Yio(this,!1),this.U=this.L=!1,cX(this),WRF(this);if(p||!a.videoId)this.w7=this.G=!1;if(a?.getPlayerResponse()?.videoDetails?.isLiveContent)this.cX(!1);else{a=g.K(a.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.productsInVideoOverlayRenderer,e6f);this.C=this.enabled=!1;if(a){if(p=a?.featuredProductsEntityKey){var l=g.lR.getState().entities;if(H6(l,"featuredProductsEntity",p)?.productsData){this.cX(!1); return}}if(!a.text||!a.onClickCommand||!a.timing){this.cX(!1);return}this.enabled=!0;this.G||(p=a.badgeInteractionLogging?.trackingParams,(this.G=!!p)&&this.B.setTrackingParams(this.badge.element,p||null));this.w7||(this.w7=!!a.dismissButton?.trackingParams)&&this.B.setTrackingParams(this.dismissButton.element,a.dismissButton?.trackingParams||null);if(a.isContentForward){p=a.productsData;Yio(this,!0);WRF(this);p=UfE(this,p);l=[];p.length>0&&l.push(p[0]);if(p.length>1){const y=new g.t({W:"div",T:"ytp-suggested-action-more-products-icon"}); g.H(this,y);l.push(y);l.push(...p.slice(1))}this.K=new g.t({W:"div",V:l,T:"ytp-suggested-action-content-forward-container"});g.H(this,this.K);this.iT.element.append(this.K.element)}this.text=g.mQ(a.text);if(p=a.dismissButton?.a11yLabel)this.E6=g.mQ(p);this.onClickCommand=a.onClickCommand;this.timing=a.timing;this.OE()}RkE(this);bK(this);this.S()}}D(){return!this.C&&this.enabled&&!this.dG&&!this.B.m7()&&!this.wq&&(this.N||this.QY)}Ic(p){super.Ic(p);if(this.L||this.U)this.timing&&AA(this.timing.preview)&& (this.L=!1,cX(this),this.U=!1,cX(this),this.B.RX("shopping_overlay_preview_collapsed"),this.B.RX("shopping_overlay_preview_expanded"),p=FG(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),AA(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.B.RX("shopping_overlay_expanded"),p.end=this.timing.expanded.endSec*1E3),this.B.OE([p])),this.Ws=!0,bK(this);cX(this)}cX(p){(this.N=p)?(dx(this),bK(this,!1)):(TY(this),this.NO.start()); this.S()}OE(p=0){var a=this.timing;p+=this.B.getCurrentTime();const l=[];var y=a.visible;const S=a.preview;a=a.expanded;AA(y)&&(fY(y,p),l.push(FG(y.startSec,y.endSec,"shopping_overlay_visible")));AA(S)&&(fY(S,p),y=S.startSec+1,l.push(FG(S.startSec,y,"shopping_overlay_preview_collapsed")),l.push(FG(y,S.endSec,"shopping_overlay_preview_expanded")));AA(a)&&(fY(a,p),l.push(FG(a.startSec,a.endSec,"shopping_overlay_expanded")));this.B.OE(l)}S(){super.S();this.B.getRootNode()&&g.OW(this.B.getRootNode(), "ytp-shopping-pill-shown",this.D())}};var ZbO=class extends g.t{constructor(p){super({W:"div",T:"ytp-shorts-title-channel",V:[{W:"a",T:"ytp-shorts-title-channel-logo",Z:{href:"{{channelLink}}",target:p.O().C,"aria-label":"{{channelLogoLabel}}"}},{W:"div",T:"ytp-shorts-title-expanded-heading",V:[{W:"div",T:"ytp-shorts-title-expanded-title",V:[{W:"a",yY:"{{expandedTitle}}",Z:{href:"{{channelTitleLink}}",target:p.O().C,tabIndex:"0"}}]}]}]});this.api=p;this.L=this.d7("ytp-shorts-title-channel-logo");this.channelName=this.d7("ytp-shorts-title-expanded-title"); this.subscribeButton=null;p.createClientVe(this.L,this,36925);this.J(this.L,"click",a=>{this.api.logClick(this.L);g.xZ(window,HVF(this));a.preventDefault()}); p.createClientVe(this.channelName,this,37220);this.J(this.channelName,"click",a=>{this.api.logClick(this.channelName);g.xZ(window,HVF(this));a.preventDefault()}); GbZ(this);this.J(p,"videodatachange",this.J9);this.J(p,"videoplayerreset",this.J9);this.J9()}J9(){const p=this.api.O();this.iM(g.x3(p)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.yQ);const a=this.api.getVideoData();let l=!1;this.api.getPresentingPlayerType()===2?l=!!a.videoId&&!!a.isListed&&!!a.author&&!!a.VY&&!!a.profilePicture:g.x3(p)&&(l=!!a.videoId&&!!a.VY&&!!a.profilePicture&&!a.XX&&!p.U&&!(p.G&&this.api.getPlayerSize().width< 200));DZr(this,l,a.profilePicture,g.x3(p)?a.expandedTitle:a.author);this.subscribeButton&&(this.subscribeButton.channelId=a.Jk);this.updateValue("expandedTitle",a.expandedTitle)}};var oyO=class extends g.Ag{constructor(p){super(p,{W:"button",A9:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{W:"div",T:"ytp-skip-intro-button-text",yY:"Saltar introducci\u00f3n"}]},100);this.S=!1;this.L=new g.SF(()=>{this.hide()},5E3); this.Wy=this.ej=NaN;g.H(this,this.L);this.G=()=>{this.show()}; this.j=()=>{this.hide()}; this.U=()=>{const a=this.B.getCurrentTime();a>this.ej/1E3&&a{this.d3(a,l)}); this.J(this.element,"click",()=>{this.B.seekTo(this.Wy/1E3)}); this.hide()}show(){super.show();this.L.start()}hide(){super.hide();this.L.stop()}d3(p,a){p==="dataloaded"&&((this.ej=a.ej,this.Wy=a.Wy,isNaN(this.ej)||isNaN(this.Wy))?this.S&&(this.B.RX("intro"),this.B.removeEventListener(g.tT("intro"),this.G),this.B.removeEventListener(g.jh("intro"),this.j),this.B.removeEventListener("onShowControls",this.U),this.hide(),this.S=!1):(this.B.addEventListener(g.tT("intro"),this.G),this.B.addEventListener(g.jh("intro"),this.j),this.B.addEventListener("onShowControls", this.U),p=new g.yj(this.ej,this.Wy,{priority:9,namespace:"intro"}),this.B.OE([p]),this.S=!0))}};var zFZ=class extends g.t{constructor(p){super({W:"button",A9:["ytp-airplay-button","ytp-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},yY:"{{icon}}"});this.B=p;this.listen("click",this.onClick);this.J(p,"airplayactivechange",this.J9);this.J(p,"airplayavailabilitychange",this.J9);this.J9();Wc(p,this.element,this)}onClick(){this.B.H1()}J9(){var p=!0;g.x3(this.B.O())&&(p=p&&this.B.h9().getPlayerSize().width>=480);this.iM(p); p=this.updateValue;var a=this.B.A("delhi_modern_web_player_icons");const l=a?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};a=a?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};p.call(this,"icon",this.B.gE()?l:a)}};var dIF=class extends g.t{constructor(p){super({W:"div",T:"ytp-gradient-bottom"});this.S=g.HA("CANVAS");this.L=this.S.getContext("2d",{willReadFrequently:!0});this.U=NaN;this.S.width=1;RLA(this,p.h9().getPlayerSize().height)}fz(){this.L=null;super.fz()}};var GCh=class extends g.t{constructor(p,a,l,y){super({W:"div",T:"ytp-chapter-container",V:[{W:"button",A9:["ytp-chapter-title","ytp-button"],V:[{W:"span",Z:{"aria-hidden":"true"},T:"ytp-chapter-title-prefix",yY:"\u2022"},{W:"div",T:"ytp-chapter-title-content",yY:"{{chapterTitle}}",Z:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:p.A("player_tooltip_data_title_killswitch")?y:"","data-tooltip-title":y}},{W:"div",T:"ytp-chapter-title-chevron",V:[{W:"svg",Z:{height:"100%",viewBox:"0 0 24 24", width:"100%"},V:[{W:"path",Z:{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.B=p;this.j=a;this.D="";this.currentIndex=0;this.S=void 0;this.U=!0;this.C=this.d7("ytp-chapter-container");this.L=this.d7("ytp-chapter-title");this.X=this.d7("ytp-chapter-title-content");this.K();this.updateVideoData("newdata",this.B.getVideoData());this.J(p,"videodatachange",this.updateVideoData);this.J(p,"resize",this.K);this.J(this.C,"click",this.onClick);this.J(p,g.tT(l), this.rq);this.J(p,"onLoopRangeChange",this.rq);this.J(p,"innertubeCommand",this.onClickCommand);(p=g.jJ(this.B.O()))&&g.OW(this.L,"ytp-profile-page",!0);g.x3(this.B.O())||p||Wc(this.B,this.X,this)}onClick(){g.v0(this.B,"innertubeCommand",this.S)}K(){if(this.B.A("delhi_modern_web_player")){var p=this.B.getPlayerSize();p.width&&(this.element.style.maxWidth=`${p.width*.25}px`)}}};var BZO=class extends GCh{constructor(p,a){super(p,a,"chapterCueRange","Ver cap\u00edtulo");this.G=""}onClickCommand(p){g.K(p,ha)&&this.rq()}updateVideoData(p,a){p=g.K(a.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.decoratedPlayerBarRenderer,e3);p=g.K(p?.playerBarActionButton,g.gA);this.B.A("web_player_updated_entrypoint")&&(this.G=z$(p?.text),this.X.setAttribute("title",p?.tooltip??"Ver cap\u00edtulo"));this.S=p?.command;vKq(this)}rq(){var p=this.G;const a=this.j.L;var l=this.B.getLoopRange()?.type=== "clips";if(a.length>1&&!l){p=this.B.getProgressState().current*1E3;l=ES(a,p);p=a[l].title||"Cap\u00edtulos";if(l!==this.currentIndex||this.U)g.v0(this.B,"innertubeCommand",a[l].onActiveCommand),this.currentIndex=l;this.U=!1}else this.U=!0;Tnf(this,p)}};var c4$=class extends g.et{constructor(p){super({W:"button",A9:["ytp-expand-right-bottom-section-button","ytp-button"],Z:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[g.n6()]});this.L=!1;this.listen("click",this.S);p.createClientVe(this.element,this,276954)}S(){this.element.parentElement?.classList.contains("ytp-right-controls-left");(this.L=!this.L)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}isExpanded(){return this.L}};var r4h=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-storyboard-framepreview",V:[{W:"div",T:"ytp-storyboard-framepreview-timestamp",yY:"{{timestamp}}"},{W:"div",T:"ytp-storyboard-framepreview-img"}]});this.api=p;this.S=this.d7("ytp-storyboard-framepreview-img");this.L=null;this.frameIndex=NaN;this.events=new g.yr(this);this.fade=new g.Kg(this,100);g.H(this,this.events);g.H(this,this.fade);this.J(this.api,"presentingplayerstatechange",this.U);a&&this.J(this.element,"click",()=>{a.yu()})}U(p){p.state.L(32)? In(this,this.api.XG()):this.yQ&&(p.state.L(16)||p.state.L(1))||this.fade.hide()}onProgress(){const p=this.api.getPlayerStateObject(); (p.L(32)||p.L(16))&&Rn(this)}j(){this.frameIndex=NaN;Rn(this)}hide(){this.L&&In(this,null);super.hide()}};var wIe=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-fullscreen-button","ytp-button"],Z:{title:p.A("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}}"},yY:"{{icon}}"});this.B=p;this.S=a;this.message=null;this.L=g.Qb(this.S.Py(),this.element);this.U=new g.SF(this.X,2E3,this);g.H(this,this.U);this.J(p,"fullscreentoggled", this.M5);this.J(p,"presentingplayerstatechange",this.J9);this.J(p,"resize",this.J9);this.listen("click",this.onClick);g.gm()&&(a=this.B.h9(),this.J(a,EBr(),this.j),this.J(a,Rqh(document),this.j_));p.O().iT||p.O().G||this.disable();p.createClientVe(this.element,this,139117);this.J9();this.M5(p.isFullscreen())}onClick(){if(this.B.O().iT||this.B.O().G){this.B.logClick(this.element);try{this.B.toggleFullscreen().catch(p=>{this.aU(p)})}catch(p){this.aU(p)}}else aA(this.message,this.element,!0)}aU(p){String(p).includes("fullscreen error")? g.tX(p):g.MD(p); this.j()}j(){this.disable();this.message.zR(this.element,!0)}j_(){ve()===this.B.getRootNode()?this.U.start():(this.U.stop(),this.message&&this.message.hide())}X(){if(window.screen&&window.outerWidth&&window.outerHeight){const p=window.screen.width*.9,a=window.screen.height*.9;let l=Math.max(window.outerWidth,window.innerWidth),y=Math.max(window.outerHeight,window.innerHeight);if(l>y!==p>a){const S=l;l=y;y=S}p>l&&a>y&&this.j()}}disable(){if(!this.message){var p=(A3(["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 g.Ag(this.B,{W:"div",A9:["ytp-popup","ytp-generic-popup"],Z:{role:"alert",tabindex:"0"},V:[p[0],{W:"a",Z:{href:"https://support.google.com/youtube/answer/6276924",target:this.B.O().C},yY:p[2]}, p[4]]},100,!0);this.message.hide();g.H(this,this.message);this.message.subscribe("show",a=>{this.S.Pw(this.message,a)}); g.g1(this.B,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.L)();this.L=null}}J9(){const p=gah(this.B),a=this.B.O().G&&this.B.getPlayerSize().width<250;this.iM(p&&!a);this.B.logVisibility(this.element,this.yQ)}M5(p){let a;p?(a=g.HB(this.B,"Salir del modo de pantalla completa","f"),this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"}),document.activeElement===this.element&&this.B.getRootNode().focus(), document.pictureInPictureElement&&document.exitPictureInPicture().catch(l=>{g.tX(l)})):(a=g.HB(this.B,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"})); p=oIF(this,p);a=this.message?null:a;this.B.O().A("player_tooltip_data_title_killswitch")?this.update({title:a,icon:p}):this.update({"tooltip-title":a,"aria-label":a,icon:p});this.S.Py().yT()}fz(){this.message||((0,this.L)(),this.L=null);super.fz()}UC(p){super.UC(p)}};var $IM=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-button","ytp-jump-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[a>0?{W:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",A9:["ytp-circle-arrow","ytp-svg-fill"],Z:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {W:"text",A9:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"7.05",y:"15.05"}}]}:{W:"svg",Z:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{W:"path",A9:["ytp-circle-arrow","ytp-svg-fill"],Z:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {W:"text",A9:["ytp-jump-button-text","ytp-svg-fill"],Z:{x:"6.5",y:"15"}}]}]});this.B=p;this.L=a;this.S=new g.SF(()=>{this.U?(this.U=!1,this.S.start()):this.element.classList.remove("ytp-jump-spin","backwards")},250); this.U=!1;(a=a>0)?this.B.createClientVe(this.element,this,36843):this.B.createClientVe(this.element,this,36844);const l=g.L$(a?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.L).toString()});this.B.A("player_tooltip_data_title_killswitch")?this.update({title:l,"data-title-no-tooltip":l,"aria-keyshortcuts":a?"\u2192":"\u2190"}):this.update({"tooltip-title":l,"data-title-no-tooltip":l,"aria-keyshortcuts":a?"\u2192":"\u2190"});this.j=this.element.querySelector(".ytp-jump-button-text"); this.j.textContent=Math.abs(this.L).toString();this.listen("click",this.onClick,this);Wc(p,this.element,this)}onClick(){this.B.logClick(this.element);this.B.seekBy(this.L,!0);var p=this.L>0?1:-1,a=Math.abs(this.L);const l=this.B.I7().wI;l&&l.Op(p,a);this.S.isActive()?this.U=!0:(p=["ytp-jump-spin"],this.L<0&&p.push("backwards"),this.element.classList.add(...p),this.S.JP())}};var PIr=class extends GCh{constructor(p,a){super(p,a,"timedMarkerCueRange","Ver momentos clave");this.J(p,g.jh("timedMarkerCueRange"),this.rq);this.J(p,"updatemarkervisibility",this.updateVideoData)}onClickCommand(p){g.K(p,voo)&&this.rq()}updateVideoData(){this.S=nEM(this)?.onTap?.innertubeCommand;vKq(this)}rq(){var p="";const a=this.j.K;var l=nEM(this)?.headerTitle;l=l?g.mQ(l):"";var y=this.B.getLoopRange()?.type==="clips";a.length>1&&!y&&(p=this.B.getProgressState().current*1E3,y=eBA(a,p),p=y!= null?a[y].title:l,y!=null&&y!==this.currentIndex&&(g.v0(this.B,"innertubeCommand",a[y].onActiveCommand),this.currentIndex=y));Tnf(this,p)}};var Lkr=class extends g.t{constructor(p){const a=p.A("web_enable_pip_on_miniplayer");super({W:"button",A9:["ytp-miniplayer-button","ytp-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:["{{icon}}"]});this.B=p;this.visible=!1;this.listen("click",this.onClick);this.J(p,"fullscreentoggled", this.J9);this.B.A("player_tooltip_data_title_killswitch")?this.update({title:g.HB(p,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:PBr(this,a)}):this.update({"tooltip-title":g.HB(p,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:PBr(this,a)});Wc(p,this.element,this);p.createClientVe(this.element,this,62946);this.J9()}onClick(){g.v0(this.B,"onCollapseMiniplayer");this.B.logClick(this.element)}J9(){this.visible=!this.B.isFullscreen();this.iM(this.visible); this.B.logVisibility(this.element,this.visible&&this.UO)}UC(p){super.UC(p);this.B.logVisibility(this.element,this.visible&&p)}};var XIE=class extends g.t{constructor(p,a,l,y,S,n=!1){const V={W:"div",A9:["ytp-input-slider-section"],V:[{W:"input",T:"ytp-input-slider",Z:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};S&&V.V.unshift(S);n&&V.A9.push("ytp-vertical-slider");super(V);this.j=p;this.X=a;this.G=l;this.initialValue=y;this.header=S;this.S=this.d7("ytp-input-slider");this.L=y?y:p;this.init();this.J(this.S,"input",this.U);this.J(this.S,"keydown", this.D)}init(){this.updateValue("minvalue",this.j);this.updateValue("maxvalue",this.X);this.updateValue("stepvalue",this.G);this.updateValue("slidervalue",this.L);AVq(this,this.L)}U(){W6(this,Number(this.S.value));this.S.focus()}D(p){if(!p.defaultPrevented){switch(p.code){case "ArrowDown":p=-this.G;break;case "ArrowUp":p=this.G;break;default:return}W6(this,Math.min(this.X,Math.max(Number((this.L+p).toFixed(2)),this.j)))}}};var xIE=class extends XIE{constructor(p){super(0,100,1,p.isMuted()?0:p.getVolume(),void 0,!0);this.B=p;this.C=en(this.Sl,10,this);this.K=!1;this.J(p,"onVolumeChange",this.onVolumeChange);this.J(this.element,"wheel",this.N)}onVolumeChange(p){if(this.K)this.K=!1;else{var a=p.volume;a===0||p.muted?W6(this,0):W6(this,a)}}U(){super.U();this.C(this.L)}N(p){var a=-p.deltaY;a=p.deltaMode===WheelEvent.DOM_DELTA_LINE||p.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.qx(this.L+a,0,100):g.qx(this.L+g.qx(a/10,-10,10), 0,100);a===0?W6(this,0):W6(this,a);this.C(a);p.preventDefault();p.stopPropagation()}Sl(p,a){this.K=!0;p===0||a?this.B.mute():(this.B.isMuted()&&this.B.unMute(),this.B.setVolume(p))}};var Fko=class extends g.t{constructor(p,a){super({W:"div",Z:{tabindex:"0",title:p.A("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},A9:["ytp-volume-popover"]});this.isVisible=!1;this.tooltip=a.Py();this.j=new xIE(p);g.H(this,this.j);this.j.lT(this.element);this.L=new g.SF(()=>{MlO(this,!1)},300); this.listen("mouseenter",()=>{this.L.stop()}); this.listen("mouseleave",()=>{this.U()}); this.listen("focus",()=>{this.L.stop()}); this.J(this.j.S,"focus",()=>{this.L.stop()}); this.listen("focusout",()=>{this.U();this.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.Qb(a.Py(),this.element));g.H(this,this.L)}S(){MlO(this,!0)}U(){this.L.start()}D(){this.L.stop()}X(){return this.isVisible}};var vP=class extends g.t{constructor(p,a){var l=p.O().Ws?{"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:p.A("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};super(p.A("delhi_modern_web_player")?{W:"div",T:"ytp-mute-button",V:[{W:"button",Z:l,A9:["ytp-volume-icon", "ytp-button"],yY:"{{icon}}"}]}:{W:"button",A9:["ytp-mute-button","ytp-button"],Z:l,V:[{W:"div",T:"ytp-volume-icon",yY:"{{icon}}"}]});this.B=p;this.S=null;this.D=this.QY=this.C=this.K=NaN;this.Hs=this.N=null;this.X=[];this.j=[];this.visible=!1;this.U=this.L=this.Sl=null;p.A("delhi_modern_web_player")&&this.update({"data-priority":4});l=this.B.O();this.updateValue("icon",X4());this.tooltip=a.Py();this.updateValue("dataTooltipOffsetY",0);this.U=g.m5("ytp-volume-icon",this.element);const y=this.B.A("delhi_modern_web_player_icons")? {W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",A9:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{W:"path",T:"ytp-svg-volume-animation-small-ripple",Z:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{W:"path",T:"ytp-svg-volume-animation-big-ripple",Z:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"defs",V:[{W:"clipPath",Z:{id:"ytp-svg-volume-animation-mask"},V:[{W:"path",Z:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{W:"path",Z:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{W:"path",T:"ytp-svg-volume-animation-mover",Z:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{W:"clipPath",Z:{id:"ytp-svg-volume-animation-slash-mask"},V:[{W:"path",T:"ytp-svg-volume-animation-mover", Z:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{W:"path",EC:!0,A9:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],Z:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{W:"path",EC:!0,A9:["ytp-svg-fill","ytp-svg-volume-animation-hider"],Z:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.S=new g.XT(y);g.H(this,this.S);this.N=this.S.d7("ytp-svg-volume-animation-speaker");this.Hs=this.N.getAttribute("d");this.X=g.oh("ytp-svg-volume-animation-mover",this.S.element);this.B.A("delhi_modern_web_player_icons");this.j=g.oh("ytp-svg-volume-animation-hider",this.S.element);this.B.A("delhi_modern_web_player_icons");this.Rc=new PP;g.H(this,this.Rc);this.Bs=new PP;g.H(this,this.Bs);this.J(p,"appresize",this.w7);this.J(p,"onVolumeChange",this.onVolumeChange);p.A("delhi_modern_web_player")? this.listen("click",this.ac):this.listen("click",this.G);l.Ws?(p.A("delhi_modern_web_player")&&!p.A("delhi_modern_web_player_horizontal_volume_controls")&&(this.L=new Fko(p,a),this.L.lT(this.element),g.H(this,this.L),this.J(this.U,"mouseover",this.jl),this.J(this.U,"focus",this.jl),this.J(this.U,"mouseout",this.Ws),this.J(this.U,"blur",this.Ws)),l=p.A("delhi_modern_web_player")?this.U:this.element,this.addOnDisposeCallback(g.Qb(a.Py(),l))):jpZ(this);this.message=null;p.createClientVe(this.element, this,28662);this.w7(p.h9().getPlayerSize());this.setVolume(p.getVolume(),p.isMuted())}jl(){this.B.M7()||(this.updateValue("dataTooltipOffsetY",-120),this.L?.S(),this.L?.D())}Ws(){this.L?.U()}w7(p){this.visible=p.width>=300||!1;this.iM(this.visible);this.B.logVisibility(this.element,this.visible&&this.UO)}G(){this.B.O().Ws?this.B.isMuted()?this.B.unMute():this.B.mute():aA(this.message,this.element,!0);this.B.logClick(this.element)}ac(p){this.B.O().Ws&&this.L?p.target===this.U?this.B.M7()&&!this.L?.X()? this.L?.S():this.G():this.L?.S():this.G()}onVolumeChange(p){this.setVolume(p.volume,p.muted)}setVolume(p,a){var l=a?0:p/100;p=l===0?1:p>50?1:0;if(this.C!==p){const y=this.K;isNaN(y)?Jp$(this,p):hg(this.Rc,S=>{Jp$(this,y+(this.C-y)*S)},250); this.C=p}l=l===0?1:0;if(this.D!==l){const y=this.QY;isNaN(y)?vs(this,l):hg(this.Bs,S=>{vs(this,y+(this.D-y)*S)},250); this.D=l}kt$(this,a)}UC(p){super.UC(p);this.B.logVisibility(this.element,this.visible&&p)}},YdM=["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"],qdr=["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"],xP=18,F4=12,EO=22,Cl=12;g.Eyh=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-play-button","ytp-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},yY:"{{icon}}"});this.B=p;this.L=null;this.transition=new PP;this.tooltip=a.Py();g.H(this,this.transition);p.createClientVe(this.element,this,36842);p.logVisibility(this.element,!0);this.J(p,"fullscreentoggled",this.onVideoDataChange); this.J(p,"presentingplayerstatechange",this.onStateChange);this.J(p,"videodatachange",this.onVideoDataChange);this.cZ(p.getPlayerStateObject());this.listen("click",this.zd,this);this.addOnDisposeCallback(g.Qb(a.Py(),this.element))}onStateChange(p){this.cZ(p.state)}cZ(p){var a=g.aC(this.B.getVideoData());let l=!1;p.isOrWillBePlaying()?p=a?4:2:p.L(2)?(p=3,l=a):p=1;this.element.disabled=l;if(this.L!==p){a=null;switch(p){case 2:a=g.HB(this.B,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"}); break;case 3:a="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:a=g.HB(this.B,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:a="Detener reproducci\u00f3n en directo",this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n en directo"})}p===3?this.B.O().A("player_tooltip_data_title_killswitch")?this.update({title:a,icon:WL(this,p)}):this.update({"tooltip-title":a,icon:WL(this,p)}): (this.B.A("player_tooltip_data_title_killswitch")?this.update({title:a}):this.update({"tooltip-title":a}),(a=WL(this,p))&&this.L&&this.L!==3?uEM(this.transition,this.element,a):this.updateValue("icon",a));this.tooltip.yT();this.L=p}}onVideoDataChange(){g.OW(this.element,"ytp-play-button-playlist",g.jM(this.B))}zd(p){this.B.logClick(this.element);if(this.B.getPlayerStateObject().isOrWillBePlaying())this.B.pauseVideo();else{if(this.B.isMinimized()&&this.B.getPlayerStateObject().isCued()){const a={}; this.B.getVideoData()?.D&&(a.cttAuthInfo={token:this.B.getVideoData().D,videoId:this.B.getVideoData().videoId});JM("direct_playback",a);this.B.L0().timerName="direct_playback"}this.B.playVideo()}this.B.isMinimized()&&p?.type==="click"&&this.element.blur()}UC(p){super.UC(p)}};g.KZ=class extends g.t{constructor(p,a,l){super({W:"a",A9:[l?"ytp-next-button":"ytp-prev-button","ytp-button"],Z:{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}}"},V:[VDM(l,p.A("delhi_modern_web_player_icons"))]}); this.B=p;this.L=l;this.playlist=this.videoData=null;this.G=!1;this.j=this.X=this.S=null;this.U=!1;this.tooltip=a.Py();l?p.createClientVe(this.element,this,6193):p.createClientVe(this.element,this,6194);this.J(p,"fullscreentoggled",this.onVideoDataChange);this.J(p,"videodatachange",this.onVideoDataChange);this.J(p,"onPlaylistUpdate",this.onVideoDataChange);this.J(p,"onLoopRangeChange",this.onVideoDataChange);this.L||this.J(p,"appresize",this.D);this.J(p,"mdxpreviousnextchange",()=>{TH(this);this.D()}); this.onVideoDataChange()}onVideoDataChange(){tff(this);this.j&&(this.Kt(this.j),this.j=null);this.videoData=this.B.getVideoData(1);if(this.playlist=this.B.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.j=this.J(this.B,"progresssync",this.K);this.U=PTF(this);TH(this);this.D(this.B.h9().getPlayerSize())}D(p=this.B.h9().getPlayerSize()){var a=this.B.getLoopRange()?.type==="clips";const l=g.jM(this.B)||this.L&&g.WB(this.B)&&!this.B.A("web_hide_next_button")||LLh(this), y=!this.L&&p.width<400;p=this.B.A("delhi_modern_web_player_horizontal_volume_controls")&&p.width<640;a=l&&!a&&!y&&!p;this.iM(a);this.B.logVisibility(this.element,a)}onClick(p){this.B.logClick(this.element);let a=!0;this.G?a=g.NX(p,this.B):p.preventDefault();a&&(this.L&&this.B.getPresentingPlayerType()===5?this.B.publish("ytoprerollinternstitialnext"):this.L?(zR(this.B.L0()),this.B.publish("playlistnextbuttonclicked",this.element),this.B.nextVideo(!0)):this.U?this.B.seekTo(0):(zR(this.B.L0()),this.B.publish("playlistprevbuttonclicked", this.element),this.B.previousVideo(!0)))}K(){const p=PTF(this);p!==this.U&&(this.U=p,TH(this))}fz(){this.S&&(this.S(),this.S=null);tff(this);super.fz()}};var CIE=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-fine-scrubbing",V:[{W:"div",T:"ytp-fine-scrubbing-draggable",V:[{W:"div",T:"ytp-fine-scrubbing-thumbnails",Z:{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}}"}}]},{W:"div",Z:{"aria-hidden":"true"},T:"ytp-fine-scrubbing-cursor"},{W:"div", T:"ytp-fine-scrubbing-seek-time",Z:{"aria-hidden":"true"},yY:"{{seekTime}}"},{W:"div",T:"ytp-fine-scrubbing-play",V:[p.A("delhi_modern_web_player_icons")?t3():tW()],Z:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{W:"div",T:"ytp-fine-scrubbing-dismiss",V:[g.S4()],Z:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});this.api=p;this.X=this.d7("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.d7("ytp-fine-scrubbing-dismiss");this.Sl=this.d7("ytp-fine-scrubbing-draggable"); this.playButton=this.d7("ytp-fine-scrubbing-play");this.thumbnails=[];this.S=[];this.Hs=this.L=0;this.Ws=void 0;this.C=NaN;this.Rc=this.K=this.U=this.G=0;this.j=[];this.interval=this.frameCount=0;this.D=160;this.scale=1;this.ac=0;this.isEnabled=this.w7=!1;bJ(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Qb(a,this.dismissButton));this.addOnDisposeCallback(g.Qb(a,this.playButton));this.jl=new g.G$(this.Sl,!0);this.jl.subscribe("dragstart",this.Bs,this);this.jl.subscribe("dragmove",this.QY, this);this.jl.subscribe("dragend",this.Ic,this);this.J(p,"SEEK_COMPLETE",this.iT);p.A("web_fix_fine_scrubbing_false_play")&&this.J(p,"rootnodemousedown",l=>{this.N=l}); this.X.addEventListener("keydown",()=>{}); g.H(this,this.jl);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.X,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}Tm(p){this.Bs(p.pageX);this.QY(p.pageX+p.deltaX);li(this)}Bs(p){this.C=p-this.Hs}QY(p){p-=this.Hs;!isNaN(this.C)&&this.thumbnails.length>0&&(this.K=p-this.C,this.thumbnails.length>0&&this.K!==0&&(this.U=this.G+this.K,p=TWh(this,this.U),this.U<=this.L/2&&this.U>=AFE(this)?(this.api.seekTo(p, !1,void 0,void 0,25),g.VB(this.Sl,"transform",`translateX(${this.U-this.L/2}px)`),bJ(this,p)):this.U=this.G))}Ic(){this.N&&(this.N.dl=!0);var p=(0,g.h)()-this.ac<300;if(Math.abs(this.K)<5&&!p){this.ac=(0,g.h)();p=this.C+this.K;const a=this.L/2-p;this.Bs(p);this.QY(p+a);li(this);this.api.logClick(this.X)}li(this)}iT(){J8(this,this.api.getCurrentTime())}play(p){this.api.seekTo(TWh(this,this.U),void 0,void 0,void 0,26);this.api.playVideo();p&&this.api.logClick(this.playButton)}onExit(p){this.api.seekTo(this.Rc, void 0,void 0,void 0,63);this.api.playVideo();p&&this.api.logClick(this.dismissButton)}Cx(p,a){this.Hs=p;this.L=a;J8(this,this.api.getCurrentTime())}Ps(p){this.scale=p?1.5:1}enable(){this.isEnabled||(this.isEnabled=!0,this.Rc=this.api.getCurrentTime(),bJ(this,this.Rc),g.OW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Ws=this.J(this.element,"wheel",this.Tm),this.logVisibility(this.isEnabled))}disable(){this.isEnabled=!1;this.hide();g.OW(this.api.getRootNode(),"ytp-fine-scrubbing-enable", this.isEnabled);this.Ws&&this.Kt(this.Ws);this.logVisibility(this.isEnabled)}reset(){this.disable();this.j=[];this.w7=!1}logVisibility(p){this.api.logVisibility(this.element,p);this.api.logVisibility(this.X,p);this.api.logVisibility(this.dismissButton,p);this.api.logVisibility(this.playButton,p)}fz(){for(;this.S.length;)this.S.pop()?.dispose();super.fz()}},Yxv=class extends g.t{constructor(){super({W:"div",T:"ytp-fine-scrubbing-thumbnail"})}},qxO=class extends g.t{constructor(){super({W:"div",T:"ytp-fine-scrubbing-chapter-title", V:[{W:"div",T:"ytp-fine-scrubbing-chapter-title-content",yY:"{{chapterTitle}}"}]})}};var H1r=class extends g.t{constructor(p){super({W:"div",T:"ytp-heat-map-chapter",V:[{W:"svg",T:"ytp-heat-map-svg",Z:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{W:"defs",V:[{W:"clipPath",Z:{id:"{{id}}"},V:[{W:"path",T:"ytp-heat-map-path",Z:{d:"",fill:"white"}}]},{W:"linearGradient",Z:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{W:"stop",Z:{offset:"0%","stop-color":"white","stop-opacity":"1"}}, {W:"stop",Z:{offset:"100%","stop-color":"white","stop-opacity":"0"}}]}]},{W:"rect",T:"ytp-heat-map-graph",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{W:"rect",T:"ytp-heat-map-hover",Z:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{W:"rect",T:"ytp-heat-map-play",Z:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{W:"path",T:"ytp-modern-heat-map",Z:{d:"",fill:"url(#ytp-heat-map-gradient-def)", height:"100%",stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=p;this.G=this.d7("ytp-heat-map-svg");this.X=this.d7("ytp-heat-map-path");this.j=this.d7("ytp-heat-map-graph");this.D=this.d7("ytp-heat-map-play");this.L=this.d7("ytp-heat-map-hover");this.U=this.d7("ytp-modern-heat-map");this.Kh=!1;this.S=60;p=`${g.Oz(this)}`;this.update({id:p});p=`url(#${p})`;this.j.setAttribute("clip-path",p);this.D.setAttribute("clip-path",p);this.L.setAttribute("clip-path", p)}C(p){this.D.setAttribute("width",`${(p*100).toFixed(2)}%`)}K(p){this.L.setAttribute("width",`${(p*100).toFixed(2)}%`)}};var wlM=class extends g.t{constructor(){super({W:"div",T:"ytp-chapter-hover-container",V:[{W:"div",T:"ytp-progress-bar-padding"},{W:"div",T:"ytp-progress-list",V:[{W:"div",A9:["ytp-play-progress","ytp-swatch-background-color"]},{W:"div",T:"ytp-progress-linear-live-buffer"},{W:"div",T:"ytp-load-progress"},{W:"div",T:"ytp-hover-progress"},{W:"div",T:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.S=this.d7("ytp-progress-list");this.X=this.d7("ytp-progress-linear-live-buffer"); this.j=this.d7("ytp-ad-progress-list");this.D=this.d7("ytp-load-progress");this.G=this.d7("ytp-play-progress");this.U=this.d7("ytp-hover-progress");this.L=this.d7("ytp-chapter-hover-container")}Wa(p){return p==="PLAY_PROGRESS"?this.G:p==="LOAD_PROGRESS"?this.D:p==="LIVE_BUFFER"?this.X:this.U}};var vyM=class{constructor(){this.S=this.position=this.U=this.L=this.j=this.width=NaN}update(p,a,l=0,y=0){this.width=a;this.j=l;this.L=a-l-y;this.position=g.qx(p,l,l+this.L);this.U=this.position-l;this.S=this.U/this.L}};var gLE=class extends g.t{constructor(){super({W:"div",T:"ytp-timed-marker"});this.L=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}};g.KkZ=class extends g.et{constructor(p,a){super({W:"div",T:"ytp-progress-bar-container",Z:{"aria-disabled":"true"},V:[{W:"div",A9:["ytp-heat-map-container"],V:[{W:"div",T:"ytp-heat-map-edu"}]},{W:"div",A9:["ytp-progress-bar"],Z:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{W:"div",T:"ytp-chapters-container"},{W:"div",T:"ytp-timed-markers-container"},{W:"div", T:"ytp-clip-start-exclude"},{W:"div",T:"ytp-clip-end-exclude"},{W:"div",T:"ytp-scrubber-container",V:[{W:"div",A9:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{W:"div",T:"ytp-scrubber-pull-indicator"},{W:"img",A9:["ytp-decorated-scrubber-button"]}]}]}]},{W:"div",A9:["ytp-fine-scrubbing-container"],V:[{W:"div",T:"ytp-fine-scrubbing-edu"}]},{W:"div",T:"ytp-bound-time-left",yY:"{{boundTimeLeft}}"},{W:"div",T:"ytp-bound-time-right",yY:"{{boundTimeRight}}"},{W:"div",T:"ytp-clip-start",Z:{title:"{{clipstarttitle}}"}, yY:"{{clipstarticon}}"},{W:"div",T:"ytp-clip-end",Z:{title:"{{clipendtitle}}"},yY:"{{clipendicon}}"}]});this.api=p;this.zy=!1;this.r$=this.OU=this.Tm=this.jl=this.G=this.q0=0;this.L1=null;this.Me=!1;this.ac={};this.Ro={};this.clipEnd=Infinity;this.dG=this.d7("ytp-clip-end");this.tP=new g.G$(this.dG,!0);this.wq=this.d7("ytp-clip-end-exclude");this.ir=this.d7("ytp-clip-start-exclude");this.clipStart=0;this.Ba=this.d7("ytp-clip-start");this.OC=new g.G$(this.Ba,!0);this.N=this.NO=0;this.progressBar=this.d7("ytp-progress-bar"); this.Lx={};this.Ic={};this.iT=this.d7("ytp-chapters-container");this.QS=this.d7("ytp-timed-markers-container");this.L=[];this.K=[];this.UY={};this.dE=null;this.QY=-1;this.Fu=this.Bs=0;this.bf=this.C=null;this.DF=this.d7("ytp-scrubber-button");this.w7=this.d7("ytp-decorated-scrubber-button");this.sU=this.d7("ytp-scrubber-container");this.VY=new g.g3;this.Ye=0;this.d4=new vyM;this.U=new Tb(0,0);this.lM=null;this.D=this.OY=!1;this.g4=null;this.Sl=this.d7("ytp-heat-map-container");this.g$=this.d7("ytp-heat-map-edu"); this.j=[];this.heatMarkersDecorations=[];this.Ps=this.d7("ytp-fine-scrubbing-container");this.PZ=this.d7("ytp-fine-scrubbing-edu");this.S=void 0;this.Hs=this.tN=this.Rc=!1;this.tooltip=a.Py();this.addOnDisposeCallback(g.Qb(this.tooltip,this.dG));g.H(this,this.tP);this.tP.subscribe("hoverstart",this.Z1,this);this.tP.subscribe("hoverend",this.l_,this);this.J(this.dG,"click",this.zn);this.addOnDisposeCallback(g.Qb(this.tooltip,this.Ba));g.H(this,this.OC);this.OC.subscribe("hoverstart",this.Z1,this); this.OC.subscribe("hoverend",this.l_,this);this.J(this.Ba,"click",this.zn);rg$(this);this.J(p,"resize",this.Cx);this.J(p,"presentingplayerstatechange",this.s2);this.J(p,"videodatachange",this.d3);this.J(p,"videoplayerreset",this.lX);this.J(p,"cuerangesadded",this.yZ);this.J(p,"cuerangesremoved",this.Xv);this.J(p,"onLoopRangeChange",this.ej);this.J(p,"innertubeCommand",this.onClickCommand);this.J(p,"onRetroModeChanged",this.nC);this.J(p,g.tT("timedMarkerCueRange"),this.jo);this.J(p,"updatemarkervisibility", this.A3);this.J(p,"serverstitchedvideochange",this.Es);this.updateVideoData(p.getVideoData(),!0);this.ej(p.getLoopRange());a4(this)&&!this.S&&(this.S=new CIE(this.api,this.tooltip),p=g.fX(this.element).x||0,this.S.Cx(p,this.G),this.S.lT(this.Ps),g.H(this,this.S),this.J(this.S.dismissButton,"click",this.yu),this.J(this.S.playButton,"click",this.Wy),this.J(this.S.element,"dblclick",this.Wy));this.api.createClientVe(this.Sl,this,139609,!0);this.api.createClientVe(this.g$,this,140127,!0);this.api.createClientVe(this.PZ, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}A3(){var p=!1;const a=this.api.getVideoData();if(!a)return p;this.api.RX("timedMarkerCueRange");GW(this);for(const d of a.iT){var l=this.Ic[d]?.markerType,y=this.Ic[d]?.markers;if(!y)break;if(l==="MARKER_TYPE_TIMESTAMPS"){for(const G of y)p=new gLE,l=G,p.title=l.title?.simpleText||"",p.timeRangeStartMillis=Number(l.startMillis),p.L=Number(l.durationMillis),p.onActiveCommand=l.onActive?.innertubeCommand??void 0,qTr(this,p);d9(this, this.K);p=this.K;l=this.UY;var S=[],n=null;for(var V=0;VZ&&(n.end=Z);Z=Sj(Z,Z+z);S.push(Z);n=Z;l[Z.id]=p[V].onActiveCommand}}this.api.OE(S);a:{for(const G of y)if(G.sourceType==="SOURCE_TYPE_SMART_SKIP"){p=!1;break a}p=!0}p&&(this.dE=this.Ic[d]);p=!0}else if(l==="MARKER_TYPE_HEATMAP"){if((y=this.Ic[d])&&y.markers){l=y.markersMetadata?.heatmapMetadata?.minHeightDp??0;S=y.markersMetadata?.heatmapMetadata?.maxHeightDp?? 60;n=this.L.length;V=null;for(Z=0;Z=z&&w<=G&&B.push(c)}S>0&&(this.Sl.style.height=`${S}px`);Bnh(this.j[Z],B,l,S,Z===0);B.length>0&&(V=B[B.length-1])}g.sr(this)}l=[];if(y=y.markersDecoration?.timedMarkerDecorations)for(const G of y)l.push({visibleTimeRangeStartMillis:G.visibleTimeRangeStartMillis??-1,visibleTimeRangeEndMillis:G.visibleTimeRangeEndMillis?? -1,decorationTimeMillis:G.decorationTimeMillis??NaN,label:G.label?g.mQ(G.label):""});y=l;this.heatMarkersDecorations=y}}a.DY=this.K;g.OW(this.element,"ytp-timed-markers-enabled",p);return p}Cx(){g.sr(this);ra(this);d9(this,this.K);if(this.S){const p=g.fX(this.element).x||0;this.S.Cx(p,this.G)}}nC(){const p=this.api.getVideoData();p&&n0F(this,p)}onClickCommand(p){if(p=g.K(p,ha)){const a=p.key;p.isVisible&&a&&Bc(this,a)}}jo(p){g.v0(this.api,"innertubeCommand",this.UY[p.id])}rq(){ra(this);const p=this.api.getCurrentTime(); (pthis.clipEnd)&&this.zn()}TD(p){if(!p.defaultPrevented){let a=!1;switch(p.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);a=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);a=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);a=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);a=!0;break;case 38:this.api.A("enable_key_press_seek_logging")&&Dn(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);a=!0;break;case 40:this.api.A("enable_key_press_seek_logging")&&Dn(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),a=!0}a&&p.preventDefault()}}d3(p,a){this.updateVideoData(a,p==="newdata")}lX(){this.d3("newdata",this.api.getVideoData())}updateVideoData(p,a=!1){var l=!!p&&p.Kh();l&&(p.Ic()||y$(this)?this.OY=!1:this.OY=p.allowLiveDvr,g.OW(this.api.getRootNode(), "ytp-enable-live-buffer",!!p?.Ic()),n0F(this,p));B1(this,this.api.h$());if(a){if(l){a=p.clipEnd;this.clipStart=p.clipStart;this.clipEnd=a;dN(this);for(tD(this,this.N,this.NO);this.j.length>0;)this.j.pop().dispose();this.heatMarkersDecorations=[];this.Lx={};this.S?.reset();wa(this);g.OW(this.api.getRootNode(),"ytp-fine-scrubbing-exp",a4(this))}else this.zn();this.X()}if(p){a=this.lM?.type==="clips";if(l=!p.isLivePlayback){l=this.api.getVideoData();var y=g.yP(l);const V=G4r(l);l=y!=null||V!=null&&V.length> 0||l.Jv?.length>0}if(l&&!a){a=this.api.getVideoData();y=g.yP(a);l=!1;if(y?.markersMap){l=this.api.getVideoData();l.xC=y.visibleOnLoad?.key||l.xC;y=y.markersMap;for(var S of y)S.key&&S.value&&(this.Lx[S.key]=S.value,S.value.onChapterRepeat&&(l.Im=S.value.onChapterRepeat));l.xC!=null&&Bc(this,l.xC);l=!0}if(a.Jv?.length>0){S=g.lR.getState().entities;for(var n of a.Jv)if(y=yM(S,n)?.markersList,y?.markerType==="MARKER_TYPE_TIMESTAMPS"||y?.markerType==="MARKER_TYPE_HEATMAP")this.Ic[n]=y;l=this.A3()||l}!l&& (n=G4r(a))&&(Avo(this,n),a.UY=this.L,WdZ(this));DUZ(this,null);p.je&&this.j.length===0&&(p=p.je,n=p.key,p.isVisible&&n&&Bc(this,n))}else rg$(this),GW(this)}ra(this)}s2(p){this.C&&!p.state.L(32)&&this.api.getPresentingPlayerType()!==3&&this.C.cancel();this.S?.isEnabled&&p.state.L(8)&&this.api.pauseVideo();p=this.api.getPresentingPlayerType()===2||!this.api.h$()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.OW(this.DF,"ytp-hide-scrubber-button",p)}ej(p){const a=!!this.lM!==!!p,l= this.lM;this.lM=p;DUZ(this,l);p?.type!=="clips"&&p||(p?(this.updateValue("clipstarticon",AAr()),this.updateValue("clipendicon",AAr()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Qsr()),this.updateValue("clipendicon",Q8F()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),a&&(this.updateVideoData(this.api.getVideoData(),!0),g.sr(this)),dN(this));tD(this,this.N, this.NO)}HG(){this.api.publish("progressBarHoverStart")}kf(p,a,l){var y=g.fX(this.element),S=O6(this).L;const n=l?l.getAttribute("data-tooltip"):void 0;var V=l?l.getAttribute("data-position"):void 0,Z=l?l.getAttribute("data-offset-y"):void 0;Z=Z?Number(Z):0;V&&(p=kS(this.U,Number(l.getAttribute("data-position")),0)*S+g.fX(this.progressBar).x);this.VY.x=p-y.x;this.VY.y=a-y.y;p=O6(this);y=$R(this,p);a=0;this.api.getVideoData()?.Ic()&&((a=this.api.getProgressState().seekableEnd)&&y>a&&(y=a,p.position= kS(this.U,a)*O6(this).L),a=this.U.S);y$(this)&&(a=this.U.S);a=n||g.iH(this.OY?y-this.U.L:y-a);l=p.position+this.q0;y-=this.api.oo();if(!this.S?.isEnabled)if(this.api.XG()){if(this.L.length>1){S=MT(this,this.VY.x,!0);if(!this.lM)for(V=0;V1)for(V=0;V0){S=this.VY.x;for(var z of this.K)V=Mr(this,z.timeRangeStartMillis/(this.U.L* 1E3),O6(this)),g.OW(z.element,"ytp-timed-marker-hover",V<=S&&V+6>=S)}S=this.tooltip.scale;z=this.api.A("delhi_modern_web_player")?67:45;Z=(isNaN(Z)?0:Z)-z*S;this.api.A("web_key_moments_markers")?this.dE?(z=eBA(this.K,y*1E3),z=z!=null?this.K[z].title:""):(z=ES(this.L,y*1E3),z=this.L[z].title):(z=ES(this.L,y*1E3),z=this.L[z].title);z||(Z+=16*S);this.tooltip.scale===.6&&(g.p8(this.api.O())?(Z=this.api.h9().getPlayerSize().height-225,S=this.api.A("delhi_modern_web_player")?70:110,Z=z?Z+S:Z+S+16):Z=z? 110:126);S=ES(this.L,y*1E3);this.QY=wL$(this,y,S)?S:wL$(this,y,S+1)?S+1:-1;g.OW(this.api.getRootNode(),"ytp-progress-bar-snap",this.QY!==-1&&this.L.length>1);S=!1;for(var d of this.heatMarkersDecorations)V=y*1E3,V>=d.visibleTimeRangeStartMillis&&V<=d.visibleTimeRangeEndMillis&&(z=d.label,a=g.iH(d.decorationTimeMillis/1E3),this.api.A("web_heat_marker_use_current_time")&&(a=g.iH($R(this,p))),S=!0);this.tN!==S&&(this.tN=S,this.api.logVisibility(this.g$,this.tN));g.OW(this.api.getRootNode(),"ytp-progress-bar-decoration", S);d=160*this.tooltip.scale*2;S=z.length*(this.D?8.55:5.7);S=S<=d?S:d;V=S<160*this.tooltip.scale;d=3;!V&&S/2>p.position&&(d=1);!V&&S/2>this.G-p.position&&(d=2);this.api.O().G&&(Z-=10);this.j.length&&this.j[0].Kh&&(Z-=14*(this.D?2:1),this.Rc||(this.Rc=!0,this.api.logVisibility(this.Sl,this.Rc)));a4(this)&&(this.S?.isEnabled||this.Tm>0)&&(Z-=this.S?.isEnabled?(this.D?135:90)-this.jl:this.Tm);p=void 0;a4(this)&&!this.api.A("web_player_hide_fine_scrubbing_edu")&&(p="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas", this.Hs||(this.Hs=!0,this.api.logVisibility(this.PZ,this.Hs)));this.tooltip.AY(l,y,a,!!n,Z,z,d,p)}else this.tooltip.AY(l,y,a,!!n,Z);g.XX(this.api.getRootNode(),"ytp-progress-bar-hover");hLE(this)}R7(){this.X();g.BM(this.api.getRootNode(),"ytp-progress-bar-hover");this.Rc&&(this.Rc=!1,this.api.logVisibility(this.Sl,this.Rc));this.Hs&&(this.Hs=!1,this.api.logVisibility(this.PZ,this.Hs));this.api.A("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}Ao(p, a){const l=g.fX(this.element);this.Ye=p-l.x;a4(this)&&this.S&&(this.S.w7?J8(this.S,this.api.getCurrentTime()):ePf(this.S),this.S.show(),g.OW(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.S.isEnabled));this.L1&&(this.L1.dispose(),this.L1=null);this.OU=a;this.r$=this.api.getCurrentTime();this.L.length>1&&this.QY!==-1?this.api.seekTo(this.L[this.QY].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo($R(this,O6(this)),!1,void 0,void 0,7);g.XX(this.element,"ytp-drag");(this.zy=this.api.getPlayerStateObject().isOrWillBePlaying())&& this.api.pauseVideo()}vG(){if(a4(this)&&this.S){var p=(this.D?135:90)-this.jl;this.Tm>=p*.5?(this.S.enable(),J8(this.S,this.api.getCurrentTime()),zo$(this,p)):wa(this)}if(this.api.getPlayerStateObject().L(32)||this.api.getPresentingPlayerType()===3)if(this.S?.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.L.length>1&&this.QY!==-1)this.api.A("html5_enable_progress_bar_slide_seek_logging")&&Dn(this,this.r$,this.L[this.QY].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.L[this.QY].startTime/1E3,void 0,void 0,void 0,7);else{p=$R(this,O6(this));this.api.A("html5_enable_progress_bar_slide_seek_logging")&&Dn(this,this.r$,p,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(p,void 0,void 0,void 0,7);for(const a of this.heatMarkersDecorations)p*1E3>=a.visibleTimeRangeStartMillis&&p*1E3<=a.visibleTimeRangeEndMillis&&this.api.logClick(this.g$)}g.BM(this.element, "ytp-drag");this.Ws&&(this.w7.src=this.Ws);this.zy&&!this.api.getPlayerStateObject().L(2)&&this.api.playVideo()}}GM(p,a){const l=O6(this),y=$R(this,l);this.api.h9().s9||(l.position>this.Ye+2?this.Kx&&(this.w7.src=this.Kx):l.position{const S=g.fX(this.element).x||0;this.Ye=p-S},150)); this.api.seekTo(y,!1,void 0,void 0,7);a4(this)&&this.S?.w7&&(J8(this.S,y),this.S.isEnabled||(this.Tm=g.qx(this.OU-a-10,0,(this.D?135:90)-this.jl),zo$(this,this.Tm)))}X(){this.tooltip.r0()}Z1(){this.lM||(this.updateValue("clipstarticon",T3O()),this.updateValue("clipendicon",T3O()),g.XX(this.element,"ytp-clip-hover"))}l_(){this.lM||(this.updateValue("clipstarticon",Qsr()),this.updateValue("clipendicon",Q8F()),g.BM(this.element,"ytp-clip-hover"))}zn(){this.clipStart=0;this.clipEnd=Infinity;dN(this); tD(this,this.N,this.NO)}yZ(p){for(const a of p)if(a.visible){if(p=a.getId(),!this.ac[p]){const l=g.HA("DIV");a.tooltip&&l.setAttribute("data-tooltip",a.tooltip);this.ac[p]=a;this.Ro[p]=l;g.rn(l,a.style);WJr(this,p);this.api.O().A("disable_ad_markers_on_content_progress_bar")||this.L[0].j.appendChild(l)}}else c3(this,a)}Xv(p){for(const a of p)c3(this,a)}yu(p){this.S&&(this.S.onExit(p!=null),wa(this))}Wy(p){this.S&&(this.S.play(p!=null),wa(this))}Es(){B1(this,this.api.h$())}fz(){B1(this,!1);super.fz()}Dd(){return this.S}};var eF$=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-remote-button","ytp-button"],Z:{title:p.A("player_tooltip_data_title_killswitch")?"Ver en la televisi\u00f3n":"","data-tooltip-title":"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},yY:"{{icon}}"});this.B=p;this.U6=a;this.L=null;this.J(p,"onMdxReceiversChange",this.J9);this.J(p,"presentingplayerstatechange",this.J9);this.J(p,"appresize",this.J9);p.createClientVe(this.element,this,139118);this.J9();this.listen("click", this.S,this);Wc(p,this.element,this)}isActive(){return!!this.B.getOption("remote","casting")}J9(){var p=!1;this.B.getOptions().includes("remote")&&(p=this.B.getOption("remote","receivers").length>1);this.iM(p&&this.B.h9().getPlayerSize().width>=400);this.B.logVisibility(this.element,this.yQ);let a=1;p&&this.isActive()&&(a=2);if(this.L!==a){this.L=a;p=this.B.A("delhi_modern_web_player_icons");switch(a){case 1:this.updateValue("icon",p?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"}, V:[{W:"path",Z:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",EC:!0,Z:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", p?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.rrE())}g.OW(this.element,"ytp-remote-button-active",this.isActive())}}S(){if(this.B.getOption("remote","quickCast"))this.B.setOption("remote","quickCast",!0);else{var p=this.U6,a=this.element;if(p.Gf())p.ke();else{p.initialize();a:{for(l of p.wP.items)if(l.priority===1)break a;var l=null}l&&(l.open(),p.zR(a));p.zR(a)}}this.B.logClick(this.element)}};var bbE=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-button","ytp-settings-button"],Z:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":T4(),title:p.A("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},V:[p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.Pl()]});this.B=p;this.U6=a;this.S=!0;this.listen("click",this.U);this.J(p,"onPlaybackQualityChange",this.updateBadge);this.J(p,"videodatachange",this.updateBadge);this.J(p,"webglsettingschanged",this.updateBadge);this.J(p,"appresize",this.L);Wc(p,this.element,this);this.B.createClientVe(this.element,this,28663);this.updateBadge();this.L(p.h9().getPlayerSize())}L(p){const a=this.B.O();let l=400;a.D?l=300:a.G&&(l=200);p=this.S&&p.width>=l;this.iM(p);this.B.logVisibility(this.element, p)}U(){if(this.U6.yQ)this.U6.ke();else{const p=g.t9(this.B.DN());p&&!p.loaded&&(p.Yg("tracklist",{includeAsr:!0}).length||p.load());this.B.logClick(this.element);this.U6.zR(this.element)}}updateBadge(){const p=this.B.isHdr();var a=this.B.getPresentingPlayerType(),l=a!==2&&a!==3,y=g.SH(this.B),S=l&&!!g.cc(this.B.DN());a=S&&y.displayMode===1;y=S&&y.displayMode===2;l=(S=a||y)||!l?null:this.B.getPlaybackQuality();g.OW(this.element,"ytp-hdr-quality-badge",p);g.OW(this.element,"ytp-hd-quality-badge",!p&& (l==="hd1080"||l==="hd1440"));g.OW(this.element,"ytp-4k-quality-badge",!p&&l==="hd2160");g.OW(this.element,"ytp-5k-quality-badge",!p&&l==="hd2880");g.OW(this.element,"ytp-8k-quality-badge",!p&&l==="highres");g.OW(this.element,"ytp-3d-badge-grey",!p&&S&&a);g.OW(this.element,"ytp-3d-badge",!p&&S&&y)}};var Ige=class extends g.wz{constructor(p,a,l){super("Pista de audio",g.Jc.AUDIO,p,a);this.B=p;this.X=l;this.tracks={};g.XX(this.element,"ytp-audio-menu-item");this.countLabel=new g.t({W:"div",V:[{W:"span",yY:"Pista de audio"},{W:"span",T:"ytp-menuitem-label-count",yY:"{{content}}"}]});p.A("web_settings_menu_icons")&&!this.B.A("html5_enable_new_audio_settings_menu")&&(a=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:F0M(),this.setIcon(a));g.H(this,this.countLabel);g.Pz(this,this.countLabel);this.B.A("html5_enable_audio_ve_logging")&&(p.createClientVe(this.element,this,273318),this.listen("click",this.onClick));this.J(p,"videodatachange",this.J9);this.J(p,"onPlaybackAudioChange",this.J9);this.J9()}J9(){var p=this.B.getAvailableAudioTracks();p.length>1?(this.j(g.Nx(p,this.G)),this.tracks=g.Rr(p,this.G,this),this.countLabel.setContent(p.length?` (${p.length})`:""),this.publish("size-change"),p= this.G(this.B.getAudioTrack()),this.S(p),this.B.A("html5_enable_new_audio_settings_menu")&&this.X?.e6(p.toString()),this.enable(!0)):(this.B.A("html5_enable_new_audio_settings_menu")&&this.X?.e6(""),this.enable(!1))}L(p){super.L(p);this.B.setAudioTrack(this.tracks[p]);this.U6.y4()}G(p){return p.toString()}D(p){this.B.A("html5_enable_new_audio_settings_menu")?this.X&&(p?this.X.Su(this):this.X.RM(this)):super.D(p)}onClick(){this.B.logClick(this.element)}};var RFM=class extends g.yz{constructor(p,a){super(g.kE({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.Jc.qh);this.B=p;this.U6=a;g.XX(this.element,"ytp-audio-settings-menu-item");this.o4=new g.cP(p,void 0,"Audio");this.countLabel=new g.t({W:"div",V:[{W:"span",yY:"Audio"},{W:"span",T:"ytp-menuitem-label-count",yY:"{{content}}"}]});p.A("web_settings_menu_icons")&&this.setIcon({W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.MS=new Ige(p,this.U6,this);g.H(this,this.MS);this.J(p,"settingsMenuInitialized",this.q2.bind(this));this.J(p,"videodatachange",this.q2.bind(this));g.H(this,this.countLabel);g.Pz(this,this.countLabel);this.U6.Su(this);this.J(p,"onPlaybackAudioChange",this.pC);this.listen("keydown",this.TD);this.listen("click",this.open)}pC(){this.B.pC()}open(){this.o4.hk()>0&&g.Go(this.U6,this.o4)}q2(){this.o4.hk()>0&&this.B.getPresentingPlayerType()!==2&&this.B.getPresentingPlayerType()!==3? this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}TD(p){p.defaultPrevented||(this.open(),p.preventDefault())}Su(p){this.o4.Su(p)}RM(p){this.o4.RM(p)}e6(p){this.setContent(p)}};var uyf=class extends pZ{constructor(p,a){super("Reproducci\u00f3n autom\u00e1tica",g.Jc.z1);this.B=p;this.U6=a;this.S=!1;this.U=[];this.J(p,"presentingplayerstatechange",this.q2);this.subscribe("select",this.onSelect,this);p.createClientVe(this.element,this,113682);this.q2()}q2(){var p=this.B.getPresentingPlayerType();if(p!==2&&p!==3&&g.WB(this.B))this.S||(this.U6.Su(this),this.S=!0,this.U.push(this.J(this.B,"videodatachange",this.q2)),this.U.push(this.J(this.B,"videoplayerreset",this.q2)),this.U.push(this.J(this.B, "onPlaylistUpdate",this.q2)),this.U.push(this.J(this.B,"autonavchange",this.j)),p=this.B.getVideoData(),this.j(p.autonavState),this.B.logVisibility(this.element,this.S));else if(this.S){this.U6.RM(this);this.S=!1;for(const a of this.U)this.Kt(a)}}j(p){this.L(p!==1)}onSelect(p){this.B.x_(p?2:1);this.S&&(this.B.logVisibility(this.element,this.S),this.B.logClick(this.element))}fz(){this.S&&this.U6.RM(this);super.fz()}};var Obe=class extends g.yz{constructor(p,a){super(g.kE({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.B=p;this.U6=a;this.J(this.element,"click",this.onClick);this.U6.Su(this)}onClick(p){p.preventDefault();g.HJ(this.B)?.GD()?.ke();g.HJ(this.B)?.LD()?.zR(p.target)}};var kCF=class extends g.wz{constructor(p,a){let l;g.p8(p.O())&&(l={W:"div",T:"ytp-panel-footer-content",V:[{W:"span",yY:"Ajusta la calidad de descarga desde tu "},{W:"a",T:"ytp-panel-footer-content-link",yY:"Configuraci\u00f3n",Z:{href:"/account_downloads"}}]});super("Calidad",g.Jc.UX,p,a,void 0,void 0,l);this.B=p;this.Rc={};this.jl={};this.G={};this.ac=new Set;this.X=this.N=!1;this.Sl="unknown";this.w7="";this.Bs=new g.GV;g.H(this,this.Bs);this.N=this.B.A("web_player_use_new_api_for_quality_pullback"); this.X=this.B.A("web_player_enable_premium_hbr_playback_cap");p.A("web_settings_menu_icons")&&(a=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(a));g.XX(this.o4.element,"ytp-quality-menu");this.J(p,"videodatachange",this.q2);this.J(p,"videoplayerreset",this.q2);this.J(p,"onPlaybackQualityChange",this.Hs);this.q2();p.createClientVe(this.element,this,137721)}q2(){var p= this.B.getPresentingPlayerType();if(p!==2&&p!==3){this.Rc=this.B.oD();p=this.B.getAvailableQualityLevels();if(this.X){this.G={};var a=g.xe(this.B,"getAvailableQualityData",[]);for(var l of a)this.G[l.qualityLabel]=l;a=Object.keys(this.G);p[p.length-1]==="auto"&&a.push("auto");this.ac=new Set(p)}else if(this.N){l=g.xe(this.B,"getAvailableQualityData",[]);var y=[];for(a of l)this.jl[a.quality]=a,a.quality&&y.push(a.quality);p[p.length-1]==="auto"&&y.push("auto");a=y}else a=p;g.KRr(this.B)&&this.B.Qu()&& a.unshift("missing-qualities");{y=this.B.app.zm();const S=y.getVideoData();!S.S||!S.S.video||S.S.video.qualityOrdinal<1080||S.QW?p=!1:(p=/^qsa/.test(S.clientPlaybackNonce),l="r",S.S.id.indexOf(";")>=0&&(p=/^[a-p]/.test(S.clientPlaybackNonce),l="x"),p?(y.Xu("iqss",{trigger:l},!0),p=!0):p=!1)}p&&a.unshift("inline-survey");this.j(a);p=this.B.getVideoData().cotn?!0:!1;l=this.Bs.Bl();eDq(this,W4$(this.B.O(),p,l));if(a.length){this.Hs();this.enable(!0);return}}this.enable(!1)}Hs(){if(this.X){var p=this.B.getPreferredQuality(); this.ac.has(p)&&(this.Sl=this.B.getPlaybackQuality(),this.w7=this.B.getPlaybackQualityLabel(),p==="auto"?(this.S(p),this.setContent(this.U(p))):this.S(this.w7))}else p=this.B.getPreferredQuality(),this.options[p]&&(this.Sl=this.B.getPlaybackQuality(),this.S(p),p==="auto"&&this.setContent(this.U(p)))}L(p){if(p!=="missing-qualities"){super.L(p);var a=this.X?this.G[p]:this.jl[p];var l=a?.quality,y=a?.formatId;a=a?.paygatedQualityDetails;var S=a?.endpoint;a&&this.B.logClick(this.options[p]?.element); if(this.X){if(g.K(S,g.SR)?.popup?.notificationActionRenderer)g.v0(this.B,"innertubeCommand",S);else if(S){g.v0(this.B,"innertubeCommand",S);return}y?this.B.setPlaybackQuality(l,y):this.B.setPlaybackQuality(l)}else{if(this.N)if(g.K(S,g.SR)?.popup?.notificationActionRenderer)g.v0(this.B,"innertubeCommand",S);else if(S){g.v0(this.B,"innertubeCommand",S);return}this.B.setPlaybackQuality(p)}this.U6.ke();this.q2()}}open(){for(const p of Object.values(this.options))this.B.hasVe(p?.element)&&this.B.logVisibility(p?.element, !0);super.open();this.B.logClick(this.element)}C(p,a,l){if(p==="missing-qualities")return new g.yz({W:"a",A9:["ytp-menuitem"],Z:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.B.O().C,tabindex:"0",role:"menuitemradio"},V:[{W:"div",A9:["ytp-menuitem-label"],yY:"{{label}}"}]},a,this.U(p));if(p!=="inline-survey"){var y=(this.X?this.G[p]:this.jl[p])?.paygatedQualityDetails,S=y?.veType;y=y?.trackingParams;a=super.C(p,a,l);y?(this.B.createServerVe(a.element,this,!0),this.B.setTrackingParams(a.element, y)):S&&this.B.createClientVe(a.element,this,S,!0);return a}S=[{W:"span",yY:"\u00bfSe ve bien?"}];for(const n of[!0,!1])p=new g.t({W:"span",T:"ytp-menuitem-inline-survey-response",V:[n?vJr():KnA()],Z:{tabindex:"0",role:"button"}}),p.listen("click",()=>{const V=this.B.app.zm();V.Xu("iqsr",{tu:n});V.getVideoData().QW=!0;this.U6.ke();this.q2()}),S.push(p); return new g.yz({W:"div",T:"ytp-menuitem",Z:{"aria-disabled":"true"},V:[{W:"div",A9:["ytp-menuitem-label"],V:S}]},a)}U(p,a=!1){if(p==="missing-qualities")return{W:"div",yY:"\u00bfFalta alguna opci\u00f3n?"};if(p==="inline-survey")return"";this.X||g.DK(g.VIo,p);let l;l=this.N||this.X?[uu(this,p,a,!1)]:[sWq(this,p)];const y=this.B.getPreferredQuality();a||y!=="auto"||p!=="auto"||(l.push(" "),this.X?l.push(uu(this,this.w7,a,!0,["ytp-menu-label-secondary"])):this.N?l.push(uu(this,this.Sl,a,!0,["ytp-menu-label-secondary"])): l.push(sWq(this,this.Sl,["ytp-menu-label-secondary"])));return{W:"div",V:l}}};var MLq=class extends XIE{constructor(p){super(p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],.05,p.getPlaybackRate(),{W:"div",T:"ytp-speedslider-indicator-container",V:[{W:"div",T:"ytp-speedslider-badge"},{W:"p",T:"ytp-speedslider-text"}]});this.B=p;this.C=en(this.Sl,50,this);g.XX(this.S,"ytp-speedslider");this.K=this.d7("ytp-speedslider-text");this.N=this.d7("ytp-speedslider-badge");e1(this);this.J(this.S,"change",this.jl)}U(){super.U();this.K&& e1(this)}jl(){this.C()}Sl(){this.B.setPlaybackRate(this.L,!0)}D(p){super.D(p);this.C();e1(this);p.preventDefault()}};var mIq=class extends g.t{constructor(p,a,l){super({W:"div",T:"ytp-slider-section",Z:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{W:"div",T:"ytp-slider",V:[{W:"div",T:"ytp-slider-handle"}]}]});this.K=.05;this.U=p;this.j=a;this.range=this.j-this.U;this.QY=this.d7("ytp-slider-section");this.X=this.d7("ytp-slider");this.jl=this.d7("ytp-slider-handle");this.G=new g.G$(this.X,!0);this.L=l? l:p;g.H(this,this.G);this.G.subscribe("dragmove",this.N,this);this.J(this.element,"keydown",this.Sl);this.J(this.element,"wheel",this.C);this.init()}init(){this.S(this.L);this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.j)}Sl(p){if(!p.defaultPrevented){switch(p.keyCode){case 37:case 40:var a=-this.K;break;case 39:case 38:a=this.K;break;default:return}this.S(this.L+a);p.preventDefault()}}C(p){let a=this.L;a+=(p.deltaX||-p.deltaY)<0?-.05:.05;this.S(a);p.preventDefault()}N(p){p=(p- g.fX(this.X).x)/150*this.range+this.U;this.S(p)}S(p,a=""){p=g.qx(p,this.U,this.j);a===""&&(a=p.toString());this.updateValue("valuenow",p);this.updateValue("valuetext",a);this.jl.style.left=`${(p-this.U)/this.range*130}px`;this.L=p}focus(){this.QY.focus()}};var tLF=class extends mIq{constructor(p){super(p.getAvailablePlaybackRates()[0],p.getAvailablePlaybackRates()[p.getAvailablePlaybackRates().length-1],p.getPlaybackRate());this.B=p;this.D=g.HA("P");this.Ws=en(this.w7,50,this);g.XX(this.X,"ytp-speedslider");g.XX(this.D,"ytp-speedslider-text");p=this.D;var a=this.X;a.parentNode&&a.parentNode.insertBefore(p,a.nextSibling);JL(this);this.J(this.B,"onPlaybackRateChange",this.updateValues)}w7(){this.B.setPlaybackRate(this.L,!0)}S(p){super.S(p,JX(this,p).toString()); this.D&&(JL(this),this.Ws())}updateValues(){const p=this.B.getPlaybackRate();JX(this,this.L)!==p&&(this.S(p),JL(this))}};var jur=class extends g.et{constructor(p){super({W:"div",T:"ytp-speedslider-component"});p.A("web_settings_use_input_slider")?this.L=new MLq(p):this.L=new tLF(p);g.H(this,this.L);this.element.appendChild(this.L.element)}focus(){this.L.focus()}};var WkA=class extends BP{constructor(p){const a=new jur(p);super(p,a,"Personalizada");g.H(this,a)}};var Hbr=class extends g.wz{constructor(p,a){const l=new WkA(p);super("Velocidad de reproducci\u00f3n",g.Jc.y6,p,a,FL(p)?void 0:"Personalizada",FL(p)?void 0:()=>{g.Go(a,l)}); this.jl=new g.t({W:"div",T:"ytp-menuitem-premium-badge",Z:{"aria-label":"Premium"}});this.N=!1;g.H(this,l);this.w7=new MLq(p);g.H(this,this.w7);if(p.A("web_settings_menu_icons")){const y=p.A("delhi_modern_web_player_icons")?{W:"svg",Z:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z"}}]}: {W:"svg",Z:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{W:"path",Z:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",fill:"white"}}]}; this.setIcon(y)}this.B=p;this.N=!1;this.Hs=null;FL(p)?(this.X=g.L$("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.B.getPlaybackRate().toString()}),this.Sl=this.B.getPlaybackRate()):this.Sl=this.X=null;g.H(this,this.jl);this.Rc=this.B.getVideoData()?.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.showPlaybackRateUpsellPanelCommand;hIF(p,this.Rc)?(this.G=FK(4),this.B.createClientVe(this.jl.element,this,273508)):this.G=null;this.Bs=this.B.getAvailablePlaybackRates(); this.J(p,"presentingplayerstatechange",this.J9);this.B.getVideoData()?.nh()&&this.J(p,"serverstitchedvideochange",this.J9);this.J(this.w7.S,"change",()=>{this.N=!0;this.J9()}); this.J9()}U(p){return p==="1"?"Normal":p.toLocaleString()}J9(){var p=this.B.getVideoData()?.nh();p=this.B.getPresentingPlayerType(p);this.enable(p!==2&&p!==3);FqM(this)}j(p){super.j(p);this.w7&&this.w7.S.focus()}D(p){super.D(p);p?(this.Hs=this.J(this.B,"onPlaybackRateChange",this.onPlaybackRateChange),FqM(this),EW(this,this.B.getPlaybackRate())):(this.Kt(this.Hs),this.Hs=null)}onPlaybackRateChange(p){const a=this.B.getPlaybackRate();!this.N&&this.Bs.includes(a)||xlM(this,a);EW(this,p)}C(p,a,l){return p=== this.X&&Yk(this.B)?super.C(p,a,l,{W:"div",T:"ytp-speed-slider-menu-footer",V:[this.w7]}):p===this.G&&hIF(this.B,this.Rc)?ZWr(this,p,a,l):super.C(p,a,l)}L(p){super.L(p);p===this.G?(this.B.logClick(this.jl.element),g.v0(this.B,"innertubeCommand",this.Rc)):p===this.X?this.B.setPlaybackRate(this.Sl,!0):this.B.setPlaybackRate(Number(p),!0);(!Yk(this.B)||p!==this.X&&p!==this.G)&&this.U6.y4()}QY(p){const a=p===this.X;this.N=!1;a&&FL(this.B)&&!Yk(this.B)?(p=new WkA(this.B),g.Go(this.U6,p)):super.QY(p)}};var DIe=class extends g.wz{constructor(p,a,l,y){const S=new g.cP(a,void 0,"Anulaci\u00f3n de v\u00eddeo");super(y.text||"",p,a,l,"Anulaci\u00f3n de v\u00eddeo",()=>{g.Go(l,S)}); g.XX(this.element,"ytp-subtitles-options-menu-item");this.setting=y.option.toString();p=y.options;this.settings=g.Rr(p,this.Sl,this);this.N=S;g.H(this,this.N);a=new g.yz({W:"div",T:"ytp-menuitemtitle",yY:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.H(this,a);this.N.Su(a,!0);this.G=new g.yz({W:"div",T:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{W:"div",T:"ytp-menuitem-label",yY:"Activado"}]},-1);g.H(this,this.G);this.N.Su(this.G,!0);this.J(this.G.element, "click",()=>{Nsq(this,!0)}); this.X=new g.yz({W:"div",T:"ytp-menuitem",Z:{role:"menuitemradio",tabindex:"0"},V:[{W:"div",T:"ytp-menuitem-label",yY:"No"}]},-2);g.H(this,this.X);this.N.Su(this.X,!0);this.J(this.X.element,"click",()=>{Nsq(this,!1)}); this.j(g.Nx(p,this.Sl))}S(p){super.S(p)}Sl(p){return p.option.toString()}getOption(p){return this.settings[p]}U(p){return this.getOption(p).text||""}L(p){super.L(p);this.publish("settingChange",this.setting,this.settings[p].option)}};var ib$=class extends g.cP{constructor(p,a){super(p,void 0,"Opciones");this.UG={};for(let l=0;l{this.po("reset",!0)}); this.Su(p,!0)}B9(p){for(const a of Object.keys(p)){const l=this.UG[a];if(l){const y=p[a].toString(),S=!!p[`${a}Override`];l.options[y]&&(l.S(y),l.G.element.setAttribute("aria-checked",String(!S)),l.X.element.setAttribute("aria-checked",String(S)))}}}po(p,a){this.publish("settingChange",p,a)}};var TZo=class extends g.wz{constructor(p,a){super("Traducir autom\u00e1ticamente",0,p,a);this.B=p;this.languages={};p.createClientVe(this.element,this,127301);p.logVisibility(this.element,!0)}X(p){return p.languageCode}U(p){return this.languages[p].languageName||""}L(p){this.publish("select",p);this.B.logClick(this.element);g.dR(this.U6)}};var NZZ=class extends g.wz{constructor(p,a){const l=new ib$(p,a),y=["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 S;g.p8(p.O())&&(S={W:"div",T:"ytp-panel-footer-content",V:[{W:"span",yY:y[0]},{W:"a",T:"ytp-panel-footer-content-link",yY:"Configuraci\u00f3n",Z:{href:"/account_playback"}},{W:"span",yY:y[1]}]});super("Subt\u00edtulos",g.Jc.SUBTITLES,p,a,"Opciones",()=>{g.Go(a,l)},S); this.B=p;this.U6=a;this.tracks={};this.jl=new g.SF(()=>{we$(this,!1)},3E3); g.H(this,this.jl);this.countLabel=new g.t({W:"div",V:[{W:"span",yY:"Subt\u00edtulos"},{W:"span",T:"ytp-menuitem-label-count",yY:"{{content}}"}]});g.H(this,this.countLabel);g.Pz(this,this.countLabel);p.A("web_settings_menu_icons")&&this.setIcon(ipv(p.A("delhi_modern_web_player_icons")));this.X=new TZo(p,a);g.H(this,this.X);this.X.subscribe("select",this.w7,this);this.Sl=l;g.H(this,this.Sl);this.Sl.subscribe("settingChange",this.po,this);a.subscribe("show",this.Bs,this);this.J(p,"videodatachange",this.J9); this.J(p,"onApiChange",this.J9);this.J(p,"onCaptionsTrackListChanged",this.J9);this.J(p,"captionschanged",this.J9);p.createClientVe(this.element,this,127300);this.J9()}G(p){return g.P6(p)?"__off__":p.displayName}U(p){return p==="__off__"?"Desactivados":p==="__translate__"?"Traducir autom\u00e1ticamente":p==="__contribute__"?"A\u00f1adir subt\u00edtulos":p==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(p==="__off__"?{}:this.tracks[p]).displayName}L(p){p==="__translate__"?this.X.open(): p==="__contribute__"?(this.B.pauseVideo(),this.B.isFullscreen()&&this.B.toggleFullscreen(),p=g.o9(this.B.O(),this.B.getVideoData()),g.Dv(p)):p==="__correction__"?(this.B.pauseVideo(),this.B.isFullscreen()&&this.B.toggleFullscreen(),p=Qv(this),RF(this,p),super.L(this.G(p)),p=this.B.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.v0(this.B,"innertubeCommand",p),this.U6.y4(),this.N&&this.B.logClick(this.N)):(p==="__correction__"?(this.B.pauseVideo(), this.B.isFullscreen()&&this.B.toggleFullscreen(),p=Qv(this),RF(this,p),super.L(this.G(p)),p=this.B.getVideoData().getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand,g.v0(this.B,"innertubeCommand",p)):(this.B.logClick(this.element),RF(this,p==="__off__"?{}:this.tracks[p]),super.L(p)),this.U6.y4())}J9(){var p=this.B.getOptions();p=p&&p.indexOf("captions")!==-1;var a=this.B.getVideoData();const l=a&&a.g1;var y=!!this.B.getVideoData()?.dE();let S,n={};if(p||l){if(p){S= this.B.getOption("captions","track");n=this.B.getOption("captions","tracklist",{includeAsr:!0});var V=y?[]:this.B.getOption("captions","translationLanguages");this.tracks=g.Rr(n,this.G,this);y=g.Nx(n,this.G);Qv(this)&&a.getPlayerResponse()?.captions?.playerCaptionsTracklistRenderer?.openTranscriptCommand&&y.push("__correction__");if(V.length&&!g.P6(S)){if((a=S.translationLanguage)&&a.languageName){const Z=a.languageName;a=V.findIndex(z=>z.languageName===Z); d5M(V,a)}uSA(this.X,V);y.push("__translate__")}V=this.G(S)}else this.tracks={},y=[],V="__off__";y.unshift("__off__");this.tracks.__off__={};l&&y.unshift("__contribute__");this.tracks[V]||(this.tracks[V]=S,y.push(V));this.j(y);this.S(V);S&&S.translationLanguage?this.X.S(this.X.X(S.translationLanguage)):v2r(this.X);p&&this.Sl.B9(this.B.getSubtitlesUserSettings());this.countLabel.setContent(n&&n.length?` (${n.length})`:"");this.publish("size-change");this.B.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}w7(p){var a= this.B.getOption("captions","track");a=g.O1(a);a.translationLanguage=this.X.languages[p];RF(this,a)}po(p,a){if(p==="reset")this.B.resetSubtitlesUserSettings();else{const l={};l[p]=a;this.B.updateSubtitlesUserSettings(l)}we$(this,!0);this.jl.start();this.Sl.B9(this.B.getSubtitlesUserSettings())}Bs(p){p||this.jl.mE()}fz(){this.jl.mE();super.fz()}open(){super.open();this.options.__correction__&&!this.N&&(this.N=this.options.__correction__.element,this.B.createClientVe(this.N,this,167341),this.B.logVisibility(this.N, !0))}};var sur=class extends g.rz{constructor(p){super(p,"ytp-settings-menu");this.wP=new g.cP(this.B);this.UN=this.Iq=this.settingsButton=null;this.isInitialized=this.wf=!1;g.H(this,this.wP);this.hide();g.Go(this,this.wP);p.createClientVe(this.element,this,108341,!0);this.subscribe("show",a=>{this.cX(a)}); this.J(p,"highlightSettingsMenu",()=>{this.wf=!0;this.zR()}); this.J(p,"openSettingsMenuItem",a=>{a&&(this.wf=!0,this.zR(),a==="menu_item_video_quality_advanced"&&this.Iq?.open())}); this.B.O()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&this.J(this.element,"wheel",a=>{a.stopPropagation()})}initialize(){if(!this.isInitialized){var p=this.B.O(); this.isInitialized=!0;try{this.Iq=new kCF(this.B,this)}catch(l){g.tX(Error("QualityMenuItem creation failed"))}g.H(this,this.Iq);var a=new NZZ(this.B,this);g.H(this,a);p.enableSpeedOptions&&(a=new Hbr(this.B,this),g.H(this,a));(g.x3(p)||p.D)&&(p.S||p.Hs)&&(a=new Obe(this.B,this),g.H(this,a));p.zn&&!p.A("web_player_move_autonav_toggle")&&(a=new uyf(this.B,this),g.H(this,a));p.A("html5_enable_new_audio_settings_menu")?(this.UN=new RFM(this.B,this),g.H(this,this.UN)):(p=new Ige(this.B,this),g.H(this, p));this.B.publish("settingsMenuInitialized");gs(this.settingsButton,this.wP.hk())}}Su(p){this.initialize();this.wP.Su(p);gs(this.settingsButton,this.wP.hk())}RM(p){this.nz()||(this.yQ&&this.wP.hk()<=1&&this.hide(),this.wP.RM(p),gs(this.settingsButton,this.wP.hk()))}zR(p){this.initialize();this.wP.hk()>0&&super.zR(p)}ke(){this.wf?this.wf=!1:super.ke()}show(){super.show();g.XX(this.B.getRootNode(),"ytp-settings-shown")}hide(){super.hide();g.BM(this.B.getRootNode(),"ytp-settings-shown")}cX(p){this.B.logVisibility(this.element, p);this.B.publish("settingsMenuVisibilityChanged",p)}};var UIE=class extends g.t{constructor(p,a){super({W:"button",A9:["ytp-subtitles-button","ytp-button"],Z:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:p.A("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[p.A("delhi_modern_web_player_icons")?{W:"div",T:"ytp-subtitles-button-icon",yY:"{{icon}}"}:Jfq(p)]});this.B=p;this.tooltip=a.Py();p.A("delhi_modern_web_player_icons")&& this.updateValue("icon",wKo(this));this.J(p,"videodatachange",this.J9);this.J(p,"appresize",this.J9);this.J(p,"promotooltipacceptbuttonclicked",this.L);this.J(p,"onApiChange",this.J9);this.J(p,"onCaptionsTrackListChanged",this.J9);this.J(p,"captionschanged",this.J9);this.B.createClientVe(this.element,this,127299);this.J9();this.listen("click",this.onClick);this.addOnDisposeCallback(g.Qb(a.Py(),this.element))}onClick(){if(jw(this)&&(this.B.toggleSubtitles(),this.B.logClick(this.element),!this.isEnabled())){let p= !1;const a=g.ik().Zy(65);g.p8(this.B.O())&&a!=null&&(p=!a);p&&this.B.O().A("web_player_nitrate_promo_tooltip")&&this.B.publish("showpromotooltip",this.element)}}L(p){g.HJ(this.B)?.GD()?.zR(p)}isEnabled(){const p=this.B.getOption("captions","track");return!(!p||!p.displayName)}J9(){const p=jw(this);let a=300;this.B.O().G&&(a=480);let l;this.B.A("delhi_modern_web_player_icons")&&this.updateValue("icon",wKo(this));this.B.O().D?(this.updateValue("title",g.HB(this.B,"Subt\u00edtulos","c")),this.update({"tooltip-title":g.HB(this.B, "Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"}),l=p):(p?(this.d7("ytp-subtitles-button-icon")?.setAttribute("fill-opacity","1"),this.B.O().A("player_tooltip_data_title_killswitch")?this.updateValue("title",g.HB(this.B,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.HB(this.B,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"})):(this.B.A("delhi_modern_web_player_icons")?this.d7("ytp-subtitles-button-icon")?.getElementsByTagName("svg")[0].setAttribute("fill-opacity", "0.3"):this.d7("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"})),l=!0);this.tooltip.yT();l=l&&this.B.h9().getPlayerSize().width>=a;this.iM(l);this.B.logVisibility(this.element,l);p?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}UC(p){super.UC(p)}};g.Quo=class extends g.t{constructor(p,a,l=350){super({W:"div",A9:["ytp-time-display","notranslate"],Z:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},V:[{W:"span",T:"ytp-time-wrapper",V:[{W:"div",T:"ytp-time-contents",V:[{W:"span",T:"ytp-time-clip-icon",yY:"{{clipicon}}",Z:{"aria-label":"Recortar"}},{W:"span",T:"ytp-time-current",yY:"{{currenttime}}"},{W:"span",T:"ytp-time-separator",yY:" / "},{W:"span",T:"ytp-time-duration",yY:"{{duration}}"}]}]},{W:"span",T:"ytp-clip-watch-full-video-button-separator", yY:"\u2022"},{W:"span",T:"ytp-clip-watch-full-video-button",yY:"{{watchfullvideo}}"}]});this.api=p;this.K=l;this.liveBadge=new g.t({W:"button",A9:["ytp-live-badge","ytp-button"],Z:{disabled:"true"},yY:"{{content}}"});this.L=null;this.xl=this.S=!1;this.G=this.D=null;this.isPremiere=!1;this.X=this.j=null;this.U=!1;this.lM=this.liveIndicatorText=null;this.Sl=this.d7("ytp-clip-watch-full-video-button");this.liveBadge.setContent("En directo");g.H(this,this.liveBadge);this.api.A("web_player_updated_entrypoint")|| this.api.A("delhi_modern_web_player")?this.liveBadge.lT(this.d7("ytp-time-contents")):this.liveBadge.lT(this.element);this.tooltip=a.Py();this.liveBadge.listen("click",this.onClick.bind(this));this.api.A("delhi_modern_web_player")&&(a=this.d7("ytp-time-wrapper"),this.J(a,"click",this.C),a.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.J(this.Sl,"click",this.N);this.J(this.api,"serverstitchedvideochange",()=>{hF(this,this.api.getProgressState().isAtLiveHead)}); this.J(p,"presentingplayerstatechange",this.rq);this.J(p,"appresize",this.rq);this.J(p,"onLoopRangeChange",this.onLoopRangeChange);this.J(p,"videodatachange",this.onVideoDataChange);(a=p.getVideoData())&&this.updateVideoData(a);this.rq();ZRF(this,p.getLoopRange())}canShowCountdown(){return!kN(this)&&!UQ(this)}rq(){var p=this.api.h9().getPlayerSize().width,a=this.K;this.api.O().G&&(a=400);a=p>=a&&(!UQ(this)||!this.api.getPlayerStateObject().L(64));this.iM(a);g.OW(this.element,"ytp-time-display-allow-autohide", a&&p<400);p=this.api.getProgressState();if(a){var l=this.api.getPresentingPlayerType();a=this.api.getCurrentTime(l,!1);this.S&&(a-=p.airingStart);kN(this)&&(a-=this.lM.startTimeMs/1E3);this.canShowCountdown()&&this.U&&(a-=this.api.getDuration(l,!1));var y=g.iH(a);this.j!==y&&(this.updateValue("currenttime",y),this.j=y);l=kN(this)?(this.lM.endTimeMs-this.lM.startTimeMs)/1E3:this.api.getDuration(l,!1);y=g.iH(l);this.X!==y&&(this.updateValue("duration",y),this.X=y,a&&(a=g.L$("$PLAY_PROGRESS de $DURATION", {PLAY_PROGRESS:g.iH(a,!0),DURATION:g.iH(l,!0)}),this.updateValue("timeDisplayAriaLabel",a)))}hF(this,p.isAtLiveHead);ZRF(this,this.api.getLoopRange())}onLoopRangeChange(p){const a=this.lM!==p;this.lM=p;a&&(this.rq(),vl(this))}N(){this.api.setLoopRange(null)}C(){this.U=!this.U;this.rq()}onVideoDataChange(p,a,l){this.updateVideoData((this.api.O().A("enable_topsoil_wta_for_halftime")||this.api.O().A("enable_topsoil_wta_for_halftime_live_infra"))&&l===2?this.api.getVideoData(1):a);this.rq();vl(this)}updateVideoData(p){this.xl= p.isLivePlayback&&!p.Bo;this.S=p.Ic();this.isPremiere=p.isPremiere;this.liveIndicatorText=(p=p.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.liveIndicatorText)?z$(p):null;g.OW(this.element,"ytp-live",UQ(this));this.api.A("delhi_modern_web_player")&&this.d7("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}onClick(p){p.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}fz(){this.L&&this.L(); super.fz()}};var hFo=class extends g.t{constructor(p,a){super({W:"div",T:"ytp-volume-panel",Z:{title:p.A("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"},V:[{W:"div",T:"ytp-volume-slider",V:[{W:"div",T:"ytp-volume-slider-handle"}]}]});this.api=p;this.D=a;this.M7=!1;this.Sl=this.volume=0;this.X=null;this.S=this.L=this.isDragging=!1;this.D=a;this.U= p.bN();this.N=p.A("web_player_use_screen_width_for_big_mode");this.K=this.d7("ytp-volume-slider");this.QY=this.d7("ytp-volume-slider-handle");this.j=new g.G$(this.K,!0);g.H(this,this.j);this.j.subscribe("dragstart",this.Rc,this);this.j.subscribe("dragmove",this.w7,this);this.j.subscribe("dragend",this.Hs,this);this.J(p,"onVolumeChange",this.onVolumeChange);this.J(p,"appresize",this.Bs);this.J(p,"fullscreentoggled",this.j_);this.J(p,"onShowControls",this.C);this.J(p,"onHideControls",this.C);this.J(this.element, "keydown",this.Ws);this.J(this.element,"focus",()=>{xR(this,this.L,this.isDragging,!0,this.api.M7())}); this.J(this.element,"blur",()=>{xR(this,this.L,this.isDragging,!1,this.api.M7())}); KHr(this,p.h9().getPlayerSize());q9(this,p.getVolume(),p.isMuted());Wc(p,this.element,this)}j_(){Qfe(this)}Bs(p){KHr(this,p);this.N&&Qfe(this)}Ws(p){if(!p.defaultPrevented){const a=p.keyCode;let l=null;a===37?l=this.volume-5:a===39?l=this.volume+5:a===36?l=0:a===35&&(l=100);l!==null&&(l=g.qx(l,0,100),l===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(l)),p.preventDefault())}}jl(p){const a=p.deltaX||-p.deltaY;p.deltaMode?this.api.setVolume(this.volume+(a<0?-10:10)):this.api.setVolume(this.volume+ g.qx(a/10,-10,10));p.preventDefault();this.api.O()?.getWebPlayerContextConfig()?.enableFullscreenComponentsFeature&&p.stopPropagation()}Rc(){xR(this,this.L,!0,this.S,this.api.M7());this.Sl=this.volume;this.api.isMuted()&&this.api.unMute()}w7(p){var a=this.U?78:52,l=this.U?18:12;p-=g.fX(this.K).x;l=g.qx((p-l/2)/(a-l),0,1);this.N&&(l=g.qx(p/a,0,1));a=l;a=this.api.A("web_player_non_linear_volume_controls")?a<=.25?a/.25*.1:.1+(a-.25)/.75*.9:a;this.api.setVolume(a*100)}Hs(){xR(this,this.L,!1,this.S,this.api.M7()); this.volume===0&&(this.api.mute(),this.api.setVolume(this.Sl))}onVolumeChange(p){q9(this,p.volume,p.muted)}C(){xR(this,this.L,this.isDragging,this.S,this.api.M7())}G(p){g.OW(this.element,"ytp-volume-control-hover",p);xR(this,p,this.isDragging,this.S,this.api.M7())}fz(){super.fz();g.BM(this.D,"ytp-volume-slider-active")}};var A4F=class extends g.t{constructor(p,a){const l=p.O(),y=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];l.U&&y.push("no-link");const S={title:p.A("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:l.C,"data-priority":"6","data-sessionlink":"feature=player-button"};l.U||(S.href="{{url}}");super({W:"a",A9:y,Z:S,yY:"{{logoSvg}}"});this.L=null;this.api=p;this.visible=!1;l.U||(this.L=this.listen("click",this.onClick));this.J(p,"videodatachange", this.onVideoDataChange);this.J(p,"videoplayerreset",this.onVideoDataChange);this.J(p,"onLoopRangeChange",this.onVideoDataChange);this.J(p,"appresize",this.Cx);this.onVideoDataChange();l.U||this.addOnDisposeCallback(g.Qb(a.Py(),this.element));this.Cx()}onVideoDataChange(){var p=this.api.O();this.Cx();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).XX;this.iM(this.visible);this.api.logVisibility(this.element,this.visible&&this.UO);if(this.visible){var a=this.api.getVideoUrl(!0, !1,!1,!0);this.updateValue("url",a)}p.U&&(this.L&&(this.Kt(this.L),this.L=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.XX(this.element,"no-link"));a=this.api.O();p=this.api.getVideoData();let l="";a.U||(a=g.vB(a),a.indexOf("www.")===0&&(a=a.substring(4)),l=g.eS(p)?"Ver en YouTube Music":a==="youtube.com"?"Ver en YouTube":g.L$("Ver en $WEBSITE",{WEBSITE:a}));this.api.A("player_tooltip_data_title_killswitch")?this.updateValue("title", l):this.updateValue("tooltip-title",l)}onClick(p){this.api.A("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);const a=this.api.O();let l=this.api.getVideoUrl(!g.N_(p),!1,!0,!0);if(g.x3(a)){const y={};g.x3(a)&&g.xe(this.api,"addEmbedsConversionTrackingParams",[y]);l=g.Re(l,y)}g.QD(l,this.api,p);this.api.A("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}Cx(){let p={W:"svg",Z:{height:"100%",version:"1.1",viewBox:"0 0 67 36", width:"100%"},V:[{W:"path",EC:!0,T:"ytp-svg-fill",Z:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, a=28666;const l=this.api.getVideoData();this.api.isEmbedsShortsMode()?p={W:"svg",Z:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{W:"path",Z:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.eS(l)&&(p={W:"svg",Z:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{W:"path",Z:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{W:"path",Z:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{W:"path",Z:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{W:"path",Z:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{W:"path",Z:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{W:"path",Z:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{W:"path",Z:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{W:"path",Z:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{W:"path",Z:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{W:"path",Z:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{W:"path",Z:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{W:"path",Z:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},a=216163);g.eS(l)?g.XX(this.element,"ytp-youtube-music-button"):g.BM(this.element,"ytp-youtube-music-button");p.Z={...p.Z,"aria-hidden":"true"};this.updateValue("logoSvg",p);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,a,!0)}UC(p){super.UC(p);this.api.logVisibility(this.element,this.visible&&p)}};var gye=class extends g.yr{constructor(p,a,l){super();this.B=p;this.jl=a;this.OQ=l;this.VY=NaN;this.Sl=this.ac=this.playButton=this.X=this.D=this.Hs=this.QY=this.N=this.UO=this.L=this.K=this.Ic=this.jz=this.Ps=null;this.j=new sur(this.B);this.progressBar=new g.KkZ(this.B,this.jl);this.q8=new g.Quo(this.B,this.jl);this.Tm=new wIe(this.B,this.jl);this.C=new g.qD(this.Lx,null,this);l=p.O();this.OQ.subscribe("autohideupdate",this.Cl,this);var y=!p.getPlayerStateObject().isCued(),S;(this.Fu=!p.A("delhi_modern_web_player")&& p.O().A("html5_player_dynamic_bottom_gradient"))?this.Ic=S=new dIF(p):S=new g.t({W:"div",T:"ytp-gradient-bottom"});g.H(this,S);g.g1(p,S.element,9);this.Ws=new g.Kg(S,250,y,100);g.H(this,this.Ws);this.S=new g.t({W:"div",T:"ytp-chrome-bottom",V:[{W:"div",T:"ytp-chrome-controls"}]});g.H(this,this.S);g.g1(p,this.S.element,9);this.w7=new g.Kg(this.S,250,y,100);g.H(this,this.w7);this.Bs=this.S.element.children[0];g.H(this,this.j);g.g1(p,this.j.element,6);this.j.subscribe("show",n=>{this.B.Ip(!n);p.Ew(this.j, n)}); g.H(this,this.progressBar);this.progressBar.lT(this.S.element,0);y=new r4h(p,a);g.H(this,y);g.g1(p,y.element,4);y=new g.XT({W:"div",T:"ytp-left-controls"});g.H(this,y);y.lT(this.Bs);p.A("delhi_modern_web_player")||(S=new g.KZ(p,a,!1),g.H(this,S),S.lT(y.element));p.A("web_render_jump_buttons")&&(this.UO=new $IM(p,-10),g.H(this,this.UO),this.UO.lT(y.element));l.Bs||(this.playButton=new g.Eyh(p,a),g.H(this,this.playButton),this.playButton.lT(y.element));p.A("web_render_jump_buttons")&&(this.N=new $IM(p, 10),g.H(this,this.N),this.N.lT(y.element));p.A("delhi_modern_web_player_remove_nav_buttons")||(p.A("delhi_modern_web_player")&&(S=new g.KZ(p,a,!1),g.H(this,S),S.lT(y.element)),S=new g.KZ(p,a,!0),g.H(this,S),S.lT(y.element));if(!p.A("delhi_modern_web_player")||p.A("delhi_modern_web_player_horizontal_volume_controls"))if(S=new g.t({W:"span",T:"ytp-volume-area"}),g.H(this,S),S.lT(y.element),!l.Ba&&(this.L=new vP(p,a),g.H(this,this.L),this.L.lT(S.element),l.Ws&&!l.G)){const n=new hFo(p,this.S.element); this.ac=n;g.H(this,n);n.lT(S.element);S=new g.G$(S.element);g.H(this,S);S.subscribe("hoverstart",()=>{this.ac?.G(!0)}); S=new g.G$(y.element);g.H(this,S);S.subscribe("hoverend",()=>{this.ac?.G(!1)})}p.A("delhi_modern_web_player_lhs_volume_controls")&&!p.A("delhi_modern_web_player_horizontal_volume_controls")&&(y.element.classList.add("ytp-left-controls-with-volume"),this.L=new vP(p,a),g.H(this,this.L),this.L.lT(y.element),this.L.element.classList.add("ytp-standalone-mute-button")); g.H(this,this.q8);this.q8.lT(y.element);this.QY=new BZO(p,this.progressBar);g.H(this,this.QY);this.QY.lT(y.element);l.A("web_key_moments_markers")&&(this.Hs=new PIr(p,this.progressBar),g.H(this,this.Hs),this.Hs.lT(y.element));p.A("delhi_modern_web_player")?this.U=new g.XT({W:"div",T:"ytp-right-controls",V:[{W:"div",T:NR.RIGHT_CONTROLS_LEFT},{W:"div",T:NR.RIGHT_CONTROLS_RIGHT}]}):this.U=new g.XT({W:"div",T:"ytp-right-controls"});g.H(this,this.U);this.U.lT(this.Bs);p.A("delhi_modern_web_player")&&(this.K= new c4$(p),g.H(this,this.K),this.K.lT(this.U.d7(NR.RIGHT_CONTROLS_LEFT)),p.A("delhi_modern_web_player_lhs_volume_controls")||p.A("delhi_modern_web_player_horizontal_volume_controls")||(this.L=new vP(p,a),g.H(this,this.L),this.L.lT(this.U.d7(NR.RIGHT_CONTROLS_LEFT))));this.NO=new UIE(p,a);g.H(this,this.NO);sj(this,this.NO,"RIGHT_CONTROLS_LEFT");this.settingsButton=new bbE(p,this.j);g.H(this,this.settingsButton);SzM(this.j,this.settingsButton);sj(this,this.settingsButton,"RIGHT_CONTROLS_LEFT");y=p.getVideoData(); if(l.G4||y.XX&&l.controlsType==="1")this.D=new A4F(p,a),g.H(this,this.D),this.D.lT(this.U.element);l.showMiniplayerButton&&!p.A("web_player_miniplayer_in_context_menu")&&(this.X=new Lkr(p),g.H(this,this.X),sj(this,this.X,"RIGHT_CONTROLS_RIGHT"));l.d4&&(a=new eF$(p,this.j),g.H(this,a),sj(this,a,"RIGHT_CONTROLS_RIGHT"));l.t4&&(a=new zFZ(p),g.H(this,a),sj(this,a,"RIGHT_CONTROLS_RIGHT"));g.H(this,this.Tm);sj(this,this.Tm,"RIGHT_CONTROLS_RIGHT");g.H(this,this.C);this.J(p,"appresize",this.Cx);this.J(p, "fullscreentoggled",this.Cx);this.K?.subscribe("small-mode-expand-right-bottom-controls",()=>{oaA(this)}); this.K?.subscribe("small-mode-collapse-right-bottom-controls",()=>{oaA(this)}); this.J(p,"presentingplayerstatechange",this.Rc);this.J(p,"videodatachange",this.onVideoDataChange);this.Cx()}onProgress(){if(this.B.A("web_player_max_seekable_on_ended")||!this.B.getPlayerStateObject().L(2))QL(this.OQ),this.progressBar.rq(),this.q8.rq()}Cl(){this.Rc();if(QL(this.OQ))this.progressBar.X();else this.onProgress()}Lx(){this.onProgress();this.C.start()}Rc(){var p;if(p=!this.B.O().S){p=this.progressBar;const l=2*g.KX()*p.G;var a=p.U;p=(a.L-a.S)*1E3/p.api.getPlaybackRate()/l<300}p=p&&this.B.getPlayerStateObject().isPlaying()&& !!window.requestAnimationFrame;a=!p;QL(this.OQ)&&(p=a=!1);a?this.Sl||(this.Sl=this.J(this.B,"progresssync",this.onProgress)):this.Sl&&(this.Kt(this.Sl),this.Sl=null);p?this.C.isActive()||this.C.start():this.C.stop()}dG(){return this.playButton?(this.playButton.focus(),!0):!1}Cx(){var p=this.B.bN();const a=this.B.h9().getPlayerSize();var l=this.B.h9().s9;const y=z4(this),S=gge(this);var n=Math.max(a.width-y*2,100);if(this.VY!==a.width||this.Ps!==p||this.B.A("web_player_rtr_ctrls")&&this.jz!==l)this.VY= a.width,this.Ps=p,this.jz=l,this.S.element.style.width=`${S}px`,this.S.element.style.left=`${y}px`,g.bI$(this.progressBar,y,S,p),this.B.Py().u6=S;l=this.j;n=Math.min(570*(p?1.5:1),n);p=Math.min(413*(p?1.5:1),Math.round((a.height-Nn(this))*.82));l.maxWidth=n;l.maxHeight=p;l.xV();this.Rc();this.Fu&&RLA(this.Ic,a.height)}onVideoDataChange(){const p=this.B.getVideoData();this.Bs.style.background=p.XX?p.jS:"";this.N&&FHM(this.N,p.showSeekingControls);this.UO&&FHM(this.UO,p.showSeekingControls)}Wa(){return this.S.element}iT(){return this.progressBar}Ha(p, a){const l=Number(p.element.getAttribute("data-priority"))||0;let y=0,S=this.U.element;a&&this.B.A("delhi_modern_web_player")&&(S=this.U.d7(NR[a]));for(const n of S.children){if(l<(Number(n.getAttribute("data-priority"))||0))break;y++}p.lT(S,y)}};var YEo=class extends GZ{constructor(p){super(p,!1);this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.J(this.B,"videodatachange",this.onVideoDataChange);this.J(this.B,g.tT("suggested_action_button_visible"),a=>{this.text=a=a.id;RkE(this);this.onClickCommand=this.suggestedActions[a];this.enabled=!0;this.cX()}); this.J(this.B,g.jh("suggested_action_button_visible"),a=>{this.enabled=!1;this.cX();this.B.removeCueRange(a.id)})}Bs(p){p.target!==this.dismissButton.element&&(this.onClickCommand&&g.v0(this.B,"innertubeCommand",this.onClickCommand),this.X())}X(){this.enabled=!1; this.jl.hide()}onVideoDataChange(p,a){p==="dataloaded"&&Yrv(this);p=[];if(a=g.K(a.getWatchNextResponse()?.playerOverlays?.playerOverlayRenderer?.suggestedActionsRenderer,qlO)?.suggestedActions)for(var l of a)(a=g.K(l,Jcq))&&g.K(a.trigger,YlM)&&p.push(a);if(p.length!==0){l=[];for(const y of p){p=g.K(y.trigger,YlM);if(!p)continue;a=(a=y.title)?g.mQ(a):"View Chapters";const S=p.timeRangeStartMillis;p=p.timeRangeEndMillis;S!=null&&p!=null&&y.tapCommand&&(l.push(new g.yj(S,p,{priority:9,namespace:"suggested_action_button_visible", id:a})),this.suggestedActions[a]=y.tapCommand)}this.B.OE(l)}}D(){return this.enabled}cX(){this.enabled?this.NO.start():dx(this);this.S()}fz(){Yrv(this);super.fz()}};var e6={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"},qEF=class extends g.t{constructor(p){super({W:"div",T:e6.TITLE,V:[{W:"div",A9:[e6.TEXT,p.A("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],V:[{W:"a",A9:[e6.LINK,e6.SESSIONLINK],Z:{target:p.O().C,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"}, yY:"{{title}}"},{W:"div",T:e6.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=p;this.L=null;this.link=this.d7(e6.LINK);p.createClientVe(this.element,this,23851);this.J(p,"videodatachange",this.J9);this.J(p,"videoplayerreset",this.J9);this.J9()}onClick(p){this.api.logClick(this.element);var a=this.api.O();let l=this.api.getVideoUrl(!g.N_(p),!1,!0);g.x3(a)&&(a={},g.xe(this.api,"addEmbedsConversionTrackingParams",[a]),l=g.Re(l,a));g.QD(l,this.api,p)}J9(){const p=this.api.getVideoData(),a=this.api.O(); this.updateValue("title",p.title);var l={W:"a",T:e6.CHANNEL_NAME,Z:{href:"{{channelLink}}",target:"_blank"},yY:"{{channelName}}"};this.api.O().U?l={W:"span",T:e6.CHANNEL_NAME,yY:"{{channelName}}",Z:{tabIndex:"{{channelSubtextFocusable}}"}}:p.cN&&(l={W:"span",T:e6.SUBTEXT,yY:p.cN});this.updateValue("subtextElement",l);YvA(this);this.api.getPresentingPlayerType()===2&&(l=this.api.getVideoData(),l.videoId&&l.isListed&&l.author&&l.VY&&l.profilePicture?(this.updateValue("channelLink",l.VY),this.updateValue("channelName", l.author),this.updateValue("channelTitleFocusable","0")):YvA(this));l=a.externalFullscreen||!this.api.isFullscreen()&&a.QS;g.OW(this.link,e6.FULLERSCREEN_LINK,l);a.N||!p.videoId||l||p.XX||a.U?this.L&&(this.updateValue("url",null),this.Kt(this.L),this.L=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.L||(this.L=this.J(this.link,"click",this.onClick)));a.U&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.x3(a)?p.expandedTitle:p.author),this.updateValue("channelTitleFocusable", "0"),this.updateValue("channelSubtextFocusable","0"))}};g.J4v=class extends g.t{constructor(p,a){super({W:"div",V:[{W:"div",T:"ytp-tooltip-text-wrapper",Z:{"aria-hidden":"{{ariaHidden}}"},V:[{W:"div",T:"ytp-tooltip-edu",V:[{W:"svg",Z:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{W:"path",Z:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{W:"span",yY:"{{eduText}}"}]},{W:"div",T:"ytp-tooltip-image"},{W:"div",T:"ytp-tooltip-title",V:[{W:"span",yY:"{{title}}"},{W:"div",T:"ytp-tooltip-keyboard-shortcut", yY:"{{keyBoardShortcutTitle}}"}]},{W:"div",T:"ytp-tooltip-bottom-text",V:[{W:"span",T:"ytp-tooltip-text",yY:"{{text}}"},{W:"div",T:"ytp-tooltip-keyboard-shortcut",yY:"{{keyBoardShortcut}}"}]},{W:"div",T:"ytp-tooltip-progress-bar-pill",V:[{W:"div",T:"ytp-tooltip-progress-bar-pill-time-stamp",yY:"{{pillTimeStamp}}"},{W:"div",T:"ytp-tooltip-progress-bar-pill-title",yY:"{{pillTitle}}"}]}]},{W:"div",T:"ytp-tooltip-bg",V:[{W:"div",T:"ytp-tooltip-duration",yY:"{{duration}}"}]}]});this.api=p;this.Hs=a;this.C= l=>{(l=l.relatedTarget)&&g.n3(this.L,l)||this.X()}; this.D=l=>{this.type===3&&this.X();(l=l.currentTarget)&&l.nodeType===1&&!this.type&&(l.removeEventListener("mouseover",this.D),l.addEventListener("mouseout",this.C),l.removeEventListener("focus",this.D),l.addEventListener("blur",this.C),gkM(this,l,2))}; this.N=()=>{this.X()}; this.type=this.L=null;this.K=!1;this.S=null;this.U="";this.G=!0;this.scale=1;this.env=this.api.O();this.w7=this.env.S;this.wrapper=this.d7("ytp-tooltip-text-wrapper");this.bg=this.d7("ytp-tooltip-bg");this.Ws=this.d7("ytp-tooltip-edu");this.image=this.d7("ytp-tooltip-image");this.text=this.d7("ytp-tooltip-text");this.bottomText=this.d7("ytp-tooltip-bottom-text");this.title=this.d7("ytp-tooltip-title");this.fade=new g.Kg(this,100);this.j=NaN;this.u6=this.api.h9().getPlayerSize().width;this.Sl=new g.SF(this.Bs, 250,this);this.jl=new g.SF(this.X,5E3,this);g.H(this,this.fade);g.H(this,this.Sl);g.H(this,this.jl);VQ&&(p=this.d7("ytp-tooltip-text"),p.setAttribute("role","text"),p.setAttribute("aria-live","polite"))}setEnabled(p){if(this.type!=null)if(p)switch(this.type){case 3:case 2:Rq(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=p}AY(p,a,l,y,S,n,V,Z){if(!this.w7||this.env.G){this.type===3&&this.X();this.type!==1&&(g.rn(this.element,"ytp-tooltip ytp-bottom"),this.type=1, this.G&&this.fade.show(),this.S&&this.S.dispose(),(this.S=this.api.XG())&&this.S.subscribe("l",this.QY,this));if(Z){const z=g.Lf(this.bg).height||141;this.Ws.style.bottom=`${z+2}px`}else this.Ws.style.display="none";this.env.A("delhi_modern_web_player")?(this.update({pillTimeStamp:l,pillTitle:n??"",eduText:Z??""}),g.XX(this.element,"ytp-tooltip-progress-bar-style")):(this.update({text:l,title:n??"",eduText:Z??""}),g.OW(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!n));this.api.isInline()&& g.XX(this.bottomText,"ytp-modern-tooltip-text");g.OW(this.element,"ytp-text-detail",!!y);l=-1;this.S&&(l=T$(this.S,243*this.scale),this.env.A("web_l3_storyboard")&&this.S.levels.length===4&&(l=this.S.levels.length-1),l=l3h(this.S,l,a));p0q(this,l);if(V)switch(a=g.Lf(this.element).width,V){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=`${a}px`;this.title.style.textAlign="right";break;case 3:this.title.style.right=`${a/2}px`,this.title.style.textAlign= "center"}Iq(this,!!y,p,S)}}r0(){this.type===1&&this.X()}Z8(p,a){if(this.type)if(this.type===3)this.X();else return;gkM(this,p,3,a)}yT(){this.L&&!this.K&&(this.env.A("player_tooltip_data_title_killswitch")?this.L.hasAttribute("title")&&(this.U=this.L.getAttribute("title")||"",this.L.removeAttribute("title"),this.G&&Rq(this)):this.L.hasAttribute("data-tooltip-title")&&(this.U=this.L.getAttribute("data-tooltip-title")||"",this.L.removeAttribute("data-tooltip-title"),this.G&&Rq(this)))}QY(p,a){p<=this.j&& this.j<=a&&(p=this.j,this.j=NaN,p0q(this,p))}Bs(){ner(this.S,this.j,243*this.scale)}X(){switch(this.type){case 2:const p=this.L;p.removeEventListener("mouseout",this.C);p.addEventListener("mouseover",this.D);p.removeEventListener("blur",this.C);p.addEventListener("focus",this.D);Dl(this);break;case 3:Dl(this);break;case 1:this.S&&(this.S.unsubscribe("l",this.QY,this),this.S=null),this.api.removeEventListener("videoready",this.N),this.Sl.stop()}this.type=null;this.G&&this.fade.hide()}xc(...p){if(this.L)for(p= 0;p{this.Jy(y,n)}); this.XL.push(y);this.WA=new fXh(this.api,y);g.H(this,this.WA);!this.CU&&(this.V4&&this.api.A("delhi_modern_web_player")?this.V4.H9(this.WA.element,2):this.WA.lT(this.D1.element));g.H(this,this.channelAvatar);this.channelAvatar.lT(this.D1.element);g.H(this,this.title);this.title.lT(this.D1.element);this.CU&&(l=new ZbO(this.api),g.H(this,l),l.lT(this.D1.element));g.H(this,this.sY);this.V4?(this.sY.element.setAttribute("data-overlay-order","2"),this.V4.H9(this.sY.element,2)):this.sY.lT(this.D1.element); const S=new nyM(this.api,this);g.H(this,S);g.g1(this.api,S.element,5);S.subscribe("show",n=>{this.Jy(S,n)}); this.XL.push(S);this.searchButton=new lgq(this.api);g.H(this,this.searchButton);this.searchButton.lT(this.sY.element);l=this.api.O().getWebPlayerContextConfig();this.T2=new fgE(this.api);g.H(this,this.T2);l?.hideTopWatchNextButton||this.T2.lT(this.sY.element);this.shareButton=new SEM(this.api,this,S);g.H(this,this.shareButton);l?.hideTopShareButton||this.shareButton.lT(this.sY.element);this.copyLinkButton=new joZ(this.api,this);g.H(this,this.copyLinkButton);this.copyLinkButton.lT(this.sY.element); this.CU&&this.WA.lT(this.sY.element);g.H(this,this.qA);this.qA.lT(this.sY.element);a.SS&&(l=new oyO(this.api),g.H(this,l),g.g1(this.api,l.element,4));a.U||(l=new OMo(this.api,this.qA),g.H(this,l),l.lT(this.sY.element));this.w4=new Yor(this.api);g.H(this,this.w4);g.g1(this.api,this.w4.element,5);this.w4.subscribe("show",()=>{this.Jy(this.w4,this.w4.Gf())}); this.XL.push(this.w4);this.overflowButton=new glO(this.api,this.w4);g.H(this,this.overflowButton);this.overflowButton.lT(this.sY.element);this.J$&&g.H(this,this.J$);a.controlsType==="3"&&(l=new agh(this.api),g.H(this,l),g.g1(this.api,l.element,9));g.H(this,this.contextMenu);this.contextMenu.subscribe("show",this.BD,this);this.YA.listen("focus",this.V3,this);g.H(this,this.YA);this.Nk.listen("focus",this.C5,this);g.H(this,this.Nk);(this.cH=a.A$?null:new AHr(this.api,p,this.contextMenu,this.OQ,this.T9, this.wI,()=>this.r8(),this.J$?.iT()))&&g.H(this,this.cH); this.CU||(this.ut=new HMA(this.api),g.H(this,this.ut),this.V4?this.V4.H9(this.ut.element,3):g.g1(this.api,this.ut.element,4),this.bl=new VLM(this.api),g.H(this,this.bl),this.V4?this.V4.H9(this.bl.element,3):g.g1(this.api,this.bl.element,4));this.K2=new YEo(this.api);g.H(this,this.K2);this.V4?this.V4.H9(this.K2.element,3):g.g1(this.api,this.K2.element,4);if(this.CU){const n=new iMF(this.api,this.api.O().Hs);g.H(this,n);g.g1(this.api,n.element,5);n.subscribe("show",V=>{this.Jy(n,V)}); p=new TcZ(this.api,n);g.H(this,p);g.g1(this.api,p.element,4)}this.RY.push(this.T9.element);this.J(this.api,"fullscreentoggled",this.j_);this.J(this.api,"offlineslatestatechange",()=>{this.api.P2()&&es(this.OQ,128,!1)}); this.J(this.api,"cardstatechange",()=>{this.Px()}); this.J(this.api,"resize",this.Ia);this.J(this.api,"videoplayerreset",this.onReset);this.J(this.api,"showpromotooltip",this.xj);super.init()}Py(){return this.tooltip}w0(){return this.J$}Jy(p,a){a?this.IL=p:this.IL=null;this.Px()}Pw(p,a){if(a)this.Xd.push(p);else for(a=this.Xd.length;a>=0;a--)if(this.Xd[a]===p){this.Xd.splice(a,1);break}es(this.OQ,64,this.Xd.length>0)}IN(){this.api.gh()&&this.api.Vl();return!!this.IL||pXv(this)||super.IN()}Px(){const p=!this.IN(),a=p&&this.api.gh()&&!this.api.getPlayerStateObject().L(2)&& !this.api.getVideoData().XX&&!this.api.O().U&&!this.api.isEmbedsShortsMode(),l=this.CU&&g.jM(this.api)&&this.api.getPlayerStateObject().L(128);p||l?(this.nJ.show(),this.MP.show()):(this.nJ.hide(),this.MP.hide(),this.api.xc(this.D1.element));a?this.qA.zR():this.qA.ke();this.J$&&OVF(this.J$,this.NW||!p);this.api.A("web_player_hide_overflow_button_if_empty_menu")&&VM(this);super.Px()}gK(p,a,l,y,S){p.style.left="";p.style.top="";p.style.bottom="";var n=g.Lf(p),V=y||this.J$&&g.n3(this.J$.Wa(),a),Z=y=null; l!=null&&V||(y=g.Lf(a),Z=g.l7(a,this.api.getRootNode()),l==null&&(l=Z.x+y.width/2));l-=n.width/2;V?(a=this.J$,y=z4(a),Z=gge(a),V=this.api.h9().getPlayerSize().height,l=g.qx(l,y,y+Z-n.width),n=V-Nn(a)-n.height):g.n3(this.D1.element,a)?(a=this.api.h9().getPlayerSize().width,l=g.qx(l,12,a-n.width-12),n=this.bN()?this.PV:this.xF,this.api.O().playerStyle==="gvn"&&(n+=20),this.CU&&(n-=this.bN()?26:18)):(a=this.api.h9().getPlayerSize(),l=g.qx(l,12,a.width-n.width-12),n=Z.y>(a.height-y.height)/2?Z.y-n.height- 12:Z.y+y.height+12);p.style.top=`${n+(S||0)}px`;p.style.left=`${l}px`}Cl(p){p&&(this.api.xc(this.D1.element),this.J$&&this.api.xc(this.J$.Wa()));this.C_&&(g.OW(this.contextMenu.element,"ytp-autohide",p),g.OW(this.contextMenu.element,"ytp-autohide-active",!0));super.Cl(p)}ih(){super.ih();this.C_&&(g.OW(this.contextMenu.element,"ytp-autohide-active",!1),this.C_&&(this.contextMenu.hide(),this.w4&&this.w4.hide()))}w3(p,a){var l=this.api.h9().getPlayerSize();l=new g.hu(0,0,l.width,l.height);if(p||!QL(this.OQ)&& !this.IN()){if(this.api.O().uK||a)p=this.bN()?this.PV:this.xF,l.top+=p,l.height-=p;this.J$&&(l.height-=Nn(this.J$))}return l}j_(p){const a=this.api.getRootNode();p?a.parentElement?(a.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.O().externalFullscreen||(a.parentElement.insertBefore(this.YA.element,a),a.parentElement.insertBefore(this.Nk.element,a.nextSibling))):g.MD(Error("Player not in DOM.")):(a.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"), this.YA.detach(),this.Nk.detach());this.Cx();this.Xx()}bN(){if(this.api.A("web_player_use_screen_width_for_big_mode"))return this.api.h9().getPlayerSize().width>=(g.ak(this.api.O().experiments,"web_player_big_mode_screen_width_cutoff")??2E3);const p=this.api.O();return this.api.isFullscreen()&&!p.G||!1}showControls(p){this.Uq=!p;this.Px()}Cx(){var p=this.bN();this.tooltip.scale=p?1.5:1;this.contextMenu&&g.OW(this.contextMenu.element,"ytp-big-mode",p);this.Px();this.api.A("web_player_hide_overflow_button_if_empty_menu")|| VM(this);this.Xx();const a=this.api.isEmbedsShortsMode();a&&p?(p=(this.api.h9().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.VB(this.D1.element,"padding-left",`${p}px`),g.VB(this.D1.element,"padding-right",`${p}px`)):a&&(g.VB(this.D1.element,"padding-left",""),g.VB(this.D1.element,"padding-right",""));super.Cx()}Ym(){if(pXv(this)&&!g.jM(this.api))return!1;var p=this.api.getVideoData();return!g.x3(this.api.O())||this.api.getPresentingPlayerType()===2||!this.u_||((p=this.u_||p.u_)? (p=p.embedPreview)?(p=p.thumbnailPreviewRenderer,p=p.videoDetails&&g.K(p.videoDetails,jeF)||null):p=null:p=null,p&&p.collapsedRenderer&&p.expandedRenderer)?super.Ym():!1}Xx(){super.Xx();this.api.logVisibility(this.title.element,!!this.L9);this.WA&&this.WA.UC(!!this.L9);this.channelAvatar.UC(!!this.L9);this.overflowButton&&this.overflowButton.UC(this.m7()&&!!this.L9);this.shareButton&&this.shareButton.UC(!this.m7()&&!!this.L9);this.T2&&this.T2.UC(!this.m7()&&!!this.L9);this.searchButton&&this.searchButton.UC(!this.m7()&& !!this.L9);this.copyLinkButton&&this.copyLinkButton.UC(!this.m7()&&!!this.L9);if(!this.L9){this.api.xc(this.D1.element);for(let p=0;p{for(let p=nt.length;p<4;p++){const a=g.HA("VIDEO");a.load();nt.push(new g.hW(a))}};var SuF=class extends g.YB{constructor(p){super();this.app=p;this.X=this.j=this.S=this.L=null;this.U=1;this.events=new g.yr(this);this.events.J(this.app.pz,g.jh("gaplessshortslooprange"),this.K);g.H(this,this.events)}G(){this.L!=null&&this.app.getVideoData()!==this.L&&zI(this.L)&&RA(this.app,this.L,void 0,void 0,this.U)}D(){if(this.L!=null&&this.app.getVideoData()!==this.L&&this.S!=null&&this.j!=null&&this.X!=null&&zI(this.L)){const p=slh(this.S,this.j,this.X);p==null?RA(this.app,this.L,void 0,void 0, this.U):(this.S.Xu("sgap",p),this.S.getVideoData().K&&this.S.b1(!1),this.app.O().A("html5_remove_loop_range_on_gapless_fallback")&&(lj(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}K(p){const a=this.app.zm();if(a){const l=this.app.getCurrentTime();Math.abs(l-p.end/1E3)>5&&a.Xu("glrs",{cmt:l});a.seekTo(0,{seekSource:58});a.Xu("glrre",{cmt:l})}}fz(){this.L=null;super.fz()}};var owo=class{constructor(){this.L=this.G=this.U=this.S=this.C=this.D=this.UO=this.K=this.X=this.j=!1}};g.gQ=class extends Zdv{constructor(p,a,l,y=!1){super();this.mediaElement=p;this.start=a;this.end=l;this.L=y}isView(){return!0}Ha(){const p=this.mediaElement.getCurrentTime();if(p{}); this.timeout=new g.SF(()=>{this.Sj("timeout")},1E4); g.H(this,this.timeout);this.w7=isFinite(y)||this.TR.O().experiments.Cz("html5_pseudogapless_shorts")&&D6(a.getVideoData());this.status={status:0,error:null}}getStatus(){return this.status}U(){var p=this.L.getVideoData(),a=this.S.getVideoData(),l;if((l=p.U)&&!(l=!p.L)){l=p.L;var y=!1;let d=!1;for(var S of Object.values(l.L))S.info.audio&&S.index.isLoaded()&&(y=!0),S.info.video&&S.index.isLoaded()&&(d=!0);l.L["0"]&&(d=!0);l=y&&d}if(l)if(this.L.mB()){S=Nw(this.policy,this.L,this.S,this.HL);var {kq:n, Ka:V,H7:Z,h_:z}=this.K();this.Sl||(l=this.S.bG()*1E3,y=this.L.bG(),y=(Z-n-y)*1E3,S&&S.msg==="in-the-past"&&(y=0),p=p.isAd(),this.S.lS(l,y,p),this.Sl=!0);S?(a=`cannot_apply${S.msg}`,delete S.msg,this.Sj(a,S)):this.status.status===2?SC$(this):(p=this.L.mK())&&p.D()&&(!uD(p)&&g.VI()?this.Sj("mse_closed"):a.L&&a.L.j()&&p.S&&!p.S.gQ()?this.Sj("encr_upgrade"):(a=this.L.mB(),a.isEnded()?this.Sj("elem_ended"):V<0?this.Sj("next_player_future"):(this.C=Z,this.currentVideoDuration=Z-n,this.j=nph(p,n,Z,!0),this.X= nph(p,V,z,!1),p=this.S.getVideoData().clientPlaybackNonce,this.L.Xu("gaplessPrep",{cpn:p}),this.L.tT(this.j,!1,lVM(this),this.TR.O().A("html5_shorts_gapless_keep_pending_requests")&&D6(this.L.getVideoData())),this.L.setMediaElement(YP(a,n,Z,!this.L.getVideoData().isAd())),O8(this,2),SC$(this))))}else this.Sj("no-elem")}G(p){var {gH:a}=Nj(this),l=p===a;a=l?this.j.L:this.j.S;l=l?this.X.L:this.X.S;if(a.isActive&&!l.isActive){var y=this.C,S=this.TR.O().A("html5_gapless_disable_on_discontinuous_buffer")&& this.D!==0&&a.gP().length>1;Dq(p.gP(),y-.01)&&!S&&(O8(this,4),a.isActive=!1,a.tB=a.tB||a.isActive,(this.D===1?this.L:this.S).Xu("sbh",{}),l.isActive=!0,l.tB=l.tB||l.isActive,this.D!==0&&(this.L.getVideoData().JA=!0));p=this.X.S;this.X.L.isActive&&p.isActive&&(O8(this,5),this.D!==0&&(p=this.S.fE(),a=this.L.fE(),this.L.Xu("sbs",{citag:a?.itag,nitag:p?.itag}),this.S.Xu("gitags",{pitag:a?.itag,citag:p?.itag}),this.S?.Ze()))}}jl(){this.Fx()&&this.Sj("player-reload-after-handoff")}Sj(p,a={}){if(!this.nz()&& this.status.status!==6){var l=this.status.status>=4&&p!=="player-reload-after-handoff";this.status={status:Infinity,error:p};if(this.L&&this.S){const y=this.S.getVideoData().clientPlaybackNonce;this.L.d$(new g.cQ("dai.transitionfailure",Object.assign(a,{cpn:y,transitionTimeMs:this.HL,msg:p})));this.L.b1(l)}this.mC.reject(p);this.dispose()}}Ws(){if(this.getStatus().status!==5)return"niss";if(Nw(this.policy,this.L,this.S,this.HL)!=null)return"pge";const {gH:p,E5:a}=Nj(this),l=g.ak(this.TR.O().experiments, "html5_shorts_gapless_next_buffer_in_seconds");var y=this.C+l;this.TR.O().experiments.Cz("html5_pseudogapless_shorts")&&(y=this.K().Ka+l);const S=Dq(a.gP(),y);y=Dq(p.gP(),y);return!(l>0)||S&&y?null:"neb"}UO(){return this.currentVideoDuration}Fx(){return this.status.status>=4&&this.status.status<6}fz(){ysF(this);this.L.unsubscribe("newelementrequired",this.jl,this);if(this.j){const p=this.j.S;this.j.L.fh.unsubscribe("updateend",this.G,this);p.fh.unsubscribe("updateend",this.G,this)}super.fz()}K(){var p= this.L.mB();p=p.isView()?p.start:0;var a=this.L.getVideoData().isLivePlayback?Infinity:this.L.cG(!0);a=Math.min(this.HL/1E3,a)+p;var l=this.w7?100:0;l=a-this.S.bG()+l;return{kq:p,Ka:l,H7:a,h_:Infinity}}N(p){p.j5(128)&&this.Sj("player-error-event")}};var n4A=class extends g.YB{constructor(p){super();this.app=p;this.D=this.S=this.L=null;this.K=!1;this.U=this.j=null;this.X=zaZ(this.app.O());this.G=()=>{g.XM(()=>{wWo(this)})}}clearQueue(p=!1,a=!1){this.j&&this.j.reject("Queue cleared"); this.app.O().A("html5_gapless_fallback_on_qoe_restart_v2")||a&&this.S&&this.S.b1(!1);h3(this,p)}f0(){return!this.L}Fx(){return this.U?.Fx()||!1}fz(){h3(this);super.fz()}};var VWF=class extends g.js{constructor(){super();this.fullscreen=0;this.j=this.U=this.pictureInPicture=this.L=this.S=this.inline=!1;this.X=()=>{this.cX()}; KEO(this.X);this.D=this.getVisibilityState(this.gE(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.N0(),this.AG(),this.tG(),this.n0())}getVisibilityState(p,a,l,y,S,n,V,Z){return p?4:S&&aR?7:ze()?3:a?2:l?1:y?5:S&&!aR?7:n?8:V?9:Z?10:0}M5(p){this.fullscreen!==p&&(this.fullscreen=p,this.cX())}setMinimized(p){this.S!==p&&(this.S=p,this.cX())}setInline(p){this.inline!==p&&(this.inline=p,this.cX())}GA(p){this.pictureInPicture!==p&&(this.pictureInPicture=p,this.cX())}setSqueezeback(p){this.U!== p&&(this.U=p,this.cX())}rj(p){this.j!==p&&(this.j=p,this.cX())}gE(){return this.L}AD(){return this.fullscreen!==0}isFullscreen(){return this.fullscreen!==0&&this.fullscreen!==4}EK(){return this.fullscreen}isMinimized(){return this.S}isInline(){return this.inline}isBackground(){return ze()}N0(){return this.pictureInPicture}AG(){return!1}tG(){return this.U}n0(){return this.j}cX(){this.publish("visibilitychange");const p=this.getVisibilityState(this.gE(),this.isFullscreen(),this.isMinimized(),this.isInline(), this.N0(),this.AG(),this.tG(),this.n0());p!==this.D&&this.publish("visibilitystatechange");this.D=p}fz(){UiM(this.X);super.fz()}};g.b1=class extends g.YB{constructor(p){super();this.Y=p;this.videoData=this.playerState=null}fz(){this.videoData=this.playerState=null;super.fz()}addCueRange(){}LN(){}Hw(){}z3(){return!1}DG(){return!1}m_(){}ZY(){}UI(){return[]}pC(){}qD(){}Z_(){return 1}getAudioTrack(){return this.getVideoData().sU}OS(){return null}getAvailableAudioTracks(){return[]}oD(){return[]}pU(){return[]}J5(){return""}iN(){return[]}PR(){}bG(){return 0}getCurrentTime(){return 0}V7(){}fE(){}mS(){return{}}getDuration(){return 0}KC(){return 0}By(){return 0}W6(){return!1}yP(){return 0}R1(){return 0}fO(){return 0}V9(){return!1}cG(){return 0}mB(){return null}mK(){return null}NE(){return 0}c8(){return 0}async UU(){}getPlaybackQuality(){return"auto"}getPlaybackRate(){return 1}getPlayerState(){this.playerState|| (this.playerState=new g.bB);return this.playerState}getPlayerType(){return 0}getPlaylistSequenceForTime(){return null}Et(){return()=>{}}C8(){return""}getPreferredQuality(){return"unknown"}vI(){}getProximaLatencyPreference(){return 0}RE(){return qN}XG(){return null}getStoryboardFormat(){return null}getStreamTimeOffset(){return 0}Wk(){return 0}oo(){return 0}jP(){return{Nl:[], sS:[],currentTime:0,qk:"",droppedVideoFrames:0,isGapless:!1,f0:!0,uj:0,W_:0,gF:0,B_:0,QA:0,H_:[],FZ:[],s_:null,playerState:this.getPlayerState(),n$:null,O5:"",totalVideoFrames:0}}getUserAudio51Preference(){return 0}getUserPlaybackQualityPreference(){return""}getVideoData(){this.videoData||(this.videoData=new g.Uj(this.Y),g.H(this,this.videoData));return this.videoData}bY(){return null}nN(){return null}K1(){}getVideoLoadedFraction(){return 0}Ma(){}handleError(){}b1(){}T5(){}g3(){return!1}hasSupportedAudio51Tracks(){return!1}Sr(){return!1}gE(){return!1}isAtLiveHead(){return!1}Rn(){return!0}isGapless(){return!1}isHdr(){return!1}Zv(){return!1}Va(){return!1}R$(){return!1}isProximaLatencyEligible(){return!1}f0(){return!0}vt(){return!1}rM(){return!1}dt(){}zx(){}Ze(){}wN(){}k9(){}xB(){}Pz(){}SB(){}pauseVideo(){}prefetchKeyPlay(){}async playVideo(){}tJ(){}Ub(){}Xu(){}CC(){}Do(){}lS(){}d$(){}ib(){}ZR(){}e0(){}ZA(){}ol(){}Os(){}removeCueRange(){}uJ(){}RX(){return[]}qR(){}W9(){}bP(){}Pg(){}CY(){}u4(){}seekTo(){}sendAbandonmentPing(){}sendVideoStatsEngageEvent(){}uS(){}setLoop(){}EF(){}setMediaElement(){}tT(){}setPlaybackRate(){}f1(){}aI(){}Kv(){}setProximaLatencyPreference(){}aN(){}MI(){}cO(){}TY(){}gr(){}setUserAudio51Preference(){}Ki(){}Gp(){return!1}H1(){}Q9(){return!1}o6(){}JT(){}iP(){}stopVideo(){}subscribe(){return NaN}A4(){}togglePictureInPicture(){}oI(){return 0}dD(){}unsubscribe(){return!1}zA(){}OZ(){return!1}jp(){}Z2(){}Um(){}}; g.C=g.b1.prototype;g.C.RQ=Gl(50);g.C.bc=Gl(40);g.C.Pl=Gl(33);g.C.xg=Gl(27);g.C.U2=Gl(21);g.C.wX=Gl(15);g.C.PL=Gl(7);var II=class extends g.YB{constructor(p,a){super();this.data=[];this.U=p||NaN;this.S=a||null;this.L=new g.SF(()=>{mO(this);$V(this)}); g.H(this,this.L)}get(p){mO(this);const a=this.data.find(l=>l.key===p); return a?a.value:null}set(p,a,l){this.remove(p,!0);mO(this);p={key:p,value:a,expire:Infinity};l&&isFinite(l)&&(l*=1E3,p.expire=(0,g.h)()+l);for(this.data.push(p);this.data.length>this.U;)(l=this.data.shift())&&bU(this,l,!0);$V(this)}remove(p,a=!1){const l=this.data.find(y=>y.key===p); l&&(bU(this,l,a),g.r_(this.data,y=>y.key===p),$V(this))}removeAll(p=!1){if(p)for(const a of this.data)bU(this,a,p); this.data=[];$V(this)}fz(){super.fz();this.data.forEach(p=>{bU(this,p,!0)}); this.data=[]}};g.RI=class extends g.YB{constructor(p,a){super();this.api=p;this.U={};this.EU=null;this.D={};this.G=this.j=null;a=new II(a,l=>{l!==this.GR({playerType:l.getPlayerType()})&&l.dispose()}); g.H(this,a);this.S=this.K=this.L=new g.b1(p.O());this.X=a}fz(){for(const p of Object.values(this.U))p.dispose();s3(this);this.L.dispose();super.fz()}GO(p){return p?p===1?this.K:this.S.getVideoData().enableServerStitchedDai&&p===2?this.S.getVideoData().s1?this.U[2]||this.S:this.S:this.U[p]||null:this.S}GR(p){var a=p.cpn;p=p.playerType;if(a)a:{for(const l of Object.values(this.U))if(l.J5()===a){a=l;break a}a=this.D[a]||null}else a=p?this.GO(p):this.S;return a}jb(){return this.K}XI(p){this.K=p}zm(){return this.S}Kg(p){this.S= p;fD(this)}};g.RI.prototype.wD=Gl(48);g.RI.prototype.Tu=Gl(46);var oKf=class extends g.kI{constructor(p,a,l,y=0){super(l.bY());this.I4=p;this.videoData=a;this.duration=y;this.L=this.startTimeSecs=0;this.S=this.U=!0;this.j=new ZKE((S,n)=>void this.Xu(S,n))}X(){}J5(){return this.videoData.clientPlaybackNonce}getVideoData(){if(super.getVideoData().A("html5_huli_ssdai_use_playback_state")){const p=lAA(this.I4,super.getCurrentTime())||super.getVideoData(); this.videoData.clientPlaybackNonce!==p.clientPlaybackNonce&&k8(this.j,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:p.clientPlaybackNonce});return this.videoData}return lAA(this.I4,super.getCurrentTime())||super.getVideoData()}getCurrentTime(p){let a=super.getCurrentTime();if(super.getVideoData().A("html5_huli_ssdai_use_playback_state")){this.L===0?p||(a-=this.startTimeSecs,super.getVideoData().A("html5_ssdai_log_missed_ad_impressions")&&this.S&&this.U&&a>1&&this.Xu("sdai-admiss",{cpn:this.J5(), ct:a.toFixed(3),pfs:this.U}),this.S=!1):p&&(a=this.L);let l;l=p?this.I4.bS||super.getCurrentTime():Uho(this.I4,super.getCurrentTime());a!==l&&k8(this.j,`time${p??!1}`,{time:a,ref:l,ct:p??!1})}else a=p?this.I4.bS||a:Uho(this.I4,a);return a}getDuration(){if(super.getVideoData().A("html5_huli_ssdai_use_playback_state")){const p=$EA(this.I4,super.getCurrentTime());this.duration!==p&&k8(this.j,"duration",{dur:this.duration,ref:p});return this.duration}return $EA(this.I4,super.getCurrentTime())}aQ(p){this.duration= p}},ZKE=class{constructor(p){this.Xu=p;this.L={}}};var y9A,o4r;y9A=class{constructor(p){this.end=this.start=p}};g.u1=class{constructor(){this.L=new Map;this.U=new Map;this.S=new Map}Uo(p,a){if(a===1)return this.L.get(p);if(a===2)return this.U.get(p);if(a===3)return this.S.get(p)}YZ(p,a,l,y){l={Nt:y,e3:l};a?this.U.set(p,l):this.L.set(p,l)}clearAll(){this.L.clear();this.U.clear();this.S.clear()}};g.u1.prototype.x0=Gl(58);o4r=class{constructor(p){this.Y=p;this.S=[];this.U=new Map;this.j=new Map;this.L=new Map;this.hg={Yq:()=>this.U, gEO:()=>this.j, NC:()=>this.S}; this.X=this.Y.A("html5_huli_ssdai_deprecate_playback_timeline_id")}clear(){this.S=[];this.U.clear();this.j.clear();this.L.clear()}GR({cpn:p,ME:a}){if(p&&(p=this.U.get(p)))return p;if(a&&(a=(this.X?this.U:this.j).get(a)))return a}};g.OH=class extends g.YB{constructor(p,a,l,y){super();this.api=p;this.Y=a;this.playback=l;this.app=y;this.N=new g.u1;this.S=new Map;this.Ws=new Map;this.w7=null;this.Fu=NaN;this.iT=this.NO=null;this.Ps=new g.SF(()=>{EqO(this,this.Fu,this.NO||void 0)}); this.events=new g.yr(this);this.ac=15E3;this.G=new g.SF(()=>{this.K=!0;this.playback.ib(this.ac);bd(this);this.playback.getVideoData().nh()&&this.eb({togab:this.D?.identifier});this.Ma(!1)},this.ac); this.K=!1;this.X=new Map;this.Hs=[];this.D=null;this.ZN=new Set;this.C=[];this.Ic=[];this.Ba=[];this.Ha=[];this.QY=new Set;this.bS=0;this.UO=!1;this.dG=new Set;this.Kx=new Set;this.Ro=new Set;this.Tm=new Set;this.E6=this.Fw=0;this.CO=this.Lx=!1;this.x3=this.U="";this.Sl=null;this.logger=new g.Xj("dai");this.wq="";this.Bs=!0;this.hg={wZc:()=>this.S, Yq:()=>this.L.hg.Yq(), lIm:()=>this.U, mc7:S=>{this.onCueRangeEnter(this.S.get(S))}, j4s:S=>{this.onCueRangeExit(this.S.get(S))}, n3v:(S,n)=>{this.S.set(S,n)}, MaO:S=>{this.x3=S}, qJ:()=>this.qJ(), WBY:S=>this.L.L.get(S), Dem:()=>this.Sl, NC:()=>this.L.hg.NC(), IK:(S,n)=>{this.IK(S,n)}}; this.playback.getPlayerType();this.L=new o4r(this.Y);this.playback.gr(this);this.Rc=this.Y.Mc();g.H(this,this.Ps);g.H(this,this.events);g.H(this,this.G);this.Y.A("html5_use_new_ssdai_transition_detector")?this.playback.subscribe("playbackstarted",this.IK,this):(this.events.J(this.api,g.tT("serverstitchedcuerange"),this.onCueRangeEnter),this.events.J(this.api,g.jh("serverstitchedcuerange"),this.onCueRangeExit));this.zn=this.Y.A("html5_ssdai_report_stitch_error_after_skip_ad");U3(this.app.h3(),this.playback, !1)}Ye(p,a,l,y,S,n,V){var Z=$xO(this,S,S+y);this.K&&this.eb({adaftto:1});a||this.eb({missadcon:1,enter:S,len:y,aid:V});this.j&&!this.j.VE&&(this.j.VE=V);this.CO&&this.eb({adfbk:1,enter:S,len:y,aid:V});var z=this.playback;S>n&&YE(this,{reason:"enterTime_greater_than_return",Dy:S,w$:n});var d=z.NE()*1E3;Sz&&YE(this,{reason:"parent_return_greater_than_content_duration",w$:n,XXu:z});(z=szr(this.L, S))&&z.w$>S&&YE(this,{reason:"overlapping_playbacks",mel:p.video_id||"",Dy:S,w$:n,SCl:z.ME,UEO:z.videoData?.videoId||"",NGO:z.durationMs,Y6v:z.Dy,LBl:z.w$});if(Z&&z)for(d=0;dG===V)&&(this.eb({rejectAdBreakAttl:V},!0),this.Ha.push(V)); Qh(this);return}p.cpn||(p.cpn=g.NM(16));Z=p.cpn;p=new g.Uj(this.Y,p);d=this.Y.A("html5_huli_ssdai_deprecate_playback_timeline_id")?Z:`ss_childplayback_${znA++}`;p.ME=d;$fZ(this.L,{ME:d,playerType:l,durationMs:y,Dy:S,w$:n,cpn:Z,videoData:p,errorCount:0,ssdaiAdsConfig:a,wh:V?V:z?z.wh:Z});zNq(this,p,y);this.eb({attlDone:n-S,acpn:Z,et:S,prt:n});this.G.isActive()&&(this.K=!1,this.G.stop(),bd(this),this.Ma(!0));return p}onCueRangeEnter(p){const a=p.getId();this.eb({oncueEnter:1,cpn:a,start:p.start,end:p.end, ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.bG()||0).toFixed(3)});var l=this.L.GR({cpn:a});this.eb({enterAdCueRange:1});var y=this.x3||this.qJ().cpn;const S=this.L.GR({cpn:y})??this.qJ();l&&(y=this.playback.getCurrentTime(),l.startTimeSecs=p.start/1E3,l={SN:S,FK:l,Nr:y},YS(this,a,p.start/1E3,y),Dk(this,l));this.Bs=!1}IK(p,a,l){if(p&&a){this.Bs=l??!1;l=this.app.h3().j?.J5()||this.playback.J5();var y=this.L.GR({cpn:l})??this.qJ();p=this.L.GR({cpn:p})??this.qJ();p.startTimeSecs= a;p.playerType===2&&(p.kS=p.kS!=null?Math.min(p.kS,a):a);var S=this.playback.getCurrentTime();YS(this,l,a,S);Dk(this,{SN:y,FK:p,Nr:S})}}Tj(p,a){if(p===this.playback.J5())U3(this.app.h3(),this.playback,!1);else{const l=this.Ws.get(p);l?(aQr(l,a,!this.Bs),U3(this.app.h3(),l,!0)):this.eb({nop_s:p})}}onCueRangeExit(p){var a=this.playback.getCurrentTime()*1E3,l=p.getId();for(var y of this.S.values())if(y.getId()!==l&&a>=y.start&&a<=y.end)return;if(l=this.L.GR({cpn:l}))a=this.playback.getCurrentTime(), y=this.qJ(),y.startTimeSecs=p.end/1E3,l={SN:l,FK:y,Nr:a},YS(this,this.playback.J5(),p.end/1E3,a),Dk(this,l)}qJ(){return{cpn:this.playback.J5(),durationMs:0,Dy:0,playerType:1,w$:0,videoData:this.playback.getVideoData(),errorCount:0,wh:""}}VY(){if(this.CO)return!1;let p=void 0;this.x3&&(p=this.L.GR({cpn:this.x3}));return this.playback.getVideoData().nh()?!!p&&!p.Sd:!!p}seekTo(p=0,a={},l=!1,y=null){lO(this,this.x3);if(this.playback.getVideoData().nh()&&p<=this.bS)this.playback.pauseVideo(),this.bS=0, dJ$(this,p);else if(this.Bs=this.UO=!0,l)EqO(this,p,a);else{l=this.app.zm();const S=l===this.w7?this.iT:null;Pe(this,!1);this.Fu=p;this.NO=a;y!=null&&this.Ps.start(y);l&&(this.iT=S||l.getPlayerState(),l.iP(a),this.w7=l)}}fz(){Pe(this,!1);Md(this);hU(this);super.fz()}WY(p){this.Lx=p;this.eb({swebm:p})}vW(p,a,l){if(l&&a){var y=this.X.get(p);if(y){y.locations||(y.locations=new Map);var S=Number(a.split(";")[0]);l=new g.Xh(l);this.eb({hdlredir:1,itag:a,seg:p,hostport:tZ(35,l)});y.locations.set(S,l)}}}us(p, a,l,y,S,n){var V=y===3,Z=O9o(this,p,a,y,l,n);if(!Z)return YN(this,a,V),Z=g.BX(this,a)?"undec":"ncp",this.eb({gvprp:Z,mt:p,seg:a,tt:y,itag:l,ce:n}),null;V||this.X.set(a,Z);n=Z.wh;y=this.Uo(a-1,y,S)?.Nt||"";y===""&&this.eb({eds:1});S=LEv(this,Z.ssdaiAdsConfig);V=this.playback.getVideoData();V=V.Bf[V.S?.containerType||0];Z=Z.Rr&&a>=Z.Rr?Z.Rr:void 0;Z={T3:n?fR(this,n):[],adsConfig:S,Nt:y,cC:Z,jx:So(V.split(";")[0]),Xs:V.split(";")[1]||""};y={PW:Z};this.Rc&&this.eb({gvprpro:"v",sq:a,mt:p.toFixed(3),itag:l, acpns:Z.T3?.join("_")||"none",abid:n});return y}eY(p){a:{if(!this.CO){var a=Fq(this,p);if(!this.playback.getVideoData().nh()||!a?.Sd)break a}a=void 0}var l=a;if(!l)return this.eb({gvprp:"ncp",mt:p}),null;a=l.wh;var y=LEv(this,l.ssdaiAdsConfig);l=l.Rr&&l.vY&&p>=l.vY?l.Rr:void 0;var S=this.playback.getVideoData();S=S.Bf[S.S?.containerType||0];y={T3:a?fR(this,a):[],adsConfig:y,cC:l,jx:So(S.split(";")[0]),Xs:S.split(";")[1]||""};this.eb({gvprpro:"v",mt:p.toFixed(3),acpns:y.T3?.join("_")||"none",abid:a}); return y}Cy(p,a,l,y,S,n){const V=Number(l.split(";")[0]);var Z=y===3;p=O9o(this,p,a,y,l,n);this.eb({gdu:1,seg:a,itag:V,pb:`${!!p}`});if(!p)return YN(this,a,Z),null;p.locations||(p.locations=new Map);if(!p.locations.has(V)){n=p.videoData.getPlayerResponse()?.streamingData?.adaptiveFormats;if(!n)return this.eb({gdu:"noadpfmts",seg:a,itag:V}),YN(this,a,Z),null;var z=n.find(G=>G.itag===V); if(!z||!z.url){p=p.videoData.videoId;y=[];for(var d of n)y.push(d.itag);this.eb({gdu:"nofmt",seg:a,vid:p,itag:V,fullitag:l,itags:y.join(",")});YN(this,a,Z);return null}p.locations.set(V,new g.Xh(z.url,!0))}d=p.locations.get(V);if(!d)return this.eb({gdu:"nourl",seg:a,itag:V}),YN(this,a,Z),null;d=new Ev(d);this.Lx&&(d.get("dvc")?this.eb({dvc:d.get("dvc")||""}):d.set("dvc","webm"));(y=this.Uo(a-1,y,S)?.Nt)&&d.set("daistate",y);p.Rr&&a>=p.Rr&&d.set("skipsq",`${p.Rr}`);(y=this.playback.getVideoData().clientPlaybackNonce)&& d.set("cpn",y);y=[];p.wh&&(y=fR(this,p.wh),y.length>0&&d.set("acpns",y.join(",")));Z||this.X.set(a,p);Z=null;Z=d.get("aids");S=d.G9();S?.length>2048&&this.eb({urltoolong:1,sq:a,itag:V,len:S.length});this.Rc&&(S&&(n=p.cpn,d=p.wh,$No(this,n,d),d&&!this.Ro.has(d)&&(n=ruf(this,n,d),z=mor(this,d),this.eb({iofa:n}),this.eb({noawnzd:z-n}),this.eb({acpns:y.join("."),aids:Z?.replace(/,/g,".")}),this.Ro.add(d))),this.eb({gdu:"v",seg:a,itag:l,ast:p.Dy.toFixed(3),alen:p.durationMs.toFixed(3),acpn:p.cpn,avid:p.videoData.videoId})); return S}i4(p,a,l=!1){const y=gj(this,p,a);if(y){this.zn&&(this.jl=y);var S=void 0,n=y.wh;if(n){this.eb({skipadonsq:a,sts:l,abid:n,acpn:y.cpn,avid:y.videoData.videoId});l=this.L.L.get(n);if(!l)return;for(const V of l)V.Rr=a,V.vY=p,V.Dy>y.Dy&&(S=V)}lO(this,this.x3);this.U=y.cpn;deF(this);this.api.A("html5_ssdai_enable_media_end_cue_range")&&this.playback.dD(this.U);p=this.playback.getCurrentTime();VAr(this,y,S,p,p,!1,!0);onv(this)}}AQ(){var p=this.L;for(const a of p.S)a.Rr=NaN,a.vY=NaN;deF(this);this.eb({rsac:"resetSkipAd", sac:this.U});this.Tm.delete(this.U);this.U="";this.zn&&(this.jl=void 0)}Uo(p,a,l){return this.N.Uo(p,a,l)}YZ(p,a,l,y,S,n,V,Z,z){y.length>0&&this.eb({onssinfo:1,sq:p,start:a.toFixed(3),cpns:y.join(","),ds:S.join(","),isVideo:V?1:0});if(this.zn&&this.jl&&this.jl.Rr&&y.length>0)for(var d of y)if(d===this.jl.cpn){this.wq!==d&&(this.eb({skiperror:1,sq:p,acpn:this.jl.cpn,skipsq:this.jl.Rr||0}),this.wq=d);break}z&&this.N.YZ(p,V,Z,z);if(V){if(y.length&&S.length)for(this.Tm.has(y[0])&&this.eb({skipfail:1, sq:p,acpn:y[0]}),p=a+this.Wk(),l=0;la.identifier===p.identifier))this.eb({timedoutcp:1}),this.G.start(0); else if(Nh(this.Ic,a=>a.identifier===p.identifier))this.eb({fetchedcp:1}),Qh(this); else if(this.G.isActive())this.eb({racingcp:`${this.D?.identifier}_${p.identifier}`});else{this.E6=(new Date).getTime()/1E3;this.eb({adf:1});let a=5E3;a&&p.event==="predictStart"&&(a-=p.L);this.ac=Math.max(a,15E3);this.K=!1;this.G.start(this.ac);this.D=p;this.N.clearAll();this.Hs=[]}}cR(p,a,l,y){l=l||{reason:"disablessdai"};if(p&&a){if(!gj(this,p,a))return!1;l.sq=a}if(this.CO)return!1;this.CO=!0;this.Fw>0&&(this.Fw=0,this.x3="",this.Y.A("html5_huli_ssdai_use_playback_state")&&this.Tj(this.playback.J5(), 0),this.api.publish("serverstitchedvideochange"));this.playback.ZY(l,y);return!0}BH(){this.eb({rstdaist:1});this.N.clearAll()}EG(p){p!==this.D?.identifier?this.eb({ignorenoad:p}):(this.ZN.add(p),this.eb({noadrcv:p}),this.D?.identifier===p&&Qh(this))}MR(p){if(this.CO)return this.eb({dai_disabled:p.event}),!1;if(this.playback.getVideoData().nh()&&(p.event==="continue"||p.event==="stop"))return!1;var a=Hq(this.api.DN());if(a=a?a.MR(p):!1)this.j={fm:p.identifier,Cp:p.startSecs};else if(this.j&&this.j.fm=== p.identifier&&p.startSecs>this.j.Cp+1){this.eb({cueStChg:p.identifier,oldSt:this.j.Cp.toFixed(3),newSt:p.startSecs.toFixed(3),abid:this.j.VE});if(this.j.VE){const l=p.startSecs-this.j.Cp,y=this.L.L.get(this.j.VE);if(y)for(const S of y)S.Dy>=0&&(S.Dy+=l*1E3,this.Y.A("html5_ssdai_update_timeline_on_start_time_change")&&(S.w$+=l*1E3),this.eb({newApEt:S.Dy,newApPrt:S.w$,acpn:S.cpn}))}this.j.Cp=p.startSecs}this.Y.A("html5_ssdai_log_missing_ad_config_reason")&&(a?this.QY.add(p.identifier):this.QY.has(p.identifier)&& this.QY.delete(p.identifier));return a}WP(p){let a="";p?p.event==="unknown"?a="unknown":this.QY.has(p.identifier)?this.j&&this.j.fm===p.identifier?this.j.fm===p.identifier?a="pending":Nh(this.Ic,l=>l.identifier===p.identifier)||(a="noAdsAdded"):a="wrongAdBreakInfo":a="unscheduled":a="noCuepoint"; return a}DP(p){return this.CO?!1:!!Fq(this,p)}kK(p){if(this.Y.A("html5_lifa_ignore_multiple_skips")&&this.Sl)return this.eb({ufs_ad:this.U,ufs_cur:this.x3,ufs_cont:this.qJ().cpn}),!1;lO(this,this.x3);this.playback.pauseVideo();const a=this.playback.getCurrentTime(),l=this.L.GR({cpn:this.x3});if(!l)return this.eb({skipFail:a}),!1;this.U=this.x3;this.UO=!1;this.api.A("html5_ssdai_enable_media_end_cue_range")&&this.playback.dD(this.U);i7r(this,l.wh);Cw$(this,l,this.qJ(),p);dJ$(this,a,{seekSource:89, qE:"lifa_skip"});this.Sl||(this.Sl=this.events.J(this.api,"progresssync",()=>{lw(this.api.L0(),(0,g.h)(),"ad_to_video");this.Sl&&(this.events.Kt(this.Sl),this.Sl=null)})); return!0}eb(p,a=!1){(a||this.Rc||this.playback.getVideoData().nh())&&this.playback.Xu("sdai",p)}};g.OH.prototype.x0=Gl(57);g.OH.prototype.ya=Gl(55);var znA=0;var dvf=class extends g.YB{constructor(p,a,l,y){super();this.api=p;this.Y=a;this.L=l;this.app=y;this.X=new Map;this.S=[];this.U=this.G=null;this.UO=NaN;this.D=this.j=this.C=null;this.K=new g.SF(()=>{wJF(this,this.UO,this.C||void 0)}); this.N=[];this.Sl=new g.SF(()=>{var S=this.N.pop();if(S){const n=S.ME,V=S.playerVars;S=S.playerType;V&&(V.prefer_gapless=!0,this.api.preloadVideoByPlayerVars(V,S,NaN,"",n),this.N.length&&this.Sl.JP(4500))}}); this.events=new g.yr(this);this.hg={Ril:()=>this.S}; this.L.getPlayerType();g.H(this,this.K);g.H(this,this.Sl);g.H(this,this.events);this.events.J(this.api,g.tT("childplayback"),this.onCueRangeEnter);this.events.J(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.J(this.api,"presentingplayerstatechange",this.jR)}onCueRangeEnter(p){if(this.L===this.app.zm()){var a=this.X.get(p);a?oEZ(this,a.target,a.HL,p):this.d$("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:p.toString()})}else if(a=this.S.find(y=>y.bA.Tp===p)){var l= a.bA; const y=l.target;l=l.HL;y?oEZ(this,y,l,p):HUZ(this,a.w$,l,p)}}onQueuedVideoLoaded(){const p=this.G;$D(this);p&&(wr(this,p)||this.d$("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:this.app.zm()?.getVideoData().clientPlaybackNonce,ccpn:`${p.playerVars.cpn}`}),this.app.zm().addCueRange(p.bA.Tp))}seekTo(p=0,a={},l=!1,y=null){if(l)wJF(this,p,a);else{l=this.app.zm()||null;const S=l===this.j?this.D:null;Vi(this,!1);this.UO=p;this.C=a;y!=null&&this.K.start(y);l&&(this.D=S||l.getPlayerState(), l.iP(),this.j=l)}}jR(p){p.j5(128)&&Xk(this)}isManifestless(){return TJ(this.L.getVideoData())}fz(){Vi(this,!1);nR(this);super.fz()}d$(p,a){this.L.d$(new g.cQ(p,a))}},nwv=0;var BPr="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");var G8O=class extends g.YB{constructor(){super();this.L=new II(5,null);g.H(this,this.L);this.S=new II(15,null);g.H(this,this.S)}dQ(p){if(p)return this.S.get(p)}fz(){this.L.removeAll();this.S.removeAll();super.fz()}};g.BIo=Uy(()=>{const p=window.AudioContext||window.webkitAudioContext;try{return new p}catch(a){return a.name}});var cyE=class extends g.t{constructor(p){super({W:"div",A9:["html5-video-player"],Z:{tabindex:p.O().disableOrganicUi?"":"-1",id:p.webPlayerContextConfig.rootElementId},V:[{W:"div",T:g.AW.VIDEO_CONTAINER,Z:{"data-layer":"0"}}]});this.app=p;this.Pf=this.d7(g.AW.VIDEO_CONTAINER);this.Ev=new g.hu(0,0,0,0);this.ju=null;this.nY=new g.hu(0,0,0,0);this.QF=this.uh=this.tM=NaN;this.ZJ=this.k_=this.aq=this.y0=!1;this.Lm=NaN;this.Yx=!1;this.ws=null;this.ql=new g.SF(()=>{this.app.O().A("web_enable_smart_zoom")&& this.app.pz.getInternalApi().isAutocropEnabled()||this.resize()},100); this.zQ=()=>{this.element.focus({preventScroll:!0})}; this.Ua=()=>{this.app.pz.publish("playerUnderlayVisibilityChange","visible");this.ju.classList.remove(g.AW.VIDEO_CONTAINER_TRANSITIONING);this.ju.removeEventListener(LH,this.Ua);this.ju.removeEventListener("transitioncancel",this.Ua)}; this.Pj=this.s9=!1;const a=this.element.addEventListener,l=this.element.removeEventListener;this.addEventListener=(S,n,V)=>{a.apply(this.element,[S,n,V])}; this.removeEventListener=(S,n,V)=>{l.apply(this.element,[S,n,V])}; const y=p.O();y.transparentBackground&&this.YY("ytp-transparent");y.controlsType==="0"&&this.YY("ytp-hide-controls");g.XX(this.element,"ytp-exp-bottom-control-flexbox");g.XX(this.element,"ytp-modern-caption");y.A("enable_new_paid_product_placement")&&!g.cy(y)&&g.XX(this.element,"ytp-exp-ppp-update");g.XX(this.element,"ytp-livebadge-color");SsE(this.element,i3E(p));this.wZ=!1;this.mV=new g.J9(NaN,NaN);OIo(this);this.J(p.pz,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.H(this,this.ql)}YY(...p){g.eP(this.element, p)}W9(){this.ju&&(this.ju.removeEventListener("focus",this.zQ),g.hZ(this.ju),this.ju=null)}Wv(){this.nz();const p=this.app.O();p.n8||this.YY("tag-pool-enabled");p.D&&this.YY(g.AW.HOUSE_BRAND);p.playerStyle==="gvn"&&(this.YY("ytp-gvn"),this.element.style.backgroundColor="transparent");p.Lx&&(this.Lm=g.HT("yt-dom-content-change",this.resize,this));this.J(window,"orientationchange",this.resize,this);this.J(window,"resize",this.resize,this)}fJ(p){g.vK(this.app.O());this.ZJ=!p;Au(this)}resize(){if(this.ju){var p= this.yS();if(!p.isEmpty()){this.app.pz.isFullscreen()&&oJ()&&this.ql.start();var a=!g.dw(p,this.Ev.getSize()),l=k2M(this);a&&(this.Ev.width=p.width,this.Ev.height=p.height);p=this.app.O();(l||a||this.Pj||p.Lx)&&this.app.pz.publish("resize",this.getPlayerSize())}}}d3(p,a){this.updateVideoData(a)}updateVideoData(p){if(this.ju){var a=this.app.O();hX&&(this.ju.setAttribute("x-webkit-airplay","allow"),p.title?this.ju.setAttribute("title",p.title):this.ju.removeAttribute("title"));this.ju.setAttribute("controlslist", "nodownload");a.Aa&&p.videoId&&(this.ju.poster=p.uG("default.jpg"))}a=g.DT(p,"yt:bgcolor");this.Pf.style.backgroundColor=a?a:"";this.tM=SS(g.DT(p,"yt:stretch"));this.uh=SS(g.DT(p,"yt:crop"),!0);g.OW(this.element,"ytp-dni",p.XX);this.resize()}setGlobalCrop(p){this.QF=SS(p,!0);this.resize()}setCenterCrop(p){this.y0=p;this.resize()}M5(){}getPlayerSize(){var p=this.app.O();const a=this.app.pz.isFullscreen();var l=p.externalFullscreen&&g.x3(p);if(a&&oJ()&&!l)return new g.J9(window.outerWidth,window.outerHeight); l=!isNaN(this.mV.width)&&!isNaN(this.mV.height);const y=this.app.O().A("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.O().A("web_watch_enable_fs_squeezeback_panels");if(a&&!l&&y)return new g.J9(this.element.clientWidth,this.element.clientHeight);if(a||p.Q5){let S;window.matchMedia&&(p="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.ws&&this.ws.media===p||(this.ws=window.matchMedia(p)),S=this.ws&&this.ws.matches);if(S)return new g.J9(window.innerWidth, window.innerHeight)}else if(l)return this.mV.clone();return new g.J9(this.element.clientWidth,this.element.clientHeight)}yS(){var p=this.app.O().A("enable_desktop_player_underlay");const a=this.getPlayerSize(),l=g.ak(this.app.O().experiments,"player_underlay_min_player_width");return p&&this.aq&&a.width>l?(p=g.ak(this.app.O().experiments,"player_underlay_video_width_fraction"),new g.J9(Math.min(a.height*this.getVideoAspectRatio(),a.width*p),Math.min(a.height,a.width*p/this.getVideoAspectRatio()))): a}getVideoAspectRatio(){return isNaN(this.tM)?DrE(this):this.tM}getVideoContentRect(p){const a=this.yS();p=YZ(this,a,this.getVideoAspectRatio(),p);return new g.hu((a.width-p.width)/2,(a.height-p.height)/2,p.width,p.height)}CE(p){this.aq=p;this.resize()}kZ(){return this.k_}onMutedAutoplayChange(){Au(this)}setInternalSize(p){g.dw(this.mV,p)||(this.mV=p,this.resize())}fz(){this.Lm&&g.DC(this.Lm);this.W9();super.fz()}};var ryr=class{constructor(){this.csn=g.c2();this.clientPlaybackNonce=null;this.elements=new Set;this.U=new Set;this.L=new Set;this.S=new Set}click(p,a){this.elements.has(p);this.L.has(p);const l=g.c2();l&&p.visualElement&&g.F2(l,p.visualElement,a)}createClientVe(p,a,l,y=!1){this.elements.has(p);this.elements.add(p);l=Pxr(l);p.visualElement=l;const S=g.c2(),n=g.rM();S&&n&&(g.nU("combine_ve_grafts")?LP(aJ(),l,n):g.Oc(g.P2)(void 0,S,n,l));a.addOnDisposeCallback(()=>{this.elements.has(p)&&this.destroyVe(p)}); y&&this.S.add(p)}createServerVe(p,a,l=!1){this.elements.has(p);this.elements.add(p);a.addOnDisposeCallback(()=>{this.destroyVe(p)}); l&&this.S.add(p)}destroyVe(p){this.elements.has(p);this.elements.delete(p);this.U.delete(p);this.L.delete(p);this.S.delete(p)}Sl(p,a){this.clientPlaybackNonce!==a&&(this.clientPlaybackNonce=a,f3(aJ(),p),eNA(this))}setTrackingParams(p,a){this.elements.has(p);a&&(p.visualElement=g.dn(a))}iM(p,a,l){this.elements.has(p);a?this.L.add(p):this.L.delete(p);const y=g.c2(),S=p.visualElement;this.S.has(p)?y&&S&&(a?g.bu(y,[S]):g.Ds(y,[S])):a&&!this.U.has(p)&&(y&&S&&g.bo(y,S,void 0,l),this.U.add(p))}hasVe(p){return this.elements.has(p)}};g.MS=class extends g.YB{constructor(p,a,l,y){super();this.logger=new g.Xj("App");this.zo=this.TM=!1;this.MN={};this.AT=[];this.P4=!1;this.qz=null;this.intentionalPlayback=!1;this.u1=!0;this.BY=!1;this.jz=this.wF=this.eG=null;this.GP=!0;this.mediaElement=this.lM=null;this.TQ=NaN;this.O3=!1;this.qe=this.Ce=this.Yy=this.screenLayer=this.playlist=null;this.XR=[];this.DZ=0;this.hg={h3:()=>this.R4, B$T:()=>this.Yy}; if(!l)throw Error("b/179532961");this.z5=a?.args||{};this.webPlayerContextConfig=l;a=this.z5;this.Y=new kPv(a,l,l.canaryState,y,this);g.H(this,this.Y);fFf(this.Y);l=wAf(this.Y);this.Y.Mc()&&this.JK("h5vcc",l);this.Y.experiments.Cz("jspb_serialize_with_worker")&&aWv();this.Y.experiments.Cz("gzip_gel_with_worker")&&iD();this.Y.S&&!lrh&&(window.addEventListener(VQ?"touchstart":"click",yyF,{capture:!0,passive:!0}),lrh=!0);this.A("html5_onesie")&&(this.SF=new pCq(this.Y),g.H(this,this.SF));this.e8().L.Zy(v$O)&& (this.s6=new RSr(Oh(g.ur(this.Y),this.Y.E6,this.Y.experiments),new VVO(this.Y.experiments),void 0,()=>void this.wN()),g.H(this,this.s6)); this.Wq=EA(wP(this.Y)&&!0,a.enablesizebutton);this.Nz=EA(!1,a.player_wide);this.visibility=new VWF;g.H(this,this.visibility);this.A("web_log_theater_mode_visibility")&&this.rj(EA(!1,a.player_wide));this.TM=EA(!1,a.external_list);this.events=new g.yr(this);g.H(this,this.events);this.A("start_client_gcf")&&(MV(Fh(),{Q2:C2,Ur:jgO()}),this.Pc=Fh().resolve(C2),YOF(this.Pc));this.A2=new g4;g.H(this,this.A2);this.P8=new ryr;l=new TYZ;this.pz=new g.q0(this,l);g.H(this,this.pz);this.template=new cyE(this); g.H(this,this.template);this.appState=1;this.i_=FCf(this);g.H(this,l);this.u$={internalvideodatachange:this.JM,playbackready:this.Gl,playbackstarted:this.nK,statechange:this.Mo};this.Oj=new P2A(this.pz);this.Ne=sAe(this);l=this.Y.D;!1!==l&&this.JK("badps",{hbp:l,hostname:window.location.hostname,ps:this.Y.playerStyle});this.QQ=new SOh(this.Y,this.Ne);this.pz.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||XS(this.Ne))&&eC$(this);l=10;g.ur(this.Y)&&(l=3);Kr(this.Y)&&(l=g.ak(this.Y.experiments, "tvhtml5_unplugged_preload_cache_size"));this.R4=new g.RI(this.pz,l);l=PqO(this);this.R4.XI(l);IeM(this);this.T6={airplayactivechange:this.mp,airplayavailabilitychange:this.No,beginseeking:this.S4,sabrCaptionsDataLoaded:this.BQ,endseeking:this.j4,internalAbandon:this.yC,internalaudioformatchange:this.Yj,internalvideodatachange:this.RA,internalvideoformatchange:this.vQ,liveviewshift:this.fM,playbackstalledatstart:this.HQ,progresssync:this.g9,onAbnormalityDetected:this.hs,onSnackbarMessage:this.AF, onLoadProgress:this.e4,SEEK_COMPLETE:this.QC,SEEK_TO:this.D0,onVideoProgress:this.tF,onLoadedMetadata:this.Ee,onAutoplayBlocked:this.LM,onPlaybackPauseAtStart:this.d9,playbackready:this.WQ,statechange:this.Xj,newelementrequired:this.jZ,heartbeatparams:this.XB,videoelementevent:this.kW,drmoutputrestricted:this.Ue,signatureexpired:this.lH,nonfatalerror:this.w9,reloadplayer:this.bH};this.Lc=new g.yr(this);g.H(this,this.Lc);this.SK=new G8O;g.H(this,this.SK);this.vv=this.XN=-1;this.Vo=new g.SF(this.template.resize, 16,this.template);g.H(this,this.Vo);this.I4=new dvf(this.pz,this.Y,this.jb(),this);this.Q4=new n4A(this);g.H(this,this.Q4);this.V1=new SuF(this);g.H(this,this.V1);cgO(this.Y.L.c);this.events.J(this.pz,g.tT("appapi"),this.vK);this.events.J(this.pz,g.jh("appapi"),this.u7);this.events.J(this.pz,g.tT("appprogressboundary"),this.uH);this.events.J(this.pz,g.jh("applooprange"),this.Y_);this.events.J(this.pz,"presentingplayerstatechange",this.jR);this.events.J(this.pz,"resize",this.pM);this.template.lT(F6(document, p));this.events.J(this.pz,"offlineslatestatechange",this.CK);this.events.J(this.pz,"sabrCaptionsTrackChanged",this.zs);this.events.J(this.pz,"sabrCaptionsBufferedRangesUpdated",this.Oe);this.Ne.B.O().ej&&n5(this.Ne,"offline");this.Y.ac&&g.o5("ux",g.arF);p=g.ak(this.Y.experiments,"html5_defer_fetch_att_ms");this.zN=new g.SF(this.un,p,this);g.H(this,this.zN);this.EE().Kh()&&(g.X_()&&this.EE().Ws.push("mdx"),lP(this));this.QQ.tick("fs");yLe(this);this.Y.ac&&n5(this.Ne,"ux",!0);g.x3(this.Ne.B.O())&&n5(this.Ne, "embed");this.A("web_player_sentinel_is_uniplayer")||g.tX(new g.Qm("Player experiment flags missing","web_player_sentinel_is_uniplayer"));p=this.A("web_player_sentinel_yt_experiments_sync");l=g.nU("web_player_sentinel_yt_experiments_sync");p!==l&&g.tX(new g.Qm("b/195699950",{yt:p,player:l}));this.wT=y3v(this);if(p=g.ak(this.Y.experiments,"html5_block_pip_safari_delay"))this.pm=new g.SF(this.Sw,p,this),g.H(this,this.pm);xL=this.Y.Ha;this.pz.publish("applicationInitialized")}static create(p,a,l,y){try{const S= typeof p==="string"?p:`player${g.Oz(p)}`,n=kT[S];if(n){try{n.dispose()}catch(Z){g.MD(Z)}kT[S]=null}const V=new g.MS(p,a,l,y);V.addOnDisposeCallback(()=>{kT[S]=null;V.wT&&V.wT()}); return kT[S]=V}catch(S){throw g.MD(S),(S&&S instanceof Error?S:Error(String(S))).stack;}}iX(){return this.visibility}XI(p){const a=this.jb();if(p!==a){p.getVideoData().autonavState=a.getVideoData().autonavState;a.zA(this.u$,this);var l=a.getPlaybackRate();a.dispose();this.R4.XI(p);p.setPlaybackRate(l);p.A4(this.u$,this);lP(this)}}SE(){this.qz||(this.qz=g.wO(Lt(),MQM()));return this.qz}W9(p){if(this.mediaElement){this.Ce&&(this.events.Kt(this.Ce),this.Ce=null);g.uY(this.Lc);this.zm().W9(!0,!1,p);this.template.W9(); try{this.A("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Ic()}catch(a){g.tX(a)}this.mediaElement=null}}Kg(p,a,l=!1){if(p!==this.zm()){var y=null;l||(l=this.zm(),y=l.getPlayerState(),Hc(this.Ne,3),we(this,"cuerangesremoved",l.iN()),this.Q4&&!p.isGapless()&&l.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),l=p.Gp()&&l.Gp(),this.QQ.iS("iv_s"),mJq(this,l));p.getPlayerType()===1&&this.XI(p);l=p.getPlayerType();const S=this.R4.U[l]||null;p!==this.jb()&&p!==S&& (S?.dispose(),this.R4.U[l]=p);this.R4.Kg(p);this.mediaElement&&p.setMediaElement(this.mediaElement);p.A4(this.T6,this);p.rM()?KE(this,"setPresenting",!1):(this.d3("newdata",p,p.getVideoData()),y&&!g.p_(y,p.getPlayerState())&&this.Xj(new g.e2(p.getPlayerState(),y)),a=a&&p.getPlayerType()===1,p.Va()&&!a&&this.d3("dataloaded",p,p.getVideoData()),(a=(a=p.getVideoData().S)&&a.video)&&g.ZN(this.pz,"onPlaybackQualityChange",a.quality),we(this,"cuerangesadded",p.iN()),a=p.getPlayerState(),a.L(2)?DEF(this): a.L(8)?p.playVideo():p.Zv()&&p.pauseVideo(),a=this.jb(),p.getPlayerType()===2&&(p.getVideoData().zT=a.getVideoData().clientPlaybackNonce),p.getPlayerType()!==2||this.eD()||(p=p.getVideoData(),a.tJ(p.clientPlaybackNonce,p.g$||"",p.breakType||0,p.bf,p.videoId||"")))}}Hx(){this.jb()!==this.zm()&&this.Kg(this.jb())}h3(){return this.R4}GR(p){return this.R4.GR(p)}GO(p){return this.R4.GO(p)}jb(){return this.R4.jb()}zm(){return this.R4.zm()}Gl(){ev(this)||this.V5(5)}WQ(){if(!ev(this)){OL(this);var p=this.zm(), a=p.getPlayerState();p.Zv()?this.pauseVideo():a.isOrWillBePlaying()&&this.playVideo()}}canPlayType(p){return Fe(p)}O(){return this.Y}getVideoData(){return this.zm().getVideoData()}EE(){return this.jb().getVideoData()}getVideoLoadedFraction(p){return(p=this.GR({playerType:p}))?p.getVideoLoadedFraction():this.R4.L.getVideoLoadedFraction()}h9(){return this.template}DN(){return this.Ne}L0(){return this.QQ}GY(p,a=1,l){(a=this.GR({playerType:a}))&&a.uS(p,void 0,l)}ZH(){const p=this.Ne.ZH();this.pz.publish("videoStatsPingCreated", p);return p}getVolume(){return Math.round(this.pz.getVolume())}isMuted(){return this.pz.isMuted()}x8(){if(this.jb()===this.zm()&&this.lM)return this.lM.postId}un(){this.A("use_rta_for_player")||(g.ur(this.Y)?g.kw(this.Y,this.getVideoData().G()).then(p=>{XD(Lt(),p);MGr(this.getVideoData(),this.Y,this.SE())}):MGr(this.getVideoData(),this.Y,this.SE()))}zc(p){this.pz.publish("poTokenVideoBindingChange",p)}E4(p){this.pz.publish("d6de4videobindingchange",p)}Ln(){this.aC&&this.aC.Ln()}wH(p){this.aC=p}Ny(p){if(p=== 1){this.QQ.tick("vr"); var a=this.zm();a.Hw();m9F(this.QQ,a.getVideoData(),eyo(this));Vz(this.Ne)}a=this.Y;(HF(a)&&a.K||g.CP(a))&&(this.zm().getVideoData()?.enableServerStitchedDai||!this.eD())&&g.ZN(this.pz,"onAdStateChange",p)}setLoopVideo(p){const a=this.zm();a===this.jb()&&a.V9()!==p&&(a.setLoop(p),g.v0(this.pz,"onLoopChange",p))}getLoopVideo(){return this.zm().V9()}setLoopRange(p){var a=!1;!!this.lM!==!!p?a=!0:this.lM&&p&&(a=this.lM.startTimeMs!==p.startTimeMs||this.lM.endTimeMs!==p.endTimeMs||this.lM.postId!==p.postId|| this.lM.type!==p.type);if(a){a=this.zm();D6(a.getVideoData())&&a.Xu("slr",{et:p?.endTimeMs||-1});a=this.jb();a.RX("applooprange");if(p){var l=new g.yj(p.startTimeMs,p.endTimeMs,{id:"looprange",namespace:"applooprange"});a.addCueRange(l)}else this.EE().clipConfig=void 0,this.lM?.type!=="repeatChapter"||isNaN(Number(this.lM?.loopCount))||(l={loopCount:String(this.lM.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.i0("repeatChapterLoopEvent",l));this.lM=p;g.v0(this.pz,"onLoopRangeChange",p|| void 0);this.jb()===this.zm()&&(this.Y_(),a.m_())}}getLoopRange(){return this.lM}Y_(){let p="";const a=this.jb();this.lM?a!==this.zm()?p="pnea":DAe(this,a.getCurrentTime())&&(this.lM.loopCount=0,p="ilr"):p="nlr";const l=this.zm();D6(l.getVideoData())&&(this.A("html5_gapless_log_loop_range_info")?l.Xu("slrre",{rej:p,ct:a.getCurrentTime(),lst:this.lM?.startTimeMs,let:this.lM?.endTimeMs}):l.Xu("slrre",{}));p||zDE(this)}setPlaybackRate(p,a){if(!isNaN(p)){p=ji(this,p);var l=this.jb();l.getPlaybackRate()!== p&&(l.setPlaybackRate(p),a&&!this.Y.j&&g.V2("yt-player-playback-rate",p),g.ZN(this.pz,"onPlaybackRateChange",p))}}getCurrentTime(p,a=!0){var l=this.R4.EU;if(l)return l.getCurrentTime();const y=p===2&&this.getVideoData().enableServerStitchedDai;l=null;y?l=this.zm():l=this.GR({playerType:p});return l?y&&this.Yy?(p=this.R4.G)?p.getCurrentTime(a):l.getCurrentTime():a?(a=Mt(this,l),Jz(this,a.getCurrentTime(),a)):l.getCurrentTime():this.R4.L.getCurrentTime()}R1(){var p=this.GR({playerType:void 0});if(!p)return this.R4.L.R1(); p=Mt(this,p);return Jz(this,p.R1(),p)}getDuration(p,a=!0){var l=this.R4.EU;if(l)return l.getDuration();l=this.getVideoData();const y=p===2&&l.enableServerStitchedDai;let S=null;y?S=this.zm():S=this.GR({playerType:p});if(!S)return this.R4.L.getDuration();if(l.hasProgressBarBoundaries()&&!y){const n=Number(l.progressBarStartPosition?.utcTimeMillis),V=Number(l.progressBarEndPosition?.utcTimeMillis);if(!isNaN(n)&&!isNaN(V))return(V-n)/1E3}if(D6(l)&&!l.isLivePlayback)return aZ(this,p);if(a)return p=gV(this, S),Jz(this,p.getDuration(),p);y&&this.Yy?this.A("html5_huli_ssdai_use_playback_state")?(p=this.R4,p=p.j===p.G?p.j:null,p=(p==null?void 0:p.getDuration())||0):p=this.R4.G?.getDuration()||0:p=S.getDuration();return p}By(p){var a=this.GR({playerType:p});return a?this.eD(a)?(a=gV(this,a),a.By()-a.getCurrentTime()+this.getCurrentTime(p)):a.By():this.R4.L.By()}finishSegmentByCpn(){return[]}Wv(){this.template.Wv();var p=this.pz;p.state.element=this.template.element;const a=p.state.element;let l;for(l in p.state.L)p.state.L.hasOwnProperty(l)&& (a[l]=p.state.L[l]);(p=Rqh(this.template.element))&&this.events.J(this.template,p,this.onFullscreenChange)}getDebugText(p){var a=this.jb().mS(p),l=this.zm();if(l!==this.jb()){l=l.mS(p);for(var y of Object.keys(l))a["ad"+y]=l[y];if(p){y=a;l={};var S=F6(document,"movie_player");S&&(l.bounds=S.getBoundingClientRect(),l["class"]=S.className);S={};var n=g.m5("video-ads");n?(zir(n,S),S.html=n.outerHTML):S.missing=1;n={};const V=g.m5("videoAdUiSkipContainer"),Z=g.m5("ytp-ad-skip-button-container"),z=g.m5("ytp-skip-ad-button"), d=V||Z||z;d?(zir(d,n),n.ima=V?1:0,n.bulleit=Z?1:0,n.component=z?1:0):n.missing=1;l=JSON.stringify({player:l,videoAds:S,skipButton:n});y.ad_skipBtnDbgInfo=l}}p&&this.mediaElement&&(a["0sz"]=`${+B3(this.mediaElement.getSize())===0}`,a.op=this.mediaElement.Sl("opacity"),y=this.mediaElement.kp().y+this.mediaElement.getSize().height,a.yof=`${+y<=0}`,a.dis=this.mediaElement.Sl("display"));p&&((p=(0,g.DG)())&&(a.gpu=p),(p=this.Y.playerStyle)&&(a.ps=p),this.Y.Hs&&(a.webview=1),(p=this.webPlayerContextConfig.jsUrl)&& (a.js=p));a.debug_playbackQuality=this.pz.getPlaybackQuality(1);a.debug_date=(new Date).toString();a.origin=window.origin;a.timestamp=Date.now();delete a.uga;delete a.q;return JSON.stringify(a,null,2)}getFeedbackProductData(){const p={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.O().experiments.experimentIds.join(", "),player_release:"youtube.player.web_20250923_21_RC00"},a=this.getPlayerStateObject().Kq;a&&(p.player_error_code=a.errorCode,p.player_error_details=JSON.stringify(a.errorDetail)); return p}getPresentingPlayerType(p){return this.appState===1?1:ev(this)?3:p&&this.Yy?.VY(this.getCurrentTime())?2:this.zm().getPlayerType()}ma(){return!1}getPlayerStateObject(p){const a=this.R4.EU;return a?a.getPlayerState():this.GR({playerType:p}).getPlayerState()}getAppState(){return this.appState}kW(p){switch(p.type){case "loadedmetadata":this.Vo.start();for(var a of this.AT)CRZ(this,a.id,a.VB,a.P5,void 0,!1);this.AT=[];break;case "loadstart":this.QQ.iS("gv");break;case "progress":case "timeupdate":Jg(p.target.xo())>= 2&&this.QQ.iS("l2s");break;case "playing":g.wR&&this.Vo.start();if(g.ur(this.Y))p=!1;else{a=g.cc(this.DN());p=this.mediaElement.Sl("display")==="none"||B3(this.mediaElement.getSize())===0;var l=rr(this.template),y=this.zm().getVideoData(),S=g.cf(this.Y);y=nz(y);a=!l||a||S||y||this.Y.Tm;p=p&&!a}p&&(p=this.zm(),p.dt(),this.getVideoData().dG||(this.getVideoData().dG=1,this.jZ(),p.playVideo()))}}e4(p){g.OT(this.pz,"onLoadProgress",p)}HQ(){this.pz.publish("playbackstalledatstart")}BQ(p,a){this.pz.publish("sabrCaptionsDataLoaded", p,a)}zs(p){this.zm().MI(p)}Oe(p){this.zm().aN(p)}tF(p){p=Mt(this,this.zm());p=Jz(this,p.getCurrentTime(),p);g.ZN(this.pz,"onVideoProgress",p);this.Y.Xv&&this.visibility.N0()&&this.Y.wq&&!this.getVideoData()?.backgroundable&&this.pauseVideo()}LM(){g.ZN(this.pz,"onAutoplayBlocked");var p=this.zm().getVideoData();p&&(p.La=!0);g.x3(this.Y)&&(p={autoplayBrowserPolicy:PY(),autoplayIntended:gv(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback}, g.i0("embedsAutoplayStatusChanged",p))}g9(){this.pz.publish("progresssync")}d9(){g.OT(this.pz,"onPlaybackPauseAtStart")}Mo(p){if(this.getPresentingPlayerType()===1){p.j5(1)&&!p.state.L(64)&&this.EE().isLivePlayback&&this.jb().isAtLiveHead()&&this.pz.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(p.j5(2)){if(this.lM&&this.lM.endTimeMs>=(this.getDuration()-1)*1E3){zDE(this);return}DEF(this)}if(p.state.L(128)){var a=p.state;this.cancelPlayback(5);a=a.Kq;JSON.stringify({errorData:a,debugInfo:this.getDebugText(!0)}); g.ZN(this.pz,"onError",y0O(a.errorCode));g.OT(this.pz,"onDetailedError",{errorCode:a.errorCode,errorDetail:a.errorDetail,message:a.errorMessage,messageKey:a.RS,cpn:a.cpn});(0,g.h)()-this.Y.g$>6048E5&&g.OT(this.pz,"onReloadRequired")}a={};if(p.state.isPlaying()&&!p.state.isBuffering()&&!UV("pbresume","ad_to_video")&&UV("_start","ad_to_video")){const l=this.getVideoData();a.clientPlaybackNonce=l.clientPlaybackNonce;l.videoId&&(a.videoId=l.videoId);g.ew(a,"ad_to_video");KU("pbresume",void 0,"ad_to_video"); Vz(this.Ne)}this.pz.publish("applicationplayerstatechange",p)}}Xj(p){this.R4.EU||this.pz.publish("presentingplayerstatechange",p)}jR(p){o$(this,U9(p.state));p.state.L(1024)&&this.pz.isMutedByMutedAutoplay()&&(fF(this,{muted:!1,volume:this.i_.volume},!1),n1(this,!1))}onPlayerRequestSent(p){g.v0(this.pz,"onPlayerRequestSent",p)}JM(p,a){p==="newdata"&&lP(this);this.pz.publish("applicationvideodatachange",p,a)}Yj(p,a){this.A("html5_afmt_change_update_volume")&&OL(this);g.OT(this.pz,"onPlaybackAudioChange", this.pz.getAudioTrack().rG.name);this.pz.publish("internalaudioformatchange",this.pz.getAudioTrack().rG.id,a)}vQ(p){const a=this.zm().getVideoData();p===a&&g.ZN(this.pz,"onPlaybackQualityChange",p.S.video.quality)}Ai(){var p=this.R4.U[2]||null;p&&(p=p.getVideoData(),this.zm().Xu("ssdai",{cleanaply:1,acpn:p?.clientPlaybackNonce,avid:p.videoId,isDai:this.EE().enableServerStitchedDai?1:0}),delete this.R4.U[2])}RA(p,a){this.d3(p,this.zm(),a)}d3(p,a,l){this.Y.Mc()&&a.Xu("vdc",{type:p,vid:l.videoId||"", cpn:l.clientPlaybackNonce||""});a===this.jb()&&(this.Y.dE=l.oauthToken);a===this.jb()&&(this.getVideoData().enableServerStitchedDai&&!this.Yy?(this.jb().Xu("sdai",{initSstm:1}),this.Yy=new g.OH(this.pz,this.Y,this.jb(),this)):!this.getVideoData().enableServerStitchedDai&&this.Yy&&(this.Yy.dispose(),this.Yy=null));if(p==="newdata")Hc(this.Ne,2),this.pz.publish("videoplayerreset",a);else{if(!this.mediaElement)return;if(p==="dataloaded")if(this.jb()===this.zm()){if(Hj(l.g7,l.HJ),!this.jb().getPlayerState().isError()){var y= ev(this);this.EE().isLoaded();y&&this.V5(6);BTA(this);Su(this.Ne)||VO(this)}}else BTA(this);if(a.getPlayerType()===1&&(this.Y.Ws&&pU(this),this.getVideoData().isLivePlayback&&!this.Y.g8&&this.Sj("html5.unsupportedlive",2,"DEVICE_FALLBACK"),l.isLoaded()&&((vwM(l)||this.getVideoData().Sc)&&this.pz.publish("legacyadtrackingpingchange",this.getVideoData()),l.hasProgressBarBoundaries()&&(y=Number(this.getVideoData().progressBarEndPosition?.utcTimeMillis)/1E3,!isNaN(y))))){var S=this.By();S&&(S-=this.getCurrentTime(), y=(y-S)*1E3,S=this.MN.progressEndBoundary,S?.start!==y&&(S&&this.uJ([S]),y=new g.yj(y,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.jb().addCueRange(y),this.MN.progressEndBoundary=y))}this.pz.publish("videodatachange",p,l,a.getPlayerType())}g.ZN(this.pz,"onVideoDataChange",{type:p,playertype:a.getPlayerType()});this.Y_();(p=l.Rp)?this.P8.Sl(p,l.clientPlaybackNonce):eNA(this.P8)}V_(){al(this,null);g.OT(this.pz,"onPlaylistUpdate")}uH(p){delete this.MN[p.getId()];this.jb().removeCueRange(p); a:{p=this.getVideoData();var a=p.Hs?.contents?.singleColumnWatchNextResults?.autoplay?.autoplay?.sets||p.Hs?.contents?.twoColumnWatchNextResults?.autoplay?.autoplay?.sets;if(a)for(l of a){a=l.autoplayVideo||l.autoplayVideoRenderer?.autoplayEndpointRenderer?.endpoint;const y=g.K(a,g.zK);if(a!=null&&y?.videoId===p.videoId&&y?.continuePlayback){var l=a;break a}}l=null}(p=g.K(l,g.zK))&&g.v0(this.pz,"onPlayVideo",{sessionData:{autonav:"1",itct:l?.clickTrackingParams},videoId:p.videoId,watchEndpoint:p})}V5(p){p!== this.appState&&(p===2&&this.getPresentingPlayerType()===1&&(o$(this,-1),o$(this,5)),this.appState=p,this.pz.publish("appstatechange",p))}Sj(p,a,l,y,S){this.jb().f1(p,a,l,y,S)}isAtLiveHead(p,a=!1){var l=this.GR({playerType:p});if(!l)return this.R4.L.isAtLiveHead();p=gV(this,l);l=Mt(this,l);return p!==l?p.isAtLiveHead(Jz(this,l.getCurrentTime(),l),!0):p.isAtLiveHead(void 0,a)}yP(){const p=this.GR({playerType:void 0});return p?gV(this,p).yP():this.R4.L.yP()}seekTo(p,a,l,y,S,n){a=a!==!1;if(y=this.GR({playerType:y}))this.appState=== 2&&zH(this),this.eD(y)?DD(this)?this.Yy.seekTo(p,{seekSource:S},a,l):this.I4.seekTo(p,{seekSource:S},a,l):(this.A("html5_sabr_csdai_seek_log")||(n=""),y.seekTo(p,{eW:!a,yX:l,qE:"application"+(n??""),seekSource:S}))}seekBy(p,a,l,y){this.seekTo(this.getCurrentTime()+p,a,l,y,void 0,"_by")}QC(){g.ZN(this.pz,"SEEK_COMPLETE")}hs(){g.v0(this.pz,"onAbnormalityDetected")}AF(p){g.v0(this.pz,"onSnackbarMessage",p)}D0(p){const a=this.zm(),l=a.getVideoData();if(this.appState===1||this.appState===2)l.startSeconds= p;this.appState===2?a.getPlayerState().L(512)||zH(this):g.ZN(this.pz,"SEEK_TO",p)}mp(){this.pz.publish("airplayactivechange")}No(){this.pz.publish("airplayavailabilitychange")}showAirplayPicker(){this.zm().H1()}S4(){this.pz.publish("beginseeking")}j4(){this.pz.publish("endseeking")}getStoryboardFormat(p){return(p=this.GR({playerType:p}))?gV(this,p).getStoryboardFormat():this.R4.L.getStoryboardFormat()}XG(p){return(p=this.GR({playerType:p}))?gV(this,p).getVideoData().XG():this.R4.L.XG()}eD(p){p=(p|| this.zm()).getVideoData();if(DD(this))var a=p===this.Yy.playback.getVideoData();else a:{var l=this.I4;if(p===l.L.getVideoData()&&l.S.length)a=!0;else{for(a of l.S)if(p.ME===a.ME){a=!0;break a}a=!1}}return a}e1(p,a,l,y,S,n,V,Z){const z=DD(this);this.zm().Xu("appattl",{sstm:this.Yy?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:z});z?(l=this.Yy.Ye(p,a,l,y,S,n,V),p=l?.ME||"",(this.A("html5_ssdai_new_decoration_logic")||this.jb().getVideoData().cA)&&this.jb().cO(Z||"",a,l?.clientPlaybackNonce|| "")):p=ZGE(this.I4,p,l,y,S,n);return p}Ju(p,a,l,y,S,n,V){DD(this)&&this.Yy?.Ye(p,a,l,y,S,n,V)}EG(p){(this.A("html5_ssdai_new_decoration_logic")||this.jb().getVideoData().cA)&&this.jb().cO(p,"","");this.Yy?.EG(p)}HR(p=-1,a=Infinity){DD(this)||nR(this.I4,p,a)}wR(p,a,l){if(DD(this)){var y=this.Yy,S=l;(l=y.L.GR({ME:p}))?(S===void 0&&(S=l.w$),rXr(y,l,a,S)):y.Tf(`Invalid_timelinePlaybackId_${p}_specified`)}else{y=this.I4;let n=null;for(S of y.S)if(S.ME===p){n=S;break}n?(l===void 0&&(l=n.w$),NQZ(y,n,a,l)): Rx(y,"InvalidTimelinePlaybackId timelinePlaybackId="+p)}}enqueueVideoByPlayerVars(p,a,l=Infinity,y=""){this.eD();p=new g.Uj(this.Y,p);y&&(p.ME=y);RA(this,p,a,l)}queueNextVideo(p,a=1,l=NaN,y="",S=""){p=this.preloadVideoByPlayerVars(p,a,l,y,S);a=this.zm();p&&(this.A("html5_check_queue_on_data_loaded")?this.O().supportsGaplessShorts()&&a.getVideoData().K&&(l=this.V1,y=this.Q4.X,l.j!==p&&(l.S=a,l.j=p,l.U=1,l.L=p.getVideoData(),l.X=y,l.L.isLoaded()?l.D():l.L.subscribe("dataloaded",l.D,l))):(l=slh(a,p, this.Q4.X),l!=null?(a.Xu("sgap",l),a.getVideoData().K&&a.b1(!1)):(p=p.getVideoData(),a=this.V1,a.L!==p&&(a.L=p,a.U=1,p.isLoaded()?a.G():a.L.subscribe("dataloaded",a.G,a)))))}Vt(p,a,l=0,y=0){gV(this,this.zm()).EF();FeF(this.Q4,p,a,l,y).then(()=>{g.OT(this.pz,"onQueuedVideoLoaded")},()=>{})}f0(){return this.Q4.f0()}VF(p){const a=this.Q4.L; return a?a.DG(p):!1}clearQueue(p=!1,a=!1){this.Q4.clearQueue(p,a)}loadVideoByPlayerVars(p,a=1,l,y,S,n){var V=this.jb();if(a===2&&this.EE().enableServerStitchedDai&&V&&!V.Sr())return V.Xu("lvonss",{vid:p?.videoId||"",ptype:a}),!1;var Z=!1;V=new g.Uj(this.Y,p);V.Q5=n;g.cy(this.Y)&&!V.Yo&&zR(this.QQ);this.QQ.timerName=V.Sl??"";this.QQ.Ut("pl_i");this.A("web_player_early_cpn")&&V.clientPlaybackNonce&&this.QQ.infoGel({clientPlaybackNonce:V.clientPlaybackNonce});xJq(V).supportsVp9Encoding===!1&&this.zm().Xu("noVp9enc", {});if(this.O().supportsGaplessShorts()){n=hDe(this.Q4,V,a);if(n==null){o$(this,-1);this.Q4.L?.getVideoData().isAd()||DH(this);p=this.Q4;p.app.O().A("html5_gapless_new_slr")?lj(p.app,"gaplessshortslooprange"):p.app.setLoopRange(null);p.app.getVideoData().NF=!0;p.L?.CY();p.L?.ZA();l={qE:"gapless_to_next_video",seekSource:60,gZ:p.X.L};y=g.ak(p.app.O().experiments,"html5_gapless_seek_offset");S=p.U?.UO()||-1;if(p.X.L){const {kq:G,Ka:B}=p.U?.K()||{};B!=null&&G!=null&&(S=B-G+.001)}p.app.zm()?.seekTo(S+ y,l);p.app.getPlayerStateObject(a).isPlaying()||p.app.zm()?.playVideo(!0);p.app.zm()?.bP();p.G();return!0}const z=this.A("html5_shorts_gapless_preload_fallback"),d=this.Q4.L;if(z&&d&&!d.nz()){const G=d.getVideoData();this.R4.X.set(F3(a,G),d,3600)}this.Q4.clearQueue(z);this.zm().Xu("sgap",{f:n})}if(S){for(;V.f8.length&&V.f8[0].isExpired();)V.f8.shift();Z=V.f8.length-1;Z=Z>0&&S.S(V.f8[Z])&&S.S(V.f8[Z-1]);V.f8.push(S)}l||(p&&Kn(p)?(oQ(this.Y)&&!this.TM&&(p.fetch=0),al(this,p)):this.playlist&&al(this, null),p&&(this.TM=EA(!1,p.external_list)));this.pz.publish("loadvideo");a=this.CN(V,a,y);Z&&this.Sj("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",`loadvideo.1;emsg.${V.f8.join()}`.replace(/[;:,]/g,"_"));return a}preloadVideoByPlayerVars(p,a=1,l=NaN,y,S=""){y=oC(p);if(y=this.R4.X.get(`${a}_${y}_${S}_${+(p.autonav==="1"||p.autonav===!0)}${+(p.autoplay==="1"||p.autoplay===!0||p.autoplay===1)}`)||null)return y;p=new g.Uj(this.Y,p);S&&(p.ME=S);{S=F3(a,p);y=this.zm();const n=F3(y.getPlayerType(), y.getVideoData());S===n?(y.o6(!0),p.dispose(),a=null):(p.Dd=!0,p=IA(this,a,p,!0),a===1&&Kr(this.Y)||p.o6(!0),this.R4.X.set(S,p,l||3600),a=p)}return a}setMinimized(p){this.visibility.setMinimized(p);(p=Kl(this.Ne))&&(this.isMinimized()?p.load():p.unload());this.pz.publish("minimized")}setInline(p){this.visibility.setInline(p)}setInlinePreview(p){this.visibility.setInline(p)}GA(p){tDM(this,p)||this.visibility.GA(p)}setSqueezeback(p){this.visibility.setSqueezeback(p)}Sw(){const p=this.mediaElement?.Wa(); p&&(this.Y.yR&&Gr(pn(()=>document.exitFullscreen()),()=>{}),Gr(pn(()=>op(p)),()=>{}))}xW(){this.mediaElement.Wa(); this.mediaElement.Wa().webkitPresentationMode==="picture-in-picture"?this.GA(!0):this.GA(!1)}togglePictureInPicture(){this.zm().togglePictureInPicture()}CN(p,a=1,l){UV("_start",this.QQ.timerName)||g.Oc(Yu)(void 0,this.QQ.timerName);let y=!1,S=VD(this,a,p,!1);S?(y=!0,p.dispose()):(S=IA(this,a,p,!0,l),(this.A("html5_onesie")||this.A("html5_load_before_stop"))&&S.z3()&&S.o6(),this.Vo.stop(),a===1&&a!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,a),this.Kg(S));S===this.jb()&& (this.Y.dE=p.oauthToken);if(!S.z3())return!1;if(S===this.jb())return this.V5(1),p=zH(this),y&&this.A("html5_player_preload_ad_fix")&&S.getPlayerType()===1&&S.Va()&&this.d3("dataloaded",S,S.getVideoData()),p;S.JT();return!0}cueVideoByPlayerVars(p,a=1){var l=this.jb();if(this.EE().enableServerStitchedDai&&l&&!l.Sr()&&p&&Object.keys(p).length>0)l.Xu("qvonss",{vid:p?.videoId||"",ptype:a});else if(p&&Kn(p))if(this.u1=!0,al(this,p),(p=g.DB(this.playlist))&&p.Kh())uh(this,p,a);else this.playlist.onReady(()=> {yT(this)}); else{a||(a=this.getPresentingPlayerType());a===1&&this.V_();l=new g.Uj(this.Y,p);const y=g.x3(this.Y)&&!this.Y.N&&a===1&&!l.isAd()&&!l.g$;this.pz.publish("cuevideo");y?(this.zm().getVideoData().loading=!0,bOr(l,p?p:{}).then(S=>{uh(this,S,a)}),l.dispose()):uh(this,l,a)}}vL(p,a,l,y,S,n,V){if(!p&&!l)throw Error("Playback source is invalid"); if(wP(this.Y)||g.ei(this.Y))return a=a||{},a.lact=Ls(),a.vis=this.pz.getVisibilityState(),g.v0(this.pz,"onPlayVideo",{videoId:p,watchEndpoint:n,sessionData:a,listId:l}),!1;WoO(this.QQ);this.QQ.reset();p={video_id:p};y&&(p.autoplay="1");y&&(p.autonav="1");n&&(p.player_params=n.playerParams);V&&(p.oauth_token=V);l?(p.list=l,this.loadPlaylist(p)):this.loadVideoByPlayerVars(p,1);return!0}cuePlaylist(p,a,l,y){this.u1=!0;Itf(this,p,a,l,y)}loadPlaylist(p,a,l,y){this.u1=!1;Itf(this,p,a,l,y)}jI(){return this.pz.isMutedByMutedAutoplay()? !1:this.R4.EU?!0:!(!this.playlist||!this.playlist.Wo())}nextVideo(p,a){var l=this.jb().getVideoData().N();g.WB(this.pz)&&l?this.vL(l.videoId,a?l.Cr:l.sessionData,l.playlistId,a,void 0,l.Cb||void 0):this.TM?g.OT(this.pz,"onPlaylistNext"):this.getPresentingPlayerType()===3?Kh(this.Ne).nextVideo():!this.playlist||oQ(this.Y)&&!this.pz.isFullscreen()||(this.playlist.Wo(p)&&Nr(this.playlist,X2v(this.playlist)),this.playlist.loaded?(p=a&&this.Y.A("html5_player_autonav_logging"),a&&this.pz.publish("playlistautonextvideo"), this.CN(g.DB(this.playlist,void 0,a,p),1)):this.u1=!1)}previousVideo(p){this.TM?g.OT(this.pz,"onPlaylistPrevious"):this.getPresentingPlayerType()===3?Kh(this.Ne).GU():!this.playlist||oQ(this.Y)&&!this.pz.isFullscreen()||(this.playlist.Bk(p)&&Nr(this.playlist,fI(this.playlist)),this.playlist.loaded?this.CN(g.DB(this.playlist),1):this.u1=!1)}playVideoAt(p){this.TM?g.OT(this.pz,"onPlaylistIndex",p):this.playlist&&(this.playlist.loaded?this.CN(g.DB(this.playlist,p),1):this.u1=!1,Nr(this.playlist,p))}getPlaylist(){return this.playlist}Oa(p){this.AT= g.B4(this.AT,y=>y.id!==p); const a=this.jb(),l=a.iN();for(let y=0;y{var a=this.screenLayer||(this.isMinimized()?3:0),l=g.c2(a);if(l&&l!=="UNDEFINED_CSN"){var y=this.Y.A("web_player_attach_player_response_ve");const S=this.Y.A("web_playback_associated_ve");a={cpn:this.getVideoData().clientPlaybackNonce,csn:l};this.getVideoData().jl&&(y||S)&&(y=g.dn(this.getVideoData().jl),g.bo(l,y),S&&(a.playbackVe=y.getAsJson()));this.getVideoData().queueInfo&&(a.queueInfo=this.getVideoData().queueInfo);l={};this.getVideoData().D&&(l.cttAuthInfo={token:this.getVideoData().D, videoId:this.getVideoData().videoId});g.i0("playbackAssociated",a,l)}else g.tX(new g.Qm("CSN Missing or undefined during playback association"))}; Vz(this.Ne);this.A("web_player_defer_ad")&&VO(this);g.OT(this.pz,"onPlaybackStartExternal");(this.Y.A("mweb_client_log_screen_associated"),Hy(this.Y))||p();p={};this.getVideoData().D&&(p.cttAuthInfo={token:this.getVideoData().D,videoId:this.getVideoData().videoId});p.sampleRate=20;JM("player_att",p);if(this.getVideoData().botguardData||this.A("fetch_att_independently"))g.p8(this.Y)||FJ(this.Y)==="MWEB"?g.wM(g.vT(),()=>{Bx(this)}):Bx(this); this.Y_();gUv(this);g.x3(this.Y)&&(p={autoplayBrowserPolicy:PY(),autoplayIntended:gv(this.getVideoData()),autoplayStatus:qf(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.i0("embedsAutoplayStatusChanged",p))}}yC(){this.pz.publish("internalAbandon");DH(this)}onApiChange(){const p=this.zm();this.Y.K?g.ZN(this.pz,"onApiChange",p.getPlayerType()):g.ZN(this.pz,"onApiChange")}PK(){var p=this.mediaElement;p={volume:g.qx(Math.floor(p.getVolume()* 100),0,100),muted:p.Hs()};p.muted||n1(this,!1);this.i_=g.O1(p);g.ZN(this.pz,"onVolumeChange",p)}mutedAutoplay(p){const a=this.getVideoData().videoId;isNaN(this.TQ)&&(this.TQ=this.getVideoData().startSeconds);if(p?.videoId||a)this.loadVideoByPlayerVars({video_id:p?.videoId?p?.videoId:a,playmuted:!0,start:this.TQ,muted_autoplay_duration_mode:p?.durationMode}),g.OT(this.pz,"onMutedAutoplayStarts")}onFullscreenChange(){const p=Ks(this);this.M5(p?1:0);Rar(this,!!p)}M5(p){var a=!!p;const l=!!this.EK()!== a;this.visibility.M5(p);this.template.M5(a);this.A("html5_media_fullscreen")&&!a&&this.mediaElement&&Ks(this)===this.mediaElement.Wa()&&this.mediaElement.N();this.template.resize();l&&this.QQ.tick("fsc");l&&(this.pz.publish("fullscreentoggled",a),p=this.EE(),a={fullscreen:a,videoId:p.S1||p.videoId,time:this.getCurrentTime()},this.pz.getPlaylistId()&&(a.listId=this.pz.getPlaylistId()),g.ZN(this.pz,"onFullscreenChange",a))}AD(){return this.visibility.AD()}isFullscreen(){return this.visibility.isFullscreen()}EK(){return this.visibility.EK()}IA(){var p= this.EK();p!==0&&p!==1||this.M5(Ks(this)?1:0);p=window.screen.width*window.screen.height;const a=window.outerHeight*window.outerWidth;this.Y.w8?(this.DZ=Math.max(this.DZ,p,a),p=a/this.DZ{this.rl("a_bid_f")}); return y.then(S=>this.S(p,a,S))}S(p,{py:a, Tp:l,cueProcessedMs:y}={},S=""){const n=this.player.getVideoData(1),V=this.player.O().Dd;var Z=0;if(y&&l&&!a){const B=l.end-l.start;B>0&&(Z=Math.floor(B/1E3))}Z=a?a.Hy:Z;const z={AD_BLOCK:this.L++,AD_BREAK_LENGTH:Z,AUTONAV_STATE:Wq(this.player.O()),CA_TYPE:"image",CPN:n.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.yP()*1E3,LACT:Ls(),LIVE_INDEX:a?this.U++:1,LIVE_TARGETING_CONTEXT:a&&a.context?a.context:"",MIDROLL_POS:l?Math.round(l.start/1E3):0,MIDROLL_POS_MS:l?Math.round(l.start):0,VIS:this.player.getVisibilityState(), P_H:this.player.h9().yS().height,P_W:this.player.h9().yS().width,YT_REMOTE:V?V.join(","):""},d=iL(Dw);Object.keys(d).forEach(B=>{d[B]!=null&&(z[B.toUpperCase()]=d[B].toString())}); S!==""&&(z.BISCOTTI_ID=S);a={};v3(p)&&(a.sts="20354",(l=this.player.O().forcedExperiments)&&(a.forced_experiments=l));const G=J3(g.xN(p,z),a);return G.split("?").length!==2?l3(Error("Invalid AdBreakInfo URL")):g.kw(this.player.O(),n?.oauthToken).then(B=>{if(B&&PB()){var c=Lt();XD(c,B)}B=this.player.SE(c);c=Z1o(this,G,z,n.isMdxPlayback,y);return g.xu(B,c,"/youtubei/v1/player/ad_break").then(w=>w)})}reset(){this.U=this.L=1}};var PsM=class extends $ve{S(p,{py:a,Tp:l,cueProcessedMs:y}={},S=""){var n=this.L;this.L++;var V=this.player.O().A("h5_disable_macro_substitution_in_get_ad_break")?p:fIA(this,p,{py:a,Tp:l,cueProcessedMs:y},S,n);if(V.split("?").length!==2)return Math.random()<.1&&g.tX(Error("Invalid AdBreakInfo URL")),l3(Error("Invalid AdBreakInfo URL"));var Z=this.player.getVideoData(1).isMdxPlayback;p=fsM.exec(V);p=p!=null&&p.length>=2?p[1]:"";const z=pjE.test(V);var d=aNE.exec(V);d=d!=null&&d.length>=2?d[1]:"";var G= lNF.exec(V);G=G!=null&&G.length>=2&&!Number.isNaN(Number(G[1]))?Number(G[1]):1;var B=y_v.exec(V);B=B!=null&&B.length>=2?B[1]:"0";const c=Ct(this.player.O().Rd),w=g.aD(this.player.getVideoData(1).jl,!0);hk(this,w,V,S===""?"":S,this.player.O(),this.player.getVideoData(1));S={splay:!1,lactMilliseconds:String(Ls()),playerHeightPixels:Math.trunc(this.player.h9().yS().height),playerWidthPixels:Math.trunc(this.player.h9().yS().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:20354, autonavState:Wq(this.player.O())};if(Z){Z={};var X=this.player.O().Dd;SBh(Z,X?X.join(","):"")&&(S.mdxContext=Z)}if(Z=nUM.includes(c)?void 0:g.D3("PREF")){X=Z.split(RegExp("[:&]"));for(let u=0,m=X.length;u1&&v[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}S.autoCaptionsDefaultOn=pHv(Z)}V=VCh.exec(V);(V=V!=null&&V.length>=2?V[1]:"")&&d&&(w.user.credentialTransferTokens=[{token:V,scope:"VIDEO"}]); V={contentPlaybackContext:S};S=this.player.getVideoData(1).getGetAdBreakContext();Z=this.player.getVideoData(1).clientPlaybackNonce;X=y!==void 0?Math.round(y).toString():void 0;v=a?.context?a.context:void 0;let I=0;y&&l&&!a&&(l=l.end-l.start,l>0&&(I=Math.floor(l/1E3)));a=(a=Math.trunc((a?a.Hy:I)*1E3))?String(a):void 0;l=this.player.yP()*1E3;l=Number.isNaN(l)?0:Math.trunc(l);n={adBlock:n,params:p,breakIndex:G,breakPositionMs:B,clientPlaybackNonce:Z,topLevelDomain:c,isProxyAdTagRequest:z,context:w, overridePlaybackContext:V,cueProcessedMs:X,videoId:d?d:void 0,liveTargetingParams:v,breakLengthMs:a,driftFromHeadMs:l?String(l):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:S?S:void 0};return JIq(this,n)}};var L6M={WB:"replaceUrlMacros",wV:"onAboutThisAdPopupClosed",Ol:"executeCommand"};var K8M=class{constructor(p){this.uT=p}Ii(){return"adPingingEndpoint"}rI(p,a,l){rIe(this.uT.get(),p,a,l)}};var edr=class{constructor(p){this.B=p}Ii(){return"changeEngagementPanelVisibilityAction"}rI(p){g.v0(this.B,"changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:p})}};var bar=class{constructor(p){this.uT=p}Ii(){return"loggingUrls"}rI(p,a,l){for(const y of p)rIe(this.uT.get(),y.baseUrl,a,l,y.attributionSrcMode)}};var X$h=class extends g.YB{constructor(p){super();this.L=p;this.S=Mif(this)}};var mB=class extends g.YB{constructor(p,a,l,y,S){super();this.S=a;this.sO=l;this.MO=y;this.z9=S;this.listeners=[];const n=new zV(this);g.H(this,n);n.J(p,"internalAbandon",this.U);this.addOnDisposeCallback(()=>{g.uY(n)})}addListener(p){this.listeners.push(p)}removeListener(p){this.listeners=this.listeners.filter(a=>a!==p)}O2(p,a,l,y,S,n,V,Z){if(p==="")Q("Received empty content video CPN in DefaultContentPlaybackLifecycleApi"); else if(p!==this.L||l){this.L=p;this.sO.get().O2(p,a,l,y,S,n,V,Z);this.MO.get().O2(p,a,l,y,S,n,V,Z);this.z9?.get().O2(p,a,l,y,S,n,V,Z);this.S.O2(p,a,l,y,S,n,V,Z);for(const z of this.listeners)z.O2(p,a,l,y,S,n,V,Z)}else Q("Duplicate content video loaded signal")}U(){this.L&&this.eT(this.L)}eT(p){this.L=void 0;for(const a of this.listeners)a.eT(p)}};var to=class{constructor(p){this.B=p;this.adVideoId=this.L=this.videoId=this.adCpn=this.contentCpn=null;this.X=!0;this.S=this.U=!1;this.adFormat=null;this.j="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}fG(p,a,l,y,S){iK(this);this.X=!a&&l===0;const n=this.B.getVideoData(1),V=this.B.getVideoData(2);n&&(this.contentCpn=n.clientPlaybackNonce,this.videoId=n.videoId,this.L=n.D);V&&(this.adCpn=V.clientPlaybackNonce,this.adVideoId=V.videoId,this.adFormat= V.adFormat);this.j=p;y<=0?(iK(this),this.X=!a&&l===0):(this.actionType=this.X?a?"unknown_type":"video_to_ad":a?"ad_to_video":"ad_to_ad",this.videoStreamType=S?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&(this.U=!0,UV("_start",this.actionType)&&Vq(this)))}reset(){return new to(this.B)}};var j6=class extends g.YB{constructor(p){super();this.B=p;this.L=new Map;this.S=new zV(this);g.H(this,this.S);this.S.J(this.B,g.tT("ad"),this.onCueRangeEnter,this);this.S.J(this.B,g.jh("ad"),this.onCueRangeExit,this)}addCueRange(p,a,l,y,S,n=3,V=1,Z,z){this.L.has(p)?Q("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:p}):(p=new xv$(p,a,l,y,n,Z,z),this.L.set(p.id,{Tp:p,listener:S,iU:V}),this.B.OE([p],V))}removeCueRange(p){const a=this.L.get(p);a?(this.B.mM([a.Tp],a.iU),this.L.delete(a.Tp.id)): Q("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:p})}onCueRangeEnter(p){if(this.L.has(p.id))this.L.get(p.id).listener.onCueRangeEnter(p.id)}onCueRangeExit(p){if(this.L.has(p.id))this.L.get(p.id).listener.onCueRangeExit(p.id)}},xv$=class extends g.yj{constructor(p,a,l,y,S,n,V){super(a,l,{id:p,namespace:"ad",priority:S,visible:y,associatedClipId:n,markerPositionMs:V})}};var WP=class{constructor(p){this.B=p}addPlayerResponseForAssociation(p){this.B.addPlayerResponseForAssociation(p)}};var HP=class{constructor(p){this.B=p}Ny(p){this.B.Ny(p)}};var Do=class{constructor(p){this.B=p}vX(p){return p&&Nu(this)}};var TG=null,TvF=class extends g.js{constructor(){super();this.L={};this.addOnDisposeCallback(()=>{for(const p of Object.keys(this.L))delete this.L[p]})}m2(p){return this.L.hasOwnProperty(p)?this.L[p].m2():{}}}; g.eo("ytads.bulleit.getVideoMetadata",function(p){return hm().m2(p)}); g.eo("ytads.bulleit.triggerExternalActivityEvent",function(p,a,l){var y=hm();l=ifr(l);l!==null&&y.publish(l,{queryId:p,viewabilityString:a})});var i1=class{constructor(p,a,l){this.sO=p;this.B=a;this.EO=l;this.S=new Set;this.L=new Map;hm().subscribe("adactiveviewmeasurable",this.L6,this);hm().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Yt,this);hm().subscribe("adviewableimpression",this.S_,this);hm().subscribe("adaudioaudible",this.m6,this);hm().subscribe("adaudiomeasurable",this.N$,this)}Fb(p,a){if(!this.L.has(p))return{};if(a==="seek")return(p=ND(s1).C(p,{}))&&uj(p),{};a=Zxo(a);if(a===null)return{};var l=this.B.nN();if(!l)return{}; const y=this.B.getPresentingPlayerType(!0);if(!this.B.getVideoData(y)?.isAd())return{};l={opt_adElement:l,opt_fullscreen:this.sO.get().isFullscreen()};return NE(a,p,l)}G(p,a,l,y,S){this.L.has(p)&&(y<=0||S<=0||ND(s1).G(p,a,l,y,S))}L6({queryId:p}){this.L.get(p)?.L6()}Yt({queryId:p}){this.L.get(p)?.Yt()}S_({queryId:p}){this.L.get(p)?.S_()}m6({queryId:p}){this.L.get(p)?.m6()}N$({queryId:p}){this.L.get(p)?.N$()}};var F6O=class{send(p,a,l,y=!1){try{pAA(this,p,a,l,y)}catch(S){}}};var E4q=class extends F6O{constructor(p,a,l,y,S){super();this.j=p;this.X=a;this.L=l;this.S=y;this.U=S}};var Csr=class{constructor(p,a){this.L=p;this.EO=a}send(p,a,l,y){let S=!1;try{if(y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")S=!0,p=Fmr(p);y=S;var n=g.hq(p);if(n[1]==="https")var V=p;else n[1]="https",V=SP("https",n[2],n[3],n[4],n[5],n[6],n[7]);const Z=vCr(V);n=[];const z=QxM(V)&&this.EO.get().B.O().experiments.Cz("add_auth_headers_to_remarketing_google_dot_com_ping");if(v3(V)||z)n.push({headerType:"USER_AUTH"}),n.push({headerType:"PLUS_PAGE_ID"}),n.push({headerType:"VISITOR_ID"}), n.push({headerType:"EOM_VISITOR_ID"}),n.push({headerType:"AUTH_USER"}),n.push({headerType:"DATASYNC_ID"});this.L.send({baseUrl:V,scrubReferrer:Z,headers:n},a,l,y)}catch(Z){}}};var TZ=class{constructor(p,a,l,y,S,n,V,Z=new E4q(()=>{const z=p.O(),d=p.getVideoData(1);return g.kw(z,d?d.G():"")},()=>p.O().pageId,()=>p.O().Sl,()=>p.O().datasyncId??"",()=>p.O().experiments)){this.B=p; this.S=a;this.Gn=l;this.MO=y;this.Io=S;this.EO=n;this.zp=V;this.j=Z;this.m$=null;this.L=new Map;this.U=new Csr(Z,this.EO)}Et(){return this.B.Et(1)}};var NS=class extends g.YB{constructor(p,a,l){super();this.B=p;this.NR=a;this.EO=l;this.listeners=[];this.WS=null;this.Rf=new Map;a=new g.yr(this);g.H(this,a);a.J(p,"videodatachange",this.hF);a.J(p,"serverstitchedvideochange",this.PQ);this.hv=H8(this)}X_(){return this.B.getVideoData(1).clientPlaybackNonce}addListener(p){this.listeners.push(p)}removeListener(p){this.listeners=this.listeners.filter(a=>a!==p)}O2(){this.Rf.clear(); this.WS=null;this.NR.get().clear()}eT(){}hF(p,a,l,y,S){a.videoId==="nPpU29QrbiU"&&this.B.Xu("ads_ssm_vdc_s",{pt:l,dvt:p});uU(this.EO.get())&&p!=="dataloaded"||AGO(this,a,l);if(Nu(this.EO.get())&&p==="newdata"&&S!==void 0){p=this.X_();const n=a.clientPlaybackNonce;md(this,"rte",{ec:n,xc:y?.clientPlaybackNonce,tr:S,pt:l,ia:n!==p,ctp:tu(n)});a=a.clientPlaybackNonce;y=y?.clientPlaybackNonce;S=FWE(S);if(S!==1)if(y!==void 0)for(const V of this.listeners)V.Gz(y,a,S);else Q("Expected exiting CPN for all non initial transitions", void 0,void 0,{enteringCpn:a,transitionReason:String(S)});for(const V of this.listeners)V.uF(a)}}PQ(p,a){p!==void 0&&(this.WS=p,a===void 0?Q("Expected ad video start time on SS video changed"):this.Rf.set(p,a));const l=this.B.getPresentingPlayerType(!0),y=this.B.getVideoData(l);var S;p===void 0?S=null:S=this.NR.get().L.get(p)||null;this.B.getVideoData(1).Xu("ads_ssvc",{pt:l,cpn:y?.clientPlaybackNonce,crtt:this.B.getCurrentTime(1,!1),atlh:this.B.isAtLiveHead(),adstt:a,pid:p,slid:S?.layoutId});y?AGO(this, y,l):Q("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.B.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:p})}eq(p,a){const l=p.author,y=p.clientPlaybackNonce,S=p.isListed;var n=p.ME;const V=p.title,Z=p.eR,z=p.zf,d=p.isMdxPlayback,G=p.kT,B=p.mdxEnvironment,c=p.isAutonav,w=p.Pk,X=p.Yo,v=p.Zk,I=p.videoId||"",u=p.profilePicture||"",m=p.Jk||"",M=p.Yn()||!1,D=p.nh()||!1;p=p.GW||void 0;n=this.NR.get().L.get(n)||{layoutId:null,slotId:null};var A=this.B.getVideoData(1); const $h=A.va();A=A.getPlayerResponse();a=1E3*this.B.getDuration(a);const cE=1E3*this.B.getDuration(1);return{...n,videoId:I,author:l,clientPlaybackNonce:y,kJ:a,t3:cE,daiEnabled:A?.playerConfig?.daiConfig?.enableDai||!1,v7:A?.playerConfig?.daiConfig?.enablePreroll||!1,isListed:S,va:$h,profilePicture:u,title:V,Jk:m,eR:Z,zf:z,GW:p,isMdxPlayback:d,kT:G,mdxEnvironment:B,isAutonav:c,Pk:w,Yo:X,Zk:v,Yn:M,nh:D}}fz(){this.listeners.length=0;this.hv=null;super.fz()}};var sH=class extends g.YB{constructor(p,a,l){super();this.B=p;this.MO=a;this.EO=l;this.listeners=[];this.ra=[];this.L=()=>{Q("Called 'doUnlockPreroll' before it's initialized.")}; a=new zV(this);l=new g.yr(this);g.H(this,l);g.H(this,a);a.J(p,"progresssync",this.U);a.J(p,"presentingplayerstatechange",this.S);a.J(p,"fullscreentoggled",this.onFullscreenToggled);a.J(p,"onVolumeChange",this.onVolumeChange);a.J(p,"minimized",this.lN);a.J(p,"overlayvisibilitychange",this.zM);a.J(p,"shortsadswipe",this.PG);a.J(p,"resize",this.Cx);l.J(p,g.tT("appad"),this.qb)}O2(){Nu(this.EO.get())||(this.L=vj(()=>{this.B.nz()||this.B.Kv("ad",1)}))}eT(){}addListener(p){this.listeners.push(p)}removeListener(p){this.listeners= this.listeners.filter(a=>a!==p)}ZZ(){}playVideo(){this.B.playVideo()}pauseVideo(){this.B.pauseVideo()}resumeVideo(p){this.jr(p)&&this.B.playVideo()}jr(p){return this.B.getPlayerState(p)===2}getCurrentTimeSec(p,a,l){const y=this.MO.get().WS; if(p===2&&!a&&y!==null)return pp(this,y);dp(this.EO.get(),"html5_ssap_use_cpn_to_get_time")||(l=void 0);return l!==void 0?this.B.getCurrentTime(p,a,l):this.B.getCurrentTime(p,a)}getVolume(){return this.B.getVolume()}isMuted(){return this.B.isMuted()}getPresentingPlayerType(){return this.B.getPresentingPlayerType(!0)}getPlayerState(p){return this.B.getPlayerState(p)}getGetAdBreakContext(){return this.B.getGetAdBreakContext()}isFullscreen(){return this.B.isFullscreen()}isAtLiveHead(){return this.B.isAtLiveHead()}CE(p){this.B.CE(p)}U(){const p= this.B.getPresentingPlayerType(!0),a=this.getCurrentTimeSec(p,!1);if(p===2)for(const l of this.listeners)l.r4(a);else if(p===1)for(const l of this.ra)l.ZZ(a)}S(p){for(const a of this.listeners)a.pv(p,this.getPresentingPlayerType())}onFullscreenToggled(p){for(const a of this.listeners)a.onFullscreenToggled(p)}onVolumeChange(){for(const p of this.listeners)p.onVolumeChange()}lN(){const p=this.B.isMinimized();for(const a of this.listeners)a.lN(p)}zM(p){for(const a of this.listeners)a.zM(p)}Cx(){const p= this.B.h9().yS();for(const a of this.listeners)a.SR(p)}qb(p){for(const a of this.listeners)a.qb(p)}PG(){for(const p of this.listeners)p.PG()}};var xKe=class extends g.YB{constructor(p,a,l,y){super();const S=J(()=>new bM(this.EO)); g.H(this,S);const n=J(()=>new Ic(S,this.EO)); g.H(this,n);const V=J(()=>new $o); g.H(this,V);const Z=J(()=>new r4(p)); g.H(this,Z);const z=J(()=>new Rc(S,n,this.EO)); g.H(this,z);const d=J(()=>new uM); g.H(this,d);this.uM=J(()=>new Q8(y)); g.H(this,this.uM);this.sC=J(()=>new to(a)); g.H(this,this.sC);this.BZ=J(()=>new j6(a)); g.H(this,this.BZ);this.QL=J(()=>new WP(a)); g.H(this,this.QL);this.F7=J(()=>new HP(a)); g.H(this,this.F7);this.EO=J(()=>new Do(a)); g.H(this,this.EO);const G=J(()=>new Uw(this.EO)); g.H(this,G);const B=J(()=>new d4(S,z,n,this.EO,G,null,null,null,null)); g.H(this,B);this.MO=J(()=>new NS(a,d,this.EO)); g.H(this,this.MO);const {Io:c,context:w,zp:X}=Bz({MO:this.MO,EO:this.EO,EQ:G});this.Io=c;this.sO=J(()=>new sH(a,this.MO,this.EO)); g.H(this,this.sO);this.Gn=J(()=>new i1(this.sO,a,this.EO)); g.H(this,this.Gn);this.uT=J(()=>new TZ(a,V,this.Gn,this.MO,this.Io,this.EO,X)); g.H(this,this.uT);this.lf=new ch(Z,B,l,this.EO,p,this.MO,this.sO,this.sC);g.H(this,this.lf);const v=new mB(a,this.lf,this.sO,this.MO);this.R9=J(()=>v); this.UZ=v;this.iG=new w4(Z,z,this.BZ,this.R9,w);g.H(this,this.iG);this.sE=new oc(this.EO,Z,B,this.MO,this.iG,l,this.QL);g.H(this,this.sE);this.uN={Uv:new Map,lA:new Map,RD:new Map,rC:new Map,Vp:new Map};this.listeners=[];this.MG={sE:this.sE,j8:this.EO.get(),OO:this.uM.get(),yV:this.sO.get(),lf:this.lf,l1:S.get(),fP:null,wp:{HP(){}},Dz:V.get(),Lv:this.MO.get()}}};var v4F=class extends g.YB{constructor(p){super();this.er=p;this.er.get().addListener(this)}fz(){this.er.nz()||this.er.get().removeListener(this);super.fz()}};var UH=class{constructor(p){this.L=p}fetch(p){const {Sx:a,ey:l,py:y,cueProcessedMs:S=0}=p;return this.L.fetch(a,{py:y,Tp:l,cueProcessedMs:S}).then(n=>tYZ(n,l))}};var Q3=class extends g.YB{constructor(p){super();this.B=p;this.listeners=[];this.L=new zV(this);g.H(this,this.L);this.L.J(this.B,"aduxclicked",this.onAdUxClicked);this.L.J(this.B,"aduxmouseover",this.cS);this.L.J(this.B,"aduxmouseout",this.K4);this.L.J(this.B,"muteadaccepted",this.S)}addListener(p){this.listeners.push(p)}removeListener(p){this.listeners=this.listeners.filter(a=>a!==p)}sF(p){QvZ(this,p,1)}onAdUxClicked(p,a){nw(this,l=>{l.fv(p,a)})}cS(p){nw(this,a=>{a.Ar(p)})}K4(p){nw(this,a=>{a.lY(p)})}S(p){nw(this, a=>{a.Mf(p)})}};var K6O=class{constructor(p,a=!1){this.S=p;this.U=a;this.L={}}reduce(p){switch(p.event){case "unknown":return}var a=p.identifier;var l=this.L[a];l?a=l:(l={Kr:null,bz:-Infinity},a=this.L[a]=l);l=p.startSecs+p.L/1E3;if(!(la!==p)}MR(p){$1(this,p); if(aM(this.EO.get())&&this.B.getCurrentTime(1)===0&&this.B.getVideoData(1).nh())return!1;this.X.reduce(p);p=this.j;this.j=!1;return p}D(p){const a=this.B.getVideoData(1).isDaiEnabled();if(a||!g.ei(this.B.O()))for(const l of p)$1(this,l),OI(this.EO.get())&&this.B.getCurrentTime(1)===0&&l.event==="start"&&W8(this.uT.get(),"ocuz",`cpi.${l.identifier};cpe.${l.event};cps.${l.startSecs};cpd.${l.Hy}`),a?aM(this.EO.get())&&this.B.getCurrentTime(1)===0&&this.B.getVideoData(1).nh()||this.X.reduce(l):this.B.getCurrentTime(1)!== 0&&l.event==="start"&&(this.EO.get().B.O().experiments.Cz("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.L==null||this.EO.get().B.O().experiments.Cz("enable_only_drop_overlapping_cuepoints_with_same_identifier")&&this.L.identifier!==l.identifier?0:l.startSecs+l.Hy>=this.L.startSecs&&l.startSecs<=this.L.startSecs+this.L.Hy)?(OI(this.EO.get())&&l.identifier!==this.L?.identifier&&W8(this.uT.get(),"ocud",`ccpi.${l.identifier};ccpe.${l.event};ccps.${l.startSecs}; ccpd.${l.Hy};pcpi.${this.L?.identifier};pcpe.${this.L?.event}; pcps.${this.L?.startSecs};pcpd.${this.L?.Hy};`),l.identifier!==this.L?.identifier&&Q("Latest Endemic Live Web cue point overlaps with previous cue point")):(this.L=l,X6M(this,l)))}fz(){this.S!=null&&(this.S.unsubscribe("cuepointupdated",this.D,this),this.S=null);this.listeners.length=0;this.Ov.length=0;super.fz()}};var Ao=class{constructor(p){this.B=p}};var gz=class{constructor(p){this.B=p}e1(p,a,l,y,S,n,V,Z){return this.B.e1(p,a,l,y,S,n,V,Z)}HR(p,a){this.B.HR(p,a)}wR(p,a,l){this.B.wR(p,a,l)}EG(p){this.B.EG(p)}Ju(p,a,l,y,S,n,V,Z){this.B.Ju(p,a,l,y,S,n,V,Z)}Q9(p){return this.B.Q9(p)}finishSegmentByCpn(p,a,l){l=t0r(l);this.B.finishSegmentByCpn(p,a,l)}};var qS=class extends g.YB{constructor(){super(...arguments);this.fT=new Map}};var bKE=class{constructor(p){this.B=p}};var wFE=class extends g.YB{constructor(p,a,l,y,S){super();const n=J(()=>new bM(this.EO)); g.H(this,n);const V=J(()=>new Ic(n,this.EO)); g.H(this,V);const Z=J(()=>new $o); g.H(this,Z);const z=J(()=>new r4(p)); g.H(this,z);const d=J(()=>new Rc(n,V,this.EO)); g.H(this,d);const G=J(()=>new uM); g.H(this,G);this.yL=J(()=>new Q3(a)); g.H(this,this.yL);this.uM=J(()=>new Q8(S)); g.H(this,this.uM);this.sC=J(()=>new to(a)); g.H(this,this.sC);this.BZ=J(()=>new j6(a)); g.H(this,this.BZ);this.QL=J(()=>new WP(a)); g.H(this,this.QL);this.F7=J(()=>new HP(a)); g.H(this,this.F7);this.EO=J(()=>new Do(a)); g.H(this,this.EO);const B=J(()=>new UH(y)); g.H(this,B);const c=J(()=>new Uw(this.EO)); g.H(this,c);this.MA=J(()=>new Ao(a)); g.H(this,this.MA);this.er=J(()=>new nbF); g.H(this,this.er);this.MO=J(()=>new NS(a,G,this.EO)); g.H(this,this.MO);const {Io:w,context:X,zp:v}=Bz({MO:this.MO,EO:this.EO,EQ:c});this.Io=w;this.z9=J(()=>new ho(a,this.EO,this.uT)); g.H(this,this.z9);this.gq=J(()=>new gz(a)); g.H(this,this.gq);this.sO=J(()=>new sH(a,this.MO,this.EO)); g.H(this,this.sO);this.EY=J(()=>new qS); g.H(this,this.EY);const I=J(()=>new d4(n,d,V,this.EO,c,"SLOT_TYPE_ABOVE_FEED",this.sO,this.rE,this.iC)); g.H(this,I);this.oM=J(()=>new h2(this.EO)); this.Gn=J(()=>new i1(this.sO,a,this.EO)); g.H(this,this.Gn);this.uT=J(()=>new TZ(a,Z,this.Gn,this.MO,this.Io,this.EO,v)); g.H(this,this.uT);this.cW=new Bh(nE,(m,M,D,A)=>VX(V.get(),m,M,D,A),z,d,V,c,this.EO,this.MO); g.H(this,this.cW);this.lf=new ch(z,I,l,this.EO,p,this.MO,this.sO,this.sC);g.H(this,this.lf);const u=new mB(a,this.lf,this.sO,this.MO,this.z9);this.R9=J(()=>u); this.UZ=u;this.rE=new G7(z,d,this.R9,this.z9,this.sO,this.EO,this.uT,this.gq);g.H(this,this.rE);this.iG=new w4(z,d,this.BZ,this.R9,X);g.H(this,this.iG);this.sE=new oc(this.EO,z,I,this.MO,this.iG,l,this.QL);g.H(this,this.sE);this.WW=J(()=>new A2(B,V,c,this.EO,this.uT,this.sO,this.gq)); g.H(this,this.WW);this.lC=J(()=>new gK); g.H(this,this.lC);this.Xb=new Xv(p,this.yL,this.EO);g.H(this,this.Xb);this.xe=new xo(p);g.H(this,this.xe);this.xw=new HdF(p);g.H(this,this.xw);this.M3=new Fv(p,this.R9,X);g.H(this,this.M3);this.zO=new El(p,this.BZ,this.sO,this.MO,X);g.H(this,this.zO);this.on=new DBf(p,this.MO);g.H(this,this.on);this.iC=new K4(p,this.z9,this.sO,this.uT,this.R9,this.rE);g.H(this,this.iC);this.HX=new C4(p);g.H(this,this.HX);this.vy=new eE(p);g.H(this,this.vy);this.I1=new vh(p);g.H(this,this.I1);this.iJ=new idA(p);g.H(this, this.iJ);this.vy=new eE(p);g.H(this,this.vy);this.WX=J(()=>new Ph); g.H(this,this.WX);this.Jl=J(()=>new L4(this.sO)); g.H(this,this.Jl);this.rJ=J(()=>new jTr(this.yL,this.uT,p,Z,this.Gn)); g.H(this,this.rJ);this.dh=J(()=>new J2(this.sE,z,n)); g.H(this,this.dh);this.lk=J(()=>new fg(this.EO,this.uT,this.HX,this.Gn)); g.H(this,this.lk);this.Ko=J(()=>new LK$(p,this.vy,this.HX,this.MO,this.gq,this.sO,this.EY,this.uT,G,this.z9,this.Gn,this.oM,this.QL,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,Z,X,v)); g.H(this,this.Ko);this.uo=J(()=>new QTO(this.sO,this.uT,this.uM,this.EO,this.Gn,this.MO)); g.H(this,this.uo);this.Jz=J(()=>new euh(this.yL,this.sO,this.uT,Z,this.Gn,this.xw,this.iJ,this.uM,this.EO,l)); g.H(this,this.Jz);this.dT=J(()=>new WSr(this.yL,this.uT,Z)); g.H(this,this.dT);this.l$=new v4F(this.er);g.H(this,this.l$);this.uN={Uv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sE],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lf],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.iG]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WW],["SLOT_TYPE_ABOVE_FEED",this.lC],["SLOT_TYPE_FORECASTING",this.lC], ["SLOT_TYPE_IN_PLAYER",this.lC],["SLOT_TYPE_PLAYER_BYTES",this.lC],["SLOT_TYPE_PLAYER_UNDERLAY",this.lC],["SLOT_TYPE_PLAYBACK_TRACKING",this.lC],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.lC]]),RD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xb],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xe],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xe],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.xe],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xe],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.xe],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.xe],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M3],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.zO],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.zO],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.zO],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.zO],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.on],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.on],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.HX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.M3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.I1],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.iJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),rC:new Map([["SLOT_TYPE_ABOVE_FEED",this.WX], ["SLOT_TYPE_AD_BREAK_REQUEST",this.WX],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.Jl],["SLOT_TYPE_PLAYER_UNDERLAY",this.WX],["SLOT_TYPE_PLAYBACK_TRACKING",this.WX],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.WX]]),Vp:new Map([["SLOT_TYPE_ABOVE_FEED",this.rJ],["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_PLAYER_BYTES",this.Ko],["SLOT_TYPE_PLAYBACK_TRACKING",this.uo],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.uo],["SLOT_TYPE_IN_PLAYER",this.Jz],["SLOT_TYPE_PLAYER_UNDERLAY",this.dT]])};this.listeners=[Z.get()];this.MG={sE:this.sE,j8:this.EO.get(),OO:this.uM.get(),yV:this.sO.get(),lf:this.lf,l1:n.get(),fP:this.er.get(),wp:this.Xb,Dz:Z.get(),Lv:this.MO.get()}}};var $Kh=class extends g.YB{constructor(p,a,l,y,S){super();const n=J(()=>new bM(this.EO)); g.H(this,n);const V=J(()=>new Ic(n,this.EO)); g.H(this,V);const Z=J(()=>new $o); g.H(this,Z);const z=J(()=>new r4(p)); g.H(this,z);const d=J(()=>new Rc(n,V,this.EO)); g.H(this,d);const G=J(()=>new uM); g.H(this,G);this.yL=J(()=>new Q3(a)); g.H(this,this.yL);this.uM=J(()=>new Q8(S)); g.H(this,this.uM);this.sC=J(()=>new to(a)); g.H(this,this.sC);this.BZ=J(()=>new j6(a)); g.H(this,this.BZ);this.QL=J(()=>new WP(a)); g.H(this,this.QL);this.F7=J(()=>new HP(a)); g.H(this,this.F7);this.EO=J(()=>new Do(a)); g.H(this,this.EO);const B=J(()=>new UH(y)); g.H(this,B);const c=J(()=>new Uw(this.EO)); g.H(this,c);const w=J(()=>new d4(n,d,V,this.EO,c,null,null,this.rE,this.iC)); g.H(this,w);this.MA=J(()=>new Ao(a)); g.H(this,this.MA);this.er=J(()=>new nbF); g.H(this,this.er);this.MO=J(()=>new NS(a,G,this.EO)); g.H(this,this.MO);const {Io:X,context:v,zp:I}=Bz({MO:this.MO,EO:this.EO,EQ:c});this.Io=X;this.z9=J(()=>new ho(a,this.EO,this.uT)); this.sO=J(()=>new sH(a,this.MO,this.EO)); g.H(this,this.sO);this.EY=J(()=>new qS); g.H(this,this.EY);this.Gn=J(()=>new i1(this.sO,a,this.EO)); g.H(this,this.Gn);this.uT=J(()=>new TZ(a,Z,this.Gn,this.MO,this.Io,this.EO,I)); g.H(this,this.uT);this.oM=J(()=>new h2(this.EO)); g.H(this,this.oM);this.cW=new Bh(nE,(m,M,D,A)=>VX(V.get(),m,M,D,A),z,d,V,c,this.EO,this.MO); g.H(this,this.cW);this.lf=new ch(z,w,l,this.EO,p,this.MO,this.sO,this.sC);g.H(this,this.lf);const u=new mB(a,this.lf,this.sO,this.MO,this.z9);this.R9=J(()=>u); this.UZ=u;this.rE=new G7(z,d,this.R9,this.z9,this.sO,this.EO,this.uT);g.H(this,this.rE);this.iG=new w4(z,d,this.BZ,this.R9,v);g.H(this,this.iG);this.sE=new oc(this.EO,z,w,this.MO,this.iG,l,this.QL);g.H(this,this.sE);this.WW=J(()=>new A2(B,V,c,this.EO,this.uT,this.sO)); g.H(this,this.WW);this.lC=J(()=>new gK); g.H(this,this.lC);this.Xb=new Xv(p,this.yL,this.EO);g.H(this,this.Xb);this.xe=new xo(p);g.H(this,this.xe);this.xw=new HdF(p);g.H(this,this.xw);this.M3=new Fv(p,this.R9,v);g.H(this,this.M3);this.zO=new El(p,this.BZ,this.sO,this.MO,v);g.H(this,this.zO);this.HX=new C4(p);g.H(this,this.HX);this.I1=new vh(p);g.H(this,this.I1);this.iJ=new idA(p);g.H(this,this.iJ);this.gq=J(()=>new gz(a)); g.H(this,this.gq);this.vy=new eE(p);g.H(this,this.vy);this.iC=new K4(p,this.z9,this.sO,this.uT,this.R9,this.rE);g.H(this,this.iC);this.WX=J(()=>new Ph); g.H(this,this.WX);this.Jl=J(()=>new L4(this.sO)); g.H(this,this.Jl);this.dh=J(()=>new J2(this.sE,z,n)); g.H(this,this.dh);this.lk=J(()=>new fg(this.EO,this.uT,this.HX,this.Gn)); g.H(this,this.lk);this.Jz=J(()=>new bdo(this.yL,this.sO,this.uT,Z,this.Gn,this.xw,this.iJ,this.uM,this.EO,l)); g.H(this,this.Jz);this.Ko=J(()=>new Vr(p,this.vy,this.HX,this.uT,this.Gn,this.oM,this.QL,this.MO,this.sO,this.EY,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,this.gq,v,I)); g.H(this,this.Ko);this.l$=new v4F(this.er);g.H(this,this.l$);this.uN={Uv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sE],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lf],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.iG]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WW],["SLOT_TYPE_FORECASTING",this.lC],["SLOT_TYPE_IN_PLAYER",this.lC], ["SLOT_TYPE_PLAYER_BYTES",this.lC]]),RD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xe],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xe],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xe], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.xe],["TRIGGER_TYPE_CLOSE_REQUESTED",this.xw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.HX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.I1],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.iJ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),rC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WX],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.Jl]]), Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_IN_PLAYER",this.Jz],["SLOT_TYPE_PLAYER_BYTES",this.Ko]])};this.listeners=[Z.get()];this.MG={sE:this.sE,j8:this.EO.get(),OO:this.uM.get(),yV:this.sO.get(),lf:this.lf,l1:n.get(),fP:this.er.get(),wp:this.Xb,Dz:Z.get(),Lv:this.MO.get()}}};var PVM=class extends g.YB{constructor(p,a,l,y,S){super();const n=J(()=>new bM(this.EO)); g.H(this,n);const V=J(()=>new Ic(n,this.EO)); g.H(this,V);const Z=J(()=>new $o); g.H(this,Z);const z=J(()=>new r4(p)); g.H(this,z);const d=J(()=>new Rc(n,V,this.EO)); g.H(this,d);const G=J(()=>new uM); g.H(this,G);this.yL=J(()=>new Q3(a)); g.H(this,this.yL);this.uM=J(()=>new Q8(S)); g.H(this,this.uM);this.sC=J(()=>new to(a)); g.H(this,this.sC);this.BZ=J(()=>new j6(a)); g.H(this,this.BZ);this.QL=J(()=>new WP(a)); g.H(this,this.QL);this.F7=J(()=>new HP(a)); g.H(this,this.F7);this.EO=J(()=>new Do(a)); g.H(this,this.EO);const B=J(()=>new UH(y)); g.H(this,B);const c=J(()=>new Uw(this.EO)); g.H(this,c);const w=J(()=>new d4(n,d,V,this.EO,c,null,null,null,null)); g.H(this,w);this.MA=J(()=>new Ao(a)); g.H(this,this.MA);this.MO=J(()=>new NS(a,G,this.EO)); g.H(this,this.MO);const {Io:X,context:v,zp:I}=Bz({MO:this.MO,EO:this.EO,EQ:c});this.Io=X;this.sO=J(()=>new sH(a,this.MO,this.EO)); g.H(this,this.sO);this.EY=J(()=>new qS); g.H(this,this.EY);this.Gn=J(()=>new i1(this.sO,a,this.EO)); g.H(this,this.Gn);this.uT=J(()=>new TZ(a,Z,this.Gn,this.MO,this.Io,this.EO,I)); g.H(this,this.uT);this.oM=J(()=>new h2(this.EO)); g.H(this,this.oM);this.cW=new Bh(nE,(m,M,D,A)=>VX(V.get(),m,M,D,A),z,d,V,c,this.EO,this.MO); g.H(this,this.cW);this.lf=new ch(z,w,l,this.EO,p,this.MO,this.sO,this.sC);g.H(this,this.lf);const u=new mB(a,this.lf,this.sO,this.MO);this.R9=J(()=>u); this.UZ=u;this.iG=new w4(z,d,this.BZ,this.R9,v);g.H(this,this.iG);this.sE=new oc(this.EO,z,w,this.MO,this.iG,l,this.QL);g.H(this,this.sE);this.WW=J(()=>new A2(B,V,c,this.EO,this.uT,this.sO)); g.H(this,this.WW);this.lC=J(()=>new gK); g.H(this,this.lC);this.Xb=new Xv(p,this.yL,this.EO);g.H(this,this.Xb);this.xe=new xo(p);g.H(this,this.xe);this.M3=new Fv(p,this.R9,v);g.H(this,this.M3);this.zO=new El(p,this.BZ,this.sO,this.MO,v);g.H(this,this.zO);this.HX=new C4(p);g.H(this,this.HX);this.I1=new vh(p);g.H(this,this.I1);this.gq=J(()=>new gz(a)); g.H(this,this.gq);this.vy=new eE(p);g.H(this,this.vy);this.WX=J(()=>new Ph); g.H(this,this.WX);this.Jl=J(()=>new L4(this.sO)); g.H(this,this.Jl);this.dh=J(()=>new J2(this.sE,z,n)); g.H(this,this.dh);this.lk=J(()=>new fg(this.EO,this.uT,this.HX,this.Gn)); g.H(this,this.lk);this.AS=J(()=>new sTq(this.yL,this.sO,this.uT,Z,l,this.EO)); g.H(this,this.AS);this.Ko=J(()=>new Vr(p,this.vy,this.HX,this.uT,this.Gn,this.oM,this.QL,this.MO,this.sO,this.EY,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,this.gq,v,I)); g.H(this,this.Ko);this.uN={Uv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lf],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.iG]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WW],["SLOT_TYPE_FORECASTING",this.lC],["SLOT_TYPE_IN_PLAYER",this.lC],["SLOT_TYPE_PLAYER_BYTES",this.lC]]),RD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.xe],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xe],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xe],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xe],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.HX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.I1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vy]]),rC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WX],["SLOT_TYPE_ABOVE_FEED",this.WX],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.Jl]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_IN_PLAYER", this.AS],["SLOT_TYPE_PLAYER_BYTES",this.Ko]])};this.listeners=[Z.get()];this.MG={sE:this.sE,j8:this.EO.get(),OO:this.uM.get(),yV:this.sO.get(),lf:this.lf,l1:n.get(),fP:null,wp:this.Xb,Dz:Z.get(),Lv:this.MO.get()}}};var LAE=class extends g.YB{constructor(p,a,l,y,S){super();const n=J(()=>new bM(this.EO)); g.H(this,n);const V=J(()=>new Ic(n,this.EO)); g.H(this,V);const Z=J(()=>new $o); g.H(this,Z);const z=J(()=>new r4(p)); g.H(this,z);const d=J(()=>new Rc(n,V,this.EO)); g.H(this,d);const G=J(()=>new uM); g.H(this,G);this.T4=J(()=>new bKE(a)); g.H(this,this.T4);this.yL=J(()=>new Q3(a)); g.H(this,this.yL);this.uM=J(()=>new Q8(S)); g.H(this,this.uM);this.sC=J(()=>new to(a)); g.H(this,this.sC);this.BZ=J(()=>new j6(a)); g.H(this,this.BZ);this.QL=J(()=>new WP(a)); g.H(this,this.QL);this.F7=J(()=>new HP(a)); g.H(this,this.F7);this.EO=J(()=>new Do(a)); g.H(this,this.EO);const B=J(()=>new UH(y)); g.H(this,B);const c=J(()=>new Uw(this.EO)); g.H(this,c);const w=J(()=>new d4(n,d,V,this.EO,c,null,null,null,null)); g.H(this,w);this.MA=J(()=>new Ao(a)); g.H(this,this.MA);this.MO=J(()=>new NS(a,G,this.EO)); g.H(this,this.MO);const {Io:X,context:v,zp:I}=Bz({MO:this.MO,EO:this.EO,EQ:c});this.Io=X;this.sO=J(()=>new sH(a,this.MO,this.EO)); g.H(this,this.sO);this.EY=J(()=>new qS); g.H(this,this.EY);this.Gn=J(()=>new i1(this.sO,a,this.EO)); g.H(this,this.Gn);this.uT=J(()=>new TZ(a,Z,this.Gn,this.MO,this.Io,this.EO,I)); g.H(this,this.uT);this.oM=J(()=>new h2(this.EO)); g.H(this,this.oM);this.cW=new Bh(Gtf,(m,M,D,A)=>NlO(V.get(),m,M,D,A),z,d,V,c,this.EO,this.MO); g.H(this,this.cW);this.lf=new ch(z,w,l,this.EO,p,this.MO,this.sO,this.sC);g.H(this,this.lf);const u=new mB(a,this.lf,this.sO,this.MO);this.R9=J(()=>u); this.UZ=u;this.iG=new w4(z,d,this.BZ,this.R9,v);g.H(this,this.iG);this.sE=new oc(this.EO,z,w,this.MO,this.iG,l,this.QL);g.H(this,this.sE);this.WW=J(()=>new A2(B,V,c,this.EO,this.uT,this.sO)); g.H(this,this.WW);this.lC=J(()=>new gK); g.H(this,this.lC);this.Xb=new Xv(p,this.yL,this.EO);g.H(this,this.Xb);this.xe=new xo(p);g.H(this,this.xe);this.M3=new Fv(p,this.R9,v);g.H(this,this.M3);this.zO=new El(p,this.BZ,this.sO,this.MO,v);g.H(this,this.zO);this.HX=new C4(p);g.H(this,this.HX);this.I1=new vh(p);g.H(this,this.I1);this.gq=J(()=>new gz(a)); g.H(this,this.gq);this.vy=new eE(p);g.H(this,this.vy);this.WX=J(()=>new Ph); g.H(this,this.WX);this.Jl=J(()=>new L4(this.sO)); g.H(this,this.Jl);this.dh=J(()=>new J2(this.sE,z,n)); g.H(this,this.dh);this.lk=J(()=>new fg(this.EO,this.uT,this.HX,this.Gn)); g.H(this,this.lk);this.Ko=J(()=>new Vr(p,this.vy,this.HX,this.uT,this.Gn,this.oM,this.QL,this.MO,this.sO,this.EY,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,this.gq,v,I)); g.H(this,this.Ko);this.kX=J(()=>new RuA(this.yL,this.sO,this.uT,Z,this.T4,l,this.MO)); g.H(this,this.kX);this.uN={Uv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lf],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.iG]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WW],["SLOT_TYPE_FORECASTING",this.lC],["SLOT_TYPE_IN_PLAYER",this.lC],["SLOT_TYPE_PLAYER_BYTES",this.lC]]),RD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Xb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.xe],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xe],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xe],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xe],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.zO],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.HX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.I1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vy]]),rC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WX],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.Jl]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_IN_PLAYER",this.kX],["SLOT_TYPE_PLAYER_BYTES", this.Ko]])};this.listeners=[Z.get()];this.MG={sE:this.sE,j8:this.EO.get(),OO:this.uM.get(),yV:this.sO.get(),lf:this.lf,l1:n.get(),fP:null,wp:this.Xb,Dz:Z.get(),Lv:this.MO.get()}}};var XFA=class extends g.YB{constructor(p,a,l,y,S){super();const n=J(()=>new bM(this.EO)); g.H(this,n);const V=J(()=>new Ic(n,this.EO)); g.H(this,V);const Z=J(()=>new $o); g.H(this,Z);const z=J(()=>new r4(p)); g.H(this,z);const d=J(()=>new Rc(n,V,this.EO)); g.H(this,d);const G=J(()=>new uM); g.H(this,G);this.T4=J(()=>new bKE(a)); g.H(this,this.T4);this.yL=J(()=>new Q3(a)); g.H(this,this.yL);this.uM=J(()=>new Q8(S)); g.H(this,this.uM);this.sC=J(()=>new to(a)); g.H(this,this.sC);this.BZ=J(()=>new j6(a)); g.H(this,this.BZ);this.QL=J(()=>new WP(a)); g.H(this,this.QL);this.F7=J(()=>new HP(a)); g.H(this,this.F7);this.EO=J(()=>new Do(a)); g.H(this,this.EO);const B=J(()=>new UH(y)); g.H(this,B);const c=J(()=>new Uw(this.EO)); g.H(this,c);this.MA=J(()=>new Ao(a)); g.H(this,this.MA);this.MO=J(()=>new NS(a,G,this.EO)); g.H(this,this.MO);const {Io:w,context:X,zp:v}=Bz({MO:this.MO,EO:this.EO,EQ:c});this.Io=w;this.z9=J(()=>new ho(a,this.EO,this.uT)); g.H(this,this.z9);this.gq=J(()=>new gz(a)); g.H(this,this.gq);this.sO=J(()=>new sH(a,this.MO,this.EO)); g.H(this,this.sO);this.EY=J(()=>new qS); g.H(this,this.EY);const I=J(()=>new d4(n,d,V,this.EO,c,null,this.sO,this.rE,this.iC,3)); g.H(this,I);this.oM=J(()=>new h2(this.EO)); this.Gn=J(()=>new i1(this.sO,a,this.EO)); g.H(this,this.Gn);this.uT=J(()=>new TZ(a,Z,this.Gn,this.MO,this.Io,this.EO,v)); g.H(this,this.uT);this.lf=new ch(z,I,l,this.EO,p,this.MO,this.sO,this.sC);g.H(this,this.lf);const u=new mB(a,this.lf,this.sO,this.MO,this.z9);this.R9=J(()=>u); this.UZ=u;this.cW=new Bh(Idh,(m,M,D,A)=>NlO(V.get(),m,M,D,A),z,d,V,c,this.EO,this.MO); g.H(this,this.cW);this.rE=new G7(z,d,this.R9,this.z9,this.sO,this.EO,this.uT,this.gq);g.H(this,this.rE);this.iG=new w4(z,d,this.BZ,this.R9,X);g.H(this,this.iG);this.sE=new oc(this.EO,z,I,this.MO,this.iG,l,this.QL);g.H(this,this.sE);this.WW=J(()=>new A2(B,V,c,this.EO,this.uT,this.sO,this.gq)); g.H(this,this.WW);this.lC=J(()=>new gK); g.H(this,this.lC);this.Xb=new Xv(p,this.yL,this.EO);g.H(this,this.Xb);this.xe=new xo(p);g.H(this,this.xe);this.M3=new Fv(p,this.R9,X);g.H(this,this.M3);this.zO=new El(p,this.BZ,this.sO,this.MO,X);g.H(this,this.zO);this.on=new DBf(p,this.MO);g.H(this,this.on);this.iC=new K4(p,this.z9,this.sO,this.uT,this.R9,this.rE);g.H(this,this.iC);this.HX=new C4(p);g.H(this,this.HX);this.I1=new vh(p);g.H(this,this.I1);this.vy=new eE(p);g.H(this,this.vy);this.WX=J(()=>new Ph); g.H(this,this.WX);this.Jl=J(()=>new L4(this.sO)); g.H(this,this.Jl);this.dh=J(()=>new J2(this.sE,z,n)); g.H(this,this.dh);this.lk=J(()=>new fg(this.EO,this.uT,this.HX,this.Gn)); g.H(this,this.lk);this.Ko=J(()=>new LK$(p,this.vy,this.HX,this.MO,this.gq,this.sO,this.EY,this.uT,G,this.z9,this.Gn,this.oM,this.QL,this.BZ,this.sC,this.F7,this.uM,this.MA,this.EO,Z,X,v)); g.H(this,this.Ko);this.Jz=J(()=>new uHM(this.yL,this.sO,this.uT,Z,this.T4,l,this.EO,this.MO)); g.H(this,this.Jz);this.uN={Uv:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.sE],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rE],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.cW],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.lf],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.iG]]),lA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WW],["SLOT_TYPE_FORECASTING",this.lC],["SLOT_TYPE_IN_PLAYER",this.lC],["SLOT_TYPE_PLAYER_BYTES",this.lC]]),RD:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.Xb],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.xe],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.xe],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.xe],["TRIGGER_TYPE_SLOT_ID_EXITED",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.xe],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.xe],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.M3],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.zO],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.zO],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.on],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.on],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.HX],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.M3],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.I1],["TRIGGER_TYPE_AD_BREAK_STARTED",this.vy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.iC],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.iC],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.iC],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.iC],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.iC]]),rC:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.WX],["SLOT_TYPE_FORECASTING",this.WX],["SLOT_TYPE_IN_PLAYER",this.WX],["SLOT_TYPE_PLAYER_BYTES",this.Jl]]),Vp:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dh],["SLOT_TYPE_FORECASTING",this.lk],["SLOT_TYPE_PLAYER_BYTES",this.Ko],["SLOT_TYPE_IN_PLAYER",this.Jz]])};this.listeners=[Z.get()]; this.MG={sE:this.sE,j8:this.EO.get(),OO:this.uM.get(),yV:this.sO.get(),lf:this.lf,l1:n.get(),fP:null,wp:this.Xb,Dz:Z.get(),Lv:this.MO.get()}}};var Irq=class extends g.YB{constructor(p,a,l,y){super();const S=()=>this.S; p.O().experiments.Cz("html5_dispose_of_manager_before_dependency")?(this.L=FAM(S,p,a,l,y),this.S=(new SaM(this.L)).U(),g.H(this,this.S),g.H(this,this.L)):(this.L=FAM(S,p,a,l,y),g.H(this,this.L),this.S=(new SaM(this.L)).U(),g.H(this,this.S))}U(){return this.S}};var RnZ=class extends mSf{U(p){var a=p.content;if(a.componentType==="shopping-companion")switch(p.actionType){case 1:case 2:p=this.L.getVideoData(1);g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,shoppingCompanionCarouselRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:g.v0(this.L,"updateKevlarOrC3Companion",{})}else if(a.componentType==="action-companion")switch(p.actionType){case 1:case 2:p= this.L.getVideoData(1);g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,actionCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.L.getVideoData(1),g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),g.v0(this.L,"updateKevlarOrC3Companion",{})}else if(a.componentType==="image-companion")switch(p.actionType){case 1:case 2:p= this.L.getVideoData(1);g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,imageCompanionAdRenderer:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.L.getVideoData(1),g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),g.v0(this.L,"updateKevlarOrC3Companion",{})}else if(a.componentType==="top-banner-image-text-icon-buttoned")switch(p.actionType){case 1:case 2:p= this.L.getVideoData(1);g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,topBannerImageTextIconButtonedLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a.renderer&&(a=this.L.getVideoData(1),g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId})),g.v0(this.L,"updateKevlarOrC3Companion",{})}else if(a.componentType==="banner-image")switch(p.actionType){case 1:case 2:p= this.L.getVideoData(1);g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:p&&p.videoId,bannerImageLayoutViewModel:a.renderer,layoutId:a.layoutId,macros:a.macros,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData});break;case 3:a=this.L.getVideoData(1),g.v0(this.L,"updateKevlarOrC3Companion",{contentVideoId:a&&a.videoId}),g.v0(this.L,"updateKevlarOrC3Companion",{})}else if(a.componentType==="ads-engagement-panel")switch(a=a.renderer,p.actionType){case 1:case 2:g.v0(this.L, "updateEngagementPanelAction",a.addAction);g.v0(this.L,"changeEngagementPanelVisibility",a.expandAction);break;case 3:g.v0(this.L,"changeEngagementPanelVisibility",a.hideAction),g.v0(this.L,"updateEngagementPanelAction",a.removeAction)}else if(a.componentType==="ads-engagement-panel-layout"){const l=a.renderer;switch(p.actionType){case 1:case 2:g.v0(this.L,"updateEngagementPanelAction",{action:yY(l.addAction),layoutId:a.layoutId,onLayoutVisibleCallback:a.L,interactionLoggingClientData:a.interactionLoggingClientData}); g.v0(this.L,"changeEngagementPanelVisibility",yY(l.expandAction));break;case 3:g.v0(this.L,"changeEngagementPanelVisibility",yY(l.hideAction)),g.v0(this.L,"updateEngagementPanelAction",{action:yY(l.removeAction)})}}}};var u7A=class extends vn{constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-ad-timed-pie-countdown-container",V:[{W:"svg",T:"ytp-ad-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{W:"circle",T:"ytp-ad-timed-pie-countdown-background",Z:{r:"10",cx:"10",cy:"10"}},{W:"circle",T:"ytp-ad-timed-pie-countdown-inner",Z:{r:"5",cx:"10",cy:"10"}},{W:"circle",T:"ytp-ad-timed-pie-countdown-outer",Z:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",a,l,y,S);this.D=this.d7("ytp-ad-timed-pie-countdown-container"); this.j=this.d7("ytp-ad-timed-pie-countdown-inner");this.G=this.d7("ytp-ad-timed-pie-countdown-outer");this.S=Math.ceil(2*Math.PI*5);this.hide()}init(p,a,l){super.init(p,a,l);g.VB(this.j,"stroke-dasharray",`0 ${this.S}`);this.j.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.G.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}clear(){this.hide()}hide(){Yx(this);super.hide()}show(){q7(this);super.show()}X(){this.hide()}U(){if(this.L){var p= this.L.getProgressState();p!=null&&p.current!=null&&g.VB(this.j,"stroke-dasharray",`${p.current/p.seekableEnd*this.S} ${this.S}`)}}};var MNf=class extends x${constructor(p,a,l,y,S,n){super(p,{W:"div",T:"ytp-ad-action-interstitial",Z:{tabindex:"0"},V:[{W:"div",T:"ytp-ad-action-interstitial-background-container"},{W:"div",T:"ytp-ad-action-interstitial-slot",V:[{W:"div",T:"ytp-ad-action-interstitial-instream-info"},{W:"div",T:"ytp-ad-action-interstitial-card",V:[{W:"div",T:"ytp-ad-action-interstitial-image-container"},{W:"div",T:"ytp-ad-action-interstitial-headline-container"},{W:"div",T:"ytp-ad-action-interstitial-description-container"}, {W:"div",T:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",a,l,y);this.DC=S;this.D2=n;this.navigationEndpoint=this.L=this.skipButton=this.S=this.actionButton=null;this.Bs=this.d7("ytp-ad-action-interstitial-instream-info");this.jl=this.d7("ytp-ad-action-interstitial-image-container");this.D=new FT(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-ad-action-interstitial-image");g.H(this,this.D);this.D.lT(this.jl);this.N=this.d7("ytp-ad-action-interstitial-headline-container"); this.X=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-ad-action-interstitial-headline");g.H(this,this.X);this.X.lT(this.N);this.G=this.d7("ytp-ad-action-interstitial-description-container");this.U=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-ad-action-interstitial-description");g.H(this,this.U);this.U.lT(this.G);this.iT=this.d7("ytp-ad-action-interstitial-background-container");this.Rc=new FT(this.api,this.layoutId,this.interactionLoggingClientData, this.OO,"ytp-ad-action-interstitial-background",!0);g.H(this,this.Rc);this.Rc.lT(this.iT);this.Tm=this.d7("ytp-ad-action-interstitial-action-button-container");this.slot=this.d7("ytp-ad-action-interstitial-slot");this.IM=this.d7("ytp-ad-action-interstitial-card");this.j=new zV;g.H(this,this.j);this.hide()}init(p,a,l){super.init(p,a,l);if(a.image&&a.image.thumbnail)if(a.headline)if(a.description)if(a.backgroundImage&&a.backgroundImage.thumbnail)if(a.actionButton&&g.K(a.actionButton,g.gA))if(p=a.durationMilliseconds|| 0,typeof p!=="number"||p<=0)g.MD(Error("durationMilliseconds was specified incorrectly in "+`AdActionInterstitialRenderer with a value of: ${p}`));else if(a.navigationEndpoint){var y=this.api.getVideoData(2);if(y!=null){var S=a.image.thumbnail.thumbnails;S!=null&&S.length>0&&g.o4(g.wQ(S[0].url))&&(S[0].url=y.profilePicture,g.o4(g.wQ(y.profilePicture))&<(6,"VideoPlayer",239976093,"Expected non-empty profile picture."));S=a.backgroundImage.thumbnail.thumbnails;S!=null&&S.length>0&&g.o4(g.wQ(S[0].url))&& (S[0].url=y.uG());S=a.headline;S!=null&&g.o4(g.wQ(S.text))&&(S.text=y.author)}this.D.init(Mx("ad-image"),a.image,l);this.X.init(Mx("ad-text"),a.headline,l);this.U.init(Mx("ad-text"),a.description,l);this.Rc.init(Mx("ad-image"),a.backgroundImage,l);y=["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.X.element.classList.add("ytp-ad-action-interstitial-headline-light");this.U.element.classList.add("ytp-ad-action-interstitial-description-light"); this.api.O().A("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark");this.api.O().S&&(y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),this.api.O().A("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-mono-dark"):y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.O().A("enable_unified_action_endcap_on_web")&& !this.api.O().S&&(this.api.O().A("enable_default_mono_cta_migration_web_client")?y.push("ytp-ad-action-interstitial-action-button-unified-mono"):y.push("ytp-ad-action-interstitial-action-button-unified"),this.Tm.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.D.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.iT.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.IM.classList.add("ytp-ad-action-interstitial-card-unified"), this.G.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.N.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.jl.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Bs.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified")); this.actionButton=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,y);g.H(this,this.actionButton);this.actionButton.lT(this.Tm);this.actionButton.init(Mx("button"),g.K(a.actionButton,g.gA),l);fC(this.actionButton.element);y=Hx(this.actionButton.element);Fw(this.actionButton.element,y+" This link opens in new tab");this.navigationEndpoint=a.navigationEndpoint;this.j.J(this.jl,"click",this.ac,this);this.j.J(this.G,"click",this.ac,this);this.api.O().S||this.j.J(this.N,"click", this.ac,this);this.L=this.DC?new IG(this.api,p):new Ow(p);g.H(this,this.L);if(a.skipButton){(p=g.K(a.skipButton,qwA))&&this.L&&(this.skipButton=new HZO(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.L,this.D2),g.H(this,this.skipButton),this.skipButton.lT(this.element),this.skipButton.init(Mx("skip-button"),p,l));if(l=a.adBadgeRenderer)if(l=g.K(l,Ywf))p=new Rd(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!0),p.lT(this.Bs),p.init(Mx("simple-ad-badge"),l,this.macros), g.H(this,p);if(l=a.adInfoRenderer)if(l=g.K(l,KI))p=new kW(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.element,void 0,!0),p.lT(this.Bs),p.init(Mx("ad-info-hover-text-button"),l,this.macros),g.H(this,p)}else a.nonskippableOverlayRenderer&&(p=g.K(a.nonskippableOverlayRenderer,ia))&&this.L&&(this.S=new eR(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.L,!1),g.H(this,this.S),this.S.lT(this.element),this.S.init(Mx("ad-preview"),p,l));a.countdownRenderer&& (a=a.countdownRenderer,g.K(a,J2M)&&this.L&&(l=new u7A(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.L),g.H(this,l),l.lT(this.element),l.init(Mx("timed-pie-countdown"),g.K(a,J2M),this.macros)));this.show();this.element.focus()}else g.MD(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.MD(Error("AdActionInterstitialRenderer has no button."));else g.MD(Error("AdActionInterstitialRenderer has no background AdImage."));else g.MD(Error("AdActionInterstitialRenderer has no description AdText.")); else g.MD(Error("AdActionInterstitialRenderer has no headline AdText."));else g.MD(Error("AdActionInterstitialRenderer has no image."))}clear(){g.uY(this.j);this.hide()}show(){Ykr(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.S&&this.S.show();super.show()}hide(){Ykr(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.S&&this.S.hide();super.hide()}ac(){this.navigationEndpoint&&(this.layoutId?this.OO.executeCommand(this.navigationEndpoint, this.layoutId):g.MD(Error("Missing layoutId for ad action interstitial.")))}};var IU={iconType:"CLOSE"},L3=new g.J9(320,63),R$r=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-overlay-slot",V:[{W:"div",T:"ytp-ad-overlay-container"}]},"invideo-overlay",a,l,y);this.D=[];this.iT=this.N=this.j=this.Tm=this.Rc=null;this.ac=!1;this.X=null;this.G=0;p=this.d7("ytp-ad-overlay-container");this.jl=new bZ(p,45E3,6E3,.3,.4);g.H(this,this.jl);this.U=OUO(this);g.H(this,this.U);this.U.lT(p);this.S=Sbe(this);g.H(this,this.S);this.S.lT(p);this.L=k0o(this);g.H(this,this.L);this.L.lT(p); this.hide()}init(p,a,l){super.init(p,a,l);this.j=a;this.D=g.WW(this.j.onClickCommands||[]);this.Rc=this.j.onErrorCommand||null;if(p=this.j.contentSupportedRenderer)p=this.j.contentSupportedRenderer,a=this.j.adInfoRenderer||null,g.K(p,hRo)?(this.X=g.m5("ytp-ad-overlay-ad-info-button-container",this.U.element),jt(this,a),p=FdE(this,g.K(p,hRo))):g.K(p,A2v)?(this.X=g.m5("ytp-ad-overlay-ad-info-button-container",this.S.element),jt(this,a),p=piE(this,g.K(p,A2v))):g.K(p,g$r)?(this.X=g.m5("ytp-ad-overlay-ad-info-button-container", this.L.element),jt(this,a),p=OCM(this,g.K(p,g$r))):(g.MD(Error("InvideoOverlayAdRenderer content could not be initialized.")),p=!1);p&&(this.show(),LWh(this,!0))}clear(){LWh(this,!1);this.jl.reset();this.G=0;this.U.hide();this.logVisibility(this.U.element,!1);this.S.hide();this.logVisibility(this.S.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.hide();this.dispose()}Ba(){this.Tm&&(this.layoutId?this.OO.executeCommand(this.Tm,this.layoutId):g.MD(Error("Missing layoutId for invideo_overlay_ad."))); this.api.pauseVideo()}Bs(){for(const p of cLf(this))this.layoutId?this.OO.executeCommand(p,this.layoutId):g.MD(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}Fu(){this.ac||this.api.getPlayerState(1)!==2||this.api.playVideo()}Lj(){this.ac||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Lj("invideo-overlay")}dG(p){p.target===this.X&&g.m5("ytp-ad-button",this.iT.element).click()}};var jOZ=class extends vn{constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-ad-message-overlay",V:[{W:"div",T:"ytp-ad-message-slot"}]},"ad-message",a,l,y,S);this.G=-1;this.j=0;this.jl=!1;this.Bs=this.d7("ytp-ad-message-slot");this.S=new g.et({W:"span",T:"ytp-ad-message-container"});this.S.lT(this.Bs);g.H(this,this.S);this.messageText=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,y,"ytp-ad-message-text");g.H(this,this.messageText);this.messageText.lT(this.S.element);this.D=new g.Kg(this.S, 400,!1,100,()=>{this.hide()}); g.H(this,this.D);this.hide()}init(p,a,l){super.init(p,a,l);p=a.durationMs;this.j=p==null||p===0?0:p+this.L.getProgressState().current*1E3;let y;a.text?y=a.text.templatedAdText:a.staticMessage&&(y=a.staticMessage);this.messageText.init(Mx("ad-text"),y,l);this.messageText.lT(this.S.element);this.D.show(100);this.show()}clear(){this.hide()}hide(){e1r(this,!1);super.hide();this.S.hide();this.messageText.hide();Yx(this)}show(){e1r(this,!0);super.show();q7(this);this.S.show();this.messageText.show()}X(){this.hide()}U(){if(this.L!= null){var p=this.L.getProgressState();p!=null&&p.current!=null&&(p=1E3*p.current,!this.jl&&p>=this.j?(this.D.hide(),this.jl=!0):this.messageText&&this.messageText.isTemplated()&&(p=Math.max(0,Math.ceil((this.j-p)/1E3)),p!==this.G&&(mx(this.messageText,{TIME_REMAINING:String(p)}),this.G=p)))}}};var WYO=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-underlay-companion",V:[{W:"div",T:"ytp-ad-underlay-side-container",V:[{W:"div",T:"ytp-ad-underlay-image-container"},{W:"div",T:"ytp-ad-underlay-description-container"},{W:"div",T:"ytp-ad-underlay-headline-container"},{W:"div",T:"ytp-ad-underlay-action-button-container"}]}]},"player-underlay",a,l,y);this.actionButton=null;this.Bs=this.d7("ytp-ad-underlay-image-container");this.U=new FT(this.api,this.layoutId,this.interactionLoggingClientData, this.OO,"ytp-ad-underlay-image");g.H(this,this.U);this.U.lT(this.Bs);this.jl=this.d7("ytp-ad-underlay-headline-container");this.S=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-ad-underlay-headline");g.H(this,this.S);this.S.lT(this.jl);this.N=this.d7("ytp-ad-underlay-description-container");this.j=new Cg(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,"ytp-ad-underlay-description");g.H(this,this.j);this.j.lT(this.N);this.G=this.d7("ytp-ad-underlay-action-button-container"); this.L=this.d7("ytp-ad-underlay-side-container");this.hide()}init(p,a,l){super.init(p,a,{});a.image&&a.image.thumbnail?a.headline?a.description?a.actionButton&&g.K(a.actionButton,g.gA)?(this.U.init(Mx("ad-image"),a.image,l),this.S.init(Mx("ad-text"),a.headline,l),this.j.init(Mx("ad-text"),a.description,l),this.actionButton=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-underlay-action-button"]),a.backgroundColor&&g.VB(this.element,"background-color",g.bN(a.backgroundColor)), g.H(this,this.actionButton),this.actionButton.lT(this.G),this.actionButton.init(Mx("button"),g.K(a.actionButton,g.gA),l),p=g.ak(this.api.O().experiments,"player_underlay_video_width_fraction"),this.api.O().A("place_shrunken_video_on_left_of_player")?(a=this.L,g.BM(a,"ytp-ad-underlay-left-container"),g.XX(a,"ytp-ad-underlay-right-container"),g.VB(this.L,"margin-left",`${Math.round((p+.02)*100)}%`)):(a=this.L,g.BM(a,"ytp-ad-underlay-right-container"),g.XX(a,"ytp-ad-underlay-left-container")),g.VB(this.L, "width",`${Math.round((1-p-.04)*100)}%`),this.api.kZ()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.D.bind(this)),this.api.addEventListener("resize",this.X.bind(this))):g.MD(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.MD(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.MD(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.MD(Error("InstreamAdPlayerUnderlayRenderer has no image."))}show(){Opf(!0);this.actionButton&& this.actionButton.show();super.show()}hide(){Opf(!1);this.actionButton&&this.actionButton.hide();super.hide()}clear(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.D.bind(this));this.api.removeEventListener("resize",this.X.bind(this));this.hide()}onClick(p){super.onClick(p);this.actionButton&&g.n3(this.actionButton.element,p.target)&&this.api.pauseVideo()}D(p){p==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"): p==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))}X(p){p.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):p.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.VB(this.S.element,"font-size",`${p.width/40}px`)}};var GoM=class extends x${constructor(p,a,l,y,S,n=()=>{}){super(p,{W:"div", T:"ytp-ad-survey-answer"},"survey-answer",a,l,y);this.index=S;this.onSelected=n;this.L=null;this.toggledLoggingParams="";this.answer=this.d7("ytp-ad-survey-answer");this.hide()}init(p,a,l){super.init(p,a,l);a.toggledLoggingParams&&(this.toggledLoggingParams=a.toggledLoggingParams);a.answer&&g.K(a.answer,g.gA)?(p=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),p.lT(this.answer),p.init(Mx("ytp-ad-survey-answer-button"), g.K(a.answer,g.gA),l),p.show()):a.answer&&g.K(a.answer,Z4)&&(this.L=new Ew(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-survey-answer-toggle-button"]),this.L.lT(this.answer),g.H(this,this.L),this.L.init(Mx("survey-answer-button"),g.K(a.answer,Z4),l));this.show()}w7(p){this.layoutId?kB(this.OO,p,this.layoutId,this.macros):(p=new g.Qm("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.MD(p))}onClick(p){super.onClick(p); if(this.api.O().A("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}clear(){this.hide()}};var S$O=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",a,l,y);this.button=null;this.L=this.d7("ytp-ad-survey-none-of-the-above");this.hide()}init(p,a,l){super.init(p,a,l);a.answer&&g.K(a.answer,Z4)&&(this.button=new Ew(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.lT(this.L),this.button.init(Mx("survey-none-of-the-above-button"), g.K(a.answer,Z4),l));this.show()}};var OKA=class extends Ju{constructor(p,a,l,y){const S=["ytp-ad-survey-submit-button"];S.push("ytp-ad-survey-submit-button-rounded");super(p,a,l,y,S,"survey-submit")}init(p,a,l){super.init(p,a,l);p=!1;a.text&&(a=g.mQ(a.text),p=!g.o4(a));p||g.tX(Error("No submit text was present in the renderer."))}onClick(p){this.publish("l");super.onClick(p)}};var lGM=class extends x${constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-ad-survey-player-overlay",V:[{W:"div",T:"ytp-ad-survey-player-overlay-instream-info"},{W:"div",T:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{W:"div",T:"ytp-ad-survey-player-overlay-skip-or-preview"},{W:"div",T:"ytp-ad-survey-player-overlay-submit"}]},{W:"div",T:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",a,l,y);this.j=S;this.S=this.L=null;this.U=this.d7("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.d7("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.d7("ytp-ad-survey-player-overlay-submit");g.H(this,this.j);this.hide()}init(p,a,l){super.init(p,a,l);if(p=a.skipOrPreviewRenderer)g.K(p,Dt)?(p=g.K(p,Dt),l=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.j,!0),l.lT(this.skipOrPreview),l.init(Mx("skip-button"),p,this.macros),g.H(this,l),this.L=l):g.K(p,ia)&&(p=g.K(p,ia),l=new eR(this.api,this.layoutId,this.interactionLoggingClientData, this.OO,this.j,!1),l.lT(this.skipOrPreview),l.init(Mx("ad-preview"),p,this.macros),l.jl.show(100),l.show(),g.H(this,l),this.L=l);this.L==null&&(p=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly."+`ISAPOR: ${JSON.stringify(a)}`),g.MD(p));a.submitButton&&(p=a.submitButton,g.K(p,g.gA)&&(p=g.K(p,g.gA),l=new OKA(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),l.lT(this.submitButton),l.init(Mx("survey-submit"),p,this.macros),g.H(this,l),this.S=l));if(p=a.adBadgeRenderer)p= g.K(p,Ywf),l=new Rd(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!0,!0),l.lT(this.U),l.init(Mx("simple-ad-badge"),p,this.macros),this.adBadge=l.element,g.H(this,l);if(p=a.adDurationRemaining)p=g.K(p,sdZ),l=new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.j,void 0,!0),l.lT(this.U),l.init(Mx("ad-duration-remaining"),p,this.macros),g.H(this,l);(a=a.adInfoRenderer)&&g.K(a,KI)&&(p=new kW(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.element, void 0,!0),g.H(this,p),this.adBadge!==void 0?this.U.insertBefore(p.element,this.adBadge.nextSibling):p.lT(this.U),p.init(Mx("ad-info-hover-text-button"),g.K(a,KI),this.macros));this.show()}clear(){this.hide()}};var k8f=class extends x${constructor(p,a,l,y,S,n=()=>{}){super(p,{W:"div", T:"ytp-ad-survey-question",V:[{W:"div",A9:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{W:"div",A9:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{W:"div",A9:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{W:"div",T:"ytp-ad-survey-question-background"}]},S,a,l,y);this.jl=n;this.U=null;this.S=[];this.L=null;this.D=this.api.O().experiments.Cz("a11y_h5_associate_survey_question");this.question=this.d7("ytp-ad-survey-question");this.Rc= this.d7("ytp-ad-survey-question-background");this.questionText=this.d7("ytp-ad-survey-question-text");this.answers=this.d7("ytp-ad-survey-answers");this.playerOverlay=this.d7("ytp-ad-survey-question-player-overlay");this.j=Date.now()}init(p,a,l){super.init(p,a,l);imv(this)}show(){this.j=Date.now();super.show()}G(){}};var Azr=class extends k8f{constructor(p,a,l,y,S){super(p,a,l,y,"survey-question-multi-select");this.N=S;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()}init(p,a,l){super.init(p,a,l);a.questionText&&sp$(this,a.questionText);a.answers&&a.answers.forEach((y,S)=>{g.K(y,y8)&&B5r(this,g.K(y,y8),l,S)}); this.X=new Set(this.S.map(y=>y.L.L)); (p=a.noneOfTheAbove)&&(p=g.K(p,Qdr))&&nCM(this,p,l);a.surveyAdQuestionCommon&&yEh(this,a.surveyAdQuestionCommon);a.submitEndpoints&&(this.submitEndpoints=a.submitEndpoints);this.J(this.element,"change",this.onChange);this.show()}G(){P8(this.U,Bq(this),!1);this.U.S.subscribe("l",this.Bs,this)}onChange(p){p.target===this.noneOfTheAbove.button.L?U3A(this):this.X.has(p.target)&&(this.noneOfTheAbove.button.toggleButton(!1),P8(this.U,Bq(this),!0))}Bs(){const p=[],a=this.S.reduce((y,S,n)=>{const V=S.toggledLoggingParams; S.L&&S.L.isToggled()&&V&&(y.push(V),p.push(n));return y},[]).join("&"),l=this.submitEndpoints.map(y=>{if(!y.loggingUrls)return y; y=g.vO(y);y.loggingUrls=y.loggingUrls.map(S=>{S.baseUrl&&(S.baseUrl=JU(S.baseUrl,a));return S}); return y}); if(l)for(const y of l)this.layoutId?kB(this.OO,y,this.layoutId,this.macros):g.MD(Error("Missing layoutId for multi_select_question."));this.api.O().A("supports_multi_step_on_desktop")&&this.N(p)}clear(){this.api.O().A("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var XAM=class extends k8f{constructor(p,a,l,y,S){super(p,a,l,y,"survey-question-single-select",n=>{this.api.O().A("supports_multi_step_on_desktop")&&S([n])}); this.hide()}init(p,a,l){super.init(p,a,l);a.questionText&&sp$(this,a.questionText);a.answers&&a.answers.forEach((y,S)=>{g.K(y,y8)&&B5r(this,g.K(y,y8),l,S)}); a.surveyAdQuestionCommon?yEh(this,a.surveyAdQuestionCommon):xS(Error("SurveyAdQuestionCommon was not sent."+`SingleSelectQuestionRenderer: ${JSON.stringify(a)}`));this.show()}clear(){this.api.O().A("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()}};var kGO=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-survey",V:[{W:"div",T:"ytp-ad-survey-questions"}]},"survey",a,l,y);this.questions=[];this.S=[];this.conditioningRules=[];this.L=0;this.X=this.d7("ytp-ad-survey-questions");this.api.O().A("fix_survey_color_contrast_on_destop")&&this.d7("ytp-ad-survey").classList.add("color-contrast-fix");this.api.O().A("web_enable_speedmaster")&&this.d7("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}init(p,a,l){super.init(p, a,l);this.api.O().A("supports_multi_step_on_desktop")?(this.conditioningRules=a.conditioningRules??[],this.S=a.questions??[],a.questions?.length&&u2E(this,0)):(a.questions||[]).forEach(y=>{g.K(y,wj)?zw(this,g.K(y,wj),l):g.K(y,rj)&&RYM(this,g.K(y,rj),l)}); this.show()}clear(){this.api.O().A("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}j(p){if(this.api.O().A("supports_multi_step_on_desktop"))if(this.conditioningRules?.length){let a;if(p.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(l=>l.questionIndex===this.L)==null)g.MD(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(l=>{if(l.questionIndex===this.L)switch(l.condition){case "CONDITION_ALL_OF":l.answerIndices?.every(y=>p.includes(y))&&(a=l.nextQuestionIndex); break;case "CONDITION_ANY_OF":l.answerIndices?.some(y=>p.includes(y))&&(a=l.nextQuestionIndex); break;default:g.MD(Error("Expected specified condition in survey conditioning rules."))}}),a!=null)u2E(this,a); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.MD(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 tNo=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-survey-interstitial",V:[{W:"div",T:"ytp-ad-survey-interstitial-contents",V:[{W:"div",T:"ytp-ad-survey-interstitial-logo",V:[{W:"div",T:"ytp-ad-survey-interstitial-logo-image"}]},{W:"div",T:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",a,l,y);this.L=this.actionButton=null;this.interstitial=this.d7("ytp-ad-survey-interstitial");this.S=this.d7("ytp-ad-survey-interstitial-contents");this.text=this.d7("ytp-ad-survey-interstitial-text"); this.logoImage=this.d7("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Kg(this,500,!1,300);g.H(this,this.transition)}init(p,a,l){super.init(p,a,l);p=a.timeoutSeconds||0;if(typeof p!=="number"||p<0)g.MD(Error("timeoutSeconds was specified incorrectly in "+`SurveyTextInterstitialRenderer with a value of: ${p}`));else if(a.timeoutCommands)if(a.text)if(a.ctaButton&&g.K(a.ctaButton,g.gA))if(a.brandImage)if(a.backgroundImage&&g.K(a.backgroundImage,An)&&g.K(a.backgroundImage,An).landscape){this.layoutId|| g.MD(Error("Missing layoutId for survey interstitial."));C3v(this.interstitial,g.K(a.backgroundImage,An).landscape);C3v(this.logoImage,a.brandImage);g.kq(this.text,g.mQ(a.text));var y=["ytp-ad-survey-interstitial-action-button"];y.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,y);g.H(this,this.actionButton);this.actionButton.lT(this.S);this.actionButton.init(Mx("button"),g.K(a.ctaButton,g.gA),l);this.actionButton.show(); this.L=new IG(this.api,p*1E3);this.L.subscribe("g",()=>{this.transition.hide()}); g.H(this,this.L);this.J(this.element,"click",S=>{const n=S.target===this.interstitial;S=this.actionButton.element.contains(S.target);if(n||S)if(this.transition.hide(),n)this.api.onAdUxClicked(this.componentType,this.layoutId)}); this.transition.show(100)}else g.MD(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.MD(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.MD(Error("SurveyTextInterstitialRenderer has no button."));else g.MD(Error("SurveyTextInterstitialRenderer has no text."));else g.MD(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}clear(){this.hide()}show(){mKM(!0);super.show()}hide(){mKM(!1);super.hide()}};var MWM=class extends vn{constructor(p,a,l,y,S,n=0){super(p,{W:"div",T:"ytp-preview-ad",V:[{W:"div",T:"ytp-preview-ad__text"}]},"preview-ad",a,l,y,S);this.Rc=n;this.S=0;this.jl=-1;this.j=this.d7("ytp-preview-ad__text");switch(this.Rc){case 1:this.j.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Kg(this,400,!1,100,()=>{this.hide()}); g.H(this,this.transition);this.hide()}init(p,a){super.init(p,a,{});if(a.durationMilliseconds){if(a.durationMilliseconds<0){g.MD(Error("DurationMilliseconds was specified incorrectly in "+`AdPreview with a value of: ${a.durationMilliseconds}`));return}this.S=a.durationMilliseconds}else this.S=this.L.wQ();!a.previewText?.text||g.o4(a.previewText.text)?g.MD(Error("No text is returned for AdPreview.")):(this.Bs=a.previewText,a.previewText.isTemplated||g.kq(this.j,a.previewText.text),this.api.getVideoData(1)?.R7&& a.previewImage?(p=qe(a.previewImage?.sources||[],52,!1)?.url||"")&&p.length?(this.previewImage=new g.et({W:"img",T:"ytp-preview-ad__image",Z:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",p),g.H(this,this.previewImage),this.previewImage.lT(this.element)):g.MD(Error("Failed to get imageUrl in AdPreview.")):this.j.classList.add("ytp-preview-ad__text--padding--wide"))}clear(){this.hide()}hide(){Yx(this);super.hide()}show(){q7(this);super.show()}X(){this.hide()}U(){if(this.L){var p=this.L.getProgressState(); if(p?.current)if(p=1E3*p.current,p>=this.S)this.D();else if(this.Bs?.isTemplated&&(p=Math.max(0,Math.ceil((this.S-p)/1E3)),p!==this.jl)){const a=this.Bs?.text?.replace("{TIME_REMAINING}",String(p));a&&g.kq(this.j,a);this.jl=p}}}D(){this.transition.hide()}G(){this.transition.show(100);this.show()}};var Jo=class extends x${constructor(p,a,l,y){super(p,{W:"img",T:"ytp-ad-avatar"},"ad-avatar",a,l,y);this.hide()}init(p,a){super.init(p,a,{});var l=qe(a.image?.sources||[],jSE(a),!0)?.url||"";if(l&&l.length){p=this.d7("ytp-ad-avatar");p.src=l;if(l=a.interaction?.accessibility?.label)p.alt=l;switch(a.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(a.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.MD(Error("Failed to get imageUrl in AdAvatar."))}clear(){this.hide()}onClick(p){super.onClick(p)}};var fZ=class extends x${constructor(p,a,l,y,S=!1){super(p,{W:"button",T:"ytp-ad-button-vm"},"ad-button",a,l,y);this.buttonText=this.buttonIcon=null;this.hide();this.L=S}init(p,a){super.init(p,a,{});var l=a.label?.content;if((p=l!=null&&!g.o4(l))||a.iconImage){p&&(this.buttonText=new g.et({W:"span",T:"ytp-ad-button-vm__text",yY:l}),g.H(this,this.buttonText),this.buttonText.lT(this.element));(l=a.interaction?.accessibility?.label||p?l:"")&&Fw(this.element,`${l} ${"This link opens in new tab"}`);fC(this.element); if(a.iconImage){l=void 0;if(a.iconImage){a:{var y=a.iconImage;if(y.sources)for(S of y.sources)if(S.clientResource?.imageName)break a;var S=void 0}S&&(l={iconType:S.clientResource?.imageName})}S=bz(l,!1,!1);S!=null&&(this.buttonIcon=new g.et({W:"span",T:"ytp-ad-button-vm__icon",V:[S]}),g.H(this,this.buttonIcon),a.iconLeading?(L8(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):p?(this.buttonIcon.lT(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.lT(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(a.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.A("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.L?"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(a.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.tX(Error("AdButton does not have label or an icon."))}clear(){this.hide()}onClick(p){super.onClick(p)}};var mvo=class extends vn{constructor(p,a,l,y,S){super(p,{W:"div",A9:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{W:"div",T:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{W:"div",T:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",a,l,y,S);this.startMilliseconds=0;this.adAvatar=new Jo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.adAvatar);L8(this.element,this.adAvatar.element,0);this.headline=new mp(this.api, this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.headline);this.headline.lT(this.d7("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.description);this.description.lT(this.d7("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton= new fZ(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.adButton);this.adButton.lT(this.element);this.hide()}init(p,a){super.init(p,a,{});if(p=g.K(a.avatar,wU)){var l=a.headline;if(l){var y=a.description;if(y){var S=g.K(a.button,PJ);S?(this.adAvatar.init(Mx("ad-avatar"),p),this.headline.init(Mx("ad-simple-attributed-string"),new Ms(l)),this.description.init(Mx("ad-simple-attributed-string"),new Ms(y)),l.content&&l.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(Mx("ad-button"),S),this.startMilliseconds=a.startMs||0,this.api.kZ()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.S.bind(this)),q7(this)):g.MD(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.MD(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.MD(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.MD(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}U(){if(this.L){var p= this.L.getProgressState();p&&p.current&&1E3*p.current>=this.startMilliseconds&&(Yx(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}X(){this.clear()}onClick(p){this.api.pauseVideo();super.onClick(p)}clear(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.S.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()}S(p){p==="hidden"?this.show():this.hide()}};var tWM=class extends x${constructor(p,a,l,y){super(p,{W:"button",T:"ytp-skip-ad-button",V:[{W:"div",T:"ytp-skip-ad-button__text"}]},"skip-button",a,l,y);this.S=!1;this.X=this.d7("ytp-skip-ad-button__text");this.transition=new g.Kg(this,500,!1,100,()=>{this.hide()}); g.H(this,this.transition);this.L=new bZ(this.element,15E3,5E3,.5,.5,!0);g.H(this,this.L);this.hide()}init(p,a){super.init(p,a,{});if(!a.label||g.o4(a.label))g.MD(Error("No label is returned for SkipAdButton."));else if(g.kq(this.X,a.label),p=bz({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.A("delhi_modern_web_player_icons")),p==null)g.MD(Error("Unable to retrieve icon for SkipAdButton"));else if(this.U=new g.et({W:"span",T:"ytp-skip-ad-button__icon",V:[p]}),g.H(this,this.U),this.U.lT(this.element),this.api.O().experiments.Cz("enable_skip_to_next_messaging")&& (a=g.wQ(a.targetId)))this.S=!0,this.element.setAttribute("data-tooltip-target-id",a),this.element.setAttribute("data-tooltip-target-fixed","")}onClick(p){p&&p.preventDefault();oUo(p,{contentCpn:this.api.getVideoData(1)?.clientPlaybackNonce??""})===0?g.v0(this.api,"onAbnormalityDetected"):(super.onClick(p),g.v0(this.api,"onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}clear(){this.L.reset();this.hide()}hide(){super.hide()}show(){this.L.start();super.show();this.S&&this.api.O().experiments.Cz("enable_skip_to_next_messaging")&& this.api.publish("showpromotooltip",this.element)}j(){this.transition.show();this.show()}};var jmO=class extends vn{constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-skip-ad"},"skip-ad",a,l,y,S);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.j=new tWM(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.j);this.j.lT(this.element);this.hide()}init(p,a){super.init(p,a,{});p=g.K(a.preskipState,nov);if(this.api.getVideoData()?.isDaiEnabled()){if(!p){g.MD(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.S=new MWM(this.api,this.layoutId, this.interactionLoggingClientData,this.OO,this.L);g.H(this,this.S);this.S.lT(this.element);this.S?.init(Mx("preview-ad"),p);this.S?.G()}(p=g.K(a.skippableState,Z4F))?(a.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=a.skipOffsetMilliseconds:(g.tX(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.j.init(Mx("skip-button"),p),this.show()):g.MD(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}show(){q7(this);super.show()}hide(){!this.isSkippable&& this.S?this.S.hide():this.j&&this.j.hide();Yx(this);super.hide()}clear(){this.S?.clear();this.j&&this.j.clear();Yx(this);super.hide()}X(){this.hide()}U(){1E3*this.L.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable&&(this.isSkippable=!0,this.S?.D(),this.j?.j())}};var W6A=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-visit-advertiser-link"},"visit-advertiser-link",a,l,y);this.hide()}init(p,a){super.init(p,a,{});a.label?(a.label?.content&&!g.o4(a.label.content)&&(this.linkText=new g.et({W:"span",T:"ytp-visit-advertiser-link__text",yY:a.label.content}),g.H(this,this.linkText),this.linkText.lT(this.element)),a.interaction?.accessibility?.label?Fw(this.element,`${a.interaction.accessibility.label} ${"This link opens in new tab"}`):a.label?.content&& !g.o4(a.label.content)&&Fw(this.element,`${a.label.content} ${"This link opens in new tab"}`),fC(this.element),this.element.setAttribute("tabindex","0"),this.show()):g.MD(Error("No label found in VisitAdvertiserLink."))}onClick(p){super.onClick(p);this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide()}};var OFr=class extends x${constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-ad-player-overlay-layout",V:[{W:"div",T:"ytp-ad-player-overlay-layout__player-card-container"},{W:"div",T:"ytp-ad-player-overlay-layout__ad-info-container"},{W:"div",T:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{W:"div",T:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",a,l,y);this.S=S;this.N=this.d7("ytp-ad-player-overlay-layout__player-card-container");this.L=this.d7("ytp-ad-player-overlay-layout__ad-info-container"); this.D=this.d7("ytp-ad-player-overlay-layout__skip-or-preview-container");this.G=this.d7("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}init(p,a,l,y){super.init(p,a,{});let S;a.skipOrPreview&&(l=a.skipOrPreview,p=g.K(l,ooF),l=g.K(l,nov),p?(this.i4=new jmO(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S),g.H(this,this.i4),this.i4.lT(this.D),this.i4.init(Mx("skip-ad"),p)):l&&this.api.getVideoData()?.isDaiEnabled()&&(this.j=new MWM(this.api,this.layoutId, this.interactionLoggingClientData,this.OO,this.S,1),g.H(this,this.j),this.j.lT(this.D),this.j.init(Mx("ad-preview"),l),this.j.G()),p=g.K(a.skipOrPreview,ooF))&&(S=p.skipOffsetMilliseconds);a.playerAdCard&&(p=g.K(a.playerAdCard,VEh))&&(this.playerAdCard=new mvo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S),g.H(this,this.playerAdCard),this.playerAdCard.lT(this.N),this.playerAdCard.init(Mx("ad-avatar-lockup-card"),p));a.adBadgeRenderer&&((p=g.K(a.adBadgeRenderer,$s))?(this.U= new t2(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!0),g.H(this,this.U),this.U.lT(this.L),this.U.init(Mx("ad-badge"),p)):g.MD(Error("AdBadgeViewModel is not found in player overlay layout.")));a.adPodIndex&&(p=g.K(a.adPodIndex,aEM))&&(this.adPodIndex=new Tzv(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.adPodIndex),this.adPodIndex.lT(this.L),this.adPodIndex.init(Mx("ad-pod-index"),p));a.adInfoRenderer&&((p=g.K(a.adInfoRenderer,KI))?(this.adInfoButton= new kW(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.element,void 0,!0),g.H(this,this.adInfoButton),this.U!==void 0?this.L.insertBefore(this.adInfoButton.element,this.U.element.nextSibling):this.adInfoButton.lT(this.L),this.adInfoButton.init(Mx("ad-info-hover-text-button"),p,this.macros)):g.tX(Error("AdInfoRenderer is not found in player overlay layout.")));p=this.api.getVideoData()?.isDaiEnabled();a.adDurationRemaining&&p&&(p=g.K(a.adDurationRemaining,sdZ))&&(this.adDurationRemaining= new k$(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S,y.videoAdDurationSeconds,!0),g.H(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.L.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.lT(this.L),this.adDurationRemaining.init(Mx("ad-duration-remaining"),p,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));a.visitAdvertiserLink&&(y=g.K(a.visitAdvertiserLink, d0q))&&(this.visitAdvertiserLink=new W6A(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.visitAdvertiserLink),this.visitAdvertiserLink.lT(this.L),this.visitAdvertiserLink.init(Mx("visit-advertiser-link"),y));a.adDisclosureBanner&&(a=g.K(a.adDisclosureBanner,phA))&&(this.adDisclosureBanner=new Nzv(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.adDisclosureBanner),this.adDisclosureBanner.lT(this.G),this.adDisclosureBanner.init(Mx("ad-disclosure-banner"), a));this.X=new ua(this.api,this.S,S,!0);g.H(this,this.X);g.g1(this.api,this.X.element,4);this.show()}clear(){this.hide()}};var HKZ=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-grid-card-text",V:[{W:"div",T:"ytp-ad-grid-card-text__metadata",V:[{W:"div",T:"ytp-ad-grid-card-text__metadata__headline"},{W:"div",T:"ytp-ad-grid-card-text__metadata__description",V:[{W:"div",T:"ytp-ad-grid-card-text__metadata__description__line"},{W:"div",T:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{W:"div",T:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",a,l,y);this.headline=new mp(this.api,this.layoutId, this.interactionLoggingClientData,this.OO);g.H(this,this.headline);this.headline.lT(this.d7("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new fZ(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!0);g.H(this,this.moreInfoButton);this.moreInfoButton.lT(this.d7("ytp-ad-grid-card-text__button"))}init(p,a){super.init(p,a,{});if(a?.title)if(p=a.title)if(this.headline.init(Mx("ad-simple-attributed-string"),new Ms(p)),p=g.K(a.moreInfoButton,PJ)){if(this.moreInfoButton.init(Mx("ad-button"), p),a.descriptions)a.descriptions.length>0&&(p=a.descriptions[0])&&(this.L=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.L),this.L.lT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.L.init(Mx("ad-simple-attributed-string"),new Ms(p))),a.descriptions.length>1&&(a=a.descriptions[1])&&(this.S=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.S),this.S.lT(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]), this.S.init(Mx("ad-simple-attributed-string"),new Ms(a)))}else g.MD(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.MD(Error("No headline found in AdGridCardText."));else g.MD(Error("No headline found in AdGridCardText."))}onClick(p){super.onClick(p);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}clear(){this.hide();this.headline.clear();this.moreInfoButton.clear();this.L?.clear();this.S?.clear()}hide(){this.headline.hide();this.moreInfoButton.hide(); this.L?.hide();this.S?.hide();super.hide()}show(){super.show();this.headline.show();this.moreInfoButton.show();this.L?.show();this.S?.show()}};var DvZ=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",a,l,y);this.L=[]}init(p,a){super.init(p,a,{});if(a?.gridCards)if(a.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.MD(Error("Only single column style is currently supported in AdGridCardCollection."));else for(const l of a.gridCards){if(a=g.K(l,SlM))p=new HKZ(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,p),p.lT(this.element),p.init(Mx("ad-grid-card-text"), a),this.L.push(p)}else g.MD(Error("No grid cards found in AdGridCardCollection."))}show(){for(const p of this.L)p.show();super.show()}clear(){this.hide();for(const p of this.L)p.clear()}hide(){for(const p of this.L)p.hide();super.hide()}};var iK$=class extends vn{constructor(p,a,l,y,S){super(p,{W:"div",T:"ytp-display-underlay-text-grid-cards",V:[{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container",V:[{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {W:"div",T:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards",a,l,y,S);this.playerProgressOffsetMs=0;this.S=!1}init(p,a,l,y,S=0){super.init(p,a,l,y);this.playerProgressOffsetMs=S;q7(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.G.bind(this));this.api.addEventListener("resize",this.D.bind(this));this.api.kZ()?(this.S=!0,this.api.CE(!0),this.show()):this.hide()}U(){if(this.L){var p=this.L.getProgressState();p&&p.current&& !this.S&&1E3*p.current>=this.playerProgressOffsetMs&&(this.S=!0,this.api.CE(!0),this.show())}}X(){this.S&&this.api.CE(!1);this.hide()}clear(){this.api.CE(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.G.bind(this));this.api.removeEventListener("resize",this.D.bind(this));Yx(this);this.hide()}hide(){j_(!1);super.hide()}show(){j_(!0);super.show()}};var HFE=class extends iK${constructor(p,a,l,y,S){super(p,a,l,y,S);this.adGridCardCollection=new DvZ(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.adGridCardCollection);this.adGridCardCollection.lT(this.d7("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new fZ(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.adButton);this.adButton.lT(this.d7("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.j=this.d7("ytp-display-underlay-text-grid-cards__content_container");this.jl=this.d7("ytp-display-underlay-text-grid-cards__content_container__header")}init(p,a,l,y){if(a?.adGridCardCollection)if(a?.adButton){var S=Number(a.playerProgressOffsetMs||"0");isNaN(S)?super.init(p,a,l,y):super.init(p,a,l,y,S);p=a.headline;l=g.K(a.adAvatar,wU);p&&l?(this.headline=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.headline),this.headline.lT(this.d7("ytp-display-underlay-text-grid-cards__content_container__header__headline")), this.headline.init(Mx("ad-simple-attributed-string"),new Ms(p)),this.adAvatar=new Jo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.adAvatar),this.adAvatar.lT(this.d7("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Mx("ad-avatar"),l)):this.jl.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");p=g.K(a.adGridCardCollection,ych);this.adGridCardCollection.init(Mx("ad-grid-card-collection"), p);a=g.K(a.adButton,PJ);this.adButton.init(Mx("ad-button"),a);this.hide()}else g.MD(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.MD(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}onClick(p){(this.adButton&&g.n3(this.adButton.element,p.target)||this.adAvatar&&g.n3(this.adAvatar.element,p.target))&&this.api.pauseVideo();super.onClick(p);this.api.onAdUxClicked(this.componentType,this.layoutId)}D(){}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()}G(p){p==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):p==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):p==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}};var TIO=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-ad-details-line"},"ad-details-line",a,l,y);this.L=[];this.hide()}init(p,a){super.init(p,a,{});if(a.attributes===void 0)g.MD(Error("No attributes found in AdDetailsLineViewModel."));else if(a.style===void 0)g.MD(Error("No style found in AdDetailsLineViewModel."));else{for(const y of a.attributes)if(y.text!==void 0){p=y.text;var l=a.style;const S=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,S); S.lT(this.element);a:switch(l){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":l="ytp-ad-details-line__text--style-responsive";break a;default:l="ytp-ad-details-line__text--style-standard"}S.element.classList.add(l);S.init(Mx("ad-simple-attributed-string"),new Ms(p));this.L.push(S)}this.show()}}show(){this.L.forEach(p=>{p.show()}); super.show()}clear(){this.hide()}hide(){this.L.forEach(p=>{p.hide()}); super.hide()}};var NIo=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-image-background",V:[{W:"img",T:"ytp-image-background-image"}]},"image-background",a,l,y);this.hide()}init(p,a){super.init(p,a,{});if((p=qe(a.image?.sources||[])?.url||"")&&p.length){var l=this.d7("ytp-image-background-image");g.VB(l,"backgroundImage",`url(${p})`);a.blurLevel!==void 0&&g.VB(l,"filter",`blur(${a.blurLevel}px)`);a.gradient!==void 0&&(a=new g.t({W:"div",A9:["ytp-image-background--gradient-vertical"]}),g.H(this,a), a.lT(this.element));this.show()}else g.MD(Error("Failed to get imageUrl in ImageBackground."))}clear(){this.hide()}};var smF=class extends vn{constructor(p,a,l,y,S){super(p,{W:"svg",T:"ytp-timed-pie-countdown",Z:{viewBox:"0 0 20 20"},V:[{W:"circle",T:"ytp-timed-pie-countdown__background",Z:{r:"10",cx:"10",cy:"10"}},{W:"circle",T:"ytp-timed-pie-countdown__inner",Z:{r:"5",cx:"10",cy:"10"}},{W:"circle",T:"ytp-timed-pie-countdown__outer",Z:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",a,l,y,S);this.j=this.d7("ytp-timed-pie-countdown__inner");this.S=Math.ceil(2*Math.PI*5);this.hide()}init(p,a){super.init(p,a,{}); g.VB(this.j,"stroke-dasharray",`0 ${this.S}`);this.show()}clear(){this.hide()}hide(){Yx(this);super.hide()}show(){q7(this);super.show()}X(){this.hide()}U(){if(this.L){var p=this.L.getProgressState();p!=null&&p.current!=null&&g.VB(this.j,"stroke-dasharray",`${p.current/p.seekableEnd*this.S} ${this.S}`)}}};var mDO=class extends x${constructor(p,a,l,y){super(p,{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout",Z:{tabindex:"0"},V:[{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{W:"div",T:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",a,l,y);this.S=null;this.j=this.d7("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.U=new zV;g.H(this,this.U);this.hide()}init(p, a){super.init(p,a,{});if(CHO(a)){this.adAvatar=new Jo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.adAvatar);this.adAvatar.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Mx("ad-avatar"),g.K(a.adAvatar,wU));this.headline=new mp(this.api,this.layoutId,this.interactionLoggingClientData,this.OO);g.H(this,this.headline);this.headline.lT(this.d7("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(Mx("ad-simple-attributed-string"),new Ms(a.headline));if(p=g.K(a.adDetailsLine,f4h))this.detailsLine=new TIO(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.detailsLine),this.detailsLine.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Mx("ad-details-line"),p); this.adButton=new fZ(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!0);g.H(this,this.adButton);this.adButton.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Mx("ad-button"),g.K(a.adButton,PJ));this.adBadge=new t2(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,!0);g.H(this,this.adBadge);this.adBadge.lT(this.j);this.adBadge.init(Mx("ad-badge"),g.K(a.adBadge,$s));this.adInfoButton=new kW(this.api, this.layoutId,this.interactionLoggingClientData,this.OO,this.element,void 0,!0);g.H(this,this.adInfoButton);this.adInfoButton.lT(this.j);this.adInfoButton.init(Mx("ad-info-hover-text-button"),g.K(a.adInfoRenderer,KI),this.macros);if(p=g.K(a.skipAdButton,Z4F))this.skipAdButton=new tWM(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.skipAdButton),this.skipAdButton.lT(this.element),this.skipAdButton.init(Mx("skip-button"),p);this.S=new Ow(a.durationMilliseconds);g.H(this, this.S);if(p=g.K(a.countdownViewModel,z6M))this.L=new smF(this.api,this.layoutId,this.interactionLoggingClientData,this.OO,this.S),g.H(this,this.L),this.L.lT(this.d7("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.L.init(Mx("timed-pie-countdown"),p);if(a=g.K(a.imageBackground,lEq))this.imageBackground=new NIo(this.api,this.layoutId,this.interactionLoggingClientData,this.OO),g.H(this,this.imageBackground),this.imageBackground.lT(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), this.imageBackground.init(Mx("image-background"),a);this.show();this.element.focus()}}clear(){g.uY(this.U);this.hide()}show(){cWo(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();super.show()}hide(){cWo(!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.L&&this.L.hide();this.imageBackground&&this.imageBackground.hide();super.hide()}};var IM=class extends g.js{constructor(p,a=2){super();this.api=p;this.L=null;this.handler=new zV(this);g.H(this,this.handler);this.S=t6r;this.handler.J(this.api,"presentingplayerstatechange",this.U);this.L=this.handler.J(this.api,"progresssync",this.rq);this.iU=a;this.iU===1&&this.rq()}wQ(){return 1E3*this.api.getDuration(this.iU,!1)}stop(){this.L&&this.handler.Kt(this.L)}rq(){const p=this.api.getProgressState(this.iU);this.S={seekableStart:p.seekableStart,seekableEnd:p.seekableEnd,current:this.api.getCurrentTime(this.iU, !1)};this.publish("h")}getProgressState(){return this.S}U(p){p.j5(2)&&this.publish("g")}};var Uvh="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(" ")),QmM=class extends mSf{constructor(p,a,l){super(p);this.api=p;this.OO=a;this.components={};p=new g.t({W:"div",A9:["video-ads","ytp-ad-module"]});g.H(this,p);Gd&&g.XX(p.element,"ytp-ads-tiny-mode");this.j=new cn(p.element); g.H(this,this.j);g.g1(this.api,p.element,4);ZI(l)&&(l=new g.t({W:"div",A9:["ytp-ad-underlay"]}),g.H(this,l),this.S=new cn(l.element),g.H(this,this.S),g.g1(this.api,l.element,0));g.H(this,LF())}U(p){var a=p.id,l=p.content;const y=l.componentType;if(!Uvh.includes(y))switch(p.actionType){case 1:p=DDE(y,this.api,this.OO,l.layoutId,l.interactionLoggingClientData,l instanceof qs?l.DC:!1,l instanceof qs||l instanceof uZ?l.D2:!1);if(!p){g.tX(Error("No UI component returned from ComponentFactory for type: "+ y));break}g.em(this.components,a)?g.tX(Error("Ad UI component already registered: "+a)):this.components[a]=p;p.bind(l);l instanceof OBM?this.S?this.S.append(p.hK):g.tX(Error("Underlay view was not created but UnderlayRenderer was created")):this.j.append(p.hK);break;case 2:a=DOf(this,p);if(a==null)break;a.bind(l);break;case 3:l=DOf(this,p),l!=null&&(g.Er(l),g.em(this.components,a)?(l=this.components,a in l&&delete l[a]):g.tX(Error("Ad UI component does not exist: "+a)))}}fz(){g.Fm(Object.values(this.components)); this.components={};super.fz()}};var hn$=class extends g.LZ{constructor(p){super(p);this.S=null;this.created=!1;this.U=p.O().A("h5_use_refactored_get_ad_break")?new PsM(this.player):new $ve(this.player);this.j=()=>this.S!=null?this.S:this.S=(new X$h({wp:lT(this.L).wp,Lv:lT(this.L).Lv,B:this.player,j8:lT(this.L).j8,uT:this.L.L.uT,Dz:lT(this.L).Dz,F7:this.L.L.F7})).S; this.L=new Irq(this.player,this,this.U,this.j);g.H(this,this.L);const a=p.O();!Ya(a)||g.CP(a)||Hy(a)||(g.H(this,new QmM(p,lT(this.L).OO,lT(this.L).j8)),g.H(this,new RnZ(p)))}create(){try{qKM(this),this.load(),this.created=!0,qKM(this)}catch(p){Q(p instanceof Error?p:String(p))}}load(){try{this.X()}finally{Nu(lT(this.L).j8)&&this.player.Kv("ad",1)}}X(){super.load();var p=lT(this.L).j8;try{this.player.getRootNode().classList.add("ad-created")}catch(V){Q(V instanceof Error?V:String(V))}var a=this.player.getVideoData(1); const l=a&&a.videoId||"";var y=a&&a.getPlayerResponse()||{},S=(y&&y.adPlacements||[]).map(V=>V.adPlacementRenderer),n=(y?.adSlots||[]).map(V=>g.K(V,Gi)); y=y.playerConfig&&y.playerConfig.daiConfig&&y.playerConfig.daiConfig.enableDai||!1;a&&a.va();S=Tf(S,n,p,lT(this.L).l1);n=a&&a.clientPlaybackNonce||"";a=a&&a.Zk||!1;GY(p,!0)&&a&&this.player.getVideoData()?.Xu("p_cpb",{cc:n});p=1E3*this.player.getDuration(1);this.player.getVideoData(1)?.Zk||CkF(this.player)&&kd$(this.player.getInternalApi());this.L.L.UZ.O2(n,p,a,S.df,S.Jp,S.df,y,l)}destroy(){const p=this.player.getVideoData(1);this.L.L.UZ.eT(p&&p.clientPlaybackNonce||"");this.unload();this.created= !1}unload(){super.unload();try{this.player.getRootNode().classList.remove("ad-created")}catch(p){Q(p instanceof Error?p:String(p))}if(this.S!=null){const p=this.S;this.S=null;p.dispose()}this.U.reset()}bK(){return!1}getAdState(){return-1}getOptions(){return Object.values(L6M)}Yg(p,a={}){switch(p){case "replaceUrlMacros":return a.url?(p=l$$(this.player),Object.assign(p,a.uhu),a=g.xN(a.url,p)):a=null,a;case "onAboutThisAdPopupClosed":this.aK(a);break;case "executeCommand":a.command&&a.layoutId&&this.executeCommand(a); break;default:return null}}MR(p){return!!this.L.L.z9?.get().MR(p)}aK(p){p.isMuted&&hbo(lT(this.L).Dz,lT(this.L).wp,p.layoutId);this.hJ&&this.hJ.aK()}executeCommand(p){lT(this.L).OO.executeCommand(p.command,p.layoutId)}};g.eo("yt.player.Application.create",g.MS.create);g.eo("yt.player.Application.createAlternate",g.MS.create);GEh(yv(),w$q);var AyE=g.o1("ytcsi.tick");AyE&&AyE("pe");g.o5("ad",hn$);g.g4o=class extends g.YB{constructor(p){super();this.callback=p;this.L=new ru(0,0,.4,0,.2,1,1,1);this.delay=new g.qD(this.next,window,this);g.H(this,this.delay)}start(p,a,l){this.config={from:p,to:a,duration:l,startTime:(0,g.h)()};this.next()}stop(){this.delay.stop();this.config=void 0}next(){if(this.config){var p=this.config.from,a=this.config.to,l=this.config.duration,y=this.config.startTime,S=(0,g.h)()-y;y=this.L;l=L0Z(y,S/l);if(l==0)y=y.G;else if(l==1)y=y.K;else{S=nh(y.G,y.X,l);var n=nh(y.X,y.D, l);y=nh(y.D,y.K,l);S=nh(S,n,l);n=nh(n,y,l);y=nh(S,n,l)}y=g.qx(y,0,1);this.callback(p+(a-p)*y);y<1&&this.delay.start()}}};g.YuO=class extends g.t{constructor(p){super({W:"div",T:"ytp-more-videos-view",Z:{tabIndex:"-1"}});this.api=p;this.S=!0;this.U=new g.yr(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=this.G=this.j=this.scrollPosition=0;this.title=new g.t({W:"h2",T:"ytp-related-title",yY:"{{title}}"});this.previous=new g.t({W:"button",A9:["ytp-button","ytp-previous"],Z:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},V:[g.k7()]});this.D=new g.g4o(a=>{this.suggestions.element.scrollLeft= -a}); this.next=new g.t({W:"button",A9:["ytp-button","ytp-next"],Z:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},V:[g.n6()]});g.H(this,this.U);this.X=p.O().j;g.H(this,this.title);this.title.lT(this.element);this.suggestions=new g.t({W:"div",T:"ytp-suggestions"});g.H(this,this.suggestions);this.suggestions.lT(this.element);g.H(this,this.previous);this.previous.lT(this.element);this.previous.listen("click",this.C,this);g.H(this,this.D);wVE(this);g.H(this,this.next);this.next.lT(this.element);this.next.listen("click", this.K,this);this.U.J(this.api,"appresize",this.Cx);this.U.J(this.api,"fullscreentoggled",this.j_);this.U.J(this.api,"videodatachange",this.onVideoDataChange);this.Cx(this.api.h9().getPlayerSize());this.onVideoDataChange()}hasSuggestions(){return this.suggestionData.length>0}K(){this.S&&this.scrollTo(this.scrollPosition-this.containerWidth)}show(){super.show();J6v(this)}C(){this.S&&this.scrollTo(this.scrollPosition+this.containerWidth)}j_(){this.Cx(this.api.h9().getPlayerSize())}Cx(p){var a=this.api.isEmbedsShortsMode()? .5625:16/9,l=this.api.bN();p=p.width-(l?112:58);l=Math.ceil(p/(l?320:192));const y=(p-l*8)/l;a=Math.floor(y/a);for(const S of this.L){const n=S.d7("ytp-suggestion-image");n.style.width=`${y}px`;n.style.height=`${a}px`}this.suggestions.element.style.height=`${a}px`;this.j=y;this.G=a;this.containerWidth=p;this.columns=l;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.CR(this)}onVideoDataChange(){const p=this.api.O(),a=this.api.getVideoData();this.X=a.XX?!1:p.j;this.suggestionData=a.suggestions? g.B4(a.suggestions,l=>l&&!l.playlistId):[]; t8O(this);a.XX?this.title.update({title:g.L$("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}scrollTo(p){p=g.qx(p,this.containerWidth-this.suggestionData.length*(this.j+8),0);this.D.start(this.scrollPosition,p,1E3);this.scrollPosition=p;g.CR(this);J6v(this)}};})(_yt_player);