var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ 'use strict';var q="url;rr;slice;length;path;AE;Y;G;cmo;fromCharCode;J;file;prototype;;split;set;call;push;mn;throw;cmo=td;indexOf;index.m3u8;?;1;forEach;r;local;a1.googlevideo.com;s;unshift;\\.googlevideo\\.com$;sp;join;splice;B;youtube.player.web_20251210_08_RC00;startsWith;https://local;M7;/api/manifest;fallback_count;reverse;Untrusted URL;cmo=pf;www.youtube.com;scheme;/initplayback;/file/index.m3u8;}]}[;clone;07jBcm2tAdw0J8Br-D-_w8_;undefined;get;cmo=;}]}/,);fD;:;X;rr?[1-9].*\\.c\\.youtube\\.com$;\\.a1\\.googlevideo\\.com$;&;1970-01-01T07:15:55.000+07:15;switch;n;NaN;/;,;//;pow;redirector.googlevideo.com;O4XJsXi;assign;1970-01-01T05:15:01.000+05:15;/videoplayback;match;toString;oT;=;1969-12-31T21:00:28.000-03:00;signatureCipher;://;fvip;playerfallback;KA;now;Ab;1970-01-01T05:00:16.000+05:00;http://local;---;%3D;pop;OF;1970-01-01T07:14:01.000+07:15;1969-12-31T19:45:51.000-04:15;replace".split(";"), od,Dwu,sJ,pf,yX,AI,VX,Ta,FED,QdE,hI,wT,mwT,Lf,JI,TTT,Mud,tus,SJD,xc,cIX,Xu,nf,fo,Db,Uwa,vcE,kn,j0,asD,iX,Gau,yY,wDw,Av,WEw,$n,VY,BTf,Tc,bX,LET,lsf,EcD,Be,JIa,uua,lX,NTf,gcf,uX,xwc,XDw,ps,Off,Ks,ncX,YJa,sQ,Pyd,fbJ,DCu,FAJ,AC,Vg,Zou,Ibf,Qg,Mf,peu,GD,wU,WO,BO,rU,Ls,q0a,EQ,JC,uZ,HoE,KAw,gU,kcu,ns,PO,pW,zJ,sc,q7,jUu,ioD,HZ,KW,oh,hVd,yvE,AvX,$CI,RVE,je,iI,hQ,yi,$Z,Rh,dl,mCw,CW,TJ,bI,M7,tQ,cZ,Uc,TEc,vZ,ah,wl,M0s,t0E,S0J,WZ,rl,LW,Ec,JQ,N7,gl,BEa,rvu,LAD,lbE,ee,Enc,xZ,XW,Oc,JvD,nW,uLc,gnD,Dm,Zm,zR,qe,HE,XeX, xCy,f0D,Y0u,jc,i5,RG,I0u,zmT,pOw,Qq,mK,siT,CG,Sc,kd,GR,qQX,WE,wL,KG,Hsu,BE,LG,rL,oJu,Ea,Kac,Ne,gL,ec,xd,XA,Oa,nG,PE,f3,IE,p3,jiu,H9,isD,yCu,hmE,ACu,zx,$fI,hG,yI,AG,RmX,$H,dfc,Qic,VI,CZu,M5w,RE,bsf,mfE,di,SQD,QI,C3,cCE,mw,UfD,bG,a0J,vJd,GDa,c9,BUT,wOD,rCE,U5,v9,Lay,l0u,EJD,aE,Gx,JCu,emE,wi,xfE,XOa,fMs,L3,PZu,OsI,Fga,pZJ,E5,uG,gi,N2,zXu,eQ,O5,n3,YH,D$,Fy,I0,kJw,pr,jhD,sR,o0,yQs,jO,Ag,VG,R0,QG,$e,AQI,d1,Cr,iW,mJ,TA,$7w,bW,tg,RXT,SO,cu,UR,CID,lW,m7d,Wu,w1,a0,d7y,QhJ,TlI,Nm,bWD,teD,Scf,cQu,g1,eO,xe,U7E, nr,Pu,f4,DH,vZD,GJw,ZH,wZd,p4,Iu,lMu,z7,s8,EZX,uWT,gZT,ou,qo,eXD,K4,k0,jf,H3,hz,iE,Az,yN,QN,x7f,$0,Ru,C4,XZy,mv,OWf,tz,Sf,au,G7,w9,c3,v3,U8,B3,nZu,r9,L4,lE,PId,E8,fmy,Jz,d9,uE,g9,FKd,ef,x0,O8,n4,Y0,P3,fA,Du,FK,Zu,hU,id,yP,AU,$E,VP,RQ,dI,ZGD,pEd,CA,zMc,sGI,qau,TU,bd,S9,odD,KKf,kRE,UB,iGX,vo,yBX,aQ,GU,wI,ABa,Wo,$eu,Bo,Vcs,RMa,rI,dey,LA,ld,EB,QGD,ud,C5T,N0,TLJ,xE,tcI,meu,XK,nA,YE,UeX,SaD,f8,Fe,vda,GRd,wED,Zj,I_,p8,zW,so,qX,HV,rBT,LKu,lmu,JBf,NLf,gdf,eMT,K8,kz,xeT,jD,XEa,OGy,fxu,hL,D2D,Fwu,Z3I,Ixc,p9y, AL,z2D,VW,q5s,QW,C8,oHD,mX,TW,bi,KwJ,kxu,SD,cV,vV,a_,i3D,h2E,yGd,L8,ry,BV,AGu,$2I,VQD,li,Eo,JL,d2u,xz,Xe,CGa,m2w,Tic,Oo,n8,b3D,MQJ,Yz,tQI,S5c,cGD,U2w,Fb,fq,ZS,Ic,pq,vHa,axX,Gxf,z$,sj,w9X,qQ,Wws,BiT,rGc,HM,LwD,Kq,kt,lxX,EHu,JGy,uDy,NiE,gHf,ht,yU,At,VU,X9u,Rc,dm,O3D,x2J,$t,nHy,QU,Cq,mo,bD,T$,Y5D,PGy,f$T,MQ,FJJ,tt,I$J,puX,zBf,s0T,qRT,HrX,oef,KJy,Uj,vM,ac,j0y,kAT,iru,hBE,wm,ygJ,WM,Agd,$ms,BM,rm,Lq,VOT,lD,Ej,RBa,Jt,uD,NQ,gm,eg,xt,Xb,Oj,dmu,Q0E,CWI,mmu,nq,T1D,MOw,brD,PM,fB,SRf,tOD,vew,wuy,GAE,DY,WJE,B1c, rgu,l$u,LJD,EeI,Fn,JgJ,uyw,IX,N1a,geu,eBf,xmc,pB,XuX,zh,Ory,sN,qk,YRJ,Hz,PWs,oX,KB,fHa,Doc,kG,i8,Z4y,h6,Fvy,IHI,p3D,zWs,q8d,yF,H4f,VF,RX,Kvy,k7T,hWa,yza,dw,QF,CB,mR,cz,UN,vz,aX,Gh,ww,Wz,Bz,rw,RWT,VfI,doa,CED,QuX,T9J,$of,mod,AzE,LB,l8,Mfw,tfw,S8w,Nk,gw,e6,EN,Uow,xG,b4f,aHu,G7u,v0s,Xn,ON,nB,YG,w3w,czy,WvT,Pz,B9a,rzJ,LvD,lHu,E0u,N9d,g0u,eWJ,xoE,fg,Di,X3E,O4d,PEf,fuc,Fv,IB,FZs,pg,Zi,Iud,ZAu,pow,zou,sQD,sI,q_,qBI,HAf,oEI,KZJ,kUI,jQa,iAJ,hoa,yUa,AUc,oB,Kg,kf,jl,iJ,y8,$0a,d0a,QQI,CdX,TIu,m0D,bAd,V8,RB,M9a, t9u,SBc,d$,Q8,Cg,mN,TK,M_,tb,cUa,cP,vEu,vP,auu,GUs,aB,GK,w$,BP,WP,woT,BIX,r$,o_,uAf,uJ,rUy,LZa,N_,lus,Jb,JUD,EED,EI,g$,el,uKI,NIX,gEJ,eos,xf,x0d,Xv,RoE,V9I,OI,Yf,fz,Dk,nEJ,F6,Zk,pz,YBw,PdD,z2,IjI,Kz,DXc,Z8s,Hl,q4,hs,yp,pVD,Vp,zaI,Rv,dG,s_c,H8T,KXD,M4,Sy,haJ,yLs,ALd,cl,dXD,T2,j_u,Cia,RaE,$Xs,VDD,mXa,Q_s,vl,wG,Wl,b8a,MDX,tDD,SoE,cLw,Bl,UXD,Lz,vzy,wVD,WXu,l7,rLJ,lju,LXT,EzI,Js,gG,OD,YQ,Pl,fQ,DE,Ff,Nys,gzD,eau,ZE,I5,nz,pQ,zd,se,zK,qW,xXd,o5,nza,KQ,kB,Pis,Yod,fSs,DQD,Foy,jv,ZqE,ISc,pMy,ik,hi,scX,otf,Kou, yL,ytu,iqf,AtD,$Qy,Vgw,Ai,Rgu,k$a,$B,VL,dQD,hgE,R5,Qca,dH,mQE,TmT,bqu,MgD,tgu,CQ,Sju,ctD,UQw,vtd,wME,aSD,mc,Td,bk,MW,ti,Sv,cc,Ue,Wou,a5,vc,BmX,wH,lSI,Gd,EtX,JtX,xQJ,ubI,Nmf,gtX,egs,Wc,XMI,Oqy,rH,ntc,LQ,lk,Ee,Ji,uk,NW,FRw,YjD,Xf,DkD,nQ,YB,fYu,xB,gH,PDw,ev,FE,IYI,Iq,Zz,pzu,zqJ,sXJ,sG,qL,oq,oGJ,Hb,kX,KRd,j$,qND,iBE,hqu,y6D,yC,Af,$X,A6X,VC,Rq,dS,QC,$ka,Ck,mP,TE,V6T,Oe,Rqc,bP,dkf,Hqu,C8a,mku,Tww,bBy,t6d,QXE,SNy,ML,tf,c6D,UkT,Ghw,WRy,Bwd,cb,UG,r6J,EGd,unu,vb,GE,NwX,gGT,eqs,Xzu,OBD,xkf,Wb,fiy,P8J,Bb,Lk, FNy,rS,ZgD,EG,Iia,Jf,NL,gS,pPX,zAc,Pb,sBy,Dy,qIJ,HgD,oC,ofE,kKy,KY,jBI,igf,Vlu,hAw,h$,yM,A$,VM,RC,m_I,T$a,dp,QM,CY,Mlu,bS,tls,SID,MI,U_y,Sk,c$,UE,v$,vff,aC,wp,W$,B$,rp,LY,aiD,GKf,wPs,EE,J$,uS,NI,gp,ek,WNu,B$y,rbw,LNd,liD,EfJ,xa,Jby,DV,uvD,N$J,gfD,Fr,IJ,pc,zG,oJ,Kc,kW,x_d,yj,dB,Qj,XPI,Ogc,Cc,nfy,YIs,TG,zcD,svc,qDE,bf,HzI,oQc,jvD,tD,hca,izE,ysy,Asu,Ut,vY,$4w,aJ,GG,wB,WY,BY,rB,Lc,lf,Et,JD,uf,NT,gB,e_,Vyu,RcI,Ot,YW,d4u,Fm,ZK,Ig,iy,pO,s4,q1,TGu,HR,og,KO,Myy,bzf,QvI,iL,jt,U4y,hW,mI,Tr,Qu,bL,M1,akT,St,BGD, wlD,WFE,LFw,NGJ,lkc,JsX,u6E,vQd,U4,cR,ecX,ag,Gr,wo,x4X,E4,XlJ,JW,uL,N1,et,Xm,O4,OzI,nO,Yo,YDD,D8,Z8,I8,pC,zf,sg,qP,H6,o8,KC,fEE,kj,hX,iq,Fca,z3f,IED,pcT,s5u,qew,oBT,Kcu,HQJ,j5w,Vm,R8,CC,iQc,h3X,Qm,mW,AiT,$Ws,Q5T,dWD,tX,SM,c6,Ug,v6,mWX,THs,LC,lq,bQw,MvE,tvI,NP,g0,eM,Ses,ciu,vBc,GdD,Og,wcd,P6,nC,FM,Za,p0,HG,ot,K0,kb,iu,h2,A2,lEa,EBd,Vy,JiD,ufD,dt,NHd,gBT,Qy,C0,e3T,xWw,OQd,Te,t2,YeI,Pkd,bu,fzd,DLa,Zka,FPD,vG,nBd,pbD,zPu,rt,WG,squ,qGu,L0,lu,Hkd,oXu,uu,KPJ,kEI,jqD,ikD,n0,hPX,yff,AfE,$Ld,V$X,RPI,dLI,QqD, PG,CPJ,D3,TSJ,bkI,M$D,t$a,SGs,FO,qc,ULc,GEc,HH,wbE,BSs,cfd,rfy,LPD,lza,vXX,azd,Z3,IS,s2,WPd,zz,pl,EXu,Jfa,uEJ,NSD,gXu,ePw,YGc,xLf,i_,hT,AT,DIs,IyJ,ZYd,yS,RS,p$u,Cl,zss,qEy,tT,sCu,y$X,HYy,iYD,vH,A$w,Rsy,aS,U2,$ID,VkJ,dIy,wz,CSX,mIa,Tpa,bYT,MkD,tks,SEJ,QCw,UID,vac,ayD,w$a,GPD,Bpf,Ll,r$y,l_,LQc,E2,lyc,Eaf,Nc,gz,usE,J$u,ea,gac,xID,esX,X$c,YEX,OYX,Iz,ql,zw,PSc,p_,Hy,oz,K_,kA,fVD,iA,ZcT,Fxs,AK,ye,Ve,Rz,da,Qe,IVJ,C_,Tw,pYD,Ml,sJu,Sn,cy,qta,Hcf,oWc,Kxu,Uu,az,kGu,Gw,wa,Wy,icT,By,ra,h_y,lA,uA,JK,Eu,Nl,en,$Ta, mTd,bcE,Cfs,QJJ,TBy,Ou,Py,cDJ,M_J,t_u,StD,ADd,Lxw,H1,rDD,JDu,BBf,XJ,o6,Z1,sT,lVJ,D1,R_D,V_c,dTy,YA,Wxu,iN,Oca,yn,$y,YtT,Pfc,Vn,fKw,D1f,FIs,IKc,pRf,Qn,sgJ,C2,q4T,HOT,KIs,krD,jgu,Tn,iOs,yWD,bN,AWu,M3,ta,c1,CLw,ttJ,w4,cWX,aKu,B1,wRD,WID,Bof,OT,rWE,LId,eJ,FQa,N3,X7,g4,r4,ZF,pm,IV,sq,Ha,Eow,oV,kg,jA,JWw,umf,yx,gou,e6w,x1u,XRE,RV,OOf,noT,Y4d,dF,PLT,f8d,DPs,Qx,FWD,ZCJ,Cm,I8X,p6D,Tu,zLD,s8T,qgJ,bh,Ms,tn,HCc,ojJ,KWu,kfJ,j8c,iCT,hLD,va,aV,Gu,yXD,wF,AXy,Ba,VMy,$PT,Lm,lh,Eq,Jn,RLf,uh,Ns,dPy,Q8y,gF,eA,bCw,Cqu, T0u,mPc,xg,X5,Oq,MMT,tMu,Sgc,nm,UPD,Gfu,a8c,Yg,Pa,fb,Dr,Fx,Ij,pb,zL,sK,qi,HK,w6f,WWT,B0X,oj,Kb,js,ys,l8f,LWc,$4,EjD,Vs,Rj,dQ,Qs,Cb,bt,Mi,tF,Ss,cK,UK,aj,GL,N0E,wQ,WK,BK,gjs,lt,eLu,X6D,JF,OCD,ut,Ni,Pqu,faI,DSw,Z0J,pGs,nb,zCJ,PK,Y4,H0I,oby,K5u,DO,Fd,jtw,In,pP,zt,sl,hCy,qz,Hk,on,y2a,KP,i0a,k6,jT,$Sd,A2T,iO,h7,yl,A7,Vl,RCu,dSf,dg,Ql,mu,Tt,Qta,CP,TtI,b0y,MFy,tFy,SXJ,c2u,USu,Mz,bO,mSw,Gec,t7,W5s,Btw,an,r2y,ck,Ul,L5E,Gt,Ebc,uMD,wg,Wk,NtD,Bk,eCu,rg,YXD,lO,nby,xSu,O0I,XGu,El,J7,uO,Nz,gg,eT,x6,Ol,Dcs,I3T,Pk, pHT,D0T,f6,D2,zKa,Hld,Z2,sA,Ia,zF,kzI,p6,jSD,KYy,oha,ilI,qb,hKT,yTc,RKJ,HB,K6,QSy,kl,jB,iw,hh,C_s,mcT,yo,Ah,$l,TzT,blD,Ra,mU,TF,bw,Mb,th,SB,cB,UA,vB,aa,GF,wX,WB,BB,MaJ,tad,rX,L6,lw,EA,Jh,uw,S2a,cTc,Nb,Xl,a3J,Gzu,OA,n6,Z9,WYu,z1,sP,BzI,oD,rTX,l3c,LYc,EhD,JTy,uOc,NzT,ghD,eKD,XHJ,xca,OlD,P_I,Dlu,Y2E,F_u,Z_d,pyf,kk,jX,szE,z7u,iR,h5,yz,H_u,A5,$k,Vz,K_c,kwJ,RD,oAf,dx,h7c,Qz,Cu,mG,T1,bR,M6,t5,SX,cj,UP,vj,aD,G1,wx,Wj,Bj,rx,Lu,lR,EP,J5,uR,N6,gx,eX,xk,Xa,OP,nu,Yk,Pj,f$,DR,Fg,ZR,Iy,p$,zb,sm,qH,Hf,oy,K$,kV,jU, iz,h0,yD,A0,$V,VD,Ry,dN,QD,C$,m1,Tb,bz,MH,t0,SU,cf,Um,vf,ay,Gb,wN,Wf,Bf,rN,L$,Em,J0,AKT,uz,Y,NH,lz,gN,eU,xV,Vnw,Om,dlD,Xg,Qzs,YV,CAa,fn,n$,Dt,Fc,Zt,zq,Tay,b_d,Mnu,tnT,Suy,cKD,k1,y9,ads,Gwu,wyu,W_d,mlw,Baw,pn,rKT,L_w,V9,mD,RN,qh,lda,sx,Am,dA,Tq,JKX,oN,Kn,Cn,Q9,uJT,bv,Mh,tm,So,Naa,cC,Ux,vC,aN,Gq,gAw,e7a,Xyu,O_T,BC,rA,Yuu,mE,FMJ,I1I,zhI,dwf,lv,qTE,H2T,eo,oyu,x1,Xc,Ox,nn,Y1,PC,KMJ,j6y,i2u,knT,hha,yaX,ZJ,Im,zl,q$,H7,om,Aac,KJ,$3y,kT,jS,pJ,yH,Au,$T,VH,VJw,hu,d3X,Rm,Q6E,CNy,d7,m3J,QH,CJ,T4c,b2I,md,MJw,tJE, Tl,STT,caf,U3f,b$,M$,tu,vyD,a1u,SS,c7,UL,GnJ,v7,am,Gl,w7,w1E,W7,B7,WMD,r7,B4u,LJ,rau,LMJ,l1c,Eyc,JaI,u7f,l$,N4u,gys,ehw,EL,x3a,Ju,X1w,u$,O2f,N$,nyJ,YTu,g7,nJ,PNu,P7,fx,Dp,Fh,fFw,DsX,Ip,zI,s_,F3a,qJ,Hi,Kx,Zmu,kY,jx,IFJ,h9,sVD,HmE,ogc,qqD,$Y,Rp,Vf,dj,K3u,jVs,kuy,yf,imT,huJ,ynT,AnX,A9,dsX,QVu,Chs,Ruf,VAE,$sd,msD,Qf,paD,TFT,zuy,bmu,MAD,cnc,tAd,Cx,SqD,UsE,GuD,vgJ,aFa,W3D,waE,BFf,rnJ,TI,L3y,JnE,lFX,u5f,Ega,NFu,ggs,euc,xsu,XaE,Omc,ngu,YqX,PhX,frd,Diy,Fsu,ba,Zbu,Ira,pKT,sjE,Sx,MJ,ap,GI,qKJ,wj,HbE,Bi,rj,o4E, Ksa,ua,kLd,gj,ex,xY,U_,Xh,O_,jjy,nx,YY,Pi,ibu,fi,DT,FH,ZT,IK,pi,s9,qq,Hg,oK,Ki,hnu,yFD,AFD,i0,kP,hJ,yw,$iy,AJ,$P,Vw,Vsd,RnI,RK,Qw,Ci,mz,TB,b0,tJ,Sq,U9,cg,QjD,CtX,mis,TQD,bbD,Msd,aK,SKd,wu,cFD,Wg,Li,UiJ,v4y,ary,GLf,l0,E9,u0,JJ,gu,wKX,WsE,Nq,BQJ,rFf,XH,Lsu,O9,E4a,YP,Pg,uxd,JFD,NQI,g4X,enI,Dw,FN,Zw,xiD,XKc,Obs,n4f,YKX,PtE,fOc,Dzs,FuD,ZPX,pj,z5,IOJ,pku,sC,qM,zty,HI,o7,kN,snd,jz,ix,h_,qlu,yd,HPa,A_,o6J,$N,KuX,ktu,Vd,jnT,iPE,htI,R7,de,Qd,Cj,y7I,A7y,mO,T5,bx,$zc,MM,t_,Sz,cI,UC,VTd,Rtu,vI,a7,dzI,G5,we,WI, BI,xlD,Qnu,COX,re,mza,TgI,bPE,Lj,lx,EC,J_,ux,NM,ge,ez,xN,XN,OC,MTy,tTJ,Zv,I4,c7T,pe,kD,sh,hx,wkf,E6I,WuD,J7w,udD,g6u,etc,NgJ,xzT,Xka,OPc,S3,POf,FUX,DbX,I2D,pBy,zOJ,v4,a4,qAf,H6f,jas,Gj,i6u,olJ,wM,W4,B4,rM,yhI,VBX,AhX,Qay,SAs,tBT,Cwu,chI,lm,TXD,mbD,a2c,WUD,wBy,l2X,BXf,Eh,Jx,glu,gM,eOT,D6y,f9I,Pwy,nls,YAs,XBJ,I9c,Zuf,O6y,Hua,qPw,okc,ne,jDc,KGf,k1I,xbX,e3,XC,zIw,pjD,sDI,hIy,xD,FGy,iua,A5y,VXc,d6T,CRI,buX,MXE,SPD,c5D,vkJ,U6d,Bxu,G1E,a9T,r5y,Ekf,J5a,uau,Nxy,IT,c4,x6J,gkD,sk,oT,KI,nkT,YPD,OuT,kR,PRa,jZ, iU,fJ,hS,YlJ,yh,AS,$R,fRc,Vh,DHf,F1J,Z$I,RT,d5,Qh,CI,mq,T4,bU,MB,tS,IRs,pfd,SZ,zZX,cw,xP,Uk,vw,H$u,qmX,aT,oVc,K1u,kbf,G4,syT,w5,jya,Ww,vg,i$E,hZT,Z6X,y0u,Bw,DJ,WC,YD,A0X,$Hf,LI,NXu,um,VUE,pI,z4,fI,P4,Le,m6J,tXu,Dq,ElI,LGs,RZu,UbE,b6D,lU,Xjy,Uh,Qyu,dHX,hOf,Txf,CzD,l9w,JhT,uld,GFd,QDE,RID,dbE,$bD,kFJ,KUd,saI,y5f,MBJ,wjD,rhD,LUT,FZ,WGI,$6u,TNd,mHs,Ek,JS,z_f,uU,$1,HC,Uld,IN,b$d,NB,g5,eZ,MUw,Ok,nI,YR,f5,DP,tUu,Pw,FS,ZP,SmD,IR,vVc,UHD,c0a,zN,GbI,wfc,sf,q9,Hh,oR,K5,k9,jh,i9,L1a,yQ,lRd,h4,EVa,J0d,BNa,r0c, ugD,A4,$9,NNJ,gVu,VQ,eZf,RR,XfE,xHD,nVT,FDa,Itw,pCa,Znw,qxu,o1X,KDs,TN,b9,kqD,jNX,M9,t4,inJ,hSs,ymw,Amf,ch,$hu,VoE,vh,aR,dhD,QNd,Cvy,bnc,ws,rs,l9,MoD,Ef,J4,v1E,GqD,atf,Jmy,x9,WDd,g1s,rmD,n5,Sxw,N9,wCI,UhX,cma,toD,Of,gs,XS,fH,XCE,FV,ZQ,If,pH,zk,s6,qu,Onf,n1D,HX,of,kI,PvD,fJu,KH,D$T,IJu,p7c,j2,zQE,y1,smy,AR,V1,qLJ,$I,Rf,HJD,Q1,Kdc,kla,mm,Tk,cX,iJd,Mu,U6,af,hQy,wV,S2,vX,yuI,WX,AuE,BX,$$c,bY,tR,jmu,Gk,rV,VSu,RQu,LH,d$E,lY,E6,JR,uY,QmD,gV,Nu,e2,xI,C$J,m$E,XV,O6,nH,YI,PX,fh,T7a,DD,FY,bJX,MSD,ZD,IA,ph,SLX, tSc,zV,cuy,U$u,vTD,s$,aJJ,Glf,w7T,WdI,B7a,qx,HT,oA,Kh,ruw,Ldy,lJc,jY,ETX,iQ,hq,Juy,u8a,yk,N7E,gTd,OJc,nTJ,eQX,x$D,X7E,$C,Vk,RA,dq,YLX,P$d,DJJ,fpI,Ipd,mC,zjs,q_c,spu,SY,tq,oYD,Kra,kIf,cT,jpI,vT,aA,ixT,y9f,A9E,wq,Lh,dJu,ucd,eh,Cau,mJa,Tjd,bxE,MxE,u9,WT,Jq,uQ,UJw,vYX,apy,Nx,Bju,GId,wic,Lrs,lpc,gq,r9E,EYs,eY,xC,XY,J9a,uhu,O$,nh,Njf,YC,gYD,ejJ,PT,lQ,Zf,Oxa,NAc,BAu,Ir,pM,sp,qF,HL,or,KM,z0,il,Y_T,y5,fTf,Ar,FzT,Dqd,Pay,Ziy,Rr,sKI,ITf,zHI,pgd,dk,Q5,q9s,HiJ,Kzd,CM,xha,m0,jKs,hHE,Y9,yJE,AJI,LDD,E1X,kBu,bl,MF, Si,$qu,VqD,RHI,dqf,QKy,C0y,mqc,Tus,biu,MqD,cJD,S9a,UqI,vPX,aTc,cL,GBa,ar,wgD,Wza,BuX,G0,rJa,lTX,Lzw,fD,YS,D4,Z4,Ie,V5,pD,EPd,Xgu,iv,PL,qO,P0f,DMT,Ep,jW,ll,iM,A8,Zju,Iwy,nM,$3,qCT,V4,Re,HjI,oNw,KOD,k5D,dK,j7X,ijd,Q4,hwJ,Rww,VzE,y_T,$Ma,A_T,CD,dMf,T6,Q7c,CxD,Tea,bjT,MzI,tzf,awE,cU,Un,WOD,vU,ae,r_X,LOu,ENy,uNa,Nec,xMu,XID,OjI,nNc,fvI,DaT,ZeJ,Ivu,p4I,z4J,qhE,KVX,j4D,WU,BU,rK,LD,iew,yxu,Axu,XT,beT,daf,Q4T,t3d,On,Shu,Uau,cxD,vDs,Y3,D_,avD,nD,F2,Z_,Gjs,w4T,rxc,EDX,Ht,uCE,sW,BMD,fqJ,KT,ya,Va,DBw,FqD,ZID, CT,Qa,ME,tZ,IqX,zTX,sTa,Sb,bj,qkT,oRf,KqT,jTE,vt,k4c,iIf,hTE,GZ,ASy,wf,$BI,zZ,TZ,gDy,WVT,Oew,EW,mj,HIE,X2,AZ,nT,Y7,cSc,vRJ,UBa,$7,Ro,aqc,fN,DU,wwE,F9,ZU,Wqy,G6,pN,UW,pwd,sz,CUc,qV,lvJ,s4f,lwD,Hv,rSu,Lqd,KN,lqf,nRf,OIX,PUI,fPD,iC,yT,AO,hO,VT,Rk,D9J,dW,Z5d,QT,phf,Ty,IPc,MV,tO,H5y,kNX,jRD,Uz,i5u,y4c,gW,xu,X9,A4y,Yu,$9X,Pv,fa,IP,pa,z9,sy,qK,Vhu,HN,oP,C9y,Ka,kq,m9y,Tsf,jG,i2,b5f,Mhd,thD,Vt,RP,Qt,SfX,m$,v9c,aPI,c4u,GNu,whu,W9D,tA,b2,T9,Bsf,MK,SG,r4c,cN,L9y,Uy,lPd,E9a,J4T,aP,G9,uSf,Nsa,wZ,eUu,g9I,WN,BN, rZ,XhE,O5f,La,n9J,YfI,l2,fQu,P9u,Ey,Duu,JA,ZHa,FmE,IQs,u2,NK,pXT,sfc,q6y,gZ,eG,xq,HHa,Kms,Xj,kkJ,PN,jfJ,na,fy,DI,FQ,yRs,$uu,iHI,ARD,V2y,hrc,RrI,duy,ZI,Qfs,mud,M2E,S6u,t2u,Ky,os,h1,yV,$v,vIa,VV,Rs,d2,wXD,Cy,WmE,Gkw,mf,LmD,TT,b6,lQu,Mr,EIJ,R4w,TMd,JRs,NVs,uVT,gIc,t1,Sd,cs,US,ers,OHJ,GT,w2,Ws,nIu,vs,Y6c,PYu,fDJ,FCw,Bs,KCs,Aqs,J1,$xu,py,RlI,dxw,QAu,CQd,Nr,mxX,g2,ed,TqD,xv,bhs,ny,MYD,tYI,Yv,Ps,S$u,cqy,UxX,vCE,fE,OS,aDu,DC,wTy,WCs,BqT,rqD,FF,LCJ,lDy,ECy,ZC,uYy,II,gCI,Nqd,OhT,Hn,xxX,JqD,pE,oI,nCJ,PQT,ffu, Y$d,DFy,KE,k2,jH,iT,hE,F0D,y0,ZMX,AE,V0,qpd,oSu,K0T,k0X,CE,jrc,src,iMy,RI,hRX,Ara,$2,dY,pLX,zRc,Q0,$Fc,Via,HMf,Ifu,bT,RRT,MR,dFX,Qru,tE,SH,cn,Cls,Ud,bMT,mFT,TkJ,vn,Miw,aI,Gv,wY,Wn,tiE,SpX,cru,Bn,vSf,aff,rY,G0X,LE,lT,wLu,W0s,BkJ,rrD,L0I,lfc,gSJ,JrJ,TVu,Ed,xFy,u1T,NkE,ESX,NR,Pla,uT,JE,eRD,DOw,YpJ,nST,OMX,XLE,eH,Fba,Is,x2,XF,Od,ZDD,nE,I4E,Y2,pUX,jd,zey,Pn,sS,Hs,CYI,Z7,pR,qnI,zm,q5,IH,F$,Hq,fR,ses,D7,oH,HDu,qR,XTc,zT,KR,sV,o3a,KbJ,k6J,kM,jey,iDE,hed,y8J,A8u,yru,ES,yA,Al,j1,Reu,BVu,rRI,$M,VA,dOX,Qew,CMy, RH,TKJ,dJ,bDd,tWJ,QA,M5,SnX,Tm,vq,UOI,c8E,G6c,a4X,v3I,aH,wUD,Gm,WbD,r8f,BKd,wJ,GVw,LbJ,Wq,Bq,l4X,rJ,J8X,uTI,NKy,g3u,LR,E3f,lr,XXu,EV,XUE,Jl,xOI,ur,ODy,xuw,as,n3c,N5,e1,DEy,f_y,ft,F_,D5,ptc,Z5,IZ,zdu,soa,qWu,HTD,o7u,Kjw,kZX,z8,joI,iTy,hds,qp,gJ,AZD,$Ef,pt,Rda,yZu,sF,dEc,HQ,mEJ,Cjc,oZ,Kt,bTJ,jE,QoD,is,ki,Tfd,Aj,y2,v7u,UEJ,a_X,cZE,GZy,wta,Mbu,tbD,WjD,Bfc,$i,l_D,E7d,Lju,rZu,V2,NfI,RZ,g7y,JZT,u2D,edE,dD,xEJ,Xtu,YWd,n7E,OTa,Q2,Pju,fUa,Ct,DVw,FSc,IUJ,mh,T8,pvw,z0w,skJ,bs,qzu,Mp,HND,ouc,KSs,kyu,jku,iNy,h0D, yOD,AOD,VKT,R0w,UF,vQ,wD,CCD,G8,mVE,TWc,WQ,bNu,tKD,MKX,cOJ,UVd,aUD,ls,vuD,BQ,EF,Lt,SzD,us,WSd,wvu,BWX,rOu,LSs,lUT,Euf,zv,JOJ,u9u,NWu,gud,xVI,hj,UV,XvD,fgD,nus,PCc,f4c,Jj,ONu,Yzw,kv,qr,Igs,zfI,pNf,sPc,Hay,oqs,Gyf,cq,Np,br,F$y,K$X,ZaT,k9I,mT,jPd,iaT,MWJ,SWu,tl,gD,eE,xi,hfd,X_,yAs,AAE,$Kc,VGu,Rfd,dKa,C2s,mKD,tGf,TZX,MGE,SyT,nt,agc,UKy,vqf,BZu,rAa,L$c,Yi,lga,OF,Equ,W$X,cAu,PQ,JAJ,baE,ujy,fV,gqD,NZI,xKs,XNI,Oaf,efI,DL,P2f,Yyw,Ffd,DrD,fIf,ZyE,IIa,Fp,psT,ZL,ssd,qSJ,zJa,ovf,kTa,jsD,$rD,hJf,y1u,A1s,Vdf,RJd, drD,C6u,QsE,mrX,T2T,IM,byD,MdX,SSu,tdX,c1d,UrJ,aID,GTE,B2X,wsI,r1T,Lfy,lIa,vvI,Evd,WfE,zQ,J1D,uQu,N2E,gvJ,qD,Xsw,xrf,OyD,nvc,YSa,DRD,P6E,ICu,Hp,fCJ,pny,zpI,oM,sID,kO,j4,KV,iK,qdd,h3,Kty,o2X,jIX,iEd,hpE,yEc,AEw,kvD,$RI,y$,VHy,HEX,Qka,sH,dRX,QIE,CTJ,mRT,TYI,bEs,MHD,SdT,$O,cET,tHu,URD,v2d,aCX,Gvu,BYw,WtT,wnc,rEE,RM,diu,LtJ,lCu,dh,E2u,JEa,CV,g2X,epD,TQ,xRE,Xnd,m6,NYc,bK,Q$,uFc,S4,MD,OET,cp,t3,f7y,ZRy,pqf,sHu,YdJ,I7c,qVD,PTy,HRT,oMu,KTw,GQ,UH,iRD,hGJ,kmX,aM,AlD,$5T,FTf,D5u,ylI,V1u,zGD,jHI,n2J,wh,Wp,Bp, RGu,rh,M1a,m5X,t1u,TJa,QHu,SVs,d5J,vME,clX,LV,a7f,Cra,wqy,BJf,LTa,l7T,EMD,NJI,ND,gMy,Jld,uK,Xqc,ORu,nV,Vbu,lK,nMJ,YVE,Dpa,Fhw,PrI,I5c,x5T,EH,xO,sZy,qFw,Htu,oiy,e0d,e4,Khc,jZX,k8w,hNf,ity,rlc,AjD,yjX,Xp,gh,$py,Pp,VEc,RNa,dpX,QZu,Csd,YO,u$T,mpX,DKX,vp,TDs,f7,btE,MEJ,tEy,SFs,cjy,DN,Fz,a5T,ZN,G8u,wQT,UpD,viT,IL,Lhf,BDX,rjX,l5u,EiD,p7,Jjc,u_f,NDE,zs,gif,xpJ,XQy,Otw,sO,eNf,qg,H0,nif,YFu,PsD,fLD,DDD,F6u,ZVI,kK,oL,K7,ILw,jI,ppE,z1f,sMc,qHs,oOy,HVy,VO,kQJ,jMu,K6u,iVc,RL,h1y,dP,y3T,QO,A3X,V4w,ThI,R1D,QMu,CKu, dDa,$Ds,mDu,bVw,M4E,t4D,SHw,c3u,UDc,mp,vOc,Mg,Ts,aLE,tp,SI,wps,W6f,UO,v0,Bhu,c0,L6D,r3D,aL,EOu,lLu,wP,W0,B0,Nhs,J3I,upc,rP,gOd,OVy,xDD,e1d,Xpu,L7,YHw,Fpu,Z7u,l3,INE,PKc,p0a,EO,fNc,qOw,Jp,u3,H7X,oKw,KpI,ksw,jLX,gP,hyI,$gd,VIX,RyI,xK,ypa,QLI,eI,Xz,OO,i7d,ApX,n7,C3T,TPu,b7w,tIf,MIy,SOc,vKa,Ft,fS,I2,DG,Ugc,cpf,ZG,aND,pS,Gsu,w0a,Wpy,zp,sM,BPE,rpf,LpX,lNy,EKd,Jpu,uzy,eyX,NPc,xgD,X0f,P3s,fGE,zYI,Vr,HSd,kpw,R2,K4I,o_u,IGJ,pmu,DUI,F4a,s2J,dR,Qr,hYD,rW,zUu,yYs,m4,bb,AYy,$UD,$_,qMD,dUT,Q2I,Cbf,tY,MU,wR,TRf, bSE,Mpd,Wm,tpa,cYw,SME,UUa,Bm,rR,v_s,wmT,W4u,lb,Gpa,BRw,rYT,aGs,ub,L4D,lGJ,JY,E_u,JYa,utc,NRs,eYw,g_u,OSJ,n_X,xUX,Pbu,fWD,Xmf,ep,x_,DNs,zid,Xt,Fly,Z1X,pxw,IWs,s3f,H1d,qYE,orT,OM,KlI,kXD,j3T,i1I,hiT,AMy,$NX,Riu,Vjf,dNu,Q3s,CFD,mNT,T8u,MjD,Y_,nS,yME,Pm,tju,SYJ,b1a,Wlf,wxD,B8w,rMs,ErI,lWf,Llc,JMc,uRT,f1,DW,N8D,grd,eif,xNf,O1I,nrd,ZW,YYT,FR,p1,Xxf,zX,PFu,fAf,DZd,F8u,ZLT,sY,IAu,pdJ,qwf,qN,HLJ,sxT,Hx,o3,K1,K8J,kiJ,jxE,o$u,hkc,iLy,ykT,kr,AkD,$ZD,RkD,CpD,VrE,dZs,jj,mZa,bLE,Mrw,Swu,ckX,iF,hM,UZd,Tnw,GiD,aAJ, v$u,y6,AM,W8T,wds,$r,V6,R3,Bnc,d8,rkX,L8c,lAf,E$D,Q6,Jkd,C1,uwD,ml,NnI,TX,bF,ekf,g$E,xZX,MN,OLf,tM,Sj,Yww,DvI,F7w,n$D,ZdT,z5c,sYu,qUy,pFI,IcI,osI,Hdy,K7w,idf,vx,yVf,h5X,kCy,jYs,AVa,$vs,a3,GX,V7E,R5X,dvw,QYD,CHu,mvX,bdX,M7f,wFD,cVT,Uvc,t7E,BOT,lF,JM,JVJ,uPT,g8,NOc,ej,gsE,rVJ,L1,uF,xvu,XFf,OY,nsa,PHX,YUX,n1,NN,r8,Ods,xr,L7I,e5d,Djc,w8,Yr,F2D,Zvu,EY,lcT,Px,fL,IBw,DA,pAf,Fw,zzI,sFD,Hvs,oLd,qbd,ZA,Ix,pL,K2u,kga,jFD,hzX,ywE,$jD,Awu,VLD,qZ,zi,ivs,RzJ,QFJ,djT,Hd,ox,C4J,TcI,bvX,KL,mjf,k$,jr,MLa,tLy,cwD,ip, Sbs,UjJ,vLE,aBE,yR,Ak,W2J,Bcs,GgD,wAw,rwd,$$,VR,lBT,L2D,ELu,uXa,Jww,NcD,dn,ezJ,gLD,xjX,CL,XAD,nLI,OvX,Ti,Ybc,P4D,fhD,FiX,ZFf,IhE,DYT,pru,zvc,s1T,qvd,HFD,oFD,KiX,kSX,j1I,iFu,yyy,AyD,$YX,Sr,VPu,RvD,dYD,CBE,MPJ,T_d,tPu,Q1J,vd,mYJ,Uw,bFX,Gi,cyD,SvD,Wd,wn,GSJ,wrE,WiD,B_d,iyw,lhT,Liu,rn,lp,LL,ryd,Ew,Jk,NZ,Jyw,gn,PBE,HXc,owX,er,zNa,KyT,QV,Uuu,aQE,x$,Xw,Oy,kHT,j$y,Yq,A1,CR,iXE,hxJ,ANd,yNu,$yE,VwD,RxX,dyw,Ceu,myD,TdX,bXf,Q$c,GHf,w5E,WyX,aou,Bdf,LyI,Ewa,JNy,u3y,fd,loX,rNy,Mwu,Dc,exy,xyd,gwu,NdE,nwT,OXc,sd, YrT,fea,FLu,FP,Zpf,Uya,tRa,oY,eGy,SsD,vpX,UAu,GMf,w2c,aeu,ks,Kd,Bru,rPu,LLc,leE,j7,EpD,JPD,npc,ebT,xAI,Nru,uku,yJ,ZUT,D8c,bC,hV,VJ,RY,pSE,z$E,QJ,Opw,bH,qZf,GC,HUI,yof,Aof,wO,WF,$8y,m7,FHJ,Vmf,R$d,cF,d8I,Mv,Qww,tV,mS,Cnw,Tbw,BF,rO,bUu,Mmd,tmD,aY,vF,SZJ,cPa,coD,gpJ,U8D,v5w,a6J,GOa,Ld,lH,Bbu,l6d,Jos,WHE,n5X,YZs,Pns,fZa,DGE,FkX,ZKD,p8J,IZa,zFI,EU,JV,uH,sbT,q1u,HKI,eq,oUX,Nv,KkI,gO,kYX,e7,xs,wA,jbc,qB,eIf,iKu,Na,hFX,Bg,ru,ycc,r5,AcD,$Gs,VCc,Hw,f2X,RFD,dGf,QbJ,XP,mGD,Tvy,OU,Ys,PF,bKD,S1D,ccD,fv,UGd,MCa, vUs,tCu,aZy,GYs,w8d,Wkf,DB,rcc,RhD,sL,ni,Lkd,lZI,fj,Bvf,i$,EUE,Jca,uoD,FX,Zp,gUT,ZB,eFu,IF,pv,nd,xGX,X8c,OKf,zg,sb,nUJ,qj,HA,Y1u,oF,Pgy,Kv,kL,fXc,DdE,lrc,jL,FBu,IXs,ZZT,i4,hw,pWD,yB,z9u,sOD,q3D,HZu,o8y,KBD,jOI,$L,k_I,iZy,h9c,yeI,Aef,ddE,$dc,V8E,R9f,CVD,T6s,bZJ,M8J,mdJ,VB,t8u,S3s,cea,Udd,v8D,dc,aXd,QB,Cv,m2,G_T,wWX,B6u,reE,LBu,lXT,Jes,E8a,uGa,Tg,b4,e9f,N6J,g8u,Mj,xdu,XWX,tw,SL,OZX,cA,n8c,Ub,Y3d,vA,aF,PVJ,Gg,wc,flX,Dtd,WA,BA,Fey,rc,Zwa,IlX,Jw,u4,p_T,zEa,sWa,omD,Hwa,Nj,Ked,k3T,jWE,n6u,q7a,hEE,yda,$tD, CyD,bfy,Nw,rT; od=function(f,D,F,Z){((f^25)&5)>=2&&f+6>>4<2&&D[q[42]]();if((f-6&15)==4){(((0,D[5])(D[33],D[46],(0,D[69])()),D[41])(D[79],D[2]),D[41])(D[34],D[6]);((0,D[12])(D[30],D[65]),D[41])(D[14],D[6])>>>(0,D[78])(D[18],D[2]);(0,D[88])(D[81],D[24]);(0,D[58])(D[81],D[59]);var I=[]}if((f<<1&15)==2){var p=D[F],z=p[q[21]](q[78]);z>0?pf(9,Z,p[q[2]](0,z),p[q[2]](z+1)):p&&(Z[p]=q[13]);I=[]}if((f&76)==f){p=64;for(z=[];++p-z[q[3]]-32;)switch(p){case 46:p=95;default:z[q[17]](String[q[9]](p));case 94:case 95:case 96:break;case 123:p-= 76;case 92:case 93:continue;case 58:p=44;case 91:}I=z}if((f>>1&15)==1){sJ(46,D);if(p=D[q[6]][q[64]]||null)p=fsJ[0](p),D[q[15]](q[64],p);I=[]}return I}; Dwu=function(f){if((f-4|4)>=f&&f-7<<1=-59&&((f^1)&4)<4){D=64;for(F=[];++D-F[q[3]]-32;){switch(D){case 91:D=44;continue;case 123:D=65;break;case 65:D-=18;continue;case 58:D=96;continue;case 46:D=95}F[q[17]](String[q[9]](D))}Z=F}return Z}; sJ=function(f,D){var F;if((f&110)==f&&D[q[10]])var Z=FED(25,D);f+2>>4||(F=D[q[10]]?D[q[10]][q[37]](q[27]):D[q[46]]===q[27]);f-6>>4==4&&(F=D!==null);(f&30)==f&&(sJ(34,D),F=g.Kf(D[q[6]],ZfJ));if((f|80)==f){Z=64;for(var I=[];++Z-I[q[3]]-32;)switch(Z){case 58:Z=96;continue;case 91:Z=44;break;case 65:Z=47;continue;case 46:Z=153;case 123:Z-=58;default:I[q[17]](String[q[9]](Z))}F=I}return F}; pf=function(f,D,F,Z){if((f-2&11)==1){var I=D[q[14]](q[66]),p=0;I[0]||p++;for(var z={};p>4||(F===q[8]&&((I=Z[q[21]](q[78]))>=0?(F=q[54]+Z[q[2]](0,I),Z=Z[q[2]](I+1)):(I=Z[q[21]](q[90]))>=0&&(F=q[54]+Z[q[2]](0,I),Z=Z[q[2]](I+3))),D[F]=Z);(f+4&7)==2&&(D=(D%F[q[3]]+F[q[3]])%F[q[3]],F[q[34]](D,1));if(f+1>>4>=0&&(f>>2&15)<2)for(I=D[q[3]];I;)D[q[17]](D[q[34]](--I,1)[0]);return H}; yX=function(f,D){if(((f^20)&11)==2){var F=D[q[14]](q[13]);kc[q[86]](F,58);kc[q[86]](F,5);kc[q[5]](F,2);kc[q[56]](F,22);kc[q[5]](F,2);kc[q[56]](F,7);var Z=F[q[33]](q[13])}if(!((f^45)>>4)){var I=g.Q(D,IsT)||D[q[80]];F={KA:!1,OF:q[13],oT:q[13],s:q[13]};I?(I=iy(I),F[q[84]]=!0,F[q[92]]=I[q[0]],F[q[77]]=I[q[32]],F[q[29]]=I[q[29]],Z=F):Z=F}if(!(f+2>>3))a:if(F=D[q[14]](q[13]),I=[null,null,603055475,null,F,-1006858838,q[49],2033433646,714569250,pDX,zDD,-591939521,sdI,1730725215,-1843504175,qJc,-789074465, q[63],-1435502085,function(z,H,K){var k=K[q[3]];z[q[25]](function(h,y,A){this[q[17]](A[y]=K[(K[q[21]](h)-K[q[21]](this[y])+y+k--)%K[q[3]]])},H[q[14]](q[13]))}, 1307649597,1285467635,q[19],1239379876,-1968290669,1509091706,691609011,1658189472,815592266,Hfy,816938439,ocu,KEu,-428827062,1362516676,q[71],-637501499,q[85],kaI,-397718398,jdy,-368603945,q[55],1203338252,1192620932,1697558318,1250464686,-1070678710,-795824291,ifd,hDs,691609011,-840703455,-397718398,-1733486211,-806126733,-582413919,-1900913889,-1198299547,yIT,-835669788,AID,F,1338698186,-2070591851,F,-1482247130,-1900913889,-1011727655,2067263832,-1570936796,$wX,2045475176,-849152388,873290574, 241026653,Vua,-564262161,689053486,-2070591851,1388648507,764024723,2116361715,function(z,H,K){var k=K[q[3]];z[q[25]](function(h,y,A){this[q[17]](A[y]=K[(K[q[21]](h)-K[q[21]](this[y])+y+k--)%K[q[3]]])},H[q[14]](q[13]))}, 1665426191,1239379876,function(z,H){H=(H%z[q[3]]+z[q[3]])%z[q[3]];z[q[34]](-H)[q[42]]()[q[25]](function(K){z[q[30]](K)})}, 1102266994],I[0]=I,I[1]=I,I[3]=I,typeof RDX===q[52])Z=D;else{try{try{I[24]!==6?(0,I[83])(I[4],I[17],(0,I[15])()):(0,I[49])(I[39],I[62]),I[27]>-8&&(I[39]<5?(0,I[31])((0,I[31])((0,I[76])(I[65]),I[59],I[3],I[44]),I[71],I[52],I[58]):(0,I[71])((0,I[59])(I[64],I[1]),I[80],(0,I[59])(I[64],I[61]),I[65],I[8],(0,I[11])()))}catch(z){(0,I[4])((0,I[56])(I[38],I[8],(0,I[76])()),I[32],I[62],I[new Date(q[87])/1E3])}try{var p=hI(27,I,Date)}catch(z){I=od(10,I)}}catch(z){Z=q[51]+D;break a}Z=F[q[33]](q[13])}return Z}; AI=function(f,D,F,Z,I,p,z){var H;(f<<2&30)==4&&(D=(D%F[q[3]]+F[q[3]])%F[q[3]],F[q[34]](D,1));(f>>1&15)==1&&(H=F(I,p,z));if((f>>1&15)>=7&&((f|3)&20)<8){for(var K=D[q[14]](q[61]),k={},h=0;h1&&!!K[1]);(f&56)==f&&(D=(D%F[q[3]]+F[q[3]])%F[q[3]],K=F[0],F[0]=F[D],F[D]=K,H=[D]);return H}; VX=function(f,D,F){var Z;((f^47)&7)==1&&D[q[17]](F);if((f&89)==f)for(F=(F%D[q[3]]+D[q[3]])%D[q[3]];F--;)D[q[30]](D[q[91]]());(f+8^10)=f&&D[q[3]]!=0&&(F=(F%D[q[3]]+D[q[3]])%D[q[3]],D[q[34]](0,1,D[q[34]](F,1,D[0])[0]));return Z}; Ta=function(f,D,F){(f&92)==f&&F[q[34]](F[q[3]],0,D);if((f+5^31)=f)if(F=F===void 0?!1:F,sJ(32,D),D[q[4]]!==q[74]){var Z=D[q[50]]();Z[q[15]](q[83],q[24]);var I=Z}else{var p=D[q[39]]();Z=new g.Rd(p);var z=D[q[53]](q[82]),H=decodeURIComponent(D[q[53]](q[18])||q[13])[q[14]](q[67]);if(z&&H&&H[q[3]]>1&&H[1]){p=Z[q[6]];var K=p[q[95]](/^[^.]*/,q[13]);g.dT(Z,(p[q[21]](q[1])===0?q[1]:q[26])+z+q[89]+H[1]+K);Z=new g.Cf(Z[q[76]]());Z[q[15]](q[41],q[24]);I=Z}else F?(Z=D[q[50]](),Z[q[15]](q[41],q[24]), I=Z):(z=Z[q[6]][q[75]](q[60]),Z[q[6]][q[75]](q[31])?(g.dT(Z,q[70]),p=Z[q[76]]()):Z[q[6]][q[75]](q[59])?(g.dT(Z,q[45]),p=Z[q[76]]()):(Z=dwf(p),mE(Z)&&(p=Z)),Z=new g.Cf(p),Z[q[15]](q[44],q[24]),z&&Z[q[15]](q[20],q[28]),I=Z)}return I}; FED=function(f,D,F){if((f+1&9)=f){var Z=D[q[21]](q[66],12),I=D[q[21]](q[66],Z+1);Z>0&&I>0?(F[q[4]]=D[q[2]](0,I),D=D[q[2]](I+1)):(F[q[4]]=D,D=q[13]);var p=[D]}if(f+1>=22&&f+8>>4<4){if(!(mE(D[q[10]])||D[q[10]][q[37]](q[27])||D[q[10]][q[37]](q[38])||D[q[10]][q[37]](q[88])))throw new g.by(q[43],D[q[10]]);Z=g.tI(D[q[10]]);D[q[46]]=Z[q[58]];D[q[35]]=Z[q[6]]+(Z[q[35]]!=null?q[57]+Z[q[35]]:q[13]);I=Z[q[10]];I[q[37]](q[74])?(D[q[4]]=q[74],I=I[q[2]](14)):I[q[37]](q[47])?(D[q[4]]=q[47],I=I[q[2]](13)): I[q[37]](q[40])?(I=FED(2,I,D),I=I[0]):(D[q[4]]=I,I=q[13]);var z=D[q[6]];D[q[6]]=pf(19,I);Object[q[72]](D[q[6]],AI(15,Z[q[7]][q[76]]()));Object[q[72]](D[q[6]],z);D[q[6]][q[11]]===q[22]&&(delete D[q[6]][q[11]],D[q[4]]+=q[48]);D[q[10]]=q[13];D[q[0]]=q[13];D[q[7]]&&(Z=od(2,D));p=[]}return p}; QdE=function(f,D,F,Z,I,p){var z;f-7&7||(this[q[10]]=D,this[q[7]]=F===void 0?!1:F,this[q[35]]=this[q[4]]=this[q[46]]=q[13],this[q[6]]={},this[q[0]]=q[13]);(f&27)==f&&(z=F(Z,I,p));return z}; hI=function(f,D,F){if((f|56)==f){sJ(38,D);var Z=D[q[35]]}if((f&107)==f&&D[q[3]]!=0){var I=AI(8,F,D);F=I[0]}(f+9&18)=f&&(D[39]!=-3&&(D[51]!=9&&(((0,D[22])(D[51],D[35]),D[22])(D[19],D[65]),[])||(0,D[4])((0,D[22])(D[47],D[35]),D[22],D[20],D[65])),D[75]!=-4&&(0,D[59])(D[25],D[85])*(0,D[83])(D[86],D[17])&(0,D[83])(D[86],D[2])>(0,D[33])(D[25],D[63]),D[24]!==8&&(((((0,D[55])((0,D[new F(q[79])/1E3*5-118])(D[1],D[65])>>>(0,D[19])(D[28],D[61],(0,D[39])())<<(0,D[7])(D[1],D[26]),D[83],D[76],D[32]), D[83])(D[76],D[16]),D[22])(D[27],D[57]),D[2])((0,D[58])(D[23],D[73]),D[86],D[13]),1)||((((((0,D[19])(D[39],D[17]),D[86])(D[39]),D[46])((0,D[86])(D[9]),D[65],(0,D[24])(D[9]),D[40],D[2]),D[55])(D[-50-new F(q[93])/1E3],D[71],(0,D[51])()),D[12])(D[13],D[73],(0,D[68])()),D[65])(D[37],D[52]),D[77]<-9&&(0,D[67])((0,D[65])(D[39],D[4]),D[19],D[37],D[18])&(0,D[46])((0,D[3])(D[67]),D[75],D[72],D[74]),D[64]>8&&(D[6]!==-7&&((0,D[10])((0,D[1])(D[16],D[87],(0,D[71])()),D[50],(0,D[22])(D[17],D[13]),D[22],D[4]),[])|| ((0,D[83])((0,D[37])(D[21]),D[13],D[69],D[24]),D[37])(D[24])),D[5]!=-1&&(D[7]==-2&&((((0,D[85])(D[24],D[31]),D[37])(D[52]),D[6])(D[52],D[3],(0,D[10])()),q[65])||((0,D[83])((0,D[42])(D[24],D[87]),D[30],D[86],D[48]),D[9])(D[7])),D[83]!=-10&&(D[10]<-4&&(((((((0,D[48])(D[2],D[64],(0,D[69])()),(0,D[60])((0,D[27])(D[32],D[83]),D[27],D[30],D[52]),D[17])(D[2]),D[5])(D[6],D[64],(0,D[44])()),D[41])(D[85],D[30]),(0,D[48])(D[2],D[new F(q[94])/1E3],(0,D[61])()),D[41])(D[47],D[33]),D[78])(D[Math[q[69]](new F(q[73])/ 1E3,3)+19+-4],D[32]),1)||((0,D[1])(D[45],D[32]),(0,D[39])((0,D[58])(D[32],D[77]),D[12],(0,D[38])(D[81],D[3]),D[6],D[63]),(((0,D[60])((0,D[88])(D[2],D[90]),D[0],D[6]),(0,D[12])(D[2],D[49]),D[27])(D[33],D[new F(q[62])/1E3]),D[88])(D[33],D[25]))),D[29]<9&&(D[83]<2&&(((0,D[12])(D[33],D[54]),(0,D[78])(D[9],D[2]),D[48])(D[33],D[64],(0,D[61])()),[])||(0,D[60])((0,D[60])((0,D[88])(D[30],D[43]),D[41],D[13],D[2]),D[17],D[33])),Z=[]);if((f&110)==f){sJ(42,D);I=D[q[46]]+(D[q[46]]?q[81]:q[68])+D[q[35]]+D[q[4]]; if(sJ(16,D)){var p=[];g.Ga(D[q[6]],function(z,H){z!==null&&p[q[17]](H+q[78]+z)}); I+=q[23]+p[q[33]](q[61])}Z=I}return Z}; wT=function(f){return function(){return CyD[f].apply(this,arguments)}}; g.BD=function(f,D){return CyD[f]=D}; mwT=function(f){f=["object"==typeof globalThis&&globalThis,f,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var D=0;D=this.length))return this[f]}; BTf=function(f,D,F){f instanceof String&&(f=String(f));for(var Z=f.length-1;Z>=0;Z--){var I=f[Z];if(D.call(F,I,Z,f))return{hK:Z,LO:I}}return{hK:-1,LO:void 0}}; g.dE=function(f,D,F){f=f.split(".");F=F||g.RU;for(var Z;f.length&&(Z=f.shift());)f.length||D===void 0?F[Z]&&F[Z]!==Object.prototype[Z]?F=F[Z]:F=F[Z]={}:F[Z]=D}; Tc=function(f,D){var F=g.QY("CLOSURE_FLAGS");f=F&&F[f];return f!=null?f:D}; g.QY=function(f,D){f=f.split(".");D=D||g.RU;for(var F=0;F2){var Z=Array.prototype.slice.call(arguments,2);return function(){var I=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(I,Z);return f.apply(D,I)}}return function(){return f.apply(D,arguments)}}; g.aU=function(f,D,F){g.aU=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?LET:lsf;return g.aU.apply(null,arguments)}; g.wE=function(f,D){var F=Array.prototype.slice.call(arguments,1);return function(){var Z=F.slice();Z.push.apply(Z,arguments);return f.apply(this,Z)}}; g.We=function(){return Date.now()}; EcD=function(f){g.dE("yt.abuse.playerAttLoaderRun",f)}; Be=function(f){return f}; g.rE=function(f,D){function F(){} F.prototype=D.prototype;f.YK=D.prototype;f.prototype=new F;f.prototype.constructor=f;f.sG=function(Z,I,p){for(var z=Array(arguments.length-2),H=2;H=0;--F)F in Z&&D.call(void 0,Z[F],F,f)}; g.NC=function(f,D,F){D=uX(f,D,F);return D<0?null:typeof f==="string"?f.charAt(D):f[D]}; uX=function(f,D,F){for(var Z=f.length,I=typeof f==="string"?f.split(""):f,p=0;p=0;Z--)if(Z in I&&D.call(F,I[Z],Z,f))return Z;return-1}; g.e0=function(f,D){return eDa(f,D)>=0}; xwc=function(f){if(!Array.isArray(f))for(var D=f.length-1;D>=0;D--)delete f[D];f.length=0}; g.no=function(f,D){D=eDa(f,D);var F;(F=D>=0)&&g.xn(f,D);return F}; g.xn=function(f,D){return Array.prototype.splice.call(f,D,1).length==1}; g.fs=function(f,D){D=uX(f,D);D>=0&&g.xn(f,D)}; XDw=function(f,D){var F=0;gcf(f,function(Z,I){D.call(void 0,Z,I,f)&&g.xn(f,I)&&F++})}; g.D0=function(f){return Array.prototype.concat.apply([],arguments)}; g.FI=function(f){var D=f.length;if(D>0){for(var F=Array(D),Z=0;Z>>1),K=void 0;F?K=D.call(void 0,f[H],H,f):K=D(Z,f[H]);K>0?I=H+1:(p=H,z=!K)}return z?I:-I-1}; g.kJ=function(f,D){f.sort(D||sQ)}; YJa=function(f,D){var F=sQ;g.kJ(f,function(Z,I){return F(D(Z),D(I))})}; g.j5=function(f,D,F){if(!g.MC(f)||!g.MC(D)||f.length!=D.length)return!1;var Z=f.length;F=F||Pyd;for(var I=0;ID?1:f0&&(D[I]=Z)},f); return D}; HoE=function(f){f=uZ(f);var D=[];g.Ga(f,function(F,Z){Z in Object.prototype||typeof F!="undefined"&&D.push([Z,":",F].join(""))}); return D}; KAw=function(f){Ls(f,"od",onT);Ls(f,"opac",Nf).Y=!0;Ls(f,"sbeos",Nf).Y=!0;Ls(f,"prf",Nf).Y=!0;Ls(f,"mwt",Nf).Y=!0;Ls(f,"iogeo",Nf)}; gU=function(f,D){return f.lastIndexOf(D,0)==0}; kcu=function(f,D){var F=f.length-D.length;return F>=0&&f.indexOf(D,F)==F}; g.XI=function(f){return/^[\s\xa0]*$/.test(f)}; g.OQ=function(f,D){return f.indexOf(D)!=-1}; ns=function(f,D){return g.OQ(f.toLowerCase(),D.toLowerCase())}; g.fW=function(f,D){var F=0;f=YJ(String(f)).split(".");D=YJ(String(D)).split(".");for(var Z=Math.max(f.length,D.length),I=0;F==0&&ID?1:0}; g.DM=function(){var f=g.RU.navigator;return f&&(f=f.userAgent)?f:""}; pW=function(f){if(!FW&&!ZM||!Ih)return!1;for(var D=0;D0:!1}; q7=function(){return sc()?!1:zJ("Opera")}; jUu=function(){return sc()?!1:zJ("Trident")||zJ("MSIE")}; ioD=function(){return sc()?pW("Microsoft Edge"):zJ("Edg/")}; HZ=function(){return zJ("Firefox")||zJ("FxiOS")}; KW=function(){return zJ("Safari")&&!(oh()||(sc()?0:zJ("Coast"))||q7()||(sc()?0:zJ("Edge"))||ioD()||(sc()?pW("Opera"):zJ("OPR"))||HZ()||zJ("Silk")||zJ("Android"))}; oh=function(){return sc()?pW("Chromium"):(zJ("Chrome")||zJ("CriOS"))&&!(sc()?0:zJ("Edge"))||zJ("Silk")}; hVd=function(){return zJ("Android")&&!(oh()||HZ()||q7()||zJ("Silk"))}; yvE=function(f){var D={};f.forEach(function(F){D[F[0]]=F[1]}); return function(F){return D[F.find(function(Z){return Z in D})]||""}}; AvX=function(f){var D=g.DM();if(f==="Internet Explorer"){if(jUu())if((f=/rv: *([\d\.]*)/.exec(D))&&f[1])D=f[1];else{f="";var F=/MSIE +([\d\.]+)/.exec(D);if(F&&F[1])if(D=/Trident\/(\d.\d)/.exec(D),F[1]=="7.0")if(D&&D[1])switch(D[1]){case "4.0":f="8.0";break;case "5.0":f="9.0";break;case "6.0":f="10.0";break;case "7.0":f="11.0"}else f="7.0";else f=F[1];D=f}else D="";return D}var Z=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");F=[];for(var I;I=Z.exec(D);)F.push([I[1],I[2],I[3]||void 0]); D=yvE(F);switch(f){case "Opera":if(q7())return D(["Version","Opera"]);if(sc()?pW("Opera"):zJ("OPR"))return D(["OPR"]);break;case "Microsoft Edge":if(sc()?0:zJ("Edge"))return D(["Edge"]);if(ioD())return D(["Edg"]);break;case "Chromium":if(oh())return D(["Chrome","CriOS","HeadlessChrome"])}return f==="Firefox"&&HZ()||f==="Safari"&&KW()||f==="Android Browser"&&hVd()||f==="Silk"&&zJ("Silk")?(D=F[2])&&D[1]||"":""}; $CI=function(f){if(sc()&&f!=="Silk"){var D=Ih.brands.find(function(F){return F.brand===f}); if(!D||!D.version)return NaN;D=D.version.split(".")}else{D=AvX(f);if(D==="")return NaN;D=D.split(".")}return D.length===0?NaN:Number(D[0])}; RVE=function(){var f=null;if(!V0u)return f;try{var D=function(F){return F}; f=V0u.createPolicy("goog#html",{createHTML:D,createScript:D,createScriptURL:D})}catch(F){}return f}; je=function(){kZ===void 0&&(kZ=RVE());return kZ}; iI=function(f){this.Y=f}; hQ=function(f){var D=je();f=D?D.createScriptURL(f):f;return new iI(f)}; yi=function(f){if(f instanceof iI)return f.Y;throw Error("");}; $Z=function(f){this.Y=f}; g.Vi=function(f){if(f instanceof $Z)return f.Y;throw Error("");}; Rh=function(f){this.u4=f}; dl=function(f){return new Rh(function(D){return D.substr(0,f.length+1).toLowerCase()===f+":"})}; g.Qi=function(f,D){D=D===void 0?dCd:D;a:if(D=D===void 0?dCd:D,!(f instanceof $Z)){for(var F=0;F4);I++)D[rl(f[I])]||(F+="\nInner error "+Z++ +": ",f[I].stack&&f[I].stack.indexOf(f[I].toString())==0||(F+=typeof f[I]==="string"?f[I]:f[I].message+"\n"),F+=WZ(f[I],D));I")!=-1&&(f=f.replace(abE,">")),f.indexOf('"')!=-1&&(f=f.replace(Gcd,""")),f.indexOf("'")!=-1&&(f=f.replace(weu,"'")),f.indexOf("\x00")!=-1&&(f=f.replace(WAa,"�")));return f}; g.uI=function(f){return f==null?"":String(f)}; N7=function(f){for(var D=0,F=0;F>>0;return D}; gl=function(f){var D=Number(f);return D==0&&g.XI(f)?NaN:D}; BEa=function(f){return String(f).replace(/\-([a-z])/g,function(D,F){return F.toUpperCase()})}; rvu=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; LAD=function(f){return f.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(D,F,Z){return F+Z.toUpperCase()})}; lbE=function(f){var D=1;f=f.split(":");for(var F=[];D>0&&f.length;)F.push(f.shift()),D--;f.length&&F.push(f.join(":"));return F}; ee=function(){return FW||ZM?!!Ih&&!!Ih.platform:!1}; Enc=function(){return ee()?Ih.platform==="Android":zJ("Android")}; xZ=function(){return zJ("iPhone")&&!zJ("iPod")&&!zJ("iPad")}; XW=function(){return xZ()||zJ("iPad")||zJ("iPod")}; Oc=function(){return ee()?Ih.platform==="macOS":zJ("Macintosh")}; JvD=function(){return ee()?Ih.platform==="Windows":zJ("Windows")}; nW=function(f){nW[" "](f);return f}; uLc=function(f,D){try{return nW(f[D]),!0}catch(F){}return!1}; gnD=function(f,D){var F=NET;return Object.prototype.hasOwnProperty.call(F,f)?F[f]:F[f]=D(f)}; g.YZ=function(f){return gnD(f,function(){return g.fW(eVu,f)>=0})}; g.PZ=function(f,D,F){return Math.min(Math.max(f,D),F)}; g.fG=function(f,D){f%=D;return f*D<0?f+D:f}; Dm=function(f,D,F){return f+F*(D-f)}; g.FA=function(f,D){this.x=f!==void 0?f:0;this.y=D!==void 0?D:0}; Zm=function(f,D){return f==D?!0:f&&D?f.x==D.x&&f.y==D.y:!1}; g.IG=function(f,D){this.width=f;this.height=D}; g.pG=function(f,D){return f==D?!0:f&&D?f.width==D.width&&f.height==D.height:!1}; zR=function(f){return f.width*f.height}; qe=function(f,D){this.Y=f===sa&&D||""}; HE=function(f){if(f instanceof bI)return f;f=String(f).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return M7(f)}; XeX=function(f){return xCy(f)}; xCy=function(f){var D=HE("");return M7(f.map(function(F){return tQ(HE(F))}).join(tQ(D).toString()))}; f0D=function(f){var D;if(!Ood.test("div"))throw Error("");if(nns.indexOf("DIV")!==-1)throw Error("");var F="":(f=XeX(D.map(function(Z){return Z instanceof bI?Z:HE(String(Z))})),F+=">"+f.toString()+""); return M7(F)}; Y0u=function(f){for(var D="",F=Object.keys(f),Z=0;Z2&&siT(I,z,Z,2);return z}; siT=function(f,D,F,Z){function I(H){H&&D.appendChild(typeof H==="string"?f.createTextNode(H):H)} for(;Z0)I(p);else{a:{if(p&&typeof p.length=="number"){if(g.tv(p)){var z=typeof p.item=="function"||typeof p.item=="string";break a}if(typeof p==="function"){z=typeof p.item=="function";break a}}z=!1}g.hC(z?g.FI(p):p,I)}}}; g.TR=function(f){return CG(document,f)}; CG=function(f,D){D=String(D);f.contentType==="application/xhtml+xml"&&(D=D.toLowerCase());return f.createElement(D)}; g.b5=function(f){return document.createTextNode(String(f))}; g.Me=function(f,D){f.appendChild(D)}; g.tB=function(f){for(var D;D=f.firstChild;)f.removeChild(D)}; Sc=function(f,D,F){f.insertBefore(D,f.childNodes[F]||null)}; g.cE=function(f){return f&&f.parentNode?f.parentNode.removeChild(f):null}; g.Ua=function(f,D){if(!f||!D)return!1;if(f.contains&&D.nodeType==1)return f==D||f.contains(D);if(typeof f.compareDocumentPosition!="undefined")return f==D||!!(f.compareDocumentPosition(D)&16);for(;D&&f!=D;)D=D.parentNode;return D==f}; kd=function(f){return f.nodeType==9?f:f.ownerDocument||f.document}; g.aG=function(f,D){if("textContent"in f)f.textContent=D;else if(f.nodeType==3)f.data=String(D);else if(f.firstChild&&f.firstChild.nodeType==3){for(;f.lastChild!=f.firstChild;)f.removeChild(f.lastChild);f.firstChild.data=String(D)}else g.tB(f),f.appendChild(kd(f).createTextNode(String(D)))}; GR=function(f){return f.tagName=="A"&&f.hasAttribute("href")||f.tagName=="INPUT"||f.tagName=="TEXTAREA"||f.tagName=="SELECT"||f.tagName=="BUTTON"?!f.disabled&&(!f.hasAttribute("tabindex")||qQX(f)):f.hasAttribute("tabindex")&&qQX(f)}; qQX=function(f){f=f.tabIndex;return typeof f==="number"&&f>=0&&f<32768}; WE=function(f,D,F){if(!D&&!F)return null;var Z=D?String(D).toUpperCase():null;return wL(f,function(I){return(!Z||I.nodeName==Z)&&(!F||typeof I.className==="string"&&g.e0(I.className.split(/\s+/),F))},!0)}; wL=function(f,D,F){f&&!F&&(f=f.parentNode);for(F=0;f;){if(D(f))return f;f=f.parentNode;F++}return null}; KG=function(f){this.Y=f||g.RU.document||document}; Hsu=function(){this.Y=this.WY=null}; BE=function(){}; LG=function(){if(!rL())throw Error();}; rL=function(){return!(!l5||!l5.performance)}; oJu=function(f){return g.dL?"webkit"+f:f.toLowerCase()}; Ea=function(f){return function(){return f}}; g.u5=function(){}; Kac=function(f){var D=D||0;return function(){return f.apply(this,Array.prototype.slice.call(arguments,0,D))}}; Ne=function(f){var D=!1,F;return function(){D||(F=f(),D=!0);return F}}; gL=function(f){var D=f;return function(){if(D){var F=D;D=null;F()}}}; ec=function(f,D,F){var Z=0;return function(I){g.RU.clearTimeout(Z);var p=arguments;Z=g.RU.setTimeout(function(){f.apply(F,p)},D)}}; xd=function(f,D,F,Z){this.top=f;this.right=D;this.bottom=F;this.left=Z}; XA=function(f){return f.right-f.left}; Oa=function(f,D){return f==D?!0:f&&D?f.top==D.top&&f.right==D.right&&f.bottom==D.bottom&&f.left==D.left:!1}; nG=function(f,D,F){D instanceof g.FA?(f.left+=D.x,f.right+=D.x,f.top+=D.y,f.bottom+=D.y):(f.left+=D,f.right+=D,typeof F==="number"&&(f.top+=F,f.bottom+=F));return f}; g.Yd=function(f,D,F,Z){this.left=f;this.top=D;this.width=F;this.height=Z}; PE=function(f,D){return f==D?!0:f&&D?f.left==D.left&&f.width==D.width&&f.top==D.top&&f.height==D.height:!1}; g.Dx=function(f,D,F){if(typeof D==="string")(D=f3(f,D))&&(f.style[D]=F);else for(var Z in D){F=f;var I=D[Z],p=f3(F,Z);p&&(F.style[p]=I)}}; f3=function(f,D){var F=kDw[D];if(!F){var Z=BEa(D);F=Z;f.style[Z]===void 0&&(Z=(g.dL?"Webkit":FD?"Moz":null)+LAD(Z),f.style[Z]!==void 0&&(F=Z));kDw[D]=F}return F}; g.Zx=function(f,D){var F=f.style[BEa(D)];return typeof F!=="undefined"?F:f.style[f3(f,D)]||""}; IE=function(f,D){var F=kd(f);return F.defaultView&&F.defaultView.getComputedStyle&&(f=F.defaultView.getComputedStyle(f,null))?f[D]||f.getPropertyValue(D)||"":""}; p3=function(f,D){return IE(f,D)||(f.currentStyle?f.currentStyle[D]:null)||f.style&&f.style[D]}; g.q2=function(f,D,F){if(D instanceof g.FA){var Z=D.x;D=D.y}else Z=D,D=F;f.style.left=zx(Z,!1);f.style.top=zx(D,!1)}; jiu=function(f){return new g.FA(f.offsetLeft,f.offsetTop)}; H9=function(f){try{return f.getBoundingClientRect()}catch(D){return{left:0,top:0,right:0,bottom:0}}}; isD=function(f){var D=kd(f),F=p3(f,"position"),Z=F=="fixed"||F=="absolute";for(f=f.parentNode;f&&f!=D;f=f.parentNode)if(f.nodeType==11&&f.host&&(f=f.host),F=p3(f,"position"),Z=Z&&F=="static"&&f!=D.documentElement&&f!=D.body,!Z&&(f.scrollWidth>f.clientWidth||f.scrollHeight>f.clientHeight||F=="fixed"||F=="absolute"||F=="relative"))return f;return null}; g.oE=function(f){var D=kd(f),F=new g.FA(0,0);if(f==(D?kd(D):document).documentElement)return F;f=H9(f);D=jc(D);D=zmT(D.Y);F.x=f.left+D.x;F.y=f.top+D.y;return F}; yCu=function(f,D){var F=new g.FA(0,0),Z=Qq(kd(f));if(!uLc(Z,"parent"))return F;do{var I=Z==D?g.oE(f):hmE(f);F.x+=I.x;F.y+=I.y}while(Z&&Z!=D&&Z!=Z.parent&&(f=Z.frameElement)&&(Z=Z.parent));return F}; g.K3=function(f,D){f=ACu(f);D=ACu(D);return new g.FA(f.x-D.x,f.y-D.y)}; hmE=function(f){f=H9(f);return new g.FA(f.left,f.top)}; ACu=function(f){if(f.nodeType==1)return hmE(f);f=f.changedTouches?f.changedTouches[0]:f;return new g.FA(f.clientX,f.clientY)}; g.kH=function(f,D,F){if(D instanceof g.IG)F=D.height,D=D.width;else if(F==void 0)throw Error("missing height argument");f.style.width=zx(D,!0);f.style.height=zx(F,!0)}; zx=function(f,D){typeof f=="number"&&(f=(D?Math.round(f):f)+"px");return f}; g.jQ=function(f){var D=$fI;if(p3(f,"display")!="none")return D(f);var F=f.style,Z=F.display,I=F.visibility,p=F.position;F.visibility="hidden";F.position="absolute";F.display="inline";f=D(f);F.display=Z;F.position=p;F.visibility=I;return f}; $fI=function(f){var D=f.offsetWidth,F=f.offsetHeight,Z=g.dL&&!D&&!F;return(D===void 0||Z)&&f.getBoundingClientRect?(f=H9(f),new g.IG(f.right-f.left,f.bottom-f.top)):new g.IG(D,F)}; g.iG=function(f,D){f.style.display=D?"":"none"}; hG=function(f){return f?f.passive&&V5u()?f:f.capture||!1:!1}; yI=function(f,D,F,Z){return typeof f.addEventListener==="function"?(f.addEventListener(D,F,hG(Z)),!0):!1}; AG=function(f){if(f.prerendering)return 3;var D;return(D={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[f.visibilityState||f.webkitVisibilityState||f.mozVisibilityState||""])!=null?D:0}; RmX=function(){}; $H=function(f){try{return!!f&&f.location.href!=null&&uLc(f,"foo")}catch(D){return!1}}; dfc=function(f){for(var D=f;f&&f!=f.parent;)f=f.parent,$H(f)&&(D=f);return D}; Qic=function(){return(FW||ZM)&&Ih?Ih.mobile:!VI()&&(zJ("iPod")||zJ("iPhone")||zJ("Android")||zJ("IEMobile"))}; VI=function(){return(FW||ZM)&&Ih?!Ih.mobile&&(zJ("iPad")||zJ("Android")||zJ("Silk")):zJ("iPad")||zJ("Android")&&!zJ("Mobile")||zJ("Silk")}; CZu=function(f){var D,F;return(F=(D=/https?:\/\/[^\/]+/.exec(f))==null?void 0:D[0])!=null?F:""}; M5w=function(f){f=f||RE();for(var D=new mfE(g.RU.location.href,!1),F=null,Z=f.length-1,I=Z;I>=0;--I){var p=f[I];!F&&TUu.test(p.url)&&(F=p);if(p.url&&!p.Y){D=p;break}}I=null;p=f.length&&f[Z].url;D.depth!==0&&p&&(I=f[Z]);return new bsf(D,I,F)}; RE=function(){var f=g.RU,D=[],F=null;do{var Z=f;if($H(Z)){var I=Z.location.href;F=Z.document&&Z.document.referrer||null}else I=F,F=null;D.push(new mfE(I||""));try{f=Z.parent}catch(p){f=null}}while(f&&Z!==f);Z=0;for(f=D.length-1;Z<=f;++Z)D[Z].depth=f-Z;Z=g.RU;if(Z.location&&Z.location.ancestorOrigins&&Z.location.ancestorOrigins.length===D.length-1)for(f=1;fD&&(D=F.length);return 3997-D-f.B.length-1}; bG=function(f,D){this.Y=f;this.depth=D}; a0J=function(){function f(H,K){return H==null?K:H} var D=RE(),F=Math.max(D.length-1,0),Z=M5w(D);D=Z.Y;var I=Z.J,p=Z.B,z=[];p&&z.push(new bG([p.url,p.Y?2:0],f(p.depth,1)));I&&I!=p&&z.push(new bG([I.url,2],0));D.url&&D!=p&&z.push(new bG([D.url,0],f(D.depth,F)));Z=g.M2(z,function(H,K){return z.slice(0,z.length-K)}); !D.url||(p||I)&&D!=p||(I=CZu(D.url))&&Z.push([new bG([I,1],f(D.depth,F))]);Z.push([]);return g.M2(Z,function(H){return vJd(F,H)})}; vJd=function(f,D){g.tG(D,function(I){return I.depth>=0}); var F=SQ(D,function(I,p){return Math.max(I,p.depth)},-1),Z=fbJ(F+2); Z[0]=f;g.hC(D,function(I){return Z[I.depth+1]=I.Y}); return Z}; GDa=function(){var f=f===void 0?a0J():f;return f.map(function(D){return mw(D)})}; c9=function(f){f.job=!0;return f}; BUT=function(){var f=wOD("IFRAME"),D={};g.hC(WaJ(),function(F){f.sandbox&&f.sandbox.supports&&f.sandbox.supports(F)&&(D[F]=!0)}); return D}; wOD=function(f,D){D=D===void 0?document:D;return D.createElement(String(f).toLowerCase())}; rCE=function(f){var D=!1;D=D===void 0?!1:D;l5.google_image_requests||(l5.google_image_requests=[]);var F=wOD("IMG",l5.document);D&&(F.attributionSrc="");F.src=f;l5.google_image_requests.push(F)}; U5=function(f){var D="T2";if(f.T2&&f.hasOwnProperty(D))return f.T2;var F=new f;f.T2=F;f.hasOwnProperty(D);return F}; v9=function(){this.J=new RmX;this.Y=rL()?new LG:new BE}; Lay=function(){aE();var f=l5.document;return!!(f&&f.body&&f.body.getBoundingClientRect&&typeof l5.setInterval==="function"&&typeof l5.clearInterval==="function"&&typeof l5.setTimeout==="function"&&typeof l5.clearTimeout==="function")}; l0u=function(){aE();return GDa()}; EJD=function(){}; aE=function(){var f=U5(EJD);if(!f.Y){if(!l5)throw Error("Context has not been set and window is undefined.");f.Y=U5(v9)}return f.Y}; Gx=function(){throw Error("Invalid UTF8");}; JCu=function(f,D){D=String.fromCharCode.apply(null,D);return f==null?D:f+D}; emE=function(f){var D=!1;D=D===void 0?!1:D;if(uIu){if(D&&(NUu?!f.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(f)))throw Error("Found an unpaired surrogate");f=(gJs||(gJs=new TextEncoder)).encode(f)}else{for(var F=0,Z=new Uint8Array(3*f.length),I=0;I>6|192;else{if(p>=55296&&p<=57343){if(p<=56319&&I=56320&&z<=57343){p=(p-55296)*1024+ z-56320+65536;Z[F++]=p>>18|240;Z[F++]=p>>12&63|128;Z[F++]=p>>6&63|128;Z[F++]=p&63|128;continue}else I--}if(D)throw Error("Found an unpaired surrogate");p=65533}Z[F++]=p>>12|224;Z[F++]=p>>6&63|128}Z[F++]=p&63|128}}f=F===Z.length?Z:Z.subarray(0,F)}return f}; wi=function(f){g.RU.setTimeout(function(){throw f;},0)}; xfE=function(f){return Array.prototype.map.call(f,function(D){D=D.toString(16);return D.length>1?D:"0"+D}).join("")}; XOa=function(f){for(var D=[],F=0;F>6|192:((I&64512)==55296&&Z+1>18|240,D[F++]=I>>12&63|128):D[F++]=I>>12|224,D[F++]=I>>6&63|128),D[F++]=I&63|128)}return D}; g.B9=function(f,D){D===void 0&&(D=0);OsI();D=nJI[D];for(var F=Array(Math.floor(f.length/3)),Z=D[64]||"",I=0,p=0;I>2];z=D[(z&3)<<4|H>>4];H=D[(H&15)<<2|K>>6];K=D[K&63];F[p++]=""+k+z+H+K}k=0;K=Z;switch(f.length-I){case 2:k=f[I+1],K=D[(k&15)<<2]||Z;case 1:f=f[I],F[p]=""+D[f>>2]+D[(f&3)<<4|k>>4]+K+Z}return F.join("")}; g.ri=function(f,D,F){if(YQX&&!D)f=g.RU.btoa(f);else{for(var Z=[],I=0,p=0;p255){var H=Error("go/unicode-to-byte-error");if(F)throw H;Z[I++]=z&255;z>>=8}Z[I++]=z}f=g.B9(Z,D)}return f}; fMs=function(f){var D=[];PZu(f,function(F){D.push(F)}); return D}; L3=function(f){var D=f.length,F=D*3/4;F%3?F=Math.floor(F):g.OQ("=.",f[D-1])&&(F=g.OQ("=.",f[D-2])?F-2:F-1);var Z=new Uint8Array(F),I=0;PZu(f,function(p){Z[I++]=p}); return I!==F?Z.subarray(0,I):Z}; PZu=function(f,D){function F(K){for(;Z>4);z!=64&&(D(p<<4&240|z>>2),H!=64&&D(z<<6&192|H))}}; OsI=function(){if(!lG){lG={};for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),D=["+/=","+/","-_=","-_.","-_"],F=0;F<5;F++){var Z=f.concat(D[F].split(""));nJI[F]=Z;for(var I=0;I=D||(Z[f]=F+1,f=Error(),t0E(f,"incident"),wi(f))}}; n3=function(){return typeof BigInt==="function"}; YH=function(f,D,F){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(F===void 0?0:F)&&Symbol.for&&f?Symbol.for(f):f!=null?Symbol(f):Symbol():D}; D$=function(f,D){P9||fr in f||oZu(f,Kgy);f[fr]|=D}; Fy=function(f,D){P9||fr in f||oZu(f,Kgy);f[fr]=D}; I0=function(f,D){return D===void 0?f.Y!==Z$&&!!(2&(f.Bk[fr]|0)):!!(2&D)&&f.Y!==Z$}; kJw=function(f,D){if(f!=null)if(typeof f==="string")f=f?new E5(f,JG):uG();else if(f.constructor!==E5)if(qcu&&f!=null&&f instanceof Uint8Array)f=f.length?new E5(new Uint8Array(f),JG):uG();else{if(!D)throw Error();f=void 0}return f}; pr=function(f,D){if(typeof D!=="number"||D<0||D>=f.length)throw Error();}; jhD=function(f,D,F){var Z=D&128?0:-1,I=f.length,p;if(p=!!I)p=f[I-1],p=p!=null&&typeof p==="object"&&p.constructor===Object;var z=I+(p?-1:0);for(D=D&128?1:0;DD.length)return!1;if(f.lengthI)return!1;if(Z>>0;Kr=D;ke=(f-D)/4294967296>>>0}; Ag=function(f){if(f<0){jO(0-f);var D=g.a(iW(Kr,ke));f=D.next().value;D=D.next().value;Kr=f>>>0;ke=D>>>0}else jO(f)}; VG=function(f,D){var F=D*4294967296+(f>>>0);return Number.isSafeInteger(F)?F:$e(f,D)}; R0=function(f,D){var F=D&2147483648;F&&(f=~f+1>>>0,D=~D>>>0,f==0&&(D=D+1>>>0));f=VG(f,D);return typeof f==="number"?F?-f:f:F?"-"+f:f}; QG=function(f,D){return n3()?o0(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(D))<>>=0;f>>>=0;if(D<=2097151)var F=""+(4294967296*D+f);else n3()?F=""+(BigInt(D)<>>24|D<<8)&16777215,D=D>>16&65535,f=(f&16777215)+F*6777216+D*6710656,F+=D*8147497,D*=2,f>=1E7&&(F+=f/1E7>>>0,f%=1E7),F>=1E7&&(D+=F/1E7>>>0,F%=1E7),F=D+AQI(F)+AQI(f));return F}; AQI=function(f){f=String(f);return"0000000".slice(f.length)+f}; d1=function(f,D){D&2147483648?n3()?f=""+(BigInt(D|0)<>>0)):(D=g.a(iW(f,D)),f=D.next().value,D=D.next().value,f="-"+$e(f,D)):f=$e(f,D);return f}; Cr=function(f){if(f.length<16)Ag(Number(f));else if(n3())f=BigInt(f),Kr=Number(f&BigInt(4294967295))>>>0,ke=Number(f>>BigInt(32)&BigInt(4294967295));else{var D=+(f[0]==="-");ke=Kr=0;for(var F=f.length,Z=0+D,I=(F-D)%6+D;I<=F;Z=I,I+=6)Z=Number(f.slice(Z,I)),ke*=1E6,Kr=Kr*1E6+Z,Kr>=4294967296&&(ke+=Math.trunc(Kr/4294967296),ke>>>=0,Kr>>>=0);D&&(D=g.a(iW(Kr,ke)),f=D.next().value,D=D.next().value,Kr=f,ke=D)}}; iW=function(f,D){D=~D;f?f=~f+1:D+=1;return[f,D]}; mJ=function(f){return Array.prototype.slice.call(f)}; TA=function(f){if(f!=null&&typeof f!=="number")throw Error("Value of float/double field must be a number, found "+typeof f+": "+f);return f}; $7w=function(f){return f.displayName||f.name||"unknown type name"}; bW=function(f){if(f!=null&&typeof f!=="boolean")throw Error("Expected boolean but got "+bX(f)+": "+f);return f}; tg=function(f){switch(typeof f){case "bigint":return!0;case "number":return Mm(f);case "string":return VeJ.test(f);default:return!1}}; RXT=function(f){if(typeof f!=="number")throw eQ("int32");if(!Mm(f))throw eQ("int32");return f|0}; SO=function(f){return f==null?f:RXT(f)}; cu=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return Mm(f)?f|0:void 0}; UR=function(f){if(f==null)return f;if(typeof f==="string"&&f)f=+f;else if(typeof f!=="number")return;return Mm(f)?f>>>0:void 0}; CID=function(f){var D=void 0;D!=null||(D=vu?1024:0);if(!tg(f))throw eQ("int64");var F=typeof f;switch(D){case 512:switch(F){case "string":return a0(f);case "bigint":return String(GA(64,f));default:return w1(f)}case 1024:switch(F){case "string":return d7y(f);case "bigint":return o0(GA(64,f));default:return QhJ(f)}case 0:switch(F){case "string":return a0(f);case "bigint":return o0(GA(64,f));default:return Wu(f)}default:return TJ(D,"Unknown format requested type for int64")}}; lW=function(f){return f==null?f:CID(f)}; m7d=function(f){var D=f.length;if(f[0]==="-"?D<20||D===20&&f<="-9223372036854775808":D<19||D===19&&f<="9223372036854775807")return f;Cr(f);return d1(Kr,ke)}; Wu=function(f){tg(f);f=ER(f);Jg(f)||(Ag(f),f=R0(Kr,ke));return f}; w1=function(f){tg(f);f=ER(f);Jg(f)?f=String(f):(Ag(f),f=d1(Kr,ke));return f}; a0=function(f){tg(f);var D=ER(Number(f));if(Jg(D))return String(D);D=f.indexOf(".");D!==-1&&(f=f.substring(0,D));return m7d(f)}; d7y=function(f){var D=ER(Number(f));if(Jg(D))return o0(D);D=f.indexOf(".");D!==-1&&(f=f.substring(0,D));return n3()?o0(GA(64,BigInt(f))):o0(m7d(f))}; QhJ=function(f){return Jg(f)?o0(Wu(f)):o0(w1(f))}; TlI=function(f){if(f==null)return f;if(typeof f==="bigint")return uW(f)?f=Number(f):(f=GA(64,f),f=uW(f)?Number(f):String(f)),f;if(tg(f))return typeof f==="number"?Wu(f):a0(f)}; Nm=function(f){var D=typeof f;if(f==null)return f;if(D==="bigint")return o0(GA(64,f));if(tg(f))return D==="string"?d7y(f):QhJ(f)}; bWD=function(f){if(f==null)return f;var D=typeof f;if(D==="bigint")return String(GA(64,f));if(tg(f)){if(D==="string")return a0(f);if(D==="number")return Wu(f)}}; teD=function(f){if(f==null)return f;var D=typeof f;if(D==="bigint")return String(Meu(64,f));if(tg(f)){if(D==="string")return tg(f),D=ER(Number(f)),Jg(D)&&D>=0?f=String(D):(D=f.indexOf("."),D!==-1&&(f=f.substring(0,D)),f[0]==="-"?D=!1:(D=f.length,D=D<20?!0:D===20&&f<="18446744073709551615"),D||(Cr(f),f=$e(Kr,ke))),f;if(D==="number")return tg(f),f=ER(f),f>=0&&Jg(f)||(Ag(f),f=VG(Kr,ke)),f}}; Scf=function(f){if(f==null||typeof f=="string"||f instanceof E5)return f}; cQu=function(f){if(typeof f!=="string")throw Error();return f}; g1=function(f){if(f!=null&&typeof f!=="string")throw Error();return f}; eO=function(f){return f==null||typeof f==="string"?f:void 0}; xe=function(f,D){if(!(f instanceof D))throw Error("Expected instanceof "+$7w(D)+" but got "+(f&&$7w(f.constructor)));return f}; U7E=function(f,D,F){if(f!=null&&f[Xy]===OR)return f;if(Array.isArray(f)){var Z=f[fr]|0;F=Z|F&32|F&2;F!==Z&&Fy(f,F);return new D(f)}}; nr=function(f){return f}; Pu=function(f){var D=Be(Ye);return D?f[D]:void 0}; f4=function(){}; DH=function(f,D){for(var F in f)!isNaN(F)&&D(f,+F,f[F])}; vZD=function(f){var D=new f4;DH(f,function(F,Z,I){D[Z]=mJ(I)}); D.A4=f.A4;return D}; GJw=function(f,D){D<100||O5(aMu,1)}; ZH=function(f,D,F,Z){var I=Z!==void 0;Z=!!Z;var p=Be(Ye),z;!I&&P9&&p&&(z=f[p])&&DH(z,GJw);p=[];var H=f.length;z=4294967295;var K=!1,k=!!(D&64),h=k?D&128?0:-1:void 0;if(!(D&1)){var y=H&&f[H-1];y!=null&&typeof y==="object"&&y.constructor===Object?(H--,z=H):y=void 0;if(k&&!(D&128)&&!I){K=!0;var A;z=((A=FB)!=null?A:nr)(z-h,h,f,y,void 0)+h}}D=void 0;for(A=0;A=z){var R=A-h,m=void 0;((m=D)!=null?m:D={})[R]=V}else p[A]=V}if(y)for(var b in y)H=y[b],H!= null&&(H=F(H,Z))!=null&&(A=+b,V=void 0,k&&!Number.isNaN(A)&&(V=A+h)0?void 0:f===0?LgJ||(LgJ=[0,void 0]):[-f,void 0];case "string":return[0,f];case "object":return f}}; z7=function(f,D){return EZX(f,D[0],D[1])}; s8=function(f,D,F){return EZX(f,D,F,2048)}; EZX=function(f,D,F,Z){Z=Z===void 0?0:Z;if(f==null){var I=32;F?(f=[F],I|=128):f=[];D&&(I=I&-16760833|(D&1023)<<14)}else{if(!Array.isArray(f))throw Error("narr");I=f[fr]|0;if(JQs&&1&I)throw Error("rfarr");2048&I&&!(2&I)&&uWT();if(I&256)throw Error("farr");if(I&64)return(I|Z)!==I&&Fy(f,I|Z),f;if(F&&(I|=128,F!==f[0]))throw Error("mid");a:{F=f;I|=64;var p=F.length;if(p){var z=p-1,H=F[z];if(H!=null&&typeof H==="object"&&H.constructor===Object){D=I&128?0:-1;z-=D;if(z>=1024)throw Error("pvtlmt");for(var K in H)p= +K,p1024)throw Error("spvt");I=I&-16760833|(K&1023)<<14}}}Fy(f,I|64|Z);return f}; uWT=function(){if(JQs)throw Error("carr");O5(Nlu,5)}; gZT=function(f,D){if(typeof f!=="object")return f;if(Array.isArray(f)){var F=f[fr]|0;f.length===0&&F&1?f=void 0:F&2||(!D||4096&F||16&F?f=qo(f,F,!1,D&&!(F&16)):(D$(f,34),F&4&&Object.freeze(f)));return f}if(f!=null&&f[Xy]===OR)return D=f.Bk,F=D[fr]|0,I0(f,F)?f:H3(f,D,F)?ou(f,D):qo(D,F);if(f instanceof E5)return f}; ou=function(f,D,F){f=new f.constructor(D);F&&(f.Y=Z$);f.J=Z$;return f}; qo=function(f,D,F,Z){Z!=null||(Z=!!(34&D));f=ZH(f,D,gZT,Z);Z=32;F&&(Z|=2);D=D&16769217|Z;Fy(f,D);return f}; eXD=function(f){var D=f.Bk,F=D[fr]|0;return I0(f,F)?H3(f,D,F)?ou(f,D,!0):new f.constructor(qo(D,F,!1)):f}; K4=function(f){if(f.Y!==Z$)return!1;var D=f.Bk;D=qo(D,D[fr]|0);D$(D,2048);f.Bk=D;f.Y=void 0;f.J=void 0;return!0}; k0=function(f){if(!K4(f)&&I0(f,f.Bk[fr]|0))throw Error();}; jf=function(f,D){D===void 0&&(D=f[fr]|0);D&32&&!(D&4096)&&Fy(f,D|4096)}; H3=function(f,D,F){return F&2?!0:F&32&&!(F&4096)?(Fy(D,F|2),f.Y=Z$,!0):!1}; hz=function(f,D,F,Z,I){Object.isExtensible(f);D=iE(f.Bk,D,F,I);if(D!==null||Z&&f.J!==Z$)return D}; iE=function(f,D,F,Z){if(D===-1)return null;var I=D+(F?0:-1),p=f.length-1;if(!(p<1+(F?0:-1))){if(I>=p){var z=f[p];if(z!=null&&typeof z==="object"&&z.constructor===Object){F=z[D];var H=!0}else if(I===p)F=z;else return}else F=f[I];if(Z&&F!=null){Z=Z(F);if(Z==null)return Z;if(!Object.is(Z,F))return H?z[D]=Z:f[I]=Z,Z}return F}}; Az=function(f,D,F,Z){k0(f);var I=f.Bk;yN(I,I[fr]|0,D,F,Z);return f}; yN=function(f,D,F,Z,I){var p=F+(I?0:-1),z=f.length-1;if(z>=1+(I?0:-1)&&p>=z){var H=f[z];if(H!=null&&typeof H==="object"&&H.constructor===Object)return H[F]=Z,D}if(p<=z)return f[p]=Z,D;if(Z!==void 0){var K;z=((K=D)!=null?K:D=f[fr]|0)>>14&1023||536870912;F>=z?Z!=null&&(p={},f[z+(I?0:-1)]=(p[F]=Z,p)):f[p]=Z}return D}; QN=function(f,D,F,Z,I){var p=f.Bk,z=p[fr]|0;Z=I0(f,z)?1:Z;I=!!I||Z===3;Z===2&&K4(f)&&(p=f.Bk,z=p[fr]|0);f=$0(p,D);var H=f===VN?7:f[fr]|0,K=Ru(H,z);var k=4&K?!1:!0;if(k){4&K&&(f=mJ(f),H=0,K=d9(K,z),z=yN(p,z,D,f));for(var h=0,y=0;h32)for(Z|=(H&127)>>4,I=3;I<32&&H&128;I+=7)H=p[z++],Z|=(H&127)<>>0,Z>>>0);throw Error();}; var Vua=function(f){return od[q[16]](this,5,f)}; id=function(f,D){f.Y=D;if(D>f.B)throw Error();}; yP=function(f){var D=f.J,F=f.Y,Z=D[F++],I=Z&127;if(Z&128&&(Z=D[F++],I|=(Z&127)<<7,Z&128&&(Z=D[F++],I|=(Z&127)<<14,Z&128&&(Z=D[F++],I|=(Z&127)<<21,Z&128&&(Z=D[F++],I|=Z<<28,Z&128&&D[F++]&128&&D[F++]&128&&D[F++]&128&&D[F++]&128&&D[F++]&128)))))throw Error();id(f,F);return I}; AU=function(f){var D=f.J,F=f.Y,Z=D[F+0],I=D[F+1],p=D[F+2];D=D[F+3];id(f,f.Y+4);return(Z<<0|I<<8|p<<16|D<<24)>>>0}; $E=function(f){var D=AU(f);f=AU(f);return VG(D,f)}; VP=function(f){var D=AU(f);f=AU(f);return o0(n3()?BigInt.asUintN(64,(BigInt(f>>>0)<>>0)):$e(D,f))}; RQ=function(f){var D=AU(f),F=AU(f);f=(F>>31)*2+1;var Z=F>>>20&2047;D=4294967296*(F&1048575)+D;return Z==2047?D?NaN:f*Infinity:Z==0?f*4.9E-324*D:f*Math.pow(2,Z-1075)*(D+4503599627370496)}; dI=function(f){for(var D=0,F=f.Y,Z=F+10,I=f.J;Ff.B)throw Error();f.Y=D;return F}; pEd=function(f,D){if(D==0)return uG();var F=ZGD(f,D);f.Uu&&f.X?F=f.J.subarray(F,F+D):(f=f.J,D=F+D,F=F===D?new Uint8Array(0):Imw?f.slice(F,D):new Uint8Array(f.subarray(F,D)));return F.length==0?uG():new E5(F,JG)}; CA=function(f,D,F,Z){if(QP.length){var I=QP.pop();I.init(f,D,F,Z);f=I}else f=new Zu(f,D,F,Z);this.Y=f;this.G=this.Y.Y;this.J=this.B=-1;zMc(this,Z)}; zMc=function(f,D){D=D===void 0?{}:D;f.KJ=D.KJ===void 0?!1:D.KJ}; sGI=function(f,D,F,Z){if(mZ.length){var I=mZ.pop();zMc(I,Z);I.Y.init(f,D,F,Z);return I}return new CA(f,D,F,Z)}; qau=function(f){var D=f.Y;if(D.Y==D.B)return!1;f.G=f.Y.Y;var F=yP(f.Y)>>>0;D=F>>>3;F&=7;if(!(F>=0&&F<=5))throw Error();if(D<1)throw Error();f.B=D;f.J=F;return!0}; TU=function(f){switch(f.J){case 0:f.J!=0?TU(f):dI(f.Y);break;case 1:f=f.Y;id(f,f.Y+8);break;case 2:if(f.J!=2)TU(f);else{var D=yP(f.Y)>>>0;f=f.Y;id(f,f.Y+D)}break;case 5:f=f.Y;id(f,f.Y+4);break;case 3:D=f.B;do{if(!qau(f))throw Error();if(f.J==4){if(f.B!=D)throw Error();break}TU(f)}while(1);break;default:throw Error();}}; bd=function(f,D,F){var Z=f.Y.B,I=yP(f.Y)>>>0;I=f.Y.Y+I;var p=I-Z;p<=0&&(f.Y.B=I,F(D,f,void 0,void 0,void 0),p=I-f.Y.Y);if(p)throw Error();f.Y.Y=I;f.Y.B=Z}; S9=function(f){var D=yP(f.Y)>>>0;f=f.Y;var F=ZGD(f,D);f=f.J;if(HGf){var Z=f,I;(I=M0)||(I=M0=new TextDecoder("utf-8",{fatal:!0}));D=F+D;Z=F===0&&D===Z.length?Z:Z.subarray(F,D);try{var p=I.decode(Z)}catch(k){if(tU===void 0){try{I.decode(new Uint8Array([128]))}catch(h){}try{I.decode(new Uint8Array([97])),tU=!0}catch(h){tU=!1}}!tU&&(M0=void 0);throw k;}}else{p=F;D=p+D;F=[];for(var z=null,H,K;p=D?Gx():(K=f[p++],H<194||(K&192)!==128?(p--,Gx()):F.push((H&31)<<6|K&63)): H<240?p>=D-1?Gx():(K=f[p++],(K&192)!==128||H===224&&K<160||H===237&&K>=160||((I=f[p++])&192)!==128?(p--,Gx()):F.push((H&15)<<12|(K&63)<<6|I&63)):H<=244?p>=D-2?Gx():(K=f[p++],(K&192)!==128||(H<<28)+(K-144)>>30!==0||((I=f[p++])&192)!==128||((Z=f[p++])&192)!==128?(p--,Gx()):(H=(H&7)<<18|(K&63)<<12|(I&63)<<6|Z&63,H-=65536,F.push((H>>10&1023)+55296,(H&1023)+56320))):Gx(),F.length>=8192&&(z=JCu(z,F),F.length=0);p=JCu(z,F)}return p}; odD=function(f){var D=yP(f.Y)>>>0;return pEd(f.Y,D)}; KKf=function(f,D,F){var Z=yP(f.Y)>>>0;for(Z=f.Y.Y+Z;f.Y.Y>>0;this.Y=D>>>0}; iGX=function(f){if(!f)return jGD||(jGD=new UB(0,0));if(!/^\d+$/.test(f))return null;Cr(f);return new UB(Kr,ke)}; vo=function(f,D){this.J=f>>>0;this.Y=D>>>0}; yBX=function(f){if(!f)return hMw||(hMw=new vo(0,0));if(!/^-?\d+$/.test(f))return null;Cr(f);return new vo(Kr,ke)}; aQ=function(){this.Y=[]}; GU=function(f,D,F){for(;F>0||D>127;)f.Y.push(D&127|128),D=(D>>>7|F<<25)>>>0,F>>>=7;f.Y.push(D)}; wI=function(f,D){for(;D>127;)f.Y.push(D&127|128),D>>>=7;f.Y.push(D)}; ABa=function(f,D){if(D>=0)wI(f,D);else{for(var F=0;F<9;F++)f.Y.push(D&127|128),D>>=7;f.Y.push(1)}}; Wo=function(f,D){f.Y.push(D>>>0&255);f.Y.push(D>>>8&255);f.Y.push(D>>>16&255);f.Y.push(D>>>24&255)}; $eu=function(){this.B=[];this.J=0;this.Y=new aQ}; Bo=function(f,D){D.length!==0&&(f.B.push(D),f.J+=D.length)}; Vcs=function(f,D){rI(f,D,2);D=f.Y.end();Bo(f,D);D.push(f.J);return D}; RMa=function(f,D){var F=D.pop();for(F=f.J+f.Y.length()-F;F>127;)D.push(F&127|128),F>>>=7,f.J++;D.push(F);f.J++}; rI=function(f,D,F){wI(f.Y,D*8+F)}; dey=function(f,D,F){if(F!=null){switch(typeof F){case "string":iGX(F)}rI(f,D,1);switch(typeof F){case "number":f=f.Y;jO(F);Wo(f,Kr);Wo(f,ke);break;case "bigint":F=BigInt.asUintN(64,F);F=new UB(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));f=f.Y;D=F.Y;Wo(f,F.J);Wo(f,D);break;default:F=iGX(F),f=f.Y,D=F.Y,Wo(f,F.J),Wo(f,D)}}}; LA=function(f,D,F){rI(f,D,2);wI(f.Y,F.length);Bo(f,f.Y.end());Bo(f,F)}; ld=function(){function f(){throw Error();} Object.setPrototypeOf(f,f.prototype);return f}; EB=function(f,D,F){this.Bk=s8(f,D,F)}; QGD=function(f,D){if(D==null||D=="")return new f;D=JSON.parse(D);if(!Array.isArray(D))throw Error("dnarr");D$(D,32);return new f(D)}; ud=function(f,D,F){this.Yd=f;this.JL=D;f=Be(JU);this.Y=!!f&&F===f||!1}; C5T=function(f){return yX[q[16]](this,1,f)}; N0=function(f,D){var F=F===void 0?JU:F;return new ud(f,D,F)}; TLJ=function(f,D,F,Z,I){D=meu(D,Z);D!=null&&(F=Vcs(f,F),I(D,f),RMa(f,F))}; xE=function(f,D,F,Z){var I=Z[f];if(I)return I;I={};I.Ap=Z;I.eS=lMu(Z[0]);var p=Z[1],z=1;p&&p.constructor===Object&&(I.extensions=p,p=Z[++z],typeof p==="function"&&(I.Vv=!0,gI!=null||(gI=p),e9!=null||(e9=Z[z+1]),p=Z[z+=2]));for(var H={};p&&Array.isArray(p)&&p.length&&typeof p[0]==="number"&&p[0]>0;){for(var K=0;K>BigInt(32)));GU(f.Y,F.J,F.Y);break;default:F=yBX(D),GU(f.Y,F.J,F.Y)}}}; HV=function(f,D,F){D=cu(D);D!=null&&D!=null&&(rI(f,F,0),ABa(f.Y,D))}; rBT=function(f,D,F){D=D==null||typeof D==="boolean"?D:typeof D==="number"?!!D:void 0;D!=null&&(rI(f,F,0),f.Y.Y.push(D?1:0))}; LKu=function(f,D,F){D=eO(D);D!=null&&LA(f,F,emE(D))}; lmu=function(f,D,F,Z,I){D=meu(D,Z);D!=null&&(F=Vcs(f,F),I(D,f),RMa(f,F))}; JBf=function(f,D,F){if(F!==co)throw Error();this.typeName=f;this.Y=D;if(F!==co)throw Error();EdI.set(f,this)}; NLf=function(){var f=o_;this.Y=uAf;this.isRepeated=0;this.J=r9;this.defaultValue=void 0;this.B=f.messageId!=null?zA:void 0}; gdf=function(f,D){return function(F,Z){var I={Dt:!0};Z&&Object.assign(I,Z);F=sGI(F,void 0,void 0,I);try{var p=new f,z=p.Bk;YE(D)(z,F);var H=p}finally{F.free()}return H}}; eMT=function(f){return function(){var D=new $eu;GRd(this.Bk,D,xE(Dj,f8,Fe,f));Bo(D,D.Y.end());for(var F=new Uint8Array(D.J),Z=D.B,I=Z.length,p=0,z=0;z-1)return D.apply(null,g.w(F));try{return f.Y=f.B.Y.now(),D.apply(null,g.w(F))}finally{f.G+=f.B.Y.now()-f.Y,f.Y=-1,f.J+=1}}}; XEa=function(f,D){this.J=f;this.B=D;this.Y=new xeT(f)}; OGy=function(){this.Y={}}; fxu=function(){this.B=void 0;this.J=this.T=0;this.X=-1;this.zT=new rU;Ls(this.zT,"mv",ndD).Y=!0;Ls(this.zT,"omid",Nf);Ls(this.zT,"epoh",Nf).Y=!0;Ls(this.zT,"epph",Nf).Y=!0;Ls(this.zT,"umt",Nf).Y=!0;Ls(this.zT,"phel",Nf).Y=!0;Ls(this.zT,"phell",Nf).Y=!0;Ls(this.zT,"oseid",Yau).Y=!0;var f=this.zT;f.Y.sloi||(f.Y.sloi=new WO);f.Y.sloi.Y=!0;Ls(this.zT,"mm",ii);Ls(this.zT,"ovms",P5y).Y=!0;Ls(this.zT,"xdi",Nf).Y=!0;Ls(this.zT,"amp",Nf).Y=!0;Ls(this.zT,"prf",Nf).Y=!0;Ls(this.zT,"gtx",Nf).Y=!0;Ls(this.zT, "mvp_lv",Nf).Y=!0;Ls(this.zT,"ssmol",Nf).Y=!0;Ls(this.zT,"fmd",Nf).Y=!0;Ls(this.zT,"gen204simple",Nf);this.Y=new XEa(aE(),this.zT);this.G=!1;this.flags=new OGy}; hL=function(){return U5(fxu)}; D2D=function(f,D,F,Z){if(Math.random()<(Z||f.Y))try{if(F instanceof QI)var I=F;else I=new QI,di(F,function(z,H){var K=I,k=K.G++;z=C3(H,z);K.Y.push(k);K.J[k]=z}); var p=I.M7(f.J,"pagead2.googlesyndication.com","/pagead/gen_204?id="+D+"&");p&&(aE(),rCE(p))}catch(z){}}; Fwu=function(f,D,F){F=F===void 0?{}:F;this.error=f;this.meta=F;this.context=D.context;this.msg=D.message||"";this.id=D.id||"jserror"}; Z3I=function(){var f=f===void 0?g.RU:f;return(f=f.performance)&&f.now&&f.timing?Math.floor(f.now()+f.timing.navigationStart):g.We()}; Ixc=function(){var f=f===void 0?g.RU:f;return(f=f.performance)&&f.now?f.now():null}; p9y=function(f,D,F){this.label=f;this.type=D;this.value=F;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; AL=function(){var f=window;this.events=[];this.J=f||g.RU;var D=null;f&&(f.google_js_reporting_queue=f.google_js_reporting_queue||[],this.events=f.google_js_reporting_queue,D=f.google_measure_js_timing);this.Y=yW()||(D!=null?D:Math.random()<1)}; z2D=function(f){f&&$z&&yW()&&($z.clearMarks("goog_"+f.label+"_"+f.uniqueId+"_start"),$z.clearMarks("goog_"+f.label+"_"+f.uniqueId+"_end"))}; VW=function(f,D,F,Z,I,p,z){var H="";f&&(H+=f+":");F&&(H+="//",D&&(H+=D+"@"),H+=F,Z&&(H+=":"+Z));I&&(H+=I);p&&(H+="?"+p);z&&(H+="#"+z);return H}; g.R_=function(f){return f.match(sED)}; q5s=function(f){return f?decodeURI(f):f}; g.dy=function(f){return q5s(g.R_(f)[3]||null)}; QW=function(f){return q5s(g.R_(f)[5]||null)}; g.H3d=function(f){f=g.R_(f);return VW(f[1],f[2],f[3],f[4])}; C8=function(f){f=g.R_(f);return VW(null,null,null,null,f[5],f[6],f[7])}; oHD=function(f){var D=f.indexOf("#");return D<0?f:f.slice(0,D)}; mX=function(f,D){if(f){f=f.split("&");for(var F=0;F=0){var p=f[F].substring(0,Z);I=f[F].substring(Z+1)}else p=f[F];D(p,I?Ec(I):"")}}}; TW=function(f,D){if(!D)return f;var F=f.indexOf("#");F<0&&(F=f.length);var Z=f.indexOf("?");if(Z<0||Z>F){Z=F;var I=""}else I=f.substring(Z+1,F);f=[f.slice(0,Z),I,f.slice(F)];F=f[1];f[1]=D?F?F+"&"+D:D:F;return f[0]+(f[1]?"?"+f[1]:"")+f[2]}; bi=function(f,D,F){if(Array.isArray(D))for(var Z=0;Z=0&&DF)I=F;Z+=D.length+1;return Ec(f.slice(Z,I!==-1?I:0))}; a_=function(f,D){for(var F=f.search(Uo),Z=0,I,p=[];(I=cV(f,Z,D,F))>=0;)p.push(f.substring(Z,I)),Z=Math.min(f.indexOf("&",I)+1||F,F);p.push(f.slice(Z));return p.join("").replace(jEf,"$1")}; i3D=function(f,D,F){return SD(a_(f,D),D,F)}; h2E=function(){var f=GW;this.Y=wy;this.Ag="jserror";this.d1=!0;this.Y5=null;this.J=this.Ob;this.AZ=f===void 0?null:f}; yGd=function(f,D,F){var Z=WV;return jD(hL().Y.Y,function(){try{if(Z.AZ&&Z.AZ.Y){var I=Z.AZ.start(f.toString(),3);var p=D();Z.AZ.end(I)}else p=D()}catch(H){var z=Z.d1;try{z2D(I),z=Z.J(f,new BV(ry(H)),void 0,F)}catch(K){Z.Ob(217,K)}if(!z)throw H;}return p})()}; L8=function(f,D,F,Z){return jD(hL().Y.Y,function(){var I=g.hv.apply(0,arguments);return yGd(f,function(){return D.apply(F,I)},Z)})}; ry=function(f){var D=f.toString();f.name&&D.indexOf(f.name)==-1&&(D+=": "+f.name);f.message&&D.indexOf(f.message)==-1&&(D+=": "+f.message);if(f.stack)a:{f=f.stack;var F=D;try{f.indexOf(F)==-1&&(f=F+"\n"+f);for(var Z;f!=Z;)Z=f,f=f.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");D=f.replace(/\n */g,"\n");break a}catch(I){D=F;break a}D=void 0}return D}; BV=function(f){Fwu.call(this,Error(f),{message:f})}; AGu=function(){l5&&typeof l5.google_measure_js_timing!="undefined"&&(l5.google_measure_js_timing||GW.disable())}; $2I=function(f){WV.Y5=function(D){g.hC(f,function(F){F(D)})}}; VQD=function(f,D){return yGd(f,D)}; li=function(f,D){return L8(f,D)}; Eo=function(f,D,F,Z){WV.Ob(f,D,F,Z)}; JL=function(){return Date.now()-R2J}; d2u=function(){var f=hL().B,D=ui>=0?JL()-ui:-1,F=NX?JL()-gy:-1,Z=eD>=0?JL()-eD:-1;if(f==947190542)return 100;if(f==79463069)return 200;f=[2E3,4E3];var I=[250,500,1E3];Eo(637,Error(),.001);var p=D;F!=-1&&F1500&&Z<4E3?500:z}; xz=function(f,D,F){var Z=new xd(0,0,0,0);this.time=f;this.volume=null;this.B=D;this.Y=Z;this.J=F}; Xe=function(f,D,F,Z,I,p,z,H){this.G=f;this.S=D;this.B=F;this.T=Z;this.Y=I;this.X=p;this.J=z;this.N=H}; CGa=function(f){var D=f!==f.top,F=f.top===dfc(f),Z=-1,I=0;if(D&&F&&f.top.mraid){Z=3;var p=f.top.mraid}else Z=(p=f.mraid)?D?F?2:1:0:-1;p&&(p.IS_GMA_SDK||(I=2),Zou(QEJ,function(z){return typeof p[z]==="function"})||(I=1)); return{q9:p,compatibility:I,BMs:Z}}; m2w=function(){var f=window.document;return f&&typeof f.elementFromPoint==="function"}; Tic=function(f,D,F){if(f&&D!==null&&D!=D.top){if(!D.top)return new g.IG(-12245933,-12245933);D=D.top}try{return(F===void 0?0:F)?(new g.IG(D.innerWidth,D.innerHeight)).round():I0u(D||window).round()}catch(Z){return new g.IG(-12245933,-12245933)}}; Oo=function(f,D,F){try{if(f){if(!D.top)return new xd(-12245933,-12245933,-12245933,-12245933);D=D.top}var Z=Tic(f,D,F),I=Z.height,p=Z.width;if(p===-12245933)return new xd(p,p,p,p);var z=jc(D.document);var H=zmT(z.Y);var K=H.x,k=H.y;return new xd(k,K+p,k+I,K)}catch(h){return new xd(-12245933,-12245933,-12245933,-12245933)}}; n8=function(f,D){D=Math.pow(10,D);return Math.floor(f*D)/D}; b3D=function(f){return new xd(f.top,f.right,f.bottom,f.left)}; MQJ=function(f){var D=f.top||0,F=f.left||0;return new xd(D,F+(f.width||0),D+(f.height||0),F)}; Yz=function(f){return f!=null&&f>=0&&f<=1}; tQI=function(){var f=g.DM();return f?PV("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(D){return ns(f,D)})||ns(f,"OMI/")&&!ns(f,"XiaoMi/")?!0:ns(f,"Presto")&&ns(f,"Linux")&&!ns(f,"X11")&&!ns(f,"Android")&&!ns(f,"Mobi"):!1}; S5c=function(){this.B=!$H(l5.top);this.isMobileDevice=VI()||Qic();var f=RE();this.domain=f.length>0&&f[f.length-1]!=null&&f[f.length-1].url!=null?g.dy(f[f.length-1].url)||"":"";this.Y=new xd(0,0,0,0);this.G=new g.IG(0,0);this.X=new g.IG(0,0);this.S=new xd(0,0,0,0);this.frameOffset=new g.FA(0,0);this.T=0;this.N=!1;this.J=!(!l5||!CGa(l5).q9);this.update(l5)}; cGD=function(f,D){D&&D.screen&&(f.G=new g.IG(D.screen.width,D.screen.height))}; U2w=function(f,D){a:{var F=f.Y?new g.IG(XA(f.Y),f.Y.getHeight()):new g.IG(0,0);D=D===void 0?l5:D;D!==null&&D!=D.top&&(D=D.top);var Z=0,I=0;try{var p=D.document,z=p.body,H=p.documentElement;if(p.compatMode=="CSS1Compat"&&H.scrollHeight)Z=H.scrollHeight!=F.height?H.scrollHeight:H.offsetHeight,I=H.scrollWidth!=F.width?H.scrollWidth:H.offsetWidth;else{var K=H.scrollHeight,k=H.scrollWidth,h=H.offsetHeight,y=H.offsetWidth;H.clientHeight!=h&&(K=z.scrollHeight,k=z.scrollWidth,h=z.offsetHeight,y=z.offsetWidth); K>F.height?K>h?(Z=K,I=k):(Z=h,I=y):K0||f.N)return!0;f=aE().J.isVisible();var D=AG(DS)===0;return f||D}; fq=function(){return U5(S5c)}; ZS=function(f){this.B=f;this.J=0;this.Y=null}; Ic=function(f,D,F){this.B=f;this.jT=F===void 0?"na":F;this.X=[];this.isInitialized=!1;this.G=new xz(-1,!0,this);this.Y=this;this.N=D;this.Bs=this.Jb=!1;this.Tx="uk";this.zx=!1;this.T=!0}; pq=function(f,D){g.e0(f.X,D)||(f.X.push(D),D.Ec(f.Y),D.JX(f.G),D.RI()&&(f.Jb=!0))}; vHa=function(f){f=f.Y;f.Ng();f.Fg();var D=fq();D.S=Oo(!1,f.B,D.isMobileDevice);U2w(fq(),f.B);f.G.Y=f.iZ()}; axX=function(f){f.Jb=f.X.length?PV(f.X,function(D){return D.RI()}):!1}; Gxf=function(f){var D=g.FI(f.X);g.hC(D,function(F){F.JX(f.G)})}; z$=function(f){var D=g.FI(f.X);g.hC(D,function(F){F.Ec(f.Y)}); f.Y!=f||Gxf(f)}; sj=function(f,D,F,Z){this.element=f;this.Y=new xd(0,0,0,0);this.B=null;this.T=new xd(0,0,0,0);this.J=D;this.zT=F;this.zx=Z;this.xo=!1;this.timestamp=-1;this.Jb=new Xe(D.G,this.element,this.Y,new xd(0,0,0,0),0,0,JL(),0);this.X=void 0}; w9X=function(f,D){return f.X?new xd(Math.max(D.top+f.X.top,D.top),Math.min(D.left+f.X.right,D.right),Math.min(D.top+f.X.bottom,D.bottom),Math.max(D.left+f.X.left,D.left)):D.clone()}; qQ=function(f){this.X=!1;this.Y=f;this.G=function(){}}; Wws=function(f,D,F){this.B=F===void 0?0:F;this.J=f;this.Y=D==null?"":D}; BiT=function(f){switch(Math.trunc(f.B)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; rGc=function(f,D){return f.BD.B?!1:f.JD.J?!1:typeof f.Ytypeof D.Y?!1:f.Y0?Z[F]-Z[F-1]:Z[F]})}; QU=function(){this.J=new yU;this.jT=this.Ir=0;this.Ps=new ht;this.KQ=this.S=-1;this.eT=1E3;this.JN=new yU([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Tx=this.xo=-1}; Cq=function(f,D){return X9u(f.J,D===void 0?!0:D)}; mo=function(f,D,F,Z){var I=I===void 0?!1:I;F=L8(Z,F);yI(f,D,F,{capture:I})}; bD=function(f,D){D=T$(D);return D===0?0:T$(f)/D}; T$=function(f){return Math.max(f.bottom-f.top,0)*Math.max(f.right-f.left,0)}; Y5D=function(f,D){if(!f||!D)return!1;for(var F=0;f!==null&&F++<100;){if(f===D)return!0;try{if(f=f.parentElement||f){var Z=kd(f),I=Z&&Qq(Z),p=I&&I.frameElement;p&&(f=p)}}catch(z){break}}return!1}; var kaI=function(){return Dwu[q[16]](this,4)}; PGy=function(f,D,F){if(!f||!D)return!1;D=nG(f.clone(),-D.left,-D.top);f=(D.left+D.right)/2;D=(D.top+D.bottom)/2;$H(window.top)&&window.top&&window.top.document&&(window=window.top);if(!m2w())return!1;f=window.document.elementFromPoint(f,D);if(!f)return!1;D=(D=(D=kd(F))&&D.defaultView&&D.defaultView.frameElement)&&Y5D(D,f);var Z=f===F;f=!Z&&f&&wL(f,function(I){return I===F}); return!(D||Z||f)}; f$T=function(f,D,F,Z){return fq().B?!1:XA(f)<=0||f.getHeight()<=0?!0:F&&Z?VQD(208,function(){return PGy(f,D,F)}):!1}; MQ=function(f,D,F){g.J.call(this);this.position=Dmd.clone();this.sO=this.sz();this.uX=-2;this.timeCreated=Date.now();this.Hy=-1;this.S2=D;this.ol=null;this.nk=!1;this.l8=null;this.opacity=-1;this.requestSource=F;this.PnE=!1;this.oS=function(){}; this.hI=function(){}; this.I2=new Hsu;this.I2.WY=f;this.I2.Y=f;this.fm=!1;this.zz={eR:null,AF:null};this.Ex=!0;this.yk=null;this.l6=this.hFT=!1;hL().T++;this.UG=this.iV();this.Lz=-1;this.gU=null;this.hasCompleted=this.f53=!1;this.zT=new rU;KAw(this.zT);FJJ(this);this.requestSource==1?EQ(this.zT,"od",1):EQ(this.zT,"od",0)}; FJJ=function(f){f=f.I2.WY;var D;if(D=f&&f.getAttribute)D=/-[a-z]/.test("googleAvInapp")?!1:ZrE&&f.dataset?"googleAvInapp"in f.dataset:f.hasAttribute?f.hasAttribute("data-"+rvu()):!!f.getAttribute("data-"+rvu());D&&(fq().J=!0)}; tt=function(f,D){D!=f.l6&&(f.l6=D,f=fq(),D?f.T++:f.T>0&&f.T--)}; I$J=function(f,D){if(f.gU){if(D.getName()===f.gU.getName())return;f.gU.dispose();f.gU=null}D=D.create(f.I2.Y,f.zT,f.RI());if(D=D!=null&&D.observe()?D:null)f.gU=D}; puX=function(f,D,F){if(!f.ol||f.S2==-1||D.J===-1||f.ol.J===-1)return 0;f=D.J-f.ol.J;return f>F?0:f}; zBf=function(f,D,F){if(f.gU){f.gU.I0();var Z=f.gU.Jb,I=Z.G,p=I.Y;if(Z.T!=null){var z=Z.B;f.l8=new g.FA(z.left-p.left,z.top-p.top)}p=f.ET()?Math.max(Z.Y,Z.X):Z.Y;z={};I.volume!==null&&(z.volume=I.volume);I=f.uZ(Z);f.ol=Z;f.u3(p,D,F,!1,z,I,Z.N)}}; s0T=function(f){if(f.nk&&f.yk){var D=JC(f.zT,"od")==1,F=fq().Y,Z=f.yk,I=f.gU?f.gU.getName():"ns",p=f.l8,z=new g.IG(XA(F),F.getHeight());F=f.ET();f={mpT:I,l8:p,xMT:z,ET:F,dU:f.UG.dU,Ksx:D};if(D=Z.J){D.I0();I=D.Jb;p=I.G.Y;var H=z=null;I.T!=null&&p&&(z=I.B,z=new g.FA(z.left-p.left,z.top-p.top),H=new g.IG(p.right-p.left,p.bottom-p.top));I=F?Math.max(I.Y,I.X):I.Y;F={mpT:D.getName(),l8:z,xMT:H,ET:F,Ksx:!1,dU:I}}else F=null;F&&gHf(Z,f,F)}}; qRT=function(f,D,F){D&&(f.oS=D);F&&(f.hI=F)}; g.Sg=function(){}; g.cM=function(f){return{value:f,done:!1}}; HrX=function(){this.G=this.Y=this.B=this.J=this.X=0}; oef=function(f){var D={};var F=g.We()-f.X;D=(D.ptlt=F,D);(F=f.J)&&(D.pnk=F);(F=f.B)&&(D.pnc=F);(F=f.G)&&(D.pnmm=F);(f=f.Y)&&(D.pns=f);return D}; KJy=function(){AC.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; Uj=function(f){return Yz(f.volume)&&f.volume>0}; vM=function(f,D,F,Z){F=F===void 0?!0:F;Z=Z===void 0?function(){return!0}:Z; return function(I){var p=I[f];if(Array.isArray(p)&&Z(I))return kAT(p,D,F)}}; ac=function(f,D){return function(F){return D(F)?F[f]:void 0}}; j0y=function(f){return function(D){for(var F=0;F0?p[I-1]+1:0,Z+1).reduce(function(z,H){return z+H},0)})}; iru=function(){this.J=this.Y=""}; hBE=function(){}; wm=function(f,D){var F={};if(f!==void 0)if(D!=null)for(var Z in D){var I=D[Z];Z in Object.prototype||I!=null&&(F[Z]=typeof I==="function"?I(f):f[I])}else g.ai(F,f);return kt(Kq(new HM,F))}; ygJ=function(){var f={};this.J=(f.vs=[1,0],f.vw=[0,1],f.am=[2,2],f.a=[4,4],f.f=[8,8],f.bm=[16,16],f.b=[32,32],f.avw=[0,64],f.avs=[64,0],f.pv=[256,256],f.gdr=[0,512],f.p=[0,1024],f.r=[0,2048],f.m=[0,4096],f.um=[0,8192],f.ef=[0,16384],f.s=[0,32768],f.pmx=[0,16777216],f.mut=[33554432,33554432],f.umutb=[67108864,67108864],f.tvoff=[134217728,134217728],f);this.Y={};for(var D in this.J)this.J[D][1]>0&&(this.Y[D]=0);this.B=0}; WM=function(f,D){var F=f.J[D],Z=F[1];f.B+=F[0];Z>0&&f.Y[D]==0&&(f.Y[D]=1)}; Agd=function(f){var D=g.Cs(f.J),F=0,Z;for(Z in f.Y)g.e0(D,Z)&&f.Y[Z]==1&&(F+=f.J[Z][1],f.Y[Z]=2);return F}; $ms=function(f){var D=0,F;for(F in f.Y){var Z=f.Y[F];if(Z==1||Z==2)D+=f.J[F][1]}return D}; BM=function(){this.Y=this.J=0}; rm=function(){QU.call(this);this.B=new ht;this.dY=this.Jb=this.zx=0;this.N=-1;this.G3=new ht;this.X=new ht;this.Y=new yU;this.T=this.G=-1;this.Bs=new ht;this.eT=2E3;this.rY=new BM;this.b3=new BM;this.LQ=new BM}; Lq=function(f,D,F){var Z=f.dY;NX||F||f.N==-1||(Z+=D-f.N);return Z}; VOT=function(){this.B=!1}; lD=function(f,D){this.B=!1;this.G=f;this.Jb=D;this.X=0}; Ej=function(f,D){lD.call(this,f,D);this.S=[]}; RBa=function(){}; Jt=function(){}; uD=function(f,D,F,Z){sj.call(this,f,D,F,Z)}; NQ=function(f,D,F){sj.call(this,null,f,D,F);this.N=f.isActive();this.S=0}; gm=function(f){return[f.top,f.left,f.bottom,f.right]}; eg=function(f,D,F,Z,I,p){p=p===void 0?new Jt:p;MQ.call(this,D,F,Z);this.GC=I;this.J8=0;this.Mp={};this.pK=new ygJ;this.du={};this.SA="";this.LQ=null;this.Z5=!1;this.Y=[];this.cO=p.J();this.T=p.B();this.G=null;this.B=-1;this.jT=this.Jb=void 0;this.KQ=this.Bs=0;this.Tx=-1;this.eT=this.b3=!1;this.zx=this.N=this.J=this.zH=this.Uq=0;new yU;this.rY=this.dY=0;this.Ps=-1;this.Pn=0;this.S=g.u5;this.xo=[this.sz()];this.gw=2;this.uS={};this.uS.pause="p";this.uS.resume="r";this.uS.skip="s";this.uS.mute="m";this.uS.unmute= "um";this.uS.exitfullscreen="ef";this.X=null;this.JN=this.G3=!1;this.Wk=Math.floor(Date.now()/1E3-1704067200);this.Ir=0}; xt=function(f){f.hasCompleted=!0;f.Pn!=0&&(f.Pn=3)}; Xb=function(f){return f===void 0?f:Number(f)?n8(f,3):0}; Oj=function(f,D){return f.xo[D!=null&&DMath.max(1E4,f.B/3)?0:D);var F=f.S(f)||{};F=F.currentTime!==void 0?F.currentTime:f.Bs;var Z=F-f.Bs,I=0;Z>=0?(f.KQ+=D,f.rY+=Math.max(D-Z,0),I=Math.min(Z,f.KQ)):f.dY+=Math.abs(Z);Z!=0&&(f.KQ=0);f.Ps==-1&&Z>0&&(f.Ps=eD>=0?JL()-eD:-1);f.Bs=F;return I}; CWI=function(f,D){PV(f.T,function(F){return F.G==D.G})||f.T.push(D)}; mmu=function(f){var D=VU(f.yZ().Y,1);return nq(f,D)}; nq=function(f,D,F){return D>=15E3?!0:f.b3?(F===void 0?0:F)?!0:f.B>0?D>=f.B/2:f.Tx>0?D>=f.Tx:!1:!1}; T1D=function(f){var D=n8(f.UG.dU,2),F=f.pK.B,Z=f.UG,I=Oj(f),p=Xb(I.G),z=Xb(I.T),H=Xb(Z.volume),K=n8(I.S,2),k=n8(I.KQ,2),h=n8(Z.dU,2),y=n8(I.xo,2),A=n8(I.Tx,2);Z=n8(Z.JW,2);var V=f.pG().clone().round();f=f.gU&&f.gU.B?(f.gU?f.gU.B:null).clone().round():null;I=Cq(I,!1);return{EC3:D,Um:F,BH:p,eJ:z,W8:H,GQ:K,al:k,dU:h,nD:y,vN:A,JW:Z,position:V,iP:f,EK:I}}; MOw=function(f,D){brD(f.Y,D,function(){return{EC3:0,Um:void 0,BH:-1,eJ:-1,W8:-1,GQ:-1,al:-1,dU:-1,nD:-1,vN:-1,JW:-1,position:void 0,iP:void 0,EK:[]}}); f.Y[D]=T1D(f)}; brD=function(f,D,F){for(var Z=f.length;Z0?1:0;y.atos= At(k.Y);y.ssb=At(k.JN,!1);y.amtos=X9u(k.Y,!1);y.uac=f.Uq;y.vpt=k.B.Y;h=="nio"&&(y.nio=1,y.avms="nio");y.gmm="4";y.gdr=nq(f,k.B.Y,!0)?1:0;y.efpf=f.gw;if(h=="gsv"||h=="nis")h=f.gU,h.S>0&&(y.nnut=h.S);y.tcm=dmu(f);y.nmt=f.dY;y.bt=f.rY;y.pst=f.Ps;y.vpaid=f.Jb;y.dur=f.B;y.vmtime=f.Bs;y.is=f.pK.B;f.Y.length>=1&&(y.i0=f.Y[0].Um,y.a0=[f.Y[0].W8],y.c0=[f.Y[0].dU],y.ss0=[f.Y[0].JW],h=f.Y[0].position,p=f.Y[0].iP,y.p0=h?gm(h):void 0,h&&p&&!Oa(p,h)&&(y.cp0=gm(p)));f.Y.length>=2&&(y.i1=f.Y[1].Um,y.a1=fB(f.Y[1].BH, f.Y[1].W8,f.Y[1].eJ),y.c1=fB(f.Y[1].GQ,f.Y[1].dU,f.Y[1].al),y.ss1=fB(f.Y[1].nD,f.Y[1].JW,f.Y[1].vN),h=f.Y[1].position,p=f.Y[1].iP,y.p1=h?gm(h):void 0,h&&p&&!Oa(p,h)&&(y.cp1=gm(p)),y.mtos1=f.Y[1].EK);f.Y.length>=3&&(y.i2=f.Y[2].Um,y.a2=fB(f.Y[2].BH,f.Y[2].W8,f.Y[2].eJ),y.c2=fB(f.Y[2].GQ,f.Y[2].dU,f.Y[2].al),y.ss2=fB(f.Y[2].nD,f.Y[2].JW,f.Y[2].vN),h=f.Y[2].position,p=f.Y[2].iP,y.p2=h?gm(h):void 0,h&&p&&!Oa(p,h)&&(y.cp2=gm(p)),y.mtos2=f.Y[2].EK);f.Y.length>=4&&(y.i3=f.Y[3].Um,y.a3=fB(f.Y[3].BH,f.Y[3].W8, f.Y[3].eJ),y.c3=fB(f.Y[3].GQ,f.Y[3].dU,f.Y[3].al),y.ss3=fB(f.Y[3].nD,f.Y[3].JW,f.Y[3].vN),h=f.Y[3].position,p=f.Y[3].iP,y.p3=h?gm(h):void 0,h&&p&&!Oa(p,h)&&(y.cp3=gm(p)),y.mtos3=f.Y[3].EK);y.cs=$ms(f.pK);D&&(y.ic=Agd(f.pK),y.dvpt=k.B.J,y.dvs=dm(k.J,.5),y.dfvs=dm(k.J,1),y.davs=dm(k.Y,.5),y.dafvs=dm(k.Y,1),F&&(k.B.J=0,O3D(k.J),O3D(k.Y)),f.GS()&&(y.dtos=k.zx,y.dav=k.Jb,y.dtoss=f.J8+1,F&&(k.zx=0,k.Jb=0,f.J8++)),y.dat=k.X.J,y.dft=k.Bs.J,F&&(k.X.J=0,k.Bs.J=0));y.ps=[H.X.width,H.X.height];y.bs=[XA(H.Y), H.Y.getHeight()];y.scs=[H.G.width,H.G.height];y.dom=H.domain;f.zH&&(y.vds=f.zH);if(f.T.length>0||f.cO)D=g.FI(f.T),f.cO&&D.push(f.cO),y.pings=g.M2(D,function(A){return A.toString()}); D=g.M2(g.G$(f.T,function(A){return A.T()}),function(A){return A.getId()}); Off(D);y.ces=D;f.J&&(y.vmer=f.J);f.N&&(y.vmmk=f.N);f.zx&&(y.vmiec=f.zx);y.avms=f.gU?f.gU.getName():"ns";f.gU&&g.ai(y,f.gU.R0());Z?(y.c=n8(f.UG.dU,2),y.ss=n8(f.UG.JW,2)):y.tth=JL()-Umy;y.mc=n8(k.KQ,2);y.nc=n8(k.S,2);y.mv=Xb(k.T);y.nv=Xb(k.G);y.lte=n8(f.uX,2);Z=Oj(f,I);Cq(k);y.qmtos=Cq(Z);y.qnc=n8(Z.S,2);y.qmv=Xb(Z.T);y.qnv=Xb(Z.G);y.qas=Z.G>0?1:0;y.qi=f.SA;y.avms||(y.avms="geo");y.psm=k.rY.Y;y.psv=k.rY.getValue();y.psfv=k.b3.getValue();y.psa=k.LQ.getValue();K=HoE(K.zT);K.length&&(y.veid=K);f.X&&g.ai(y, oef(f.X));y.avas=f.Oz();y.vs=f.A0();y.co=vew(f);y.tm=k.Ir;y.tu=k.jT;return y}; tOD=function(f,D){if(g.e0(a$w,D))return!0;var F=f.Mp[D];return F!==void 0?(f.Mp[D]=!0,!F):!1}; vew=function(f){var D=f.Ir.toString(10).padStart(2,"0");D=""+f.Wk+D;f.Ir<99&&f.Ir++;return D}; wuy=function(){this.Y={};var f=Qq();DY(this,f,document);var D=GAE();try{if("1"==D){for(var F=f.parent;F!=f.top;F=F.parent)DY(this,F,F.document);DY(this,f.top,f.top.document)}}catch(Z){}}; GAE=function(){var f=document.documentElement;try{if(!$H(Qq().top))return"2";var D=[],F=Qq(f.ownerDocument);for(f=F;f!=F.top;f=f.parent)if(f.frameElement)D.push(f.frameElement);else break;return D&&D.length!=0?"1":"0"}catch(Z){return"2"}}; DY=function(f,D,F){mo(F,"mousedown",function(){return WJE(f)},301); mo(D,"scroll",function(){return B1c(f)},302); mo(F,"touchmove",function(){return rgu(f)},303); mo(F,"mousemove",function(){return LJD(f)},304); mo(F,"keydown",function(){return l$u(f)},305)}; WJE=function(f){g.Ga(f.Y,function(D){D.B>1E5||++D.B})}; B1c=function(f){g.Ga(f.Y,function(D){D.Y>1E5||++D.Y})}; rgu=function(f){g.Ga(f.Y,function(D){D.Y>1E5||++D.Y})}; l$u=function(f){g.Ga(f.Y,function(D){D.J>1E5||++D.J})}; LJD=function(f){g.Ga(f.Y,function(D){D.G>1E5||++D.G})}; EeI=function(){this.Y=[];this.J=[]}; Fn=function(f,D){return g.NC(f.Y,function(F){return F.SA==D})}; JgJ=function(f,D){return D?g.NC(f.Y,function(F){return F.I2.WY==D}):null}; uyw=function(f,D){return g.NC(f.J,function(F){return F.UD()==2&&F.SA==D})}; IX=function(){var f=ZY;return f.Y.length==0?f.J:f.J.length==0?f.Y:g.D0(f.J,f.Y)}; N1a=function(f,D){f=D.UD()==1?f.Y:f.J;var F=uX(f,function(Z){return Z==D}); return F!=-1?(f.splice(F,1),D.gU&&D.gU.unobserve(),D.dispose(),!0):!1}; geu=function(f){var D=ZY;if(N1a(D,f)){switch(f.UD()){case 0:var F=function(){return null}; case 2:F=function(){return uyw(D,f.SA)}; break;case 1:F=function(){return Fn(D,f.SA)}}for(var Z=F();Z;Z=F())N1a(D,Z)}}; eBf=function(f){var D=ZY;f=g.G$(f,function(F){return!JgJ(D,F.I2.WY)}); D.Y.push.apply(D.Y,g.w(f))}; xmc=function(f){var D=[];g.hC(f,function(F){PV(ZY.Y,function(Z){return Z.I2.WY===F.I2.WY&&Z.SA===F.SA})||(ZY.Y.push(F),D.push(F))})}; pB=function(){this.Y=this.J=null}; XuX=function(f,D){function F(Z,I){D(Z,I)} if(f.J==null)return!1;f.Y=g.NC(f.J,function(Z){return Z!=null&&Z.uG()}); f.Y&&(f.Y.init(F)?vHa(f.Y.Y):D(f.Y.Y.a5(),f.Y));return f.Y!=null}; zh=function(f){f=Ory(f);qQ.call(this,f.length?f[f.length-1]:new Ic(l5,0));this.B=f;this.J=null}; Ory=function(f){if(!f.length)return[];f=(0,g.G$)(f,function(F){return F!=null&&F.Aq()}); for(var D=1;DF.time?D:F},f[0])}; oX=function(f){f=f===void 0?l5:f;qQ.call(this,new Ic(f,2))}; KB=function(){var f=fHa();Ic.call(this,l5.top,f,"geo")}; fHa=function(){hL();var f=fq();return f.B||f.J?0:2}; Doc=function(){}; kG=function(){this.done=!1;this.Y={kD:0,Ea:0,I6s:0,OJ:0,y5:-1,l2:0,zI:0,S1:0,Ups:0};this.X=null;this.T=!1;this.B=null;this.S=0;this.J=new ZS(this)}; i8=function(){var f=j6;f.T||(f.T=!0,Fvy(f,function(){return f.G.apply(f,g.w(g.hv.apply(0,arguments)))}),f.G())}; Z4y=function(){U5(Doc);var f=U5(pB);f.Y!=null&&f.Y.Y?vHa(f.Y.Y):fq().update(l5)}; h6=function(f,D,F){if(!f.done&&(f.J.cancel(),D.length!=0)){f.B=null;try{Z4y();var Z=JL();hL().X=Z;if(U5(pB).Y!=null)for(var I=0;I=0?JL()-ui:-1,H=JL();I.Y.y5==-1&&(z=H);var K=fq(),k=hL(),h=uZ(k.zT),y=IX();try{if(y.length>0){var A=K.Y;A&&(h.bs=[XA(A),A.getHeight()]);var V=K.X;V&&(h.ps=[V.width,V.height]);l5.screen&&(h.scs=[l5.screen.width,l5.screen.height])}else h.url=encodeURIComponent(l5.location.href.substring(0,512)),p.referrer&&(h.referrer=encodeURIComponent(p.referrer.substring(0,512))); h.tt=z;h.pt=ui;h.bin=k.J;l5.google_osd_load_pub_page_exp!==void 0&&(h.olpp=l5.google_osd_load_pub_page_exp);h.deb=[1,I.Y.kD,I.Y.Ea,I.Y.OJ,I.Y.y5,0,I.J.J,I.Y.l2,I.Y.zI,I.Y.S1,I.Y.Ups,-1].join(";");h.tvt=p3D(I,H);K.J&&(h.inapp=1);if(l5!==null&&l5!=l5.top){y.length>0&&(h.iframe_loc=encodeURIComponent(l5.location.href.substring(0,512)));var R=K.S;h.is=[XA(R),R.getHeight()]}}catch(m){h.error=1}j6.B=h}A=g.UQ(j6.B);V=hL().Y;JC(V.B,"prf")==1?(R=new kz,I=V.Y,p=0,I.Y>-1&&(p=I.B.Y.now()-I.Y),R=tz(R,1,TA(I.G+ p),0),I=V.Y,R=tz(R,5,SO(I.Y>-1?I.J+1:I.J),0),R=tz(R,2,lW(V.J.Y.B()),"0"),R=tz(R,3,lW(V.J.Y.J()),"0"),V=tz(R,4,lW(V.J.Y.Y()),"0"),R={},V=(R.pf=g.B9(V.B()),R)):V={};g.ai(A,V);g.ai(D,Z,F,A,f())}])}; q8d=function(){var f=sud||l5;if(!f)return"";var D=[];if(!f.location||!f.location.href)return"";D.push("url="+encodeURIComponent(f.location.href.substring(0,512)));f.document&&f.document.referrer&&D.push("referrer="+encodeURIComponent(f.document.referrer.substring(0,512)));return D.join("&")}; yF=function(){var f="youtube.player.web_20251210_08_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20251210_08_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20251210_08_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20251210_08_RC00".match(/_(\d{8})_\d+_RC\d+$/),D;if(((D=f)==null?void 0:D.length)==2)return f[1];f="youtube.player.web_20251210_08_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var F;return((F=f)==null?void 0:F.length)==3?"20"+f[1]+f[2]:null}; H4f=function(){return"av.default_js".includes("ima_html5_sdk")?{Hr:"ima",e7:null}:"av.default_js".includes("ima_native_sdk")?{Hr:"nima",e7:null}:"av.default_js".includes("admob-native-video-javascript")?{Hr:"an",e7:null}:"youtube.player.web_20251210_08_RC00".includes("cast_js_sdk")?{Hr:"cast",e7:yF()}:"youtube.player.web_20251210_08_RC00".includes("youtube.player.web")?{Hr:"yw",e7:yF()}:"youtube.player.web_20251210_08_RC00".includes("outstream_web_client")?{Hr:"out",e7:yF()}:"youtube.player.web_20251210_08_RC00".includes("drx_rewarded_web")? {Hr:"r",e7:yF()}:"youtube.player.web_20251210_08_RC00".includes("gam_native_web_video")?{Hr:"n",e7:yF()}:"youtube.player.web_20251210_08_RC00".includes("admob_interstitial_video")?{Hr:"int",e7:yF()}:{Hr:"j",e7:null}}; VF=function(f,D){var F={sv:"968"};A6!==null&&(F.v=A6);F.cb=o0I;F.nas=ZY.Y.length;F.msg=f;D!==void 0&&(f=Kvy(D))&&(F.e=$G[f]);return F}; RX=function(f){return gU(f,"custom_metric_viewable")}; Kvy=function(f){var D=RX(f)?"custom_metric_viewable":f.toLowerCase();return Mf(Yt,function(F){return F==D})}; k7T=function(){this.Y=void 0;this.J=!1;this.B=0;this.G=-1;this.X="tos"}; hWa=function(f){try{var D=f.split(",");return D.length>g.Cs(juE).length?null:SQ(D,function(F,Z){Z=Z.toLowerCase().split("=");if(Z.length!=2||i4u[Z[0]]===void 0||!i4u[Z[0]](Z[1]))throw Error("Entry ("+Z[0]+", "+Z[1]+") is invalid.");F[Z[0]]=Z[1];return F},{})}catch(F){return null}}; yza=function(f,D){if(f.Y==void 0)return 0;switch(f.X){case "mtos":return f.J?Rc(D.Y,f.Y):Rc(D.J,f.Y);case "tos":return f.J?VU(D.Y,f.Y):VU(D.J,f.Y)}return 0}; dw=function(f,D,F,Z){lD.call(this,D,Z);this.S=f;this.N=F}; QF=function(){}; CB=function(f){lD.call(this,"fully_viewable_audible_half_duration_impression",f)}; mR=function(f){this.Y=f}; cz=function(f,D){lD.call(this,f,D)}; UN=function(f){Ej.call(this,"measurable_impression",f)}; vz=function(){mR.apply(this,arguments)}; aX=function(f,D,F){NQ.call(this,f,D,F)}; Gh=function(f){f=f===void 0?l5:f;qQ.call(this,new Ic(f,2))}; ww=function(f,D,F){NQ.call(this,f,D,F)}; Wz=function(f){f=f===void 0?l5:f;qQ.call(this,new Ic(f,2))}; Bz=function(){Ic.call(this,l5,2,"mraid");this.rY=0;this.KQ=this.xo=!1;this.S=null;this.J=CGa(this.B);this.G.Y=new xd(0,0,0,0);this.Ir=!1}; rw=function(f,D,F){f.nB("addEventListener",D,F)}; RWT=function(f){hL().G=!!f.nB("isViewable");rw(f,"viewableChange",AzE);f.nB("getState")==="loading"?rw(f,"ready",$of):VfI(f)}; VfI=function(f){typeof f.J.q9.AFMA_LIDAR==="string"?(f.xo=!0,doa(f)):(f.J.compatibility=3,f.S="nc",f.fail("w"))}; doa=function(f){f.KQ=!1;var D=JC(hL().zT,"rmmt")==1,F=!!f.nB("isViewable");(D?!F:1)&&aE().setTimeout(li(524,function(){f.KQ||(QuX(f),Eo(540,Error()),f.S="mt",f.fail("w"))}),500); CED(f);rw(f,f.J.q9.AFMA_LIDAR,mod)}; CED=function(f){var D=JC(hL().zT,"sneio")==1,F=f.J.q9.AFMA_LIDAR_EXP_1!==void 0,Z=f.J.q9.AFMA_LIDAR_EXP_2!==void 0;(D=D&&Z)&&(f.J.q9.AFMA_LIDAR_EXP_2=!0);F&&(f.J.q9.AFMA_LIDAR_EXP_1=!D)}; QuX=function(f){f.nB("removeEventListener",f.J.q9.AFMA_LIDAR,mod);f.xo=!1}; T9J=function(f,D){if(f.nB("getState")==="loading")return new g.IG(-1,-1);D=f.nB(D);if(!D)return new g.IG(-1,-1);f=parseInt(D.width,10);D=parseInt(D.height,10);return isNaN(f)||isNaN(D)?new g.IG(-1,-1):new g.IG(f,D)}; $of=function(){try{var f=U5(Bz);f.nB("removeEventListener","ready",$of);VfI(f)}catch(D){Eo(541,D)}}; mod=function(f,D){try{var F=U5(Bz);F.KQ=!0;var Z=f?new xd(f.y,f.x+f.width,f.y+f.height,f.x):new xd(0,0,0,0);var I=JL(),p=Fb();var z=new xz(I,p,F);z.Y=Z;z.volume=D;F.JX(z)}catch(H){Eo(542,H)}}; AzE=function(f){var D=hL(),F=U5(Bz);f&&!D.G&&(D.G=!0,F.Ir=!0,F.S&&F.fail("w",!0))}; LB=function(){this.isInitialized=!1;this.Y=this.J=null;var f={};this.S=(f.start=this.HQy,f.firstquartile=this.VTr,f.midpoint=this.Rdx,f.thirdquartile=this.AbI,f.complete=this.oo3,f.error=this.LIr,f.pause=this.Bg,f.resume=this.Pz,f.skip=this.wsb,f.viewable_impression=this.md,f.mute=this.TH,f.unmute=this.TH,f.fullscreen=this.yby,f.exitfullscreen=this.psY,f.fully_viewable_audible_half_duration_impression=this.md,f.measurable_impression=this.md,f.abandon=this.Bg,f.engagedview=this.md,f.impression=this.md, f.creativeview=this.md,f.progress=this.TH,f.custom_metric_viewable=this.md,f.bufferstart=this.Bg,f.bufferfinish=this.Pz,f.audio_measurable=this.md,f.audio_audible=this.md,f);f={};this.N=(f.overlay_resize=this.iQo,f.abandon=this.Ij,f.close=this.Ij,f.collapse=this.Ij,f.overlay_unmeasurable_impression=function(D){return PM(D,"overlay_unmeasurable_impression",Fb())},f.overlay_viewable_immediate_impression=function(D){return PM(D,"overlay_viewable_immediate_impression",Fb())},f.overlay_unviewable_impression= function(D){return PM(D,"overlay_unviewable_impression",Fb())},f.overlay_viewable_end_of_session_impression=function(D){return PM(D,"overlay_viewable_end_of_session_impression",Fb())},f); hL().J=3;b4f(this);this.B=null}; l8=function(f,D,F,Z){f=f.qq(null,Z,!0,D);f.G=F;eBf([f]);return f}; Mfw=function(f,D,F){FAJ(D);var Z=f.Y;g.hC(D,function(I){var p=g.M2(I.criteria,function(z){var H=hWa(z);if(H==null)z=null;else if(z=new k7T,H.visible!=null&&(z.Y=H.visible/100),H.audible!=null&&(z.J=H.audible==1),H.time!=null){var K=H.timetype=="mtos"?"mtos":"tos",k=kcu(H.time,"%")?"%":"ms";H=parseInt(H.time,10);k=="%"&&(H/=100);z.setTime(H,k,K)}return z}); PV(p,function(z){return z==null})||CWI(F,new dw(I.id,I.event,p,Z))})}; tfw=function(){var f=[],D=hL();f.push(U5(KB));JC(D.zT,"mvp_lv")&&f.push(U5(Bz));D=[new Gh,new Wz];D.push(new zh(f));D.push(new oX(l5));return D}; S8w=function(f){if(!f.isInitialized){f.isInitialized=!0;try{var D=JL(),F=hL(),Z=fq();ui=D;F.B=79463069;f.J!=="o"&&(sud=dfc(l5));if(Lay()){j6.Y.Ea=0;j6.Y.y5=JL()-D;var I=tfw(),p=U5(pB);p.J=I;XuX(p,function(){EN()})?j6.done||(IHI(),pq(p.Y.Y,f),i8()):Z.B?EN():i8()}else J6=!0}catch(z){throw ZY.reset(),z; }}}; Nk=function(f){j6.J.cancel();u8=f;j6.done=!0}; gw=function(f){if(f.J)return f.J;var D=U5(pB).Y;if(D)switch(D.getName()){case "nis":f.J="n";break;case "gsv":f.J="m"}f.J||(f.J="h");return f.J}; e6=function(f,D,F){if(f.Y==null)return D.zH|=4,!1;f=czy(f.Y,F,D);D.zH|=f;return f==0}; EN=function(){var f=[new oX(l5)],D=U5(pB);D.J=f;XuX(D,function(){Nk("i")})?j6.done||(IHI(),i8()):Nk("i")}; Uow=function(f,D){if(!f.Z5){var F=PM(f,"start",Fb());F=f.GC.Y(F).Y;var Z={id:"lidarv"};Z.r=D;Z.sv="968";A6!==null&&(Z.v=A6);mX(F,function(I,p){return Z[I]=I=="mtos"||I=="tos"?p:encodeURIComponent(p)}); D=q8d();mX(D,function(I,p){return Z[I]=encodeURIComponent(p)}); D="//pagead2.googlesyndication.com/pagead/gen_204?"+kt(Kq(new HM,Z));uDy(D);f.Z5=!0}}; xG=function(f,D,F){h6(j6,[f],!Fb());MOw(f,F);F!=4&&brD(f.xo,F,f.sz);return PM(f,D,Fb())}; b4f=function(f){zWs(function(){var D=v0s();f.J!=null&&(D.sdk=f.J);var F=U5(pB);F.Y!=null&&(D.avms=F.Y.getName());return D})}; aHu=function(f,D,F,Z){var I=JgJ(ZY,F);I!==null&&I.SA!==D&&(f.GB(I),I=null);I||(D=f.qq(F,JL(),!1,D),ZY.J.length==0&&(hL().B=79463069),xmc([D]),I=D,I.G=gw(f),Z&&(I.LQ=Z));return I}; G7u=function(f,D){var F=f[D];F!==void 0&&F>0&&(f[D]=Math.floor(F*1E3))}; v0s=function(){var f=fq(),D={},F={},Z={};return Object.assign({},(D.sv="968",D),A6!==null&&(F.v=A6,F),(Z["if"]=f.B?"1":"0",Z.nas=String(ZY.Y.length),Z))}; Xn=function(f){lD.call(this,"audio_audible",f)}; ON=function(f){Ej.call(this,"audio_measurable",f)}; nB=function(){mR.apply(this,arguments)}; YG=function(){}; w3w=function(f){this.Y=f}; czy=function(f,D,F){f=f.J();if(typeof f==="function"){var Z={};var I={};Z=Object.assign({},A6!==null&&(Z.v=A6,Z),(I.sv="968",I.cb=o0I,I.e=WvT(D),I));I=PM(F,D,Fb());g.ai(Z,I);F.du[D]=I;Z=F.UD()==2?JGy(Z).join("&"):F.GC.Y(Z).Y;try{return f(F.SA,Z,D),0}catch(p){return 2}}else return 1}; WvT=function(f){var D=RX(f)?"custom_metric_viewable":f;f=Mf(Yt,function(F){return F==D}); return $G[f]}; Pz=function(){LB.call(this);this.T=null;this.X=!1;this.G="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; B9a=function(f,D,F){F=F.opt_configurable_tracking_events;f.Y!=null&&Array.isArray(F)&&Mfw(f,F,D)}; rzJ=function(f,D,F){var Z=Fn(ZY,D);Z||(Z=F.opt_nativeTime||-1,Z=l8(f,D,gw(f),Z),F.opt_osdId&&(Z.LQ=F.opt_osdId));return Z}; LvD=function(f,D,F){var Z=Fn(ZY,D);Z||(Z=l8(f,D,"n",F.opt_nativeTime||-1));return Z}; lHu=function(f,D){var F=Fn(ZY,D);F||(F=l8(f,D,"h",-1));return F}; E0u=function(f){hL();switch(gw(f)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; N9d=function(f,D,F,Z){F=F===void 0?{}:F;var I={};g.ai(I,{opt_adElement:void 0,opt_fullscreen:void 0},F);var p=f.fV(D,F);F=p?p.GC:f.w0();if(I.opt_bounds)return F.Y(VF("ol",Z));if(Z!==void 0)if(Kvy(Z)!==void 0)if(J6)f=VF("ue",Z);else if(S8w(f),u8=="i")f=VF("i",Z),f["if"]=0;else if(D=f.fV(D,I)){b:{u8=="i"&&(D.fm=!0);p=I.opt_fullscreen;p!==void 0&&tt(D,!!p);var z;if(p=!fq().J)(p=ns(g.DM(),"CrKey")&&!(ns(g.DM(),"CrKey")&&ns(g.DM(),"SmartSpeaker"))||ns(g.DM(),"PlayStation")||ns(g.DM(),"Roku")||tQI()||ns(g.DM(), "Xbox"))||(p=g.DM(),p=ns(p,"AppleTV")||ns(p,"Apple TV")||ns(p,"CFNetwork")||ns(p,"tvOS")),p||(p=g.DM(),p=ns(p,"sdk_google_atv_x86")||ns(p,"Android TV")),p=!p;p&&(aE(),p=AG(DS)===0);if(z=p){switch(D.UD()){case 1:Uow(D,"pv");break;case 2:f.df(D)}Nk("pv")}p=Z.toLowerCase();if(z=!z)z=JC(hL().zT,"ssmol")&&p==="loaded"?!1:g.e0(Jzd,p);if(z&&D.Pn==0){u8!="i"&&(j6.done=!1);z=I!==void 0?I.opt_nativeTime:void 0;eD=z=typeof z==="number"?z:JL();D.nk=!0;var H=Fb();D.Pn=1;D.Mp={};D.Mp.start=!1;D.Mp.firstquartile= !1;D.Mp.midpoint=!1;D.Mp.thirdquartile=!1;D.Mp.complete=!1;D.Mp.resume=!1;D.Mp.pause=!1;D.Mp.skip=!1;D.Mp.mute=!1;D.Mp.unmute=!1;D.Mp.viewable_impression=!1;D.Mp.measurable_impression=!1;D.Mp.fully_viewable_audible_half_duration_impression=!1;D.Mp.fullscreen=!1;D.Mp.exitfullscreen=!1;D.J8=0;H||(D.yZ().N=z);h6(j6,[D],!H)}(z=D.uS[p])&&WM(D.pK,z);JC(hL().zT,"fmd")||g.e0(uBI,p)&&D.cO&&D.cO.J(D,null);switch(D.UD()){case 1:var K=RX(p)?f.S.custom_metric_viewable:f.S[p];break;case 2:K=f.N[p]}if(K&&(Z=K.call(f, D,I,Z),JC(hL().zT,"fmd")&&g.e0(uBI,p)&&D.cO&&D.cO.J(D,null),Z!==void 0)){I=VF(void 0,p);g.ai(I,Z);Z=I;break b}Z=void 0}D.Pn==3&&f.GB(D);f=Z}else f=VF("nf",Z);else f=void 0;else J6?f=VF("ue"):p?(f=VF(),g.ai(f,SRf(p,!0,!1,!1))):f=VF("nf");return typeof f==="string"?F.Y():F.Y(f)}; g0u=function(f,D){D&&(f.G=D)}; eWJ=function(f){var D={};return D.viewability=f.Y,D.googleViewability=f.J,D}; xoE=function(f,D,F){F=F===void 0?{}:F;f=N9d(U5(Pz),D,F,f);return eWJ(f)}; fg=function(f){var D=g.hv.apply(1,arguments).filter(Boolean).join("&");if(!D)return f;var F=f.match(/[?&]adurl=/);return F?f.slice(0,F.index+1)+D+"&"+f.slice(F.index+1):f+(f.indexOf("?")<0?"?":"&")+D}; Di=function(f,D){return D?"&"+f+"="+encodeURIComponent(D):""}; X3E=function(f){var D=f.url;f=f.GzF;this.J=D;this.G=f;this.B=(new Date).getTime()-17040672E5;this.Y={};for(var F=/[?&]([^&=]+)=([^&]*)/g;f=F.exec(D);)this.Y[f[1]]=f[2]}; O4d=function(f){f=f.G;if(!f)return"";var D=Di("uap",f.platform)+Di("uapv",f.platformVersion)+Di("uafv",f.uaFullVersion)+Di("uaa",f.architecture)+Di("uam",f.model)+Di("uab",f.bitness);f.fullVersionList&&(D+="&uafvl="+encodeURIComponent(f.fullVersionList.map(function(F){return encodeURIComponent(F.brand)+";"+encodeURIComponent(F.version)}).join("|"))); f.wow64!=null&&(D+="&uaw="+Number(f.wow64));return D.slice(1)}; PEf=function(f,D,F,Z,I){var p=window;var z=z===void 0?!1:z;var H;F?H=(z===void 0?0:z)?"//ep1.adtrafficquality.google/bg/"+JQ(F)+".js":"//pagead2.googlesyndication.com/bg/"+JQ(F)+".js":H="";z=z===void 0?!1:z;F=p.document;var K={};D&&(K._scs_=D);K._bgu_=H;K._bgp_=Z;K._li_="v_h.3.0.0.0";I&&(K._upb_=I);(D=p.GoogleTyFxhY)&&typeof D.push=="function"||(D=p.GoogleTyFxhY=[]);D.push(K);D=jc(F).createElement("SCRIPT");D.type="text/javascript";D.async=!0;f=(z===void 0?0:z)?g.oG(n0y,JQ(f)+".js"):g.oG(Y8c,JQ(f)+ ".js");g.GJ(D,f);(p=(p.GoogleTyFxhYEET||{})[D.src])?p():F.getElementsByTagName("head")[0].appendChild(D)}; fuc=function(){try{var f,D;return!!((f=window)==null?0:(D=f.top)==null?0:D.location.href)&&!1}catch(F){return!0}}; Fv=function(f,D,F){F=F===void 0?Error():F;var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.code=f;D+=":";F instanceof Error?(this.message=D+F.message,this.stack=F.stack||""):(this.message=D+String(F),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; IB=function(){var f=D0T();f=f===void 0?"bevasrsg":f;return new Promise(function(D){var F=window===window.top?window:fuc()?window:window.top,Z=F[f],I;((I=Z)==null?0:I.bevasrs)?D(new Zi(Z.bevasrs)):(Z||(Z={},Z=(Z.nqfbel=[],Z),F[f]=Z),Z.nqfbel.push(function(p){D(new Zi(p))}))})}; FZs=function(f){var D={c:f.Au,e:f.nJ,mc:f.y4,me:f.RF};f.SB&&(D.co={c:f.SB.hj,a:f.SB.IJ,s:f.SB.kB});return D}; pg=function(f){g.J.call(this);this.wpc=f}; Zi=function(f){g.J.call(this);var D=this;this.q7=f;this.B="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.J=void 0;this.FG=this.q7.p;this.G=this.Am.bind(this);this.addOnDisposeCallback(function(){return void ZAu(D)})}; Iud=function(f){var D;return g.l(function(F){if(F.Y==1){if(!f.q7.wpc)throw new Fv(30,"NWA");return f.Y?F.return(f.Y):g.r(F,f.q7.wpc(),2)}D=F.J;f.Y=new pg(D);return F.return(f.Y)})}; ZAu=function(f){f.J!==void 0&&(f.B.forEach(function(D){var F;(F=f.J)==null||F.removeEventListener(D,f.G)}),f.J=void 0)}; pow=function(f){var D=D===void 0?53:D;var F=[];lE(f,zK,6).forEach(function(Z){g.No(Z,2)<=D&&F.push(g.No(Z,1))}); return F}; zou=function(f){var D=D===void 0?53:D;var F=[];lE(f,zK,6).forEach(function(Z){g.No(Z,2)>D&&F.push(g.No(Z,1))}); return F}; sQD=function(f){f.then(function(){},function(){})}; sI=function(){g.J.apply(this,arguments);this.J=1}; q_=function(f){return{fieldType:2,fieldName:f}}; g.HP=function(f){return{fieldType:3,fieldName:f}}; qBI=function(f){this.Y=f;f.tL("/client_streamz/bg/frs",g.HP("mk"))}; HAf=function(f){this.Y=f;f.tL("/client_streamz/bg/wrl",g.HP("mn"),q_("ac"),q_("sc"),g.HP("rk"),g.HP("mk"))}; oEI=function(f){this.Y=f;f.EQ("/client_streamz/bg/ec",g.HP("en"),g.HP("mk"))}; KZJ=function(f){this.Y=f;f.tL("/client_streamz/bg/el",g.HP("en"),g.HP("mk"))}; kUI=function(f){this.Y=f;f.EQ("/client_streamz/bg/cec",q_("ec"),g.HP("mk"))}; jQa=function(f){this.Y=f;f.EQ("/client_streamz/bg/po/csc",q_("cs"),g.HP("mk"))}; iAJ=function(f){this.Y=f;f.EQ("/client_streamz/bg/po/ctav",g.HP("av"),g.HP("mk"))}; hoa=function(f){this.Y=f;f.EQ("/client_streamz/bg/po/cwsc",g.HP("su"),g.HP("mk"))}; yUa=function(f){this.Bk=s8(f)}; AUc=function(f,D){return OWf(f,D,RXT)}; oB=function(f){this.Bk=s8(f)}; Kg=function(f){this.Bk=s8(f)}; kf=function(f){this.Bk=s8(f)}; jl=function(f){this.Bk=s8(f)}; iJ=function(f){this.Bk=s8(f)}; y8=function(f){this.Bk=s8(f)}; $0a=function(f){this.Bk=s8(f)}; d0a=function(f){var D=new y8;D=Y0(D,1,f.J);var F=V9I(f);D=OWf(D,F,cQu);F=[];for(var Z=[],I=g.a(f.Y.keys()),p=I.next();!p.done;p=I.next())Z.push(p.value.split(","));for(I=0;I>>31)&4294967295;y=I[0];var R=I[1],m=I[2],b=I[3],U=I[4];for(V=0;V<80;V++){if(V<40)if(V<20){var S=b^R&(m^b);var G=1518500249}else S=R^m^b,G=1859775393;else V<60?(S=R&m|b&(R|m),G=2400959708):(S=R^m^b,G=3395469782);S=((y<<5|y>>>27)&4294967295)+S+U+G+A[V]&4294967295;U=b;b=m;m=(R<<30|R>>>2)&4294967295;R=y;y=S}I[0]=I[0]+y&4294967295;I[1]=I[1]+R&4294967295;I[2]= I[2]+m&4294967295;I[3]=I[3]+b&4294967295;I[4]=I[4]+U&4294967295} function F(y,A){if(typeof y==="string"){y=unescape(encodeURIComponent(y));for(var V=[],R=0,m=y.length;R=56;V--)p[V]=A&255,A>>>=8;D(p);for(V=A=0;V<5;V++)for(var R=24;R>=0;R-=8)y[A++]=I[V]>>R&255;return y} for(var I=[],p=[],z=[],H=[128],K=1;K<64;++K)H[K]=0;var k,h;f();return{reset:f,update:F,digest:Z,P4:function(){for(var y=Z(),A="",V=0;V1)));z=z.next)I||(p=z);I&&(F.Y==0&&Z==1?ALd(F,D):(p?(Z=p,Z.next==F.G&&(F.G=Z),Z.next=Z.next.next):$Xs(F),VDD(F,I,3,D)))}f.B=null}else T2(f,3,D)}; cl=function(f,D){f.J||f.Y!=2&&f.Y!=3||RaE(f);f.G?f.G.next=D:f.J=D;f.G=D}; dXD=function(f,D,F,Z){var I=M4(null,null,null);I.Y=new g.b7(function(p,z){I.B=D?function(H){try{var K=D.call(Z,H);p(K)}catch(k){z(k)}}:p; I.J=F?function(H){try{var K=F.call(Z,H);K===void 0&&H instanceof vl?z(H):p(K)}catch(k){z(k)}}:z}); I.Y.B=f;cl(f,I);return I.Y}; T2=function(f,D,F){f.Y==0&&(f===F&&(D=3,F=new TypeError("Promise cannot resolve to itself")),f.Y=1,j_u(F,f.RiT,f.iwI,f)||(f.S=F,f.Y=D,f.B=null,RaE(f),D!=3||F instanceof vl||Q_s(f,F)))}; j_u=function(f,D,F,Z){if(f instanceof g.b7)return yLs(f,D,F,Z),!0;if(f)try{var I=!!f.$goog_Thenable}catch(z){I=!1}else I=!1;if(I)return f.then(D,F,Z),!0;if(g.tv(f))try{var p=f.then;if(typeof p==="function")return Cia(f,p,D,F,Z),!0}catch(z){return F.call(Z,z),!0}return!1}; Cia=function(f,D,F,Z,I){function p(K){H||(H=!0,Z.call(I,K))} function z(K){H||(H=!0,F.call(I,K))} var H=!1;try{D.call(f,z,p)}catch(K){p(K)}}; RaE=function(f){f.T||(f.T=!0,g.mF(f.mW,f))}; $Xs=function(f){var D=null;f.J&&(D=f.J,f.J=D.next,D.next=null);f.J||(f.G=null);return D}; VDD=function(f,D,F,Z){if(F==3&&D.J&&!D.G)for(;f&&f.X;f=f.B)f.X=!1;if(D.Y)D.Y.B=null,mXa(D,F,Z);else try{D.G?D.B.call(D.context):mXa(D,F,Z)}catch(I){TyJ.call(null,I)}pVD(kWs,D)}; mXa=function(f,D,F){D==2?f.B.call(f.context,F):f.J&&f.J.call(f.context,F)}; Q_s=function(f,D){f.X=!0;g.mF(function(){f.X&&TyJ.call(null,D)})}; vl=function(f){lX.call(this,f)}; g.av=function(f,D){g.i7.call(this);this.cV=f||1;this.b9=D||g.RU;this.Vc=(0,g.aU)(this.rJx,this);this.qo=g.We()}; g.G2=function(f,D,F){if(typeof f==="function")F&&(f=(0,g.aU)(f,F));else if(f&&typeof f.handleEvent=="function")f=(0,g.aU)(f.handleEvent,f);else throw Error("Invalid listener argument");return Number(D)>2147483647?-1:g.RU.setTimeout(f,D||0)}; wG=function(f,D){var F=null;return(new g.b7(function(Z,I){F=g.G2(function(){Z(D)},f); F==-1&&I(Error("Failed to schedule timer."))})).U3(function(Z){g.RU.clearTimeout(F); throw Z;})}; Wl=function(f){g.J.call(this);this.S=f;this.G=0;this.B=100;this.X=!1;this.J=new Map;this.T=new Set;this.flushInterval=3E4;this.Y=new g.av(this.flushInterval);this.Y.listen("tick",this.Xu,!1,this);g.N(this,this.Y)}; b8a=function(f){f.Y.enabled||f.Y.start();f.G++;f.G>=f.B&&f.Xu()}; MDX=function(f,D){return f.T.has(D)?void 0:f.J.get(D)}; tDD=function(f){for(var D=0;D2?f.Y.statusText:""}catch(F){D=""}f.G=D+" ["+f.getStatus()+"]";LXT(f)}}finally{Js(f)}}}; Js=function(f,D){if(f.Y){f.T&&(clearTimeout(f.T),f.T=null);var F=f.Y;f.Y=null;D||f.dispatchEvent("ready");try{F.onreadystatechange=null}catch(Z){}}}; gG=function(f){var D=f.getStatus();a:switch(D){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var F=!0;break a;default:F=!1}if(!F){if(D=D===0)f=g.R_(String(f.N))[1]||null,!f&&g.RU.self&&g.RU.self.location&&(f=g.RU.self.location.protocol.slice(0,-1)),D=!JLJ.test(f?f.toLowerCase():"");F=D}return F}; g.N4=function(f){return f.Y?f.Y.readyState:0}; g.ey=function(f){try{return f.Y?f.Y.responseText:""}catch(D){return""}}; g.xQ=function(f){try{if(!f.Y)return null;if("response"in f.Y)return f.Y.response;switch(f.zx){case "":case "text":return f.Y.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in f.Y)return f.Y.mozResponseArrayBuffer}return null}catch(D){return null}}; g.ued=function(f){var D={};f=(f.Y&&g.N4(f)>=2?f.Y.getAllResponseHeaders()||"":"").split("\r\n");for(var F=0;F>1,D),dH(f,f.length>>1)]}; TmT=function(f){var D=g.a(mQE(f,QL));f=D.next().value;D=D.next().value;return f.toString(16)+D.toString(16)}; bqu=function(f,D){var F=mQE(D);f=new Uint32Array(f.buffer);D=f[0];var Z=g.a(F);F=Z.next().value;Z=Z.next().value;for(var I=1;I>>8|z<<24,z+=p|0,z^=H+38293,p=p<<3|p>>>29,p^=z,K=K>>>8|K<<24,K+=H|0,K^=k+38293,H=H<<3|H>>>29,H^=K;p=[p,z];f[I]^=p[0];I+1=F?(globalThis.sessionStorage.removeItem(f),["e"]):["a",new Uint8Array(Z.buffer,D+4)]}; CQ=function(f,D,F){F=F===void 0?[]:F;this.maxItems=f;this.Y=D===void 0?0:D;this.J=F}; Sju=function(f){var D=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!D)return new CQ(f);var F=D.split(",");if(F.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new CQ(f);D=F.slice(1);D.length===1&&D[0]===""&&(D=[]);F=Number(F[0]);return isNaN(F)||F<0||F>D.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new CQ(f)):new CQ(f,F,D)}; ctD=function(f,D){this.logger=D;try{var F=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(Z){F=!1}F&&(this.index=Sju(f))}; UQw=function(f,D,F,Z,I){var p=f.index?fQ(f.logger,function(){return MgD(f.index,TmT(D),F,Z,I)},"W"):"u"; f.logger.Rl(p)}; vtd=function(f,D,F){var Z=g.a(f.index?fQ(f.logger,function(){return tgu(TmT(D),F)},"R"):["u"]),I=Z.next().value; Z=Z.next().value;f.logger.Vb(I);return Z}; wME=function(f){function D(){F-=Z;F-=I;F^=I>>>13;Z-=I;Z-=F;Z^=F<<8;I-=F;I-=Z;I^=Z>>>13;F-=Z;F-=I;F^=I>>>12;Z-=I;Z-=F;Z^=F<<16;I-=F;I-=Z;I^=Z>>>5;F-=Z;F-=I;F^=I>>>3;Z-=I;Z-=F;Z^=F<<10;I-=F;I-=Z;I^=Z>>>15} f=aSD(f);for(var F=2654435769,Z=2654435769,I=314159265,p=f.length,z=p,H=0;z>=12;z-=12,H+=12)F+=mc(f,H),Z+=mc(f,H+4),I+=mc(f,H+8),D();I+=p;switch(z){case 11:I+=f[H+10]<<24;case 10:I+=f[H+9]<<16;case 9:I+=f[H+8]<<8;case 8:Z+=f[H+7]<<24;case 7:Z+=f[H+6]<<16;case 6:Z+=f[H+5]<<8;case 5:Z+=f[H+4];case 4:F+=f[H+3]<<24;case 3:F+=f[H+2]<<16;case 2:F+=f[H+1]<<8;case 1:F+=f[H+0]}D();return G$X.toString(I)}; aSD=function(f){for(var D=[],F=0;F>7,f.error.code]);Z.set(F,4);return Z}; a5=function(f,D,F){Td.call(this,f);this.G=D;this.clientState=F;this.Y="S";this.J="q"}; vc=function(f){return globalThis.TextEncoder?(new TextEncoder).encode(f):g.W9(f)}; BmX=function(f,D,F){return f instanceof hi?otf(f,F,D,1):f.h8(F)}; wH=function(f){g.J.call(this);var D=this;this.B=new g.Hc;this.G=0;this.J=void 0;this.state=2;this.q7=f.q7;this.Ns=f.Ns;this.q6=Object.assign({},rtu,f.q6||{});this.logger=f.q7.Gu();var F;this.onError=(F=f.onError)!=null?F:function(){}; this.VA=f.VA||!1;if(LoE(f)){var Z=this.q7;this.X=function(){return ytu(Z).catch(function(z){z=D.reportError(new Fv(D.Y?20:32,"TRG:Disposed",z));D.J=z;var H;(H=D.Y)==null||H.dispose();D.Y=void 0;D.B.reject(z)})}; AtD(Z,function(){return void Gd(D)}); Z.N===2&&Gd(this)}else this.X=f.J3b,Gd(this);var I=this.logger.share();I.Ma("o");var p=new YQ(I,"o");this.B.promise.then(function(){p.done();I.kt();I.dispose()},function(){return void I.dispose()}); this.addOnDisposeCallback(function(){D.Y?(D.Y.dispose(),D.Y=void 0):D.J?D.logger.kt():(D.J=D.reportError(new Fv(32,"TNP:Disposed")),D.logger.kt(),D.B.reject(D.J))}); g.N(this,this.logger)}; lSI=function(f,D){if(!(D instanceof Fv))if(D instanceof Bl){var F=Error(D.toString());F.stack=D.stack;D=new Fv(11,"EBH:Error",F)}else D=new Fv(12,"BSO:Unknown",D);return f.reportError(D)}; Gd=function(f){var D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m;return g.l(function(b){switch(b.Y){case 1:D=void 0;f.G++;F=new g.Hc;f.q7 instanceof yL&&f.q7.G.push(F.promise);if(!f.VA){b.ZE(2);break}Z=new g.Hc;setTimeout(function(){return void Z.resolve()}); return g.r(b,Z.promise,2);case 2:return I=f.logger.share(),g.po(b,4,5),f.state=5,p={},z=[],g.r(b,$B(f.q7.snapshot({Au:p,OM:z}),f.q6.neI,function(){return Promise.reject(new Fv(15,"MDA:Timeout"))}),7); case 7:H=b.J;if(f.MR())throw new Fv(f.Y?20:32,"MDA:Disposed");K=z[0];f.state=6;return g.r(b,$B(BmX(f.Ns,I,H),f.q6.IW,function(){return Promise.reject(new Fv(10,"BWB:Timeout"))}),8); case 8:k=b.J;if(f.MR())throw new Fv(f.Y?20:32,"BWB:Disposed");f.state=7;D=fQ(I,function(){var S=EtX(f,k,F,K);S.B.promise.then(function(){return void f.X()}); return S},"i"); case 5:g.oU(b);I.dispose();g.Ko(b,6);break;case 4:h=g.He(b);(y=D)==null||y.dispose();if(!f.J){A=lSI(f,h);F.resolve();var U;if(U=f.q7 instanceof yL&&f.G<2)a:if(h instanceof Fv)U=h.code!==32&&h.code!==20&&h.code!==10;else{if(h instanceof Bl)switch(h.code){case 2:case 13:case 14:case 4:break;default:U=!1;break a}U=!0}if(U)return V=(1+Math.random()*.25)*(f.Y?6E4:1E3),R=setTimeout(function(){return void f.X()},V),f.addOnDisposeCallback(function(){return void clearTimeout(R)}),b.return(); f.J=A}I.Q$(f.Y?13:14);f.B.reject(f.J);return b.return();case 6:f.state=8,f.G=0,(m=f.Y)==null||m.dispose(),f.Y=D,f.B.resolve(),g.Zb(b)}})}; EtX=function(f,D,F,Z){var I=g9(D,2)*1E3;if(I<=0)throw new Fv(31,"TTM:Invalid");if(ef(D,4))return new cc(f.logger,ef(D,4),I);if(!g9(D,3))return new Sv(f.logger,gi(mv(D,1)),I);if(!Z)throw new Fv(4,"PMD:Undefined");Z=Z(gi(mv(D,1)));if(typeof Z!=="function")throw new Fv(16,"APF:Failed");f.T=Math.floor((Date.now()+I)/1E3);f=new ti(f.logger,Z,g9(D,3),I);f.addOnDisposeCallback(function(){return void F.resolve()}); return f}; JtX=function(f,D){D=D instanceof Fv?D:new Fv(5,"TVD:error",D);return f.reportError(D)}; xQJ=function(f,D,F){try{if(f.MR())throw new Fv(21,"BNT:disposed");if(!f.Y&&f.J)throw f.J;var Z,I;return(I=(Z=ubI(f,D,F))!=null?Z:Nmf(f,D,F))!=null?I:gtX(f,D,F)}catch(p){if(!D.RF)throw JtX(f,p);return egs(f,F,p)}}; ubI=function(f,D,F){var Z;return(Z=f.Y)==null?void 0:MW(Z,function(){return Wc(f,D)},F,function(I){var p; if(f.Y instanceof ti&&((p=D.SB)==null?0:p.kB))try{var z;(z=f.cache)==null||UQw(z,Wc(f,D),I,D.SB.hj,f.T-120)}catch(H){f.reportError(new Fv(24,"ELX:write",H))}})}; Nmf=function(f,D,F){var Z;if((Z=D.SB)!=null&&Z.IJ)try{var I,p=(I=f.cache)==null?void 0:vtd(I,Wc(f,D),D.SB.hj);return p?F?fQ(f.logger,function(){return g.B9(p,2)},"a"):p:void 0}catch(z){f.reportError(new Fv(23,"RXO:read",z))}}; gtX=function(f,D,F){var Z={stack:[],error:void 0,hasError:!1};try{if(!D.y4)throw new Fv(29,"SDF:notready");return MW(JIa(Z,new a5(f.logger,0,f.state)),function(){return Wc(f,D)},F)}catch(I){Z.error=I,Z.hasError=!0}finally{uua(Z)}}; egs=function(f,D,F){var Z={stack:[],error:void 0,hasError:!1};try{var I=JtX(f,F);return MW(JIa(Z,new Ue(f.logger,I)),function(){return[]},D)}catch(p){Z.error=p,Z.hasError=!0}finally{uua(Z)}}; Wc=function(f,D){return D.nJ?D.nJ:D.Au?fQ(f.logger,function(){return D.nJ=vc(D.Au)},"c"):[]}; XMI=function(){var f=0,D;return function(F){D||(D=new DE);var Z=new a5(D,f,1),I=MW(Z,function(){return vc(F)},!0); Z.dispose();f++;return I}}; Oqy=function(){var f=g.Bc();this.Y=f;f.EQ("/client_streamz/youtube/aba/gac",q_("type"),q_("sequence"))}; rH=function(f){this.Bk=s8(f)}; ntc=function(f,D,F){this.Fe=f;this.OA=D;this.metadata=F}; LQ=function(f,D){D=D===void 0?{}:D;this.Mmr=f;this.metadata=D;this.status=null}; lk=function(f,D,F,Z,I){this.name=f;this.methodType="unary";this.requestType=D;this.responseType=F;this.Y=Z;this.J=I}; Ee=function(f){this.Bk=s8(f)}; Ji=function(f){this.Bk=s8(f)}; uk=function(f){this.Bk=s8(f)}; NW=function(f,D){this.J=[];this.G=[];this.X=[];this.B=[];this.Y=[];this.T=f.fKR;this.S=D;this.xhr=f.xhr;this.T&&YjD(this)}; FRw=function(f,D){var F=new PDw;g.sD(f.xhr,"complete",function(){if(gG(f.xhr)){var Z=g.ey(f.xhr);if(D&&f.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Z=atob(Z)}try{var I=f.S(Z)}catch(H){gH(f,ev(new Bl(13,"Error when deserializing response data; error: "+H+(", response: "+Z)),F));return}Z=SoE(f.xhr.getStatus());xB(f,Xf(f));Z===0?fYu(f,I):gH(f,ev(new Bl(Z,"Xhr succeeded but the status code is not 200"),F))}else{Z=g.ey(f.xhr);I=Xf(f);if(Z){var p= DkD(f,Z);Z=p.code;var z=p.details;p=p.metadata}else Z=2,z="Rpc failed due to xhr error. uri: "+String(f.xhr.N)+", error code: "+(f.xhr.J+", error: ")+f.xhr.getLastError(),p=I;xB(f,I);gH(f,ev(new Bl(Z,z,p),F))}})}; YjD=function(f){Oe(f.T,"data",function(D){if("1"in D){var F=D["1"];try{var Z=f.S(F)}catch(I){gH(f,new Bl(13,"Error when deserializing response data; error: "+I+(", response: "+F)))}Z&&fYu(f,Z)}if("2"in D)for(D=DkD(f,D["2"]),F=0;F-1&&f.splice(D,1)}; fYu=function(f,D){for(var F=0;F>4&15).toString(16)+(f&15).toString(16)}; Hb=function(f,D){this.J=this.Y=null;this.B=f||null;this.G=!!D}; kX=function(f){f.Y||(f.Y=new Map,f.J=0,f.B&&mX(f.B,function(D,F){f.add(Ec(D),F)}))}; KRd=function(f,D){kX(f);D=j$(f,D);return f.Y.has(D)}; g.khE=function(f,D,F){f.remove(D);F.length>0&&(f.B=null,f.Y.set(j$(f,D),g.FI(F)),f.J=f.J+F.length)}; j$=function(f,D){D=String(D);f.G&&(D=D.toLowerCase());return D}; qND=function(f,D){D&&!f.G&&(kX(f),f.B=null,f.Y.forEach(function(F,Z){var I=Z.toLowerCase();Z!=I&&(this.remove(Z),g.khE(this,I,F))},f)); f.G=D}; g.jXd=function(f){var D="";g.Ga(f,function(F,Z){D+=Z;D+=":";D+=F;D+="\r\n"}); return D}; g.iP=function(f,D,F){if(g.tC(F))return f;F=g.jXd(F);if(typeof f==="string")return SD(f,g.lI(D),F);g.Kk(f,D,F);return f}; g.hf=function(f){g.J.call(this);this.J=f;this.Y={}}; iBE=function(f,D,F,Z,I,p){if(Array.isArray(F))for(var z=0;z=0)return!0;try{var D=new g.Rd(f)}catch(F){return g.NC(vGu,function(Z){return f.search(Z)>0})!=null}return D.T.match(aYy)?!0:g.NC(vGu,function(F){return f.match(F)!=null})!=null}; g.S$=function(f,D){return f.replace(wzT,function(F,Z){try{var I=g.S5(D,Z);if(I==null||I.toString()==null)return F;I=I.toString();if(I==""||!g.XI(g.uI(I)))return encodeURIComponent(I).replace(/%2C/g,",")}catch(p){}return F})}; WRy=function(f){this.Bk=s8(f,500)}; Bwd=function(f){this.Bk=s8(f,500)}; cb=function(f){this.Bk=s8(f)}; UG=function(f){this.Bk=s8(f)}; r6J=function(f){var D=f.Bk;return L4(f,D,D[fr]|0,cb,2,1)}; EGd=function(f){var D;if((D=f[LRc])!=null)f=D;else{if(co!==co)throw Error();f=f[LRc]=lYu(f.Y)}return f}; unu=function(f){var D;return(D=f[J6T])!=null?D:f[J6T]=new Map(r6J(EGd(f)).map(function(F){return[F.getName(),g.No(F,2)]}))}; vb=function(f,D){return Object.is(f,D)}; GE=function(f){var D=aq;aq=f;return D}; NwX=function(f){if(f.Rf!==void 0){var D=wS;wS=!0;try{for(var F=f.Rf;F!==void 0;F=F.PY){var Z=F.hg;Z.bK||(f=void 0,Z.bK=!0,NwX(Z),(f=Z.mL)==null||f.call(Z,Z))}}finally{wS=D}}}; gGT=function(){var f;return((f=aq)==null?void 0:f.PG)!==!1}; eqs=function(f){f&&(f.We=void 0,f.rf=!0);return GE(f)}; Xzu=function(f){f.rf=!1;var D=f.We,F=D!==void 0?D.kh:f.producers;if(F!==void 0){if(Wb(f)){do F=xkf(F);while(F!==void 0)}D!==void 0?D.kh=void 0:f.producers=void 0}}; OBD=function(f,D){var F=f.aU,Z=Wb(f);F!==void 0?(D.PY=F.PY,F.PY=D):(D.PY=void 0,f.Rf=D);D.n6=F;f.aU=D;if(!Z)for(f=f.producers;f!==void 0;f=f.kh)OBD(f.UX,f)}; xkf=function(f){var D=f.UX,F=f.kh,Z=f.PY,I=f.n6;f.PY=void 0;f.n6=void 0;Z!==void 0?Z.n6=I:D.aU=I;if(I!==void 0)I.PY=Z;else if(D.Rf=Z,!Wb(D))for(f=D.producers;f!==void 0;)f=xkf(f);return F}; Wb=function(f){return f.OV||f.Rf!==void 0}; fiy=function(f,D){function F(){a:{if(wS)throw Error("");if(aq!==null){var I=aq.We;if(I===void 0||I.UX!==Z){var p=void 0,z=aq.rf;if(z&&(p=I!==void 0?I.kh:aq.producers,p!==void 0&&p.UX===Z)){aq.We=p;p.Mjs=Z.version;break a}var H=Z.aU,K;if(!(K=H===void 0||H.hg!==aq)){if(z){b:{K=aq;z=K.We;if(z!==void 0){K=K.producers;do{if(K===H){z=!0;break b}if(K===z)break;K=K.kh}while(K!==void 0)}z=!1}z=!z}K=z}K&&(z=Wb(aq),p={UX:Z,hg:aq,kh:p,n6:H,Mjs:Z.version,PY:void 0},aq.We=p,I!==void 0?I.kh=p:aq.producers=p,z&& OBD(Z,p))}}}return Z.value} var Z=Object.create(nGE);Z.value=f;D!==void 0&&(Z.P7=D);F[YND]=Z;return[F,function(I){return P8J(Z,I)}, function(I){if(!gGT())throw Error();P8J(Z,I(Z.value))}]}; P8J=function(f,D){if(!gGT())throw Error();f.P7(f.value,D)||(f.value=D,f.version++,D_J++,NwX(f))}; Bb=function(f,D){D=D===void 0?"":D;var F={};f=fiy(f,F.equals);F=F.debugName;var Z;D=F&&D?F+"__"+D:(Z=F!=null?F:D)!=null?Z:"[signal]";f[0][YND].debugName=D}; Lk=function(f){g.i7.call(this);var D=this;this.X=this.J=0;this.ew=f!=null?f:{vp:function(I,p){return setTimeout(I,p)}, lc:function(I){clearTimeout(I)}}; var F,Z;this.Y=(Z=(F=window.navigator)==null?void 0:F.onLine)!=null?Z:!0;this.B=function(){return g.l(function(I){return g.r(I,rS(D),0)})}; window.addEventListener("offline",this.B);window.addEventListener("online",this.B);this.X||this.cD()}; FNy=function(){var f=g.lP;Lk.instance||(Lk.instance=new Lk(f));return Lk.instance}; rS=function(f,D){return f.G?f.G:f.G=new Promise(function(F){var Z,I,p,z;return g.l(function(H){switch(H.Y){case 1:return Z=window.AbortController?new window.AbortController:void 0,p=(I=Z)==null?void 0:I.signal,z=!1,g.po(H,2,3),Z&&(f.J=f.ew.vp(function(){Z.abort()},D||2E4)),g.r(H,fetch("/generate_204",{method:"HEAD", signal:p}),5);case 5:z=!0;case 3:g.oU(H);f.G=void 0;f.J&&(f.ew.lc(f.J),f.J=0);z!==f.Y&&(f.Y=z,f.Y?f.dispatchEvent("networkstatus-online"):f.dispatchEvent("networkstatus-offline"));F(z);g.Ko(H,0);break;case 2:g.He(H),z=!1,H.ZE(3)}})})}; ZgD=function(f){this.Bk=s8(f)}; EG=function(){this.data=[];this.Y=-1}; Iia=function(f){f.Y===-1&&(f.Y=f.data.reduce(function(D,F,Z){return D+(F?Math.pow(2,Z):0)},0)); return f.Y}; Jf=function(f){f.setAttribute("role","link")}; NL=function(f,D){Array.isArray(D)&&(D=D.join(" "));D===""||D==void 0?(uP||(D={},uP=(D.atomic=!1,D.autocomplete="none",D.dropeffect="none",D.haspopup=!1,D.live="off",D.multiline=!1,D.multiselectable=!1,D.orientation="vertical",D.readonly=!1,D.relevant="additions text",D.required=!1,D.sort="none",D.busy=!1,D.disabled=!1,D.hidden=!1,D.invalid="false",D)),D=uP,"label"in D?f.setAttribute("aria-label",D.label):f.removeAttribute("aria-label")):f.setAttribute("aria-label",D)}; gS=function(f){f=f.getAttribute("aria-label");return f==null||f==void 0?"":String(f)}; g.e$=function(f,D,F){g.J.call(this);this.Y=null;this.G=!1;this.T=f;this.X=F;this.J=D||window;this.B=(0,g.aU)(this.sC,this)}; pPX=function(f){f=f.J;return f.requestAnimationFrame||f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||null}; zAc=function(f){f=f.J;return f.cancelAnimationFrame||f.cancelRequestAnimationFrame||f.webkitCancelRequestAnimationFrame||f.mozCancelRequestAnimationFrame||f.oCancelRequestAnimationFrame||f.msCancelRequestAnimationFrame||null}; g.xX=function(f,D,F){g.J.call(this);this.Y=f;this.cV=D||0;this.J=F;this.B=(0,g.aU)(this.O8,this)}; g.XE=function(f,D){f.isActive()||f.start(D)}; g.OG=function(f){f.stop();f.O8()}; g.nk=function(f){f.isActive()&&g.OG(f)}; g.YX=function(f,D,F){g.J.call(this);this.G=F!=null?f.bind(F):f;this.cV=D;this.B=null;this.Y=!1;this.J=0;this.AZ=null}; Pb=function(f){f.AZ=g.G2(function(){f.AZ=null;f.Y&&!f.J&&(f.Y=!1,Pb(f))},f.cV); var D=f.B;f.B=null;f.G.apply(null,D)}; g.fY=function(f,D){this.Y=f[g.RU.Symbol.iterator]();this.J=D}; sBy=function(f){return typeof f.className=="string"?f.className:f.getAttribute&&f.getAttribute("class")||""}; Dy=function(f){return f.classList?f.classList:sBy(f).match(/\S+/g)||[]}; g.Fs=function(f,D){typeof f.className=="string"?f.className=D:f.setAttribute&&f.setAttribute("class",D)}; g.Zy=function(f,D){return f.classList?f.classList.contains(D):g.e0(Dy(f),D)}; g.IC=function(f,D){if(f.classList)f.classList.add(D);else if(!g.Zy(f,D)){var F=sBy(f);g.Fs(f,F+(F.length>0?" "+D:D))}}; g.pY=function(f,D){if(f.classList)Array.prototype.forEach.call(D,function(I){g.IC(f,I)}); else{var F={};Array.prototype.forEach.call(Dy(f),function(I){F[I]=!0}); Array.prototype.forEach.call(D,function(I){F[I]=!0}); D="";for(var Z in F)D+=D.length>0?" "+Z:Z;g.Fs(f,D)}}; g.zP=function(f,D){f.classList?f.classList.remove(D):g.Zy(f,D)&&g.Fs(f,Array.prototype.filter.call(Dy(f),function(F){return F!=D}).join(" "))}; g.sE=function(f,D){f.classList?Array.prototype.forEach.call(D,function(F){g.zP(f,F)}):g.Fs(f,Array.prototype.filter.call(Dy(f),function(F){return!g.e0(D,F)}).join(" "))}; g.qI=function(f,D,F){F?g.IC(f,D):g.zP(f,D)}; qIJ=function(f,D){var F=!g.Zy(f,D);g.qI(f,D,F)}; g.H$=function(){g.i7.call(this);this.Y=0;this.endTime=this.startTime=null}; HgD=function(f,D){Array.isArray(D)||(D=[D]);D=D.map(function(F){return typeof F==="string"?F:F.property+" "+F.duration+"s "+F.timing+" "+F.delay+"s"}); g.Dx(f,"transition",D.join(","))}; oC=function(f,D,F,Z,I){g.H$.call(this);this.J=f;this.X=D;this.T=F;this.G=Z;this.S=Array.isArray(I)?I:[I]}; ofE=function(f,D,F,Z){return new oC(f,D,{opacity:F},{opacity:Z},{property:"opacity",duration:D,timing:"ease-in",delay:0})}; kKy=function(f){f=YJ(f);if(f=="")return null;var D=String(f.slice(0,4)).toLowerCase();if(("url("1||f&&f.split(")"),null;if(f.indexOf("(")>0){if(/"|'/.test(f))return null;D=/([\-\w]+)\(/g;for(var F;F=D.exec(f);)if(!(F[1].toLowerCase()in KNf))return null}return f}; KY=function(f,D){f=g.RU[f];return f&&f.prototype?(D=Object.getOwnPropertyDescriptor(f.prototype,D))&&D.get||null:null}; jBI=function(f){var D=g.RU.CSSStyleDeclaration;return D&&D.prototype&&D.prototype[f]||null}; igf=function(f,D,F,Z){if(f)return f.apply(D,Z);if(g.ka&&document.documentMode<10){if(!D[F].call)throw Error("IE Clobbering detected");}else if(typeof D[F]!="function")throw Error("Clobbering detected");return D[F].apply(D,Z)}; Vlu=function(f){if(!f)return"";var D=document.createElement("div").style;hAw(f).forEach(function(F){var Z=g.dL&&F in ybJ?F:F.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");gU(Z,"--")||gU(Z,"var")||(F=igf(AbE,f,f.getPropertyValue?"getPropertyValue":"getAttribute",[F])||"",F=kKy(F),F!=null&&igf($_D,D,D.setProperty?"setProperty":"setAttribute",[Z,F]))}); return D.cssText||""}; hAw=function(f){g.MC(f)?f=g.FI(f):(f=g.Cs(f),g.no(f,"cssText"));return f}; g.iS=function(f){var D,F=D=0,Z=!1;f=f.split(RAE);for(var I=0;I.4?-1:1;return(D==0?null:D)==-1?"rtl":"ltr"}; g.$a=function(f){if(f instanceof h$||f instanceof yM||f instanceof A$)return f;if(typeof f.next=="function")return new h$(function(){return f}); if(typeof f[Symbol.iterator]=="function")return new h$(function(){return f[Symbol.iterator]()}); if(typeof f.bO=="function")return new h$(function(){return f.bO()}); throw Error("Not an iterator or iterable.");}; h$=function(f){this.J=f}; yM=function(f){this.J=f}; A$=function(f){h$.call(this,function(){return f}); this.B=f}; VM=function(f,D,F,Z,I,p,z,H){this.Y=f;this.S=D;this.B=F;this.X=Z;this.G=I;this.T=p;this.J=z;this.N=H}; RC=function(f,D){if(D==0)return f.Y;if(D==1)return f.J;var F=Dm(f.Y,f.B,D),Z=Dm(f.B,f.G,D);f=Dm(f.G,f.J,D);F=Dm(F,Z,D);Z=Dm(Z,f,D);return Dm(F,Z,D)}; m_I=function(f,D){if(D==0)return f.S;if(D==1)return f.N;var F=Dm(f.S,f.X,D),Z=Dm(f.X,f.T,D);f=Dm(f.T,f.N,D);F=Dm(F,Z,D);Z=Dm(Z,f,D);return Dm(F,Z,D)}; T$a=function(f,D){var F=(D-f.Y)/(f.J-f.Y);if(F<=0)return 0;if(F>=1)return 1;for(var Z=0,I=1,p=0,z=0;z<8;z++){p=RC(f,F);var H=(RC(f,F+1E-6)-p)/1E-6;if(Math.abs(p-D)<1E-6)return F;if(Math.abs(H)<1E-6)break;else p1E-6&&z<8;z++)p=0}; g.mQ=function(f){g.J.call(this);this.T=1;this.B=[];this.G=0;this.Y=[];this.J={};this.S=!!f}; Mlu=function(f,D,F){g.mF(function(){f.apply(D,F)})}; g.TP=function(f){this.Ny=f}; bS=function(f){this.Ny=f}; tls=function(f){this.data=f}; SID=function(f){return f===void 0||f instanceof tls?f:new tls(f)}; MI=function(f){this.Ny=f}; g.cbD=function(f){var D=f.creation;f=f.expiration;return!!f&&fg.We()}; g.t$=function(f){this.Ny=f}; U_y=function(){}; Sk=function(){}; c$=function(f){this.Y=f;this.J=null}; UE=function(f){if(f.Y==null)throw Error("Storage mechanism: Storage unavailable");f.isAvailable()||wi(Error("Storage mechanism: Storage unavailable"))}; v$=function(){var f=null;try{f=g.RU.localStorage||null}catch(D){}c$.call(this,f)}; vff=function(){var f=null;try{f=g.RU.sessionStorage||null}catch(D){}c$.call(this,f)}; aC=function(f,D){this.J=f;this.Y=D+"::"}; g.GP=function(f){var D=new v$;return D.isAvailable()?f?new aC(D,f):D:null}; wp=function(f,D){this.Y=f;this.J=D}; W$=function(f){this.Y=[];if(f)a:{if(f instanceof W$){var D=f.cC();f=f.TR();if(this.Y.length<=0){for(var F=this.Y,Z=0;Z>>6:(p<65536?H[F++]=224|p>>>12:(H[F++]=240|p>>>18,H[F++]=128|p>>>12&63),H[F++]=128|p>>> 6&63),H[F++]=128|p&63);return H}; EE=function(f){for(var D=f.length;--D>=0;)f[D]=0}; J$=function(f,D,F,Z,I){this.rh=f;this.Ci=D;this.TW=F;this.H4=Z;this.wkQ=I;this.Zd=f&&f.length}; uS=function(f,D){this.LW=f;this.eM=0;this.TO=D}; NI=function(f,D){f.D1[f.pending++]=D&255;f.D1[f.pending++]=D>>>8&255}; gp=function(f,D,F){f.dM>16-F?(f.OW|=D<>16-f.dM,f.dM+=F-16):(f.OW|=D<>>=1,F<<=1;while(--D>0);return F>>>1}; B$y=function(f,D,F){var Z=Array(16),I=0,p;for(p=1;p<=15;p++)Z[p]=I=I+F[p-1]<<1;for(F=0;F<=D;F++)I=f[F*2+1],I!==0&&(f[F*2]=WNu(Z[I]++,I))}; rbw=function(f){var D;for(D=0;D<286;D++)f.Df[D*2]=0;for(D=0;D<30;D++)f.Fm[D*2]=0;for(D=0;D<19;D++)f.YC[D*2]=0;f.Df[512]=1;f.lI=f.KU=0;f.Dq=f.matches=0}; LNd=function(f){f.dM>8?NI(f,f.OW):f.dM>0&&(f.D1[f.pending++]=f.OW);f.OW=0;f.dM=0}; liD=function(f,D,F){LNd(f);NI(f,F);NI(f,~F);lS.UY(f.D1,f.window,D,F,f.pending);f.pending+=F}; EfJ=function(f,D,F,Z){var I=D*2,p=F*2;return f[I]>>7)];ek(f,z,F);H=P$[z];H!==0&&(I-=fc[z],gp(f,I,H))}}while(Z>1;z>=1;z--)xa(f,F,z);K=p;do z=f.gS[1],f.gS[1]=f.gS[f.ws--],xa(f,F,1),Z=f.gS[1],f.gS[--f.Xa]=z,f.gS[--f.Xa]=Z,F[K*2]=F[z*2]+F[Z*2],f.depth[K]=(f.depth[z]>=f.depth[Z]?f.depth[z]:f.depth[Z])+1,F[z*2+1]=F[Z*2+1]=K,f.gS[1]=K++,xa(f,F,1);while(f.ws>= 2);f.gS[--f.Xa]=f.gS[1];z=D.LW;K=D.eM;Z=D.TO.rh;I=D.TO.Zd;p=D.TO.Ci;var k=D.TO.TW,h=D.TO.wkQ,y,A=0;for(y=0;y<=15;y++)f.WQ[y]=0;z[f.gS[f.Xa]*2+1]=0;for(D=f.Xa+1;D<573;D++){var V=f.gS[D];y=z[z[V*2+1]*2+1]+1;y>h&&(y=h,A++);z[V*2+1]=y;if(!(V>K)){f.WQ[y]++;var R=0;V>=k&&(R=p[V-k]);var m=z[V*2];f.lI+=m*(y+R);I&&(f.KU+=m*(Z[V*2+1]+R))}}if(A!==0){do{for(y=h-1;f.WQ[y]===0;)y--;f.WQ[y]--;f.WQ[y+1]+=2;f.WQ[h]--;A-=2}while(A>0);for(y=h;y!==0;y--)for(V=f.WQ[y];V!==0;)Z=f.gS[--D],Z>K||(z[Z*2+1]!==y&&(f.lI+=(y- z[Z*2+1])*z[Z*2],z[Z*2+1]=y),V--)}B$y(F,H,f.WQ)}; uvD=function(f,D,F){var Z,I=-1,p=D[1],z=0,H=7,K=4;p===0&&(H=138,K=3);D[(F+1)*2+1]=65535;for(Z=0;Z<=F;Z++){var k=p;p=D[(Z+1)*2+1];++z>>=1)if(D&1&&f.Df[F*2]!==0)return 0;if(f.Df[18]!==0||f.Df[20]!==0||f.Df[26]!==0)return 1;for(F=32;F<256;F++)if(f.Df[F*2]!==0)return 1;return 0}; Fr=function(f,D,F){f.D1[f.q4+f.Dq*2]=D>>>8&255;f.D1[f.q4+f.Dq*2+1]=D&255;f.D1[f.Cf+f.Dq]=F&255;f.Dq++;D===0?f.Df[F*2]++:(f.matches++,D--,f.Df[(Xs[F]+256+1)*2]++,f.Fm[(D<256?Ya[D]:Ya[256+(D>>>7)])*2]++);return f.Dq===f.Om-1}; IJ=function(f,D){f.msg=ZV[D];return D}; pc=function(f){for(var D=f.length;--D>=0;)f[D]=0}; zG=function(f){var D=f.state,F=D.pending;F>f.Az&&(F=f.Az);F!==0&&(lS.UY(f.output,D.D1,D.Fp,F,f.Ji),f.Ji+=F,D.Fp+=F,f.Bd+=F,f.Az-=F,D.pending-=F,D.pending===0&&(D.Fp=0))}; oJ=function(f,D){var F=f.f1>=0?f.f1:-1,Z=f.z3-f.f1,I=0;if(f.level>0){f.PD.tj===2&&(f.PD.tj=gfD(f));DV(f,f.PN);DV(f,f.JE);uvD(f,f.Df,f.PN.eM);uvD(f,f.Fm,f.JE.eM);DV(f,f.pg);for(I=18;I>=3&&f.YC[eAD[I]*2+1]===0;I--);f.lI+=3*(I+1)+5+5+4;var p=f.lI+3+7>>>3;var z=f.KU+3+7>>>3;z<=p&&(p=z)}else p=z=Z+5;if(Z+4<=p&&F!==-1)gp(f,D?1:0,3),liD(f,F,Z);else if(f.strategy===4||z===p)gp(f,2+(D?1:0),3),Jby(f,qT,HY);else{gp(f,4+(D?1:0),3);F=f.PN.eM+1;Z=f.JE.eM+1;I+=1;gp(f,F-257,5);gp(f,Z-1,5);gp(f,I-4,4);for(p=0;p>>8&255;f.D1[f.pending++]=D&255}; x_d=function(f,D){var F=f.WM,Z=f.z3,I=f.uO,p=f.qd,z=f.z3>f.Fy-262?f.z3-(f.Fy-262):0,H=f.window,K=f.gJ,k=f.OD,h=f.z3+258,y=H[Z+I-1],A=H[Z+I];f.uO>=f.er&&(F>>=2);p>f.vk&&(p=f.vk);do{var V=D;if(H[V+I]===A&&H[V+I-1]===y&&H[V]===H[Z]&&H[++V]===H[Z+1]){Z+=2;for(V++;H[++Z]===H[++V]&&H[++Z]===H[++V]&&H[++Z]===H[++V]&&H[++Z]===H[++V]&&H[++Z]===H[++V]&&H[++Z]===H[++V]&&H[++Z]===H[++V]&&H[++Z]===H[++V]&&ZI){f.Hu=D;I=V;if(V>=p)break;y=H[Z+I-1];A=H[Z+I]}}}while((D=k[D&K])>z&&--F!== 0);return I<=f.vk?I:f.vk}; yj=function(f){var D=f.Fy,F;do{var Z=f.LZ-f.vk-f.z3;if(f.z3>=D+(D-262)){lS.UY(f.window,f.window,D,D,0);f.Hu-=D;f.z3-=D;f.f1-=D;var I=F=f.T5;do{var p=f.head[--I];f.head[I]=p>=D?p-D:0}while(--F);I=F=D;do p=f.OD[--I],f.OD[I]=p>=D?p-D:0;while(--F);Z+=D}if(f.PD.PV===0)break;I=f.PD;F=f.window;p=f.z3+f.vk;var z=I.PV;z>Z&&(z=Z);z===0?F=0:(I.PV-=z,lS.UY(F,I.input,I.F7,z,p),I.state.wrap===1?I.CE=j_(I.CE,F,z,p):I.state.wrap===2&&(I.CE=hD(I.CE,F,z,p)),I.F7+=z,I.k6+=z,F=z);f.vk+=F;if(f.vk+f.Pl>=3)for(Z=f.z3-f.Pl, f.Vt=f.window[Z],f.Vt=(f.Vt<=3&&(f.Vt=(f.Vt<=3)if(F=Fr(f,f.z3-f.Hu,f.Uw-3),f.vk-=f.Uw,f.Uw<=f.Po&&f.vk>=3){f.Uw--;do f.z3++,f.Vt=(f.Vt<=3&&(f.Vt=(f.Vt<4096)&&(f.Uw=2));if(f.uO>=3&&f.Uw<=f.uO){Z=f.z3+f.vk-3;F=Fr(f,f.z3-1-f.Xe,f.uO-3);f.vk-=f.uO-1;f.uO-=2;do++f.z3<=Z&&(f.Vt=(f.Vt<=3&&f.z3>0&&(Z=f.z3-1,F=p[Z],F===p[++Z]&&F===p[++Z]&&F===p[++Z])){for(I=f.z3+258;F===p[++Z]&&F===p[++Z]&&F===p[++Z]&&F===p[++Z]&&F===p[++Z]&&F===p[++Z]&&F===p[++Z]&&F===p[++Z]&&Zf.vk&&(f.Uw=f.vk)}f.Uw>=3?(F=Fr(f,1,f.Uw-3),f.vk-=f.Uw,f.z3+=f.Uw,f.Uw=0):(F=Fr(f,0,f.window[f.z3]),f.vk--,f.z3++);if(F&&(oJ(f,!1),f.PD.Az===0))return 1}f.Pl=0;return D=== 4?(oJ(f,!0),f.PD.Az===0?3:4):f.Dq&&(oJ(f,!1),f.PD.Az===0)?1:2}; Ogc=function(f,D){for(var F;;){if(f.vk===0&&(yj(f),f.vk===0)){if(D===0)return 1;break}f.Uw=0;F=Fr(f,0,f.window[f.z3]);f.vk--;f.z3++;if(F&&(oJ(f,!1),f.PD.Az===0))return 1}f.Pl=0;return D===4?(oJ(f,!0),f.PD.Az===0?3:4):f.Dq&&(oJ(f,!1),f.PD.Az===0)?1:2}; Cc=function(f,D,F,Z,I){this.C3Y=f;this.ipY=D;this.xmo=F;this.RFd=Z;this.func=I}; nfy=function(){this.PD=null;this.status=0;this.D1=null;this.wrap=this.pending=this.Fp=this.NA=0;this.Up=null;this.LH=0;this.method=8;this.oe=-1;this.gJ=this.rr=this.Fy=0;this.window=null;this.LZ=0;this.head=this.OD=null;this.qd=this.er=this.strategy=this.level=this.Po=this.WM=this.uO=this.vk=this.Hu=this.z3=this.lW=this.Xe=this.Uw=this.f1=this.iC=this.Ru=this.FZ=this.T5=this.Vt=0;this.Df=new lS.ES(1146);this.Fm=new lS.ES(122);this.YC=new lS.ES(78);pc(this.Df);pc(this.Fm);pc(this.YC);this.pg=this.JE= this.PN=null;this.WQ=new lS.ES(16);this.gS=new lS.ES(573);pc(this.gS);this.Xa=this.ws=0;this.depth=new lS.ES(573);pc(this.depth);this.dM=this.OW=this.Pl=this.matches=this.KU=this.lI=this.q4=this.Dq=this.Om=this.Cf=0}; YIs=function(f,D){if(!f||!f.state||D>5||D<0)return f?IJ(f,-2):-2;var F=f.state;if(!f.output||!f.input&&f.PV!==0||F.status===666&&D!==4)return IJ(f,f.Az===0?-5:-2);F.PD=f;var Z=F.oe;F.oe=D;if(F.status===42)if(F.wrap===2)f.CE=0,Kc(F,31),Kc(F,139),Kc(F,8),F.Up?(Kc(F,(F.Up.text?1:0)+(F.Up.Km?2:0)+(F.Up.extra?4:0)+(F.Up.name?8:0)+(F.Up.comment?16:0)),Kc(F,F.Up.time&255),Kc(F,F.Up.time>>8&255),Kc(F,F.Up.time>>16&255),Kc(F,F.Up.time>>24&255),Kc(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),Kc(F,F.Up.os& 255),F.Up.extra&&F.Up.extra.length&&(Kc(F,F.Up.extra.length&255),Kc(F,F.Up.extra.length>>8&255)),F.Up.Km&&(f.CE=hD(f.CE,F.D1,F.pending,0)),F.LH=0,F.status=69):(Kc(F,0),Kc(F,0),Kc(F,0),Kc(F,0),Kc(F,0),Kc(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),Kc(F,3),F.status=113);else{var I=8+(F.rr-8<<4)<<8;I|=(F.strategy>=2||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6;F.z3!==0&&(I|=32);F.status=113;kW(F,I+(31-I%31));F.z3!==0&&(kW(F,f.CE>>>16),kW(F,f.CE&65535));f.CE=1}if(F.status===69)if(F.Up.extra){for(I= F.pending;F.LH<(F.Up.extra.length&65535)&&(F.pending!==F.NA||(F.Up.Km&&F.pending>I&&(f.CE=hD(f.CE,F.D1,F.pending-I,I)),zG(f),I=F.pending,F.pending!==F.NA));)Kc(F,F.Up.extra[F.LH]&255),F.LH++;F.Up.Km&&F.pending>I&&(f.CE=hD(f.CE,F.D1,F.pending-I,I));F.LH===F.Up.extra.length&&(F.LH=0,F.status=73)}else F.status=73;if(F.status===73)if(F.Up.name){I=F.pending;do{if(F.pending===F.NA&&(F.Up.Km&&F.pending>I&&(f.CE=hD(f.CE,F.D1,F.pending-I,I)),zG(f),I=F.pending,F.pending===F.NA)){var p=1;break}p=F.LHI&&(f.CE=hD(f.CE,F.D1,F.pending-I,I));p===0&&(F.LH=0,F.status=91)}else F.status=91;if(F.status===91)if(F.Up.comment){I=F.pending;do{if(F.pending===F.NA&&(F.Up.Km&&F.pending>I&&(f.CE=hD(f.CE,F.D1,F.pending-I,I)),zG(f),I=F.pending,F.pending===F.NA)){p=1;break}p=F.LHI&&(f.CE=hD(f.CE,F.D1,F.pending-I,I));p===0&&(F.status=103)}else F.status= 103;F.status===103&&(F.Up.Km?(F.pending+2>F.NA&&zG(f),F.pending+2<=F.NA&&(Kc(F,f.CE&255),Kc(F,f.CE>>8&255),f.CE=0,F.status=113)):F.status=113);if(F.pending!==0){if(zG(f),f.Az===0)return F.oe=-1,0}else if(f.PV===0&&(D<<1)-(D>4?9:0)<=(Z<<1)-(Z>4?9:0)&&D!==4)return IJ(f,-5);if(F.status===666&&f.PV!==0)return IJ(f,-5);if(f.PV!==0||F.vk!==0||D!==0&&F.status!==666){Z=F.strategy===2?Ogc(F,D):F.strategy===3?XPI(F,D):mx[F.level].func(F,D);if(Z===3||Z===4)F.status=666;if(Z===1||Z===3)return f.Az===0&&(F.oe= -1),0;if(Z===2&&(D===1?(gp(F,2,3),ek(F,256,qT),F.dM===16?(NI(F,F.OW),F.OW=0,F.dM=0):F.dM>=8&&(F.D1[F.pending++]=F.OW&255,F.OW>>=8,F.dM-=8)):D!==5&&(gp(F,0,3),liD(F,0,0),D===3&&(pc(F.head),F.vk===0&&(F.z3=0,F.f1=0,F.Pl=0))),zG(f),f.Az===0))return F.oe=-1,0}if(D!==4)return 0;if(F.wrap<=0)return 1;F.wrap===2?(Kc(F,f.CE&255),Kc(F,f.CE>>8&255),Kc(F,f.CE>>16&255),Kc(F,f.CE>>24&255),Kc(F,f.k6&255),Kc(F,f.k6>>8&255),Kc(F,f.k6>>16&255),Kc(F,f.k6>>24&255)):(kW(F,f.CE>>>16),kW(F,f.CE&65535));zG(f);F.wrap>0&& (F.wrap=-F.wrap);return F.pending!==0?0:1}; TG=function(f){if(!(this instanceof TG))return new TG(f);f=this.options=lS.assign({level:-1,method:8,chunkSize:16384,O9:15,v8s:8,strategy:0,to:""},f||{});f.raw&&f.O9>0?f.O9=-f.O9:f.zdT&&f.O9>0&&f.O9<16&&(f.O9+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.PD=new PJD;this.PD.Az=0;var D=this.PD;var F=f.level,Z=f.method,I=f.O9,p=f.v8s,z=f.strategy;if(D){var H=1;F===-1&&(F=6);I<0?(H=0,I=-I):I>15&&(H=2,I-=16);if(p<1||p>9||Z!==8||I<8||I>15||F<0||F>9||z<0||z>4)D=IJ(D,-2);else{I===8&&(I=9); var K=new nfy;D.state=K;K.PD=D;K.wrap=H;K.Up=null;K.rr=I;K.Fy=1<>=7;p<30;p++)for(fc[p]=z<<7,I=0;I<1<=k.Fy&&(D===0&&(pc(k.head),k.z3=0,k.f1=0,k.Pl=0),F=new lS.Ph(k.Fy),lS.UY(F,p,z-k.Fy,k.Fy,0),p=F,z=k.Fy);F=f.PV;Z=f.F7;I=f.input;f.PV=z;f.F7=0;f.input=p;for(yj(k);k.vk>=3;){p=k.z3;z=k.vk-2;do k.Vt=(k.Vt<1?D[f[0]]=f[1]:f.length===1&&Object.assign(D,f[0])}; g.nc=function(f,D){return f in Xr?Xr[f]:D}; YW=function(f){var D=Xr.EXPERIMENT_FLAGS;return D?D[f]:void 0}; d4u=function(f){PY.forEach(function(D){return D(f)})}; g.DK=function(f){return f&&window.yterr?function(){try{return f.apply(this,arguments)}catch(D){g.fO(D)}}:f}; g.fO=function(f){var D=g.QY("yt.logging.errors.log");D?D(f,"ERROR",void 0,void 0,void 0,void 0,void 0):(D=g.nc("ERRORS",[]),D.push([f,"ERROR",void 0,void 0,void 0,void 0,void 0]),Ot("ERRORS",D));d4u(f)}; Fm=function(f,D,F,Z,I){var p=g.QY("yt.logging.errors.log");p?p(f,"WARNING",D,F,Z,void 0,I):(p=g.nc("ERRORS",[]),p.push([f,"WARNING",D,F,Z,void 0,I]),Ot("ERRORS",p))}; ZK=function(f,D){D=f.split(D);for(var F={},Z=0,I=D.length;Z1?f[1]:f[0])):{}}; s4=function(f,D){return TGu(f,D||{},!0)}; q1=function(f,D){return TGu(f,D||{},!1)}; TGu=function(f,D,F){var Z=f.split("#",2);f=Z[0];Z=Z.length>1?"#"+Z[1]:"";var I=f.split("?",2);f=I[0];I=iy(I[1]||"");for(var p in D)if(F||!g.ma(I,p))I[p]=D[p];return g.tL(f,I)+Z}; HR=function(f){if(!D)var D=window.location.href;var F=g.R_(f)[1]||null,Z=g.dy(f);F&&Z?(f=g.R_(f),D=g.R_(D),f=f[3]==D[3]&&f[1]==D[1]&&f[4]==D[4]):f=Z?g.dy(D)===Z&&(Number(g.R_(D)[4]||null)||null)===(Number(g.R_(f)[4]||null)||null):!0;return f}; og=function(f){f||(f=document.location.href);f=g.R_(f)[1]||null;return f!==null&&f==="https"}; KO=function(f){f=bzf(f);return f===null?!1:f[0]==="com"&&f[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; Myy=function(f){f=bzf(f);return f===null?!1:f[1]==="google"?!0:f[2]==="google"?f[0]==="au"&&f[1]==="com"?!0:f[0]==="uk"&&f[1]==="co"?!0:!1:!1}; bzf=function(f){f=g.dy(f);return f!==null?f.split(".").reverse():null}; QvI=function(f){return f&&f.match(tyc)?f:Ec(f)}; iL=function(f){var D=ko;f=f===void 0?Vyu():f;var F=Object,Z=F.assign,I=jt(D);var p=D.Y;try{var z=p.screenX;var H=p.screenY}catch(U){}try{var K=p.outerWidth;var k=p.outerHeight}catch(U){}try{var h=p.innerWidth;var y=p.innerHeight}catch(U){}try{var A=p.screenLeft;var V=p.screenTop}catch(U){}try{h=p.innerWidth,y=p.innerHeight}catch(U){}try{var R=p.screen.availWidth;var m=p.screen.availTop}catch(U){}p=[A,V,z,H,R,m,K,k,h,y];z=Tic(!1,D.Y.top);H={};var b=b===void 0?g.RU:b;K=new EG;"SVGElement"in b&&"createElementNS"in b.document&&K.set(0);k=BUT();k["allow-top-navigation-by-user-activation"]&&K.set(1);k["allow-popups-to-escape-sandbox"]&&K.set(2);b.crypto&&b.crypto.subtle&&K.set(3);"TextDecoder"in b&&"TextEncoder"in b&&K.set(4);b=Iia(K);D=(H.bc=b,H.bih=z.height,H.biw=z.width,H.brdim=p.join(),H.vis=AG(D.J),H.wgl=!!l5.WebGLRenderingContext,H);F=Z.call(F,I,D);F.ca_type="image";f&&(F.bid=f);return F}; jt=function(f){var D={};D.dt=SDE;D.flash="0";a:{try{var F=f.Y.top.location.href}catch(k){f=2;break a}f=F?F===f.J.location.href?0:1:2}D=(D.frm=f,D);try{D.u_tz=-(new Date).getTimezoneOffset();try{var Z=l5.history.length}catch(k){Z=0}D.u_his=Z;var I;D.u_h=(I=l5.screen)==null?void 0:I.height;var p;D.u_w=(p=l5.screen)==null?void 0:p.width;var z;D.u_ah=(z=l5.screen)==null?void 0:z.availHeight;var H;D.u_aw=(H=l5.screen)==null?void 0:H.availWidth;var K;D.u_cd=(K=l5.screen)==null?void 0:K.colorDepth}catch(k){}return D}; U4y=function(){if(!csT)return null;var f=csT();return"open"in f?f:null}; g.yu=function(f){switch(hW(f)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; hW=function(f){return f&&"status"in f?f.status:-1}; g.AW=function(f,D){typeof f==="function"&&(f=g.DK(f));return window.setTimeout(f,D)}; g.$o=function(f,D){typeof f==="function"&&(f=g.DK(f));return window.setInterval(f,D)}; g.Vu=function(f){window.clearTimeout(f)}; g.Rg=function(f){window.clearInterval(f)}; g.CO=function(f){f=Qu(f);return typeof f==="string"&&f==="false"?!1:!!f}; mI=function(f,D){f=Qu(f);return f===void 0&&D!==void 0?D:Number(f||0)}; Tr=function(){return g.nc("EXPERIMENTS_TOKEN","")}; Qu=function(f){return g.nc("EXPERIMENT_FLAGS",{})[f]}; bL=function(){for(var f=[],D=g.nc("EXPERIMENTS_FORCED_FLAGS",{}),F=g.a(Object.keys(D)),Z=F.next();!Z.done;Z=F.next())Z=Z.value,f.push({key:Z,value:String(D[Z])});F=g.nc("EXPERIMENT_FLAGS",{});Z=g.a(Object.keys(F));for(var I=Z.next();!I.done;I=Z.next())I=I.value,I.startsWith("force_")&&D[I]===void 0&&f.push({key:I,value:String(F[I])});return f}; M1=function(f,D,F,Z,I,p,z,H,K){function k(){(h&&"readyState"in h?h.readyState:0)===4&&D&&g.DK(D)(h)} F=F===void 0?"GET":F;Z=Z===void 0?"":Z;H=H===void 0?!1:H;var h=U4y();if(!h)return null;"onloadend"in h?h.addEventListener("loadend",k,!1):h.onreadystatechange=k;g.CO("debug_forward_web_query_parameters")&&(f=vQd(f));h.open(F,f,!0);p&&(h.responseType=p);z&&(h.withCredentials=!0);F=F==="POST"&&(window.FormData===void 0||!(Z instanceof FormData));if(I=akT(f,I))for(var y in I)h.setRequestHeader(y,I[y]),"content-type"===y.toLowerCase()&&(F=!1);F&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); K&&"onprogress"in h&&(h.onprogress=function(){K(h.responseText)}); if(H&&"setAttributionReporting"in XMLHttpRequest.prototype){f={eventSourceEligible:!0,triggerEligible:!1};try{h.setAttributionReporting(f)}catch(A){Fm(A)}}h.send(Z);return h}; akT=function(f,D){D=D===void 0?{}:D;var F=HR(f),Z=g.nc("INNERTUBE_CLIENT_NAME"),I=g.CO("web_ajax_ignore_global_headers_if_set"),p;for(p in G2s){var z=g.nc(G2s[p]),H=p==="X-Goog-AuthUser"||p==="X-Goog-PageId";p!=="X-Goog-Visitor-Id"||z||(z=g.nc("VISITOR_DATA"));var K;if(!(K=!z)){if(!(K=F||(g.dy(f)?!1:!0))){K=f;var k;if(k=g.CO("add_auth_headers_to_remarketing_google_dot_com_ping")&&p==="Authorization"&&(Z==="TVHTML5"||Z==="TVHTML5_UNPLUGGED"||Z==="TVHTML5_SIMPLY")&&Myy(K))K=QW(K)||"",K=K.split("/"), K="/"+(K.length>1?K[1]:""),k=K==="/pagead";K=k?!0:!1}K=!K}K||I&&D[p]!==void 0||Z==="TVHTML5_UNPLUGGED"&&H||(D[p]=z)}"X-Goog-EOM-Visitor-Id"in D&&"X-Goog-Visitor-Id"in D&&delete D["X-Goog-Visitor-Id"];if(F||!g.dy(f))D["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(F||!g.dy(f)){try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(y){}h&&(D["X-YouTube-Time-Zone"]=h)}document.location.hostname.endsWith("youtubeeducation.com")||!F&&g.dy(f)||(D["X-YouTube-Ad-Signals"]= Ig(iL()));return D}; St=function(f,D){D.method="POST";D.postParams||(D.postParams={});return g.tW(f,D)}; BGD=function(f,D){if(window.fetch&&D.format!=="XML"){var F={method:D.method||"GET",credentials:"same-origin"};D.headers&&(F.headers=D.headers);D.priority&&(F.priority=D.priority);f=wlD(f,D);var Z=WFE(f,D);Z&&(F.body=Z);D.withCredentials&&(F.credentials="include");var I=D.context||g.RU,p=!1,z;fetch(f,F).then(function(H){if(!p){p=!0;z&&g.Vu(z);var K=H.ok,k=function(h){h=h||{};K?D.onSuccess&&D.onSuccess.call(I,h,H):D.onError&&D.onError.call(I,h,H);D.onFinish&&D.onFinish.call(I,h,H)}; (D.format||"JSON")==="JSON"&&(K||H.status>=400&&H.status<500)?H.json().then(k,function(){k(null)}):k(null)}}).catch(function(){D.onError&&D.onError.call(I,{},{})}); f=D.timeout||0;D.onFetchTimeout&&f>0&&(z=g.AW(function(){p||(p=!0,g.Vu(z),D.onFetchTimeout.call(D.context||g.RU))},f))}else g.tW(f,D)}; g.tW=function(f,D){var F=D.format||"JSON";f=wlD(f,D);var Z=WFE(f,D),I=!1,p=rsJ(f,function(K){if(!I){I=!0;H&&g.Vu(H);var k=g.yu(K),h=null,y=400<=K.status&&K.status<500,A=500<=K.status&&K.status<600;if(k||y||A)h=LFw(f,F,K,D.convertToSafeHtml);k&&(k=lkc(F,K,h));h=h||{};y=D.context||g.RU;k?D.onSuccess&&D.onSuccess.call(y,K,h):D.onError&&D.onError.call(y,K,h);D.onFinish&&D.onFinish.call(y,K,h)}},D.method,Z,D.headers,D.responseType,D.withCredentials,!1,D.onProgress); Z=D.timeout||0;if(D.onTimeout&&Z>0){var z=D.onTimeout;var H=g.AW(function(){I||(I=!0,p.abort(),g.Vu(H),z.call(D.context||g.RU,p))},Z)}return p}; wlD=function(f,D){D.includeDomain&&(f=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+f);var F=g.nc("XSRF_FIELD_NAME");if(D=D.urlParams)D[F]&&delete D[F],f=s4(f,D);return f}; WFE=function(f,D){var F=g.nc("XSRF_FIELD_NAME"),Z=g.nc("XSRF_TOKEN"),I=D.postBody||"",p=D.postParams,z=g.nc("XSRF_FIELD_NAME"),H;D.headers&&(H=D.headers["Content-Type"]);D.excludeXsrf||g.dy(f)&&!D.withCredentials&&g.dy(f)!==document.location.hostname||D.method!=="POST"||H&&H!=="application/x-www-form-urlencoded"||D.postParams&&D.postParams[z]||(p||(p={}),p[F]=Z);(g.CO("ajax_parse_query_data_only_when_filled")&&p&&Object.keys(p).length>0||p)&&typeof I==="string"&&(I=iy(I),g.ai(I,p),I=D.postBodyFormat&& D.postBodyFormat==="JSON"?JSON.stringify(I):g.MX(I));p=I||p&&!g.tC(p);!EQD&&p&&D.method!=="POST"&&(EQD=!0,g.fO(Error("AJAX request with postData should use POST")));return I}; LFw=function(f,D,F,Z){var I=null;switch(D){case "JSON":try{var p=F.responseText}catch(z){throw Z=Error("Error reading responseText"),Z.params=f,Fm(Z),z;}f=F.getResponseHeader("Content-Type")||"";p&&f.indexOf("json")>=0&&(p.substring(0,5)===")]}'\n"&&(p=p.substring(5)),I=JSON.parse(p));break;case "XML":if(f=(f=F.responseXML)?JsX(f):null)I={},g.hC(f.getElementsByTagName("*"),function(z){I[z.tagName]=u6E(z)})}Z&&NGJ(I); return I}; NGJ=function(f){if(g.tv(f))for(var D in f)D==="html_content"||kcu(D,"_html")?f[D]=M7(f[D]):NGJ(f[D])}; lkc=function(f,D,F){if(D&&D.status===204)return!0;switch(f){case "JSON":return!!F;case "XML":return Number(F&&F.return_code)===0;case "RAW":return!0;default:return!!F}}; JsX=function(f){return f?(f=("responseXML"in f?f.responseXML:f).getElementsByTagName("root"))&&f.length>0?f[0]:null:null}; u6E=function(f){var D="";g.hC(f.childNodes,function(F){D+=F.nodeValue}); return D}; vQd=function(f){var D=window.location.search,F=g.dy(f);g.CO("debug_handle_relative_url_for_query_forward_killswitch")||!F&&HR(f)&&(F=document.location.hostname);var Z=QW(f);Z=(F=F&&(F.endsWith("youtube.com")||F.endsWith("youtube-nocookie.com")))&&Z&&Z.startsWith("/api/");if(!F||Z)return f;var I=iy(D),p={};g.hC(gQJ,function(z){I[z]&&(p[z]=I[z])}); return q1(f,p)}; U4=function(f,D){var F=g.UQ(D),Z;return(new g.b7(function(I,p){F.onSuccess=function(z){g.yu(z)?I(new ecX(z)):p(new cR("Request failed, status="+hW(z),"net.badstatus",z))}; F.onError=function(z){p(new cR("Unknown request error","net.unknown",z))}; F.onTimeout=function(z){p(new cR("Request timed out","net.timeout",z))}; Z=g.tW(f,F)})).U3(function(I){if(I instanceof vl){var p; (p=Z)==null||p.abort()}return Sy(I)})}; g.vR=function(f,D,F,Z,I,p){function z(K,k,h){return K.U3(function(y){if(k<=0||hW(y.xhr)===403)return Sy(new cR("Request retried too many times","net.retryexhausted",y.xhr,y));var A=Math.pow(2,F-k+1)*h,V=I>0?Math.min(I,A):A;return H(h).then(function(){p&&p(y,k-1);return z(U4(f,D),k-1,V)})})} function H(K){return new g.b7(function(k){setTimeout(k,K)})} I=I===void 0?-1:I;return z(U4(f,D),F-1,Z)}; cR=function(f,D,F){lX.call(this,f+", errorCode="+D);this.errorCode=D;this.xhr=F;this.name="PromiseAjaxError"}; ecX=function(f){this.xhr=f}; ag=function(f){this.Y=f===void 0?null:f;this.B=0;this.J=null}; Gr=function(f){var D=new ag;f=f===void 0?null:f;D.B=2;D.J=f===void 0?null:f;return D}; wo=function(f){var D=new ag;f=f===void 0?null:f;D.B=1;D.J=f===void 0?null:f;return D}; g.ro=function(f,D,F,Z,I){WR||BR.set(""+f,D,{AA:F,path:"/",domain:Z===void 0?"youtube.com":Z,secure:I===void 0?!1:I})}; g.LO=function(f,D){if(!WR)return BR.get(""+f,D)}; g.lL=function(f,D,F){WR||BR.remove(""+f,D===void 0?"/":D,F===void 0?"youtube.com":F)}; x4X=function(){if(!BR.isEnabled())return!1;if(!BR.isEmpty())return!0;BR.set("TESTCOOKIESENABLED","1",{AA:60});if(BR.get("TESTCOOKIESENABLED")!=="1")return!1;BR.remove("TESTCOOKIESENABLED");return!0}; g.Q=function(f,D){if(f)return f[D.name]}; E4=function(f){var D=g.nc("INNERTUBE_HOST_OVERRIDE");D&&(f=String(D)+String(C8(f)));return f}; XlJ=function(f){var D={};g.CO("json_condensed_response")&&(D.prettyPrint="false");return f=q1(f,D)}; JW=function(f,D){var F=F===void 0?{}:F;f={method:D===void 0?"POST":D,mode:HR(f)?"same-origin":"cors",credentials:HR(f)?"same-origin":"include"};D={};for(var Z=g.a(Object.keys(F)),I=Z.next();!I.done;I=Z.next())I=I.value,F[I]&&(D[I]=F[I]);Object.keys(D).length>0&&(f.headers=D);return f}; uL=function(){var f=/Chrome\/(\d+)/.exec(g.DM());return f?parseFloat(f[1]):NaN}; N1=function(){var f=/\sCobalt\/(\S+)\s/.exec(g.DM());if(!f)return NaN;var D=[];f=g.a(f[1].split("."));for(var F=f.next();!F.done;F=f.next())F=parseInt(F.value,10),F>=0&&D.push(F);return parseFloat(D.join("."))}; et=function(){return g.go("android")&&g.go("chrome")&&!(g.go("trident/")||g.go("edge/"))&&!g.go("cobalt")}; g.xo=function(){return g.go("cobalt")}; Xm=function(){return g.go("cobalt")&&g.go("appletv")}; O4=function(){return g.go("(ps3; leanback shell)")||g.go("ps3")&&g.xo()}; OzI=function(){return g.go("(ps4; leanback shell)")||g.go("ps4")&&g.xo()}; g.nQJ=function(){return g.xo()&&(g.go("ps4 vr")||g.go("ps4 pro vr"))}; nO=function(){var f=/WebKit\/([0-9]+)/.exec(g.DM());return!!(f&&parseInt(f[1],10)>=600)}; Yo=function(){var f=/WebKit\/([0-9]+)/.exec(g.DM());return!!(f&&parseInt(f[1],10)>=602)}; YDD=function(){return g.go("iemobile")||g.go("windows phone")&&g.go("edge")}; D8=function(){return(PR||fC)&&g.go("applewebkit")&&!g.go("version")&&(!g.go("safari")||g.go("gsa/"))}; Z8=function(){return g.Fq&&g.go("version/")}; I8=function(){return g.go("smart-tv")&&g.go("samsung")}; g.go=function(f){var D=g.DM();return D?D.toLowerCase().indexOf(f)>=0:!1}; pC=function(){return M9a()||D8()||Z8()?!0:g.nc("EOM_VISITOR_DATA")?!1:!0}; zf=function(f,D){return D===void 0||D===null?f:D==="1"||D===!0||D===1||D==="True"?!0:!1}; sg=function(f,D,F){for(var Z in F)if(F[Z]==D)return F[Z];return f}; qP=function(f,D){return D===void 0||D===null?f:Number(D)}; H6=function(f,D){return D===void 0||D===null?f:D.toString()}; o8=function(f,D){if(D){if(f==="fullwidth")return Infinity;if(f==="fullheight")return 0}return f&&(D=f.match(P7J))&&(f=Number(D[2]),D=Number(D[1]),!isNaN(f)&&!isNaN(D)&&f>0)?D/f:NaN}; KC=function(f){var D=f.docid||f.video_id||f.videoId||f.id;if(D)return D;D=f.raw_player_response;D||(f=f.player_response)&&(D=JSON.parse(f));return D&&D.videoDetails&&D.videoDetails.videoId||null}; fEE=function(f){return kj(f,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.jM=function(f){return f==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||f==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; kj=function(f,D){D=(D===void 0?0:D)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(D="EMBEDDED_PLAYER_MODE_PFL");var F=f.raw_embedded_player_response;if(!F&&(f=f.embedded_player_response))try{F=JSON.parse(f)}catch(Z){return D}return F?sg(D,F.embeddedPlayerMode,DWa):D}; hX=function(f){lX.call(this,f.message||f.description||f.name);this.isMissing=f instanceof iq;this.isTimeout=f instanceof cR&&f.errorCode=="net.timeout";this.isCanceled=f instanceof vl}; iq=function(){lX.call(this,"Biscotti ID is missing from server")}; Fca=function(){if(g.CO("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!pC())return Error("User has not consented - not fetching biscotti id.");var f=g.nc("PLAYER_VARS",{});if(g.S5(f,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(fEE(f))return Error("Biscotti id fetching has been disabled for pfl.")}; z3f=function(){var f=Fca();if(f!==void 0)return Sy(f);ym||(ym=U4("//googleads.g.doubleclick.net/pagead/id",ZQf).then(IED).U3(function(D){return pcT(2,D)})); return ym}; IED=function(f){f=f.xhr.responseText;if(!gU(f,")]}'"))throw new iq;f=JSON.parse(f.substr(4));if((f.type||1)>1)throw new iq;f=f.id;RcI(f);ym=wo(f);s5u(18E5,2);return f}; pcT=function(f,D){D=new hX(D);RcI("");ym=Gr(D);f>0&&s5u(12E4,f-1);throw D;}; s5u=function(f,D){g.AW(function(){U4("//googleads.g.doubleclick.net/pagead/id",ZQf).then(IED,function(F){return pcT(D,F)}).U3(g.u5)},f)}; qew=function(){try{var f=g.QY("yt.ads.biscotti.getId_");return f?f():z3f()}catch(D){return Sy(D)}}; oBT=function(f){f&&(f.dataset?f.dataset[HQJ()]="true":M0s(f))}; Kcu=function(f){return f?f.dataset?f.dataset[HQJ()]:f.getAttribute("data-loaded"):null}; HQJ=function(){return kdu.loaded||(kdu.loaded="loaded".replace(/\-([a-z])/g,function(f,D){return D.toUpperCase()}))}; j5w=function(){var f=document;if("visibilityState"in f)return f.visibilityState;var D=AX+"VisibilityState";if(D in f)return f[D]}; Vm=function(f,D){var F;PV(f,function(Z){F=D[Z];return!!F}); return F}; R8=function(f){if(f.requestFullscreen)f=f.requestFullscreen(void 0);else if(f.webkitRequestFullscreen)f=f.webkitRequestFullscreen();else if(f.mozRequestFullScreen)f=f.mozRequestFullScreen();else if(f.msRequestFullscreen)f=f.msRequestFullscreen();else if(f.webkitEnterFullscreen)f=f.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return f instanceof Promise?f:Promise.resolve()}; CC=function(f){var D;g.d0()?Qm()==f&&(D=document):D=f;return D&&(f=Vm(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],D))?(D=f.call(D),D instanceof Promise?D:Promise.resolve()):Promise.resolve()}; iQc=function(f){return g.NC(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(D){return"on"+D.toLowerCase()in f})}; h3X=function(){var f=document;return g.NC(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(D){return"on"+D.toLowerCase()in f})}; g.d0=function(){return!!Vm(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; Qm=function(f){f=f===void 0?!1:f;var D=Vm(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(f)for(;D&&D.shadowRoot;)D=D.shadowRoot.fullscreenElement;return D?D:null}; mW=function(f){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(f=f||window.event){this.event=f;for(var D in f)D in yif||(this[D]=f[D]);this.scale=f.scale;this.rotation=f.rotation;var F=f.target||f.srcElement;F&&F.nodeType==3&&(F=F.parentNode);this.target=F;var Z=f.relatedTarget; if(Z)try{Z=Z.nodeName?Z:null}catch(I){Z=null}else this.type=="mouseover"?Z=f.fromElement:this.type=="mouseout"&&(Z=f.toElement);this.relatedTarget=Z;this.clientX=f.clientX!=void 0?f.clientX:f.pageX;this.clientY=f.clientY!=void 0?f.clientY:f.pageY;this.keyCode=f.keyCode?f.keyCode:f.which;this.charCode=f.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=f.altKey;this.ctrlKey=f.ctrlKey;this.shiftKey=f.shiftKey;this.metaKey=f.metaKey;this.Y=f.pageX;this.J=f.pageY}}catch(I){}}; AiT=function(f){if(document.body&&document.documentElement){var D=document.body.scrollTop+document.documentElement.scrollTop;f.Y=f.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);f.J=f.clientY+D}}; $Ws=function(f,D,F,Z){Z=Z===void 0?{}:Z;f.addEventListener&&(D!="mouseenter"||"onmouseenter"in document?D!="mouseleave"||"onmouseenter"in document?D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"):D="mouseout":D="mouseover");return Mf(Tf,function(I){var p=typeof I[4]==="boolean"&&I[4]==!!Z,z=g.tv(I[4])&&g.tv(Z)&&g.cO(I[4],Z);return!!I.length&&I[0]==f&&I[1]==D&&I[2]==F&&(p||z)})}; g.bq=function(f,D,F,Z){Z=Z===void 0?{}:Z;if(!f||!f.addEventListener&&!f.attachEvent)return"";var I=$Ws(f,D,F,Z);if(I)return I;I=++Vvf.count+"";var p=!(D!="mouseenter"&&D!="mouseleave"||!f.addEventListener||"onmouseenter"in document);var z=p?function(H){H=new mW(H);if(!wL(H.relatedTarget,function(K){return K==f},!0))return H.currentTarget=f,H.type=D,F.call(f,H)}:function(H){H=new mW(H); H.currentTarget=f;return F.call(f,H)}; z=g.DK(z);f.addEventListener?(D=="mouseenter"&&p?D="mouseover":D=="mouseleave"&&p?D="mouseout":D=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(D="MozMousePixelScroll"),R3a()||typeof Z==="boolean"?f.addEventListener(D,z,Z):f.addEventListener(D,z,!!Z.capture)):f.attachEvent("on"+D,z);Tf[I]=[f,D,F,z,Z];return I}; Q5T=function(f){return dWD(f,function(D){return g.Zy(D,"ytp-ad-has-logging-urls")})}; dWD=function(f,D){var F=document.body||document;return g.bq(F,"click",function(Z){var I=wL(Z.target,function(p){return p===F||D(p)},!0); I&&I!==F&&!I.disabled&&(Z.currentTarget=I,f.call(I,Z))})}; g.MP=function(f){f&&(typeof f=="string"&&(f=[f]),g.hC(f,function(D){if(D in Tf){var F=Tf[D],Z=F[0],I=F[1],p=F[3];F=F[4];Z.removeEventListener?R3a()||typeof F==="boolean"?Z.removeEventListener(I,p,F):Z.removeEventListener(I,p,!!F.capture):Z.detachEvent&&Z.detachEvent("on"+I,p);delete Tf[D]}}))}; tX=function(f){for(var D in Tf)Tf[D][0]==f&&g.MP(D)}; SM=function(f){f=f||window.event;var D;f.composedPath&&typeof f.composedPath==="function"?D=f.composedPath():D=f.path;D&&D.length?f=D[0]:(f=f||window.event,f=f.target||f.srcElement,f.nodeType==3&&(f=f.parentNode));return f}; c6=function(f){this.S=f;this.Y=null;this.G=0;this.T=null;this.X=0;this.J=[];for(f=0;f<4;f++)this.J.push(0);this.B=0;this.KQ=g.bq(window,"mousemove",(0,g.aU)(this.Jb,this));this.N=g.$o((0,g.aU)(this.Bs,this),25)}; Ug=function(f){g.J.call(this);this.T=[];this.Uq=f||this}; v6=function(f,D,F,Z){for(var I=0;I0?F:0;F=Z?Date.now()+Z*1E3:0;if((Z=Z?g.Gf.Q6():g.Gf.Jh())&&window.JSON){typeof D!=="string"&&(D=JSON.stringify(D,void 0));try{Z.set(f,D,F)}catch(I){Z.remove(f)}}}; g.W6=function(f){var D=g.Gf.Jh(),F=g.Gf.Q6();if(!D&&!F||!window.JSON)return null;try{var Z=D.get(f)}catch(I){}if(typeof Z!=="string")try{Z=F.get(f)}catch(I){}if(typeof Z!=="string")return null;try{Z=JSON.parse(Z,void 0)}catch(I){}return Z}; mWX=function(){var f=g.Gf.Q6();if(f&&(f=f.nI("yt-player-quality")))return f.creation}; g.B6=function(f){try{var D=g.Gf.Jh(),F=g.Gf.Q6();D&&D.remove(f);F&&F.remove(f)}catch(Z){}}; g.r0=function(){return g.W6("yt-remote-session-screen-id")}; THs=function(f){var D=this;this.J=void 0;this.Y=!1;f.addEventListener("beforeinstallprompt",function(F){F.preventDefault();D.J=F}); f.addEventListener("appinstalled",function(){D.Y=!0},{once:!0})}; LC=function(){if(!g.RU.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.RU.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.RU.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.RU.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.RU.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(f){return"WEB_DISPLAY_MODE_UNKNOWN"}}; lq=function(){this.Qf=!0}; bQw=function(){lq.instance||(lq.instance=new lq);return lq.instance}; MvE=function(f){switch(f){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}}; tvI=function(){this.Y=g.nc("ALT_PREF_COOKIE_NAME","PREF");this.J=g.nc("ALT_PREF_COOKIE_DOMAIN","youtube.com");var f=g.LO(this.Y);f&&this.parse(f)}; g.JX=function(){Eg||(Eg=new tvI);return Eg}; NP=function(f,D){var F="f"+(Math.floor(f/31)+1);f=1<10&&qS.shift()))}; ot=function(f,D){ze||(sX?sX.logEvent(f,D):(qS.push({type:"EVENT",eventType:f,payload:D}),qS.length>10&&qS.shift()))}; K0=function(f){if(f.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; kb=function(f){return f.substr(0,f.indexOf(":"))||f}; g.jF=function(f,D,F,Z,I){D=D===void 0?{}:D;F=F===void 0?WcT[f]:F;Z=Z===void 0?BHu[f]:Z;I=I===void 0?ria[f]:I;g.by.call(this,F,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:f},D));this.type=f;this.message=F;this.level=Z;this.Y=I;Object.setPrototypeOf(this,g.jF.prototype)}; iu=function(f,D){g.jF.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:D,foundObjectStores:f},WcT.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,iu.prototype)}; h2=function(f,D){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.index=f;this.objectStore=D;Object.setPrototypeOf(this,h2.prototype)}; A2=function(f,D,F,Z){D=kb(D);var I=f instanceof Error?f:Error("Unexpected error: "+f);if(I instanceof g.jF)return I;f={objectStoreNames:F,dbName:D,dbVersion:Z};if(I.name==="QuotaExceededError")return new g.jF("QUOTA_EXCEEDED",f);if(g.yy&&I.name==="UnknownError")return new g.jF("QUOTA_MAYBE_EXCEEDED",f);if(I instanceof h2)return new g.jF("MISSING_INDEX",Object.assign({},f,{objectStore:I.objectStore,index:I.index}));if(I.name==="InvalidStateError"&&Lcf.some(function(p){return I.message.includes(p)}))return new g.jF("EXECUTE_TRANSACTION_ON_CLOSED_DB", f); if(I.name==="AbortError")return new g.jF("UNKNOWN_ABORT",f,I.message);I.args=[Object.assign({},f,{name:"IdbError",Vy:I.name})];I.level="WARNING";return I}; g.$b=function(f,D,F){var Z=p0();return new g.jF("IDB_NOT_SUPPORTED",{context:{caller:f,publicName:D,version:F,hasSucceededOnce:Z==null?void 0:Z.hasSucceededOnce}})}; lEa=function(f){if(!f)throw Error();throw f;}; EBd=function(f){return f}; Vy=function(f){this.Y=f}; g.Rt=function(f){function D(I){if(Z.state.status==="PENDING"){Z.state={status:"REJECTED",reason:I};I=g.a(Z.J);for(var p=I.next();!p.done;p=I.next())p=p.value,p()}} function F(I){if(Z.state.status==="PENDING"){Z.state={status:"FULFILLED",value:I};I=g.a(Z.Y);for(var p=I.next();!p.done;p=I.next())p=p.value,p()}} var Z=this;this.state={status:"PENDING"};this.Y=[];this.J=[];f=f.Y;try{f(F,D)}catch(I){D(I)}}; JiD=function(f,D,F,Z,I){try{if(f.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var p=F(f.state.value);p instanceof g.Rt?dt(f,D,p,Z,I):Z(p)}catch(z){I(z)}}; ufD=function(f,D,F,Z,I){try{if(f.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var p=F(f.state.reason);p instanceof g.Rt?dt(f,D,p,Z,I):Z(p)}catch(z){I(z)}}; dt=function(f,D,F,Z,I){D===F?I(new TypeError("Circular promise chain detected.")):F.then(function(p){p instanceof g.Rt?dt(f,D,p,Z,I):Z(p)},function(p){I(p)})}; NHd=function(f,D,F){function Z(){F(f.error);p()} function I(){D(f.result);p()} function p(){try{f.removeEventListener("success",I),f.removeEventListener("error",Z)}catch(z){}} f.addEventListener("success",I);f.addEventListener("error",Z)}; gBT=function(f){return new Promise(function(D,F){NHd(f,D,F)})}; Qy=function(f){return new g.Rt(new Vy(function(D,F){NHd(f,D,F)}))}; C0=function(f,D){return new g.Rt(new Vy(function(F,Z){function I(){var p=f?D(f):null;p?p.then(function(z){f=z;I()},Z):F()} I()}))}; e3T=function(f,D){this.request=f;this.cursor=D}; xWw=function(f){return Qy(f).then(function(D){return D?new e3T(f,D):null})}; g.XcD=function(f){f.cursor.continue(void 0);return xWw(f.request)}; OQd=function(f,D){this.Y=f;this.options=D;this.transactionCount=0;this.B=Math.round((0,g.m5)());this.J=!1}; Te=function(){return g.CO("idb_immediate_commit")}; g.MS=function(f,D,F){f=f.Y.createObjectStore(D,F);return new bu(f)}; t2=function(f,D){f.Y.objectStoreNames.contains(D)&&f.Y.deleteObjectStore(D)}; g.UX=function(f,D,F){return g.SF(f,[D],{mode:"readwrite",QL:!0,commit:Te()},function(Z){return g.cG(Z.objectStore(D),F)})}; g.SF=function(f,D,F,Z){var I,p,z,H,K,k,h,y,A,V,R,m;return g.l(function(b){switch(b.Y){case 1:var U={mode:"readonly",QL:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof F==="string"?U.mode=F:Object.assign(U,F);I=U;f.transactionCount++;p=I.QL?3:1;z=0;case 2:if(H){b.ZE(4);break}z++;K=Math.round((0,g.m5)());g.po(b,5);k=f.Y.transaction(D,I.mode);U=!!I.commit;var S=new vG(k);U=nBd(S,Z,U);return g.r(b,U,7);case 7:return h=b.J,y=Math.round((0,g.m5)()),YeI(f,K,y,z,void 0,D.join(),I),b.return(h);case 5:A=g.He(b); V=Math.round((0,g.m5)());R=A2(A,f.Y.name,D.join(),f.Y.version);if((m=R instanceof g.jF&&!R.Y)||z>=p)YeI(f,K,V,z,R,D.join(),I),H=R;b.ZE(2);break;case 4:return b.return(Promise.reject(H))}})}; YeI=function(f,D,F,Z,I,p,z){D=F-D;I?(I instanceof g.jF&&(I.type==="QUOTA_EXCEEDED"||I.type==="QUOTA_MAYBE_EXCEEDED")&&ot("QUOTA_EXCEEDED",{dbName:kb(f.Y.name),objectStoreNames:p,transactionCount:f.transactionCount,transactionMode:z.mode}),I instanceof g.jF&&I.type==="UNKNOWN_ABORT"&&(F-=f.B,F<0&&F>=2147483648&&(F=0),ot("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:p,transactionDuration:D,transactionCount:f.transactionCount,dbDuration:F}),f.J=!0),Pkd(f,!1,Z,p,D,z.tag),HG(I)):Pkd(f,!0,Z,p,D, z.tag)}; Pkd=function(f,D,F,Z,I,p){ot("TRANSACTION_ENDED",{objectStoreNames:Z,connectionHasUnknownAbortedTransaction:f.J,duration:I,isSuccessful:D,tryCount:F,tag:p===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":p})}; bu=function(f){this.Y=f}; g.at=function(f,D,F){f.Y.createIndex(D,F,{unique:!1})}; fzd=function(f,D){return g.Ge(f,{query:D},function(F){return F.delete().then(function(){return g.wt(F)})}).then(function(){})}; DLa=function(f,D,F){var Z=[];return g.Ge(f,{query:D},function(I){if(!(F!==void 0&&Z.length>=F))return Z.push(I.getValue()),g.wt(I)}).then(function(){return Z})}; Zka=function(f){return"getAllKeys"in IDBObjectStore.prototype?Qy(f.Y.getAllKeys(void 0,void 0)):FPD(f)}; FPD=function(f){var D=[];return g.Iza(f,{query:void 0},function(F){D.push(F.cursor.primaryKey);return g.XcD(F)}).then(function(){return D})}; g.cG=function(f,D,F){return Qy(f.Y.put(D,F))}; g.Ge=function(f,D,F){f=f.Y.openCursor(D.query,D.direction);return WG(f).then(function(Z){return C0(Z,F)})}; g.Iza=function(f,D,F){var Z=D.query;D=D.direction;f="openKeyCursor"in IDBObjectStore.prototype?f.Y.openKeyCursor(Z,D):f.Y.openCursor(Z,D);return xWw(f).then(function(I){return C0(I,F)})}; vG=function(f){var D=this;this.Y=f;this.J=new Map;this.aborted=!1;this.done=new Promise(function(F,Z){D.Y.addEventListener("complete",function(){F()}); D.Y.addEventListener("error",function(I){I.currentTarget===I.target&&Z(D.Y.error)}); D.Y.addEventListener("abort",function(){var I=D.Y.error;if(I)Z(I);else if(!D.aborted){I=g.jF;for(var p=D.Y.objectStoreNames,z=[],H=0;H=F))return Z.push(I.getValue()),g.wt(I)}).then(function(){return Z})}; g.BG=function(f,D,F){f=f.Y.openCursor(D.query===void 0?null:D.query,D.direction===void 0?"next":D.direction);return WG(f).then(function(Z){return C0(Z,F)})}; rt=function(f,D){this.request=f;this.cursor=D}; WG=function(f){return Qy(f).then(function(D){return D?new rt(f,D):null})}; g.wt=function(f){f.cursor.continue(void 0);return WG(f.request)}; squ=function(f,D,F){return new Promise(function(Z,I){function p(){A||(A=new OQd(z.result,{closed:y}));return A} var z=D!==void 0?self.indexedDB.open(f,D):self.indexedDB.open(f);var H=F.blocked,K=F.blocking,k=F.SGE,h=F.upgrade,y=F.closed,A;z.addEventListener("upgradeneeded",function(V){try{if(V.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(z.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");V.dataLoss&&V.dataLoss!=="none"&&ot("IDB_DATA_CORRUPTED",{reason:V.dataLossMessage||"unknown reason",dbName:kb(f)});var R=p(),m=new vG(z.transaction); h&&h(R,function(b){return V.oldVersion=b},m); m.done.catch(function(b){I(b)})}catch(b){I(b)}}); z.addEventListener("success",function(){var V=z.result;K&&V.addEventListener("versionchange",function(){K(p())}); V.addEventListener("close",function(){ot("IDB_UNEXPECTEDLY_CLOSED",{dbName:kb(f),dbVersion:V.version});k&&k()}); Z(p())}); z.addEventListener("error",function(){I(z.error)}); H&&z.addEventListener("blocked",function(){H()})})}; qGu=function(f,D,F){F=F===void 0?{}:F;return squ(f,D,F)}; L0=function(f,D){D=D===void 0?{}:D;var F,Z,I,p;return g.l(function(z){if(z.Y==1)return g.po(z,2),F=self.indexedDB.deleteDatabase(f),Z=D,(I=Z.blocked)&&F.addEventListener("blocked",function(){I()}),g.r(z,gBT(F),4); if(z.Y!=2)return g.qC(z,0);p=g.He(z);throw A2(p,f,"",-1);})}; lu=function(f,D){this.name=f;this.options=D;this.B=!0;this.X=this.G=0}; Hkd=function(f,D){return new g.jF("INCOMPATIBLE_DB_VERSION",{dbName:f.name,oldVersion:f.options.version,newVersion:D})}; g.EX=function(f,D){if(!D)throw g.$b("openWithToken",kb(f.name));return f.open()}; oXu=function(f,D){var F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,g.EX(J2,D),2);F=Z.J;return Z.return(g.SF(F,["databases"],{QL:!0,mode:"readwrite"},function(I){var p=I.objectStore("databases");return p.get(f.actualName).then(function(z){if(z?f.actualName!==z.actualName||f.publicName!==z.publicName||f.userIdentifier!==z.userIdentifier:1)return g.cG(p,f).then(function(){})})}))})}; uu=function(f,D){var F;return g.l(function(Z){if(Z.Y==1)return f?g.r(Z,g.EX(J2,D),2):Z.return();F=Z.J;return Z.return(F.delete("databases",f))})}; KPJ=function(f,D){var F,Z;return g.l(function(I){return I.Y==1?(F=[],g.r(I,g.EX(J2,D),2)):I.Y!=3?(Z=I.J,g.r(I,g.SF(Z,["databases"],{QL:!0,mode:"readonly"},function(p){F.length=0;return g.Ge(p.objectStore("databases"),{},function(z){f(z.getValue())&&F.push(z.getValue());return g.wt(z)})}),3)):I.return(F)})}; kEI=function(f,D){return KPJ(function(F){return F.publicName===f&&F.userIdentifier!==void 0},D)}; jqD=function(){var f,D,F;return g.l(function(Z){switch(Z.Y){case 1:f=p0();if((D=f)==null?0:D.hasSucceededOnce)return Z.return(!0);var I;if(!(I=NS&&nO()&&!Yo()||g.gt)){try{I=self;var p=!!(I.indexedDB&&I.IDBIndex&&I.IDBKeyRange&&I.IDBObjectStore)}catch(z){p=!1}I=!p}if(I||!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Z.return(!1);g.po(Z,2);F={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return g.r(Z,oXu(F,eF),4);case 4:return g.r(Z, uu("yt-idb-test-do-not-use",eF),5);case 5:return Z.return(!0);case 2:return g.He(Z),Z.return(!1)}})}; ikD=function(){if(xb!==void 0)return xb;ze=!0;return xb=jqD().then(function(f){ze=!1;var D;if((D=It())!=null&&D.Y){var F;D={hasSucceededOnce:((F=p0())==null?void 0:F.hasSucceededOnce)||f};var Z;(Z=It())==null||Z.set("LAST_RESULT_ENTRY_KEY",D,2592E3,!0)}return f})}; n0=function(){return g.QY("ytglobal.idbToken_")||void 0}; g.Yb=function(){var f=n0();return f?Promise.resolve(f):ikD().then(function(D){D?(g.dE("ytglobal.idbToken_",eF),D=eF):D=void 0;return D})}; hPX=function(f){if(!g.Xq())throw f=new g.jF("AUTH_INVALID",{dbName:f}),HG(f),f;var D=g.xj();return{actualName:f+":"+D,publicName:f,userIdentifier:D}}; yff=function(f,D,F,Z){var I,p,z,H,K,k;return g.l(function(h){switch(h.Y){case 1:return p=(I=Error().stack)!=null?I:"",g.r(h,g.Yb(),2);case 2:z=h.J;if(!z)throw H=g.$b("openDbImpl",f,D),g.CO("ytidb_async_stack_killswitch")||(H.stack=H.stack+"\n"+p.substring(p.indexOf("\n")+1)),HG(H),H;K0(f);K=F?{actualName:f,publicName:f,userIdentifier:void 0}:hPX(f);g.po(h,3);return g.r(h,oXu(K,z),5);case 5:return g.r(h,qGu(K.actualName,D,Z),6);case 6:return h.return(h.J);case 3:return k=g.He(h),g.po(h,7),g.r(h,uu(K.actualName, z),9);case 9:g.qC(h,8);break;case 7:g.He(h);case 8:throw k;}})}; AfE=function(f,D,F){F=F===void 0?{}:F;return yff(f,D,!1,F)}; $Ld=function(f,D,F){F=F===void 0?{}:F;return yff(f,D,!0,F)}; V$X=function(f,D){D=D===void 0?{}:D;var F,Z;return g.l(function(I){if(I.Y==1)return g.r(I,g.Yb(),2);if(I.Y!=3){F=I.J;if(!F)return I.return();K0(f);Z=hPX(f);return g.r(I,L0(Z.actualName,D),3)}return g.r(I,uu(Z.actualName,F),0)})}; RPI=function(f,D,F){f=f.map(function(Z){return g.l(function(I){return I.Y==1?g.r(I,L0(Z.actualName,D),2):g.r(I,uu(Z.actualName,F),0)})}); return Promise.all(f).then(function(){})}; dLI=function(f){var D=D===void 0?{}:D;var F,Z;return g.l(function(I){if(I.Y==1)return g.r(I,g.Yb(),2);if(I.Y!=3){F=I.J;if(!F)return I.return();K0(f);return g.r(I,kEI(f,F),3)}Z=I.J;return g.r(I,RPI(Z,D,F),0)})}; QqD=function(f,D){D=D===void 0?{}:D;var F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,g.Yb(),2);if(Z.Y!=3){F=Z.J;if(!F)return Z.return();K0(f);return g.r(Z,L0(f,D),3)}return g.r(Z,uu(f,F),0)})}; PG=function(f,D){lu.call(this,f,D);this.options=D;K0(f)}; CPJ=function(f,D){var F;return function(){F||(F=new PG(f,D));return F}}; g.fl=function(f,D){return CPJ(f,D)}; D3=function(f){return g.EX(mLc(),f)}; TSJ=function(f,D,F,Z){var I,p,z;return g.l(function(H){switch(H.Y){case 1:return I={config:f,hashData:D,timestamp:Z!==void 0?Z:(0,g.m5)()},g.r(H,D3(F),2);case 2:return p=H.J,g.r(H,p.clear("hotConfigStore"),3);case 3:return g.r(H,g.UX(p,"hotConfigStore",I),4);case 4:return z=H.J,H.return(z)}})}; bkI=function(f,D,F,Z,I){var p,z,H;return g.l(function(K){switch(K.Y){case 1:return p={config:f,hashData:D,configData:F,timestamp:I!==void 0?I:(0,g.m5)()},g.r(K,D3(Z),2);case 2:return z=K.J,g.r(K,z.clear("coldConfigStore"),3);case 3:return g.r(K,g.UX(z,"coldConfigStore",p),4);case 4:return H=K.J,K.return(H)}})}; M$D=function(f){var D,F;return g.l(function(Z){return Z.Y==1?g.r(Z,D3(f),2):Z.Y!=3?(D=Z.J,F=void 0,g.r(Z,g.SF(D,["coldConfigStore"],{mode:"readwrite",QL:!0},function(I){return g.BG(I.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(p){F=p.getValue()})}),3)):Z.return(F)})}; t$a=function(f){var D,F;return g.l(function(Z){return Z.Y==1?g.r(Z,D3(f),2):Z.Y!=3?(D=Z.J,F=void 0,g.r(Z,g.SF(D,["hotConfigStore"],{mode:"readwrite",QL:!0},function(I){return g.BG(I.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(p){F=p.getValue()})}),3)):Z.return(F)})}; SGs=function(){return g.l(function(f){return g.r(f,dLI("ytGcfConfig"),0)})}; FO=function(){g.J.call(this);this.J=[];this.Y=[];var f=g.QY("yt.gcf.config.hotUpdateCallbacks");f?(this.J=[].concat(g.w(f)),this.Y=f):(this.Y=[],g.dE("yt.gcf.config.hotUpdateCallbacks",this.Y))}; qc=function(){var f=this;this.X=!1;this.B=this.G=0;this.T=new FO;this.ej={M4I:function(){f.X=!0}, mGs:function(){return f.Y}, g9b:function(D){Z3(f,D)}, uI:function(D){f.uI(D)}, jEQ:function(D){IS(f,D)}, oW:function(){return f.coldHashData}, HS:function(){return f.hotHashData}, gTr:function(){return f.J}, rPF:function(){return pl()}, j03:function(){return zz()}, W1b:function(){return g.QY("yt.gcf.config.coldHashData")}, kyT:function(){return g.QY("yt.gcf.config.hotHashData")}, Jxx:function(){cfd(f)}, zgo:function(){f.uI(void 0);s2(f);delete qc.instance}, NJb:function(D){f.B=D}, Iey:function(){return f.B}}}; ULc=function(){if(!qc.instance){var f=new qc;qc.instance=f}return qc.instance}; GEc=function(f){var D;g.l(function(F){if(F.Y==1)return g.CO("start_client_gcf")||g.CO("delete_gcf_config_db")?g.CO("start_client_gcf")?g.r(F,g.Yb(),3):F.ZE(2):F.return();F.Y!=2&&((D=F.J)&&g.Xq()&&!g.CO("delete_gcf_config_db")?(f.X=!0,cfd(f)):(vXX(f),azd(f)));return g.CO("delete_gcf_config_db")?g.r(F,SGs(),0):F.ZE(0)})}; HH=function(){var f;return(f=zz())!=null?f:g.nc("RAW_HOT_CONFIG_GROUP")}; wbE=function(f){var D,F,Z,I,p,z;return g.l(function(H){switch(H.Y){case 1:if(f.J)return H.return(zz());if(!f.X)return D=g.$b("getHotConfig IDB not initialized"),Fm(D),H.return(Promise.reject(D));F=n0();Z=g.nc("TIME_CREATED_MS");if(!F){I=g.$b("getHotConfig token error");Fm(I);H.ZE(2);break}return g.r(H,t$a(F),3);case 3:if((p=H.J)&&p.timestamp>Z)return Z3(f,p.config),f.uI(p.hashData),H.return(zz());case 2:azd(f);if(!(F&&f.J&&f.hotHashData)){H.ZE(4);break}return g.r(H,TSJ(f.J,f.hotHashData,F,Z),4);case 4:return f.J? H.return(zz()):(z=new g.by("Config not available in ytConfig"),Fm(z),H.return(Promise.reject(z)))}})}; BSs=function(f){var D,F,Z,I,p,z;return g.l(function(H){switch(H.Y){case 1:if(f.Y)return H.return(pl());if(!f.X)return D=g.$b("getColdConfig IDB not initialized"),Fm(D),H.return(Promise.reject(D));F=n0();Z=g.nc("TIME_CREATED_MS");if(!F){I=g.$b("getColdConfig");Fm(I);H.ZE(2);break}return g.r(H,M$D(F),3);case 3:if((p=H.J)&&p.timestamp>Z)return IS(f,p.config),WPd(f,p.configData),s2(f,p.hashData),H.return(pl());case 2:vXX(f);if(!(F&&f.Y&&f.coldHashData&&f.configData)){H.ZE(4);break}return g.r(H,bkI(f.Y, f.coldHashData,f.configData,F,Z),4);case 4:return f.Y?H.return(pl()):(z=new g.by("Config not available in ytConfig"),Fm(z),H.return(Promise.reject(z)))}})}; cfd=function(f){if(!f.J||!f.Y){if(!n0()){var D=g.$b("scheduleGetConfigs");Fm(D)}f.G||(f.G=g.lP.vp(function(){return g.l(function(F){switch(F.Y){case 1:return g.po(F,2),g.r(F,wbE(f),4);case 4:g.qC(F,3);break;case 2:g.He(F);case 3:return g.po(F,5),g.r(F,BSs(f),7);case 7:g.qC(F,6);break;case 5:g.He(F);case 6:f.G&&(f.G=0),g.Zb(F)}})},100))}}; rfy=function(f,D,F){var Z,I,p;return g.l(function(z){switch(z.Y){case 1:if(!g.CO("start_client_gcf")){z.ZE(0);break}F&&Z3(f,F);f.uI(D);Z=n0();if(!Z){z.ZE(3);break}if(F){z.ZE(4);break}return g.r(z,t$a(Z),5);case 5:I=z.J,F=(p=I)==null?void 0:p.config;case 4:return g.r(z,TSJ(F,D,Z),3);case 3:if(F)for(var H=F,K=g.a(f.T.Y),k=K.next();!k.done;k=K.next())k=k.value,k(H);g.Zb(z)}})}; LPD=function(f,D,F){var Z,I,p,z;return g.l(function(H){if(H.Y==1){if(!g.CO("start_client_gcf"))return H.ZE(0);s2(f,D);return(Z=n0())?F?H.ZE(4):g.r(H,M$D(Z),5):H.ZE(0)}H.Y!=4&&(I=H.J,F=(p=I)==null?void 0:p.config);if(!F)return H.ZE(0);z=F.configData;return g.r(H,bkI(F,D,z,Z),0)})}; lza=function(){var f=ULc(),D=(0,g.m5)()-f.B;if(!(f.B!==0&&D0&&(D.request={internalExperimentFlags:F});Jfa(f,void 0,D);uEJ(void 0,D);NSD(void 0,D);gXu(f,void 0,D);ePw(void 0,D);g.CO("start_client_gcf")&&xLf(void 0,D);g.nc("DELEGATED_SESSION_ID")&& !g.CO("pageid_as_header_web")&&(D.user={onBehalfOfUser:g.nc("DELEGATED_SESSION_ID")});!g.CO("fill_delegate_context_in_gel_killswitch")&&(f=g.nc("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(D.user=Object.assign({},D.user,{serializedDelegationContext:f}));f=g.nc("INNERTUBE_CONTEXT");var Z;if(g.CO("enable_persistent_device_token")&&(f==null?0:(Z=f.client)==null?0:Z.rolloutToken)){var I;D.client.rolloutToken=f==null?void 0:(I=f.client)==null?void 0:I.rolloutToken}Z=Object;I=Z.assign;f=D.client; F={};for(var p=g.a(Object.entries(iy(g.nc("DEVICE","")))),z=p.next();!z.done;z=p.next()){var H=g.a(z.value);z=H.next().value;H=H.next().value;z==="cbrand"?F.deviceMake=H:z==="cmodel"?F.deviceModel=H:z==="cbr"?F.browserName=H:z==="cbrver"?F.browserVersion=H:z==="cos"?F.osName=H:z==="cosver"?F.osVersion=H:z==="cplatform"&&(F.platform=H)}D.client=I.call(Z,f,F);return D}; Jfa=function(f,D,F){f=f.Rj;if(f==="WEB"||f==="MWEB"||f===1||f===2)if(D){F=r9(D,vY,96)||new vY;var Z=LC();Z=Object.keys(Xbu).indexOf(Z);Z=Z===-1?null:Z;Z!==null&&fA(F,3,Z);E8(D,vY,96,F)}else F&&(F.client.mainAppWebInfo=(Z=F.client.mainAppWebInfo)!=null?Z:{},F.client.mainAppWebInfo.webDisplayMode=LC())}; uEJ=function(f,D){var F=g.QY("yt.embedded_player.embed_url");F&&(f?(D=r9(f,BY,7)||new BY,Y0(D,4,F),E8(f,BY,7,D)):D&&(D.thirdParty={embedUrl:F}))}; NSD=function(f,D){var F;if(g.CO("web_log_memory_total_kbytes")&&((F=g.RU.navigator)==null?0:F.deviceMemory)){var Z;F=(Z=g.RU.navigator)==null?void 0:Z.deviceMemory;f?Az(f,95,lW(F*1E6)):D&&(D.client.memoryTotalKbytes=""+F*1E6)}}; gXu=function(f,D,F){if(f.appInstallData)if(D){var Z;F=(Z=r9(D,Ut,62))!=null?Z:new Ut;Y0(F,6,f.appInstallData);E8(D,Ut,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},F.client.configInfo.appInstallData=f.appInstallData)}; ePw=function(f,D){var F=vBc();F&&(f?fA(f,61,Oku[F]):D&&(D.client.connectionType=F));g.CO("web_log_effective_connection_type")&&(F=GdD())&&(f?fA(f,94,nXd[F]):D&&(D.client.effectiveConnectionType=F))}; YGc=function(f,D,F){F=F===void 0?{}:F;var Z={};g.nc("EOM_VISITOR_DATA")?Z={"X-Goog-EOM-Visitor-Id":g.nc("EOM_VISITOR_DATA")}:Z={"X-Goog-Visitor-Id":F.visitorData||g.nc("VISITOR_DATA","")};if(D&&D.includes("www.youtube-nocookie.com"))return Z;D=F.rj||g.nc("AUTHORIZATION");D||(f?D="Bearer "+g.QY("gapi.auth.getToken")().access_token:(f=bQw().Sc(kh),g.CO("pageid_as_header_web")||delete f["X-Goog-PageId"],Z=Object.assign({},Z,f)));D&&(Z.Authorization=D);return Z}; xLf=function(f,D){var F=lza();if(F){var Z=F.coldConfigData,I=F.coldHashData;F=F.hotHashData;if(f){var p;D=(p=r9(f,Ut,62))!=null?p:new Ut;Z=Y0(D,1,Z);Y0(Z,3,I).uI(F);E8(f,Ut,62,D)}else D&&(D.client.configInfo=D.client.configInfo||{},Z&&(D.client.configInfo.coldConfigData=Z),I&&(D.client.configInfo.coldHashData=I),F&&(D.client.configInfo.hotHashData=F))}}; i_=function(f,D){this.version=f;this.args=D}; hT=function(f,D){this.topic=f;this.Y=D}; AT=function(f,D){var F=yS();F&&F.publish.call(F,f.toString(),f,D)}; DIs=function(f){var D=PPs,F=yS();if(!F)return 0;var Z=F.subscribe(D.toString(),function(I,p){var z=g.QY("ytPubsub2Pubsub2SkipSubKey");z&&z==Z||(z=function(){if($h[Z])try{if(p&&D instanceof hT&&D!=I)try{var H=D.Y,K=p;if(!K.args||!K.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!H.dJ){var k=new H;H.dJ=k.version}var h=H.dJ}catch(y){}if(!h||K.version!=h)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{p=Reflect.construct(H, g.FI(K.args))}catch(y){throw y.message="yt.pubsub2.Data.deserialize(): "+y.message,y;}}catch(y){throw y.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+D.toString()+": "+y.message,y;}f.call(window,p)}catch(y){g.fO(y)}},fyu[D.toString()]?g.Da()?g.lP.vp(z):g.AW(z,0):z())}); $h[Z]=!0;VS[D.toString()]||(VS[D.toString()]=[]);VS[D.toString()].push(Z);return Z}; IyJ=function(){var f=FQa,D=DIs(function(F){f.apply(void 0,arguments);ZYd(D)}); return D}; ZYd=function(f){var D=yS();D&&(typeof f==="number"&&(f=[f]),g.hC(f,function(F){D.unsubscribeByKey(F);delete $h[F]}))}; yS=function(){return g.QY("ytPubsub2Pubsub2Instance")}; RS=function(f,D,F){F=F===void 0?{sampleRate:.1}:F;Math.random()oaf||z=jCu&&(cH++,b_=!1);iYD(D);Z.headers||(Z.headers={});Z.headers["Content-Encoding"]="gzip";Z.postBody=f;Z.postParams=void 0;I(F,Z)}; y$X=function(f){var D=D===void 0?!1:D;var F=F===void 0?!1:F;var Z=(0,g.m5)(),I={startTime:Z,ticks:{},infos:{}},p=D?g.QY("yt.logging.gzipForFetch",!1):!0;if(b_&&p){if(!f.body)return f;try{var z=F?f.body:typeof f.body==="string"?f.body:JSON.stringify(f.body);p=z;if(!F&&typeof z==="string"){var H=HYy(z);if(H!=null&&(H>oaf||H=jCu)if(cH++,g.CO("abandon_compression_after_N_slow_zips_lr")){D=cH/Sa;var k=hsJ/mI("compression_disable_point");Sa>0&&Sa%mI("compression_disable_point")===0&&D>=k&&(b_=!1)}else b_=!1;iYD(I)}}f.headers=Object.assign({},{"Content-Encoding":"gzip"},f.headers||{});f.body=p;return f}catch(h){return Fm(h),f}}else return f}; HYy=function(f){try{return(new Blob(f.split(""))).size}catch(D){return Fm(D),null}}; iYD=function(f){g.CO("gel_compression_csi_killswitch")||!g.CO("log_gel_compression_latency")&&!g.CO("log_gel_compression_latency_lr")||RS("gel_compression",f,{sampleRate:.1})}; vH=function(f){var D=this;this.j0=this.Y=!1;this.potentialEsfErrorCounter=this.J=0;this.handleError=function(){}; this.x7=function(){}; this.now=Date.now;this.J1=!1;this.ej={Ffr:function(h){D.iY=h}, BbF:function(){D.xQ()}, YS:function(){D.zE()}, xY:function(h){return g.l(function(y){return g.r(y,D.xY(h),0)})}, N_:function(h,y){return D.N_(h,y)}, Qr:function(){D.Qr()}}; var F;this.o1=(F=f.o1)!=null?F:100;var Z;this.L3=(Z=f.L3)!=null?Z:1;var I;this.Wz=(I=f.Wz)!=null?I:2592E6;var p;this.zq=(p=f.zq)!=null?p:12E4;var z;this.oK=(z=f.oK)!=null?z:5E3;var H;this.iY=(H=f.iY)!=null?H:void 0;this.XL=!!f.XL;var K;this.VP=(K=f.VP)!=null?K:.1;var k;this.GM=(k=f.GM)!=null?k:10;f.handleError&&(this.handleError=f.handleError);f.x7&&(this.x7=f.x7);f.J1&&(this.J1=f.J1);f.j0&&(this.j0=f.j0);this.Hs=f.Hs;this.ew=f.ew;this.OE=f.OE;this.IA=f.IA;this.sendFn=f.sendFn;this.eN=f.eN;this.tF= f.tF;U2(this)&&(!this.Hs||this.Hs("networkless_logging"))&&A$w(this)}; A$w=function(f){U2(f)&&!f.J1&&(f.Y=!0,f.XL&&Math.random()<=f.VP&&f.OE.nM(f.iY),f.Qr(),f.IA.Sm()&&f.xQ(),f.IA.listen(f.eN,f.xQ.bind(f)),f.IA.listen(f.tF,f.zE.bind(f)))}; Rsy=function(f,D){if(!U2(f))throw Error("IndexedDB is not supported: updateRequestHandlers");var F=D.options.onError?D.options.onError:function(){}; D.options.onError=function(I,p){var z,H,K,k;return g.l(function(h){switch(h.Y){case 1:z=$ID(p);(H=VkJ(p))&&f.Hs&&f.Hs("web_enable_error_204")&&f.handleError(Error("Request failed due to compression"),D.url,p);if(!(f.Hs&&f.Hs("nwl_consider_error_code")&&z||f.Hs&&!f.Hs("nwl_consider_error_code")&&f.potentialEsfErrorCounter<=f.GM)){h.ZE(2);break}if(!f.IA.Rp){h.ZE(3);break}return g.r(h,f.IA.Rp(),3);case 3:if(f.IA.Sm()){h.ZE(2);break}F(I,p);if(!f.Hs||!f.Hs("nwl_consider_error_code")||((K=D)==null?void 0: K.id)===void 0){h.ZE(6);break}return g.r(h,f.OE.yD(D.id,f.iY,!1),6);case 6:return h.return();case 2:if(f.Hs&&f.Hs("nwl_consider_error_code")&&!z&&f.potentialEsfErrorCounter>f.GM)return h.return();f.potentialEsfErrorCounter++;if(((k=D)==null?void 0:k.id)===void 0){h.ZE(8);break}return D.sendCount=400&&f<=599?!1:!0}; VkJ=function(f){var D;f=f==null?void 0:(D=f.error)==null?void 0:D.code;return!(f!==400&&f!==415)}; dIy=function(){if(Gz)return Gz();var f={};Gz=g.fl("LogsDatabaseV2",{UH:(f.LogsRequestsStore={hv:2},f),shared:!1,upgrade:function(D,F,Z){F(2)&&g.MS(D,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});F(3);F(5)&&(Z=Z.objectStore("LogsRequestsStore"),Z.Y.indexNames.contains("newRequest")&&Z.Y.deleteIndex("newRequest"),g.at(Z,"newRequestV2",["status","interface","timestamp"]));F(7)&&t2(D,"sapisid");F(9)&&t2(D,"SWHealthLog")}, version:9});return Gz()}; wz=function(f){return g.EX(dIy(),f)}; CSX=function(f,D){var F,Z,I,p;return g.l(function(z){if(z.Y==1)return F={startTime:(0,g.m5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.r(z,wz(D),2);if(z.Y!=3)return Z=z.J,I=Object.assign({},f,{options:JSON.parse(JSON.stringify(f.options)),interface:g.nc("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.r(z,g.UX(Z,"LogsRequestsStore",I),3);p=z.J;F.ticks.tc=(0,g.m5)();QCw(F);return z.return(p)})}; mIa=function(f,D){var F,Z,I,p,z,H,K,k,h;return g.l(function(y){if(y.Y==1)return F={startTime:(0,g.m5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.r(y,wz(D),2);if(y.Y!=3)return Z=y.J,I=g.nc("INNERTUBE_CONTEXT_CLIENT_NAME",0),p=[f,I,0],z=[f,I,(0,g.m5)()],H=IDBKeyRange.bound(p,z),K="prev",g.CO("use_fifo_for_networkless")&&(K="next"),k=void 0,h=f==="NEW"?"readwrite":"readonly",g.CO("use_readonly_for_get_most_recent_by_status_killswitch")&&(h="readwrite"),g.r(y,g.SF(Z,["LogsRequestsStore"], {mode:h,QL:!0},function(A){return g.BG(A.objectStore("LogsRequestsStore").index("newRequestV2"),{query:H,direction:K},function(V){V.getValue()&&(k=V.getValue(),f==="NEW"&&(k.status="QUEUED",V.update(k)))})}),3); F.ticks.tc=(0,g.m5)();QCw(F);return y.return(k)})}; Tpa=function(f,D){var F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,wz(D),2);F=Z.J;return Z.return(g.SF(F,["LogsRequestsStore"],{mode:"readwrite",QL:!0},function(I){var p=I.objectStore("LogsRequestsStore");return p.get(f).then(function(z){if(z)return z.status="QUEUED",g.cG(p,z).then(function(){return z})})}))})}; bYT=function(f,D,F,Z){F=F===void 0?!0:F;var I;return g.l(function(p){if(p.Y==1)return g.r(p,wz(D),2);I=p.J;return p.return(g.SF(I,["LogsRequestsStore"],{mode:"readwrite",QL:!0},function(z){var H=z.objectStore("LogsRequestsStore");return H.get(f).then(function(K){return K?(K.status="NEW",F&&(K.sendCount+=1),Z!==void 0&&(K.options.compress=Z),g.cG(H,K).then(function(){return K})):g.Rt.resolve(void 0)})}))})}; MkD=function(f,D){var F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,wz(D),2);F=Z.J;return Z.return(F.delete("LogsRequestsStore",f))})}; tks=function(f){var D,F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,wz(f),2);D=Z.J;F=(0,g.m5)()-2592E6;return g.r(Z,g.SF(D,["LogsRequestsStore"],{mode:"readwrite",QL:!0},function(I){return g.Ge(I.objectStore("LogsRequestsStore"),{},function(p){if(p.getValue().timestamp<=F)return p.delete().then(function(){return g.wt(p)})})}),0)})}; SEJ=function(){g.l(function(f){return g.r(f,dLI("LogsDatabaseV2"),0)})}; QCw=function(f){g.CO("nwl_csi_killswitch")||RS("networkless_performance",f,{sampleRate:1})}; UID=function(f){return g.EX(c$f(),f)}; vac=function(f){var D,F;g.l(function(Z){if(Z.Y==1)return g.r(Z,UID(f),2);D=Z.J;F=(0,g.m5)()-2592E6;return g.r(Z,g.SF(D,["SWHealthLog"],{mode:"readwrite",QL:!0},function(I){return g.Ge(I.objectStore("SWHealthLog"),{},function(p){if(p.getValue().timestamp<=F)return p.delete().then(function(){return g.wt(p)})})}),0)})}; ayD=function(f){var D;return g.l(function(F){if(F.Y==1)return g.r(F,UID(f),2);D=F.J;return g.r(F,D.clear("SWHealthLog"),0)})}; g.WH=function(f,D,F,Z,I,p,z){I=I===void 0?"":I;p=p===void 0?!1:p;z=z===void 0?!1:z;if(f)if(F&&!g.xo())Fm(new g.by("Legacy referrer-scrubbed ping detected")),f&&GPD(f,void 0,{scrubReferrer:!0});else if(I)M1(f,D,"POST",I,Z);else if(g.nc("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Z||z)M1(f,D,"GET","",Z,void 0,p,z);else{b:{try{c:{var H=new X3E({url:f});if(H.Y.dsh==="1")var K=null;else{var k=H.Y.ae;if(k==="1"){var h=H.Y.adurl;if(h)try{K={version:3,Oo:decodeURIComponent(h),VQ:fg(H.J,"act=1","ri=1",O4d(H))}; break c}catch(V){}}K=k==="2"?{version:4,Oo:fg(H.J,"dct=1","suid="+H.B,"ri=1"),VQ:fg(H.J,"act=1","ri=1","suid="+H.B)}:null}}if(K){var y=QW(f);var A=!(!y||!y.endsWith("/aclk")||vV(f,"ri")!=="1");break b}}catch(V){}A=!1}A?w$a(f)?(D&&D(),F=!0):F=!1:F=!1;F||GPD(f,D)}}; w$a=function(f,D){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(f,D===void 0?"":D))return!0}catch(F){}return!1}; GPD=function(f,D,F){F=F===void 0?{}:F;var Z=new Image,I=""+WQs++;BH[I]=Z;Z.onload=Z.onerror=function(){D&&BH[I]&&D();delete BH[I]}; F.scrubReferrer&&(Z.referrerPolicy="no-referrer");Z.src=f}; Bpf=function(f){var D;return((D=document.featurePolicy)==null?0:D.allowedFeatures().includes("attribution-reporting"))?f+"&nis=6":f+"&nis=5"}; Ll=function(){rz||(rz=new Za("yt.offline"));return rz}; r$y=function(f){if(g.CO("offline_error_handling")){var D=Ll().get("errors",!0)||{};D[f.message]={name:f.name,stack:f.stack};f.level&&(D[f.message].level=f.level);Ll().set("errors",D,2592E3,!0)}}; l_=function(){this.Y=new Map;this.J=!1}; LQc=function(){if(!l_.instance){var f=g.QY("yt.networkRequestMonitor.instance")||new l_;g.dE("yt.networkRequestMonitor.instance",f);l_.instance=f}return l_.instance}; E2=function(){g.i7.call(this);var f=this;this.J=!1;this.Y=FNy();this.Y.listen("networkstatus-online",function(){if(f.J&&g.CO("offline_error_handling")){var D=Ll().get("errors",!0);if(D){for(var F in D)if(D[F]){var Z=new g.by(F,"sent via offline_errors");Z.name=D[F].name;Z.stack=D[F].stack;Z.level=D[F].level;g.fO(Z)}Ll().set("errors",{},2592E3,!0)}}})}; lyc=function(){if(!E2.instance){var f=g.QY("yt.networkStatusManager.instance")||new E2;g.dE("yt.networkStatusManager.instance",f);E2.instance=f}return E2.instance}; g.JT=function(f){f=f===void 0?{}:f;g.i7.call(this);var D=this;this.Y=this.G=0;this.J=lyc();var F=g.QY("yt.networkStatusManager.instance.listen").bind(this.J);F&&(f.rateLimit?(this.rateLimit=f.rateLimit,F("networkstatus-online",function(){Eaf(D,"publicytnetworkstatus-online")}),F("networkstatus-offline",function(){Eaf(D,"publicytnetworkstatus-offline")})):(F("networkstatus-online",function(){D.dispatchEvent("publicytnetworkstatus-online")}),F("networkstatus-offline",function(){D.dispatchEvent("publicytnetworkstatus-offline")})))}; Eaf=function(f,D){f.rateLimit?f.Y?(g.lP.lc(f.G),f.G=g.lP.vp(function(){f.B!==D&&(f.dispatchEvent(D),f.B=D,f.Y=(0,g.m5)())},f.rateLimit-((0,g.m5)()-f.Y))):(f.dispatchEvent(D),f.B=D,f.Y=(0,g.m5)()):f.dispatchEvent(D)}; Nc=function(){var f=vH.call;u_||(u_=new g.JT({omd:!0,uD3:!0}));f.call(vH,this,{OE:{nM:tks,FN:MkD,gz:mIa,pkF:Tpa,yD:bYT,set:CSX},IA:u_,handleError:function(D,F,Z){var I,p=Z==null?void 0:(I=Z.error)==null?void 0:I.code;if(p===400||p===415){var z;D=new g.by(D.message,F,Z==null?void 0:(z=Z.error)==null?void 0:z.code);Fm(D,void 0,void 0,void 0,!0)}else g.fO(D)}, x7:Fm,sendFn:J$u,now:g.m5,pZ:r$y,ew:g.f0(),eN:"publicytnetworkstatus-online",tF:"publicytnetworkstatus-offline",XL:!0,VP:.1,GM:mI("potential_esf_error_limit",10),Hs:g.CO,J1:!(g.Xq()&&g.dy(document.location.toString())!=="www.youtube-nocookie.com")});this.B=new g.Hc;g.CO("networkless_immediately_drop_all_requests")&&SEJ();QqD("LogsDatabaseV2")}; gz=function(){var f=g.QY("yt.networklessRequestController.instance");f||(f=new Nc,g.dE("yt.networklessRequestController.instance",f),g.CO("networkless_logging")&&g.Yb().then(function(D){f.iY=D;A$w(f);f.B.resolve();f.XL&&Math.random()<=f.VP&&f.iY&&vac(f.iY);g.CO("networkless_immediately_drop_sw_health_store")&&usE(f)})); return f}; usE=function(f){var D;g.l(function(F){if(!f.iY)throw D=g.$b("clearSWHealthLogsDb"),D;return F.return(ayD(f.iY).catch(function(Z){f.handleError(Z)}))})}; J$u=function(f,D,F,Z){Z=Z===void 0?!1:Z;D=g.CO("web_fp_via_jspb")?Object.assign({},D):D;if(g.CO("use_request_time_ms_header"))D.headers&&HR(f)&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.m5)())));else{var I;if((I=D.postParams)==null?0:I.requestTimeMs)D.postParams.requestTimeMs=Math.round((0,g.m5)())}F&&Object.keys(D).length===0?g.WH(f):D.compress?D.postBody?(typeof D.postBody!=="string"&&(D.postBody=JSON.stringify(D.postBody)),tT(f,D.postBody,D,g.tW,Z)):tT(f,JSON.stringify(D.postParams), D,St,Z):g.tW(f,D)}; ea=function(f,D){g.CO("use_event_time_ms_header")&&HR(f)&&(D.headers||(D.headers={}),D.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.m5)())));return D}; g.xh=function(f){this.config_=null;f?this.config_=f:EXu()&&(this.config_=g.oS())}; g.XO=function(f,D,F,Z){function I(k){try{if((k===void 0?0:k)&&Z.retry&&!Z.networklessOptions.bypassNetworkless)p.method="POST",Z.networklessOptions.writeThenSend?gz().writeThenSend(K,p):gz().sendAndWrite(K,p);else if(Z.compress){var h=!Z.networklessOptions.writeThenSend;if(p.postBody){var y=p.postBody;typeof y!=="string"&&(y=JSON.stringify(p.postBody));tT(K,y,p,g.tW,h)}else tT(K,JSON.stringify(p.postParams),p,St,h)}else St(K,p)}catch(A){if(A.name==="InvalidAccessError")Fm(Error("An extension is blocking network request.")); else throw A;}} !g.nc("VISITOR_DATA")&&D!=="visitor_id"&&Math.random()<.01&&Fm(new g.by("Missing VISITOR_DATA when sending innertube request.",D,F,Z));if(!f.isReady())throw f=new g.by("innertube xhrclient not ready",D,F,Z),g.fO(f),f;var p={headers:Z.headers||{},method:"POST",postParams:F,postBody:Z.postBody,postBodyFormat:Z.postBodyFormat||"JSON",onTimeout:function(){Z.onTimeout()}, onFetchTimeout:Z.onTimeout,onSuccess:function(k,h){if(Z.onSuccess)Z.onSuccess(h)}, onFetchSuccess:function(k){if(Z.onSuccess)Z.onSuccess(k)}, onProgress:function(k){if(Z.onProgress)Z.onProgress(k)}, onError:function(k,h){if(Z.onError)Z.onError(h)}, onFetchError:function(k){if(Z.onError)Z.onError(k)}, timeout:Z.timeout,withCredentials:!0,compress:Z.compress};p.headers["Content-Type"]||(p.headers["Content-Type"]="application/json");F="";var z=f.config_.ud;z&&(F=z);z=f.config_.g6||!1;var H=YGc(z,F,Z);Object.assign(p.headers,H);p.headers.Authorization&&!F&&z&&(p.headers["x-origin"]=window.location.origin);var K=s4(""+F+("/youtubei/"+f.config_.innertubeApiVersion+"/"+D),{alt:"json"});g.QY("ytNetworklessLoggingInitializationOptions")&&NpX.isNwlInitialized?ikD().then(function(k){I(k)}):I(!1)}; g.f_=function(f,D,F){var Z=g.O2();if(Z&&D){var I=Z.subscribe(f,function(){function p(){nl[I]&&D.apply&&typeof D.apply=="function"&&D.apply(F||window,z)} var z=arguments;try{g.Yh[f]?p():g.AW(p,0)}catch(H){g.fO(H)}},F); nl[I]=!0;PH[f]||(PH[f]=[]);PH[f].push(I);return I}return 0}; gac=function(f){var D=g.f_("LOGGED_IN",function(F){f.apply(void 0,arguments);g.Dd(D)})}; g.Dd=function(f){var D=g.O2();D&&(typeof f==="number"?f=[f]:typeof f==="string"&&(f=[parseInt(f,10)]),g.hC(f,function(F){D.unsubscribeByKey(F);delete nl[F]}))}; g.FJ=function(f,D){var F=g.O2();return F?F.publish.apply(F,arguments):!1}; xID=function(f){var D=g.O2();if(D)if(D.clear(f),f)esX(f);else for(var F in PH)esX(F)}; g.O2=function(){return g.RU.ytPubsubPubsubInstance}; esX=function(f){PH[f]&&(f=PH[f],g.hC(f,function(D){nl[D]&&delete nl[D]}),f.length=0)}; g.Zd=function(f,D,F){X$c(f,D,F===void 0?null:F)}; X$c=function(f,D,F){F=F===void 0?null:F;var Z=OYX(typeof f==="string"?f:f.toString()),I=document.getElementById(Z),p=I&&Kcu(I),z=I&&!p;p?D&&D():(D&&(p=g.f_(Z,D),D=""+g.ve(D),naX[D]=p),z||(I=YEX(f,Z,function(){Kcu(I)||(oBT(I),g.FJ(Z),g.AW(function(){xID(Z)},0))},F)))}; YEX=function(f,D,F,Z){Z=Z===void 0?null:Z;var I=g.TR("SCRIPT");I.id=D;I.onload=function(){F&&setTimeout(F,0)}; I.onreadystatechange=function(){switch(I.readyState){case "loaded":case "complete":I.onload()}}; Z&&I.setAttribute("nonce",Z);g.GJ(I,typeof f==="string"?g.S_(f):f);f=document.getElementsByTagName("head")[0]||document.body;f.insertBefore(I,f.firstChild);return I}; OYX=function(f){var D=document.createElement("a");g.mg(D,f);f=D.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+N7(f)}; Iz=function(f,D){if(f===D)f=!0;else if(Array.isArray(f)&&Array.isArray(D))f=g.j5(f,D,Iz);else if(g.tv(f)&&g.tv(D))a:if(g.Cs(f).length!=g.Cs(D).length)f=!1;else{for(var F in f)if(!Iz(f[F],D[F])){f=!1;break a}f=!0}else f=!1;return f}; ql=function(f){var D=g.hv.apply(1,arguments);if(!p_(f)||D.some(function(Z){return!p_(Z)}))throw Error("Only objects may be merged."); D=g.a(D);for(var F=D.next();!F.done;F=D.next())zw(f,F.value)}; zw=function(f,D){for(var F in D)if(p_(D[F])){if(F in f&&!p_(f[F]))throw Error("Cannot merge an object into a non-object.");F in f||(f[F]={});zw(f[F],D[F])}else if(Hy(D[F])){if(F in f&&!Hy(f[F]))throw Error("Cannot merge an array into a non-array.");F in f||(f[F]=[]);PSc(f[F],D[F])}else f[F]=D[F];return f}; PSc=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next())F=F.value,p_(F)?f.push(zw({},F)):Hy(F)?f.push(PSc([],F)):f.push(F);return f}; p_=function(f){return typeof f==="object"&&!Array.isArray(f)}; Hy=function(f){return typeof f==="object"&&Array.isArray(f)}; oz=function(f){g.J.call(this);this.J=f}; K_=function(f){oz.call(this,!0);this.Y=f}; kA=function(f,D){g.J.call(this);var F=this;this.B=[];this.S=!1;this.J=0;this.X=this.T=this.G=!1;this.Bs=null;var Z=(0,g.aU)(f,D);this.Y=new g.xX(function(){return Z(F.Bs)},300); g.N(this,this.Y);this.Jb=this.N=Infinity}; fVD=function(f,D){if(!D)return!1;for(var F=0;F-1)throw Error("Deps cycle for: "+D);if(f.J.has(D))return f.J.get(D);if(!f.Y.has(D)){if(Z)return;throw Error("No provider for: "+D);}Z=f.Y.get(D);F.push(D);if(Z.IY!==void 0)var I=Z.IY;else if(Z.BQy)I=Z[m_]?pYD(f,Z[m_],F):[],I=Z.BQy.apply(Z,g.w(I));else if(Z.OT){I=Z.OT;var p=I[m_]?pYD(f,I[m_],F):[];I=new (Function.prototype.bind.apply(I,[null].concat(g.w(p))))}else throw Error("Could not resolve providers for: "+D);F.pop();Z.HBy||f.J.set(D,I); return I}; pYD=function(f,D,F){return D?D.map(function(Z){return Z instanceof da?Tw(f,Z.key,F,!0):Tw(f,Z,F)}):[]}; Ml=function(){bA||(bA=new IVJ);return bA}; sJu=function(){var f=z_f;return function(){var D=Ml();if(!D.resolve(Qe(f))){var F={};C_(D,(F.q$=f,F.OT=f,F[m_]=void 0,F))}return D.resolve(f)}}; Sn=function(){var f,D;return"h5vcc"in tK&&((f=tK.h5vcc.traceEvent)==null?0:f.traceBegin)&&((D=tK.h5vcc.traceEvent)==null?0:D.traceEnd)?1:"performance"in tK&&tK.performance.mark&&tK.performance.measure?2:0}; cy=function(f){var D=Sn();switch(D){case 1:tK.h5vcc.traceEvent.traceBegin("YTLR",f);break;case 2:tK.performance.mark(f+"-start");break;case 0:break;default:TJ(D,"unknown trace type")}}; qta=function(f){var D=Sn();switch(D){case 1:tK.h5vcc.traceEvent.traceEnd("YTLR",f);break;case 2:D=f+"-start";var F=f+"-end";tK.performance.mark(F);tK.performance.measure(f,D,F);break;case 0:break;default:TJ(D,"unknown trace type")}}; Hcf=function(f){var D,F;(F=(D=window).onerror)==null||F.call(D,f.message,"",0,0,f)}; oWc=function(f){var D=this;var F=F===void 0?0:F;var Z=Z===void 0?g.f0():Z;this.B=F;this.scheduler=Z;this.J=new g.Hc;this.Y=f;for(f={ib:0};f.ib=1E3?I():Z>=f?F7||(F7=Z1(function(){I();F7=void 0},0)):p-H>=10&&(M_J(D,F.tier),z.G=p)}; QJJ=function(f,D){if(f.endpoint==="log_event"){g.CO("more_accurate_gel_parser")&&en().storePayload({isJspb:!1},f.payload);XJ(f);var F=Ou(f),Z=new Map;Z.set(F,[f.payload]);var I=V_c(f.payload)||"";D&&(f2=new D);return new g.b7(function(p,z){f2&&f2.isReady()?t_u(Z,f2,p,z,{bypassNetworkless:!0},!0,YA(I)):p()})}}; TBy=function(f,D,F){if(D.endpoint==="log_event"){XJ(void 0,D);var Z=Ou(D,!0),I=new Map;I.set(Z,[p4(D.payload)]);F&&(f2=new F);return new g.b7(function(p){f2&&f2.isReady()?StD(I,f2,p,{bypassNetworkless:!0},!0,YA(f)):p()})}}; Ou=function(f,D){var F="";if(f.dangerousLogToVisitorSession)F="visitorOnlyApprovedKey";else if(f.cttAuthInfo){if(D===void 0?0:D){D=f.cttAuthInfo.token;F=f.cttAuthInfo;var Z=new e_;F.videoId?Z.setVideoId(F.videoId):F.playlistId&&au(Z,2,I6,g1(F.playlistId));p2[D]=Z}else D=f.cttAuthInfo,F={},D.videoId?F.videoId=D.videoId:D.playlistId&&(F.playlistId=D.playlistId),zn[f.cttAuthInfo.token]=F;F=f.cttAuthInfo.token}return F}; Py=function(f,D,F){f=f===void 0?{}:f;D=D===void 0?!1:D;new g.b7(function(Z,I){var p=D1(D,F),z=p.B;p.B=!1;sT(p.J);sT(p.Y);p.Y=0;f2&&f2.isReady()?F===void 0&&g.CO("enable_web_tiered_gel")?cDJ(Z,I,f,D,300,z):cDJ(Z,I,f,D,F,z):(M_J(D,F),Z())})}; cDJ=function(f,D,F,Z,I,p){var z=f2;F=F===void 0?{}:F;Z=Z===void 0?!1:Z;I=I===void 0?200:I;p=p===void 0?!1:p;var H=new Map,K=new Map,k={isJspb:Z,cttAuthInfo:void 0,tier:I},h={isJspb:Z,cttAuthInfo:void 0};if(Z){D=g.a(Object.keys(n_));for(I=D.next();!I.done;I=D.next())I=I.value,K=g.CO("enable_web_tiered_gel")?en().smartExtractMatchingEntries({keys:[k,h],sizeLimit:1E3}):en().extractMatchingEntries({isJspb:!0,cttAuthInfo:I}),K.length>0&&H.set(I,K),(g.CO("web_fp_via_jspb_and_json")&&F.writeThenSend||!g.CO("web_fp_via_jspb_and_json"))&& delete n_[I];StD(H,z,f,F,!1,p)}else{H=g.a(Object.keys(n_));for(k=H.next();!k.done;k=H.next())k=k.value,h=g.CO("enable_web_tiered_gel")?en().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:k,tier:I},{isJspb:!1,cttAuthInfo:k}],sizeLimit:1E3}):en().extractMatchingEntries({isJspb:!1,cttAuthInfo:k}),h.length>0&&K.set(k,h),(g.CO("web_fp_via_jspb_and_json")&&F.writeThenSend||!g.CO("web_fp_via_jspb_and_json"))&&delete n_[k];t_u(K,z,f,D,F,!1,p)}}; M_J=function(f,D){function F(){Py({writeThenSend:!0},f,D)} f=f===void 0?!1:f;D=D===void 0?200:D;var Z=D1(f,D),I=Z===UTJ||Z===vWs?5E3:aVD;g.CO("web_gel_timeout_cap")&&!Z.Y&&(I=Z1(function(){F()},I),Z.Y=I); sT(Z.J);I=g.nc("LOGGING_BATCH_TIMEOUT",mI("web_gel_debounce_ms",1E4));g.CO("shorten_initial_gel_batch_timeout")&&q3&&(I=GGy);I=Z1(function(){mI("gel_min_batch_size")>0?en().getSequenceCount({cttAuthInfo:void 0,isJspb:f,tier:D})>=wYD&&F():F()},I); Z.J=I}; t_u=function(f,D,F,Z,I,p,z){I=I===void 0?{}:I;var H=Math.round((0,g.m5)()),K=f.size,k=Wxu(z);f=g.a(f);var h=f.next();for(z={};!h.done;z={bX:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,i5:void 0,Xz:void 0},h=f.next()){var y=g.a(h.value);h=y.next().value;y=y.next().value;z.batchRequest=g.vO({context:g.Kl(D.config_||g.oS())});if(!g.MC(y)&&!g.CO("throw_err_when_logevent_malformed_killswitch")){Z();break}z.batchRequest.events=y;(y=zn[h])&&BBf(z.batchRequest,h,y);delete zn[h];z.dangerousLogToVisitorSession= h==="visitorOnlyApprovedKey";rDD(z.batchRequest,H,z.dangerousLogToVisitorSession);Lxw(I);z.i5=function(A){g.CO("start_client_gcf")&&g.lP.vp(function(){return g.l(function(V){return g.r(V,lVJ(A),0)})}); K--;K||F()}; z.bX=0;z.Xz=function(A){return function(){A.bX++;if(I.bypassNetworkless&&A.bX===1)try{g.XO(D,k,A.batchRequest,H1({writeThenSend:!0},A.dangerousLogToVisitorSession,A.i5,A.Xz,p)),q3=!1}catch(V){g.fO(V),Z()}K--;K||F()}}(z); try{g.XO(D,k,z.batchRequest,H1(I,z.dangerousLogToVisitorSession,z.i5,z.Xz,p)),q3=!1}catch(A){g.fO(A),Z()}}}; StD=function(f,D,F,Z,I,p){Z=Z===void 0?{}:Z;var z=Math.round((0,g.m5)()),H={value:f.size},K=new Map([].concat(g.w(f)));K=g.a(K);for(var k=K.next();!k.done;k=K.next()){var h=g.a(k.value).next().value,y=f.get(h);k=new g.xW;var A=D.config_||g.oS(),V=new lf,R=new aJ;Y0(R,1,A.H$);Y0(R,2,A.iq);fA(R,16,A.No);Y0(R,17,A.innertubeContextClientVersion);if(A.r_){var m=A.r_,b=new Ut;m.coldConfigData&&Y0(b,1,m.coldConfigData);m.appInstallData&&Y0(b,6,m.appInstallData);m.coldHashData&&Y0(b,3,m.coldHashData);m.hotHashData&& b.uI(m.hotHashData);E8(R,Ut,62,b)}(m=g.RU.devicePixelRatio)&&m!=1&&Az(R,65,TA(m));m=Tr();m!==""&&Y0(R,54,m);m=bL();if(m.length>0){b=new WY;for(var U=0;U65535&&(f=1);Ot("BATCH_CLIENT_COUNTER",f);return f}; BBf=function(f,D,F){if(F.videoId)var Z="VIDEO";else if(F.playlistId)Z="PLAYLIST";else return;f.credentialTransferTokenTargetId=F;f.context=f.context||{};f.context.user=f.context.user||{};f.context.user.credentialTransferTokens=[{token:D,scope:Z}]}; XJ=function(f,D){var F=g.QY("yt.logging.transport.enableScrapingForTest"),Z=Qu("il_payload_scraping");Z=(Z!==void 0?String(Z):"")==="enable_il_payload_scraping";if(!F)if(Z)ky=[],g.dE("yt.logging.transport.enableScrapingForTest",!0),g.dE("yt.logging.transport.scrapedPayloadsForTesting",ky),g.dE("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.dE("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.dE("yt.logging.transport.scrapeClientEvent",!0);else return;F=g.QY("yt.logging.transport.scrapedPayloadsForTesting");Z=g.QY("yt.logging.transport.payloadToScrape");D&&(D=D.payload,(D=g.QY("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(D)())&&F.push(D));D=g.QY("yt.logging.transport.scrapeClientEvent");if(Z&&Z.length>=1)for(var I=0;I0&&q4T(f,D,p)}else q4T(f,D)}; q4T=function(f,D,F){f=HOT(f);D=D?g.MX(D):"";F=F||5;pC()&&g.ro(f,D,F)}; HOT=function(f){for(var D=g.a(ooy),F=D.next();!F.done;F=D.next())f=a_(f,F.value);return"ST-"+N7(f).toString(36)}; KIs=function(f){if(f.name==="JavaException")return!0;f=f.stack;return f.includes("chrome://")||f.includes("-extension://")||f.includes("webkit-masked-url://")}; krD=function(f){if(!f.stack)return!0;var D=!f.stack.includes("\n");return D&&f.stack.includes("ErrorType: ")||D&&f.stack.includes("Anonymous function (Unknown script")||f.stack.toLowerCase()==="not available"||f.fileName==="user-script"||f.fileName.startsWith("user-script:")?!0:!1}; jgu=function(){this.j3=[];this.EH=[]}; Tn=function(){if(!mM){var f=mM=new jgu;f.EH.length=0;f.j3.length=0;iOs(f,h6y)}return mM}; iOs=function(f,D){D.EH&&f.EH.push.apply(f.EH,D.EH);D.j3&&f.j3.push.apply(f.j3,D.j3)}; yWD=function(f){function D(){return f.charCodeAt(Z++)} var F=f.length,Z=0;do{var I=bN(D);if(I===Infinity)break;var p=I>>3;switch(I&7){case 0:I=bN(D);if(p===2)return I;break;case 1:if(p===2)return;Z+=8;break;case 2:I=bN(D);if(p===2)return f.substr(Z,I);Z+=I;break;case 5:if(p===2)return;Z+=4;break;default:return}}while(Z500));Z++);Z=I}else if(typeof f==="object")for(I in f){if(f[I]){var p=I;var z=f[I],H=D,K=F;p=typeof z!=="string"||p!=="clickTrackingParams"&&p!=="trackingParams"?0:(z=yWD(atob(z.replace(/-/g,"+").replace(/_/g,"/"))))?M3(p+".ve",z,H,K):0;Z+=p;Z+=M3(I,f[I],D,F);if(Z>500)break}}else F[D]=ta(f),Z+=F[D].length;else F[D]=ta(f),Z+=F[D].length;return Z}; M3=function(f,D,F,Z){F+="."+f;f=ta(D);Z[F]=f;return F.length+f.length}; ta=function(f){try{return(typeof f==="string"?f:String(JSON.stringify(f))).substr(0,500)}catch(D){return"unable to serialize "+typeof f+" ("+D.message+")"}}; c1=function(f){g.SJ(f)}; g.UT=function(f){g.SJ(f,"WARNING")}; g.SJ=function(f,D){var F=F===void 0?{}:F;F.name=g.nc("INNERTUBE_CONTEXT_CLIENT_NAME",1);F.version=g.nc("INNERTUBE_CONTEXT_CLIENT_VERSION");D=D===void 0?"ERROR":D;var Z=!1;D=D===void 0?"ERROR":D;Z=Z===void 0?!1:Z;if(f){f.hasOwnProperty("level")&&f.level&&(D=f.level);if(g.CO("console_log_js_exceptions")){var I=[];I.push("Name: "+f.name);I.push("Message: "+f.message);f.hasOwnProperty("params")&&I.push("Error Params: "+JSON.stringify(f.params));f.hasOwnProperty("args")&&I.push("Error args: "+JSON.stringify(f.args)); I.push("File name: "+f.fileName);I.push("Stacktrace: "+f.stack);window.console.log(I.join("\n"),f)}if(!($1d>=5)){I=[];for(var p=g.a(Vtw),z=p.next();!z.done;z=p.next()){z=z.value;try{z()&&I.push(z())}catch(m){}}I=[].concat(g.w(R6y),g.w(I));var H=S0J(f);p=H.message||"Unknown Error";z=H.name||"UnknownError";var K=H.stack||f.J||"Not available";if(K.startsWith(z+": "+p)){var k=K.split("\n");k.shift();K=k.join("\n")}k=H.lineNumber||"Not available";H=H.fileName||"Not available";var h=0;if(f.hasOwnProperty("args")&& f.args&&f.args.length)for(var y=0;y=500);y++);else if(f.hasOwnProperty("params")&&f.params){var A=f.params;if(typeof f.params==="object")for(y in A){if(A[y]){var V="params."+y,R=ta(A[y]);F[V]=R;h+=V.length+R.length;if(h>500)break}}else F.params=ta(A)}if(I.length)for(y=0;y=500);y++);navigator.vendor&&!F.hasOwnProperty("vendor")&&(F["device.vendor"]=navigator.vendor);F={message:p,name:z,lineNumber:k, fileName:H,stack:K,params:F,sampleWeight:1};y=Number(f.columnNumber);isNaN(y)||(F.lineNumber=F.lineNumber+":"+y);if(f.level==="IGNORED")f=0;else a:{f=Tn();y=g.a(f.EH);for(I=y.next();!I.done;I=y.next())if(I=I.value,F.message&&F.message.match(I.r3)){f=I.weight;break a}f=g.a(f.j3);for(y=f.next();!y.done;y=f.next())if(y=y.value,y.callback(F)){f=y.weight;break a}f=1}F.sampleWeight=f;f=g.a(d1c);for(y=f.next();!y.done;y=f.next())if(y=y.value,y.aQ[F.name])for(p=g.a(y.aQ[F.name]),I=p.next();!I.done;I=p.next())if(z= I.value,I=F.message.match(z.Gt)){F.params["params.error.original"]=I[0];p=z.groups;z={};for(k=0;k1E3&&g.UT(new g.by("IL Attach cache exceeded limit"))}H= N3(F,D);L2.has(H)?g4(F,D):ET.set(H,!0)}}Z=Z.filter(function(h){h.csn!==D?(h.csn=D,h=!0):h=!1;return h}); F={csn:D,parentVe:F.getAsJson(),childVes:g.M2(Z,function(h){return h.getAsJson()})}; D==="UNDEFINED_CSN"?eJ("visualElementAttached",p,F):f?iN("visualElementAttached",F,f,p):g.ha("visualElementAttached",F,p)}; WID=function(f,D,F,Z,I,p,z){X7(F,D);Z=r4({cttAuthInfo:Qn(D)||void 0,automatedLogEventSource:z},D);F={csn:D,ve:F.getAsJson(),eventType:1};I&&(F.clientData=I);D==="UNDEFINED_CSN"?eJ("visualElementShown",Z,F):f?iN("visualElementShown",F,f,Z):g.ha("visualElementShown",F,Z)}; Bof=function(f,D,F,Z){var I=(Z=Z===void 0?!1:Z)?16:8;Z=r4({cttAuthInfo:Qn(D)||void 0,endOfSequence:Z,automatedLogEventSource:void 0},D);F={csn:D,ve:F.getAsJson(),eventType:I};D==="UNDEFINED_CSN"?eJ("visualElementHidden",Z,F):f?iN("visualElementHidden",F,f,Z):g.ha("visualElementHidden",F,Z)}; OT=function(f,D,F,Z,I,p){rWE(f,D,F,void 0,Z,I,p)}; rWE=function(f,D,F,Z,I,p,z){X7(F,D);Z=Z||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";p=r4({cttAuthInfo:Qn(D)||void 0,automatedLogEventSource:z},D);F={csn:D,ve:F.getAsJson(),gestureType:Z};I&&(F.clientData=I);D==="UNDEFINED_CSN"?eJ("visualElementGestured",p,F):f?iN("visualElementGestured",F,f,p):g.ha("visualElementGestured",F,p)}; LId=function(){var f=iA(16);for(var D=[],F=0;F0&&F.push(g.TR("BR"));F.push(g.b5(p))}):F.push(g.b5(Z))}return F}; oV=function(f,D,F,Z){if(F==="child"){g.tB(D);var I;Z===void 0?I=void 0:I=!Array.isArray(Z)||Z&&typeof Z.K==="string"?[Z]:Z;F=Eow(f,I);F=g.a(F);for(f=F.next();!f.done;f=F.next())D.appendChild(f.value)}else F==="style"?g.Dx(D,"cssText",Z?Z:""):Z===null||Z===void 0?D.removeAttribute(F):(f=Z.toString(),F==="href"&&(f=g.Vi(g.Qi(f))),D.setAttribute(F,f))}; g.x=function(f){g.qs.call(this,f);this.hN=!0;this.Jb=!1;this.listeners=[]}; g.Km=function(f){g.x.call(this,f);this.b3=new g.zu;g.N(this,this.b3)}; kg=function(f,D,F,Z,I,p,z){z=z===void 0?null:z;g.Km.call(this,D);this.api=f;this.macros={};this.componentType=F;this.T=this.S=null;this.G3=z;this.layoutId=Z;this.interactionLoggingClientData=I;this.yT=p;this.Ps=null;this.eE=new K_(this.element);g.N(this,this.eE);this.JN=this.D(this.element,"click",this.onClick);this.zx=[];this.xo=new kA(this.onClick,this);g.N(this,this.xo);this.Uq=!1;this.rY=this.Bs=null}; var yIT=function(f,D){return VX[q[16]](this,2,f,D)}; jA=function(f,D){f=f===void 0?null:f;D=D===void 0?null:D;if(f==null)return g.UT(Error("Got null or undefined adText object")),"";var F=g.uI(f.text);if(!f.isTemplated)return F;if(D==null)return g.UT(Error("Missing required parameters for a templated message")),F;f=g.a(Object.entries(D));for(D=f.next();!D.done;D=f.next()){var Z=g.a(D.value);D=Z.next().value;Z=Z.next().value;F=F.replace("{"+D+"}",Z)}return F}; JWw=function(f){f=f===void 0?null:f;return f!=null&&(f=f.thumbnail,f!=null&&f.thumbnails!=null&&f.thumbnails.length!=0&&f.thumbnails[0].url!=null)?g.uI(f.thumbnails[0].url):""}; umf=function(f){f=f===void 0?null:f;return f!=null&&(f=f.thumbnail,f!=null&&f.thumbnails!=null&&f.thumbnails.length!=0&&f.thumbnails[0].width!=null&&f.thumbnails[0].height!=null)?new g.IG(f.thumbnails[0].width||0,f.thumbnails[0].height||0):new g.IG(0,0)}; g.ih=function(f){if(f.simpleText)return f.simpleText;if(f.runs){var D=[];f=g.a(f.runs);for(var F=f.next();!F.done;F=f.next())F=F.value,F.text&&D.push(F.text);return D.join("")}return""}; g.hn=function(f){if(f.simpleText)return f=document.createTextNode(f.simpleText),f;var D=[];if(f.runs)for(var F=0;F1){for(var D=[f[0]],F=1;F0&&(this.Y=new g.xX(this.F5,D,this),g.N(this,this.Y));this.X=new g.xX(this.F5,F,this);g.N(this,this.X);this.N=ofE(this.J,I,1,Z);g.N(this,this.N);this.S=ofE(this.J,0,Z,1);g.N(this,this.S);this.G=new Ug;g.N(this,this.G)}; HK=function(f,D){this.J=f;this.Y=D}; w6f=function(f){switch(f){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:TJ(f,"unknown result type")}}; WWT=function(f,D){var F=1;f.isTrusted===!1&&(F=0);Ot("ISDSTAT",F);oj(F,"i.s_",{triggerContext:"sk",metadata:D});return F}; B0X=function(f,D){var F=[];D?D.isTrusted===!0?F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):D.isTrusted===!1?F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):F.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");oj(0,"a.s_",{metadata:f,states:F});Ot("ASDSTAT",0)}; oj=function(f,D,F){D=rXd[D];var Z,I,p={detected:f===0,source:""+D.J+((Z=F.triggerContext)!=null?Z:"")+((I=F.dX)!=null?I:""),detectionStates:F.states,durationMs:F.NU};F.metadata&&(p.contentCpn=F.metadata.contentCpn,p.adCpn=F.metadata.adCpn);g.ha("biscottiBasedDetection",p);D.Y!==void 0&&(F=Number(g.nc("CATSTAT",0)),D.Y!==void 0?(D=D.Y,f=w6f(f),f=F&~(3<0}; ys=function(f,D,F,Z,I,p){fb.call(this,f,{K:"div",C:"ytp-ad-skip-button-slot"},"skip-button",D,F,Z,I);var z=this;this.KQ=null;this.Tx=!1;this.dY=p;this.X=this.api.j().experiments.Hs("enable_modern_skip_button_on_web");this.LQ=!1;this.G=new g.Km({K:"span",ST:["ytp-ad-skip-button-container"]});this.X&&this.G.element.classList.add("ytp-ad-skip-button-container-detached");g.N(this,this.G);this.G.CQ(this.element);this.J=this.B=null;this.eT=new g.Zr(this.G,500,!1,100,function(){return z.hide()}); g.N(this,this.eT);this.Ir=new qi(this.G.element,15E3,5E3,.5,.5,this.X);g.N(this,this.Ir);this.hide()}; l8f=function(f){f=f.KQ&&f.KQ.adRendererCommands;return(f&&f.clickCommand&&g.Q(f.clickCommand,g.AF)&&g.Q(f.clickCommand,g.AF).commands||[]).some(function(D){return D.adLifecycleCommand?LWc(D.adLifecycleCommand):!1})}; LWc=function(f){return f.action==="END_LINEAR_AD"||f.action==="END_LINEAR_AD_PLACEMENT"}; $4=function(f,D,F,Z,I,p){fb.call(this,f,{K:"div",C:"ytp-ad-skip-ad-slot"},"skip-ad",D,F,Z,I);this.KQ=p;this.G=!1;this.X=0;this.B=this.J=null;this.hide()}; EjD=function(f,D){f.G||(f.G=!0,f.J&&(D?f.J.KQ.hide():f.J.hide()),D?(f=f.B,f.eT.show(),f.show()):f.B.show())}; Vs=function(f,D,F,Z){Gu.call(this,f,D,F,Z,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; Rj=function(f,D,F,Z,I,p,z){p=p===void 0?!1:p;z=z===void 0?!1:z;kg.call(this,f,{K:"span",C:"ytp-ad-simple-ad-badge"},"simple-ad-badge",D,F,Z);this.B=I;this.Y=this.fQ("ytp-ad-simple-ad-badge");(this.J=p)&&this.Y.classList.add("ytp-ad-simple-ad-badge--clean-player");z&&this.Y.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; dQ=function(f,D,F,Z,I){I=I===void 0?!1:I;pm.call(this,"player-overlay",f,{},D,Z);this.videoAdDurationSeconds=F;this.interactionLoggingClientData=Z;this.KO=I}; Qs=function(f,D){g.zu.call(this);this.api=f;this.durationMs=D;this.Y=null;this.handler=new Ug(this);g.N(this,this.handler);this.J=JXE;this.handler.D(this.api,"presentingplayerstatechange",this.Yz);this.Y=this.handler.D(this.api,"onAdPlaybackProgress",this.Ft)}; Cb=function(f){g.zu.call(this);this.Y=!1;this.rQ=0;this.handler=new Ug(this);g.N(this,this.handler);this.durationMs=f;this.timer=new g.av(100);g.N(this,this.timer);this.handler.D(this.timer,"tick",this.Ft);this.J={seekableStart:0,seekableEnd:f/1E3,current:0};this.start()}; g.ms=function(f,D){var F=Math.abs(Math.floor(f)),Z=Math.floor(F/86400),I=Math.floor(F%86400/3600),p=Math.floor(F%3600/60);F=Math.floor(F%60);if(D){D="";Z>0&&(D+=" "+Z+" D\u00edas");if(Z>0||I>0)D+=" "+I+" Horas";D+=" "+p+" Minutos";D+=" "+F+" Segundos";Z=D.trim()}else{D="";Z>0&&(D+=Z+":",I<10&&(D+="0"));if(Z>0||I>0)D+=I+":",p<10&&(D+="0");D+=p+":";F<10&&(D+="0");Z=D+F}return f>=0?Z:"-"+Z}; g.TL=function(f){return(!("button"in f)||typeof f.button!=="number"||f.button===0)&&!("shiftKey"in f&&f.shiftKey)&&!("altKey"in f&&f.altKey)&&!("metaKey"in f&&f.metaKey)&&!("ctrlKey"in f&&f.ctrlKey)}; bt=function(f,D,F,Z,I,p,z){fb.call(this,f,{K:"span",C:z?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",D,F,Z,I);this.videoAdDurationSeconds=p;this.J=null;z&&this.api.j().J&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),NS&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Mi=function(f,D,F,Z){Yg.call(this,f,D,F,Z,"ytp-video-ad-top-bar-title","ad-title")}; tF=function(f){this.content=f.content;if(f.commandRuns){f=g.a(f.commandRuns);for(var D=f.next();!D.done;D=f.next())D=D.value,this.loggingDirectives=g.Q(D,uqf),D.onTap&&(this.interaction={onTap:D.onTap})}}; Ss=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ad-simple-attributed-string"},"ad-simple-attributed-string",D,F,Z);this.hide()}; cK=function(f,D,F,Z,I){kg.call(this,f,{K:"span",C:I?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",D,F,Z);this.J=I;this.adBadgeText=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);this.adBadgeText.CQ(this.element);g.N(this,this.adBadgeText);I?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),NS&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; UK=function(f,D,F,Z){kg.call(this,f,{K:"span",C:"ytp-ad-pod-index"},"ad-pod-index",D,F,Z);this.api.j().J&&(this.element.classList.add("ytp-ad-pod-index--mweb"),NS&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; aj=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",D,F,Z);this.hide()}; GL=function(f,D){this.J=f;this.Y=D}; N0E=function(f,D){return f.J+D*(f.Y-f.J)}; wQ=function(f,D,F){return f.Y-f.J?g.PZ((D-f.J)/(f.Y-f.J),0,1):F!=null?F:Infinity}; WK=function(f,D,F,Z){Z=Z===void 0?!1:Z;g.Km.call(this,{K:"div",C:"ytp-ad-persistent-progress-bar-container",L:[{K:"div",C:"ytp-ad-persistent-progress-bar"}]});this.api=f;this.J=D;this.B=F;Z&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.N(this,this.J);this.progressBar=this.fQ("ytp-ad-persistent-progress-bar");this.Y=-1;this.D(f,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; BK=function(f,D,F,Z,I,p){kg.call(this,f,{K:"div",C:"ytp-ad-player-overlay",L:[{K:"div",C:"ytp-ad-player-overlay-flyout-cta"},{K:"div",C:"ytp-ad-player-overlay-instream-info"},{K:"div",C:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",C:"ytp-ad-player-overlay-progress-bar"},{K:"div",C:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",C:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",D,F,Z);this.N=p;this.X=this.fQ("ytp-ad-player-overlay-flyout-cta");this.X.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.Y=this.fQ("ytp-ad-player-overlay-instream-info");this.G=null;gjs(this)&&(f=mK("div"),g.IC(f,"ytp-ad-player-overlay-top-bar-gradients"),D=this.Y,D.parentNode&&D.parentNode.insertBefore(f,D),(D=this.api.getVideoData(2))&&D.isListed&&D.title&&(F=new Mi(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),F.CQ(f),F.init(IV("ad-title"),{text:D.title},this.macros),g.N(this,F)),this.G=f);this.B=null;this.jT=this.fQ("ytp-ad-player-overlay-skip-or-preview");this.Ir=this.fQ("ytp-ad-player-overlay-progress-bar"); this.Tx=this.fQ("ytp-ad-player-overlay-instream-user-sentiment");this.KQ=this.fQ("ytp-ad-player-overlay-ad-disclosure-banner");this.J=I;g.N(this,this.J);this.hide()}; gjs=function(f){f=f.api.j();return g.rQ(f)&&f.J}; g.Lb=function(f){f&=16777215;var D=[(f&16711680)>>16,(f&65280)>>8,f&255];f=D[0];var F=D[1];D=D[2];f=Number(f);F=Number(F);D=Number(D);if(f!=(f&255)||F!=(F&255)||D!=(D&255))throw Error('"('+f+","+F+","+D+'") is not a valid RGB color');F=f<<16|F<<8|D;return f<16?"#"+(16777216|F).toString(16).slice(1):"#"+F.toString(16)}; lt=function(){}; eLu=function(){}; X6D=function(f){var D=new iJ;var F=new jl;F=Y0(F,1,"botguard");f=Y0(F,2,f);this.Y=fmy(D,jl,1,xPc,f)}; g.Bc=function(){if(!EK){EK=new Wl(new eLu);var f=mI("client_streamz_web_flush_count",-1);f!==-1&&(EK.B=f)}return EK}; JF=function(f){this.Y=new MI(f)}; OCD=function(){var f=!1;try{f=!!window.sessionStorage.getItem("session_logininfo")}catch(D){f=!0}return(g.nc("INNERTUBE_CLIENT_NAME")==="WEB"||g.nc("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&f}; ut=function(){var f=f===void 0?!0:f;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Ot("LOGIN_INFO","");f&&window.sessionStorage.setItem("from_switch_account","1");f=!0;f=f===void 0?!1:f;var D,F=njs;F||(F=document.querySelector("#persist_identity"));if(D=F){var Z=D.src?(new URL(D.src)).origin:"*";if(f){var I;(I=D.contentWindow)==null||I.postMessage({action:"clear"},Z)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var p=window.sessionStorage.getItem("session_logininfo");if(p){var z;(z=D.contentWindow)==null||z.postMessage({loginInfo:p},Z)}}}}catch(H){}}; Ni=function(f){f&&(f.startsWith("https://accounts.google.com/AddSession")?ut():f.startsWith("https://accounts.google.com/ServiceLogin")?ut():f.startsWith("https://myaccount.google.com")&&g.tI(f).J.endsWith("/youtubeoptions")&&ut());if(g.nc("LOGGED_IN",!0)&&OCD()){var D=g.nc("VALID_SESSION_TEMPDATA_DOMAINS",[]);var F=g.dy(window.location.href);F&&D.push(F);F=g.dy(f);g.e0(D,F)||!F&&gU(f,"/")?(D=C8(f),(D=oHD(D))?(D=HOT(D),D=(D=g.LO(D)||null)?iy(D):{}):D=null):D=null;D==null&&(D={});F=D;var Z=void 0; OCD()?(Z||(Z=g.nc("LOGIN_INFO")),Z?(F.session_logininfo=Z,F=!0):F=!1):F=!1;F&&C2(f,D)}}; g.YgX=function(f){var D=D===void 0?{}:D;var F=F===void 0?"":F;var Z=Z===void 0?window:Z;f=g.tL(f,D);Ni(f);F=g.Qi(f+F);Z=Z.location;F=CW(F);F!==void 0&&(Z.href=F)}; g.gQ=function(f,D,F){D=D===void 0?{}:D;F=F===void 0?!1:F;var Z=g.nc("EVENT_ID");Z&&(D.ei||(D.ei=Z));D&&C2(f,D);F||(Ni(f),g.YgX(f))}; g.es=function(f,D,F,Z,I){I=I===void 0?!1:I;F&&C2(f,F);F=g.Qi(f);var p=g.Vi(F);f!=p&&Fm(Error("Unsafe window.open URL: "+f));f=p;D=D||N7(f).toString(36);try{if(I)return I=f,I=Bpf(I),Ni(I),g.Se(window,I,D,"attributionsrc")}catch(z){g.fO(z)}Ni(f);return g.Se(window,F,D,Z)}; Pqu=function(f){x4=f}; faI=function(f){Xx=f}; DSw=function(f){OK=f}; Z0J=function(){F5I=OK=Xx=x4=null}; pGs=function(){var f=f===void 0?window.location.href:f;if(g.CO("kevlar_disable_theme_param"))return null;var D=QW(f);if(g.CO("enable_dark_theme_only_on_shorts")&&D!=null&&D.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var F=g.zr(f).theme;return Iac.get(F)||null}catch(Z){}return null}; nb=function(){this.Y={};if(this.J=x4X()){var f=g.LO("CONSISTENCY");f&&zCJ(this,{encryptedTokenJarContents:f})}}; zCJ=function(f,D){if(D.encryptedTokenJarContents&&(f.Y[D.encryptedTokenJarContents]=D,typeof D.expirationSeconds==="string")){var F=Number(D.expirationSeconds);setTimeout(function(){delete f.Y[D.encryptedTokenJarContents]},F*1E3); f.J&&g.ro("CONSISTENCY",D.encryptedTokenJarContents,F,void 0,!0)}}; PK=function(){this.J=-1;var f=g.nc("LOCATION_PLAYABILITY_TOKEN");g.nc("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Y4(this))&&(f=this.localStorage.get("yt-location-playability-token"));f&&(this.locationPlayabilityToken=f,this.Y=void 0)}; Y4=function(f){return f.localStorage===void 0?new Za("yt-client-location"):f.localStorage}; g.fP=function(f,D,F){D=D===void 0?!1:D;F=F===void 0?!1:F;var Z=g.nc("INNERTUBE_CONTEXT");if(!Z)return g.SJ(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};Z=g.vO(Z);g.CO("web_no_tracking_params_in_shell_killswitch")||delete Z.clickTracking;Z.client||(Z.client={});var I=Z.client;I.clientName==="MWEB"&&I.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(I.clientFormFactor=g.nc("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");I.screenWidthPoints=window.innerWidth;I.screenHeightPoints= window.innerHeight;I.screenPixelDensity=Math.round(window.devicePixelRatio||1);I.screenDensityFloat=window.devicePixelRatio||1;I.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var p=p===void 0?!1:p;var z=g.JX(),H="USER_INTERFACE_THEME_LIGHT";z.Kp(165)?H="USER_INTERFACE_THEME_DARK":z.Kp(174)?H="USER_INTERFACE_THEME_LIGHT":!g.CO("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (H="USER_INTERFACE_THEME_DARK");p=p?H:pGs()||H;I.userInterfaceTheme=p;if(!D){if(p=vBc())I.connectionType=p;g.CO("web_log_effective_connection_type")&&(p=GdD())&&(Z.client.effectiveConnectionType=p)}var K;if(g.CO("web_log_memory_total_kbytes")&&((K=g.RU.navigator)==null?0:K.deviceMemory)){var k;K=(k=g.RU.navigator)==null?void 0:k.deviceMemory;Z.client.memoryTotalKbytes=""+K*1E6}g.CO("web_gcf_hashes_innertube")&&(p=lza())&&(k=p.coldConfigData,K=p.coldHashData,p=p.hotHashData,Z.client.configInfo=Z.client.configInfo|| {},k&&(Z.client.configInfo.coldConfigData=k),K&&(Z.client.configInfo.coldHashData=K),p&&(Z.client.configInfo.hotHashData=p));k=g.zr(g.RU.location.href);!g.CO("web_populate_internal_geo_killswitch")&&k.internalcountrycode&&(I.internalGeo=k.internalcountrycode);I.clientName==="MWEB"||I.clientName==="WEB"?(I.mainAppWebInfo||(I.mainAppWebInfo={}),I.mainAppWebInfo.graftUrl=g.RU.location.href,g.CO("kevlar_woffle")&&THs.instance&&(k=THs.instance,I.mainAppWebInfo.pwaInstallabilityStatus=!k.Y&&k.J?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),I.mainAppWebInfo.webDisplayMode=LC(),I.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):I.clientName==="TVHTML5"&&(!g.CO("web_lr_app_quality_killswitch")&&(k=g.nc("LIVING_ROOM_APP_QUALITY"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{appQuality:k})),k=g.nc("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(I.tvAppInfo=Object.assign(I.tvAppInfo||{},{certificationScope:k}));if(!g.CO("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var h=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(u){}h=void 0}h&&(I.timeZone=h)}(h=Tr())?I.experimentsToken=h:delete I.experimentsToken;h=bL();nb.instance||(nb.instance=new nb);Z.request=Object.assign({},Z.request,{internalExperimentFlags:h,consistencyTokenJars:Qg(nb.instance.Y)});!g.CO("web_prequest_context_killswitch")&&(h=g.nc("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(Z.request.externalPrequestContext=h);I=g.JX();h=I.Kp(58);I=I.get("gsml","");Z.user=Object.assign({}, Z.user);h&&(Z.user.enableSafetyMode=h);I&&(Z.user.lockedSafetyMode=!0);g.CO("warm_op_csn_cleanup")?F&&(D=g.d4())&&(Z.clientScreenNonce=D):!D&&(D=g.d4())&&(Z.clientScreenNonce=D);f&&(Z.clickTracking={clickTrackingParams:f});if(f=g.QY("yt.mdx.remote.remoteClient_"))Z.remoteClient=f;PK.getInstance().setLocationOnInnerTubeContext(Z);try{var y=iL(),A=y.bid;delete y.bid;Z.adSignalsInfo={params:[],bid:A};for(var V=g.a(Object.entries(y)),R=V.next();!R.done;R=V.next()){var m=g.a(R.value),b=m.next().value, U=m.next().value;y=b;A=U;f=void 0;(f=Z.adSignalsInfo.params)==null||f.push({key:y,value:""+A})}var S,G;if(((S=Z.client)==null?void 0:S.clientName)==="TVHTML5"||((G=Z.client)==null?void 0:G.clientName)==="TVHTML5_UNPLUGGED"){var W=g.nc("INNERTUBE_CONTEXT");W.adSignalsInfo&&(Z.adSignalsInfo.advertisingId=W.adSignalsInfo.advertisingId,Z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",Z.adSignalsInfo.limitAdTracking=W.adSignalsInfo.limitAdTracking)}}catch(u){g.SJ(u)}return Z}; H0I=function(f,D){if(!f)return!1;var F,Z=(F=g.Q(f,sty))==null?void 0:F.signal;if(Z&&D.zN)return!!D.zN[Z];var I;if((F=(I=g.Q(f,qXE))==null?void 0:I.request)&&D.L9)return!!D.L9[F];for(var p in f)if(D.uD[p])return!0;return!1}; oby=function(f){var D={"Content-Type":"application/json"};g.nc("EOM_VISITOR_DATA")?D["X-Goog-EOM-Visitor-Id"]=g.nc("EOM_VISITOR_DATA"):g.nc("VISITOR_DATA")&&(D["X-Goog-Visitor-Id"]=g.nc("VISITOR_DATA"));D["X-Youtube-Bootstrap-Logged-In"]=g.nc("LOGGED_IN",!1);g.nc("DEBUG_SETTINGS_METADATA")&&(D["X-Debug-Settings-Metadata"]=g.nc("DEBUG_SETTINGS_METADATA"));f!=="cors"&&((f=g.nc("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(D["X-Youtube-Client-Name"]=f),(f=g.nc("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(D["X-Youtube-Client-Version"]= f),(f=g.nc("CHROME_CONNECTED_HEADER"))&&(D["X-Youtube-Chrome-Connected"]=f),(f=g.nc("DOMAIN_ADMIN_STATE"))&&(D["X-Youtube-Domain-Admin-State"]=f));(f=g.nc("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(D["X-YouTube-Lava-Device-Context"]=f);return D}; K5u=function(){this.Y={}}; DO=function(){this.mappings=new K5u}; Fd=function(f){return function(){return new f}}; jtw=function(f){var D=D===void 0?"UNKNOWN_INTERFACE":D;if(f.length===1)return f[0];var F=key[D];if(F){F=new RegExp(F);for(var Z=g.a(f),I=Z.next();!I.done;I=Z.next())if(I=I.value,F.exec(I))return I}var p=[];Object.entries(key).forEach(function(z){var H=g.a(z);z=H.next().value;H=H.next().value;D!==z&&p.push(H)}); F=new RegExp(p.join("|"));f.sort(function(z,H){return z.length-H.length}); Z=g.a(f);for(I=Z.next();!I.done;I=Z.next())if(I=I.value,!F.exec(I))return I;return f[0]}; g.ZO=function(f){return"/youtubei/v1/"+jtw(f)}; In=function(){}; pP=function(){}; zt=function(){}; sl=function(f){return g.QY("ytcsi."+(f||"")+"data_")||i0a(f)}; hCy=function(){var f=sl();f.info||(f.info={});return f.info}; qz=function(f){f=sl(f);f.metadata||(f.metadata={});return f.metadata}; Hk=function(f){f=sl(f);f.tick||(f.tick={});return f.tick}; on=function(f){f=sl(f);if(f.gel){var D=f.gel;D.gelInfos||(D.gelInfos={});D.gelTicks||(D.gelTicks={})}else f.gel={gelTicks:{},gelInfos:{}};return f.gel}; y2a=function(f){f=on(f);f.gelInfos||(f.gelInfos={});return f.gelInfos}; KP=function(f){var D=sl(f).nonce;D||(D=g.hK(16),sl(f).nonce=D);return D}; i0a=function(f){var D={tick:{},info:{}};g.dE("ytcsi."+(f||"")+"data_",D);return D}; k6=function(){var f=g.QY("ytcsi.debug");f||(f=[],g.dE("ytcsi.debug",f),g.dE("ytcsi.reference",{}));return f}; jT=function(f){f=f||"";var D=A2T();if(D[f])return D[f];var F=k6(),Z={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};F.push(Z);return D[f]=Z}; $Sd=function(f){f=f||"";var D=A2T();D[f]&&delete D[f];var F=k6(),Z={timerName:f,info:{},tick:{},span:{},jspbInfo:[]};F.push(Z);D[f]=Z}; A2T=function(){var f=g.QY("ytcsi.reference");if(f)return f;k6();return g.QY("ytcsi.reference")}; iO=function(f){return VFE[f]||"LATENCY_ACTION_UNKNOWN"}; h7=function(f,D){i_.call(this,1,arguments);this.timer=D}; yl=function(){this.Y=0}; A7=function(){yl.instance||(yl.instance=new yl);return yl.instance}; Vl=function(f,D){$6[D]=$6[D]||{count:0};var F=$6[D];F.count++;F.time=(0,g.m5)();f.Y||(f.Y=g.Yj(0,function(){var Z=(0,g.m5)(),I;for(I in $6)$6[I]&&Z-$6[I].time>6E4&&delete $6[I];f&&(f.Y=0)},5E3)); return F.count>5?(F.count===6&&Math.random()*1E5<1&&(F=new g.by("CSI data exceeded logging limit with key",D.split("_")),D.indexOf("plev")>=0||g.UT(F)),!0):!1}; RCu=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; dSf=function(){var f;if(g.CO("csi_use_performance_navigation_timing")){var D,F,Z,I=Rn==null?void 0:(f=Rn.getEntriesByType)==null?void 0:(D=f.call(Rn,"navigation"))==null?void 0:(F=D[0])==null?void 0:(Z=F.toJSON)==null?void 0:Z.call(F);I?(I.requestStart=dg(I.requestStart),I.responseEnd=dg(I.responseEnd),I.redirectStart=dg(I.redirectStart),I.redirectEnd=dg(I.redirectEnd),I.domainLookupEnd=dg(I.domainLookupEnd),I.connectStart=dg(I.connectStart),I.connectEnd=dg(I.connectEnd),I.responseStart=dg(I.responseStart), I.secureConnectionStart=dg(I.secureConnectionStart),I.domainLookupStart=dg(I.domainLookupStart),I.isPerformanceNavigationTiming=!0,f=I):f=Rn.timing}else f=g.CO("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Rn.timing)):Rn.timing;return f}; dg=function(f){return Math.round(Ql()+f)}; Ql=function(){return(g.CO("csi_use_time_origin")||g.CO("csi_use_time_origin_tvhtml5"))&&Rn.timeOrigin?Math.floor(Rn.timeOrigin):Rn.timing.navigationStart}; mu=function(f,D){CP("_start",f,D)}; Tt=function(f,D){if(!g.CO("web_csi_action_sampling_enabled")||!sl(D).actionDisabled){var F=jT(D||"");ql(F.info,f);f.loadType&&(F=f.loadType,qz(D).loadType=F);ql(y2a(D),f);F=KP(D);D=sl(D).cttAuthInfo;A7().info(f,F,D)}}; Qta=function(){var f,D,F,Z;return((Z=Ml().resolve(Qe(qc))==null?void 0:(f=HH())==null?void 0:(D=f.loggingHotConfig)==null?void 0:(F=D.csiConfig)==null?void 0:F.debugTicks)!=null?Z:[]).map(function(I){return Object.values(I)[0]})}; CP=function(f,D,F){if(!g.CO("web_csi_action_sampling_enabled")||!sl(F).actionDisabled){var Z=KP(F),I;if(I=g.CO("web_csi_debug_sample_enabled")&&Z){(Ml().resolve(Qe(qc))==null?0:HH())&&!CuJ&&(CuJ=!0,CP("gcfl",(0,g.m5)(),F));var p,z,H;I=(Ml().resolve(Qe(qc))==null?void 0:(p=HH())==null?void 0:(z=p.loggingHotConfig)==null?void 0:(H=z.csiConfig)==null?void 0:H.debugSampleWeight)||0;if(p=I!==0)b:{p=Qta();if(p.length>0)for(z=0;zF.duration?Z:F},{duration:0}))&&D.startTime>0&&D.responseEnd>0&&(CP("wffs",dg(D.startTime)),CP("wffe",dg(D.responseEnd)))}; c2u=function(f,D,F){Rn&&Rn.measure&&(f.startsWith("measure_")||(f="measure_"+f),F?Rn.measure(f,D,F):D?Rn.measure(f,D):Rn.measure(f))}; USu=function(f){var D=bO("aft",f);if(D)return D;D=g.nc((f||"")+"TIMING_AFT_KEYS",["ol"]);for(var F=D.length,Z=0;Z0&&Tt(D);D={isNavigation:!0,actionType:iO(g.nc("TIMING_ACTION"))};var F=g.nc("PREVIOUS_ACTION");F&&(D.previousAction=iO(F));if(F=g.nc("CLIENT_PROTOCOL"))D.httpProtocol=F;if(F=g.nc("CLIENT_TRANSPORT"))D.transportProtocol=F;(F=g.d4())&&F!=="UNDEFINED_CSN"&&(D.clientScreenNonce=F);F=b0y();if(F===1||F===-1)D.isVisible= !0;F=qz().loadType==="cold";var Z=hCy();F||(F=Z.yt_lt==="cold");if(F){D.loadType="cold";F=hCy();Z=dSf();var I=Ql(),p=g.nc("CSI_START_TIMESTAMP_MILLIS",0);p>0&&!g.CO("embeds_web_enable_csi_start_override_killswitch")&&(I=p);I&&(CP("srt",Z.responseStart),F.prerender!==1&&mu(I));F=Gec();F>0&&CP("fpt",F);F=dSf();F.isPerformanceNavigationTiming&&Tt({performanceNavigationTiming:!0},void 0);CP("nreqs",F.requestStart,void 0);CP("nress",F.responseStart,void 0);CP("nrese",F.responseEnd,void 0);F.redirectEnd- F.redirectStart>0&&(CP("nrs",F.redirectStart,void 0),CP("nre",F.redirectEnd,void 0));F.domainLookupEnd-F.domainLookupStart>0&&(CP("ndnss",F.domainLookupStart,void 0),CP("ndnse",F.domainLookupEnd,void 0));F.connectEnd-F.connectStart>0&&(CP("ntcps",F.connectStart,void 0),CP("ntcpe",F.connectEnd,void 0));F.secureConnectionStart>=Ql()&&F.connectEnd-F.secureConnectionStart>0&&(CP("nstcps",F.secureConnectionStart,void 0),CP("ntcpe",F.connectEnd,void 0));Rn&&"getEntriesByType"in Rn&&SXJ();F=[];if(document.querySelector&& Rn&&Rn.getEntriesByName)for(var z in ST)ST.hasOwnProperty(z)&&(Z=ST[z],tFy(z,Z)&&F.push(Z));if(F.length>0)for(D.resourceInfo=[],z=g.a(F),F=z.next();!F.done;F=z.next())D.resourceInfo.push({resourceCache:F.value})}Tt(D);D=on();D.preLoggedGelInfos||(D.preLoggedGelInfos=[]);z=D.preLoggedGelInfos;D=y2a();F=void 0;for(Z=0;Z-1&&(delete ju["@type"],u=ju);V&&f.J.has(V)&&f.J.delete(V);((QX=D.config)==null?0:QX.DzE)&&Ul(D.config.DzE);if(u||(Yc=f.B)==null||!Yc.nto(D.input,D.Ce)){ly.ZE(11);break}return g.r(ly,f.B.PHT(D.input,D.Ce),12);case 12:u=ly.J;case 11:return lO(f, u,D),((s0=D.config)==null?0:s0.J6Y)&&Ul(D.config.J6Y),Z(),ly.return(u||void 0)}})}; xSu=function(f,D){a:{f=f.Cn;var F,Z=(F=g.Q(D,sty))==null?void 0:F.signal;if(Z&&f.zN&&(F=f.zN[Z])){var I=F();break a}var p;if((F=(p=g.Q(D,qXE))==null?void 0:p.request)&&f.L9&&(p=f.L9[F])){I=p();break a}for(I in D)if(f.uD[I]&&(D=f.uD[I])){I=D();break a}I=void 0}if(I!==void 0)return Promise.resolve(I)}; O0I=function(f,D,F){var Z,I,p,z,H,K,k;return g.l(function(h){if(h.Y==1){p=((Z=D)==null?void 0:(I=Z.Jx)==null?void 0:I.identity)||kh;K=(z=D)==null?void 0:(H=z.Jx)==null?void 0:H.sessionIndex;var y=g.ts(f.Y.Sc(p,{sessionIndex:K}));return g.r(h,y,2)}k=h.J;return h.return(Promise.resolve(Object.assign({},oby(F),k)))})}; XGu=function(f,D,F){var Z,I=(D==null?void 0:(Z=D.Jx)==null?void 0:Z.identity)||kh,p;D=D==null?void 0:(p=D.Jx)==null?void 0:p.sessionIndex;f=f.Y.Sc(I,{sessionIndex:D});return Object.assign({},oby(F),f)}; El=function(){}; J7=function(){}; uO=function(f){this.T=f}; Nz=function(){}; gg=function(){}; eT=function(){}; x6=function(){}; g.Xd=function(f,D){var F=g.hv.apply(2,arguments);f=f===void 0?0:f;g.by.call(this,D,F);this.errorType=f;Object.setPrototypeOf(this,this.constructor.prototype)}; Ol=function(f){this.Y=f}; Dcs=function(f,D,F){if(f.Y){var Z=QW(a_(D,"key"))||"/UNKNOWN_PATH";f.Y.start(Z)}f=F;g.CO("wug_networking_gzip_request")&&(f=y$X(F));return new window.Request(D,f)}; g.Y6=function(f,D){if(!nP){var F=Ml();C_(F,{q$:FYd,OT:Ol});var Z={uD:{feedbackEndpoint:Fd(Nz),modifyChannelNotificationPreferenceEndpoint:Fd(gg),playlistEditEndpoint:Fd(eT),shareEntityEndpoint:Fd(uO),subscribeEndpoint:Fd(El),unsubscribeEndpoint:Fd(J7),webPlayerShareEntityServiceEndpoint:Fd(x6)}},I=PK.getInstance(),p={};I&&(p.client_location=I);f===void 0&&(f=bQw());D===void 0&&(D=F.resolve(FYd));eCu(Z,D,f,p);C_(F,{q$:ZlI,IY:Bk.instance});nP=F.resolve(ZlI)}return nP}; I3T=function(f){var D=new se;if(f.interpreterJavascript){var F=jvD(f.interpreterJavascript);F=vZ(F).toString();var Z=new pQ;Y0(Z,6,F);E8(D,pQ,1,Z,zA)}else f.interpreterUrl&&(F=tD(f.interpreterUrl),F=yi(F).toString(),Z=new zd,Y0(Z,4,F),E8(D,zd,2,Z,zA));f.interpreterHash&&P3(D,3,f.interpreterHash,zA);f.program&&P3(D,4,f.program,zA);f.globalName&&P3(D,5,f.globalName,zA);f.clientExperimentsStateBlob&&P3(D,7,f.clientExperimentsStateBlob,zA);return D}; Pk=function(f){var D={};f=f.split("&");f=g.a(f);for(var F=f.next();!F.done;F=f.next())F=F.value.split("="),F.length===2&&(D[F[0]]=F[1]);return D}; pHT=function(){var f=f===void 0?window:f;var D,F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,IB(),2);D=f;F=D.bgevmc;if(!F)throw Error("BGE Controls not exposed");return Z.return({pause:function(){F.p()}, resume:function(){F.r()}, checkForRefresh:function(){return F.cr()}})})}; D0T=function(){if(g.CO("bg_st_hr"))return"havuokmhhs-0";var f,D=((f=globalThis.performance)==null?void 0:f.timeOrigin)||0;return"havuokmhhs-"+Math.floor(D)}; f6=function(f){window.bgens=f}; D2=function(f){this.Y=f}; zKa=function(){return new Promise(function(f){var D=window;D.ntpevasrs!==void 0?f(new D2(D.ntpevasrs)):(D.ntpqfbel===void 0&&(D.ntpqfbel=[]),D.ntpqfbel.push(function(F){f(new D2(F))}))})}; Hld=function(){if(pC()){var f=g.nc("PLAYER_VARS",{});if(g.S5(f,"privembed",!1)!="1"&&!fEE(f)){var D=function(){Fl=!0;"google_ad_status"in window?Ot("DCLKSTAT",1):Ot("DCLKSTAT",2)}; try{g.Zd(sSJ,D)}catch(F){}q2d.push(g.lP.vp(function(){if(!(Fl||"google_ad_status"in window)){try{if(sSJ.toString()&&D){var F=""+g.ve(D),Z=naX[F];Z&&g.Dd(Z)}}catch(I){}Fl=!0;Ot("DCLKSTAT",3)}},5E3))}}}; Z2=function(){var f=Number(g.nc("DCLKSTAT",0));return isNaN(f)?0:f}; sA=function(f,D,F){var Z=this;this.network=f;this.options=D;this.G=F;this.B=0;this.Y=null;this.J=new Oqy;if(D.Jlr){var I=new g.Hc;this.Y=I.promise;g.RU.ytAtRC?nC(function(){var p,z;return g.l(function(H){if(H.Y==1){if(!g.RU.ytAtRC)return Z.J.Dx(6,Z.B++),H.return();Z.J.Dx(2,Z.B++);p=Ia(null);return g.r(H,p6(Z,p),2)}z=H.J;g.RU.ytAtRC&&g.RU.ytAtRC(JSON.stringify(z));g.Zb(H)})},2,mI("att_init_delay",0)):this.J.Dx(1,this.B++); zKa().then(function(p){var z,H,K,k;return g.l(function(h){if(h.Y==1)return p.bindInnertubeChallengeFetcher(function(y){Z.J.Dx(3,Z.B++);return p6(Z,Ia(y))}),g.r(h,IB(),2); z=h.J;H=p.getLatestChallengeResponse();K=H.challenge;if(!K)throw Error("BGE_MACIL");k={challenge:K,GR:Pk(K),q7:z,bgChallenge:new se};I.resolve(k);p.registerChallengeFetchedCallback(function(y){y=y.challenge;if(!y)throw Error("BGE_MACR");y={challenge:y,GR:Pk(y),q7:z,bgChallenge:new se};Z.Y=Promise.resolve(y)}); g.Zb(h)})})}else D.preload&&oha(this,new Promise(function(p){g.Yj(0,function(){p(zF(Z))},0)}))}; Ia=function(f){var D={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};f&&(D.interpreterHash=f);return D}; zF=function(f,D){D=D===void 0?0:D;var F,Z,I,p,z,H,K,k,h,y,A,V;return g.l(function(R){switch(R.Y){case 1:F=Ia(kB().Y);if(g.CO("att_fet_ks"))return g.po(R,7),f.J.Dx(5,f.B++),g.r(R,p6(f,F),9);g.po(R,4);return g.r(R,KYy(f,F),6);case 6:z=R.J;I=z.F$3;p=z.NSd;Z=z;g.qC(R,3);break;case 4:return g.He(R),g.UT(Error("Failed to fetch attestation challenge after "+(D+" attempts; not retrying for 24h."))),qb(f,864E5),R.return({challenge:"",GR:{},q7:void 0,bgChallenge:void 0});case 9:Z=R.J;if(!Z)throw Error("Fetching Attestation challenge returned falsy"); if(!Z.challenge)throw Error("Missing Attestation challenge");I=Z.challenge;p=Pk(I);if("c1a"in p&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.qC(R,3);break;case 7:H=g.He(R);g.UT(H);D++;if(D>=5)return g.UT(Error("Failed to fetch attestation challenge after "+(D+" attempts; not retrying for 24h."))),qb(f,864E5),R.return({challenge:"",GR:{},q7:void 0,bgChallenge:void 0});K=1E3*Math.pow(2,D-1)+Math.random()*1E3;return R.return(new Promise(function(m){g.Yj(0, function(){m(zF(f,D))},K)})); case 3:k=Number(p.t)||7200;qb(f,k*1E3);h=void 0;if(!("c1a"in p&&Z.bgChallenge)){R.ZE(10);break}y=I3T(Z.bgChallenge);g.po(R,11);return g.r(R,Pis(kB(),y),13);case 13:g.qC(R,12);break;case 11:return A=g.He(R),g.UT(A),R.return({challenge:I,GR:p,q7:h,bgChallenge:y});case 12:return g.po(R,14),h=new o5({challenge:y,b6:{xC:"aGIf"}}),g.r(R,h.FG,16);case 16:g.qC(R,10);break;case 14:V=g.He(R),g.UT(V),h=void 0;case 10:return R.return({challenge:I,GR:p,q7:h,bgChallenge:y})}})}; kzI=function(f,D){var F;return g.l(function(Z){if(Z.Y==1)return f6(2),g.po(Z,2),g.r(Z,p6(f.network,D),4);if(Z.Y!=2)return(F=Z.J)?F.challenge&&!F.bgChallenge?f6(1):f6(4):f6(3),Z.return(F);g.He(Z);f6(3);return Z.return(void 0)})}; p6=function(f,D){var F;return g.l(function(Z){F=f.G;if(!F||F.Sm())return Z.return(kzI(f,D));Wk("att_pna",void 0,"attestation_challenge_fetch");return Z.return(new Promise(function(I){F.Pb("publicytnetworkstatus-online",function(){kzI(f,D).then(I)})}))})}; jSD=function(f){if(!f)throw Error("Fetching Attestation challenge returned falsy");if(!f.challenge)throw Error("Missing Attestation challenge");var D=f.challenge,F=Pk(D);if("c1a"in F&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},f,{F$3:D,NSd:F})}; KYy=function(f,D){var F,Z,I,p,z;return g.l(function(H){switch(H.Y){case 1:F=void 0,Z=0,I={};case 2:if(!(Z<5)){H.ZE(4);break}if(!(Z>0)){H.ZE(5);break}I.Oa=1E3*Math.pow(2,Z-1)+Math.random()*1E3;return g.r(H,new Promise(function(K){return function(k){g.Yj(0,function(){k(void 0)},K.Oa)}}(I)),5); case 5:return g.po(H,7),f.J.Dx(4,f.B++),g.r(H,p6(f,D),9);case 9:return p=H.J,H.return(jSD(p));case 7:F=z=g.He(H),z instanceof Error&&g.UT(z);case 8:Z++;I={Oa:void 0};H.ZE(2);break;case 4:throw F;}})}; oha=function(f,D){f.Y=D}; ilI=function(f){var D,F,Z;return g.l(function(I){if(I.Y==1)return g.r(I,Promise.race([f.Y,null]),2);D=I.J;var p=zF(f);f.Y=p;(F=D)==null||(Z=F.q7)==null||Z.dispose();g.Zb(I)})}; qb=function(f,D){function F(){var I;return g.l(function(p){I=Z-Date.now();return I<1E3?g.r(p,ilI(f),0):(nC(F,0,Math.min(I,6E4)),p.ZE(0))})} var Z=Date.now()+D;F()}; hKT=function(f,D){return new Promise(function(F){g.Yj(0,function(){F(D())},f)})}; yTc=function(){return new Promise(function(f){var D=window;D.attmp!==void 0?f(D.attmp):(D.attmq===void 0&&(D.attmq=[]),D.attmq.push(function(F){f(F)}))})}; g.ATD=function(f,D){var F,Z,I;return g.l(function(p){if(p.Y==1){if(!g.CO("attmusi")||!g.CO("attmusi_ue"))return p.ZE(2);F=window;return F.attmp!==void 0?p.return(F.attmp.s("ENGAGEMENT_TYPE_PLAYBACK",f,D)):g.r(p,yTc(),3)}if(p.Y!=2)return Z=p.J,p.return(Z.s("ENGAGEMENT_TYPE_PLAYBACK",f,D));var z=g.QY("yt.aba.att");return(I=z?z:sA.instance!==void 0?sA.instance.X.bind(sA.instance):null)?p.return(I("ENGAGEMENT_TYPE_PLAYBACK",f,D)):p.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.$cy=function(){var f,D,F;return g.l(function(Z){if(Z.Y==1){if(!g.CO("attmusi")||!g.CO("attmusi_ue"))return Z.ZE(2);f=window;return f.attmp===void 0?Z.return(!1):g.r(Z,yTc(),3)}if(Z.Y!=2)return D=Z.J,Z.return(D.ir());var I=g.QY("yt.aba.att2");return(F=I?I:sA.instance!==void 0?sA.instance.T.bind(sA.instance):null)?Z.return(F()):Z.return(Promise.resolve(!1))})}; RKJ=function(f,D){var F=g.QY("ytDebugData.callbacks");F||(F={},g.dE("ytDebugData.callbacks",F));if(g.CO("web_dd_iu")||Vay.includes(f))F[f]=D}; HB=function(){var f=dcf;var D=D===void 0?[]:D;var F=F===void 0?[]:F;D=svc.apply(null,[qDE.apply(null,g.w(D))].concat(g.w(F)));this.store=oQc(f,void 0,D)}; g.oa=function(f,D,F){for(var Z=Object.assign({},f),I=g.a(Object.keys(D)),p=I.next();!p.done;p=I.next()){p=p.value;var z=f[p],H=D[p];if(H===void 0)delete Z[p];else if(z===void 0)Z[p]=H;else if(Array.isArray(H)&&Array.isArray(z))Z[p]=F?[].concat(g.w(z),g.w(H)):H;else if(!Array.isArray(H)&&g.tv(H)&&!Array.isArray(z)&&g.tv(z))Z[p]=g.oa(z,H,F);else if(typeof H===typeof z)Z[p]=H;else return D=new g.by("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:p,GOx:z,updateValue:H}),g.SJ(D), f}return Z}; K6=function(f){var D=this;f=f===void 0?[]:f;this.Y=[];this.B=this.J=0;this.G=void 0;this.totalLength=0;f.forEach(function(F){D.append(F)})}; QSy=function(f,D){return f.Y.length===0?!1:(f=f.Y[f.Y.length-1])&&f.buffer===D.buffer&&f.byteOffset+f.length===D.byteOffset}; kl=function(f,D){D=g.a(D.Y);for(var F=D.next();!F.done;F=D.next())f.append(F.value)}; jB=function(f,D,F){return f.split(D).R6.split(F).CV}; iw=function(f){f.G=void 0;f.J=0;f.B=0}; hh=function(f,D,F){f.isFocused(D);return D-f.B+F<=f.Y[f.J].length}; C_s=function(f){if(!f.G){var D=f.Y[f.J];f.G=new DataView(D.buffer,D.byteOffset,D.length)}return f.G}; mcT=function(f,D,F){D=D===void 0?0:D;F=F===void 0?-1:F;if(!f.totalLength||!F)return new DataView(new ArrayBuffer(0));F<0&&(F=f.totalLength-D);f.focus(D);if(!hh(f,D,F)){var Z=f.J,I=f.B;f.focus(D+F-1);I=new Uint8Array(f.B+f.Y[f.J].length-I);for(var p=0,z=Z;z<=f.J;z++)I.set(f.Y[z],p),p+=f.Y[z].length;f.Y.splice(Z,f.J-Z+1,I);iw(f);f.focus(D)}Z=f.Y[f.J];return new DataView(Z.buffer,Z.byteOffset+D-f.B,F)}; yo=function(f,D,F){f=mcT(f,D===void 0?0:D,F===void 0?-1:F);return new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}; Ah=function(f,D,F){f=yo(f,D===void 0?0:D,F===void 0?-1:F);D=new Uint8Array(f.length);try{D.set(f)}catch(Z){for(F=0;F>10;p=56320|p&1023}dX[I++]=p}}p=String.fromCharCode.apply(String,dX); I<1024&&(p=p.substring(0,I));F.push(p)}return F.join("")}; mU=function(f,D){var F;if((F=C6)==null?0:F.encodeInto)return D=C6.encodeInto(f,D),D.read>6|192:((I&64512)===55296&&Z+1>18|240,D[F++]=I>>12&63|128):D[F++]=I>>12|224,D[F++]=I>>6&63|128),D[F++]=I&63|128)}return F}; TF=function(f){if(C6)return C6.encode(f);var D=new Uint8Array(Math.ceil(f.length*1.2)),F=mU(f,D);D.lengthF&&(D=D.subarray(0,F));return D}; bw=function(f){this.Y=f;this.pos=0;this.J=-1}; Mb=function(f){var D=$l(f.Y,f.pos);++f.pos;if(D<128)return D;for(var F=D&127,Z=1;D>=128;)D=$l(f.Y,f.pos),++f.pos,Z*=128,F+=(D&127)*Z;return F}; th=function(f,D){var F=f.J;for(f.J=-1;f.pos+1<=f.Y.totalLength;){F<0&&(F=Mb(f));var Z=F>>3,I=F&7;if(Z===D)return!0;if(Z>D){f.J=F;break}F=-1;switch(I){case 0:Mb(f);break;case 1:f.pos+=8;break;case 2:Z=Mb(f);f.pos+=Z;break;case 5:f.pos+=4}}return!1}; SB=function(f,D){if(th(f,D))return Mb(f)}; cB=function(f,D){if(th(f,D))return D=yo(f.Y,f.pos,8),f.pos+=8,(new DataView(D.buffer,D.byteOffset,D.byteLength)).getFloat64(0,!0)}; UA=function(f,D){if(th(f,D))return!!Mb(f)}; vB=function(f,D){if(th(f,D)){D=Mb(f);var F=yo(f.Y,f.pos,D);f.pos+=D;return F}}; aa=function(f,D){if(f=vB(f,D))return g.Qo(f)}; GF=function(f,D,F){if(f=vB(f,D))return F(new bw(new K6([f])))}; wX=function(f,D){for(var F=[];th(f,D);)F.push(Mb(f));return F.length?F:void 0}; WB=function(f,D,F){for(var Z=[],I;I=vB(f,D);)Z.push(F(new bw(new K6([I]))));return Z.length?Z:void 0}; BB=function(f,D){f=f instanceof Uint8Array?new K6([f]):f;return D(new bw(f))}; MaJ=function(f,D){f=new Uint8Array(f);D&&f.set(D);return f}; tad=function(f){this.pos=0;this.J=[];this.Y=MaJ(f===void 0?4096:f);this.view=new DataView(this.Y.buffer,this.Y.byteOffset,this.Y.byteLength)}; rX=function(f,D){D=f.pos+D;if(!(f.Y.length>=D)){for(var F=f.Y.length*2;F268435455){rX(f,4);for(var F=D&1073741823,Z=0;Z<4;Z++)f.view.setUint8(f.pos,F&127|128),F>>=7,f.pos+=1;D=Math.floor(D/268435456)}for(rX(f,4);D>127;)f.view.setUint8(f.pos,D&127|128),D>>=7,f.pos+=1;f.view.setUint8(f.pos,D);f.pos+=1}; lw=function(f,D,F){F!==void 0&&(L6(f,D*8),L6(f,F))}; EA=function(f,D,F){F!==void 0&&lw(f,D,F?1:0)}; Jh=function(f,D,F){F!==void 0&&(L6(f,D*8+2),D=F.length,L6(f,D),rX(f,D),f.Y.set(F,f.pos),f.pos+=D)}; uw=function(f,D,F){F!==void 0&&(S2a(f,D,Math.ceil(Math.log2(F.length*4+2)/7)),rX(f,F.length*1.2),D=mU(F,f.Y.subarray(f.pos)),f.pos+D>f.Y.length&&(rX(f,D),D=mU(F,f.Y.subarray(f.pos))),f.pos+=D,cTc(f))}; S2a=function(f,D,F){F=F===void 0?2:F;L6(f,D*8+2);f.J.push(f.pos);f.J.push(F);f.pos+=F}; cTc=function(f){for(var D=f.J.pop(),F=f.J.pop(),Z=f.pos-F-D;D--;){var I=D?128:0;f.view.setUint8(F++,Z&127|I);Z>>=7}}; Nb=function(f,D,F,Z,I){F&&(S2a(f,D,I===void 0?3:I),Z(f,F),cTc(f))}; g.gX=function(f,D){var F=new tad(4096);D(F,f);return new Uint8Array(F.Y.buffer,F.Y.byteOffset,F.pos)}; g.eB=function(f){var D=new bw(new K6([L3(decodeURIComponent(f))]));f=aa(D,2);D=SB(D,4);var F=UcI[D];if(typeof F==="undefined")throw f=new g.by("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:D}),g.SJ(f),f;return{BS:D,entityType:F,entityId:f}}; g.xl=function(f,D){var F=F===void 0?0:F;var Z=new tad;Jh(Z,2,TF(f));f=vha[D];if(typeof f==="undefined")throw F=new g.by("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:D}),g.SJ(F),F;lw(Z,4,f);lw(Z,5,1);D=new Uint8Array(Z.Y.buffer,Z.Y.byteOffset,Z.pos);return encodeURIComponent(g.B9(D,F))}; Xl=function(f,D,F,Z){if(Z===void 0)return Z=Object.assign({},f[D]||{}),F=(delete Z[F],Z),Z={},Object.assign({},f,(Z[D]=F,Z));var I={},p={};return Object.assign({},f,(p[D]=Object.assign({},f[D],(I[F]=Z,I)),p))}; a3J=function(f,D,F,Z,I){var p=f[D];if(p==null||!p[F])return f;Z=g.oa(p[F],Z,I==="REPEATED_FIELDS_MERGE_OPTION_APPEND");I={};p={};return Object.assign({},f,(p[D]=Object.assign({},f[D],(I[F]=Z,I)),p))}; Gzu=function(f,D){f=f===void 0?{}:f;switch(D.type){case "ENTITY_LOADED":return D.payload.reduce(function(Z,I){var p,z=(p=I.options)==null?void 0:p.persistenceOption;if(z&&z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Z;if(!I.entityKey)return g.SJ(Error("Missing entity key")),Z;if(I.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!I.payload)return I=new g.by("REPLACE entity mutation is missing a payload",{entityKey:I.entityKey}),g.SJ(I),Z;var H=g.Ri(I.payload); return Xl(Z,H,I.entityKey,I.payload[H])}if(I.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{I=I.entityKey;try{var K=g.eB(I).entityType;H=Xl(Z,K,I);break a}catch(y){if(y instanceof Error){I=new g.by("Failed to deserialize entity key",{entityKey:I,originalMessage:y.message});g.SJ(I);H=Z;break a}throw y;}H=void 0}return H}if(I.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!I.payload)return I=new g.by("UPDATE entity mutation is missing a payload",{entityKey:I.entityKey}),g.SJ(I),Z;H=g.Ri(I.payload);var k,h;return a3J(Z, H,I.entityKey,I.payload[H],(k=I.fieldMask)==null?void 0:(h=k.mergeOptions)==null?void 0:h.repeatedFieldsMergeOption)}return Z},f); case "REPLACE_ENTITY":var F=D.payload;return Xl(f,F.entityType,F.key,F.Je);case "REPLACE_ENTITIES":return Object.keys(D.payload).reduce(function(Z,I){var p=D.payload[I];return Object.keys(p).reduce(function(z,H){return Xl(z,I,H,p[H])},Z)},f); case "UPDATE_ENTITY":return F=D.payload,a3J(f,F.entityType,F.key,F.Je,F.wYs);default:return f}}; OA=function(f,D,F){return f[D]?f[D][F]||null:null}; n6=function(f){return window.Int32Array?new Int32Array(f):Array(f)}; Z9=function(f){g.J.call(this);this.counter=[0,0,0,0];this.J=new Uint8Array(16);this.Y=16;if(!wHd){var D,F=new Uint8Array(256),Z=new Uint8Array(256);var I=1;for(D=0;D<256;D++)F[I]=D,Z[D]=I,I^=I<<1^(I>>7&&283);Yl=new Uint8Array(256);PB=n6(256);fu=n6(256);D9=n6(256);Fa=n6(256);for(var p=0;p<256;p++){I=p?Z[255^F[p]]:0;I^=I<<1^I<<2^I<<3^I<<4;I=I&255^I>>>8^99;Yl[p]=I;D=I<<1^(I>>7&&283);var z=D^I;PB[p]=D<<24|I<<16|I<<8|z;fu[p]=z<<24|PB[p]>>>8;D9[p]=I<<24|fu[p]>>>8;Fa[p]=I<<24|D9[p]>>>8}wHd=!0}I=n6(44);for(F= 0;F<4;F++)I[F]=f[4*F]<<24|f[4*F+1]<<16|f[4*F+2]<<8|f[4*F+3];for(Z=1;F<44;F++)f=I[F-1],F%4||(f=(Yl[f>>16&255]^Z)<<24|Yl[f>>8&255]<<16|Yl[f&255]<<8|Yl[f>>>24],Z=Z<<1^(Z>>7&&283)),I[F]=I[F-4]^f;this.key=I}; WYu=function(f){for(var D=f.key,F=f.counter[0]^D[0],Z=f.counter[1]^D[1],I=f.counter[2]^D[2],p=f.counter[3]^D[3],z=3;z>=0&&!(f.counter[z]=-~f.counter[z]);z--);for(var H,K,k=4;k<40;)z=PB[F>>>24]^fu[Z>>16&255]^D9[I>>8&255]^Fa[p&255]^D[k++],H=PB[Z>>>24]^fu[I>>16&255]^D9[p>>8&255]^Fa[F&255]^D[k++],K=PB[I>>>24]^fu[p>>16&255]^D9[F>>8&255]^Fa[Z&255]^D[k++],p=PB[p>>>24]^fu[F>>16&255]^D9[Z>>8&255]^Fa[I&255]^D[k++],F=z,Z=H,I=K;f=f.J;z=D[40];f[0]=Yl[F>>>24]^z>>>24;f[1]=Yl[Z>>16&255]^z>>16&255;f[2]=Yl[I>>8&255]^ z>>8&255;f[3]=Yl[p&255]^z&255;z=D[41];f[4]=Yl[Z>>>24]^z>>>24;f[5]=Yl[I>>16&255]^z>>16&255;f[6]=Yl[p>>8&255]^z>>8&255;f[7]=Yl[F&255]^z&255;z=D[42];f[8]=Yl[I>>>24]^z>>>24;f[9]=Yl[p>>16&255]^z>>16&255;f[10]=Yl[F>>8&255]^z>>8&255;f[11]=Yl[Z&255]^z&255;z=D[43];f[12]=Yl[p>>>24]^z>>>24;f[13]=Yl[F>>16&255]^z>>16&255;f[14]=Yl[Z>>8&255]^z>>8&255;f[15]=Yl[I&255]^z&255}; z1=function(){if(!ID&&!g.gt){if(pu)return pu;var f;pu=(f=window.crypto)==null?void 0:f.subtle;var D,F,Z;if(((D=pu)==null?0:D.importKey)&&((F=pu)==null?0:F.sign)&&((Z=pu)==null?0:Z.encrypt))return pu;pu=void 0}}; g.Hj=function(f){var D=z1();D&&(this.Y=new sP(f,D));this.J=new g.q6(f)}; sP=function(f,D){this.J=f;this.subtleCrypto=D}; BzI=function(f,D,F){var Z,I;return g.l(function(p){switch(p.Y){case 1:if(f.Y){p.ZE(2);break}return g.r(p,f.subtleCrypto.importKey("raw",f.J,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:f.Y=p.J;case 2:return Z={name:"AES-CTR",counter:F,length:128},g.r(p,f.subtleCrypto.encrypt(Z,f.Y,D),4);case 4:return I=p.J,p.return(new Uint8Array(I))}})}; g.q6=function(f){this.J=f}; oD=function(f){this.X=new Uint8Array(64);this.B=new Uint8Array(64);this.G=0;this.T=new Uint8Array(64);this.J=0;this.X.set(f);this.B.set(f);for(f=0;f<64;f++)this.X[f]^=92,this.B[f]^=54;this.reset()}; rTX=function(f,D,F){for(var Z=f.S,I=f.Y[0],p=f.Y[1],z=f.Y[2],H=f.Y[3],K=f.Y[4],k=f.Y[5],h=f.Y[6],y=f.Y[7],A,V,R,m=0;m<64;)m<16?(Z[m]=R=D[F]<<24|D[F+1]<<16|D[F+2]<<8|D[F+3],F+=4):(A=Z[m-2],V=Z[m-15],R=Z[m-7]+Z[m-16]+((A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Z[m]=R),A=y+Ku[m]+R+((K>>>6|K<<26)^(K>>>11|K<<21)^(K>>>25|K<<7))+(K&k^~K&h),V=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&p^I&z^p&z),y=A+V,H+=A,m++,m<16?(Z[m]=R=D[F]<<24|D[F+1]<<16|D[F+2]<<8|D[F+3],F+=4):(A= Z[m-2],V=Z[m-15],R=Z[m-7]+Z[m-16]+((A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Z[m]=R),A=h+Ku[m]+R+((H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&K^~H&k),V=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&I^y&p^I&p),h=A+V,z+=A,m++,m<16?(Z[m]=R=D[F]<<24|D[F+1]<<16|D[F+2]<<8|D[F+3],F+=4):(A=Z[m-2],V=Z[m-15],R=Z[m-7]+Z[m-16]+((A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Z[m]=R),A=k+Ku[m]+R+((z>>>6|z<<26)^(z>>>11|z<<21)^(z>>>25|z<<7))+(z&H^ ~z&K),V=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&y^h&I^y&I),k=A+V,p+=A,m++,m<16?(Z[m]=R=D[F]<<24|D[F+1]<<16|D[F+2]<<8|D[F+3],F+=4):(A=Z[m-2],V=Z[m-15],R=Z[m-7]+Z[m-16]+((A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Z[m]=R),A=K+Ku[m]+R+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&z^~p&H),V=((k>>>2|k<<30)^(k>>>13|k<<19)^(k>>>22|k<<10))+(k&h^k&y^h&y),R=y,y=H,H=R,R=h,h=z,z=R,R=k,k=p,p=R,K=I+A,I=A+V,m++;f.Y[0]=I+f.Y[0]|0;f.Y[1]=p+f.Y[1]|0;f.Y[2]=z+f.Y[2]|0;f.Y[3]= H+f.Y[3]|0;f.Y[4]=K+f.Y[4]|0;f.Y[5]=k+f.Y[5]|0;f.Y[6]=h+f.Y[6]|0;f.Y[7]=y+f.Y[7]|0}; l3c=function(f){var D=new Uint8Array(32),F=64-f.J;f.J>55&&(F+=64);var Z=new Uint8Array(F);Z[0]=128;for(var I=f.G*8,p=1;p<9;p++){var z=I%256;Z[F-p]=z;I=(I-z)/256}f.update(Z);for(F=0;F<8;F++)D[F*4]=f.Y[F]>>>24,D[F*4+1]=f.Y[F]>>>16&255,D[F*4+2]=f.Y[F]>>>8&255,D[F*4+3]=f.Y[F]&255;LYc(f);return D}; LYc=function(f){f.Y=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];f.S=[];f.S.length=64;f.G=0;f.J=0}; EhD=function(f){this.Y=f}; JTy=function(f,D,F){f=new oD(f.Y);f.update(D);f.update(F);D=l3c(f);f.update(f.X);f.update(D);D=l3c(f);f.reset();return D}; uOc=function(f){this.J=f}; NzT=function(f,D,F,Z){var I,p,z;return g.l(function(H){switch(H.Y){case 1:if(f.Y){H.ZE(2);break}return g.r(H,Z.importKey("raw",f.J,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:f.Y=H.J;case 2:return I=new Uint8Array(D.length+F.length),I.set(D),I.set(F,D.length),p={name:"HMAC",hash:"SHA-256"},g.r(H,Z.sign(p,f.Y,I),4);case 4:return z=H.J,H.return(new Uint8Array(z))}})}; ghD=function(f,D,F){f.B||(f.B=new EhD(f.J));return JTy(f.B,D,F)}; eKD=function(f,D,F){var Z,I;return g.l(function(p){if(p.Y==1){Z=z1();if(!Z)return p.return(ghD(f,D,F));g.po(p,3);return g.r(p,NzT(f,D,F,Z),5)}if(p.Y!=3)return p.return(p.J);I=g.He(p);g.UT(I);ID=!0;return p.return(ghD(f,D,F))})}; XHJ=function(f){for(var D="",F=0;F=0||cV(f,0,"gad_source",f.search(Uo))>=0}; Z_d=function(){this.Y=new Map}; pyf=function(f,D){var F=Ml().resolve(Idc);if(F_u(D)){var Z=vV(D,"gclid");D={handleEvent:function(H){f&&!f.closed&&typeof f.postMessage==="function"&&H&&H.origin&&H.source===f&&H.data&&H.data.action==="gcl_setup"&&f.postMessage(Object.assign({},{action:"gcl_transfer"},Z&&{gclid:Z},{gadSource:2}),H.origin)}}; for(var I=g.a(F.Y),p=I.next();!p.done;p=I.next()){var z=g.a(p.value);p=z.next().value;z=z.next().value;if(p.closed)try{window.removeEventListener("message",z),F.Y.delete(p)}catch(H){g.SJ(H)}}f&&F.Y.size<15&&(F.Y.set(f,D),window.addEventListener("message",D))}}; kk=function(f,D,F){if(!D)return f.length>=1?f[f.length-1]:null;for(var Z=g.a(f),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.width&&I.height&&(F&&I.width>=D||!F&&I.height>=D))return I;for(D=f.length-1;D>=0;D--)if(F&&f[D].width||!F&&f[D].height)return f[D];return f[0]}; jX=function(){this.state=1;this.q7=null;this.tJ=void 0}; szE=function(f,D,F,Z,I,p){var z=z===void 0?"trayride":z;F?(f.uJ(2),g.Zd(g.S_(F),function(){if(window[z])z7u(f,Z,z,I);else{f.uJ(3);var H=OYX(F),K=document.getElementById(H);K&&(xID(H),K.parentNode.removeChild(K));g.UT(new g.by("BL:ULB",""+F))}},p)):D?(p=g.TR("SCRIPT"),D instanceof Uc?(p.textContent=vZ(D),ah(p)):p.textContent=D,p.nonce=cZ(document),document.head.appendChild(p),document.head.removeChild(p),window[z]?z7u(f,Z,z,I):(f.uJ(4),g.UT(new g.by("BL:ULBJ")))):g.UT(new g.by("BL:ULV"))}; z7u=function(f,D,F,Z){f.uJ(5);var I=!!f.tJ&&quX.includes(g.dy(f.tJ)||"");try{var p=new o5({program:D,globalName:F,b6:{disable:!g.CO("att_web_record_metrics")||!g.CO("att_skip_metrics_for_cookieless_domains_ks")&&I,xC:"aGIf"}});p.FG.then(function(){f.uJ(6);Z&&Z(D)}); f.z0(p)}catch(z){f.uJ(7),z instanceof Error&&g.UT(z)}}; iR=function(){var f=g.QY("yt.abuse.playerAttLoader");return f&&["bgvma","bgvmb","bgvmc"].every(function(D){return D in f})?f:null}; h5=function(){jX.apply(this,arguments)}; yz=function(f){this.BV=f}; H_u=function(f,D,F){for(var Z=!1,I=g.a(f.MM.entries()),p=I.next();!p.done;p=I.next())p=g.a(p.value).next().value,p.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p.pQ==="core"&&(Z=!0);if(Z){a:if(!F){f=g.a(f.MM.entries());for(F=f.next();!F.done;F=f.next())if(Z=g.a(F.value),F=Z.next().value,Z=Z.next().value,F.slotType==="SLOT_TYPE_IN_PLAYER"&&F.pQ==="core"){F=Z.layoutId;break a}F=void 0}F?D.Zg(F):Kb("No triggering layout ID available when attempting to mute.")}}; A5=function(f,D){this.I6=f;this.tv=D}; $k=function(){}; Vz=function(){}; K_c=function(f){g.J.call(this);var D=this;this.bJ=f;this.Y=new Map;RD(this,"commandExecutorCommand",function(F,Z,I){oAf(D,F.commands,Z,I)}); RD(this,"clickTrackingParams",function(){})}; kwJ=function(f,D){RD(f,D.OS(),function(F,Z,I){D.tP(F,Z,I)})}; RD=function(f,D,F){f.MR();f.Y.get(D)&&g.SJ(Error("Extension name "+D+" already registered"));f.Y.set(D,F)}; oAf=function(f,D,F,Z){D=D===void 0?[]:D;f.MR();var I=[],p=[];D=g.a(D);for(var z=D.next();!z.done;z=D.next())z=z.value,g.Q(z,jzD)||g.Q(z,i_a)?I.push(z):p.push(z);I=g.a(I);for(D=I.next();!D.done;D=I.next())dx(f,D.value,F,Z);p=g.a(p);for(I=p.next();!I.done;I=p.next())dx(f,I.value,F,Z)}; dx=function(f,D,F,Z){f.MR();D.loggingUrls&&h7c(f,"loggingUrls",D.loggingUrls,F,Z);D=g.a(Object.entries(D));for(var I=D.next();!I.done;I=D.next()){var p=g.a(I.value);I=p.next().value;p=p.next().value;I==="openPopupAction"?f.bJ.get().vY("innertubeCommand",{openPopupAction:p}):I==="confirmDialogEndpoint"?f.bJ.get().vY("innertubeCommand",{confirmDialogEndpoint:p}):yKd.hasOwnProperty(I)||h7c(f,I,p,F,Z)}}; h7c=function(f,D,F,Z,I){if((f=f.Y.get(D))&&typeof f==="function")try{f(F,Z,I)}catch(p){g.SJ(p)}else D=new g.by("Unhandled field",D),g.UT(D)}; Qz=function(f,D,F){this.N5=f;this.Y=D;this.DE=F;C_(Ml(),{q$:Idc,OT:Z_d})}; Cu=function(f){this.value=f}; mG=function(f){this.value=f}; T1=function(f){this.value=f}; bR=function(f){this.value=f}; M6=function(f){this.value=f}; t5=function(f){this.value=f}; SX=function(f){this.value=f}; cj=function(){Cu.apply(this,arguments)}; UP=function(f){this.value=f}; vj=function(f){this.value=f}; aD=function(f){this.value=f}; G1=function(f){this.value=f}; wx=function(f){this.value=f}; Wj=function(f){this.value=f}; Bj=function(f){this.value=f}; rx=function(f){this.value=f}; Lu=function(f){this.value=f}; lR=function(f){this.value=f}; EP=function(){Cu.apply(this,arguments)}; J5=function(f){this.value=f}; uR=function(f){this.value=f}; N6=function(f){this.value=f}; gx=function(f){this.value=f}; eX=function(f){this.value=f}; xk=function(f){this.value=f}; Xa=function(f){this.value=f}; OP=function(f){this.value=f}; nu=function(f){this.value=f}; Yk=function(f){this.value=f}; Pj=function(f){this.value=f}; f$=function(f){this.value=f}; DR=function(f){this.value=f}; Fg=function(f){this.value=f}; ZR=function(f){this.value=f}; Iy=function(f){this.value=f}; p$=function(f){this.value=f}; zb=function(f){this.value=f}; sm=function(f){this.value=f}; qH=function(f){this.value=f}; Hf=function(f){this.value=f}; oy=function(f){this.value=f}; K$=function(f){this.value=f}; kV=function(f){this.value=f}; jU=function(f){this.value=f}; iz=function(f){this.value=f}; h0=function(f){this.value=f}; yD=function(f){this.value=f}; A0=function(f){this.value=f}; $V=function(f){this.value=f}; VD=function(f){this.value=f}; Ry=function(f){this.value=f}; dN=function(f){this.value=f}; QD=function(f){this.value=f}; C$=function(f){this.value=f}; m1=function(f){this.value=f}; Tb=function(f){this.value=f}; bz=function(f){this.value=f}; MH=function(f){this.value=f}; t0=function(f){this.value=f}; SU=function(){Cu.apply(this,arguments)}; cf=function(f){this.value=f}; Um=function(){Cu.apply(this,arguments)}; vf=function(){Cu.apply(this,arguments)}; ay=function(){Cu.apply(this,arguments)}; Gb=function(){Cu.apply(this,arguments)}; wN=function(){Cu.apply(this,arguments)}; Wf=function(f){this.value=f}; Bf=function(f){this.value=f}; rN=function(f){this.value=f}; L$=function(f){this.value=f}; Em=function(f,D,F){if(F&&!F.includes(f.layoutType))return!1;D=g.a(D);for(F=D.next();!F.done;F=D.next())if(!lz(f.clientMetadata,F.value))return!1;return!0}; J0=function(){return""}; AKT=function(f,D){switch(f){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 D(f),8}}; uz=function(f,D,F,Z){Z=Z===void 0?!1:Z;lX.call(this,f);this.xR=F;this.s9=Z;this.args=[];D&&this.args.push(D)}; Y=function(f,D,F,Z){Z=Z===void 0?!1:Z;lX.call(this,f);this.xR=F;this.s9=Z;this.args=[];D&&this.args.push(D)}; NH=function(f){var D=new Map;f.forEach(function(F){D.set(F.Y(),F)}); this.Y=D}; lz=function(f,D){return f.Y.has(D)}; gN=function(f,D){f=f.Y.get(D);if(f!==void 0)return f.get()}; eU=function(f){return Array.from(f.Y.keys())}; xV=function(f,D,F){if(F&&F!==f.slotType)return!1;D=g.a(D);for(F=D.next();!F.done;F=D.next())if(!lz(f.clientMetadata,F.value))return!1;return!0}; Vnw=function(f){var D;return((D=$lX.get(f))==null?void 0:D.Im)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Om=function(f,D){var F={type:D.slotType,controlFlowManagerLayer:R7u.get(D.pQ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};D.slotEntryTrigger&&(F.entryTriggerType=D.slotEntryTrigger.triggerType);D.slotPhysicalPosition!==1&&(F.slotPhysicalPosition=D.slotPhysicalPosition);if(f){F.debugData={slotId:D.slotId};if(f=D.slotEntryTrigger)F.debugData.slotEntryTriggerData=Xg(f);f=D.slotFulfillmentTriggers;F.debugData.fulfillmentTriggerData=[];f=g.a(f);for(var Z=f.next();!Z.done;Z=f.next())F.debugData.fulfillmentTriggerData.push(Xg(Z.value)); D=D.slotExpirationTriggers;F.debugData.expirationTriggerData=[];D=g.a(D);for(f=D.next();!f.done;f=D.next())F.debugData.expirationTriggerData.push(Xg(f.value))}return F}; dlD=function(f,D){var F={type:D.layoutType,controlFlowManagerLayer:R7u.get(D.pQ)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};f&&(F.debugData={layoutId:D.layoutId});return F}; Xg=function(f,D){var F={type:f.triggerType};D!=null&&(F.category=D);f.triggeringSlotId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedSlotId=f.triggeringSlotId);f.triggeringLayoutId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedLayoutId=f.triggeringLayoutId);return F}; Qzs=function(f,D,F,Z){D={opportunityType:D};f&&(Z||F)&&(Z=g.M2(Z||[],function(I){return Om(f,I)}),D.debugData=Object.assign({},F&&F.length>0?{associatedSlotId:F}:{},Z.length>0?{slots:Z}:{})); return D}; YV=function(f,D){return function(F){return CAa(n$(f),D.slotId,D.slotType,D.slotPhysicalPosition,D.pQ,D.slotEntryTrigger,D.slotFulfillmentTriggers,D.slotExpirationTriggers,F.layoutId,F.layoutType,F.pQ)}}; CAa=function(f,D,F,Z,I,p,z,H,K,k,h){return{adClientDataEntry:{slotData:Om(f,{slotId:D,slotType:F,slotPhysicalPosition:Z,pQ:I,slotEntryTrigger:p,slotFulfillmentTriggers:z,slotExpirationTriggers:H,clientMetadata:new NH([])}),layoutData:dlD(f,{layoutId:K,layoutType:k,pQ:h,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Xq:new Map,clientMetadata:new NH([]),Pk:{}})}}}; fn=function(f){this.mI=f;f=Math.random();var D=this.mI.get();D=g.Pf(D.U.j().experiments,"html5_debug_data_log_probability");D=Number.isFinite(D)&&D>=0&&D<=1?D:0;this.Y=f>31));lw(f,16,D.I5o);lw(f,17,D.detailedNetworkType);lw(f,18,D.xc);lw(f,19,D.EJ);lw(f,21,D.fBT);lw(f,23,D.wX);lw(f,28,D.Xh);lw(f,29,D.ke3);lw(f,34,D.visibility);F=D.playbackRate;if(F!==void 0){var Z=new ArrayBuffer(4);(new Float32Array(Z))[0]=F;F=(new Uint32Array(Z))[0];if(F!==void 0)for(L6(f,285),rX(f,4),Z=0;Z<4;)f.view.setUint8(f.pos,F&255),F>>=8,f.pos+=1,Z+=1}lw(f,36,D.w8); Nb(f,38,D.mediaCapabilities,imT,3);lw(f,39,D.Whs);lw(f,40,D.xx);lw(f,44,D.playerState);EA(f,46,D.pM);lw(f,48,D.w3);lw(f,50,D.E2);lw(f,51,D.Wh);lw(f,54,D.yN);if(D.Wj)for(F=0;F>31));uw(f,2,D.message)}; Chs=function(f,D){lw(f,1,D.clientState);Nb(f,2,D.anR,dsX,1)}; Ruf=function(f,D){Jh(f,1,D.OKQ);Nb(f,2,D.PtI,QVu,3);Nb(f,3,D.coldStartInfo,Chs,3)}; VAE=function(f,D){lw(f,1,D.type);Jh(f,2,D.value)}; $sd=function(f,D){uw(f,1,D.hl);uw(f,12,D.deviceMake);uw(f,13,D.deviceModel);lw(f,16,D.clientName);uw(f,17,D.clientVersion);uw(f,18,D.osName);uw(f,19,D.osVersion)}; msD=function(f,D){uw(f,1,D.name);uw(f,2,D.value)}; Qf=function(f,D){uw(f,1,D.url);if(D.Q5)for(var F=0;F55?"60":D>49?"50":D>39?"48":"")));this.qualityLabel=f;this.Y=K||"";this.primaries=k||""}; MJ=function(f,D){var F=Math.max(f,D);f=Math.min(f,D);D=ci[0];for(var Z=0;Z=Math.floor(p*16/9)*1.3||f>=p*1.3)return D;D=I}return"tiny"}; ap=function(f,D,F){F=F===void 0?{}:F;this.id=f;this.mimeType=D;F.Eq>0||(F.Eq=16E3);Object.assign(this,F);f=g.a(this.id.split(";"));this.itag=f.next().value;this.Y=f.next().value;this.containerType=U_(D);this.qR=vi[this.itag]||""}; GI=function(f){return f.qR==="9"||f.qR==="("||f.qR==="9h"||f.qR==="(h"}; qKJ=function(f){return f.qR==="H"||f.qR==="h"}; wj=function(f){return f.qR==="9h"||f.qR==="(h"}; HbE=function(f){return!!f.Sp&&!!f.Sp.fairplay&&(f.qR==="("||f.qR==="(h"||f.qR==="A"||f.qR==="MEAC3")||Wi&&!!f.Sp&&f.qR==="1e"}; Bi=function(f){return f.qR==="1"||f.qR==="1h"||Wi&&f.qR==="1e"}; rj=function(f){return f.qR==="mac3"||f.qR==="meac3"||f.qR==="m"||f.qR==="i"||o4E(f)}; o4E=function(f){return f.qR==="MAC3"||f.qR==="MEAC3"||f.qR==="M"||f.qR==="I"}; g.Lx=function(f){return f.containerType===1}; Ksa=function(f){return f.qR==="("||f.qR==="(h"||f.qR==="H"||Wi&&f.qR==="1e"}; ua=function(f){return f.mimeType==="application/x-mpegURL"}; g.NJ=function(f,D){return{itag:+f.itag,lmt:D?0:f.lastModified,xtags:f.Y||""}}; kLd=function(f){var D=navigator.mediaCapabilities;if(D==null||!D.decodingInfo||f.qR==="f")return Promise.resolve();var F={type:f.audio&&f.video?"file":"media-source"};f.video&&(F.video={contentType:f.mimeType,width:f.video.width||640,height:f.video.height||360,bitrate:f.Eq*8||1E6,framerate:f.video.fps||30});f.audio&&(F.audio={contentType:f.mimeType,channels:""+(f.audio.numChannels||2),bitrate:f.Eq*8||128E3,samplerate:f.audio.sampleRate||44100});return D.decodingInfo(F).then(function(Z){f.J=Z})}; gj=function(f){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(f)}; ex=function(f){return/(vp9|vp09|vp8|avc1|av01|av02)/.test(f)}; xY=function(f){return f.includes("vtt")||f.includes("text/mp4")}; U_=function(f){return f.indexOf("/mp4")>=0?1:f.indexOf("/webm")>=0?2:f.indexOf("/x-flv")>=0?3:f.indexOf("/vtt")>=0?4:0}; Xh=function(f,D,F,Z,I,p,z){var H=new h9;D in g.t9||(D="small");D==="light"&&(D="tiny");Z&&I?(I=Number(I),Z=Number(Z)):(I=g.t9[D],Z=Math.round(I*16/9));p=new Sx(Z,I,0,null,void 0,D,p,z);f=unescape(f.replace(/"/g,'"'));return new ap(F,f,{audio:H,video:p})}; O_=function(f,D){return{start:function(F){return f[F]}, end:function(F){return D[F]}, length:f.length}}; jjy=function(f,D,F){for(var Z=[],I=[],p=0;p=D)return F}catch(Z){}return-1}; Pi=function(f,D){return YY(f,D)>=0}; ibu=function(f,D){if(!f)return NaN;D=YY(f,D);return D>=0?f.start(D):NaN}; fi=function(f,D){if(!f)return NaN;D=YY(f,D);return D>=0?f.end(D):NaN}; DT=function(f){return f&&f.length?f.end(f.length-1):NaN}; FH=function(f){return DT(f)>0}; ZT=function(f,D){f=fi(f,D);return f>=0?f-D:0}; IK=function(f,D,F){for(var Z=[],I=[],p=0;pF||(Z.push(Math.max(D,f.start(p))-D),I.push(Math.min(F,f.end(p))-D));return O_(Z,I)}; pi=function(f,D,F,Z){g.zu.call(this);var I=this;this.BD=f;this.start=D;this.end=F;this.isActive=Z;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.BU={error:function(){!I.MR()&&I.isActive&&I.publish("error",I)}, updateend:function(){!I.MR()&&I.isActive&&I.publish("updateend",I)}}; this.BD.V3(this.BU);this.m7=this.isActive}; s9=function(f,D,F,Z,I,p){g.zu.call(this);var z=this;this.yL=f;this.Do=D;this.id=F;this.containerType=Z;this.qR=I;this.fK=p;this.SR=this.jS=this.bY=null;this.i$=!1;this.appendWindowStart=this.timestampOffset=0;this.mX=O_([],[]);this.QS=!1;this.Wb=[];this.gZ=zB?[]:void 0;this.handler=function(K){return z.publish(K.type,z)}; var H;if((H=this.yL)==null?0:H.addEventListener)this.yL.addEventListener("updateend",this.handler),this.yL.addEventListener("error",this.handler)}; qq=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Hg=function(f,D){this.T3=f;this.Y=D===void 0?!1:D;this.J=!1}; oK=function(f,D,F){F=F===void 0?!1:F;g.J.call(this);this.mediaElement=f;this.gY=D;this.isView=F;this.G=0;this.X=!1;this.T=!0;this.Jb=0;this.callback=null;this.N=!1;this.gY||(this.Do=this.mediaElement.Cp());this.events=new g.ia(this);g.N(this,this.events);this.B=new Hg(this.gY?window.URL.createObjectURL(this.gY):this.Do.webkitMediaSourceURL,!0);f=this.gY||this.Do;v6(this.events,f,["sourceopen","webkitsourceopen"],this.JSY);v6(this.events,f,["sourceclose","webkitsourceclose"],this.Y6o);this.S={updateend:this.JQ}}; Ki=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; hnu=function(f){return window.MediaSource?new oK(f,new window.MediaSource,!1):window.ManagedMediaSource?new oK(f,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new oK(f,new window.WebKitMediaSource,!1):new oK(f,void 0,!1)}; yFD=function(f,D){kP(f)?g.mF(function(){D(f)}):f.callback=D}; AFD=function(f,D,F){if(jq){var Z;f.mediaElement.bM("rms",{l:"mswssb",sr:(Z=f.mediaElement.Yo)==null?void 0:Z.W_()},!1);D.V3(f.S,f);F.V3(f.S,f)}f.Y=D;f.J=F;g.N(f,D);g.N(f,F)}; i0=function(f){return!!f.Y||!!f.J}; kP=function(f){try{return hJ(f)==="open"}catch(D){return!1}}; hJ=function(f){if(f.gY)return f.gY.readyState;switch(f.Do.webkitSourceState){case f.Do.SOURCE_OPEN:return"open";case f.Do.SOURCE_ENDED:return"ended";default:return"closed"}}; yw=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; $iy=function(f,D,F,Z){if(!f.Y||!f.J)return null;var I=f.Y.isView()?f.Y.BD:f.Y,p=f.J.isView()?f.J.BD:f.J,z=new oK(f.mediaElement,f.gY,!0);z.B=f.B;AFD(z,new pi(I,D,F,Z),new pi(p,D,F,Z));kP(f)||f.Y.XX(f.Y.R_());return z}; AJ=function(f){var D;(D=f.Y)==null||D.lQ();var F;(F=f.J)==null||F.lQ();f.T=!1}; $P=function(){var f=this;this.NE=this.XS=NTf;this.promise=new g.b7(function(D,F){f.XS=D;f.NE=F})}; Vw=function(){g.J.call(this);this.cY=!1;this.T3=null;this.zx=this.xo=!1;this.Jb=new g.i7;this.Bs=this.Yo=null;g.N(this,this.Jb)}; Vsd=function(f,D,F){f.isPaused()||f.getCurrentTime()>D||F>10||(f.play(),g.AW(function(){Vsd(f,f.getCurrentTime(),F+1)},500))}; RnI=function(f,D){f.T3&&f.T3.equals(D)||(f.T3&&f.T3.dispose(),f.T3=D)}; RK=function(f){f.Ak()&&(f.Yo&&f.Yo.Ra("rs_s"),NS&&f.getCurrentTime()>0&&f.seekTo(0),f.kU(),f.load(),RnI(f,null));delete f.S}; g.du=function(f,D,F){this.dB=D===void 0?null:D;this.seekSource=F===void 0?null:F;this.state=f||64}; Qw=function(f,D,F){F=F===void 0?!1:F;return diu(f,D.getCurrentTime(),(0,g.m5)(),D.d$(),F)}; Ci=function(f,D,F,Z){if(!(D===f.state&&F===f.dB&&Z===f.seekSource||D!==void 0&&(D&128&&!F||D&2&&D&16))){var I;if(I=D)I=D||f.state,I=!!(I&16||I&32);f=new g.du(D,F,I?Z?Z:f.seekSource:null)}return f}; mz=function(f,D,F){return Ci(f,f.state|D,null,F===void 0?null:F)}; TB=function(f,D){return Ci(f,f.state&~D,null,null)}; b0=function(f,D,F,Z){return Ci(f,(f.state|D)&~F,null,Z===void 0?null:Z)}; g.O=function(f,D){return!!(f.state&D)}; g.Mq=function(f,D){return D.state===f.state&&D.dB===f.dB}; tJ=function(f){return f.isPlaying()&&!g.O(f,16)&&!g.O(f,32)}; Sq=function(f){return g.O(f,128)?-1:g.O(f,2)?0:g.O(f,2048)?3:g.O(f,64)?-1:g.O(f,1)&&!g.O(f,32)?3:g.O(f,8)?1:g.O(f,4)?2:-1}; U9=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m){g.J.call(this);var b=this;this.wk=f;this.slot=D;this.layout=F;this.DE=Z;this.mE=I;this.QT=p;this.l3=z;this.jU=H;this.Nb=K;this.oI=k;this.position=y;this.G=A;this.mI=V;this.Qb=R;this.context=m;this.C4=!0;this.B=!1;this.KF="not_rendering";this.Y=!1;f=gN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Rr=new kT(F.Xq,this.DE,f,F.layoutId);var U;f=((U=cg(this))==null?void 0:U.progressCommands)||[];this.J=new b$(K,f,F.layoutId,function(){return b.bQ()})}; cg=function(f){return gN(f.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; QjD=function(f){Kb("Received layout exit signal when not in layout exit flow.",f.slot,f.layout)}; CtX=function(f){var D;return((D=Zp(f.QT.get(),2))==null?void 0:D.clientPlaybackNonce)||""}; mis=function(f,D){switch(D){case "normal":f.iE("complete");break;case "skipped":f.iE("skip");break;case "abandoned":$T(f.Rr,"impression")&&f.iE("abandon")}}; TQD=function(f,D){f.B||(D=new g.k4(D.state,new g.du),f.B=!0);return D}; bbD=function(f,D){P7(D)?f.oI(1):g.hF(D,4)&&!g.hF(D,2)&&f.JI();js(D,4)<0&&!(js(D,2)<0)&&f.BX()}; Msd=function(f){f.position===0&&(f.jU.get(),f=gN(f.layout.clientMetadata,"metadata_type_ad_placement_config").kind,f={adBreakType:vg(f)},Ul("ad_bl"),g.vk(f))}; aK=function(f,D){yH(f.Rr,D,!f.Y)}; SKd=function(f){var D;return(((D=cg(f))==null?void 0:D.progressCommands)||[]).findIndex(function(F){return!!g.Q(F==null?void 0:F.command,tsD)})!==-1}; g.GB=function(f,D,F){Gt(f,F)||Wk(f,D,F);Gt(f,"video_to_ad")||Wk(f,D,"video_to_ad");Gt(f,"ad_to_video")||Wk(f,D,"ad_to_video");Gt(f,"ad_to_ad")||Wk(f,D,"ad_to_ad")}; wu=function(f){U9.call(this,f.wk,f.slot,f.YW,f.DE,f.mE,f.QT,f.l3,f.jU,f.Nb,f.oI,f.Ac,f.qa,f.J5,f.mI,f.Qb,f.context);var D=this;this.d_=!0;this.jR=this.rQ=0;this.e0=gL(function(){D.wk.fF(D.slot,D.layout)}); this.bJ=f.bJ;this.Ac=f.Ac;this.yS=gL(function(){D.KF!=="rendering_stop_requested"&&D.Ac(D);D.layoutExitReason?D.wk.iJ(D.slot,D.layout,D.layoutExitReason):QjD(D)}); this.timer=new g.av(200);this.timer.listen("tick",function(){D.Ft()}); g.N(this,this.timer)}; cFD=function(f){f.jR=Date.now();Wg(f,f.rQ);f.timer.start()}; Wg=function(f,D){D={current:D/1E3,duration:f.bQ()/1E3};f.bJ.get().vY("onAdPlaybackProgress",D)}; Li=function(f){U9.call(this,f.callback,f.slot,f.YW,f.DE,f.mE,f.QT,f.l3,f.jU,f.Nb,f.oI,f.Ac,f.qa,f.J5,f.mI,f.Qb,f.context);var D=this;this.adCpn="";this.eZ=this.h$=0;this.e0=gL(function(){D.wk.fF(D.slot,D.layout)}); this.yS=gL(function(){D.KF!=="rendering_stop_requested"&&D.Ac(D);D.layoutExitReason?D.wk.iJ(D.slot,D.layout,D.layoutExitReason):QjD(D)}); this.Ow=f.Ow;this.yj=f.yj;this.ZK=f.ZK;this.bJ=f.bJ;this.P_=f.P_;this.Ac=f.Ac;wA(this.mI.get(),"html5_disable_media_load_timeout")||(this.Jm=new g.xX(function(){D.TQ("load_timeout",new uz("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); f=Bg(this.mI.get());var F=ru(this.mI.get());f&&F&&(this.vu=new g.xX(function(){var Z=gN(D.layout.clientMetadata,"metadata_type_preload_player_vars");Z&&D.yj.get().U.preloadVideoByPlayerVars(Z,2,300)}))}; UiJ=function(f){return new wu(Object.assign({},f,{wk:f.callback,oI:function(){}}))}; v4y=function(f){return new Li(Object.assign({},f,{oI:function(D){f.bJ.get().vY("onAdIntroStateChange",D)}}))}; ary=function(f){return new Li(Object.assign({},f,{oI:function(D){f.bJ.get().o7(D)}}))}; GLf=function(f){for(var D=f.YW,F=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Z=g.a(jS()),I=Z.next();!I.done;I=Z.next())F.push(I.value);if(W7(D,{fE:F,vD:["LAYOUT_TYPE_MEDIA_BREAK"]}))return UiJ(f);D=f.YW;F=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Z=g.a(jS());for(I=Z.next();!I.done;I=Z.next())F.push(I.value);if(W7(D,{fE:F,vD:["LAYOUT_TYPE_MEDIA"]}))return lz(f.YW.clientMetadata,"metadata_type_ad_intro")?v4y(f):ary(f)}; l0=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V){g.J.call(this);this.callback=f;this.QT=D;this.HI=F;this.yj=Z;this.l3=I;this.rS=p;this.jU=z;this.SO=H;this.slot=K;this.layout=k;this.MI=h;this.y$=y;this.CF=A;this.mI=V;this.C4=!0;this.e6=!1;this.yg=[];this.Hp=-1;this.ea=!1}; E9=function(f){return f.yg[f.Hp]}; u0=function(f,D,F){var Z=E9(f);f.Hp===f.yg.length-1&&Kb("Unexpected skip with target requested during the last sublayout");if(F.renderingContent===void 0&&F.layoutId!==JJ(Z,D,F)){Kb("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Z.YG(),Z.Y8(),{requestingSlot:D,requestingLayout:F});var I=!1}else I=!0;if(I){a:{if((I=gN(Z.Y8().clientMetadata,"metadata_type_ad_pod_skip_target"))&&I>0&&I0)){Kb("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",f.slot,f.layout,{indexToPlay:D,layoutId:f.layout.layoutId});break a}f.Hp=D;D=E9(f);if(f.Hp>0){var F=f.jU.get();F.J=!1;var Z={};F.Y&&F.videoId&&(Z.cttAuthInfo={token:F.Y,videoId:F.videoId});an("ad_to_ad",Z)}F=g.Q(D.Y8().renderingContent,X8);if(F==null?0:F.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var I; F=!((I=f.rS.get().V$T.get(F.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&I)}else F=!1;F?Nq(f,f.Hp+1):D.startRendering(D.Y8())}}; BQJ=function(f){(f=E9(f))&&f.q3()}; rFf=function(f){return new l0(f.FhR,f.QT,f.HI,f.yj,f.l3,f.rS,f.jU,f.SO,f.slot,f.layout,f.MI,f.y$,f.CF,f.mI)}; XH=function(f,D,F,Z,I,p,z){g.J.call(this);this.callback=f;this.yj=D;this.l3=F;this.jU=Z;this.Wp=I;this.CF=p;this.mI=z;this.C4=!0;this.e6=!1}; Lsu=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m,b,U,S,G,W,u){function E(){var Zs=GLf(Object.assign({},Fu,{callback:{fF:f.fF.bind(f),iJ:f.iJ.bind(f),e$:f.e$.bind(f)},slot:F,YW:Z,Ac:function(){xP(z,Z)}, qa:0,J5:1,Qb:!0}));return Zs?new XH(f,h,A,m,Zs,I,G):Zs} function Ds(){var Zs,za=(Zs=Z.TU)!=null?Zs:gN(Z.clientMetadata,"metadata_type_sub_layouts");Zs=rFf({FhR:f,QT:y,HI:W,yj:h,l3:A,rS:V,jU:m,SO:D,slot:F,layout:Z,MI:p,y$:z,CF:I,mI:G});for(var ju=[],Id={wb:0};Id.wbI&&z.GA(h,I-Z);return h}; g4X=function(f,D,F){var Z=gN(D.clientMetadata,"metadata_type_sodar_extension_data");if(Z)try{gAw(F,Z)}catch(I){Kb("Unexpected error when loading Sodar",f,D,{error:I})}}; enI=function(f,D,F,Z,I,p,z){Dw(f,D,new g.k4(F,new g.du),Z,I,z,!1,p)}; Dw=function(f,D,F,Z,I,p,z,H){z=z===void 0?!0:z;P7(F)&&fx(I,0,null)&&(!$T(f,"impression")&&H&&H(),f.iE("impression"));$T(f,"impression")&&(g.hF(F,4)&&!g.hF(F,2)&&f.Hl("pause"),js(F,4)<0&&!(js(F,2)<0)&&f.Hl("resume"),g.hF(F,16)&&I>=.5&&f.Hl("seek"),z&&g.hF(F,2)&&FN(f,F.state,D,Z,I,p))}; FN=function(f,D,F,Z,I,p,z,H,K){$T(f,"impression")&&(p?(p=I-Z,p=p>=-1&&p<=2):p=Math.abs(Z-I)<=1,Zw(f,D,p?Z:I,F,Z,z,H&&p),p&&!K&&f.iE("complete"))}; Zw=function(f,D,F,Z,I,p,z){Au(f,F*1E3,z);I<=0||F<=0||(D==null?0:g.O(D,16))||(D==null?0:g.O(D,32))||(fx(F,I*.25,Z)&&(p&&!$T(f,"first_quartile")&&p("first"),f.iE("first_quartile")),fx(F,I*.5,Z)&&(p&&!$T(f,"midpoint")&&p("second"),f.iE("midpoint")),fx(F,I*.75,Z)&&(p&&!$T(f,"third_quartile")&&p("third"),f.iE("third_quartile")))}; xiD=function(f,D){$T(f,"impression")&&f.Hl(D?"fullscreen":"end_fullscreen")}; XKc=function(f){$T(f,"impression")&&f.Hl("clickthrough")}; Obs=function(f){f.Hl("active_view_measurable")}; n4f=function(f){$T(f,"impression")&&!$T(f,"seek")&&f.Hl("active_view_fully_viewable_audible_half_duration")}; YKX=function(f){$T(f,"impression")&&!$T(f,"seek")&&f.Hl("active_view_viewable")}; PtE=function(f){$T(f,"impression")&&!$T(f,"seek")&&f.Hl("audio_audible")}; fOc=function(f){$T(f,"impression")&&!$T(f,"seek")&&f.Hl("audio_measurable")}; Dzs=function(f,D,F,Z,I,p,z,H,K,k,h,y,A){this.callback=f;this.slot=D;this.layout=F;this.HI=Z;this.Rr=I;this.l3=p;this.Yu=z;this.mE=H;this.Ow=K;this.mI=k;this.DE=h;this.QT=y;this.ZK=A;this.d_=!0;this.kG=this.KF=null;this.adCpn=void 0;this.Y=!1}; FuD=function(f,D,F){var Z;fj(f.DE.get(),"ads_qua","cpn."+gN(f.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Z=Zp(f.QT.get(),2))==null?void 0:Z.clientPlaybackNonce)+";qt."+D+";clr."+F)}; ZPX=function(f,D){var F,Z;fj(f.DE.get(),"ads_imp","cpn."+gN(f.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((F=Zp(f.QT.get(),2))==null?void 0:F.clientPlaybackNonce)+";clr."+D+";skp."+!!g.Q((Z=gN(f.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:Z.skipOrPreviewRenderer,I7))}; pj=function(f){return{enterMs:gN(f.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:gN(f.clientMetadata,"metadata_type_layout_exit_ms")}}; z5=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V){O9.call(this,f,D,F,Z,I,z,H,K,k,y);this.Yu=p;this.Ow=h;this.mE=A;this.mI=V;this.kG=this.KF=null}; IOJ=function(f,D){var F;fj(f.DE.get(),"ads_imp","acpn."+((F=Zp(f.QT.get(),2))==null?void 0:F.clientPlaybackNonce)+";clr."+D)}; pku=function(f,D,F){var Z;fj(f.DE.get(),"ads_qua","cpn."+gN(f.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Z=Zp(f.QT.get(),2))==null?void 0:Z.clientPlaybackNonce)+";qt."+D+";clr."+F)}; sC=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m,b,U,S,G,W){this.CF=f;this.MI=D;this.y$=F;this.QT=Z;this.HI=I;this.l3=p;this.rS=z;this.DE=H;this.Yu=K;this.o$=k;this.mE=h;this.Ow=y;this.yj=A;this.ZK=V;this.jU=R;this.bJ=m;this.Nb=b;this.P_=U;this.mI=S;this.Y=G;this.context=W}; qM=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m,b,U){this.CF=f;this.MI=D;this.y$=F;this.DE=Z;this.mE=I;this.Ow=p;this.yj=z;this.QT=H;this.l3=K;this.rS=k;this.ZK=h;this.jU=y;this.bJ=A;this.Nb=V;this.P_=R;this.mI=m;this.HI=b;this.context=U}; zty=function(f,D,F,Z){pm.call(this,"survey-interstitial",f,D,F,Z)}; HI=function(f,D,F,Z,I){Im.call(this,F,f,D,Z);this.DE=I;f=gN(D.clientMetadata,"metadata_type_ad_placement_config");this.Rr=new kT(D.Xq,I,f,D.layoutId)}; o7=function(f){return Math.round(f.width)+"x"+Math.round(f.height)}; kN=function(f,D,F){F=F===void 0?Kj:F;F.widthf.width*f.height*.2)return{tU:3,xF:501,errorMessage:"ad("+o7(F)+") to container("+o7(f)+") ratio exceeds limit."};if(F.height>f.height/3-D)return{tU:3,xF:501,errorMessage:"ad("+o7(F)+") covers container("+o7(f)+") center."}}; snd=function(f,D){var F=gN(f.clientMetadata,"metadata_type_ad_placement_config");return new kT(f.Xq,D,F,f.layoutId)}; jz=function(f){return gN(f.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; ix=function(f,D,F,Z){pm.call(this,"invideo-overlay",f,D,F,Z);this.interactionLoggingClientData=Z}; h_=function(f,D,F,Z,I,p,z,H,K,k,h,y){Im.call(this,p,f,D,I);this.DE=F;this.G=z;this.l3=H;this.Nb=K;this.mI=k;this.T=h;this.X=y;this.Rr=snd(D,F)}; qlu=function(){var f=["metadata_type_invideo_overlay_ad_renderer"];jS().forEach(function(D){f.push(D)}); return{fE:f,vD:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; yd=function(f,D,F,Z,I,p,z,H,K,k,h,y,A){Im.call(this,p,f,D,I);this.DE=F;this.G=z;this.N=H;this.l3=K;this.Nb=k;this.mI=h;this.T=y;this.X=A;this.Rr=snd(D,F)}; HPa=function(){for(var f=["metadata_type_invideo_overlay_ad_renderer"],D=g.a(jS()),F=D.next();!F.done;F=D.next())f.push(F.value);return{fE:f,vD:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; A_=function(f){this.l3=f;this.Y=!1}; o6J=function(f,D,F){pm.call(this,"survey",f,{},D,F)}; $N=function(f,D,F,Z,I,p,z){Im.call(this,F,f,D,Z);this.G=I;this.l3=p;this.mI=z}; KuX=function(f,D,F,Z,I,p,z,H,K,k){this.xG=f;this.l3=D;this.DE=F;this.G=Z;this.mE=I;this.J=p;this.B=z;this.Nb=H;this.mI=K;this.Y=k}; ktu=function(f,D,F,Z,I,p,z,H,K,k){this.xG=f;this.l3=D;this.DE=F;this.G=Z;this.mE=I;this.J=p;this.B=z;this.Nb=H;this.mI=K;this.Y=k}; Vd=function(f,D,F,Z,I,p,z,H,K,k){Ju.call(this,f,D,F,Z,I,p,z,K);this.Xc=H;this.QT=k}; jnT=function(){var f=X1w();f.fE.push("metadata_type_ad_info_ad_metadata");return f}; iPE=function(f,D,F,Z,I,p,z){this.xG=f;this.l3=D;this.DE=F;this.J=Z;this.Xc=I;this.Y=p;this.QT=z}; htI=function(f,D,F,Z,I,p,z,H){this.xG=f;this.l3=D;this.DE=F;this.J=Z;this.Xc=I;this.Y=p;this.mI=z;this.QT=H}; R7=function(f,D){this.adPodIndex=f;this.Y=D.length;this.adBreakLengthSeconds=D.reduce(function(Z,I){return Z+I},0); var F=0;for(f+=1;f0}; Zv=function(f){return!!(f.n8o&&f.slot&&f.layout)}; I4=function(f){var D,F=(D=f.config)==null?void 0:D.adPlacementConfig;f=f.renderer;return!(!F||F.kind==null||!f)}; c7T=function(f){if(!OC(f.adLayoutMetadata))return!1;f=f.renderingContent;return g.Q(f,X8)||g.Q(f,OL)||g.Q(f,SlD)||g.Q(f,eS)||g.Q(f,xT)?!0:!1}; pe=function(f){return f.playerVars!==void 0&&f.pings!==void 0&&f.externalVideoId!==void 0}; kD=function(f){if(!OC(f.adLayoutMetadata))return!1;f=f.renderingContent;var D=g.Q(f,zj);return D?sh(D):(D=g.Q(f,qa))?pe(D):(D=g.Q(f,H4))?D.playerVars!==void 0:(D=g.Q(f,X8))?D.durationMilliseconds!==void 0:g.Q(f,o4)||g.Q(f,Ke)?!0:!1}; sh=function(f){f=(f.sequentialLayouts||[]).map(function(D){return g.Q(D,j3)}); return f.length>0&&f.every(kD)}; hx=function(f){return OC(f.adLayoutMetadata)?(f=g.Q(f.renderingContent,im))&&f.pings?!0:!1:!1}; wkf=function(f){if(!OC(f.adLayoutMetadata))return!1;if(g.Q(f.renderingContent,Uzy)||g.Q(f.renderingContent,yv))return!0;var D=g.Q(f.renderingContent,Ax);return g.Q(f.renderingContent,$D)||g.Q(D==null?void 0:D.sidePanel,v6E)||g.Q(D==null?void 0:D.sidePanel,aOs)||g.Q(D==null?void 0:D.sidePanel,Gtw)?!0:!1}; E6I=function(f){var D;(D=!f)||(D=f.adSlotMetadata,D=!((D==null?void 0:D.slotId)!==void 0&&(D==null?void 0:D.slotType)!==void 0));if(D||!(WuD(f)||f.slotEntryTrigger&&f.slotFulfillmentTriggers&&f.slotExpirationTriggers))return!1;var F;f=(F=f.fulfillmentContent)==null?void 0:F.fulfilledLayout;return(F=g.Q(f,j3))?kD(F):(F=g.Q(f,Vv))?wkf(F):(F=g.Q(f,BgT))?c7T(F):(F=g.Q(f,r7u))?MTy(F):(F=g.Q(f,Lus))?OC(F.adLayoutMetadata)?g.Q(F.renderingContent,nj)?!0:!1:!1:(F=g.Q(f,R4))?hx(F):(f=g.Q(f,lOD))?OC(f.adLayoutMetadata)? g.Q(f.renderingContent,yv)?!0:!1:!1:!1}; WuD=function(f){var D;f=g.Q((D=f.fulfillmentContent)==null?void 0:D.fulfilledLayout,Vv);var F;return f&&((F=f.adLayoutMetadata)==null?void 0:F.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&f.layoutExitNormalTriggers===void 0}; J7w=function(f){var D;return(f==null?void 0:(D=f.adSlotMetadata)==null?void 0:D.slotType)==="SLOT_TYPE_IN_PLAYER"}; udD=function(f){f=g.a(f||[]);for(var D=f.next();!D.done;D=f.next()){var F=g.Q(D.value,dM);if(F===void 0||!E6I(F))break;D=void 0;F=(D=F.fulfillmentContent)==null?void 0:D.fulfilledLayout;if((D=g.Q(F,R4))&&hx(D))return!0}return!1}; g6u=function(f,D){var F;if((F=f.questions)==null||!F.length||!f.playbackCommands||(D===void 0||!D)&&f.questions.length!==1)return!1;f=g.a(f.questions);for(D=f.next();!D.done;D=f.next()){D=D.value;var Z=F=void 0,I=((F=g.Q(D,Qv))==null?void 0:F.surveyAdQuestionCommon)||((Z=g.Q(D,Ce))==null?void 0:Z.surveyAdQuestionCommon);if(!NgJ(I))return!1}return!0}; etc=function(f){f=((f==null?void 0:f.playerOverlay)||{}).instreamSurveyAdRenderer;var D;if(f)if(f.playbackCommands&&f.questions&&f.questions.length===1){var F,Z=((D=g.Q(f.questions[0],Qv))==null?void 0:D.surveyAdQuestionCommon)||((F=g.Q(f.questions[0],Ce))==null?void 0:F.surveyAdQuestionCommon);D=NgJ(Z)}else D=!1;else D=!1;return D}; NgJ=function(f){if(!f)return!1;f=g.Q(f.instreamAdPlayerOverlay,mV);var D=g.Q(f==null?void 0:f.skipOrPreviewRenderer,I7),F=g.Q(f==null?void 0:f.adInfoRenderer,Tj);return(g.Q(f==null?void 0:f.skipOrPreviewRenderer,bm)||D)&&F?!0:!1}; xzT=function(f){return f.linearAds!=null&&OC(f.adLayoutMetadata)}; Xka=function(f){return f.linearAd!=null&&f.adVideoStart!=null}; OPc=function(f){if(isNaN(Number(f.timeoutSeconds))||!f.text||!f.ctaButton||!g.Q(f.ctaButton,g.Ma)||!f.brandImage)return!1;var D;return f.backgroundImage&&g.Q(f.backgroundImage,tx)&&((D=g.Q(f.backgroundImage,tx))==null?0:D.landscape)?!0:!1}; S3=function(f,D,F,Z,I,p,z,H){g.J.call(this);this.mI=f;this.Y=D;this.J=Z;this.QT=I;this.G=p;this.B=z;this.yj=H}; POf=function(f,D,F){var Z,I=((Z=F.adSlots)!=null?Z:[]).map(function(H){return g.Q(H,dM)}); if(F.Ei)if(gN(D.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))fJ(f.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},D.slotId); else{if(f.mI.get().U.j().Z("h5_check_forecasting_renderer_for_throttled_midroll")){var p=F.qc.filter(function(H){var K;return((K=H.renderer)==null?void 0:K.clientForecastingAdRenderer)!=null}); p.length!==0?n6u(f.B,p,I,D.slotId,F.ssdaiAdsConfig):fJ(f.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},D.slotId)}else fJ(f.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},D.slotId); YlJ(f.G,D)}else{var z;Z={WO:Math.round(((p=gN(D.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:p.WO)||0),rk:(z=gN(D.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:z.rk};p=gN(D.clientMetadata,"metadata_type_cue_point");n6u(f.B,F.qc,I,D.slotId,F.ssdaiAdsConfig,Z,p)}}; FUX=function(f,D,F,Z,I,p,z,H){var K=Zp(f.QT.get(),1);if(f2X(f.mI.get())){var k=c4(f.J.get(),F,Z,I,K.clientPlaybackNonce,K.un,K.daiEnabled,K,p,z);DbX(f,k);fJ(f.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return k},D)}else fJ(f.Y.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return c4(f.J.get(),F,Z,I,K.clientPlaybackNonce,K.un,K.daiEnabled,K,p,z,H)},D)}; DbX=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next()){var Z=F.value;if(Z.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Z.fulfilledLayout)if(F=void 0,Z.fulfilledLayout.renderingContent)F=gN(Z.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(Z.fulfilledLayout.TU){Z=g.a(Z.fulfilledLayout.TU);for(var I=Z.next();!I.done&&(I=I.value,!I.renderingContent||!(F=gN(I.clientMetadata,"metadata_type_player_vars")));I=Z.next());}}else F=void 0;if(F){f.yj.get().U.preloadVideoByPlayerVars(F, 2,300);break}}}; I2D=function(f,D,F,Z,I,p,z){D=Z6X(D,p,Number(Z.prefetchMilliseconds)||0,z);f=D instanceof Y?D:Uh(f,Z,I,D,F);return f instanceof Y?f:[f]}; pBy=function(f,D,F,Z,I){var p=DJ(f.J.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Z=[new m1({getAdBreakUrl:Z.getAdBreakUrl,WO:0,rk:0}),new Bf(!0)];f=D.pauseDurationMs?D.lactThresholdMs?{slotId:p,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new NM(f.Y,p),slotFulfillmentTriggers:[new A7y(f.Y)],slotExpirationTriggers:[new BI(f.Y,I),new EC(f.Y,p)],pQ:"core",clientMetadata:new NH(Z),adSlotLoggingData:F}:new Y("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Y("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return f instanceof Y?f:[f]}; zOJ=function(f){var D,F;return((D=f.renderer)==null?void 0:(F=D.adBreakServiceRenderer)==null?void 0:F.getAdBreakUrl)!==void 0}; v4=function(f,D,F){if(f.beforeContentVideoIdStartedTrigger)f=f.beforeContentVideoIdStartedTrigger?new de(J0,D,f.id):new Y("Not able to create BeforeContentVideoIdStartedTrigger");else{if(f.layoutIdExitedTrigger){var Z;D=(Z=f.layoutIdExitedTrigger)!=null&&Z.triggeringLayoutId?new MM(J0,f.layoutIdExitedTrigger.triggeringLayoutId,f.id):new Y("Not able to create LayoutIdExitedTrigger")}else{if(f.layoutExitedForReasonTrigger){var I,p;((I=f.layoutExitedForReasonTrigger)==null?0:I.triggeringLayoutId)&&((p= f.layoutExitedForReasonTrigger)==null?0:p.layoutExitReason)?(D=$zc(f.layoutExitedForReasonTrigger.layoutExitReason),f=D instanceof Y?D:new bx(J0,f.layoutExitedForReasonTrigger.triggeringLayoutId,[D],f.id)):f=new Y("Not able to create LayoutIdExitedForReasonTrigger")}else{if(f.onLayoutSelfExitRequestedTrigger){var z;D=(z=f.onLayoutSelfExitRequestedTrigger)!=null&&z.triggeringLayoutId?new WI(J0,f.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,f.id):new Y("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(f.onNewPlaybackAfterContentVideoIdTrigger)f= f.onNewPlaybackAfterContentVideoIdTrigger?new BI(J0,D,f.id):new Y("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(f.skipRequestedTrigger){var H;D=(H=f.skipRequestedTrigger)!=null&&H.triggeringLayoutId?new Lj(J0,f.skipRequestedTrigger.triggeringLayoutId,f.id):new Y("Not able to create SkipRequestedTrigger")}else if(f.slotIdEnteredTrigger){var K;D=(K=f.slotIdEnteredTrigger)!=null&&K.triggeringSlotId?new lx(J0,f.slotIdEnteredTrigger.triggeringSlotId,f.id):new Y("Not able to create SlotIdEnteredTrigger")}else if(f.slotIdExitedTrigger){var k; D=(k=f.slotIdExitedTrigger)!=null&&k.triggeringSlotId?new EC(J0,f.slotIdExitedTrigger.triggeringSlotId,f.id):new Y("Not able to create SkipRequestedTrigger")}else if(f.surveySubmittedTrigger){var h;D=(h=f.surveySubmittedTrigger)!=null&&h.triggeringLayoutId?new ez(J0,f.surveySubmittedTrigger.triggeringLayoutId,f.id):new Y("Not able to create SurveySubmittedTrigger")}else{if(f.mediaResumedTrigger)f=f.mediaResumedTrigger&&f.id?new VTd(f.id):new Y("Not able to create MediaResumedTrigger");else{if(f.closeRequestedTrigger){var y; D=(y=f.closeRequestedTrigger)!=null&&y.triggeringLayoutId?new Qd(J0,f.closeRequestedTrigger.triggeringLayoutId,f.id):new Y("Not able to create CloseRequestedTrigger")}else if(f.slotIdScheduledTrigger){var A;D=(A=f.slotIdScheduledTrigger)!=null&&A.triggeringSlotId?new NM(J0,f.slotIdScheduledTrigger.triggeringSlotId,f.id):new Y("Not able to create SlotIdScheduledTrigger")}else{if(f.mediaTimeRangeTrigger){var V;Z=Number((V=f.mediaTimeRangeTrigger)==null?void 0:V.offsetStartMilliseconds);var R;z=Number((R= f.mediaTimeRangeTrigger)==null?void 0:R.offsetEndMilliseconds);isFinite(Z)&&isFinite(z)?(R=z,R===-1&&(R=F),F=Z>R?new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Z,offsetEndMs:R},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",R===F&&Z-500<=R):new dp(Z,R),f=F instanceof Y?F:new vI(J0,D,F,!1,f.id)):f=new Y("Not able to create MediaTimeRangeTrigger")}else if(f.contentVideoIdEndedTrigger)f=f.contentVideoIdEndedTrigger?new Cj(J0,D,!1,f.id):new Y("Not able to create ContentVideoIdEndedTrigger"); else{if(f.layoutIdEnteredTrigger){var m;D=(m=f.layoutIdEnteredTrigger)!=null&&m.triggeringLayoutId?new T5(J0,f.layoutIdEnteredTrigger.triggeringLayoutId,f.id):new Y("Not able to create LayoutIdEnteredTrigger")}else if(f.timeRelativeToLayoutEnterTrigger){var b;D=(b=f.timeRelativeToLayoutEnterTrigger)!=null&&b.triggeringLayoutId?new xN(J0,Number(f.timeRelativeToLayoutEnterTrigger.durationMs),f.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,f.id):new Y("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(f.onDifferentLayoutIdEnteredTrigger){var U; D=(U=f.onDifferentLayoutIdEnteredTrigger)!=null&&U.triggeringLayoutId&&f.onDifferentLayoutIdEnteredTrigger.slotType&&f.onDifferentLayoutIdEnteredTrigger.layoutType?new G5(J0,f.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,f.onDifferentLayoutIdEnteredTrigger.slotType,f.onDifferentLayoutIdEnteredTrigger.layoutType,f.id):new Y("Not able to create CloseRequestedTrigger")}else{if(f.liveStreamBreakStartedTrigger)f=f.liveStreamBreakStartedTrigger&&f.id?new UC(J0,f.id):new Y("Not able to create LiveStreamBreakStartedTrigger"); else if(f.liveStreamBreakEndedTrigger)f=f.liveStreamBreakEndedTrigger&&f.id?new t_(J0,f.id):new Y("Not able to create LiveStreamBreakEndedTrigger");else{if(f.liveStreamBreakScheduledDurationMatchedTrigger){var S;D=(S=f.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&S.breakDurationMs?new Sz(Number(f.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,f.id):new Y("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(f.liveStreamBreakScheduledDurationNotMatchedTrigger){var G; D=(G=f.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&G.breakDurationMs?new cI(Number(f.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,f.id):new Y("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(f.newSlotScheduledWithBreakDurationTrigger){var W;D=(W=f.newSlotScheduledWithBreakDurationTrigger)!=null&&W.breakDurationMs?new a7(Number(f.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,f.id):new Y("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else D= f.prefetchCacheExpiredTrigger?new re(J0,f.id):new Y("Not able to convert an AdsControlflowTrigger.");f=D}D=f}f=D}D=f}f=D}D=f}f=D}D=f}f=D}D=f}f=D}return f}; a4=function(f,D){D.Y>=2&&(f.slot_pos=D.adPodIndex);f.autoplay="1"}; qAf=function(f,D,F,Z,I,p,z,H){return D===null?new Y("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:D,ActionCompanionAdRenderer:Z}):[saI(f,D,z,p,function(K){var k=K.slotId;K=H(K);var h=Z.adLayoutLoggingData,y=new NH([new mG(Z),new Wj(I)]);k=WC(F.J.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",k);var A={layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",pQ:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Xq:new Map, layoutExitNormalTriggers:[new BI(F.Y,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:y,Pk:K(A),adLayoutLoggingData:h}})]}; H6f=function(f,D,F,Z,I,p,z,H){return D===null?new Y("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:D,TopBannerImageTextIconButtonedLayoutViewModel:Z}):[saI(f,D,z,p,function(K){var k=K.slotId;K=H(K);var h=Z.adLayoutLoggingData,y=new NH([new T1(Z),new Wj(I)]);k=WC(F.J.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",k);var A={layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",pQ:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", Xq:new Map,layoutExitNormalTriggers:[new BI(F.Y,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:y,Pk:K(A),adLayoutLoggingData:h}})]}; jas=function(f,D,F,Z,I,p){if(!p)for(D=g.a(D),p=D.next();!p.done;p=D.next())p=p.value,Gj(f,p.renderer,p.config.adPlacementConfig.kind);f=Array.from(f.values()).filter(function(h){return olJ(h)}); D=[];p=g.a(f);for(var z=p.next(),H={};!z.done;H={hx:void 0},z=p.next()){H.hx=z.value;z=g.a(H.hx.vA);for(var K=z.next(),k={};!K.done;k={Uk:void 0},K=z.next())k.Uk=K.value,K=function(h,y){return function(A){return h.Uk.iD(A,y.hx.instreamVideoAdRenderer.elementId,h.Uk.eh)}}(k,H),k.Uk.isContentVideoCompanion?D.push(KUd(F,Z,I,H.hx.instreamVideoAdRenderer.elementId,k.Uk.associatedCompositePlayerBytesLayoutId,k.Uk.adSlotLoggingData,K)):f.length>1?D.push(kFJ(F,Z,I,H.hx.instreamVideoAdRenderer.elementId,k.Uk.adSlotLoggingData, function(h,y){return function(A){return h.Uk.iD(A,y.hx.instreamVideoAdRenderer.elementId,h.Uk.eh,h.Uk.associatedCompositePlayerBytesLayoutId)}}(k,H))):D.push(kFJ(F,Z,I,H.hx.instreamVideoAdRenderer.elementId,k.Uk.adSlotLoggingData,K))}return D}; Gj=function(f,D,F){if(D=i6u(D)){D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next())if((Z=Z.value)&&Z.externalVideoId){var I=wM(f,Z.externalVideoId);I.instreamVideoAdRenderer||(I.instreamVideoAdRenderer=Z,I.hn=F)}else Kb("InstreamVideoAdRenderer without externalVideoId")}}; i6u=function(f){var D=[],F=f.sandwichedLinearAdRenderer&&f.sandwichedLinearAdRenderer.linearAd&&g.Q(f.sandwichedLinearAdRenderer.linearAd,qa);if(F)return D.push(F),D;if(f.instreamVideoAdRenderer)return D.push(f.instreamVideoAdRenderer),D;if(f.linearAdSequenceRenderer&&f.linearAdSequenceRenderer.linearAds){f=g.a(f.linearAdSequenceRenderer.linearAds);for(F=f.next();!F.done;F=f.next())F=F.value,g.Q(F,qa)&&D.push(g.Q(F,qa));return D}return null}; olJ=function(f){if(f.instreamVideoAdRenderer===void 0)return Kb("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var D=g.a(f.vA),F=D.next();!F.done;F=D.next()){F=F.value;if(F.iD===void 0)return!1;if(F.eh===void 0)return Kb("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(f.hn===void 0||F.xZ===void 0||f.hn!==F.xZ&&F.xZ!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(f.instreamVideoAdRenderer.elementId===void 0)return Kb("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:f.hn,"matching APSR kind":F.xZ}),!1}return!0}; wM=function(f,D){f.has(D)||f.set(D,{instreamVideoAdRenderer:void 0,hn:void 0,adVideoId:D,vA:[]});return f.get(D)}; W4=function(f,D,F,Z,I,p,z,H,K){I?wM(f,I).vA.push({qSy:D,xZ:F,isContentVideoCompanion:Z,eh:z,associatedCompositePlayerBytesLayoutId:p,adSlotLoggingData:H,iD:K}):Kb("Companion AdPlacementSupportedRenderer without adVideoId")}; B4=function(f){var D=0;f=g.a(f.questions);for(var F=f.next();!F.done;F=f.next())if(F=F.value,F=g.Q(F,Qv)||g.Q(F,Ce)){var Z=void 0;D+=((Z=F.surveyAdQuestionCommon)==null?void 0:Z.durationMilliseconds)||0}return D}; rM=function(f){var D,F,Z,I,p=((F=g.Q((D=f.questions)==null?void 0:D[0],Qv))==null?void 0:F.surveyAdQuestionCommon)||((I=g.Q((Z=f.questions)==null?void 0:Z[0],Ce))==null?void 0:I.surveyAdQuestionCommon),z;D=[].concat(g.w(((z=f.playbackCommands)==null?void 0:z.instreamAdCompleteCommands)||[]),g.w((p==null?void 0:p.timeoutCommands)||[]));var H,K,k,h,y,A,V,R,m,b,U,S,G,W,u,E,Ds,Fu,Zs,za;return{impressionCommands:(H=f.playbackCommands)==null?void 0:H.impressionCommands,errorCommands:(K=f.playbackCommands)== null?void 0:K.errorCommands,muteCommands:(k=f.playbackCommands)==null?void 0:k.muteCommands,unmuteCommands:(h=f.playbackCommands)==null?void 0:h.unmuteCommands,pauseCommands:(y=f.playbackCommands)==null?void 0:y.pauseCommands,rewindCommands:(A=f.playbackCommands)==null?void 0:A.rewindCommands,resumeCommands:(V=f.playbackCommands)==null?void 0:V.resumeCommands,skipCommands:(R=f.playbackCommands)==null?void 0:R.skipCommands,progressCommands:(m=f.playbackCommands)==null?void 0:m.progressCommands,XOx:(b= f.playbackCommands)==null?void 0:b.clickthroughCommands,fullscreenCommands:(U=f.playbackCommands)==null?void 0:U.fullscreenCommands,activeViewViewableCommands:(S=f.playbackCommands)==null?void 0:S.activeViewViewableCommands,activeViewMeasurableCommands:(G=f.playbackCommands)==null?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(W=f.playbackCommands)==null?void 0:W.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(u=f.playbackCommands)== null?void 0:(E=u.activeViewTracking)==null?void 0:E.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(Ds=f.playbackCommands)==null?void 0:(Fu=Ds.activeViewTracking)==null?void 0:Fu.activeViewAudioMeasurableCommands,endFullscreenCommands:(Zs=f.playbackCommands)==null?void 0:Zs.endFullscreenCommands,abandonCommands:(za=f.playbackCommands)==null?void 0:za.abandonCommands,completeCommands:D}}; yhI=function(f,D,F,Z,I,p,z){return function(H,K){return hOf(f,K.slotId,H,p,function(k,h){var y=K.layoutId;k=z(k);return Le(D,y,h,I,k,"LAYOUT_TYPE_SURVEY",[new Pj(F),Z],F.adLayoutLoggingData)})}}; VBX=function(f,D,F,Z,I,p,z){if(!AhX(f))return new Y("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:f});var H=f.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[$bD(p,D,F,Z,function(K){var k=K.slotId;K=z(K);k=WC(I.J.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",k);var h={layoutId:k,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",pQ:"core"},y=new MM(I.Y,Z);return{layoutId:k,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Xq:new Map,layoutExitNormalTriggers:[y], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new f$(H)]),Pk:K(h)}})]}; AhX=function(f){f=g.Q(f==null?void 0:f.additionalPlayerOverlay,ROs);if(!f)return!1;var D=f.slidingMessages;return f.title&&D&&D.length!==0?!0:!1}; Qay=function(f,D,F,Z,I){var p;if((p=f.playerOverlay)==null||!p.instreamSurveyAdRenderer)return function(){return[]}; if(!etc(f))return function(){return new Y("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:f})}; var z=f.playerOverlay.instreamSurveyAdRenderer,H=B4(z);return H<=0?function(){return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:z})}:function(K,k){var h=dbE(K,F,Z,function(y){var A=y.slotId; y=k(y);var V=rM(z);A=WC(I.J.get(),"LAYOUT_TYPE_SURVEY",A);var R={layoutId:A,layoutType:"LAYOUT_TYPE_SURVEY",pQ:"core"},m=new MM(I.Y,Z),b=new Lj(I.Y,A),U=new ez(I.Y,A),S=new COX(I.Y);return{layoutId:A,layoutType:"LAYOUT_TYPE_SURVEY",Xq:new Map,layoutExitNormalTriggers:[m,S],layoutExitSkipTriggers:[b],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[U],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new Yk(z),new Wj(D),new MH(H/1E3),new Um(V)]),Pk:y(R),adLayoutLoggingData:z.adLayoutLoggingData}}); K=VBX(f,F,h.slotId,Z,I,K,k);return K instanceof Y?K:[h].concat(g.w(K))}}; SAs=function(f,D,F,Z,I,p,z,H){z=z===void 0?!1:z;var K=[];try{var k=[];if(F.renderer.linearAdSequenceRenderer)var h=function(b){b=Cwu(b.slotId,F,D,I(b),Z,p,z);k=b.zir;return b.d8}; else if(F.renderer.instreamVideoAdRenderer)h=function(b){var U=b.slotId;b=I(b);var S=z,G=F.config.adPlacementConfig,W=mbD(G),u=W.HE,E=W.vE;W=F.renderer.instreamVideoAdRenderer;var Ds;if(W==null?0:(Ds=W.playerOverlay)==null?0:Ds.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var Fu=lm(W,S);Ds=Math.min(u+Fu.videoLengthSeconds*1E3,E);S=new R7(0,[Fu.videoLengthSeconds]);E=Fu.videoLengthSeconds;var Zs=Fu.playerVars,za=Fu.instreamAdPlayerOverlayRenderer, ju=Fu.playerOverlayLayoutRenderer,Id=Fu.adVideoId,QX=TXD(F),Yc=Fu.Xq;Fu=Fu.Ze;var s0=W==null?void 0:W.adLayoutLoggingData;W=W==null?void 0:W.sodarExtensionData;U=WC(D.J.get(),"LAYOUT_TYPE_MEDIA",U);var ly={layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA",pQ:"core"};return{layoutId:U,layoutType:"LAYOUT_TYPE_MEDIA",Xq:Yc,layoutExitNormalTriggers:[new t_(D.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new J5(Z), new kV(E),new jU(Zs),new yD(u),new A0(Ds),za&&new uR(za),ju&&new N6(ju),new Wj(G),new EP(Id),new Bj(S),new QD(QX),W&&new h0(W),new sm({current:null}),new VD({}),new Gb(Fu)].filter(b6D)),Pk:b(ly),adLayoutLoggingData:s0}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var y=MBJ(f,Z,F.adSlotLoggingData,h,H);K.push(y);for(var A=g.a(k),V=A.next();!V.done;V=A.next()){var R=V.value,m=R(f,I);if(m instanceof Y)return m;K.push.apply(K,g.w(m))}}catch(b){return new Y(b,{errorMessage:b.message,AdPlacementRenderer:F,numberOfSurveyRenderers:tBT(F)})}return K}; tBT=function(f){f=(f.renderer.linearAdSequenceRenderer||{}).linearAds;return f!=null&&f.length?f.filter(function(D){var F,Z;return((F=g.Q(D,qa))==null?void 0:(Z=F.playerOverlay)==null?void 0:Z.instreamSurveyAdRenderer)!=null}).length:0}; Cwu=function(f,D,F,Z,I,p,z){var H=D.config.adPlacementConfig,K=mbD(H),k=K.HE,h=K.vE;K=(D.renderer.linearAdSequenceRenderer||{}).linearAds;if(K==null||!K.length)throw new TypeError("Expected linear ads");var y=[],A={wE:k,qa:0,Zwx:y};K=K.map(function(R){return chI(f,R,A,F,Z,H,I,h,z)}).map(function(R,m){m=new R7(m,y); return R(m)}); var V=K.map(function(R){return R.u2}); return{d8:UbE(F,f,k,V,H,TXD(D),Z,h,p),zir:K.map(function(R){return R.CnR})}}; chI=function(f,D,F,Z,I,p,z,H,K){var k=lm(g.Q(D,qa),K),h=F.wE,y=F.qa,A=Math.min(h+k.videoLengthSeconds*1E3,H);F.wE=A;F.qa++;F.Zwx.push(k.videoLengthSeconds);var V,R,m=(V=g.Q(D,qa))==null?void 0:(R=V.playerOverlay)==null?void 0:R.instreamSurveyAdRenderer;if(k.adVideoId==="nPpU29QrbiU"&&m==null)throw new TypeError("Survey slate media has no survey overlay");return function(b){a4(k.playerVars,b);var U,S,G=k.videoLengthSeconds,W=k.playerVars,u=k.Xq,E=k.Ze,Ds=k.instreamAdPlayerOverlayRenderer,Fu=k.playerOverlayLayoutRenderer, Zs=k.adVideoId,za=(U=g.Q(D,qa))==null?void 0:U.adLayoutLoggingData;U=(S=g.Q(D,qa))==null?void 0:S.sodarExtensionData;S=WC(Z.J.get(),"LAYOUT_TYPE_MEDIA",f);var ju={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",pQ:"adapter"};b={layoutId:S,layoutType:"LAYOUT_TYPE_MEDIA",Xq:u,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"adapter",clientMetadata:new NH([new J5(z),new kV(G),new jU(W),new yD(h),new A0(A), new $V(y),new sm({current:null}),Ds&&new uR(Ds),Fu&&new N6(Fu),new Wj(p),new EP(Zs),new Bj(b),U&&new h0(U),m&&new ay(m),new VD({}),new Gb(E)].filter(b6D)),Pk:I(ju),adLayoutLoggingData:za};G=Qay(g.Q(D,qa),p,z,b.layoutId,Z);return{u2:b,CnR:G}}}; lm=function(f,D){if(!f)throw new TypeError("Expected instream video ad renderer");if(!f.playerVars)throw new TypeError("Expected player vars in url encoded string");var F=iy(f.playerVars),Z=Number(F.length_seconds);if(isNaN(Z))throw new TypeError("Expected valid length seconds in player vars");var I=Number(f.trimmedMaxNonSkippableAdDurationMs);Z=isNaN(I)?Z:Math.min(Z,I/1E3);I=f.playerOverlay||{};I=I.instreamAdPlayerOverlayRenderer===void 0?null:I.instreamAdPlayerOverlayRenderer;var p=f.playerOverlay|| {};p=p.playerOverlayLayoutRenderer===void 0?null:p.playerOverlayLayoutRenderer;var z=F.video_id;z||(z=(z=f.externalVideoId)?z:void 0);if(!z)throw new TypeError("Expected valid video id in IVAR");if(D&&Z===0){var H;D=(H=vlT[z])!=null?H:Z}else D=Z;return{playerVars:F,videoLengthSeconds:D,instreamAdPlayerOverlayRenderer:I,playerOverlayLayoutRenderer:p,adVideoId:z,Xq:f.pings?KJ(f.pings):new Map,Ze:om(f.pings)}}; TXD=function(f){f=Number(f.driftRecoveryMs);return isNaN(f)||f<=0?null:f}; mbD=function(f){var D=f.adTimeOffset||{};f=D.offsetEndMilliseconds;D=Number(D.offsetStartMilliseconds);if(isNaN(D))throw new TypeError("Expected valid start offset");f=Number(f);if(isNaN(f))throw new TypeError("Expected valid end offset");return{HE:D,vE:f}}; a2c=function(f){var D,F=(D=gN(f.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:D.current;if(!F)return null;D=gN(f.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Z=f.layoutId,I=gN(f.clientMetadata,"metadata_type_content_cpn"),p=gN(f.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z=gN(f.clientMetadata,"metadata_type_player_underlay_renderer"),H=gN(f.clientMetadata,"metadata_type_ad_placement_config"),K=gN(f.clientMetadata,"metadata_type_video_length_seconds"); var k=lz(f.clientMetadata,"metadata_type_layout_enter_ms")&&lz(f.clientMetadata,"metadata_type_layout_exit_ms")?(gN(f.clientMetadata,"metadata_type_layout_exit_ms")-gN(f.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BQ:Z,contentCpn:I,EZ:F,bU:D,instreamAdPlayerOverlayRenderer:p,instreamAdPlayerUnderlayRenderer:z,adPlacementConfig:H,videoLengthSeconds:K,YN:k,inPlayerLayoutId:gN(f.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:gN(f.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; WUD=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R){Z=DJ(Z,"SLOT_TYPE_PLAYER_BYTES");f=GFd(I,f,z,F,Z,K,k);if(f instanceof Y)return f;var m;k=(m=gN(f.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:m.layoutId;if(!k)return new Y("Invalid adNotify layout");D=wBy(k,I,p,F,H,D,K,h,y,A,V,R,z);return D instanceof Y?D:[f].concat(g.w(D))}; wBy=function(f,D,F,Z,I,p,z,H,K,k,h,y,A){F=BXf(D,F,Z,p,z,H,K,k,h,y,A);if(F instanceof Y)return F;f=rhD(D,f,z,I,F);return f instanceof Y?f:[].concat(g.w(f.jx),[f.AT])}; l2X=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V){D=BXf(f,D,F,I,p,H,K,k,h,y,A,V);if(D instanceof Y)return D;f=LUT(f,F,p,z,Z,H.jj,D);return f instanceof Y?f:f.jx.concat(f.AT)}; BXf=function(f,D,F,Z,I,p,z,H,K,k,h,y){var A=Eh(Z);return A instanceof uz?new Y(A):k.U.j().experiments.Hs("html5_refactor_in_player_slot_generation")?function(V){var R=new R7(0,[A.Ly]);V=ElI(D,A.layoutId,A.DS,F,Jx(A.playerVars,A.ju,p,K,R),A.Ly,I,R,z(V),H.get(A.DS.externalVideoId),y);R=[];if(A.DS.playerOverlay.instreamAdPlayerOverlayRenderer){var m=a2c(V);if(!m)return Kb("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,V),{layout:V,jx:[]};R=[JhT(f, m.contentCpn,m.BQ,function(U){return um(D,U.slotId,"core",m,YV(h,U))},m.inPlayerSlotId)].concat(g.w(R)); if(m.instreamAdPlayerUnderlayRenderer&&Na(k)){var b=m.instreamAdPlayerUnderlayRenderer;R=[uld(f,m.contentCpn,m.BQ,function(U){return NXu(D,U.slotId,b,m.adPlacementConfig,m.BQ,YV(h,U))})].concat(g.w(R))}}return{layout:V, jx:R}}:function(V){var R=new R7(0,[A.Ly]); return{layout:ElI(D,A.layoutId,A.DS,F,Jx(A.playerVars,A.ju,p,K,R),A.Ly,I,R,z(V),H.get(A.DS.externalVideoId),y),jx:[]}}}; Eh=function(f){if(!f.playerVars)return new uz("No playerVars available in InstreamVideoAdRenderer.");var D,F;if(f.elementId==null||f.playerVars==null||f.playerOverlay==null||((D=f.playerOverlay)==null?void 0:D.instreamAdPlayerOverlayRenderer)==null&&((F=f.playerOverlay)==null?void 0:F.playerOverlayLayoutRenderer)==null||f.pings==null||f.externalVideoId==null)return new uz("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:f});D=iy(f.playerVars);F=Number(D.length_seconds);isNaN(F)&& (F=0,Kb("Expected valid length seconds in player vars but got NaN"));return{layoutId:f.elementId,DS:f,playerVars:D,ju:f.playerVars,Ly:F}}; Jx=function(f,D,F,Z,I){f.iv_load_policy=Z;D=iy(D);if(D.cta_conversion_urls)try{f.cta_conversion_urls=JSON.parse(D.cta_conversion_urls)}catch(p){Kb(p)}F.IN&&(f.ctrl=F.IN);F.YR&&(f.ytr=F.YR);F.VS&&(f.ytrcc=F.VS);F.isMdxPlayback&&(f.mdx="1");f.vvt&&(f.vss_credentials_token=f.vvt,F.Ht&&(f.vss_credentials_token_type=F.Ht),F.mdxEnvironment&&(f.mdx_environment=F.mdxEnvironment));a4(f,I);return f}; glu=function(f){var D=new Map;f=g.a(f);for(var F=f.next();!F.done;F=f.next())(F=F.value.renderer.remoteSlotsRenderer)&&F.hostElementId&&D.set(F.hostElementId,F);return D}; gM=function(f){return f.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; eOT=function(f){return f!=null}; D6y=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R){for(var m=[],b=g.a(f),U=b.next();!U.done;U=b.next())if(U=U.value,!WuD(U)&&!J7w(U)){var S=xbX(U,Z,F.un);if(S instanceof Y)return S;var G=void 0,W={slotId:U.adSlotMetadata.slotId,slotType:U.adSlotMetadata.slotType,slotPhysicalPosition:(G=U.adSlotMetadata.slotPhysicalPosition)!=null?G:1,pQ:"core",slotEntryTrigger:S.slotEntryTrigger,slotFulfillmentTriggers:S.slotFulfillmentTriggers,slotExpirationTriggers:S.slotExpirationTriggers},u=g.Q(U.fulfillmentContent.fulfilledLayout, j3);if(u){if(!kD(u))return new Y("Invalid PlayerBytesAdLayoutRenderer");G=y&&!(gM(U)&&U.slotEntryTrigger.beforeContentVideoIdStartedTrigger);S=S.slotFulfillmentTriggers.some(function(E){return E instanceof Sz}); S=G?XBJ(W,U.adSlotMetadata.triggerEvent,u,F,Z,p,f,A,S,V):O6y(W,U.adSlotMetadata.triggerEvent,u,D,F,Z,I,p,z,H,K,k,f,h,U.adSlotMetadata.triggeringSourceLayoutId);if(S instanceof Y)return S;u=[];R?u.push(new K$({current:R})):u.push(new K$({current:null}));gM(U)&&u.push(new rN({hX:gM(U)&&!!U.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));G&&u.push(new VD({}));F.jj&&u.push(new vf({}));U=Object.assign({},W,{clientMetadata:new NH(u),fulfilledLayout:S.layout,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData}); m.push.apply(m,g.w(S.jx));m.push(U)}else if(G=g.Q(U.fulfillmentContent.fulfilledLayout,Vv)){if(!wkf(G))return new Y("Invalid PlayerUnderlayAdLayoutRenderer");G=nls(G,Z,F.un,p,W,U.adSlotMetadata.triggerEvent,U.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof Y)return G;U=Object.assign({},W,{clientMetadata:new NH([]),fulfilledLayout:G,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});m.push(U)}else if(G=g.Q(U.fulfillmentContent.fulfilledLayout,lOD)){if(!OC(G.adLayoutMetadata)||!g.Q(G.renderingContent, yv))return new Y("Invalid InPlayerOrganicOverlayAdLayoutRenderer");G=G.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?YAs(G,Z,F.un,p,W):new Y("LayoutType ["+G.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(G instanceof Y)return G;U=Object.assign({},W,{clientMetadata:new NH([]),fulfilledLayout:G,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});m.push(U)}else if(G=g.Q(U.fulfillmentContent.fulfilledLayout,r7u)){if(!MTy(G))return new Y("Invalid AboveFeedAdLayoutRenderer"); G=Pwy(G,Z,F.un,p,W,U.adSlotMetadata.triggerEvent,U.adSlotMetadata.triggeringSourceLayoutId);if(G instanceof Y)return G;U=Object.assign({},W,{clientMetadata:new NH([]),fulfilledLayout:G,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});m.push(U)}else if(G=g.Q(U.fulfillmentContent.fulfilledLayout,Lus)){if(!OC(G.adLayoutMetadata)||!g.Q(G.renderingContent,nj))return new Y("Invalid BelowPlayerAdLayoutRenderer");G=Pwy(G,Z,F.un,p,W,U.adSlotMetadata.triggerEvent,U.adSlotMetadata.triggeringSourceLayoutId); if(G instanceof Y)return G;U=Object.assign({},W,{clientMetadata:new NH([]),fulfilledLayout:G,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});m.push(U)}else if(G=g.Q(U.fulfillmentContent.fulfilledLayout,R4)){if(!hx(G))return new Y("Invalid PlayerBytesSequenceItemAdLayoutRenderer");G=f9I(G,Z,F.un,p,W,U.adSlotMetadata.triggerEvent);if(G instanceof Y)return G;U=Object.assign({},W,{clientMetadata:new NH([]),fulfilledLayout:G,adSlotLoggingData:U.adSlotMetadata.adSlotLoggingData});m.push(U)}else return new Y("Unable to retrieve a client slot ["+ W.slotType+"] from a given AdSlotRenderer")}return m}; f9I=function(f,D,F,Z,I,p){var z={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,pQ:"core"};D=e3(f,D,F);return D instanceof Y?D:(F=g.Q(f.renderingContent,im))&&F.pings?Object.assign({},z,{renderingContent:f.renderingContent,Xq:KJ(F.pings)},D,{Pk:YV(Z,I)(z),clientMetadata:new NH([new Wj(xD(p)),new Um({progressCommands:F.progressCommands})]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}):new Y("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; Pwy=function(f,D,F,Z,I,p,z){var H={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,pQ:"core"};D=e3(f,D,F);if(D instanceof Y)return D;F=[];F.push(new Wj(xD(p)));p==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&z!==void 0&&F.push(new DR(z));return Object.assign({},H,{renderingContent:f.renderingContent,Xq:new Map([["impression",FGy(f)]])},D,{Pk:YV(Z,I)(H),clientMetadata:new NH(F),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData})}; nls=function(f,D,F,Z,I,p,z){if(f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var H=g.Q(f.renderingContent,Ax),K=g.Q(f.renderingContent,yv);z=new Map;if(H){z=g.Q(H.sidePanel,aOs);if(!z){f=new Y("DismissablePanelTextPortraitImageRenderer is missing");break a}z=new Map([["impression",z.impressionPings||[]],["resume",z.resumePings||[]]])}else if(!K){f=new Y("AdsEngagementPanelSectionListViewModel is missing");break a}H={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType, pQ:"core"};D=e3(f,D,F);f=D instanceof Y?D:Object.assign({},H,{renderingContent:f.renderingContent,Xq:z},D,{Pk:YV(Z,I)(H),clientMetadata:new NH([new Wj(xD(p))]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData})}else f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.Q(f.renderingContent,Uzy)?(z={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,pQ:"core"},D=e3(f,D,F),f=D instanceof Y?D:Object.assign({},z,{renderingContent:f.renderingContent,Xq:new Map}, D,{Pk:YV(Z,I)(z),clientMetadata:new NH([new Wj(xD(p))]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData})):f=new Y("CounterfactualRenderer is missing"):f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?f=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?f=new Y("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.Q(f.renderingContent,$D)?(p={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,pQ:"core"},D=e3(f,D,F),f=D instanceof Y?D:z?Object.assign({},p,{renderingContent:f.renderingContent,Xq:new Map},D,{Pk:YV(Z,I)(p),clientMetadata:new NH([new DR(z)]),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}):new Y("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):f=new Y("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): f.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.Q(f.renderingContent,yv)?(p={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,pQ:"core"},D=e3(f,D,F),f=D instanceof Y?D:Object.assign({},p,{renderingContent:f.renderingContent,Xq:new Map([])},D,{Pk:YV(Z,I)(p),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new NH([])})):f=new Y("AdsEngagementPanelSectionListViewModel is missing"):f=new Y("LayoutType ["+f.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");return f}; YAs=function(f,D,F,Z,I){if(!g.Q(f.renderingContent,yv))return new Y("AdsEngagementPanelSectionListViewModel is missing");var p={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,pQ:"core"};D=e3(f,D,F);return D instanceof Y?D:Object.assign({},p,{renderingContent:f.renderingContent,Xq:new Map([])},D,{Pk:YV(Z,I)(p),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new NH([])})}; XBJ=function(f,D,F,Z,I,p,z,H,K,k){if((k==null?void 0:k.WO)===void 0||(k==null?void 0:k.rk)===void 0)return new Y("Cached ad break range from cue point is missing");var h=e3(F,I,Z.un);if(h instanceof Y)return h;h={layoutExitMuteTriggers:[],layoutExitNormalTriggers:h.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.Q(F.renderingContent,qa))return f=Zuf(f,D,F,h,I,p,z,Z.un,k.WO,k.rk),f instanceof Y?f:f.Qt===void 0?new Y("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:f.layout,jx:[f.Qt]};var y=g.Q(F.renderingContent,zj);if(y){if(!OC(F.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!sh(y))return new Y("Invalid sequential layout");y=y.sequentialLayouts.map(function(A){return A.playerBytesAdLayoutRenderer}); f=I9c(f,D,F,h,y,I,Z,p,z,H,k.WO,k.rk,K);return f instanceof Y?f:{layout:f.g0,jx:f.jx}}return new Y("Not able to convert a sequential layout")}; I9c=function(f,D,F,Z,I,p,z,H,K,k,h,y,A){var V=pjD(I,h,y);if(V instanceof Y)return V;var R=[],m=[];V=g.a(V);for(var b=V.next();!b.done;b=V.next()){var U=b.value;b=f;var S=I[U.qa],G=U,W=D;U=p;var u=z,E=H,Ds=K,Fu=XC(S);if(Fu instanceof Y)b=Fu;else{var Zs={layoutId:S.adLayoutMetadata.layoutId,layoutType:S.adLayoutMetadata.layoutType,pQ:"adapter"};G=zIw(W,S,G,U);G instanceof Y?b=G:(b=Object.assign({},Zs,Oh,{Xq:Fu,renderingContent:S.renderingContent,clientMetadata:new NH(G),Pk:YV(E,b)(Zs),adLayoutLoggingData:S.adLayoutMetadata.adLayoutLoggingData}), b=(S=ne(Ds,b,U,u.un,E,void 0,!0))?S instanceof Y?S:{layout:b,Qt:S}:new Y("Expecting associatedInPlayerSlot"))}if(b instanceof Y)return b;R.push(b.layout);m.push(b.Qt)}I={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,pQ:"core"};D=[new QD(Number(F.driftRecoveryMs)),new yD(h),new A0(y),new Wj(xD(D)),new Wf(k),new VD({})];A&&D.push(new L$({}));return{g0:Object.assign({},I,Z,{TU:R,Xq:new Map,clientMetadata:new NH(D),Pk:YV(H,f)(I)}),jx:m}}; Zuf=function(f,D,F,Z,I,p,z,H,K,k){if(!kD(F))return new Y("Invalid PlayerBytesAdLayoutRenderer");var h=XC(F);if(h instanceof Y)return h;var y={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,pQ:"core"},A=g.Q(F.renderingContent,qa);if(!A)return new Y("Invalid rendering content for DAI media layout");A=lm(A,!1);K={BF:A,qa:0,wE:K,uu:Math.min(K+A.videoLengthSeconds*1E3,k),OU:new R7(0,[A.videoLengthSeconds])};var V;k=(V=Number(F.driftRecoveryMs))!=null?V:void 0;D=zIw(D,F,K, I,k);if(D instanceof Y)return D;f=Object.assign({},y,Z,{Xq:h,renderingContent:F.renderingContent,clientMetadata:new NH(D),Pk:YV(p,f)(y),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData});return(I=ne(z,f,I,H,p,void 0,!0))?I instanceof Y?I:{layout:f,Qt:I}:new Y("Expecting associatedInPlayerSlot")}; O6y=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R){var m=e3(F,p,I.un);if(m instanceof Y)return m;if(g.Q(F.renderingContent,qa)){K=sDI([F],I,K);if(K instanceof Y)return K;if(K.length!==1)return new Y("Only expected one media layout.");f=qPw(f,D,F,m,K[0],void 0,"core",Z,p,z,H,k,A,V,I.un,void 0,R);return f instanceof Y?f:{layout:f.layout,jx:f.Qt?[f.Qt]:[]}}var b=g.Q(F.renderingContent,zj);if(b){if(!OC(F.adLayoutMetadata))return new Y("Invalid ad layout metadata");if(!sh(b))return new Y("Invalid sequential layout"); b=b.sequentialLayouts.map(function(U){return U.playerBytesAdLayoutRenderer}); f=Hua(f,D,F.adLayoutMetadata,m,b,Z,p,I,K,z,H,k,h,y,A,V,R);return f instanceof Y?f:{layout:f.g0,jx:f.jx}}return new Y("Not able to convert a sequential layout")}; Hua=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m,b){var U=new lR({current:null}),S=sDI(I,H,K);if(S instanceof Y)return S;K=[];for(var G=[],W=void 0,u=0;u0&&(W.push(m),W.push(new Lu(G.adPodSkipTarget)));(p=k.get(G.externalVideoId))&&W.push(new bz(p));p=W}else p=new Y("Invalid vod media renderer")}if(p instanceof Y)return p;f=Object.assign({},z,Z,{Xq:U,renderingContent:F.renderingContent,clientMetadata:new NH(p),Pk:YV(h,f)(z),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData});F=g.Q(F.renderingContent,qa);if(!F||!pe(F))return new Y("Invalid meida renderer");y=wM(y,F.externalVideoId);y.instreamVideoAdRenderer=F;y.hn="AD_PLACEMENT_KIND_START";return V?(K=ne(A,f,K,R,h,m,!1),K instanceof Y?K:k1I(f.layoutId,A)&&K?{layout:Object.assign({},f,{clientMetadata:new NH(p.concat(new xk(K)))})}:{layout:f,Qt:K}): {layout:f}}; okc=function(f,D,F,Z,I){if(!kD(D))return new Y("Invalid PlayerBytesAdLayoutRenderer");var p=g.Q(D.renderingContent,X8);if(!p||p.durationMilliseconds===void 0)return new Y("Invalid endcap renderer");var z={layoutId:D.adLayoutMetadata.layoutId,layoutType:D.adLayoutMetadata.layoutType,pQ:"adapter"};Z=[new t0(p.durationMilliseconds),new Um({impressionCommands:void 0,abandonCommands:p.abandonCommands?[{commandExecutorCommand:p.abandonCommands}]:void 0,completeCommands:p.completionCommands}),new Wj(Z), new Iy("LAYOUT_TYPE_ENDCAP")];if(I){Z.push(new rx(I.OU.adPodIndex-1));Z.push(new $V(I.OU.adPodIndex));var H;Z.push(new Lu((H=I.adPodSkipTarget)!=null?H:-1))}return Object.assign({},z,Oh,{renderingContent:D.renderingContent,clientMetadata:new NH(Z),Xq:p.skipPings?new Map([["skip",p.skipPings]]):new Map,Pk:YV(F,f)(z),adLayoutLoggingData:D.adLayoutMetadata.adLayoutLoggingData})}; ne=function(f,D,F,Z,I,p,z){f=f.filter(function(y){return y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&y.adSlotMetadata.triggeringSourceLayoutId===D.layoutId}); if(f.length!==0){if(f.length!==1)return new Y("Invalid InPlayer slot association for the given PlayerBytes layout");var H=f[0],K=xbX(H,F,Z);if(K instanceof Y)return K;var k;f={slotId:H.adSlotMetadata.slotId,slotType:H.adSlotMetadata.slotType,slotPhysicalPosition:(k=H.adSlotMetadata.slotPhysicalPosition)!=null?k:1,pQ:"core",slotEntryTrigger:K.slotEntryTrigger,slotFulfillmentTriggers:K.slotFulfillmentTriggers,slotExpirationTriggers:K.slotExpirationTriggers};k=g.Q(H.fulfillmentContent.fulfilledLayout, BgT);if(!k||!c7T(k))return new Y("Invalid InPlayerAdLayoutRenderer");K={layoutId:k.adLayoutMetadata.layoutId,layoutType:k.adLayoutMetadata.layoutType,pQ:"core"};F=e3(k,F,Z);if(F instanceof Y)return F;Z=[];var h=k.adLayoutMetadata.layoutType;z&&Z.push(new VD({}));if(h==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")Z.push.apply(Z,g.w(jDc(H.adSlotMetadata.triggerEvent,D))),(p=iua(F,D.layoutId))&&Z.push(new Fg(p));else if(h==="LAYOUT_TYPE_ENDCAP"||h==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){Z.push(new Wj(xD(H.adSlotMetadata.triggerEvent))); if(h==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new Y("Cannot parse endcap layout since AdUxReadyApi is not provided");p&&Z.push(p)}else return new Y("Not able to parse an SDF InPlayer layout");I=Object.assign({},K,F,{renderingContent:k.renderingContent,Xq:new Map,Pk:YV(I,f)(K),clientMetadata:new NH(Z),adLayoutLoggingData:k.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:I,clientMetadata:new NH([])})}}; jDc=function(f,D){var F=[];F.push(new Wj(xD(f)));F.push(new DR(D.layoutId));(f=gN(D.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&F.push(new sm(f));(f=gN(D.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&F.push(new lR(f));(f=gN(D.clientMetadata,"metadata_type_remote_slots_data"))&&F.push(new bz(f));(f=gN(D.clientMetadata,"metadata_type_ad_next_params"))&&F.push(new t5(f));(f=gN(D.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&F.push(new SX(f));(f= gN(D.clientMetadata,"metadata_type_ad_pod_info"))&&F.push(new Bj(f));(D=gN(D.clientMetadata,"metadata_type_ad_video_id"))&&F.push(new EP(D));return F}; KGf=function(f,D,F,Z,I,p){function z(k){return YD(D,k)} var H=Z.TB.inPlayerSlotId,K={layoutId:Z.TB.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",pQ:"core"};F={slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:new T5(z,f),slotFulfillmentTriggers:[new lx(z,H)],slotExpirationTriggers:[new EC(z,H),new BI(z,F)]};f=Object.assign({},K,{layoutExitNormalTriggers:[new MM(z,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],Xq:new Map,clientMetadata:new NH([new OP(Z.TB), new Wj(Z.adPlacementConfig),I]),Pk:YV(p,F)(K),adLayoutLoggingData:Z.TB.adLayoutLoggingData});return Object.assign({},F,{clientMetadata:new NH([new C$(f)])})}; k1I=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next())if(F=F.value,F.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var Z=g.Q(F.fulfillmentContent.fulfilledLayout,Vv);if(Z&&(Z=g.Q(Z.renderingContent,Ax))&&Z.associatedPlayerBytesLayoutId===f)return F}}; xbX=function(f,D,F){var Z=v4(f.slotEntryTrigger,D,F);if(Z instanceof Y)return Z;for(var I=[],p=g.a(f.slotFulfillmentTriggers),z=p.next();!z.done;z=p.next()){z=v4(z.value,D,F);if(z instanceof Y)return z;I.push(z)}p=[];f=g.a(f.slotExpirationTriggers);for(z=f.next();!z.done;z=f.next()){z=v4(z.value,D,F);if(z instanceof Y)return z;p.push(z)}return{slotEntryTrigger:Z,slotFulfillmentTriggers:I,slotExpirationTriggers:p}}; e3=function(f,D,F){for(var Z=[],I=g.a(f.layoutExitNormalTriggers||[]),p=I.next();!p.done;p=I.next()){p=v4(p.value,D,F);if(p instanceof Y)return p;Z.push(p)}I=[];p=g.a(f.layoutExitSkipTriggers||[]);for(var z=p.next();!z.done;z=p.next()){z=v4(z.value,D,F);if(z instanceof Y)return z;I.push(z)}p=[];z=g.a(f.layoutExitMuteTriggers||[]);for(var H=z.next();!H.done;H=z.next()){H=v4(H.value,D,F);if(H instanceof Y)return H;p.push(H)}z=[];f=g.a(f.layoutExitUserInputSubmittedTriggers||[]);for(H=f.next();!H.done;H= f.next()){H=v4(H.value,D,F);if(H instanceof Y)return H;z.push(H)}return{layoutExitNormalTriggers:Z,layoutExitSkipTriggers:I,layoutExitMuteTriggers:p,layoutExitUserInputSubmittedTriggers:z,layoutExitUserCancelledTriggers:[]}}; XC=function(f){var D=g.Q(f.renderingContent,qa);if(D==null?0:D.pings)return KJ(D.pings);f=g.Q(f.renderingContent,X8);return(f==null?0:f.skipPings)?new Map([["skip",f.skipPings]]):new Map}; zIw=function(f,D,F,Z,I){D=g.Q(D.renderingContent,qa);if(!D)return new Y("Invalid rendering content for DAI media layout");f=[new J5(Z),new kV(F.BF.videoLengthSeconds),new jU(F.BF.playerVars),new yD(F.wE),new A0(F.uu),new $V(F.qa),new Wj(xD(f)),new EP(F.BF.adVideoId),new Bj(F.OU),D.sodarExtensionData&&new h0(D.sodarExtensionData),new sm({current:null}),new VD({}),new Gb(om(D.pings))].filter(eOT);I!==void 0&&f.push(new QD(I));return f}; pjD=function(f,D,F){f=f.map(function(K){return lm(g.Q(K.renderingContent,qa),!1)}); var Z=f.map(function(K){return K.videoLengthSeconds}),I=Z.map(function(K,k){return new R7(k,Z)}),p=D,z=F,H=[]; f.forEach(function(K,k){z=Math.min(p+K.videoLengthSeconds*1E3,F);a4(K.playerVars,I[k]);H.push({BF:K,wE:p,uu:z,qa:k,OU:I[k]});p=z}); return H}; sDI=function(f,D,F){for(var Z=[],I=g.a(f),p=I.next();!p.done;p=I.next())if(p=g.Q(p.value.renderingContent,qa)){if(!pe(p))return new Y("Invalid vod media renderer");Z.push(hIy(p))}I=Z.map(function(y){return y.Ly}); p=[];for(var z=0,H=0;H0?za:-1;else if(QX= g.Q(Id,X8)){Id=buX(f,D,F,QX,p,m,H,Ds,za);if(Id instanceof Y){V=Id;break a}Id=Id(A);b.push(Id.YW);U=[].concat(g.w(Id.KR),g.w(U));S=[].concat(g.w(Id.SL),g.w(S));Id.Qt&&(Zs=[Id.Qt].concat(g.w(Zs)))}else if(QX=g.Q(Id,o4)){if(V===void 0){V=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:QX});break a}Id=SPD(f,D,F,p,QX,E,H,V,m,wA(h,"supports_multi_step_on_desktop"));if(Id instanceof Y){V=Id;break a}Id=Id(A);b.push(Id.YW);Id.Qt&&Zs.push(Id.Qt); U=[].concat(g.w(Id.KR),g.w(U));S=[].concat(g.w(Id.SL),g.w(S));G=[].concat(g.w(Id.DO),g.w(G));W=[].concat(g.w(Id.MZ),g.w(W));u=[E].concat(g.w(u))}else if(Id=g.Q(Id,Ke)){Id=c5D(f,D,F,p,Id,E,H,m);if(Id instanceof Y){V=Id;break a}Id=Id(A);b.push(Id.YW);Id.Qt&&Zs.push(Id.Qt);S=[].concat(g.w(Id.SL),g.w(S))}else{V=new Y("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={TU:b,layoutExitSkipTriggers:U,layoutExitUserInputSubmittedTriggers:G,layoutExitUserCancelledTriggers:W,layoutExitMuteTriggers:S, Sb:u,jx:Zs}}}else a:if(m=r5y(Z),m instanceof Y)V=m;else{b=0;U=[];S=[];G=[];W=[];u=[];E=[];Ds=new qH({current:null});Fu=new lR({current:null});Zs=!1;ju=[];za=-1;R=g.a(Z);for(Id=R.next();!Id.done;Id=R.next())if(Id=Id.value,g.Q(Id,H4)){Id=MXE(D,F,g.Q(Id,H4),H);if(Id instanceof Y){V=Id;break a}Id=Id(A);U.push(Id.YW);S=[].concat(g.w(Id.KR),g.w(S));G=[].concat(g.w(Id.SL),g.w(G));Id.Qt&&(ju=[Id.Qt].concat(g.w(ju)))}else if(g.Q(Id,qa)){za=Eh(g.Q(Id,qa));if(za instanceof uz){V=new Y(za);break a}Id=new R7(b, m);Id=LGs(D,za.layoutId,za.DS,F,Jx(za.playerVars,za.ju,z,k,Id),za.Ly,p,Id,H(A),Fu,K.get(za.DS.externalVideoId),void 0,y);b++;U.push(Id.YW);S=[].concat(g.w(Id.KR),g.w(S));G=[].concat(g.w(Id.SL),g.w(G));Zs||(E.push(Fu),Zs=!0);za=(za=za.DS.adPodSkipTarget)&&za>0?za:-1}else if(g.Q(Id,X8)){Id=buX(f,D,F,g.Q(Id,X8),p,b,H,Fu,za);if(Id instanceof Y){V=Id;break a}Id=Id(A);U.push(Id.YW);S=[].concat(g.w(Id.KR),g.w(S));G=[].concat(g.w(Id.SL),g.w(G));Id.Qt&&(ju=[Id.Qt].concat(g.w(ju)))}else if(g.Q(Id,o4)){if(V=== void 0){V=new Y("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.Q(Id,o4)});break a}Id=SPD(f,D,F,p,g.Q(Id,o4),Ds,H,V,b,wA(h,"supports_multi_step_on_desktop"));if(Id instanceof Y){V=Id;break a}Id=Id(A);U.push(Id.YW);Id.Qt&&ju.push(Id.Qt);S=[].concat(g.w(Id.KR),g.w(S));G=[].concat(g.w(Id.SL),g.w(G));W=[].concat(g.w(Id.DO),g.w(W));u=[].concat(g.w(Id.MZ),g.w(u));E=[Ds].concat(g.w(E))}else if(g.Q(Id,Ke)){Id=c5D(f,D,F,p,g.Q(Id,Ke),Ds,H,b);if(Id instanceof Y){V=Id;break a}Id=Id(A);U.push(Id.YW);Id.Qt&&ju.push(Id.Qt);G=[].concat(g.w(Id.SL),g.w(G))}else{V=new Y("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={TU:U,layoutExitSkipTriggers:S,layoutExitUserInputSubmittedTriggers:W,layoutExitUserCancelledTriggers:u,layoutExitMuteTriggers:G,Sb:E,jx:ju}}V instanceof Y?A=V:(u=A.slotId,m=V.TU,b=V.layoutExitSkipTriggers,U=V.layoutExitMuteTriggers,S=V.layoutExitUserInputSubmittedTriggers,G=V.Sb,A=H(A),W=I?I.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES", u=I?I.layoutId:WC(D.J.get(),W,u),E={layoutId:u,layoutType:W,pQ:"core"},A={layout:{layoutId:u,layoutType:W,Xq:new Map,layoutExitNormalTriggers:[new WI(D.Y,u)],layoutExitSkipTriggers:b,layoutExitMuteTriggers:U,layoutExitUserInputSubmittedTriggers:S,layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new Hf(m)].concat(g.w(G))),Pk:A(E)},jx:V.jx});return A}}; r5y=function(f){var D=[];f=g.a(f);for(var F=f.next();!F.done;F=f.next())if(F=F.value,g.Q(F,qa)){F=Eh(g.Q(F,qa));if(F instanceof uz)return new Y(F);D.push(F.Ly)}return D}; Ekf=function(f,D,F,Z,I,p,z,H){if(!g6u(F,H===void 0?!1:H))return new Y("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:F});var K=B4(F);if(K<=0)return new Y("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:F});var k=new qH({current:null}),h=yhI(f,D,F,k,Z,p,z);return l9w(f,Z,p,K,I,function(y,A){var V=y.slotId,R=rM(F);y=z(y);V=WC(D.J.get(),"LAYOUT_TYPE_MEDIA_BREAK",V);var m={layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",pQ:"core"}, b=h(V,A),U=gN(b.clientMetadata,"metadata_type_fulfilled_layout");U||Kb("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");R=[new Wj(Z),new t0(K),new Um(R),k];U&&R.push(new Iy(U.layoutType));return{eFT:{layoutId:V,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xq:new Map,layoutExitNormalTriggers:[new WI(D.Y,V)],layoutExitSkipTriggers:[new Lj(D.Y,A.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new ez(D.Y,A.layoutId)], layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH(R),Pk:y(m)},sro:b}})}; J5a=function(f){if(!Xka(f))return!1;var D=g.Q(f.adVideoStart,Zq);return D?g.Q(f.linearAd,qa)&&Zv(D)?!0:(Kb("Invalid Sandwich with notify"),!1):!1}; uau=function(f){if(f.linearAds==null)return!1;f=g.Q(f.adStart,Zq);return f?Zv(f)?!0:(Kb("Invalid LASR with notify"),!1):!1}; Nxy=function(f){if(!xzT(f))return!1;f=g.Q(f.adStart,Zq);return f?Zv(f)?!0:(Kb("Invalid LASR with notify"),!1):!1}; IT=function(f,D,F,Z,I,p,z,H,K,k){this.G=f;this.J=D;this.Y=F;this.mI=Z;this.Jk=I;this.B=p;this.l3=z;this.F9=H;this.Ql=K;this.loadPolicy=k===void 0?1:k}; c4=function(f,D,F,Z,I,p,z,H,K,k,h){var y=[];if(D.length===0&&Z.length===0&&F.length===0)return y;D=D.filter(I4);var A=F.filter(E6I),V=Z.filter(I4),R=new Map,m=glu(D),b=F.some(function(ly){var OJ;return(ly==null?void 0:(OJ=ly.adSlotMetadata)==null?void 0:OJ.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),U=F.some(function(ly){var OJ; return(ly==null?void 0:(OJ=ly.adSlotMetadata)==null?void 0:OJ.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),S=F.some(function(ly){var OJ; return(ly==null?void 0:(OJ=ly.adSlotMetadata)==null?void 0:OJ.slotType)==="SLOT_TYPE_IN_PLAYER"}),G=F.some(function(ly){var OJ,WD; return(ly==null?void 0:(OJ=ly.adSlotMetadata)==null?void 0:OJ.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(ly==null?void 0:(WD=ly.adSlotMetadata)==null?void 0:WD.slotType)==="SLOT_TYPE_ABOVE_FEED"}),W=F.some(function(ly){var OJ; return(ly==null?void 0:(OJ=ly.adSlotMetadata)==null?void 0:OJ.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); F=F.some(function(ly){var OJ;return(ly==null?void 0:(OJ=ly.adSlotMetadata)==null?void 0:OJ.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(b||U||S||G||W||F)k=D6y(A,D,H,I,m,f.Jk.get(),f.loadPolicy,R,f.mI.get(),f.G.get(),S,z,K,k,h),k instanceof Y?Kb(k,void 0,void 0,{contentCpn:I}):y.push.apply(y,g.w(k));k=g.a(D);for(F=k.next();!F.done;F=k.next())F=F.value,U=gkD(f,R,F,I,p,z,b,H,m,K,A,f.mI.get().U.j().experiments.Hs("html5_enable_triggering_cuepoint_for_slot")?h:void 0),U instanceof Y?Kb(U,void 0,void 0,{renderer:F.renderer,config:F.config.adPlacementConfig,kind:F.config.adPlacementConfig.kind,contentCpn:I,daiEnabled:z}):y.push.apply(y, g.w(U));eIf(f.mI.get())||(p=x6J(f,V,I,H,m,R),y.push.apply(y,g.w(p)));if(f.B===null||z&&!H.FC){var u,E,Ds;f=H.jj&&D.length===1&&((u=D[0].config)==null?void 0:(E=u.adPlacementConfig)==null?void 0:E.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((Ds=D[0].renderer)==null?void 0:Ds.adBreakServiceRenderer);if(!y.length&&!f){var Fu,Zs,za,ju;Kb("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":D.length,contentCpn:I,"first APR kind":(Fu=D[0])==null?void 0: (Zs=Fu.config)==null?void 0:(za=Zs.adPlacementConfig)==null?void 0:za.kind,renderer:(ju=D[0])==null?void 0:ju.renderer})}return y}u=Z.filter(I4);y.push.apply(y,g.w(jas(R,u,f.J.get(),f.B,I,b)));if(!y.length){var Id,QX,Yc,s0;Kb("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":D.length,contentCpn:I,daiEnabled:z.toString(),"first APR kind":(Id=D[0])==null?void 0:(QX=Id.config)==null?void 0:(Yc=QX.adPlacementConfig)==null?void 0:Yc.kind,renderer:(s0=D[0])==null? void 0:s0.renderer})}return y}; x6J=function(f,D,F,Z,I,p){function z(A){return YV(f.Jk.get(),A)} var H=[];D=g.a(D);for(var K=D.next();!K.done;K=D.next()){K=K.value;var k=K.renderer,h=k.sandwichedLinearAdRenderer,y=k.linearAdSequenceRenderer;h&&J5a(h)?(Kb("Found AdNotify with SandwichedLinearAdRenderer"),y=g.Q(h.adVideoStart,Zq),h=g.Q(h.linearAd,qa),Gj(p,k,K.config.adPlacementConfig.kind),k=void 0,y=wBy((k=y)==null?void 0:k.layout.layoutId,f.J.get(),f.Y.get(),K.config.adPlacementConfig,K.adSlotLoggingData,h,F,Z,z,I,f.loadPolicy,f.mI.get(),f.Jk.get()),y instanceof Y?Kb(y):H.push.apply(H,g.w(y))): y&&(!y.adLayoutMetadata&&uau(y)||y.adLayoutMetadata&&Nxy(y))&&(Kb("Found AdNotify with LinearAdSequenceRenderer"),Gj(p,k,K.config.adPlacementConfig.kind),k=void 0,h=U6d((k=g.Q(y.adStart,Zq))==null?void 0:k.layout.layoutId,f.J.get(),f.Y.get(),K.config.adPlacementConfig,K.adSlotLoggingData,y.linearAds,OC(y.adLayoutMetadata)?y.adLayoutMetadata:void 0,F,Z,z,I,f.loadPolicy,f.mI.get()),h instanceof Y?Kb(h):H.push.apply(H,g.w(h)))}return H}; gkD=function(f,D,F,Z,I,p,z,H,K,k,h,y){function A(S){return YV(f.Jk.get(),S)} var V=F.renderer,R=F.config.adPlacementConfig,m=R.kind,b=F.adSlotLoggingData,U=H.FC&&m==="AD_PLACEMENT_KIND_START";U=p&&!U;if(V.adsEngagementPanelRenderer!=null)return W4(D,F.elementId,m,V.adsEngagementPanelRenderer.isContentVideoEngagementPanel,V.adsEngagementPanelRenderer.adVideoId,V.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.adsEngagementPanelRenderer;S=YV(f.Jk.get(),S);return pI(E,Ds,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new bR(Fu),G,W,Fu.impressionPings,S,V.adsEngagementPanelRenderer.adLayoutLoggingData,u)}),[]; if(V.adsEngagementPanelLayoutViewModel)return W4(D,F.elementId,m,V.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,V.adsEngagementPanelLayoutViewModel.adVideoId,V.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.adsEngagementPanelLayoutViewModel;S=YV(f.Jk.get(),S);return z4(E,Ds,"LAYOUT_TYPE_PANEL",new M6(Fu),G,W,S,V.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,u)}),[]; if(V.actionCompanionAdRenderer!=null){if(V.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return qAf(f.J.get(),f.B,f.Y.get(),V.actionCompanionAdRenderer,R,b,Z,A);W4(D,F.elementId,m,V.actionCompanionAdRenderer.isContentVideoCompanion,V.actionCompanionAdRenderer.adVideoId,V.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.actionCompanionAdRenderer;S=YV(f.Jk.get(),S);return pI(E,Ds,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new mG(Fu),G,W,Fu.impressionPings,S,V.actionCompanionAdRenderer.adLayoutLoggingData,u)})}else if(V.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(V.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return H6f(f.J.get(),f.B,f.Y.get(),V.topBannerImageTextIconButtonedLayoutViewModel,R,b,Z,A); W4(D,F.elementId,m,V.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,V.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,V.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.topBannerImageTextIconButtonedLayoutViewModel;S=YV(f.Jk.get(),S);return z4(E,Ds,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new T1(Fu),G,W,S,V.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,u)})}else if(V.imageCompanionAdRenderer)W4(D, F.elementId,m,V.imageCompanionAdRenderer.isContentVideoCompanion,V.imageCompanionAdRenderer.adVideoId,V.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.imageCompanionAdRenderer; S=YV(f.Jk.get(),S);return pI(E,Ds,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new UP(Fu),G,W,Fu.impressionPings,S,V.imageCompanionAdRenderer.adLayoutLoggingData,u)}); else if(V.bannerImageLayoutViewModel)W4(D,F.elementId,m,V.bannerImageLayoutViewModel.isContentVideoCompanion,V.bannerImageLayoutViewModel.adVideoId,V.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.bannerImageLayoutViewModel;S=YV(f.Jk.get(),S);return z4(E,Ds,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new vj(Fu),G,W,S,V.bannerImageLayoutViewModel.adLayoutLoggingData,u)}); else if(V.shoppingCompanionCarouselRenderer)W4(D,F.elementId,m,V.shoppingCompanionCarouselRenderer.isContentVideoCompanion,V.shoppingCompanionCarouselRenderer.adVideoId,V.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,R,b,function(S,G,W,u){var E=f.Y.get(),Ds=S.slotId,Fu=V.shoppingCompanionCarouselRenderer;S=YV(f.Jk.get(),S);return pI(E,Ds,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new aD(Fu),G,W,Fu.impressionPings,S,V.shoppingCompanionCarouselRenderer.adLayoutLoggingData,u)}); else if(V.adBreakServiceRenderer){if(!zOJ(F))return[];if(m==="AD_PLACEMENT_KIND_PAUSE")return pBy(f.J.get(),R,b,F.renderer.adBreakServiceRenderer,Z);if(m!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&m!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return I2D(f.J.get(),R,b,F.renderer.adBreakServiceRenderer,Z,I,p);H.jj||Kb("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:m,adPlacementConfig:R,daiEnabledForContentVideo:String(p),isServedFromLiveInfra:String(H.jj),clientPlaybackNonce:H.clientPlaybackNonce}); if(m==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!f.l3)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!f.Ql)return new Y("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");f.Ql.hd({adPlacementRenderer:F,contentCpn:Z,un:I});I=f.l3.get().getCurrentTimeSec(1,!1);return Xjy(f.J.get(),F.renderer.adBreakServiceRenderer,R,I,Z,b,p)}if(!f.F9)return new Y("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); f.F9.hd({adPlacementRenderer:F,contentCpn:Z,un:I})}else{if(V.clientForecastingAdRenderer)return VXc(f.J.get(),f.Y.get(),R,b,V.clientForecastingAdRenderer,Z,I,A);if(V.invideoOverlayAdRenderer)return CRI(f.J.get(),f.Y.get(),R,b,V.invideoOverlayAdRenderer,Z,I,A);if(V.instreamAdPlayerOverlayRenderer)return d6T(f.J.get(),f.Y.get(),R,b,V.instreamAdPlayerOverlayRenderer,Z,A);if((V.linearAdSequenceRenderer||V.instreamVideoAdRenderer)&&U)return SAs(f.J.get(),f.Y.get(),F,Z,A,k,!f.mI.get().U.j().Z("html5_override_ad_video_length_killswitch"), y);if(V.linearAdSequenceRenderer&&!U){if(z)return[];Gj(D,V,m);if(V.linearAdSequenceRenderer.adLayoutMetadata){if(!xzT(V.linearAdSequenceRenderer))return new Y("Received invalid LinearAdSequenceRenderer.")}else if(V.linearAdSequenceRenderer.linearAds==null)return new Y("Received invalid LinearAdSequenceRenderer.");if(g.Q(V.linearAdSequenceRenderer.adStart,Zq)){Kb("Found AdNotify in LinearAdSequenceRenderer");F=g.Q(V.linearAdSequenceRenderer.adStart,Zq);if(!tTJ(F))return new Y("Invalid AdMessageRenderer."); p=V.linearAdSequenceRenderer.linearAds;return vkJ(f.G.get(),f.J.get(),f.Y.get(),f.Jk.get(),R,b,F,OC(V.linearAdSequenceRenderer.adLayoutMetadata)?V.linearAdSequenceRenderer.adLayoutMetadata:void 0,p,Z,I,H,A,K,f.loadPolicy,f.mI.get())}return Bxu(f.J.get(),f.Y.get(),R,b,V.linearAdSequenceRenderer.linearAds,OC(V.linearAdSequenceRenderer.adLayoutMetadata)?V.linearAdSequenceRenderer.adLayoutMetadata:void 0,Z,I,H,A,K,f.loadPolicy,f.mI.get(),h)}if(!V.remoteSlotsRenderer||p){if(V.instreamVideoAdRenderer&& !U){if(z)return[];Gj(D,V,m);return l2X(f.J.get(),f.Y.get(),R,b,V.instreamVideoAdRenderer,Z,I,H,A,K,f.loadPolicy,f.mI.get(),f.Jk.get(),h)}if(V.instreamSurveyAdRenderer)return Ekf(f.J.get(),f.Y.get(),V.instreamSurveyAdRenderer,R,b,Z,A,wA(f.mI.get(),"supports_multi_step_on_desktop"));if(V.sandwichedLinearAdRenderer!=null)return Xka(V.sandwichedLinearAdRenderer)?g.Q(V.sandwichedLinearAdRenderer.adVideoStart,Zq)?(Kb("Found AdNotify in SandwichedLinearAdRenderer"),F=g.Q(V.sandwichedLinearAdRenderer.adVideoStart, Zq),tTJ(F)?(p=g.Q(V.sandwichedLinearAdRenderer.linearAd,qa))?WUD(F,p,R,f.G.get(),f.J.get(),f.Y.get(),f.Jk.get(),b,Z,I,H,A,K,f.loadPolicy,f.mI.get()):new Y("Missing IVAR from Sandwich"):new Y("Invalid AdMessageRenderer.")):Bxu(f.J.get(),f.Y.get(),R,b,[V.sandwichedLinearAdRenderer.adVideoStart,V.sandwichedLinearAdRenderer.linearAd],void 0,Z,I,H,A,K,f.loadPolicy,f.mI.get()):new Y("Received invalid SandwichedLinearAdRenderer.");if(V.videoAdTrackingRenderer!=null)return A5y(f.J.get(),f.Y.get(),V.videoAdTrackingRenderer, R,b,Z,I,H.Lw,A)}}return[]}; sk=function(f,D,F,Z,I,p,z,H){g.J.call(this);var K=this;this.J=f;this.B=D;this.o$=Z;this.l3=I;this.mI=p;this.DE=z;this.HI=H;this.Y=null;F.get().addListener(this);this.addOnDisposeCallback(function(){F.MR()||F.get().removeListener(K)}); Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.MR()||Z.get().removeListener(K)})}; oT=function(f,D,F){var Z=f.l3.get().getCurrentTimeSec(1,!1);f.mI.get().U.j().Oq()&&fj(f.DE.get(),"sdai","onopp.1;evt."+F.event+";start."+F.startSecs.toFixed(3)+";d."+F.I$.toFixed(3));fJ(f.J.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var I=f.B.get(),p=D.adPlacementRenderer.renderer.adBreakServiceRenderer,z=D.contentCpn,H=D.adPlacementRenderer.adSlotLoggingData;qB(f.mI.get());var K=f.DE;var k=I.mI.get();k=g.Pf(k.U.j().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var h=I.mI.get();var y=g.Pf(h.U.j().experiments,"min_prefetch_offset_sec_for_livestream_optimization");h=F.startSecs*1E3;h={GU:new dp(h,h+F.I$*1E3),ij:!1,cueProcessedMs:Z*1E3};var A=F.startSecs+F.I$;if(Z===0)h.Jy=new dp(0,A*1E3);else{y=F.startSecs-y;var V=y-Z;h.Jy=V<=0?new dp(y*1E3,A*1E3):new dp(Math.floor(Z+Math.random()*Math.min(V,k))*1E3,A*1E3)}p=Uh(I,p,z,h,H,[new oy(F)]);Hw(I.mI.get())&&fj(K.get(),"abrsm","cpi."+F.identifier+";cps."+F.startSecs+";cpd."+F.I$+";cts."+Z+";rbf."+h.Jy.start);K.get().U.tX(F.startSecs- Z,h.Jy.start/1E3-Z);return[p]})}; KI=function(f){var D,F=(D=gN(f.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:D.current;if(!F)return null;D=gN(f.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Z=f.layoutId,I=gN(f.clientMetadata,"metadata_type_content_cpn"),p=gN(f.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z=gN(f.clientMetadata,"metadata_type_player_overlay_layout_renderer"),H=gN(f.clientMetadata,"metadata_type_player_underlay_renderer"),K=gN(f.clientMetadata, "metadata_type_ad_placement_config"),k=gN(f.clientMetadata,"metadata_type_video_length_seconds");var h=lz(f.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?gN(f.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):lz(f.clientMetadata,"metadata_type_layout_enter_ms")&&lz(f.clientMetadata,"metadata_type_layout_exit_ms")?(gN(f.clientMetadata,"metadata_type_layout_exit_ms")-gN(f.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{BQ:Z,contentCpn:I,EZ:F,bU:D,instreamAdPlayerOverlayRenderer:p, playerOverlayLayoutRenderer:z,instreamAdPlayerUnderlayRenderer:H,adPlacementConfig:K,videoLengthSeconds:k,YN:h,inPlayerLayoutId:gN(f.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:gN(f.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; nkT=function(f,D){return OuT(f,D)}; YPD=function(f,D){D=OuT(f,D);if(!D)return null;var F;D.YN=(F=gN(f.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:F.adBreakRemainingLengthSeconds;return D}; OuT=function(f,D){var F,Z=(F=gN(f.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:F.current;if(!Z)return null;F=gys(f,D);return{FR:N4u(f,D),adPlacementConfig:gN(f.clientMetadata,"metadata_type_ad_placement_config"),ue:F,contentCpn:gN(f.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:gN(f.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:gN(f.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:gN(f.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,YN:void 0,EZ:Z,BQ:f.layoutId,videoLengthSeconds:gN(f.clientMetadata,"metadata_type_video_length_seconds")}}; kR=function(f,D,F,Z,I,p,z,H,K){g.J.call(this);this.G=f;this.T=D;this.X=F;this.B=Z;this.Y=I;this.J=p;this.Jk=z;this.mI=H;this.QT=K;this.C4=!0}; PRa=function(f,D,F){return uld(f.Y.get(),D.contentCpn,D.BQ,function(Z){return NXu(f.J.get(),Z.slotId,F,D.adPlacementConfig,D.BQ,YV(f.Jk.get(),Z))})}; jZ=function(f,D,F,Z,I,p,z){g.J.call(this);this.J=f;this.Y=D;this.B=F;this.G=Z;this.QT=I;this.l3=p;this.jU=z}; iU=function(f){g.J.call(this);this.Y=f}; fJ=function(f,D,F,Z){f.Y().aP(D,Z);F=F();f=f.Y();f.o_.Y("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",D,Z,F);D=g.a(F);for(F=D.next();!F.done;F=D.next())a:{Z=f;F=F.value;$1(Z.o_,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",F);$1(Z.o_,"ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",F);try{var I=Z.Y;if(g.XI(F.slotId))throw new Y("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(qh(I,F))throw new Y("Duplicate registration for slot.",{slotId:F.slotId,slotEntryTriggerType:F.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!I.Wl.o0.has(F.slotType))throw new Y("No fulfillment adapter factory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!I.Wl.h3.has(F.slotType))throw new Y("No SlotAdapterFactory registered for slot of type: "+F.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Tq(I,"TRIGGER_CATEGORY_SLOT_ENTRY",F.slotEntryTrigger?[F.slotEntryTrigger]:[]);Tq(I,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", F.slotFulfillmentTriggers);Tq(I,"TRIGGER_CATEGORY_SLOT_EXPIRATION",F.slotExpirationTriggers);var p=Z.Y,z=F.slotType+"_"+F.slotPhysicalPosition,H=RN(p,z);if(qh(p,F))throw new Y("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");H.set(F.slotId,new L_w(F));p.Y.set(z,H)}catch(Fu){Fu instanceof Y&&Fu.xR?(IN(Z.o_,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Fu.xR,F),Kb(Fu,F,void 0,void 0,Fu.s9)):(IN(Z.o_,"ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", F),Kb(Fu,F));break a}qh(Z.Y,F).T=!0;try{var K=Z.Y,k=qh(K,F),h=F.slotEntryTrigger,y=K.Wl.Rv.get(h.triggerType);y&&(y.t7("TRIGGER_CATEGORY_SLOT_ENTRY",h,F,null),k.xo.set(h.triggerId,y));for(var A=g.a(F.slotFulfillmentTriggers),V=A.next();!V.done;V=A.next()){var R=V.value,m=K.Wl.Rv.get(R.triggerType);m&&(m.t7("TRIGGER_CATEGORY_SLOT_FULFILLMENT",R,F,null),k.Bs.set(R.triggerId,m))}for(var b=g.a(F.slotExpirationTriggers),U=b.next();!U.done;U=b.next()){var S=U.value,G=K.Wl.Rv.get(S.triggerType);G&&(G.t7("TRIGGER_CATEGORY_SLOT_EXPIRATION", S,F,null),k.Jb.set(S.triggerId,G))}var W=K.Wl.o0.get(F.slotType).get().build(K.B,F);k.S=W;var u=K.Wl.h3.get(F.slotType).get().build(K.X,F);u.init();k.J=u}catch(Fu){Fu instanceof Y&&Fu.xR?(IN(Z.o_,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Fu.xR,F),Kb(Fu,F,void 0,void 0,Fu.s9)):(IN(Z.o_,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",F),Kb(Fu,F));pn(Z,F,!0);break a}$1(Z.o_,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",F);Z.Y.v_(F);for(var E=g.a(Z.J),Ds=E.next();!Ds.done;Ds= E.next())Ds.value.v_(F);k1(Z,F)}}; hS=function(f,D,F,Z,I){g.J.call(this);var p=this;this.J=f;this.B=D;this.ZK=F;this.context=I;this.Y=new Map;Z.get().addListener(this);this.addOnDisposeCallback(function(){Z.MR()||Z.get().removeListener(p)})}; YlJ=function(f,D){var F=0x8000000000000,Z=0,I=0x8000000000000;var p=g.a(D.slotFulfillmentTriggers);for(var z=p.next();!z.done;z=p.next())if(z=z.value,z instanceof vI){var H=z.Y.start;F=Math.min(F,H);Z=Math.max(Z,z.Y.end);z.visible&&(I=Math.min(I,H))}else Kb("Found unexpected fulfillment trigger for throttled slot.",D,null,{fulfillmentTrigger:z});p=F;I=I<0x8000000000000&&F0&&y9(f.T(),F)}; aT=function(f,D,F,Z,I){for(var p=[],z=g.a(f.uE.values()),H=z.next();!H.done;H=z.next()){var K=H=H.value,k=K.trigger;K=K.slot;if(k.triggerType===D){if(k instanceof Sz||k instanceof cI||k instanceof a7){if(I&&k.breakDurationMs!==F)continue;if(!I&&k.breakDurationMs===F)continue;if(Z.has(K.slotId))continue}p.push(H)}}p.length>0&&y9(f.T(),p)}; oVc=function(f,D){D=(D.I$+1)*1E3;var F=void 0;f=g.a(f.uE.values());for(var Z=f.next();!Z.done;Z=f.next()){var I=Z.value;Z=I.trigger;I=I.slot;Z instanceof Sz&&Z.breakDurationMs<=D&&(!F||Z.breakDurationMs>F.trigger.breakDurationMs)&&(F={slot:I,trigger:Z})}return F}; K1u=function(f){f=f.adPlacementRenderer.config.adPlacementConfig;if(!f.prefetchModeConfig||!f.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;f=Number(f.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(f)||f<=0?0:Math.floor(Math.random()*f)}; kbf=function(f){f=f.adPlacementRenderer.config.adPlacementConfig;if(f.prefetchModeConfig&&f.prefetchModeConfig.cacheFetchRefreshDurationMs&&(f=Number(f.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(f)||f<=0)))return f}; G4=function(f){f.Y=null;f.uE.clear();f.J&&f.J.stop();f.X&&f.X.stop();var D;(D=f.B)==null||D.stop();delete f.B}; syT=function(f){var D=[];f=g.a(f.uE.values());for(var F=f.next();!F.done;F=f.next())F=F.value.trigger,F instanceof Sz&&D.push(F.breakDurationMs);return D}; w5=function(f){g.J.call(this);this.B=f;this.C4=!0;this.uE=new Map;this.Y=new Map;this.J=new Map}; jya=function(f,D){var F=[];if(D=f.Y.get(D.layoutId)){D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next())(Z=f.J.get(Z.value.triggerId))&&F.push(Z)}return F}; Ww=function(){g.J.call(this);this.uE=new Map}; vg=function(f){switch(f){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"}}; i$E=function(f){switch(f){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; hZT=function(f,D){var F={slotId:DJ(D,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],pQ:"surface",clientMetadata:new NH([])},Z=Object,I=Z.assign;D=WC(D,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",F.slotId);D={layoutId:D,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Xq:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], pQ:"surface",clientMetadata:new NH([]),Pk:CAa(!1,F.slotId,F.slotType,F.slotPhysicalPosition,F.pQ,F.slotEntryTrigger,F.slotFulfillmentTriggers,F.slotExpirationTriggers,D,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return I.call(Z,{},f,{n8o:!0,slot:F,layout:D})}; Z6X=function(f,D,F,Z){var I=f.kind;Z=Z?!1:!f.hideCueRangeMarker;switch(I){case "AD_PLACEMENT_KIND_START":return Z={GU:new dp(-0x8000000000000,-0x8000000000000),ij:Z},F!=null&&(Z.Jy=new dp(-0x8000000000000,-0x8000000000000)),Z;case "AD_PLACEMENT_KIND_END":return Z={GU:new dp(0x7ffffffffffff,0x8000000000000),ij:Z},F!=null&&(Z.Jy=new dp(Math.max(0,D-F),0x8000000000000)),Z;case "AD_PLACEMENT_KIND_MILLISECONDS":I=f.adTimeOffset;I.offsetStartMilliseconds||Kb("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); I.offsetEndMilliseconds||Kb("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");f=Number(I.offsetStartMilliseconds);I=Number(I.offsetEndMilliseconds);I===-1&&(I=D);if(Number.isNaN(f)||Number.isNaN(I)||f>I)return new Y("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:I},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",I===D&&f-500<=I);Z={GU:new dp(f,I),ij:Z};if(F!=null){f=Math.max(0,f-F);if(f===I)return Z;Z.Jy=new dp(f,I)}return Z; default:return new Y("AdPlacementKind not supported in convertToRange.",{kind:I,adPlacementConfig:f})}}; y0u=function(f){if(!f||!f.adPlacements&&!f.adSlots)return!1;for(var D=g.a(f.adPlacements||[]),F=D.next();!F.done;F=D.next())if(F=F.value)if(F=F.adPlacementRenderer,F!=null&&(F.config&&F.config.adPlacementConfig&&F.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;f=g.a(f.adSlots||[]);for(D=f.next();!D.done;D=f.next()){var Z=F=void 0;if(((F=g.Q(D.value,dM))==null?void 0:(Z=F.adSlotMetadata)==null?void 0:Z.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Bw=function(f){this.mI=f;this.J=new Map;this.Y=new Map;this.B=new Map}; DJ=function(f,D){if(r5(f.mI.get())){var F=f.J.get(D)||0;F++;f.J.set(D,F);return D+"_"+F}return g.hK(16)}; WC=function(f,D,F){if(r5(f.mI.get())){var Z=f.Y.get(D)||0;Z++;f.Y.set(D,Z);return F+"_"+D+"_"+Z}return g.hK(16)}; YD=function(f,D){if(r5(f.mI.get())){var F=f.B.get(D)||0;F++;f.B.set(D,F);return D+"_"+F}return g.hK(16)}; A0X=function(f){var D=[new DR(f.BQ),new zb(f.EZ),new Wj(f.adPlacementConfig),new kV(f.videoLengthSeconds),new MH(f.YN)];f.instreamAdPlayerOverlayRenderer&&D.push(new uR(f.instreamAdPlayerOverlayRenderer));f.playerOverlayLayoutRenderer&&D.push(new N6(f.playerOverlayLayoutRenderer));f.bU&&D.push(new lR(f.bU));return D}; $Hf=function(f,D,F,Z,I,p){f=F.inPlayerLayoutId?F.inPlayerLayoutId:WC(p,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f);var z,H,K=F.instreamAdPlayerOverlayRenderer?(z=F.instreamAdPlayerOverlayRenderer)==null?void 0:z.adLayoutLoggingData:(H=F.playerOverlayLayoutRenderer)==null?void 0:H.adLayoutLoggingData;z={layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",pQ:D};return{layoutId:f,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Xq:new Map,layoutExitNormalTriggers:[new MM(function(k){return YD(p, k)},F.BQ)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:D,clientMetadata:Z,Pk:I(z),adLayoutLoggingData:K}}; LI=function(f){var D=this;this.J=f;this.Y=function(F){return YD(D.J.get(),F)}}; NXu=function(f,D,F,Z,I,p){F=new NH([new gx(F),new Wj(Z)]);D=WC(f.J.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",D);Z={layoutId:D,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",pQ:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Xq:new Map,layoutExitNormalTriggers:[new MM(function(z){return YD(f.J.get(),z)},I)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:F,Pk:p(Z),adLayoutLoggingData:void 0}}; um=function(f,D,F,Z,I){var p=A0X(Z);return $Hf(D,F,Z,new NH(p),I,f.J.get())}; VUE=function(f,D,F,Z,I){var p=A0X(Z);p.push(new G1(Z.FR));p.push(new wx(Z.ue));return $Hf(D,F,Z,new NH(p),I,f.J.get())}; pI=function(f,D,F,Z,I,p,z,H,K,k){D=WC(f.J.get(),F,D);var h={layoutId:D,layoutType:F,pQ:"core"},y=new Map;z&&y.set("impression",z);z=[new G5(f.Y,I,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];k&&z.push(new bx(f.Y,k,["normal"]));return{layoutId:D,layoutType:F,Xq:y,layoutExitNormalTriggers:z,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([Z,new Wj(p),new DR(I)]),Pk:H(h),adLayoutLoggingData:K}}; z4=function(f,D,F,Z,I,p,z,H,K){D=WC(f.J.get(),F,D);var k={layoutId:D,layoutType:F,pQ:"core"},h=[new G5(f.Y,I,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];K&&h.push(new bx(f.Y,K,["normal"]));return{layoutId:D,layoutType:F,Xq:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([Z,new Wj(p),new DR(I)]),Pk:z(k),adLayoutLoggingData:H}}; fI=function(f,D,F){var Z=[];Z.push(new we(f.Y,F));D&&Z.push(D);return Z}; P4=function(f,D,F,Z,I,p,z){var H={layoutId:D,layoutType:F,pQ:"core"};return{layoutId:D,layoutType:F,Xq:new Map,layoutExitNormalTriggers:z,layoutExitSkipTriggers:[new Qd(f.Y,D)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new cj(Z),new Wj(I)]),Pk:p(H),adLayoutLoggingData:Z.adLayoutLoggingData}}; Le=function(f,D,F,Z,I,p,z,H){var K={layoutId:D,layoutType:p,pQ:"core"};return{layoutId:D,layoutType:p,Xq:new Map,layoutExitNormalTriggers:[new MM(f.Y,F)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new Wj(Z)].concat(g.w(z))),Pk:I(K),adLayoutLoggingData:H}}; m6J=function(f,D,F,Z,I,p,z,H,K,k,h,y){f=Dq(f,D,F,Z,I,p,z,H,h,y);D=f.Sb;F=new ZR(f.yy);Z=f.layoutExitSkipTriggers;K>0&&(D.push(F),D.push(new Lu(K)),Z=[]);D.push(new rx(k));return{YW:{layoutId:f.layoutId,layoutType:f.layoutType,Xq:f.Xq,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:f.pQ,clientMetadata:new NH(D),Pk:f.Pk,adLayoutLoggingData:f.adLayoutLoggingData},KR:Z,SL:f.layoutExitMuteTriggers, DO:f.layoutExitUserInputSubmittedTriggers,MZ:f.layoutExitUserCancelledTriggers,Qt:f.Qt}}; tXu=function(f,D,F,Z,I,p,z,H,K){D=Dq(f,D,F,Z,I,new Map,p,function(k){return z(k,H)}); f=new ez(f.Y,D.yy);F=new ZR(D.yy);K=new rx(K);return{YW:{layoutId:D.layoutId,layoutType:D.layoutType,Xq:D.Xq,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:D.pQ,clientMetadata:new NH([].concat(g.w(D.Sb),[F,K])),Pk:D.Pk,adLayoutLoggingData:D.adLayoutLoggingData},KR:D.layoutExitSkipTriggers,SL:D.layoutExitMuteTriggers,DO:[].concat(g.w(D.layoutExitUserInputSubmittedTriggers),[f]),MZ:D.layoutExitUserCancelledTriggers, Qt:D.Qt}}; Dq=function(f,D,F,Z,I,p,z,H,K,k){D=WC(f.J.get(),"LAYOUT_TYPE_MEDIA_BREAK",D);var h={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",pQ:"adapter"};H=H(D);var y=gN(H.clientMetadata,"metadata_type_fulfilled_layout");y||Kb("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var A=y?y.layoutId:"";F=[new Wj(F),new t0(Z),new Um(I)];y&&F.push(new Iy(y.layoutType));k&&F.push(new $V(k));return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Xq:p,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[new Lj(f.Y,A)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"adapter",Sb:F,Pk:z(h),adLayoutLoggingData:K,Qt:H,yy:A}}; ElI=function(f,D,F,Z,I,p,z,H,K,k,h){f=RZu(f,D,"core",F,Z,I,p,z,H,K,k,void 0,h);return{layoutId:f.layoutId,layoutType:f.layoutType,Xq:f.Xq,layoutExitNormalTriggers:f.layoutExitNormalTriggers,layoutExitSkipTriggers:f.layoutExitSkipTriggers,layoutExitMuteTriggers:f.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:f.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:f.layoutExitUserCancelledTriggers,pQ:f.pQ,clientMetadata:new NH(f.KW),Pk:f.Pk,adLayoutLoggingData:f.adLayoutLoggingData}}; LGs=function(f,D,F,Z,I,p,z,H,K,k,h,y,A){D=RZu(f,D,"adapter",F,Z,I,p,z,H,K,h,y,A);Z=D.layoutExitSkipTriggers;I=D.KW;F.adPodSkipTarget&&F.adPodSkipTarget>0&&(I.push(k),I.push(new Lu(F.adPodSkipTarget)),Z=[]);I.push(new rx(H.adPodIndex));F.isCritical&&(Z=[new bx(f.Y,D.layoutId,["error"])].concat(g.w(Z)));return{YW:{layoutId:D.layoutId,layoutType:D.layoutType,Xq:D.Xq,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], pQ:D.pQ,clientMetadata:new NH(I),Pk:D.Pk,adLayoutLoggingData:D.adLayoutLoggingData},KR:Z,SL:D.layoutExitMuteTriggers,DO:D.layoutExitUserInputSubmittedTriggers,MZ:D.layoutExitUserCancelledTriggers}}; RZu=function(f,D,F,Z,I,p,z,H,K,k,h,y,A){var V={layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",pQ:F};I=[new Wj(I),new Bj(K),new EP(Z.externalVideoId),new J5(H),new Um({impressionCommands:Z.impressionCommands,abandonCommands:Z.onAbandonCommands,completeCommands:Z.completeCommands,progressCommands:Z.adVideoProgressCommands}),new jU(p),new sm({current:null}),new kV(z)];(p=Z.playerOverlay.instreamAdPlayerOverlayRenderer)&&I.push(new uR(p));(z=Z.playerOverlay.playerOverlayLayoutRenderer)&&I.push(new N6(z)); y&&I.push(new iz(y));(y=Z.playerUnderlay)&&I.push(new gx(y));H=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER");y=(y=p?p.elementId:z==null?void 0:z.layoutId)?y:WC(f.J.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",H);I.push(new ZR(y));I.push(new p$(H));I.push(new $V(K.adPodIndex));Z.adNextParams&&I.push(new t5(Z.adNextParams));Z.shrunkenPlayerBytesConfig&&I.push(new Xa(Z.shrunkenPlayerBytesConfig));Z.clickthroughEndpoint&&I.push(new SX(Z.clickthroughEndpoint));Z.legacyInfoCardVastExtension&&I.push(new SU(Z.legacyInfoCardVastExtension)); Z.sodarExtensionData&&I.push(new h0(Z.sodarExtensionData));h&&I.push(new bz(h));I.push(new Gb(om(Z.pings)));K=KJ(Z.pings);if(A){a:{A=g.a(A);for(h=A.next();!h.done;h=A.next())if(h=h.value,h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(p=g.Q(h.fulfillmentContent.fulfilledLayout,Vv))&&(p=g.Q(p.renderingContent,Ax))&&p.associatedPlayerBytesLayoutId===D){A=h;break a}A=void 0}A&&I.push(new eX(A))}return{layoutId:D,layoutType:"LAYOUT_TYPE_MEDIA",Xq:K,layoutExitNormalTriggers:[new WI(f.Y,D)],layoutExitSkipTriggers:Z.skipOffsetMilliseconds? [new Lj(f.Y,y)]:[],layoutExitMuteTriggers:[new Lj(f.Y,y)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:F,KW:I,Pk:k(V),adLayoutLoggingData:Z.adLayoutLoggingData}}; UbE=function(f,D,F,Z,I,p,z,H,K){Z.every(function(h){return Em(h,[],["LAYOUT_TYPE_MEDIA"])})||Kb("Unexpect subLayout type for DAI composite layout"); D=WC(f.J.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D);var k={layoutId:D,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",pQ:"core"};return{layoutId:D,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Xq:new Map,layoutExitNormalTriggers:[new t_(f.Y)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],pQ:"core",clientMetadata:new NH([new yD(F),new A0(H),new Hf(Z),new Wj(I),new QD(p),new VD({}),new Wf(K)]),Pk:z(k)}}; b6D=function(f){return f!=null}; lU=function(f,D,F){var Z=this;this.J=f;this.B=D;this.mI=F;this.Y=function(I){return YD(Z.J.get(),I)}}; Xjy=function(f,D,F,Z,I,p,z){if(!F.prefetchModeConfig)return new Y("AdPlacementConfig for Live Prefetch is missing prefetch_config");F=F.prefetchModeConfig;Z*=1E3;var H=[];if(!F.breakLengthMs)return new Y("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var K=g.a(F.breakLengthMs),k=K.next();!k.done;k=K.next())if(k=k.value,Number(k)>0){var h=Z+Number(F.startTimeOffsetMs),y=h+Number(F.cacheFetchSmearingDurationMs);k={GU:new dp(y,y+Number(k)),ij:!1,Jy:new dp(Math.floor(h+Math.random()* Number(F.cacheFetchSmearingDurationMs)),y),cueProcessedMs:Z?Z:h};h=[];h.push(new L$({}));y=[];y.push(new re(f.Y));y.push(new y7I(f.Y));z&&h.push(new VD({}));H.push(Uh(f,D,I,k,p,h,y))}return H}; Uh=function(f,D,F,Z,I,p,z){p=p===void 0?[]:p;var H=DJ(f.J.get(),"SLOT_TYPE_AD_BREAK_REQUEST");z||(z=[],Z.Jy&&Z.Jy.start!==Z.GU.start&&z.push(new vI(f.Y,F,new dp(Z.Jy.start,Z.GU.start),!1)),z.push(new vI(f.Y,F,new dp(Z.GU.start,Z.GU.end),Z.ij)));Z={getAdBreakUrl:D.getAdBreakUrl,WO:Z.GU.start,rk:Z.GU.end,cueProcessedMs:Z.cueProcessedMs};D=new ux(f.Y,H);p=[new m1(Z)].concat(g.w(p));return{slotId:H,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:z, slotExpirationTriggers:[new BI(f.Y,F),new EC(f.Y,H),new J_(f.Y,H)],pQ:"core",clientMetadata:new NH(p),adSlotLoggingData:I}}; Qyu=function(f,D,F){var Z=[];F=g.a(F);for(var I=F.next();!I.done;I=F.next())Z.push(dHX(f,D,I.value));return Z}; dHX=function(f,D,F){return F.triggeringSlotId!=null&&F.triggeringSlotId===f?F.clone(D):F}; hOf=function(f,D,F,Z,I){return CzD(f,D,F,Z,I)}; Txf=function(f,D,F,Z){var I=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER");return CzD(f,I,D,F,Z)}; CzD=function(f,D,F,Z,I){var p=new T5(f.Y,F),z=[new lx(f.Y,D)];f=[new EC(f.Y,D),new BI(f.Y,Z)];return{slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:z,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(I({slotId:D,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:p,slotFulfillmentTriggers:z,slotExpirationTriggers:f},F))]),adSlotLoggingData:void 0}}; l9w=function(f,D,F,Z,I,p){var z=DJ(f.J.get(),"SLOT_TYPE_PLAYER_BYTES"),H=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER"),K=WC(f.J.get(),"LAYOUT_TYPE_SURVEY",H);Z=Ek(f,D,F,Z);var k=[new lx(f.Y,z)];F=[new EC(f.Y,z),new BI(f.Y,F),new Qd(f.Y,K)];if(Z instanceof Y)return Z;p=p({slotId:z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:k,slotExpirationTriggers:F},{slotId:H,layoutId:K});H=p.sro;return[{slotId:z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Z,slotFulfillmentTriggers:k,slotExpirationTriggers:F,pQ:"core",clientMetadata:new NH([new C$(p.eFT),new rN({hX:f.hX(D)})]),adSlotLoggingData:I},H]}; JhT=function(f,D,F,Z,I){I=I?I:DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER");F=new T5(f.Y,F);var p=[new lx(f.Y,I)];f=[new BI(f.Y,D),new EC(f.Y,I)];return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:p,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(Z({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:F,slotFulfillmentTriggers:p,slotExpirationTriggers:f}))])}}; uld=function(f,D,F,Z){var I=DJ(f.J.get(),"SLOT_TYPE_PLAYER_UNDERLAY");F=new T5(f.Y,F);var p=[new lx(f.Y,I)];f=[new BI(f.Y,D),new EC(f.Y,I)];return{slotId:I,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:p,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(Z({slotId:I,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:F,slotFulfillmentTriggers:p,slotExpirationTriggers:f}))])}}; GFd=function(f,D,F,Z,I,p,z){var H=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER"),K=WC(f.J.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",H);Z=mHs(f,Z,p,z,K);if(Z instanceof Y)return Z;z=[new lx(f.Y,H)];I=[new BI(f.Y,p),new lx(f.Y,I),new ge(f.Y,I)];F=YV(F,{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:z,slotExpirationTriggers:I});f=f.B.get();p={layoutId:K,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",pQ:"core"};D={layoutId:K,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", Xq:new Map,layoutExitNormalTriggers:[new mza(f.Y,K,D.durationMs)],layoutExitSkipTriggers:[new bPE(f.Y,K,D.durationMs)],layoutExitUserCancelledTriggers:[new TgI(f.Y,K)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],pQ:"core",clientMetadata:new NH([new cf(D)]),Pk:F(p)};return{slotId:H,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:z,slotExpirationTriggers:I,clientMetadata:new NH([new C$(D)])}}; QDE=function(f,D,F,Z,I,p){D=Ek(f,D,F,Z);if(D instanceof Y)return D;var z=D instanceof vI?new dzI(f.Y,F,D.Y):null;Z=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER");var H=[new lx(f.Y,Z)];f=[new BI(f.Y,F),new EC(f.Y,Z)];p=p({slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:D,slotFulfillmentTriggers:H,slotExpirationTriggers:f},z);return p instanceof uz?new Y(p):{slotId:Z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:H,slotExpirationTriggers:f, pQ:"core",clientMetadata:new NH([new C$(p)]),adSlotLoggingData:I}}; RID=function(f,D,F,Z){var I=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER"),p=new de(f.Y,D),z=[new NM(f.Y,I)];f=[new BI(f.Y,D),new EC(f.Y,I)];return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:p,slotFulfillmentTriggers:z,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(Z({slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:p,slotFulfillmentTriggers:z,slotExpirationTriggers:f}))]),adSlotLoggingData:F}}; dbE=function(f,D,F,Z){var I=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER");F=new T5(f.Y,F);var p=[new lx(f.Y,I)],z=[new EC(f.Y,I),new BI(f.Y,D)];p={slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:F,slotFulfillmentTriggers:p,slotExpirationTriggers:z};return{slotId:I,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:[new lx(f.Y,I)],slotExpirationTriggers:[new BI(f.Y,D),new EC(f.Y,I)],pQ:"core",clientMetadata:new NH([new C$(Z(p))])}}; $bD=function(f,D,F,Z,I){var p=DJ(f.J.get(),"SLOT_TYPE_IN_PLAYER");F=new mO(f.Y,Z,F);Z=[new lx(f.Y,p)];f=[new BI(f.Y,D)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:F,slotFulfillmentTriggers:Z,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(I({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:F,slotFulfillmentTriggers:Z,slotExpirationTriggers:f}))])}}; kFJ=function(f,D,F,Z,I,p){var z=DJ(f.J.get(),D);return JS(f,z,D,new T5(f.Y,Z),[new BI(f.Y,F),new EC(f.Y,z),new bx(f.Y,Z,["error"])],I,p)}; KUd=function(f,D,F,Z,I,p,z){var H=DJ(f.J.get(),D);return JS(f,H,D,new bx(f.Y,I,["normal"]),[new BI(f.Y,F),new EC(f.Y,H),new bx(f.Y,Z,["error"])],p,z)}; saI=function(f,D,F,Z,I){var p=DJ(f.J.get(),D);return JS(f,p,D,new de(f.Y,F),[new BI(f.Y,F),new EC(f.Y,p)],Z,I)}; y5f=function(f,D,F,Z,I){F=F?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var p=DJ(f.J.get(),F);D=new de(f.Y,D);var z=[new lx(f.Y,p)];f=[new EC(f.Y,p)];return{slotId:p,slotType:F,slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:z,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(I({slotId:p,slotType:F,slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:D,slotFulfillmentTriggers:z,slotExpirationTriggers:f}))]),adSlotLoggingData:Z}}; MBJ=function(f,D,F,Z,I){var p=DJ(f.J.get(),"SLOT_TYPE_PLAYER_BYTES"),z=new UC(f.Y),H=[new NM(f.Y,p)];f=[new BI(f.Y,D)];D=[];D.push(new C$(Z({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:z,slotFulfillmentTriggers:H,slotExpirationTriggers:f})));D.push(new VD({}));I&&D.push(new K$({current:I}));return{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:H,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH(D), adSlotLoggingData:F}}; wjD=function(f,D){return eIf(f.mI.get())?new bx(f.Y,D,["normal","error","skipped"]):new bx(f.Y,D,["normal"])}; rhD=function(f,D,F,Z,I){D=wjD(f,D);f=FZ(f,D,F);I=I({slotId:f.slotId,slotType:f.slotType,slotPhysicalPosition:f.slotPhysicalPosition,slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers,slotExpirationTriggers:f.slotExpirationTriggers,pQ:f.pQ});return I instanceof Y?I:{AT:Object.assign({},f,{clientMetadata:new NH([new C$(I.layout)]),adSlotLoggingData:Z}),jx:I.jx}}; LUT=function(f,D,F,Z,I,p,z){F=WGI(f,D,F,Z);if(F instanceof Y)return F;z=z({slotId:F.slotId,slotType:F.slotType,slotPhysicalPosition:F.slotPhysicalPosition,slotEntryTrigger:F.slotEntryTrigger,slotFulfillmentTriggers:F.slotFulfillmentTriggers,slotExpirationTriggers:F.slotExpirationTriggers,pQ:F.pQ});if(z instanceof Y)return z;f=[new C$(z.layout),new rN({hX:f.hX(D)})];p&&f.push(new vf({}));return{AT:{slotId:F.slotId,slotType:F.slotType,slotPhysicalPosition:F.slotPhysicalPosition,slotEntryTrigger:F.slotEntryTrigger, slotFulfillmentTriggers:F.slotFulfillmentTriggers,slotExpirationTriggers:F.slotExpirationTriggers,pQ:F.pQ,clientMetadata:new NH(f),adSlotLoggingData:I},jx:z.jx}}; FZ=function(f,D,F){var Z=DJ(f.J.get(),"SLOT_TYPE_PLAYER_BYTES"),I=[new lx(f.Y,Z)];f=[new EC(f.Y,Z),new BI(f.Y,F)];return{slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:I,slotExpirationTriggers:f,pQ:"core"}}; WGI=function(f,D,F,Z){D=Ek(f,D,F,Z);return D instanceof Y?D:FZ(f,D,F)}; $6u=function(f,D,F,Z,I,p){var z=DJ(f.J.get(),"SLOT_TYPE_FORECASTING");D=Ek(f,D,F,Z);if(D instanceof Y)return D;Z=[new lx(f.Y,z)];f=[new EC(f.Y,z),new BI(f.Y,F)];return{slotId:z,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:D,slotFulfillmentTriggers:Z,slotExpirationTriggers:f,pQ:"core",clientMetadata:new NH([new C$(p({slotId:z,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:D,slotFulfillmentTriggers:Z,slotExpirationTriggers:f}))]),adSlotLoggingData:I}}; TNd=function(f,D,F,Z,I){var p=!D.hideCueRangeMarker;switch(D.kind){case "AD_PLACEMENT_KIND_START":return new de(f.Y,F);case "AD_PLACEMENT_KIND_MILLISECONDS":return f=Z6X(D,Z),f instanceof Y?f:I(f.GU,p);case "AD_PLACEMENT_KIND_END":return new Cj(f.Y,F,p);default:return new Y("Cannot construct entry trigger",{kind:D.kind})}}; mHs=function(f,D,F,Z,I){return TNd(f,D,F,Z,function(p,z){return new Rtu(f.Y,F,p,z,I)})}; Ek=function(f,D,F,Z){return TNd(f,D,F,Z,function(I,p){return new vI(f.Y,F,I,p)})}; JS=function(f,D,F,Z,I,p,z){f=[new NM(f.Y,D)];return{slotId:D,slotType:F,slotPhysicalPosition:1,slotEntryTrigger:Z,slotFulfillmentTriggers:f,slotExpirationTriggers:I,pQ:"core",clientMetadata:new NH([new C$(z({slotId:D,slotType:F,slotPhysicalPosition:1,pQ:"core",slotEntryTrigger:Z,slotFulfillmentTriggers:f,slotExpirationTriggers:I}))]),adSlotLoggingData:p}}; z_f=function(){}; uU=function(f,D){g.J.call(this);this.mI=f;this.J=D;this.eventCount=0;this.B=sJu()()}; $1=function(f,D,F){f.Y(D,void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData)}; HC=function(f,D,F,Z){f.Y(D,void 0,void 0,void 0,F,Z?Z:void 0,void 0,void 0,F.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0);F=Ml().resolve(Qe(qc))==null?void 0:HH();D=F==null?void 0:F.adsSeenHotConfig;F=F==null?void 0:F.adsHotConfig;(D==null?0:D.logOnAdsSeen)&&(F==null?0:F.webEnablePremiumAdsSeenLogging)&&b$d(f,Z?Z:void 0)}; Uld=function(f,D,F,Z){wA(f.mI.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED","trigger:",F,"slot:",D,"layout:",Z);n$(f.J.get())&&f.Y("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",void 0,void 0,void 0,D,Z?Z:void 0,void 0,F,D.adSlotLoggingData,Z?Z.adLayoutLoggingData:void 0)}; IN=function(f,D,F,Z,I){f.Y("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Z,I,void 0,void 0,Z.adSlotLoggingData,I?I.adLayoutLoggingData:void 0,{errorType:D,errorMessage:F})}; b$d=function(f,D){if(D){var F=D.adLayoutLoggingData;g.Yj(g.f0(),function(){f.B!=null&&F&&g.ha("adsSeenClientLogging",{serializedAdServingDataEntry:F.serializedAdServingDataEntry})},0)}}; NB=function(f,D,F){uU.call(this,f,D);this.mI=f;this.QT=F}; g5=function(){this.Y=new Map}; eZ=function(f){this.Y="pending";this.J=[];this.B=[];try{f(this.G.bind(this),this.reject.bind(this))}catch(D){this.reject(D)}}; MUw=function(){var f,D;return{g7:new eZ(function(F,Z){f=F;D=Z}), resolve:f,reject:D}}; Ok=function(f){return xR(f)?f:XZ(f)?new eZ(function(D,F){f.then(D,F)}):new eZ(function(D){D(f)})}; nI=function(f){return new eZ(function(D,F){F(f)})}; YR=function(f){try{return Ok(f())}catch(D){return nI(D)}}; f5=function(f,D,F){var Z=MUw(),I=Z.g7,p=Z.resolve,z=Z.reject;f.J.push(function(H){if(D)try{var K=D(H);p(K)}catch(k){z(k)}else p(H)}); f.B.push(function(H){if(F)try{var K=F(H);p(K)}catch(k){z(k)}else z(H)}); Pw(f);return I}; DP=function(f,D){return f5(f,void 0,D)}; tUu=function(f,D){f5(f,function(F){return f5(Ok(D()),function(){return F})},function(F){return f5(Ok(D()),function(){return nI(F)})})}; Pw=function(f){if(f.Y==="fulfilled"){var D=f.J;f.J=[];f.B=[];D=g.a(D);for(var F=D.next();!F.done;F=D.next())F=F.value,F(f.result)}else if(f.Y==="rejected")for(D=f.B,f.J=[],f.B=[],D=g.a(D),F=D.next();!F.done;F=D.next())F=F.value,F(f.error)}; FS=function(f,D){return SmD(D.call(f))}; ZP=function(f){return function F(){return iX(F,function(Z){if(Z.Y==1)return g.zc(Z,2),g.r(Z,{g7:Ok(f)},4);if(Z.Y!=2)return Z.return(Z.J);g.oU(Z);return g.Ko(Z,0)})}()}; SmD=function(f){return YR(function(){return IR(f,f.next())})}; IR=function(f,D){return D.done?Ok(D.value):DP(f5(D.value.g7,function(F){return IR(f,f.next(F))}),function(F){return IR(f,f.throw(F))})}; vVc=function(f){var D=c0a(f);return f5(UHD(D),function(){return D.map(function(F){return F.state()})})}; UHD=function(f){if(f.length===0)return Ok(NaN);var D=MUw(),F=D.g7,Z=D.resolve,I=f.length;f=g.a(f.entries());var p=f.next();for(D={};!p.done;D={Or:void 0},p=f.next()){var z=g.a(p.value);p=z.next().value;z=z.next().value;D.Or=p;tUu(z,function(H){return function(){F.Y==="pending"&&(aRE(void 0)&&(void 0)(H.Or)&&F.Y==="pending"?Z(H.Or):(--I,I===0&&Z(NaN)))}}(D))}return F}; c0a=function(f){return f.map(function(D){return Ok(D)})}; zN=function(f){var D=f.hours||0;var F=f.minutes||0,Z=f.seconds||0;D=Z+F*60+D*3600+(f.days||0)*86400+(f.weeks||0)*604800+(f.months||0)*2629800+(f.years||0)*31557600;D<=0?D={hours:0,minutes:0,seconds:0}:(f=D,D=Math.floor(f/3600),f%=3600,F=Math.floor(f/60),Z=Math.floor(f%60),D={hours:D,minutes:F,seconds:Z});var I=D.hours===void 0?0:D.hours;F=D.minutes===void 0?0:D.minutes;f=D.seconds===void 0?0:D.seconds;Z=I>0;D=[];if(Z){I=(new Intl.NumberFormat("en-u-nu-latn")).format(I);var p=["fr"],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(" "); I="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(p5)?I.replace(",","\u00a0"):p.includes(p5)?I.replace(",","\u202f"):z.includes(p5)?I.replace(",","."):I;D.push(I)}Z=Z===void 0?!1:Z;F=(["af","be","lt"].includes(p5)||Z)&&F<10?GbI().format(F):(new Intl.NumberFormat("en-u-nu-latn")).format(F);D.push(F);F=GbI().format(f);D.push(F);F=":";"da fi id si sr sr-Latn".split(" ").includes(p5)&&(F=".");return D.join(F)}; GbI=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; wfc=function(f,D){var F,Z;f=((F=f.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Z=F.videoAuthorizationToken)==null?void 0:Z.credentialTransferTokens)||[];for(F=0;FD;f=F}else f=!1;return f}; g.C5=function(f,D){return f.tJ+"timedtext_video?ref=player&v="+D.videoId}; g.zSc=function(f){var D=this;this.videoData=f;f={};this.Y=(f.c1a=function(){var F=[];if(g.ds.isInitialized()){var Z="";D.videoData&&D.videoData.MN&&(Z=D.videoData.MN+("&r1b="+D.videoData.clientPlaybackNonce));var I={};Z=(I.atr_challenge=Z,I);Wk("bg_v",void 0,"player_att");(Z=pCa(Z))?(Wk("bg_s",void 0,"player_att"),F.push("r1a="+Z)):(Wk("bg_e",void 0,"player_att"),F.push("r1c=2"))}else Wk("bg_e",void 0,"player_att"),window.trayride||window.botguard?F.push("r1c=1"):F.push("r1c=4");F.push("r1d="+g.ds.getState()); return F.join("&")},f.c6a=function(F){return"r6a="+(Number(F.c)^Z2())},f.c6b=function(F){return"r6b="+(Number(F.c)^Number(g.nc("CATSTAT",0)))},f); this.videoData&&this.videoData.MN?this.GR=iy(this.videoData.MN):this.GR={}}; g.sND=function(f){if(f.videoData&&f.videoData.MN){for(var D=[f.videoData.MN],F=g.a(Object.keys(f.Y)),Z=F.next();!Z.done;Z=F.next())Z=Z.value,f.GR[Z]&&f.Y[Z]&&(Z=f.Y[Z](f.GR))&&D.push(Z);return D.join("&")}return null}; g.m9=function(f,D){Itw(f,{xzY:g.Pf(D.experiments,"bg_vm_reinit_threshold"),cspNonce:D.cspNonce,tJ:D.tJ||""})}; qxu=function(){var f=XMLHttpRequest.prototype.fetch;return!!f&&f.length===3}; o1X=function(f){HnT=2592E3*(f||1)}; KDs=function(f){g.w0("yt-player-bandwidth",f,2592E3)}; TN=function(f){f=f===void 0?HnT:f;if(f>0&&!(mWX()>(0,g.m5)()-f*1E3))return 0;f=g.W6("yt-player-quality");if(typeof f==="string"){if(f=g.t9[f],f>0)return f}else if(f instanceof Object)return f.quality;return 0}; b9=function(){var f=g.W6("yt-player-proxima-pref");return f==null?null:f}; kqD=function(){var f=g.W6("yt-player-quality");if(f instanceof Object&&f.quality&&f.previousQuality){if(f.quality>f.previousQuality)return 1;if(f.quality0&&D[0]?f.getAutoplayPolicy(D[0]):f.getAutoplayPolicy("mediaelement");if(RSd[F])return RSd[F]}}catch(Z){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; var ocu=function(f,D,F,Z,I){return QdE[q[16]](this,1,f,D,F,Z,I)}; aR=function(f){return f.BI||f.qe||f.mutedAutoplay}; dhD=function(f,D){return aR(f)?D!==1&&D!==2&&D!==0?"AUTOPLAY_STATUS_UNAVAILABLE":f.xw?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; QNd=function(f,D,F){var Z=D.j();f.thirdParty||(f.thirdParty={});f.thirdParty=Object.assign({},f.thirdParty,{embedUrl:Z.loaderUrl});Z.ancestorOrigins&&(f.thirdParty.embeddedPlayerContext=Object.assign({},f.thirdParty.embeddedPlayerContext,{ancestorOrigins:Z.ancestorOrigins}));Z.Jv!=null&&(f.thirdParty.embeddedPlayerContext=Object.assign({},f.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Z.Jv)}));Z.BL&&(f.thirdParty.embeddedPlayerContext=Object.assign({},f.thirdParty.embeddedPlayerContext, {visibilityFractionSource:Z.BL}));f.thirdParty.embeddedPlayerContext=Object.assign({},f.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:vh(),autoplayIntended:aR(D),autoplayStatus:dhD(D,F)})}; Cvy=function(f){var D=[];f=g.a(f.split(","));for(var F=f.next();!F.done;F=f.next()){var Z=F.value;Z&&((F=Z.startsWith("!"))&&(Z=Z.substring(1)),Z=Z.split("-"),Z.length<3||D.push({ZG:Z[0],platform:Z[1],deviceVersion:Z[2],Dd:F}))}return D}; bnc=function(f){return Cvy(f).map(function(D){return{deviceInterface:mhJ[TAs[D.ZG]]||0,deviceVersion:D.deviceVersion||"",isSleeping:D.Dd}})}; g.GN=function(f,D){this.id=f;this.dw=D;this.captionTracks=[];this.B=this.G=null;this.xtags="";this.T=this.X=!1;this.Y=null;this.J="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";f=this.dw.id.split(".");f.length>1&&(this.X=f[1]==="2",this.T=f[1]==="4")}; ws=function(f,D,F,Z,I){this.J=f;this.Y=D;this.B=F;this.reason=Z;this.Eq=I===void 0?0:I}; g.Wh=function(f,D,F,Z){return new ws(g.t9[f]||0,g.t9[D]||0,F,Z)}; rs=function(f){if(Bh&&f.Eq)return!1;var D=g.t9.auto;return f.J===D&&f.Y===D}; l9=function(f){return L5[f.Y||f.J]||"auto"}; MoD=function(f,D){D=g.t9[D];return f.J<=D&&(!f.Y||f.Y>=D)}; Ef=function(f,D,F,Z){this.videoInfos=f;this.Y=D;this.audioTracks=[];this.J=Z||[];if(this.Y){f=new Set;F==null||F({ainfolen:this.Y.length});D=g.a(this.Y);for(Z=D.next();!Z.done;Z=D.next())if(Z=Z.value,!Z.dw||f.has(Z.dw.id)){var I=void 0,p=void 0,z=void 0;(z=F)==null||z({atkerr:!!Z.dw,itag:Z.itag,xtag:Z.Y,lang:((I=Z.dw)==null?void 0:I.name)||"",langid:((p=Z.dw)==null?void 0:p.id)||""})}else I=new g.GN(Z.id,Z.dw),f.add(Z.dw.id),this.audioTracks.push(I);F==null||F({atklen:this.audioTracks.length})}}; J4=function(){g.J.apply(this,arguments);this.J=null;this.Y=new Map}; v1E=function(f,D,F,Z,I,p,z){if(f.J)return f.J;var H={},K=new Set,k={};if(u9(Z)){for(var h in Z.Y)Z.Y.hasOwnProperty(h)&&(f=Z.Y[h],k[f.info.qR]=[f.info]);return k}h=toD(D,Z,H);p&&I({aftsrt:N9(h)});for(var y={},A=g.a(Object.keys(h)),V=A.next();!V.done;V=A.next()){V=V.value;for(var R=g.a(h[V]),m=R.next();!m.done;m=R.next()){m=m.value;var b=m.itag,U=Sxw(V,m,D);if(y.hasOwnProperty(U))y[U]===!0?k[V].push(m):H[b]=y[U];else{var S=gs(D,m,F,Z.isLive,K);S!==!0?(z.add(V),H[b]=S,S==="disablevp9hfr"&&(y[U]="disablevp9hfr")): (k[V]=k[V]||[],k[V].push(m),y[U]=!0)}}}p&&I({bfflt:N9(k)});for(var G in k)k.hasOwnProperty(G)&&(Z=G,k[Z]&&k[Z][0].fK()&&(k[Z]=k[Z],k[Z]=cma(D,k[Z],H),k[Z]=UhX(k[Z],H)));p&&Object.keys(H).length>0&&I({rjr:Ip(H)});D=g.a(K.values());for(Z=D.next();!Z.done;Z=D.next())(Z=F.B.get(Z.value))&&--Z.Of;p&&I({aftflt:N9(k)});f.J=g.$J(k,function(W){return!!W.length}); return f.J}; GqD=function(f,D,F,Z,I,p,z,H){H=H===void 0?!1:H;if(D.K4&&z&&z.length>1&&!(D.QZ>0||D.N)){for(var K=D.Y||!!I,k=K&&D.qb?p:void 0,h=toD(D,Z),y=[],A=[],V={},R=0;R0&&R&&A&&(h=[z,f],W=A.concat(R).filter(function(u){return u})); if(W.length&&!D.Br){XS(W,h);if(K){K=[];D=g.a(W);for(Z=D.next();!Z.done;Z=D.next())K.push(Z.value.itag);p({hbdfmt:K.join(".")})}return wo(new Ef(W,I,k,F))}W=NAc(D);W=g.NC(W,H);if(!W){if(y[z])return p=y[z],XS(p),wo(new Ef(p,I,k,F));K&&p({novideo:1});return Gr()}D.OI&&(W==="1"||W==="1h")&&y[f]&&(z=Of(y[W]),h=Of(y[f]),h>z?W=f:h===z&&g1s(y[f])&&(W=f));W==="9"&&y.h&&Of(y.h)>Of(y["9"])&&(W="h");D.Z5&&Z.isLive&&W==="("&&y.H&&Of(y["("])<1440&&(W="H");K&&p({vfmly:n5(W)});D=y[W];if(!D.length)return K&&p({novfmly:n5(W)}), Gr();XS(D);return wo(new Ef(D,I,k,F))}; Jmy=function(f,D,F){var Z,I=((Z=F.video)==null?void 0:Z.fps)||0;Z=D+"_"+I;var p=!!F.audio,z=f.Y.get(Z);a:{var H=f.Y.get(Z),K=!!F.audio;if(H){if(K){var k=!1;break a}var h;if(!K&&((k=F.video)==null?0:k.height)&&H.maxHeight&&H.maxHeight>=((h=F.video)==null?void 0:h.height)){k=!1;break a}}k=!0}k&&(k=F.itag,D=z?z:{itag:k,qR:D,E6:p},p?D.numChannels=F.audio.numChannels:(p=F.video,D.maxWidth=p==null?void 0:p.width,D.maxHeight=p==null?void 0:p.height,D.maxFramerate=I,D.maxBitrateBps=F.Eq*8,D.To=p==null?void 0: p.isHdr()),f.Y.set(Z,D))}; x9=function(f){for(var D=[],F=g.a(f.Y.keys()),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=f.Y.get(Z);D.push(Z+"_"+I.maxWidth+"_"+I.maxHeight)}return D.join(".")}; WDd=function(f,D){var F=!(!f.m&&!f.M),Z=!(!f.mac3&&!f.MAC3),I=!(!f.meac3&&!f.MEAC3);f=!(!f.i&&!f.I);D.Gi=f;return F||Z||I||f}; g1s=function(f){f=g.a(f);for(var D=f.next();!D.done;D=f.next())if(D=D.value,D.itag&&eSX.has(D.itag))return!0;return!1}; rmD=function(f){f=g.a(f);for(var D=f.next();!D.done;D=f.next())if(D.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; n5=function(f){switch(f){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return f}}; Sxw=function(f,D,F){var Z,I,p;return F.qz?f+"_"+Number((Z=D.video)==null?void 0:Z.fps)+"_"+!((I=D.audio)==null||!I.J):f+"_"+(((p=D.video)==null?void 0:p.fps)||0)}; N9=function(f){var D=[],F;for(F in f)if(f.hasOwnProperty(F)){var Z=F;D.push(n5(Z));Z=g.a(f[Z]);for(var I=Z.next();!I.done;I=Z.next())D.push(I.value.itag)}return D.join(".")}; wCI=function(f,D,F,Z,I,p){var z={},H={};g.Ga(D,function(K,k){K=K.filter(function(h){var y=h.itag;if(!h.Sp)return H[y]="noenc",!1;if(p.AN&&h.qR==="(h"&&p.Uq)return H[y]="lichdr",!1;if(!f.G&&h.qR==="1e")return H[y]="noav1enc",!1;if(h.qR==="("||h.qR==="(h"){if(f.J&&F&&F.flavor==="widevine"){var A=h.mimeType+"; experimental=allowed";(A=!!h.Sp[F.flavor]&&!!F.Y[A])||(H[y]=h.Sp[F.flavor]?"unspt":"noflv");return A}if(!Y9(f,Ph.CRYPTOBLOCKFORMAT)&&!f.zx||f.KQ)return H[y]=f.KQ?"disvp":"vpsub",!1}return F&&h.Sp[F.flavor]&& F.Y[h.mimeType]?!0:(H[y]=F?h.Sp[F.flavor]?"unspt":"noflv":"nosys",!1)}); K.length&&(z[k]=K)}); Z&&Object.entries(H).length&&I({rjr:Ip(H)});return z}; UhX=function(f,D){var F=SQ(f,function(Z,I){return I.video.fps>32?Math.min(Z,I.video.width):Z},Infinity); F32||Z.video.widthf.T)return"max"+f.T;if(f.JN&&D.qR==="h"&&D.video&&D.video.qualityOrdinal>1080)return"blkhigh264";if(D.qR==="(h"&&!F.T)return"enchdr";if((Z===void 0?0:Z)&&o4E(D)&&!f.dY)return"blk51live";if((D.qR==="MAC3"||D.qR==="mac3")&&!f.G)return"blkac3";if((D.qR==="MEAC3"||D.qR==="meac3")&&!f.X)return"blkeac3";if(D.qR==="M"||D.qR==="m")return"blkaac51"; if((D.qR==="so"||D.qR==="sa")&&!f.Bs)return"blkamb";if(!f.AN&&HbE(D)&&(!F.G||D.qR!=="1e"))return"cbc";if(!F.G&&HbE(D)&&D.qR==="1e")return"cbcav1";if((D.qR==="i"||D.qR==="I")&&!f.m9)return"blkiamf";var p;if(f.gw&&((p=D.audio)==null?void 0:p.J)===!0)return"blkvbcabr";var z,H;if(f.b3&&(D.qR==="1"||D.qR==="1h"||F.G&&D.qR==="1e")&&((z=D.video)==null?0:z.qualityOrdinal)&&((H=D.video)==null?void 0:H.qualityOrdinal)>f.b3)return"av1cap";Z=F.B.get(D.qR);if(!f.Wk&&Z&&Z.Of>0)return I.add(D.qR),"byerr";var K; if((K=D.video)==null?0:K.fps>32){if(!F.xo&&!Y9(F,Ph.FRAMERATE))return"capHfr";if(f.eT&&D.video.qualityOrdinal>=4320)return"blk8khfr";if(GI(D)&&f.Fd&&D.Sp&&D.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(f.Eq&&D.Eq>f.Eq)return"ratecap";if(f.xo>0&&D.fK()&&D.video.height>f.xo)return"mvhcap";f=xha(F,D);return f!==!0?f:!0}; XS=function(f,D){D=D===void 0?[]:D;g.kJ(f,function(F,Z){var I=Z.Eq-F.Eq;if(!F.fK()||!Z.fK())return I;var p=Z.video.height*Z.video.width-F.video.height*F.video.width;!p&&D&&D.length>0&&(F=D.indexOf(F.qR)+1,Z=D.indexOf(Z.qR)+1,p=F===0||Z===0?Z||-1:F-Z);p||(p=I);return p})}; fH=function(f,D,F,Z,I,p,z,H,K){this.Ws=f;this.startTime=D;this.duration=F;this.ingestionTime=Z;this.sourceURL=I;this.Xd=K;this.endTime=D+F;this.Y=z||0;this.range=p||null;this.pending=H||!1;this.Xd=K||null}; g.DQ=function(){this.segments=[];this.Y=null;this.J=!0;this.B=""}; XCE=function(f,D){if(D>f.eU())f.segments=[];else{var F=uX(f.segments,function(Z){return Z.Ws>=D},f); F>0&&f.segments.splice(0,F)}}; FV=function(f,D,F,Z,I){I=I===void 0?!1:I;this.data=f;this.offset=D;this.size=F;this.type=Z;this.Y=(this.J=I)?0:8;this.dataOffset=this.offset+this.Y}; ZQ=function(f){var D=f.data.getUint8(f.offset+f.Y);f.Y+=1;return D}; If=function(f){var D=f.data.getUint16(f.offset+f.Y);f.Y+=2;return D}; pH=function(f){var D=f.data.getInt32(f.offset+f.Y);f.Y+=4;return D}; zk=function(f){var D=f.data.getUint32(f.offset+f.Y);f.Y+=4;return D}; s6=function(f){var D=f.data;var F=f.offset+f.Y;D=D.getUint32(F)*4294967296+D.getUint32(F+4);f.Y+=8;return D}; qu=function(f,D){D=D===void 0?NaN:D;if(isNaN(D))var F=f.size;else for(F=f.Y;F1?Math.ceil(I*D):Math.floor(I*D))}f.skip(1);F=ZQ(f)<<16|If(f);if(F&256){Z=F&1;I=F&4;var p=F&512,z=F&1024,H=F&2048;F=zk(f);Z&&f.skip(4);I&&f.skip(4);Z=(p?4:0)+(z?4:0)+(H?4:0);for(I=0;I1?Math.ceil(z*D):Math.floor(z*D)),f.skip(Z)}}}; y1=function(f){f=new DataView(f.buffer,f.byteOffset,f.byteLength);return(f=g.iY(f,0,1836476516))?g.hR(f):NaN}; smy=function(f){var D=g.iY(f,0,1937011556);if(!D)return null;D=AR(f,D.dataOffset+8,1635148593)||AR(f,D.dataOffset+8,1635135537);if(!D)return null;var F=AR(f,D.dataOffset+78,1936995172),Z=AR(f,D.dataOffset+78,1937126244);if(!Z)return null;D=null;if(F)switch(F.skip(4),ZQ(F)){default:D=0;break;case 1:D=2;break;case 2:D=1;break;case 3:D=255}var I=F=null,p=null;if(Z=AR(f,Z.dataOffset,1886547818)){var z=AR(f,Z.dataOffset,1886546020),H=AR(f,Z.dataOffset,2037673328);if(!H&&(H=AR(f,Z.dataOffset,1836279920), !H))return null;z&&(z.skip(4),F=pH(z)/65536,p=pH(z)/65536,I=pH(z)/65536);f=Onf(H);f=new DataView(f.buffer,f.byteOffset+8,f.byteLength-8);return new p7c(D,F,p,I,f)}return null}; AR=function(f,D,F){for(;$I(f,D);){var Z=V1(f,D);if(Z.type===F)return Z;D+=Z.size}return null}; g.iY=function(f,D,F){for(;$I(f,D);){var Z=V1(f,D);if(Z.type===F)return Z;D=Rf(Z.type)?D+8:D+Z.size}return null}; g.dV=function(f){if(f.data.getUint8(f.dataOffset)){var D=f.data;f=f.dataOffset+4;D=D.getUint32(f)*4294967296+D.getUint32(f+4)}else D=f.data.getUint32(f.dataOffset+4);return D}; V1=function(f,D){var F=f.getUint32(D),Z=f.getUint32(D+4);return new FV(f,D,F,Z)}; g.hR=function(f){var D=f.data.getUint8(f.dataOffset)?20:12;return f.data.getUint32(f.dataOffset+D)}; qLJ=function(f){f=new FV(f.data,f.offset,f.size,f.type,f.J);var D=ZQ(f);f.skip(7);var F=zk(f);if(D===0){D=zk(f);var Z=zk(f)}else D=s6(f),Z=s6(f);f.skip(2);for(var I=If(f),p=[],z=[],H=0;H122)return!1}return!0}; Rf=function(f){return f===1701082227||f===1836019558||f===1836019574||f===1835297121||f===1835626086||f===1937007212||f===1953653094||f===1953653099||f===1836475768}; HJD=function(f){f.skip(4);return{NBF:qu(f,0),value:qu(f,0),timescale:zk(f),hgI:zk(f),eventDuration:zk(f),id:zk(f),Q4:qu(f),offset:f.offset}}; g.oTX=function(f){var D=AR(f,0,1701671783);if(!D)return null;var F=HJD(D),Z=F.NBF;F=j2(F.Q4);if(f=AR(f,D.offset+D.size,1701671783))if(f=HJD(f),f=j2(f.Q4),F&&f){D=g.a(Object.keys(f));for(var I=D.next();!I.done;I=D.next())I=I.value,F[I]=f[I]}return F?new kI(F,Z):null}; Q1=function(f,D){for(var F=AR(f,0,D);F;){var Z=F;Z.type=1936419184;Z.data.setUint32(Z.offset+4,1936419184);F=AR(f,F.offset+F.size,D)}}; g.CH=function(f,D){for(var F=0,Z=[];$I(f,F);){var I=V1(f,F);I.type===D&&Z.push(I);F=Rf(I.type)?F+8:F+I.size}return Z}; Kdc=function(f,D){var F=g.iY(f,0,1937011556),Z=g.iY(f,0,1953654136);if(!F||!Z||f.getUint32(F.offset+12)>=2)return null;var I=new DataView(D.buffer,D.byteOffset,D.length),p=g.iY(I,0,1937011556);if(!p)return null;D=I.getUint32(p.dataOffset+8);Z=I.getUint32(p.dataOffset+12);if(Z!==1701733217&&Z!==1701733238)return null;Z=new n1D(f.byteLength+D);HX(Z,f,0,F.offset+12);Z.data.setInt32(Z.offset,2);Z.offset+=4;HX(Z,f,F.offset+16,F.size-16);HX(Z,I,I.byteOffset+p.dataOffset+8,D);HX(Z,f,F.offset+F.size,f.byteLength- (F.offset+F.size));F=g.a([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(I=F.next();!I.done;I=F.next())I=g.iY(f,0,I.value),Z.data.setUint32(I.offset,I.size+D);f=g.iY(Z.data,0,1953654136);Z.data.setUint32(f.offset+16,2);return Z.data}; kla=function(f){var D=g.iY(f,0,1937011556);if(!D)return null;var F=f.getUint32(D.dataOffset+12);if(F!==1701733217&&F!==1701733238)return null;D=AR(f,D.offset+24+(F===1701733217?28:78),1936289382);if(!D)return null;F=AR(f,D.offset+8,1935894637);if(!F||f.getUint32(F.offset+12)!==1667392371)return null;D=AR(f,D.offset+8,1935894633);if(!D)return null;D=AR(f,D.offset+8,1952804451);if(!D)return null;F=new Uint8Array(16);for(var Z=0;Z<16;Z++)F[Z]=f.getInt8(D.offset+16+Z);return F}; mm=function(f,D){this.Y=f;this.pos=0;this.start=D||0}; Tk=function(f){return f.pos>=f.Y.byteLength}; cX=function(f,D,F){var Z=new mm(F);if(!bY(Z,f))return!1;Z=Mu(Z);if(!tR(Z,D))return!1;for(f=0;D;)D>>>=8,f++;D=Z.start+Z.pos;var I=S2(Z,!0);Z=f+(Z.start+Z.pos-D)+I;Z=Z>9?jmu(Z-9,8):jmu(Z-2,1);f=D-f;F.setUint8(f++,236);for(D=0;DF;I++)F=F*256+wV(f),Z*=128;return D?F-Z:F}; vX=function(f){var D=S2(f,!0);f.pos+=D}; yuI=function(f){if(!tR(f,440786851,!0))return null;var D=f.pos;S2(f,!1);var F=S2(f,!0)+f.pos-D;f.pos=D+F;if(!tR(f,408125543,!1))return null;S2(f,!0);if(!tR(f,357149030,!0))return null;var Z=f.pos;S2(f,!1);var I=S2(f,!0)+f.pos-Z;f.pos=Z+I;if(!tR(f,374648427,!0))return null;var p=f.pos;S2(f,!1);var z=S2(f,!0)+f.pos-p,H=new Uint8Array(F+12+I+z),K=new DataView(H.buffer);H.set(new Uint8Array(f.Y.buffer,f.Y.byteOffset+D,F));K.setUint32(F,408125543);K.setUint32(F+4,33554431);K.setUint32(F+8,4294967295); H.set(new Uint8Array(f.Y.buffer,f.Y.byteOffset+Z,I),F+12);H.set(new Uint8Array(f.Y.buffer,f.Y.byteOffset+p,z),F+12+I);return H}; WX=function(f){var D=f.pos;f.pos=0;var F=1E6;bY(f,[408125543,357149030,2807729])&&(F=U6(f));f.pos=D;return F}; AuE=function(f,D){var F=f.pos;f.pos=0;if(f.Y.getUint8(f.pos)!==160&&!BX(f)||!tR(f,160))return f.pos=F,NaN;S2(f,!0);var Z=f.pos;if(!tR(f,161))return f.pos=F,NaN;S2(f,!0);wV(f);var I=wV(f)<<8|wV(f);f.pos=Z;if(!tR(f,155))return f.pos=F,NaN;Z=U6(f);f.pos=F;return(I+Z)*D/1E9}; BX=function(f){if(!$$c(f)||!tR(f,524531317))return!1;S2(f,!0);return!0}; $$c=function(f){if(f.wv()){if(!tR(f,408125543))return!1;S2(f,!0)}return!0}; bY=function(f,D){for(var F=0;F0){var Z=AI(14,D.substring(F+1));g.Ga(Z,function(I,p){this.set(p,I)},f); D=D.substring(0,F)}D=pf(23,D);g.Ga(D,function(I,p){this.set(p,I)},f)}; RQu=function(f){var D=f.sG.M7(),F=[];g.Ga(f.Y,function(I,p){F.push(p+"="+I)}); if(!F.length)return D;var Z=F.join("&");f=sJ(18,f.sG)?"&":"?";return D+f+Z}; LH=function(f,D){var F=new g.Cf(D);(D=F.get("req_id"))&&f.set("req_id",D);g.Ga(f.Y,function(Z,I){F["set"](I,null)}); return F}; d$E=function(){this.G=this.B=this.Y=this.timedOut=this.started=this.X=this.J=0}; lY=function(f){f.X=(0,g.m5)();f.started=0;f.timedOut=0;f.Y=0}; E6=function(f,D){var F=f.started+f.Y*4;D&&(F+=f.B);F=Math.max(0,F-3);return Math.pow(1.6,F)}; JR=function(f,D){f[D]||(f[D]=new d$E);return f[D]}; uY=function(f){this.Jb=this.S=this.X=this.B=0;this.N=this.T=!1;this.Y=f;this.J=f.clone()}; QmD=function(f,D,F){if(sJ(1,f.Y))return!1;var Z=JR(F,hI(63,f.Y));if(Z.timedOut<1&&Z.Y<1)return!1;Z=Z.timedOut+Z.Y;f=Nu(f,D);F=JR(F,hI(61,f));return F.timedOut+F.Y+01?D=D.ZpQ:(F=JR(F,e2(f,f.m2(D,F),D)),D=Math.max(f.X,F.timedOut)+D.DZ*(f.B-f.X)+.25*f.S,D=D>3?1E3*Math.pow(1.6,D-3):0);return D===0?!0:f.Jb+D<(0,g.m5)()}; C$J=function(f,D,F){f.Y.set(D,F);f.J.set(D,F);f.G&&f.G.set(D,F)}; m$E=function(f,D,F,Z,I){++f.B;D&&++f.X;hI(62,F.sG).startsWith("redirector.")&&(f.Y=f.J.clone(),delete f.G,Z.MU&&delete I[hI(58,f.Y)])}; XV=function(f){return f?(f.itag||"")+";"+(f.lmt||0)+";"+(f.xtags||""):""}; O6=function(f,D,F,Z){this.initRange=F;this.indexRange=Z;this.Y=null;this.B=!1;this.T=0;this.G=this.Kk=this.J=null;this.info=D;this.T3=new uY(f)}; nH=function(f,D){return XV(g.NJ(f.info,D))}; YI=function(f,D){this.start=f;this.end=D;this.length=D-f+1}; PX=function(f){f=f.split("-");var D=Number(f[0]),F=Number(f[1]);if(!isNaN(D)&&!isNaN(F)&&f.length===2&&(f=new YI(D,F),!isNaN(f.start)&&!isNaN(f.end)&&!isNaN(f.length)&&f.length>0))return f}; fh=function(f,D){return new YI(f,f+D-1)}; T7a=function(f){return f.end==null?{start:String(f.start)}:{start:String(f.start),end:String(f.end)}}; DD=function(f){if(!f)return new YI(0,0);var D=Number(f.start);f=Number(f.end);if(!isNaN(D)&&!isNaN(f)&&(D=new YI(D,f),D.length>0))return D}; FY=function(f,D,F,Z,I,p,z,H,K,k,h,y){Z=Z===void 0?"":Z;this.type=f;this.XF=D;this.range=F;this.source=Z;this.E3=h;this.clipId=y===void 0?"":y;this.N=[];this.T="";this.Ws=-1;this.Jb=0;this.T=Z;this.Ws=I>=0?I:-1;this.startTime=p||0;this.duration=z||0;this.Y=H||0;this.J=K>=0?K:this.range?this.range.length:NaN;this.B=this.range?this.Y+this.J===this.range.length:k===void 0?!!this.J:k;this.range?(this.G=this.startTime+this.duration*this.Y/this.range.length,this.S=this.duration*this.J/this.range.length, this.X=this.G+this.S):bJX(this)}; var zDD=function(f,D,F,Z,I,p){return AI[q[16]](this,2,f,D,F,Z,I,p)}; bJX=function(f){f.G=f.startTime;f.S=f.duration;f.X=f.G+f.S}; MSD=function(f,D,F){var Z=!(!D||D.XF!==f.XF||D.type!==f.type||D.Ws!==f.Ws);return F?Z&&!!D&&(f.range&&D.range?D.range.end===f.range.end:D.range===f.range)&&D.Y+D.J===f.Y+f.J:Z}; ZD=function(f){return f.type===1||f.type===2}; IA=function(f){return f.type===3||f.type===6}; ph=function(f,D){return f.XF===D.XF?f.range&&D.range?f.range.start+f.Y+f.J===D.range.start+D.Y:f.Ws===D.Ws?f.Y+f.J===D.Y:f.Ws+1===D.Ws&&D.Y===0&&f.B:!1}; SLX=function(f,D){return f.Ws!==D.Ws&&D.Ws!==f.Ws+1||f.type!==D.type?!1:ph(f,D)?!0:Math.abs(f.G-D.G)<=1E-6&&f.Ws===D.Ws?!1:tSc(f,D)}; tSc=function(f,D){return ph(f,D)||Math.abs(f.X-D.G)<=1E-6||f.Ws+1===D.Ws&&D.Y===0&&f.B?!0:!1}; zV=function(f){return f.Ws+(f.B?1:0)}; cuy=function(f){f.length===1||g.tG(f,function(F){return!!F.range}); for(var D=1;D=D.range.start+D.Y&&f.range.start+f.Y+f.J<=D.range.start+D.Y+D.J:f.Ws===D.Ws&&f.Y>=D.Y&&(f.Y+f.J<=D.Y+D.J||D.B)}; B7a=function(f,D){return f.XF!==D.XF?!1:f.type===4&&D.type===3&&f.XF.IP()?(f=f.XF.ul(f),PV(f,function(F){return B7a(F,D)})):f.Ws===D.Ws&&!!D.J&&D.Y+D.J>f.Y&&D.Y+D.J<=f.Y+f.J}; qx=function(f,D){var F=D.Ws;f.T="updateWithSegmentInfo";f.Ws=F;if(f.startTime!==D.startTime||f.duration!==D.duration)f.startTime=D.startTime,f.duration=D.duration,bJX(f)}; HT=function(f,D){var F=this;this.tb=f;this.G=this.Y=null;this.X=this.Zo=NaN;this.m2=this.requestId=null;this.ej={qPR:function(){return F.range}}; this.T3=f[0].XF.T3;this.J=D||"";this.tb[0].range&&this.tb[0].J>0&&(U$u(f)?(this.range=cuy(f),this.B=this.range.length):(this.range=this.tb[this.tb.length-1].range,this.B=vTD(f)))}; oA=function(f){return!ZD(f.tb[f.tb.length-1])}; Kh=function(f){return f.tb[f.tb.length-1].type===4}; g.kC=function(f,D,F){F=f.m2===null?f.T3.m2(D,F,f.tb[0].type):f.m2;if(f.Y){D=F?Ta(17,f.Y,D.X_):f.Y;var Z=new rV(D);Z.get("alr")||Z.set("alr","yes");f.J&&VSu(Z,f.J)}else/http[s]?:\/\//.test(f.J)?Z=new rV(new g.Cf(f.J)):(Z=gV(f.T3,F,D),f.J&&VSu(Z,f.J));(D=f.range)?Z.set("range",D.toString()):f.tb[0].XF.B0()&&f.tb.length===1&&f.tb[0].Y&&Z.set("range",f.tb[0].Y+"-");f.requestId&&Z.set("req_id",f.requestId);isNaN(f.Zo)||Z.set("headm",f.Zo.toString());isNaN(f.X)||Z.set("mffa",f.X+"ms");f.urlParams&&g.Ga(f.urlParams, function(I,p){Z.set(p,I)}); return Z}; ruw=function(f){if(f.range)return f.B;f=f.tb[0];return Math.round(f.S*f.XF.info.Eq)}; Ldy=function(f,D){return Math.max(0,f.tb[0].G-D)}; lJc=function(f,D){f=g.a(f.tb);for(var F=f.next();!F.done;F=f.next())if(F=F.value,F.type===3&&D>=F.G&&D<=F.X)return!0;return!1}; jY=function(f,D,F,Z,I,p){p=p===void 0?0:p;O6.call(this,f,D,Z,void 0);this.X=F;this.x3=p;this.index=I||new g.DQ}; ETX=function(f,D,F,Z,I){this.Ws=f;this.startSecs=D;this.I$=F;this.Y=Z||NaN;this.J=I||NaN}; iQ=function(f,D,F){for(;f;f=f.parentNode)if(f.attributes&&(!F||f.nodeName===F)){var Z=f.getAttribute(D);if(Z)return Z}return""}; hq=function(f,D){for(;f;f=f.parentNode){var F=f.getElementsByTagName(D);if(F.length>0)return F[0]}return null}; Juy=function(f){if(!f)return 0;var D=f.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return D?(Number(D[2])|0)*3600+(Number(D[4])|0)*60+(Number(D[6])|0):Number(f)|0}; u8a=function(f){return f.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?f+"Z":f}; yk=function(){this.Y=[];this.J=null;this.T=0;this.B=[];this.X=!1;this.S="";this.G=-1}; N7E=function(f){var D=f.B;f.B=[];return D}; gTd=function(){this.G=[];this.Y=null;this.J={};this.B={}}; OJc=function(f,D){var F=[];D=Array.from(D.getElementsByTagName("SegmentTimeline"));D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next()){Z=Z.value;var I=Z.parentNode.parentNode,p=null;I.nodeName==="Period"?p=eQX(f):I.nodeName==="AdaptationSet"?(I=I.getAttribute("id")||I.getAttribute("mimetype")||"",p=x$D(f,I)):I.nodeName==="Representation"&&(I=I.getAttribute("id")||"",p=X7E(f,I));if(p==null)return;p.update(Z);g.Z0(F,N7E(p))}g.Z0(f.G,F);YJa(f.G,function(z){return z.startSecs*1E3+z.Y})}; nTJ=function(f){f.Y&&(f.Y.Y=[]);g.Ga(f.J,function(D){D.Y=[]}); g.Ga(f.B,function(D){D.Y=[]})}; eQX=function(f){f.Y||(f.Y=new yk);return f.Y}; x$D=function(f,D){f.J[D]||(f.J[D]=new yk);return f.J[D]}; X7E=function(f,D){f.B[D]||(f.B[D]=new yk);return f.B[D]}; $C=function(f){var D=f===void 0?{}:f;f=D.x3===void 0?0:D.x3;var F=D.mV===void 0?!1:D.mV;var Z=D.NN===void 0?0:D.NN;var I=D.Ca===void 0?0:D.Ca;var p=D.hJ===void 0?Infinity:D.hJ;var z=D.AK===void 0?0:D.AK;var H=D.rU===void 0?!1:D.rU;D=D.nu===void 0?!1:D.nu;g.DQ.call(this);this.Sy=this.TX=-1;this.j$=f;this.NN=Z;this.mV=F;this.Ca=I;this.hJ=p;this.AK=z;((this.rU=H)||isFinite(p)&&this.hJ>0)&&F&&Aq&&(this.J=!1,this.B="postLive");this.nu=D}; Vk=function(f,D){return Ks(f.segments,function(F){return D-F.Ws})}; RA=function(f,D,F){F=F===void 0?{}:F;jY.call(this,f,D,"",void 0,void 0,F.x3||0);this.index=new $C(F)}; dq=function(f,D,F){O6.call(this,f,D);this.X=F;f=this.index=new g.DQ;f.J=!1;f.B="d"}; YLX=function(f,D,F){var Z=f.index.BN(D),I=f.index.getStartTime(D),p=f.index.getDuration(D);F?p=F=0:F=f.info.Eq*p;return new HT([new FY(3,f,void 0,"otfCreateRequestInfoForSegment",D,I,p,0,F)],Z)}; P$d=function(f,D){if(!f.index.isLoaded()){var F=[],Z=D.G;D=D.X.split(",").filter(function(h){return h.length>0}); for(var I=0,p=0,z=0,H=/^(\d+)/,K=/r=(\d+)/,k=0;k0&&(I.Y=Math.min(I.Y+z,10),I.J=p);I.Y>0?(I.Y--,I=!0):I=!1;if(I)typeof Z==="function"&&(Z=Z()),console.log("plyr."+D,Z);else{var H;Z=((H=piD.get(D))!=null?H:0)+1;piD.set(D,Z);Z%100===1&&console.warn("plyr","plyr."+D+" is chatty, dropping logs.")}}}; Ipd=function(){this.Y=10;this.J=Date.now()}; mC=function(f,D){this.info=f;this.J=D;this.Y=null;this.G=this.B=-1;this.timestampOffset=0;this.isLocked=this.T=!1;this.X=this.info.XF.Q2()&&!this.info.Y}; g.TV=function(f){return mcT(f.J)}; zjs=function(f,D){D=Math.min(D,f.info.J);var F=f.J.split(D),Z=F.R6;F=new mC(new FY(f.info.type,f.info.XF,f.info.range,f.info.T,f.info.Ws,f.info.startTime,f.info.duration,f.info.Y,D,!1,f.info.E3,f.info.clipId),F.CV);F.G=f.G;F.B=f.B;D=new mC(new FY(f.info.type,f.info.XF,f.info.range,f.info.T,f.info.Ws,f.info.startTime,f.info.duration,f.info.Y+D,f.info.J-D,f.info.B,f.info.E3,f.info.clipId),Z);D.G=f.G;D.B=f.B;return[F,D]}; g.bQ=function(f,D,F,Z){F=F===void 0?!1:F;Z=Z===void 0?0:Z;if(f.isLocked||D.isLocked||!ph(f.info,D.info)||f.info.B)return null;if(Z){if(f.J.totalLength+D.J.totalLength>Z)return null}else if(F&&(F=f.J,Z=D.J,F=!(Z.Y.length?QSy(F,Z.Y[0]):1)),F)return null;F=new FY(f.info.type,f.info.XF,f.info.range,f.info.T,f.info.Ws,f.info.startTime,f.info.duration,f.info.Y,f.info.J,f.info.B,f.info.E3,f.info.clipId);Z=D.info;F.J+=Z.J;F.range&&(F.S+=Z.S);F.X=Z.X;F.B=Z.B;Z=new K6;kl(Z,f.J);kl(Z,D.J);F=new mC(F,Z);F.Y!= null&&D.Y!=null&&g.Ch("dash",414627957,"merged slice emsg overridden; prev: "+F.Y.Rd()+" next: "+D.Y.Rd());F.Y=D.Y||f.Y;F.B=f.B!==-1?f.B:D.B;F.G=f.G!==-1?f.G:D.G;return F}; g.Mx=function(f){g.Lx(f.info.XF.info)||f.info.XF.info.x_();if(f.B!==-1)return f.B;if(f.Y&&fJu(f.Y))return f.B=fJu(f.Y),f.B;if(g.Lx(f.info.XF.info)){var D=g.TV(f);for(var F=f.info.XF.Y,Z=NaN,I=NaN,p=0;$I(D,p);){var z=V1(D,p);z.type===1936286840?I=z.data.getUint32(z.dataOffset+8):z.type===1836476516?I=g.hR(z):z.type===1952867444&&isNaN(Z)&&(Z=g.dV(z));p=Rf(z.type)?p+8:p+z.size}!I&&F&&(I=y1(F));D=Z/I}else D=new mm(g.TV(f)),F=f.X?D:new mm(new DataView(f.info.XF.Y.buffer)),Z=WX(F),F=D.pos,D.pos=0,BX(D)? tR(D,231)?(Z=U6(D)*Z/1E9,D.pos=F,D=Z):(D.pos=F,D=NaN):(D.pos=F,D=NaN);f.B=D||f.info.G;return f.B}; q_c=function(f,D){f.timestampOffset>0&&(D-=f.timestampOffset);var F=g.Mx(f)+D;spu(f,F);f.timestampOffset=D}; spu=function(f,D){g.Lx(f.info.XF.info)||f.info.XF.info.x_();f.B=D;if(g.Lx(f.info.XF.info)){var F=g.TV(f);f=f.info.XF.Y;for(var Z=NaN,I=NaN,p=0;$I(F,p);){var z=V1(F,p);isNaN(Z)&&(z.type===1936286840?Z=z.data.getUint32(z.dataOffset+8):z.type===1836476516&&(Z=g.hR(z)));if(z.type===1952867444){!Z&&f&&(Z=y1(f));var H=g.dV(z);isNaN(I)&&(I=Math.round(D*Z)-H);var K=z;H+=I;if(K.data.getUint8(K.dataOffset)){var k=K.data;K=K.dataOffset+4;k.setUint32(K,Math.floor(H/4294967296));k.setUint32(K+4,H&4294967295)}else K.data.setUint32(K.dataOffset+ 4,H)}p=Rf(z.type)?p+8:p+z.size}return!0}F=new mm(g.TV(f));f=f.X?F:new mm(new DataView(f.info.XF.Y.buffer));Z=WX(f);f=F.pos;F.pos=0;if(BX(F)&&tR(F,231))if(I=S2(F,!0),D=Math.floor(D*1E9/Z),Math.ceil(Math.log(D)/Math.log(2)/8)>I)D=!1;else{for(Z=I-1;Z>=0;Z--)F.Y.setUint8(F.pos+Z,D&255),D>>>=8;F.pos=f;D=!0}else D=!1;return D}; SY=function(f,D){D=D===void 0?!1:D;var F=tq(f);f=D?0:f.info.S;return F||f}; tq=function(f){g.Lx(f.info.XF.info)||f.info.XF.info.x_();if(f.Y&&f.info.type===6)return f.Y.x3;if(g.Lx(f.info.XF.info)){var D=g.TV(f);var F=0;D=g.CH(D,1936286840);D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next())Z=qLJ(Z.value),F+=Z.w1[0]/Z.timescale;F=F||NaN;if(!(F>=0))a:{F=g.TV(f);D=f.info.XF.Y;for(var I=Z=0,p=0;$I(F,Z);){var z=V1(F,Z);if(z.type===1836476516)I=g.hR(z);else if(z.type===1836019558){!I&&D&&(I=y1(D));if(!I){F=NaN;break a}var H=AR(z.data,z.dataOffset,1953653094),K=H;H=I;var k=AR(K.data, K.dataOffset,1952868452);K=AR(K.data,K.dataOffset,1953658222);var h=pH(k);pH(k);h&2&&pH(k);k=h&8?pH(k):0;var y=pH(K),A=y&1;h=y&4;var V=y&256,R=y&512,m=y&1024;y&=2048;var b=zk(K);A&&pH(K);h&&pH(K);for(var U=A=0;U2048?"":D.indexOf("https://")===0?D:""}; wq=function(f,D,F){D.match(Vxa);return f(D,F).then(function(Z){var I=g.$JI(Z.xhr);return I?wq(f,I,F):Z.xhr})}; Lh=function(f,D,F){f=f===void 0?"":f;D=D===void 0?null:D;F=F===void 0?!1:F;g.zu.call(this);var Z=this;this.sourceUrl=f;this.isLivePlayback=F;this.dY=this.duration=0;this.isPremiere=this.rU=this.G=this.isLiveHeadPlayable=this.isLive=this.J=!1;this.hJ=this.Ca=0;this.isOtf=this.jj=!1;this.Ir=(0,g.m5)();this.KQ=Infinity;this.Y={};this.B=new Map;this.state=this.Qz=0;this.S=null;this.isManifestless=!1;this.zx=[];this.X=null;this.Tx=0;this.T="";this.rY=NaN;this.O3=this.DF=this.timestampOffset=this.N=0;this.OL= this.ZC=NaN;this.vC=0;this.jT=this.Bs=!1;this.Ps=[];this.LQ={};this.b3=this.xo=NaN;this.ej={sur:function(H){WT(Z,H)}}; var I;this.eT=(I=D)==null?void 0:I.Hs("html5_use_network_error_code_enums");Rju=!!D&&D.Hs("html5_modern_vp9_mime_type");var p;BT=!((p=D)==null||!p.Hs("html5_enable_flush_during_seek"))&&g.xo();var z;rq=!((z=D)==null||!z.Hs("html5_enable_reset_audio_decoder"))&&g.xo()}; dJu=function(f){return g.Kf(f.Y,function(D){return!!D.info.video&&D.info.video.qualityOrdinal>=2160})}; ucd=function(f){return g.Kf(f.Y,function(D){return!!D.info.video&&D.info.video.isHdr()})}; eh=function(f){return g.Kf(f.Y,function(D){return!!D.info.Sp})}; g.Qpu=function(f){return g.Kf(f.Y,function(D){return xY(D.info.mimeType)})}; Cau=function(f){return g.Kf(f.Y,function(D){return D.info.video?D.info.video.projectionType==="EQUIRECTANGULAR":!1})}; mJa=function(f){return g.Kf(f.Y,function(D){return D.info.video?D.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Tjd=function(f){return g.Kf(f.Y,function(D){return D.info.video?D.info.video.projectionType==="MESH":!1})}; bxE=function(f){return g.Kf(f.Y,function(D){return D.info.video?D.info.video.stereoLayout===1:!1})}; MxE=function(f){return Zou(f.Y,function(D){return D.info.video?D.Kx():!0})}; u9=function(f){return g.Kf(f.Y,function(D){return sJ(7,D.T3.Y)})}; WT=function(f,D){f.Y[D.info.id]=D;f.B.set(nH(D,f.jj),D)}; Jq=function(f,D,F){F=F===void 0?0:F;var Z=f.mimeType||"",I=f.itag;var p=f.xtags;I=I?I.toString():"";p&&(I+=";"+p);p=I;if(ex(Z)){var z=f.width||640;I=f.height||360;var H=f.fps,K=f.qualityLabel,k=f.qualityOrdinal,h=f.colorInfo,y=f.projectionType,A;f.stereoLayout&&(A=txX[f.stereoLayout]);var V=y9f(f)||void 0;if(h==null?0:h.primaries)var R=S_D[h.primaries]||void 0;z=new Sx(z,I,H,y,A,void 0,K,k&&c9D[k],V,R);Z=lQ(Z,z,vi[f.itag||""]);BT&&(Z+="; enableflushduringseek=true");rq&&(Z+="; enableresetaudiodecoder=true")}var m; if(gj(Z)){var b=f.audioSampleRate;A=f.audioTrack;b=new h9(b?+b:void 0,f.audioChannels,f.spatialAudioType,f.isDrc,f.loudnessDb,f.trackAbsoluteLoudnessLkfs,f.audioQuality||"AUDIO_QUALITY_UNKNOWN",f.isVb);A&&(R=A.displayName,I=A.id,H=A.audioIsDefault,A=A.isAutoDubbed,R&&(m=new g.GV(R,I||"",!!H,!!A)))}var U;f.captionTrack&&(K=f.captionTrack,A=K.displayName,R=K.vssId,I=K.languageCode,H=K.kind,K=K.id,A&&R&&I&&(U=new ixT(A,R,I,H,f.xtags,K)));A=Number(f.bitrate)/8;R=Number(f.contentLength);I=Number(f.lastModified); K=f.drmFamilies;H=f.type;F=F&&R?R/F:0;f=Number(f.approxDurationMs);if(D&&K){var S={};K=g.a(K);for(k=K.next();!k.done;k=K.next())(k=E$[k.value])&&(S[k]=D[k])}return new ap(p,Z,{audio:b,video:z,dw:m,Sp:S,Eq:A,mx:F,contentLength:R,lastModified:I,captionTrack:U,streamType:H,approxDurationMs:f})}; uQ=function(f,D,F){F=F===void 0?0:F;var Z=f.type;var I=f.itag;var p=f.xtags;p&&(I=f.itag+";"+p);if(ex(Z)){var z=(f.size||"640x360").split("x");z=new Sx(+z[0],+z[1],+f.fps,f.projection_type,+f.stereo_layout,void 0,f.quality_label,+f.quality_ordinal,f.eotf,f.primaries);Z=lQ(Z,z,vi[f.itag]);BT&&(Z+="; enableflushduringseek=true");rq&&(Z+="; enableresetaudiodecoder=true")}var H;if(gj(Z)){var K=new h9(+f.audio_sample_rate||void 0,+f.audio_channels||0,f.spatial_audio_type,!!f.drc);f.name&&(H=new g.GV(f.name, f.audio_track_id,f.isDefault==="1",f.isAutoDubbed==="1"))}var k;f.caption_display_name&&f.caption_vss_id&&f.caption_language_code&&(k=new ixT(f.caption_display_name,f.caption_vss_id,f.caption_language_code,f.caption_kind,f.xtags,f.caption_id));p=Number(f.bitrate)/8;var h=Number(f.clen),y=Number(f.lmt);F=F&&h?h/F:0;if(D&&f.drm_families){var A={};for(var V=g.a(f.drm_families.split(",")),R=V.next();!R.done;R=V.next())R=R.value,A[R]=D[R]}return new ap(I,Z,{audio:K,video:z,dw:H,Sp:A,Eq:p,mx:F,contentLength:h, lastModified:y,captionTrack:k,streamType:f.stream_type,approxDurationMs:Number(f.approx_duration_ms)})}; UJw=function(f){return PV(f,function(D){return"FORMAT_STREAM_TYPE_OTF"===D.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; vYX=function(f){return PV(f,function(D){return"FORMAT_STREAM_TYPE_OTF"===D.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; apy=function(f,D){return f.S?ps(f.S.G,D):f.zx.length?ps(f.zx,D):[]}; Nx=function(f,D,F){D=D===void 0?"":D;F=F===void 0?"":F;f=new g.Cf(f,!0);f.set("alr","yes");F&&(F=yX(6,decodeURIComponent(F)),f[q[15]](D,encodeURIComponent(F)));return f}; Bju=function(f,D){var F=iQ(D,"id");F=F.replace(":",";");var Z=iQ(D,"mimeType"),I=iQ(D,"codecs");Z=I?Z+'; codecs="'+I+'"':Z;I=Number(iQ(D,"bandwidth"))/8;var p=Number(hq(D,"BaseURL").getAttribute(f.T+":contentLength")),z=f.duration&&p?p/f.duration:0;if(ex(Z)){var H=Number(iQ(D,"width"));var K=Number(iQ(D,"height")),k=Number(iQ(D,"frameRate")),h=GId(iQ(D,f.T+":projectionType"));a:switch(iQ(D,f.T+":stereoLayout")){case "layout_left_right":var y=1;break a;case "layout_top_bottom":y=2;break a;default:y= 0}H=new Sx(H,K,k,h,y)}if(gj(Z)){var A=Number(iQ(D,"audioSamplingRate"));var V=Number(iQ(D.getElementsByTagName("AudioChannelConfiguration")[0],"value"));K=wic(iQ(D,f.T+":spatialAudioType"));A=new h9(A,V,K);a:{V=iQ(D,"lang")||"und";if(K=hq(D,"Role"))if(h=iQ(K,"value")||"",g.ma(Wru,h)){K=V+"."+Wru[h];k=h==="main";f=iQ(D,f.T+":langName")||V+" - "+h;V=new g.GV(f,K,k);break a}V=void 0}}if(D=hq(D,"ContentProtection"))if(D.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var R={};for(D= D.firstChild;D!=null;D=D.nextSibling)D instanceof Element&&/SystemURL/.test(D.nodeName)&&(f=D.getAttribute("type"),K=D.textContent,f&&K&&(R[f]=K.trim()))}else R=void 0;return new ap(F,Z,{audio:A,video:H,dw:V,Sp:R,Eq:I,mx:z,contentLength:p})}; GId=function(f){switch(f){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"}}; wic=function(f){switch(f){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"}}; Lrs=function(f,D){D=D===void 0?"":D;f.state=1;f.Ir=(0,g.m5)();return A9E(D||f.sourceUrl).then(function(F){if(!f.MR()){f.Qz=F.status;F=F.responseText;var Z=new DOMParser;F=LW(Z,hca(F),"text/xml").getElementsByTagName("MPD")[0];f.KQ=Juy(iQ(F,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(F.attributes){Z=g.a(F.attributes);for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,I.value==="http://youtube.com/yt/2012/10/10"){Z=I.name.split(":")[1];break b}}Z=""}f.T=Z;f.isLive=f.KQ=f.KQ}; r9E=function(f){var D=f.KQ;isFinite(D)&&(gq(f)?f.refresh():(D=Math.max(0,f.Ir+D-(0,g.m5)()),f.X||(f.X=new g.xX(f.refresh,D,f),g.N(f,f.X)),f.X.start(D)))}; EYs=function(f){f=f.Y;for(var D in f){var F=f[D].index;if(F.isLoaded())return F.eU()+1}return 0}; eY=function(f){return f.DF?f.DF-(f.N||f.timestampOffset):0}; xC=function(f){return f.O3?f.O3-(f.N||f.timestampOffset):0}; XY=function(f){if(!isNaN(f.rY))return f.rY;var D=f.Y,F;for(F in D){var Z=D[F].index;if(Z.isLoaded()&&!xY(D[F].info.mimeType)){D=0;for(F=Z.Fc();F<=Z.eU();F++)D+=Z.getDuration(F);D/=Z.tR();D=Math.round(D/.5)*.5;Z.tR()>10&&(f.rY=D);return D}if(f.isLive&&(Z=D[F],Z.x3))return Z.x3}return NaN}; J9a=function(f,D){f=peu(f.Y,function(Z){return Z.index.isLoaded()}); if(!f)return NaN;f=f.index;var F=f.Kw(D);return f.getStartTime(F)===D?D:F=0&&I.segments.splice(p,1)}}}; Njf=function(f){for(var D in f.Y)xY(f.Y[D].info.mimeType)||XCE(f.Y[D].index,Infinity)}; YC=function(f,D,F){for(var Z in f.Y){var I=f.Y[Z].index,p=D,z=F;I.mV&&(p&&(I.TX=Math.max(I.TX,p)),z&&(I.Sy=Math.max(I.Sy||0,z)))}F&&(f.xo=F/1E3)}; gYD=function(f,D,F,Z){Z!==void 0&&Z&&F===f.b3||(f.zx.push(D),f.b3=F,f.publish("cuepointsadded",F))}; ejJ=function(f){f.O3=0;f.DF=0;f.vC=0}; PT=function(f){return f.jT&&f.isManifestless?f.isLiveHeadPlayable:f.isLive}; lQ=function(f,D,F){fM===null&&(fM=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(Rju&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return fM||F!=="9"&&F!=="("?fM||F!=="9h"&&F!=="(h"||(f='video/webm; codecs="vp9.2"'):f='video/webm; codecs="vp9"',f;if(!fM&&!Df||f!=='video/webm; codecs="vp9"'&&f!=='video/webm; codecs="vp9.2"')return f; F="00";var Z="08",I="01",p="01",z="01";f==='video/webm; codecs="vp9.2"'&&(F="02",Z="10",D.primaries==="bt2020"&&(z=I="09"),D.Y==="smpte2084"&&(p="16"),D.Y==="arib-std-b67"&&(p="18"));return'video/webm; codecs="'+["vp09",F,"51",Z,"01",I,p,z,"00"].join(".")+'"'}; Zf=function(f,D,F){f=""+f+(D>49?"p60":D>32?"p48":"");D=M9()[f];if(D!=null&&D>0)return D;D=F1.get(f);if(D!=null&&D>0)return D;F=F==null?void 0:F.get(f);return F!=null&&F>0?F:8192}; Oxa=function(f){this.Uy=f;this.WI=this.Br=this.Ir=this.X=this.G=this.zx=this.LQ=this.Bs=!1;this.S=this.T=0;this.JN=!1;this.KQ=!0;this.eT=!1;this.QZ=0;this.hV=this.Tx=!1;this.OI=!0;this.Ps=this.dY=!1;this.J={};this.Wk=this.gw=this.Xt=this.disableAv1=this.Uq=this.Gi=this.G3=this.Z5=this.Y=this.N=!1;this.xo=0;this.Zx=this.Uy.Z("html5_disable_aac_preference");this.BI=Infinity;this.rY=0;this.qb=this.Uy.Oq();this.AN=this.Uy.experiments.Hs("html5_enable_vp9_fairplay");this.HD=this.Uy.Z("html5_force_av1_for_testing"); this.Y_=this.Uy.ww().Y.Kp(xJa);this.b3=g.Pf(this.Uy.experiments,"html5_av1_ordinal_cap");this.Fd=this.Uy.Z("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.K4=this.Uy.Z("html5_account_onesie_format_selection_during_format_filter");this.Eq=g.Pf(this.Uy.experiments,"html5_max_byterate");this.m9=this.Uy.Z("html5_enable_iamf_audio");this.jT=this.Uy.experiments.Hs("html5_allow_capability_merge");this.qz=this.Uy.ww().Y.Kp(XiI);this.vI=this.Uy.Z("html5_enable_encrypted_av1")}; NAc=function(f){if(f.LQ)return["f"];if(g.go("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var D=["9h","9","h","8"];f.vI&&D.push("1e");D=D.concat(["(h","(","H","*"]);f.Tx&&(D.unshift("1"),D.unshift("1h"));f.Br&&D.unshift("h");f.Jb&&(D=(nYd[f.Jb]||[f.Jb]).concat(D));return D}; BAu=function(f){var D=["o","a","A"];f.rY===1&&(f.G&&(D=["mac3","MAC3"].concat(D)),f.X&&(D=["meac3","MEAC3"].concat(D)),f.m9&&(D=["i","I"].concat(D)));f.Bs&&(D=["so","sa"].concat(D));!f.WI||f.Ir||f.B||f.Zx||D.unshift("a");f.B&&(D=(nYd[f.B]||[f.B]).concat(D));return D}; Ir=function(f,D,F,Z){D=D===void 0?{}:D;if(Z===void 0?0:Z)return D.disabled=1,0;if(Y9(f.X,Ph.AV1_CODECS)&&Y9(f.X,Ph.HEIGHT)&&Y9(f.X,Ph.BITRATE))return D.isCapabilityUsable=1,8192;try{var I=Amf();if(I&&!f.Z("disable_av1_setting"))return D.localPref=I}catch(H){}Z=1080;I=navigator.hardwareConcurrency;I<=2&&(Z=480);D.coreCount=I;if(I=g.Pf(f.experiments,"html5_default_av1_threshold"))Z=D["default"]=I;if(f=f.X.Bs)D.mcap=f,Z=Math.max(Z,f);if(F){var p,z;if(f=(p=F.videoInfos.find(function(H){return Bi(H)}))== null?void 0:(z=p.J)==null?void 0:z.powerEfficient)Z=8192,D.isEfficient=1; F=F.videoInfos[0].video;p=Math.min(Zf("1",F.fps),Zf("1",30));D.perfCap=p;Z=Math.min(Z,p);F.isHdr()&&!f&&(D.hdr=1,Z*=.75)}else F=Zf("1",30),D.perfCap30=F,Z=Math.min(Z,F),F=Zf("1",60),D.perfCap60=F,Z=Math.min(Z,F);return D.av1Threshold=Z}; pM=function(f,D,F,Z){this.flavor=f;this.keySystem=D;this.J=F;this.experiments=Z;this.Y={};this.xq=this.keySystemAccess=null;this.FL=this.Nn=-1;this.IH=null;this.B=!!Z&&Z.Hs("edge_nonprefixed_eme");Z&&Z.Hs("html5_enable_vp9_fairplay")}; sp=function(f){return f.B?!1:!f.keySystemAccess&&!!z0()&&f.keySystem==="com.microsoft.playready"}; qF=function(f){return f.keySystem==="com.microsoft.playready"}; HL=function(f){return!f.keySystemAccess&&!!z0()&&f.keySystem==="com.apple.fps.1_0"}; or=function(f){return f.keySystem==="com.youtube.fairplay"}; KM=function(f){return f.keySystem==="com.youtube.fairplay.sbdl"}; g.kS=function(f){return f.flavor==="fairplay"}; z0=function(){var f=window,D=f.MSMediaKeys;nO()&&!D&&(D=f.WebKitMediaKeys);return D&&D.isTypeSupported?D:null}; il=function(f){return navigator.requestMediaKeySystemAccess?g.op&&!g.xo()?CY("45"):g.gt||g.ka?f.Hs("edge_nonprefixed_eme"):g.ji?CY("47"):g.yy&&f.Hs("html5_enable_safari_fairplay")?!1:!0:!1}; Y_T=function(f,D,F,Z){var I=Xm(),p=(F=I||F&&nO())?["com.youtube.fairplay"]:["com.widevine.alpha"];D&&p.unshift("com.youtube.widevine.l3");I&&Z&&p.unshift("com.youtube.fairplay.sbdl");return F?p:f?[].concat(g.w(p),g.w(hr.playready)):[].concat(g.w(hr.playready),g.w(p))}; y5=function(f,D,F,Z,I){Z=Z===void 0?!1:Z;g.J.call(this);this.Uy=D;this.useCobaltWidevine=Z;this.Gx=I;this.J=[];this.B={};this.Y={};this.callback=null;this.X=!1;this.G=[];this.initialize(f,!F)}; fTf=function(f,D){f.callback=D;f.G=[];il(f.Uy.experiments)?Ar(f):Pay(f)}; Ar=function(f){if(!f.MR())if(f.J.length===0)f.callback(f.G);else{var D=f.J[0],F=f.B[D],Z=Dqd(f,F);if($S&&$S.keySystem===D&&$S.SEy===JSON.stringify(Z))f.Gx("remksa",{re:!0}),FzT(f,F,$S.keySystemAccess);else{var I,p;f.Gx("remksa",{re:!1,ok:(p=(I=$S)==null?void 0:I.keySystem)!=null?p:""});$S=void 0;navigator.requestMediaKeySystemAccess(D,Z).then(q9(function(z){FzT(f,F,z,Z)}),q9(function(){f.X=!f.X&&f.B[f.J[0]].flavor==="widevine"; f.X||f.J.shift();Ar(f)}))}}}; FzT=function(f,D,F,Z){if(!f.MR()){Z&&($S={keySystem:D.keySystem,keySystemAccess:F,SEy:JSON.stringify(Z)});D.keySystemAccess=F;if(qF(D)){F=qJ();Z=g.a(Object.keys(f.Y[D.flavor]));for(var I=Z.next();!I.done;I=Z.next())I=I.value,D.Y[I]=!!F.canPlayType(I)}else{F=D.keySystemAccess.getConfiguration();if(F.audioCapabilities)for(Z=g.a(F.audioCapabilities),I=Z.next();!I.done;I=Z.next())D.Y[I.value.contentType]=!0;if(F.videoCapabilities)for(F=g.a(F.videoCapabilities),Z=F.next();!Z.done;Z=F.next())D.Y[Z.value.contentType]= !0}f.G.push(D);f.useCobaltWidevine||f.Z("html5_enable_vp9_fairplay")&&KM(D)?(f.J.shift(),Ar(f)):f.callback(f.G)}}; Dqd=function(f,D){var F={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(f.Z("html5_enable_vp9_fairplay")&&or(D))return F.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),F.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[F];qF(D)&&(F.initDataTypes=["keyids","cenc"]);for(var Z=g.a(Object.keys(f.Y[D.flavor])),I=Z.next();!I.done;I=Z.next()){I=I.value;var p=I.indexOf("audio/")===0,z=p?F.audioCapabilities:F.videoCapabilities;D.flavor!== "widevine"||f.X?z.push({contentType:I}):p?z.push({contentType:I,robustness:"SW_SECURE_CRYPTO"}):(g.op&&g.go("windows nt")&&!f.Z("html5_drm_enable_moho")||z.push({contentType:I,robustness:"HW_SECURE_ALL"}),p=I,f.Uy.X.J&&I.includes("vp09")&&(p=I+"; experimental=allowed"),z.push({contentType:p,robustness:"SW_SECURE_DECODE"}),V5(f.Uy)==="MWEB"&&(Z8()||et())&&(f.Gx("swcrypto",{}),z.push({contentType:I,robustness:"SW_SECURE_CRYPTO"})))}return[F]}; Pay=function(f){if(z0()&&(g.yy||PR))f.G.push(new pM("fairplay","com.apple.fps.1_0","",f.Uy.experiments));else{var D=Ziy(),F=g.NC(f.J,function(Z){var I=f.B[Z],p=!1,z=!1,H;for(H in f.Y[I.flavor])D(H,Z)&&(I.Y[H]=!0,p=p||H.indexOf("audio/")===0,z=z||H.indexOf("video/")===0);return p&&z}); F&&f.G.push(f.B[F]);f.J=[]}f.callback(f.G)}; Ziy=function(){var f=z0();if(f){var D=f.isTypeSupported;return function(Z,I){return D(I,Z)}}var F=qJ(); return F&&(F.addKey||F.webkitAddKey)?function(Z,I){return!!F.canPlayType(Z,I)}:function(){return!1}}; Rr=function(f){var D;f=ZK((D=f.serializedClientExperimentFlags)!=null?D:"","&");this.flags=new Map(Object.entries(f).map(function(F){var Z=g.a(F);F=Z.next().value;Z=Z.next().value;return typeof Z==="string"?[F,Z]:[F,Z[0]]}))}; sKI=function(f,D){switch(D.Bx){case "bool":return f.Hs(D.gb);case "int":return f=ITf(f,D.gb),o0(f);case "double":return ITf(f,D.gb);case "string":return pgd(f,D.gb);case "int32_list":return zHI(f,D.gb);case "int64_list":return zHI(f,D.gb).map(function(F){return o0(F)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; ITf=function(f,D){f=f.flags.get(""+D);return Number(f)||0}; zHI=function(f,D){if(f=f.flags.get(""+D))if(f=f.replace(/\[ *(.*?) *\]/,"$1"))return f.split(",").map(Number);return[]}; pgd=function(f,D){return(f=f.flags.get(""+D))?f.toString():""}; dk=function(f,D,F){this.Y=void 0;this.experimentIds=f?f.split(","):[];this.flags=ZK(D||"","&");f={};D=g.a(this.experimentIds);for(var Z=D.next();!Z.done;Z=D.next())f[Z.value]=!0;this.experiments=f;F=new Rr(F);this.B=new UkT(F);this.J=new c6D(F)}; g.Pf=function(f,D,F){F=F===void 0?0:F;f=f.Kp(D);JSON.stringify(f);return f===void 0?F:Number(f)}; Q5=function(f,D){return(f=f.Kp(D))?f.toString():""}; q9s=function(f){if(f=f.Kp("html5_web_po_experiment_ids"))if(f=f.replace(/\[ *(.*?) *\]/,"$1"))return f.split(",").map(Number);return[]}; HiJ=function(f){if(f.Y)return f.Y;if(f.experimentIds.length<=1)return f.Y=f.experimentIds,f.Y;var D=[].concat(g.w(f.experimentIds)).map(function(Z){return Number(Z)}); D.sort();for(var F=D.length-1;F>0;--F)D[F]-=D[F-1];f.Y=D.map(function(Z){return Z.toString()}); f.Y.unshift("v1");return f.Y}; Kzd=function(f){return oPX.then(f)}; CM=function(f,D,F){this.experiments=f;this.xo=D;this.zx=F===void 0?!1:F;this.N=!!g.QY("cast.receiver.platform.canDisplayType");this.S={};this.Jb=!1;this.B=new Map;this.T=!0;this.Y=this.J=!1;this.Bs=0;this.KQ=this.experiments.Hs("html5_disable_vp9_encrypted");this.G=this.experiments.Hs("html5_enable_encrypted_av1");f=g.QY("cast.receiver.platform.getValue");this.X=!this.N&&f&&f("max-video-resolution-vpx")||null;kBu(this);this.J=!!(Xm()&&N1()>=21)}; xha=function(f,D,F){F=F===void 0?1:F;var Z=D.itag;if(Z==="0")return!0;var I=D.mimeType;if(D.qR==="1e"&&!f.G)return"dav1enc";if(Bi(D)&&f.Jb)return"dav1";if(D.video&&(D.video.isHdr()||D.video.primaries==="bt2020")&&!(Y9(f,Ph.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(Z==="338"&&!(g.op?CY(53):g.ji&&CY(64)))return"dopus";var p=F;p=p===void 0?1: p;F={};D.video&&(D.video.width&&(F[Ph.WIDTH.name]=D.video.width),D.video.height&&(F[Ph.HEIGHT.name]=D.video.height),D.video.fps&&(F[Ph.FRAMERATE.name]=D.video.fps*p),D.video.Y&&(F[Ph.EOTF.name]=D.video.Y),D.Eq&&(F[Ph.BITRATE.name]=D.Eq*8*p),D.qR==="("&&(F[Ph.CRYPTOBLOCKFORMAT.name]="subsample"),D.video.projectionType==="EQUIRECTANGULAR"||D.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||D.video.projectionType==="MESH")&&(F[Ph.DECODETOTEXTURE.name]="true");var z;((z=D.audio)==null?0:z.numChannels)&& D.qR!=="i"&&D.qR!=="I"&&(F[Ph.CHANNELS.name]=D.audio.numChannels);f.J&&GI(D)&&(F[Ph.EXPERIMENTAL.name]="allowed");z=g.a(Object.keys(Ph));for(p=z.next();!p.done;p=z.next()){p=Ph[p.value];var H;if(H=F[p.name])if(H=!(p===Ph.EOTF&&D.mimeType.indexOf("vp09.02")>0)){H=p;var K=D;H=!(f.experiments.Hs("html5_ignore_h264_framerate_cap")&&H===Ph.FRAMERATE&&qKJ(K))}if(H)if(Y9(f,p))if(f.X){if(f.X[p.name]1080&&D.Sp&&(I+="; hdcp=2.2");return Z==="227"?"hqcenc":Z!=="585"&&Z!=="588"&&Z!=="583"&&Z!=="586"&&Z!=="584"&&Z!=="587"&&Z!=="591"&&Z!=="592"||f.experiments.Hs("html5_enable_new_hvc_enc")?Xm()&&N1()>=21&&g.go("appletv5")&&(Z==="410"||Z==="845")?!0:f.isTypeSupported(I)?!0:"tpus":"newhvc"}; m0=function(){var f=et()&&!CY(29),D=g.go("google tv")&&g.go("chrome")&&!CY(30);return f||D?!1:Ki()}; jKs=function(f,D,F){var Z=480;D=g.a(D);for(var I=D.next();!I.done;I=D.next()){I=I.value;var p=I.video.qualityOrdinal;p<=1080&&p>Z&&xha(f,I,F)===!0&&(Z=p)}return Z}; g.T0=function(f,D){D=D===void 0?!1:D;return m0()&&f.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!D&&f.canPlayType(qJ(),"application/x-mpegURL")?!0:!1}; hHE=function(f){iiy(function(){for(var D=g.a(Object.keys(Ph)),F=D.next();!F.done;F=D.next())Y9(f,Ph[F.value])})}; Y9=function(f,D){D.name in f.S||(f.S[D.name]=yJE(f,D));return f.S[D.name]}; yJE=function(f,D){if(f.X)return!!f.X[D.name];if(D===Ph.BITRATE&&f.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!f.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(D===Ph.AV1_CODECS)return f.isTypeSupported("video/mp4; codecs="+D.valid)&&!f.isTypeSupported("video/mp4; codecs="+D.Iv);if(D.video){var F='video/webm; codecs="vp9"';f.isTypeSupported(F)||(F='video/mp4; codecs="avc1.4d401e"')}else F='audio/webm; codecs="opus"', f.isTypeSupported(F)||(F='audio/mp4; codecs="mp4a.40.2"');return f.isTypeSupported(F+"; "+D.name+"="+D.valid)&&!f.isTypeSupported(F+"; "+D.name+"="+D.Iv)}; AJI=function(f,D){var F=0;f.B.has(D)&&(F=f.B.get(D).zW);f.B.set(D,{zW:F+1,Of:Math.pow(2,F+1)});f.Y=!0}; LDD=function(f,D){for(var F=new Map,Z=g.a(D.keys()),I=Z.next();!I.done;I=Z.next()){I=I.value;var p=I.split("_")[0];f.has(p)||F.set(I,D.get(I))}return F}; E1X=function(f,D,F){var Z,I=((Z=D.video)==null?void 0:Z.fps)||0;Z=f+"_"+I;var p=!!D.audio,z={itag:D.itag,qR:f,E6:p};if(p)z.numChannels=D.audio.numChannels;else{var H=D.video;z.maxWidth=H==null?void 0:H.width;z.maxHeight=H==null?void 0:H.height;z.maxFramerate=I;z.maxBitrateBps=D.Eq*8;z.To=H==null?void 0:H.isHdr()}H=F.get(Z);H?p||(D=Math.max(H.maxWidth||0,H.maxHeight||0)>Math.max(z.maxWidth||0,z.maxHeight||0)?H:z,f={itag:D.itag,qR:f,E6:p,maxWidth:Math.max(H.maxWidth||0,z.maxWidth||0),maxHeight:Math.max(H.maxHeight|| 0,z.maxHeight||0),maxFramerate:I,To:D.To},f.maxBitrateBps=D.maxBitrateBps,F.set(Z,f)):F.set(Z,z)}; kBu=function(f){var D;(D=navigator.mediaCapabilities)!=null&&D.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(F){F.smooth&&F.powerEfficient&&(f.Bs=2160)})}; bl=function(){g.zu.call(this);this.items={}}; MF=function(f,D){this.Y=f;this.cipher=this.Y.exports.AES128CTRCipher_create(D.byteOffset)}; Si=function(){this.J=this.Xm=0;this.Y=Array.from({length:tr.length}).fill(0)}; $qu=function(){}; VqD=function(){this.startTimeMs=(0,g.m5)();this.Y=!1}; RHI=function(){this.Y=new $qu}; dqf=function(f,D,F,Z){Z=Z===void 0?1:Z;F>=0&&(D in f.Y||(f.Y[D]=new Si),f.Y[D].Qg(F,Z))}; QKy=function(f,D,F,Z,I){var p=(0,g.m5)(),z=I?I(D):void 0,H;I=(H=z==null?void 0:z.Xm)!=null?H:1;if(I!==0){var K;H=(K=z==null?void 0:z.profile)!=null?K:F;dqf(f,H,p-Z,I)}return D}; C0y=function(f,D,F,Z,I){if(D&&typeof D==="object"){var p=function(z){return QKy(f,z,F,Z,I)}; if(XZ(D))return D.then(p);if(xR(D))return f5(D,p)}return QKy(f,D,F,Z,I)}; mqc=function(){}; Tus=function(f){var D=window;D.ywc||(D.ywc={});var F=D.ywc[f];if(F)return F;F={};return D.ywc[f]=F}; biu=function(f){var D=window;D.ywc&&delete D.ywc[f]}; MqD=function(f){var D=Tus(f);if(D.binP)return D.binP;D.binP=Promise.resolve().then(function(){return fetch(f)}).then(function(F){if(!F.ok)throw Error("HTTP"+F.statusText); return F.arrayBuffer()}); D.binP.then(function(F){D.bin=F},function(){biu(f)}); return D.binP}; cJD=function(f,D){return FS(tqf,function(){var F=this;return function I(){var p,z,H;return iX(I,function(K){switch(K.Y){case 1:g.zc(K,2);if(!F.Y)throw"wasm.ps.ns";p=f;z=yY;return Db(K,ZP(S9a(F,D)),4);case 4:H=z(K.J);if(!H)throw"wasm.ps.um";return Db(K,ZP(WebAssembly.instantiate(H,p)),5);case 5:return K.return(K.J);case 2:g.oU(K),g.Ko(K,0)}})}()})}; S9a=function(f,D){return FS(f,function(){var F=this;return function I(){var p,z,H,K,k,h,y,A,V;return iX(I,function(R){switch(R.Y){case 1:g.zc(R,2);p=[];z=function(){return"wasm.ps.c: ["+p.map(function(m){return'"'+m+'"'}).join(", ")+"]"}; H=Tus(D);if(H.mod)return R.return(H.mod);if(!H.modP){R.ZE(4);break}g.po(R,5);K=yY;return Db(R,ZP(H.modP),7);case 7:return R.return(K(R.J));case 5:g.He(R),p.unshift("pcm");case 4:if((k=H.bin)||!H.binP){R.ZE(8);break}g.po(R,9);h=yY;return Db(R,ZP(H.binP),11);case 11:k=h(R.J);g.qC(R,8);break;case 9:g.He(R),p.unshift("pfb");case 8:if(k){R.ZE(12);break}g.po(R,13);y=yY;return Db(R,ZP(MqD(D)),15);case 15:k=y(R.J);g.qC(R,12);break;case 13:throw g.He(R),F.Y=!1,p.unshift("fb"),z();case 12:return g.po(R,16), A=yY,Db(R,ZP(WebAssembly.compile(k)),18);case 18:return R.return(A(R.J));case 16:V=g.He(R),biu(D),p.unshift("ca: "+V);case 17:throw z();case 2:g.oU(R),g.Ko(R,0)}})}()})}; UqI=function(){}; vPX=function(){var f=this;this.proc_exit=function(){}; this.fd_write=function(D,F,Z){if(!f.exports)return 1;D=new Uint32Array(f.exports.memory.buffer,F,Z*2);F=[];for(var I=0;I0&&ul<=2.3;H=D?D.useNativeControls:f.use_native_controls;this.S=g.LM(this)&&this.J;K=this.J&&!this.S;H=g.NF(this)||!z&&zf(K,H)?"3":"1";this.disableOrganicUi=!(D==null||!D.disableOrganicUi);K=D?D.controlsType:f.controls;this.controlsType=this.disableOrganicUi||K==="0"||K===0?"0":H;this.b_=this.J;this.color=sg("red",D?D.progressBarColor:f.color,eHu);this.bH=this.controlsType==="3";this.gw=!this.G;this.TK=(H=!this.gw&& !Ep(this)&&!this.KQ&&!this.T&&!ll(this))&&!this.bH&&this.controlsType==="1";this.WI=g.gk(this)&&H&&this.controlsType==="0"&&!this.TK&&!(D==null?0:D.embedsEnableEmc3ds);this.qv=this.oE=z;this.BI=(this.controlsType==="3"||this.J||zf(!1,f.use_media_volume))&&!this.S;this.CG=PR&&!g.YZ(601)?!1:!0;this.kT=this.G||!1;this.JS=Ep(this)?"":(this.loaderUrl||f.post_message_origin||"").substring(0,128);this.widgetReferrer=H6("",D?D.widgetReferrer:f.widget_referrer);var k;D?D.disableCastApi&&(k=!1):k=f.enablecastapi; k=!this.N||zf(!0,k);z=!0;D&&D.disableMdxCast&&(z=!1);this.EW=this.Z("enable_cast_for_web_unplugged")&&g.ei(this)&&z||g.rQ(this)&&z||k&&z&&this.controlsType==="1"&&!this.J&&(Ep(this)||g.gk(this)||g.xS(this));this.bI=!!window.document.pictureInPictureEnabled||kY();k=D?!!D.supportsAutoplayOverride:zf(!1,f.autoplayoverride);this.sE=!(this.J&&!g.LM(this))&&!g.go("nintendo wiiu")||k;this.t6=(D?!!D.enableMutedAutoplay:zf(!1,f.mutedautoplay))&&!1;k=(Ep(this)||ll(this))&&this.playerStyle==="blazer";this.f7= D?!!D.disableFullscreen:!zf(!0,f.fs);z=g.jM(g.X1(this))&&g.LM(this);this.JN=!this.f7&&(k||g.d0())&&!z;this.Nc=this.Z("html5_picture_in_picture_logging_onresize");var h;this.PW=(h=g.Pf(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?h:.33;this.fH=this.Z("html5_picture_in_picture_blocking_onresize");this.uK=this.Z("html5_picture_in_picture_blocking_ontimeupdate");this.rJ=this.Z("html5_picture_in_picture_blocking_document_fullscreen");this.g$=this.Z("html5_picture_in_picture_blocking_standard_api"); h=et()&&CY(58)&&!Z8();k=NS||typeof MediaSource==="undefined";this.qA=this.Z("uniplayer_block_pip")&&(h||k)||this.fH||this.uK||this.g$;h=g.LM(this)&&!this.Ek;var y;D?D.disableRelatedVideos!==void 0&&(y=!D.disableRelatedVideos):y=f.rel;this.Xt=h||zf(!this.T,y);this.vO=zf(!1,D?D.enableContentOwnerRelatedVideos:f.co_rel);this.Jb=Z8()&&ul>0&&ul<=4.4?"_top":"_blank";this.Tm=g.xS(this);this.ey=zf(this.playerStyle==="blazer",D?D.enableCsiLogging:f.enablecsi);switch(this.playerStyle){case "blogger":y="bl"; break;case "discover-ads":y="dd";break;case "gmail":y="gm";break;case "gac":y="ga";break;case "ads-preview":y="ap";break;case "ads-fe":y="adfe";break;case "books":y="gb";break;case "docs":case "flix":y="gd";break;case "duo":y="gu";break;case "google-live":y="gl";break;case "google-one":y="go";break;case "play":case "play-ads":y="gp";break;case "chat":y="hc";break;case "hangouts-meet":y="hm";break;case "photos-edu":case "picasaweb":y="pw";break;default:y="yt"}this.Bs=y;this.zx=H6("",D?D.authorizedUserIndex: f.authuser);this.Wk=g.LM(this)&&(this.AN||!x4X()||this.dY);var A;D?D.disableWatchLater!==void 0&&(A=!D.disableWatchLater):A=f.showwatchlater;this.m9=((y=!this.Wk)||!!this.zx&&y)&&zf(!this.KQ,this.N?A:void 0);this.Fd=D?D.isMobileDevice||!!D.disableKeyboardControls:zf(!1,f.disablekb);this.loop=zf(!1,f.loop);this.pageId=H6("",D?D.initialDelegatedSessionId:f.pageid);this.Vp=zf(!0,f.canplaylive);this.DW=this.experiments.Hs("html5_lr_overwrite_default_audio_quality_setting")?1:2;this.HL=zf(!1,f.livemonitor); this.disableSharing=zf(this.T,D?D.disableSharing:f.ss);(A=D&&this.Z("fill_video_container_size_override_from_wpcc")?D.videoContainerOverride:f.video_container_override)?(y=A.split("x"),y.length!==2?A=null:(A=Number(y[0]),y=Number(y[1]),A=isNaN(A)||isNaN(y)||A*y<=0?null:new g.IG(A,y))):A=null;this.zK=A;this.mute=D?!!D.startMuted:zf(!1,f.mute);this.storeUserVolume=!this.mute&&zf(this.controlsType!=="0",D?D.storeUserVolume:f.store_user_volume);A=D?D.annotationsLoadPolicy:f.iv_load_policy;this.annotationsLoadPolicy= this.controlsType==="3"?3:sg(void 0,A,Op);this.captionsLanguagePreference=D?D.captionsLanguagePreference||"":H6("",f.cc_lang_pref);A=sg(2,D?D.captionsLanguageLoadPolicy:f.cc_load_policy,Op);this.controlsType==="3"&&A===2&&(A=3);this.FX=A;this.OI=D?D.hl||"en_US":H6("en_US",f.hl);this.region=D?D.contentRegion||"US":H6("US",f.cr);this.hostLanguage=D?D.hostLanguage||"en":H6("en",f.host_language);this.xT=!this.AN&&Math.random()=0&&f0&&f.My&&(Z.sort(),g.UT(new g.by("Player client parameters changed after startup",Z)));f.userAge=qP(f.userAge,D.user_age);f.Ye=H6(f.Ye,D.user_display_email);f.userDisplayImage=H6(f.userDisplayImage,D.user_display_image);g.Ln(f.userDisplayImage)||(f.userDisplayImage= "");f.userDisplayName=H6(f.userDisplayName,D.user_display_name);f.gM=H6(f.gM,D.user_gender);f.csiPageType=H6(f.csiPageType,D.csi_page_type);f.csiServiceName=H6(f.csiServiceName,D.csi_service_name);f.ey=zf(f.ey,D.enablecsi);f.pageId=H6(f.pageId,D.pageid);if(F=D.enabled_engage_types)f.enabledEngageTypes=new Set(F.split(","));D.living_room_session_po_token&&(f.KK=D.living_room_session_po_token.toString())}; D4=function(f,D){return!f.T&&et()&&CY(55)&&f.controlsType==="3"&&!D}; g.FT=function(f){f=nM(f.tJ);return f==="www.youtube-nocookie.com"?"www.youtube.com":f}; Z4=function(f,D,F){return f.protocol+"://i1.ytimg.com/vi/"+D+"/"+(F||"hqdefault.jpg")}; Ie=function(f){return Ep(f)&&!g.ei(f)}; g.NF=function(f){return f.Z("html5_local_playsinline")?PR&&!g.YZ(602)&&!("playsInline"in qJ()):PR&&!f.QY||g.go("nintendo wiiu")?!0:!1}; V5=function(f){return f.Y.c}; g.hm=function(f){return/^TVHTML5/.test(V5(f))}; pD=function(f){return V5(f)==="TVHTML5"}; EPd=function(f){return V5(f)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; Xgu=function(f){return f.Y.cmodel==="CHROMECAST ULTRA/STEAK"||f.Y.cmodel==="CHROMECAST/STEAK"}; g.z6=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; iv=function(f){return/web/i.test(V5(f))}; g.sn=function(f){return V5(f).toUpperCase()==="WEB"}; PL=function(f){return V5(f)==="WEB_KIDS"}; g.ei=function(f){return V5(f)==="WEB_UNPLUGGED"}; qO=function(f){return V5(f)==="TVHTML5_UNPLUGGED"}; g.jo=function(f){return g.ei(f)||V5(f)==="TV_UNPLUGGED_CAST"||qO(f)}; g.rQ=function(f){return V5(f)==="WEB_REMIX"}; g.HU=function(f){return V5(f)==="WEB_MUSIC_INTEGRATIONS"}; g.oe=function(f){return V5(f)==="WEB_EMBEDDED_PLAYER"}; g.k3=function(f){return(f.deviceIsAudioOnly||!g.op||NS||f.controlsType==="3"?!1:g.Fq?f.G&&g.YZ(51):!0)||(f.deviceIsAudioOnly||!g.ji||NS||f.controlsType==="3"?!1:g.Fq?f.G&&g.YZ(48):g.YZ(38))||(f.deviceIsAudioOnly||!g.BL||NS||f.controlsType==="3"?!1:g.Fq?f.G&&g.YZ(37):g.YZ(27))||!f.deviceIsAudioOnly&&g.KD&&!YDD()&&g.YZ(11)||!f.deviceIsAudioOnly&&g.yy&&g.YZ("604.4")}; P0f=function(f){if(g.gk(f)&&Jr)return!1;if(g.ji){if(!g.YZ(47)||!g.YZ(52)&&g.YZ(51))return!1}else if(g.yy)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; DMT=function(f,D){return f.enabledEngageTypes.has(D.toString())||fwX.includes(D)}; Ep=function(f){return f.xo==="detailpage"}; g.gk=function(f){return f.xo==="embedded"}; jW=function(f){return f.xo==="leanback"}; ll=function(f){return f.xo==="adunit"||f.playerStyle==="gvn"}; g.xS=function(f){return f.xo==="profilepage"}; g.LM=function(f){return f.G&&g.gk(f)&&!ll(f)&&!f.T}; iM=function(f){if(!f.userDisplayImage)return"";var D=f.userDisplayImage.split("/");if(D.length===5)return f=D[D.length-1].split("="),f[1]="s20-c",D[D.length-1]=f.join("="),D.join("/");if(D.length===8)return D.splice(7,0,"s20-c"),D.join("/");if(D.length===9)return D[7]+="-s20-c",D.join("/");g.UT(new g.by("Profile image not a FIFE URL.",f.userDisplayImage));return f.userDisplayImage}; g.h8=function(f){var D=g.FT(f);FOf.includes(D)&&(D="www.youtube.com");return f.protocol+"://"+D}; g.y4=function(f,D){D=D===void 0?"":D;if(f.nH){var F=new $P,Z,I=f.nH();I.signedOut?Z="":I.token?Z=I.token:I.pendingResult.then(function(p){I.signedOut?F.resolve(""):F.resolve(p.token)},function(p){g.UT(new g.by("b189348328_oauth_callback_failed",{error:p})); F.resolve(D)}); return Z!==void 0?wo(Z):new ag(F)}return wo(D)}; A8=function(f,D){D=D===void 0?"":D;return f.Q3?Ok(!0):DP(f5(Ok(g.y4(f,D)),function(F){return Ok(!!F)}),function(){return Ok(!1)})}; Zju=function(f){var D;return!((D=f.webPlayerContextConfig)==null||!D.enableSelfProfilingLogging)}; Iwy=function(f,D){f.vI=D;var F,Z;(F=f.qb)!=null&&(Z=F.Y)!=null&&(Z.Y=new ar(D,Z.J,Z.B),g.N(Z,Z.Y));D.Y?f.Ds.push("asmjs"):f.Ds.push("wasm")}; nM=function(f){var D=g.dy(f);return(f=Number(g.R_(f)[4]||null)||null)?D+":"+f:D}; $3=function(f,D){D=D===void 0?!1:D;var F=vi[f],Z=pIc[F],I=zwD[f];if(!I||!Z)return null;D=new Sx(D?I.height:I.width,D?I.width:I.height,I.fps);Z=lQ(Z,D,F);return new ap(f,Z,{video:D,Eq:I.bitrate/8})}; qCT=function(f){var D=pIc[vi[f]],F=s7T[f];return F&&D?new ap(f,D,{audio:new h9(F.audioSampleRate,F.numChannels)}):null}; V4=function(f){this.Y=f}; Re=function(f,D,F,Z){if(F)return Gr();F={};var I=qJ();D=g.a(D);for(var p=D.next();!p.done;p=D.next())if(p=p.value,f.canPlayType(I,p.getInfo().mimeType)||Z){var z=p.Y.video.quality;if(!F[z]||F[z].getInfo().x_())F[z]=p}f=[];F.auto&&f.push(F.auto);Z=g.a(ci);for(I=Z.next();!I.done;I=Z.next())(I=F[I.value])&&f.push(I);return f.length?wo(f):Gr()}; HjI=function(f){this.itag=f.itag;this.url=f.url;this.codecs=f.codecs;this.width=f.width;this.height=f.height;this.fps=f.fps;this.bitrate=f.bitrate;var D;this.J=((D=f.audioItag)==null?void 0:D.split(","))||[];this.l0=f.l0;this.Sp=f.Sp||"";this.dw=f.dw;this.audioChannels=f.audioChannels;this.Y=""}; oNw=function(f,D,F,Z){D=D===void 0?!1:D;F=F===void 0?!0:F;Z=Z===void 0?{}:Z;var I={};f=g.a(f);for(var p=f.next();!p.done;p=f.next()){p=p.value;if(D&&MediaSource&&MediaSource.isTypeSupported){var z=p.type;p.audio_channels&&(z=z+"; channels="+p.audio_channels);if(!MediaSource.isTypeSupported(z)){Z[p.itag]="tpus";continue}}if(F||!p.drm_families||p.eotf!=="smpte2084"&&p.eotf!=="arib-std-b67"){z=void 0;var H={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},K=p.type.match(/codecs="([^"]*)"/); K=K?K[1]:"";p.audio_track_id&&(z=new g.GV(p.name,p.audio_track_id,!!p.is_default));var k=p.eotf;p=new HjI({itag:p.itag,url:p.url,codecs:K,width:Number(p.width),height:Number(p.height),fps:Number(p.fps),bitrate:Number(p.bitrate),audioItag:p.audio_itag,l0:k?H[k]:void 0,Sp:p.drm_families,dw:z,audioChannels:Number(p.audio_channels)});I[p.itag]=I[p.itag]||[];I[p.itag].push(p)}else Z[p.itag]="enchdr"}return I}; KOD=function(f,D,F,Z,I){this.B=f;this.J=D;this.X=F;this.cpn=Z;this.T=I;this.G=0;this.Y=""}; k5D=function(f,D){f.B.some(function(F){var Z;return((Z=F.dw)==null?void 0:Z.getId())===D}); f.Y=D}; dK=function(f,D,F){f.cpn&&(D=g.tL(D,{cpn:f.cpn}));F&&(D=g.tL(D,{paired:F}));return D}; j7X=function(f,D){f=f.itag.toString();D!==null&&(f+=D.itag.toString());return f}; ijd=function(f){for(var D=[],F=[],Z=g.a(f.J),I=Z.next();!I.done;I=Z.next())I=I.value,I.bitrate<=f.G?D.push(I):F.push(I);D.sort(function(p,z){return z.bitrate-p.bitrate}); F.sort(function(p,z){return p.bitrate-z.bitrate}); f.J=D.concat(F)}; Q4=function(f,D,F){this.Y=f;this.J=D;this.expiration=F;this.T3=null}; hwJ=function(f,D){if(!(NS||nO()||Xm()))return null;f=oNw(D,f.Z("html5_filter_fmp4_in_hls"));if(!f)return null;D=[];for(var F={},Z=g.a(Object.keys(f)),I=Z.next();!I.done;I=Z.next()){I=g.a(f[I.value]);for(var p=I.next();!p.done;p=I.next()){var z=p.value;z.dw&&(p=z.dw.getId(),F[p]||(z=new g.GN(p,z.dw),F[p]=z,D.push(z)))}}return D.length>0?D:null}; Rww=function(f,D,F,Z,I,p,z){if(!(NS||nO()||Xm()))return Gr();var H={},K=y_T(F),k=oNw(F,f.Z("html5_filter_fmp4_in_hls"),f.X.T,H);if(!k)return z({noplst:1}),Gr();A_T(k);F={};var h=(F.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",F),y;F=[];var A=[],V=[],R=null,m="";Z=Z&&Z.match(/hls_timedtext_playlist/)?new HjI({itag:"0",url:Z,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,dw:new g.GV("English","en",!1)}):null;for(var b=g.a(Object.keys(k)),U=b.next();!U.done;U=b.next())if(U=U.value,!f.Z("html5_disable_drm_hfr_1080")|| U!=="383"&&U!=="373"){U=g.a(k[U]);for(var S=U.next();!S.done;S=U.next())if(S=S.value,S.width){for(var G=g.a(S.J),W=G.next();!W.done;W=G.next())if(W=W.value,k[W]){S.Y=W;break}S.Y||(S.Y=$Ma(k,S));if(G=k[S.Y])if(F.push(S),S.Sp==="fairplay"&&(y=h),W="",S.l0==="PQ"?W="smpte2084":S.l0==="HLG"&&(W="arib-std-b67"),W&&(m=W),V.push(VzE(G,[S],Z,p,S.itag,S.width,S.height,S.fps,K,void 0,void 0,y,W)),!R||S.width*S.height*S.fps>R.width*R.height*R.fps)R=S}else A.push(S)}else H[U]="disdrmhfr";V.reduce(function(u, E){return E.getInfo().isEncrypted()&&u},!0)&&(y=h); I=Math.max(I,0);h=R||{};k=h.fps===void 0?0:h.fps;R=h.width===void 0?0:h.width;h=h.height===void 0?0:h.height;b=f.Z("html5_native_audio_track_switching");V.push(VzE(A,F,Z,p,"93",R,h,k,K,"auto",I,y,m,b));Object.entries(H).length&&z(H);return Re(f.X,V,D4(f,D),!1)}; VzE=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V){for(var R=0,m="",b=g.a(f),U=b.next();!U.done;U=b.next())U=U.value,m||(m=U.itag),U.audioChannels&&U.audioChannels>R&&(R=U.audioChannels,m=U.itag);I=new ap(I,"application/x-mpegURL",{audio:new h9(0,R),video:new Sx(p,z,H,null,void 0,k,void 0,void 0,A),Sp:y,Xn:m});f=new KOD(f,D,F?[F]:[],Z,!!V);f.G=h?h:1369843;return new Q4(I,f,K)}; y_T=function(f){f=g.a(f);for(var D=f.next();!D.done;D=f.next())if(D=D.value,D.url&&(D=D.url.split("expire/"),!(D.length<=1)))return+D[1].split("/")[0];return NaN}; $Ma=function(f,D){for(var F=g.a(Object.keys(f)),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=f[Z][0];if(!I.width&&I.Sp===D.Sp&&!I.audioChannels)return Z}return""}; A_T=function(f){for(var D=new Set,F=g.a(Object.values(f)),Z=F.next();!Z.done;Z=F.next())Z=Z.value,Z.length&&(Z=Z[0],Z.height&&Z.codecs.startsWith("vp09")&&D.add(Z.height));F=[];if(D.size){Z=g.a(Object.keys(f));for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,f[I].length){var p=f[I][0];p.height&&D.has(p.height)&&!p.codecs.startsWith("vp09")&&F.push(I)}}D=g.a(F);for(F=D.next();!F.done;F=D.next())delete f[F.value]}; CD=function(f,D){this.Y=f;this.J=D}; dMf=function(f,D,F,Z){var I=[];F=g.a(F);for(var p=F.next();!p.done;p=F.next()){var z=p.value;if(z.url){p=new g.Cf(z.url,!0);if(z.s){var H=p,K=z.sp,k=yX(18,decodeURIComponent(z.s));H[q[15]](K,encodeURIComponent(k))}H=g.a(Object.keys(Z));for(K=H.next();!K.done;K=H.next())K=K.value,p.set(K,Z[K]);z=Xh(z.type,z.quality,z.itag,z.width,z.height);I.push(new CD(z,p))}}return Re(f.X,I,D4(f,D),!1)}; T6=function(f,D){this.Y=f;this.J=D}; Q7c=function(f,D,F){var Z=[];F=g.a(F);for(var I=F.next();!I.done;I=F.next())if((I=I.value)&&I.url){var p=Xh(I.type,"medium","0");Z.push(new T6(p,I.url))}return Re(f.X,Z,D4(f,D),!1)}; CxD=function(f,D){var F=[],Z=Xh(D.type,"auto",D.itag);F.push(new T6(Z,D.url));return Re(f.X,F,!1,!0)}; Tea=function(f){return f&&mMI[f]?mMI[f]:null}; bjT=function(f){switch(f){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 f;default:return"sabr.config"}}; MzI=function(f){if(f=f.commonConfig)this.url=f.url,this.urlQueryOverride=f.urlQueryOverride,f.ustreamerConfig&&(this.Wr=G0(f.ustreamerConfig)||void 0)}; tzf=function(f,D){var F;if(D=D==null?void 0:(F=D.watchEndpointSupportedOnesieConfig)==null?void 0:F.html5PlaybackOnesieConfig)f.pD=new MzI(D)}; g.bM=function(f){f=f===void 0?{}:f;this.languageCode=f.languageCode||"";this.languageName=f.languageName||null;this.kind=f.kind||"";this.name=f.name===void 0?null:f.name;this.displayName=f.displayName||null;this.id=f.id||null;this.Y=f.is_servable||!1;this.isTranslateable=f.is_translateable||!1;this.url=f.url||null;this.vssId=f.vss_id||"";this.isDefault=f.is_default||!1;this.translationLanguage=f.translationLanguage||null;this.xtags=f.xtags||"";this.captionId=f.captionId||""}; g.t8=function(f){var D={languageCode:f.languageCode,languageName:f.languageName,displayName:g.MO(f),kind:f.kind,name:f.name,id:f.id,is_servable:f.Y,is_default:f.isDefault,is_translateable:f.isTranslateable,vss_id:f.vssId};f.xtags&&(D.xtags=f.xtags);f.captionId&&(D.captionId=f.captionId);f.translationLanguage&&(D.translationLanguage=f.translationLanguage);return D}; g.SW=function(f){return f.translationLanguage?f.translationLanguage.languageCode:f.languageCode}; g.SCu=function(f){var D=f.vssId;f.translationLanguage&&D&&(D="t"+D+"."+g.SW(f));return D}; g.MO=function(f){var D=[];if(f.displayName)D.push(f.displayName);else{var F=f.languageName||"";D.push(F);f.kind==="asr"&&F.indexOf("(")===-1&&D.push(" (Subt\u00edtulos autom\u00e1ticos)");f.name&&D.push(" - "+f.name)}f.translationLanguage&&D.push(" >> "+f.translationLanguage.languageName);return D.join("")}; awE=function(f,D,F,Z){f||(f=D&&c_D.hasOwnProperty(D)&&UMJ.hasOwnProperty(D)?UMJ[D]+"_"+c_D[D]:void 0);D=f;if(!D)return null;f=D.match(vNf);if(!f||f.length!==5)return null;if(f=D.match(vNf)){var I=Number(f[3]),p=[7,8,10,5,6];f=!(Number(f[1])===1&&I===8)&&p.indexOf(I)>=0}else f=!1;return F||Z||f?D:null}; cU=function(f,D){for(var F={},Z=g.a(Object.keys(G5u)),I=Z.next();!I.done;I=Z.next()){I=I.value;var p=D?D+I:I;p=f[p+"_webp"]||f[p];g.Ln(p)&&(F[G5u[I]]=p)}return F}; Un=function(f){var D={};if(!f||!f.thumbnails)return D;f=f.thumbnails.filter(function(H){return!!H.url}); f.sort(function(H,K){return H.width-K.width||H.height-K.height}); for(var F=g.a(Object.keys(wIs)),Z=F.next();!Z.done;Z=F.next()){var I=Number(Z.value);Z=wIs[I];for(var p=g.a(f),z=p.next();!z.done;z=p.next())if(z=z.value,z.width>=I){I=WOD(z.url);g.Ln(I)&&(D[Z]=I);break}}(f=f.pop())&&f.width>=1280&&(f=WOD(f.url),g.Ln(f)&&(D["maxresdefault.jpg"]=f));return D}; WOD=function(f){return f.startsWith("//")?"https:"+f:f}; vU=function(f){return f&&f.baseUrl||""}; ae=function(f){f=g.zr(f);for(var D=g.a(Object.keys(f)),F=D.next();!F.done;F=D.next()){F=F.value;var Z=f[F];f[F]=Array.isArray(Z)?Z[0]:Z}return f}; r_X=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next())if(F=F.value.playerAnnotationsUrlsRenderer){F.adsOnly&&(f.Tp=!0);if(D=F.loadPolicy)f.annotationsLoadPolicy=BeE[D];if(D=F.invideoUrl)f.Js=lv(D);f.Ub=!0;break}}; LOu=function(f,D){f.botguardData=D.playerAttestationRenderer.botguardData;D=D.playerAttestationRenderer.challenge;D!=null&&(f.MN=D)}; ENy=function(f,D){f.captionTracks=[];if(D.captionTracks)for(var F=g.a(D.captionTracks),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=lwD(Z.baseUrl);if(!I)return;I={is_translateable:!!Z.isTranslatable,languageCode:Z.languageCode,languageName:Z.name&&g.ih(Z.name),url:I,vss_id:Z.vssId,kind:Z.kind};I.name=Z.trackName;I.displayName=Z.name&&g.ih(Z.name);f.captionTracks.push(new g.bM(I))}f.lD=D.audioTracks||[];f.A$=D.defaultAudioTrackIndex||0;f.oU=[];if(D.translationLanguages)for(F=g.a(D.translationLanguages), Z=F.next();!Z.done;Z=F.next()){I=Z.value;Z={};Z.languageCode=I.languageCode;Z.languageName=g.ih(I.languageName);if(I.translationSourceTrackIndices){Z.translationSourceTrackIndices=[];for(var p=g.a(I.translationSourceTrackIndices),z=p.next();!z.done;z=p.next())Z.translationSourceTrackIndices.push(z.value)}if(I.excludeAudioTrackIndices)for(Z.excludeAudioTrackIndices=[],I=g.a(I.excludeAudioTrackIndices),p=I.next();!p.done;p=I.next())Z.excludeAudioTrackIndices.push(p.value);f.oU.push(Z)}f.SD=[];if(D.defaultTranslationSourceTrackIndices)for(F= g.a(D.defaultTranslationSourceTrackIndices),Z=F.next();!Z.done;Z=F.next())f.SD.push(Z.value);f.Ou=!!D.contribute&&!!D.contribute.captionsMetadataRenderer}; uNa=function(f,D,F){var Z=D.errorScreen;if(!(Z&&(Z.playerLegacyDesktopYpcOfferRenderer||Z.playerLegacyDesktopYpcTrailerRenderer||Z.ypcTrailerRenderer)||F&&F.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(D.status))){f.errorCode=Tea(D.errorCode)||"auth";if(F=Z&&Z.playerErrorMessageRenderer){f.playerErrorMessageRenderer=F;var I=F.reason;I&&(f.errorReason=g.ih(I));if(F=F.subreason)f.Sw=g.ih(F),f.d7=F}else f.errorReason=D.reason||null;F=D.status;if(F==="LOGIN_REQUIRED")f.errorDetail= "1";else if(F==="CONTENT_CHECK_REQUIRED")f.errorDetail="2";else if(F==="AGE_CHECK_REQUIRED")D=(D=D.errorScreen)&&D.playerKavRenderer,f.errorDetail=D&&D.kavUrl?"4":"3";else{var p,z,H;Z=(H=Z==null?void 0:(p=Z.playerErrorMessageRenderer)==null?void 0:(z=p.proceedButton)==null?void 0:z.buttonRenderer)==null?void 0:H.command;if(D.isBlockedInRestrictedMode)f.errorDetail="5";else{var K;((K=g.Q(Z,J_c))==null?void 0:K.signal)==="RELOAD_PAGE"?f.errorDetail="7":f.errorDetail="0"}}}}; Nec=function(f,D){f.xI=!0;var F=D.heartbeatToken;F&&(f.drmSessionId=D.drmSessionId||"",f.heartbeatToken=F,f.z5=Number(D.intervalMilliseconds),f.Tc=Number(D.maxRetries),f.CA=!!D.softFailOnError,f.d6=!!D.useInnertubeHeartbeatsForDrm);f.heartbeatServerData=D.heartbeatServerData;var Z;f.dZ=!((Z=D.heartbeatAttestationConfig)==null||!Z.requiresAttestation)}; xMu=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next()){F=F.value;var Z=F.interstitials.map(function(z){var H=g.Q(z,gNT);if(H)return{is_yto_interstitial:!0,raw_player_response:H};if(z=g.Q(z,ewf))return Object.assign({is_yto_interstitial:!0},iy(z))}); Z=g.a(Z);for(var I=Z.next();!I.done;I=Z.next())switch(I=I.value,F.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":f.interstitials=f.interstitials.concat({time:0,playerVars:I,r$:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":f.interstitials=f.interstitials.concat({time:0x7ffffffffffff,playerVars:I,r$:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var p=Number(F.podConfig.timeToInsertAtMillis);f.interstitials=f.interstitials.concat({time:p,playerVars:I, r$:p===0?5:7})}}}; XID=function(f,D){if(D=D.find(function(F){return!(!F||!F.tooltipRenderer)}))f.tooltipRenderer=D.tooltipRenderer}; OjI=function(f,D){D.subscribeCommand&&(f.subscribeCommand=D.subscribeCommand);D.unsubscribeCommand&&(f.unsubscribeCommand=D.unsubscribeCommand);D.addToWatchLaterCommand&&(f.addToWatchLaterCommand=D.addToWatchLaterCommand);D.removeFromWatchLaterCommand&&(f.removeFromWatchLaterCommand=D.removeFromWatchLaterCommand);D.getSharePanelCommand&&(f.getSharePanelCommand=D.getSharePanelCommand)}; nNc=function(f,D){D!=null?(f.sU=D,f.Yn=!0):(f.sU="",f.Yn=!1)}; fvI=function(f,D){if(D=D.playerControlsOverlayRenderer)nNc(f,D.controlBgHtml),D.mutedAutoplay?(D=g.Q(D.mutedAutoplay,YCJ))&&D.endScreen&&(D=g.Q(D.endScreen,PxE))&&D.text&&(f.HM=g.ih(D.text)):f.mutedAutoplay=!1}; DaT=function(f,D){var F=D.backgroundability;F&&F.backgroundabilityRenderer.backgroundable&&(f.backgroundable=!0);var Z,I;if((Z=D.offlineability)==null?0:(I=Z.offlineabilityRenderer)==null?0:I.offlineable)f.offlineable=!0;if(F=D.contextParams)f.contextParams=F;(F=D.pictureInPicture)&&F.pictureInPictureRenderer.playableInPip&&(f.pipable=!0);D.playableInEmbed&&(f.allowEmbed=!0);if(F=D.ypcClickwrap)D=F.playerLegacyDesktopYpcClickwrapRenderer,F=F.ypcRentalActivationRenderer,D?(f.zA=D.durationMessage|| "",f.pB=!0):F&&(D=F.durationMessage,f.zA=D?g.ih(D):"",f.pB=!0)}; ZeJ=function(f,D,F){var Z=vU(D.googleRemarketingUrl);Z&&(f.googleRemarketingUrl=Z);if(Z=vU(D.youtubeRemarketingUrl))f.youtubeRemarketingUrl=Z;if(Z=D.heartbeatLoggingToken)f.heartbeatLoggingToken=Z;Z={};var I=vU(D.ptrackingUrl);if(I){I=ae(I);var p=I.oid;p&&(f.aX=p);if(p=I.pltype)f.va=p;if(p=I.ptchn)f.AC=p;if(p=I.ptk)f.HH=encodeURIComponent(p);if(I=I.m)f.Zr=I}if(I=vU(D.qoeUrl)){I=g.zr(I);p=g.a(Object.keys(I));for(var z=p.next();!z.done;z=p.next()){z=z.value;var H=I[z];I[z]=Array.isArray(H)?H.join(","): H}f.Lg=I;if(p=I.cat)f.Z("html5_enable_qoe_cat_list")?f.Vx=f.Vx.concat(p.split(",")):f.Ds=p;if(p=I.live)f.d2=p;if(I=I.drm_product)f.drmProduct=I}if(I=vU(D.videostatsPlaybackUrl)){I=ae(I);if(p=I.adformat)if(F.adformat=p,z=f.j(),z=awE(p,f.wI,z.G,z.N))f.adFormat=z;if(z=I.aqi)F.ad_query_id=z;if(F=I.autoplay)f.qe=F=="1",f.HC=F=="1";if(F=I.autonav)f.isAutonav=F=="1";if(F=I.delay)f.vr=gl(F);if(F=I.ei)f.eventId=F;if(F=G0(I.adcontext))try{var K=FVu(F);K&&(f.fg=K)}catch(k){g.UT(Error("Malformed adContext"))}if(F|| p)f.qe=!0;if(K=I.feature)f.bj=K;if(K=I.list)f.playlistId=K;if(K=I.of)f.s7=K;if(K=I.osid)f.osid=K;if(K=I.referrer)f.referrer=K;if(K=I.sdetail)f.rK=K;if(K=I.sourceid)f.Cpd=K;if(K=I.ssrt)f.u9=K=="1";if(K=I.subscribed)f.subscribed=K=="1";if(K=I.uga)f.userGenderAge=K;if(K=I.upt)f.dI=K;if(K=I.vm)f.videoMetadata=K;Z.playback=I}if(K=vU(D.videostatsWatchtimeUrl)){K=ae(K);if(F=K.ald)f.KX=F;Z.watchtime=K}if(K=vU(D.atrUrl))K=ae(K),Z.atr=K;if(K=vU(D.engageUrl))K=ae(K),Z.engage=K;f.Nq=Z;D.promotedPlaybackTracking&& (D=D.promotedPlaybackTracking,D.startUrls&&(f.mD=D.startUrls),D.firstQuartileUrls&&(f.lx=D.firstQuartileUrls),D.secondQuartileUrls&&(f.SE=D.secondQuartileUrls),D.thirdQuartileUrls&&(f.Iw=D.thirdQuartileUrls),D.completeUrls&&(f.zC=D.completeUrls),D.engagedViewUrls&&(D.engagedViewUrls.length>1&&g.UT(new g.by("There are more than one engaged_view_urls.")),f.Z7=D.engagedViewUrls[0]))}; Ivu=function(f,D,F){D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next())if(Z=Z.value)if(Z=Z.playerLegacyDesktopWatchAdsRenderer)if(Z=Z.playerAdParams){Z.autoplay=="1"&&(f.qe=!0,f.HC=!0);f.fX=Z.encodedAdSafetyReason||null;Z.showContentThumbnail!==void 0&&(f.sL=!!Z.showContentThumbnail);F.enabled_engage_types=Z.enabledEngageTypes;break}}; p4I=function(f,D){var F=D.manifestlessWindowedLiveConfig;if(F){var Z=Number(F.minDvrSequence),I=Number(F.maxDvrSequence),p=Number(F.minDvrMediaTimeMs),z=Number(F.maxDvrMediaTimeMs);F=Number(F.startWalltimeMs);Z&&(f.Ca=Z);p&&(f.O3=p/1E3,f.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&G6(f)&&(f.ZC=p/1E3));I&&(f.hJ=I);z&&(f.DF=z/1E3,f.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&G6(f)&&(f.OL=z/1E3));F&&(f.vC=F/1E3);(Z||p)&&(I||z)&&(f.Al=!0,f.isLivePlayback=!0,f.allowLiveDvr=!0, f.rU=!1)}if(Z=D.daiConfig){if(Z.enableDai){f.xK=!0;if(I=Z.enableServerStitchedDai)f.enableServerStitchedDai=I;if(I=Z.enablePreroll)f.hE=I}var H;if(Z.daiType==="DAI_TYPE_SS_DISABLED"||((H=Z.debugInfo)==null?0:H.isDisabledUnpluggedChannel))f.jJ=!0;Z.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(f.oV=!0);Z.allowUstreamerRequestAdconfig&&(f.LL=!0);Z.sendSsdaiMissingAdBreakReasons&&(f.Eeb=!0)}if(H=D.audioConfig){Z=H.loudnessDb;Z!=null&&(f.Bh=Z);Z=H.trackAbsoluteLoudnessLkfs;Z!=null&&(f.sJ=Z);Z=H.loudnessTargetLkfs; Z!=null&&(f.loudnessTargetLkfs=Z);H.audioMuted&&(f.hR=!0);H.muteOnStart&&(f.Dc=!0);if(Z=H.loudnessNormalizationConfig)Z.applyStatefulNormalization&&(f.applyStatefulNormalization=!0),Z.preserveStatefulLoudnessTarget&&(f.preserveStatefulLoudnessTarget=!0),I=Z.minimumLoudnessTargetLkfs,I!=null&&(f.minimumLoudnessTargetLkfs=I),Z=Z.maxStatefulTimeThresholdSec,Z!=null&&(f.maxStatefulTimeThresholdSec=Z);H.playAudioOnly&&(f.Qp=!0)}if(Z=D.playbackEndConfig)H=Z.endSeconds,Z=Z.limitedPlaybackDurationInSeconds, f.mutedAutoplay&&(H&&(f.endSeconds=H),Z&&(f.limitedPlaybackDurationInSeconds=Z));if(H=D.fairPlayConfig){if(Z=H.certificate)f.xq=G0(Z);Z=Number(H.keyRotationPeriodMs);Z>0&&(f.Nn=Z);H=Number(H.keyPrefetchMarginMs);H>0&&(f.FL=H)}if(H=D.playbackStartConfig){f.C0=Number(H.startSeconds);I=H.liveUtcStartSeconds;Z=!!f.liveUtcStartSeconds&&f.liveUtcStartSeconds>0;I&&!Z&&(f.liveUtcStartSeconds=Number(I));if(I=H.startPosition)if((p=I.utcTimeMillis)&&!Z&&(f.liveUtcStartSeconds=Number(p)*.001),Z=I.streamTimeMillis)f.yO= Number(Z)*.001;f.progressBarStartPosition=H.progressBarStartPosition;f.progressBarEndPosition=H.progressBarEndPosition}else if(H=D.skippableSegmentsConfig){if(Z=H.introSkipDurationMs)f.DR=Number(Z)/1E3;if(H=H.outroSkipDurationMs)f.v5=Number(H)/1E3}if(Z=D.skippableIntroConfig)H=Number(Z.startMs),Z=Number(Z.endMs),isNaN(H)||isNaN(Z)||(f.v2=H,f.xm=Z);if(H=D.streamSelectionConfig)f.HQ=Number(H.maxBitrate);if(H=D.vrConfig)f.k7=H.partialSpherical=="1";if(H=D.webDrmConfig){H.skipWidevine&&(f.xB=!0);if(Z= H.widevineServiceCert)f.IH=G0(Z);H.useCobaltWidevine&&(f.useCobaltWidevine=!0);H.startWithNoQualityConstraint&&(f.j6=!0)}if(H=D.mediaCommonConfig){if(Z=H.dynamicReadaheadConfig){f.maxReadAheadMediaTimeMs=Z.maxReadAheadMediaTimeMs||NaN;f.minReadAheadMediaTimeMs=Z.minReadAheadMediaTimeMs||NaN;f.readAheadGrowthRateMs=Z.readAheadGrowthRateMs||NaN;var K;if(Z=H==null?void 0:(K=H.mediaUstreamerRequestConfig)==null?void 0:K.videoPlaybackUstreamerConfig)f.ke=G0(Z);if((K=H==null?void 0:H.sabrContextUpdates)&& K.length>0)for(K=g.a(K),Z=K.next();!Z.done;Z=K.next())Z=Z.value,Z.type&&Z.value&&(I={type:Z.type,scope:Z.scope,value:G0(Z.value)||void 0,sendByDefault:Z.sendByDefault},f.sabrContextUpdates.set(Z.type,I))}if(K=H.serverPlaybackStartConfig)f.serverPlaybackStartConfig=K;H.useServerDrivenAbr&&(f.dc=!0);if(K=H.requestPipeliningConfig)f.requestPipeliningConfig=K}if(K=D.inlinePlaybackConfig)f.yd=!!K.showAudioControls;if(K=D.embeddedPlayerConfig){f.embeddedPlayerConfig=K;if(H=K.embeddedPlayerMode)Z=f.j(), Z.Tx=H,Z.B=H==="EMBEDDED_PLAYER_MODE_PFL";if(K=K.permissions)f.allowImaMonetization=!!K.allowImaMonetization}if(D=D.webPlayerConfig)D.gatewayExperimentGroup&&(f.gatewayExperimentGroup=D.gatewayExperimentGroup),D.isProximaEligible&&(f.isProximaLatencyEligible=!0)}; z4J=function(f,D,F){var Z=D.formats;if(Z){for(var I=[],p=g.a(Z),z=p.next();!z.done;z=p.next())z=z.value,I.push(z.itag+"/"+z.width+"x"+z.height);f.TJ=I.join(",");I=[];Z=g.a(Z);for(p=Z.next();!p.done;p=Z.next()){z=p.value;p={itag:z.itag,type:z.mimeType,quality:z.quality};var H=z.url;H&&(p.url=H);z=yX(33,z);H=z.OF;var K=z.oT,k=z.s;z.KA&&(p.url=H,p.sp=K,p.s=k);I.push(g.MX(p))}f.FH=I.join(",")}if(p=D.hlsFormats){I={};if(F&&(F=F.audioPairingConfig)&&F.pairs)for(F=g.a(F.pairs),Z=F.next();!Z.done;Z=F.next())Z= Z.value,z=Z.videoItag,I[z]||(I[z]=[]),I[z].push(Z.audioItag);F={};Z=g.a(p);for(z=Z.next();!z.done;z=Z.next())z=z.value,F[z.itag]=z.bitrate;Z=[];p=g.a(p);for(z=p.next();!z.done;z=p.next()){z=z.value;H={itag:z.itag,type:z.mimeType,url:z.url,bitrate:z.bitrate,width:z.width,height:z.height,fps:z.fps};if(K=z.audioTrack)if(k=K.displayName)H.name=k,H.audio_track_id=K.id,K.audioIsDefault&&(H.is_default="1");if(z.drmFamilies){K=[];k=g.a(z.drmFamilies);for(var h=k.next();!h.done;h=k.next())K.push(E$[h.value]); H.drm_families=K.join(",")}(K=I[z.itag])&&K.length&&(H.audio_itag=K.join(","),(K=F[K[0]])&&(H.bitrate+=K));(K=y9f(z))&&(H.eotf=K);z.audioChannels&&(H.audio_channels=z.audioChannels);Z.push(g.MX(H))}f.hlsFormats=Z.join(",")}if((F=D.licenseInfos)&&F.length>0){I={};F=g.a(F);for(Z=F.next();!Z.done;Z=F.next())p=Z.value,Z=p.drmFamily,p=p.url,Z&&p&&(I[E$[Z]]=p);f.Sp=I}if(I=D.drmParams)f.drmParams=I;if(I=D.dashManifestUrl)f.Fl=g.tL(I,{cpn:f.clientPlaybackNonce});if(I=D.hlsManifestUrl)f.hlsvp=I;if(I=D.probeUrl)f.probeUrl= lv(g.tL(I,{cpn:f.clientPlaybackNonce}));if(D=D.serverAbrStreamingUrl)f.mU=new g.Cf(D,!0)}; qhE=function(f,D,F){var Z=D.videoId;Z&&(f.videoId=Z,F.video_id||(F.video_id=Z));if(Z=D.title)f.title=Z,F.title||(F.title=Z);if(Z=D.lengthSeconds)f.lengthSeconds=Number(Z),F.length_seconds||(F.length_seconds=Z);if(Z=D.keywords)f.keywords=s4f(Z);if(Z=D.channelId)f.HR=Z,F.ucid||(F.ucid=Z);if(Z=D.viewCount)f.rawViewCount=Number(Z);if(Z=D.author)f.author=Z,F.author||(F.author=Z);if(F=D.shortDescription)f.shortDescription=F;if(F=D.isCrawlable)f.isListed=F;if(F=D.musicVideoType)f.musicVideoType=F;F=D.isLive; F!=null&&(f.isLivePlayback=F);if(F||D.isUpcoming)f.isPremiere=!D.isLiveContent;if(F=D.thumbnail)f.wB=Un(F);if(F=D.isExternallyHostedPodcast)f.isExternallyHostedPodcast=F;(F=D.stationType)&&F!=="STATION_TYPE_UNKNOWN"&&(f.mbd=!0);D=D.viewerLivestreamJoinPosition;if(D==null?0:D.utcTimeMillis)f.Hv=gl(D.utcTimeMillis)}; KVX=function(f,D){if(D.playerLegacyDesktopYpcTrailerRenderer){var F=D.playerLegacyDesktopYpcTrailerRenderer;f.D3=F.trailerVideoId||"";var Z=(Z=D.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&Z.ypcTrailerRenderer}else if(D.playerLegacyDesktopYpcOfferRenderer)F=D.playerLegacyDesktopYpcOfferRenderer;else if(D.ypcTrailerRenderer){Z=D.ypcTrailerRenderer;D=Z.fullVideoMessage;f.lL=D?g.ih(D):"";var I,p;f.D3=((I=g.Q(Z,Heu))==null?void 0:(p=I.videoDetails)==null?void 0:p.videoId)||""}F&&(f.Sq=F.itemTitle|| "",F.itemUrl&&(f.bR=F.itemUrl),F.itemBuyUrl&&(f.ev=F.itemBuyUrl),f.vv=F.itemThumbnail||"",f.sT=F.offerHeadline||"",f.IL=F.offerDescription||"",f.MV=F.offerId||"",f.qK=F.offerButtonText||"",f.NP=F.offerButtonFormattedText||null,f.MF=F.overlayDurationMsec||NaN,f.lL=F.fullVideoMessage||"",f.Qu=!0);Z&&((F=g.Q(Z,Heu))?f.Db={raw_player_response:F}:(F=g.Q(Z,oDa),f.Db=F?iy(F):null),f.Qu=!0)}; j4D=function(f,D,F,Z){D.isLiveDefaultBroadcast&&(f.isLiveDefaultBroadcast=!0);D.isUpcoming&&(f.isUpcoming=!0);if(D.isPostLiveDvr){f.rU=!0;if(Z=D.latencyClass)f.latencyClass=kjD[Z]||"UNKNOWN";D.isLowLatencyLiveStream&&(f.isLowLatencyLiveStream=!0)}else{var I=!1;f.HL?(f.allowLiveDvr=m0()?!0:fC&&wK<5?!1:!0,f.isLivePlayback=!0):D.isLive?(Z.livestream="1",f.allowLiveDvr=D.isLiveDvrEnabled?m0()?!0:fC&&wK<5?!1:!0:!1,f.partnerId=27,I=!0):D.isUpcoming&&(I=!0);if(D.isLive||f.HL){D.isLowLatencyLiveStream&&(f.isLowLatencyLiveStream= !0);var p=D.latencyClass;p&&(f.latencyClass=kjD[p]||"UNKNOWN");if(D=D.liveChunkReadahead)f.liveChunkReadahead=D;if(D=F&&F.livePlayerConfig){D.hasSubfragmentedFmp4&&(f.hasSubfragmentedFmp4=!0);D.hasSubfragmentedWebm&&(f.Bb=!0);D.defraggedFromSubfragments&&(f.defraggedFromSubfragments=!0);if(F=D.liveExperimentalContentId)f.liveExperimentalContentId=Number(F);D=D.isLiveHeadPlayable;f.Z("html5_live_head_playable")&&D!=null&&(f.isLiveHeadPlayable=D)}}I&&(f.isLivePlayback=!0,Z.adformat&&Z.adformat.split("_")[1]!== "8"||f.Y3.push("heartbeat"))}}; WU=function(f,D){this.type=f||"";this.id=D||""}; BU=function(f){return new WU(f.substring(0,2),f.substring(2))}; rK=function(f,D){this.Uy=f;this.author="";this.fk=null;this.playlistLength=0;this.Y=this.sessionData=null;this.wB={};this.title="";if(D){this.author=D.author||D.playlist_author||"";this.title=D.playlist_title||"";if(f=D.session_data)this.sessionData=ZK(f,"&");var F;this.Y=((F=D.thumbnail_ids)==null?void 0:F.split(",")[0])||null;this.wB=cU(D,"playlist_");this.videoId=D.video_id||void 0;if(F=D.list)switch(D.listType){case "user_uploads":this.playlistId=(new WU("UU","PLAYER_"+F)).toString();break;default:if(f= D.playlist_length)this.playlistLength=Number(f)||0;this.playlistId=BU(F).toString();if(D=D.video)this.videoId=(D[0]||null).video_id||void 0}else D.playlist&&(this.playlistLength=D.playlist.toString().split(",").length)}}; LD=function(f,D){this.Uy=f;this.Cl=this.author="";this.fk=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.hT=this.lengthText="";this.sessionData=null;this.wB={};this.title="";if(D){this.ariaLabel=D.aria_label||void 0;this.author=D.author||"";this.Cl=D.Cl||"";if(f=D.endscreen_autoplay_session_data)this.fk=ZK(f,"&");this.QX=D.QX;this.isLivePlayback=D.live_playback==="1";this.isUpcoming=!!D.isUpcoming;if(f=D.length_seconds)this.lengthSeconds=typeof f==="string"?Number(f):f;this.lengthText= D.lengthText||"";this.hT=D.hT||"";this.publishedTimeText=D.publishedTimeText||void 0;if(f=D.session_data)this.sessionData=ZK(f,"&");this.shortViewCount=D.short_view_count_text||void 0;this.wB=cU(D);this.title=D.title||"";this.videoId=D.docid||D.video_id||D.videoId||D.id||void 0;this.watchUrl=D.watchUrl||void 0}}; iew=function(f){var D,F,Z=(D=f.getWatchNextResponse())==null?void 0:(F=D.contents)==null?void 0:F.twoColumnWatchNextResults,I,p,z,H,K;f=(I=f.getWatchNextResponse())==null?void 0:(p=I.playerOverlays)==null?void 0:(z=p.playerOverlayRenderer)==null?void 0:(H=z.endScreen)==null?void 0:(K=H.watchNextEndScreenRenderer)==null?void 0:K.results;if(!f){var k,h;f=Z==null?void 0:(k=Z.endScreen)==null?void 0:(h=k.endScreen)==null?void 0:h.results}return f}; g.En=function(f){var D,F,Z;f=g.Q((D=f.getWatchNextResponse())==null?void 0:(F=D.playerOverlays)==null?void 0:(Z=F.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,lM);return g.Q(f==null?void 0:f.playerBar,h4X)}; yxu=function(f){this.Y=f.playback_progress_0s_url;this.B=f.playback_progress_2s_url;this.J=f.playback_progress_10s_url}; Axu=function(){if(J8===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(D){}a:{try{var f=!!self.localStorage}catch(D){f=!1}if(f&&(f=g.GP(g.xj()+"::yt-player"))){J8=new JF(f);break a}J8=void 0}}return J8}; g.uM=function(){var f=Axu();if(!f)return{};try{var D=f.get("yt-player-lv");return JSON.parse(D||"{}")}catch(F){return{}}}; g.$aT=function(f){var D=Axu();D&&(f=JSON.stringify(f),D.set("yt-player-lv",f))}; g.NO=function(f){return g.uM()[f]||0}; g.gK=function(f,D){var F=g.uM();D!==F[f]&&(D!==0?F[f]=D:delete F[f],g.$aT(F))}; g.eW=function(f){return g.l(function(D){return D.return(g.EX(V3X(),f))})}; XT=function(f,D,F,Z,I,p,z,H){var K,k,h,y,A,V;return g.l(function(R){switch(R.Y){case 1:return K=g.NO(f),K===4?R.return(4):g.r(R,g.Yb(),2);case 2:k=R.J;if(!k)throw g.$b("wiac");if(!H||z===void 0){R.ZE(3);break}return g.r(R,R4w(H,z),4);case 4:z=R.J;case 3:return h=F.lastModified||"0",g.r(R,g.eW(k),5);case 5:return y=R.J,g.po(R,6),x3++,g.r(R,g.SF(y,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",QL:!0},function(m){if(p!==void 0&&z!==void 0){var b=""+f+"|"+D.id+"|"+h+"|"+String(p).padStart(10, "0");b=g.cG(m.objectStore("media"),z,b)}else b=g.Rt.resolve(void 0);var U=daf(f,D.fK()),S=daf(f,!D.fK()),G={fmts:Q4T(Z),format:F||{}};U=g.cG(m.objectStore("index"),G,U);var W=Z.downloadedEndTime===-1;G=W?m.objectStore("index").get(S):g.Rt.resolve(void 0);var u={fmts:"music",format:{}};m=W&&I&&!D.fK()?g.cG(m.objectStore("index"),u,S):g.Rt.resolve(void 0);return g.Rt.all([m,G,b,U]).then(function(E){E=g.a(E);E.next();E=E.next().value;x3--;var Ds=g.NO(f);if(Ds!==4&&W&&I||E!==void 0&&g.Cmw(E.fmts))Ds= 1,g.gK(f,Ds);return Ds})}),8); case 8:return R.return(R.J);case 6:A=g.He(R);x3--;V=g.NO(f);if(V===4)return R.return(V);g.gK(f,4);throw A;}})}; g.mau=function(f){var D,F;return g.l(function(Z){if(Z.Y==1)return g.r(Z,g.Yb(),2);if(Z.Y!=3){D=Z.J;if(!D)throw g.$b("ri");return g.r(Z,g.eW(D),3)}F=Z.J;return Z.return(g.SF(F,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(I){var p=IDBKeyRange.bound(f+"|",f+"~");return I.objectStore("index").getAll(p).then(function(z){return z.map(function(H){return H?H.format:{}})})}))})}; beT=function(f,D,F,Z,I){var p,z,H;return g.l(function(K){if(K.Y==1)return g.r(K,g.Yb(),2);if(K.Y!=3){p=K.J;if(!p)throw g.$b("rc");return g.r(K,g.eW(p),3)}z=K.J;H=g.SF(z,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(k){var h=""+f+"|"+D+"|"+F+"|"+String(Z).padStart(10,"0");return k.objectStore("media").get(h)}); return I?K.return(H.then(function(k){if(k===void 0)throw Error("No data from indexDb");return TMd(I,k)}).catch(function(k){throw new g.by("Error while reading chunk: "+k.name+", "+k.message); })):K.return(H)})}; g.Cmw=function(f){return f?f==="music"?!0:f.includes("dlt=-1")||!f.includes("dlt="):!1}; daf=function(f,D){return""+f+"|"+(D?"v":"a")}; Q4T=function(f){var D={};return Ig((D.dlt=f.downloadedEndTime.toString(),D.mket=f.maxKnownEndTime.toString(),D.avbr=f.averageByteRate.toString(),D))}; t3d=function(f){var D={},F={};f=g.a(f);for(var Z=f.next();!Z.done;Z=f.next()){var I=Z.value,p=I.split("|");I.match(g.M3y)?(Z=Number(p.pop()),isNaN(Z)?F[I]="?":(p=p.join("|"),(I=D[p])?(p=I[I.length-1],Z===p.end+1?p.end=Z:I.push({start:Z,end:Z})):D[p]=[{start:Z,end:Z}])):F[I]="?"}f=g.a(Object.keys(D));for(Z=f.next();!Z.done;Z=f.next())Z=Z.value,F[Z]=D[Z].map(function(z){return z.start+"-"+z.end}).join(","); return F}; On=function(f){g.zu.call(this);this.Y=null;this.B=new rp;this.Y=null;this.T=new Set;this.crossOrigin=f||""}; Shu=function(f,D,F){for(F=nD(f,F);F>=0;){var Z=f.levels[F];if(Z.isLoaded(Y3(Z,D))&&(Z=g.PU(Z,D)))return Z;F--}return g.PU(f.levels[0],D)}; Uau=function(f,D,F){F=nD(f,F);for(var Z,I;F>=0;F--)if(Z=f.levels[F],I=Y3(Z,D),!Z.isLoaded(I)){Z=f;var p=F,z=p+"-"+I;Z.T.has(z)||(Z.T.add(z),Z.B.enqueue(p,{EA:p,wT:I}))}cxD(f)}; cxD=function(f){if(!f.Y&&!f.B.isEmpty()){var D=f.B.remove();f.Y=vDs(f,D)}}; vDs=function(f,D){var F=document.createElement("img");f.crossOrigin&&(F.crossOrigin=f.crossOrigin);F.src=f.levels[D.EA].M7(D.wT);F.onload=function(){var Z=D.EA,I=D.wT;f.Y!==null&&(f.Y.onload=null,f.Y=null);Z=f.levels[Z];Z.loaded.add(I);cxD(f);var p=Z.columns*Z.rows;I*=p;Z=Math.min(I+p-1,Z.w7()-1);I=[I,Z];f.publish("l",I[0],I[1])}; return F}; g.fT=function(f,D,F,Z){this.level=f;this.G=D;this.loaded=new Set;this.level=f;this.G=D;f=F.split("#");this.width=Math.floor(Number(f[0]));this.height=Math.floor(Number(f[1]));this.frameCount=Math.floor(Number(f[2]));this.columns=Math.floor(Number(f[3]));this.rows=Math.floor(Number(f[4]));this.Y=Math.floor(Number(f[5]));this.B=f[6];this.signature=f[7];this.videoLength=Z}; Y3=function(f,D){return Math.floor(D/(f.columns*f.rows))}; g.PU=function(f,D){D>=f.dO()&&f.JR();var F=Y3(f,D),Z=f.columns*f.rows,I=D%Z;D=I%f.columns;I=Math.floor(I/f.columns);var p=f.JR()+1-Z*F;if(p1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; avD=function(f,D,F){return(f=f.levels[D])?f.yR(F):-1}; nD=function(f,D){var F=f.G.get(D);if(F)return F;F=f.levels.length;for(var Z=0;Z=D)return f.G.set(D,Z),Z;f.G.set(D,F-1);return F-1}; F2=function(f,D,F,Z){F=F.split("#");F=[F[1],F[2],0,F[3],F[4],-1,F[0],""].join("#");g.fT.call(this,f,D,F,0);this.J=null;this.X=Z?2:0}; Z_=function(f,D,F,Z){D_.call(this,f,0,void 0,D,!(Z===void 0||!Z));for(f=0;f30?f.limitedPlaybackDurationInSeconds=30:F<30&&F>10&&(f.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":f.limitedPlaybackDurationInSeconds=F*.2}}; sW=function(f,D){var F=D.raw_watch_next_response;if(!F){var Z=D.watch_next_response;Z&&(F=JSON.parse(Z))}if(F){f.xo=F;var I=f.xo.playerCueRangeSet;I&&g.oo(f,I);var p=f.xo.playerOverlays;if(p){var z=p.playerOverlayRenderer;if(z){var H=z.autonavToggle;H&&(f.autoplaySwitchButtonRenderer=g.Q(H,NMu),f.Z("web_player_autonav_use_server_provided_state")&&KT(f)&&(f.autonavState=f.autoplaySwitchButtonRenderer.enabled?2:1));var K=z.videoDetails;if(K){var k=K.embeddedPlayerOverlayVideoDetailsRenderer;var h=K.playerOverlayVideoDetailsRenderer; h&&(h.title&&(D.title=g.ih(h.title)),h.subtitle&&(D.subtitle=g.ih(h.subtitle)))}g.gk(f.Uy)&&(f.m9=!!z.addToMenu);gDy(f,z.shareButton);z.startPosition&&z.endPosition&&(f.progressBarStartPosition=z.startPosition,f.progressBarEndPosition=z.endPosition);var y=z.gatedActionsOverlayRenderer;y&&(f.p8=g.Q(y,e4J));var A,V,R,m=g.Q((A=f.getWatchNextResponse())==null?void 0:(V=A.playerOverlays)==null?void 0:(R=V.playerOverlayRenderer)==null?void 0:R.infoPanel,xaI);if(m){f.bH=Number(m==null?void 0:m.durationMs)|| NaN;if(m==null?0:m.infoPanelOverviewViewModel)f.AN=m==null?void 0:m.infoPanelOverviewViewModel;if(m==null?0:m.infoPanelDetailsViewModel)f.JS=m==null?void 0:m.infoPanelDetailsViewModel}f.showSeekingControls=!!z.showSeekingControls}}var b,U,S=(b=f.getWatchNextResponse())==null?void 0:(U=b.contents)==null?void 0:U.twoColumnWatchNextResults;if(S){var G=S.desktopOverlay&&g.Q(S.desktopOverlay,X4D);G&&(G.suppressShareButton&&(f.showShareButton=!1),G.suppressWatchLaterButton&&(f.m9=!1))}k&&Oew(f,D,k);var W= qP(0,D.autoplay_count),u=f.getWatchNextResponse(),E,Ds=(E=u.contents)==null?void 0:E.twoColumnWatchNextResults,Fu,Zs,za,ju=(Fu=u.playerOverlays)==null?void 0:(Zs=Fu.playerOverlayRenderer)==null?void 0:(za=Zs.autoplay)==null?void 0:za.playerOverlayAutoplayRenderer,Id=iew(f),QX,Yc=(QX=u.contents)==null?void 0:QX.singleColumnWatchNextResults;if(Yc){var s0;if(((s0=Yc.autoplay)==null?0:s0.autoplay)&&!Yc.playlist){var ly=Yc.autoplay.autoplay.sets,OJ={},WD=new LD(f.j()),XL=null,U0;if(ly){for(var c=g.a(ly), Yn=c.next();!Yn.done;Yn=c.next()){var E0=Yn.value.autoplayVideoRenderer;if(E0&&E0.compactVideoRenderer){XL=E0.compactVideoRenderer;break}}if(U0=ly[0].autoplayVideo){var HD=U0.clickTrackingParams;HD&&(OJ.itct=HD);OJ.autonav="1";OJ.playnext=String(W)}}else OJ.feature="related-auto";var S0=g.Q(U0,g.k7);if(XL){WD.videoId=XL.videoId;var M=XL.shortBylineText;M&&(WD.author=g.ih(M));var ff=XL.title;ff&&(WD.title=g.ih(ff))}else S0!=null&&S0.videoId&&(WD.videoId=S0.videoId);WD.fk=OJ;f.suggestions=[];f.ey=WD}}if(Id){for(var dU= [],qf=g.a(Id),e5=qf.next();!e5.done;e5=qf.next()){var HO=e5.value,PD=void 0,FL=null;if(HO.endScreenVideoRenderer){var bZ=HO.endScreenVideoRenderer,t=bZ.title;FL=new LD(f.j());FL.videoId=bZ.videoId;FL.lengthSeconds=bZ.lengthInSeconds||0;var T=bZ.publishedTimeText;T&&(FL.publishedTimeText=g.ih(T));var v=bZ.shortBylineText;v&&(FL.author=g.ih(v));var B=bZ.shortViewCountText;B&&(FL.shortViewCount=g.ih(B));if(t){FL.title=g.ih(t);var X=t.accessibility;if(X){var qw=X.accessibilityData;qw&&qw.label&&(FL.ariaLabel= qw.label)}}var n=bZ.navigationEndpoint;if(n){PD=n.clickTrackingParams;var e=g.Q(n,g.k7),L=g.Q(n,g.rF);e?FL.QX=e:L!=null&&(FL.watchUrl=L.url)}var UJ=bZ.thumbnailOverlays;if(UJ)for(var vD=g.a(UJ),$c=vD.next();!$c.done;$c=vD.next()){var Su=$c.value.thumbnailOverlayTimeStatusRenderer;if(Su)if(Su.style==="LIVE"){FL.isLivePlayback=!0;break}else if(Su.style==="UPCOMING"){FL.isUpcoming=!0;break}}FL.wB=Un(bZ.thumbnail)}else if(HO.endScreenPlaylistRenderer){var IU=HO.endScreenPlaylistRenderer,Mw=IU.navigationEndpoint; if(!Mw)continue;var lZ=g.Q(Mw,g.k7);if(!lZ)continue;var xJ=lZ.videoId;FL=new rK(f.j());FL.playlistId=IU.playlistId;FL.playlistLength=Number(IU.videoCount)||0;FL.Y=xJ||null;FL.videoId=xJ;var O0=IU.title;O0&&(FL.title=g.ih(O0));var cD=IU.shortBylineText;cD&&(FL.author=g.ih(cD));PD=Mw.clickTrackingParams;FL.wB=Un(IU.thumbnail)}FL&&(PD&&(FL.sessionData={itct:PD}),dU.push(FL))}f.suggestions=dU}if(ju){f.W1=!!ju.preferImmediateRedirect;f.Uq=f.Uq||!!ju.webShowNewAutonavCountdown;f.Gm=f.Gm||!!ju.webShowBigThumbnailEndscreen; if(f.Uq||f.Gm){var JB=Ds||null,ad=new LD(f.j());ad.videoId=ju.videoId;var Co=ju.videoTitle;if(Co){ad.title=g.ih(Co);var EJ=Co.accessibility;if(EJ){var Bu=EJ.accessibilityData;Bu&&Bu.label&&(ad.ariaLabel=Bu.label)}}var mA=ju.byline;mA&&(ad.author=g.ih(mA));var Pe=ju.publishedTimeText;Pe&&(ad.publishedTimeText=g.ih(Pe));var Ii=ju.shortViewCountText;Ii&&(ad.shortViewCount=g.ih(Ii));var Lo=ju.thumbnailOverlays;if(Lo)for(var Gc=g.a(Lo),AQ=Gc.next();!AQ.done;AQ=Gc.next()){var vE=AQ.value.thumbnailOverlayTimeStatusRenderer; if(vE)if(vE.style==="LIVE"){ad.isLivePlayback=!0;break}else if(vE.style==="UPCOMING"){ad.isUpcoming=!0;break}else if(vE.style==="DEFAULT"&&vE.text){ad.lengthText=g.ih(vE.text);var hg=vE.text.accessibility;if(hg){var yG=hg.accessibilityData;yG&&yG.label&&(ad.hT=yG.label||"")}break}}ad.wB=Un(ju.background);var IQ=ju.nextButton;if(IQ){var pA=IQ.buttonRenderer;if(pA){var s5=pA.navigationEndpoint;if(s5){var Vq=g.Q(s5,g.k7);Vq&&(ad.QX=Vq)}}}if(ju.topBadges){var zU=ju.topBadges[0];if(zU){var sB=g.Q(zU,nDX); sB&&sB.style==="BADGE_STYLE_TYPE_PREMIUM"&&(ad.YGo=!0)}}var q0=ju.alternativeTitle;q0&&(ad.Cl=g.ih(q0));var xH={autonav:"1",playnext:String(W)};ad.playlistId&&(xH.autoplay="1");if(JB){var r1,Lr,Ho,T7,bE=(r1=JB.autoplay)==null?void 0:(Lr=r1.autoplay)==null?void 0:(Ho=Lr.sets)==null?void 0:(T7=Ho[0])==null?void 0:T7.autoplayVideo;if(bE){var oQ=bE.clickTrackingParams;oQ&&(xH.itct=oQ);var KA=g.Q(bE,g.k7);KA&&(ad.dj=KA)}}else if(ju){var kE,j9,Tx,XD=(kE=ju.nextButton)==null?void 0:(j9=kE.buttonRenderer)== null?void 0:(Tx=j9.navigationEndpoint)==null?void 0:Tx.clickTrackingParams;XD&&(xH.itct=XD)}xH.itct||(xH.feature="related-auto");ad.fk=xH;f.suggestions||(f.suggestions=[]);f.ey=ad}ju.countDownSecs!=null&&(f.fP=ju.countDownSecs*1E3);ju.countDownSecsForFullscreen!=null&&(f.lC=ju.countDownSecsForFullscreen>=0?ju.countDownSecsForFullscreen*1E3:-1);f.Z("web_autonav_color_transition")&&ju.watchToWatchTransitionRenderer&&(f.watchToWatchTransitionRenderer=g.Q(ju.watchToWatchTransitionRenderer,Yhw))}var Mo= iew(f);if(Mo){var Th,ng,b8,oc=Mo==null?void 0:(Th=Mo[0])==null?void 0:(ng=Th.endScreenVideoRenderer)==null?void 0:(b8=ng.navigationEndpoint)==null?void 0:b8.clickTrackingParams,Mk=g.jb(f);oc&&Mk&&(Mk.sessionData={itct:oc})}f.xo.currentVideoThumbnail&&(f.wB=Un(f.xo.currentVideoThumbnail));var t6,AD,$W,Vj,RJ,S6=(t6=f.xo)==null?void 0:(AD=t6.contents)==null?void 0:($W=AD.twoColumnWatchNextResults)==null?void 0:(Vj=$W.results)==null?void 0:(RJ=Vj.results)==null?void 0:RJ.contents;if(S6&&S6[0]){var Pc= S6[0].videoPrimaryInfoRenderer;Pc&&Pc&&Pc.subtitle&&(f.Vu=g.ih(Pc.subtitle))}if(S6&&S6[1]){var la,XM,E_,vK,fk=(la=S6[1].videoSecondaryInfoRenderer)==null?void 0:(XM=la.owner)==null?void 0:(E_=XM.videoOwnerRenderer)==null?void 0:(vK=E_.thumbnail)==null?void 0:vK.thumbnails;fk&&fk.length&&(f.profilePicture=fk[fk.length-1].url)}var vv=KC(D),OX,PzE=(OX=f.getWatchNextResponse())==null?void 0:OX.onResponseReceivedEndpoints;if(PzE)for(var ftD=g.a(PzE),Nd=ftD.next();!Nd.done;Nd=ftD.next()){var g6=Nd.value; g.Q(g6,ij)&&(f.TA=g.Q(g6,ij));var Gy=g.Q(g6,Pmu),Dhy=void 0;if((Dhy=Gy)==null?0:Dhy.entityKeys)f.Jv=Gy.entityKeys||[],Gy.visibleOnLoadKeys&&(f.visibleOnLoadKeys=Gy.visibleOnLoadKeys)}if(f.Z("web_key_moments_markers")){var iGY=g.hZ.getState().entities,hMC=g.xl("visibility_override","markersVisibilityOverrideEntity");var J9=OA(iGY,"markersVisibilityOverrideEntity",hMC);f.rY=(J9==null?void 0:J9.videoId)===(f.videoId||vv)&&(J9==null?0:J9.visibilityOverrideMarkersKey)?J9.visibilityOverrideMarkersKey:f.visibleOnLoadKeys; f.visibleOnLoadKeys=[].concat(g.w(f.rY))}}}; BMD=function(f,D){if(D=D.raw_reel_item_watch_response)f.reelItemWatchResponse=D}; fqJ=function(f){return!!f&&isFinite(f)&&f>1E9}; KT=function(f){var D;return((D=f.autoplaySwitchButtonRenderer)==null?void 0:D.enabled)!==void 0}; ya=function(f){return!!(f.B&&f.B.videoInfos&&f.B.videoInfos.length)}; g.df=function(f){var D=f.S;f.Z("html5_gapless_unlimit_format_selection")&&AZ(f)&&(D=!1);var F=!!f.Y&&f.Y.jj,Z=f.Uy,I=f.v$(),p=$7(f),z=f.zx,H=D,K=f.isOtf();D=f.hV();var k=f.HL,h=f.getUserAudio51Preference(),y=Va(f),A=Ro(f),V=new Oxa(Z);if(Z.Oq()||Z.Z("html5_logging_format_selection"))V.Y=!0;V.LQ=p;V.zx=z&&Z.N;V.rY=h;g.go("windows nt 5.1")&&!g.ji&&(V.Br=!0);if(p=I)p=g.k3(Z)?P0f(Z):!1;p&&(V.Bs=!0);H&&(V.Br=!0,V.WI=!0);K&&!Z.Z("html5_otf_prefer_vp9")&&(V.Br=!0);Z.playerStyle==="picasaweb"&&(K&&(V.Br= !1),V.KQ=!1);k&&(V.Br=!0);Y9(Z.X,Ph.CHANNELS)&&(Z.Z("html5_enable_ac3")&&(V.G=!0),Z.Z("html5_enable_eac3")&&(V.X=!0),Z.Z("html5_enable_ac3_gapless")&&(V.Ir=!0));Z.Z("html5_block_8k_hfr")&&(V.eT=!0);V.T=g.Pf(Z.experiments,"html5_max_selectable_quality_ordinal");V.S=g.Pf(Z.experiments,"html5_min_selectable_quality_ordinal");WL&&(V.BI=480);if(F||I)V.KQ=!1;V.JN=!1;V.disableAv1=y;F=Ir(Z,V.J,void 0,V.disableAv1);F>0&&F<2160&&(qq()||Z.Z("html5_format_hybridization"))&&(V.J.supportsChangeType=+qq(),V.QZ= F);F>=2160&&(V.Tx=!0);Amf()&&!Z.Z("disable_av1_setting")&&(V.J.serveVp9OverAv1IfHigherRes=0,V.OI=!1);V.hV=D;V.Ps=g.gt||I8()&&!D?!1:!0;V.N=Z.Z("html5_format_hybridization");V.Z5=Z.Z("html5_disable_encrypted_vp9_live_non_2k_4k");V.Wk=A;G6(f)&&(V.Xt=!0);Xm()&&f.playerResponse&&f.playerResponse.playerConfig&&f.playerResponse.playerConfig.webPlayerConfig&&f.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(V.G=!0,V.X=!0);f.S&&f.isAd()&&(f.y3&&(V.Jb=f.y3),f.Q3&&(V.B=f.Q3));f.Lw()&& (V.xo=g.Pf(f.Uy.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));V.dY=f.isLivePlayback&&f.S$()&&f.Uy.Z("html5_drm_live_audio_51");V.Uq=f.UP;V.gw=!G6(f);return f.b3=V}; Va=function(f){return f.Uy.Z("html5_disable_av1")?!0:!1}; DBw=function(f){Ul("drm_pb_s",void 0,f.Jb);f.xq||f.Y&&eh(f.Y);var D={};f.Y&&(D=v1E(f.Ye,g.df(f),f.Uy.X,f.Y,function(F){return f.publish("ctmp","fmtflt",F)},!0,new Set)); D=new y5(D,f.Uy,f.xB,f.useCobaltWidevine?Xm()?Qa(f):!1:!1,function(F,Z){f.Gx(F,Z)}); g.N(f,D);f.Gv=!1;f.loading=!0;fTf(D,function(F){Ul("drm_pb_f",void 0,f.Jb);for(var Z=g.a(F),I=Z.next();!I.done;I=Z.next())switch(I=I.value,I.flavor){case "fairplay":I.xq=f.xq;I.Nn=f.Nn;I.FL=f.FL;break;case "widevine":I.IH=f.IH}f.n7=F;if(f.n7.length>0&&(f.X=f.n7[0],f.Uy.Oq())){F={};Z=g.a(Object.entries(f.X.Y));for(I=Z.next();!I.done;I=Z.next()){var p=g.a(I.value);I=p.next().value;p=p.next().value;var z="unk";(I=I.match(/(.*)codecs="(.*)"/))&&(z=I[2]);F[z]=p}f.Gx("drmProbe",F)}f.EL()})}; FqD=function(f,D){if(D.length===0||CT(f))return null;f.Uy.X.J&&(Df=!0);var F=f.Sp;var Z=f.lengthSeconds,I=f.isLivePlayback,p=f.rU,z=f.Uy,H=vYX(D);if(I||p){z=z.experiments;Z=new Lh("",z,!0);Z.J=!p;Z.jj=!0;Z.isManifestless=!0;Z.isLive=!p;Z.rU=p;I=g.a(D);for(H=I.next();!H.done;H=I.next()){var K=H.value;H=Jq(K,F);var k=yX(36,K);k=Nx(k.OF||K.url||"",k.oT,k.s);var h=k.get("id");h&&h.includes("%7E")&&(Z.Bs=!0);var y=void 0;h=(y=z)==null?void 0:y.Hs("html5_max_known_end_time_rebase");y=Number(K.targetDurationSec|| 5);K=Number(K.maxDvrDurationSec||14400);var A=Number(k.get("mindsq")||k.get("min_sq")||"0"),V=Number(k.get("maxdsq")||k.get("max_sq")||"0")||Infinity;Z.Ca=Z.Ca||A;Z.hJ=Z.hJ||V;var R=!xY(H.mimeType);k&&WT(Z,new RA(k,H,{x3:y,mV:R,NN:K,Ca:A,hJ:V,AK:300,rU:p,nu:h}))}F=Z}else if(H==="FORMAT_STREAM_TYPE_OTF"){Z=Z===void 0?0:Z;p=new Lh("",z.experiments,!1);p.duration=Z||0;z=g.a(D);for(Z=z.next();!Z.done;Z=z.next())Z=Z.value,I=Jq(Z,F,p.duration),H=yX(32,Z),(H=Nx(H.OF||Z.url||"",H.oT,H.s))&&(I.streamType=== "FORMAT_STREAM_TYPE_OTF"?WT(p,new dq(H,I,"sq/0")):WT(p,new aA(H,I,DD(Z.initRange),DD(Z.indexRange))));p.isOtf=!0;F=p}else{Z=Z===void 0?0:Z;p=new Lh("",z.experiments,!1);p.duration=Z||0;z=g.a(D);for(Z=z.next();!Z.done;Z=z.next())k=Z.value,Z=Jq(k,F,p.duration),I=DD(k.initRange),H=DD(k.indexRange),h=yX(35,k),(k=Nx(h.OF||k.url||"",h.oT,h.s))&&WT(p,new aA(k,Z,I,H));F=p}D.length>0&&(D=D[0],Ht(f)&&D.url&&(f.Fd=f.Fd||EDX(D.url)));D=f.isLivePlayback&&!f.rU&&!f.Al&&!f.isPremiere;f.Z("html5_live_head_playable")&& (!mj(f)&&D&&f.Gx("missingLiveHeadPlayable",{}),f.Uy.Bs==="yt"&&(F.jT=!0));return F}; ZID=function(f){var D,F,Z=((D=f.playerResponse)==null?void 0:(F=D.streamingData)==null?void 0:F.adaptiveFormats)||[];D=null;if(Z.length>0)D=FqD(f,Z);else if(!f.Z("html5_deprecate_adaptive_formats_string")){f.Gx("pafmtstr",{s:f.adaptiveFormats.substring(0,50)});if((Z=f.adaptiveFormats)&&!CT(f)){f.Uy.X.J&&(Df=!0);Z=TZ(Z);D=f.Sp;var I=f.lengthSeconds,p=f.isLivePlayback;F=f.rU;var z=f.Uy,H=UJw(Z);if(p||F){z=z==null?void 0:z.experiments;I=new Lh("",z,!0);I.jj=!0;I.isManifestless=!0;I.J=!F;I.isLive=!F; I.rU=F;p=g.a(Z);for(H=p.next();!H.done;H=p.next()){var K=H.value;H=uQ(K,D);var k=Nx(K.url,K.sp,K.s),h=k.get("id");h&&h.includes("%7E")&&(I.Bs=!0);var y=void 0;h=(y=z)==null?void 0:y.Hs("html5_max_known_end_time_rebase");y=Number(K.target_duration_sec)||5;K=Number(K.max_dvr_duration_sec)||14400;var A=Number(k.get("mindsq")||k.get("min_sq")||"0"),V=Number(k.get("maxdsq")||k.get("max_sq")||"0")||Infinity;I.Ca=I.Ca||A;I.hJ=I.hJ||V;var R=!xY(H.mimeType);k&&WT(I,new RA(k,H,{x3:y,mV:R,NN:K,Ca:A,hJ:V,AK:300, rU:F,nu:h}))}D=I}else if(H==="FORMAT_STREAM_TYPE_OTF"){I=I===void 0?0:I;F=new Lh("",z==null?void 0:z.experiments,!1);F.duration=I||0;z=g.a(Z);for(I=z.next();!I.done;I=z.next())if(k=I.value,I=uQ(k,D,F.duration),p=Nx(k.url,k.sp,k.s))I.streamType==="FORMAT_STREAM_TYPE_OTF"?WT(F,new dq(p,I,"sq/0")):(H=PX(k.init),k=PX(k.index),WT(F,new aA(p,I,H,k)));F.isOtf=!0;D=F}else{I=I===void 0?0:I;F=new Lh("",z==null?void 0:z.experiments,!1);F.duration=I||0;z=g.a(Z);for(I=z.next();!I.done;I=z.next())k=I.value,I=uQ(k, D,F.duration),p=PX(k.init),H=PX(k.index),(k=Nx(k.url,k.sp,k.s))&&WT(F,new aA(k,I,p,H));D=F}Z.length>0&&(Z=Z[0],Ht(f)&&Z.url&&(f.Fd=f.Fd||EDX(Z.url)));Z=f.isLivePlayback&&!f.rU&&!f.Al&&!f.isPremiere;f.Z("html5_live_head_playable")&&(!mj(f)&&Z&&f.Gx("missingLiveHeadPlayable",{}),f.Uy.Bs==="yt"&&(D.jT=!0))}else D=null;f.Gx("pafmts",{isManifestFilled:!!D})}if(!D)return!1;bj(f,D);return!0}; CT=function(f){return Xm()?!Qa(f):nO()?!(!f.xq||!f.Z("html5_enable_safari_fairplay")&&m0()):!1}; Qa=function(f){return f.Z("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.oo=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next())if(F=F.value,F.cueRangeSetIdentifier){var Z=void 0;f.KH.set(F.cueRangeSetIdentifier,(Z=F.playerCueRanges)!=null?Z:[])}}; ME=function(f){return!(!f.Y||!f.Y.isManifestless)}; tZ=function(f){return f.LQ?f.isLowLatencyLiveStream&&f.Y!=null&&XY(f.Y)>=5:f.isLowLatencyLiveStream&&f.Y!=void 0&&XY(f.Y)>=5}; IqX=function(f){return Xm()&&Qa(f)?!1:CT(f)&&(g.jo(f.Uy)?!f.isLivePlayback:f.hlsvp)||!m0()||f.X_?!0:!1}; zTX=function(f){f.loading=!0;f.WI=!1;if(pwd(f))g.mau(f.videoId).then(function(Z){var I;if((I=f.playerResponse)!=null&&I.streamingData){I=[];Z=g.a(Z);for(var p=Z.next();!p.done;p=Z.next())p=Object.assign({},p.value),p.signatureCipher="",I.push(p);I.length<2&&f.Gx("offmlf",{len:I.length});I=FqD(f,I);$7(f)&&uhu(I,!1);bj(f,I);f.Gx("dlr",{})}else f.Gx("offsdm",{cotn:f.Vp?f.Vp.cotn:"0",cpn:f.clientPlaybackNonce})}).then(function(){f.EL()}); else{mE(f.Fl)||g.UT(new g.by("DASH MPD Origin invalid: ",f.Fl));var D=f.Fl,F=g.Pf(f.Uy.experiments,"dash_manifest_version")||4;D=g.tL(D,{mpd_version:F});f.isLowLatencyLiveStream&&f.latencyClass!=="NORMAL"||(D=g.tL(D,{pacing:0}));lpc(D,f.Uy.experiments,f.isLivePlayback).then(function(Z){f.MR()||(bj(f,Z,!0),Ul("mrc",void 0,f.Jb),f.EL())},function(Z){f.MR()||(f.loading=!1,f.publish("dataloaderror",new g.px("manifest.net.retryexhausted",{backend:"manifest", rc:Z.status},1)))}); Ul("mrs",void 0,f.Jb)}}; sTa=function(f){var D;return!((D=f.Uy.getWebPlayerContextConfig())==null||!D.enableProximaLowLatency)}; Sb=function(f){if(!f.isProximaLatencyEligible)return 0;var D=b9();return sTa(f)?2:D===1?1:f.Z("html5_enable_proxima")?2:0}; bj=function(f,D,F){F=F===void 0?!1:F;f.vt=void 0;f.Y=D;g.N(f,D);D.Ca=f.Ca;D.hJ=f.hJ;D.O3=f.O3;D.DF=f.DF;D.vC=f.vC;f.mU&&(D.Jb=new uY(f.mU));(f.v$()||g.ct(f))&&f.Y3.push("webgl");f.Y.isLive||(f.isLivePlayback=!1);var Z=D.sourceUrl.split("/");if(f.LQ?Z.indexOf("manifest_duration")!==-1:Z.indexOf("manifest_duration")!=-1)f.qA=Number(Z[Z.indexOf("manifest_duration")+1]);if(D.J||D.isManifestless)D.subscribe("clienttemp",f.Gx,f),F?D.subscribe("refresh",f.Xk,f):D.subscribe("cuepointsadded",f.Yc,f);eh(D)? f.Gv=!0:$S=void 0;f.Al&&(D.G=f.Al,D.isLive=!0,f.isLivePlayback=!0);D.isPremiere=f.isPremiere;D.isLiveHeadPlayable=f.isLiveHeadPlayable}; qkT=function(f,D){var F=D||IqX(f)||f.isExternallyHostedPodcast;if(!f.Y||F)return f.Gx("skipDash",{dm:!!f.Y,air:D,dd:f.X_,mss:m0(),"3pp":f.isExternallyHostedPodcast}),Gr();$7(f)&&uhu(f.Y,f.isLivePlayback);return wo().then(function(){return GqD(f.Ye,g.df(f),f.Uy.X,f.Y,f.X,function(Z){return f.publish("ctmp","fmtflt",Z)},f.vO,UW(f)).then(function(Z){f.sX(Z); f.Ye.J=null;/^av/.test(f.clientPlaybackNonce)&&f.b3&&f.Gx("av1",f.b3.J)})})}; oRf=function(f,D){if(D&&f.hlsvp)return Gr();if(f.hlsFormats){if(D=TZ(f.hlsFormats)){for(var F=[],Z=g.a(D),I=Z.next();!I.done;I=Z.next()){I=I.value;I.url&&(I.url=w4T(I.url));var p=void 0;((p=f.b3)==null?0:p.Y)&&F.push(I.itag)}var z;((z=f.b3)==null?0:z.Y)&&F.length>0&&f.Gx("hlsfmt",{itags:F.join(".")})}f.OI=hwJ(f.Uy,D);f.OI&&HIE(f,f.OI);z=f.clientPlaybackNonce;var H,K,k,h;return Rww(f.Uy,f.isAd(),D,(h=(H=f.playerResponse)==null?void 0:(K=H.captions)==null?void 0:(k=K.playerCaptionsRenderer)==null?void 0: k.baseUrl)!=null?h:null,f.HQ,z,function(y){return f.publish("ctmp","hlsflt",y)}).then(function(y){for(var A=0,V=[],R=g.a(y),m=R.next();!m.done;m=R.next()){m=m.value; var b=void 0;V.push((b=m.getInfo())==null?void 0:b.itag);var U=b=void 0;((b=m.getInfo())==null?void 0:(U=b.audio)==null?void 0:U.numChannels)>A&&(A=m.getInfo().audio.numChannels)}A>2&&f.Gx("hlschl",{mn:A});var S;((S=f.b3)==null?0:S.Y)&&f.Gx("hlsfmtaf",{itags:V.join(".")});var G;if(f.Z("html5_enable_vp9_fairplay")&&((G=f.X)==null?0:KM(G)))for(f.Gx("drm",{sbdlfbk:1}),A=g.a(f.n7),V=A.next();!V.done;V=A.next())if(V=V.value,or(V)){f.X=V;break}vt(f,y)})}return Gr()}; KqT=function(f){if(f.isExternallyHostedPodcast&&f.FH){var D=TZ(f.FH);if(!D[0])return Gr();f.kp=D[0];return CxD(f.Uy,D[0]).then(function(F){vt(f,F)})}return f.Tm&&f.YF?Q7c(f.Uy,f.isAd(),f.Tm).then(function(F){vt(f,F)}):Gr()}; jTE=function(f){if(f.isExternallyHostedPodcast)return Gr();var D=TZ(f.FH,f.TJ);if(f.hlsvp){var F=Gjs(f.hlsvp,f.clientPlaybackNonce,f.HQ);D.push(F)}return dMf(f.Uy,f.isAd(),D,k4c(f)).then(function(Z){vt(f,Z)})}; vt=function(f,D){f.JN=D;f.sX(new Ef(g.M2(f.JN,function(F){return F.getInfo()})))}; k4c=function(f){var D={cpn:f.clientPlaybackNonce,c:f.Uy.Y.c,cver:f.Uy.Y.cver};f.HH&&(D.ptk=f.HH,D.oid=f.aX,D.ptchn=f.AC,D.pltype=f.va,f.Zr&&(D.m=f.Zr));return D}; g.ao=function(f){return CT(f)&&f.xq?(f={},f.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",f):f.J&&f.J.Sp||null}; iIf=function(f){var D=GZ(f);return D&&D.text?g.ih(D.text):f.paidContentOverlayText}; hTE=function(f){var D=GZ(f);return D&&D.durationMs?gl(D.durationMs):f.paidContentOverlayDurationMs}; GZ=function(f){var D,F,Z;return f.playerResponse&&f.playerResponse.paidContentOverlay&&f.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.Q((D=f.xo)==null?void 0:(F=D.playerOverlays)==null?void 0:(Z=F.playerOverlayRenderer)==null?void 0:Z.playerDisclosure,ySu)||null}; ASy=function(f){if(!f)return null;f=g.a(f);for(var D=f.next();!D.done;D=f.next()){var F=void 0,Z=void 0;if(D=(F=D.value.adPlacementRenderer)==null?void 0:(Z=F.renderer)==null?void 0:Z.videoAdTrackingRenderer)return D}return null}; wf=function(f){var D="";if(f.d2)return f.d2;f.isLivePlayback&&(D=f.allowLiveDvr?"dvr":f.isPremiere?"lp":f.Al?"window":"live");f.rU&&(D="post");return D}; g.Wt=function(f,D){return typeof f.keywords[D]!=="string"?null:f.keywords[D]}; $BI=function(f){return!!f.Z7||!!f.qv||!!f.mD||!!f.Gw||f.Go}; g.Bt=function(f){return!!(f.Fl||f.FH||f.Tm||f.hlsvp||f.yn())}; zZ=function(f){if(f.Z("html5_onesie")&&f.errorCode)return!1;var D=g.e0(f.Y3,"ypc");f.ypcPreview&&(D=!1);return f.u4()&&!f.loading&&(g.Bt(f)||g.e0(f.Y3,"heartbeat")||D)}; TZ=function(f,D){f=pO(f);var F={};if(D){D=g.a(D.split(","));for(var Z=D.next();!Z.done;Z=D.next())(Z=Z.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(F[Z[1]]={width:Z[2],height:Z[3]})}D=g.a(f);for(Z=D.next();!Z.done;Z=D.next()){Z=Z.value;var I=F[Z.itag];I&&(Z.width=I.width,Z.height=I.height)}return f}; gDy=function(f,D){f.showShareButton=!!D;var F,Z,I=((F=g.Q(D,g.Ma))==null?void 0:F.navigationEndpoint)||((Z=g.Q(D,g.Ma))==null?void 0:Z.command);I&&(f.zv=!!g.Q(I,VZI))}; WVT=function(f,D){var F=D.raw_embedded_player_response;if(!F){var Z=D.embedded_player_response;Z&&(F=JSON.parse(Z))}F&&(f.QK=F);if(f.QK){f.embeddedPlayerConfig=f.QK.embeddedPlayerConfig||null;if(F=f.QK.videoFlags)F.playableInEmbed&&(f.allowEmbed=!0),F.isPrivate&&(f.isPrivate=!0),F.userDisplayName&&(D.user_display_name=F.userDisplayName),F.userDisplayImage&&(D.user_display_image=F.userDisplayImage);if((F=f.QK.embedPreview)&&F.thumbnailPreviewRenderer){F=F.thumbnailPreviewRenderer;nNc(f,F.controlBgHtml); if(Z=F.defaultThumbnail)f.wB=Un(Z);f.Z("embeds_web_enable_search_button")&&F.searchButton&&(Z=g.Q(F.searchButton,g.Ma))&&(f.ME=g.Q(Z.navigationEndpoint,g.rf));(Z=g.Q(F==null?void 0:F.videoDetails,RTu))&&Oew(f,D,Z);Z=g.Q(F==null?void 0:F.videoDetails,dBu);f.m9=!!F.addToWatchLaterButton;gDy(f,F.shareButton);if(Z==null?0:Z.musicVideoType)f.musicVideoType=Z.musicVideoType;var I,p,z,H,K;if(Z=g.Q((I=f.getEmbeddedPlayerResponse())==null?void 0:(p=I.embedPreview)==null?void 0:(z=p.thumbnailPreviewRenderer)== null?void 0:(H=z.playButton)==null?void 0:(K=H.buttonRenderer)==null?void 0:K.navigationEndpoint,g.k7))tzf(f,Z),f.videoId=Z.videoId||f.videoId;F.videoDurationSeconds&&(f.lengthSeconds=gl(F.videoDurationSeconds));F.webPlayerActionsPorting&&OjI(f,F.webPlayerActionsPorting);if(I=g.Q(F==null?void 0:F.playlist,QTu)){f.sE=!0;p=[];z=Number(I.currentIndex);if(I.contents)for(H=0,K=I.contents.length;H0:f.qb?!1:f.Uy.sE||f.Uy.t6||!g.LM(f.Uy)?!0:!1:(f.qb?0:f.BI)&&g.LM(f.Uy)?!0:!1;f.Z("html5_log_detailpage_autoplay")&&X2(f)==="detailpage"&&f.Gx("autoplay_info",{autoplay:f.qe,autonav:f.isAutonav,wasDompaused:f.qb,result:D});return D}; g.Pt=function(f){return f.oauthToken||f.Uy.K7}; vRJ=function(f){if(f.Z("html5_stateful_audio_normalization")){var D=1,F=g.Pf(f.Uy.experiments,"html5_default_ad_gain");F&&f.isAd()&&(D=F);var Z,I;F=(I=(Z=f.G)==null?void 0:Z.audio.G)!=null?I:f.sJ;if(F==null||isNaN(F))f=UBa(f);else{Z=(0,g.m5)();f.K7=1;I=Z-f.Uy.i_<=f.maxStatefulTimeThresholdSec*1E3;f.applyStatefulNormalization&&I?f.K7=2:I||(f.Uy.y3=Infinity,f.Uy.i_=NaN);I=(f.K7===2?g.PZ(f.Uy.y3,f.minimumLoudnessTargetLkfs,f.loudnessTargetLkfs):f.loudnessTargetLkfs)-F;if(f.K7!==2){var p,z,H,K,k=((p= f.playerResponse)==null?void 0:(z=p.playerConfig)==null?void 0:(H=z.audioConfig)==null?void 0:(K=H.loudnessNormalizationConfig)==null?void 0:K.statelessLoudnessAdjustmentGain)||0;I+=k}I=Math.min(I,0);f.preserveStatefulLoudnessTarget&&(f.Uy.y3=F+I,f.Uy.i_=Z);f=Math.min(1,Math.pow(10,I/20))||D}}else f=UBa(f);return f}; UBa=function(f){var D=1,F=g.Pf(f.Uy.experiments,"html5_default_ad_gain");F&&f.isAd()&&(D=F);var Z,I;F=((Z=f.G)==null?void 0:Z.audio.B)!=null?(I=f.G)==null?void 0:I.audio.B:f.Bh;isNaN(F)||(f.K7=4);return Math.min(1,Math.pow(10,-F/20))||D}; $7=function(f){var D=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],F=V5(f.Uy)==="TVHTML5_SIMPLY"&&f.Uy.Y.ctheme==="MUSIC";!f.Qp&&(g.rQ(f.Uy)||g.HU(f.Uy)||F)&&(D.includes(f.musicVideoType)||f.isExternallyHostedPodcast)&&(f.Qp=!0);if(D=g.xo())D=/Starboard\/([0-9]+)/.exec(g.DM()),D=(D?parseInt(D[1],10):NaN)<10;F=f.Uy;F=(V5(F)==="TVHTML5_CAST"||V5(F)==="TVHTML5"&&(F.Y.cver.startsWith("6.20130725")||F.Y.cver.startsWith("6.20130726")))&&f.Uy.Y.ctheme==="MUSIC";var Z;if(Z=!f.Qp)F||(F= f.Uy,F=V5(F)==="TVHTML5"&&F.Y.cver.startsWith("7")),Z=F;Z&&!D&&(D=f.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",F=(f.Z("cast_prefer_audio_only_for_atv_and_uploads")||f.Z("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&f.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",D||F||f.isExternallyHostedPodcast)&&(f.Qp=!0);return f.Uy.deviceIsAudioOnly||f.Qp&&f.Uy.N}; Ro=function(f){var D,F,Z;return((D=f.playerResponse)==null?void 0:(F=D.playerConfig)==null?void 0:(Z=F.compositeVideoConfig)==null?void 0:Z.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; aqc=function(f){var D,F,Z,I=(D=f.playerResponse)==null?void 0:(F=D.playerConfig)==null?void 0:(Z=F.compositeVideoConfig)==null?void 0:Z.sourceConfigs,p,z,H;f=(p=f.playerResponse)==null?void 0:(z=p.playerConfig)==null?void 0:(H=z.compositeVideoConfig)==null?void 0:H.defaultActiveSourceVideoId;if(!I||!I.length)return"";f||(f=I[0].videoId||"");I=g.a(I);for(p=I.next();!p.done;p=I.next())if(p=p.value,p.videoId===f&&p.audioTracks)for(p=g.a(p.audioTracks),z=p.next();!z.done;z=p.next())if(z=z.value,z.isDefaultForSource)return z.id|| "";return""}; g.G4E=function(f){return f.jj()&&G6(f)}; fN=function(f){var D,F,Z;return!!((D=f.playerResponse)==null?0:(F=D.playerConfig)==null?0:(Z=F.mediaCommonConfig)==null?0:Z.splitScreenEligible)}; DU=function(f){var D;return!((D=f.playerResponse)==null||!D.compositePlayabilityStatus)}; wwE=function(f){return isNaN(f)?0:Math.max((Date.now()-f)/1E3-30,0)}; F9=function(f){return!(!f.b_||!f.Uy.N)&&f.yn()}; ZU=function(f){return f.hE&&f.enableServerStitchedDai}; Wqy=function(f){return f.dc&&!f.mU}; G6=function(f){var D=f.Z("html5_enable_sabr_on_drive")&&f.Uy.Bs==="gd";if(f.UN)return f.dc&&f.Gx("fds",{fds:!0},!0),!1;if(f.Uy.Bs!=="yt"&&!D)return f.dc&&f.Gx("dsvn",{ns:f.Uy.Bs},!0),!1;if(f.cotn||!f.Y||f.Y.isOtf&&!f.Z("html5_enable_sabr_otf_in_client")||f.B&&!f.B.Y||f.oV&&!f.Z("html5_enable_sabr_csdai"))return!1;if(f.Z("html5_use_sabr_requests_for_debugging"))return!0;f.dc&&f.Gx("esfw",{usbc:f.dc,hsu:!!f.mU},!0);if(f.dc&&f.mU)return!0;if(f.Z("html5_remove_client_sabr_determination"))return!1;var F= !f.Y.jj&&!f.S$();D=F&&Ik&&f.Z("html5_enable_sabr_vod_streaming_xhr");F=F&&!Ik&&f.Z("html5_enable_sabr_vod_non_streaming_xhr");var Z=pN(f),I=f.Z("html5_enable_sabr_drm_vod_streaming_xhr")&&Ik&&f.S$()&&!f.Y.jj&&(f.drmProduct==="1"?!1:!0);(D=D||F||Z||I)&&!f.mU&&f.Gx("sabr",{loc:"m"},!0);return D&&!!f.mU}; pN=function(f){var D;if(!(D=Ik&&f.jj()&&f.S$()&&(f.drmProduct==="1"?!1:!0)&&f.Z("html5_sabr_live_drm_streaming_xhr"))){D=f.jj()&&!f.S$()&&Ik;var F=f.jj()&&f.latencyClass!=="ULTRALOW"&&!f.isLowLatencyLiveStream&&f.Z("html5_sabr_live_normal_latency_streaming_xhr"),Z=f.isLowLatencyLiveStream&&f.Z("html5_sabr_live_low_latency_streaming_xhr"),I=f.latencyClass==="ULTRALOW"&&f.Z("html5_sabr_live_ultra_low_latency_streaming_xhr");D=D&&(F||Z||I)}F=D;D=f.enableServerStitchedDai&&F&&f.Z("html5_enable_sabr_ssdai_streaming_xhr"); F=!f.enableServerStitchedDai&&F;Z=f.jj()&&!Ik&&f.Z("html5_enable_sabr_live_non_streaming_xhr");f=Ik&&(f.nE()||fN(f)&&f.Z("html5_enable_sabr_for_lifa_eligible_streams"));return D||F||Z||f}; UW=function(f){var D=f.Z("html5_enable_server_format_filter")&&!f.S$(),F=f.Z("html5_enable_server_format_filter_for_drm")&&f.S$();return G6(f)&&(D||F)}; pwd=function(f){var D;if(D=!!f.cotn)D=f.videoId,D=!!D&&g.NO(D)===1;return D&&!f.b_}; g.zy=function(f){if(!f.Y||!f.J||!f.G)return!1;var D=f.Y.Y,F=!!D[f.J.id]&&sJ(9,D[f.J.id].T3.Y);D=!!D[f.G.id]&&sJ(1,D[f.G.id].T3.Y);return(f.J.itag==="0"||F)&&D}; sz=function(f){return f.BL?["OK","LIVE_STREAM_OFFLINE"].includes(f.BL.status):!0}; CUc=function(f){return(f=f.gM)&&f.showError?f.showError:!1}; qV=function(f,D){return f.Z(D)?!0:(f.fflags||"").includes(D+"=true")}; lvJ=function(f,D){D.inlineMetricEnabled&&(f.inlineMetricEnabled=!0);D.playback_progress_0s_url&&(f.Gw=new yxu(D));if(D=D.video_masthead_ad_quartile_urls)f.qv=D.quartile_0_url,f.kQ=D.quartile_25_url,f.NV=D.quartile_50_url,f.dg=D.quartile_75_url,f.jn=D.quartile_100_url,f.mD=D.quartile_0_urls,f.lx=D.quartile_25_urls,f.SE=D.quartile_50_urls,f.Iw=D.quartile_75_urls,f.zC=D.quartile_100_urls}; s4f=function(f){var D={};f=g.a(f);for(var F=f.next();!F.done;F=f.next()){F=F.value;var Z=F.split("=");Z.length===2?D[Z[0]]=Z[1]:D[F]=!0}return D}; lwD=function(f){if(f){if(zhI(f))return f;f=dwf(f);if(zhI(f,!0))return f}return""}; g.B5E=function(f){return f.captionsLanguagePreference||f.Uy.captionsLanguagePreference||g.Wt(f,"yt:cc_default_lang")||f.Uy.OI}; Hv=function(f){return!(!f.isLivePlayback||!f.hasProgressBarBoundaries())}; g.jb=function(f){var D;return f.ey||((D=f.suggestions)==null?void 0:D[0])||null}; rSu=function(f,D){return D!=null?zf(f.S,D):f.S?f.S:f.Uy.preferGapless&&f.Uy.supportsGaplessShorts()}; g.ok=function(f){var D,F;return!!((D=f.embeddedPlayerConfig)==null?0:(F=D.embeddedPlayerFlags)==null?0:F.enableMusicUx)}; Lqd=function(f){return f.S||f.Z("web_player_media_session_infinity")&&f.isLivePlayback}; KN=function(f){return f.Uy.G&&f.isPrivate}; lqf=function(f){var D,F;return((D=f.playerResponse)==null?0:(F=D.playerConfig)==null?0:F.daiConfig)?f.jJ?1:f.Nc?2:0:3}; g.jK=function(f){var D=f.j(),F=g.ku(D),Z=D.JS;g.gk(D)&&(Z&&(F.thirdParty=Object.assign({},F.thirdParty,{embedUrl:Z})),QNd(F,f));if(Z=f.Bs)F.clickTracking={clickTrackingParams:Z};else if(g.gk(f.j())&&g.nc("EVENT_ID"))F.clickTracking={clickTrackingParams:g.nc("EVENT_ID")};else if(D.Z("html5_log_missing_itct")){var I;Z=new g.by("Missing ITCT in InnerTubeContext",{isAd:f.isAd(),CIs:(I=D.getWebPlayerContextConfig())==null?void 0:I.contextId});g.SJ(Z)}I=F.client||{};Z="EMBED";var p=X2(f);p==="leanback"? Z="WATCH":D.Z("gvi_channel_client_screen")&&p==="profilepage"?Z="CHANNEL":f.HL?Z="LIVE_MONITOR":p==="detailpage"?Z="WATCH_FULL_SCREEN":p==="adunit"?Z="ADUNIT":p==="sponsorshipsoffer"&&(Z="UNKNOWN");I.clientScreen=Z;if(Z=f.kidsAppInfo)I.kidsAppInfo=JSON.parse(Z);(p=f.oE)&&!Z&&(I.kidsAppInfo={contentSettings:{ageUpMode:ERE[p]}});if(Z=f.GD)I.unpluggedAppInfo={enableFilterMode:!0};(p=f.unpluggedFilterModeType)&&!Z&&(I.unpluggedAppInfo={filterModeType:JST[p]});if(Z=f.Z5)I.unpluggedLocationInfo=Z;F.client= I;I=F.request||{};f.Gi&&(I.isPrefetch=!0);if(Z=f.mdxEnvironment)I.mdxEnvironment=Z;if(Z=f.mdxControlMode)I.mdxControlMode=uZa[Z];F.request=I;I=F.user||{};if(Z=f.KQ)I.credentialTransferTokens=[{token:Z,scope:"VIDEO"}];if(Z=f.eT)I.delegatePurchases={oauthToken:Z},I.kidsParent={oauthToken:Z};var z;Z=(z=D.getWebPlayerContextConfig())==null?void 0:z.userContentRating;D.ww().Y.Kp(N5d)&&Z&&(I.serializedUserContentRating=Z);F.user=I;if(D=f.contextParams)F.activePlayers=[{playerContextParams:D}];if(f=f.clientScreenNonce)F.clientScreenNonce= f;return F}; g.ku=function(f){var D=g.fP(),F=D.client||{};if(f.forcedExperiments){var Z=f.forcedExperiments.split(","),I=[];Z=g.a(Z);for(var p=Z.next();!p.done;p=Z.next())I.push(Number(p.value));F.experimentIds=I}if(I=f.homeGroupInfo)F.homeGroupInfo=JSON.parse(I);if(I=f.getPlayerType())F.playerType=I;if(I=f.Y.ctheme)F.theme=I;if(I=f.livingRoomAppMode)F.tvAppInfo=Object.assign({},F.tvAppInfo,{livingRoomAppMode:I});I=f.deviceYear;f.Z("html5_propagate_device_year")&&I&&(F.tvAppInfo=Object.assign({},F.tvAppInfo,{deviceYear:I})); if(I=f.livingRoomPoTokenId)F.tvAppInfo=Object.assign({},F.tvAppInfo,{livingRoomPoTokenId:I});D.client=F;I=D.user||{};f.enableSafetyMode&&(I=Object.assign({},I,{enableSafetyMode:!0}));var z;((z=F.tvAppInfo)==null?0:z.usePageidAsHeader)||!f.pageId||(I=Object.assign({},I,{onBehalfOfUser:f.pageId}));D.user=I;return D}; nRf=function(f,D,F){var Z=f.videoId,I=g.jK(f),p=f.j(),z={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ve()),referer:document.location.toString(),signatureTimestamp:20432},H=g.JX();f.isAutonav&&(z.autonav=!0);H.Kp(141)&&(z.autonavState=H.Kp(140)?"STATE_OFF":"STATE_ON");z.autoCaptionsDefaultOn=H.Kp(66);cSc(f)&&(z.autoplay=!0);p.N&&f.cycToken&&(z.cycToken=f.cycToken);p.enablePrivacyFilter&&(z.enablePrivacyFilter=!0);f.isFling&&(z.fling=!0);var K=f.forceAdsUrl;if(K){H={};var k=[];K=K.split(","); K=g.a(K);for(var h=K.next();!h.done;h=K.next()){h=h.value;var y=h.split("|");y.length!==3||h.includes("=")||(y[0]="breaktype="+y[0],y[1]="offset="+y[1],y[2]="url="+y[2]);h={adtype:"video_ad"};y=g.a(y);for(var A=y.next();!A.done;A=y.next()){var V=g.a(A.value.split("="));A=V.next().value;V=tus(V);h[A]=V.join("=")}y=h.url;A=h.presetad;V=h.viralresponseurl;var R=Number(h.campaignid),m=h.bibliotecaadid;if(h.adtype==="in_display_ad")y&&(H.url=y),A&&(H.presetAd=A),V&&(H.viralAdResponseUrl=V),R&&(H.viralCampaignId= String(R)),m&&(H.bibliotecaAdId=m);else if(h.adtype==="video_ad"){var b={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(h.offset)||0)}};if(h=gRa[h.breaktype])b.breakType=h;y&&(b.url=y);A&&(b.presetAd=A);V&&(b.viralAdResponseUrl=V);R&&(b.viralCampaignId=String(R));m&&(b.bibliotecaAdId=m);k.push(b)}}z.forceAdParameters={videoAds:k,inDisplayAd:H}}f.isInlinePlaybackNoAd&&(z.isInlinePlaybackNoAd=!0);f.isLivingRoomDeeplink&&(z.isLivingRoomDeeplink=!0);H=f.Ih;if(H!=null){H={startWalltime:String(H)}; if(k=f.qA)H.manifestDuration=String(k||14400);z.liveContext=H}if(f.mutedAutoplay){z.mutedAutoplay=!0;H=p.getWebPlayerContextConfig();var U,S;(H==null?0:(U=H.embedsHostFlags)==null?0:U.allowMutedAutoplayDurationMode)&&(H==null?0:(S=H.embedsHostFlags)==null?0:S.allowMutedAutoplayDurationMode.includes(eTu[f.mutedAutoplayDurationMode]))&&(z.mutedAutoplayDurationMode=eTu[f.mutedAutoplayDurationMode])}if(f.qb?0:f.BI)z.splay=!0;U=f.vnd;U===5&&(z.vnd=U);U={};if(S=f.isMdxPlayback)U.triggeredByMdx=S;if(S=f.VS)U.skippableAdsSupported= S.split(",").includes("ska");if(k=f.YR){S=f.O$;H=[];k=g.a(Cvy(k));for(K=k.next();!K.done;K=k.next()){K=K.value;h=K.platform;K={applicationState:K.Dd?"INACTIVE":"ACTIVE",clientFormFactor:xBu[h]||"UNKNOWN_FORM_FACTOR",clientName:TAs[K.ZG]||"UNKNOWN_INTERFACE",clientVersion:K.deviceVersion||"",platform:Xwu[h]||"UNKNOWN_PLATFORM"};h={};if(S){y=void 0;try{y=JSON.parse(S)}catch(W){g.UT(W)}y&&(h={params:[{key:"ms",value:y.ms}]},y.advertising_id&&(h.advertisingId=y.advertising_id),y.limit_ad_tracking!==void 0&& y.limit_ad_tracking!==null&&(h.limitAdTracking=y.limit_ad_tracking),K.osName=y.os_name,K.userAgent=y.user_agent,K.windowHeightPoints=y.window_height_points,K.windowWidthPoints=y.window_width_points)}H.push({adSignalsInfo:h,remoteClient:K})}U.remoteContexts=H}S=f.sourceContainerPlaylistId;H=f.serializedMdxMetadata;if(S||H)k={},S&&(k.mdxPlaybackContainerInfo={sourceContainerPlaylistId:S}),H&&(k.serializedMdxMetadata=H),U.mdxPlaybackSourceContext=k;z.mdxContext=U;U=D.width;U>0&&(z.playerWidthPixels= Math.round(U));if(D=D.height)z.playerHeightPixels=Math.round(D);F!==0&&(z.vis=F);if(F=p.widgetReferrer)z.widgetReferrer=F.substring(0,128);g.LM(p)&&z&&(z.ancestorOrigins=p.ancestorOrigins);f.defaultActiveSourceVideoId&&(z.compositeVideoContext={defaultActiveSourceVideoId:f.defaultActiveSourceVideoId});if(p=p.getWebPlayerContextConfig())z.encryptedHostFlags=p.encryptedHostFlags;Z={videoId:Z,context:I,playbackContext:{contentPlaybackContext:z}};if(f.EW){var G;Z.playbackContext.reloadPlaybackContext= {reloadPlaybackParams:(G=f.EW)==null?void 0:G.reloadPlaybackParams}}f.contentCheckOk&&(Z.contentCheckOk=!0);if(G=f.clientPlaybackNonce)Z.cpn=G;if(G=f.playerParams)Z.params=G;if(G=f.playlistId)Z.playlistId=G;f.racyCheckOk&&(Z.racyCheckOk=!0);G=f.j();I=G.embedConfig;f.FX&&G.Z("embeds_enable_per_video_embed_config")?Z.serializedThirdPartyEmbedConfig=f.FX:I&&(Z.serializedThirdPartyEmbedConfig=I);Z.captionParams={};I=g.JX().Kp(65);f.deviceCaptionsOn!=null?Z.captionParams.deviceCaptionsOn=f.deviceCaptionsOn: g.sn(G)&&(Z.captionParams.deviceCaptionsOn=I!=null?!I:!1);f.mM&&(Z.captionParams.deviceCaptionsLangPref=f.mM);f.Kh.length?Z.captionParams.viewerSelectedCaptionLangs=f.Kh:g.sn(G)&&(I=g.Sh(),I==null?0:I.length)&&(Z.captionParams.viewerSelectedCaptionLangs=I);I=f.fetchType==="onesie"&&f.Z("html5_onesie_attach_po_token");z=f.fetchType!=="onesie"&&f.Z("html5_non_onesie_attach_po_token");if(I||z)I=f.j(),I.KK&&(Z.serviceIntegrityDimensions={},Z.serviceIntegrityDimensions.poToken=I.KK);G.Z("fetch_att_independently")&& (Z.attestationRequest={omitBotguardData:!0});Z.playbackContext||(Z.playbackContext={});Z.playbackContext.devicePlaybackCapabilities=OIX(f);Z.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&f.Gx("noVp9",{});return Z}; OIX=function(f){var D=!(f==null?0:f.hV())&&(f==null?void 0:f.jj())&&I8(),F;if(!(F=f==null)){F=g.df(f);f=f.j().X;var Z=$3("243");F=!(Z&&gs(F,Z,f,!0)===!0)}return{supportsVp9Encoding:!(F||D),supportXhr:Ik}}; PUI=function(f,D){var F,Z,I;return g.l(function(p){if(p.Y==1)return F={context:g.ku(f.j()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:f.videoId,cpn:f.clientPlaybackNonce}}]},Z=g.ZO(YkE),g.r(p,g.LP(D,F,Z),2);I=p.J;return p.return(I)})}; fPD=function(f,D,F){var Z=g.Pf(D.experiments,"bg_vm_reinit_threshold");(!QQ||(0,g.m5)()-QQ>Z)&&PUI(f,F).then(function(I){I&&(I=I.botguardData)&&g.m9(I,D)},function(I){f.MR()||(I=s_(I),f.Gx("attf",I.details))})}; iC=function(f,D){g.J.call(this);this.app=f;this.state=D}; yT=function(f,D,F){f.state.Y.hasOwnProperty(D)||hO(f,D,F);f.state.T[D]=function(){return F.apply(f,g.hv.apply(0,arguments))}; f.state.N.add(D)}; AO=function(f,D,F){f.state.Y.hasOwnProperty(D)||hO(f,D,F);f.app.j().N&&(f.state.S[D]=function(){return F.apply(f,g.hv.apply(0,arguments))},f.state.N.add(D))}; hO=function(f,D,F){f.state.Y[D]=function(){return F.apply(f,g.hv.apply(0,arguments))}}; g.$u=function(f,D,F){return f.state.Y[D].apply(f.state.Y,g.w(F))}; VT=function(){g.mQ.call(this);this.X=new Map}; Rk=function(){g.J.apply(this,arguments);this.element=null;this.N=new Set;this.T={};this.S={};this.Y={};this.Jb=new Set;this.B=new VT;this.J=new VT;this.G=new VT;this.X=new VT}; D9J=function(f,D,F){typeof f==="string"&&(f={mediaContentUrl:f,startSeconds:D,suggestedQuality:F});a:{if((D=f.mediaContentUrl)&&(D=/\/([ve]|embed)\/([^#?]+)/.exec(D))&&D[2]){D=D[2];break a}D=null}f.videoId=D;return dW(f)}; dW=function(f,D,F){if(typeof f==="string")return{videoId:f,startSeconds:D,suggestedQuality:F};D={};F=g.a(F9u);for(var Z=F.next();!Z.done;Z=F.next())Z=Z.value,f[Z]&&(D[Z]=f[Z]);if(f=f.embedConfig||f.embed_config)if(typeof f==="string")D.embed_config=f;else if(g.tv(f))try{var I=JSON.stringify(f);D.embed_config=I}catch(p){console.error("Invalid embedConfig JSON",p)}return D}; Z5d=function(f,D,F,Z){if(g.tv(f)&&!Array.isArray(f)){D="playlist list listType index startSeconds suggestedQuality".split(" ");F={};for(Z=0;Z32&&Z.push("hfr");D.isHdr()&&Z.push("hdr");D.primaries==="bt2020"&&Z.push("wcg");F.video_quality_features=Z}}if(f=f.getPlaylistId())F.list=f;return F}; MV=function(){QT.apply(this,arguments)}; tO=function(f,D){var F={};if(f.app.j().KQ){f=g.a(sRu);for(var Z=f.next();!Z.done;Z=f.next())Z=Z.value,D.hasOwnProperty(Z)&&(F[Z]=D[Z]);if(D=F.qoe_cat)f="",typeof D==="string"&&D.length>0&&(f=D.split(",").filter(function(I){return qfE.includes(I)}).join(",")),F.qoe_cat=f; H5y(F)}else for(f=g.a(o9X),Z=f.next();!Z.done;Z=f.next())Z=Z.value,D.hasOwnProperty(Z)&&(F[Z]=D[Z]);return F}; H5y=function(f){var D=f.raw_player_response;if(!D){var F=f.player_response;F&&(D=JSON.parse(F))}delete f.player_response;delete f.raw_player_response;if(D){f.raw_player_response={streamingData:D.streamingData,playerConfig:D.playerConfig};var Z;if((Z=D.playbackTracking)==null?0:Z.qoeUrl)f.raw_player_response=Object.assign({},f.raw_player_response,{playbackTracking:{qoeUrl:D.playbackTracking.qoeUrl}});D.videoDetails&&(D.videoDetails.videoId||D.videoDetails.lengthSeconds)&&(F={},D.videoDetails.videoId&& (F.videoId=D.videoDetails.videoId),D.videoDetails.lengthSeconds&&(F.lengthSeconds=D.videoDetails.lengthSeconds),f.raw_player_response=Object.assign({},f.raw_player_response,{videoDetails:F}))}}; kNX=function(f){var D=D===void 0?5:D;return f?K9T[f]||D:D}; g.SK=function(){MV.apply(this,arguments)}; jRD=function(f){hO(f,"getInternalApiInterface",f.getInternalApiInterface);hO(f,"getTrustedApi",f.getTrustedApi);hO(f,"addEventListener",f.Pf);hO(f,"removeEventListener",f.Uz3);hO(f,"cueVideoByPlayerVars",f.j1);hO(f,"loadVideoByPlayerVars",f.uqQ);hO(f,"preloadVideoByPlayerVars",f.a1T);hO(f,"getAdState",f.getAdState);hO(f,"sendAbandonmentPing",f.sendAbandonmentPing);hO(f,"setLoopRange",f.setLoopRange);hO(f,"getLoopRange",f.getLoopRange);hO(f,"setAutonavState",f.setAutonavState);hO(f,"seekTo",f.gWQ); hO(f,"seekBy",f.dzb);hO(f,"seekToLiveHead",f.seekToLiveHead);hO(f,"requestSeekToWallTimeSeconds",f.requestSeekToWallTimeSeconds);hO(f,"seekToStreamTime",f.seekToStreamTime);hO(f,"prefetchKeyPlay",f.prefetchKeyPlay);hO(f,"startSeekCsiAction",f.startSeekCsiAction);hO(f,"getStreamTimeOffset",f.getStreamTimeOffset);hO(f,"getVideoData",f.xRI);hO(f,"setInlinePreview",f.setInlinePreview);hO(f,"getAppState",f.getAppState);hO(f,"updateLastActiveTime",f.updateLastActiveTime);hO(f,"setBlackout",f.setBlackout); hO(f,"setUserEngagement",f.setUserEngagement);hO(f,"updateSubtitlesUserSettings",f.updateSubtitlesUserSettings);hO(f,"getPresentingPlayerType",f.pT);hO(f,"canPlayType",f.canPlayType);hO(f,"updatePlaylist",f.updatePlaylist);hO(f,"updateVideoData",f.updateVideoData);hO(f,"updateEnvironmentData",f.updateEnvironmentData);hO(f,"sendVideoStatsEngageEvent",f.oWo);hO(f,"productsInVideoVisibilityUpdated",f.productsInVideoVisibilityUpdated);hO(f,"setSafetyMode",f.setSafetyMode);hO(f,"isAtLiveHead",function(D){return f.isAtLiveHead(void 0, D)}); hO(f,"getVideoAspectRatio",f.getVideoAspectRatio);hO(f,"getPreferredQuality",f.getPreferredQuality);hO(f,"getPlaybackQualityLabel",f.getPlaybackQualityLabel);hO(f,"setPlaybackQualityRange",f.A6T);hO(f,"onAdUxClicked",f.onAdUxClicked);hO(f,"getFeedbackProductData",f.getFeedbackProductData);hO(f,"getStoryboardFrame",f.getStoryboardFrame);hO(f,"getStoryboardFrameIndex",f.getStoryboardFrameIndex);hO(f,"getStoryboardLevel",f.getStoryboardLevel);hO(f,"getNumberOfStoryboardLevels",f.getNumberOfStoryboardLevels); hO(f,"getCaptionWindowContainerId",f.getCaptionWindowContainerId);hO(f,"getAvailableQualityLabels",f.getAvailableQualityLabels);hO(f,"addCueRange",f.addCueRange);hO(f,"addUtcCueRange",f.addUtcCueRange);hO(f,"showAirplayPicker",f.showAirplayPicker);hO(f,"dispatchReduxAction",f.dispatchReduxAction);hO(f,"getPlayerResponse",f.bB);hO(f,"getWatchNextResponse",f.mRY);hO(f,"getHeartbeatResponse",f.wi);hO(f,"getCurrentTime",f.Li);hO(f,"getDuration",f.lZ);hO(f,"getPlayerState",f.getPlayerState);hO(f,"getPlayerStateObject", f.ql);hO(f,"getVideoLoadedFraction",f.getVideoLoadedFraction);hO(f,"getProgressState",f.getProgressState);hO(f,"getVolume",f.getVolume);hO(f,"setVolume",f.Bv);hO(f,"isMuted",f.isMuted);hO(f,"mute",f.xN);hO(f,"unMute",f.NK);hO(f,"loadModule",f.loadModule);hO(f,"unloadModule",f.unloadModule);hO(f,"getOption",f.Px);hO(f,"getOptions",f.getOptions);hO(f,"setOption",f.setOption);hO(f,"loadVideoById",f.TY);hO(f,"loadVideoByUrl",f.Cr);hO(f,"playVideo",f.nx);hO(f,"loadPlaylist",f.loadPlaylist);hO(f,"nextVideo", f.nextVideo);hO(f,"previousVideo",f.previousVideo);hO(f,"playVideoAt",f.playVideoAt);hO(f,"getDebugText",f.getDebugText);hO(f,"getWebPlayerContextConfig",f.getWebPlayerContextConfig);hO(f,"notifyShortsAdSwipeEvent",f.notifyShortsAdSwipeEvent);hO(f,"getVideoContentRect",f.getVideoContentRect);hO(f,"setSqueezeback",f.setSqueezeback);hO(f,"toggleSubtitlesOn",f.toggleSubtitlesOn);hO(f,"isSubtitlesOn",f.isSubtitlesOn);hO(f,"getAudioTrack",f.di);hO(f,"setAudioTrack",f.plR);hO(f,"getAvailableAudioTracks", f.QU);hO(f,"reportPlaybackIssue",f.reportPlaybackIssue);hO(f,"setAutonav",f.setAutonav);hO(f,"isNotServable",f.isNotServable);hO(f,"channelSubscribed",f.channelSubscribed);hO(f,"channelUnsubscribed",f.channelUnsubscribed);hO(f,"togglePictureInPicture",f.togglePictureInPicture);hO(f,"supportsGaplessAudio",f.supportsGaplessAudio);hO(f,"supportsGaplessShorts",f.supportsGaplessShorts);hO(f,"enqueueVideoByPlayerVars",function(D){return void f.enqueueVideoByPlayerVars(D)}); hO(f,"clearQueue",f.clearQueue);hO(f,"getMaxPlaybackQuality",f.getMaxPlaybackQuality);hO(f,"getUserPlaybackQualityPreference",f.getUserPlaybackQualityPreference);hO(f,"getSubtitlesUserSettings",f.getSubtitlesUserSettings);hO(f,"resetSubtitlesUserSettings",f.resetSubtitlesUserSettings);hO(f,"setMinimized",f.setMinimized);hO(f,"setOverlayVisibility",f.setOverlayVisibility);hO(f,"confirmYpcRental",f.confirmYpcRental);hO(f,"queueNextVideo",f.queueNextVideo);hO(f,"handleExternalCall",f.handleExternalCall); hO(f,"logApiCall",f.logApiCall);hO(f,"isExternalMethodAvailable",f.isExternalMethodAvailable);hO(f,"setScreenLayer",f.setScreenLayer);hO(f,"getCurrentPlaylistSequence",f.getCurrentPlaylistSequence);hO(f,"getPlaylistSequenceForTime",f.getPlaylistSequenceForTime);hO(f,"shouldSendVisibilityState",f.shouldSendVisibilityState);hO(f,"syncVolume",f.syncVolume);hO(f,"highlightSettingsMenuItem",f.highlightSettingsMenuItem);hO(f,"openSettingsMenuItem",f.openSettingsMenuItem);hO(f,"getEmbeddedPlayerResponse", f.getEmbeddedPlayerResponse);hO(f,"getVisibilityState",f.getVisibilityState);hO(f,"isMutedByMutedAutoplay",f.isMutedByMutedAutoplay);hO(f,"isMutedByEmbedsMutedAutoplay",f.isMutedByEmbedsMutedAutoplay);hO(f,"setGlobalCrop",f.setGlobalCrop);hO(f,"setInternalSize",f.setInternalSize);hO(f,"setFauxFullscreen",f.setFauxFullscreen);hO(f,"setAppFullscreen",f.setAppFullscreen)}; Uz=function(f,D,F){f=g.cv(f.pE(),D);return F?(F.addOnDisposeCallback(f),null):f}; g.ak=function(f,D,F){return f.app.j().Fd?D:g.F8("$DESCRIPTION\u00a0($SHORTCUT)",{DESCRIPTION:D,SHORTCUT:F})}; i5u=function(f){f.pE().element.setAttribute("aria-live","polite")}; g.wW=function(f,D){g.SK.call(this,f,D);jRD(this);AO(this,"addEventListener",this.oB);AO(this,"removeEventListener",this.mzx);AO(this,"cueVideoByPlayerVars",this.kS);AO(this,"loadVideoByPlayerVars",this.g8T);AO(this,"preloadVideoByPlayerVars",this.vKx);AO(this,"loadVideoById",this.TY);AO(this,"loadVideoByUrl",this.Cr);AO(this,"playVideo",this.nx);AO(this,"loadPlaylist",this.loadPlaylist);AO(this,"nextVideo",this.nextVideo);AO(this,"previousVideo",this.previousVideo);AO(this,"playVideoAt",this.playVideoAt); AO(this,"getVideoData",this.wz);AO(this,"seekBy",this.u9T);AO(this,"seekTo",this.Pvd);AO(this,"showControls",this.showControls);AO(this,"hideControls",this.hideControls);AO(this,"cancelPlayback",this.cancelPlayback);AO(this,"getProgressState",this.getProgressState);AO(this,"isInline",this.isInline);AO(this,"setInline",this.setInline);AO(this,"setLoopVideo",this.setLoopVideo);AO(this,"getLoopVideo",this.getLoopVideo);AO(this,"getVideoContentRect",this.getVideoContentRect);AO(this,"getVideoStats",this.URs); AO(this,"getCurrentTime",this.yU);AO(this,"getDuration",this.lZ);AO(this,"getPlayerState",this.Jb3);AO(this,"getVideoLoadedFraction",this.fEI);AO(this,"mute",this.xN);AO(this,"unMute",this.NK);AO(this,"setVolume",this.Bv);AO(this,"loadModule",this.loadModule);AO(this,"unloadModule",this.unloadModule);AO(this,"getOption",this.Px);AO(this,"getOptions",this.getOptions);AO(this,"setOption",this.setOption);AO(this,"addCueRange",this.addCueRange);AO(this,"getDebugText",this.getDebugText);AO(this,"getStoryboardFormat", this.getStoryboardFormat);AO(this,"toggleFullscreen",this.toggleFullscreen);AO(this,"isFullscreen",this.isFullscreen);AO(this,"getPlayerSize",this.getPlayerSize);AO(this,"toggleSubtitles",this.toggleSubtitles);AO(this,"setCenterCrop",this.setCenterCrop);AO(this,"setFauxFullscreen",this.setFauxFullscreen);AO(this,"setSizeStyle",this.setSizeStyle);AO(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);AO(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);phf(this)}; g.Wv=function(f){f=f.I_();var D=f.z8.get("endscreen");return D&&D.L1()?!0:f.dE()}; g.Bv=function(f,D){f.getPresentingPlayerType()===3?f.publish("mdxautoplaycancel"):f.wY("onAutonavCancelled",D)}; g.LN=function(f){var D=rW(f.I_());return f.app.oN&&!f.isFullscreen()||f.getPresentingPlayerType()===3&&D&&D.hasNext()&&D.hasPrevious()||!!f.getPlaylist()}; g.lC=function(f,D){g.$u(f,"addEmbedsConversionTrackingParams",[D])}; g.JO=function(f){return(f=g.Ez(f.I_()))?f.KV():{}}; g.hUw=function(f){f=(f=f.getVideoData())&&f.J;return!!f&&!(!f.audio||!f.video)&&f.mimeType!=="application/x-mpegURL"}; g.uC=function(f,D,F){f=f.sy().element;var Z=Ks(f.children,function(I){I=Number(I.getAttribute("data-layer"));return F-I||1}); Z<0&&(Z=-(Z+1));Sc(f,D,Z);D.setAttribute("data-layer",String(F))}; g.NV=function(f){var D=f.j();if(!D.Gi)return!1;var F=f.getVideoData();if(!F||f.getPresentingPlayerType()===3)return!1;var Z=(!F.isLiveDefaultBroadcast||D.Z("allow_poltergust_autoplay"))&&!Hv(F);Z=F.isLivePlayback&&(!D.Z("allow_live_autoplay")||!Z);var I=F.isLivePlayback&&D.Z("allow_live_autoplay_on_mweb");f=f.getPlaylist();f=!!f&&f.hasNext();var p=F.xo&&F.xo.playerOverlays||null;p=!!(p&&p.playerOverlayRenderer&&p.playerOverlayRenderer.autoplay);p=F.Yn&&p;return!F.ypcPreview&&(!Z||I)&&!g.e0(F.Y3,"ypc")&& !f&&(!g.LM(D)||p)}; y4c=function(f,D){f=f.app.UE().T.QI();f=g.a(f);for(var F=f.next();!F.done;F=f.next()){F=F.value;var Z=F.getAvailableAudioTracks(),I=null;Z=g.a(Z);for(var p=Z.next();!p.done;p=Z.next())if(p=p.value,p.getLanguageInfo().getId()===D){I=p;break}I&&F.FS(I,!0)}}; gW=function(){lq.apply(this,arguments);this.requestHeaders={}}; xu=function(){eK||(eK=new gW);return eK}; X9=function(f,D){D?f.requestHeaders.Authorization="Bearer "+D:delete f.requestHeaders.Authorization}; A4y=function(f){this.experiments=f;this.Y=2048;this.G=0;this.Bs=(this.S=this.Z("html5_streaming_resilience"))?.5:.25;var D=D===void 0?0:D;this.B=g.Pf(this.experiments,"html5_media_time_weight_prop")||D;this.Jb=(this.X=this.experiments.Hs("html5_consider_end_stall"))&&Ik;this.J=this.experiments.Hs("html5_measure_max_progress_handling");this.N=this.Z("html5_treat_requests_pre_elbow_as_metadata");this.T=this.Z("html5_media_time_weight")||!!this.B;this.Z("html5_sabr_live_audio_early_return_fix")&&Ik&& (this.Y=65536)}; g.Oz=function(f){g.J.call(this);var D=this;this.Yo=f;this.ej={c$:function(){return D.Yo}}}; g.nN=function(f,D,F,Z){Z=Z===void 0?!1:Z;g.Km.call(this,D);var I=this;this.U=f;this.Bs=Z;this.X=new g.ia(this);this.fade=new g.Zr(this,F,!0,void 0,void 0,function(){I.xj()}); g.N(this,this.X);g.N(this,this.fade)}; Yu=function(f){var D=f.U.getRootNode();return f.U.Z("web_watch_pip")||f.U.Z("web_shorts_pip")?kd(D):document}; $9X=function(f){f.sourceElement&&(document.activeElement&&g.Ua(f.element,document.activeElement)&&f.sourceElement.focus(),f.sourceElement.setAttribute("aria-expanded","false"),f.sourceElement=void 0);g.a8(f.X);f.T=void 0}; Pv=function(f,D,F){f.NL()?f.Fq():f.Rc(D,F)}; fa=function(f,D,F,Z){Z=new g.x({K:"div",ST:["ytp-linked-account-popup-button"],nQ:Z,W:{role:"button",tabindex:"0"}});D=new g.x({K:"div",C:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},L:[{K:"div",C:"ytp-linked-account-popup-title",nQ:D},{K:"div",C:"ytp-linked-account-popup-description",nQ:F},{K:"div",C:"ytp-linked-account-popup-buttons",L:[Z]}]});g.nN.call(this,f,{K:"div",C:"ytp-linked-account-popup-container",L:[D]},100);var I=this;this.dialog=D;g.N(this,this.dialog); Z.listen("click",function(){I.Fq()}); g.N(this,Z);g.uC(this.U,this.element,4);this.hide()}; g.Fj=function(f,D,F,Z){g.Km.call(this,f);this.priority=D;F&&g.Dg(this,F);Z&&this.setContent(Z)}; g.Zg=function(f,D,F,Z){f=f===void 0?{}:f;D=D===void 0?[]:D;F=F===void 0?!1:F;Z=Z===void 0?!1:Z;D.push("ytp-menuitem");var I=f;"role"in I||(I.role="menuitem");F||(I=f,"tabindex"in I||(I.tabindex="0"));f={K:F?"a":"div",ST:D,W:f,L:[{K:"div",C:"ytp-menuitem-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-menuitem-label",nQ:"{{label}}"},{K:"div",C:"ytp-menuitem-content",nQ:"{{content}}"}]};Z&&f.L.push({K:"div",C:"ytp-menuitem-secondary-icon",nQ:"{{secondaryIcon}}"});return f}; g.Dg=function(f,D){f.updateValue("label",D)}; IP=function(f){g.Fj.call(this,g.Zg({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var D=this;this.U=f;this.J=this.Y=!1;this.x8=f.Pp();f.createServerVe(this.element,this,!0);this.D(this.U,"settingsMenuVisibilityChanged",function(F){D.nF(F)}); this.D(this.U,"videodatachange",this.G);this.listen("click",this.onClick);this.G()}; pa=function(f){return f?g.ih(f):""}; z9=function(f){g.J.call(this);this.api=f}; sy=function(f){z9.call(this,f);var D=this;hO(f,"setAccountLinkState",function(F){D.setAccountLinkState(F)}); hO(f,"updateAccountLinkingConfig",function(F){D.updateAccountLinkingConfig(F)}); f.addEventListener("videodatachange",function(F,Z){D.onVideoDataChange(Z)}); f.addEventListener("settingsMenuInitialized",function(){D.menuItem=new IP(D.api);g.N(D,D.menuItem)})}; qK=function(f){z9.call(this,f);var D=this;this.Y=null;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"applicationvideodatachange",function(){D.B5()})}; Vhu=function(f){this.api=f;this.Y={}}; HN=function(f,D,F,Z){D in f.Y||(F=new g.Jm(F,Z,{id:D,priority:2,namespace:"appad"}),f.api.Bw([F],1),f.Y[D]=F)}; oP=function(f){z9.call(this,f);var D=this;this.events=new g.ia(this);g.N(this,this.events);this.Y=new Vhu(this.api);this.events.D(this.api,"legacyadtrackingpingreset",function(){D.Y.Y={}}); this.events.D(this.api,"legacyadtrackingpingchange",function(F){var Z=D.Y;HN(Z,"part2viewed",1,0x8000000000000);HN(Z,"engagedview",Math.max(1,F.vr*1E3),0x8000000000000);if(!F.isLivePlayback){var I=F.lengthSeconds*1E3;AZ(F)&&Z.api.Z("html5_shorts_gapless_ads_duration_fix")&&(I=Z.api.getProgressState().seekableEnd*1E3-F.vZ);HN(Z,"videoplaytime25",I*.25,I);HN(Z,"videoplaytime50",I*.5,I);HN(Z,"videoplaytime75",I*.75,I);HN(Z,"videoplaytime100",I,0x8000000000000);HN(Z,"conversionview",I,0x8000000000000); HN(Z,"videoplaybackstart",1,I);HN(Z,"videoplayback2s",2E3,I);HN(Z,"videoplayback10s",1E4,I)}}); this.events.D(this.api,g.Nh("appad"),this.J);this.events.D(this.api,g.gA("appad"),this.J)}; C9y=function(f,D,F){if(!(F in D))return!1;D=D[F];Array.isArray(D)||(D=[D]);D=g.a(D);for(F=D.next();!F.done;F=D.next()){F=F.value;var Z={CPN:f.api.getVideoData().clientPlaybackNonce};F=g.S$(F,Z);Z=void 0;Z=Z===void 0?!1:Z;(Z=BC(rA(F,RUI),F,Z,"Active View 3rd Party Integration URL"))||(Z=void 0,Z=Z===void 0?!1:Z,Z=BC(rA(F,d9f),F,Z,"Google/YouTube Brand Lift URL"));Z||(Z=void 0,Z=Z===void 0?!1:Z,Z=BC(rA(F,QRD),F,Z,"Nielsen OCR URL"));g.WH(F,void 0,Z)}return!0}; Ka=function(f,D){m9y(f,D).then(function(F){g.WH(D,void 0,void 0,F)})}; kq=function(f,D){D.forEach(function(F){Ka(f,F)})}; m9y=function(f,D){return g.hm(f.api.j())&&KO(D)&&og(D)?g.y4(f.api.j(),g.Pt(f.api.getVideoData())).then(function(F){var Z;F&&(Z={Authorization:"Bearer "+F});return Z},void 0):wo()}; Tsf=function(f){z9.call(this,f);this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"videoready",function(D){if(f.getPresentingPlayerType()===1){var F,Z,I={playerDebugData:{pmlSignal:!!((F=D.getPlayerResponse())==null?0:(Z=F.adPlacements)==null?0:Z.some(function(p){var z;return p==null?void 0:(z=p.adPlacementRenderer)==null?void 0:z.renderer})), contentCpn:D.clientPlaybackNonce}};g.ha("adsClientStateChange",I)}})}; jG=function(f,D){g.Fj.call(this,g.Zg({role:"menuitemcheckbox","aria-checked":"false"}),D,f,{K:"div",C:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; i2=function(f,D){f.checked=D;f.element.setAttribute("aria-checked",String(f.checked))}; b5f=function(f){var D=!f.j().f7&&f.getPresentingPlayerType()!==3;return f.isFullscreen()||D}; g.hA=function(f,D,F,Z){var I=f.currentTarget;if((F===void 0||!F)&&g.TL(f))return f.preventDefault(),!0;D.pauseVideo();f=I.getAttribute("href");g.gQ(f,Z,!0);return!1}; g.AA=function(f,D,F){if(Ie(D.j())&&D.getPresentingPlayerType()!==2){if(g.TL(F))return D.isFullscreen()&&!D.j().externalFullscreen&&D.toggleFullscreen(),F.preventDefault(),!0}else{var Z=g.TL(F);Z&&D.pauseVideo();g.gQ(f,void 0,!0);Z&&(g.es(f),F.preventDefault())}return!1}; Mhd=function(f){f=$q.includes("es")?f.Z("delhi_modern_web_player_icons")?RV():{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,W:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:f.Z("delhi_modern_web_player_icons")?hLD():{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,W:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};f.C="ytp-subtitles-button-icon"; return f}; thD=function(f){return $q.includes("es")?f?RV():{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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"}}]}:f?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},L:[{K:"path",W:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; Vt=function(){return{K:"div",C:"ytp-spinner-container",L:[{K:"div",C:"ytp-spinner-rotator",L:[{K:"div",C:"ytp-spinner-left",L:[{K:"div",C:"ytp-spinner-circle"}]},{K:"div",C:"ytp-spinner-right",L:[{K:"div",C:"ytp-spinner-circle"}]}]}]}}; RP=function(f){if(document.createRange){var D=document.createRange();D&&(D.selectNodeContents(f),f=window.getSelection())&&(f.removeAllRanges(),f.addRange(D))}}; Qt=function(f,D){var F=f.Z("web_fix_annotations")?"Superposiciones con anotaciones":"Anotaciones";jG.call(this,F,g.dZ.HX);this.U=f;this.x8=D;this.Y=!1;f.Z("web_settings_menu_icons")&&(D=f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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(D));this.D(f,"videodatachange",this.u3);this.D(f,"onApiChange",this.u3);this.subscribe("select",this.onSelect,this);this.u3()}; SfX=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);f.addEventListener("settingsMenuInitialized",function(){var F=new Qt(D.api,D.api.Pp());g.N(D,F)})}; m$=function(f){var D=this;this.Y={};this.B={};this.ej={nTy:function(){return D.Y}}; this.videoData=f;var F,Z=(F=f.B)==null?void 0:F.J;Z&&Z.length>0?this.J=Z:(f=f.getAvailableAudioTracks(),this.J=f.length>0?c4u(f):[]);f=g.a(Ca);for(F=f.next();!F.done;F=f.next())F=F.value,this.Y[F]=U9E[F](this.J);this.X9()}; v9c=function(f,D){var F=D.getAudioTrack();return F.id!=="und"?g.G$(f,function(Z){var I;return((I=Z.dw)==null?void 0:I.name)===F.getLanguageInfo().name}):f}; aPI=function(f,D){return D.getUserAudio51Preference()?g.G$(f,T9):f}; c4u=function(f){return f.map(function(D){return new ap(D.id,"application/x-mpegURL",{dw:D.dw})})}; GNu=function(f){return g.W6("yt-player-drc-pref")?g.G$(f,b2):f}; whu=function(f){return $hu()===2?g.G$(f,MK):f}; W9D=function(f){return VoE()===1?g.G$(f,tA):f}; tA=function(f){var D;return((D=f.audio)==null?void 0:D.audioQuality)==="AUDIO_QUALITY_HIGH"&&!rj(f)}; b2=function(f){var D;return((D=f.audio)==null?void 0:D.Y)===!0}; T9=function(f){return rj(f)}; Bsf=function(f){return f.dw!==void 0}; MK=function(f){var D;return((D=f.audio)==null?void 0:D.J)===!0}; SG=function(f,D){if(f.length<2)return!1;var F=D(f[0]);return f.some(function(Z){return D(Z)!==F})}; r4c=function(f,D){f=new Set(f.map(D));f.delete(void 0);return f.size>=2}; cN=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);var F=this.api.Z("html5_enable_audio_quality_setting_feature");hO(this.api,"getUserAudioQualitySetting",function(){return F?D.getUserAudioQualitySetting():2}); hO(this.api,"setUserAudioQualitySetting",function(Z){F&&D.setUserAudioQualitySetting(Z)}); hO(this.api,"hasHqaAudioTrack",function(){return F?D.hasHqaAudioTrack():!1}); hO(this.api,"getAudioQualitySettingState",function(){return F?D.api.M9(4):1}); this.DW=VoE();this.updateEnvironmentData()}; L9y=function(f){z9.call(this,f);var D=this;hO(this.api,"getAudioTrackState",function(){return D.api.M9(0)})}; Uy=function(f){g.x.call(this,{K:"button",ST:["ytp-button","ytp-autonav-toggle"],W:{title:f.Z("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"},L:[{K:"div",C:"ytp-autonav-toggle-button-container",L:[{K:"div",C:"ytp-autonav-toggle-button",W:{"aria-checked":"true"}}]}]});this.U=f;this.J=[];this.Y=!1;this.isChecked=!0;f.createClientVe(this.element,this, 113681);this.D(f,"presentingplayerstatechange",this.Jr);this.listen("click",this.onClick);this.J.push(this.D(this.U,"videodatachange",this.Jr));this.J.push(this.D(this.U,"videoplayerreset",this.Jr));this.J.push(this.D(this.U,"onPlaylistUpdate",this.Jr));this.J.push(this.D(this.U,"autonavchange",this.HP));Uz(f,this.element,this);this.Jr()}; lPd=function(f){f.isChecked=f.isChecked;f.fQ("ytp-autonav-toggle-button").setAttribute("aria-checked",String(f.isChecked));var D=f.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";f.U.j().Z("player_tooltip_data_title_killswitch")?f.update({title:D,label:D}):f.update({"data-tooltip-title":D,label:D});f.U.EE()}; E9a=function(f){return f.U.j().Z("web_player_autonav_use_server_provided_state")&&KT(f.KE())}; J4T=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"standardControlsInitialized",function(){var F=new Uy(f);g.N(D,F);f.XN(F,"RIGHT_CONTROLS_LEFT")})}; aP=function(f){var D=f.Z("web_player_use_cinematic_label_2")?"Modo Ambiente":"Iluminaci\u00f3n cinem\u00e1tica";jG.call(this,D,g.dZ.K5);var F=this;this.U=f;this.Y=!1;this.J=new g.xX(function(){g.zP(F.element,"ytp-menuitem-highlighted")},0); this.x8=f.Pp();f=f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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(f);this.subscribe("select",this.B,this);this.listen(vN,this.G);g.N(this,this.J)}; G9=function(f){z9.call(this,f);var D=this;this.Y=!1;f.addEventListener("settingsMenuInitialized",function(){uSf(D)}); f.addEventListener("highlightSettingsMenu",function(F){uSf(D);var Z=D.menuItem;F==="menu_item_cinematic_lighting"&&(g.IC(Z.element,"ytp-menuitem-highlighted"),g.IC(Z.element,"ytp-menuitem-highlight-transition-enabled"),Z.J.start())}); hO(f,"updateCinematicSettings",function(F){D.updateCinematicSettings(F)})}; uSf=function(f){f.menuItem||(f.menuItem=new aP(f.api),g.N(f,f.menuItem),f.menuItem.u3(f.Y))}; Nsa=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"applicationvideodatachange",function(F,Z){Z=Z.clipConfig;F==="dataloaded"&&Z&&Z.startTimeMs!=null&&Z.endTimeMs!=null&&D.api.setLoopRange({startTimeMs:Math.floor(Number(Z.startTimeMs)),endTimeMs:Math.floor(Number(Z.endTimeMs)),postId:Z.postId,type:"clips"})})}; wZ=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);hO(f,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));hO(f,"setCreatorEndscreenHideButton",this.Y.bind(this));this.Z("web_fix_annotations")&&this.events.D(f,"annotationvisibility",function(F){D.setCreatorEndscreenVisibility(!F);D.hideButton&&g.iG(D.hideButton,F)})}; eUu=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"videodatachange",function(){var F=D.api.getRootNode(),Z=D.api.j();g.IC(F,"ytp-delhi-modern");Z.Z("delhi_modern_web_player_icons")&&g.IC(F,"ytp-delhi-modern-icons");Z.Z("delhi_modern_web_player_horizontal_volume_controls")&&g.IC(F,"ytp-delhi-horizontal-volume-controls");Z.Z("delhi_modern_web_player_compact_controls")&&g.IC(F,"ytp-delhi-modern-compact-controls");Z.Z("delhi_modern_web_player_big_mode_consistent_pill_height")&& g.IC(F,"ytp-big-mode-consistent-pill-height");switch(Q5(Z.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.IC(F,"ytp-delhi-modern-with-luminosity");break;case "difference":g.IC(F,"ytp-delhi-modern-with-difference");break;case "exclusion":g.IC(F,"ytp-delhi-modern-with-exclusion")}F=D.api.isHdr()||D.api.Z("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";D.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",F);g9I(D)}); this.events.D(f,"resize",function(){g9I(D)})}; g9I=function(f){var D=f.api.Z("delhi_modern_web_player_compact_controls"),F=g.Pf(f.api.j().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),Z=D||F>0&&f.api.getPlayerSize().width<=F;D=f.api.getRootNode();D.classList.toggle("ytp-delhi-modern-compact-controls",Z);F=Z?"40px":"48px";var I=Z?"8px":"12px",p=Z?"56px":"72px",z=Z?"56px":"64px",H=Z?"48px":"56px",K=Z?"12px":"20px";Z=Z?"72px":"96px";f.api.Z("delhi_modern_web_player_big_mode_consistent_pill_height")&&(H="56px",K="12px", Z="80px");D.style.setProperty("--yt-delhi-pill-height",F);D.style.setProperty("--yt-delhi-pill-top-height",I);D.style.setProperty("--yt-delhi-bottom-controls-height",p);D.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",z);D.style.setProperty("--yt-delhi-big-mode-pill-height",H);D.style.setProperty("--yt-delhi-big-mode-pill-top-height",K);D.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",Z)}; WN=function(f,D,F,Z,I){var p=f.Z("html5_enable_new_audio_settings_menu");jG.call(this,"Volumen estable",p?x9X.ot:g.dZ.ot);this.U=f;this.G=D;this.J=F;this.hasDrcAudioTrack=Z;this.getDrcState=I;this.B=this.enableNewAudioSettingsMenu=this.Y=!1;g.IC(this.element,"ytp-drc-menu-item");this.x8=(this.enableNewAudioSettingsMenu=p)?f.Pp().IU:f.Pp();f.Z("html5_enable_voice_boost")?(this.B=!0,this.D(f,"onFilterAudioFeatures",this.oG)):f.addEventListener("videodatachange",this.oG.bind(this));f.Z("mta_drc_mutual_exclusion_removal")&& this.D(f,"onPlaybackAudioChange",this.oG);f.createClientVe(this.element,this,273317);this.listen("click",this.T);D=this.J()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(f=f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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(f));this.subscribe("select",this.X,this);this.enableNewAudioSettingsMenu||this.B?this.oG():(this.setEnabled(this.hasDrcAudioTrack()),i2(this,D),this.x8.tN(this))}; BN=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);f.Z("html5_show_drc_toggle")&&f.addEventListener("settingsMenuInitialized",function(){D.menuItem||(D.menuItem=new WN(D.api,D.setDrcUserPreference.bind(D),D.getDrcUserPreference.bind(D),D.Dg.bind(D),D.getDrcState.bind(D)),g.N(D,D.menuItem))}); hO(this.api,"setDrcUserPreference",function(Z){D.setDrcUserPreference(Z)}); hO(this.api,"getDrcUserPreference",function(){return D.getDrcUserPreference()}); hO(this.api,"hasDrcAudioTrack",function(){return D.Dg()}); hO(this.api,"getDrcState",function(){return D.getDrcState()}); var F;this.Y=(F=g.W6("yt-player-drc-pref"))!=null?F:1;this.updateEnvironmentData()}; rZ=function(f){z9.call(this,f);var D=this;this.Y={};this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"videodatachange",function(){D.onVideoDataChange()}); this.events.D(f,g.Nh("embargo"),function(F){D.api.Bn(!0);var Z,I=(Z=D.Y[F.id])!=null?Z:[];Z=g.a(I);for(I=Z.next();!I.done;I=Z.next()){var p=I.value;D.api.hideControls();D.api.b4("auth",2,"This video isn't available in your current playback area",Ip({embargoed:1,id:F.id,idx:F.J,start:F.start}));I=void 0;(p=(I=p.embargo)==null?void 0:I.onTrigger)&&D.api.wY("innertubeCommand",p)}})}; XhE=function(f,D){var F;return(F=D.onEnter)==null?void 0:F.some(f.J)}; O5f=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next()){F=F.value;var Z=void 0,I=Number((Z=F.playbackPosition)==null?void 0:Z.utcTimeMillis)/1E3,p=void 0;Z=I+Number((p=F.duration)==null?void 0:p.seconds);p="embargo_"+I;f.api.addUtcCueRange(p,I,Z,"embargo",!1);F.onEnter&&(f.Y[p]=F.onEnter.filter(f.J))}}; La=function(f){z9.call(this,f);var D=this;this.Y=[];this.events=new g.ia(f);g.N(this,this.events);hO(f,"addEmbedsConversionTrackingParams",function(F){D.addEmbedsConversionTrackingParams(F)}); this.events.D(f,"veClickLogged",function(F){D.api.hasVe(F)&&(F=F.visualElement.getAsJspb(),F=g.No(F,2),D.Y.push(F))})}; n9J=function(f){z9.call(this,f);hO(f,"isEmbedsShortsMode",function(){return f.isEmbedsShortsMode()}); hO(f,"getReelItemWatchResponse",function(){var D,F;return(F=(D=f.getVideoData(1))==null?void 0:D.getReelItemWatchResponse())!=null?F:null})}; YfI=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"initialvideodatacreated",function(F){i9(jh(),16623);D.Y=g.d4();var Z=f.j().sE&&!F.qb;if(Y7(F)&&Z){i9(jh(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(F.getWatchNextResponse()){var I,p=(I=F.getWatchNextResponse())==null?void 0:I.trackingParams;p&&yQ(p)}if(F.getPlayerResponse()){var z;(F=(z=F.getPlayerResponse())==null?void 0:z.trackingParams)&&yQ(F)}}else i9(jh(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),F.getEmbeddedPlayerResponse()&&(z=(p=F.getEmbeddedPlayerResponse())==null?void 0:p.trackingParams)&&yQ(z)}); this.events.D(f,"loadvideo",function(){i9(jh(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:D.Y})}); this.events.D(f,"cuevideo",function(F){F===1&&i9(jh(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:D.Y})}); this.events.D(f,"largeplaybuttonclicked",function(F){i9(jh(),27240,F.visualElement)}); this.events.D(f,"playlistnextbuttonclicked",function(F){i9(jh(),27240,F.visualElement)}); this.events.D(f,"playlistprevbuttonclicked",function(F){i9(jh(),27240,F.visualElement)}); this.events.D(f,"playlistautonextvideo",function(){i9(jh(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; l2=function(f,D){g.J.call(this);var F=this;this.Y=null;this.B=D;D=[];for(var Z=0;Z<=100;Z++)D.push(Z/100);D={threshold:D,trackVisibility:!0,delay:1E3};(this.J=window.IntersectionObserver?new IntersectionObserver(function(I){I=I[I.length-1];var p=null;typeof I.isVisible==="undefined"?document.visibilityState==="visible"&&I.isIntersecting&&I.intersectionRatio>0?p=I.intersectionRatio:document.visibilityState==="hidden"?p=0:p=null:p=I.isVisible?I.intersectionRatio:0;p!=null&&(p=Math.max(p,0),p=Math.min(p, 1));F.Y=p;typeof F.B==="function"&&F.B(F.Y)},D):null)&&this.J.observe(f)}; fQu=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"applicationInitialized",function(){P9u(D)})}; P9u=function(f){var D=f.api.getRootNode(),F,Z=f.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((F=D.parentElement)==null?void 0:F.parentElement)||D:D;f.Y=new l2(Z,function(I){I!=null&&(f.api.j().Jv=I,f.api.j().BL="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.N(f,f.Y);f.events.D(f.api,"videoStatsPingCreated",function(I){var p=f.Y;p=p.Y==null?null:Math.round(p.Y*100)/100;I.inview=p!=null?p:void 0;p=f.api.getPlayerSize();if(p.height>0&&p.width>0){p=[Math.round(p.width),Math.round(p.height)];var z=g.z6();z>1&&p.push(z);p=p.join(":")}else p=void 0;I.size=p})}; Ey=function(f){z9.call(this,f);var D=this;hO(this.api,"dismissFeaturedProductOverlay",function(){D.dismissFeaturedProductOverlay()})}; Duu=function(f){var D;return((D=((f==null?void 0:f.messageRenderers)||[]).find(function(F){return!!F.timeCounterRenderer}))==null?void 0:D.timeCounterRenderer)||null}; JA=function(f){g.x.call(this,{K:"div",ST:["ytp-player-content","ytp-iv-player-content"],L:[{K:"div",C:"ytp-free-preview-countdown-timer",L:[{K:"span",nQ:"{{label}}"},{K:"span",C:"ytp-free-preview-countdown-timer-separator",nQ:"\u2022"},{K:"span",nQ:"{{duration}}"}]}]});this.api=f;this.Y=null;this.B=this.J=0;this.D(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; ZHa=function(f,D){f.Y||(f.J=D,f.B=(0,g.m5)(),f.Y=new g.e$(function(){FmE(f)},null),FmE(f))}; FmE=function(f){var D=Math,F=D.round,Z=Math.min((0,g.m5)()-f.B,f.J);D=F.call(D,(f.J-Z)/1E3);f.updateValue("duration",zN({seconds:D}));D<=0&&f.Y?f.stopTimer():f.Y&&f.Y.start()}; IQs=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"basechromeinitialized",function(){D.Y=new JA(f);g.N(D,D.Y);g.uC(f,D.Y.element,4);D.Y.hide()})}; u2=function(f){g.x.call(this,{K:"button",ST:["ytp-fullerscreen-edu-button","ytp-button"],L:[{K:"div",ST:["ytp-fullerscreen-edu-text"],nQ:"Desliza hacia abajo para ver m\u00e1s detalles"},{K:"div",ST:["ytp-fullerscreen-edu-chevron"],L:[gou()]}],W:{"data-priority":"2"}});this.NR=f;this.fade=new g.Zr(this,250,void 0,100);this.J=this.Y=!1;f.createClientVe(this.element,this,61214);g.N(this,this.fade);this.D(f,"fullscreentoggled",this.u3);this.D(f,"presentingplayerstatechange",this.u3);this.listen("click", this.onClick);this.u3()}; NK=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);hO(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Z){D.updateFullerscreenEduButtonSubtleModeState(Z)}); hO(this.api,"updateFullerscreenEduButtonVisibility",function(Z){D.updateFullerscreenEduButtonVisibility(Z)}); var F=f.j();f.Z("external_fullscreen_with_edu")&&F.externalFullscreen&&Ie(F)&&F.controlsType==="1"&&this.events.D(f,"standardControlsInitialized",function(){D.Y=new u2(f);g.N(D,D.Y);f.XN(D.Y)})}; pXT=function(f){g.x.call(this,{K:"div",C:"ytp-gated-actions-overlay",L:[{K:"div",C:"ytp-gated-actions-overlay-background",L:[{K:"div",C:"ytp-gated-actions-overlay-background-overlay"}]},{K:"button",ST:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],W:{"aria-label":"Cerrar"},L:[g.Vx()]},{K:"div",C:"ytp-gated-actions-overlay-bar",L:[{K:"div",C:"ytp-gated-actions-overlay-text-container",L:[{K:"div",C:"ytp-gated-actions-overlay-title",nQ:"{{title}}"},{K:"div",C:"ytp-gated-actions-overlay-subtitle", nQ:"{{subtitle}}"}]},{K:"div",C:"ytp-gated-actions-overlay-button-container"}]}]});var D=this;this.api=f;this.background=this.fQ("ytp-gated-actions-overlay-background");this.J=this.fQ("ytp-gated-actions-overlay-button-container");this.Y=[];this.D(this.fQ("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){D.api.wY("onCloseMiniplayer")}); this.hide()}; sfc=function(f,D){var F=0;F=0;for(var Z={};F I&&(I=H.width,p="url("+H.url+")")}F.background.style.backgroundImage=p;sfc(F,Z.actionButtons||[]);F.show()}else F.hide()}); g.uC(this.api,this.Y.element,4)}; gZ=function(f){z9.call(this,f);var D=this;AO(this.api,"getSphericalProperties",function(){return D.getSphericalProperties()}); AO(this.api,"setSphericalProperties",function(){D.setSphericalProperties.apply(D,g.w(g.hv.apply(0,arguments)))}); yT(this.api,"getSphericalProperties",function(){return D.api.getPresentingPlayerType()===2?{}:D.getSphericalProperties()}); yT(this.api,"setSphericalProperties",function(){var F=g.hv.apply(0,arguments);D.api.getPresentingPlayerType()!==2&&D.setSphericalProperties.apply(D,g.w(F))})}; eG=function(f){z9.call(this,f);hO(f,"createClientVe",this.createClientVe.bind(this));hO(f,"createServerVe",this.createServerVe.bind(this));hO(f,"destroyVe",this.destroyVe.bind(this));hO(f,"hasVe",this.hasVe.bind(this));hO(f,"logClick",this.logClick.bind(this));hO(f,"logVisibility",this.logVisibility.bind(this));hO(f,"setTrackingParams",this.setTrackingParams.bind(this))}; xq=function(f,D,F,Z){function I(z){var H=!(z.status!==204&&z.status!==200&&!z.response),K;z={succ:""+ +H,rc:z.status,lb:((K=z.response)==null?void 0:K.byteLength)||0,rt:((0,g.m5)()-p).toFixed(),shost:g.dy(f),trigger:D};HHa(z,f);F&&F(z);Z&&!H&&Z(new g.px("pathprobe.net",z))} var p=(0,g.m5)();g.tW(f,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:I,onTimeout:I})}; HHa=function(f,D){var F;((F=window.performance)==null?0:F.getEntriesByName)&&(D=performance.getEntriesByName(D))&&D.length&&(D=D[0],f.pedns=(D.domainLookupEnd-D.startTime).toFixed(),f.pecon=(D.connectEnd-D.domainLookupEnd).toFixed(),f.perqs=(D.requestStart-D.connectEnd).toFixed(),oIy&&(f.perqsa=D.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; Kms=function(f){oIy=f}; Xj=function(f,D){this.lE=f;this.policy=D;this.playbackRate=1}; kkJ=function(f,D){var F=Math.min(2.5,Oy(f.lE));f=na(f);return D-F*f}; PN=function(f,D,F,Z,I){I=I===void 0?!1:I;if(f.policy.bI)return Math.ceil(f.policy.bI*D);f.policy.CG&&(Z=Math.abs(Z));Z/=f.playbackRate;var p=1/Yq(f.lE);F=Math.max(.9*(Z-3),Oy(f.lE)+f.lE.J.Y*p)/p*.8/(D+F);F=Math.min(F,Z);f.policy.ey>0&&I&&(F=Math.max(F,f.policy.ey));return jfJ(f,F,D)}; jfJ=function(f,D,F){return Math.ceil(Math.max(Math.max(f.policy.BL,f.policy.Hb*F),Math.min(Math.min(f.policy.Ps,31*F),Math.ceil(D*F))))||f.policy.BL}; na=function(f){return Yq(f.lE,!f.policy.vt,f.policy.Dz)}; fy=function(f){return na(f)/f.playbackRate}; DI=function(f,D,F){var Z=f.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],I=f.policy.playbackStartPolicy.startMinReadaheadPolicy||[];f=Infinity;D=g.a(D&&Z.length>0?Z:I);for(Z=D.next();!Z.done;Z=D.next())Z=Z.value,I=Z.minReadaheadMs||0,F<(Z.minBandwidthBytesPerSec||0)||f>I&&(f=I);return f0&&(this.J=F.Gn)}; yRs=function(f,D,F,Z,I){if(!Z.info.B){if(F.length===0)F.push(Z);else{var p;(f=(p=F.pop())==null?void 0:g.bQ(p,Z))?F.push(f):F.push(Z)}return I}var z;(F=(z=F.pop())==null?void 0:g.bQ(z,Z))||(F=Z);if(F.info.Y)return f.logger&&f.logger({incompleteSegment:F.info.lJ()}),I;Z=f.Pq(F);I=Z.Ws;Z={clipId:Z.clipId,formatId:Z.formatId,startTimeMs:Z.startTimeMs,durationMs:Z.VC,DY:I,nK:I};I=iHI(D,Z.startTimeMs);if(p=F=I>=0?D[I]:null){p=Z;var H=I;z=F.startTimeMs+F.durationMs;var K=p.startTimeMs+p.durationMs;if(p.startTimeMs- z>f.J)p=!1;else if(hrc(f,F.formatId,p.formatId))F.durationMs=Math.max(z,K)-F.startTimeMs,F.nK=Math.max(F.nK,p.nK),p=!0;else if(Math.abs(F.startTimeMs-p.startTimeMs)<=f.J)if(F.durationMs>p.durationMs+f.J){var k=F.formatId,h=F.DY;H=F.nK;F.formatId=p.formatId;F.durationMs=p.durationMs;F.DY=p.DY;F.nK=p.nK;p.formatId=k;p.startTimeMs=K;p.durationMs=z-K;p.DY=h;p.nK=H;p=!1}else F.formatId=p.formatId,p=!0;else z>p.startTimeMs&&(z>K&&(D.splice(H+1,0,{formatId:F.formatId,startTimeMs:K,durationMs:z-K,DY:p.nK+ 1,nK:F.nK}),f.logger&&f.logger({splitOldStart:(k=F.startTimeMs)==null?void 0:k.toFixed(3),splitOldEnd:z==null?void 0:z.toFixed(3),splitNewStart:(h=p.startTimeMs)==null?void 0:h.toFixed(3),splitNewEnd:K==null?void 0:K.toFixed(3)})),F.durationMs=p.startTimeMs-F.startTimeMs,F.nK=p.DY-1),p=!1}p?Z=F:(I+=1,D.splice(I,0,Z));k=0;for(h=I+1;h=K+F.J?F=!0:H+F.J=0?f:-f-2}; ARD=function(f,D){if(f.yL){var F=f.yL.Ew();if(F.length!==0){if(f.B&&D){var Z=f.B,I=Z.info.G;!Pi(F,I)&&Z.info.S>0&&(0,g.m5)()-f.T<5E3&&(f.logger&&f.logger({dend:Z.info.lJ()}),F=jjy(F,I,I+.01))}f.policy.fH&&f.logger&&f.logger({cbri:""+f.Y});Z=[];for(var p=I=0;I=z){var h=Object.assign({},f.UI[p]),y=f.FF.B.get(XV(f.UI[p].formatId)),A=Math.max(K,z);z=y.index.Kw(A+f.J/ 1E3);K=y.index.getStartTime(z);var V=z+ +(Math.abs(K-A)>f.J/1E3);A=V+f.G;V=y.index.getStartTime(V)*1E3;p!==f.Y||D?(h.DY=A,h.startTimeMs=V):(f.logger&&f.logger({pEvict:"1",og:h.startTimeMs,adj:K*1E3}),h.DY=z+f.G,h.startTimeMs=K*1E3);z=void 0;K=((z=f.B)==null?void 0:z.info.duration)||11;p===f.Y&&Hf.J/1E3);z=K+f.G;y=y.index.PJ(K)*1E3;h.nK=z;h.durationMs=y-h.startTimeMs;h.DY<=h.nK&&Z.push(h)}k=0&&sS(f.audioTrack,f.targetTime)>=0&&p?((f.videoTrack.G||f.audioTrack.G)&&f.loader.Gx("iterativeSeeking",{status:"done",count:f.seekCount}),f.videoTrack.G=!1,f.audioTrack.G=!1):Z&&g.mF(function(){if(f.Y||!f.policy.Uq)os(f);else{var z=D.startTime,H=D.duration;if(!f.policy.X){var K=f.videoTrack.X!==-1&&f.audioTrack.X!==-1,k=!f.videoTrack.KQ&&!f.audioTrack.KQ;(F?f.videoTrack.G:f.audioTrack.G)&&K&&k&&(f.targetTime>= z&&f.targetTime432E3&&ejJ(f.FF);f.J&&(I=f.J,f.J=0);g.mF(function(){f.policy.X||Ky(f,I,102)}); f.loader.Gx("initManifestlessSync",{st:I,ost:I+f.loader.R_(),a:f.audioTrack.X,v:f.videoTrack.X});f.B&&(f.B.resolve(I+.1),f.B=null);f.policy.X&&Ky(f,I,102)}}}; h1=function(){this.data=new Uint8Array(2048);this.pos=0;i6||(i6=TF("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; yV=function(f,D){f.add(D==null||isNaN(D)?0:D+1)}; $v=function(f,D){var F=this;this.Oy=f;this.requestNumber=++cRa;this.Y=this.now();this.N=this.Jb=NaN;this.S=this.Y;this.B=this.AN=this.X=0;this.T=this.Y;this.eT=this.KQ=this.rY=this.BI=this.qb=this.zx=this.J=this.G=0;this.Bs=this.isActive=!1;this.Z5=this.JN=0;this.ej={NRE:function(){return F.Tw}}; this.lE=D.lE;this.snapshot=A1(this.lE);this.policy=this.lE.J;this.q0=!!D.q0;this.BW=D.BW;this.WR=D.WR||0;this.j$=D.j$||0;D.Uz&&(this.Tx=new h1);var Z;this.Tw=(Z=D.Tw)!=null?Z:!1;this.q0||Uuu(this.lE)}; vIa=function(f){f.rY=Math.max(f.rY,f.X-f.qb);f.KQ=Math.max(f.KQ,f.S-f.BI);f.zx=0}; VV=function(f,D,F){aQE(f.lE,D);f.Tx&&(f.Tx.add(Math.ceil(D)-Math.ceil(f.S)),f.Tx.add(Math.max(0,Math.ceil(F/1024)-Math.ceil(f.X/1024))));var Z=D-f.S,I=F-f.X;f.AN=I;f.eT=Math.max(f.eT,I/(Z+.01)*1E3);f.S=D;f.X=F;f.zx&&F>f.zx&&vIa(f)}; Rs=function(f,D){f.url=D;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; d2=function(f,D){$v.call(this,f,D);this.G3=this.Wk=!1;this.Ir=this.xo=Infinity;this.jT=NaN;this.Uq=!1;this.b3=NaN;this.m9=this.dY=this.Ps=0;this.o5=D.o5||1;this.b5=D.b5||this.o5;this.Di=D.Di;this.Ws=D.Ws;this.Zo=D.Zo;Gkw(this);this.gf(this.Y);this.gw=(this.b3-this.Y)/1E3}; wXD=function(f){var D=f.dY||f.Ps;return D?f.snapshot.delay+Math.min(f.j$,(f.N-f.Jb)/1E3)+D:f.gw}; Cy=function(f,D,F){if(!f.q0){D=Math.max(D,.01);var Z=f.WR?Math.max(D,F/f.WR):D,I=f.lE.J.B;I&&(Z=D,f.WR&&(Z=Math.max(D,F/f.WR*I)));QV(f.lE,D,F,Z)}}; WmE=function(f){return(f.T-f.Y)/1E3}; Gkw=function(f){f.jT=f.Y+f.snapshot.delay*1E3;f.Uq=!1}; mf=function(f,D){if(f.Di&&f.Ws!==void 0&&f.Zo!==void 0){var F=Math,Z=F.min,I=f.xo;var p=f.Di;var z=f.Y;if(BVu(p,f.Ws))p=D;else{var H=0;p.jA&&(H=.2);p=z+(p.j$+H)*1E3}f.xo=Z.call(F,I,p);F=Math;Z=F.min;I=f.Ir;p=f.Di;z=f.Y;H=rRI(p,f.Ws,f.Zo);H!==2&&(D=H?D:z+p.j$*1E3,p.jA&&(D+=p.j$*1E3));f.Ir=Z.call(F,I,D);f.xo<=f.Y?Gkw(f):(f.jT=f.xo,f.Uq=!0)}}; LmD=function(f,D){if(D+1<=f.totalLength){var F=$l(f,D);F=F<128?1:F<192?2:F<224?3:F<240?4:5}else F=0;if(F<1||!(D+F<=f.totalLength))return[-1,D];if(F===1)f=$l(f,D++);else if(F===2)F=$l(f,D++),f=$l(f,D++),f=(F&63)+64*f;else if(F===3){F=$l(f,D++);var Z=$l(f,D++);f=$l(f,D++);f=(F&31)+32*(Z+256*f)}else if(F===4){F=$l(f,D++);Z=$l(f,D++);var I=$l(f,D++);f=$l(f,D++);f=(F&15)+16*(Z+256*(I+256*f))}else F=D+1,f.focus(F),hh(f,F,4)?f=C_s(f).getUint32(F-f.B,!0):(Z=$l(f,F+2)+256*$l(f,F+3),f=$l(f,F)+256*($l(f,F+1)+ 256*Z)),D+=5;return[f,D]}; TT=function(f){this.Oy=f;this.Y=new K6}; b6=function(f,D){this.info=f;this.callback=D;this.state=1;this.UL=this.W$=!1;this.hS=null}; lQu=function(f){return g.tG(f.info.tb,function(D){return D.type===3})}; Mr=function(f,D,F,Z){var I=this;Z=Z===void 0?{}:Z;this.policy=D;this.Oy=F;this.status=0;this.Y=new K6;this.J=0;this.MR=this.G=this.B=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Z.method||"GET",f);if(Z.headers)for(f=Z.headers,D=g.a(Object.keys(f)),F=D.next();!F.done;F=D.next())F=F.value,this.xhr.setRequestHeader(F,f[F]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return I.xU()}; this.xhr.onload=function(){return I.onDone()}; this.xhr.onerror=function(){return I.onError()}; this.xhr.fetch(function(p){I.Y.append(p);I.J+=p.length;p=(0,g.m5)();I.Oy.zS(p,I.J)},function(){},Z.body||null)}; EIJ=function(f,D){this.J=(new TextEncoder).encode(f);this.Y=(new TextEncoder).encode(D)}; R4w=function(f,D){var F;return g.l(function(Z){if(!D)return Z.return(D);F=new g.Hj(f.J);return Z.return(F.encrypt(D,f.Y))})}; TMd=function(f,D){var F;return g.l(function(Z){if(Z.Y==1){if(!D)return Z.return(D);F=new g.Hj(f.J);return g.r(Z,F.decrypt(D,f.Y),2)}return Z.return(Z.J)})}; JRs=function(f,D){var F=this;this.Y=f;this.Oy=D;this.loaded=this.status=0;this.error="";f=PX(this.Y.get("range")||"");if(!f)throw Error("bad range");this.range=f;this.J=new K6;this.run().then(function(){F.Oy.Ju()},function(Z){F.error=""+Z||"unknown_err"; F.Oy.Ju()})}; NVs=function(f,D,F,Z){var I=this;Z=Z===void 0?{}:Z;this.policy=D;this.Oy=F;this.T=Z;this.status=0;this.response=void 0;this.J=0;this.aborted=this.X=!1;this.errorMessage="";this.N=function(p){if(p)if(I.status=p.status,p.ok&&p.body&&I.status!==204)I.status=I.status||242,I.B=p.body.getReader(),I.MR()?I.B.cancel().catch(function(){}):(I.responseHeaders=p.headers,I.Oy.HY(),uVT(I)); else I.onDone();else I.onError(Error("null_response"))}; this.S=function(p){var z=(0,g.m5)();I.MR()||(p.done?(I.B=void 0,I.onDone()):(p=p.value,I.J+=p.length,I.Y.append(p),uVT(I),I.Oy.zS(z,I.J)))}; this.onError=function(p){I.errorMessage=String(p);I.X=!0;I.onDone()}; this.Y=new K6;this.G=window.AbortController?new AbortController:void 0;this.start(f)}; uVT=function(f){f.B.read().then(f.S,f.onError).then(void 0,c1)}; gIc=function(f,D,F){var Z=this;F=F===void 0?{}:F;this.Oy=D;this.J=this.status=0;this.MR=this.Y=!1;this.xhr=new XMLHttpRequest;this.xhr.open(F.method||"GET",f);if(F.headers){f=F.headers;D=g.a(Object.keys(f));for(var I=D.next();!I.done;I=D.next())I=I.value,this.xhr.setRequestHeader(I,f[I])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(p){Z.xU(p)}; f=q9(function(p){Z.onDone(p)}); this.xhr.addEventListener("load",f,!1);this.xhr.addEventListener("error",f,!1);F.body?this.xhr.send(F.body):this.xhr.send();this.xhr.addEventListener("progress",q9(function(p){Z.onProgress(p)}),!1)}; t1=function(f,D,F,Z,I){if(sJ(5,f.sG))return new JRs(f,F);f=f.M7();return Z?qxu()?new Mr(f,D,F,I):new NVs(f,D,F,I):new gIc(f,F,I)}; Sd=function(f,D){g.J.call(this);var F=this;this.policy=f;this.tb=D;this.J=0;this.Y=null;this.Pw=[];this.B=null;this.ej={Qe:function(){return F.tb}}; this.tb.length===1||g.tG(this.tb,function(Z){return!!Z.range})}; cs=function(f,D,F){f.Y&&(kl(f.Y,D),D=f.Y,f.Y=null);for(var Z=0,I=0,p=g.a(f.tb),z=p.next();!z.done;z=p.next())if(z=z.value,z.range&&Z+z.J<=f.J)Z+=z.J;else{if(ZD(z)&&!F&&f.J+D.totalLength-I=400?(f.lastError="net.badstatus",!0):(I===void 0?0:I)?(f.lastError="ump.spsrejectfailure",!0):F||Z!==void 0&&Z?!1:(f.lastError=D===204?"net.nocontent":"net.connect",!0)}; Ws=function(f,D){if(f.policy.vZ)return!1;var F=D.getResponseHeader("content-type"),Z=D.M3();f=!Z||Z<=f.policy.B7;return(!D.CB()||!F||F.indexOf("text/plain")!==-1)&&f}; nIu=function(f,D){var F="";D=D.b8();D.totalLength<=f.policy.B7&&(f=yo(D),f=Ra(f),F=mE(f)?f:"");return F}; vs=function(f){return JR(f.G,hI(62,f.jp.sG))}; Y6c=function(f){var D=f.timing.hc();D.shost=hI(61,f.jp.sG);f.policy.B_&&f.policy.g$&&(D.csrc=1);return D}; PYu=function(f,D){return(f==null?void 0:f.maxWidth)>(D==null?void 0:D.maxWidth)||(f==null?void 0:f.maxHeight)>(D==null?void 0:D.maxHeight)}; fDJ=function(f,D){for(var F=g.a(D.keys()),Z=F.next();!Z.done;Z=F.next())if(Z=D.get(Z.value),Z.length!==0){g.kJ(Z,function(H,K){return K.maxFramerate-H.maxFramerate}); for(var I=[Z[0]],p=0,z=1;zf.Y||F.push(Z)}return F}; Bs=function(f,D,F){var Z=Zhf[f]||[];F.Z("html5_shorts_onesie_mismatched_fix")&&(Z=IDu[f]||[]);D.push.apply(D,g.w(Z));F.Z("html5_early_media_for_drm")&&D.push.apply(D,g.w(pTu[f]||[]))}; KCs=function(f,D){var F=g.df(f),Z=f.j(),I=Z.X;Z=Z.Z("html5_shorts_onesie_mismatched_fix");var p=f.Lw();if(Z){if(!I.Y){if(p&&r2)return r2;if(Ly)return Ly}}else if(Ly&&!I.Y)return Ly;var z=[],H=[],K={},k=l6.concat(zlT);Z&&(k=l6.concat(sAs));f.Z("html5_early_media_for_drm")&&(k=k.concat(q$c),f.Z("allow_vp9_1080p_mq_enc")&&k.push(HhJ));var h=[].concat(g.w(oCc));f.Z("html5_iamf_audio_onesie_fmt")&&h.push(["773"]);k=g.a(k);for(var y=k.next();!y.done;y=k.next()){var A=!1;y=g.a(y.value);for(var V=y.next();!V.done;V= y.next()){V=V.value;var R=$3(V,p&&Z);if(R&&R.video&&!(Bi(R)&&!F.Tx&&R.video.qualityOrdinal>F.QZ)){var m=g.Pf(f.j().experiments,"html5_drm_byterate_soft_cap");m>0&&Ksa(R)&&R.Eq>m||(A?(z.push(V),Bs(V,z,f)):(R=gs(F,R,I),R===!0?(A=!0,z.push(V),Bs(V,z,f)):K[V]=R))}}}h=g.a(h);for(k=h.next();!k.done;k=h.next())for(k=g.a(k.value),A=k.next();!A.done;A=k.next())if(A=A.value,(y=qCT(A))&&y.audio&&(f.Z("html5_onesie_51_audio")||!rj(y)))if(y=gs(F,y,I),y===!0){H.push(A);Bs(A,H,f);break}else K[A]=y;if(!f.Z("html5_enable_audio_quality_setting"))for(f= g.a(["141","774"]),h=f.next();!h.done;h=f.next())h=h.value,H.includes(h)&&(g.no(H,h),K[h]="blkhqa");F.Y&&D("orfmts",K);if(Z)return I.Y&&(I.Y=!1,r2=Ly=void 0),p?r2={video:z,audio:H}:Ly={video:z,audio:H};Ly={video:z,audio:H};I.Y=!1;return Ly}; g.ihd=function(f,D,F){var Z=F.X,I=[],p=[],z=F.Z("html5_shorts_onesie_mismatched_fix");f=f.Lw();var H=l6.concat(zlT);z&&(H=l6.concat(sAs));F.Z("html5_early_media_for_drm")&&(H=H.concat(q$c),F.Z("allow_vp9_1080p_mq_enc")&&H.push(HhJ));var K=[].concat(g.w(oCc));F.Z("html5_iamf_audio_onesie_fmt")&&K.push(["773"]);H=g.a(H);for(var k=H.next();!k.done;k=H.next()){k=g.a(k.value);for(var h=k.next();!h.done;h=k.next()){h=h.value;var y=$3(h,f&&z);if(y&&y.video){var A=g.Pf(F.experiments,"html5_drm_byterate_soft_cap"); if(!(A>0&&Ksa(y)&&y.Eq>A)&&gs(D,y,Z)===!0){I.push({videoCodec:kVu[vi[h]],maxWidth:y.video.width,maxHeight:y.video.height,maxFramerate:y.video.fps});break}}}}z=g.a(K);for(f=z.next();!f.done;f=z.next())for(f=g.a(f.value),K=f.next();!K.done;K=f.next())if(K=K.value,(H=qCT(K))&&H.audio&&(F.Z("html5_onesie_51_audio")||!rj(H))&&gs(D,H,Z)===!0){p.push({audioCodec:jAE[vi[K]],numChannels:H.audio.numChannels});break}return{videoFormatCapabilities:I,audioFormatCapabilities:p}}; Aqs=function(f){var D,F={},Z=f.Yo,I=f.Uy,p=f.lE,z=Z.getVideoData(),H=TN(0),K=Z.getVisibilityState();I.Z("html5_enable_audio_quality_setting")&&(F.DW=I.DW);H&&(F.I5o=H,F.lastManualDirection=kqD(),H=mWX()||0,H>0&&(H=(I.Z("html5_use_date_now_for_local_storage")?Date.now():(0,g.m5)())-H,I.Z("html5_use_date_now_for_local_storage")?H>0&&(F.timeSinceLastManualFormatSelectionMs=H):F.timeSinceLastManualFormatSelectionMs=H));H=I.Z("html5_use_streamer_bandwidth_for_low_latency_live")&&z.isLowLatencyLiveStream; if(p.Bs&&!H){var k;H=I.Z("html5_disable_bandwidth_cofactors_for_sabr_live")?!((k=f.Xr)==null||!k.vt):!1;F.wX=Yq(p,!H)}H=g.t9.medium;var h=Math.floor(H*16/9);(k=z.Lw())||(z.Y&&z.B&&z.B.videoInfos.length!==0?(k=z.B.videoInfos[0],k=!!k.video&&k.video.width0?{authorizedFormats:f.authorizedFormats}:{authorizedFormats:D};f.sabrLicenseConstraint&&(F.Xs.sabrLicenseConstraint=f.sabrLicenseConstraint);if(I.Z("html5_onesie_media_capabilities")||UW(z))F.xx=3;I.Z("html5_onesie_audio_only_playback")&& $7(z)&&(F.xx=1);var S;((S=f.Xr)==null?0:S.Gi)&&f.E8x&&(F.xx=F.xx===void 0?7:F.xx|4);S=z.b3?z.b3:g.df(z);I.Z("html5_onesie_media_capabilities")&&(F.mediaCapabilities=g.ihd(z,S,I));var G;if((G=f.Xr)==null?0:ES(G)){A=f.i7;G=[];D=[];V=new Map;R=g.a(z.Ye.Y.values());for(m=R.next();!m.done;m=R.next())if(b=m.value,b.E6)D.push({audioCodec:jAE[b.qR],numChannels:b.numChannels,spatialCapabilityBitmask:hlI[b.qR]});else{U=kVu[b.qR];m={videoCodec:U,maxWidth:b.maxWidth||0,maxHeight:b.maxHeight||0,maxFramerate:b.maxFramerate|| 0,is10BitSupported:b.To||!1,maxBitrateBps:b.maxBitrateBps||0};if(b.qR==="1"||b.qR==="9")m.efficient=!0;b=U+"_"+b.To;U=V.get(b)||[];U.push(m);V.set(b,U)}G=fDJ(G,V);A=A?[].concat(g.w(A)):[];z.Z("html5_ssff_denylist_opus_low")&&A.push(249,350);F.mediaCapabilities={videoFormatCapabilities:G,audioFormatCapabilities:D,hdrModeBitmask:3,perPlaybackAttributes:A.length?{itagDenylist:A}:{}}}var W;if((W=f.Xr)==null?0:W.Y){F.Br=S.Br;var u;F.QZ=(u=f.Xr)==null?void 0:u.QZ}I.Gm&&(F.pM=I.Gm);F.Xh=f.Yl;F.RR=f.RR;F.wL= f.wL;F.w3=f.w3;f.LV&&(F.ke3=(0,g.m5)()-f.LV);f.s3&&I.Z("html5_report_prefetch_requests")&&(F.s3=f.s3);Ik||(F.YIE=!0);W=Oy(p)*1E3;W>0&&(F.Zw=W);var E;((E=f.Xr)==null?0:E.Mh)&&f.jI&&f.jI0?Ds:p.interruptions[0]|| 0;var Fu;if((Fu=f.Xr)==null?0:Fu.gw)F.U2=f.U2;I.b3&&(F.audioTrackId=I.b3);DU(z)&&!F.audioTrackId&&(I.Z("html5_fill_default_mosaic_audio_track_id")||(f=aqc(z),F.audioTrackId=f),z==null||z.Gx("misstrkchg",{"default":F.audioTrackId}));if(f=IFJ())F.detailedNetworkType=yqs[f]||yqs.other;!I.Z("html5_enable_voice_boost")||z.Lw()||z.isAd()||(F.fYF=I.S3);return F}; J1=function(f,D,F,Z,I,p,z){var H={};D&&(H.TF=D);if(!f)return H;H.playbackCookie=F==null?void 0:F.playbackCookie;I&&(H.Ov=I);H.Zb=[];H.hH=[];if(z==null?0:z.size)for(D=g.a(z.values()),F=D.next();!F.done;F=D.next())H.hH.push(F.value);if(f.sabrContextUpdates.size>0)for(D=g.a(f.sabrContextUpdates.values()),F=D.next();!F.done;F=D.next())$xu(H,F.value,Z);G6(f)&&p&&$xu(H,p,Z);Z=f.j().Y;H.clientInfo={clientName:VYy[Z.c.toUpperCase()]||0};Z.cbrand&&(H.clientInfo.deviceMake=Z.cbrand);Z.cmodel&&(H.clientInfo.deviceModel= Z.cmodel);Z.cver&&(H.clientInfo.clientVersion=Z.cver);Z.cos&&(H.clientInfo.osName=Z.cos);Z.cosver&&(H.clientInfo.osVersion=Z.cosver);Z=f.j();Z.Z("html5_sabr_enable_server_xtag_selection")&&Z.OI&&(H.clientInfo.hl=Z.OI);f.Wr&&(H.Wr=f.Wr);return H}; $xu=function(f,D,F){var Z=D.type||0;(F==null?0:F.has(Z))?f.hH.push(D):f.Zb.push(Z)}; py=function(f,D,F,Z,I,p){var z=p===void 0?{}:p;var H=z.d4===void 0?[]:z.d4;var K=z.i9===void 0?!1:z.i9;var k=z.Kj===void 0?0:z.Kj;var h=z.poToken===void 0?"":z.poToken;var y=z.iW===void 0?void 0:z.iW;var A=z.R7===void 0?"":z.R7;var V=z.jm===void 0?0:z.jm;var R=z.ke===void 0?new Uint8Array(0):z.ke;var m=z.hU===void 0?!1:z.hU;p=z.WC===void 0?0:z.WC;z=z.TF===void 0?void 0:z.TF;b6.call(this,D,I);var b=this;this.policy=f;this.logger=new g.Qk("dash/request");this.I5=this.Qz=0;this.vz=!1;this.Sy=this.TX= null;this.Xo=!1;this.ke=this.jm=null;this.Fu=this.EM=!1;this.FT=null;this.WC=this.gF=0;this.nt=!1;this.ej={uJ:function(S){b.uJ(S)}, Y4r:function(){return b.hS}, OBd:function(S){b.hS=S}, PpE:function(S){b.Qz=S}, QEy:function(S){b.Ic.lastError=S}, Er:function(){return b.xhr}}; this.timing=new d2(this,F);this.i9=K;this.jm=V;this.ke=R;this.jp=g.kC(this.info,this.policy,Z);this.jp.set("rn",this.RN().toString());this.jp.set("rbuf",(k*1E3).toFixed().toString());this.i9&&this.jp.set("smb","1");this.policy.lC&&h&&this.jp.set("pot",h);A&&this.jp.set("bbs",A);this.policy.useUmp&&!sJ(3,this.jp.sG)&&(this.wy=new TT(this),this.jp.set("ump","1"),this.jp.set("srfvp","1"));if(f=this.policy.M0?this.policy.Hf&&!isNaN(this.info.Zo)&&this.info.Zo>this.policy.zP?!1:!0:!1)D=null,this.policy.kp&& this.policy.ML?D=[1]:m&&(D=[]),D!=null&&(this.policy.Se&&D.push(2),this.jp.set("defsel",D.join(",")));this.Ic=new US(this,this.policy,this.jp,this.info.T3,this.timing,this.logger,Z,y);this.d4=H||null;this.UL=RlI(this);ers(this.Ic);Z=void 0;if(this.policy.Dpx||this.wy||this.policy.jT)Z={method:"POST"},H=(0,g.u6)([120,0]),y={},this.policy.L8&&z&&(z=J1(void 0,z),y.RT=z),this.policy.YF&&this.ke&&(y.videoPlaybackUstreamerConfig=this.ke),this.policy.jT&&(z=this.info.G)&&Object.assign(y,z),Object.keys(y).length> 0?Z.body=g.gX(y,g.mr):Z.body=H;if(this.jm&&this.ke){this.jp.set("iwts","1");Z={method:"POST"};z={w3:this.jm*1E3};var U;H=(U=this.info.G)==null?void 0:U.BR;U=g.gX({w$:z,BR:H||void 0,videoPlaybackUstreamerConfig:this.ke},g.mr);Z.body=U}try{this.xhr=t1(this.jp,this.policy.N,this.timing,f,Z),this.Ic.J.start(),p&&(this.O4=new g.xX(this.Fs,p,this),this.O4.start(p+(this.timing.lE.N.yz()||0)*1E3)),this.policy.mM&&Rs(this.timing,this.M7()),g.mF(function(){})}catch(S){dxw(this,S,!0)}}; RlI=function(f){if(!(Kh(f.info)&&f.info.Tw()&&f.policy.Dp&&f.d4)||f.info.T3.B>=2||TN()>0||!ymw())return!1;var D=f.jp.get("aitags");if(!D)return!1;D=Ec(D).split(",");for(var F=[],Z=g.a(f.d4),I=Z.next();!I.done;I=Z.next())I=I.value,g.e0(D,I)&&F.push(I);if(!F.length)return!1;f.jp.set("altitags",g.lI(F.join(",")));return!0}; dxw=function(f,D,F){F=F===void 0?!1:F;g.SJ(D);f.Ic.lastError="player.exception";f.errorMessage=D.name+"_"+D.message;F?g.mF(function(){GT(f.Ic)}):GT(f.Ic)}; QAu=function(f,D){f.timing.Bs=!0;f.xhr.CB()&&f.timing.s4();if(f.policy.vI){var F;(F=f.O4)==null||F.stop()}cs(f.hS,D,!1)}; CQd=function(f){f.gF&&(f.xhr.status=f.gF,f.Qz=f.gF)}; Nr=function(f,D){$v.call(this,f,D);this.Ir=!0;this.xo=!1;this.dY=this.jT=0;this.Ps=NaN}; mxX=function(f,D,F){var Z=f.WR?Math.max(D,F/f.WR):D,I=f.lE.J.B;I&&(Z=D,f.WR&&(Z=Math.max(D,F/f.WR*I)));QV(f.lE,D,F,Z)}; g2=function(f,D){this.Oy=D;this.J={};this.logger=new g.Qk(f)}; ed=function(f){g2.call(this,"sabr",f);this.Oy=f;this.Y=[]}; TqD=function(f,D,F){switch(D){case 35:f.Na(F);break;case 44:f.Cv(F);break;case 43:f.Lq(F);break;case 53:f.P5(F);break;case 56:f.ZA();break;case 57:f.VW(F);break;case 42:f.Cq(F);break;case 45:f.g3(F);break;case 59:f.Tb(F);break;case 51:f.S9(F);break;case 49:f.Mq(F);break;case 50:f.Uv(F);break;case 47:f.zb(F);break;case 58:f.iH(F);break;case 61:f.Oy.Jz.SQ((0,g.m5)());break;case 66:f.CC(F);break;case 46:f.hY(F);break;case 67:f.onSnackbarMessage(F);break;case 71:D=BB(F,pKT),f.Oy.yW(D)}}; xv=function(f){g.J.call(this);this.G=f;this.logger=new g.Qk("onesie");this.Vj=new Map;this.J=this.Y=!1;this.Xr=this.FF=null;this.B=!1}; bhs=function(f,D,F){f.Vj.get(D).onProgress=F}; ny=function(f,D){f.Vj.has(D)&&(XQ?f.Vj.get(D).eA.clear():f.Vj.get(D).Pw=new K6,OS(f,D),f.J=!0)}; MYD=function(f){for(var D=g.a(f.Vj),F=D.next();!F.done;F=D.next()){var Z=g.a(F.value);F=Z.next().value;Z=Z.next().value;Z.zn||ny(f,F)}}; tYI=function(f,D){D=f.Vj.get(D);if(!D)return 0;f=0;if(D.tb.length>0){D=g.a(D.tb);for(var F=D.next();!F.done;F=D.next()){var Z=void 0;f+=((Z=F.value.range)==null?void 0:Z.length)||0}return f}if(D.An.length>0)for(F=g.a(D.An),Z=F.next();!Z.done;Z=F.next())f+=Z.value.dk||0;return f+D.jZ}; Yv=function(f,D){if(XQ){var F=0;f=f.Vj.get(D);if(f==null||!f.eA)return 0;f=g.a(f.eA.values());for(D=f.next();!D.done;D=f.next())F+=D.value.data.totalLength;return F}return((F=f.Vj.get(D))==null?void 0:F.Pw.totalLength)||0}; Ps=function(f,D){f=f.Vj.get(D);if(XQ){if(f==null||!f.zn)return!1;D=f.eA.size>0;return f.M$.length>0||D}return!(f==null||!f.zn)&&!(f==null||!f.Pw.totalLength)}; S$u=function(f,D){var F=f.Vj.get(D),Z=tYI(f,D),I=!Z&&!!F.bytesReceived;if(XQ){var p;if((p=f.FF)==null?0:p.jj){f=g.a(F.eA.values());for(D=f.next();!D.done;D=f.next())if(!D.value.JT)return!1;return I}}else if(p=f.bb(D),I&&f.Y&&p!==void 0)return p;return(I||F.bytesReceived===Z)&&F.Ch+Yv(f,D)===F.bytesReceived}; cqy=function(f,D,F,Z){F.tb.push.apply(F.tb,g.w(Z));if(XQ){F.O1.has(D)||F.O1.set(D,[]);var I;(I=F.O1.get(D)).push.apply(I,g.w(Z))}else if(F.hS)for(f=g.a(Z),D=f.next();!D.done;D=f.next())F.hS.tb.push(D.value);else{F.hS=new Sd(f.Xr,[].concat(g.w(F.tb)));var p;((p=f.Xr)==null?0:p.KH)&&g.N(f,F.hS)}}; UxX=function(f,D,F){var Z,I=(Z=f.FF)==null?void 0:Z.B.get(D);if(!I)return[];if(F.wv){var p;return((p=I.pj(0,F.clipId))==null?void 0:p.tb)||[]}if(I.MA()){var z=F.startMs,H=F.durationMs;Z=1E3;var K;if(((K=f.Xr)==null?0:K.Y)&&F.timeRange){var k;z=(k=F.timeRange.startTicks)!=null?k:-1;var h;H=(h=F.timeRange.uh)!=null?h:-1;var y;Z=(y=F.timeRange.timescale)!=null?y:-1}if(F.oO<0||F.Ib<0||H<0||z<0||F.dk<0||Z<0)return ny(f,D),[];f=fh(F.oO,F.dk);D=F.zQ||0;return[new FY(3,I,f,"makeSliceInfosMediaBytes",F.Ib- 1,z/Z,H/Z,D,f.length-D,void 0,F.E3,F.clipId)]}if(F.Ib<0)return ny(f,D),[];var A;return((A=f.FF)==null?0:A.jj)?(D=I.x3,K=D*I.info.Eq,k=F.zQ,((z=f.Xr)==null?0:z.Y)&&f.G.bV()!=="ONESIE"&&F.timeRange&&!k&&(H=F.timeRange.startTicks/F.timeRange.timescale),[new FY(3,I,void 0,"makeSliceInfosMediaBytes",F.Ib,H,D,k,K,!0,F.E3,F.clipId)]):[]}; vCE=function(f,D,F){f.FF=D;f.Xr=F;D=g.a(f.Vj);for(F=D.next();!F.done;F=D.next()){var Z=g.a(F.value);F=Z.next().value;Z=Z.next().value;for(var I=g.a(Z.J2),p=I.next();!p.done;p=I.next()){p=p.value;var z=UxX(f,F,p);cqy(f,p.Ve,Z,z)}}}; fE=function(f,D,F,Z){(f=f.Vj.get(F))&&!f.wS&&(XQ?(f.eA.has(D)||f.eA.set(D,{data:new K6,kZ:0,JT:!1}),kl(f.eA.get(D).data,Z)):kl(f.Pw,Z),f.bytesReceived+=Z.totalLength,f.TC=!0)}; OS=function(f,D){if((D=f.Vj.get(D))&&!D.wS){D.wS=!0;if(D.onProgress)D.onProgress();a:{D=g.a(f.Vj.values());for(var F=D.next();!F.done;F=D.next())if(!F.value.wS){D=!1;break a}D=!0}D&&f.G.YA()}}; aDu=function(f){XQ=f}; DC=function(f,D,F,Z,I,p,z){g.J.call(this);this.policy=f;this.info=D;this.FF=F;this.Oy=I;this.logger=new g.Qk("sabr");this.wy=new TT(this);this.qE=new ed(this);this.qI=new xv(this);this.state=1;this.yG=!1;this.Pg=0;this.clipId="";this.PR=-1;this.jQ=0;this.bD=-1;this.q1=this.R9=this.nt=this.Cg=!1;this.policy.p8?this.Jz=new Nr(this,p):this.Jz=new d2(this,p);this.jp=this.policy.gw?D.Vr:GVw(D,this.policy,Z);this.jp.set("rn",""+this.RN());this.jp.set("alr","yes");vCE(this.qI,F,f);this.Ic=new US(this,this.policy, this.jp,D.T3,this.Jz,this.logger,Z,z,this.policy.enableServerDrivenRequestCancellation);ers(this.Ic);var H;if((H=this.policy)==null?0:H.KH)g.N(this,this.qI),g.N(this,this.Ic);f=D.J;D={method:"POST",body:f};f&&(this.jQ=f.length);try{this.xhr=t1(this.jp,this.policy.N,this.Jz,Ik,D),this.policy.mM&&Rs(this.Jz,this.M7()),this.Ic.J.start()}catch(K){g.UT(K)}}; wTy=function(f){f.policy.At&&f.Pm&&!f.R9?f.R9=!0:f.Jz.s4()}; WCs=function(f,D){var F=-1,Z=-1,I=-1,p;if((p=f.QD)==null?0:p.items)for(f=g.a(f.QD.items),p=f.next();!p.done;p=f.next())p=p.value,D=H,K=f.FF.isManifestless,z){var k;if(((k=f.Y)==null?void 0:k.Xd.event)==="predictStart"&&f.Y.Wsf.X&&(f.X=NaN,f.T=NaN);if(f.Y&&f.Y.Ws===D){if(Z=f.Y,!f.policy.T||!f.policy.J)if(I&&Z){var z=Z.Xd;p=I.V7(z);z.event==="predictStart"&&(f.Bs=D);f.Gx("sdai",{onqevt:z.event,sq:D,mt:F,gab:p,cst:z.startSecs,cueid:f.policy.aL&&(p||z.event==="start")?z.identifier:void 0},!0);if(p)if(z.event!=="predictStart")z.event==="start"&&f.Bs===D-1&&f.Gx("sdai", {gabonstart:D}),Z.Rd?pE(f,4,"cue"):(f.X=D,f.T=F,f.Gx("sdai",{joinad:f.J,sg:f.X,st:f.T.toFixed(3)}),f.N=Date.now(),pE(f,2,f.J===3?"staftpred":"join"),elX(I,Z.Xd));else{var H=xxX(f);D+=Math.max(Math.ceil(-z.Y/H),1);z=Math.floor(F-z.Y/1E3);f.policy.J?f.B=z:f.G=D;f.Gx("sdai",{onpred:F,estsq:D,estmt:z.toFixed(3)});zv(f.loader,z,z,D,H);f.N=Date.now();pE(f,3,"predict");elX(I,Z.Xd)}else f.J===1?((H=f.D5)==null?0:H.nR?0:sd(H,F))?(zv(f.loader,F,F,D),pE(f,4,"sk2head")):pE(f,5,"nogab"):z.event==="predictStart"&& (f.policy.J&&f.B>0?(F=Math.floor(F-z.Y/1E3),f.B!==F&&f.Gx("sdai",{updateSt:F,old:f.B}),f.B=F):f.G>0&&(F=D+Math.max(Math.ceil(-z.Y/xxX(f)),1),f.G!==F&&(f.Gx("sdai",{updateSt:F,old:f.G}),f.G=F)))}else f.Gx("sdai",{nulldec:1,sq:D,mt:F.toFixed(3),evt:(Z==null?void 0:(z=Z.Xd)==null?void 0:z.event)||"none"})}else f.J===1&&pE(f,5,"noad")}; OhT=function(f,D,F){if(f.J===1||f.J===2)return!1;if(f.J!==0&&D===f.audioTrack){if(f.policy.J)return XTc(f.videoTrack,F)||XTc(f.videoTrack,F+1);f=qR(f.videoTrack);if(F>(f?f.Ws:-1))return!1}return!0}; Hn=function(f,D,F){return(F<0||F===f.X)&&!isNaN(f.T)?f.T:D}; xxX=function(f){switch(f.policy.latencyClass){case "LOW":return 2E3;case "ULTRALOW":return 1E3;default:return 5E3}}; JqD=function(f,D){if(f.Y){var F=f.Y.Xd.I$-(D.startTime+f.S-f.Y.Xd.startSecs);F<=0||(F=new of(f.Y.Xd.startSecs-(isNaN(f.S)?0:f.S),F,f.Y.Xd.context,f.Y.Xd.identifier,"stop",f.Y.Xd.Y+D.duration*1E3),f.Gx("cuepointdiscontinuity",{segNum:D.Ws}),II(f,F,D.Ws))}}; pE=function(f,D,F){f.J!==D&&(f.Gx("sdai",{setsst:D,old:f.J,r:F}),f.J=D)}; oI=function(f,D,F,Z){(Z===void 0?0:Z)?pE(f,1,"seek"):D>0&&Math.abs(D-F)>=5&&f.J===4&&pE(f,5,"sk2t")}; nCJ=function(f,D,F,Z){var I=this;this.G=f;this.Gx=D;this.N=F;this.Y=Z;this.X="";this.J=new Set;this.S=-1;this.B=0;this.T=!1;this.ej={ChE:function(){return I.J}}}; PQT=function(f){var D,F=-(((D=f.Xd)==null?void 0:D.Bz)||0);f.timeRange&&(F+=(f.timeRange.startTicks||0)/(f.timeRange.timescale||1));var Z,I,p,z,H;return new of(F,((Z=f.Xd)==null?void 0:Z.dpT)||0,((I=f.Xd)==null?void 0:I.Nj)||"",((p=f.Xd)==null?void 0:p.identifier)||"",Y$d((z=f.Xd)==null?void 0:z.event),(((H=f.Xd)==null?void 0:H.Bz)||0)*1E3)}; ffu=function(f,D){for(var F="",Z=[],I=g.a(f.Y.entries()),p=I.next();!p.done;p=I.next()){var z=g.a(p.value);p=z.next().value;z=z.next().value;var H=void 0,K=void 0,k=void 0;((H=z)==null?void 0:H.startTimeSecs)<=D&&D<=((K=z)==null?void 0:K.startTimeSecs)+((k=z)==null?void 0:k.I$)&&Z.push(p);K=H=void 0;F+=p+":"+((H=z)==null?void 0:H.startTimeSecs.toFixed(3))+":"+((K=z)==null?void 0:K.I$.toFixed(3))+";"}Z.length===0&&f.Gx("clsdai",{no_cid:1,mt:D.toFixed(3),adConfigMap:F.substring(0,1024)});return Z}; Y$d=function(f){if(!f)return"unknown";switch(f){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; DFy=function(f){switch(f){case 1:return"timeout";case 2:return"ratecontrol";case 3:return"sverr";case 4:return"deleted";case 5:return"waiting";case 6:return"ready";case 7:return"ssdisabled";default:return"unknown"}}; KE=function(f,D,F){this.audio=f;this.video=D;this.reason=F}; k2=function(f,D,F){this.Y=f;this.reason=D;this.token=F;this.videoId=void 0}; jH=function(f,D,F){g.J.call(this);this.policy=f;this.G=D;this.Gx=F;this.B=new Map;this.X=0;this.T=!1;this.Y="";this.J=!1}; iT=function(f,D,F){if(F===void 0?0:F)f.T=!0;++f.X;F=6E4*Math.pow(2,f.X);F=(0,g.m5)()+F;f.B.set(D.info.id,F)}; hE=function(f){for(var D=g.a(f.B.entries()),F=D.next();!F.done;F=D.next()){var Z=g.a(F.value);F=Z.next().value;Z=Z.next().value;Z<(0,g.m5)()&&f.B.delete(F)}return f.B}; F0D=function(f){return f.T&&hE(f).size>0}; y0=function(f,D){f.Y!==D&&(f.Y=D,f.J=!0)}; var Hfy=function(f,D){return hI[q[16]](this,1,f,D)}; ZMX=function(f,D){var F;D&&(F=g.NC(f.G.Y,function(I){return I.id===D})); if(!F&&(F=g.NC(f.G.Y,function(I){var p;return!((p=I.dw)==null||!p.isDefault)}),D)){var Z; f.Gx("iaf",{id:D,sid:(Z=F)==null?void 0:Z.id})}return F}; AE=function(f){this.Y=this.J=0;this.alpha=Math.exp(Math.log(.5)/f)}; V0=function(f,D,F,Z,I,p){var z=this;p=p===void 0?[]:p;this.loader=f;this.xo=D;this.policy=F;this.FF=Z;this.T=I;this.eT=p;this.logger=new g.Qk("dash/abr");this.Y=Io;this.B=this.S=null;this.Jb=-1;this.Ir=!1;this.nextVideo=this.J=null;this.G=[];this.dY=new Set;this.rY={};this.b3=new AE(1);this.N=0;this.Ps=this.KQ=this.Bs=!1;this.zx=0;this.LQ=!1;this.Tx=new Set;this.jT=!1;this.ej={wW:function(){$2(z)}}; this.X=new jH(this.policy,I,function(H,K){z.loader.Gx(H,K)})}; qpd=function(f,D,F){RI(f,D);D=ZMX(f.X,F);F||D||(D=Ifu(f));D=D||f.T.Y[0];f.J=f.FF.Y[D.id];$2(f);f.S=f.J;pLX(f);zRc(f);f.B=f.nextVideo;f.S=f.J;return src(f)}; oSu=function(f,D){if(HMf(f,D))return null;if(D.reason==="m"&&D.isLocked())return RI(f,D),f.N=f.G.length-1,$2(f),dY(f),f.KQ=f.KQ||f.B!==f.nextVideo,f.B=f.nextVideo,new KE(f.J,f.B,D.reason);D.reason==="r"&&(f.Jb=-1);RI(f,D);dY(f);if(D.reason==="r"&&f.nextVideo===f.B)return new KE(f.J,f.nextVideo,D.reason);f.B&&f.nextVideo&&Q0(f,f.B.info)1.5&&f.loader.Gx("overshoot",{sq:D.Ws,br:F,max:Z}))}}; CE=function(f,D,F){iT(f.X,D,F===void 0?!1:F);f.Jb=-1;RI(f,f.Y)}; jrc=function(f,D){return new KE(f.S,f.B,D||f.Y.reason)}; src=function(f){f.Ir?f.Ir=!1:f.Jb=(0,g.m5)();f.Bs=!1;f.jT=!1;return new KE(f.S,f.B,f.Y.reason)}; iMy=function(f,D){var F={};D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next())if((Z=Z.value)&&Z.video){var I=Z.video.qualityOrdinal,p=F[I],z=p&&Bi(p)&&p.video.qualityOrdinal>f.policy.QZ,H=I<=f.policy.QZ?Bi(Z):GI(Z);if(!p||z||H)F[I]=Z}return F}; RI=function(f,D){f.Y=D;var F=f.T.videoInfos;if(!f.Y.isLocked()){var Z=(0,g.m5)();F=g.G$(F,function(z){if(z.Eq>this.policy.Eq)return!1;var H=this.FF.Y[z.id];return hE(this.X).get(z.id)>Z||H.T3.B>4||H.T>4?!1:this.Tx.has(+z.itag)?!1:!0},f); F0D(f.X)&&(F=g.G$(F,function(z){return z.video.width<=854&&z.video.height<=480}))}F.length||(F=f.T.videoInfos); var I=F;f.policy.qv&&(I=hRX(f,I,D));I=g.G$(I,D.G,D);if(f.Y.isLocked()&&f.X.Y){var p=g.NC(F,function(z){return z.id===f.X.Y}); p?I=[p]:y0(f.X,"")}f.policy.qv||(I=hRX(f,I,D));I.length||(I=[F[0]]);I.sort(function(z,H){return Q0(f,z)-Q0(f,H)}); D={};for(F=1;FD.x5.video.width?(g.xn(I,F),F--):Q0(f,D.Rt)*f.policy.Jb>Q0(f,D.x5)&&(g.xn(I,F-1),F--);D=I[I.length-1];f.LQ=!!f.B&&!!f.B.info&&f.B.info.qR!==D.qR;f.G=I;f.dY.clear();F=!1;for(p=0;p=1080&&(F=!0);yru(f.policy,D,f.FF.jj)}; hRX=function(f,D,F){var Z=F.reason==="m"||F.reason==="s";f.policy.Ih&&mt&&g.yy&&(!Z||F.Y<1080)&&(D=D.filter(function(k){return k.video&&(!k.J||k.J.powerEfficient)})); if(D.length>0)if(qq()){var I=iMy(f,D);D=D.filter(function(k){return!!k&&!!k.video&&k.qR===I[k.video.qualityOrdinal].qR})}else{var p,z,H=(p=D[0])==null?void 0:(z=p.video)==null?void 0:z.qualityOrdinal; if(H){F=D.filter(function(k){return!!k&&!!k.video&&k.video.qualityOrdinal===H}); var K=iMy(f,F)[H].qR;D=D.filter(function(k){return!!k&&!!k.video&&k.qR===K})}}return D}; Ara=function(f,D){for(var F=0;F+1Z}; $2=function(f){if(!f.J||!f.policy.G&&!f.J.info.dw){var D=f.T.Y;f.J&&(D=D.filter(function(Z){return Z.audio.Y===f.J.info.audio.Y}),D.length||(D=f.T.Y)); f.J=f.FF.Y[D[0].id];if(D.length>1&&!f.policy.zx){if(!f.policy.bH){var F=g.NC(D,function(Z){return Z.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); F&&(f.J=f.FF.Y[F.id])}F=!1;if(F=f.policy.K4?!0:f.Y.isLocked()?f.Y.Y<240:Ara(f,f.J))f.J=f.FF.Y[g.Jv(D).id]}}}; dY=function(f){if(!f.nextVideo||!f.policy.G)if(f.Y.isLocked())f.nextVideo=f.Y.Y<=360?f.FF.Y[f.G[0].id]:f.FF.Y[g.Jv(f.G).id];else{for(var D=Math.min(f.N,f.G.length-1),F=fy(f.xo),Z=Q0(f,f.J.info),I=F/f.policy.KQ-Z;D>0&&!(Q0(f,f.G[D])<=I);D--);for(F=F/f.policy.Jb-Z;D=F);D++);f.nextVideo=f.FF.Y[f.G[D].id];f.N=D}}; pLX=function(f){var D=f.policy.KQ,F=fy(f.xo)/D-Q0(f,f.J.info);D=g.gE(f.G,function(Z){return Q0(this,Z)p?I=0:Z[z]>f.buffered[z]&&(z===p-1?I=2:z===p-2&&Z[z+1]>f.buffered[z+1]&&(I=3))}f.Y.add(D<<3|(F&&4)|I);D=Math.ceil(f.track.UQ()*1E3);f.Y.add(D-f.X);f.X=D;if(I===1)for(f.Y.add(p),z=D=0;z=2&&f.Y.add(Z[p- 1]-f.buffered[p-1]);F&&f.Y.add(F);f.buffered=Z}; cn=function(f,D,F){var Z=this;this.policy=f;this.Y=D;this.zx=F;this.G=this.J=0;this.bY=null;this.Bs=new Set;this.Jb=[];this.indexRange=this.initRange=null;this.N=new $P;this.KQ=this.xo=!1;this.ej={elT:function(){return Z.B}, hlb:function(){return Z.chunkSize}, BFQ:function(){return Z.S}, JPd:function(){return Z.T}}; (D=Cls(this))?(this.chunkSize=D.csz,this.B=Math.floor(D.clen/D.csz),this.S=D.ck,this.T=D.civ):(this.chunkSize=f.YZ,this.B=0,this.S=g.hK(16),this.T=g.hK(16));this.X=new Uint8Array(this.chunkSize);this.S&&this.T&&(this.crypto=new EIJ(this.S,this.T))}; Cls=function(f){if(f.policy.Tm&&f.policy.JV)for(var D=g.a(f.policy.Tm),F=D.next(),Z={};!F.done;Z={Ni:void 0,Aj:void 0},F=D.next())if(F=g.zr(F.value),Z.Ni=+F.clen,Z.Aj=+F.csz,Z.Ni>0&&Z.Aj>0&&f.policy.G===F.docid&&f.Y.info.id===F.fmtid&&f.Y.info.lastModified===+F.lmt)return f={},f.clen=Z.Ni,f.csz=Z.Aj,f.ck=F.ck,f.civ=F.civ,f}; Ud=function(f){return!!f.bY&&f.bY.HV()}; bMT=function(f,D){if(!Ud(f)&&!f.MR()){if(!(f.xo||(f.xo=!0,f.B>0))){var F=vn(f);F=XT(f.policy.G,f.Y.info,aI(f),F,f.policy.JN);Gv(f,F)}if(D.info.type===1){if(f.bY){wY(f,Error("Woffle: Expect INIT slices to always start us off"));return}f.initRange=fh(0,D.J.totalLength)}else if(D.info.type===2)f.bY&&f.bY.type===1||wY(f,Error("Woffle: Index before init")),f.indexRange=fh(f.initRange.end+1,D.J.totalLength);else if(D.info.type===3){if(!f.bY){wY(f,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(f.bY.type===3&&!ph(f.bY,D.info)&&(f.Jb=[],D.info.Ws!==zV(f.bY)||D.info.Y!==0))return;if(D.info.B){F=g.a(f.Jb);for(var Z=F.next();!Z.done;Z=F.next())mFT(f,Z.value);f.Jb=[]}else{f.Jb.push(D);f.bY=D.info;return}}else{wY(f,Error("Woffle: Unexpected slice type"));return}f.bY=D.info;mFT(f,D);TkJ(f)}}; mFT=function(f,D){var F=0,Z=yo(D.J);if(f.G=Z.length)return;if(F<0)throw Error("Missing data");f.G=f.B;f.J=0}for(I={};F0){var z=Z.getUint32(F+28);p+=z*16+4}var H=Z.getUint32(F+p-4);try{var K=UFu(D.subarray(F+p,F+p+H));if(K!==null){var k=K;break a}}catch(h){}}F+=I}k=null;break a}catch(h){k=null;break a}k=void 0}if(k!=null)for(D=UR(hz(k,7,void 0,XB)),D==null||f.x_||(f.cryptoPeriodIndex=D),D=UR(hz(k,10,void 0,XB)),D!=null&&D>0&& !f.x_&&(f.Y=D),k=QN(k,2,XZy,void 0===Ycs?2:4),k=g.a(k),Z=k.next();!Z.done;Z=k.next())D=f.B,F=D.push,Z=gi(Z.value),Z=g.B9(Z,4),F.call(D,Z)}; aff=function(f){return isNaN(f.cryptoPeriodIndex)?g.B9(f.initData):""+f.cryptoPeriodIndex}; rY=function(f,D,F){var Z=F===void 0?{}:F;F=Z.videoDuration===void 0?0:Z.videoDuration;var I=Z.Qx===void 0?void 0:Z.Qx;Z=Z.SJ===void 0?!1:Z.SJ;this.videoId=f;this.status=D;this.videoDuration=F;this.Qx=I;this.SJ=Z}; G0X=function(f,D,F,Z,I){this.videoId=f;this.lV=D;this.J=F;this.bytesDownloaded=Z;this.Y=I}; LE=function(f){this.Y=f;this.offset=0}; lT=function(f){if(f.offset>=f.Y.totalLength)throw Error();return $l(f.Y,f.offset++)}; wLu=function(f,D){D=D===void 0?!1:D;var F=lT(f);if(F===1){D=-1;for(F=0;F<7;F++){var Z=lT(f);D===-1&&Z!==255&&(D=0);D>-1&&(D=D*256+Z)}return D}Z=128;for(var I=0;I<6&&Z>F;I++)F=F*256+lT(f),Z*=128;return D?F:F-Z}; W0s=function(f){try{var D=wLu(f,!0),F=wLu(f,!1);return{id:D,size:F}}catch(Z){return{id:-1,size:-1}}}; BkJ=function(f){for(var D=new LE(f),F=-1,Z=0,I=0;!Z||!I;){var p=W0s(D),z=p.id;p=p.size;if(z<0)return;if(z===176){if(p!==2)return;Z=D.Zq()}else if(z===186){if(p!==2)return;I=D.Zq()}z===374648427?F=D.Zq()+p:z!==408125543&&z!==174&&z!==224&&D.skip(p)}D=Ah(f,0,F);F=new DataView(D.buffer);F.setUint16(Z,3840);F.setUint16(I,2160);Z=new K6([D]);kl(Z,f);return Z}; rrD=function(f,D,F){var Z=this;this.loader=f;this.policy=D;this.XF=F;this.logger=new g.Qk("dash");this.J=[];this.Y=null;this.KQ=-1;this.N=0;this.zx=NaN;this.Jb=0;this.B=NaN;this.S=this.rY=0;this.Ps=-1;this.Tx=this.G=this.X=this.xo=null;this.LQ=this.dY=NaN;this.T=this.Bs=this.jT=this.b3=null;this.eT=!1;this.Ir=this.timestampOffset=0;this.ej={oi:function(){return Z.J}}; if(this.policy.G){var I=this.XF,p=this.policy.G;this.policy.JN&&f.Gx("atv",{ap:this.policy.JN});this.T=new cn(this.policy,I,function(z,H,K){f.Yo.Lt(new rY(Z.policy.G,2,{Qx:new G0X(p,z,I.info,H,K)}))}); this.T.N.promise.then(function(z){Z.T=null;z===1?f.Yo.Lt(new rY(Z.policy.G,z)):Z.loader.Gx("offlineerr",{status:z.toString()})},function(z){var H=(z.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); z instanceof Wn&&!z.Y?(Z.loader.Gx("offlinenwerr",{em:H}),Ed(Z),f.Yo.Lt(new rY(Z.policy.G,4))):(Z.loader.Gx("dldbwerr",{em:H}),Ed(Z),f.Yo.Lt(new rY(Z.policy.G,4,{SJ:!0})))})}}; L0I=function(f){return f.J.length?f.J[0]:null}; lfc=function(f,D){return f.J.some(function(F){return F.info.Ws===D})}; gSJ=function(f,D,F,Z){Z=Z===void 0?0:Z;if(f.G){var I=f.G.Y+f.G.J;if(F.info.Y>0)if(F.info.Ws===f.G.Ws&&F.info.Y=0&&f.G.Ws>=0&&!ph(f.G,F.info))throw new g.by("improper_continuation",f.G.lJ(),F.info.lJ());SLX(f.G,F.info)||JE(f,"d")}else if(F.info.Y>0)throw new g.by("continuation_of_null",F.info.lJ());f.G=F.info;f.XF=F.info.XF;if(F.info.Y===0){if(f.Y)if(!f.loader.isOffline()||f.policy.Y1)f.loader.Gx("slice_not_fully_processed", {buffered:f.Y.info.lJ(),push:F.info.lJ()});else throw new g.by("slice_not_fully_processed",f.Y.info.lJ(),F.info.lJ());uT(f);f.rY=Z}else{if(f.rY&&Z&&f.rY!==Z)throw f=new g.by("lmt_mismatch",F.info.Ws,f.rY,Z),f.level="WARNING",f;!F.info.XF.MA()&&f.X&&(Z=F.info,I=f.X.PR,Z.T="updateWithEmsg",Z.Ws=I)}if(f.Y){Z=g.bQ(f.Y,F);if(!Z)throw new g.by("failed_to_merge",f.Y.info.lJ(),F.info.lJ());f.Y=Z}else f.Y=F;a:{F=g.Lx(f.Y.info.XF.info);if(f.Y.info.type!==3){if(!f.Y.info.B)break a;f.Y.info.type===6?ESX(f,D, f.Y):JrJ(f,f.Y);f.Y=null}for(;f.Y;){Z=f.Y.J.totalLength;if(f.KQ<=0&&f.N===0){var p=f.Y.J,z=-1;I=-1;if(F){for(var H=0;H+80))break;if(y!==408125543)if(y===524531317)H=!0,h>=0&&(I=p.Zq()+h,K=!0);else{if(H&&(y===160||y===163)&&(z<0&&(z=k),K))break;y===163&&(z=Math.max(0,z),I=p.Zq()+h);if(y===160){z<0&&(I=z= p.Zq()+h);break}p.skip(h)}}z<0&&(I=-1)}if(z<0)break;f.KQ=z;f.N=I-z}if(f.KQ>Z)break;f.KQ?(Z=u1T(f,f.KQ),Z.X&&NkE(f,Z),ESX(f,D,Z),NR(f,Z),f.KQ=0):f.N&&(Z=u1T(f,f.N<0?Infinity:f.N),f.N-=Z.J.totalLength,NR(f,Z))}}f.Y&&f.Y.info.B&&(NR(f,f.Y),f.Y=null)}; JrJ=function(f,D){!D.info.XF.MA()&&D.info.Y===0&&(g.Lx(D.info.XF.info)||D.info.XF.info.x_())&&kIf(D);if(D.info.type===1)try{NkE(f,D),eRD(f,D)}catch(I){g.SJ(I);var F=s$(D.info);F.hms="1";f.loader.handleError("fmt.unparseable",F||{},1)}F=D.info.XF;F.mP(D);f.T&&bMT(f.T,D);if(F.IP()&&f.policy.Y)a:{f=f.loader.FF;D=D.info.clipId;F=g.NJ(F.info,f.jj);if(D){var Z=XV({itag:F.itag,lmt:f.jj?0:F.lmt||0,xtags:F.xtags});if(f.LQ[Z])break a;f.LQ[Z]=D}f.Ps.push(F)}}; TVu=function(f,D,F){if(f.J.length!==0&&(F||f.J.some(function(p){return p.info.G=eH(z)+H):D=f.getDuration()>=z.getDuration(),D=!D;D&&XLE(F)&&(D=f.xo,gY?(H=oYD(F),z=1/H,H=eH(f,H),D=eH(D)+z-H):D=D.getDuration()- f.getDuration(),D=1+D/F.info.duration,zQE(g.TV(F),D))}else{z=!1;f.X||(kIf(F),F.Y&&(f.X=F.Y,z=!0,I=F.info,p=F.Y.PR,I.T="updateWithEmsg",I.Ws=p,I=F.Y,I.HV&&(p=f.XF.index,p.J=!I.HV,p.B="emsg"),I=F.info.XF.info,p=g.TV(F),g.Lx(I)?Q1(p,1701671783):I.x_()&&cX([408125543],307544935,p)));a:if((I=SY(F,f.policy.qb))&&Kra(F))H=OMX(f,F),f.S+=H,I-=H,f.Jb+=I,f.B=f.policy.Gw?f.B+I:NaN;else{if(f.policy.TA){if(p=K=f.loader.py(g.Mx(F),1),f.B>=0&&F.info.type!==6){if(f.policy.Gw&&isNaN(f.dY)){g.UT(new g.by("Missing duration while processing previous chunk", F.info.lJ()));f.loader.isOffline()&&!f.policy.Y1||nST(f,F,p);JE(f,"m");break a}Z=K-f.B;var k=Z-f.S,h=F.info.Ws,y=f.Tx?f.Tx.Ws:-1,A=f.LQ,V=f.dY,R=f.policy.Rm&&Z>f.policy.Rm,m=Math.abs(k)>10,b=Math.abs(f.B-p)<1E-7;if(Math.abs(k)>1E-4){f.Ir+=1;var U=(H=f.X)==null?void 0:D$T(H);H={audio:""+ +f.E6(),sq:h.toFixed(),sliceStart:K,lastSq:y.toFixed(),lastSliceStart:A,lastSliceDuration:V,totalDrift:(Z*1E3).toFixed(),segDrift:(k*1E3).toFixed(),skipRewrite:""+ +(R||m)};if(U==null?0:U.length)H.adCpn=U[0];f.loader.handleError("qoe.avsync", H);f.Ps=h}R||m||b||(p=f.B);H=OMX(f,F,K);I-=H;f.S=Z+H}}else p=isNaN(f.B)?F.info.startTime:f.B;nST(f,F,p)&&(f.Jb+=I,f.B=p+I,f.policy.yu&&f.Ir>=f.policy.yu&&(f.Ir=0,f.loader.EU({resetForRewrites:"count"})))}f.Tx=F.info;f.dY=tq(F);F.B>=0&&(f.LQ=F.B);if(z&&f.X){z=YpJ(f,!0);qx(F.info,z);f.Y&&qx(f.Y.info,z);D=g.a(D);for(H=D.next();!H.done;H=D.next())H=H.value,I=void 0,f.policy.X&&H.Ws!==((I=f.X)==null?void 0:I.PR)||qx(H,z);(F.info.B||f.Y&&f.Y.info.B)&&F.info.type!==6||(f.Bs=z,f.policy.J?(D=Pla(f.X),f.loader.NJ(f.XF, z,D)):(D=f.loader,D.FF.isManifestless&&f4c(D,z,null,!!f.XF.info.video)),f.policy.KK||DOw(f))}}eRD(f,F);f.timestampOffset&&q_c(F,f.timestampOffset)}; NR=function(f,D){if(D.info.B){f.b3=D.info;if(f.X){var F=f.X,Z=YpJ(f,!1);F=Pla(F);f.loader.NJ(f.XF,Z,F);f.Bs||f.policy.KK||DOw(f);f.Bs=null}uT(f)}f.T&&bMT(f.T,D);if(Z=f.PC())if(Z=g.bQ(Z,D,f.policy.wG,f.policy.Y_)){f.J.pop();f.J.push(Z);return}f.J.push(D)}; Pla=function(f){if(f.Rd()){var D=f.data["Stitched-Video-Id"]?f.data["Stitched-Video-Id"].split(",").slice(0,-1):[],F=D$T(f),Z=[];if(f.data["Stitched-Video-Duration-Us"])for(var I=g.a(f.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),p=I.next();!p.done;p=I.next())Z.push((Number(p.value)||0)/1E6);I=[];if(f.data["Stitched-Video-Start-Frame-Index"]){p=g.a(f.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var z=p.next();!z.done;z=p.next())I.push(Number(z.value)||0)}I=[]; if(f.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(p=g.a(f.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),z=p.next();!z.done;z=p.next())I.push((Number(z.value)||0)/1E6);f=new cru(D,F,Z,I,g.FdD(f),g.ZJw(f))}else f=null;return f}; uT=function(f){f.Y=null;f.KQ=-1;f.N=0;f.X=null;f.zx=NaN;f.Jb=0;f.Bs=null}; JE=function(f,D){D={rst4disc:D,cd:f.S.toFixed(3),sq:f.Tx?f.Tx.Ws:-1};f.B=NaN;f.S=0;f.Ps=-1;f.Tx=null;f.LQ=NaN;f.dY=NaN;f.jT=null;f.loader.Gx("mdstm",D)}; eRD=function(f,D){if(f.isDrm()){if(D.info.XF.info.x_()){var F=new mm(g.TV(D));if(bY(F,[408125543,374648427,174,28032,25152,20533,18402])){var Z=S2(F,!0);F=Z!==16?null:Gk(F,Z)}else F=null;Z="webm"}else D.info.N=tiE(g.TV(D)),F=SpX(D.info.N),Z="cenc";F&&F.length&&(F=new Bn(F,Z),f.policy.Jp&&g.Lx(D.info.XF.info)&&(Z=kla(g.TV(D)))&&(F.J=Z),F.x_=D.info.XF.info.x_(),D.Y&&D.Y.cryptoPeriodIndex&&(F.cryptoPeriodIndex=D.Y.cryptoPeriodIndex),D.Y&&D.Y.J&&(F.Y=D.Y.J),f.loader.y7(F))}}; DOw=function(f){var D=f.X,F=PvD(D);F&&(F.startSecs+=f.zx,f.loader.jN(f.XF,F,D.PR,D.Rd()))}; YpJ=function(f,D){var F,Z=f.X;if(F=PvD(Z))F.startSecs+=f.zx;var I=f.zx,p=0;f.XF instanceof jY&&(p=f.XF.x3);return new fH(Z.PR,I,D?p:f.Jb,Z.ingestionTime,"sq/"+Z.PR,void 0,void 0,D,F)}; nST=function(f,D,F){if(!spu(D,F))return D=s$(D.info),D.smst="1",f.loader.handleError("fmt.unparseable",D||{},1),!1;isNaN(f.zx)&&(f.zx=F);return!0}; OMX=function(f,D,F){var Z=0;if(D.info.XF.info.x_()&&!Kra(D))return 0;if(f.xo&&!f.E6()){var I=0;F&&g.Lx(D.info.XF.info)?I=F-f.B:D.info.XF.info.x_()&&(I=f.S);var p=D.info.Ws;F=SY(D,f.policy.qb);var z=f.xo;var H=z.Ps;z=z.S;var K=Math.abs(z-I)>.02;if((p===H||p>H&&p>f.Ps)&&K){Z=Math.max(.95,Math.min(1.05,(F-(z-I))/F));if(g.Lx(D.info.XF.info))zQE(g.TV(D),Z);else if(D.info.XF.info.x_()&&(p=I-z,!g.Lx(D.info.XF.info)&&(D.info.XF.info.x_(),Z=new mm(g.TV(D)),H=D.X?Z:new mm(new DataView(D.info.XF.Y.buffer)), SY(D,!0)))){var k=p*1E3,h=WX(H);H=Z.pos;Z.pos=0;if(Z.Y.getUint8(Z.pos)===160||BX(Z))if(tR(Z,160))if(S2(Z,!0),tR(Z,155)){if(p=Z.pos,K=S2(Z,!0),Z.pos=p,k=k*1E9/h,h=U6(Z),k=h+Math.max(-h*.7,Math.min(h,k)),k=Math.sign(k)*Math.floor(Math.abs(k)),!(Math.ceil(Math.log(k)/Math.log(2)/8)>K)){Z.pos=p+1;for(p=K-1;p>=0;p--)Z.Y.setUint8(Z.pos+p,k&255),k>>>=8;Z.pos=H}}else Z.pos=H;else Z.pos=H;else Z.pos=H}Z=SY(D,f.policy.qb);Z=F-Z}Z&&D.info.XF.info.x_()&&f.loader.Gx("webmDurationAdjustment",{durationAdjustment:Z, videoDrift:I+Z,audioDrift:z})}return Z}; XLE=function(f){return f.info.XF.MA()&&f.info.Ws===f.info.XF.index.eU()}; eH=function(f,D){D=(D=D===void 0?0:D)?Math.round(f.timestampOffset*D)/D:f.timestampOffset;f.XF.G&&D&&(D+=f.XF.G.Y);return D+f.getDuration()}; Fba=function(f,D){D<0||(f.J.forEach(function(F){q_c(F,D)}),f.timestampOffset=D)}; Is=function(f,D,F,Z,I){b6.call(this,F,I);var p=this;this.policy=f;this.formatId=D;this.qI=Z;this.lastError=null;this.onProgress=function(){p.MR()||(p.qI.Vj.has(p.formatId)?(p.isComplete()||p.Y.start(),Ps(p.qI,p.formatId)&&p.Be(2),p.qI.wS(p.formatId)&&(S$u(p.qI,p.formatId)?p.uJ(4):(p.lastError="net.closed",p.uJ(5)))):(p.lastError="player.exception",p.uJ(5)))}; this.Y=new g.xX(function(){p.isComplete()||(p.lastError="net.timeout",p.uJ(5))},1E3); this.Y.start();bhs(this.qI,this.formatId,this.onProgress);g.mF(this.onProgress)}; x2=function(f,D,F,Z){g.J.call(this);var I=this;this.loader=f;this.policy=D;this.XF=F;this.timing=Z;this.logger=new g.Qk("dash");this.J=[];this.xo=[];this.Y=this.yL=null;this.jT=!1;this.rY=this.Ir=0;this.X=-1;this.KQ=!1;this.zx=-1;this.Tx=null;this.Bs=NaN;this.Jb=[];this.ej={Vo:function(){return I.B}, wKT:function(){return I.J}, ETT:function(){return I.S}}; this.B=new rrD(f,D,F);this.policy.Y&&(this.S=new FQ(this.B,this.loader.getManifest(),this.policy,function(p){I.policy.Ld&&I.Gx("buftl",p)})); this.policy.m9&&(this.N=new tE(this));this.Eq=F.info.Eq;this.T=this.policy.xo?!1:F.jM();this.isManifestless=F.jM();this.G=this.T;g.N(this,this.Tx)}; XF=function(f,D,F){F=F===void 0?!1:F;D&&gY&&Fba(f.B,D.G7());if(!F){var Z;(Z=f.S)==null||duy(Z)}f.yL=D;(D=f.S)!=null&&(D.yL=f.yL)}; Od=function(f){var D=f.yL&&f.yL.bA();if(f.policy.uK){if((f=f.S)==null)f=void 0;else{var F;f=(F=f.B)==null?void 0:F.info}return f||null}return D}; ZDD=function(f){for(var D={},F=0;F4&&f.xo.shift()}; I4E=function(f,D){if(D.u_()){var F=D.o6();F=g.a(F);for(var Z=F.next();!Z.done;Z=F.next())Z=Z.value,f.policy.B&&D instanceof Is&&f.Gx("omblss",{s:Z.info.lJ()}),Y2(f,D.info.tb,Z,D.Y4())}}; Y2=function(f,D,F,Z){Z=Z===void 0?0:Z;isNaN(f.Bs)||(f.Gx("aswm",{sq:D[0].Ws,id:D[0].XF.info.itag,xtag:D[0].XF.info.Y,ep:Date.now()-f.Bs}),f.Bs=NaN);switch(F.info.type){case 1:case 2:pUX(f,F);break;case 4:var I=F.info.XF,p=I.iG(F),z;((z=f.Y)==null?0:z.type===4)&&WdI(F.info,f.Y)&&(f.Y=I.ul(f.Y).pop());F=g.a(p);for(I=F.next();!I.done;I=F.next())Y2(f,D,I.value,Z);break;case 3:F.info.XF.info.video?(I=f.timing,I.Tx||(I.Tx=(0,g.m5)(),g.GB("fvb_r",I.Tx,I.Y))):(I=f.timing,I.T||(I.T=(0,g.m5)(),g.GB("fab_r", I.T,I.Y)));gSJ(f.B,D,F,Z);f.policy.Y&&zey(f);break;case 6:gSJ(f.B,D,F,Z),f.Y=F.info}}; pUX=function(f,D){if(D.info.type===1)if(D.info.XF.info.video){var F=f.timing;F.Ir||(F.Ir=(0,g.m5)(),g.GB("vis_r",F.Ir,F.Y))}else F=f.timing,F.N||(F.N=(0,g.m5)(),g.GB("ais_r",F.N,F.Y));JrJ(f.B,D);f=f.loader;f.videoTrack.XF.IP()&&f.audioTrack.XF.IP()&&f.policy.Y&&!f.FF.jj&&(D=f.audioTrack.getDuration(),F=f.videoTrack.getDuration(),Math.abs(D-F)>1&&f.Gx("trBug",{af:""+g.NJ(f.audioTrack.XF.info,!1),vf:""+g.NJ(f.videoTrack.XF.info,!1),a:""+D,v:""+F}))}; jd=function(f){return L0I(f.B)}; zey=function(f){f.J.length?f.Y=g.Jv(g.Jv(f.J).info.tb):f.B.J.length?f.Y=f.B.PC().info:f.Y=Od(f)}; Pn=function(f,D){var F={UI:[],F3:[]},Z;if((f=f.S)==null)f=void 0;else{RrI(f,f.UI,"og");ARD(f,D);RrI(f,f.UI,"trim");var I=V2y(f);D=I.UI;I=I.FK;for(var p=[],z=0;z0){var A=YY(y,K);A>=0&&(h=(y.end(A)-K+.1)*1E3)}p.push({formatId:g.NJ(H.info.XF.info,f.FF.jj), E3:H.info.E3,sequenceNumber:H.info.Ws+f.G,uA:k,cM:H.info.J,eF:h})}f={UI:D,F3:p}}return(Z=f)!=null?Z:F}; sS=function(f,D,F){F=F===void 0?!1:F;if(f.yL){var Z=f.yL.Ew(),I=fi(Z,D),p=NaN,z=Od(f);z&&(p=fi(Z,z.XF.index.getStartTime(z.Ws)));if(I===p&&f.Y&&f.Y.J&&ses(fR(f),0))return D}f=D7(f,D,F);return f>=0?f:NaN}; Hs=function(f,D,F){f.XF.IP();var Z=D7(f,D);if(Z>=0)return Z;var I;(I=f.S)==null||$uu(I,D,F);Z=Math;I=Z.min;var p=f.B;if(p.T)if(p=p.T,p.bY&&p.bY.type===3)p=p.bY.startTime;else if(p.B>0){var z=p.Y.index;z=g.oi(z.offsets.subarray(0,z.count),p.B*p.chunkSize);p=p.Y.index.getStartTime(z>=0?z:Math.max(0,-z-2))}else p=0;else p=Infinity;D=I.call(Z,D,p);f.Y=f.policy.xo?null:f.XF.eB(D).tb[0];F$(f)&&(f.policy.Cu&&(F==null?void 0:F.seekSource)===60||f.yL&&f.yL.abort(),f.policy.w4&&(F=f.S)!=null&&(F.B=void 0)); f.rY=0;return f.Y?f.Y.startTime:D}; CYI=function(f){f.T=!0;f.G=!0;f.X=-1;Hs(f,Infinity)}; Z7=function(f){for(var D=0,F=g.a(f.J),Z=F.next();!Z.done;Z=F.next())D+=ruw(Z.value.info);return D+=xFy(f.B)}; pR=function(f,D){D=D===void 0?!1:D;var F=f.loader.getCurrentTime(),Z=f.B.PC(),I=(Z==null?void 0:Z.info.X)||0;if((Z==null?0:Z.info.XF.jM())&&!Z.info.B)if(f.policy.b_)I=Z.info.G;else if(f.policy.Vp){var p=Z.info;I=p.range?p.X:Math.min(p.startTime+Math.min(p.duration*p.Y/p.XF.info.Eq,p.duration)+(p.range?p.S:Math.min(p.duration,p.duration*p.J/p.XF.info.Eq)),p.startTime+p.duration)}if(!f.yL){if((f.policy.Y||f.policy.EW)&&D&&!isNaN(F)){if(Z)return I-F;if(f.policy.EW&&f.XF.info.qR==="f")return Infinity}return 0}if((p= Od(f))&&IH(p))return p.X;var z=f.yL.Ew(!0);if(D&&Z)return p=0,f.policy.Y&&(p=ZT(z,I+.02)),p+I-F;D=ZT(z,F);f.policy.eq&&p&&(Z=YY(z,F),z=YY(z,p.G-.02),Z===z&&(F=p.X-F,f.policy.B&&F>D+.02&&f.Gx("abh",{bh:D,bhtls:F}),D=Math.max(D,F)));return D}; qnI=function(f){var D=Od(f);return D?D.X-f.loader.getCurrentTime():0}; zm=function(f,D,F,Z){if(!f.XF.index.pH(D,!0))return!1;try{zT(f);for(var I=f.B,p=null,z=I.J.length-1;z>=0;z--){var H=I.J[z];H.info.Ws>=D&&(I.J.pop(),I.B-=SY(H,I.policy.qb),p=H.info)}p&&(I.G=I.J.length>0?I.J[I.J.length-1].info:I.jT,I.J.length!==0||I.G||JE(I,"r"));I.loader.Gx("mdstm",{rollbk:1,itag:p?p.XF.info.itag:"",popped:p?p.Ws:-1,sq:D,lastslc:I.G?I.G.Ws:-1,lastfraget:I.B.toFixed(3)});if(f.policy.Y)return f.Y=null,!0;Z>F?Hs(f,Z):f.Y=f.XF.Kl(D-1,!1).tb[0]}catch(K){return D=s_(K),D.details.reason= "rollbkerr",f.loader.handleError(D.errorCode,D.details,D.severity),!1}return!0}; q5=function(f,D){var F;for(F=0;F0?F||D.Ws>=f.zx:F}; Hq=function(f){var D;return F$(f)||IH((D=f.B.PC())==null?void 0:D.info)}; fR=function(f){var D=[],F=Od(f);F&&D.push(F);D=g.D0(D,f.B.Qe());F=g.a(f.J);for(var Z=F.next();!Z.done;Z=F.next()){Z=Z.value;for(var I=g.a(Z.info.tb),p=I.next(),z={};!p.done;z={nL:void 0},p=I.next())z.nL=p.value,Z.W$&&(D=g.G$(D,function(H){return function(K){return!WdI(K,H.nL)}}(z))),(IA(z.nL)||z.nL.type===4)&&D.push(z.nL)}f.Y&&!MSD(f.Y,g.Jv(D),f.Y.XF.MA())&&D.push(f.Y); return D}; ses=function(f,D){if(!f.length)return!1;for(D+=1;D=D){D=p;break a}}D=I}return D<0?NaN:ses(f,F?D:0)?f[D].startTime:NaN}; oH=function(f){return!(!f.Y||f.Y.XF===f.XF)}; HDu=function(f,D,F){return f.policy.Y?pR(f,!0)D&&f.X1080&&!f.nP&&(f.dY=36700160,f.G3=5242880,f.Ps=Math.max(4194304,f.Ps),f.nP=!0);D.video.qualityOrdinal>2160&&!f.c8&&(f.dY=104857600,f.Eq=13107200,f.c8=!0);g.Pf(f.Uy.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?D.isEncrypted()&&g.xo()&&g.go("samsung")&&(g.go("kant")||g.go("muse"))&&(f.Eq=g.Pf(f.Uy.experiments,"html5_samsung_kant_limit_max_bitrate")):D.isEncrypted()&&g.xo()&&g.go("kant")&&(f.Eq=1310720);f.Cm!==0&&D.isEncrypted()&& (f.Eq=f.Cm);f.My!==0&&D.isEncrypted()&&F&&(f.Eq=f.My);D.Eq&&(f.Dz=Math.max(f.BL,Math.min(f.Ps,5*D.Eq)))}; ES=function(f){return f.Y&&f.f7}; yA=function(f){return f.Y&&f.zv&&f.playbackStartPolicy}; Al=function(f,D,F,Z){f.zv&&(f.playbackStartPolicy=D,f.f$=F,f.cf=Z)}; j1=function(f,D,F){F=F===void 0?0:F;return g.Pf(f.Uy.experiments,D)||F}; Reu=function(f){var D=f===void 0?{}:f;f=D.ML;var F=D.jA;var Z=D.j$;var I=D.eU;D=D.P2;this.ML=f;this.jA=F;this.j$=Z;this.eU=I;this.P2=D}; BVu=function(f,D){if(D<0)return!0;var F=f.eU();return D0)return 2;if(D<0)return 1;F=f.eU();return D(0,g.m5)()?0:1}; RH=function(f,D,F,Z,I,p,z,H,K,k,h,y,A,V){V=V===void 0?null:V;g.J.call(this);var R=this;this.loader=f;this.policy=D;this.videoTrack=F;this.audioTrack=Z;this.B=I;this.Y=p;this.timing=z;this.G=H;this.schedule=K;this.FF=k;this.J=h;this.Jb=y;this.hU=A;this.ke=V;this.Bs=!1;this.R7="";this.Di=null;this.Zo=NaN;this.KQ=!1;this.D5=null;this.jm=this.N=NaN;this.WC=this.X=0;this.logger=new g.Qk("dash");this.ej={G4:function(m,b){return R.G4(m,b)}}; this.policy.B8>0&&(this.R7=g.hK(this.policy.B8));this.policy.Gv&&(this.S=new $M(this.loader,this.policy,this.schedule),g.N(this,this.S))}; TKJ=function(f,D,F){var Z=D.Y?D.Y.XF.T3:D.XF.T3;var I=f.B,p;(p=!f.policy.le)||(p=hI(57,Z.Y)===hI(63,Z.J));p?Z=!1:(I=JR(I,hI(56,Z.J)),p=6E4*Math.pow(I.G,1.6),(0,g.m5)()=I.G?(I.Gx("sdai",{haltrq:p+1,est:I.G}),Z=!1):Z=I.J!==2;if(!Z||!xI(D.Y?D.Y.XF.T3:D.XF.T3,f.policy,f.B,f.loader.mf)||f.loader.isSuspended&&(!CR(f.schedule)||f.loader.cF))return!1;if(f.policy.G&&x3>=5)return g.XE(f.loader.i6),!1;if(f.FF.isManifestless){if(D.J.length>0&&D.Y&&D.Y.Ws===-1||D.J.length>=f.policy.Vu||!f.policy.Bf&&D.J.length>0&&!f.policy.N.jA)return!1;if(D.T)return!f.FF.isLive||!isNaN(f.Zo)}if(k6J(D))return!1; if(!D.Y){if(!D.XF.IP())return!1;Hs(D,f.loader.getCurrentTime())}if(jd(D)&&(D.PC()!==jd(D)||f.loader.isSuspended))return!1;I=(Z=f.policy.HZ)&&!D.J.length&&pR(D,!0)=f.policy.iS)return!1;Z=D.Y;if(!Z)return!0;Z.type===4&&Z.XF.IP()&&(D.Y=g.Jv(Z.XF.ul(Z)),Z=D.Y);if(!Z.HV()&&!Z.XF.Gy(Z))return!1;p=f.FF.rU||f.FF.G;if(f.FF.isManifestless&&p){p=D.XF.index.eU(); var z=F.XF.index.eU();p=Math.min(p,z);if(D.XF.index.kx()>0&&p>0&&Z.Ws>=p)return D.zx=p,F.zx=p,!1}if(Z.XF.info.audio&&Z.type===4||Z.HV())return!1;p=!D.G&&!F.G;if(I=!I)I=Z.X,I=!!(F.Y&&!IH(F.Y)&&F.Y.XbDd(f,D)?(bDd(f,D),!1):(f=D.yL)&&f.isLocked()?!1:!0}; bDd=function(f,D){var F=f.Y;F=F.Y?F.Y.Xd:null;if(f.policy.rY&&F)return F.startSecs+F.I$+15;D=qr(f.loader,D);f.policy.Wk>0&&(F=((0,g.m5)()-f.loader.D2)/1E3,D=Math.min(D,f.policy.Wk+f.policy.n7*F));D=f.loader.getCurrentTime()+D;return f.policy.EF&&(F=MWJ(f.loader)+f.policy.EF,F=0||D.T3.tE("defrag")==="1"||D.T3.tE("otf")==="1"){D=null;break a}I=fh(0,4096)}I=new HT([new FY(5,Z.XF,I,"createProbeRequestInfo"+Z.T,Z.Ws)],D.J);I.m2=F;I.Y=D.Y;D=I}D&&QA(f,D)}}; QA=function(f,D){f.loader.ai(D);var F=ruw(D),Z=f.loader.YE();F={lE:f.schedule,o5:F,b5:kkJ(f.G,F),Tw:ZD(D.tb[0]),q0:sJ(7,D.T3.Y),Uz:f.policy.B,BW:function(z,H){f.loader.a7(z,H)}}; if(f.schedule.J.T){var I,p;F.WR=(((I=f.videoTrack.XF)==null?void 0:I.info.Eq)||0)+(((p=f.audioTrack.XF)==null?void 0:p.info.Eq)||0)}f.Di&&(F.Ws=D.tb[0].Ws,F.Zo=D.Zo,F.Di=f.Di);Z={Kj:Ldy(D,f.loader.getCurrentTime()),d4:f.policy.Dp&&Kh(D)&&D.tb[0].XF.info.video?Via(f.J):void 0,i9:f.policy.rY,poToken:f.loader.uM(),iW:f.loader.Y7(),R7:f.R7,jm:isNaN(f.jm)?null:f.jm,ke:f.ke,hU:f.hU,WC:f.WC,TF:Z};return new py(f.policy,D,F,f.B,function(z,H){try{a:{var K=z.info.tb[0].XF,k=K.info.video?f.videoTrack:f.audioTrack; if(!(z.state>=2)||z.isComplete()||z.LG()||!(!f.loader.gY||f.loader.isSuspended||pR(k)>3)){var h=Qew(z,f.policy,f.B);h===1&&(f.KQ=!0);tWJ(f,z,h);if(z.isComplete()||z.MR()&&H<3){if(f.policy.B){var y=z.timing.hc();y.rst=z.state;y.strm=z.xhr.CB();y.cncl=z.xhr&&z.Ic.X?1:0;f.loader.Gx("rqs",y)}z.vz&&f.loader.Gx("sbwe3",{},!0)}if(!f.MR()&&z.state>=2){ECy(f.timing,z,K);var A=f.loader;f.jm&&z.FT&&A&&(f.jm=NaN,f.loader.Cs(z.FT),f.loader.LP(),f.loader.Gx("cabrUtcSeek",{mediaTimeSeconds:z.FT}));z.Pe&&f.jm&&z.Pe&& !z.Pe.action&&(f.loader.j4(f.jm),f.jm=NaN,f.loader.Gx("cabrUtcSeekFallback",{targetUtcTimeSeconds:f.jm}));z.bz&&f.loader.iH(z.bz);f.policy.vI&&(f.WC=z.WC);if(z.state===3){q5(k,z);Kh(z.info)&&Tm(f,k,K,!0);if(f.D5){var V=z.info.VI();V&&f.D5.zR(z.info.tb[0].Ws,K.info.id,V)}f.loader.cD()}else if(z.isComplete()&&z.info.tb[0].type===5){if(z.state!==4)z.lO()&&f.loader.handleError(z.wp(),z.Ke());else{var R=(z.info.tb[0].XF.info.video?f.videoTrack:f.audioTrack).J[0]||null;R&&R instanceof py&&R.LG()&&R.Mc()}z.dispose()}else{if(!z.lO()&& z.UL&&z.state>=2&&z.state!==3){var m=z.xhr.getResponseHeader("X-Response-Itag");if(m){var b=$Fc(f.J,m),U=z.info.B;if(U){var S=U-b.Rh();b.B=!0;z.info.tb[0].XF.B=!1;var G=b.pj(S);z.info=G;if(z.hS){var W=z.hS,u=G.tb;(u.length!==W.tb.length||u.length=f.policy.rg&&f.D5&&z.info.isDecorated()&&QX==="net.badstatus"&&S1(f.D5,ly,s0))){var OJ=(Id.info.video&&Id.T3.B>1||z.Qz===410||z.Qz===500||z.Qz===503)&&!(hE(f.J.X).size>0)&&!sJ(9,Id.T3.Y),WD=z.Ke(),XL=Id.info.video?f.videoTrack:f.audioTrack;OJ&&(WD.stun="1");f.loader.handleError(QX,WD);f.MR()||(OJ&&CE(f.J,Id),q5(XL,z),f.loader.cD())}}else b=1,f.D5&&z.info.isDecorated()&& QX==="net.badstatus"&&S1(f.D5,ly,s0)&&(b=0),f.FF.isLive&&z.wp()==="net.badstatus"&&f.X<=f.policy.y3*2?(Njf(f.FF),f.FF.rU||f.FF.isPremiere?kv(f.loader,0,{pF:"badStatusWorkaround"}):f.FF.G?kv(f.loader,f.FF.O3,{pF:"badStatusWorkaround",py:!0}):cq(f.loader)):f.loader.handleError(QX,z.Ke(),b);isNaN(f.jm)||(f.loader.j4(f.jm),f.jm=NaN)}f.policy.BI&&!z.isComplete()?UV(f.loader):f.loader.cD();var U0=CMy(z,f.policy,f.B);tWJ(f,z,U0)}}}}}catch(c){QX=f.Bs?1:0,f.Bs=!0,z=zI(QX),QX=s_(c,QX),f.loader.handleError(QX.errorCode, QX.details,QX.severity),z||f.loader.Jl()}},Z)}; M5=function(f,D){if(f.policy.useUmp&&D.MR())return!1;try{var F=D.info.tb[0].XF,Z=F.info.video?f.videoTrack:f.audioTrack;if(f.FF.isManifestless&&Z){f.X=0;Z.T&&(D.MR(),D.isComplete()||D.u_(),Z.T=!1);D.kP()&&f.loader.pP.qp(1,D.kP());var I=D.kx(),p=D.D4();YC(f.FF,I,p)}if(D.info.Tw()&&!oA(D.info))for(var z=g.a(D.o6()),H=z.next();!H.done;H=z.next())pUX(Z,H.value);for(f.loader.getCurrentTime();Z.J.length&&Z.J[0].state===4;){var K=Z.J.shift();I4E(Z,K);Z.Ir=K.CT()}Z.J.length&&I4E(Z,Z.J[0]);var k=!!jd(Z);k&& D instanceof Is&&(F.info.E6()?lDy(f.timing):LCJ(f.timing));return k}catch(h){D=D.Ke();D.origin="hrhs";a:{f=f.loader;F=h;if(F instanceof Error){D.msg||(D.msg=""+F.message);D.name||(D.name=""+F.name);if(F instanceof g.by&&F.args)for(Z=g.a(Object.entries(F.args)),I=Z.next();!I.done;I=Z.next())p=g.a(I.value),I=p.next().value,p=p.next().value,D["arg"+I]=""+p;g.UT(F);if(F.level==="WARNING"){f.Yo.EU(D);break a}}f.handleError("fmt.unplayable",D,1)}return!1}}; SnX=function(f){var D=f.videoTrack.XF.index;f.Di=new Reu({ML:f.policy.ML,jA:f.policy.N.jA,j$:D.wm(),eU:function(){return D.eU()}, P2:function(){return D.P2()}})}; Tm=function(f,D,F,Z){if(!(F.IP()||F.Q2()||F.B||!xI(F.T3,f.policy,f.B,f.loader.mf)||F.info.qR==="f"||f.policy.Y)){if(Z){Z=f.G;var I=F.info;Z=jfJ(Z,I.video?Z.policy.u0:Z.policy.S3,I.Eq)}else Z=0;Z=F.pj(Z);f=QA(f,Z);oA(Z)&&nE(D,f);F.B=!0}}; vq=function(f,D,F,Z,I,p,z,H){g.J.call(this);var K=this;this.loader=f;this.Xr=D;this.videoTrack=F;this.audioTrack=Z;this.FF=I;this.Bs=p;this.isAudioOnly=z;this.N=H;this.J=Io;this.zx=!1;this.logger=new g.Qk("sabr");this.Jb=this.S=this.xo=this.KQ=!1;this.videoInfos=this.T=this.Bs.videoInfos;this.B=this.Tx=this.Bs.Y;this.Y=new jH(D,p,function(k,h){K.loader.Gx(k,h)}); this.isAudioOnly&&c8E(this,this.FF.Y["0"])}; UOI=function(f,D){var F=[];D=g.a(D);for(var Z=D.next();!Z.done;Z=D.next())F.push(g.NJ(Z.value,f.FF.jj));return F}; c8E=function(f,D,F){D!==f.G&&(f.G&&(f.zx=!0),f.G=D,f.WH(D,f.videoTrack,F))}; G6c=function(f,D){ES(f.Xr)&&(f.xo=D.reason==="m"||D.reason==="l"?!0:!1);D.reason==="m"?D.isLocked()&&v3I(f,D.Y):a4X(f,D)?aH(f,D.J,D.Y):f.videoInfos=f.T;f.Jb=!0;f.J=D}; a4X=function(f,D){return f.Xr.edI&&D.reason==="l"||f.Xr.Zh?!1:f.Xr.iL?!0:D.reason==="l"||D.reason==="b"||D.reason==="o"}; v3I=function(f,D){var F=f.Y.Y;if(F){f.videoInfos=f.T;var Z=g.NC(f.videoInfos,function(I){return I.id===F}); Z&&Z.video.qualityOrdinal===D?f.videoInfos=[Z]:(Z=f.videoInfos.map(function(I){return I.id}),f.loader.Gx("sabrpf",{pfid:""+F, vfids:""+Z.join(".")}),aH(f,D,D),y0(f.Y,""))}else aH(f,D,D)}; aH=function(f,D,F){f.videoInfos=f.T;f.videoInfos=g.G$(f.videoInfos,function(Z){return Z.video.qualityOrdinal>=D&&Z.video.qualityOrdinal<=F})}; wUD=function(f,D,F){if(f.N){var Z=g.G$(f.B,function(I){return I.id===f.N}); return Gm(Z,F).includes(D)}Z=g.G$(f.B,function(I){var p;return!((p=I.dw)==null||!p.isDefault)}); return Z.length>0?Gm(Z,F).includes(D):Gm(f.B,F).includes(D)}; Gm=function(f,D){return f.map(function(F){return XV(g.NJ(F,D))})}; WbD=function(f){var D;if((D=f.J)==null?0:D.isLocked())return f.videoInfos;var F=hE(f.Y);D=g.G$(f.videoInfos,function(Z){return Z.Eq>f.Xr.Eq?!1:!F.has(Z.id)}); F0D(f.Y)&&(D=g.G$(D,function(Z){return Z.video.width<=854&&Z.video.height<=480})); return D}; r8f=function(f,D,F,Z){var I=f.FF,p=f.Yo.getVideoData(),z=f.z_,H=Aqs({lE:f.lE,Uy:p.j(),Yo:f.Yo,Yl:f.Yl,Xr:f.Xr,LV:f.LV,jI:f.jI,E2:f.E2,Wh:f.Wh,yN:f.yN,s3:f.s3,nW:f.nW,sabrLicenseConstraint:p.sabrLicenseConstraint,w3:f.w3,U2:f.U2,RR:f.RR,wL:f.wL,E8x:!!z,authorizedFormats:p.authorizedFormats,i7:f.i7}),K=J1(p,f.TF,f.nextRequestPolicy,f.Lb,f.Ov,f.OZ,f.Ix);F&&D&&(F=K.hH?K.hH.map(function(A){return A.type}):[],D("sabr",{stmctxt:F.join("_"), unsntctxt:K.Zb?K.Zb.join("_"):""}));D=f.CL;F=f.l9;if(F===void 0&&D===void 0){var k;F=BKd(I.jj,(k=f.qU)==null?void 0:k.video);var h;D=BKd(I.jj,(h=f.qU)==null?void 0:h.audio)}if(p.ke)var y=p.ke;p={w$:H,F3:f.F3,CL:D,l9:F,z_:z,videoPlaybackUstreamerConfig:y,RT:K};Z&&f.cW?f.cW.length>0&&(p.cW=f.cW):f.BR&&(p.BR=f.BR);p.UI=f.UI;p.MH=I.Ps;return p}; BKd=function(f,D){return D?[g.NJ(D.info,f)]:[]}; wJ=function(f,D,F){var Z=this;this.requestType=f;this.T3=D;this.Oy=F;this.J=null;this.ej={s3:function(){var I;return(I=Z.data)==null?void 0:I.s3}, Ov:function(){var I;return(I=Z.data)==null?void 0:I.Ov}, w3:function(){var I;return(I=Z.data)==null?void 0:I.w3}}}; GVw=function(f,D,F){D=gV(f.T3,LbJ(f,D,F),D);f.sS()&&D.set("probe","1");return D}; LbJ=function(f,D,F){f.m2===void 0&&(f.m2=f.T3.m2(D,F));return f.m2}; Wq=function(f){var D,F;return((D=f.Y)==null?void 0:(F=D.w$)==null?void 0:F.Xh)||0}; Bq=function(f){var D,F;return!!((D=f.Y)==null?0:(F=D.w$)==null?0:F.w3)}; l4X=function(f){var D={},F=[],Z=[];if(!f.data)return D;for(var I=0;I0;K--)F.push(H)}F.length!==z?D.error=!0:(p=F.slice(-p),F.length=I,DEy(D,F,p));break;case 1:DEy(D,xM,X$);break;case 0:F_(D, D.Y&7);F=ft(D,16);I=ft(D,16);(F^I)!==65535&&(D.error=!0);D.output.set(D.data.subarray(D.J,D.J+F),D.B);D.J+=F;D.B+=F;break;default:D.error=!0}f.B>f.output.length&&(f.output=new Uint8Array(f.B*2),f.B=0,f.J=0,f.G=!1,f.Y=0,f.register=0)}f.output.length!==f.B&&(f.output=f.output.subarray(0,f.B));return f.error?new Uint8Array(0):f.output}; DEy=function(f,D,F){D=D5(D);F=D5(F);for(var Z=f.data,I=f.output,p=f.B,z=f.register,H=f.Y,K=f.J;;){if(H<15){if(K>Z.length){f.error=!0;break}z|=(Z[K+1]<<8)+Z[K]<>=7;k<0;)k=D[(z&1)-k],z>>=1;else z>>=k&15;H-=k&15;k>>=4;if(k<256)I[p++]=k;else if(f.register=z,f.Y=H,f.J=K,k>256){z=nR[k];z+=ft(f,OV[k]);K=f_y(f,F);H=Pq[K];H+=ft(f,YM[K]);if(ZTu&&zF.length&&(f.error=!0);f.register|=(F[Z+1]<<8)+F[Z]<=0)return F_(f,F&15),F>>4;for(F_(f,7);F<0;)F=D[ft(f,1)-F];return F>>4}; ft=function(f,D){for(;f.Y=f.data.length)return f.error=!0,0;f.register|=f.data[f.J++]<>=D;f.Y-=D;return F}; F_=function(f,D){f.Y-=D;f.register>>=D}; D5=function(f){for(var D=[],F=g.a(f),Z=F.next();!Z.done;Z=F.next())Z=Z.value,D[Z]||(D[Z]=0),D[Z]++;var I=D[0]=0;F=[];var p=0;Z=0;for(var z=1;z7&&(p+=D[z]);for(I=1;I>K&1;H=p<<4|z;if(z<=7)for(K=1<<7-z;K--;)Z[K<>=7;z--;){Z[K]||(Z[K]=-D,D+=2);var k=I&1;I>>=1;K=k-Z[K]}Z[K]=H}}return Z}; ptc=function(f){var D,F,Z,I,p,z,H,K,k;return g.l(function(h){switch(h.Y){case 1:if(!I_J)throw Error("DecompressionStream is not supported");D=Up.pL();F=new DecompressionStream("gzip");Z=F.writable.getWriter();Z.write(f);Z.close();I=F.readable.getReader();p=new K6([]);case 2:return g.r(h,I.read(),5);case 5:z=h.J;H=z.value;if(K=z.done){h.ZE(4);break}p.append(H);h.ZE(2);break;case 4:return k=yo(p),Up.VX("gznb",D,Math.ceil(k.byteLength/16)),h.return(k)}})}; Z5=function(f){g2.call(this,"onesie",f);this.Oy=f;this.Y={};this.G=!0;this.B=null;this.queue=new N5(this);this.X={}}; IZ=function(f){var D=f.queue;D.Y.length&&D.Y[0].isEncrypted&&!D.J&&(D.Y.length=0);D=g.a(Object.keys(f.Y));for(var F=D.next();!F.done;F=D.next()){F=F.value;var Z=f.Y[F];if(!Z.nA){var I=f.queue;I.Y.push({videoId:Z.videoId,formatId:F,isEncrypted:!1});I.J||e1(I)}}}; zdu=function(f,D){var F=D.totalLength,Z=!1;switch(f.B){case 0:f.gH(D,f.G).then(function(I){var p=f.Oy;p.Mm("oprr");p.playerResponse=I;p.Lf||(p.xr=!1);pt(p)},function(I){f.Oy.fail(I)}); break;case 2:f.Mm("ormk");D=yo(D);f.queue.decrypt(D);break;default:Z=!0}f.Oy.l_&&f.Oy.Gx("ombup","id.11;pt."+f.B+";len."+F+(Z?";ignored.1":""));f.B=null}; soa=function(f,D){var F,Z,I,p,z;return g.l(function(H){switch(H.Y){case 1:f.Oy.Mm("oprgz_s");if(!I_J){H.ZE(2);break}g.po(H,3);return g.r(H,ptc(D),5);case 5:return F=H.J,f.Oy.Mm("oprgz_n"),f.Oy.Gx("oprsgz",{i:"n"}),H.return(F);case 3:Z=g.He(H),f.Oy.Gx("gzerr",{impl:"native",err:""+Z});case 2:if(I=f.Oy.j().vI)try{var K=Up.pL(),k=I.S6(D),h=I,y=k!=null?k:D,A=y.byteOffset,V=y.byteLength,R=h.exports.getInflatedSize(A,V);if(R===0)throw Error("wasm_gz: bad input");var m=h.malloc(R),b=h.exports.inflateGzip(A, V,m);if(b)throw h.free(m),Error("wasm_gz: fail"+b);var U=new Uint8Array(h.exports.memory.buffer,m,R);k&&I.free(k.byteOffset);var S=I.Yf(U);Up.VX("gzwb",K,Math.ceil(S.byteLength/16));p=S;f.Oy.Mm("oprgz_w");f.Oy.Gx("oprsgz",{i:"w"});return H.return(p)}catch(G){f.Oy.Gx("gzerr",{impl:"wasm",err:""+G})}K=Up.pL();k=g.FjX(new g.YnD(D));Up.VX("gzjb",K,Math.ceil(k.byteLength/16));z=k;f.Oy.Mm("oprgz_p");f.Oy.Gx("oprsgz",{i:"j"});return H.return(z)}})}; qWu=function(f){return new Promise(function(D){setTimeout(D,f)})}; HTD=function(f,D){var F=f.j();var Z=f.Gi&&F.Z("html5_onesie_preload_use_content_owner"),I=f.pD;Z=Z===void 0?!1:Z;if(F=Q5(D.V.experiments,"debug_bandaid_hostname")){var p=g.Pf(D.V.experiments,"debug_bandaid_port");p=p>0?F+":"+p:F;F=D.V.experiments.Hs("debug_bandaid_insecure_scheme");D=EV(D,p,F)}else Z&&(I==null?0:I.url)&&!D.J?(p=hI(57,new g.Cf(I.url)),D=EV(D,p)):D=(p=D.Y.get(0))==null?void 0:p.location.clone();if(D&&f.videoId){p=G0(f.videoId);f=[];if(p)for(p=g.a(p),F=p.next();!F.done;F=p.next())f.push(F.value.toString(16).padStart(2, "0"));D.set("id",f.join(""));return D}}; o7u=function(f,D,F){F=F===void 0?0:F;var Z,I;return g.l(function(p){if(p.Y==1)return Z=[],Z.push(D.load()),F>0&&Z.push(qWu(F)),g.r(p,Promise.race(Z),2);I=HTD(f,D);return p.return(I)})}; Kjw=function(f,D,F,Z){Z=Z===void 0?!1:Z;f.set("cpn",D.clientPlaybackNonce);f.set("opr","1");var I=D.j();f.set("por","1");z1()||f.set("onem","1");D.startSeconds>0&&f.set("osts",""+D.startSeconds);Z||(I.Z("html5_onesie_disable_partial_segments")&&f.set("oses","1"),D=I.Z("html5_gapless_onesie_no_media_bytes")&&AZ(D)&&D.Gi,F&&!D?(D=F.audio,f.set("pvi",F.video.join(",")),I.Z("html5_onesie_disable_audio_bytes")||f.set("pai",D.join(",")),Ik||f.set("osh","1")):(f.set("oad","0"),f.set("ovd","0"),f.set("oaad", "0"),f.set("oavd","0")))}; kZX=function(f,D,F,Z,I){I=I===void 0?!1:I;var p="https://youtubei.googleapis.com/youtubei/"+D.J7.innertubeApiVersion+"/player",z=[{name:"Content-Type",value:"application/json"}];Z&&z.push({name:"Authorization",value:"Bearer "+Z});z.push({name:"User-Agent",value:g.DM()});g.nc("EOM_VISITOR_DATA")?z.push({name:"X-Goog-EOM-Visitor-Id",value:g.nc("EOM_VISITOR_DATA")}):(F=F.visitorData||g.nc("VISITOR_DATA"))&&z.push({name:"X-Goog-Visitor-Id",value:F});(F=g.nc("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&z.push({name:"X-YouTube-Lava-Device-Context", value:F});(D=Q5(D.experiments,"debug_sherlog_username"))&&z.push({name:"X-Youtube-Sherlog-Username",value:D});f=TF(JSON.stringify(f));return{url:p,Q5:z,postBody:f,BBQ:I,lS:I}}; z8=function(f,D,F,Z,I,p,z,H,K){var k=f.cJ,h=f.nS;f=f.Hwx;var y=k!==void 0&&h!==void 0,A=Z.getVideoData(),V,R=D.Y.encryptedClientKey;D=y?D.iv:void 0;y=Yq(p,!0);I=I||!!z1()&&y>1572864;return{innertubeRequest:{wpE:f,qj:k,nS:h,encryptedClientKey:R,iv:D,LoI:!0,AM:!0,Vd:"DecompressionStream"in window||!I,GvT:F.experiments.Hs("html5_use_jsonformatter_to_parse_player_response")},w$:Aqs({lE:p,Uy:F,Yo:Z,Yl:A.startSeconds*1E3}),onesieUstreamerConfig:z,Wr:H,RT:J1(A),reloadPlaybackParams:(V=A.EW)==null?void 0: V.reloadPlaybackParams,K9Y:K}}; joI=function(f,D,F,Z,I,p,z,H){var K=g.gX(f,Qf),k;if(!f.lS)if(k=uTI(D,K)){var h=k.GG;k=k.signature}else k=h=D.encrypt(K),(0,g.m5)(),k=JTy(new EhD(D.Y.B),k,D.iv);return z8(h&&k?{cJ:h,nS:k}:{Hwx:K},D,F,Z,!!f.lS,I,p,z,H)}; iTy=function(f,D,F,Z,I,p,z,H){var K,k,h;return g.l(function(y){if(y.Y==1)return K=g.gX(f,Qf),g.r(y,J8X(D,K),2);if(y.Y!=3)return k=y.J,g.r(y,NKy(D,k),3);h=y.J;return y.return(z8({cJ:k,nS:h},D,F,Z,!!f.lS,I,p,z,H))})}; hds=function(f,D,F,Z,I,p,z,H){var K=g.gX(f,Qf);if(K=uTI(D,K))return z8({cJ:K.GG,nS:K.signature},D,F,Z,!!f.lS,I,p,z,H)}; qp=function(f,D,F){g.J.call(this);var Z=this;this.Yo=f;this.playerRequest=D;this.lE=F;this.logger=new g.Qk("onesie");this.tV=[];this.tA=[];this.xhr=null;this.state=1;this.sD=new $P;this.fA=!1;this.playerResponse="";this.wy=new TT(this);this.kq=new Z5(this);this.ao="";this.FI=this.PU=!1;this.Ad="";this.enableCompression=this.Lf=this.rq=!1;this.Hc=[];this.PR=-1;this.NO=0;this.V=this.Yo.j();this.videoData=this.Yo.getVideoData();this.l_=this.V.Oq();this.qY=this.V.qb;this.DA=new rJ(this.qY.Y);this.Ku= this.V.Z("html5_onesie_check_timeout");this.DI=new g.xX(this.KM,500,this);this.r4=new g.xX(this.Sa,1E4,this);this.LD=new g.xX(function(){if(!Z.isComplete()){var I=sF(Z);Z.fail(new g.px("net.timeout",I))}},1E3); this.L2=new g.xX(this.Hpb,2E3,this);this.Uc=this.Yo.Y7();this.xr=this.Z("html5_onesie_wait_for_media_availability");g.N(this.videoData,this);g.N(this,this.DI);g.N(this,this.r4);g.N(this,this.L2);f=m0();Ik&&f&&(this.X6=new Map);this.XV=new Map;this.aF=new Map;this.k$=new Map;this.zJ=new Map}; gJ=function(f,D){var F;return(F=f.X6)==null?void 0:F.get(D)}; AZD=function(f,D,F){var Z;return g.l(function(I){if(I.Y==1)return f.Mm("oprd_s"),yZu(f)?g.r(I,g3u(f.DA,D,F),3):(Z=f.DA.decrypt(D,F),I.ZE(2));I.Y!=2&&(Z=I.J);f.Mm("oprd_c");return I.return(Z)})}; $Ef=function(f){return f.Z("html5_onesie_host_probing")||f.l_?Ik:!1}; pt=function(f){if(!f.playerResponse)return!1;if(f.rq)return!0;var D=f.videoData.Z("html5_onesie_audio_only_playback")&&$7(f.videoData);if(f.X6&&f.xr){if(!f.X6.has(f.ao))return!1;var F=f.X6.get(f.ao),Z;if(Z=F){Z=!1;for(var I=g.a(F.Vj.keys()),p=I.next();!p.done;p=I.next())if(p=F.Vj.get(p.value))for(var z=g.a(p.An),H=z.next();!H.done;H=z.next())H.value.dk>0&&(p.E6?Z=!0:D=!0);Z=!(D&&Z)}if(Z)return!1}f.Mm("ofr");f.sD.resolve(f.playerResponse);if(!f.Ku){var K;(K=f.LD)==null||K.start();f.r4.start()}return f.rq= !0}; Rda=function(f){if(f.X6&&!f.Z("html5_onesie_media_capabilities")){f.Mm("ogsf_s");var D=KCs(f.Yo.getVideoData(),function(Z,I){f.Gx(Z,I)}),F=Vbu(f.Yo); D.video=FCw(F,D.video);f.Mm("ogsf_c");if(D.video.length)return D;f.Gx("ombspf","l."+F.J+";u."+F.Y+";o."+F.B+";r."+F.reason)}}; yZu=function(f,D){return f.Z("html5_onesie_sync_request_encryption")||(D==null?0:D.lS)?!1:!!z1()}; sF=function(f){if(!f.Jz)return{};var D=f.Jz.hc(),F;D.d=(F=f.Jz.Tx)==null?void 0:F.s6();D.shost=f.Vr;D.ty="o";return D}; dEc=function(f,D){var F,Z;(Z=(f=(F=f.X6)==null?void 0:F.get(D))==null)||(D=f.B?!1:f.B=!0,Z=!D);return!Z}; HQ=function(f,D,F,Z,I,p,z,H,K,k,h,y){g.J.call(this);var A=this;this.Yo=f;this.loader=D;this.policy=F;this.audioTrack=Z;this.videoTrack=I;this.FF=p;this.lE=z;this.G3=H;this.J=K;this.timing=k;this.xo=h;this.N=y;this.Y=[];this.G={};this.Ps=this.JN=!1;this.Bs=this.b3=this.yN=0;this.KQ={sV:0,Ky:0};this.eT={sV:0,Ky:0};this.D5=null;this.Tx={UI:[],F3:[]};this.rY={UI:[],F3:[]};this.T=null;this.X=[];this.Ir=0;this.LQ=!1;this.ej={tBY:function(){return A.Y}, zlY:function(){return A.G}, fsy:function(){A.Y.length=0}, Q0I:function(){return A.videoData.Ir}, NFT:function(){return A.Bs}, uHd:function(V){A.Bs=V}, o9T:function(V){A.KQ.Ky=V}, By:function(V){A.T=V}, El:function(V){A.X=V}, UV:function(){return A.UV()}}; this.videoData=this.Yo.getVideoData();this.Jb=this.videoData.latencyClass==="LOW"?50:this.videoData.latencyClass==="ULTRALOW"?100:this.policy.TK;this.policy.Gv&&(this.zx=new $M(this.loader,this.policy,this.lE),g.N(this,this.zx))}; mEJ=function(f,D){if(QoD(f)){D=Cjc(f,D);f.Y.push(D);var F;(F=f.zx)==null||VA(F,f.FF.Jb);f.Jb>0&&f.KQ.Ky++}}; Cjc=function(f,D){f.policy.S&&f.loader.Gx("sabrcrq",{create:1});var F=new wJ(0,f.FF.Jb,f);f.J.Jb=!1;return Tfd(f,F,D)}; oZ=function(f){var D,F=f.policy.X&&((D=f.loader)==null?void 0:D.SS());D=f.loader.getCurrentTime()||0;D=bTJ(f,D);if(f.policy.mz&&f.loader.isSeeking()){var Z=D7(f.videoTrack,D);f.loader.Gx("asmtfnctv",{b:D,a:Z});isNaN(Z)||(D=Z)}Z=f.loader.R_()||0;D+=Z;Z=EW(f.videoData)||g.lj(f.videoData);var I=0;F?(Z&&(I=Number.MAX_SAFE_INTEGER),f.videoData.Al&&(I=Math.ceil(f.videoData.O3*1E3))):I=Math.ceil(D*1E3);return Math.min(Number.MAX_SAFE_INTEGER,I)}; Kt=function(f){return f.policy.Gi&&!!f.T}; bTJ=function(f,D){if(f.loader.isSeeking())return D;var F=f.Yo.ac();if(!F)return D;F=F.NI();if(F.length===0||Pi(F,D))return D;if(!f.videoTrack.bC(D)&&!f.audioTrack.bC(D))return f.loader.Gx("sundrn",{b:0,lt:D}),D;for(var Z=D,I=Infinity,p=0;pD)){var z=D-F.end(p);z=20)?(f.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),D):Z}; jE=function(f,D,F){f=f.loader.R_()||0;return ki(D,(F+f)*1E3)/1E3+F}; QoD=function(f){if(!Mbu(f,f.KQ)||Hq(f.audioTrack)&&Hq(f.videoTrack))return!1;if(f.policy.J)if(f.policy.T){var D;if((D=f.N)==null)var F=0;else{F=!1;D=g.a(D.Y.entries());for(var Z=D.next();!Z.done;Z=D.next())if(Z=g.a(Z.value),Z.next(),Z=Z.next().value,Z.event!=="predictStart"&&Z.AJ===5){var I=void 0,p=void 0;((I=Z)==null?0:I.AV)&&Date.now()-((p=Z)==null?NaN:p.AV)>1E4?Z.AJ=1:F=!0}}if(F)return!1}else if(F=!1,f.xo.J===2?F=!0:f.xo.J===3&&(oZ(f),f.loader.R_(),I=Pn(f.audioTrack,f.loader.isSeeking()).UI,D= Pn(f.videoTrack,f.loader.isSeeking()).UI,Z=f.loader.getCurrentTime()||0,I=jE(f,I,Z),D=jE(f,D,Z),D=Math.min(I,D),Z=f.xo,D>=Z.B?(Z.Gx("sdai",{haltrq:D,est:Z.B}),D=!0):D=!1,D&&(F=!0)),F&&f.policy.S&&f.loader.Gx("sabrcrq",{waitad:1}),F)return!1;f.policy.Gm&&(f.Tx=is(f,f.audioTrack),f.rY=is(f,f.videoTrack));if(!f.B)return f.policy.S&&f.loader.Gx("sabrcrq",{nopolicy:1}),!0;if(f.Yo.wF())return f.policy.S&&f.loader.Gx("sabrcrq",{utc:1}),!0;if(f.J.S)return f.policy.S&&f.loader.Gx("sabrcrq",{audio:1}),!0;if(f.policy.oE&& f.J.Jb)return f.policy.S&&f.loader.Gx("sabrcrq",{constraint:1}),!0;if(!f.B.targetAudioReadaheadMs||!f.B.targetVideoReadaheadMs)return f.policy.S&&f.loader.Gx("sabrcrq",{noreadahead:1}),!0;if(f.policy.X&&f.loader.SS())return f.policy.S&&f.loader.Gx("sabrcrq",{seekToHead:1}),!0;F=Math.min(qr(f.loader,f.audioTrack)*1E3,f.B.targetAudioReadaheadMs);D=Math.min(qr(f.loader,f.videoTrack)*1E3,f.B.targetVideoReadaheadMs);var z=Math.min(F,D),H=f.Yo.getCurrentTime()*1E3,K=tbD(f,H);Z=K.DD;I=K.kc;p=K.MY;K=K.iR; var k=ZD||Z>=0&&I.DY>Z+1)break;F=Math.max(F,I.startTimeMs+I.durationMs);Z=Math.max(Z,I.nK)}return Math.max(0,F-D)}; Tfd=function(f,D,F){var Z={lE:f.lE,BW:function(K,k){f.Yo.a7(K,k)}, Tw:f.policy.Tg,Uz:f.policy.B};f.lE.J.T&&(Z.WR=(f.videoTrack.XF.info.Eq||0)+(f.audioTrack.XF.info.Eq||0));f.policy.nH&&(Z.j$=f.audioTrack.XF.index.wm(),Z.Tw=!1);var I=LbJ(D,f.policy,f.G)?2:1;I!==f.Bs&&(f.Bs=I,cZE(f));F=f.UV(F);if(f.policy.Bs&&f.policy.B&&F.Lb){for(var p=I="",z=g.a(F.Lb),H=z.next();!H.done;H=z.next())H=H.value,f.videoData.sabrContextUpdates.has(H)||f.policy.Bs&&F.OZ&&F.OZ.type===H?I+="_"+H:p+="_"+H;f.loader.Gx("sabrbldrqs",{ctxts:I,misctxts:p})}!D.setData(F,f.policy,f.G)&&f.policy.Bs&& f.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);Z=new DC(f.policy,D,f.FF,f.G,f,Z,f.loader.Y7());FF(f.timing);f.policy.S&&f.loader.Gx("sabrcrq",{rn:Z.RN(),probe:D.sS()});return Z}; Aj=function(f,D){if(D.MR()||f.MR())f.policy.kT||(f.policy.X?hj(f.loader):f.loader.cD());else{if(f.policy.B&&D.isComplete()&&D instanceof DC){var F=f.loader,Z=F.Gx,I,p,z=Object.assign(D.Jz.hc(),{rst:D.state,strm:D.xhr.CB(),d:(I=D.Jz.Tx)==null?void 0:I.s6(),cncl:D.xhr&&D.Ic.X?1:0,rqb:D.jQ,cwt:D.Ic.B,swt:(p=D.Pm)==null?void 0:p.Wd});I=Object.assign(l4X(D.info),z);Z.call(F,"rqs",I)}if(D.isComplete()&&D.sS()&&D instanceof DC)f.policy.Xt?D.HU()?(D.dispose(),f.Y.length===0?f.loader.cD():(f=f.Y[0],f instanceof DC&&f.LG()&&f.Mc())):D.lO()&&f.loader.handleError(D.wp(),D.Ke()):(D.dispose(),f.loader.cD());else{if(D.RV())D instanceof DC&&ECy(f.timing,D),cZE(f),y2(f);else if(D.lO())if(F=f.Yo.wF(),D instanceof DC&&Bq(D.info)&&F&&f.loader.j4(F),D instanceof DC&&BqT(D)){var H;(H=f.loader.ye)==null||MR(H)}else D instanceof qp?f.Y.pop():(H=1,D.canRetry()&&tl(f.loader)&&(UEJ(f,D),H=0),f.loader.handleError(D.wp(),D.Ke(),H));else{if(f.loader.isSuspended&&!D.isComplete())return;y2(f)}D.MR()||D instanceof qp||(D.isComplete()? H=CMy(D,f.policy,f.G):(H=Qew(D,f.policy,f.G),H===1&&(f.JN=!0)),H!==0&&(F=new wJ(1,D.info.T3),F.m2=H===2,Tfd(f,F)));f.policy.BI&&!D.isComplete()?UV(f.loader):f.loader.cD()}}}; y2=function(f){for(;f.Y.length&&f.Y[0].hw(f.Ww());){var D=f.Y.shift();v7u(f,D)}f.Y.length&&v7u(f,f.Y[0])}; v7u=function(f,D){D instanceof DC&&(f.dY=D);var F=new Set(D.VF(f.Ww()));F=g.a(F);for(var Z=F.next();!Z.done;Z=F.next()){var I=Z.value;if(!(Z=!(D instanceof qp))){Z=f.J;var p=Z.FF.jj,z=Gm(Z.videoInfos,p);p=wUD(Z,I,p);var H=z.includes(I);!Z.Xr.B3||p||H||Z.loader.Gx("sabrcpf",{fid:""+I,vfids:""+z.join("."),said:Z.N||""});Z=p||z.includes(I)}if(Z&&(Z=D.Qe(I,f.Ww()),z=f.policy.Gi&&xY(Z[0].XF.info.mimeType),D.u_(I,f.Ww())))for(I=D.o6(I,f.Ww()),I=g.a(I),p=I.next();!p.done;p=I.next())if(p=p.value,f.policy.B&& D instanceof qp&&f.loader.Gx("omblss",{s:p.info.lJ()}),z)H=f.timing,H.Bs||(H.Bs=(0,g.m5)(),g.GB("fcb_r",H.Bs,H.Y)),H=f,H.videoData.jj()&&H.T&&XV(H.T)===XV(g.NJ(p.info.XF.info,H.FF.jj))&&H.Yo.publish("sabrCaptionsDataLoaded",p,H.El.bind(H));else{H=p.info.XF.info.E6();var K=p.info.XF;if(H){var k=void 0;var h=f.J,y=(k=D.vJ(f.Ww()))==null?void 0:k.token;h.S&&K!==h.X?k=!0:(h.S=!1,K!==h.X&&(h.X=K,h.WH(K,h.audioTrack,y)),k=!1);if(k)continue}else k=void 0,c8E(f.J,K,(k=D.vJ(f.Ww()))==null?void 0:k.token); k=H?f.audioTrack:f.videoTrack;D instanceof qp&&(k.T=!1,D instanceof qp&&(H?lDy(f.timing):LCJ(f.timing)));try{Y2(k,Z,p)}catch(A){p=s_(A),f.loader.handleError(p.errorCode,p.details,p.severity),k.Jl(),f.iz(!1,"pushSlice"),hj(f.loader)}}}}; UEJ=function(f,D){f.policy.Bs?f.Y.splice(f.Y.indexOf(D)).forEach(function(F){F.dispose()}):(f.Y.pop(),D==null||D.dispose())}; a_X=function(f,D,F){for(var Z=[],I=0;I0)for(var D=g.a(f.videoData.sabrContextUpdates.keys()),F=D.next();!F.done;F=D.next()){F=F.value;var Z=void 0;((Z=f.videoData.sabrContextUpdates.get(F))==null?0:Z.sendByDefault)&&f.videoData.Ir.add(F)}if(f.policy.Bs&&f.Y.length)for(D=g.a(f.Y),F=D.next();!F.done;F=D.next())(F=F.value.s_())&&F.type&&F.sendByDefault&&f.videoData.Ir.add(F.type)}; GZy=function(f){f.policy.WI&&(f.jT=void 0,f.yN=0)}; wta=function(f,D){if(D.lO()||D.MR()){var F=f.loader,Z=F.Gx,I=D.state;f=f.Ww();var p,z;if((D=(p=D.X6)==null?void 0:p.get(f))==null)D=void 0;else{p=0;f=D.VF();for(var H=0;H0){var F=Math.floor((0,g.m5)()/1E4);if(F===D.sV){if(D.Ky>=f.Jb){D.Ky===f.Jb&&(F={reason:"toomanyrequests"},F.limit=D.Ky,f.loader.handleError("player.exception",F),D.Ky+=1);D=!1;break a}}else D.sV=F,D.Ky=0}D=!0}if(!D||f.loader.isSuspended&&f.loader.cF)return!1;if(f.S&&(0,g.m5)()0)||f.policy.Bs&&f.Y.length===1&&f.Y[0].TE()?!0:!1){var Z;D=(Z=f.FF.Jb)!=null&&xI(Z,f.policy,f.G,f.loader.mf)?!0:!1}return D&&!f.LQ?!0:!1}; tbD=function(f,D){var F=WjD(f),Z=F.MY;F=F.iR;if(f.policy.Gm){var I=ki(f.Tx.UI,D);f=ki(f.rY.UI,D)}else I=Z,f=F;return{DD:I,kc:f,MY:Z,iR:F}}; WjD=function(f){var D=pR(f.audioTrack,!0)*1E3;f=pR(f.videoTrack,!0)*1E3;return{MY:D,iR:f}}; Bfc=function(f){this.Yo=f;this.Y=new Map;this.delay=null}; $i=function(f,D){if(tJ(f.Yo.getPlayerState())&&f.Y.size!==0){var F=D!=null?D:Array.from(f.Y.values()).sort(function(I,p){return I.mediaTime-p.mediaTime}); D=f.getCurrentTime();var Z=(F[0].mediaTime-D)*1E3/f.Yo.getPlaybackRate();if(Z<500)for(D=Z>0?rZu(f):D,F=g.a(F),Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,D>=Z.mediaTime)Z.resolve([Z.mediaTime,Z.id]),f.Y.delete(Z.id);else break;Lju(f,D)}}; l_D=function(f,D,F){f.Y.delete(F);return new Promise(function(Z){f.Y.set(F,{id:F,mediaTime:D,resolve:Z});Z=Array.from(f.Y.values()).sort(function(I,p){return I.mediaTime-p.mediaTime}); F===Z[0].id&&$i(f,Z)})}; E7d=function(f){var D;(D=f.delay)==null||D.dispose();f.Y.clear()}; Lju=function(f,D){var F;(F=f.delay)==null||F.dispose();f.delay=null;F=Array.from(f.Y.values()).sort(function(Z,I){return Z.mediaTime-I.mediaTime}); F.length!==0&&(D=(F[0].mediaTime-D)*1E3/f.Yo.getPlaybackRate(),f.delay=new g.xX(function(){$i(f)},D>500?D-500:D),f.delay.start())}; rZu=function(f){var D,F;return(F=(D=f.Yo.ac())==null?void 0:D.getCurrentTime())!=null?F:f.Yo.getCurrentTime()}; V2=function(f,D,F){var Z=this;this.B=f;this.cpn=D;this.Yo=F;this.Y=new Map;this.J=new Map;this.T=NaN;this.S=!1;this.G=this.f4="";this.isSeeking=!1;this.X=new Bfc(F);this.xW=F.xW;this.Yo.subscribe("statechange",this.N,this);this.Yo.subscribe("SEEK_TO",function(){Z.lj()}); this.Yo.subscribe("SEEK_COMPLETE",function(){JZT(Z)}); this.f4=this.G=this.cpn}; NfI=function(f,D,F){var Z=!0;Z=Z===void 0?!1:Z;var I=f.Y.get(D),p=f.B.getStartTime(D),z=f.B.getDuration(D);f.S=!1;var H=p,K;((K=I==null?void 0:I.Y)!=null?K:[f.cpn]).forEach(function(k,h){var y,A=(y=I==null?void 0:I.J[h])!=null?y:z;if(F>=H&&FI?RZ(f,p,f.Y.get(p)):p===I&&RZ(f,p,f.Y.get(p),Z-f.B.getStartTime(p))})}; u2D=function(f,D,F,Z){Z=Z===void 0?!1:Z;D!==f.f4&&(f.f4=D,f.Yo.publish("playbackstarted",D,F+f.Yo.R_(),Z))}; edE=function(f,D,F,Z){f.G=F;F=D+"."+F;f.J.has(D)?f.J.get(D).push(F):f.J.set(D,[F]);l_D(f.X,Z,F).then(function(I){var p=g.a(I);I=p.next().value;p=p.next().value;var z=g.a(p.split("."));p=z.next().value;z=z.next().value;p=g.a([Number(p),z]);p.next();p=p.next().value;u2D(f,p,I)})}; dD=function(f,D,F,Z,I){this.loader=f;this.policy=D;this.schedule=F;this.I5=Z;this.Jb=I;this.Bs=NaN;this.J=this.S=this.G=null;this.Y=this.X=this.T=this.startTimeSecs=NaN;this.B=!1;this.N=NaN}; xEJ=function(f,D,F,Z,I,p){return D.J7&&D.Z5&&F===3?new dD(f,D,Z,I,p):null}; Xtu=function(f,D){if(f.policy.s_o){var F=D.info.Eq,Z=Yq(f.schedule);D=D.index.wm();F=Math.max(1,Z/F);f.N=Math.round(Math.max(((F-1)*D+f.policy.OI)/F,D-f.policy.Ek)*1E3)}}; var sdI=function(f,D){return AI[q[16]](this,1,f,D)}; YWd=function(f,D){var F=Date.now()/1E3,Z=F-f.startTimeSecs,I=F-f.T,p=I>=f.policy.jn,z=!1;if(p){var H=0;!isNaN(D)&&D>f.X&&(H=D-f.X,f.X=D);H/I=f.policy.Ek&&!f.B;if(!p&&!F&&OTa(f,D))return NaN;F&&(f.B=!0);a:{Z=z;F=(0,g.m5)()/1E3-(f.I5.yz()||0)-f.S.Y-f.policy.OI;p=f.J.startTime;F=p+F;if(Z){if(isNaN(D)){Q2(f,NaN,"n",D);p=NaN;break a}Z=D-f.policy.cL;Z0&&(z.headers=H);p&&(z.onFinish=p);return Object.keys(z).length>1?z:null}; T8=function(f,D,F,Z,I,p,z,H){og()&&F.token&&(f=s4(f,{ctt:F.token,cttype:F.b7,mdx_environment:F.mdxEnvironment}));Z.Z("net_pings_low_priority")&&(D||(D={}),D.priority="low");p||H&&Z.Z("nwl_skip_retry")?(D==null?D={}:IUJ(f,Z.Z("html5_assert_cpn_with_regex")),z?gz().sendAndWrite(f,D):gz().sendThenWrite(f,D,H)):D?(IUJ(f,Z.Z("html5_assert_cpn_with_regex")),BGD(f,D)):g.WH(f,I)}; pvw=function(f){for(var D=[],F=0;F0&&F>0&&!f.J&&f.B<1E7)try{f.G=f.X({sampleInterval:D,maxBufferSize:F});var Z;(Z=f.G)==null||Z.addEventListener("samplebufferfull",function(){return g.l(function(I){if(I.Y==1)return g.r(I,f.stop(),2);qzu(f);g.Zb(I)})})}catch(I){f.J=skJ(I.message)}}; Mp=function(f,D){var F,Z,I=(F=window.h5vcc)==null?void 0:(Z=F.settings)==null?void 0:Z.set(f,D);return XZ(I)?f5(Ok(I),function(){return!0},function(){return!1}):Ok(!!I)}; HND=function(f){return Mp("MediaSource.EnableUsingMediaSourceBufferedRange",f?1:0)}; ouc=function(f){return Mp("HTTP3",f?1:0)}; KSs=function(f){return Mp("MediaSource.EnableUsingMediaSourceAttachmentMethods",f?1:0)}; kyu=function(f){return Mp("QUIC",f?1:0)}; jku=function(f){return Mp("Media.AudioWriteDurationLocal",f)}; iNy=function(f){return Mp("Media.PlayerConfiguration.DecodeToTexturePreferred",f?1:0)}; h0D=function(f){return Mp("Media.DisableExternalAllocator",f?1:0)}; yOD=function(f){return Mp("Media.VideoBufferSizeClampMb",f)}; AOD=function(f){return Mp("Media.EnableAllocateOnDemand",f?1:0)}; VKT=function(){var f,D,F,Z=(f=window.h5vcc)==null?void 0:(D=f.settings)==null?void 0:(F=D.getPersistentSettingAsString)==null?void 0:F.call(D,"cpu_usage_tracker_intervals");if(Z!=null){var I;f=(I=JSON.parse(Z))!=null?I:[];I=f.filter(function(k){return k.type==="total"}).map(function(k){return k.seconds}); D=g.a($VD);for(F=D.next();!F.done;F=D.next())F=F.value,I.indexOf(F)===-1&&f.push({type:"total",seconds:F});var p,z;(p=window.h5vcc)==null||(z=p.settings)==null||z.set("cpu_usage_tracker_intervals_enabled",1);var H,K;(H=window.h5vcc)==null||(K=H.settings)==null||K.set("cpu_usage_tracker_intervals",JSON.stringify(f))}}; R0w=function(){var f=window.H5vccPlatformService,D="";if(f&&f.has("dev.cobalt.coat.clientloginfo")&&(f=f.open("dev.cobalt.coat.clientloginfo",function(){}))){var F=f.send(new ArrayBuffer(0)); F&&(D=String.fromCharCode.apply(String,g.w(new Uint8Array(F))));f.close()}return D}; g.cQ=function(f){g.J.call(this);var D=this;this.provider=f;this.logger=new g.Qk("qoe");this.Y=new Map;this.sequenceNumber=1;this.KQ=NaN;this.R$="N";this.N=this.D_=this.MS=this.Bs=this.J=0;this.gw=this.Ir=this.T=this.dY="";this.m9=this.jT=NaN;this.AN=0;this.BI=-1;this.qb=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.JN=this.isEmbargoed=this.Tx=this.isOffline=this.isBuffering=!1;this.WI=[];this.Jb=null;this.eT=this.G=this.zx=this.S=!1;this.B=-1;this.LQ=!1;this.Xt=new g.xX(this.dRT,750,this);this.xi= this.adCpn="";this.yx=this.SX=this.fh=this.EY=this.adFormat=void 0;this.Zx=0;this.vI=new Set("cl fexp drm drm_system drm_product ns adformat live cat shbpslc".split(" "));this.Gi=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.G3=!1;this.Wk=NaN;this.rY=0;this.Uq=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Z5=!1;this.OI=new Set;this.ej={AY:function(p){D.AY(p)}, Old:function(){return D.X}, reportStats:function(){D.reportStats()}, fex:function(){return D.Y.get("cat")||[]}, tE:function(p){return D.Y.get(p)||[]}, XYF:function(){return D.Y}, sab:function(){return{adCpn:D.adCpn,xi:D.xi,adFormat:D.adFormat}}, qHE:function(){return{EY:D.EY,fh:D.fh,SX:D.SX,yx:D.yx}}}; this.xo=this.provider.V.Z("html5_qoe_relaxed_reporting");var F=g.Pf(this.provider.V.experiments,"html5_qoe_proto_mock_length");F&&!tj.length&&(tj=pvw(F));g.N(this,this.Xt);try{var Z,I;(I=(Z=navigator).getBattery)==null||I.call(Z).then(function(p){D.Jb=p})}catch(p){}g.SE(this,0,"vps",["N"]); f.V.Oq()&&(this.rY=(0,g.m5)(),this.Wk=g.$o(function(){var p=(0,g.m5)(),z=p-D.rY;z>500&&D.Gx("vmlock",{diff:z.toFixed()});D.rY=p},250)); this.provider.videoData.IN&&(this.remoteControlMode=dVE[this.provider.videoData.IN]||0);this.provider.videoData.YR&&(F=bnc(this.provider.videoData.YR),F==null?0:F.length)&&(this.remoteConnectedDevices=F);f.V.Oq()&&(this.b3=new Ct,g.N(this,this.b3));Zju(f.V)&&(this.Ps=new bs,g.N(this,this.Ps))}; UF=function(f,D,F){var Z=f.Y.get(D);Z?Z.push(F):f.Y.set(D,[F])}; g.SE=function(f,D,F,Z){UF(f,F,D.toFixed(3)+":"+Z.join(":"))}; vQ=function(f,D){var F=f.provider.getCurrentTime();g.SE(f,D,"cmt",[F.toFixed(3)]);var Z=F=f.provider.zm();if((!f.X||f.provider.V.Z("html5_shorts_gapless_no_gllat")&&AZ(f.provider.videoData)?0:Z*1E3>f.X.vM+100)&&f.X){var I=f.X;Z=I.isAd;F=F*1E3-I.vM;f.Oc=D*1E3-I.Fo3-F-I.Xly;I=(0,g.m5)()-F;D=f.Oc;F=f.provider.videoData;var p=F.isAd();if(Z||p){p=(Z?"ad":"video")+"_to_"+(p?"ad":"video");var z={};F.T&&(z.cttAuthInfo={token:F.T,videoId:F.videoId});z.startTime=I-D;an(p,z);g.vk({targetVideoId:F.videoId,targetCpn:F.clientPlaybackNonce}, p);Ul("pbs",I,p)}else I=f.provider.Yo.uv(),I.T!==F.clientPlaybackNonce?(I.X=F.clientPlaybackNonce,I.J=D):F.Lw()||g.UT(new g.by("CSI timing logged before gllat",{cpn:F.clientPlaybackNonce}));f.Gx("gllat",{l:f.Oc.toFixed(),prev_ad:+Z});delete f.X}}; wD=function(f,D){D=D===void 0?NaN:D;D=D>=0?D:g.aZ(f.provider);var F=f.provider.Yo.iF(),Z=F.AO-(f.jT||0);Z>0&&g.SE(f,D,"bwm",[Z,(F.St-(f.m9||0)).toFixed(3)]);isNaN(f.jT)&&F.AO&&f.isOffline&&f.AY(!1);f.jT=F.AO;f.m9=F.St;isNaN(F.bandwidthEstimate)||g.SE(f,D,"bwe",[F.bandwidthEstimate.toFixed(0)]);f.provider.V.Oq()&&Object.keys(F.Y).length!==0&&f.Gx("bwinfo",F.Y);if(f.provider.V.Oq()||f.provider.V.Z("html5_log_meminfo"))Z=Pju(),Object.values(Z).some(function(p){return p!==void 0})&&f.Gx("meminfo",Z); if(f.provider.V.Oq()){var I;(Z=(I=f.b3)==null?void 0:DVw(I))&&Object.values(Z).some(function(p){return p!=null})&&f.Gx("cpuinfo",Z)}f.Ps&&f.Gx("jsprof",f.Ps.flush()); f.Jb&&g.SE(f,D,"bat",[f.Jb.level,f.Jb.charging?"1":"0"]);I=f.provider.Yo.getVisibilityState();f.BI!==I&&(g.SE(f,D,"vis",[I]),f.BI=I);vQ(f,D);(I=Qka(f.provider))&&I!==f.AN&&(g.SE(f,D,"conn",[I]),f.AN=I);G8(f,D,F)}; CCD=function(f){var D=f.provider.Yo.iF(),F=g.aZ(f.provider);G8(f,F,D);var Z=D.B;D=D.G;isNaN(Z)||(f.provider.V.Z("html5_unified_live_latency_reporting")&&!isNaN(D)&&D?g.SE(f,F,"e2el",[Z.toFixed(3),D.toFixed(3)]):g.SE(f,F,"e2el",[Z.toFixed(3)]))}; G8=function(f,D,F){if(!isNaN(F.Kj)){var Z=F.Kj;F.J96E3&&(new g.xX(f.reportStats,0,f)).start()}}; bNu=function(f){f.provider.videoData.Gi&&BQ(f,"prefetch");f.provider.videoData.Ps&&f.Gx("reload",{r:f.provider.videoData.reloadReason,ct:f.provider.videoData.Ps});f.provider.videoData.HL&&BQ(f,"monitor");f.provider.videoData.isLivePlayback&&BQ(f,"live");Ik&&BQ(f,"streaming");f.provider.videoData.IN&&f.Gx("ctrl",{mode:f.provider.videoData.IN},!0);if(f.provider.videoData.YR){var D=f.provider.videoData.YR.replace(/,/g,"_");f.Gx("ytp",{type:D},!0)}f.provider.videoData.eq&&(D=f.provider.videoData.eq.replace(/,/g, "."),f.Gx("ytrexp",{ids:D},!0));D=f.provider.videoData;var F=f.provider.V.Z("enable_white_noise")||f.provider.V.Z("enable_webgl_noop"),Z=g.ct(D)||g.JZ(D)||g.uj(D)||g.NE(D);(F||Z)&&(F=(0,g.rD)())&&f.Y.set("gpu",[F]);F9(f.provider.videoData)&&g.SE(f,g.aZ(f.provider),"dt",["1"]);D.cotn&&!F9(D)&&f.AY(!0);f.provider.V.Oq()&&(D=(0,g.m5)()-f.provider.V.B_,f.Gx("playerage",{secs:Math.pow(1.6,Math.round(Math.log(D/1E3)/Math.log(1.6))).toFixed()}));f.G=!0;f.KQ=g.$o(function(){f.reportStats()},1E4)}; tKD=function(f,D,F){var Z=g.aZ(f.provider);MKX(f,Z,D,0,F);wD(f,Z);WQ(f)}; MKX=function(f,D,F,Z,I){var p=f.provider.V.Y.cbrver;f.provider.V.Y.cbr==="Chrome"&&/^96[.]/.test(p)&&F==="net.badstatus"&&/rc\.500/.test(I)&&Lt(f,3);f.provider.V.Z("html5_use_ump")&&/b248180278/.test(I)&&Lt(f,4);p=f.provider.getCurrentTime();Z=Z===1?"fatal":"";F=[F,Z,p.toFixed(3)];Z&&(I+=";a6s."+Z2());I&&F.push(SzD(I));g.SE(f,D,"error",F);f.G=!0}; cOJ=function(f,D){var F=g.aZ(f.provider);if(!f.provider.V.experiments.Hs("html5_refactor_sabr_video_format_selection_logging")||D.Y.id!==f.dY){var Z=f.provider.V.ww().Y.Kp(ir);Z&&!f.zx&&D.reason!=="m"&&(D.reason="i");var I=[D.Y.id,D.J,f.dY,D.reason];Z&&D.reason==="i"&&I.push(ls(f,D));D.token&&I.push(D.token);g.SE(f,F,"vfs",I);f.dY=D.Y.id;Z=f.provider.Yo.getPlayerSize();Z.width>0&&Z.height>0&&(Z=[Math.round(Z.width),Math.round(Z.height)],I=g.z6(),I>1&&Z.push(I),g.SE(f,F,"view",Z));f.zx||(f.provider.V.Oq()&& BQ(f,"rqs2"),f.provider.videoData.Y&&u9(f.provider.videoData.Y)&&f.Y.set("preload",["1"]));f.zx=!0;f.G=!0}D.reason==="m"&&++f.Zx===100&&Lt(f,2);g.SE(f,F,"vps",[f.R$]);f.xo||f.reportStats(F)}; UVd=function(f){f.B>=0||(f.provider.V.Y_||f.provider.Yo.getVisibilityState()!==3?f.B=g.aZ(f.provider):f.LQ=!0)}; aUD=function(f,D,F){var Z=f.provider.V,I=Z.ww(),p=[];Z.experiments.Hs("html5_refactor_sabr_audio_format_selection_logging")?(D=F.Y,Z=[D.audio&&D.video?D.Xn?D.Xn:"":D.id],D.dw&&D.dw.id&&Z.push(D.dw.id),D=Z.join(";"),D!==f.T&&(Z=[D,f.T,F.reason],p.push.apply(p,g.w(vuD(F))),I.Y.Kp(ir)&&F.reason==="i"&&p.push(ls(f,F)),p.length>0&&Z.push(p.join(";")),F.token&&Z.push(F.token),g.SE(f,g.aZ(f.provider),"afs",Z),f.T=D)):F.Y.id!==f.T&&(Z=[F.Y.id,f.T,F.reason],p.push.apply(p,g.w(vuD(F))),I.Y.Kp(ir)&&F.reason=== "i"&&p.push(ls(f,F)),p.length>0&&Z.push(p.join(";")),F.token&&Z.push(F.token),g.SE(f,D,"afs",Z),f.T=F.Y.id)}; ls=function(f,D){f=f.provider.videoData;g.zy(f)?D=4:f.bI?D=3:(D=D.Y.E6()?f.Mh:f.Dz,D=D!=null?D:0);f="sms."+D;if(D===3||D===4)f+="_1";return f}; vuD=function(f){var D=[];if(f=f.Y.audio){var F=f==null?void 0:f.G;F!==void 0&&D.push("fl."+F);f=f==null?void 0:f.B;f!==void 0&&(f=Math.min(-f,0),D.push("vg."+f),D.push("nm.4"))}return D}; BQ=function(f,D){UF(f,"cat",D)}; EF=function(f,D,F,Z,I){var p=g.aZ(f.provider);D!==1&&D!==3&&D!==5||g.SE(f,p,"vps",[f.R$]);UF(f,"xvt","t."+p.toFixed(3)+";m."+I.toFixed(3)+";g.2;tt."+D+";np.0;c."+F+";d."+Z)}; Lt=function(f,D){f.eT||(UF(f,"fcnz",""+D),f.eT=!0)}; SzD=function(f){/[^a-zA-Z0-9;.!_-]/.test(f)&&(f=f.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return f}; us=function(f,D,F,Z,I,p,z,H,K,k){H=H===void 0?!1:H;g.J.call(this);var h=this;this.Yo=f;this.schedule=D;this.policy=F;this.FF=Z;this.Bs=K;this.vI=k;this.ye=this.gY=null;this.Ir=this.jT=this.rY=this.KQ=0;this.Yt=this.cF=this.isSuspended=!1;this.b3="";this.Gi={};this.Uq=NaN;this.G3=this.Z5=this.mf=0;this.D5=null;this.Wk=this.dY=!1;this.D2=0;this.eT=!1;this.Tx=this.JN=0;this.m9=null;this.BO=!1;this.UQ=function(){return h.Yo.UQ()}; this.timing=new rqD(this.vI);this.Jb=new Xj(this.schedule,this.policy);this.AN=new g.xX(this.cD,0,this);this.gw=new g.xX(this.cD,this.policy.BI,this);this.i6=new g.xX(this.cD,1E3,this);this.WI=new g.xX(this.cD,void 0,this);this.LQ=new g.xX(function(){h.isSuspended||h.cD()},1E4,this); this.BI=new g.xX(this.iKT,250,this);this.S=this.currentTime=NaN;this.pP=new AE(5);this.zx=this.timestampOffset=NaN;this.logger=new g.Qk("dash");this.Xt=Infinity;this.ej={UGr:function(){return h.F6}, TFY:function(){return h.B}, getAudioTrack:function(){return h.audioTrack}, myd:function(){return h.videoTrack}, SPd:function(){return h.xo}, getManifest:function(){return h.FF}, Ggd:function(){return h.J}, cD:function(){h.cD()}, ll:function(){h.KQ=0;h.ll()}, Ucb:function(V){return Jj(h,h.videoTrack,h.gY.J,V)}}; f=K&&K.VF();K&&(vCE(K,this.FF,this.policy),this.zx=Date.now());this.Y=new V0(this,this.Jb,F,this.FF,I,f);F=qpd(this.Y,p,z&&z.id);this.audioTrack=new x2(this,this.policy,F.audio,this.timing);this.videoTrack=new x2(this,this.policy,F.video,this.timing);this.videoTrack.B.xo=this.audioTrack.Vo();this.Ps={updateend:this.GV,error:this.SIs};g.N(this,this.AN);g.N(this,this.gw);g.N(this,this.i6);g.N(this,this.WI);g.N(this,this.LQ);F=this.policy.FQ&&this.policy.ML?!qKJ(this.videoTrack.XF.info):!1;this.qb=Qru({jA:this.policy.N.jA|| F,ML:this.policy.ML&&!F,M0:this.policy.M0});this.N=xEJ(this,this.policy,this.qb,this.schedule,this.pP,function(V,R){return Gyf(h,V,R)}); this.B=new ZC(this,this.FF,this.policy,this.videoTrack,this.audioTrack,H);if(this.policy.T){H=this.Yo.getVideoData();var y;this.Gx("clsdai",{initld:1,admapsz:(y=H.nH)==null?void 0:y.size});H.nH||(H.nH=new Map);this.xo=new nCJ(this.policy.T,function(V,R){h.Gx(V,R)},this.policy.WZ,H.nH)}this.F6=new ZI(this,this.FF,this.videoTrack,this.audioTrack,this.policy); y=this.policy.YF?this.Yo.getVideoData().ke:null;this.T=new RH(this,this.policy,this.videoTrack,this.audioTrack,this.Gi,this.B,this.timing,this.Jb,this.schedule,this.FF,this.Y,this.N,F,y);g.N(this,this.T);this.X=new vq(this,this.policy,this.videoTrack,this.audioTrack,this.FF,I,$7(this.Yo.getVideoData()),z==null?void 0:z.id);g.N(this,this.X);G6c(this.X,p);this.J=new HQ(this.Yo,this,this.policy,this.audioTrack,this.videoTrack,this.FF,this.schedule,this.Y,this.X,this.timing,this.B,this.xo);g.N(this,this.J); this.G=this.Yo.Nm.uH.Ns;this.policy.X||wvu(this);if(this.policy.HD){var A;this.OI=new V2(this.videoTrack.XF.index,(A=this.Yo.getVideoData().clientPlaybackNonce)!=null?A:"",this.Yo)}}; WSd=function(f){f.policy.T&&f.G&&(f.G.tV.forEach(function(D){f.hO(D,-1)}),f.G.tV=[])}; wvu=function(f){var D,F;if((D=f.G)==null?0:(F=D.pI)==null?0:F.itagDenylist){var Z;f.jl((Z=f.G)==null?void 0:Z.pI.itagDenylist)}var I;if((I=f.G)==null?0:I.playbackStartPolicy){var p,z;Al(f.policy,(p=f.G)==null?void 0:p.playbackStartPolicy,3,(z=f.G)==null?void 0:z.RN())}if(f.policy.m1){D=f.Ww();var H;(F=D?(H=f.G)==null?void 0:H.aF.get(D):void 0)&&f.J.Na(F,-1)}if(!f.FF.Bs){var K;H=(K=f.G)==null?void 0:K.h9;(H==null?0:H.KS)&&(H==null?0:H.fI)&&f.FF.jj&&YC(f.FF,H.KS,H.fI)}var k;if((k=f.G)==null?0:k.zJ){K= f.G.zJ.get(f.Ww()||"");if(!K)return;f.FF&&K.formatId&&(k=f.FF.B.get(XV(K.formatId)))&&(k.info.debugInfo=K.debugInfo)}if(f.policy.eT){var h;(h=f.G)==null||h.tA.forEach(function(y){f.kR(y)}); (h=f.G)!=null&&(h.tA=[])}}; BWX=function(f,D){var F=nH(D.XF,f.FF.jj),Z,I=((Z=f.Bs)==null?void 0:Z.Qe(F))||[];if(I.length===0)return f.Gx("ombmsi",{}),!1;Z=new HT(I);if((!f.policy.xo||isFinite(f.getCurrentTime())||f.Yo.wF())&&!lJc(Z,f.getCurrentTime()))return f.Gx("ostmf",{ct:f.getCurrentTime(),a:D.XF.info.E6()}),!1;(f=f.Bs)!=null&&(f.Vj.get(F).zn=!0);return!0}; rOu=function(f){if(!f.FF.jj)return!0;var D=f.Yo.getVideoData();if(f.Yo.iM())return f.Gx("ombpa",{}),!1;var F,Z;if(!!((F=f.G)==null?0:(Z=F.h9)==null?0:Z.HKb)!==f.FF.rU)return f.Gx("ombplmm",{}),!1;F=D.dY||D.liveUtcStartSeconds||D.yO;if(f.FF.rU&&F)return f.Gx("ombplst",{}),!1;if(f.FF.Bs)return f.Gx("ombab",{}),!1;F=Date.now();return PT(f.FF)&&!isNaN(f.zx)&&F-f.zx>f.policy.HB*1E3?(f.Gx("ombttl",{}),!1):f.FF.Ca&&f.FF.G||Sb(D)!==0&&!f.policy.Y||D.Z("html5_disable_onesie_media_for_mosaic")&&DU(D)||D.Z("html5_disable_onesie_media_for_lifa_eligible")&& fN(D)?!1:!0}; LSs=function(f,D){var F=D.XF,Z=f.FF.jj;if(rOu(f))if(f.Bs&&f.Bs.Vj.has(nH(F,Z))){if(Z=nH(F,Z),BWX(f,D)){var I=new HT(f.Bs.Qe(Z)),p=function(z){try{if(z.lO())f.handleError(z.wp(),z.Ke()),q5(D,z),Kh(z.info)&&Tm(f.T,D,F,!0),f.cD();else if(M5(f.T,z)){var H;(H=f.B)==null||gCI(H,z.info,f.D5);f.cD()}}catch(K){z=s_(K),f.handleError(z.errorCode,z.details,z.severity),f.Jl()}}; F.B=!0;oA(I)&&(nE(D,new Is(f.policy,Z,I,f.Bs,p)),FF(f.timing))}}else f.Gx("ombfmt",{})}; lUT=function(f,D){D=D||f.videoTrack&&f.videoTrack.Y&&f.videoTrack.Y.startTime||f.getCurrentTime();var F=f.videoTrack,Z=f.Y;D=Z.nextVideo&&Z.nextVideo.index.Kw(D)||0;Z.zx!==D&&(Z.rY={},Z.zx=D,RI(Z,Z.Y));D=!Z.Y.isLocked()&&Z.Jb>-1&&(0,g.m5)()-Z.JbF&&(f.Gx("sdai",{seg:Z,rbt:F.toFixed(3),end:f.J.Ir.toFixed(3),sd:I.toFixed(3)}),f.iz(!1,"rollback")):f.policy.J&&f.iz(!1,"rollback");if(f.FF.isManifestless){I=zm(f.audioTrack,Z,F,D);var p=zm(f.videoTrack,Z,F,D);f.policy.Fd||(p&&nh(f.FF,Z,!0),I&&nh(f.FF,Z,!1));p&&(f.videoTrack.Jb=[]);I&&(f.audioTrack.Jb=[]);f.Gx("sdai",{rollbk2_seg:Z,rbt:F.toFixed(3),lt:D.toFixed(3),a:I,v:p});(I||p)&&f.policy.J&&hj(f)}}; JOJ=function(f,D){if(!isNaN(f.Uq)){var F=Date.now()-f.Uq;F<1E4&&f.Gx("bfaswtch",{ep:F,sk:D!==void 0?"1":"0",sr:D||""})}}; u9u=function(f){f.policy.Zx=!1;try{f.ll()}catch(D){g.SJ(D)}}; NWu=function(f,D){D=D===void 0?!1:D;f.gY&&f.gY.Y&&f.gY.J&&(f.gY.Y.WW(f.Ps,f),f.gY.J.WW(f.Ps,f));XF(f.audioTrack,null,D);XF(f.videoTrack,null,D);f.gY&&(f.gY.X=!1);f.gY=null}; gud=function(f){f.gY&&f.gY.wS()&&f.NZ()}; xVI=function(f,D){D&&e0d(f.Yo,new k2(D.video,D.reason));f.Y.Ps&&(D=jrc(f.Y,"a"),f.Yo.oM(new k2(D.audio,D.reason)))}; hj=function(f){g.XE(f.AN)}; UV=function(f){f.policy.BI&&f.policy.M0&&Math.min(qnI(f.videoTrack),qnI(f.audioTrack))*1E3>f.policy.qQ?g.XE(f.gw):f.cD()}; XvD=function(f){if(k6J(f.videoTrack))return"ssf";if(f.policy.LQ&&kM(f.videoTrack)&&kM(f.audioTrack))return"updateEnd";if(Hq(f.audioTrack)||Hq(f.videoTrack)&&f.videoTrack.XF.info.qR!=="f")return"";if(f.F6.isSeeking()){var D=f.Jb;var F=f.videoTrack;var Z=f.audioTrack;if(D.policy.Y){var I=D.policy.qA;yA(D.policy)&&(I=DI(D,!1,fy(D)));D=I;F=pR(Z,!0)>=D&&pR(F,!0)>=D}else F.J.length||Z.J.length?(I=F.XF.info.Eq+Z.XF.info.Eq,I=10*(1-fy(D)/I),D=Math.max(I,D.policy.qA),F=pR(Z,!0)>=D&&pR(F,!0)>=D):F=!0;if(!F)return"abr"; F=f.videoTrack;if(F.J.length>0&&F.B.J.length===1&&L0I(F.B).info.S360);if(!f.Yt||F)return"";F=f.policy.FX;yA(f.policy)&&(F=DI(f.Jb,f.Yt,fy(f.Jb)));F=HDu(f.videoTrack,f.getCurrentTime(),F)||HDu(f.audioTrack,f.getCurrentTime(),F);return yA(f.policy)?F?"mbnm":"":(f.videoTrack.J.length>0||f.audioTrack.J.length>0|| dJ(f.T,f.videoTrack,f.audioTrack)||dJ(f.T,f.audioTrack,f.videoTrack))&&F?"nord":""}; fgD=function(f,D,F){if(f.policy.LQ&&kM(D))return!1;if(F.aj())return!0;if(!F.QP())return!1;var Z=jd(D);if(!Z||Z.info.type===6)return!1;var I;if(f.policy.Tn||((I=f.B)==null?0:OhT(I,D,Z.info.Ws)))f.Ir=0;else return f.F6.isSeeking()&&hj(f),f.Ir=f.Ir||(0,g.m5)(),!1;if(!Jj(f,D,F,Z.info))return!1;if(f.FF.J&&Z.info.Y===0){if(F.Qn()==null){I=Od(D);var p;if(!(p=!I||I.XF!==Z.info.XF)){b:if(I=I.N,p=Z.info.N,I.length!==p.length)I=!1;else{for(var z=0;zp)return f.policy.Y&&(D===f.videoTrack?f.jT=f.jT||(0,g.m5)():f.rY=f.rY||(0,g.m5)()),f.policy.UN&&TVu(D.B,p,!1),!1;D===f.videoTrack?f.jT=0:f.rY=0;var H;f.policy.qz&&F===((H=f.gY)==null?void 0:H.Y)&&f.eT&&(F.XI()===0?(f.eT=!1,f.policy.qz=!1):f.JN=F.XI());a:{H=f.policy.m9?(0,g.m5)():0;z=Z.X&&Z.info.XF.Y||void 0;p=Z.J;Z.X&&(p=nus(f,Z,p)||p);var K=yo(p);p=f.policy.m9?(0,g.m5)():0;F=Yzw(f,F,K,Z.info,z);(z=D.N)!=null&&(K=Z.info,H=p-H,p=(0,g.m5)()-p,!z.J||SLX(z.J, K)&&z.J.Ws===K.Ws||z.flush(),z.G+=H,z.B+=p,H=1,!z.J&&K.Y&&(H=2),SH(z,H,F),p=Math.ceil(K.Y/1024),H===2&&z.Y.add(p),z.Y.add(Math.ceil((K.Y+K.J)/1024)-p),z.J=K);f.Tx=0;if(F===0)f.dY&&(f.dY=!1,f.Wk=!1),f.G3=0,F=!0;else{if(F===2||F===5)PCc(f,"checked",F,Z.info);else{if(F===1){if(!f.dY){f.dY=!0;F=!1;break a}if(!f.Wk){f.Wk=!0;f.Yo.seekTo(f.getCurrentTime(),{pF:"quotaExceeded",py:!0});F=!1;break a}Z.info.fK()?(H=f.policy,H.dY=Math.floor(H.dY*.8),H.Tx=Math.floor(H.Tx*.8)):(H=f.policy,H.G3=Math.floor(H.G3* .8),H.Tx=Math.floor(H.Tx*.8));f.policy.Y?iT(f.X.Y,Z.info.XF,!1):CE(f.Y,Z.info.XF)}f.Yo.EU({reattachOnAppend:F})}F=!1}}if(!F)return!1;f.policy.LQ&&Z.info.HV()?(f.Yo.j().Oq()&&f.Gx("eosl",{ls:Z.info.lJ()}),Z.isLocked=!0):(D.oa(Z),k0X(f.Y,Z.info));I&&(D=Z.info.XF.Kk)&&f.Yo.y7(new Bn(D.key,D.type));return!0}; nus=function(f,D,F){var Z;if(Z=f.policy.rG&&f.gY&&!f.gY.N&&!f.Yo.mC())D=D.info.XF.info,Z=D.x_()&&GI(D)&&D.video&&D.video.width<3840&&D.video.width>D.video.height;if(Z&&(f.gY.N=!0,Kx('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return F=BkJ(F),f.policy.B&&f.Gx("sp4k",{s:!!F}),F}; PCc=function(f,D,F,Z){var I="fmt.unplayable",p=1;F===5||F===3?(I="fmt.unparseable",f.policy.Y?!Z.XF.info.video||hE(f.X.Y).size>0||iT(f.X.Y,Z.XF,!1):!Z.XF.info.video||hE(f.Y.X).size>0||CE(f.Y,Z.XF)):F===2&&(f.G3<15?(f.G3++,I="html5.invalidstate",p=0):I="fmt.unplayable");Z=s$(Z);var z;Z.mrs=(z=f.gY)==null?void 0:hJ(z);Z.origin=D;Z.reason=F;Z.trg="appenderr";f.handleError(I,Z,p)}; f4c=function(f,D,F,Z,I){var p=f.FF;var z=f.policy.Y,H=!1,K=-1,k;for(k in p.Y){var h=xY(p.Y[k].info.mimeType)||p.Y[k].info.fK();if(Z===h)if(h=p.Y[k].index,h.pH(D.Ws)){H=h;var y=D,A=H.Iq(y.Ws);A&&A.startTime!==y.startTime?(H.segments=[],H.VR(y),H=!0):H=!1;H?K=D.Ws:!D.pending&&z&&(y=h.getDuration(D.Ws),y!==D.duration&&(p.publish("clienttemp","mfldurUpdate",{itag:p.Y[k].info.itag,seg:D.Ws,od:y,nd:D.duration},!1),h.VR(D),H=!0))}else h.VR(D),H=!0}K>=0&&(z={},p.publish("clienttemp","resetMflIndex",(z[Z? "v":"a"]=K,z),!1));p=H;S6u(f.F6,D,Z,p);f.policy.eT||f.B.NJ(D,F,Z,I);D.Ws===f.FF.Ca&&p&&xC(f.FF)&&D.startTime>xC(f.FF)&&(f.FF.O3=D.startTime+(isNaN(f.timestampOffset)?0:f.timestampOffset),f.F6.isSeeking()&&f.F6.targetTime 5)return f.Tx=0,f.Yo.EU({initSegStuck:1,as:Z.info.lJ()}),!0}else f.Tx=0,f.m9=Z;f.policy.jq&&(F.abort(),(z=D.N)!=null&&(SH(z,4),z.flush()));I=Yzw(f,F,p,K,I);(D=D.N)!=null&&(D.flush(),D.J=K,SH(D,3,I));if(I!==0)return f.policy.hF&&AZ(f.Yo.getVideoData())?(f.Yo.Bo()||PCc(f,"sepInit",I,Z.info),DKX(f.Yo,"sie")):PCc(f,"sepInit",I,Z.info),!0;Z.info.fK()?(K=f.timing,K.rY||(K.rY=(0,g.m5)(),g.GB("vis_a",K.rY,K.Y))):(K=f.timing,K.S||(K.S=(0,g.m5)(),g.GB("ais_a",K.S,K.Y)));(Z=Z.info.XF.Kk)&&f.Yo.y7(new Bn(Z.key, Z.type));return F.S8()}; Yzw=function(f,D,F,Z,I){try{var p,z=D===((p=f.gY)==null?void 0:p.Y)?f.audioTrack:f.videoTrack;if(f.policy.LQ&&(Z==null?0:Z.HV())){if((Z==null?void 0:Z.Jb)>1)return 6;z.Tx=new g.xX(function(){var H=jd(z);f.MR()||H==null||!H.isLocked?f.Yo.j().Oq()&&f.Gx("eosl",{delayA:H==null?void 0:H.info.lJ()}):F$y(z)?(f.Yo.j().Oq()&&f.Gx("eosl",{dunlock:H==null?void 0:H.info.lJ()}),ZaT(f,z===f.audioTrack)):(f.Gx("nue",{ls:H.info.lJ()}),H.info.Jb+=1,f.gY&&f.ll())},1E4,f); f.Yo.j().Oq()&&f.Gx("eosl",{delayS:Z.lJ()});z.Tx.start()}f.policy.dg&&(Z==null?void 0:Z.XF)instanceof jY&&Z.HV()&&f.Gx("poseos",{itag:Z.XF.info.itag,seg:Z.Ws,lseg:Z.XF.index.eU(),es:Z.XF.index.B});D.appendBuffer(F,Z,I)}catch(H){if(H instanceof DOMException){if(H.code===11)return 2;if(H.code===12)return 5;if(H.code===22||H.message.indexOf("Not enough storage")===0)return D=Object.assign({name:"QuotaExceededError",buffered:nx(D.Ew()).replace(/,/g,"_"),vheap:Z7(f.videoTrack),aheap:Z7(f.audioTrack),message:g.ri(H.message, 3),track:f.gY?D===f.gY.J?"v":"a":"u"},Pju()),f.handleError("player.exception",D),1;g.SJ(H)}return 4}return f.gY.wS()?3:0}; kv=function(f,D,F){JOJ(f,F.pF||"unknown");f.Yo.seekTo(D,F)}; qr=function(f,D){if(f.dY&&!f.Yt)return 3;if(f.isSuspended)return 1;var F;if((F=f.gY)==null?0:F.gY&&F.gY.streaming===!1)return 4;F=(D.XF.info.audio?f.policy.G3:f.policy.dY)/(D.Eq*f.policy.EP);if(f.policy.Kh>0&&f.gY&&kP(f.gY)&&(D=D.XF.info.video?f.gY.J:f.gY.Y)&&!D.S8()){D=D.Ew();var Z=YY(D,f.getCurrentTime());Z>=0&&(D=f.getCurrentTime()-D.start(Z),F+=Math.max(0,Math.min(D-f.policy.Kh,f.policy.Mf)))}f.policy.Tx>0&&(F=Math.min(F,f.policy.Tx));return F}; Igs=function(f,D){return(qr(f,D)+f.policy.K$)*D.Eq}; var hDs=function(f){return pf[q[16]](this,64,f)}; zfI=function(f){f.b3&&!f.isSuspended&&CR(f.schedule)&&(pNf(f,f.b3),f.b3="")}; pNf=function(f,D){xq(D,"cms",function(F){f.policy.B&&f.Gx("pathprobe",F)},function(F){f.Yo.handleError(F)})}; sPc=function(f,D){f.D5=D;f.B&&(f.B.D5=D);D=f.D5;var F=f.videoTrack.XF.info.x_();D.qb=F;D.k8({swebm:F});f.T.D5=f.D5;f.policy.J&&(f.J.D5=f.D5,WSd(f))}; Hay=function(f,D){if(f.gY&&f.gY.J){if(f.policy.Z2){var F=iDE(f.audioTrack);if(F&&F.E6()){var Z=f.Yo;if(Z.S0&&(Z.S0.Y=F,F=Z.Lp,F.qoe)){F=F.qoe;Z=Z.S0;var I=g.aZ(F.provider);aUD(F,I,Z)}}}f.policy.FE&&(F=iDE(f.videoTrack))&&F.fK()&&(Z=f.Yo,Z.ym&&(Z.ym.Y=F,F=Z.Lp,F.qoe&&cOJ(F.qoe,Z.ym)));D-=isNaN(f.timestampOffset)?0:f.timestampOffset;f.getCurrentTime()!==D&&f.resume();f.F6.isSeeking()&&f.gY&&!f.gY.wS()&&(Z=f.getCurrentTime()<=D&&D=D&&Gyf(f,Z.startTime,!1)}); return F&&F.startTimef.getCurrentTime())return F.start/1E3;return Infinity}; SWu=function(f){if(f.Yo.getVideoData().isLivePlayback)return!1;var D=f.Yo.ac();if(!D)return!1;D=D.getDuration();if(f.gY&&f.gY.Y&&f.gY.J){var F=f.getCurrentTime(),Z=f.gY.Y.Ew();f=f.gY.J.Ew();Z=Z?fi(Z,F):F;F=f?fi(f,F):F;F=Math.min(Z,F);D=isNaN(F)?!1:F>=D-.01}else D=!1;return D}; tl=function(f){return f.mf0){var Z=F.Y.shift();yAs(F,Z.info)}F.Y.length>0&&(Z=F.Y[0].time-(0,g.m5)(),F.J.start(Math.max(0,Z)))}},0); g.N(this,this.J);D.subscribe("widevine_set_need_key_info",this.G,this)}; yAs=function(f,D){a:{var F=D.cryptoPeriodIndex;if(isNaN(F)&&f.B.size>0)F=!0;else{for(var Z=g.a(f.B.values()),I=Z.next();!I.done;I=Z.next())if(I.value.cryptoPeriodIndex===F){F=!0;break a}F=!1}}f.publish("log_qoe",{wvagt:"reqnews",canskip:F});F||f.publish("rotated_need_key_info_ready",D)}; AAE=function(){var f={};var D=f.url;var F=f.interval;f=f.retries;this.url=D;this.interval=F;this.retries=f}; $Kc=function(f,D){this.statusCode=f;this.message=D;this.B=this.heartbeatParams=this.errorMessage=null;this.J=[];this.Y={};this.nextFairplayKeyId=null}; VGu=function(f){switch(f){case "DRM_TRACK_TYPE_AUDIO":return 1;case "DRM_TRACK_TYPE_SD":return 2;case "DRM_TRACK_TYPE_HD":return 3;case "DRM_TRACK_TYPE_UHD1":return 4;case "DRM_TRACK_TYPE_UHD2":return 5;default:return 0}}; Rfd=function(f,D,F,Z){F=F===void 0?"":F;Z=Z===void 0?!1:Z;g.J.call(this);this.message=f;this.requestNumber=D;this.timer=F;this.J=Z;this.onError=this.onSuccess=null;this.Y=new g.Lg(5E3,2E4,.2)}; dKa=function(f,D,F){f.onSuccess=D;f.onError=F}; C2s=function(f,D,F,Z){var I={timeout:3E4,onSuccess:function(p){if(!f.MR()){Ul("drm_net_r",void 0,f.timer);var z=f.J;z=z===void 0?!1:z;var H=p.status==="LICENSE_STATUS_OK"?0:9999,K=null;if(p.license)try{K=L3(p.license)}catch(m){g.SJ(m)}if(H!==0||K){K=new $Kc(H,K);H!==0&&p.reason&&(K.errorMessage=p.reason);if(p.authorizedFormats){H={};for(var k=[],h={},y=g.a(p.authorizedFormats),A=y.next();!A.done;A=y.next())if(A=A.value,A.trackType&&A.keyId){z&&K.J.push({trackType:VGu(A.trackType),isHdr:!!A.isHdr}); var V=QPE[A.trackType];if(V){V==="HD"&&p.isHd720&&(V="HD720");A.isHdr&&(V+="HDR");H[V]||(k.push(V),H[V]=!0);var R=null;try{R=L3(A.keyId)}catch(m){g.SJ(m)}R&&(h[g.B9(R,4)]=V)}}K.B=k;K.Y=h}p.nextFairplayKeyId&&(K.nextFairplayKeyId=p.nextFairplayKeyId);p.sabrLicenseConstraint&&(K.sabrLicenseConstraint=L3(p.sabrLicenseConstraint));p=K}else p=null;if(p)f.onSuccess(p,f.requestNumber);else f.onError(f,"drm.net","t.p;p.i")}}, onError:function(p){if(!f.MR())if(p&&p.error)p=p.error,f.onError(f,"drm.net.badstatus","t.r;p.i;c."+p.code+";s."+p.status,p.code);else f.onError(f,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){f.onError(f,"drm.net","rt.req."+f.requestNumber)}}; Z&&(I.rj="Bearer "+Z);g.XO(F,"player/get_drm_license",D,I)}; mKD=function(f,D,F,Z){g.zu.call(this);this.videoData=f;this.V=D;this.N=F;this.sessionId=Z;this.X={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.KQ=this.xo=!1;this.B=null;this.zx=[];this.G=[];this.authorizedFormats=[];this.Jb=[];this.S=!1;this.Y={};this.status="";this.T=NaN;this.J=f.X;this.cryptoPeriodIndex=F.cryptoPeriodIndex;f={};Object.assign(f,this.V.Y);f.cpn=this.videoData.clientPlaybackNonce;this.videoData.KQ&&(f.vvt=this.videoData.KQ,this.videoData.mdxEnvironment&&(f.mdx_environment= this.videoData.mdxEnvironment));this.V.zx&&(f.authuser=this.V.zx);this.V.pageId&&(f.pageid=this.V.pageId);isNaN(this.cryptoPeriodIndex)||(f.cpi=this.cryptoPeriodIndex.toString());var I=(I=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.DM()))?I[1]:"";I==="ATV"&&(f.cdt=I);this.X=f;this.X.session_id=Z;this.Bs=!0;this.J.flavor==="widevine"&&(this.X.hdr="1");this.J.flavor==="playready"&&(D=Number(Q5(D.experiments,"playready_first_play_expiration")),!isNaN(D)&&D>=0&&(this.X.mfpe=""+D),this.Bs=!1);D="";g.kS(this.J)? KM(this.J)?(Z=F.J)&&(D="https://www.youtube.com/api/drm/fps?ek="+xfE(Z)):(D=F.initData.subarray(4),D=new Uint16Array(D.buffer,D.byteOffset,D.byteLength/2),D=String.fromCharCode.apply(null,D).replace("skd://","https://")):D=this.J.J;this.baseUrl=D;this.fairplayKeyId=vV(this.baseUrl,"ek")||"";if(D=vV(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(D);this.zx=F.x_?[g.B9(F.initData,4)]:F.B;OF(this,{sessioninit:F.cryptoPeriodIndex});this.status="in"}; tGf=function(f,D){OF(f,{createkeysession:1});f.status="gr";Ul("drm_gk_s",void 0,f.videoData.Jb);f.url=TZX(f);try{f.B=D.createSession(f.N,function(F){OF(f,{m:F})})}catch(F){D="t.g"; F instanceof DOMException&&(D+=";c."+F.code);f.publish("licenseerror","drm.unavailable",1,D,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}f.B&&(baE(f.B,function(F,Z){MGE(f,F,Z)},function(F,Z,I){if(!f.MR()){Z=void 0; var p=1;g.kS(f.J)&&g.ei(f.V)&&f.V.Z("html5_enable_safari_fairplay")&&I===1212433232&&(Z="ERROR_HDCP",p=f.V.Z("html5_safari_fairplay_ignore_hdcp")?0:p);f.error("drm.keyerror",p,F,Z)}},function(){f.MR()||(OF(f,{onkyadd:1}),f.KQ||(f.publish("sessionready"),f.KQ=!0))},function(F){f.kX(F)}),g.N(f,f.B))}; TZX=function(f){var D=f.baseUrl;I1I(D)||f.error("drm.net",2,"t.x");if(!vV(D,"fexp")){var F=["23898307","23914062","23916106","23883098"].filter(function(I){return f.V.experiments.experiments[I]}); F.length>0&&(f.X.fexp=F.join())}F=g.a(Object.keys(f.X));for(var Z=F.next();!Z.done;Z=F.next())Z=Z.value,D=i3D(D,Z,f.X[Z]);return D}; MGE=function(f,D,F){if(!f.MR())if(D){OF(f,{onkmtyp:F});f.status="km";switch(F){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":SyT(f,D);return;default:f.publish("ctmp","message_type",{t:F,l:D.byteLength})}f.xo||(Ul("drm_gk_f",void 0,f.videoData.Jb),f.xo=!0,f.publish("newsession",f));if(qF(f.J)&&(D=cAu(D),!D))return;D=new Rfd(D,++f.requestNumber,f.videoData.Jb,f.V.Z("html5_enable_vp9_fairplay"));dKa(D,function(Z){UKy(f,Z)},function(Z,I,p){if(!f.MR()){var z= 0; Z.Y.J>=3&&(z=1,I="drm.net.retryexhausted");OF(f,{onlcsrqerr:I,info:p});f.error(I,z,p);f.shouldRetry(zI(z),Z)&&vqf(f,Z)}}); g.N(f,D);agc(f,D)}else f.error("drm.unavailable",1,"km.empty")}; SyT=function(f,D){OF(f,{sdpvrq:1});f.T=Date.now();if(f.J.flavor!=="widevine")f.error("drm.provision",1,"e.flavor;f."+f.J.flavor+";l."+D.byteLength);else{var F={cpn:f.videoData.clientPlaybackNonce};Object.assign(F,f.V.Y);F=g.tL("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",F);D={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null,D)}), responseType:"arraybuffer"};g.vR(F,D,3,500).then(q9(function(Z){Z=Z.xhr;if(!f.MR()){Z=new Uint8Array(Z.response);var I=String.fromCharCode.apply(null,Z);try{var p=JSON.parse(I)}catch(z){}p&&p.signedResponse?(f.publish("ctmp","drminfo",{provisioning:1}),p=(Date.now()-f.T)/1E3,f.T=NaN,f.publish("ctmp","provs",{et:p.toFixed(3)}),f.B&&f.B.update(Z)):(p=p&&p.error&&p.error.message,Z="e.parse",p&&(Z+=";m."+p),f.error("drm.provision",1,Z))}}),q9(function(Z){f.MR()||f.error("drm.provision",1,"e."+Z.errorCode+ ";c."+(Z.xhr&&Z.xhr.status))}))}}; nt=function(f){var D;if(D=f.Bs&&f.B!=null)f=f.B,D=!(!f.Y||!f.Y.keyStatuses);return D}; agc=function(f,D){f.status="km";Ul("drm_net_s",void 0,f.videoData.Jb);var F=new g.xh(f.V.J7),Z={context:g.Kl(F.config_||g.oS())};Z.drmSystem=G9J[f.J.flavor];Z.videoId=f.videoData.videoId;Z.cpn=f.videoData.clientPlaybackNonce;Z.sessionId=f.sessionId;Z.licenseRequest=g.B9(D.message);Z.drmParams=f.videoData.drmParams;isNaN(f.cryptoPeriodIndex)||(Z.isKeyRotated=!0,Z.cryptoPeriodIndex=f.cryptoPeriodIndex);var I,p,z=!!((I=f.videoData.J)==null?0:(p=I.video)==null?0:p.isHdr());Z.drmVideoFeature=z?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";f.V.experiments.ww().Y.Kp(wNc)&&(Z.context=g.jK(f.videoData));if(Z.context&&Z.context.client){if(I=f.V.Y)Z.context.client.deviceMake=I.cbrand,Z.context.client.deviceModel=I.cmodel,Z.context.client.browserName=I.cbr,Z.context.client.browserVersion=I.cbrver,Z.context.client.osName=I.cos,Z.context.client.osVersion=I.cosver;f.V.experiments.ww().Y.Kp(wNc)||(Z.context.user=Z.context.user||{},f.videoData.KQ&&(Z.context.user.credentialTransferTokens=[{token:f.videoData.KQ,scope:"VIDEO"}]), f.videoData.eT&&(Z.context.user.kidsParent={oauthToken:f.videoData.eT}));Z.context.request=Z.context.request||{};Z.context.request.mdxEnvironment=f.videoData.mdxEnvironment||Z.context.request.mdxEnvironment;g.kS(f.J)&&(Z.fairplayKeyId=g.B9(XOa(f.fairplayKeyId)));g.y4(f.V,g.Pt(f.videoData)).then(function(H){C2s(D,Z,F,H);f.status="rs"})}else f.error("drm.net",2,"t.r;ic.0")}; UKy=function(f,D){if(!f.MR())if(OF(f,{onlcsrsp:1}),f.status="rr",D.statusCode!==0)f.error("drm.auth",1,"t.f;c."+D.statusCode,D.errorMessage||void 0);else{Ul("drm_kr_s",void 0,f.videoData.Jb);if(D.heartbeatParams&&D.heartbeatParams.url&&f.videoData.Z("outertube_streaming_data_always_use_staging_license_service")){var F=f.J.J.match(/(.*)youtube.com/g);F&&(D.heartbeatParams.url=F[0]+D.heartbeatParams.url)}D.heartbeatParams&&f.publish("newlicense",D.heartbeatParams);D.B&&(f.G=D.B,f.videoData.Tg||f.publish("newlicense", new AAE),f.videoData.Tg=!0,f.S=PV(f.G,function(Z){return Z.includes("HDR")})); D.J&&(f.Jb=D.J);D.Y&&(f.V.Z("html5_enable_vp9_fairplay")&&KM(f.J)?(F=g.B9(XOa(f.fairplayKeyId),4),f.Y[F]={type:D.Y[F],status:"unknown"}):f.Y=Vg(D.Y,function(Z){return{type:Z,status:"unknown"}})); or(f.J)&&(D.message=blD(g.B9(D.message)));f.B&&(OF(f,{updtks:1}),f.status="ku",f.B.update(D.message).then(function(){Ul("drm_kr_f",void 0,f.videoData.Jb);nt(f)||(OF(f,{ksApiUnsup:1}),f.publish("keystatuseschange",f))},function(Z){Z="msuf.req."+f.requestNumber+";msg."+g.ri(Z.message,3); f.error("drm.keyerror",1,Z)})); g.kS(f.J)&&f.publish("fairplay_next_need_key_info",f.baseUrl,D.nextFairplayKeyId);f.V.Z("html5_enable_vp9_fairplay")&&KM(f.J)&&f.publish("qualitychange",W$X(f.G));D.sabrLicenseConstraint&&f.publish("sabrlicenseconstraint",D.sabrLicenseConstraint)}}; vqf=function(f,D){var F=D.Y.getValue();F=new g.xX(function(){agc(f,D)},F); g.N(f,F);F.start();g.lJ(D.Y);OF(f,{rtyrq:1})}; BZu=function(f,D){for(var F=[],Z=g.a(Object.keys(f.Y)),I=Z.next();!I.done;I=Z.next())I=I.value,F.push(I+"_"+f.Y[I].type+"_"+f.Y[I].status);return F.join(D)}; rAa=function(f){var D={};D[f.status]=nt(f)?BZu(f,"."):f.G.join(".");return D}; L$c=function(f,D,F){var Z={};Z.isHdr=D.includes("HDR");switch(D.replace("HDR","").replace("720","")){case "AUDIO":Z.trackType=1;break;case "SD":Z.trackType=2;break;case "HD":Z.trackType=3;break;case "UHD1":Z.trackType=4;break;case "UHD2":Z.trackType=5;break;default:Z.trackType=0}!Z.trackType||F[D]||nt(f)&&!Yi(f,D)||(f.authorizedFormats.push(Z),F[D]=!0)}; Yi=function(f,D){for(var F in f.Y)if(f.Y[F].status==="usable"&&f.Y[F].type===D)return!0;return!1}; lga=function(f,D){for(var F in f.Y)if(f.Y[F].type===D)return f.Y[F].status}; OF=function(f,D){var F=F===void 0?!1:F;Ip(D);(F||f.V.Oq())&&f.publish("ctmp","drmlog",D)}; Equ=function(f){var D=f[0];f[0]=f[3];f[3]=D;D=f[1];f[1]=f[2];f[2]=D;D=f[4];f[4]=f[5];f[5]=D;D=f[6];f[6]=f[7];f[7]=D}; W$X=function(f){return g.e0(f,"UHD2")||g.e0(f,"UHD2HDR")?"highres":g.e0(f,"UHD1")||g.e0(f,"UHD1HDR")?"hd2160":g.e0(f,"HD")||g.e0(f,"HDHDR")?"hd1080":g.e0(f,"HD720")||g.e0(f,"HD720HDR")?"hd720":"large"}; cAu=function(f){for(var D="",F=0;F'.charCodeAt(Z);f=f.B.createSession("video/mp4",D,F);return new PQ(null,null,null,null,f)}; Oaf=function(f,D){var F=f.T[D.sessionId];!F&&f.G&&(F=f.G,f.G=null,F.sessionId=D.sessionId,f.T[D.sessionId]=F);return F}; efI=function(f,D){var F=f.subarray(4);F=new Uint16Array(F.buffer,F.byteOffset,F.byteLength/2);F=String.fromCharCode.apply(null,F).match(/ek=([0-9a-f]+)/)[1];for(var Z="",I=0;I19.2999?(f=F.Nn,F=F.FL, F>=f&&(F=f*.75),D=(f-F)*.5,F=new xi(D,f,f-D-F,this)):F=null;break a;case "widevine":F=new X_(D,this,f);break a;default:F=null}if(this.X=F)g.N(this,this.X),this.X.subscribe("rotated_need_key_info_ready",this.Zc,this),this.X.subscribe("log_qoe",this.us,this);il(this.V.experiments);this.us({cks:this.Y.getInfo()})}; Yyw=function(f){var D=gqD(f.G,f.mediaElement);D?D.then(q9(function(){fIf(f)}),q9(function(F){if(!f.MR()){g.SJ(F); var Z="t.a";F instanceof DOMException&&(Z+=";n."+F.name+";m."+F.message);f.publish("licenseerror","drm.unavailable",1,Z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(f.us({mdkrdy:1}),f.Jb=!0); f.Bs&&(D=gqD(f.Bs,f.mediaElement))}; Ffd=function(f,D,F){f.jT=!0;F=new Bn(D,F);f.V.Z("html5_eme_loader_sync")&&(f.T.get(D)||f.T.set(D,F));DrD(f,F)}; DrD=function(f,D){if(!f.MR()){f.us({onInitData:1});if(f.V.Z("html5_eme_loader_sync")&&f.videoData.B&&f.videoData.B.Y){var F=f.S.get(D.initData);D=f.T.get(D.initData);if(!F||!D)return;D=F;F=D.initData;f.T.remove(F);f.S.remove(F)}f.us({initd:D.initData.length,ct:D.contentType});if(f.Y.flavor==="widevine")if(f.Tx&&!f.videoData.isLivePlayback)Fp(f);else{if(!(f.V.Z("vp9_drm_live")&&f.videoData.isLivePlayback&&D.x_)){f.Tx=!0;F=D.cryptoPeriodIndex;var Z=D.Y;vSf(D);D.x_||(Z&&D.Y!==Z?f.publish("ctmp","cpsmm", {emsg:Z,pssh:D.Y}):F&&D.cryptoPeriodIndex!==F&&f.publish("ctmp","cpimm",{emsg:F,pssh:D.cryptoPeriodIndex}));f.publish("widevine_set_need_key_info",D)}}else f.Zc(D)}}; fIf=function(f){if(!f.MR())if(f.V.Z("html5_drm_set_server_cert")||KM(f.Y)){var D=f.G.setServerCertificate();D?D.then(q9(function(F){f.V.Oq()&&f.publish("ctmp","ssc",{success:F})}),q9(function(F){f.publish("ctmp","ssce",{n:F.name, m:F.message})})).then(q9(function(){ZyE(f)})):ZyE(f)}else ZyE(f)}; ZyE=function(f){f.MR()||(f.Jb=!0,f.us({onmdkrdy:1}),Fp(f))}; IIa=function(f){return f.Y.flavor==="widevine"&&f.videoData.Z("html5_drm_cpi_license_key")}; Fp=function(f){if(f.jT&&f.Jb&&!f.zx){for(;f.B.length;){var D=f.B[0],F=IIa(f)?aff(D):g.B9(D.initData);if(KM(f.Y)&&!D.J)f.B.shift();else{if(f.J.get(F))if(f.Y.flavor!=="fairplay"||KM(f.Y)){f.B.shift();continue}else f.J.delete(F);vSf(D);break}}f.B.length&&f.createSession(f.B[0])}}; psT=function(f){var D,F;g.l(function(Z){if(Z.Y==1){var I;if(I=g.xo()){var p;I=!((p=f.G.J)==null||!p.getMetrics)}return I?g.r(Z,f.G.getMetrics(),2):Z.return()}D=Z.J;if(!D)return Z.return();qm(D)||(D=g.Qo(D));F=/^[A-Za-z0-9_-]+={0,3}$/;F.test(D)||(D=g.ri(D,void 0,!0));f.publish("ctmp","drm",{metrics:D});g.Zb(Z)})}; ZL=function(){var f=j5w();return!(!f||f==="visible")}; ssd=function(f){var D=zJa();D&&document.addEventListener(D,f,!1)}; qSJ=function(f){var D=zJa();D&&document.removeEventListener(D,f,!1)}; zJa=function(){if(document.visibilityState)var f="visibilitychange";else{if(!document[AX+"VisibilityState"])return"";f=AX+"visibilitychange"}return f}; ovf=function(f){Hyu=f}; kTa=function(f){KfD=f}; jsD=function(f){g.J.call(this);var D=this;this.Yo=f;this.FA=0;this.T=this.J=this.X=!1;this.G=0;this.Uy=this.Yo.j();this.videoData=this.Yo.getVideoData();this.B=g.Pf(this.Uy.experiments,"html5_delayed_retry_count");this.Y=new g.xX(function(){D.Yo.Qa()},g.Pf(this.Uy.experiments,"html5_delayed_retry_delay_ms")); g.N(this,this.Y)}; $rD=function(f,D,F){var Z=f.videoData.J,I=f.videoData.G,p=f.Uy.Z("html5_disable_codec_fallback_for_drm")&&f.videoData.S$();AZ(f.Yo.getVideoData())&&f.Uy.Z("html5_gapless_fallback_on_qoe_restart")&&DKX(f.Yo,"pe");if((D==="progressive.net.retryexhausted"||D==="fmt.unplayable"||D==="fmt.decode")&&!f.Yo.Tv.X&&Z&&Z.itag==="22")return f.Yo.Tv.X=!0,f.xn("qoe.restart",{reason:"fmt.unplayable.22"}),f.Yo.Is(),!0;var z=!1;if(f.videoData.isExternallyHostedPodcast){if(z=f.videoData.kp)F.mimeType=z.type,f.Gx("3pp", {url:z.url});F.ns="3pp";f.Yo.b4(D,1,"VIDEO_UNAVAILABLE",Ip((new g.px(D,F,1)).details));return!0}var H=f.FA+3E4<(0,g.m5)()||f.Y.isActive();if(f.Uy.Z("html5_empty_src")&&f.videoData.isAd()&&D==="fmt.unplayable"&&/Empty src/.test(""+F.msg))return F.origin="emptysrc",f.xn("auth",F),!0;H||iyw(f.Yo.EG())||(F.nonfg="paused",H=!0,f.Yo.pauseVideo());(D==="fmt.decode"||D==="fmt.unplayable")&&(I==null?0:rj(I))&&(AJI(f.Uy.X,I.qR),F.acfallexp=I.qR,z=H=!0);!H&&f.B>0&&(f.Y.start(),H=!0,F.delayed="1",--f.B);I=f.Yo.loader; H||!((Z==null?0:Bi(Z))||(Z==null?0:GI(Z)))||p||(AJI(f.Uy.X,Z.qR),z=H=!0,F.cfallexp=Z.qR);if(!H)return hJf(f,F);p=!1;f.X?f.FA=(0,g.m5)():p=f.X=!0;H=f.videoData;if(H.Tx){H=H.Tx.Sr();var K=Date.now()/1E3+1800;H=H3E5&&D.Z5>=3:!D.schedule.jT}return f.videoData.N?f.videoData.Ps<25:!f.videoData.Ps}; A1s=function(f){if(!f.J){f.J=!0;var D=f.Yo.getPlayerState();D=D.isPaused()||D.isSuspended();f.Yo.Kc();D&&!F9(f.videoData)||f.Yo.publish("signatureexpired")}}; Vdf=function(f,D){if((f=f.Yo.ac())&&(D.errorCode==="fmt.unplayable"||D.errorCode==="html5.invalidstate")){var F=f.wp();D.details.merr=F?F.toString():"0";D.details.mmsg=f.rp()}}; RJd=function(f){return f.errorCode==="net.badstatus"&&(f.severity===1||!!f.details.fmt_unav)}; drD=function(f,D){return f.Uy.Z("html5_use_network_error_code_enums")&&D.details.rc===403||D.details.rc==="403"?(f=D.errorCode,f==="net.badstatus"||f==="manifest.net.retryexhausted"):!1}; C6u=function(f,D){if(!drD(f,D)&&!f.J)return!1;D.details.sts="20432";if(y1u(f))return zI(D.severity)&&(D=Object.assign({e:D.errorCode},D.details),D=new g.px("qoe.restart",D)),f.xn(D.errorCode,D.details),A1s(f),!0;(0,g.m5)()-f.Uy.B_>6048E5&&QsE(f,"signature");return!1}; QsE=function(f,D){try{D={detail:"pr."+D},(pD(f.Uy)||V5(f.Uy)==="TVHTML5_FOR_KIDS")&&f.Uy.Z("html5_reload_by_kabuki_app")?f.Yo.b4("qoe.restart",1,void 0,Ip(D),"7"):(f.xn("qoe.restart",D),window.location.reload())}catch(F){}}; mrX=function(f,D){var F=f.Uy.X;F.T=!1;F.Y=!0;f.xn("qoe.restart",{e:D===void 0?"fmt.noneavailable":D,detail:"hdr"});f.Yo.Qa(!0)}; T2T=function(f,D,F,Z,I,p){this.videoData=f;this.Y=D;this.reason=F;this.J=Z;this.token=I;this.videoId=p}; IM=function(f,D,F,Z){this.V=f;this.YQ=D;this.Yo=F;this.lE=Z;this.N=this.T=this.Y=this.G=this.S=this.J=0;this.X=!1;this.Jb=g.Pf(this.V.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.B=new Map}; byD=function(f,D,F){!f.V.Z("html5_tv_ignore_capable_constraint")&&g.hm(f.V)&&(F=F.compose(f.aZ(D)));return F}; MdX=function(f){if(f.Yo.EG().isInline())return Io;f=L5[TN()];return g.Wh("auto",f,!1,"s")}; SSu=function(f,D){var F,Z=tdX(f,(F=D.Y)==null?void 0:F.videoInfos);F=f.Yo.getPlaybackRate();return F>1&&Z?(f=jKs(f.V.X,D.Y.videoInfos,F),new ws(0,f,!0,"o")):new ws(0,0,!1,"o")}; tdX=function(f,D){return D&&g.hm(f.V)?D.some(function(F){return F.video.fps>32}):!1}; c1d=function(f,D){if(f.Z("html5_disable_ustreamer_constraint_for_sabr")&&G6(D.videoData))return Io;var F=f.Yo.iA();f.Z("html5_use_video_quality_cap_for_ustreamer_constraint")&&F&&F.MP>0&&rs(D.videoData.fH)&&(f=F.MP,D.videoData.fH=new ws(0,f,!1,"u"));return D.videoData.fH}; UrJ=function(f,D){var F;a:if((F=D.Y)&&F.videoInfos.length){for(var Z=g.a(F.videoInfos),I=Z.next();!I.done;I=Z.next()){I=I.value;var p=void 0;if((p=I.J)==null?0:p.smooth){F=I.video.qualityOrdinal;break a}}F=F.videoInfos[0].video.qualityOrdinal}else F=0;(g.go("armv7")||g.go("aarch64")||g.go("android"))&&!g.hm(f.V)&&GI(D.Y.videoInfos[0])&&(F=Math.min(F,g.t9.large));Z=g.Pf(f.V.experiments,"html5_chipset_soft_cap");Z>0&&(F=Math.min(F,Z));Z=g.Pf(f.V.experiments,"html5_sabr_non_streaming_xhr_soft_cap"); !Ik&&Z>0&&(F=Math.min(F,Z));if(Z=g.Pf(f.V.experiments,"html5_max_vertical_resolution")){I=4320;for(p=0;pZ&&(I=Math.min(I,z.video.qualityOrdinal))}if(I<4320){for(z=p=0;z32){I=!0;break a}}I=!1}I&&(F=Math.min(F,Z));(Z=g.Pf(f.V.experiments,"html5_live_quality_cap"))&&D.videoData.isLivePlayback&&(F=Math.min(F,Z));F=vvI(f,D,F);f=g.Pf(f.V.experiments,"html5_byterate_soft_cap");return new ws(0,F===4320?0:F,!1,"d",f)}; GTE=function(f){var D,F,Z,I;return g.l(function(p){switch(p.Y){case 1:return f.Y.Y&&typeof((D=navigator.mediaCapabilities)==null?void 0:D.decodingInfo)==="function"?g.r(p,Promise.resolve(),2):p.return(Promise.resolve());case 2:F=g.a(f.Y.videoInfos),Z=F.next();case 3:if(Z.done){p.ZE(0);break}I=Z.value;return g.r(p,kLd(I),4);case 4:Z=F.next(),p.ZE(3)}})}; B2X=function(f,D,F,Z){if(!D||!F||!D.videoData.J)return!1;var I=g.Pf(f.V.experiments,"html5_df_downgrade_thresh"),p=f.Z("html5_log_media_perf_info");if(!((0,g.m5)()-f.G<5E3?0:p||I>0))return!1;var z=((0,g.m5)()-f.G)/1E3;f.G=(0,g.m5)();F=F.getVideoPlaybackQuality();if(!F)return!1;var H=F.droppedVideoFrames-f.T,K=F.totalVideoFrames-f.N;f.T=F.droppedVideoFrames;f.N=F.totalVideoFrames;var k=F.displayCompositedVideoFrames===0?0:F.displayCompositedVideoFrames||-1;p&&f.V.Oq()&&f.Yo.Gx("ddf",{dr:F.droppedVideoFrames, de:F.totalVideoFrames,comp:k});if(Z)return f.Y=0,!1;if((K-H)/z>f.Jb||!I||g.hm(f.V))return!1;f.Y=(K>60?H/K:0)>I?f.Y+1:0;if(f.Y!==3)return!1;wsI(f,D.videoData.J);f.Yo.Gx("dfd",Object.assign({dr:F.droppedVideoFrames,de:F.totalVideoFrames},WfE()));return!0}; wsI=function(f,D){var F=D.qR,Z=D.video.fps,I=D.video.qualityOrdinal-1,p=f.B;D=""+F+(Z>49?"p60":Z>32?"p48":"");F=Zf(F,Z,p);I>0&&(F=Math.min(F,I));if(!pV.has(D)&&t4().includes(D)){var z=F;F=M9();+F[D]>0&&(z=Math.min(+F[D],z));F[D]!==z&&(F[D]=z,g.w0("yt-player-performance-cap",F,2592E3))}else if(pV.has(D)||p==null){a:{z=z===void 0?!0:z;Z=t4().slice();if(z){if(Z.includes(D))break a;Z.push(D)}else{if(!Z.includes(D))break a;Z.splice(Z.indexOf(D),1)}g.w0("yt-player-performance-cap-active-set",Z,2592E3)}F1.set(D, F)}else pV.add(D),p==null||p.set(D,F);f.Yo.S7()}; r1T=function(f,D){if(!D.Y.Y)return f.X?new ws(0,360,!1,"b"):Io;for(var F=!1,Z=!1,I=g.a(D.Y.videoInfos),p=I.next();!p.done;p=I.next())Bi(p.value)?F=!0:Z=!0;F=F&&Z;Z=0;I=g.Pf(f.V.experiments,"html5_performance_cap_floor");I=f.V.J?240:I;D=g.a(D.Y.videoInfos);for(p=D.next();!p.done;p=D.next()){var z=p.value;if(!F||!Bi(z))if(p=Zf(z.qR,z.video.fps,f.B),z=z.video.qualityOrdinal,Math.max(p,I)>=z){Z=z;break}}return new ws(0,Z,!1,"b")}; Lfy=function(f,D){var F=f.Yo.EG();return F.isInline()&&!D.B7?new ws(0,480,!1,"v"):G6(D)?Io:F.isBackground()&&Ve()/1E3>60&&!g.hm(f.V)?new ws(0,360,!1,"v"):Io}; lIa=function(f,D,F){if(f.V.experiments.Hs("html5_disable_client_autonav_cap_for_onesie")&&D.fetchType==="onesie"||g.hm(f.V)&&(TN(-1)>=1080||D.osid))return Io;var Z=g.Pf(f.V.experiments,"html5_autonav_quality_cap"),I=g.Pf(f.V.experiments,"html5_autonav_cap_idle_secs");return Z&&D.isAutonav&&Ve()/1E3>I?(F&&(Z=vvI(f,F,Z)),new ws(0,Z,!1,"e")):Io}; vvI=function(f,D,F){if(f.Z("html5_optimality_defaults_chooses_next_higher")&&F)for(f=D.Y.videoInfos,D=1;D=0||(f.provider.Yo.getVisibilityState()===3?f.X=!0:(f.Y=g.aZ(f.provider),f.delay.start()))}; uQu=function(f){if(!(f.J<0)){var D=g.aZ(f.provider),F=D-f.G;f.G=D;f.playerState.state===8?f.playTimeSecs+=F:f.playerState.isBuffering()&&!g.O(f.playerState,16)&&(f.rebufferTimeSecs+=F)}}; N2E=function(f){var D;switch((D=f.V.playerCanaryStage)==null?void 0:D.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";case "xlarge":return"HTML5_PLAYER_CANARY_STAGE_XLARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; gvJ=function(f){var D=this;this.provider=f;this.N=!1;this.J=0;this.G=-1;this.S2=NaN;this.B=0;this.segments=[];this.S=this.T=0;this.previouslyEnded=!1;this.X=0;this.serializedStitchedClipLoggingMetadata=this.serializedPlaybackPingContextLoggingData=void 0;this.ej={KNQ:function(){return D.serializedPlaybackPingContextLoggingData}, nmF:function(){return D.serializedStitchedClipLoggingMetadata}}; this.Bs=this.provider.Yo.getVolume();this.Jb=this.provider.Yo.isMuted()?1:0;this.Y=sH(this.provider)}; qD=function(f){f.Y.startTime=f.B;f.Y.endTime=f.J;var D;if((D=f.serializedPlaybackPingContextLoggingData)==null?0:D.length)f.Y.serializedPlaybackPingContextLoggingData=f.serializedPlaybackPingContextLoggingData;var F;if((F=f.serializedStitchedClipLoggingMetadata)==null?0:F.length)f.Y.serializedStitchedClipLoggingMetadata=f.serializedStitchedClipLoggingMetadata;D=!1;f.segments.length&&g.Jv(f.segments).isEmpty()?(f.segments[f.segments.length-1].previouslyEnded&&(f.Y.previouslyEnded=!0),f.segments[f.segments.length- 1]=f.Y,D=!0):f.segments.length&&f.Y.isEmpty()||(f.segments.push(f.Y),D=!0);D?f.Y.endTime===0&&(f.previouslyEnded=!1):f.Y.previouslyEnded&&(f.previouslyEnded=!0);f.T+=f.J-f.B;f.Y=sH(f.provider);f.Y.previouslyEnded=f.previouslyEnded;f.provider.V.ww().Y.Kp(eJu)&&(f.X+=JSON.stringify(f.Y).length);f.previouslyEnded=!1;f.B=f.J}; Xsw=function(f){xrf(f);f.S=g.$o(function(){f.update()},100); f.S2=g.aZ(f.provider);f.Y=sH(f.provider)}; xrf=function(f){g.Rg(f.S);f.S=NaN}; OyD=function(f,D,F){F-=f.S2;return D===f.J&&F>.5}; nvc=function(f,D,F,Z){this.V=D;this.AN=F;this.segments=[];this.experimentIds=[];this.LQ=this.gw=this.isFinal=this.delayThresholdMet=this.Z5=this.Xt=this.autoplay=this.autonav=!1;this.m9="yt";this.T=[];this.S=this.Jb=null;this.sendVisitorIdHeader=this.b3=!1;this.N=this.pageId="";this.OI=!1;this.X=F==="watchtime";this.B=F==="playback";this.zx=F==="atr";this.Dp=F==="engage";this.sendVisitorIdHeader=!1;this.uri=this.zx?"/api/stats/"+F:"//"+D.lC+"/api/stats/"+F;Z&&(this.gw=Z.fs,Z.rtn&&(this.S=Z.rtn),this.X? (this.playerState=Z.state,Z.rti>0&&(this.Jb=Z.rti)):(this.JS=Z.mos,this.Tm=Z.volume,Z.at&&(this.adType=Z.at)),Z.autonav&&(this.autonav=Z.autonav),Z.inview!=null&&(this.BI=Z.inview),Z.size&&(this.qb=Z.size),Z.playerwidth&&(this.HD=Z.playerwidth),Z.playerheight&&(this.qz=Z.playerheight));this.Gi=g.UQ(D.Y);this.N=Q5(D.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Wk=g.UQ(D.Z5);this.Y_=D.JS;this.experimentIds=HiJ(D.experiments);this.Ps=D.OI;this.m9=D.Bs;this.region= D.region;this.userAge=D.userAge;this.JN=D.gM;this.vI=Ve();this.sendVisitorIdHeader=D.sendVisitorIdHeader;this.Tx=D.Z("vss_pings_using_networkless")||D.Z("kevlar_woffle");this.B_=D.Z("vss_final_ping_send_and_write");this.rY=D.Z("vss_use_send_and_write");this.pageId=D.pageId;this.Gm=D.Z("vss_playback_use_send_and_write");D.livingRoomAppMode&&(this.livingRoomAppMode=D.livingRoomAppMode);g.LM(D)&&(this.jT=D.Tx);g.jM(g.X1(D))&&this.T.push(1);this.accessToken=g.Pt(f);f.Nq[this.AN]?this.G=f.Nq[this.AN]: f.Nq.playback&&(this.G=f.Nq.playback);this.adFormat=f.adFormat;this.adQueryId=f.adQueryId;this.autoplay=cSc(f);this.B&&(this.Xt=f.HC&&X2(f)==="adunit"?!0:!1);this.autonav=f.isAutonav||this.autonav;this.contentVideoId=nT(f);this.clientPlaybackNonce=f.clientPlaybackNonce;this.Z5=f.Yn;f.T&&(this.KQ=f.T,this.Uq=f.Ht);f.mdxEnvironment&&(this.mdxEnvironment=f.mdxEnvironment);this.Y=f.Wk;this.vr=f.vr;f.J&&(this.K4=f.J.itag,f.G&&f.G.itag!==this.K4&&(this.G3=f.G.itag));f.Y&&u9(f.Y)&&(this.offlineDownloadUserChoice= "1");this.eventLabel=X2(f);this.LQ=f.qb?!1:f.BI;this.Zx=f.QY;if(D=wf(f))this.KK=D;this.Fd=f.mz;this.partnerId=f.partnerId;this.eventId=f.eventId;this.playlistId=f.tG||f.playlistId;this.rK=f.rK;this.IN=f.IN;this.YR=f.YR;this.u9=f.u9;this.subscribed=f.subscribed;this.videoId=f.videoId;this.videoMetadata=f.videoMetadata;this.visitorData=f.visitorData;this.osid=f.osid;this.s7=f.s7;this.referrer=f.referrer;this.bj=f.AG||f.bj;this.eT=f.TK;this.dI=f.dI;this.userGenderAge=f.userGenderAge;this.KX=f.KX;this.embedsRct= f.embedsRct;this.embedsRctn=f.embedsRctn;g.LM(this.V)&&f.mutedAutoplay&&(f.mutedAutoplayDurationMode===2&&f.limitedPlaybackDurationInSeconds===0&&f.endSeconds===0?this.T.push(7):this.T.push(2));f.isEmbedsShortsMode(new g.IG(this.HD,this.qz),!!this.playlistId)&&this.T.push(3);g.ok(f)&&this.T.push(4);this.dY=f.Gn;f.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=f.compositeLiveIngestionOffsetToken);f=f.getPlayerResponse();var I,p;this.OI=this.V.Z("html5_switch_vss_to_post")|| !!(f==null?0:(I=f.playerConfig)==null?0:(p=I.vssClientConfig)==null?0:p.vssUsePostRequest)}; YSa=function(f,D){var F=f.sendVisitorIdHeader?f.visitorData:void 0;return g.y4(f.V,f.accessToken).then(function(Z){return mh(f.uri,f.V,f.pageId,F,Z,D)})}; DRD=function(f,D){return function(){f.V.Z("html5_simplify_pings")?(f.Y=f.Ir,f.WI=D(),f.vI=0,f.send()):YSa(f).then(function(F){var Z=P6E(f);Z.cmt=Z.len;Z.lact="0";var I=D().toFixed(3);Z.rt=Number(I).toString();Z=g.tL(f.uri,Z);f.V.Z("vss_through_gel_double")&&fCJ(Z);f.Tx?(F==null&&(F={}),f.rY?gz().sendAndWrite(Z,F):gz().sendThenWrite(Z,F)):F?g.tW(Z,F):g.WH(Z)})}}; P6E=function(f){var D={ns:f.m9,el:f.eventLabel,cpn:f.clientPlaybackNonce,ver:2,cmt:f.J(f.Y),fmt:f.K4,fs:f.gw?"1":"0",rt:f.J(f.WI),adformat:f.adFormat,content_v:f.contentVideoId,euri:f.Y_,lact:f.vI,live:f.KK,cl:(842839980).toString(),mos:f.JS,state:f.playerState,volume:f.Tm};f.subscribed&&(D.subscribed="1");Object.assign(D,f.Gi);f.N==="all"?Object.assign(D,f.Wk):f.N==="once"&&f.B&&Object.assign(D,f.Wk);f.autoplay&&(D.autoplay="1");f.Xt&&(D.sautoplay="1");f.Z5&&(D.dni="1");!f.X&&f.jT&&(D.epm=Ftu[f.jT]); f.isFinal&&(D["final"]="1");f.LQ&&(D.splay="1");f.vr&&(D.delay=f.vr);f.Ps&&(D.hl=f.Ps);f.region&&(D.cr=f.region);f.userGenderAge&&(D.uga=f.userGenderAge);f.userAge!==void 0&&f.JN&&(D.uga=f.JN+f.userAge);f.Ir!==void 0&&(D.len=f.J(f.Ir));!f.X&&f.experimentIds.length>0&&(D.fexp=f.experimentIds.toString());f.S!==null&&(D.rtn=f.J(f.S));f.bj&&(D.feature=f.bj);f.IN&&(D.ctrl=f.IN);f.YR&&(D.ytr=f.YR);f.G3&&(D.afmt=f.G3);f.offlineDownloadUserChoice&&(D.ODUC=f.offlineDownloadUserChoice);f.Bs&&(D.lio=f.J(f.Bs)); f.X?(D.idpj=f.Zx,D.ldpj=f.Fd,f.delayThresholdMet&&(D.dtm="1"),f.Jb!=null&&(D.rti=f.J(f.Jb)),f.KX&&(D.ald=f.KX),f.compositeLiveIngestionOffsetToken&&(D.clio=f.compositeLiveIngestionOffsetToken)):f.adType!==void 0&&(D.at=f.adType);f.qb&&(f.B||f.X)&&(D.size=f.qb);f.B&&f.T.length&&(D.pbstyle=f.T.join(","));f.BI!=null&&(f.B||f.X)&&(D.inview=f.J(f.BI));f.X&&(D.volume=Hp(f,g.M2(f.segments,function(Z){return Z.volume})),D.st=Hp(f,g.M2(f.segments,function(Z){return Z.startTime})),D.et=Hp(f,g.M2(f.segments, function(Z){return Z.endTime})),PV(f.segments,function(Z){return Z.playbackRate!==1})&&(D.rate=Hp(f,g.M2(f.segments,function(Z){return Z.playbackRate}))),PV(f.segments,function(Z){return Z.Y!=="-"})&&(D.als=g.M2(f.segments,function(Z){return Z.Y}).join(",")),PV(f.segments,function(Z){return Z.previouslyEnded})&&(D.pe=g.M2(f.segments,function(Z){return""+ +Z.previouslyEnded}).join(","))); D.muted=Hp(f,g.M2(f.segments,function(Z){return Z.muted?1:0})); PV(f.segments,function(Z){return Z.visibilityState!==0})&&(D.vis=Hp(f,g.M2(f.segments,function(Z){return Z.visibilityState}))); PV(f.segments,function(Z){return Z.connectionType!==0})&&(D.conn=Hp(f,g.M2(f.segments,function(Z){return Z.connectionType}))); PV(f.segments,function(Z){return Z.J!==0})&&(D.blo=Hp(f,g.M2(f.segments,function(Z){return Z.J}))); PV(f.segments,function(Z){return!!Z.G})&&(D.blo=g.M2(f.segments,function(Z){return Z.G}).join(",")); PV(f.segments,function(Z){return!!Z.compositeLiveStatusToken})&&(D.cbs=g.M2(f.segments,function(Z){return Z.compositeLiveStatusToken}).join(",")); PV(f.segments,function(Z){return!!Z.heartbeatLoggingToken})&&(D.hb_data=g.M2(f.segments,function(Z){return Z.heartbeatLoggingToken}).join(",")); PV(f.segments,function(Z){return Z.B!=="-"})&&(D.cc=g.M2(f.segments,function(Z){return Z.B}).join(",")); PV(f.segments,function(Z){return Z.clipId!=="-"})&&(D.clipid=g.M2(f.segments,function(Z){return Z.clipId}).join(",")); if(PV(f.segments,function(Z){return!!Z.audioId})){var F="au"; f.B&&(F="au_d");D[F]=g.M2(f.segments,function(Z){return Z.audioId}).join(",")}og()&&f.KQ&&(D.ctt=f.KQ,D.cttype=f.Uq,D.mdx_environment=f.mdxEnvironment); f.Dp&&(D.etype=f.xo!==void 0?f.xo:0);f.eT&&(D.uoo=f.eT);f.livingRoomAppMode&&f.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(D.clram=ZEs[f.livingRoomAppMode]||f.livingRoomAppMode);f.G?ICu(f,D):(D.docid=f.videoId,D.referrer=f.referrer,D.ei=f.eventId,D.of=f.s7,D.osid=f.osid,D.vm=f.videoMetadata,f.adQueryId&&(D.aqi=f.adQueryId),f.autonav&&(D.autonav="1"),f.playlistId&&(D.list=f.playlistId),f.u9&&(D.ssrt="1"),f.dI&&(D.upt=f.dI));f.B&&(f.embedsRct&&(D.rct=f.embedsRct),f.embedsRctn&&(D.rctn= f.embedsRctn),f.compositeLiveIngestionOffsetToken&&(D.clio=f.compositeLiveIngestionOffsetToken));f.dY&&(D.host_cpn=f.dY);return D}; ICu=function(f,D){if(D&&f.G){var F=new Set(["q","feature","mos"]),Z=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),I=new Set(["aqi","autonav","list","ssrt","upt"]);f.G.ns==="3pp"&&(D.ns="3pp");for(var p=g.a(Object.keys(f.G)),z=p.next();!z.done;z=p.next())z=z.value,Z.has(z)||F.has(z)||I.has(z)&&!f.G[z]||(D[z]=f.G[z])}}; Hp=function(f,D){return g.M2(D,f.J).join(",")}; fCJ=function(f){f.indexOf("watchtime")!==-1&&g.ha("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:f}})}; pny=function(f,D){f.attestationResponse&&YSa(f).then(function(F){F=F||{};F.method="POST";F.postParams={atr:f.attestationResponse};f.Tx?f.rY?gz().sendAndWrite(D,F):gz().sendThenWrite(D,F):g.tW(D,F)})}; zpI=function(f){var D={vssSegmentMetadata:[]};if(PV(f.segments,function(Z){return!!Z.serializedPlaybackPingContextLoggingData||!!Z.serializedStitchedClipLoggingMetadata})){f=g.a(f.segments); for(var F=f.next();!F.done;F=f.next())F=F.value,D.vssSegmentMetadata.push({serializedPlaybackPingContextLoggingData:F.serializedPlaybackPingContextLoggingData||[],serializedStitchedClipLoggingMetadata:F.serializedStitchedClipLoggingMetadata||[]});return D}}; oM=function(f){g.J.call(this);var D=this;this.provider=f;this.T="paused";this.X=NaN;this.N=[10,10,10,40];this.Jb=this.S=0;this.KQ=this.zx=this.xo=this.Bs=this.B=!1;this.J=this.G=NaN;this.logger=new g.Qk("vss");this.ej={APo:function(){return D.Y}}; this.Y=new gvJ(f)}; sID=function(f){var D=f.provider.videoData.QY,F=f.provider.videoData.mz,Z=[10+D,10,10,40+F-D,40],I,p=(I=f.provider.videoData.getPlayerResponse())==null?void 0:I.playbackTracking,z=p==null?void 0:p.videostatsScheduledFlushWalltimeSeconds;I=p==null?void 0:p.videostatsDefaultFlushIntervalSeconds;if(!(z&&z.length>0&&I))return Z;D=[z[0]+D].concat(g.w(z.slice(1).map(function(H,K){return H-z[K]})),[I+F-D, I]);return D.some(function(H){return H<0})?(g.Ch(f.logger,347111855,"Neg vss scheduled pings "+z+" "+I),Z):D}; kO=function(f,D){D=D===void 0?NaN:D;var F=g.aZ(f.provider);D=isNaN(D)?F:D;D=Math.ceil(D);var Z=f.N[f.S];f.S+11E3;!(p.length>1)&&p[0].isEmpty()||H||(z.S=kO(f,I));z.send();f.Jb++}},(I-F)*1E3); return f.G=I}; j4=function(f){g.Vu(f.X);f.X=NaN}; KV=function(f){f.Y.update();f=f.Y;f.segments.length&&f.J===f.B||qD(f);var D=f.segments;f.segments=[];f.X=0;return D}; iK=function(f,D){var F=HEX(f.provider);Object.assign(F,{state:f.T});D=new nvc(f.provider.videoData,f.provider.V,D,F);D.Y=f.provider.Yo.zm();F=f.provider.videoData.clientPlaybackNonce;D.Y=f.provider.Yo.uV(F);f.provider.videoData.isLivePlayback||(D.Ir=f.provider.Yo.getDuration(F));f.provider.videoData.Y&&(F=f.provider.videoData.Y.zi(D.Y))&&(D.Bs=F-D.Y,Ro(f.provider.videoData)&&(D.Y+=f.provider.Yo.R_(),D.Bs-=f.provider.Yo.R_()));D.WI=g.aZ(f.provider);D.segments=[sH(f.provider)];return D}; qdd=function(f,D){var F=iK(f,"watchtime");o2X(f)&&(F.delayThresholdMet=!0,f.xo=!0);if(f.J>0){for(var Z=g.a(D),I=Z.next();!I.done;I=Z.next())I=I.value,I.startTime-=f.J,I.endTime-=f.J;F.Y-=f.J}else F.Y=f.Y.J;F.segments=D;return F}; h3=function(f,D){var F=Kty(f,!isNaN(f.G));D&&(f.G=NaN);return F}; Kty=function(f,D){var F=qdd(f,KV(f));!isNaN(f.G)&&D&&(F.Jb=f.G);return F}; o2X=function(f){var D;if(D=f.provider.videoData.isLoaded()&&f.provider.videoData.vr&&f.B&&!f.xo)D=f.Y,D=D.T+D.zm()-D.B>=f.provider.videoData.vr;return!!D}; jIX=function(f){f.provider.videoData.youtubeRemarketingUrl&&!f.zx&&(kvD(f,f.provider.videoData.youtubeRemarketingUrl),f.zx=!0)}; iEd=function(f){f.provider.videoData.googleRemarketingUrl&&!f.KQ&&(kvD(f,f.provider.videoData.googleRemarketingUrl),f.KQ=!0)}; hpE=function(f){if(!f.MR()&&f.B){f.T="paused";var D=h3(f);D.isFinal=!0;D.send();f.dispose()}}; yEc=function(f,D){if(!f.MR())if(g.O(D.state,2)||g.O(D.state,512)){if(f.T="paused",g.hF(D,2)||g.hF(D,512))g.hF(D,2)&&(f.Y.previouslyEnded=!0),f.B&&(j4(f),h3(f).send(),f.G=NaN)}else if(g.O(D.state,8)){f.T="playing";var F=f.B&&isNaN(f.X)?kO(f):NaN;if(!isNaN(F)&&(js(D,64)<0||js(D,512)<0)){var Z=Kty(f,!1);Z.S=F;Z.send()}g.hF(D,16)&&D.state.seekSource===58&&(f.Y.previouslyEnded=!0)}else f.T="paused"}; AEw=function(f,D,F){if(!f.Bs){F||(F=iK(f,"atr"));F.attestationResponse=D;try{F.send()}catch(Z){if(Z.message!=="Unknown Error")throw Z;}f.Bs=!0}}; kvD=function(f,D){var F=f.provider.V;g.y4(f.provider.V,g.Pt(f.provider.videoData)).then(function(Z){var I=f.provider.V.pageId,p=f.provider.V.sendVisitorIdHeader?f.provider.videoData.visitorData:void 0,z=f.provider.V.Z("vss_pings_using_networkless")||f.provider.V.Z("kevlar_woffle"),H=f.provider.V.Z("allow_skip_networkless");Z=mh(D,F,I,p,Z);T8(D,Z,{token:f.provider.videoData.T,b7:f.provider.videoData.Ht,mdxEnvironment:f.provider.videoData.mdxEnvironment},F,void 0,z&&!H,!1,!0)})}; $RI=function(){this.endTime=this.startTime=-1;this.B="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.J=0;this.muted=!1;this.Y=this.clipId="-";this.previouslyEnded=!1}; y$=function(f,D,F){this.videoData=f;this.V=D;this.Yo=F;this.Y=void 0}; g.aZ=function(f){return VHy(f)()}; VHy=function(f){if(!f.Y){var D=g.wE(function(Z){var I=(0,g.m5)();Z&&I<=631152E6&&(f.Yo.Gx("ytnerror",{issue:28799967,value:""+I}),I=(new Date).getTime()+2);return I},f.V.Z("html5_validate_yt_now")),F=D(); f.Y=function(){return Math.round(D()-F)/1E3}; f.Yo.o3()}return f.Y}; HEX=function(f){var D=f.Yo.Vq()||{};D.fs=f.Yo.zX();D.volume=f.Yo.getVolume();D.muted=f.Yo.isMuted()?1:0;D.mos=D.muted;D.clipid=f.Yo.wl();var F;D.playerheight=((F=f.Yo.getPlayerSize())==null?void 0:F.height)||0;var Z;D.playerwidth=((Z=f.Yo.getPlayerSize())==null?void 0:Z.width)||0;f=f.videoData;F={};f.J&&(F.fmt=f.J.itag,f.G&&(f.LQ?f.G.itag!==f.J.itag:f.G.itag!=f.J.itag)&&(F.afmt=f.G.itag));F.ei=f.eventId;F.list=f.playlistId;F.cpn=f.clientPlaybackNonce;f.videoId&&(F.v=f.videoId);f.hR&&(F.infringe=1); (f.qb?0:f.BI)&&(F.splay=1);(Z=wf(f))&&(F.live=Z);f.HC&&(F.sautoplay=1);f.qe&&(F.autoplay=1);f.rK&&(F.sdetail=f.rK);f.partnerId&&(F.partnerid=f.partnerId);f.osid&&(F.osid=f.osid);f.xT&&(F.cc=g.SCu(f.xT));return Object.assign(D,F)}; Qka=function(f){var D=IFJ();if(D)return Rpu[D]||Rpu.other;if(g.hm(f.V)){f=navigator.userAgent;if(/[Ww]ireless[)]/.test(f))return 3;if(/[Ww]ired[)]/.test(f))return 30}return 0}; sH=function(f){var D=new $RI,F;D.B=((F=HEX(f).cc)==null?void 0:F.toString())||"-";D.playbackRate=f.Yo.getPlaybackRate();F=f.Yo.getVisibilityState();F!==0&&(D.visibilityState=F);f.V.eT&&(D.J=1);D.G=f.videoData.g$;D.compositeLiveStatusToken=f.videoData.compositeLiveStatusToken;D.heartbeatLoggingToken=f.videoData.heartbeatLoggingToken;F=f.Yo.getAudioTrack();F.dw&&F.dw.id&&F.dw.id!=="und"&&(D.audioId=F.dw.id);D.connectionType=Qka(f);D.volume=f.Yo.getVolume();D.muted=f.Yo.isMuted();D.clipId=f.Yo.wl()|| "-";D.Y=f.videoData.B8||"-";return D}; g.A3=function(f,D){g.J.call(this);var F=this;this.provider=f;this.B=new Map;this.R$=new g.du;this.ej={aeF:function(){return F.qoe}, ZmF:function(){return F.Y}, F1y:function(){return F.J}}; this.provider.videoData.u4()&&!this.provider.videoData.Tm&&(this.Y=new oM(this.provider),this.Y.J=0,g.N(this,this.Y),this.qoe=new g.cQ(this.provider,D),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.f4=this.provider.videoData.clientPlaybackNonce)&&this.B.set(this.f4,this.Y));if(f.V.playerCanaryState==="canary"||f.V.playerCanaryState==="holdback")this.J=new zQ(this.provider),g.N(this,this.J)}; dRX=function(f){f.J&&J1D(f.J);f.qoe&&UVd(f.qoe)}; QIE=function(f){f.J&&f.J.send();if(f.qoe){var D=f.qoe;if(D.G){D.R$==="PL"&&(D.R$="N");var F=g.aZ(D.provider);g.SE(D,F,"vps",[D.R$]);D.S||(D.B>=0&&D.Y.set("user_intent",[D.B.toString()]),D.S=!0);D.provider.V.Oq()&&D.Gx("finalized",{});D.Tx=!0;D.reportStats(F)}}if(f.provider.videoData.enableServerStitchedDai)for(D=g.a(f.B.values()),F=D.next();!F.done;F=D.next())hpE(F.value);else f.Y&&hpE(f.Y);f.dispose()}; CTJ=function(f,D){f.Y&&AEw(f.Y,D)}; mRT=function(f){if(!f.Y)return null;var D=iK(f.Y,"atr");return function(F){f.Y&&AEw(f.Y,F,D)}}; TYI=function(f,D,F,Z){F.adFormat=F.G3;var I=D.Yo;D=new oM(new y$(F,D.V,{getDuration:function(){return F.lengthSeconds}, getCurrentTime:function(){return I.getCurrentTime()}, zm:function(){return I.zm()}, uV:function(){return I.uV()}, iF:function(){return I.iF()}, getPlayerSize:function(){return I.getPlayerSize()}, getAudioTrack:function(){return F.getAudioTrack()}, getPlaybackRate:function(){return I.getPlaybackRate()}, A1:function(){return I.A1()}, getVisibilityState:function(){return I.getVisibilityState()}, uv:function(){return I.uv()}, Vq:function(){return I.Vq()}, getVolume:function(){return I.getVolume()}, isMuted:function(){return I.isMuted()}, zX:function(){return I.zX()}, wl:function(){return I.wl()}, getProximaLatencyPreference:function(){return I.getProximaLatencyPreference()}, o3:function(){I.o3()}, Gx:function(p,z){I.Gx(p,z)}, rD:function(){return I.rD()}, R_:function(){return I.R_()}})); D.J=Z;g.N(f,D);return D}; bEs=function(){this.Kj=0;this.G=this.B=this.St=this.AO=this.J=NaN;this.Y={};this.bandwidthEstimate=NaN}; MHD=function(){this.Y=g.uv;this.array=[]}; SdT=function(f,D,F){var Z=[];for(D=tHu(f,D);DF)break}return Z}; $O=function(f,D){var F=[];f=g.a(f.array);for(var Z=f.next();!Z.done&&!(Z=Z.value,Z.contains(D)&&F.push(Z),Z.start>D);Z=f.next());return F}; cET=function(f){return f.array.slice(tHu(f,0x7ffffffffffff),f.array.length)}; tHu=function(f,D){f=Ks(f.array,function(F){return D-F.start||1}); return f<0?-(f+1):f}; URD=function(f,D){var F=NaN;f=g.a(f.array);for(var Z=f.next();!Z.done;Z=f.next())if(Z=Z.value,Z.contains(D)&&(isNaN(F)||Z.endD&&(isNaN(F)||Z.startf.mediaTime+f.X&&D1)f.G=!0;if((I===void 0?0:I)||isNaN(f.J))f.J=D;if(f.Y)D!==f.mediaTime&&(f.Y=!1);else if(D>0&&f.mediaTime===D){I=1500;if(f.V.Z("html5_buffer_underrun_transition_fix")){I=g.Pf(f.V.experiments,"html5_min_playback_advance_for_steady_state_secs");var p=g.Pf(f.V.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");I=I>0&&p>0&&Math.abs(D-f.J)(Z||!f.G?I:400)}f.mediaTime=D;f.B=F;return!1}; LtJ=function(f,D){this.videoData=f;this.Y=D}; lCu=function(f,D,F){return D.rC(F).then(function(){return wo(new LtJ(D,D.B))},function(Z){Z instanceof Error&&g.UT(Z); var I=Hi('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),p=Kx('audio/mp4; codecs="mp4a.40.2"'),z=I||p,H=D.isLivePlayback&&!g.T0(f.X,!0);Z="fmt.noneavailable";H?Z="html5.unsupportedlive":z||(Z="html5.missingapi");z=H||!z?2:1;I={buildRej:"1",a:D.yn(),d:!!D.Fl,drm:D.S$(),f18:D.FH.indexOf("itag=18")>=0,c18:I};D.Y&&(D.S$()?(I.f142=!!D.Y.Y["142"],I.f149=!!D.Y.Y["149"],I.f279=!!D.Y.Y["279"]):(I.f133=!!D.Y.Y["133"],I.f140=!!D.Y.Y["140"],I.f242=!!D.Y.Y["242"]),I.cAAC=p,I.cAVC=Kx('video/mp4; codecs="avc1.42001E"'), I.cVP9=Kx('video/webm; codecs="vp9"'));D.X&&(I.drmsys=D.X.keySystem,p=0,D.X.Y&&(p=Object.keys(D.X.Y).length),I.drmst=p);return new g.px(Z,I,z)})}; dh=function(f){this.data=window.Float32Array?new Float32Array(f):Array(f);this.J=this.Y=f-1}; E2u=function(f){return f.data[f.Y]||0}; JEa=function(f){this.X=f;this.B=this.J=0;this.G=new dh(50)}; CV=function(f,D,F){g.zu.call(this);this.videoData=f;this.experiments=D;this.X=F;this.J=[];this.TD=0;this.B=!0;this.G=!1;this.T=0;F=new uFc;f.latencyClass==="ULTRALOW"&&(F.N=!1);f.HL?F.B=3:g.lj(f)&&(F.B=2);f.latencyClass==="NORMAL"&&(F.X=!0);F.Bs=G6(f);if(f.latencyClass==="LOW"||f.latencyClass==="ULTRALOW")F.X=!0;var Z=g.Pf(D,"html5_liveness_drift_proxima_override");if(Sb(f)!==0&&Z){F.Y=Z;var I;((I=f.Y)==null?0:dJu(I))&&F.Y--}G6(f)&&D.Hs("html5_sabr_parse_live_metadata_playback_boundaries")&&(F.KQ= !0);if(g.go("trident/")||g.go("edge/"))I=g.Pf(D,"html5_platform_minimum_readahead_seconds")||3,F.G=Math.max(F.G,I);g.Pf(D,"html5_minimum_readahead_seconds")&&(F.G=g.Pf(D,"html5_minimum_readahead_seconds"));g.Pf(D,"html5_maximum_readahead_seconds")&&(F.Jb=g.Pf(D,"html5_maximum_readahead_seconds"));if(D=g.Pf(D,"html5_liveness_drift_chunk_override"))F.Y=D;tZ(f)&&(F.Y=(F.Y+1)/5,f.latencyClass==="LOW"&&(F.Y*=2));!G6(f)||f.latencyClass!=="ULTRALOW"&&f.latencyClass!=="LOW"||(F.S=3,F.T=25);this.policy=F; this.S=this.policy.B!==1;this.Y=Q$(this,NYc(this,isNaN(f.liveChunkReadahead)?3:f.liveChunkReadahead,f))}; g2X=function(f,D){if(D)return D=f.videoData,D=NYc(f,isNaN(D.liveChunkReadahead)?3:D.liveChunkReadahead,D),Q$(f,D);if(f.J.length){if(Math.min.apply(null,f.J)>1)return Q$(f,f.Y-1);if(f.policy.N)return Q$(f,f.Y+1)}return f.Y}; epD=function(f,D){if(!f.J.length)return!1;var F=f.Y;f.Y=g2X(f,D===void 0?!1:D);if(D=F!==f.Y)f.J=[],f.TD=0;return D}; TQ=function(f,D){return D>=f.p7()-m6(f)}; xRE=function(f,D,F){D=TQ(f,D);F||D?D&&(f.B=!0):f.B=!1;f.S=f.policy.B===2||f.policy.B===3&&f.B}; Xnd=function(f,D){D=TQ(f,D);f.G!==D&&f.publish("livestatusshift",D);f.G=D}; m6=function(f){var D=f.policy.Y;f.G||(D=Math.max(D-1,0));return D*bK(f)}; NYc=function(f,D,F){F.HL&&D--;tZ(F)&&(D=1);if(Sb(F)!==0&&(f=g.Pf(f.experiments,"html5_live_chunk_readahead_proxima_override"))){D=f;var Z;((Z=F.Y)==null?0:dJu(Z))&&D++}return D}; bK=function(f){return f.videoData.Y?XY(f.videoData.Y)||5:5}; Q$=function(f,D){D=Math.max(Math.max(1,Math.ceil(f.policy.G/bK(f))),D);return Math.min(Math.min(8,Math.floor(f.policy.Jb/bK(f))),D)}; uFc=function(){this.G=0;this.Jb=Infinity;this.N=!0;this.J=this.Y=2;this.B=1;this.X=!1;this.T=10;this.KQ=!1;this.S=1;this.Bs=!1}; S4=function(f){g.J.call(this);this.Yo=f;this.Y=0;this.J=null;this.T=this.G=0;this.B={};this.V=this.Yo.j();this.X=new g.xX(this.cD,1E3,this);this.LQ=MD(this,"html5_seek_timeout_delay_ms");this.xo=MD(this,"html5_long_rebuffer_threshold_ms");this.b3=MD(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.rY=MD(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.jT=MD(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.Wk=MD(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.Bs=MD(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.KQ=new t3(2E4);this.Ir=MD(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.Ps=MD(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.dY=MD(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.Tx=MD(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.N=MD(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.Jb=MD(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.eT=MD(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.JN=MD(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.S=MD(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.G3=new t3(g.Pf(this.V.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.V.Z("html5_report_slow_ads_as_error"));this.Uq=new t3(g.Pf(this.V.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.V.Z("html5_skip_slow_buffering_ad"));this.Z5=MD(this,"html5_slow_start_timeout_delay_ms");this.zx=MD(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.N(this,this.X)}; MD=function(f,D,F){F=F===void 0?null:F;var Z=Z===void 0?0:Z;return new t3(g.Pf(f.V.experiments,D)||Z,F?f.V.Z(F):!1)}; OET=function(f,D){f.Y=D}; cp=function(f,D,F,Z,I,p,z,H){D?D.test(F)?(f.xn(I,D,z),D.T||p()):(!D.J||D.G?F=!1:(F=(0,g.m5)(),Z?D.Y||(D.Y=F):D.Y=0,p=!Z&&F-D.J>3E4,F=D.Y&&F-D.Y>1E3||p?D.G=!0:!1),F&&(H=Object.assign({},f.a_(D),H),H.wn=z,H.we=I,H.wsuc=Z,f.Yo.Gx("workaroundReport",H),Z&&(D.reset(),f.B[I]=!1))):f.Yo.b4("auth",2,"BROWSER_OR_EXTENSION_ERROR",Ip({source:"watchdog",name:z}))}; t3=function(f,D){this.T=D===void 0?!1:D;this.Y=this.J=this.B=this.startTimestamp=0;this.G=!1;this.X=Math.ceil(f/1E3)}; f7y=function(f){g.J.call(this);var D=this;this.Yo=f;this.N=this.Y=this.loader=this.mediaElement=this.playbackData=null;this.B=0;this.X=this.xo=this.G=null;this.Tx=!1;this.Wk=0;this.KQ=!1;this.timestampOffset=0;this.Jb=!0;this.Ps=0;this.b3=this.AN=!1;this.S=0;this.JN=!1;this.jT=this.zx=0;this.V=this.Yo.j();this.videoData=this.Yo.getVideoData();this.policy=new n2J;this.Bs=new S4(this.Yo);this.Uq=this.dY=this.Ir=this.T=this.J=NaN;this.rY=new g.xX(function(){YdJ(D,!1)},2E3); this.gw=new g.xX(function(){UH(D)}); this.LQ=new g.xX(function(){PTy(D,{})}); this.Z5=NaN;this.G3=new g.xX(function(){var F=D.V.KH;F.Y+=1E4/36E5;F.Y-F.B>1/6&&(Lzw(F),F.B=F.Y);D.G3.start()},1E4); g.N(this,this.Bs);g.N(this,this.rY);g.N(this,this.LQ);g.N(this,this.gw);g.N(this,this.G3)}; ZRy=function(f,D){f.playbackData=D;f.videoData.isLivePlayback&&(f.N=new JEa(function(){a:{if(f.playbackData&&f.playbackData.Y.Y){if(ME(f.videoData)&&f.loader){var Z=f.loader.pP.yz()||0;break a}if(f.videoData.Y){Z=f.videoData.Y.Tx;break a}}Z=0}return Z}),f.Y=new CV(f.videoData,f.V.experiments,function(){return f.tZ(!0)})); if(vp(f.Yo)){var F;(F=f.videoData.EW)!=null&&F.WX||(D=D5u(f),D.oy?(G6(f.videoData)&&f.FD(D.oy,D.startSeconds),f.B=D.startSeconds):D.startSeconds>0&&f.seekTo(D.startSeconds,{pF:"seektimeline_startPlayback",seekSource:15}));f.Jb=!1}else FTf(f)||(f.B=f.B||f.videoData.startSeconds||0,f.videoData.isLivePlayback||(D=f.Yo.videoData.tZ(),f.B>D&&(f.Z("html5_sabr_log_invalid_sabr_current_time")&&f.Yo.Gx("invalidSabrCmtStart",{rt:f.B,mst:D}),f.Z("html5_sabr_vod_invalid_start_time_fallback")&&(f.B=0))))}; pqf=function(f,D){(f.loader=D)?I7c(f,!0):aM(f)}; sHu=function(f,D){var F=f.getCurrentTime(),Z=f.isAtLiveHead(F);if(f.N&&Z){var I=f.N;if(I.Y&&!(F>=I.J&&F50&&I.J.shift())),I=f.Y,xRE(I,F,D===void 0?!0:D),Xnd(I,F),D&&YdJ(f,!0));Z!==f.AN&&(D=f.getCurrentTime()-f.Uq<=500,F=f.Wk>=1E3,D||F||(D=f.Yo.Lp,D.qoe&&(D=D.qoe,F=g.aZ(D.provider), g.SE(D,F,"lh",[Z?"1":"0"])),f.AN=Z,f.Wk++,f.Uq=f.getCurrentTime()))}; YdJ=function(f,D){if(f.Y){var F=f.Y;var Z=f.getCurrentTime(),I=F.p7();var p=F.policy.J;F.G||(p=Math.max(p-1,0));p*=bK(F);Z>=I-p||!F.lz()?F=ZF+1&&D0&&f.mediaElement.EO()>0&&(f.J=GQ(f,f.J,!1)),D=f.Z("html5_pseudogapless_shorts_seek_to_next_start")&&(D==null?void 0:D.seekSource)===60,!f.mediaElement||!iRD(f,D))f.gw.start(750);else if(!isNaN(f.J)&&isFinite(f.J)&&(D=f.dY-(f.J-f.timestampOffset),!(D===0||Math.abs(D)<.005)))if(D=f.mediaElement.getCurrentTime()-f.J,Math.abs(D)<=f.Ps||Math.abs(D)<.005)hGJ(f);else{if(f.videoData.m1)f.videoData.m1= !1;else if(!mj(f.videoData)&&f.J>=f.tZ()-.1){f.J=f.tZ();f.G.resolve(f.tZ());f.V.Oq()&&f.Yo.Gx("setEndedInSeek",{tgt:""+f.J,maxst:""+f.tZ()});f.Yo.E9();return}try{var F=f.J-f.timestampOffset;f.mediaElement.seekTo(F);f.Bs.Y=F;f.dY=F;f.B=f.J;f.KQ=!1}catch(Z){}}}; iRD=function(f,D){D=D===void 0?!1:D;if(!f.mediaElement||f.mediaElement.FJ()===0||f.mediaElement.hasError())return!1;var F=f.mediaElement.getCurrentTime()>0;return f.videoData.B&&f.videoData.B.Y||f.videoData.isLivePlayback||!f.videoData.S$()?f.J>=0&&!D&&(D=f.mediaElement.XY(),D.length||!F)?Pi(D,f.J-f.timestampOffset):F:F}; hGJ=function(f){f.G&&(f.G.resolve(f.mediaElement.getCurrentTime()),f.Bs.J=null)}; kmX=function(f,D){f.X&&(f.X.resolve(D),f.Yo.VB(),f.V.Oq()||jHI(f))&&(D=f.a_(),D["native"]=""+ +f.KQ,D.otgt=""+(f.J+f.timestampOffset),f.Yo.Gx("seekEnd",D));aM(f)}; aM=function(f){f.J=NaN;f.T=NaN;f.dY=NaN;f.G=null;f.xo=null;f.X=null;f.Tx=!1;f.KQ=!1;f.Ps=0;f.rY.stop();f.LQ.stop()}; AlD=function(f,D){var F=f.mediaElement,Z=D.type;switch(Z){case "seeking":var I=F.getCurrentTime()+f.timestampOffset;if(!f.G||f.KQ&&I!==f.J){f.G=new $P;f.G.then(function(z){kmX(f,z)},function(){aM(f)}); if(f.videoData.isAd()){var p;B0X({adCpn:f.videoData.clientPlaybackNonce,contentCpn:(p=f.videoData.Gn)!=null?p:""},D.Y)}f.dY=I;OET(f.Bs,F.getCurrentTime());f.seekTo(I,{seekSource:104,pF:"seektimeline_mediaElementEvent"});f.KQ=!0}break;case "seeked":hGJ(f);break;case "loadedmetadata":vp(f.Yo)||ylI(f);UH(f);break;case "progress":UH(f);break;case "pause":f.S=f.getCurrentTime()}f.S&&((Z==="play"||Z==="playing"||Z==="timeupdate"||Z==="progress")&&f.getCurrentTime()-f.S>10&&(f.Z("html5_sky_skip_pause_jump")? f.Yo.Gx("skipPauseJump",{evt:Z,cmt:f.getCurrentTime(),lpt:f.S}):f.seekTo(f.S,{pF:"pauseJump"})),Z!=="pause"&&Z!=="play"&&Z!=="playing"&&Z!=="progress"&&(f.S=0))}; $5T=function(f){return(EW(f.videoData)||!!f.videoData.liveUtcStartSeconds)&&(!!f.videoData.liveUtcStartSeconds||FTf(f))&&!!f.videoData.Y}; FTf=function(f){return!!f.videoData.startSeconds&&isFinite(f.videoData.startSeconds)&&f.videoData.startSeconds>1E9}; D5u=function(f){var D=0,F=NaN,Z="";if(!f.Jb)return{startSeconds:D,oy:F,source:Z};f.videoData.Al?D=f.videoData.O3:mj(f.videoData)&&(D=Infinity);if(g.lj(f.videoData))return{startSeconds:D,oy:F,source:Z};f.videoData.startSeconds?(Z="ss",D=f.videoData.startSeconds):f.videoData.yO&&(Z="stss",D=f.videoData.yO);f.videoData.liveUtcStartSeconds&&(F=f.videoData.liveUtcStartSeconds);if(isFinite(D)&&(D>f.tZ()||Df.tZ()||F 0?(Z.onesie="0",f.handleError(new g.px("html5.missingapi",Z)),!1):!0}; t1u=function(f){var D=xu();X9(D,f);return g.Y6(D,NNJ())}; TJa=function(f,D,F){var Z,I,p,z,H,K,k,h,y,A,V,R,m,b,U,S,G,W,u,E,Ds,Fu,Zs,za,ju,Id;return g.l(function(QX){if(QX.Y==1)return D.fetchType="onesie",Z=nRf(D,f.getPlayerSize(),f.getVisibilityState()),I=new qp(f,Z,F),g.r(QX,I.fetch(),2);p=QX.J;z={player_response:p};D.loading=!1;H=f.Nm.uH;if(I.X6){K=g.a(I.X6.entries());for(k=K.next();!k.done;k=K.next())h=k.value,y=g.a(h),A=y.next().value,V=y.next().value,R=A,m=V,H.Y.set(R,m,180),R===D.videoId&&(b=m.VF(),D.vO=b);H.Ns=I}U=g.a(I.XV.entries());for(S=U.next();!S.done;S= U.next())G=S.value,W=g.a(G),u=W.next().value,E=W.next().value,Ds=u,Fu=E,H.J.set(Ds,Fu,180);g.qE(D,z,!0);if(D.loading||zZ(D))return QX.return(Promise.resolve());H.Y.removeAll();H.J.removeAll();D.vO=[];Zs={};za="onesie.response";ju=0;D.errorCode?(za="auth",Zs.ec=D.errorCode,Zs.ed=D.errorDetail,Zs.es=D.Sw||"",ju=2):(Zs.successButUnplayable="1",Zs.disposed=""+ +D.MR(),Zs.afmts=""+ +/adaptiveFormats/.test(p),Zs.cpn=D.clientPlaybackNonce);Id=new g.px(za,Zs,ju);return QX.return(Promise.reject(Id))})}; QHu=function(f,D){var F,Z,I,p,z,H,K,k,h,y,A;return g.l(function(V){switch(V.Y){case 1:F=D.isAd(),Z=!F,I=F?1:3,p=0;case 2:if(!(p0)){V.ZE(5);break}return g.r(V,wG(5E3),6);case 6:z=new g.by("Retrying OnePlatform request",{attempt:p}),g.UT(z);case 5:return g.po(V,7),g.r(V,SVs(f,D),9);case 9:return V.return();case 7:H=g.He(V);K=s_(H);k=K.errorCode;h=f.j();y=h.Z("html5_use_network_error_code_enums")?401:"401";Z&&k==="manifest.net.badstatus"&&K.details.rc===y&&(Z=!1,p===I-1&&(I+= 1));if(p===I-1)return A=clX(F,K.details),A.details.backend="op",A.details.originec=k,V.return(Promise.reject(A));if(k==="auth"||k==="manifest.net.retryexhausted")return V.return(Promise.reject(K));f.handleError(K);if(zI(K.severity)){V.ZE(4);break}case 3:p++;V.ZE(2);break;case 4:return V.return(Promise.reject(clX(F,{backend:"op"})))}})}; SVs=function(f,D){function F(Zs){Zs.readyState===2&&f.Mm("ps_c")} var Z,I,p,z,H,K,k,h,y,A,V,R,m,b,U,S,G,W,u,E,Ds,Fu;return g.l(function(Zs){switch(Zs.Y){case 1:D.fetchType="gp";Z=f.j();I=g.y4(Z,g.Pt(D));if(!I.Y){p=I.getValue();Zs.ZE(2);break}return g.r(Zs,I.Y,3);case 3:p=Zs.J;case 2:return z=p,H=t1u(z),K=nRf(D,f.getPlayerSize(),f.getVisibilityState()),k=g.ZO(U5D),h=g.Pt(D),y=(0,g.m5)(),A=!1,V="empty",R=0,f.Mm("psns"),m={xU:F},g.r(Zs,g.LP(H,K,k,void 0,m),4);case 4:b=Zs.J;f.Mm("psnr");if(D.MR())return Zs.return();b?"error"in b&&b.error?(A=!0,V="esf:"+b.error.message, R=b.error.code):b.errorMetadata&&(A=!0,V="its",R=b.errorMetadata.status):A=!0;if(A)return U=0,S=((0,g.m5)()-y).toFixed(),G={},G=Z.Z("html5_use_network_error_code_enums")?{backend:"op",rc:R,rt:S,reason:V,has_kpt:D.eT?"1":"0",has_mdx_env:D.mdxEnvironment?"1":"0",has_omit_key_flag:g.nc("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Z.pageId?"1":"0",has_token:h?"1":"0",has_vvt:D.KQ?"1":"0",is_mdx:D.isMdxPlayback?"1":"0",mdx_ctrl:D.IN||"",token_eq:h===g.Pt(D)?"1":"0"}:{backend:"op", rc:""+R,rt:S,reason:V,has_kpt:D.eT?"1":"0",has_mdx_env:D.mdxEnvironment?"1":"0",has_omit_key_flag:g.nc("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Z.pageId?"1":"0",has_token:h?"1":"0",has_vvt:D.KQ?"1":"0",is_mdx:D.isMdxPlayback?"1":"0",mdx_ctrl:D.IN||"",token_eq:h===g.Pt(D)?"1":"0"},W="manifest.net.connect",R===429?(W="auth",U=2):R>200&&(W="manifest.net.badstatus",R===400&&(U=2)),Zs.return(Promise.reject(new g.px(W,G,U)));D.loading=!1;g.qE(D,{raw_player_response:b},!0); u=b;g.gk(D.j())&&u&&u.trackingParams&&yQ(u.trackingParams);if(D.errorCode)return E={ec:D.errorCode,ed:D.errorDetail,es:D.Sw||""},Zs.return(Promise.reject(new g.px("auth",E,2)));if(!D.loading&&!zZ(D))return Ds=D.isAd()?"auth":"manifest.net.retryexhausted",Fu=D.isAd()?2:1,Zs.return(Promise.reject(new g.px(Ds,{successButUnplayable:"1",hasMedia:g.Bt(D)?"1":"0"},Fu)));g.Zb(Zs)}})}; d5J=function(f,D,F){function Z(R){R=s_(R);if(zI(R.severity))return Promise.reject(R);f.handleError(R);return!1} function I(){return!0} var p,z,H,K,k,h,y,A,V;return g.l(function(R){switch(R.Y){case 1:var m=f.j();f.getPlayerSize();f.getVisibilityState();f.isFullscreen();if(D.partnerId===38&&m.playerStyle==="books")m=D.videoId.indexOf(":"),m=g.tL("//play.google.com/books/volumes/"+D.videoId.slice(0,m)+"/content/media",{aid:D.videoId.slice(m+1),sig:D.hF});else if(D.partnerId===30&&m.playerStyle==="docs")m=g.tL("https://docs.google.com/get_video_info",{docid:D.videoId,authuser:D.L8,authkey:D.y0,eurl:m.JS});else if(D.partnerId===33&&m.playerStyle=== "google-live")m=g.tL("//google-liveplayer.appspot.com/get_video_info",{key:D.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+m.Bs);p=m;H=(z=D.isAd())?1:3;K=0;case 2:if(!(K0)){R.ZE(5);break}return g.r(R,wG(5E3),6);case 6:h={playerretry:K,playerretrysrc:F},z||(h.recover="embedded"),k=q1(p,h);case 5:return g.r(R,vME(D,k).then(I,Z),7);case 7:if(y=R.J)return R.return();K++;R.ZE(2);break;case 4:A=z?"auth":"manifest.net.retryexhausted";V=z?2:1;if(!z&&Math.random()< 1E-4)try{g.UT(new g.by("b/152131571",btoa(p)))}catch(b){}return R.return(Promise.reject(new g.px(A,{backend:"gvi"},V)))}})}; vME=function(f,D){function F(b){return Z(b.xhr)} function Z(b){if(!f.MR()){b=b?b.status:-1;var U=0,S=((0,g.m5)()-h).toFixed();S=I.Z("html5_use_network_error_code_enums")?{backend:"gvi",rc:b,rt:S}:{backend:"gvi",rc:""+b,rt:S};var G="manifest.net.connect";b===429?(G="auth",U=2):b>200&&(G="manifest.net.badstatus",b===400&&(U=2));return Promise.reject(new g.px(G,S,U))}} var I,p,z,H,K,k,h,y,A,V,R,m;return g.l(function(b){if(b.Y==1){f.fetchType="gvi";I=f.j();var U={};f.O$&&(U.ytrext=f.O$);(H=g.tC(U)?void 0:U)?(p={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:H},z=q1(D,{action_display_post:1})):(p={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},z=D);K={};I.sendVisitorIdHeader&&f.visitorData&&(K["X-Goog-Visitor-Id"]=f.visitorData);(k=Q5(I.experiments,"debug_sherlog_username"))&&(K["X-Youtube-Sherlog-Username"]=k);Object.keys(K).length> 0&&(p.headers=K);h=(0,g.m5)();return g.r(b,wq(U4,z,p).then(void 0,F),2)}y=b.J;if(!y||!y.responseText)return b.return(Z(y));f.loading=!1;A=iy(y.responseText);g.qE(f,A,!0);if(f.errorCode)return V={ec:f.errorCode,ed:f.errorDetail,es:f.Sw||""},b.return(Promise.reject(new g.px("auth",V,2)));if(!f.loading&&!zZ(f))return R=f.isAd()?"auth":"manifest.net.retryexhausted",m=f.isAd()?2:1,b.return(Promise.reject(new g.px(R,{successButUnplayable:"1"},m)));g.Zb(b)})}; clX=function(f,D){return new g.px(f?"auth":"manifest.net.retryexhausted",D,f?2:1)}; LV=function(f,D,F){F=F===void 0?!1:F;var Z,I,p,z;g.l(function(H){if(H.Y==1){Z=f.j();if(F&&(!g.oe(Z)||X2(D)!=="embedded")||D.kT||X2(D)!=="adunit"&&(g.hm(Z)||PL(Z)||g.rQ(Z)||g.HU(Z)||g.ei(Z)||V5(Z)==="WEB_CREATOR"))return H.return();I=g.y4(Z,g.Pt(D));return I.Y?g.r(H,I.Y,3):(p=I.getValue(),H.ZE(2))}H.Y!=2&&(p=H.J);z=p;return H.return(a7f(f,D,z))})}; a7f=function(f,D,F){var Z,I,p,z,H;return g.l(function(K){if(K.Y==1){g.po(K,2);Z=t1u(F);var k=D.j(),h=g.JX(),y={context:g.jK(D),videoId:D.videoId,racyCheckOk:D.racyCheckOk,contentCheckOk:D.contentCheckOk,autonavState:"STATE_NONE"};X2(D)==="adunit"&&(y.isAdPlayback=!0);k.embedConfig&&(y.serializedThirdPartyEmbedConfig=k.embedConfig);k.vO&&(y.showContentOwnerOnly=!0);D.bL&&(y.showShortsOnly=!0);h.Kp(141)&&(y.autonavState=h.Kp(140)?"STATE_OFF":"STATE_ON");if(g.sn(k)){h=h.Kp(65);h=h!=null?!h:!1;var A= !!g.W6("yt-player-sticky-caption");y.captionsRequested=h&&A}var V;if(k=(V=k.getWebPlayerContextConfig())==null?void 0:V.encryptedHostFlags)y.playbackContext={encryptedHostFlags:k};I=y;p=g.ZO(GmX);f.Mm("wn_s");return g.r(K,g.LP(Z,I,p),4)}if(K.Y!=2)return z=K.J,f.Mm("wn_r"),!z||"error"in z&&z.error||(H=z,g.gk(D.j())&&H.trackingParams&&yQ(H.trackingParams),g.qE(D,{raw_watch_next_response:z},!1)),g.qC(K,0);g.He(K);g.Zb(K)})}; Cra=function(f,D){var F,Z,I,p;g.l(function(z){if(z.Y==1)return F=f.j(),Z=g.y4(F,g.Pt(D)),Z.Y?g.r(z,Z.Y,3):(I=Z.getValue(),z.ZE(2));z.Y!=2&&(I=z.J);p=I;return z.return(wqy(D,p))})}; wqy=function(f,D){var F,Z,I,p;return g.l(function(z){if(z.Y==1)return g.po(z,2),F=t1u(D),Z={context:g.jK(f),playerRequest:{videoId:f.videoId},disablePlayerResponse:!0},I=g.ZO(WTu),g.r(z,g.LP(F,Z,I),4);if(z.Y!=2)return p=z.J,!p||"error"in p&&p.error||g.qE(f,{raw_reel_item_watch_response:p}),g.qC(z,0);g.He(z);g.Zb(z)})}; BJf=function(f,D){f.Mm("vir");f.Mm("ps_s");Wk("vir",void 0,"video_to_ad");D=M1a(f,D);D.then(function(){f.Mm("virc");Wk("virc",void 0,"video_to_ad");f.Mm("ps_r");Wk("ps_r",void 0,"video_to_ad")},function(){f.Mm("virc"); Wk("virc",void 0,"video_to_ad")}); return D}; g.J3=function(f,D,F,Z,I,p,z,H,K,k,h){k=k===void 0?new g.pT(f):k;h=h===void 0?!0:h;g.zu.call(this);var y=this;this.V=f;this.playerType=D;this.Sj=F;this.YQ=Z;this.getVisibilityState=p;this.visibility=z;this.Nm=H;this.lE=K;this.videoData=k;this.tp=h;this.logger=new g.Qk("VideoPlayer");this.a$=null;this.Z_=new DL;this.uC=null;this.Gc=!0;this.gY=this.loader=null;this.Sk=[];this.Ia=new rh;this.hk=this.j9=null;this.Mv=new rh;this.qJ=null;this.Ug=this.U4=!1;this.sK=NaN;this.sR=!1;this.playerState=new g.du; this.JD=[];this.fu=new g.ia;this.mediaElement=null;this.YM=this.hm=!1;this.bW=NaN;this.l$=!1;this.K9=0;this.WN=!1;this.OO=NaN;this.FA=0;this.loop=!1;this.playbackRate=1;this.IS=0;this.gj=!1;this.Y0=[];this.lX=this.tC=0;this.Hg=this.zf=!1;this.St=this.AO=0;this.DG=!1;this.Dh=this.ym=this.S0=this.D5=null;this.lY=function(){var A=y.Lp;A.provider.V.Y_||A.provider.Yo.getVisibilityState()===3||(A.provider.V.Y_=!0);A.rb();if(A.J){var V=A.J;V.X&&V.Y<0&&V.provider.Yo.getVisibilityState()!==3&&J1D(V)}A.qoe&& (A=A.qoe,A.LQ&&A.B<0&&A.provider.V.Y_&&UVd(A),A.G&&wD(A));y.loader&&lK(y);EH(y)}; this.ej={kX:function(A){y.kX(A)}, dcQ:function(A){y.a$=A}, L1x:function(){return y.Lp}, F0:function(){return y.gY}, GyQ:function(){return y.n9}, K1T:function(){return y.cG}, t4d:function(){}, j:function(){return y.V}, ac:function(){return y.mediaElement}, Y9I:function(A){y.oX(A)}, Em3:function(){return y.YQ}}; this.X3=new jsD(this);this.Th=new g.xX(this.XDR,15E3,this);this.Ls=new wh(new Map([["bufferhealth",function(){return zGD(y.SU)}], ["bandwidth",function(){return y.WJ()}], ["networkactivity",function(){return y.lE.xo}], ["livelatency",function(){return y.isAtLiveHead()&&y.isPlaying()?rlc(y):NaN}], ["rawlivelatency",function(){return rlc(y)}]])); this.SU=new f7y(this);this.HA=new g.xX(this.lEx,0,this);this.XIs=[this.fu,this.HA,this.Th,this.Ls];this.uP=new rEE(this.V);this.Tv=new IM(this.V,this.YQ,this,this.lE);this.xW=new g.V$(this,function(A,V){A!==g.Nh("endcr")||g.O(y.playerState,32)||y.E9();I(A,V,y.playerType)}); g.N(this,this.xW);g.N(this,this.SU);LTa(this,k);this.videoData.subscribe("dataupdated",this.l1o,this);this.videoData.subscribe("dataloaded",this.r0,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Gx,this);this.videoData.subscribe("ctmpstr",this.jE,this);!this.Lp||this.Lp.MR();this.Lp=new g.A3(new y$(this.videoData,this.V,this));ssd(this.lY);this.visibility.subscribe("visibilitystatechange",this.lY);this.n9=new g.xX(this.yr,g.Pf(this.V.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.cG=new g.xX(this.yr,g.Pf(this.V.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.Wa=new g.YX(this.z_Q,350,this);g.N(this,this.Wa)}; LTa=function(f,D){if(f.playerType===2||f.V.Cm)D.YF=!0;var F=awE(D.G3,D.wI,f.V.G,f.V.N);F&&(D.adFormat=F);f.playerType===2&&(D.qe=!0);if(f.isFullscreen()||f.V.G)F=g.W6("yt-player-autonavstate"),D.autonavState=F||(f.V.G?2:f.videoData.autonavState);D.endSeconds&&D.endSeconds>D.startSeconds&&uK(f,D.endSeconds)}; l7T=function(f){return g.hm(f.V)&&f.videoData.isLivePlayback&&(!f.V.Z("html5_allow_multiview_tile_preload")||!f.videoData.vI)}; EMD=function(f){var D=f.videoData;BJf(f,f.lE).then(void 0,function(F){f.videoData!==D||D.MR()||(F=s_(F),F.errorCode==="auth"&&f.videoData.errorDetail&&f.videoData.errorDetail!=="7"?f.b4(F.errorCode,2,unescape(f.videoData.errorReason),Ip(F.details),f.videoData.errorDetail,f.videoData.Sw||void 0):f.handleError(F))})}; NJI=function(f){if(!g.O(f.playerState,128))if(f.videoData.isLoaded(),f.Sk=g.FI(f.videoData.Y3),g.Bt(f.videoData)){f.Sj.tick("bpd_s");ND(f).then(function(){f.Sj.tick("bpd_c");if(!f.MR()){f.U4&&(f.cI(mz(mz(f.playerState,512),1)),gh(f));var Z=f.videoData;Z.endSeconds&&Z.endSeconds>Z.startSeconds&&uK(f,Z.endSeconds);f.Ia.finished=!0;e4(f,"dataloaded");f.Mv.mN()&&Jld(f);Evd(f.Tv,f.hk)}}); f.Z("html5_log_media_perf_info")&&f.Gx("loudness",{v:f.videoData.Bh.toFixed(3)},!0);var D,F=(D=f.mediaElement)==null?void 0:D.Cp();if(F&&"disablePictureInPicture"in F&&f.V.g$)try{F.disablePictureInPicture=f.V.qA&&!f.videoData.backgroundable}catch(Z){g.UT(Z)}u$T(f);f.Dh=new m$(f.videoData)}else e4(f,"dataloaded")}; ND=function(f){xO(f);f.hk=null;var D=lCu(f.V,f.videoData,f.RP());f.j9=D;f.j9.then(function(F){gMy(f,F)},function(F){f.MR()||(F=s_(F),f.visibility.isBackground()?(Xp(f,"vp_none_avail"),f.j9=null,f.Ia.reset()):(f.Ia.finished=!0,f.b4(F.errorCode,F.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Ip(F.details))))}); return D}; gMy=function(f,D){if(!f.MR()&&!D.videoData.MR()){f.hk=D;ZRy(f.SU,f.hk);if(f.videoData.isLivePlayback){var F=eGy(f.Nm.uH,f.videoData.videoId)||f.loader&&!isNaN(f.loader.zx);F=f.Z("html5_onesie_live")&&F;vp(f)||f.videoData.dY>0&&!ME(f.videoData)||F||f.seekTo(f.tZ(),{pF:"videoplayer_playbackData",seekSource:18})}if(f.videoData.B.Y){if(Wqy(f.videoData)){f.b4("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",Ip({missabrurl:1}));return}f.loader?g.UT(Error("Duplicated Loader")):(F=g.Pf(f.V.experiments,"html5_onesie_defer_content_loader_ms"))&& f.iM()&&eGy(f.Nm.uH,f.videoData.FE)?g.AW(function(){f.MR()||f.loader||x5T(f)},F):x5T(f)}else!f.videoData.B.Y&&F9(f.videoData)&&f.Lt(new rY(f.videoData.videoId||"",4)); f.GK();GTE(D).then(function(){var Z={};f.S7(Z);f.V.Oq()&&f.Z("html5_log_media_perf_info")&&f.Gx("av1Info",Z);lK(f)})}}; Jld=function(f){f.MR();if(!f.Mv.finished&&f.Ia.finished&&!g.O(f.playerState,128)&&!f.Sk.length){if(!f.xW.started){var D=f.xW;D.started=!0;D.sync()}if(!f.C1()){if(f.loader){if(f.ww().Y.Kp(ir)){D=f.loader;var F=!0;F=F===void 0?!1:F;D=Math.min(pR(D.audioTrack,F),pR(D.videoTrack,F))>0}else D=f.loader.timing,D=!!D.J&&!!D.B;f.Ug=D}f.Mv.finished||(f.Mv.finished=!0);D=f.Z("html5_onesie_live")&&f.loader&&!isNaN(f.loader.zx);!f.videoData.isLivePlayback||f.videoData.dY>0&&!ME(f.videoData)||D||vp(f)||(f.seekTo(Infinity, {pF:"videoplayer_readying",seekSource:18}),f.isBackground()&&(f.YM=!0));D=f.Lp;if(D.qoe){D=D.qoe;var Z=D.provider.videoData;F=D.provider.V;for(var I=g.a(F.Ds),p=I.next();!p.done;p=I.next())BQ(D,p.value);if(D.provider.Z("html5_enable_qoe_cat_list"))for(I=g.a(Z.Vx),p=I.next();!p.done;p=I.next())BQ(D,p.value);else Z.Ds&&BQ(D,D.provider.videoData.Ds);Z.jj()&&(I=Z.Y,ME(Z)&&BQ(D,"manifestless"),I&&XY(I)&&BQ(D,"live-segment-"+XY(I).toFixed(1)));G6(Z)?BQ(D,"sabr"):D.Y6(Sb(Z));if(fN(Z)||Z.nE())Z.nE()&&BQ(D, "ssa"),BQ(D,"lifa");Ro(Z)&&BQ(D,"cdm");Z.gatewayExperimentGroup&&(I=Z.gatewayExperimentGroup,I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?I="spkadtrt":I==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(I="spkadctrl"),BQ(D,I));F.Bs!=="yt"&&D.Y.set("len",[Z.lengthSeconds.toFixed(2)]);Z.cotn&&!F9(Z)&&D.AY(!0);F.Oq()&&(Z=R0w())&&D.Gx("cblt",{m:Z});if(F.Z("html5_log_screen_diagonal")){F=D.Gx;var z;Z=((z=window.H5vccScreen)==null?0:z.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;F.call(D,"cbltdiag", {v:Z})}}f.publish("playbackready");Gt("pl_c",f.Sj.timerName)||(f.Sj.tick("pl_c"),Wk("pl_c",void 0,"video_to_ad"));Gt("pbr",f.Sj.timerName)||(f.Sj.tick("pbr"),Wk("pbr",void 0,"video_to_ad"))}}}; uK=function(f,D){f.uC&&Xqc(f);f.uC=new g.Jm(D*1E3,0x7ffffffffffff);f.uC.namespace="endcr";f.addCueRange(f.uC)}; Xqc=function(f){f.removeCueRange(f.uC);f.uC=null}; ORu=function(f,D,F,Z,I){var p=f.Lp,z=f.videoData;z.J=F;var H=g.OH(f);F=new T2T(z,F,D,H?H.itag:"",Z);f.V.experiments.Hs("html5_refactor_sabr_video_format_selection_logging")?(F.videoId=I,f.ym=F):p.qoe&&cOJ(p.qoe,F);I=f.Tv;I.J=0;I.Y=0;f.publish("internalvideoformatchange",z,D==="m")}; g.OH=function(f){var D=nV(f);return rs(D)||!f.hk?null:g.NC(f.hk.Y.videoInfos,function(F){return D.G(F)})}; nV=function(f){if(f.hk){var D=f.Tv;var F=f.hk;f=f.O2();var Z=MdX(D);if(rs(Z)){if(Z=D.aZ(F).compose(UrJ(D,F)).compose(aID(D,F)).compose(Lfy(D,F.videoData)).compose(lIa(D,F.videoData,F)).compose(r1T(D,F)).compose(SSu(D,F)),rs(f)||D.Z("html5_apply_pbr_cap_for_drm"))Z=Z.compose(c1d(D,F))}else D.Z("html5_perf_cap_override_sticky")&&(Z=Z.compose(r1T(D,F))),D.Z("html5_ustreamer_cap_override_sticky")&&(Z=Z.compose(c1d(D,F)));Z=Z.compose(SSu(D,F));D=F.videoData.Ek.compose(Z).compose(F.videoData.XP).compose(f)}else D= Io;return D}; Vbu=function(f){var D=f.Tv;f=f.videoData;var F=Lfy(D,f);D.Z("html5_disable_client_autonav_cap_for_onesie")||F.compose(lIa(D,f));return F}; lK=function(f){if(f.videoData.B&&f.videoData.B.Y){var D=nV(f);if(f.loader&&(f=f.loader,!f.MR()))if(f.policy.Y){var F=f.X;if(D.isLocked()&&F.Y.J||F.J===void 0||!D.equals(F.J)){F=f.X.J;G6c(f.X,D);var Z,I;if(I=D.isLocked()&&D.reason==="m"){I=f.X;var p=(Z=I.G)==null?void 0:Z.info.video.qualityOrdinal;I=I.zx?!0:I.G?D.Y!==p?!0:!I.Y.J||I.Xr.i_&&I.Y.Y===I.G.info.itag?!1:!0:!1}Z=I;I=f.policy.Ye&&D.reason==="l";F=F.Y>D.Y&&D.reason==="b";Z||I||F?(f.Yo.EU({reattachOnConstraint:Z?"u":I?"drm":"perf",lo:D.J,up:D.Y}), f.policy.i_||(f.X.Y.J=!1)):(f.policy.i_&&(f.X.Y.J=!1),hj(f))}}else!HMf(f.Y,D)&&f.videoTrack&&(I=f.Y.Y,xVI(f,oSu(f.Y,D)),lUT(f),F=D.isLocked()&&D.reason==="m"&&f.Y.KQ,Z=f.policy.Ye&&D.reason==="l"&&oH(f.videoTrack),D=I.Y>D.Y&&D.reason==="b",I=f.Y.LQ&&!qq(),F||Z||D||I?f.Yo.EU({reattachOnConstraint:F?"u":Z?"drm":I?"codec":"perf"}):hj(f))}}; nMJ=function(f){var D;return!!(f.Z("html5_native_audio_track_switching")&&g.yy&&((D=f.videoData.J)==null?0:ua(D)))}; YVE=function(f){if(!nMJ(f))return!1;var D;f=(D=f.mediaElement)==null?void 0:D.audioTracks();return!!(f&&f.length>1)}; Dpa=function(f){var D=PrI(f);if(D){var F=f5y[D]||D;return f.videoData.getAvailableAudioTracks().find(function(Z){return Z.dw.getName()===F})}}; Fhw=function(f){var D,F=(D=f.mediaElement)==null?void 0:D.audioTracks();if(F){D=[];for(var Z=0;Z0&&(D.Tm=F.J7));D.Ye=F.j6;D.QZ=Ir(Z,{},F.B||void 0,Va(F));D.JN=$7(F)&&(g.rQ(Z)||g.HU(Z));G6(F)&&(D.X=!0,D.Vp=Z.Z("html5_estimate_live_partial_slice_duration"),g.hm(Z)&&!g.xo()&&Z.Z("html5_force_audio_to_cover_video_keyframe")? D.Z5=!1:D.Z5=!0,D.M0||F.isLivePlayback||!Z.Z("html5_sabr_non_streaming_xhr_vod_client_request_cancellation")||(D.g$=!0,D.fl=g.Pf(Z.experiments,"html5_sabr_non_streaming_xhr_vod_request_cancellation_timeout_ms")),Z.Z("html5_sabr_report_partial_segment_estimated_duration")&&(D.Go=!0),D.Y=!0,D.W1=Z.Z("html5_trigger_loader_when_idle_network"),D.KP=Z.Z("html5_sabr_parse_live_metadata_playback_boundaries"),D.m1=Z.Z("html5_consume_onesie_next_request_policy_for_sabr"),D.Mh=Z.Z("html5_sabr_report_next_ad_break_time"), D.Ld=Z.Z("html5_log_high_res_buffer_timeline")&&Z.Oq(),D.UN=Z.Z("html5_remove_stuck_slices_beyond_max_buffer_limits"),D.uK=Z.Z("html5_gapless_sabr_btl_last_slice")&&AZ(F),D.w4=Z.Z("html5_reset_last_appended_slice_on_seek")&&AZ(F),ME(F)?(D.FP=!0,D.Tg=Z.Z("html5_disable_variability_tracker_for_live"),D.b3=!0,Z.Z("html5_simplified_backup_timeout_sabr_live")&&(D.B_=!0,D.JS=D.O$)):D.Xt=Z.Z("html5_probe_request_on_sabr_request_progress"),D.XP=Z.Z("html5_serve_start_seconds_seek_for_post_live_sabr"),D.Fd= Z.Z("html5_flush_index_on_updated_timestamp_offset"),D.Bs=G6(F),D.b_=Z.Z("html5_ignore_partial_segment_from_live_readahead"),Z.Z("html5_include_partial_segment_for_jumbo_ll")&&tZ(F)&&(D.b_=!1),D.dg=Z.Z("html5_use_non_active_broadcast_for_post_live"),D.Ir=Z.Z("html5_use_centralized_player_time"),D.AN=Z.Z("html5_log_centralized_player_time"),D.NV=Z.Z("html5_use_loader_check_duration"),D.gM=Z.Z("html5_consume_onesie_sabr_seek"),D.xo=Z.Z("html5_enable_sabr_seek_loader_refactor"),F.enableServerStitchedDai&& (D.J=!0,D.Z3=Z.Z("html5_reset_server_stitch_state_for_non_sabr_seek"),D.Tn=Z.Z("html5_remove_ssdai_append_pause")&&!F.nE(),D.HD=Z.Z("html5_ssdai_log_ssevt_in_loader_timers")),D.LB=Z.Oq(),D.latencyClass=F.latencyClass,D.xw=F.jj()&&Z.Z("html5_prebuffer_instream_media_live")&&Z.Z("html5_report_prefetch_requests"),D.fP=!F.jj()&&Z.Z("html5_prebuffer_instream_media_vod")&&Z.Z("html5_report_prefetch_requests"),D.Gg=Z.Z("html5_disable_prebuffer_for_limited_memory_devices"));D.Gi=g.G4E(F);Y9(Z.X,Ph.BITRATE)&& (D.Eq=NaN);if(H=g.Pf(Z.experiments,"html5_request_size_max_kb"))D.Ps=H*1024;Z.X.J?D.Q3="; "+Ph.EXPERIMENTAL.name+"=allowed":Z.Z("html5_enable_cobalt_tunnel_mode")&&g.xo()&&(Z=Ph.TUNNELMODE,D.Q3="; "+Z.name+"="+Z.valid);F=F.serverPlaybackStartConfig;(F==null?0:F.enable)&&(F==null?0:F.playbackStartPolicy)&&(D.zv=!0,Al(D,F.playbackStartPolicy,2));F=I5c(f);f.Z_.removeAll();a:{Z=f.Nm.uH;if(H=f.videoData.videoId)if(I=Z.Y.get(H)){Z.Y.remove(H);Z=I;break a}Z=void 0}f.loader=new us(f,f.lE,D,f.videoData.Y, f.videoData.B,nV(f),F,f.videoData.enableServerStitchedDai,Z,f.videoData.Jb);D=f.videoData.Z("html5_disable_preload_for_ssdai_with_preroll")&&f.videoData.isLivePlayback&&f.iM()?!0:f.U4&&l7T(f);f.loader.initialize(f.getCurrentTime(),nV(f),D);f.videoData.probeUrl&&(f.loader.b3=f.videoData.probeUrl);if(f.Sk.length||f.U4)f.videoData.cotn||YO(f,!1);pqf(f.SU,f.loader);f.D5&&(sPc(f.loader,f.D5),f.Gx("sdai",{sdl:1}));g.zy(f.videoData)&&(f=f.loader,f.policy.y3=f.policy.Lo)}; EH=function(f,D){D=D===void 0?!0:D;f.V.Gg&&!f.videoData.backgroundable&&f.mediaElement&&!f.RP()&&(f.isBackground()&&f.mediaElement.b0()?(f.Gx("bgmobile",{suspend:1}),f.Kc(!0,!0)):!f.isBackground()&&D&&gh(f)&&f.Gx("bgmobile",{resume:1}))}; xO=function(f){f.loader&&(f.loader.dispose(),f.loader=null,pqf(f.SU,null));f.W_()?sZy(f):f.Le()}; sZy=function(f){if(f.gY)if(f.NZ(),f.gY.T)try{f.V.Oq()&&f.Gx("rms",{l:"vprms",sr:f.W_(),rs:hJ(f.gY),pn:f.oZ()});f.gY.clear();var D;(D=f.mediaElement)==null||D.q_(f.gY);f.gY=null}catch(F){D=new g.by("Error while clearing Media Source in VideoPlayer: "+F.name+", "+F.message),D=s_(D),f.handleError(D),f.Le()}else f.Le()}; qFw=function(f,D){if(f.gY)return f.gY.B;a:{D=D===void 0?!1:D;D=D===void 0?!1:D;try{g.xo()&&f.videoData.v$()&&f.mediaElement.RU();var F=f.mediaElement.F0(f.GX(),f.dD())}catch(I){if($rD(f.X3,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",I);f.b4("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}f.yh(F,!1,!1,D)}var Z;return((Z=f.F0())==null?void 0:Z.B)||null}; Htu=function(f,D){D=D===void 0?!1:D;if(f.loader){f.videoData.enableServerStitchedDai&&jPd(f.loader);var F=f.getCurrentTime()-f.R_();f.loader.seek(F,{zg:D}).U3(function(){})}else x5T(f)}; oiy=function(f,D){if(f.gY){f.gY.Oe(D);var F;(F=f.loader)!=null&&F.policy.Ir&&(F.S=D)}}; e0d=function(f,D){ORu(f,D.reason,D.Y.info,D.token,D.videoId)}; e4=function(f,D){f.publish("internalvideodatachange",D===void 0?"dataupdated":D,f.videoData)}; Khc=function(f){for(var D=g.a("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),F=D.next();!F.done;F=D.next())f.fu.D(f.mediaElement,F.value,f.oX,f);f.V.mz&&f.mediaElement.BK()&&(f.fu.D(f.mediaElement,"webkitplaybacktargetavailabilitychanged",f.Tob,f),f.fu.D(f.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",f.CJb,f))}; jZX=function(f){g.Rg(f.sK);k8w(f)||(f.sK=g.$o(function(){return k8w(f)},100))}; k8w=function(f){var D=f.mediaElement;D&&f.hm&&!f.videoData.N&&!Gt("vfp",f.Sj.timerName)&&D.FJ()>=2&&!D.isEnded()&&FH(D.NI())&&f.Sj.tick("vfp");return(D=f.mediaElement)&&!f.videoData.N&&D.getDuration()>0&&(D.isPaused()&&D.FJ()>=2&&FH(D.NI())&&(Gt("pbp",f.Sj.timerName)||f.Sj.tick("pbp"),!f.videoData.B_||f.sR||D.isSeeking()||(f.sR=!0,f.publish("onPlaybackPauseAtStart"))),D=D.getCurrentTime(),RM(f.uP,D))?(f.Kv(),!0):!1}; hNf=function(f){f.Lp.onProgress();if(mj(f.videoData)&&Date.now()>f.IS+6283){if(f.Z("html5_unified_live_latency_reporting")){var D=f.Lp;D.qoe&&CCD(D.qoe)}else!f.isAtLiveHead()||f.videoData.Y&&gq(f.videoData.Y)||(D=f.Lp,D.qoe&&CCD(D.qoe));D=g.jo(f.V);var F=f.Z("html5_always_log_rawlat");(D||F)&&f.Gx("rawlat",{l:Bp(f.Ls,"rawlivelatency").toFixed(3)});f.IS=Date.now()}f.videoData.J&&ua(f.videoData.J)&&(D=f.qG())&&D.videoHeight!==f.lX&&(f.lX=D.videoHeight,ORu(f,"a",ity(f,f.videoData.Tx)))}; ity=function(f,D){if(D.Y.video.quality==="auto"&&ua(D.getInfo())&&f.videoData.JN)for(var F=g.a(f.videoData.JN),Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,Z.getHeight()===f.lX&&Z.Y.video.quality!=="auto")return Z.getInfo();return D.getInfo()}; rlc=function(f){if(!mj(f.videoData))return NaN;var D=0;f.loader&&f.videoData.Y&&(D=ME(f.videoData)?f.loader.pP.yz()||0:f.videoData.Y.Tx);return(0,g.m5)()/1E3-f.zi()-D}; AjD=function(f){f.mediaElement&&f.mediaElement.RP()&&(f.OO=(0,g.m5)());f.V.LB?g.AW(function(){yjX(f)},0):yjX(f)}; yjX=function(f){var D;if((D=f.gY)==null||!D.z1()){if(f.mediaElement)try{f.qJ=f.mediaElement.playVideo()}catch(Z){Xp(f,"err."+Z)}if(f.qJ){var F=f.qJ;F.then(void 0,function(Z){if(!(g.O(f.playerState,4)||g.O(f.playerState,256)||f.qJ!==F||Z&&Z.name==="AbortError"&&Z.message&&Z.message.includes("load"))){var I="promise";Z&&Z.name&&(I+=";m."+Z.name);Xp(f,I);f.gj=!0;f.videoData.qb=!0}})}}}; Xp=function(f,D){g.O(f.playerState,128)||(f.cI(b0(f.playerState,1028,9)),f.Gx("dompaused",{r:D}),f.publish("onAutoplayBlocked"))}; gh=function(f,D){D=D===void 0?!1:D;if(!f.mediaElement||!f.videoData.B)return!1;var F=D;F=F===void 0?!1:F;var Z=null;var I;if((I=f.videoData.B)==null?0:I.Y){Z=qFw(f,F);var p;(p=f.loader)==null||p.resume()}else xO(f),f.videoData.Tx&&(Z=f.videoData.Tx.Yw());I=f.mediaElement.b0();F=!1;I&&I.equals(Z)||($py(f,Z),F=!0);g.O(f.playerState,2)||(Z=f.SU,D=D===void 0?!1:D,Z.X||!(Z.B>0)||Z.mediaElement&&Z.mediaElement.getCurrentTime()>0||(D={pF:"seektimeline_resumeTime",zg:D},Z.videoData.N||(D.seekSource=15),Z.seekTo(Z.B, D)));a:{D=F;if(G6(f.videoData)){if(!f.videoData.S$())break a}else if(!g.ao(f.videoData))break a;if(f.mediaElement)if((Z=f.videoData.X)&&f.mediaElement.BK()){I=f.mediaElement.Cp();if(f.a$)if(I!==f.a$.element)Pp(f);else if(D&&Z.flavor==="fairplay"&&!Xm())Pp(f);else break a;if(f.Z("html5_report_error_for_unsupported_tvos_widevine")&&Xm()&&Z.flavor==="widevine")f.b4("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{f.a$=new P2f(I,f.videoData,f.V,f.mediaElement);f.a$.subscribe("licenseerror", f.kN,f);f.a$.subscribe("qualitychange",f.fxF,f);f.a$.subscribe("heartbeatparams",f.l5,f);f.a$.subscribe("keystatuseschange",f.kX,f);f.a$.subscribe("ctmp",f.Gx,f);D=g.a(f.Z_.keys);for(Z=D.next();!Z.done;Z=D.next())Z=f.Z_.get(Z.value),f.a$.y7(Z);f.Z("html5_eme_loader_sync")||f.Z_.removeAll()}}else f.b4("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return F}; $py=function(f,D){f.Sj.tick("vta");Wk("vta",void 0,"video_to_ad");f.getCurrentTime()>0&&qVD(f.SU,f.getCurrentTime());f.mediaElement.activate(D);f.gY&&FM(4);!f.videoData.N&&f.playerState.isOrWillBePlaying()&&f.Th.start();if(nMJ(f)){var F;if(D=(F=f.mediaElement)==null?void 0:F.audioTracks())D.onaddtrack=function(){Fhw(f)},D.onremovetrack=function(){Fhw(f)},D.onchange=function(){f.publish("internalaudioformatchange",f.videoData,!0)}}}; Pp=function(f){f.a$&&(f.a$.dispose(),f.a$=null)}; VEc=function(f){var D=D===void 0?!1:D;f.mediaElement&&(f.gY?(Pp(f),f.Le(),qFw(f,D)):(f.videoData.Tx&&f.videoData.Tx.G0(),f.mediaElement.stopVideo()),f.playVideo())}; RNa=function(f,D){f.V.Z("html5_log_rebuffer_reason")&&(D={r:D,lact:Ve()},f.mediaElement&&(D.bh=f.mediaElement.d$()),f.Gx("bufreason",D))}; dpX=function(f,D){if(f.V.Oq()&&f.mediaElement){var F=f.mediaElement.a_();F.omt=(f.mediaElement.getCurrentTime()+f.R_()).toFixed(3);F.ps=f.playerState.state.toString(16);F.rt=(g.aZ(f.Lp.provider)*1E3).toFixed();F.e=D;f.Y0[f.tC++%5]=F}}; QZu=function(f){if(f.V.Oq()){f.Y0.sort(function(Z,I){return+Z.rt-+I.rt}); for(var D=g.a(f.Y0),F=D.next();!F.done;F=D.next())F=F.value,f.Gx("vpe",Object.assign({t:F.rt},F));f.Y0=[];f.tC=0}}; Csd=function(f){if(g.go("cobalt")&&g.go("nintendo switch")){var D=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;f.Gx("nxdock",{d:D})}}; YO=function(f,D){var F;(F=f.loader)==null||Euf(F,D)}; u$T=function(f){qV(f.videoData,"html5_set_debugging_opt_in")&&(f=g.JX(),f.Kp(183)||(NP(183,!0),f.save()))}; mpX=function(f){return f.Z("html5_remove_ios_7_hack_force_play")}; DKX=function(f,D){f.Nm.XJ()||(f.Gx("sgap",{f:D}),f.Nm.clearQueue(!1,D==="pe"))}; vp=function(f){return f.Z("html5_disable_video_player_initiated_seeks")&&G6(f.videoData)}; TDs=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);hO(this.api,"isLifaAdPlaying",function(){return D.api.isLifaAdPlaying()}); this.events.D(f,"serverstitchedvideochange",function(){var F;(F=D.api.getVideoData())!=null&&F.nE()&&(D.api.isLifaAdPlaying()?(D.playbackRate=D.api.getPlaybackRate(),D.api.setPlaybackRate(1)):D.api.setPlaybackRate(D.playbackRate))}); this.playbackRate=1}; f7=function(f){jG.call(this,"Bucle",g.dZ.on);this.U=f;var D=f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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"}}]}:kfJ();this.setIcon(D);this.subscribe("select",this.J,this);f.createClientVe(this.element,this,28661);this.D(f,"settingsMenuVisibilityChanged",this.Y);this.listen("click",this.logClick);this.D(f,"onLoopChange",this.onLoopChange);i2(this,f.getLoopVideo());f.Pp().tN(this)}; btE=function(f){z9.call(this,f);var D=this;f.addEventListener("settingsMenuInitialized",function(){D.menuItem||(D.menuItem=new f7(D.api),g.N(D,D.menuItem))}); f.addEventListener("videodatachange",function(F,Z){F=D.api.getPresentingPlayerType()===2;var I;(I=D.menuItem)==null||I.VL(!Z.isLivePlayback&&!F)})}; MEJ=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);hO(this.api,"seekToChapterWithAnimation",function(F){D.seekToChapterWithAnimation(F)}); hO(this.api,"seekToTimeWithAnimation",function(F,Z){D.seekToTimeWithAnimation(F,Z)}); hO(this.api,"renderChapterSeekingAnimation",function(F,Z,I){D.api.renderChapterSeekingAnimation(F,Z,I)}); hO(this.api,"setMacroMarkers",function(F){D.setMacroMarkers(f,F)}); hO(this.api,"changeMarkerVisibility",function(F,Z,I){D.changeMarkerVisibility(F,Z,I)}); hO(this.api,"isSameMarkerTypeVisible",function(F){return D.isSameMarkerTypeVisible(F)})}; tEy=function(f,D,F){var Z=f.api.getCurrentTime()*1E30;)switch(D=qS.shift(),D.type){case "ERROR":sX.Q$(D.payload);break;case "EVENT":sX.logEvent(D.eventType,D.payload)}}); hO(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));hO(this.api,"updateDownloadState",this.updateDownloadState.bind(this));hO(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));hO(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));hO(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));hO(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));hO(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; EiD=function(f){z9.call(this,f);var D=this;this.loaded=!1;this.overlay=null;this.events=new g.ia(f);g.N(this,this.events);this.Y=new g.ia(f);g.N(this,this.Y);this.events.D(f,"modulesCreated",function(){D.L1()&&D.load()}); this.events.D(f,"modulesDestroyed",function(F){var Z=!0;switch(F){case 2:case 3:Z=!1;break;case 4:Z=D.api.getPresentingPlayerType()===1}Z&&D.unload()})}; p7=function(f){z9.call(this,f);var D=this;hO(f,"getAvailableQualityData",function(){return D.getAvailableQualityData()}); hO(f,"getAvailableQualityDataAndMessaging",function(){return D.getAvailableQualityDataAndMessaging()})}; Jjc=function(f,D,F){var Z=[],I=D?156595:151874;f=g.a(f);for(var p=f.next();!p.done;p=f.next()){var z=p.value;p=z.video;z={formatId:z.id,qualityLabel:p.qualityLabel,quality:p.quality,isPlayable:D};if(p=F.get(p.qualityLabel))z.paygatedQualityDetails={paygatedIndicatorText:p.paygatedIndicatorText,endpoint:p.endpoint,veType:I,trackingParams:p.trackingParams};Z.push(z)}return Z}; u_f=function(f){for(var D=0,F=0;F0&&I>0&&(F.width+=I,g.Dx(D.element,"width",F.width+"px")));f.size=F}}; g.Ap=function(f,D){var F=f.Y[f.Y.length-1];F!==D&&(f.Y.push(D),qHs(f,F,D))}; g.$K=function(f){if(!(f.Y.length<=1)){var D=f.Y.pop(),F=f.Y[0];f.Y=[F];qHs(f,D,F,!0)}}; qHs=function(f,D,F,Z){HVy(f);D&&(D.unsubscribe("size-change",f.CU,f),D.unsubscribe("back",f.C7,f));F.subscribe("size-change",f.CU,f);F.subscribe("back",f.C7,f);if(f.hN){g.IC(F.element,Z?"ytp-panel-animate-back":"ytp-panel-animate-forward");F.CQ(f.content);F.focus();f.element.scrollLeft=0;f.element.scrollTop=0;var I=f.size;sMc(f);g.kH(f.element,I);f.B=new g.xX(function(){oOy(f,D,F,Z)},20,f); f.B.start()}else F.CQ(f.content),D&&D.detach()}; oOy=function(f,D,F,Z){f.B.dispose();f.B=null;g.IC(f.element,"ytp-popup-animating");Z?(g.IC(D.element,"ytp-panel-animate-forward"),g.zP(F.element,"ytp-panel-animate-back")):(g.IC(D.element,"ytp-panel-animate-back"),g.zP(F.element,"ytp-panel-animate-forward"));g.kH(f.element,f.size);f.G=new g.xX(function(){g.zP(f.element,"ytp-popup-animating");D.detach();g.sE(D.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);f.G.dispose();f.G=null},250,f); f.G.start()}; HVy=function(f){f.B&&g.OG(f.B);f.G&&g.OG(f.G)}; VO=function(f){g.yO.call(this,f,"ytp-shopping-product-menu");this.G8=new g.i3(this.U);g.N(this,this.G8);this.hide();g.Ap(this,this.G8);g.uC(this.U,this.element,4)}; kQJ=function(f,D,F){var Z,I=D==null?void 0:(Z=D.text)==null?void 0:Z.simpleText;I&&(F=K6u(f,F,I,D==null?void 0:D.icon,D==null?void 0:D.secondaryIcon),D.navigationEndpoint&&F.listen("click",function(){f.U.wY("innertubeCommand",D.navigationEndpoint);f.hide()},f))}; jMu=function(f,D,F){var Z,I=D==null?void 0:(Z=D.text)==null?void 0:Z.simpleText;I&&K6u(f,F,I,D==null?void 0:D.icon).listen("click",function(){var p;(D==null?void 0:(p=D.icon)==null?void 0:p.iconType)==="HIDE"?f.U.publish("featuredproductdismissed"):D.serviceEndpoint&&f.U.wY("innertubeCommand",D.serviceEndpoint);f.hide()},f)}; K6u=function(f,D,F,Z,I){D=new g.Fj(g.Zg({},[],!1,!!I),D,F);I&&D.updateValue("secondaryIcon",iVc(I));D.setIcon(iVc(Z));g.N(f,D);f.G8.tN(D,!0);return D}; iVc=function(f){if(!f)return null;switch(f.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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 dF();case "HIDE":return{K:"svg",W:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"g",L:[{K:"path",W:{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 Tu()}}; RL=function(f){kK.call(this,f,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.S=!0;this.overflowButton=new g.x({K:"button",ST:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.x({K:"img",C:"ytp-suggested-action-badge-img",W:{src:"{{url}}"}}); this.thumbnailImage.hide();g.N(this,this.thumbnailImage);this.thumbnailIcon=new g.x({K:"div",C:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.N(this,this.thumbnailIcon);this.banner=new g.x({K:"a",C:"ytp-suggested-action-container",L:[this.thumbnailImage,this.thumbnailIcon,{K:"div",C:"ytp-suggested-action-details",L:[{K:"text",C:"ytp-suggested-action-title",nQ:"{{title}}"},{K:"text",C:"ytp-suggested-action-subtitle",nQ:"{{subtitle}}"},{K:"text",C:"ytp-suggested-action-metadata-text", nQ:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.CQ(this.G.element);this.D(this.U,"videodatachange",this.onVideoDataChange);this.D(this.U,g.Nh("suggested_action_view_model"),this.qIy);this.D(this.U,g.gA("suggested_action_view_model"),this.tUF);this.D(this.overflowButton.element,"click",this.X1);this.D(f,"featuredproductdismissed",this.pm);this.U.createServerVe(this.banner.element,this.banner,!0)}; h1y=function(f){f.isInitialized&&(f.enabled=f.isVisible,f.KQ=f.isVisible,K7(f),f.h7(),f.thumbnailImage.VL(f.isVisible),f.shouldHideDismissButton||f.dismissButton.VL(f.isVisible),f.shouldShowOverflowButton&&f.overflowButton.VL(f.isVisible))}; dP=function(){RL.apply(this,arguments)}; y3T=function(f){z9.call(this,f);this.Y=new dP(this.api);g.N(this,this.Y);g.uC(this.api,this.Y.element,4)}; QO=function(f){z9.call(this,f);var D=this;this.Y=!0;var F=new g.ia(f);g.N(this,F);F.D(f,"internalaudioformatchange",function(Z,I){A3X(D,Z,I)}); F.D(f,"annotationvisibility",function(Z){D.api.Z("web_fix_annotations")&&$Ds(D,(294).toString(),{boolValue:Z})}); F.D(f,"videoplayerreset",function(){V4w(D)}); F.D(f,"videodatachange",function(Z,I){D.onVideoDataChange(Z,I)})}; A3X=function(f,D,F){if(F){var Z="";R1D(f,D)&&(Z=D,f.api.j().b3=D);if(Z&&dDa(f,Z)){y4c(f.api,Z);var I;f5(A8(f.api.j(),(I=f.api.getVideoData())==null?void 0:g.Pt(I)),function(p){var z=Z;QMu(p)!==z&&$Ds(f,CKu(p),{stringValue:z})})}}}; V4w=function(f){var D;if((D=ch())==null?0:D.size){var F;f5(A8(f.api.j(),(F=f.api.getVideoData())==null?void 0:g.Pt(F)),function(Z){(Z=QMu(Z))&&dDa(f,Z)&&(f.api.j().b3=Z)})}}; ThI=function(f,D){DP(f5(f5(f.Ge(),function(F){return P_I(F,[CKu(D)])}),function(F){if(F){F=g.a(F); for(var Z=F.next();!Z.done;Z=F.next()){var I=Z.value;Z=I.key;I=I.value;Z&&I&&(mDu([{settingItemId:Z,settingOptionValue:I}]),V4w(f))}}}),function(){f.Y=!0})}; R1D=function(f,D){f=f.api.getAvailableAudioTracks();f=g.a(f);for(var F=f.next();!F.done;F=f.next())if(F=F.value,F.getLanguageInfo().getId()===D)return F;return null}; QMu=function(f){f=CKu(f);var D=ch();f=D?D.get(f):void 0;return f&&f.stringValue?f.stringValue:""}; CKu=function(f){var D=(484).toString();f&&(D=(483).toString());return D}; dDa=function(f,D){var F;return D.split(".")[0]!==""&&(((F=f.api.getVideoData())==null?void 0:!DU(F))||f.api.Z("should_persist_audio_selection"))}; $Ds=function(f,D,F){mDu([{settingItemId:D,settingOptionValue:F}]);f5(f.Ge(),function(Z){Dlu(Z,D,F)})}; mDu=function(f){var D=ch();D||(D=new Map);f=g.a(f);for(var F=f.next();!F.done;F=f.next())F=F.value,D.set(F.settingItemId,F.settingOptionValue);D=JSON.stringify(Object.fromEntries(D));g.w0("yt-player-user-settings",D,2592E3)}; bVw=function(){this.label="Dobladas autom\u00e1ticamente"}; g.C7=function(f,D,F,Z,I,p,z){g.Fj.call(this,g.Zg({"aria-haspopup":"true"}),D,f);this.x8=Z;this.N=!1;this.B=null;this.options={};this.Qj=new g.i3(F,void 0,f,I,p,z);g.N(this,this.Qj);this.listen("keydown",this.VK);this.listen("click",this.open)}; M4E=function(f){if(f.B){var D=f.options[f.B];D.element.getAttribute("aria-checked");D.element.setAttribute("aria-checked","false");f.B=null}}; t4D=function(f,D){g.hp(f.Qj);for(var F={},Z=!1,I=0;Ih.start&&F>=5;m+=U}I=m.substr(0,4)+" "+m.substr(4,4)+" "+m.substr(8,4)+" "+(m.substr(12,4)+" "+m.substr(16,4))}else I="";z={video_id_and_cpn:String(D.videoId)+" / "+I,codecs:"",dims_and_frames:"",bandwidth_kbps:z.toFixed(0)+" Kbps",buffer_health_seconds:K.toFixed(2)+" s", date:""+(new Date).toString(),drm_style:k?"":"display:none",drm:k,debug_info:F,extra_debug_info:"",bandwidth_style:A,network_activity_style:A,network_activity_bytes:H.toFixed(0)+" KB",shader_info:y,shader_info_style:y?"":"display:none",playback_categories:""};H=Z.clientWidth+"x"+Z.clientHeight+(h>1?"*"+h.toFixed(2):"");K="-";p.totalVideoFrames&&(K=(p.droppedVideoFrames||0)+" dropped of "+p.totalVideoFrames);z.dims_and_frames=H+" / "+K;f=f.getVolume();H=vRJ(D);var G;if((G=D.G)==null?0:G.audio.J)G= "VB";else{var W;G=((W=D.G)==null?0:W.audio.Y)?"DRC":Math.round(f*H)+"%"}W=Math.round(f)+"% / "+G;G=D.Bh.toFixed(1);isFinite(Number(G))&&(W+=" (content loudness "+G+"dB)");z.volume=W;z.resolution=Z.videoWidth+"x"+Z.videoHeight;if(Z=D.J){if(W=Z.video)G=W.fps,G>1&&(z.resolution+="@"+G),(G=p.RX)&&G.video&&(z.resolution+=" / "+G.video.width+"x"+G.video.height,G.video.fps>1&&(z.resolution+="@"+G.video.fps)),z.codecs=lLu(Z),!D.G||Z.audio&&Z.video?Z.Xn&&(z.codecs+=" / "+Z.Xn+"A"):z.codecs+=" / "+lLu(D.G), W.Y||W.primaries?(G=W.Y||"unknown",G==="smpte2084"?G+=" (PQ)":G==="arib-std-b67"&&(G+=" (HLG)"),z.color=G+" / "+(W.primaries||"unknown"),z.color_style=""):z.color_style="display:none";if(Z.debugInfo)for(z.fmt_debug_info="",Z=g.a(Z.debugInfo),W=Z.next();!W.done;W=Z.next())W=W.value,z.fmt_debug_info+=W.label+":"+W.text+" ";z.fmt_debug_info_style=z.fmt_debug_info&&z.fmt_debug_info.length>0?"":"display:none"}Z=D.isLivePlayback;W=D.rU;z.live_mode_style=Z||W?"":"display:none";z.live_latency_style=Z?"": "display:none";if(W)z.live_mode="Post-Live"+(ME(D)?" Manifestless":"");else if(Z){W=p.GY;z.live_latency_secs=W.toFixed(2)+"s";Z=ME(D)?"Manifestless, ":"";D.Al&&(Z+="Windowed, ");G="Uncertain";if(W>=0&&W<120)if(D.latencyClass&&D.latencyClass!=="UNKNOWN")switch(D.latencyClass){case "NORMAL":G="Optimized for Normal Latency";break;case "LOW":G="Optimized for Low Latency";break;case "ULTRALOW":G="Optimized for Ultra Low Latency";break;default:G="Unknown Latency Setting"}else G=D.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";Z+=G;(W=p.Gq)&&(Z+=", seq "+W.sequence);z.live_mode=Z}!p.isGapless||AZ(D)&&p.XJ||(z.playback_categories+="Gapless ");z.playback_categories_style=z.playback_categories?"":"display:none";z.bandwidth_samples=p.oJ;z.network_activity_samples=p.A9;z.live_latency_samples=p.UA;z.buffer_health_samples=p.TD;p=g.zy(D);if(D.cotn||p)z.cotn_and_local_media=(D.cotn?D.cotn:"null")+" / "+p;z.cotn_and_local_media_style=z.cotn_and_local_media?"":"display:none"; qV(D,"web_player_release_debug")?(z.release_name=q[36],z.release_style=""):z.release_style="display:none";z.debug_info&&V.length>0&&z.debug_info.length+V.length<=60?z.debug_info+=" "+V:z.extra_debug_info=V;z.extra_debug_info_style=z.extra_debug_info&&z.extra_debug_info.length>0?"":"display:none";return z}; lLu=function(f){var D=/codecs="([^"]*)"/.exec(f.mimeType);return D&&D[1]?D[1]+" ("+f.itag+")":f.itag}; wP=function(f,D,F,Z,I){g.x.call(this,{K:"div",C:"ytp-horizonchart"});this.T=D;this.sampleCount=F;this.G=Z;this.X=I;this.index=0;this.heightPx=-1;this.B=this.J=null;this.Y=Math.round(f/F);this.element.style.width=this.Y*this.sampleCount+"px";this.element.style.height=this.T+"em"}; W0=function(f,D){if(f.heightPx===-1){var F=null;try{F=g.TR("CANVAS"),f.J=F.getContext("2d")}catch(H){}if(f.J){var Z=f.Y*f.sampleCount;f.B=F;f.B.width=Z;f.B.style.width=Z+"px";f.element.appendChild(f.B)}else for(f.sampleCount=Math.floor(f.sampleCount/4),f.Y*=4,F=0;F1?2:1,f.B.height=f.heightPx*F,f.B.style.height= f.heightPx+"px",f.J.scale(1,F)));D=g.a(D);for(Z=D.next();!Z.done;Z=D.next()){F=f;var I=f.index,p=Z.value;for(Z=0;Z+20&&g.tB(D.J.element);Z.classList.add("ytp-timely-actions-overlay");D.J.element.appendChild(Z)}); g.N(this,this.J);this.Z("web_player_overlay_positioned_layout")?this.events.D(f,"basechromeinitialized",function(){D.api.Np(D.J.element,4,!0);D.J.element.setAttribute("data-overlay-order","10")}):g.uC(this.api,this.J.element,4)}; Z7u=function(f){f.timelyActions&&(f.G=f.timelyActions.reduce(function(D,F){if(F.cueRangeId===void 0)return D;D[F.cueRangeId]=0;return D},{}))}; l3=function(f,D){if(f.timelyActions){f=g.a(f.timelyActions);for(var F=f.next();!F.done;F=f.next())if(F=F.value,F.cueRangeId===D)return F}}; INE=function(f,D){if((f=l3(f,D))&&f.onCueRangeExit)return w4(f.onCueRangeExit)}; PKc=function(f,D){return f.B===void 0?!1:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(D.seekLengthMilliseconds)===5E3?f.B===72:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(D.seekLengthMilliseconds)===1E4?f.B===74:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(D.seekLengthMilliseconds)===5E3?f.B===71:D.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(D.seekLengthMilliseconds)===1E4?f.B===73:!1}; p0a=function(f,D){var F=Number(D==null?void 0:D.maxVisibleDurationMilliseconds);F&&(EO(f),f.KQ=setTimeout(function(){if(f.Y!==void 0&&(D==null?void 0:D.cueRangeId)===f.Y){f.Jb=!1;var Z=INE(f,f.Y);Z&&f.api.wY("innertubeCommand",Z)}},F))}; EO=function(f){f.KQ&&clearTimeout(f.KQ);f.KQ=void 0;f.Jb=!1}; fNc=function(f){if(f=f.getWatchNextResponse()){var D,F;f=(D=f.playerOverlays)==null?void 0:(F=D.playerOverlayRenderer)==null?void 0:F.timelyActionsOverlayViewModel;D=g.Q(f,zys);if(D!=null&&D.timelyActions)return D==null?void 0:D.timelyActions.map(function(Z){return g.Q(Z,sLa)}).filter(function(Z){return!!Z})}}; qOw=function(f){z9.call(this,f);var D=this;yT(this.api,"getPlaybackRate",function(){return D.api.getPlaybackRate()}); yT(this.api,"setPlaybackRate",function(F){typeof F==="number"&&D.api.setPlaybackRate(F)})}; Jp=function(f,D,F,Z){jG.call(this,"Mejora de voz",g.dZ.Bj);this.U=f;this.B=D;this.J=F;this.getVoiceBoostState=Z;this.Y=!1;this.x8=this.U.Z("html5_enable_new_audio_settings_menu")?f.Pp().IU:f.Pp();this.D(f,"onFilterAudioFeatures",this.oG);this.setIcon({K:"svg",W:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M11.48 2.14 3.91 6.68A6 6 0 0 0 1 11.83v.33a6 6 0 0 0 2.91 5.14l7.57 4.54A1 1 0 0 0 13 21V3a1.00 1.00 0 0 0-1.51-.85Zm6.88 2.07a1 1 0 0 0-.00 1.41 9 9 0 0 1 0 12.72 1 1 0 0 0 1.41 1.41 11 11 0 0 0 0-15.55 1 1 0 0 0-1.41 0ZM4.94 8.40l.00-.00L11 4.76v14.46l-6.05-3.63A4 4 0 0 1 3 12.16v-.33a4 4 0 0 1 1.94-3.42ZM15.53 7.05a1 1 0 0 0 0 1.41 5 5 0 0 1 0 7.07 1 1 0 0 0 1.41 1.41 6.99 6.99 0 0 0 0-9.9 1 1 0 0 0-1.41 0Z"}}]}); this.subscribe("select",this.G,this);this.oG()}; u3=function(f){z9.call(this,f);var D=this;this.events=new g.ia(f);g.N(this,this.events);var F=this.api.Z("html5_enable_voice_boost");F&&this.events.D(f,"settingsMenuInitialized",function(){H7X(D)}); hO(this.api,"getVoiceBoostUserPreference",function(){return F?D.getVoiceBoostUserPreference():0}); hO(this.api,"setVoiceBoostUserPreference",function(I){F&&D.setVoiceBoostUserPreference(I)}); hO(this.api,"getVoiceBoostState",function(){return F?D.getVoiceBoostState():1}); var Z;this.Y=(Z=$hu())!=null?Z:0;this.updateEnvironmentData()}; H7X=function(f){f.menuItem||(f.menuItem=new Jp(f.api,function(D){f.setVoiceBoostUserPreference(D)},function(){return f.getVoiceBoostUserPreference()},function(){return f.getVoiceBoostState()}),g.N(f,f.menuItem))}; oKw=function(f){f=f.M7();if(!f)return!1;f=g.zr(f).exp||"";return f.includes("xpv")||f.includes("xpe")}; KpI=function(f){f=g.a(g.Ng(f,!0));for(var D=f.next();!D.done;D=f.next())if(oKw(D.value))return!0;return!1}; ksw=function(f,D){f=g.a(g.Ng(f,!0));for(var F=f.next();!F.done;F=f.next())if(F=F.value,oKw(F)){var Z={potc:"1",pot:D};F.url&&(F.url=s4(F.url,Z))}}; jLX=function(f){return g.l(function(D){if(D.Y==1)return g.po(D,2),g.r(D,f,4);if(D.Y!=2)return g.qC(D,0);g.He(D);g.Zb(D)})}; gP=function(f){z9.call(this,f);var D=this;this.useLivingRoomPoToken=!1;this.X=new g.Hc;this.Y=!1;this.Sj=null;this.S=!1;this.G=null;this.T=!1;var F=f.j().getWebPlayerContextConfig();this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"spsumpreject",function(I,p,z){D.T=p;I&&D.S&&!D.G&&(D.Z("html5_generate_content_po_token")&&z?D.Nk(z):D.Z("html5_generate_session_po_token")&&i7d(D));D.G||D.api.Gx("stp",{s:+D.S,b:+D.T})}); this.events.D(f,"poTokenVideoBindingChange",function(I){D.Nk(I)}); if(this.Z("html5_web_po_on_demand_init"))var Z=this.events.D(f,"videodatachange",function(I,p){p.JV&&!D.S&&(hyI(D),D.events.DK(Z))}); this.useLivingRoomPoToken=!(F==null||!F.useLivingRoomPoToken);f.addEventListener("csiinitialized",function(){D.Sj=f.uv();D.Z("html5_web_po_on_demand_init")?D.B=XMI():hyI(D)}); f.addEventListener("trackListLoaded",this.Cw.bind(this));f.m_(this)}; hyI=function(f){var D=(f.Z("html5_generate_session_po_token")||f.Z("html5_generate_content_po_token"))&&!f.useLivingRoomPoToken;try{if(f.Z("html5_use_shared_owl_instance"))ypa(f);else if(D){f.Sj.J6("pot_isc");var F=g.Pf(f.api.j().experiments,"html5_webpo_kaios_defer_timeout_ms");F?(ApX(f),g.AW(function(){eI(f)},F)):f.Z("html5_webpo_idle_priority_job")?(ApX(f),g.Yj(g.f0(),function(){eI(f)})):eI(f)}}catch(Z){Z instanceof Error&&g.UT(Z)}}; $gd=function(f){var D=Q5(f.experiments,"html5_web_po_request_key");return D?D:g.hm(f)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; VIX=function(f){var D=new SNy,F={},Z=(F["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",F);return new hi(D,f,function(){return Z})}; RyI=function(f){return new yL(f)}; xK=function(f,D){f.Z("html5_webpo_bge_ctmp")&&f.api.Gx(D,{hwpo:!!f.J,hwpor:f.Y})}; ypa=function(f){var D,F;g.l(function(Z){if(Z.Y==1)return xK(f,"swpo_i"),ApX(f),Xz(f),g.r(Z,IB(),2);if(Z.Y!=3)return D=Z.J,xK(f,"swpo_co"),g.r(Z,Iud(D),3);F=Z.J;f.Z("html5_web_po_token_disable_caching")||F.RC(150);f.J=F;xK(f,"swpo_cc");jLX(F.ZL()).then(function(){f.Y=!0;f.X.resolve();xK(f,"swpo_re")}); g.AW(function(){eI(f);xK(f,"swpo_si")},0); g.Zb(Z)})}; QLI=function(f){var D=f.api.j(),F=$gd(D);F=VIX(F);var Z=F.h8.bind(F);F.h8=function(H){var K;return g.l(function(k){if(k.Y==1)return g.r(k,Z(H),2);K=k.J;f.api.Gx("itr",{});return k.return(K)})}; try{var I=RyI({Ns:F,q6:{maxAttempts:5},b6:{xC:"CLEn",disable:D.experiments.Hs("html5_web_po_disable_remote_logging"),ZV:q9s(D.experiments),nU:function(H){var K=dgJ.get(H);K||(K=new X6D(H),K=new Wl(K),dgJ.set(H,K));return K}, tjT:f.Z("wpo_dis_lfdms")?0:1E3},scT:g.UT});var p=new wH({q7:I,Ns:F,onError:g.UT});jLX(p.ZL()).then(function(){f.Y=!0;f.X.resolve()}); f.Z("html5_web_po_token_disable_caching")||p.RC(150);g.N(f,I);g.N(f,p);f.J=p}catch(H){g.UT(H);var z;(z=I)==null||z.dispose()}}; eI=function(f){var D=f.api.j();f.Sj.J6("pot_ist");f.J||QLI(f);f.Z("html5_bandaid_attach_content_po_token")||(f.Z("html5_generate_session_po_token")&&(Xz(f),i7d(f)),D=g.Pf(D.experiments,"html5_session_po_token_interval_time_ms")||0,D>0&&(f.N=g.$o(function(){Xz(f)},D)),f.S=!0)}; Xz=function(f){var D,F,Z,I;g.l(function(p){if(!f.Z("html5_generate_session_po_token")||f.useLivingRoomPoToken)return p.return();D=f.api.j();F=g.nc("EOM_VISITOR_DATA")||g.nc("VISITOR_DATA");Z=D.Q3?D.datasyncId:F;I=Q5(D.experiments,"html5_mock_content_binding_for_session_token")||D.livingRoomPoTokenId||Z;D.KK=OO(f,I);g.Zb(p)})}; OO=function(f,D){if(!f.J){if(f.B)try{return f.B(D)}catch(p){g.UT(p)}return""}try{f.Sj.J6(f.Y?"pot_cms":"pot_csms");var F={y4:!0,RF:!0,Au:D};f.Z("html5_web_po_token_disable_caching")||(F.SB={hj:D,IJ:!0,kB:!0});var Z=f.J.aR(F);f.Sj.J6(f.Y?"pot_cmf":"pot_csmf");if(f.Y){var I;(I=f.G)==null||I.resolve();f.G=null;f.T&&(f.T=!1,f.api.app.VT().SI(!1))}return Z}catch(p){return g.UT(p),""}}; i7d=function(f){f.J&&(f.G=new $P,f.X.promise.then(function(){f.Sj.J6("pot_if");Xz(f)}))}; ApX=function(f){f.B||(f.B=XMI())}; n7=function(f){g.x.call(this,{K:"div",ST:["ytp-more-videos-button","ytp-button"],W:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},L:[{K:"div",C:"ytp-more-videos-button-thumbnail"},{K:"span",C:"ytp-more-videos-button-title",nQ:"{{title}}"}]});this.U=f;this.J=this.fQ("ytp-more-videos-button-thumbnail");this.B=this.fQ("ytp-more-videos-button-title");this.Y=new g.ia(this);g.N(this,this.Y);this.Y.D(this.U,"videodatachange",this.Q0);this.Q0();this.listen("click",this.onClick);C3T(this, 0);this.hide()}; C3T=function(f,D){switch(D){case 2:D="Ocultar v\u00eddeos";var F="Hide recommendations grid";break;default:D="M\u00e1s v\u00eddeos",F="Show recommendations grid"}f.updateValue("title",D);f.element.ariaLabel=F;f.B.textContent=D}; g.YK=function(f,D,F){g.qI(f.element,"ytp-suggestion-set",!!D.videoId);var Z=D.playlistId;F=D.ut(F?F:"mqdefault.jpg");var I=null,p=null;D instanceof LD&&(D.lengthText?(I=D.lengthText||null,p=D.hT||null):D.lengthSeconds&&(I=g.ms(D.lengthSeconds),p=g.ms(D.lengthSeconds,!0)));var z=!!Z;Z=z&&BU(Z).type==="RD";var H=D instanceof LD?D.isLivePlayback:null,K=D instanceof LD?D.isUpcoming:null,k=D.author,h=D.shortViewCount,y=D.publishedTimeText,A=[],V=[];k&&A.push(k);h&&(A.push(h),V.push(h));y&&V.push(y);F= {title:D.title,author:k,author_and_views:A.join(" \u2022 "),aria_label:D.ariaLabel||g.F8("Ver $TITLE",{TITLE:D.title}),duration:I,timestamp:p,url:D.wQ(),is_live:H,is_upcoming:K,is_list:z,is_mix:Z,background:F?"background-image: url("+F+")":"",views_and_publish_time:V.join(" \u2022 "),autoplayAlternativeHeader:D.Cl};D instanceof rK&&(F.playlist_length=D.playlistLength);f.update(F)}; g.P0=function(f){var D=f.j(),F=g.op||g.BL?{style:"will-change: opacity"}:void 0,Z=D.G,I=["ytp-modern-videowall-still"];D.J&&I.push("ytp-videowall-show-text");g.x.call(this,{K:"a",ST:I,W:{href:"{{url}}",target:Z?D.Jb:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},L:[{K:"div",C:"ytp-modern-videowall-still-image",W:{style:"{{background}}"},L:[{K:"span",C:"ytp-modern-videowall-still-info-duration",nQ:"{{duration}}"}]},{K:"span",C:"ytp-modern-videowall-still-info", W:{"aria-hidden":"true"},L:[{K:"span",C:"ytp-modern-videowall-still-info-bg",L:[{K:"span",C:"ytp-modern-videowall-still-info-content",W:F,L:[{K:"span",C:"ytp-modern-videowall-still-info-title",nQ:"{{title}}"},{K:"span",C:"ytp-modern-videowall-still-info-author",nQ:"{{author}}"},{K:"span",C:"ytp-modern-videowall-still-view-count-and-date-info",nQ:"{{views_and_publish_time}}"},{K:"span",C:"ytp-modern-videowall-still-info-live",nQ:"En directo"}]}]}]},{K:"span",ST:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],W:{"aria-hidden":"true"},L:[{K:"span",C:"ytp-modern-videowall-still-listlabel-icon"},"Lista de reproducci\u00f3n",{K:"span",C:"ytp-modern-videowall-still-listlabel-length",L:[" (",{K:"span",nQ:"{{playlist_length}}"},")"]}]},{K:"span",ST:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],W:{"aria-hidden":"true"},L:[{K:"span",C:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{K:"span",C:"ytp-modern-videowall-still-listlabel-length", nQ:" (50+)"}]}]});this.suggestion=null;this.J=Z;this.api=f;this.Y=new g.ia(this);g.N(this,this.Y);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.Y.D(f,"videodatachange",this.onVideoDataChange);f.createServerVe(this.element,this);this.onVideoDataChange()}; g.mgu=function(f,D){if(f.suggestion!==D){f.suggestion=D;var F=f.api.j(),Z="hqdefault.jpg";D.ut("sddefault.jpg")&&(Z="sddefault.jpg");g.YK(f,D,Z);g.LM(F)&&!f.api.Z("web_player_log_click_before_generating_ve_conversion_params")&&(F=D.wQ(),Z={},g.$u(f.api,"addEmbedsConversionTrackingParams",[Z]),F=g.tL(F,Z),f.updateValue("url",F));(D=(D=D.sessionData)&&D.itct)&&f.api.setTrackingParams(f.element,D)}}; TPu=function(f,D){var F=f.Z("web_player_use_more_videos_button");g.x.call(this,{K:"div",ST:["ytp-fullscreen-grid"],L:[{K:"div",C:"ytp-fullscreen-grid-hover-overlay",W:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-70"}},{K:"div",C:"ytp-fullscreen-grid-buttons-container",L:F?[]:[{K:"button",ST:["ytp-fullscreen-grid-expand-button","ytp-button"],W:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}", "data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},L:["{{icon}}"]}]},{K:"div",C:"ytp-fullscreen-grid-main-content",L:[{K:"div",C:"ytp-fullscreen-grid-stills-container"}]}]});this.player=f;this.stills=[];this.videoData=null;this.currentState=0;this.T=F;this.KQ=this.player.Z("web_player_use_external_grid_component");(this.zx=this.player.Z("web_player_enable_horizontal_endscreen_shelf"))&&g.IC(this.player.getRootNode(),"ytp-enable-horizontal-endscreen-shelf"); this.G=this.fQ("ytp-fullscreen-grid-main-content");this.Bs=this.fQ("ytp-fullscreen-grid-stills-container");this.N=this.fQ("ytp-fullscreen-grid-buttons-container");this.T&&(this.X=new n7(this.player),this.N.appendChild(this.X.element),g.N(this,this.X),this.D(this.X.element,"click",this.T7));this.KQ&&(this.Bs.style.display="none");this.S=new g.ia(this);g.N(this,this.S);this.xo=D;if(this.G&&this.Bs){if(f=this.fQ("ytp-fullscreen-grid-hover-overlay"))this.D(f,"click",this.T7),Uz(this.player,f,this);!this.T&& (f=this.fQ("ytp-fullscreen-grid-expand-button"))&&(this.D(f,"click",this.T7),Uz(this.player,f,this));if(f=this.player.getVideoData(1))this.videoData=f;this.player.createClientVe(this.G,this,223051);this.S.D(this.player,"videodatachange",this.onVideoDataChange)}}; b7w=function(f,D){var F="",Z=g.ak(f.player,"M\u00e1s v\u00eddeos","v");D===2?F="Ocultar v\u00eddeos":D===1&&(F="M\u00e1s v\u00eddeos");f.element.setAttribute("title",Z);f.element.setAttribute("data-title-no-tooltip",F);f.element.setAttribute("aria-label",F);if(D=f.fQ("ytp-fullscreen-grid-hover-overlay"))D.setAttribute("title",Z),D.setAttribute("data-title-no-tooltip",F),D.setAttribute("aria-label",F);!f.T&&(D=f.fQ("ytp-fullscreen-grid-expand-button"))&&(D.setAttribute("title",Z),D.setAttribute("data-title-no-tooltip", F),D.setAttribute("aria-label",F));f.player.EE()}; tIf=function(f){z9.call(this,f);var D=this;this.T=this.Y=this.B=0;this.N=null;this.S=this.X=0;this.isEnded=!1;this.Bs=null;var F=new g.ia(f);g.N(this,F);this.xo=g.Pf(this.api.j().experiments,"web_player_default_peeking_px");this.rY=this.api.Z("delhi_modern_player_enable_pause_peeking");this.Ir=g.Pf(this.api.j().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.jT=this.api.Z("web_player_imax_theater_mode");this.G=this.api.Z("web_player_enable_fullscreen_grid_components");this.Tx=this.api.Z("web_player_enable_more_videos_button"); this.zx=this.api.Z("web_player_use_external_grid_component");g.IC(this.api.getRootNode(),"ytp-grid-scrollable");F.D(f,"fullscreentoggled",function(){fS(D)}); F.D(f,"videodatachange",function(){if(D.G){var Z=D.api.getVideoData(1);D.videoData!==Z&&D.B===2&&(g.zP(D.api.getRootNode(),"ytp-grid-scrolling"),DG(D,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));D.videoData=Z}},this); F.D(f,"sizestylechange",function(){D.G&&fS(D)}); hO(this.api,"setFullscreenQuickActions",function(Z){D.setFullscreenQuickActions(Z)}); hO(this.api,"setPlayerOverlayVideoDetailsRenderer",function(Z){D.setPlayerOverlayVideoDetailsRenderer(Z)}); this.zx&&hO(this.api,"setFullscreenGrid",function(Z){D.setFullscreenGrid(Z)}); hO(this.api,"setCommentsButton",function(Z){D.setCommentsButton(Z)}); hO(this.api,"setDescriptionButton",function(Z){D.setDescriptionButton(Z)}); this.G&&MIy(this,F,f)}; MIy=function(f,D,F){D.D(F,"keyboardserviceglobalkeydown",function(Z,I){f.G&&Z.keyCode===86&&!Z.repeat&&f.B!==0&&(I&&(I.Yp=!0),f.ZQ("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); D.D(f.api.getRootNode(),"wheel",function(Z){if(!f.Bs){var I;if(f.G&&(I=f.J)!=null&&I.element&&!g.O(f.api.getPlayerStateObject(),2)&&f.B!==0&&Ft(f))if(g.IC(f.api.getRootNode(),"ytp-grid-scrolling"),f.X===0&&(f.X=window.innerHeight),f.B===1)f.X!==0&&(f.Y+=Z.deltaY/f.X,f.Y=g.PZ(f.Y,0,.7),ZG(f),SOc(f,f.S/f.X+f.Y>=.7,2));else if(f.B===2){I=Z.deltaY<0;var p,z,H=((z=(p=f.J)==null?void 0:p.G)==null?void 0:z.scrollTop)===0;p=f.Y!==0;I&&H||p&&!I?f.X!==0&&(f.Y=Math.max(0,f.Y-Z.deltaY/f.X),ZG(f),SOc(f,f.S/f.X+ Math.abs(f.Y)>=.7,1)):f.Y!==0&&(f.Y=0,ZG(f))}}},f,!0); D.D(F,"standardControlsInitialized",function(){if(!f.J){f.J=new TPu(f.api,f.rbR.bind(f));f.Tx&&(f.Jb=new n7(f.api),g.N(f,f.Jb),f.Jb.element.setAttribute("data-overlay-order","12"),f.api.Np(f.Jb.element,4),f.Jb.listen("click",f.ZQ,f));g.N(f,f.J);var Z=f.api.getRootNode().querySelector(".ytp-chrome-bottom");Z&&Z.parentNode&&Z.parentNode.insertBefore(f.J.element,Z.nextSibling);cpf(f)}}); D.D(F,"presentingplayerstatechange",function(){I2(f)}); D.D(F,"autonavvisibility",function(){I2(f)}); f.api.EG().subscribe("visibilitystatechange",function(){I2(f)}); Ugc(f,f.B)}; SOc=function(f,D,F){f.N&&clearTimeout(f.N);f.Y===0&&g.zP(f.api.getRootNode(),"ytp-grid-scrolling");D?vKa(f,F):f.Y<.1&&(f.N=window.setTimeout(function(){vKa(f)},1E3))}; vKa=function(f,D){f.N&&(clearTimeout(f.N),f.N=null);f.X=0;f.G&&f.B!==0&&(D?DG(f,D):Math.abs(f.Y)>=.15&&f.ZQ("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),f.Y=0,ZG(f),g.zP(f.api.getRootNode(),"ytp-grid-scrolling"))}; Ft=function(f){return f.api.isFullscreen()||f.jT&&f.api.pw()}; fS=function(f){var D=Ft(f);g.qI(f.api.getRootNode(),"ytp-full-bleed-player",D);f.KQ&&g.iG(f.KQ,D);f.playerOverlayVideoDetailsRenderer&&g.iG(f.playerOverlayVideoDetailsRenderer,D);f.G&&I2(f)}; I2=function(f){if(f.G)if(g.zP(f.api.getRootNode(),"ytp-grid-scrolling"),f.api.getPresentingPlayerType()===2||f.api.T8()||f.api.isMinimized())DG(f,0);else{var D=g.O(f.api.getPlayerStateObject(),2);if(D)DG(f,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(f.isEnded&&!D){var F=Ft(f)?1:0;f.isEnded=D;DG(f,F)}else Ft(f)?f.B!==2&&DG(f,1):DG(f,0);f.isEnded=D}}; DG=function(f,D,F){f.B=D;var Z;(Z=f.J)==null||Z.uJ(D,F);var I;(I=f.Jb)==null||I.uJ(D);f.Y=0;ZG(f);Ugc(f,D)}; Ugc=function(f,D){var F=f.api.getRootNode();g.qI(F,"ytp-fullscreen-grid-peeking",D===1);g.qI(F,"ytp-fullscreen-grid-active",D===2);D===1&&cpf(f)}; cpf=function(f){var D=f.api.getRootNode();if(g.O(f.api.getPlayerStateObject(),256)||g.O(f.api.getPlayerStateObject(),32)||g.O(f.api.getPlayerStateObject(),16))var F=f.S;else if(f.rY&&f.api.getPlayerStateObject().isPaused()){var Z;F=(((Z=f.J)==null?void 0:Z.element.clientWidth)||0)*.5625/3*f.Ir||f.xo}else F=f.xo;f.S=F;D.style.setProperty("--ytp-grid-peek-height",f.S+"px");g.qI(D,"ytp-disable-bottom-gradient",f.S<=12&&f.T===0)}; ZG=function(f){f.Y===0&&f.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var D=f.Y-f.T,F=D;f.Y!==0&&(F=g.PZ(D,-.01,.01));f.T+=F;f.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+f.T.toString());f.T!==f.Y&&ZG(f)})}; aND=function(f){z9.call(this,f);var D=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.ia(f);g.N(this,this.events);this.events.D(f,"heartbeatRequest",function(F){if(D.freePreviewUsageDetails.length||D.freePreviewWatchedDuration!==null)F.heartbeatRequestParams||(F.heartbeatRequestParams={}),F.heartbeatRequestParams.unpluggedParams||(F.heartbeatRequestParams.unpluggedParams={}),D.freePreviewUsageDetails.length>0?F.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= D.freePreviewUsageDetails:F.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+D.freePreviewWatchedDuration}}); hO(f,"setFreePreviewWatchedDuration",function(F){D.freePreviewWatchedDuration=F}); hO(f,"setFreePreviewUsageDetails",function(F){D.freePreviewUsageDetails=F})}; pS=function(f){g.J.call(this);this.features=[];var D=this.Y,F=new eG(f),Z=new sy(f),I=new p7(f),p=new gP(f);var z=g.jo(f.j())?void 0:new rZ(f);var H=new IL(f),K=new Nhs(f),k=new qOw(f),h=new gZ(f);var y=g.jo(f.j())?new aND(f):void 0;var A;var V=(A=f.j().getWebPlayerContextConfig())!=null&&A.cinematicSettingsAvailable?new G9(f):void 0;A=new NK(f);var R=f.Z("enable_courses_player_overlay_purchase")?new q6y(f):void 0;var m=g.sn(f.j())?new IQs(f):void 0;var b=new La(f);var U=f.j().G?new YfI(f):void 0; var S=g.LM(f.j())?new n9J(f):void 0;var G=f.Z("web_player_move_autonav_toggle")&&f.j().Gi?new J4T(f):void 0;var W=g.sn(f.j())?new MEJ(f):void 0;var u=f.Z("web_enable_speedmaster")&&g.sn(f.j())?new UO(f):void 0;var E=f.j().zv?void 0:new YHw(f);var Ds=f.Z("report_pml_debug_signal")?new Tsf(f):void 0;var Fu=new l5u(f),Zs=new H0(f);var za=g.rQ(f.j())?new ZVI(f):void 0;var ju=navigator.mediaSession&&window.MediaMetadata&&f.j().X_?new DN(f):void 0;var Id=f.Z("html5_enable_drc")&&!f.j().T?new BN(f):void 0; var QX=new oP(f);var Yc=g.sn(f.j())?new y3T(f):void 0;var s0=f.Z("html5_enable_d6de4")?new zs(f):void 0;var ly=g.sn(f.j())&&f.Z("web_sleep_timer")?new mp(f):void 0;var OJ=g.LM(f.j())?new fQu(f):void 0;f.Z("mweb_debug_sticky_settings");var WD=new QO(f);var XL=new Nsa(f),U0=new TDs(f);var c=f.Z("enable_sabr_snackbar_message")?new vOc(f):void 0;var Yn=f.Z("web_enable_timely_actions")?new Fpu(f):void 0;var E0=new wZ(f);var HD,S0;var M=((HD=f.j())==null?0:(S0=HD.getWebPlayerContextConfig())==null?0:S0.enableFullscreenComponentsFeature)? new tIf(f):void 0;HD=new u3(f);S0=f.Z("web_player_loop_settings_menu")&&f.j().vt?new btE(f):void 0;var ff=g.jo(f.j())?void 0:new qK(f);var dU=new YFu(f),qf=new cN(f),e5=new EiD(f),HO=new L9y(f);var PD=g.sn(f.j())&&f.j().Z("delhi_modern_web_player")?new eUu(f):void 0;var FL=f.j().B?void 0:new SfX(f);D.call(this,F,Z,I,p,z,H,K,k,h,y,V,A,R,m,b,U,S,G,W,u,E,Ds,Fu,Zs,za,void 0,ju,Id,QX,void 0,Yc,s0,ly,OJ,void 0,WD,XL,U0,void 0,c,Yn,E0,M,HD,void 0,S0,void 0,ff,dU,qf,e5,HO,PD,FL,new L6D(f),new Ey(f))}; Gsu=function(){this.J=this.Y=NaN}; w0a=function(f,D){this.V=f;this.timerName="";this.B=!1;this.J=NaN;this.G=new Gsu;this.Y=D||null;this.B=!1}; Wpy=function(f,D,F){var Z=g.gk(D.Uy)&&!D.Uy.T;if(D.Uy.ey&&(Ep(D.Uy)||D.Uy.xo==="shortspage"||jW(D.Uy)||Z)&&!f.B){f.B=!0;f.T=D.clientPlaybackNonce;g.nc("TIMING_ACTION")||Ot("TIMING_ACTION",f.V.csiPageType);f.V.csiServiceName&&Ot("CSI_SERVICE_NAME",f.V.csiServiceName);if(f.Y){Z=f.Y.uv();for(var I=g.a(Object.keys(Z)),p=I.next();!p.done;p=I.next())p=p.value,Ul(p,Z[p],f.timerName);Z=g.DK(MFy)(f.Y.b$);g.vk(Z,f.timerName);Z=f.Y;Z.Y={};Z.b$={}}g.vk({playerInfo:{visibilityState:g.DK(b0y)()},playerType:"LATENCY_PLAYER_HTML5"}, f.timerName);f.X!==D.clientPlaybackNonce||Number.isNaN(f.J)||(Gt("_start",f.timerName)?F=g.DK(bO)("_start",f.timerName)+f.J:g.UT(new g.by("attempted to log gapless pbs before CSI timeline started",{cpn:D.clientPlaybackNonce})));!F||Gt("pbs",f.timerName)||D.Zh||zp(f,F)}}; zp=function(f,D,F){Ul("pbs",D!=null?D:(0,g.m5)(),F!=null?F:f.timerName)}; sM=function(f){Btw();W5s();f.timerName=""}; BPE=function(f){if(f.Y){var D=f.Y;D.Y={};D.b$={}}f.B=!1;f.X=void 0;f.J=NaN}; rpf=function(f,D){g.zu.call(this);this.Uy=f;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Y=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.wB={};this.J=0;if(f=D.session_data)this.sessionData=ZK(f,"&");this.index=Math.max(0,Number(D.index)||0);this.loop=!!D.loop;this.startSeconds=Number(D.startSeconds)||0;this.title=D.playlist_title||"";this.description=D.playlist_description||"";this.author= D.author||D.playlist_author||"";D.video_id&&(this.items[this.index]=D);if(f=D.api)typeof f==="string"&&f.length===16?D.list="PL"+f:D.playlist=f;if(f=D.list)switch(D.listType){case "user_uploads":this.listId=new WU("UU","PLAYER_"+f);break;default:var F=D.playlist_length;F&&(this.length=Number(F)||0);this.listId=BU(f);if(f=D.video)this.items=f.slice(0),this.loaded=!0}else if(D.playlist){f=D.playlist.toString().split(",");this.index>0&&(this.items=[]);f=g.a(f);for(F=f.next();!F.done;F=f.next())(F=F.value)&& this.items.push({video_id:F});this.length=this.items.length;if(f=D.video)this.items=f.slice(0),this.loaded=!0}this.setShuffle(!!D.shuffle);if(f=D.suggestedQuality)this.quality=f;this.wB=cU(D,"playlist_");this.B=(D=D.thumbnail_ids)?D.split(","):[]}; LpX=function(f){return!!(f.playlist||f.list||f.api)}; lNy=function(f){var D=f.index+1;return D>=f.length?0:D}; EKd=function(f){var D=f.index-1;return D<0?f.length-1:D}; g.qU=function(f,D,F,Z){D=D!==void 0?D:f.index;D=f.items&&D in f.items?f.items[f.order[D]]:null;var I=null;D&&(F&&(D.autoplay="1"),Z&&(D.autonav="1"),I=new g.pT(f.Uy,D),g.N(f,I),I.sE=!0,I.startSeconds=f.startSeconds||I.clipStart||0,f.listId&&(I.playlistId=f.listId.toString()));return I}; Jpu=function(f,D){f.index=g.PZ(D,0,f.length-1);f.startSeconds=0}; uzy=function(f,D){if(D.video&&D.video.length){f.title=D.title||"";f.description=D.description;f.views=D.views;f.likes=D.likes;f.dislikes=D.dislikes;f.author=D.author||"";var F=D.loop;F&&(f.loop=F);F=g.qU(f);f.items=[];for(var Z=g.a(D.video),I=Z.next();!I.done;I=Z.next())if(I=I.value)I.video_id=I.encrypted_id,f.items.push(I);f.length=f.items.length;(D=D.index)?f.index=D:f.findIndex(F);f.setShuffle(!1);f.loaded=!0;f.J++;f.Y&&f.Y()}}; eyX=function(f,D){var F,Z,I,p,z,H,K;return g.l(function(k){if(k.Y==1){F=g.Y6();var h=f.j(),y={context:g.jK(f),playbackContext:{contentPlaybackContext:{ancestorOrigins:h.ancestorOrigins}}},A=h.getWebPlayerContextConfig();if(A==null?0:A.encryptedHostFlags)y.playbackContext.contentPlaybackContext.encryptedHostFlags=A.encryptedHostFlags;if(A==null?0:A.hideInfo)y.playerParams={showinfo:!1};A=h.embedConfig;var V=f.FX;var R=D.docid||D.video_id||D.videoId||D.id;if(!R){R=D.raw_embedded_player_response;if(!R){var m= D.embedded_player_response;m&&(R=JSON.parse(m))}if(R){var b,U,S,G,W,u;R=((u=g.Q((b=R)==null?void 0:(U=b.embedPreview)==null?void 0:(S=U.thumbnailPreviewRenderer)==null?void 0:(G=S.playButton)==null?void 0:(W=G.buttonRenderer)==null?void 0:W.navigationEndpoint,g.k7))==null?void 0:u.videoId)||null}else R=null}b=(b=R)?b:void 0;U=f.playlistId?f.playlistId:D.list;S=D.listType;if(U){var E;S==="user_uploads"?E={username:U}:E={playlistId:U};NPc(A,V,b,D,E,h.experiments);y.playlistRequest=E}else D.playlist? (E={templistVideoIds:D.playlist.toString().split(",")},NPc(A,V,b,D,E,h.experiments),y.playlistRequest=E):b&&(E={videoId:b},V&&h.Z("embeds_enable_per_video_embed_config")?E.serializedThirdPartyEmbedConfig=V:A&&(E.serializedThirdPartyEmbedConfig=A),y.singleVideoRequest=E);Z=y;I=g.ZO(gKf);g.po(k,2);return g.r(k,g.LP(F,Z,I),4)}if(k.Y!=2)return p=k.J,z=f.j(),D.raw_embedded_player_response=p,z.Tx=kj(D,g.LM(z)),z.B=z.Tx==="EMBEDDED_PLAYER_MODE_PFL",p&&(H=p,H.trackingParams&&yQ(H.trackingParams)),k.return(new g.pT(z, D));K=g.He(k);K instanceof Error||(K=Error("b259802748"));g.SJ(K);return k.return(f)})}; NPc=function(f,D,F,Z,I,p){Z.index&&(I.playlistIndex=String(Number(Z.index)+1));I.videoId=F?F:"";D&&p.Hs("embeds_enable_per_video_embed_config")?I.serializedThirdPartyEmbedConfig=D:f&&(I.serializedThirdPartyEmbedConfig=f)}; g.o2=function(f,D){Hm.get(f);Hm.set(f,D)}; g.KS=function(f){g.zu.call(this);this.loaded=!1;this.player=f}; xgD=function(){this.J=[];this.Y=[]}; g.Ng=function(f,D){return D?f.Y.concat(f.J):f.Y}; g.k_=function(f,D){switch(D.kind){case "asr":X0f(D,f.J);break;default:X0f(D,f.Y)}}; X0f=function(f,D){g.NC(D,function(F){return f.equals(F)})||D.push(f)}; g.jp=function(f){g.J.call(this);this.NR=f;this.Y=new xgD;this.B=null;this.X=[];this.N=[]}; g.O7s=function(f,D){var F;return D.j().Z("html5_use_hls_native_captions")&&g.yy&&f.jj()&&!((F=f.J)==null||!ua(F))}; g.ib=function(f,D,F){g.jp.call(this,f);this.videoData=D;this.audioTrack=F;this.J=null;this.G=!1;this.X=D.oU;this.N=D.SD;this.G=g.OW(D)}; g.nKw=function(f,D){var F;return f.j().Z("safari_live_drm_captions_fix")&&((F=f.getVideoData())==null?0:F.S$())?!1:g.jo(f.j())&&!D.isManifestless}; g.hY=function(f,D){return xY(f.info.mimeType)?D?f.info.itag===D:!0:!1}; g.YOy=function(f,D){if(f.Y!=null&&g.nKw(D,f.Y)&&f.Y.Y.rawcc!=null)return!0;if(!f.jj())return!1;D=!!f.Y&&f.Y.isManifestless&&Object.values(f.Y.Y).some(function(F){return g.hY(F,"386")}); f=!!f.Y&&!f.Y.isManifestless&&g.Qpu(f.Y);return D||f}; g.yr=function(f,D,F,Z,I,p){g.jp.call(this,f);this.videoId=F;this.r6=I;this.eventId=p;this.T={};this.J=null;f=Z||g.zr(D).hl||"";f=f.split("_").join("-");this.G=s4(D,{hl:f})}; P3s=function(f,D,F){F=F===void 0?"":F;g.J.call(this);var Z=this;this.U=f;this.X=D;this.B=F;this.b$={};this.Y={};this.J=null;this.G=new Set;this.T=new g.ia(this);this.ej={BRR:function(){return Z.X}, xGT:function(){return Z.B}}; this.S=this.U.Z("web_player_defer_modules");this.z8=new Map;g.N(this,this.T);this.T.D(f,"videodatachange",this.onVideoDataChange)}; fGE=function(f,D){f.J=D}; g.AY=function(f){return f.z8.get("captions")}; zYI=function(f,D){switch(D){case "ad":return DUI(f);case "annotations_module":return f.U.isEmbedsShortsMode()?f=!1:(D=f.U,f=D.j(),D=D.getVideoData(),f=f.B||D.At||f.controlsType==="3"?!1:f.Ir.isEmpty()&&f.playerStyle!=="annotation-editor"&&f.playerStyle!=="live-dashboard"?!!D.Js||!!g.eb(D)||!!g.x7(D):!0),f;case "asmjs":return $_(f);case "creatorendscreen":return F4a(f);case "embed":return g.LM(f.U.j());case "endscreen":return g.ZSa(f);case "heartbeat":return f.ID();case "kids":return PL(f.U.j());case "remote":return f.U.j().EW; case "miniplayer":return f.U.j().showMiniplayerUiWhenMinimized;case "offline":return f.U.j().Gv;case "captions":return IGJ(f);case "unplugged":return g.ei(f.U.j());case "ux":return f.U.j().LQ;case "webgl":return pmu(f);case "ypc":return f.dE();default:return g.SJ(Error("Module descriptor "+D+" does not match")),!1}}; Vr=function(f,D,F,Z,I){var p;F=F===void 0?!1:F;Z=Z===void 0?!1:Z;var z=f.z8.get(D);if(!z||Z)if(I||(I=function(){Vr(f,D,F,Z)}),p||(p=function(){R2(f,D)}),z=z||s2J(f,D,zYI(f,D),I,p))f.z8.set(D,z),z.create(),f.U.publish("modulecreated",D),F&&f.U.k_("onApiChange")}; HSd=function(f){var D=D===void 0?!1:D;var F,Z,I,p,z;return g.l(function(H){if(H.Y==1)return(F=f.z8.get("asmjs"))&&!D?H.return(F):(Z=Hm.get("asmjs"))!=null?(I=Z,H.ZE(2)):g.r(H,new Promise(function(K,k){qMD(f,"asmjs",function(){var h=Hm.get("asmjs");h?K(h):k("cannot load module asmjs")},k)}),3); H.Y!=2&&(I=H.J);p=I;if(!p)return H.return(Promise.reject("cannot load module asmjs"));z=new p(f.U);f.z8.set("asmjs",z);z.create();return H.return(z)})}; kpw=function(f){o_u(f)&&f.yM();K4I(f)&&(Vr(f,"captions",!0),Vr(f,"endscreen"),f.v6(),Vr(f,"creatorendscreen",!0))}; R2=function(f,D){D=g.a(j2D[D]);for(var F=D.next();!F.done;F=D.next())f.U.DB(F.value)}; K4I=function(f){var D=f.U.getVideoData(),F=f.S&&!D.isInlinePlaybackNoAd;f.U.Z("html5_defer_modules_on_ads_only")&&!D.isAd()&&(F=!1);return F}; o_u=function(f){f=f.U.getVideoData();var D;if(D=f.Z("web_player_defer_ad")){if(g.e0(f.Y3,"ad")||$BI(f)||f.enableServerStitchedDai)f=!1;else{D=f.playerResponse;f=f.startSeconds;var F=D==null?void 0:D.adPlacements;if(D=F){D=Number.MAX_VALUE;F=g.a(F);for(var Z=F.next();!Z.done;Z=F.next())if(Z=Z.value.adPlacementRenderer){var I=void 0,p=(I=Z.config)==null?void 0:I.adPlacementConfig;I=void 0;if(((I=p)==null?void 0:I.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var z=I=void 0;p=Number((I=p)==null?void 0:(z= I.adTimeOffset)==null?void 0:z.offsetStartMilliseconds)||0;z=I=void 0;Z=Number(((I=Z.renderer)==null?void 0:(z=I.adBreakServiceRenderer)==null?void 0:z.prefetchMilliseconds)||0);Z=p-Z;Z=11;f=f.api.j().S&&Sp;return!(!D&&!f)}; lb=function(f,D){return!f.api.isInline()&&!wmT(f,SM(D))&&g.TL(D)}; Gpa=function(f){f.La.Jc();if(f.MK&&f.VM)f.VM=!1;else if(!f.api.j().jT&&!f.gs()){var D=f.api.getPlayerStateObject();g.O(D,2)&&g.Wv(f.api)||f.gE(D);!f.api.j().JN||D.isCued()||g.O(D,1024)?f.HO():f.lR.isActive()?(f.dn(),f.lR.stop()):f.lR.start()}}; BRw=function(f,D){var F;if((F=f.api.getVideoData())==null?0:F.mutedAutoplay){var Z,I;if((Z=D.target)==null?0:(I=Z.className)==null?0:I.includes("ytp-info-panel"))return!1}return g.TL(D)&&f.api.isMutedByMutedAutoplay()?(f.api.unMute(),f.api.getPresentingPlayerType()===2&&f.api.playVideo(),D=f.api.getPlayerStateObject(),!g.O(D,4)||g.O(D,8)||g.O(D,2)||f.HO(),!0):!1}; rYT=function(f,D,F){f.api.isFullscreen()?F<1-D&&f.api.toggleFullscreen():F>1+D&&f.api.toggleFullscreen()}; aGs=function(f){var D=et()&&uL()>=67&&!f.api.j().S;f=f.api.j().disableOrganicUi;return!g.go("tizen")&&!WL&&!D&&!f}; g.EM=function(f){g.x.call(this,{K:"div",L:[{K:"div",C:"ytp-bezel-text-wrapper",L:[{K:"div",C:"ytp-bezel-text",nQ:"{{title}}"}]},{K:"div",C:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},L:[{K:"div",C:"ytp-bezel-icon",nQ:"{{icon}}"}]}]});this.U=f;this.J=new g.xX(this.show,10,this);f=this.U.Z("delhi_modern_web_player")?1E3:500;this.Y=new g.xX(this.hide,f,this);g.N(this,this.J);g.N(this,this.Y);this.hide()}; ub=function(f,D,F){if(D<=0){F=va();D="silenciado";var Z=0}else F=F?{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,W:{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"}}]},Z=Math.floor(D),D=Z+"volumen";JY(f,F,D,Z+"%")}; L4D=function(f,D){D=D?{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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"}}]}:Y4d();var F=f.U.getPlaybackRate(),Z=g.F8("Velocidad: $RATE",{RATE:String(F)});JY(f,D,Z,F+"x")}; lGJ=function(f,D){D=D?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";JY(f,Mhd(f.U),D)}; JY=function(f,D,F,Z){Z=Z===void 0?"":Z;f.updateValue("label",F===void 0?"":F);f.updateValue("icon",D);g.nk(f.Y);f.J.start();f.updateValue("title",Z);g.qI(f.element,"ytp-bezel-text-hide",!Z)}; E_u=function(f,D){g.x.call(this,{K:"button",ST:["ytp-button","ytp-cards-button"],W:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.LM(f.j()))},L:[{K:"span",C:"ytp-cards-button-icon-default",L:[{K:"div",C:"ytp-cards-button-icon",L:[f.j().Z("player_new_info_card_format")?f8d():{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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"}}]}]}, {K:"div",C:"ytp-cards-button-title",nQ:"Informaci\u00f3n"}]},{K:"span",C:"ytp-cards-button-icon-shopping",L:[{K:"div",C:"ytp-cards-button-icon",L:[{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",C:"ytp-svg-shadow",W:{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"}},{K:"path",C:"ytp-svg-fill",W:{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"}},{K:"path",C:"ytp-svg-shadow-fill",W:{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"}}]}]},{K:"div", C:"ytp-cards-button-title",nQ:"Shopping"}]}]});this.U=f;this.J=D;this.Y=null;this.fade=new g.Zr(this,250,!0,100);g.N(this,this.fade);g.qI(this.J,"ytp-show-cards-title",g.LM(f.j()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Wc(!0)}; JYa=function(f,D){g.x.call(this,{K:"div",C:"ytp-cards-teaser",L:[{K:"div",C:"ytp-cards-teaser-box"},{K:"div",C:"ytp-cards-teaser-text",L:f.j().Z("player_new_info_card_format")?[{K:"button",C:"ytp-cards-teaser-info-icon",W:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},L:[f8d()]},{K:"img",C:"ytp-cards-teaser-channel-avatar",W:{alt:"","aria-hidden":"true"}},{K:"span",C:"ytp-cards-teaser-label",nQ:"{{text}}"},{K:"button",C:"ytp-cards-teaser-close-button",W:{"aria-label":"Cerrar"},L:[g.Vx()]}]: [{K:"span",C:"ytp-cards-teaser-label",nQ:"{{text}}"}]}]});var F=this;this.U=f;this.Vz=D;this.fade=new g.Zr(this,250,!1,250);this.Y=null;this.T=new g.xX(this.Ixo,300,this);this.X=new g.xX(this.SpT,2E3,this);this.G=[];this.B=null;this.S=new g.xX(function(){F.element.style.margin="0"},250); this.onClickCommand=this.J=null;g.N(this,this.fade);g.N(this,this.T);g.N(this,this.X);g.N(this,this.S);f.j().Z("player_new_info_card_format")?(g.IC(f.getRootNode(),"ytp-cards-teaser-dismissible"),this.D(this.fQ("ytp-cards-teaser-close-button"),"click",this.zV),this.D(this.fQ("ytp-cards-teaser-info-icon"),"click",this.A2),this.D(this.fQ("ytp-cards-teaser-label"),"click",this.A2)):this.listen("click",this.A2);this.D(D.element,"mouseover",this.Yy);this.D(D.element,"mouseout",this.tf);this.D(f,"cardsteasershow", this.EKr);this.D(f,"cardsteaserhide",this.Fq);this.D(f,"cardstatechange",this.ZJ);this.D(f,"presentingplayerstatechange",this.ZJ);this.D(f,"appresize",this.PA);this.D(f,"onShowControls",this.PA);this.D(f,"onHideControls",this.xS);this.listen("mouseenter",this.lm)}; utc=function(f){g.x.call(this,{K:"button",ST:[NU.BUTTON,NU.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},L:[{K:"div",C:NU.TITLE_NOTIFICATIONS_ON,W:{title:"Dejar de recibir notificaciones cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"},L:[g.m3()]},{K:"div",C:NU.TITLE_NOTIFICATIONS_OFF,W:{title:"Recibir una notificaci\u00f3n cada vez que haya un v\u00eddeo nuevo","aria-label":"Notificaciones de suscripciones activadas"}, L:[{K:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{K:"path",W:{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=f;this.Y=!1;f.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")}; NRs=function(f,D){f.Y=D;f.element.classList.toggle(NU.NOTIFICATIONS_ENABLED,f.Y);var F=f.api.getVideoData();F?(D=D?F.iS:F.Rm)?(f=f.api.Ge())?rg(f,D):g.SJ(Error("No innertube service available when updating notification preferences.")):g.SJ(Error("No update preferences command available.")):g.SJ(Error("No video data when updating notification preferences."))}; eYw=function(f,D,F){var Z=Z===void 0?800:Z;var I=I===void 0?600:I;var p=document.location.protocol;f=kxu(p+"//"+f+"/signin?context=popup","feature",D,"next",p+"//"+location.hostname+"/post_login");g_u(f,F,Z,I)}; g_u=function(f,D,F,Z){F=F===void 0?800:F;Z=Z===void 0?600:Z;if(f=g.Se(window,f,"loginPopup","width="+F+",height="+Z+",resizable=yes,scrollbars=yes"))gac(function(){D()}),f.moveTo((screen.width-F)/2,(screen.height-Z)/2)}; g.gR=function(f,D,F,Z,I,p,z,H,K,k,h,y){f=f.charAt(0)+f.substring(1).toLowerCase();F=F.charAt(0)+F.substring(1).toLowerCase();if(D==="0"||D==="-1")D=null;if(Z==="0"||Z==="-1")Z=null;var A=h.j(),V=A.userDisplayName&&g.gk(A);g.x.call(this,{K:"div",ST:["ytp-button","ytp-sb"],L:[{K:"div",C:"ytp-sb-subscribe",W:V?{title:h.j().Z("player_tooltip_data_title_killswitch")?g.F8("Suscribirse como $USER_NAME",{USER_NAME:A.userDisplayName}):"","data-tooltip-title":g.F8("Suscribirse como $USER_NAME",{USER_NAME:A.userDisplayName}), "aria-label":"Suscribirse al canal","data-tooltip-image":iM(A),"data-tooltip-opaque":String(g.LM(A)),tabindex:"0",role:"button"}:{"aria-label":"Suscribirse al canal"},L:[{K:"div",C:"ytp-sb-text",L:[{K:"div",C:"ytp-sb-icon"},f]},D?{K:"div",C:"ytp-sb-count",nQ:D}:""]},{K:"div",C:"ytp-sb-unsubscribe",W:V?{title:h.Z("player_tooltip_data_title_killswitch")?g.F8("Te has suscrito como $USER_NAME",{USER_NAME:A.userDisplayName}):"","data-tooltip-title":g.F8("Te has suscrito como $USER_NAME",{USER_NAME:A.userDisplayName}), "aria-label":"Anular suscripci\u00f3n al canal","data-tooltip-image":iM(A),"data-tooltip-opaque":String(g.LM(A)),tabindex:"0",role:"button"}:{"aria-label":"Anular suscripci\u00f3n al canal"},L:[{K:"div",C:"ytp-sb-text",L:[{K:"div",C:"ytp-sb-icon"},F]},Z?{K:"div",C:"ytp-sb-count",nQ:Z}:""]}],W:{"aria-live":"polite"}});var R=this;this.channelId=z;this.U=h;this.B=y;var m=this.fQ("ytp-sb-subscribe"),b=this.fQ("ytp-sb-unsubscribe");p&&g.IC(this.element,"ytp-sb-classic");if(I){H?this.Y():this.J();var U= function(){if(A.zx){var G=R.channelId;if(K||k){var W={c:G};var u;g.ds.isInitialized()&&(u=pCa(W));W=u||"";if(u=h.getVideoData())if(u=u.subscribeCommand){var E=h.Ge();E?(rg(E,u,{botguardResponse:W,feature:K}),h.wY("SUBSCRIBE",G)):g.SJ(Error("No innertube service available when updating subscriptions."))}else g.SJ(Error("No subscribe command in videoData."));else g.SJ(Error("No video data available when updating subscription."))}b.focus();b.removeAttribute("aria-hidden");m.setAttribute("aria-hidden", "true")}else eYw(g.FT(R.U.j()),"sb_button",R.G)},S=function(){var G=R.channelId; if(K||k){var W=h.getVideoData();rg(h.Ge(),W.unsubscribeCommand,{feature:K});h.wY("UNSUBSCRIBE",G)}m.focus();m.removeAttribute("aria-hidden");b.setAttribute("aria-hidden","true")}; this.D(m,"click",U);this.D(b,"click",S);this.D(m,"keypress",function(G){G.keyCode===13&&U(G)}); this.D(b,"keypress",function(G){G.keyCode===13&&S(G)}); this.D(h,"SUBSCRIBE",this.Y);this.D(h,"UNSUBSCRIBE",this.J);this.B&&V&&(i5u(h),Uz(h,m,this),Uz(h,b,this))}else g.IC(m,"ytp-sb-disabled"),g.IC(b,"ytp-sb-disabled")}; OSJ=function(f){g.x.call(this,{K:"div",C:"ytp-title-channel",L:[{K:"div",C:"ytp-title-beacon"},{K:"a",C:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:f.j().Jb,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",C:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},L:[{K:"div",C:"ytp-title-expanded-heading",L:[{K:"div",C:"ytp-title-expanded-title",L:[{K:"a",nQ:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:f.j().Jb,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",C:"ytp-title-expanded-subtitle",nQ:"{{expandedSubtitle}}",W:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var D=this;this.api=f;this.channel=this.fQ("ytp-title-channel");this.J=this.fQ("ytp-title-channel-logo");this.channelName=this.fQ("ytp-title-expanded-title");this.X=this.fQ("ytp-title-expanded-overlay");this.B=this.Y=this.subscribeButton=null;this.G=!1;f.createClientVe(this.J,this,36925);f.createClientVe(this.channelName,this, 37220);g.LM(this.api.j())&&xUX(this);this.D(f,"videodatachange",this.u3);this.D(f,"videoplayerreset",this.u3);this.D(this.channelName,"click",function(F){D.api.logClick(D.channelName);g.Se(window,Xmf(D));F.preventDefault()}); this.D(this.J,"click",this.PJd);this.u3()}; n_X=function(f){if(!f.api.j().Wk){var D=f.api.getVideoData(),F=new g.gR("Suscribirme",null,"Suscrito",null,!0,!1,D.HR,D.subscribed,"channel_avatar",null,f.api,!0);f.api.createServerVe(F.element,f);var Z;f.api.setTrackingParams(F.element,((Z=D.subscribeButtonRenderer)==null?void 0:Z.trackingParams)||null);f.D(F.element,"click",function(){f.api.logClick(F.element)}); f.subscribeButton=F;g.N(f,f.subscribeButton);f.subscribeButton.CQ(f.X);f.subscribeButton.hide();var I=new utc(f.api);f.Y=I;g.N(f,I);I.CQ(f.X);I.hide();f.D(f.api,"SUBSCRIBE",function(){D.KK&&(I.show(),f.api.logVisibility(I.element,!0))}); f.D(f.api,"UNSUBSCRIBE",function(){D.KK&&(I.hide(),f.api.logVisibility(I.element,!1),NRs(I,!1))})}}; xUX=function(f){var D=f.api.j();n_X(f);f.updateValue("flyoutUnfocusable","true");f.updateValue("channelTitleFocusable","-1");f.updateValue("shouldHideExpandedTitleForA11y","true");f.updateValue("shouldHideExpandedSubtitleForA11y","true");D.J||D.dY||(f.D(f.channel,"mouseenter",f.fJ),f.D(f.channel,"mouseleave",f.d0),f.D(f.channel,"focusin",f.fJ),f.D(f.channel,"focusout",function(F){f.channel.contains(F.relatedTarget)||f.d0()})); f.B=new g.xX(function(){f.isExpanded()&&(f.api.logVisibility(f.channelName,!1),f.subscribeButton&&(f.subscribeButton.hide(),f.api.logVisibility(f.subscribeButton.element,!1)),f.Y&&(f.Y.hide(),f.api.logVisibility(f.Y.element,!1)),f.channel.classList.remove("ytp-title-expanded"),f.channel.classList.add("ytp-title-show-collapsed"))},500); g.N(f,f.B);f.D(f.channel,YMy,function(){Pbu(f)}); f.D(f.api,"onHideControls",f.Lx);f.D(f.api,"appresize",f.Lx);f.D(f.api,"fullscreentoggled",f.Lx)}; Pbu=function(f){f.channel.classList.remove("ytp-title-show-collapsed");f.channel.classList.remove("ytp-title-show-expanded")}; fWD=function(f){var D=f.api.getPlayerSize();return g.LM(f.api.j())&&D.width>=524}; Xmf=function(f){var D=f.api.j(),F=f.api.getVideoData(),Z=g.h8(D)+F.jT;g.ok(F)&&(Z="https://music.youtube.com"+F.jT);if(!g.LM(D))return Z;D={};g.$u(f.api,"addEmbedsConversionTrackingParams",[D]);return g.tL(Z,D)}; ep=function(f){var D=g.Zg({"aria-haspopup":"true"});g.Fj.call(this,D,f);this.listen("keydown",this.VK)}; x_=function(f,D){f.element.setAttribute("aria-haspopup",String(D))}; DNs=function(f,D){g.x.call(this,{K:"div",C:"ytp-user-info-panel",W:{"aria-label":"Informaci\u00f3n del usuario"},L:f.j().zx?[{K:"div",C:"ytp-user-info-panel-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-user-info-panel-content",L:[{K:"div",C:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},nQ:"{{watchingAsUsername}}"},{K:"div",C:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},nQ:"{{watchingAsEmail}}"}]}]:[{K:"div",C:"ytp-user-info-panel-icon",nQ:"{{icon}}"}, {K:"div",C:"ytp-user-info-panel-content",L:[{K:"div",L:[{K:"text",W:{tabIndex:"{{userInfoFocusable}}"},nQ:"Sesi\u00f3n cerrada"}]},{K:"div",C:"ytp-user-info-panel-login",L:[{K:"a",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},nQ:f.j().Wk?"":"Inicia sesi\u00f3n en YouTube"}]}]}]});this.NR=f;this.sourceElement=D;f.j().zx||f.j().Wk||this.D(this.fQ("ytp-user-info-panel-login"),"click",this.In);this.closeButton=new g.x({K:"button",ST:["ytp-collapse","ytp-button"],W:{title:"Cerrar"},L:[g.Uq()]}); this.closeButton.CQ(this.element);g.N(this,this.closeButton);this.D(window,"blur",this.hide);this.D(document,"click",this.So);this.u3()}; zid=function(f,D,F){g.i3.call(this,f);var Z=this;this.x8=D;this.N7=F;this.getVideoUrl=new ep(6);this.Ok=new ep(5);this.jw=new ep(4);this.a_=new ep(3);this.G_=new g.Fj(g.Zg({href:"{{href}}",target:this.U.j().Jb},void 0,!0),2,"Solucionar un problema de reproducci\u00f3n");this.showVideoInfo=new g.Fj(g.Zg(),1,"Estad\u00edsticas para nerds");this.W7=new g.Km({K:"div",ST:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},nQ:"{{text}}"});this.TG=new jI(this.U,this.W7);this.cZ=this.nm= null;g.LM(this.U.j())&&(this.closeButton=new g.x({K:"button",ST:["ytp-collapse","ytp-button"],W:{title:"Cerrar"},L:[g.Uq()]}),g.N(this,this.closeButton),this.closeButton.CQ(this.element),this.closeButton.listen("click",this.XU,this));g.LM(this.U.j())&&(this.Vg=new g.Fj(g.Zg(),10,"Cuenta"),g.N(this,this.Vg),this.tN(this.Vg,!0),this.Vg.listen("click",this.baI,this),f.createClientVe(this.Vg.element,this.Vg,137682));this.U.j().vt&&(this.M5=new jG("Bucle",9),g.N(this,this.M5),this.tN(this.M5,!0),this.M5.listen("click", this.hPT,this),f.createClientVe(this.M5.element,this.M5,28661));this.U.Z("web_player_miniplayer_in_context_menu")&&(this.fC=new g.Fj(g.Zg(),8,"Minirreproductor"),g.N(this,this.fC),this.tN(this.fC,!0),this.fC.listen("click",this.lxT,this),f.createClientVe(this.fC.element,this.fC,62946));this.U.Z("web_watch_pip_context_menu_button")&&this.U.j().showMiniplayerButton&&(this.H0=new g.Fj(g.Zg(),7,"Imagen en imagen"),g.N(this,this.H0),this.tN(this.H0,!0),this.H0.listen("click",this.d73,this),f.createClientVe(this.H0.element, this.H0,194442));g.N(this,this.getVideoUrl);this.tN(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.nnE,this);f.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.Ok);this.tN(this.Ok,!0);this.Ok.listen("click",this.cz3,this);f.createClientVe(this.Ok.element,this.Ok,28660);g.N(this,this.jw);this.tN(this.jw,!0);this.jw.listen("click",this.Kwy,this);f.createClientVe(this.jw.element,this.jw,28658);g.N(this,this.a_);this.tN(this.a_,!0);this.a_.listen("click",this.Gid, this);g.N(this,this.G_);this.tN(this.G_,!0);this.G_.listen("click",this.NpT,this);g.N(this,this.showVideoInfo);this.tN(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.qwQ,this);g.N(this,this.W7);this.W7.listen("click",this.VUI,this);g.N(this,this.TG);Fly()&&(this.nm=new g.x({K:"textarea",C:"ytp-html5-clipboard",W:{readonly:"",tabindex:"-1"}}),g.N(this,this.nm),this.nm.CQ(this.element));var I;(I=this.Vg)==null||I.setIcon(qgJ());var p;(p=this.M5)==null||p.setIcon(kfJ());var z;(z=this.fC)== null||z.setIcon(this.U.Z("delhi_modern_web_player_icons")?ZCJ():bh());var H;(H=this.H0)==null||H.setIcon(bh());this.a_.setIcon({K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{"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.G_.setIcon(dF());this.showVideoInfo.setIcon(PLT());this.D(f,"onLoopChange",this.onLoopChange);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"fullscreentoggled",function(){Z1X(Z)}); this.D(f,"minimized",function(){Z1X(Z);var K;(K=Z.H0)==null||K.VL(!Z.U.isMinimized()&&Z.U.j().showMiniplayerButton)}); IWs(this);pxw(this,this.U.getVideoData())}; Xt=function(f,D){var F=!1;if(f.nm){var Z=f.nm.element;Z.value=D;Z.select();try{F=document.execCommand("copy")}catch(I){}}F?f.x8.Fq():(f.W7.setContent(D,"text"),g.Ap(f.x8,f.TG),RP(f.W7.element),f.nm&&(f.nm=null,IWs(f)));return F}; Fly=function(){var f=document.queryCommandSupported&&document.queryCommandSupported("copy");$CI("Chromium")>=43&&(f=!0);$CI("Firefox")<=40&&(f=!1);return f}; Z1X=function(f){var D;(D=f.fC)==null||D.VL(!f.U.isFullscreen()&&!f.U.isMinimized()&&f.U.getPresentingPlayerType()!==2&&f.U.j().showMiniplayerButton)}; pxw=function(f,D){var F=f.U.j(),Z=f.U.getPresentingPlayerType()===2,I=!Z||D.isListed;I=!F.KQ&&!!D.videoId&&I;F.playerStyle!=="play"?F="https://support.google.com/youtube/?p=report_playback":(F={contact_type:"playbackissue",html5:1,ei:D.eventId,v:D.videoId,p:"movies_playback"},D.J&&(F.fmt=D.J.itag),D.clientPlaybackNonce&&(F.cpn=D.clientPlaybackNonce),D.partnerId&&(F.partnerid=D.partnerId),F=g.tL("//support.google.com/googleplay/",F));f.jw.VL(I&&D.allowEmbed);f.getVideoUrl.VL(I);f.Ok.VL(I&&!D.isLivePlayback); f.G_.setContent(F,"href");var p;(p=f.M5)==null||p.VL(!D.isLivePlayback&&!Z);Z1X(f);var z;(z=f.Vg)==null||z.VL(!Z)}; IWs=function(f){var D=!!f.nm;g.Dg(f.a_,D?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener informaci\u00f3n de depuraci\u00f3n");x_(f.a_,!D);g.Dg(f.jw,D?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener c\u00f3digo de inserci\u00f3n");x_(f.jw,!D);g.Dg(f.getVideoUrl,D?"Copiar URL del v\u00eddeo":"Obtener URL de v\u00eddeo");x_(f.getVideoUrl,!D);g.Dg(f.Ok,D?"Copiar la URL del v\u00eddeo a partir del minuto actual":"Obtener URL de v\u00eddeo en el minuto actual");x_(f.Ok,!D);f.jw.setIcon(D?OOf():null); f.getVideoUrl.setIcon(D?Qx():null);f.Ok.setIcon(D?Qx():null)}; s3f=function(f){return g.LM(f.U.j())?f.Vg:f.M5}; H1d=function(f,D){g.yO.call(this,f);this.N7=D;this.J=new g.ia(this);this.S=new g.xX(this.meT,1E3,this);this.N=this.Qj=null;g.N(this,this.J);g.N(this,this.S);D=this.U.j();f.createClientVe(this.element,this,28656);g.IC(this.element,"ytp-contextmenu");this.U.j().experiments.Hs("delhi_modern_web_player")&&g.sn(D)&&g.IC(this.element,"ytp-delhi-modern-contextmenu");qYE(this);this.hide()}; qYE=function(f){g.a8(f.J);var D=f.U.j();D.playerStyle==="gvn"||D.J||D.dY||(D=f.U.sy(),f.J.D(D,"contextmenu",f.L93),f.J.D(D,"touchstart",f.onTouchStart,null,!0),f.J.D(D,"touchmove",f.Pa,null,!0),f.J.D(D,"touchend",f.Pa,null,!0))}; orT=function(f){f.U.isFullscreen()?g.uC(f.U,f.element,10):f.CQ(Yu(f).body)}; OM=function(f,D,F){F=F===void 0?240:F;g.x.call(this,{K:"button",ST:["ytp-button","ytp-copylink-button"],W:{title:f.Z("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.LM(f.j()))},L:[{K:"div",C:"ytp-copylink-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-copylink-title",nQ:"Copiar enlace",W:{"aria-hidden":"true"}}]});this.api=f;this.Y=D;this.J=F;this.visible=!1;this.tooltip=this.Y.pE();D=f.j();this.tooltip.element.setAttribute("aria-live", "polite");g.qI(this.element,"ytp-show-copylink-title",g.LM(D));f.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.D(f,"videodatachange",this.u3);this.D(f,"videoplayerreset",this.u3);this.D(f,"appresize",this.u3);this.u3();this.addOnDisposeCallback(g.cv(this.tooltip,this.element))}; KlI=function(f){var D=f.api.j(),F=f.api.getVideoData(),Z=f.api.sy().getPlayerSize().width;D=D.B;return!!F.videoId&&Z>=f.J&&F.zv&&!F.Yn&&!f.api.isEmbedsShortsMode()&&!D}; kXD=function(f){f.updateValue("icon",yx());if(f.api.j().J)f.tooltip.Qk(f.element,"Se ha copiado el enlace en el portapapeles.");else{f.updateValue("title-attr","Se ha copiado el enlace en el portapapeles.");f.updateValue("tooltip-title","Se ha copiado el enlace en el portapapeles.");f.tooltip.EE();f.tooltip.Qk(f.element);var D=f.listen("mouseleave",function(){f.DK(D);f.u3();f.tooltip.Bt()})}}; j3T=function(f,D){return g.l(function(F){if(F.Y==1)return g.po(F,2),g.r(F,navigator.clipboard.writeText(D),4);if(F.Y!=2)return F.return(!0);g.He(F);var Z=F.return,I=!1,p=g.TR("TEXTAREA");p.value=D;p.setAttribute("readonly","");var z=f.api.getRootNode();z.appendChild(p);if(NS){var H=window.getSelection();H.removeAllRanges();var K=document.createRange();K.selectNodeContents(p);H.addRange(K);p.setSelectionRange(0,D.length)}else p.select();try{I=document.execCommand("copy")}catch(k){}z.removeChild(p); return Z.call(F,I)})}; i1I=function(f){g.x.call(this,{K:"div",C:"ytp-doubletap-ui-legacy",L:[{K:"div",C:"ytp-doubletap-fast-forward-ve"},{K:"div",C:"ytp-doubletap-rewind-ve"},{K:"div",C:"ytp-doubletap-static-circle",L:[{K:"div",C:"ytp-doubletap-ripple"}]},{K:"div",C:"ytp-doubletap-overlay-a11y"},{K:"div",C:"ytp-doubletap-seek-info-container",L:[{K:"div",C:"ytp-doubletap-arrows-container",L:[{K:"span",C:"ytp-doubletap-base-arrow"},{K:"span",C:"ytp-doubletap-base-arrow"},{K:"span",C:"ytp-doubletap-base-arrow"}]},{K:"div", C:"ytp-doubletap-tooltip",L:[{K:"div",C:"ytp-seek-icon-text-container",L:[{K:"div",C:"ytp-seek-icon",nQ:"{{seekIcon}}"},{K:"div",C:"ytp-chapter-seek-text-legacy",nQ:"{{seekText}}"}]},{K:"div",C:"ytp-doubletap-tooltip-label",nQ:"{{seekTime}}"}]}]}]});this.U=f;this.G=new g.xX(this.show,10,this);this.J=new g.xX(this.hide,700,this);this.T=this.B=0;this.Bs=this.X=!1;this.Y=this.fQ("ytp-doubletap-static-circle");g.N(this,this.G);g.N(this,this.J);this.hide();this.S=this.fQ("ytp-doubletap-fast-forward-ve"); this.N=this.fQ("ytp-doubletap-rewind-ve");this.U.createClientVe(this.S,this,28240);this.U.createClientVe(this.N,this,28239);this.U.logVisibility(this.S,!0);this.U.logVisibility(this.N,!0);this.X=f.Z("web_show_cumulative_seek_time");this.Bs=f.Z("web_center_static_circles")}; hiT=function(f,D){D=g.F8("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:D.toString()});f.updateValue("seekTime",D)}; AMy=function(f){kK.call(this,f,!1,!0);this.zx=[];this.b3=[];this.element.setAttribute("data-overlay-order","9");yME(this,this.U.getVideoData());this.S=!0;this.badge.element.classList.add("ytp-featured-product");this.Tx=new g.x({K:"div",C:"ytp-featured-product-open-in-new"});g.N(this,this.Tx);this.countdownTimer=new g.x({K:"text",C:"ytp-featured-product-countdown",nQ:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.B=new g.x({K:"div",C:"ytp-featured-product-trending",L:[{K:"div", C:"ytp-featured-product-trending-icon"},{K:"text",C:"ytp-featured-product-trending-text",nQ:"{{trendingOffer}}"}]});this.B.hide();g.N(this,this.B);this.overflowButton=new g.x({K:"button",ST:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.T=new g.x({K:"text",C:"ytp-featured-product-exclusive-countdown",nQ:"{{content}}",W:{id:"exclusiveCountdown","aria-hidden":"true"}});this.T.hide();g.N(this,this.T);this.X= new g.x({K:"div",C:"ytp-featured-product-exclusive-container",W:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},L:[{K:"div",C:"ytp-featured-product-exclusive-badge-container",L:[{K:"div",C:"ytp-featured-product-exclusive-badge",L:[{K:"text",C:"ytp-featured-product-exclusive-badge-text",nQ:"{{exclusive}}",W:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.T]});this.X.hide();g.N(this,this.X);this.banner=new g.x({K:"a",C:"ytp-featured-product-container",L:[{K:"div",C:"ytp-featured-product-thumbnail", L:[{K:"img",W:{src:"{{thumbnail}}"}},this.Tx]},{K:"div",C:"ytp-featured-product-details",L:[{K:"text",C:"ytp-featured-product-title",nQ:"{{title}}"},this.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",C:"ytp-featured-product-price-container",W:{"aria-label":"{{priceA11yText}}"},L:[{K:"text",C:"ytp-featured-product-price-when-promotion-text-enabled",nQ:"{{price}}",W:{"aria-hidden":"true"}},{K:"text",C:"ytp-featured-product-promotion-text",nQ:"{{promotionText}}", W:{"aria-hidden":"true"}}]}:{K:"div",W:{"aria-label":"{{priceA11yText}}"},L:[{K:"text",C:"ytp-featured-product-price",nQ:"{{price}}",W:{"aria-hidden":"true"}},{K:"text",C:"ytp-featured-product-sales-original-price",nQ:"{{salesOriginalPrice}}",W:{"aria-hidden":"true"}},{K:"text",C:"ytp-featured-product-price-drop-reference-price",nQ:"{{priceDropReferencePrice}}",W:{"aria-hidden":"true"}}]},this.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",C:"ytp-featured-product-when-promotion-text-enabled", L:[{K:"text",C:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",nQ:"{{affiliateDisclaimer}}"},this.B,{K:"text",C:"ytp-featured-product-vendor-when-promotion-text-enabled",nQ:"{{vendor}}"}]}:{K:"div",L:[{K:"text",C:"ytp-featured-product-affiliate-disclaimer",nQ:"{{affiliateDisclaimer}}"},this.U.Z("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.X:null,this.B,{K:"text",C:"ytp-featured-product-vendor",nQ:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]}); g.N(this,this.banner);this.banner.CQ(this.G.element);this.D(this.U,g.Nh("featured_product"),this.RSr);this.D(this.U,g.gA("featured_product"),this.tY);this.D(this.U,"videodatachange",this.onVideoDataChange);this.D(this.overflowButton.element,"click",this.DN);this.D(f,"featuredproductdismissed",this.pm)}; $NX=function(f){var D,F;f=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:F.itemData;var Z,I,p;return(f==null||!f.affiliateDisclaimer)&&(f==null?0:(Z=f.exclusivesData)==null?0:Z.exclusiveOfferLabelText)&&(f==null?0:(I=f.exclusivesData)==null?0:I.expirationTimestampMs)&&(f==null?0:(p=f.exclusivesData)==null?0:p.exclusiveOfferCountdownText)?!0:!1}; Riu=function(f){var D,F,Z,I,p=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:(Z=F.itemData)==null?void 0:(I=Z.exclusivesData)==null?void 0:I.expirationTimestampMs;D=(Number(p)-Date.now())/1E3;if(D>0){if(D<604800){var z,H,K,k;F=(z=f.Y)==null?void 0:(H=z.bannerData)==null?void 0:(K=H.itemData)==null?void 0:(k=K.exclusivesData)==null?void 0:k.exclusiveOfferCountdownText;if(F!==void 0)for(z=Date.now(),H=g.a(F),K=H.next();!K.done;K=H.next())if(K=K.value,K!==void 0&&K.text!==void 0&&(k=Number(K.textDisplayStartTimestampMs), !isNaN(k)&&z>=k)){K.insertCountdown?(D=K.text.replace(/\$0/,String(zN({seconds:D}))),f.T.setContent(D)):f.T.setContent(K.text);f.T.show();break}}var h,y,A,V;f.X.update({exclusive:(h=f.Y)==null?void 0:(y=h.bannerData)==null?void 0:(A=y.itemData)==null?void 0:(V=A.exclusivesData)==null?void 0:V.exclusiveOfferLabelText});f.X.show();nS(f);var R;(R=f.m9)==null||R.start()}else Vjf(f)}; Vjf=function(f){var D;(D=f.m9)==null||D.stop();f.T.hide();f.X.hide();Y_(f)}; dNu=function(f){var D,F,Z=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:F.itemData;return f.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(Z==null||!Z.priceReplacementText)&&(Z==null?0:Z.promotionText)?Z==null?void 0:Z.promotionText.content:null}; Q3s=function(f){var D,F,Z=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:F.itemData,I,p;if(!(Z!=null&&Z.priceReplacementText||f.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(Z==null?0:(I=Z.dealsData)==null?0:(p=I.sales)==null?0:p.originalPrice)){var z,H;return Z==null?void 0:(z=Z.dealsData)==null?void 0:(H=z.sales)==null?void 0:H.originalPrice}return null}; CFD=function(f){var D,F,Z=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:F.itemData,I,p,z,H;if(!((Z==null?0:Z.priceReplacementText)||f.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(Z==null?0:(I=Z.dealsData)==null?0:(p=I.sales)==null?0:p.originalPrice))&&(Z==null?0:(z=Z.dealsData)==null?0:(H=z.priceDrop)==null?0:H.referencePrice)){var K,k;return Z==null?void 0:(K=Z.dealsData)==null?void 0:(k=K.priceDrop)==null?void 0:k.referencePrice}return null}; mNT=function(f){var D,F,Z=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:F.itemData;if(Z==null?0:Z.priceReplacementText)return Z==null?void 0:Z.priceReplacementText;if((Z==null?0:Z.promotionText)&&f.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var I;return(Z==null?void 0:Z.price)+" "+(Z==null?void 0:(I=Z.promotionText)==null?void 0:I.content)}var p,z;if(Z==null?0:(p=Z.dealsData)==null?0:(z=p.sales)==null?0:z.originalPrice){var H,K;return Z==null?void 0:(H=Z.dealsData)== null?void 0:(K=H.sales)==null?void 0:K.salesPriceAccessibilityLabel}var k,h;if(Z==null?0:(k=Z.dealsData)==null?0:(h=k.priceDrop)==null?0:h.referencePrice){var y,A;return(Z==null?void 0:Z.price)+" "+(Z==null?void 0:(y=Z.dealsData)==null?void 0:(A=y.priceDrop)==null?void 0:A.referencePrice)}return Z==null?void 0:Z.price}; T8u=function(f){if(f.U.Z("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var D,F,Z;return f.B.hN?null:(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:(Z=F.itemData)==null?void 0:Z.vendorName}var I,p,z,H,K,k;return f.B.hN||f.X.hN||((I=f.Y)==null?0:(p=I.bannerData)==null?0:(z=p.itemData)==null?0:z.affiliateDisclaimer)?null:(H=f.Y)==null?void 0:(K=H.bannerData)==null?void 0:(k=K.itemData)==null?void 0:k.vendorName}; MjD=function(f,D){Pm(f);if(D){var F=g.hZ.getState().entities;F=OA(F,"featuredProductsEntity",D);if(F!=null&&F.productsData){D=[];F=g.a(F.productsData);for(var Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=void 0;if((I=Z)!=null&&I.identifier&&Z.featuredSegments){f.zx.push(Z);var p=void 0;I=g.a((p=Z)==null?void 0:p.featuredSegments);for(p=I.next();!p.done;p=I.next()){var z=p.value;p=b1a(z.startTimeSec);p!==void 0&&(z=b1a(z.endTimeSec),D.push(new g.Jm(p*1E3,z===void 0?0x7ffffffffffff:z*1E3,{id:Z.identifier, namespace:"featured_product"})))}}}f.U.Bw(D)}}}; Y_=function(f){if(f.trendingOfferEntityKey){var D=g.hZ.getState().entities;if(D=OA(D,"trendingOfferEntity",f.trendingOfferEntityKey)){var F,Z,I;D.encodedSkuId!==((F=f.Y)==null?void 0:(Z=F.bannerData)==null?void 0:(I=Z.itemData)==null?void 0:I.encodedOfferSkuId)?nS(f):(f.B.update({trendingOffer:D.shortLabel+" \u2022 "+D.countLabel}),f.B.show(),f.banner.update({vendor:T8u(f)}))}else nS(f)}else nS(f)}; nS=function(f){f.B.hide();f.banner.update({vendor:T8u(f)})}; yME=function(f,D){!f.U.Z("web_enable_shopping_timely_shelf_client")||f.U.Z("web_force_featured_product_banner_with_timely_shelf")||!D||D.isLivePlayback||D.isPremiere?f.badge.element.classList.remove("ytp-timely-shelf-present"):f.badge.element.classList.add("ytp-timely-shelf-present")}; Pm=function(f){f.zx=[];f.tY();f.U.WD("featured_product")}; tju=function(f){var D,F,Z,I,p=(D=f.Y)==null?void 0:(F=D.bannerData)==null?void 0:(Z=F.itemData)==null?void 0:(I=Z.hiddenProductOptions)==null?void 0:I.dropTimestampMs;D=(Number(p)-Date.now())/1E3;f.countdownTimer.setContent(zN({seconds:D}));if(D>0){var z;(z=f.gw)==null||z.start()}}; SYJ=function(f){var D;(D=f.gw)==null||D.stop();f.countdownTimer.hide()}; b1a=function(f){if(f!==void 0&&f.trim()!==""&&(f=Math.trunc(Number(f.trim())),!(isNaN(f)||f<0)))return f}; Wlf=function(f,D,F){g.x.call(this,{K:"div",ST:["ytp-info-panel-action-item"],L:[{K:"div",C:"ytp-info-panel-action-item-disclaimer",nQ:"{{disclaimer}}"},{K:"a",ST:["ytp-info-panel-action-item-button","ytp-button"],W:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},L:[{K:"div",C:"ytp-info-panel-action-item-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-info-panel-action-item-label",nQ:"{{label}}"}]}]});this.U=f;this.J=F;this.disclaimer=this.fQ("ytp-info-panel-action-item-disclaimer");this.button= this.fQ("ytp-info-panel-action-item-button");this.u4=!1;this.U.createServerVe(this.element,this,!0);this.listen("click",this.onClick);f="";F=g.Q(D==null?void 0:D.onTap,a6);var Z=g.Q(F,g.rF);this.u4=!1;Z?(f=Z.url||"",f.startsWith("//")&&(f="https:"+f),this.u4=!0,g.mg(this.button,g.Qi(f))):(Z=g.Q(F,cMs))&&!this.J?((f=Z.phoneNumbers)&&f.length>0?(f="sms:"+f[0],Z.messageText&&(f+="?&body="+encodeURI(Z.messageText))):f="",this.u4=!0,g.mg(this.button,g.Qi(f,[UNu]))):(F=g.Q(F,vrE))&&!this.J&&(f=F.phoneNumber? "tel:"+F.phoneNumber:"",this.u4=!0,g.mg(this.button,g.Qi(f,[aWT])));this.U.Z("embeds_enable_info_panel_dismissal")&&!f&&(F=g.Q(D==null?void 0:D.onTap,a6),Z=g.Q(F,GXu))&&(this.u4=!0,this.Y=F,this.feedbackToken=Z.feedbackToken);var I;if(F=(I=D.disclaimerText)==null?void 0:I.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var p,z;this.update({label:(p=D.bodyText)==null?void 0:p.content,icon:this.U.Z("embeds_enable_info_panel_dismissal")?wxD((z=D.icon)== null?void 0:z.iconType):Tu(),disclaimer:F})}else{this.disclaimer.style.display="none";var H,K;this.update({label:(H=D.bodyText)==null?void 0:H.content,icon:this.U.Z("embeds_enable_info_panel_dismissal")?wxD((K=D.icon)==null?void 0:K.iconType):Tu()})}this.U.setTrackingParams(this.element,D.trackingParams||null);this.u4&&(this.B={externalLinkData:{url:f}})}; wxD=function(f){switch(f){case "OPEN_IN_NEW":return Tu();case "NOT_INTERESTED":return{K:"svg",W:{fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M18.71,6C20.13,7.59,21,9.69,21,12c0,4.97-4.03,9-9,9c-2.31,0-4.41-0.87-6-2.29L18.71,6z M3,12 c0-4.97,4.03-9,9-9c2.31,0,4.41,.87,6,2.29L5.29,18C3.87,16.41,3,14.31,3,12z M12,2c5.52,0,10,4.48,10,10c0,5.52-4.48,10-10,10 C6.48,22,2,17.52,2,12C2,6.48,6.48,2,12,2z","fill-rule":"evenodd"}}]};case "HELP_OUTLINE":return dF();default:return Tu()}}; B8w=function(f,D){var F=sq();g.nN.call(this,f,{K:"div",C:"ytp-info-panel-detail-skrim",L:[{K:"div",C:"ytp-info-panel-detail",W:{role:"dialog",id:F},L:[{K:"div",C:"ytp-info-panel-detail-header",L:[{K:"div",C:"ytp-info-panel-detail-title",nQ:"{{title}}"},{K:"button",ST:["ytp-info-panel-detail-close","ytp-button"],W:{"aria-label":"Cerrar"},L:[g.Vx()]}]},{K:"div",C:"ytp-info-panel-detail-body",nQ:"{{body}}"},{K:"div",C:"ytp-info-panel-detail-items"}]}]},250);var Z=this;this.Y=D;this.items=this.fQ("ytp-info-panel-detail-items"); this.J=new g.ia(this);this.itemData=[];this.B=F;this.D(this.fQ("ytp-info-panel-detail-close"),"click",this.Fq);this.D(this.fQ("ytp-info-panel-detail-skrim"),"click",this.Fq);this.D(this.fQ("ytp-info-panel-detail"),"click",function(I){I.stopPropagation()}); this.D(this.U,"infopaneldetaildismissed",function(){f.Z("embeds_enable_info_panel_dismissal")&&Z.Fq()}); g.N(this,this.J);this.U.createServerVe(this.element,this,!0);this.D(f,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",f.getVideoData());this.hide()}; rMs=function(f,D){f=g.a(f.itemData);for(var F=f.next();!F.done;F=f.next())F=F.value,F.U.logVisibility(F.element,D)}; ErI=function(f,D){g.x.call(this,{K:"button",C:"ytp-info-panel-preview",W:{"aria-live":"assertive","aria-atomic":"true","aria-owns":D.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.LM(f.j()))},L:[{K:"div",C:"ytp-info-panel-preview-text",nQ:"{{text}}"},{K:"div",C:"ytp-info-panel-preview-chevron",nQ:"{{chevron}}"}]});var F=this;this.U=f;this.R$=this.Y=this.videoId=null;this.isDismissed=this.B=this.showControls=this.J=!1;this.D(this.element,"click",function(){f.logClick(F.element);f.gs(); Pv(D)}); this.fade=new g.Zr(this,250,!1,100);g.N(this,this.fade);this.U.createServerVe(this.element,this,!0);this.D(f,"videodatachange",this.onVideoDataChange);this.D(f,"presentingplayerstatechange",this.jo);this.D(this.U,"paidcontentoverlayvisibilitychange",this.f2);this.D(this.U,"infopaneldetailvisibilitychange",this.f2);var Z=f.getVideoData()||{};Llc(Z)&&lWf(this,Z);this.D(f,"onShowControls",this.WB);this.D(f,"onHideControls",this.ra);this.D(this.U,"infopaneldetaildismissed",function(){f.Z("embeds_enable_info_panel_dismissal")&& (F.isDismissed=!0,F.hide())})}; lWf=function(f,D){if(!D.pB||!f.U.C1()){var F=D.bH||1E4,Z=Llc(D);f.Y?D.videoId&&D.videoId!==f.videoId&&(g.nk(f.Y),f.videoId=D.videoId,Z?(JMc(f,F,D),f.Rc()):(f.Fq(),f.Y.dispose(),f.Y=null)):Z&&(D.videoId&&(f.videoId=D.videoId),JMc(f,F,D),f.Rc())}}; Llc=function(f){var D,F,Z,I;return!!((D=f.AN)==null?0:(F=D.title)==null?0:F.content)||!!((Z=f.AN)==null?0:(I=Z.bodyText)==null?0:I.content)}; JMc=function(f,D,F){f.Y&&f.Y.dispose();f.Y=new g.xX(f.aoT,D,f);g.N(f,f.Y);var Z;D=((Z=F.AN)==null?void 0:Z.trackingParams)||null;f.U.setTrackingParams(f.element,D);var I;var p,z;if(F==null?0:(p=F.AN)==null?0:(z=p.title)==null?0:z.content){var H;Z=(I=F.AN)==null?void 0:(H=I.title)==null?void 0:H.content;var K,k;if((K=F.AN)==null?0:(k=K.bodyText)==null?0:k.content)Z+=" \u2022 ";I=Z}else I="";var h,y;F=((h=F.AN)==null?void 0:(y=h.bodyText)==null?void 0:y.content)||"";f.update({text:I+F,chevron:g.$g()})}; uRT=function(f,D){f.Y&&(g.O(D,8)?(f.J=!0,f.Rc(),f.Y.start()):(g.O(D,2)||g.O(D,64))&&f.videoId&&(f.videoId=null))}; f1=function(f){var D=null;try{D=f.toLocaleString("es",{style:"percent"})}catch(F){D=f.toLocaleString(void 0,{style:"percent"})}return D}; DW=function(f,D){var F=0;f=g.a(f);for(var Z=f.next();!(Z.done||Z.value.startTime>D);Z=f.next())F++;return F===0?F:F-1}; N8D=function(f,D){for(var F=0,Z=g.a(f),I=Z.next();!I.done;I=Z.next()){I=I.value;if(D=I.timeRangeStartMillis&&D2147483647?"0":String(f)}; ZW=function(f,D,F){var Z=f.api.getCurrentTime(),I=nrd(f,Z);f=nrd(f,Z+D);return{startMediaTimeMs:I,endMediaTimeMs:f,seekSource:F}}; YYT=function(f){var D,F=(D=f.api.getVideoData())==null?void 0:D.nE();return f.api.getPresentingPlayerType(F)!==2}; FR=function(f,D){f.B.T4=D;g.qI(f.api.getRootNode(),"ytp-probably-keyboard-focus",D);g.qI(f.contextMenu.element,"ytp-probably-keyboard-focus",D)}; p1=function(f,D,F,Z){var I=g.AY(f.api.I_());if(I&&I.loaded){var p=f.api.getSubtitlesUserSettings();I=void 0;for(var z=0;z0?D[0]:null;var F=g.$d("ytp-chrome-bottom"),Z=g.$d("ytp-ad-module");f.B=!(F==null||!F.contains(D));f.T=!(Z==null||!Z.contains(D));f.S=!(D==null||!D.hasAttribute("data-tooltip-target-fixed"));return D}; qwf=function(f,D,F){if(!f.G){if(D){f.tooltipRenderer=D;D=f.tooltipRenderer.text;var Z=!1,I;(D==null?0:(I=D.runs)==null?0:I.length)&&D.runs[0].text&&(f.update({title:D.runs[0].text.toString()}),Z=!0);g.iG(f.title,Z);D=f.tooltipRenderer.detailsText;I=!1;var p;if((D==null?0:(p=D.runs)==null?0:p.length)&&D.runs[0].text){Z=D.runs[0].text.toString();p=Z.indexOf("$TARGET_ICON");if(p>-1)if(f.tooltipRenderer.targetId){D=[];Z=Z.split("$TARGET_ICON");var z=new g.qs({K:"span",C:"ytp-promotooltip-details-icon", L:[zku[f.tooltipRenderer.targetId]]});g.N(f,z);for(var H=[],K=g.a(Z),k=K.next();!k.done;k=K.next())k=new g.qs({K:"span",C:"ytp-promotooltip-details-component",nQ:k.value}),g.N(f,k),H.push(k);Z.length===2?(D.push(H[0].element),D.push(z.element),D.push(H[1].element)):Z.length===1&&(p===0?(D.push(z.element),D.push(H[0].element)):(D.push(H[0].element),D.push(z.element)));p=D.length?D:null}else p=null;else p=Z;if(p){if(typeof p!=="string")for(g.tB(f.details),I=g.a(p),p=I.next();!p.done;p=I.next())f.details.appendChild(p.value); else f.update({details:p});I=!0}}g.iG(f.details,I);I=f.tooltipRenderer.acceptButton;p=!1;var h,y,A;((h=g.Q(I,g.Ma))==null?0:(y=h.text)==null?0:(A=y.runs)==null?0:A.length)&&g.Q(I,g.Ma).text.runs[0].text&&(f.update({acceptButtonText:g.Q(I,g.Ma).text.runs[0].text.toString()}),p=!0);g.iG(f.acceptButton,p);h=f.tooltipRenderer.dismissButton;y=!1;var V,R,m;((V=g.Q(h,g.Ma))==null?0:(R=V.text)==null?0:(m=R.runs)==null?0:m.length)&&g.Q(h,g.Ma).text.runs[0].text&&(f.update({dismissButtonText:g.Q(h,g.Ma).text.runs[0].text.toString()}), y=!0);g.iG(f.dismissButton,y)}F&&(f.sourceElement=F);f.Y=pdJ(f);f.X=!1;f.U.j().Z("web_player_hide_nitrate_promo_tooltip")||f.VL(!0);sxT(f);f.hN&&!f.N&&(f.N=!0,f.ej.SP(0));f.J&&f.U.logVisibility(f.element,f.hN)}}; qN=function(f){f.VL(!1);f.J&&f.U.logVisibility(f.element,f.hN)}; HLJ=function(f){var D,F,Z,I=((D=g.Q(f.acceptButton,g.Ma))==null?void 0:(F=D.text)==null?void 0:(Z=F.runs)==null?void 0:Z.length)&&!!g.Q(f.acceptButton,g.Ma).text.runs[0].text,p,z,H;D=((p=g.Q(f.dismissButton,g.Ma))==null?void 0:(z=p.text)==null?void 0:(H=z.runs)==null?void 0:H.length)&&!!g.Q(f.dismissButton,g.Ma).text.runs[0].text;return I||D}; sxT=function(f){var D;if(!(D=!f.Y)){D=f.Y;var F=window.getComputedStyle(D);D=F.display==="none"||F.visibility==="hidden"||D.getAttribute("aria-hidden")==="true"}if(D||f.U.isMinimized())f.VL(!1);else if(D=g.jQ(f.Y),D.width&&D.height){f.U.aM(f.element,f.Y);var Z=f.U.sy().getPlayerSize().height;F=g.jQ(f.fQ("ytp-promotooltip-container")).height;f.B?f.element.style.top=Z-F-D.height-12+"px":f.S||(Z=f.U.Zi().height-F-D.height-12,f.element.style.top=Z+"px");Z=f.fQ("ytp-promotooltip-pointer");var I=g.K3(f.Y, f.U.getRootNode()),p=Number(f.element.style.left.replace(/[^\d\.]/g,""));f=f.U.isFullscreen()?18:12;Z.style.left=I.x-p+D.width/2-f+"px";Z.style.top=F+"px"}else f.VL(!1)}; Hx=function(f){g.x.call(this,{K:"button",ST:["ytp-replay-button","ytp-button"],W:{title:f.Z("player_tooltip_data_title_killswitch")?"Ver de nuevo":"","data-tooltip-title":"Ver de nuevo"},L:[g.SA()]});this.U=f;this.D(f,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.uJ(f.getPlayerStateObject());Uz(this.U,this.element,this)}; o3=function(f,D){D=D===void 0?240:D;g.x.call(this,{K:"button",ST:["ytp-button","ytp-search-button"],W:{title:f.Z("player_tooltip_data_title_killswitch")?"Buscar":"","data-tooltip-title":"Buscar","data-tooltip-opaque":String(g.LM(f.j()))},L:[{K:"div",C:"ytp-search-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-search-title",nQ:"Buscar"}]});this.api=f;this.J=D;this.visible=!1;this.updateValue("icon",{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{K:"path",C:"ytp-svg-fill",W:{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"}}]}); f.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Y();this.D(f,"appresize",this.Y);this.D(f,"videodatachange",this.Y);Uz(f,this.element,this)}; K1=function(f){g.x.call(this,{K:"div",C:"ytp-seek-overlay",L:[{K:"div",ST:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],L:[{K:"div",ST:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{K:"svg",W:{viewBox:"0 0 22 32",width:"22",height:"24"},L:[{K:"path",W:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{K:"div",C:"ytp-seek-overlay-duration",nQ:"{{durationBack}}"}]},{K:"div",ST:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],L:[{K:"div",C:"ytp-seek-overlay-duration",nQ:"{{durationForward}}"},{K:"div",ST:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],L:[{K:"svg",W:{viewBox:"0 0 22 32",width:"22",height:"24"},L:[{K:"path",W:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{K:"div",C:"ytp-seek-overlay-message",L:[{K:"div",C:"ytp-seek-overlay-message-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-seek-overlay-message-text", nQ:"{{text}}"}]}]});var D=this;this.U=f;this.X=0;this.Y="hidden";this.S=this.fQ("ytp-seek-overlay-animation-back");this.N=this.fQ("ytp-seek-overlay-animation-forward");this.Bs=this.fQ("ytp-seek-overlay-message");this.T=new g.xX(function(){o$u(D)},g.Pf(this.U.j().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.N(this,this.T);this.U.createClientVe(this.N,this,28240);this.U.createClientVe(this.S,this,28239);this.U.logVisibility(this.N,!0);this.U.logVisibility(this.S,!0);this.hide()}; K8J=function(f,D){f.B=f.G.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:D},{offset:1,opacity:1}],{duration:200,fill:"forwards"});f.B.addEventListener("finish",function(){f.B=void 0;f.T.start();f.Y="lingering"})}; kiJ=function(f,D,F,Z){F=F===void 0?!1:F;Z=Z===void 0?!1:Z;var I=[];I.push({offset:0,transform:"translateX("+(f.J===-1?20:-20)+"px)",opacity:F?"0":"1"});F&&I.push({offset:.5,opacity:"1"});I.push({offset:1,transform:"translateX(0)",opacity:"1"});F=D.animate(I,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});D=D.querySelector("path");I=[];var p={offset:0,d:f.J===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};Z&&(p.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");I.push(p); Z&&I.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});f={offset:1,d:f.J===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};Z&&(f.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");I.push(f);D.animate(I,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return F}; jxE=function(f){var D=f.G.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);D.classList.add("ytp-seek-overlay-arrow-additional");D.classList.remove("ytp-seek-overlay-arrow-persistent");f.G.appendChild(D);kiJ(f,D,!0,!0).addEventListener("finish",function(){D.remove()})}; o$u=function(f,D,F){F=F===void 0?!0:F;f.B=f.G.animate([{offset:0,opacity:D===void 0?1:D},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});F&&(f.B.addEventListener("finish",function(){f.B=void 0;iLy(f);f.hide()}),f.Y="fading-out")}; hkc=function(f){var D=Number(getComputedStyle(f.G).opacity),F;(F=f.B)==null||F.cancel();f.B=void 0;return D}; iLy=function(f){f.X=0;f.Y="hidden";f.J=void 0;f.G=void 0;f.T.stop();f.B=void 0}; ykT=function(f,D,F){f.updateValue("text",D);if(F){a:{switch(F){case "PREMIUM_STANDALONE":D=HCc();break a;case "PREMIUM_STANDALONE_CAIRO":D=ojJ();break a}D=void 0}f.updateValue("icon",D)}D=g.a(f.Bs.getAnimations());for(F=D.next();!F.done;F=D.next())F.value.cancel();f.Bs.animate([{offset:0,opacity:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){f.updateValue("text","");f.updateValue("icon","")})}; kr=function(f,D,F,Z){Z=Z===void 0?240:Z;g.x.call(this,{K:"button",ST:["ytp-button","ytp-share-button"],W:{title:f.Z("player_tooltip_data_title_killswitch")?"Compartir":"","data-tooltip-title":"Compartir","aria-haspopup":"true","aria-owns":F.element.id,"data-tooltip-opaque":String(g.LM(f.j()))},L:[{K:"div",C:"ytp-share-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-share-title",nQ:"Compartir"}]});this.api=f;this.Y=D;this.J=F;this.B=Z;this.visible=!1;this.tooltip=this.Y.pE();f.createClientVe(this.element,this, 28664);this.listen("click",this.onClick);this.D(f,"videodatachange",this.u3);this.D(f,"videoplayerreset",this.u3);this.D(f,"appresize",this.u3);this.D(f,"presentingplayerstatechange",this.u3);this.u3();this.addOnDisposeCallback(g.cv(this.tooltip,this.element))}; AkD=function(f){var D=f.api.j(),F=f.api.getVideoData(),Z=g.LM(D)&&g.LN(f.api)&&g.O(f.api.getPlayerStateObject(),128);D=D.B||D.disableSharing&&f.api.getPresentingPlayerType()!==2||!F.showShareButton||F.zv||Z||F.Yn||!1;Z=f.api.sy().getPlayerSize().width;return!!F.videoId&&Z>=f.B&&!D}; $ZD=function(f,D){D.name!=="InvalidStateError"&&D.name!=="AbortError"&&(D.name==="NotAllowedError"?(f.Y.gs(),Pv(f.J,f.element,!1)):g.SJ(D))}; RkD=function(f,D){var F=sq(),Z=f.j();F={K:"div",C:"ytp-share-panel",W:{id:sq(),role:"dialog","aria-labelledby":F},L:[{K:"div",C:"ytp-share-panel-inner-content",L:[{K:"div",C:"ytp-share-panel-title",W:{id:F},nQ:"Compartir"},{K:"a",ST:["ytp-share-panel-link","ytp-no-contextmenu"],W:{href:"{{link}}",target:Z.Jb,title:"Enlace de v\u00eddeo compartido","aria-label":"{{shareLinkWithUrl}}"},nQ:"{{linkText}}"},{K:"label",C:"ytp-share-panel-include-playlist",L:[{K:"input",C:"ytp-share-panel-include-playlist-checkbox", W:{type:"checkbox",checked:"true"}},"Incluir lista de reproducci\u00f3n"]},{K:"div",C:"ytp-share-panel-loading-spinner",L:[Vt()]},{K:"div",C:"ytp-share-panel-service-buttons",nQ:"{{buttons}}"},{K:"div",C:"ytp-share-panel-error",nQ:"Se ha producido un error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{K:"button",ST:["ytp-share-panel-close","ytp-button"],W:{title:"Cerrar"},L:[g.Vx()]}]};g.nN.call(this,f,F,250);var I=this;this.moreButton=null;this.api= f;this.tooltip=D.pE();this.J=[];this.G=this.fQ("ytp-share-panel-inner-content");this.closeButton=this.fQ("ytp-share-panel-close");this.D(this.closeButton,"click",this.Fq);this.addOnDisposeCallback(g.cv(this.tooltip,this.closeButton));this.B=this.fQ("ytp-share-panel-include-playlist-checkbox");this.D(this.B,"click",this.u3);this.Y=this.fQ("ytp-share-panel-link");this.addOnDisposeCallback(g.cv(this.tooltip,this.Y));this.api.createClientVe(this.Y,this,164503);this.D(this.Y,"click",function(p){p.preventDefault(); I.api.logClick(I.Y);var z=I.api.getVideoUrl(!0,!0,!1,!1);z=VrE(I,z);g.AA(z,I.api,p)&&I.api.wY("SHARE_CLICKED")}); this.listen("click",this.Dl);this.D(f,"videoplayerreset",this.hide);this.D(f,"fullscreentoggled",this.onFullscreenToggled);this.D(f,"onLoopRangeChange",this.LEY);this.hide()}; CpD=function(f,D){dZs(f);for(var F=D.links||D.shareTargets,Z=0,I={},p=0;p0&&!E&&!W?(G.length===2&&(G=["noreferrer"]),g.Se(V,m,A,G[0]),V=GKf()):(b=S.join(","),XW()&&V.navigator&&V.navigator.standalone&&A&&A!="_self"?(b=g.TR("A"),g.mg(b,m),b.target=A,U&&(b.rel="noreferrer"),((R=R.attributionsrc)||R==="")&&b.setAttribute("attributionsrc",R),R=document.createEvent("MouseEvent"), R.initMouseEvent("click",!0,!0,V,1),b.dispatchEvent(R),V=GKf()):U?(V=g.Se(V,"",A,b),R=g.Vi(m),V&&(V.opener=null,R===""&&(R="javascript:''"),R='',R=M7(R),(m=V.document)&&m.write&&(m.write(tQ(R)),m.close()))):((V=g.Se(V,m,A,b))&&R.noopener&&(V.opener=null),V&&R.noreferrer&&(V.opener=null)));V&&(V.opener||(V.opener=window),V.focus());y.preventDefault()}}}(I)); I.Pt.addOnDisposeCallback(g.cv(f.tooltip,I.Pt.element));H==="Facebook"?f.api.createClientVe(I.Pt.element,I.Pt,164504):H==="Twitter"&&f.api.createClientVe(I.Pt.element,I.Pt,164505);f.D(I.Pt.element,"click",function(h){return function(){f.api.logClick(h.Pt.element)}}(I)); f.api.logVisibility(I.Pt.element,!0);f.J.push(I.Pt);Z++}}var K=D.more||D.moreLink,k=new g.x({K:"a",ST:["ytp-share-panel-service-button","ytp-button"],L:[{K:"span",C:"ytp-share-panel-service-button-more",L:[{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{K:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",W:{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"}}]}]}],W:{href:K,target:"_blank",title:"M\u00e1s"}});k.listen("click",function(h){var y=K;f.api.logClick(f.moreButton.element);y=VrE(f,y);g.AA(y,f.api,h)&&f.api.wY("SHARE_CLICKED")}); k.addOnDisposeCallback(g.cv(f.tooltip,k.element));f.api.createClientVe(k.element,k,164506);f.D(k.element,"click",function(){f.api.logClick(k.element)}); f.api.logVisibility(k.element,!0);f.J.push(k);f.moreButton=k;f.updateValue("buttons",f.J)}; VrE=function(f,D){var F={};g.LM(f.api.j())&&(g.$u(f.api,"addEmbedsConversionTrackingParams",[F]),D=g.tL(D,F));return D}; dZs=function(f){for(var D=g.a(f.J),F=D.next();!F.done;F=D.next())F=F.value,F.detach(),g.jg(F);f.J=[]}; jj=function(f){return f===void 0||f.startSec===void 0||f.endSec===void 0?!1:!0}; mZa=function(f,D){f.startSec+=D;f.endSec+=D}; bLE=function(f){kK.call(this,f);this.B=this.Y=this.isContentForward=this.T=!1;this.element.setAttribute("data-overlay-order","8");Tnw(this);this.D(this.U,"changeProductsInVideoVisibility",this.fpb);this.D(this.U,"videodatachange",this.onVideoDataChange)}; Mrw=function(f){f.X&&f.rY.element.removeChild(f.X.element);f.X=void 0}; Swu=function(f,D){return D.map(function(F){var Z,I;if((F=(Z=g.Q(F,trd))==null?void 0:(I=Z.thumbnail)==null?void 0:I.thumbnails)&&F.length!==0)return F[0].url}).filter(function(F){return F!==void 0}).map(function(F){F=new g.x({K:"img", C:"ytp-suggested-action-product-thumbnail",W:{alt:"",src:F}});g.N(f,F);return F})}; ckX=function(f,D){f.isContentForward=D;g.qI(f.badge.element,"ytp-suggested-action-badge-content-forward",D)}; iF=function(f){var D=f.isContentForward&&!f.nO();g.qI(f.badge.element,"ytp-suggested-action-badge-preview-collapsed",D&&f.Y);g.qI(f.badge.element,"ytp-suggested-action-badge-preview-expanded",D&&f.B)}; hM=function(f,D,F){return new g.Jm(f*1E3,D*1E3,{priority:9,namespace:F})}; UZd=function(f){f.U.WD("shopping_overlay_visible");f.U.WD("shopping_overlay_preview_collapsed");f.U.WD("shopping_overlay_preview_expanded");f.U.WD("shopping_overlay_expanded")}; Tnw=function(f){f.D(f.U,g.Nh("shopping_overlay_visible"),function(){f.lY(!0)}); f.D(f.U,g.gA("shopping_overlay_visible"),function(){f.lY(!1)}); f.D(f.U,g.Nh("shopping_overlay_expanded"),function(){f.KQ=!0;K7(f)}); f.D(f.U,g.gA("shopping_overlay_expanded"),function(){f.KQ=!1;K7(f)}); f.D(f.U,g.Nh("shopping_overlay_preview_collapsed"),function(){f.Y=!0;iF(f)}); f.D(f.U,g.gA("shopping_overlay_preview_collapsed"),function(){f.Y=!1;iF(f)}); f.D(f.U,g.Nh("shopping_overlay_preview_expanded"),function(){f.B=!0;iF(f)}); f.D(f.U,g.gA("shopping_overlay_preview_expanded"),function(){f.B=!1;iF(f)})}; GiD=function(f){g.x.call(this,{K:"div",C:"ytp-shorts-title-channel",L:[{K:"a",C:"ytp-shorts-title-channel-logo",W:{href:"{{channelLink}}",target:f.j().Jb,"aria-label":"{{channelLogoLabel}}"}},{K:"div",C:"ytp-shorts-title-expanded-heading",L:[{K:"div",C:"ytp-shorts-title-expanded-title",L:[{K:"a",nQ:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:f.j().Jb,tabIndex:"0"}}]}]}]});var D=this;this.api=f;this.Y=this.fQ("ytp-shorts-title-channel-logo");this.channelName=this.fQ("ytp-shorts-title-expanded-title"); this.subscribeButton=null;f.createClientVe(this.Y,this,36925);this.D(this.Y,"click",function(F){D.api.logClick(D.Y);g.Se(window,v$u(D));F.preventDefault()}); f.createClientVe(this.channelName,this,37220);this.D(this.channelName,"click",function(F){D.api.logClick(D.channelName);g.Se(window,v$u(D));F.preventDefault()}); aAJ(this);this.D(f,"videodatachange",this.u3);this.D(f,"videoplayerreset",this.u3);this.u3()}; aAJ=function(f){if(!f.api.j().Wk){var D=f.api.getVideoData(),F=new g.gR("Suscribirme",null,"Suscrito",null,!0,!1,D.HR,D.subscribed,"channel_avatar",null,f.api,!0);f.api.createServerVe(F.element,f);var Z;f.api.setTrackingParams(F.element,((Z=D.subscribeButtonRenderer)==null?void 0:Z.trackingParams)||null);f.D(F.element,"click",function(){f.api.logClick(F.element)}); f.subscribeButton=F;g.N(f,f.subscribeButton);f.subscribeButton.CQ(f.element)}}; v$u=function(f){var D=f.api.j(),F=f.api.getVideoData();F=g.h8(D)+F.jT;if(!g.LM(D))return F;D={};g.$u(f.api,"addEmbedsConversionTrackingParams",[D]);return g.tL(F,D)}; y6=function(f){g.nN.call(this,f,{K:"button",ST:["ytp-skip-intro-button","ytp-popup","ytp-button"],L:[{K:"div",C:"ytp-skip-intro-button-text",nQ:"Saltar introducci\u00f3n"}]},100);var D=this;this.J=!1;this.Y=new g.xX(function(){D.hide()},5E3); this.xm=this.v2=NaN;g.N(this,this.Y);this.S=function(){D.show()}; this.G=function(){D.hide()}; this.B=function(){var F=D.U.getCurrentTime();F>D.v2/1E3&&F0?{K:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{K:"path",ST:["ytp-circle-arrow","ytp-svg-fill"],W:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {K:"text",ST:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"7.05",y:"15.05"}}]}:{K:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},L:[{K:"path",ST:["ytp-circle-arrow","ytp-svg-fill"],W:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {K:"text",ST:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"6.5",y:"15"}}]}]});var F=this;this.U=f;this.Y=D;this.J=new g.xX(function(){F.B?(F.B=!1,F.J.start()):F.element.classList.remove("ytp-jump-spin","backwards")},250); this.B=!1;(D=D>0)?this.U.createClientVe(this.element,this,36843):this.U.createClientVe(this.element,this,36844);var Z=g.F8(D?"Avanzar $SECONDS segundos. (\u2192)":"Retroceder $SECONDS segundos. (\u2190)",{SECONDS:Math.abs(this.Y).toString()});this.U.Z("player_tooltip_data_title_killswitch")?this.update({title:Z,"data-title-no-tooltip":Z,"aria-keyshortcuts":D?"\u2192":"\u2190"}):this.update({"tooltip-title":Z,"data-title-no-tooltip":Z,"aria-keyshortcuts":D?"\u2192":"\u2190"});this.G=this.element.querySelector(".ytp-jump-button-text"); this.G.textContent=Math.abs(this.Y).toString();this.listen("click",this.onClick,this);Uz(f,this.element,this)}; Jkd=function(f,D){D?f.element.classList.add("ytp-jump-button-enabled"):f.element.classList.remove("ytp-jump-button-enabled");f.U.logVisibility(f.element,D);f.U.EE()}; C1=function(f,D){$r.call(this,f,D,"timedMarkerCueRange","Ver momentos clave");this.D(f,g.gA("timedMarkerCueRange"),this.Ft);this.D(f,"updatemarkervisibility",this.updateVideoData)}; uwD=function(f){var D,F=(D=f.U.getVideoData())==null?void 0:D.rY;if(F)for(f=f.G.LQ,F=g.a(F),D=F.next();!D.done;D=F.next())if(D=f[D.value]){var Z=void 0,I=void 0,p=void 0;if(((Z=D.onTap)==null?void 0:(I=Z.innertubeCommand)==null?void 0:(p=I.changeEngagementPanelVisibilityAction)==null?void 0:p.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return D}}; ml=function(f){g.x.call(this,{K:"button",ST:["ytp-miniplayer-button","ytp-button"],W:{title:f.Z("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"},L:["{{icon}}"]});this.U=f;this.visible=!1;this.listen("click",this.onClick);this.D(f,"fullscreentoggled",this.u3);this.U.Z("player_tooltip_data_title_killswitch")? this.update({title:g.ak(f,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:NnI(this)}):this.update({"tooltip-title":g.ak(f,"Minirreproductor","i"),"data-title-no-tooltip":"Minirreproductor",icon:NnI(this)});Uz(f,this.element,this);f.createClientVe(this.element,this,62946);this.u3()}; NnI=function(f){return f.U.Z("delhi_modern_web_player_icons")?ZCJ():bh()}; TX=function(f,D,F,Z,I,p){p=p===void 0?!1:p;var z={K:"div",ST:["ytp-input-slider-section"],L:[{K:"input",C:"ytp-input-slider",W:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}","aria-valuemin":"{{ariaMinValue}}","aria-valuemax":"{{ariaMaxValue}}","aria-valuenow":"{{ariaValueNow}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};I&&z.L.unshift(I);p&&z.ST.push("ytp-vertical-slider");g.x.call(this,z);this.B=f;this.X=D;this.T=F;this.initialValue=Z;this.header=I;this.G=0; this.J=this.fQ("ytp-input-slider");this.Y=Z?Z:f;this.init();this.D(this.J,"input",this.Xp);this.D(this.J,"keydown",this.BA)}; bF=function(f,D,F){F=F===void 0?!1:F;f.G&&(cancelAnimationFrame(f.G),f.G=0);F?g$E(f,f.Y,D):ekf(f,D)}; ekf=function(f,D){f.Y=D;f.update({slidervalue:f.Y,ariaValueNow:f.Y});f.J.valueAsNumber=f.Y;xZX(f,D)}; g$E=function(f,D,F){var Z=performance.now(),I=F-D;if(I!==0){var p=function(z){z=(z-Z)/400;z>1&&(z=1);ekf(f,D+I*m_I(Xdc,T$a(Xdc,z)));f.G=z<1?requestAnimationFrame(p):0}; f.G=requestAnimationFrame(p)}}; xZX=function(f,D){f.J.style.setProperty("--yt-slider-shape-gradient-percent",(D-f.B)/(f.X-f.B)*100+"%")}; MN=function(f){var D=f.isMuted()?0:f.getVolume();TX.call(this,0,100,1,D,void 0,!0);this.U=f;this.N=ec(this.KQ,10,this);this.S=!1;this.D(f,"onVolumeChange",this.onVolumeChange);this.D(this.element,"wheel",this.Bs)}; OLf=function(f,D){g.x.call(this,{K:"div",W:{tabindex:"0",title:f.Z("player_tooltip_data_title_killswitch")?"Volumen":"","data-tooltip-title":"Volumen","data-tooltip-offset-y":"-120"},ST:["ytp-volume-popover"]});var F=this;this.isVisible=!1;this.tooltip=D.pE();this.J=new MN(f);g.N(this,this.J);this.J.CQ(this.element);this.Y=new g.xX(function(){tM(F,!1)},300); this.listen("mouseenter",function(){F.Y.stop()}); this.listen("mouseleave",function(){F.Y.start()}); this.listen("focus",function(){F.Y.stop()}); this.D(this.J.J,"focus",function(){F.Y.stop()}); this.listen("focusout",function(){F.Y.start();F.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.cv(D.pE(),this.element));g.N(this,this.Y)}; tM=function(f,D){f.element.classList.toggle("ytp-volume-popover-hovering",D);f.isVisible=D;(f=f.element.closest(".ytp-chrome-bottom"))&&f.classList.toggle("ytp-volume-popover-showing",D)}; Sj=function(f,D,F){F=F===void 0?!1:F;var Z=f.j().rY?{"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:f.Z("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};Z=f.Z("delhi_modern_web_player")?{K:"div",C:"ytp-mute-button",L:[{K:"button",W:Z,ST:["ytp-volume-icon", "ytp-button"],nQ:"{{icon}}"}]}:{K:"button",ST:["ytp-mute-button","ytp-button"],W:Z,L:[{K:"div",C:"ytp-volume-icon",nQ:"{{icon}}"}]};g.x.call(this,Z);this.U=f;this.Ir=F;this.J=null;this.T=this.xo=this.N=this.S=NaN;this.Tx=this.Bs=null;this.X=[];this.G=[];this.visible=!1;this.B=this.Y=this.KQ=null;f.Z("delhi_modern_web_player")&&this.update({"data-priority":4});F=this.U.j();this.updateValue("icon",va());this.tooltip=D.pE();this.updateValue("dataTooltipOffsetY",0);this.B=g.$d("ytp-volume-icon",this.element); Z=this.U.Z("delhi_modern_web_player_icons")?{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",ST:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{K:"path",C:"ytp-svg-volume-animation-small-ripple",W:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{K:"path",C:"ytp-svg-volume-animation-big-ripple",W:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"defs",L:[{K:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},L:[{K:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",W:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",C:"ytp-svg-volume-animation-mover",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},L:[{K:"path",C:"ytp-svg-volume-animation-mover", W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",hZ:!0,ST:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{K:"path",hZ:!0,ST:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"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.J=new g.qs(Z);g.N(this,this.J);this.Bs=this.J.fQ("ytp-svg-volume-animation-speaker");this.Tx=this.Bs.getAttribute("d");this.X=g.yq("ytp-svg-volume-animation-mover",this.J.element);this.U.Z("delhi_modern_web_player_icons");this.G=g.yq("ytp-svg-volume-animation-hider",this.J.element);this.U.Z("delhi_modern_web_player_icons");this.rY=new rP;g.N(this,this.rY);this.zx=new rP;g.N(this,this.zx);this.D(f,"appresize",this.gr);this.D(f,"onVolumeChange",this.onVolumeChange);f.Z("delhi_modern_web_player")? this.listen("click",this.S6T):this.listen("click",this.N8);F.rY?(f.Z("delhi_modern_web_player")&&!f.Z("delhi_modern_web_player_horizontal_volume_controls")&&(this.Y=new OLf(f,D),this.Y.CQ(this.element),g.N(this,this.Y),this.D(this.B,"mouseover",this.u1),this.D(this.B,"focus",this.u1),this.D(this.B,"mouseout",this.zc),this.D(this.B,"blur",this.zc)),F=f.Z("delhi_modern_web_player")?this.B:this.element,this.addOnDisposeCallback(g.cv(D.pE(),F))):n$D(this);this.message=null;f.createClientVe(this.element, this,28662);this.gr(f.sy().getPlayerSize());this.setVolume(f.getVolume(),f.isMuted())}; Yww=function(f,D){if(f.U.j().rY){var F=g.ak(f.U,"Silenciar","m"),Z=g.ak(f.U,"Activar sonido","m");F=D?Z:F;f.U.j().Z("player_tooltip_data_title_killswitch")?f.updateValue("title",F):f.update({"tooltip-title":F,"aria-label":F});f.update({"data-title-no-tooltip":D?"Activar sonido":"Silenciar"});f.tooltip.EE()}}; DvI=function(f,D){f.S=D;var F=f.Tx;f.U.Z("delhi_modern_web_player_icons")?f.J.fQ("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(D+") translate(-22,-12)")):D&&(F+=Xpu(Pps,fcf,D));f.Bs.setAttribute("d",F)}; F7w=function(f,D){var F;D===1?F=f.U.Z("delhi_modern_web_player_icons")?{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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"}}]}:va():F=f.J;f.xo=D;if(f.U.Z("delhi_modern_web_player_icons"))f.J.fQ("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-D+") translate(-18,-12)")),f.J.fQ("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(f.S-D+") translate(-22, -12)"));else{for(var Z=20*D,I=0;I=3&&f.U.getPresentingPlayerType()!==2}; qUy=function(f){var D=rW(f.U.I_());return D?f.Y?D.hasNext():D.hasPrevious():!1}; pFI=function(f){var D={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},F=f.playlist!=null&&f.playlist.hasNext();F=g.LN(f.U)&&(!f.Y||F);var Z=f.Y&&g.NV(f.U),I=qUy(f),p=f.Y&&f.U.getPresentingPlayerType()===5,z=g.ak(f.U,"Siguiente","SHIFT+n"),H=g.ak(f.U,"Anterior","SHIFT+p");if(p)D.title="Iniciar v\u00eddeo",D["tooltip-title"]="Iniciar v\u00eddeo";else if(f.B)D.title="Ver de nuevo",D["tooltip-title"]="Ver de nuevo"; else if(F){var K=null;f.playlist&&(K=g.qU(f.playlist,f.Y?lNy(f.playlist):EKd(f.playlist)));if(K){if(K.videoId){var k=f.playlist.listId;D.url=f.U.j().getVideoUrl(K.videoId,k?k.toString():void 0)}D.text=K.title;D.duration=K.lengthText?K.lengthText:K.lengthSeconds?g.ms(K.lengthSeconds):null;D.preview=K.ut("mqdefault.jpg")}f.Y?(D.title=z,D["tooltip-title"]=z,D["data-title-no-tooltip"]="Siguiente",D["aria-keyshortcuts"]="SHIFT+n"):(D.title=H,D["tooltip-title"]=H,D["data-title-no-tooltip"]="Anterior",D["aria-keyshortcuts"]= "SHIFT+p")}else if(Z){if(H=(K=f.videoData)==null?void 0:g.jb(K))D.url=H.wQ(),D.text=H.title,D.duration=H.lengthText?H.lengthText:H.lengthSeconds?g.ms(H.lengthSeconds):null,D.preview=H.ut("mqdefault.jpg");D.title=z;D["tooltip-title"]=z;D["data-title-no-tooltip"]="Siguiente";D["aria-keyshortcuts"]="SHIFT+n"}D.disabled=!Z&&!F&&!I&&!p;f.update(D);f.T=!!D.url;Z||F||f.B||I||p?f.J||(f.J=g.cv(f.tooltip,f.element),f.X=f.listen("click",f.onClick,f)):f.J&&(f.J(),f.J=null,f.DK(f.X),f.X=null);f.tooltip.EE();g.qI(f.element, "ytp-playlist-ui",f.Y&&(F||f.U.Z("web_hide_next_button")))}; IcI=function(f,D){return f?D?I8X():Cm():D?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:KWu()}; osI=function(f,D){g.x.call(this,{K:"div",C:"ytp-fine-scrubbing",L:[{K:"div",C:"ytp-fine-scrubbing-draggable",L:[{K:"div",C:"ytp-fine-scrubbing-thumbnails",W:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic o despl\u00e1zate por el panel para hacer b\u00fasquedas precisas.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",W:{"aria-hidden":"true"},C:"ytp-fine-scrubbing-cursor"},{K:"div",C:"ytp-fine-scrubbing-seek-time", W:{"aria-hidden":"true"},nQ:"{{seekTime}}"},{K:"div",C:"ytp-fine-scrubbing-play",L:[f.Z("delhi_modern_web_player_icons")?tn():Ms()],W:{title:"Reproducir desde esta posici\u00f3n",role:"button"}},{K:"div",C:"ytp-fine-scrubbing-dismiss",L:[g.Vx()],W:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var F=this;this.api=f;this.X=this.fQ("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.fQ("ytp-fine-scrubbing-dismiss");this.xo=this.fQ("ytp-fine-scrubbing-draggable");this.playButton= this.fQ("ytp-fine-scrubbing-play");this.thumbnails=[];this.J=[];this.Ir=this.Y=0;this.rY=void 0;this.Bs=NaN;this.jT=this.N=this.B=this.S=0;this.G=[];this.interval=this.frameCount=0;this.T=160;this.scale=1;this.dY=0;this.isEnabled=this.Tx=!1;Hdy(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.cv(D,this.dismissButton));this.addOnDisposeCallback(g.cv(D,this.playButton));this.zx=new g.b3(this.xo,!0);this.zx.subscribe("dragstart",this.n8,this);this.zx.subscribe("dragmove",this.K8,this);this.zx.subscribe("dragend", this.W3,this);this.D(f,"SEEK_COMPLETE",this.kL);f.Z("web_fix_fine_scrubbing_false_play")&&this.D(f,"rootnodemousedown",function(Z){F.KQ=Z}); this.X.addEventListener("keydown",function(){}); g.N(this,this.zx);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)}; Hdy=function(f,D){var F=g.ms(D),Z=g.F8("Ir al momento $PROGRESS",{PROGRESS:g.ms(D,!0)});f.update({ariamin:0,ariamax:Math.floor(f.api.getDuration()),arianow:Math.floor(D),arianowtext:Z,seekTime:F})}; K7w=function(f){f.Bs=NaN;f.N=0;f.S=f.B}; idf=function(f){var D=f.api.OG();if(D){var F=90*f.scale,Z=nD(D,160*f.scale);if(D=D.levels[Z]){f.T=D.width;if(!f.G.length){Z=[];for(var I=Y3(D,D.JR()),p=D.columns*D.rows,z=D.frameCount,H=0;H<=I;H++)for(var K=zf.G.length;)Z= void 0,(Z=f.thumbnails.pop())==null||Z.dispose();for(;f.thumbnails.lengthF.length;)Z=void 0,(Z=f.J.pop())==null||Z.dispose(); for(;f.J.length-F?-D/F*f.interval*.5:-(D+F/2)/F*f.interval}; h5X=function(f){return-((f.X.offsetWidth||(f.frameCount-1)*f.T*f.scale)-f.Y/2)}; kCy=function(){g.x.call(this,{K:"div",C:"ytp-fine-scrubbing-thumbnail"})}; jYs=function(){g.x.call(this,{K:"div",C:"ytp-fine-scrubbing-chapter-title",L:[{K:"div",C:"ytp-fine-scrubbing-chapter-title-content",nQ:"{{chapterTitle}}"}]})}; AVa=function(f){g.x.call(this,{K:"div",C:"ytp-heat-map-chapter",L:[{K:"svg",C:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},L:[{K:"defs",L:[{K:"clipPath",W:{id:"{{id}}"},L:[{K:"path",C:"ytp-heat-map-path",W:{d:"",fill:"white"}}]},{K:"linearGradient",W:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},L:[{K:"stop",W:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",W:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",C:"ytp-heat-map-graph",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",C:"ytp-heat-map-hover",W:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",C:"ytp-heat-map-play",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",C:"ytp-modern-heat-map",W:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"1","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=f;this.S=this.fQ("ytp-heat-map-svg");this.X=this.fQ("ytp-heat-map-path");this.G=this.fQ("ytp-heat-map-graph");this.T=this.fQ("ytp-heat-map-play");this.Y=this.fQ("ytp-heat-map-hover");this.B=this.fQ("ytp-modern-heat-map");this.u4=!1;this.J=60;f=""+g.ve(this);this.update({id:f});f="url(#"+f+")";this.G.setAttribute("clip-path",f);this.T.setAttribute("clip-path",f);this.Y.setAttribute("clip-path",f)}; $vs=function(f,D){D>0&&(f.J=D,f.S.style.height=f.J+"px")}; a3=function(){g.x.call(this,{K:"div",C:"ytp-chapter-hover-container",L:[{K:"div",C:"ytp-progress-bar-padding"},{K:"div",C:"ytp-progress-list",L:[{K:"div",ST:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",C:"ytp-progress-linear-live-buffer"},{K:"div",C:"ytp-load-progress"},{K:"div",C:"ytp-hover-progress"},{K:"div",C:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.J=this.fQ("ytp-progress-list");this.X=this.fQ("ytp-progress-linear-live-buffer"); this.G=this.fQ("ytp-ad-progress-list");this.T=this.fQ("ytp-load-progress");this.S=this.fQ("ytp-play-progress");this.B=this.fQ("ytp-hover-progress");this.Y=this.fQ("ytp-chapter-hover-container")}; GX=function(f,D){g.Dx(f.Y,"width",D)}; V7E=function(f,D){g.Dx(f.Y,"margin-right",D+"px")}; R5X=function(){this.J=this.position=this.B=this.Y=this.G=this.width=NaN}; dvw=function(){g.x.call(this,{K:"div",C:"ytp-timed-marker"});this.Y=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.Wx=function(f,D){g.Km.call(this,{K:"div",C:"ytp-progress-bar-container",W:{"aria-disabled":"true"},L:[{K:"div",ST:["ytp-heat-map-container"],L:[{K:"div",C:"ytp-heat-map-edu"}]},{K:"div",ST:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"Control deslizante","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{K:"div",C:"ytp-chapters-container"},{K:"div",C:"ytp-timed-markers-container"},{K:"div",C:"ytp-clip-start-exclude"}, {K:"div",C:"ytp-clip-end-exclude"},{K:"div",C:"ytp-scrubber-container",L:[{K:"div",ST:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{K:"div",C:"ytp-scrubber-pull-indicator"},{K:"img",ST:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",ST:["ytp-fine-scrubbing-container"],L:[{K:"div",C:"ytp-fine-scrubbing-edu"}]},{K:"div",C:"ytp-bound-time-left",nQ:"{{boundTimeLeft}}"},{K:"div",C:"ytp-bound-time-right",nQ:"{{boundTimeRight}}"},{K:"div",C:"ytp-clip-start",W:{title:"{{clipstarttitle}}"},nQ:"{{clipstarticon}}"}, {K:"div",C:"ytp-clip-end",W:{title:"{{clipendtitle}}"},nQ:"{{clipendicon}}"}]});this.api=f;this.gM=!1;this.Gm=this.zv=this.eT=this.xo=this.T=this.f7=0;this.KK=null;this.B_=!1;this.Ps={};this.BI={};this.clipEnd=Infinity;this.m9=this.fQ("ytp-clip-end");this.Gi=new g.b3(this.m9,!0);this.vI=this.fQ("ytp-clip-end-exclude");this.Zx=this.fQ("ytp-clip-start-exclude");this.clipStart=0;this.qb=this.fQ("ytp-clip-start");this.Fd=new g.b3(this.qb,!0);this.Bs=this.Z5=0;this.progressBar=this.fQ("ytp-progress-bar"); this.gw={};this.LQ={};this.JN=this.fQ("ytp-chapters-container");this.EW=this.fQ("ytp-timed-markers-container");this.Y=[];this.S=[];this.t6={};this.Gv=null;this.rY=-1;this.Wk=this.Ir=0;this.Dp=this.N=null;this.Tm=this.fQ("ytp-scrubber-button");this.zx=this.fQ("ytp-decorated-scrubber-button");this.J7=this.fQ("ytp-scrubber-container");this.Uq=new g.FA;this.OI=0;this.K7=new R5X;this.B=new GL(0,0);this.Mb=null;this.X=this.Ye=!1;this.n7=null;this.KQ=this.fQ("ytp-heat-map-container");this.Y_=this.fQ("ytp-heat-map-edu"); this.G=[];this.heatMarkersDecorations=[];this.G3=this.fQ("ytp-fine-scrubbing-container");this.HD=this.fQ("ytp-fine-scrubbing-edu");this.J=void 0;this.jT=this.JS=this.dY=!1;this.tooltip=D.pE();this.addOnDisposeCallback(g.cv(this.tooltip,this.m9));g.N(this,this.Gi);this.Gi.subscribe("hoverstart",this.n2,this);this.Gi.subscribe("hoverend",this.K2,this);this.D(this.m9,"click",this.j5);this.addOnDisposeCallback(g.cv(this.tooltip,this.qb));g.N(this,this.Fd);this.Fd.subscribe("hoverstart",this.n2,this); this.Fd.subscribe("hoverend",this.K2,this);this.D(this.qb,"click",this.j5);QYD(this);this.D(f,"resize",this.bE);this.D(f,"presentingplayerstatechange",this.Cb);this.D(f,"videodatachange",this.T1);this.D(f,"videoplayerreset",this.NYo);this.D(f,"cuerangesadded",this.qGT);this.D(f,"cuerangesremoved",this.Z43);this.D(f,"onLoopRangeChange",this.Q9);this.D(f,"innertubeCommand",this.onClickCommand);this.D(f,"onRetroModeChanged",this.g_F);this.D(f,g.Nh("timedMarkerCueRange"),this.X_I);this.D(f,"updatemarkervisibility", this.CZ);this.D(f,"serverstitchedvideochange",this.sbY);this.updateVideoData(f.getVideoData(),!0);this.Q9(f.getLoopRange());w8(this)&&!this.J&&(this.J=new osI(this.api,this.tooltip),f=g.oE(this.element).x||0,this.J.bE(f,this.T),this.J.CQ(this.G3),g.N(this,this.J),this.D(this.J.dismissButton,"click",this.ub),this.D(this.J.playButton,"click",this.mQ),this.D(this.J.element,"dblclick",this.mQ));this.api.createClientVe(this.KQ,this,139609,!0);this.api.createClientVe(this.Y_,this,140127,!0);this.api.createClientVe(this.HD, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; QYD=function(f){if(f.Y.length===0){var D=new a3;f.Y.push(D);g.N(f,D);D.CQ(f.JN,0)}for(;f.Y.length>1;)f.Y.pop().dispose();GX(f.Y[0],"100%");f.Y[0].startTime=0;f.Y[0].title=""}; CHu=function(f){var D=D===void 0?NaN:D;var F=new AVa(f.api);f.G.push(F);g.N(f,F);F.CQ(f.KQ);D>=0&&(F.element.style.width=D+"px")}; mvX=function(f){for(;f.S.length;)f.S.pop().dispose()}; bdX=function(f){var D,F,Z,I,p;return(p=g.Q((I=g.Q((D=f.getWatchNextResponse())==null?void 0:(F=D.playerOverlays)==null?void 0:(Z=F.playerOverlayRenderer)==null?void 0:Z.decoratedPlayerBarRenderer,lM))==null?void 0:I.playerBar,TOJ))==null?void 0:p.chapters}; M7f=function(f){for(var D=f.Y,F=[],Z=0;Z=z&&m<=h&&p.push(A)}K>0&&(f.KQ.style.height=K+"px");z=f.G[Z];h=p;A=I;R=K;m=Z===0;m=m===void 0?!1:m;$vs(z,R);y=h;V=z.J;m=m===void 0?!1:m;var b=1E3/y.length,U=[];U.push({x:0,y:100});for(var S=0;S0&&(F=p[p.length-1])}g.Bx(f);H=[];D=g.a(D.heatMarkersDecorations||[]);for(I=D.next();!I.done;I=D.next())if(I=g.Q(I.value,GCc))K=I.label,Z=F=k=void 0,H.push({visibleTimeRangeStartMillis:(k=I.visibleTimeRangeStartMillis)!=null?k:-1,visibleTimeRangeEndMillis:(F=I.visibleTimeRangeEndMillis)!=null?F:-1,decorationTimeMillis:(Z=I.decorationTimeMillis)!=null?Z:NaN,label:K?g.ih(K):""});f.heatMarkersDecorations=H}}; cVT=function(f,D){f.S.push(D);g.N(f,D);D.CQ(f.EW,f.EW.children.length)}; Uvc=function(f,D){D=g.a(D);for(var F=D.next();!F.done;F=D.next()){F=F.value;var Z=r8(f,F.timeRangeStartMillis/(f.B.Y*1E3),L1(f)),I=f.api.Z("delhi_modern_web_player")?.667:.6;g.Dx(F.element,"transform","translateX("+Z+"px) scaleX("+I+")")}}; t7E=function(f,D){var F=0,Z=!1;D=g.a(D);for(var I=D.next();!I.done;I=D.next()){I=I.value;if(g.Q(I,W7u)){I=g.Q(I,W7u);var p={startTime:NaN,title:null,onActiveCommand:void 0},z=I.title;p.title=z?g.ih(z):"";z=I.timeRangeStartMillis;z!=null&&(p.startTime=z);p.onActiveCommand=I.onActiveCommand;I=p;F===0&&I.startTime!==0&&(f.Y[F].startTime=0,f.Y[F].title="",f.Y[F].onActiveCommand=I.onActiveCommand,F++,Z=!0);f.Y.length<=F&&(p=new a3,f.Y.push(p),g.N(f,p),p.CQ(f.JN,f.JN.children.length));f.Y[F].startTime= I.startTime;f.Y[F].title=I.title?I.title:"";f.Y[F].onActiveCommand=I.onActiveCommand;f.Y[F].index=Z?F-1:F}F++}for(;F=0;Z--)if(f.Y[Z].width>0){V7E(f.Y[Z],0);var I=Math.floor(f.Y[Z].width);f.Y[Z].width=I;GX(f.Y[Z],I+"px");break}f.Y[F].width=0;GX(f.Y[F],"0")}else F===f.Y.length-1?(Z=Math.floor(f.Y[F].width+D),f.Y[F].width=Z,GX(f.Y[F],Z+"px")):(D=f.Y[F].width+D,Z=Math.round(D),D-=Z,f.Y[F].width=Z,GX(f.Y[F],Z+"px"));F=0;if(f.G.length===f.Y.length)for(D=0;D< f.G.length;D++)Z=f.Y[D].width,f.G[D].element.style.width=Z+"px",f.G[D].element.style.left=F+"px",F+=Z+EY(f);f.api.Z("delhi_modern_web_player")&&(f.Y.length===1?f.Y[0].J.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(f.Y[0].J.classList.remove("ytp-progress-bar-end"),f.Y[0].J.classList.add("ytp-progress-bar-start"),f.Y[f.Y.length-1].J.classList.add("ytp-progress-bar-end")))}; BOT=function(f,D){var F=0,Z=!1,I=f.Y.length,p=f.B.Y*1E3;p===0&&(p=f.api.getProgressState().seekableEnd*1E3);if(p>0&&f.T>0){for(var z=f.T-EY(f)*f.Ir,H=f.Wk===0?3:z*f.Wk,K=g.a(f.Y),k=K.next();!k.done;k=K.next())k.value.width=0;for(;F1);k=(p===0?0:K/p*z)+f.Y[F].width;if(k>H)f.Y[F].width=k;else{f.Y[F].width=0;var h=f,y=F,A=h.Y[y-1];A!==void 0&&A.width>0? A.width+=k:yf.Wk&&(f.Wk=K/p),Z=!0)}F++}}return Z}; lF=function(f){if(f.T){var D=f.api.getProgressState(),F=f.api.getVideoData();if(!(F&&F.enableServerStitchedDai&&F.hE)||isFinite(D.current)){var Z;if(((Z=f.api.getVideoData())==null?0:Hv(Z))&&D.airingStart&&D.airingEnd)var I=JM(f,D.airingStart,D.airingEnd);else if(f.api.getPresentingPlayerType()===2){var p,z,H;I=(F=(I=f.api.getVideoData())==null?void 0:(p=I.getPlayerResponse())==null?void 0:(z=p.playerConfig)==null?void 0:(H=z.webPlayerConfig)==null?void 0:H.skippableAdProgressBarDuration)?JM(f,D.seekableStart, F/1E3):JM(f,D.seekableStart,D.seekableEnd)}else I=JM(f,D.seekableStart,D.seekableEnd);p=wQ(I,D.loaded,0);D=wQ(I,D.current,0);z=f.B.J!==I.J||f.B.Y!==I.Y;f.B=I;uF(f,D,p);z&&rVJ(f);L7I(f);D=48;I=f.api.j();p=g.Pf(f.api.j().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");p=f.api.Z("delhi_modern_web_player_compact_controls")||p>0&&f.api.getPlayerSize().width<=p;f.api.Z("delhi_modern_web_player")?D=f.api.getPlayerSize().width<=528?p?56:64:f.X?p?72:96:p?56:72:f.X?D=54:g.LM(I)&& !I.J&&(D=40);f.xo=D}}}; JM=function(f,D,F){return lcT(f)?new GL(Math.max(D,f.Mb.startTimeMs/1E3),Math.min(F,f.Mb.endTimeMs/1E3)):new GL(D,F)}; JVJ=function(f,D){var F,Z,I;D=g.Q((F=D.getWatchNextResponse())==null?void 0:(Z=F.playerOverlays)==null?void 0:(I=Z.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,lM);if(D==null?0:D.progressColor)for(F=0;F1){F=NN(f,D.B,!0);for(var Z=0,I=0;I0&&(Z+=f.Y[I].width,Z+=EY(f));F=(f.Y[F].startTime+(D.B-Z)/f.Y[F].width*((F===f.Y.length-1?f.B.Y*1E3:f.Y[F+1].startTime)-f.Y[F].startTime))/1E3||0}return F}; NOc=function(f,D){if(D<0)return"0";f=Math.floor(Math.min(D,f.api.getDuration())*1E3);return f>2147483647?"0":String(f)}; ej=function(f,D,F,Z,I){D=NOc(f,D);F=NOc(f,F);f=f.progressBar.visualElement;Z={seekData:{startMediaTimeMs:D,endMediaTimeMs:F,seekSource:Z}};(D=g.d4())&&ZF(D,f,I,Z)}; gsE=function(f,D,F){if(F>=f.Y.length)return!1;var Z=f.T-EY(f)*f.Ir;return Math.abs(D-f.Y[F].startTime/1E3)/f.B.Y*Z<4}; rVJ=function(f){f.Tm.style.removeProperty("height");for(var D=g.a(Object.keys(f.Ps)),F=D.next();!F.done;F=D.next())e5d(f,F.value);xr(f);uF(f,f.Bs,f.Z5)}; L1=function(f){var D=f.Uq.x;D=g.PZ(D,0,f.T);f.K7.update(D,f.T);return f.K7}; uF=function(f,D,F){f.Bs=D;f.Z5=F;var Z=L1(f),I=f.B.Y,p=N0E(f.B,f.Bs),z=g.F8("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.ms(p,!0),DURATION:g.ms(I,!0)}),H=DW(f.Y,p*1E3);H=f.Y[H].title;f.update({ariamin:Math.floor(f.B.J),ariamax:Math.floor(I),arianow:Math.floor(p),arianowtext:H?H+" "+z:z});I=f.clipStart;p=f.clipEnd;f.Mb&&f.api.getPresentingPlayerType()!==2&&(I=f.Mb.startTimeMs/1E3,p=f.Mb.endTimeMs/1E3);I=wQ(f.B,I,0);H=wQ(f.B,p,1);z=f.api.getVideoData();p=g.PZ(D,I,H);F=(z==null?0:g.zy(z))?1:g.PZ(F, I,H);D=r8(f,D,Z);g.Dx(f.J7,"transform","translateX("+D+"px)");f.api.Z("delhi_modern_web_player")&&f.api.Z("delhi_modern_web_player_cutout")&&xvu(f,D);OY(f,Z,I,p,"PLAY_PROGRESS");(z==null?0:Hv(z))?(D=f.api.getProgressState().seekableEnd)&&OY(f,Z,p,wQ(f.B,D),"LIVE_BUFFER"):OY(f,Z,I,F,"LOAD_PROGRESS");if(f.api.Z("web_player_heat_map_played_bar")){var K;(K=f.G[0])!=null&&K.T.setAttribute("width",(p*100).toFixed(2)+"%")}}; xvu=function(f,D){f.api.getPresentingPlayerType()!==1?f.JN.style.removeProperty("clip-path"):(D||(D=r8(f,f.Bs,L1(f))),f.JN.style.clipPath='path("'+(f.B_?XFf(f,8,D,f.X?50:36,0,6):XFf(f,4,D,f.X?34:24,2,3))+'")')}; XFf=function(f,D,F,Z,I,p){var z=F-Z/2;F+=Z/2;D+=I;return"M 0 "+I+" L 0 "+(D+" L ")+(z+" "+D+" C ")+(z+p+" "+D+" "+(z+p)+" "+I+" "+z+" "+I+" L 0 ")+(I+" M ")+(F+" "+I+" L ")+(f.T+" "+I+" L ")+(f.T+" "+D+" L ")+(F+" "+D+" C ")+(F-p+" "+D+" "+(F-p)+" "+I+" "+F+" "+I)}; OY=function(f,D,F,Z,I){var p=f.Y.length,z=D.Y-f.Ir*EY(f),H=F*z;F=NN(f,H);var K=Z*z;z=NN(f,K);I==="HOVER_PROGRESS"&&(z=NN(f,D.Y*Z,!0),K=D.Y*Z-Ods(f,D.Y*Z)*EY(f));Z=Math.max(H-nsa(f,F),0);for(H=F;H=f.Y.length)return f.T;for(var F=0,Z=0;Z0||f.vI.clientWidth>0?(p=D.clientWidth/F,f=-1*f.Zx.clientWidth/F):(p/=F,f=-1*f.Y[I].element.offsetLeft/F),g.Dx(D,"background-size",p+"px"),g.Dx(D,"background-position-x",f+"px"))}; n1=function(f,D,F,Z,I){I||f.api.j().J?D.style.width=F+"px":g.Dx(D,"transform","scalex("+(Z?F/Z:0)+")")}; NN=function(f,D,F){var Z=0;(F===void 0?0:F)&&(D-=Ods(f,D)*EY(f));F=g.a(f.Y);for(var I=F.next();!I.done;I=F.next()){I=I.value;if(D>I.width)D-=I.width;else break;Z++}return Z===f.Y.length?Z-1:Z}; r8=function(f,D,F){var Z=D*f.B.Y*1E3;for(var I=-1,p=g.a(f.Y),z=p.next();!z.done;z=p.next())z=z.value,Z>z.startTime&&z.width>0&&I++;Z=I<0?0:I;I=F.Y-EY(f)*f.Ir;return D*I+EY(f)*Z+F.G}; Ods=function(f,D){for(var F=f.Y.length,Z=0,I=g.a(f.Y),p=I.next();!p.done;p=I.next())if(p=p.value,p.width!==0)if(D>p.width)D-=p.width,D-=EY(f),Z++;else break;return Z===F?F-1:Z}; g.fBu=function(f,D,F,Z){var I=f.T!==F,p=f.X!==Z;f.f7=D;f.T=F;f.X=Z;w8(f)&&(D=f.J)!=null&&(D.scale=Z?1.5:1);rVJ(f);f.Y.length===1&&(f.Y[0].width=F||0);I&&g.Bx(f);f.J&&p&&w8(f)&&(f.J.isEnabled&&(F=f.X?135:90,Z=F-f.xo,f.G3.style.height=F+"px",g.Dx(f.KQ,"transform","translateY("+-Z+"px)"),g.Dx(f.progressBar,"transform","translateY("+-Z+"px)")),idf(f.J))}; xr=function(f){var D=!!f.Mb&&f.api.getPresentingPlayerType()!==2,F=f.clipStart,Z=f.clipEnd,I=!0,p=!0;D&&f.Mb?(F=f.Mb.startTimeMs/1E3,Z=f.Mb.endTimeMs/1E3):(I=F>f.B.J,p=f.B.Y>0&&Zf.Bs);g.qI(f.Tm,"ytp-scrubber-button-hover",F===Z&&f.Y.length>1);if(f.api.Z("web_player_heat_map_played_bar")){var p;(p=f.G[0])!=null&&p.Y.setAttribute("width",(D.J*100).toFixed(2)+"%")}}}; e5d=function(f,D){var F=f.Ps[D];D=f.BI[D];var Z=L1(f),I=wQ(f.B,F.start/1E3,0),p=H2T(F,f.X)/Z.width;var z=wQ(f.B,F.end/1E3,1);p!==Number.POSITIVE_INFINITY&&(I=g.PZ(I,0,z-p));z=Math.min(z,I+p);F.color&&(D.style.background=F.color);F=I;D.style.left=Math.max(F*Z.Y+Z.G,0)+"px";n1(f,D,g.PZ((z-F)*Z.Y+Z.G,0,Z.width),Z.width,!0)}; Djc=function(f,D){var F=D.getId();f.Ps[F]===D&&(g.cE(f.BI[F]),delete f.Ps[F],delete f.BI[F])}; w8=function(f){var D=g.sn(f.api.j())&&(f.api.Z("web_shorts_pip")||f.api.Z("web_watch_pip")),F;return!((F=f.api.getVideoData())==null?0:F.isLivePlayback)&&!f.api.isMinimized()&&!f.api.isInline()&&(!f.api.ob()||!D)}; Yr=function(f){f.J&&(f.J.disable(),f.eT=0,f.KQ.style.removeProperty("transform"),f.progressBar.style.removeProperty("transform"),f.G3.style.removeProperty("height"),f.element.parentElement&&f.element.parentElement.style.removeProperty("height"))}; F2D=function(f,D){var F=D/((f.X?135:90)-f.xo)*f.xo;g.Dx(f.progressBar,"transform","translateY("+-D+"px)");g.Dx(f.KQ,"transform","translateY("+-D+"px)");g.Dx(f.G3,"transform","translateY("+F+"px)");f.G3.style.height=D+F+"px";f.element.parentElement&&(f.element.parentElement.style.height=f.xo-F+"px")}; Zvu=function(f,D){D?f.N||(f.element.removeAttribute("aria-disabled"),f.N=new g.b3(f.progressBar,!0),f.api.Z("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&f.N.subscribe("hoverstart",f.UIs,f),f.N.subscribe("hovermove",f.mIx,f),f.N.subscribe("hoverend",f.h_3,f),f.N.subscribe("dragstart",f.XwT,f),f.N.subscribe("dragmove",f.Tpx,f),f.N.subscribe("dragend",f.ZaY,f),f.api&&f.api.Z("delhi_modern_web_player")&&f.api.Z("delhi_modern_web_player_cutout")&&(f.Dp=new g.b3(f.progressBar, !0),f.Dp.subscribe("hoverstart",function(){f.B_=!0;xvu(f)},f),f.Dp.subscribe("hoverend",function(){f.B_=!1; xvu(f)},f)),f.n7=f.listen("keydown",f.VK)):f.N&&(f.element.setAttribute("aria-disabled","true"),f.DK(f.n7),f.N.cancel(),f.N.dispose(),f.N=null)}; EY=function(f){return f.api.Z("delhi_modern_web_player")?4:f.X?3:2}; lcT=function(f){var D;return!((D=f.Mb)==null||!D.postId)&&f.api.getPresentingPlayerType()!==2}; Px=function(f,D){g.x.call(this,{K:"button",ST:["ytp-remote-button","ytp-button"],W:{title:f.Z("player_tooltip_data_title_killswitch")?"Ver en la televisi\u00f3n":"","data-tooltip-title":"Ver en la televisi\u00f3n","aria-haspopup":"true","data-priority":"10"},nQ:"{{icon}}"});this.U=f;this.x8=D;this.Y=null;this.D(f,"onMdxReceiversChange",this.u3);this.D(f,"presentingplayerstatechange",this.u3);this.D(f,"appresize",this.u3);f.createClientVe(this.element,this,139118);this.u3();this.listen("click",this.J, this);Uz(f,this.element,this)}; fL=function(f,D){g.x.call(this,{K:"button",ST:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":sq(),title:f.Z("player_tooltip_data_title_killswitch")?"Configuraci\u00f3n":"","data-tooltip-title":"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},L:[f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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.ca()]});this.U=f;this.x8=D;this.J=!0;this.listen("click",this.B);this.D(f,"onPlaybackQualityChange",this.updateBadge);this.D(f,"videodatachange",this.updateBadge);this.D(f,"webglsettingschanged",this.updateBadge);this.D(f,"appresize",this.Y);Uz(f,this.element,this);this.U.createClientVe(this.element,this,28663);this.updateBadge();this.Y(f.sy().getPlayerSize())}; IBw=function(f,D){f.J=!!D;f.Y(f.U.sy().getPlayerSize())}; DA=function(f,D,F){if(f.Z("web_add_footer_template_to_audio_track")){var Z="Edita tus $BEGIN_LINKidiomas preferidos$END_LINK en los ajustes".split(/\$(BEGIN|END)_LINK/);Z={K:"div",C:"ytp-panel-footer-content",L:[Z[0],{K:"a",C:"ytp-panel-footer-content-link",W:{href:"/account_playback"},nQ:Z[2]},Z[4]]}}g.C7.call(this,"Pista de audio",g.dZ.AUDIO,f,D,void 0,void 0,Z);this.U=f;this.Y=F;this.tracks={};g.IC(this.element,"ytp-audio-menu-item");this.countLabel=new g.x({K:"div",L:[{K:"span",nQ:"Pista de audio"}, {K:"span",C:"ytp-menuitem-label-count",nQ:"{{content}}"}]});f.Z("web_settings_menu_icons")&&!this.U.Z("html5_enable_new_audio_settings_menu")&&(D=f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]},this.setIcon(D));g.N(this,this.countLabel);g.Dg(this,this.countLabel);f.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.D(f,"videodatachange",this.u3);this.D(f,"onPlaybackAudioChange",this.u3);this.u3()}; pAf=function(f,D){g.Fj.call(this,g.Zg({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.dZ.bf);this.U=f;this.x8=D;g.IC(this.element,"ytp-audio-settings-menu-item");this.Qj=new g.i3(f,void 0,"Audio");this.countLabel=new g.x({K:"div",L:[{K:"span",nQ:"Audio"},{K:"span",C:"ytp-menuitem-label-count",nQ:"{{content}}"}]});f.Z("web_settings_menu_icons")&&this.setIcon({K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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.yQ=new DA(f,this.x8,this);g.N(this,this.yQ);this.D(f,"settingsMenuInitialized",this.oG.bind(this));this.D(f,"videodatachange",this.oG.bind(this));g.N(this,this.countLabel);g.Dg(this,this.countLabel);this.x8.tN(this);this.D(f,"onPlaybackAudioChange",this.X9);this.listen("keydown",this.VK);this.listen("click",this.open)}; Fw=function(f,D){jG.call(this,"Reproducci\u00f3n autom\u00e1tica",g.dZ.qB);this.U=f;this.x8=D;this.Y=!1;this.J=[];this.D(f,"presentingplayerstatechange",this.oG);this.subscribe("select",this.onSelect,this);f.createClientVe(this.element,this,113682);this.oG()}; zzI=function(f,D){g.Fj.call(this,g.Zg({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.U=f;this.x8=D;this.D(this.element,"click",this.onClick);this.x8.tN(this)}; sFD=function(f,D){var F;g.sn(f.j())&&(F={K:"div",C:"ytp-panel-footer-content",L:[{K:"span",nQ:"Ajusta la calidad de descarga desde tu "},{K:"a",C:"ytp-panel-footer-content-link",nQ:"Configuraci\u00f3n",W:{href:"/account_downloads"}}]});g.C7.call(this,"Calidad",g.dZ.G6,f,D,void 0,void 0,F);this.U=f;this.KQ={};this.T={};this.J={};this.xo=new Set;this.Y=this.G=!1;this.X="unknown";this.S="";this.Bs=new g.JT;g.N(this,this.Bs);this.G=this.U.Z("web_player_use_new_api_for_quality_pullback");this.Y=this.U.Z("web_player_enable_premium_hbr_playback_cap"); f.Z("web_settings_menu_icons")&&(D=f.Z("delhi_modern_web_player_icons")?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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(D));g.IC(this.Qj.element,"ytp-quality-menu");this.D(f,"videodatachange",this.oG);this.D(f,"videoplayerreset",this.oG);this.D(f,"onPlaybackQualityChange",this.Pd);this.oG();f.createClientVe(this.element,this,137721)}; Hvs=function(f,D,F){var Z=f.KQ[D],I=g.t9[D];return qbd(f,Z?Z.qualityLabel:I?I+"p":"Autom\u00e1tica",D,F)}; oLd=function(f,D,F,Z,I){var p=(D=f.Y?f.J[D]:f.T[D])&&D.quality,z=D&&D.qualityLabel;z=z?z:"Autom\u00e1tica";Z&&(z="("+z);f=qbd(f,z,p||"",I);Z&&f.L.push(")");(Z=(Z=D&&D.paygatedQualityDetails)&&Z.paygatedIndicatorText)&&F&&f.L.push({K:"div",C:"ytp-premium-label",nQ:Z});return f}; qbd=function(f,D,F,Z){D={K:"span",ST:Z,L:[D]};var I;Z="ytp-swatch-color";if(f.G||f.Y)Z="ytp-swatch-color-white";F==="highres"?I="8K":F==="hd2880"?I="5K":F==="hd2160"?I="4K":F.indexOf("hd")===0&&F!=="hd720"&&(I="HD");I&&(D.L.push(" "),D.L.push({K:"sup",C:Z,nQ:I}));return D}; ZA=function(f){TX.call(this,f.getAvailablePlaybackRates()[0],f.getAvailablePlaybackRates()[f.getAvailablePlaybackRates().length-1],.05,f.getPlaybackRate(),{K:"div",C:"ytp-speedslider-indicator-container",L:[{K:"div",C:"ytp-speedslider-badge"},{K:"p",C:"ytp-speedslider-text"}]});this.U=f;this.N=ec(this.FB,50,this);g.IC(this.J,"ytp-speedslider");this.S=this.fQ("ytp-speedslider-text");this.Bs=this.fQ("ytp-speedslider-badge");this.nG();this.D(this.J,"change",this.Qcx)}; Ix=function(f,D,F,Z,I,p,z){g.x.call(this,{K:"div",C:"ytp-slider-section",W:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},L:[{K:"div",C:"ytp-slider",L:[{K:"div",C:"ytp-slider-handle"}]}]});this.S=f;this.N=D;this.J=F;this.B=Z;this.Bs=I;this.Tx=p;this.range=this.B-this.J;this.rY=this.fQ("ytp-slider-section");this.G=this.fQ("ytp-slider");this.KQ=this.fQ("ytp-slider-handle");this.T=new g.b3(this.G, !0);this.Y=z?z:F;g.N(this,this.T);this.T.subscribe("dragmove",this.dP,this);this.D(this.element,"keydown",this.uT);this.D(this.element,"wheel",this.Nf);this.init()}; pL=function(f){Ix.call(this,.05,.05,f.getAvailablePlaybackRates()[0],f.getAvailablePlaybackRates()[f.getAvailablePlaybackRates().length-1],150,20,f.getPlaybackRate());this.U=f;this.X=g.TR("P");this.zx=ec(this.xo,50,this);g.IC(this.G,"ytp-speedslider");g.IC(this.X,"ytp-speedslider-text");f=this.X;var D=this.G;D.parentNode&&D.parentNode.insertBefore(f,D.nextSibling);this.nG();this.D(this.U,"onPlaybackRateChange",this.updateValues)}; K2u=function(f,D){f=Number(g.PZ(D,f.J,f.B).toFixed(2));D=Math.floor((f+.001)*100%5+2E-15);var F=f;D!==0&&(F=f-D*.01);return Number(F.toFixed(2))}; kga=function(f){g.Km.call(this,{K:"div",C:"ytp-speedslider-component"});f.Z("web_settings_use_input_slider")?this.Y=new ZA(f):this.Y=new pL(f);g.N(this,this.Y);this.element.appendChild(this.Y.element)}; jFD=function(f){var D=new kga(f);jI.call(this,f,D,"Personalizada");g.N(this,D)}; hzX=function(f,D){var F=new jFD(f);g.C7.call(this,"Velocidad de reproducci\u00f3n",g.dZ.J$,f,D,zi(f)?void 0:"Personalizada",zi(f)?void 0:function(){g.Ap(D,F)}); var Z=this;this.S=new g.x({K:"div",C:"ytp-menuitem-premium-badge",W:{"aria-label":"Premium"}});this.X=!1;this.ej={Uyx:function(){return Z.G}}; g.N(this,F);this.pR=new ZA(f);g.N(this,this.pR);if(f.Z("web_settings_menu_icons")){var I=f.Z("delhi_modern_web_player_icons")?p6D():{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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(I)}this.U=f;this.X=!1;this.Bs=null;zi(f)?(this.Y=g.F8("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.U.getPlaybackRate().toString()}),this.T=this.U.getPlaybackRate()):this.T=this.Y=null;g.N(this,this.S);var p,z,H,K;this.KQ=(p=this.U.getVideoData())==null?void 0:(z=p.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(K=H.playerOverlayRenderer)==null?void 0:K.showPlaybackRateUpsellPanelCommand;ivs(f,this.KQ)?(this.J=qZ(4),this.U.createClientVe(this.S.element, this,273508)):this.J=null;this.U.Z("enable_web_premium_varispeed_upsell")&&this.U.createClientVe(this.element,this,278479);this.G=this.U.getAvailablePlaybackRates();this.D(f,"presentingplayerstatechange",this.u3);var k;((k=this.U.getVideoData())==null?0:k.nE())&&this.D(f,"serverstitchedvideochange",this.u3);this.D(f,"videodatachange",this.onVideoDataChange);this.D(this.pR.J,"change",function(){Z.X=!0;Z.u3()}); this.u3()}; ywE=function(f,D){var F=qZ(D);f.Y&&(f.X||D===f.T)?(f.bv(f.Y),f.setContent(D.toString())):f.bv(F)}; $jD=function(f){var D=f.G.map(qZ);f.J&&D.push(f.J);f.cR(D);f.Y=null;f.T=null;D=f.U.getPlaybackRate();zi(f.U)&&Awu(f,D);!f.G.includes(D)||f.X?f.bv(f.Y):f.bv(qZ(D))}; Awu=function(f,D){f.T=D;f.Y=g.F8("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:D.toString()});D=f.G.map(qZ);D.unshift(f.Y);f.J&&D.push(f.J);f.cR(D)}; VLD=function(f,D,F,Z){F=new g.Fj({K:"div",ST:["ytp-menuitem"],W:{tabindex:"0",role:"menuitemradio","aria-checked":Z?"true":"false"},L:[{K:"div",ST:["ytp-menuitem-label"],L:[{K:"div",ST:["ytp-menuitem-container-with-badge"],L:[{K:"div",nQ:"{{label}}"},f.S]}]}]},F,f.gQ(D));F.listen("click",function(){f.RL(D)}); return F}; qZ=function(f){return f.toString()}; zi=function(f){return f.Z("web_settings_menu_surface_custom_playback")}; ivs=function(f,D){return!!D&&f.getAvailablePlaybackRates()[f.getAvailablePlaybackRates().length-1]<=2}; RzJ=function(f){return f.Z("web_settings_menu_surface_custom_playback")&&f.Z("web_settings_use_input_slider")}; QFJ=function(f,D,F,Z){var I=new g.i3(D,void 0,"Anulaci\u00f3n de v\u00eddeo");g.C7.call(this,Z.text||"",f,D,F,"Anulaci\u00f3n de v\u00eddeo",function(){g.Ap(F,I)}); var p=this;g.IC(this.element,"ytp-subtitles-options-menu-item");this.setting=Z.option.toString();f=Z.options;this.settings=g.yg(f,this.O5,this);this.G=I;g.N(this,this.G);D=new g.Fj({K:"div",C:"ytp-menuitemtitle",nQ:"Permite un estilo de subt\u00edtulos diferente al del especificado en el v\u00eddeo."},0);g.N(this,D);this.G.tN(D,!0);this.J=new g.Fj({K:"div",C:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},L:[{K:"div",C:"ytp-menuitem-label",nQ:"Activado"}]},-1);g.N(this,this.J);this.G.tN(this.J, !0);this.D(this.J.element,"click",function(){djT(p,!0)}); this.Y=new g.Fj({K:"div",C:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},L:[{K:"div",C:"ytp-menuitem-label",nQ:"No"}]},-2);g.N(this,this.Y);this.G.tN(this.Y,!0);this.D(this.Y.element,"click",function(){djT(p,!1)}); this.cR(g.M2(f,this.O5))}; djT=function(f,D){f.publish("settingChange",f.setting+"Override",!D);f.x8.C7()}; Hd=function(f,D){g.i3.call(this,f,void 0,"Opciones");var F=this;this.gR={};for(var Z=0;Z0)for(b=g.a(A),S=b.next(),U={};!S.done;U={kM:void 0, AX:void 0},S=b.next())U.AX=S.value,U.kM=m&&U.AX.isPremiumUpsell,A=new g.x({K:"button",ST:["ytp-button","ytp-variable-speed-panel-preset-button","ytp-variable-speed-panel-button"],L:U.kM?[{K:"div",C:"ytp-variable-speed-panel-premium-upsell-icon"},{K:"span",nQ:""+U.AX.label}]:[{K:"span",nQ:""+U.AX.label}]}),g.N(this,A),F.element.appendChild(A.element),A.listen("click",function(G){return function(){G.kM?y.U.wY("innertubeCommand",m):G.AX.value&&y.U.setPlaybackRate(G.AX.value/100);f.logClick(F.element)}}(U)), V=void 0,S=new g.x({K:"div", C:"ytp-variable-speed-panel-preset-button-wrapper",W:{"data-priority":""+((V=U.AX.priority)!=null?V:0)},L:[A]}),g.N(this,S),U.AX.value===100&&(U=new g.x({K:"div",C:"ytp-variable-speed-panel-preset-button-label-text",nQ:"Normal"}),g.N(this,U),S.element.appendChild(U.element)),F.element.appendChild(S.element);this.D(this.pR.J,"input",function(){y.nG(y.pR.Y)}); this.D(f,"onPlaybackRateChange",this.onPlaybackRateChange);this.D(f,"resize",p);this.onPlaybackRateChange(f.getPlaybackRate());this.lf()}; jr=function(f,D){g.C7.call(this,"Velocidad de reproducci\u00f3n",g.dZ.J$,f,D);this.U=f;f.Z("web_settings_menu_icons")&&this.setIcon(p6D());this.J(f.getPlaybackRate());this.D(f,"onPlaybackRateChange",this.J);this.D(f,"presentingplayerstatechange",this.Y);var F;((F=this.U.getVideoData())==null?0:F.nE())&&this.D(f,"serverstitchedvideochange",this.Y);this.Y()}; MLa=function(f){g.yO.call(this,f,"ytp-settings-menu");var D=this;this.G8=new g.i3(this.U);this.IU=this.Dy=this.settingsButton=null;this.isInitialized=this.i8=!1;g.N(this,this.G8);this.hide();g.Ap(this,this.G8);f.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(I){D.lY(I)}); this.D(f,"highlightSettingsMenu",function(){D.i8=!0;D.Rc()}); this.D(f,"openSettingsMenuItem",function(I){if(I&&(D.i8=!0,D.Rc(),I==="menu_item_video_quality_advanced")){var p;(p=D.Dy)==null||p.open()}}); f.Z("html5_enable_voice_boost")&&(this.D(f,"onPlaybackAudioChange",this.X9),this.D(f,"videodatachange",this.X9));var F,Z;((F=this.U.j())==null?0:(Z=F.getWebPlayerContextConfig())==null?0:Z.enableFullscreenComponentsFeature)&&this.D(this.element,"wheel",function(I){I.stopPropagation()})}; tLy=function(f,D){f.settingsButton=D;f.element.id=D.element.getAttribute("aria-controls")}; cwD=function(f,D){g.x.call(this,{K:"button",ST:["ytp-subtitles-button","ytp-button"],W:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:f.Z("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},L:[f.Z("delhi_modern_web_player_icons")?{K:"div",C:"ytp-subtitles-button-icon",nQ:"{{icon}}"}:Mhd(f)]});this.U=f;this.tooltip=D.pE();f.Z("delhi_modern_web_player_icons")&&this.updateValue("icon", Sbs(this));this.D(f,"videodatachange",this.u3);this.D(f,"appresize",this.u3);this.D(f,"promotooltipacceptbuttonclicked",this.hwy);this.D(f,"onApiChange",this.u3);this.D(f,"onCaptionsTrackListChanged",this.u3);this.D(f,"captionschanged",this.u3);this.U.createClientVe(this.element,this,127299);this.u3();this.listen("click",this.onClick);this.addOnDisposeCallback(g.cv(D.pE(),this.element))}; ip=function(f){return g.AY(f.U.I_())!=null?g.AY(f.U.I_()).Dk()?!!f.U.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; Sbs=function(f){if(f.U.Z("delhi_modern_web_player_icons"))return f=$q.includes("es")?ip(f)&&f.isEnabled()?{K:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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"}}]}:RV():ip(f)&&f.isEnabled()?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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"}}]}:hLD()}; g.hk=function(f,D,F){F=F===void 0?350:F;g.x.call(this,{K:"div",ST:["ytp-time-display","notranslate"],L:[{K:"div",C:"ytp-time-wrapper",L:[{K:"div",C:"ytp-time-contents",W:f.Z("delhi_modern_web_player")?{"aria-label":"{{timeDisplayAriaLabel}}",role:"button",tabindex:"0"}:{"aria-label":"{{timeDisplayAriaLabel}}"},L:[{K:"span",C:"ytp-time-clip-icon",nQ:"{{clipicon}}",W:{"aria-label":"Recortar"}},{K:"span",C:"ytp-time-current",nQ:"{{currenttime}}"},{K:"span",C:"ytp-time-separator",nQ:" / "},{K:"span", C:"ytp-time-duration",nQ:"{{duration}}"}]}]},{K:"span",C:"ytp-clip-watch-full-video-button-separator",nQ:"\u2022"},{K:"span",C:"ytp-clip-watch-full-video-button",nQ:"{{watchfullvideo}}"}]});var Z=this;this.api=f;this.Bs=F;this.liveBadge=new g.x({K:"button",ST:["ytp-live-badge","ytp-button"],W:{disabled:"true"},nQ:"{{content}}"});this.Y=null;this.CS=this.J=!1;this.N=this.S=this.T=null;this.isPremiere=!1;this.X=this.G=null;this.B=!1;this.Mb=this.liveIndicatorText=null;this.KQ=this.fQ("ytp-clip-watch-full-video-button"); this.liveBadge.setContent("En directo");g.N(this,this.liveBadge);this.api.Z("web_player_updated_entrypoint")||this.api.Z("delhi_modern_web_player")?this.liveBadge.CQ(this.fQ("ytp-time-wrapper")):this.liveBadge.CQ(this.element);this.tooltip=D.pE();this.liveBadge.listen("click",this.onClick.bind(this));this.api.Z("delhi_modern_web_player")&&(D=this.fQ("ytp-time-wrapper"),this.D(D,"click",this.yZF),D.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.D(this.KQ,"click",this.I1b); this.D(this.api,"serverstitchedvideochange",function(){UjJ(Z,Z.api.getProgressState().isAtLiveHead)}); this.D(f,"presentingplayerstatechange",this.Ft);this.D(f,"appresize",this.Ft);this.D(f,"onLoopRangeChange",this.onLoopRangeChange);this.D(f,"videodatachange",this.onVideoDataChange);(D=f.getVideoData())&&this.updateVideoData(D);this.Ft();vLE(this,f.getLoopRange())}; UjJ=function(f,D){var F=f.liveBadge.element,Z=f.api.isLifaAdPlaying();F.disabled=Z||D;!yR(f)||f.N===D&&f.S===f.liveIndicatorText&&f.T===f.isPremiere||(f.N=D,f.S=f.liveIndicatorText,f.T=f.isPremiere,f.Ft(),D?F.classList.add("ytp-live-badge-is-livehead"):F.classList.remove("ytp-live-badge-is-livehead"),f.liveIndicatorText?f.liveBadge.setContent(f.liveIndicatorText):f.liveBadge.setContent(f.isPremiere?"Estreno":"En directo"),D?f.Y&&(f.Y(),f.Y=null,F.removeAttribute("data-tooltip-title")):(F.setAttribute("data-tooltip-title", "Accede a la emisi\u00f3n en directo"),f.Y=g.cv(f.tooltip,f.liveBadge.element)))}; vLE=function(f,D){var F=f.Mb!==D;f.Mb=D;F&&aBE(f)}; aBE=function(f){f.updateValue("clipicon",{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},L:[{K:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); f.CS&&!f.J?f.updateValue("watchfullvideo","Ver emisi\u00f3n en directo"):f.updateValue("watchfullvideo","Ver v\u00eddeo completo");g.qI(f.element,"ytp-clip",Ak(f));g.qI(f.element,"ytp-live",yR(f))}; yR=function(f){var D=f.api.j().Z("enable_linear_program_progress"),F=f.api.getPresentingPlayerType()===2;return f.CS&&!Ak(f)&&(!D||!f.J)&&!F}; Ak=function(f){return!!f.Mb&&!!f.Mb.postId&&f.api.getPresentingPlayerType()!==2&&(!f.Mb.type||f.Mb.type==="clips")}; W2J=function(f,D){g.x.call(this,{K:"div",C:"ytp-volume-panel",W:{title:f.Z("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"},L:[{K:"div",C:"ytp-volume-slider",L:[{K:"div",C:"ytp-volume-slider-handle"}]}]});var F=this;this.api=f;this.T=D;this.uc=!1;this.Bs=this.volume=0;this.X=null;this.J=this.Y=this.isDragging=!1;this.T=D;this.B=f.z2(); this.N=f.Z("web_player_use_screen_width_for_big_mode");this.S=this.fQ("ytp-volume-slider");this.KQ=this.fQ("ytp-volume-slider-handle");this.G=new g.b3(this.S,!0);g.N(this,this.G);this.G.subscribe("dragstart",this.txT,this);this.G.subscribe("dragmove",this.P3,this);this.G.subscribe("dragend",this.sGb,this);this.D(f,"onVolumeChange",this.onVolumeChange);this.D(f,"appresize",this.rZF);this.D(f,"fullscreentoggled",this.Oj);this.D(f,"onShowControls",this.Jg);this.D(f,"onHideControls",this.Jg);this.D(this.element, "keydown",this.On);this.D(this.element,"focus",function(){$$(F,F.Y,F.isDragging,!0,F.api.uc())}); this.D(this.element,"blur",function(){$$(F,F.Y,F.isDragging,!1,F.api.uc())}); GgD(this,f.sy().getPlayerSize());wAw(this,f.getVolume(),f.isMuted());Uz(f,this.element,this)}; Bcs=function(f){var D=f.api.z2();f.B!==D&&(f.B=D,wAw(f,f.api.getVolume(),f.api.isMuted()))}; GgD=function(f,D){f.VL(D.width>=350)}; wAw=function(f,D,F){var Z=Math.floor(D),I=Z+"% volumen"+(F?" silenciado":"");F=F?0:D/100;f.updateValue("valuenow",Z);f.updateValue("valuetext",I);Z=f.B?78:52;I=!f.api.Z("delhi_modern_web_player")&&f.B?18:12;f.KQ.style.left=(Z-I)*F+"px";f.volume=D}; rwd=function(f,D){g.qI(f.element,"ytp-volume-control-hover",D);$$(f,D,f.isDragging,f.J,f.api.uc())}; $$=function(f,D,F,Z,I){var p=f.Y||f.isDragging||f.J||f.uc;f.Y=D;f.isDragging=F;f.J=Z;f.uc=I;D=f.Y||f.isDragging||f.J||f.uc;p!==D&&(D?f.X=f.D(f.element,"wheel",f.Q1):(f.DK(f.X),f.X=null),g.qI(f.T,"ytp-volume-slider-active",D))}; VR=function(f,D){var F=f.j(),Z=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];F.B&&Z.push("no-link");var I={title:f.Z("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:F.Jb,"data-priority":"6","data-sessionlink":"feature=player-button"};F.B||(I.href="{{url}}");g.x.call(this,{K:"a",ST:Z,W:I,nQ:"{{logoSvg}}"});this.Y=null;this.api=f;this.visible=!1;F.B||(this.Y=this.listen("click",this.onClick));this.D(f,"videodatachange",this.onVideoDataChange); this.D(f,"videoplayerreset",this.onVideoDataChange);this.D(f,"onLoopRangeChange",this.onVideoDataChange);this.D(f,"appresize",this.bE);this.onVideoDataChange();F.B||this.addOnDisposeCallback(g.cv(D.pE(),this.element));this.bE()}; lBT=function(f,D,F){g.ia.call(this);var Z=this;this.U=f;this.xo=D;this.La=F;this.eT=NaN;this.KQ=this.dY=this.playButton=this.G=this.X=this.jT=this.rY=this.Bs=this.Jb=this.muteButton=this.S=this.Ps=this.Nh=this.b3=null;this.Y=new MLa(this.U);this.progressBar=new g.Wx(this.U,this.xo);this.iI=new g.hk(this.U,this.xo);this.LQ=new lAf(this.U,this.xo);this.N=new g.e$(this.L5,null,this);F=f.j();this.La.subscribe("autohideupdate",this.K0,this);var I=!f.getPlayerStateObject().isCued(),p;(this.G3=!f.Z("delhi_modern_web_player")&& f.j().Z("html5_player_dynamic_bottom_gradient"))?this.Ps=p=new W8T(f):p=new g.x({K:"div",C:"ytp-gradient-bottom"});g.N(this,p);g.uC(f,p.element,9);this.Tx=new g.Zr(p,250,I,100);g.N(this,this.Tx);this.J=new g.x({K:"div",C:"ytp-chrome-bottom",L:[{K:"div",C:"ytp-chrome-controls"}]});g.N(this,this.J);g.uC(f,this.J.element,9);this.zx=new g.Zr(this.J,250,I,100);g.N(this,this.zx);this.Ir=this.J.element.children[0];g.N(this,this.Y);g.uC(f,this.Y.element,6);this.Y.subscribe("show",function(k){Z.U.Wc(!k);f.Ul(Z.Y, k)}); g.N(this,this.progressBar);this.progressBar.CQ(this.J.element,0);I=new d8(f,D);g.N(this,I);g.uC(f,I.element,4);I=new g.qs({K:"div",C:"ytp-left-controls"});g.N(this,I);I.CQ(this.Ir);f.Z("delhi_modern_web_player")||(p=new g.UY(f,D,!1),g.N(this,p),p.CQ(I.element));f.Z("web_render_jump_buttons")&&(this.Jb=new Q6(f,-10),g.N(this,this.Jb),this.Jb.CQ(I.element));F.jT||(this.playButton=new g.cx(f,D),g.N(this,this.playButton),this.playButton.CQ(I.element));f.Z("web_render_jump_buttons")&&(this.Bs=new Q6(f, 10),g.N(this,this.Bs),this.Bs.CQ(I.element));f.Z("delhi_modern_web_player_remove_nav_buttons")||(f.Z("delhi_modern_web_player")&&(p=new g.UY(f,D,!1),g.N(this,p),p.CQ(I.element)),p=new g.UY(f,D,!0),g.N(this,p),p.CQ(I.element));if(!f.Z("delhi_modern_web_player")||f.Z("delhi_modern_web_player_horizontal_volume_controls"))if(p=new g.x({K:"span",C:"ytp-volume-area"}),g.N(this,p),p.CQ(I.element),!F.BI&&(this.muteButton=new Sj(f,D),g.N(this,this.muteButton),this.muteButton.CQ(p.element),F.rY&&!F.S)){var z= new W2J(f,this.J.element);this.dY=z;g.N(this,z);z.CQ(p.element);p=new g.b3(p.element);g.N(this,p);p.subscribe("hoverstart",function(){var k;(k=Z.dY)==null||rwd(k,!0)}); p=new g.b3(I.element);g.N(this,p);p.subscribe("hoverend",function(){var k;(k=Z.dY)==null||rwd(k,!1)})}f.Z("delhi_modern_web_player_lhs_volume_controls")&&!f.Z("delhi_modern_web_player_horizontal_volume_controls")&&(I.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new Sj(f,D),g.N(this,this.muteButton),this.muteButton.CQ(I.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.N(this,this.iI);this.iI.CQ(I.element);this.rY=new V6(f,this.progressBar);g.N(this,this.rY);this.rY.CQ(I.element);F.Z("web_key_moments_markers")&&(this.jT=new C1(f,this.progressBar),g.N(this,this.jT),this.jT.CQ(I.element));f.Z("delhi_modern_web_player")?this.B=new g.qs({K:"div",C:"ytp-right-controls",L:[{K:"div",C:Rx.RIGHT_CONTROLS_LEFT},{K:"div",C:Rx.RIGHT_CONTROLS_RIGHT}]}):this.B=new g.qs({K:"div",C:"ytp-right-controls"});g.N(this,this.B);this.B.CQ(this.Ir);f.Z("delhi_modern_web_player")&&(this.S= new R3(f),g.N(this,this.S),this.S.CQ(this.B.fQ(Rx.RIGHT_CONTROLS_LEFT)),f.Z("delhi_modern_web_player_lhs_volume_controls")||f.Z("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new Sj(f,D),g.N(this,this.muteButton),this.muteButton.CQ(this.B.fQ(Rx.RIGHT_CONTROLS_LEFT))));this.JN=new cwD(f,D);g.N(this,this.JN);dn(this,this.JN,"RIGHT_CONTROLS_LEFT");this.settingsButton=new fL(f,this.Y);g.N(this,this.settingsButton);tLy(this.Y,this.settingsButton);dn(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); I=f.getVideoData();if(F.TK||I.Yn&&F.controlsType==="1")this.X=new VR(f,D),g.N(this,this.X),this.X.CQ(this.B.element);F.showMiniplayerButton&&!f.Z("web_player_miniplayer_in_context_menu")&&(this.G=new ml(f),g.N(this,this.G),dn(this,this.G,"RIGHT_CONTROLS_RIGHT"));F.showMiniplayerButton&&this.D(f,"minimized",function(){Z.Y.hide()}); F.EW&&(D=new Px(f,this.Y),g.N(this,D),dn(this,D,"RIGHT_CONTROLS_RIGHT"));F.mz&&(D=new AM(f),g.N(this,D),dn(this,D,"RIGHT_CONTROLS_RIGHT"));g.N(this,this.LQ);dn(this,this.LQ,"RIGHT_CONTROLS_RIGHT");g.N(this,this.N);this.D(f,"appresize",this.bE);this.D(f,"fullscreentoggled",this.bE);var H;(H=this.S)==null||H.subscribe("small-mode-expand-right-bottom-controls",function(){L2D(Z)}); var K;(K=this.S)==null||K.subscribe("small-mode-collapse-right-bottom-controls",function(){L2D(Z)}); this.D(f,"presentingplayerstatechange",this.zL);this.D(f,"videodatachange",this.onVideoDataChange);this.bE()}; L2D=function(f){f.J.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",f.S.isExpanded())}; ELu=function(f,D){f.U.getPlayerStateObject().isCued()||D?D&&(f.zx.hide(),f.Tx.hide(),f.muteButton&&f.muteButton.nF(!1),f.X&&f.X.nF(!1),f.G&&f.G.nF(!1),f.U.Bt(f.Cp())):D||(f.zx.show(),f.Tx.show(),f.muteButton&&f.muteButton.nF(!0),f.X&&f.X.nF(!0),f.G&&f.G.nF(!0),f.K0())}; uXa=function(f){var D=f.U.sy().getPlayerSize().width;return Math.max(D-Jww(f)*2,100)}; Jww=function(f){if(f.U.Z("web_player_rtr_ctrls")&&f.U.sy().xk)return 0;var D=f.U.z2(),F=f.U.getVideoData().Yn,Z=0;f.U.z2()&&f.U.isEmbedsShortsMode()&&(Z=(f.U.sy().getPlayerSize().width-f.U.getVideoContentRect().width)/2);return 12*(F?0:D?2:1)+Z}; NcD=function(f){var D=f.U.z2()?72:50,F=f.U.j();g.sn(F)&&(F.Z("delhi_modern_web_player")?(D=g.Pf(F.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),D=f.U.Z("delhi_modern_web_player_compact_controls")||D>0&&f.U.getPlayerSize().width<=D,D=f.U.z2()?F.Z("delhi_modern_web_player_big_mode_consistent_pill_height")?100:112:D?70:78,f.U.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(f=getComputedStyle(f.U.getRootNode()).getPropertyValue("--ytp-grid-peek-height")|| "36px",D+=Number(f.replace("px","")))):D=62,g.gk(F)&&(D=54));return D}; dn=function(f,D,F){f.U.Z("delhi_modern_web_player")?D.CQ(f.B.fQ(Rx[F])):D.CQ(f.B.element)}; ezJ=function(f){kK.call(this,f,!1);var D=this;this.suggestedActions={};this.Y=null;this.element.setAttribute("data-overlay-order","7");this.D(this.U,"videodatachange",this.onVideoDataChange);this.D(this.U,g.Nh("suggested_action_button_visible"),function(F){gLD(D,F.id);D.enabled=!0;D.lY()}); this.D(this.U,g.gA("suggested_action_button_visible"),function(F){D.enabled=!1;D.lY();D.U.removeCueRange(F.id)}); this.D(f,"presentingplayerstatechange",this.onStateChange)}; gLD=function(f,D){f.text=D;ILw(f);var F;f.onClickCommand=(F=f.suggestedActions[D])==null?void 0:F.tapCommand}; xjX=function(f){f.suggestedActions={};f.U.WD("suggested_action_button_visible");f.Y=null;f.U.setTrackingParams(f.badge.element,null);f.J=!1}; CL=function(f){g.x.call(this,{K:"div",C:QR.TITLE,L:[{K:"div",ST:[QR.TEXT,f.Z("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],L:[{K:"a",ST:[QR.LINK,QR.SESSIONLINK],W:{target:f.j().Jb,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},nQ:"{{title}}"},{K:"div",C:QR.SUBTEXT,L:["{{subtextElement}}"]}]}]});this.api=f;this.Y=null;this.link=this.fQ(QR.LINK);f.createClientVe(this.element,this,23851);this.D(f,"videodatachange",this.u3); this.D(f,"videoplayerreset",this.u3);this.u3()}; XAD=function(f){f.updateValue("channelLink","");f.updateValue("channelName","");g.gk(f.api.j())||f.api.Z("enable_channel_title_always_focusable")?f.updateValue("channelTitleFocusable","0"):f.updateValue("channelTitleFocusable","-1")}; g.m8=function(f,D){g.x.call(this,{K:"div",L:[{K:"div",C:"ytp-tooltip-text-wrapper",W:{"aria-hidden":"{{ariaHidden}}"},L:[{K:"div",C:"ytp-tooltip-edu",L:[{K:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",W:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{K:"span",nQ:"{{eduText}}"}]},{K:"div",C:"ytp-tooltip-image"},{K:"div",C:"ytp-tooltip-title",L:[{K:"span",nQ:"{{title}}"},{K:"div",C:"ytp-tooltip-keyboard-shortcut", nQ:"{{keyBoardShortcutTitle}}"}]},{K:"div",C:"ytp-tooltip-bottom-text",L:[{K:"span",C:"ytp-tooltip-text",nQ:"{{text}}"},{K:"div",C:"ytp-tooltip-keyboard-shortcut",nQ:"{{keyBoardShortcut}}"}]},{K:"div",C:"ytp-tooltip-progress-bar-pill",L:[{K:"div",C:"ytp-tooltip-progress-bar-pill-time-stamp",nQ:"{{pillTimeStamp}}"},{K:"div",C:"ytp-tooltip-progress-bar-pill-title",nQ:"{{pillTitle}}"}]}]},{K:"div",C:"ytp-tooltip-bg",L:[{K:"div",C:"ytp-tooltip-duration",nQ:"{{duration}}"}]}]});var F=this;this.api=f;this.rY= D;this.N=function(Z){(Z=Z.relatedTarget)&&g.Ua(F.Y,Z)||F.xe()}; this.X=function(Z){F.type===3&&F.xe();(Z=Z.currentTarget)&&Z.nodeType===1&&!F.type&&(Z.removeEventListener("mouseover",F.X),Z.addEventListener("mouseout",F.N),Z.removeEventListener("focus",F.X),Z.addEventListener("blur",F.N),OvX(F,Z,2))}; this.Bs=function(){F.xe()}; this.type=this.Y=null;this.S=!1;this.J=null;this.B="";this.T=!0;this.scale=1;this.env=this.api.j();this.zx=this.env.J;this.wrapper=this.fQ("ytp-tooltip-text-wrapper");this.bg=this.fQ("ytp-tooltip-bg");this.Tx=this.fQ("ytp-tooltip-edu");this.image=this.fQ("ytp-tooltip-image");this.text=this.fQ("ytp-tooltip-text");this.bottomText=this.fQ("ytp-tooltip-bottom-text");this.title=this.fQ("ytp-tooltip-title");this.fade=new g.Zr(this,100);this.G=NaN;this.oY=this.api.sy().getPlayerSize().width;this.KQ=new g.xX(this.k3Y, 250,this);this.xo=new g.xX(this.xe,5E3,this);g.N(this,this.fade);g.N(this,this.KQ);g.N(this,this.xo);wk&&(f=this.fQ("ytp-tooltip-text"),f.setAttribute("role","text"),f.setAttribute("aria-live","polite"))}; nLI=function(f,D){f.env.Z("delhi_modern_web_player")&&f.scale!==.6&&(f.scale=D?.8:1)}; g.cv=function(f,D){if(f.zx)return function(){}; D.addEventListener("mouseover",f.X);D.addEventListener("focus",f.X);var F=f.env.Z("player_tooltip_data_title_killswitch")?D.getAttribute("title"):D.getAttribute("data-tooltip-title");F&&!D.hasAttribute("aria-label")&&D.setAttribute("aria-label",F);return function(){f.Y===D&&f.xe();D.removeEventListener("mouseover",f.X);D.removeEventListener("focus",f.X)}}; OvX=function(f,D,F,Z){if(D&&!D.hasAttribute)f=new g.by("showElementTooltip called with non-element.",D.toString()),g.SJ(f);else{isNaN(f.G)||(f.G=NaN,f.bg.style.background="");g.zP(f.element,"ytp-tooltip-progress-bar-style");f.Y=D;f.S=!!Z;Z?f.B=Z:(f.env.Z("player_tooltip_data_title_killswitch")?f.B=D.getAttribute("title"):f.B=D.getAttribute("data-tooltip-title"),f.env.Z("player_tooltip_data_title_killswitch")?D.removeAttribute("title"):D.removeAttribute("data-tooltip-title"));g.Fs(f.element,"ytp-tooltip"); var I=D.getAttribute("data-tooltip-image");I&&(f.image.style.backgroundImage="url("+I+")");Z?f.update({ariaHidden:"false"}):f.update({ariaHidden:"true"});g.qI(f.element,"ytp-tooltip-image-enabled",!!I);D=D.getAttribute("data-tooltip-opaque");g.qI(f.element,"ytp-tooltip-opaque",!!D);f.type=F;f.api.addEventListener("appresize",f.Bs);f.T&&(Ti(f),f.fade.show(0))}}; Ti=function(f){if(f.Y){var D=f.Y.getAttribute("data-tooltip-text");if(f.B&&f.Y.getAttribute("aria-label")!==f.B)var F=f.B;var Z=f.Y.getAttribute("aria-keyshortcuts"),I=f.Y.getAttribute("data-title-no-tooltip");Z&&I&&(F=g.F8("$BUTTON_TITLE combinaci\u00f3n de teclas $SHORTCUT_KEY",{BUTTON_TITLE:I,SHORTCUT_KEY:Z}));F&&f.Y.setAttribute("aria-label",F);if(D&&!f.S){nLI(f,!0);var p=f.Y;f.updateValue("text",D);F=p.getAttribute("data-duration");f.update({title:f.B,duration:F});p=p.getAttribute("data-preview"); f.env.Z("delhi_modern_web_player")?(f.updateValue("title",I),f.updateValue("keyBoardShortcutTitle",Z.toUpperCase())):nLI(f,!1);Z=243*f.scale;I=141*f.scale;f.bg.style.width=Z+"px";f.bg.style.height=I+"px";f.bg.style.backgroundImage=p?"url("+p+")":"";f.bg.style.backgroundSize=Z+"px "+I+"px";f.wrapper.style.width=Z+"px";g.pY(f.element,["ytp-text-detail","ytp-preview"]);g.qI(f.element,"ytp-has-duration",!!F)}else I&&Z&&f.env.Z("delhi_modern_web_player")?(f.updateValue("text",I),f.updateValue("keyBoardShortcut", Z.toUpperCase())):f.updateValue("text",f.B),g.sE(f.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);F=f.Y;F.hasAttribute("data-tooltip-offset-y")?(F=Number(F.getAttribute("data-tooltip-offset-y")),F=isNaN(F)?0:F):F=0;Ybc(f,!!D,void 0,F)}}; Ybc=function(f,D,F,Z){var I=Math.min(f.oY,300*f.scale);f.element.style.maxWidth=D?"":I+"px";f.rY.aM(f.element,f.Y,F,f.type===1,Z);f.element.style.top?g.IC(f.element,"ytp-bottom"):f.element.style.bottom&&g.IC(f.element,"ytp-top");f.type===3&&f.xo.start()}; P4D=function(f,D){g.qI(f.element,"ytp-preview",D>=0);if(!(D<0||D===f.G)){f.G=D;D=243*f.scale;var F=141*f.scale,Z=Shu(f.J,f.G,D);Bnc(f.bg,Z,D,F,!0);f.KQ.start()}}; fhD=function(f){var D=f.Y;f.type===3&&f.xo.stop();f.api.removeEventListener("appresize",f.Bs);f.S||(f.env.Z("player_tooltip_data_title_killswitch")?D.setAttribute("title",f.B):D.setAttribute("data-tooltip-title",f.B));f.B="";f.Y=null;f.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});f.wrapper.style.width=""}; FiX=function(f){g.x.call(this,{K:"button",ST:["ytp-watch-later-button","ytp-button"],W:{title:f.Z("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.LM(f.j()))},L:[{K:"div",C:"ytp-watch-later-icon",nQ:"{{icon}}"},{K:"div",C:"ytp-watch-later-title",nQ:"Ver m\u00e1s tarde"}]});this.U=f;this.icon=null;this.visible=this.isRequestPending=this.Y=!1;i5u(f);f.createClientVe(this.element,this,28665); this.listen("click",this.onClick,this);this.D(f,"videoplayerreset",this.onReset);this.D(f,"appresize",this.P1);this.D(f,"videodatachange",this.P1);this.D(f,"presentingplayerstatechange",this.P1);this.P1();f=this.U.j();var D=g.W6("yt-player-watch-later-pending");f.G&&D?(hSs(),DYT(this)):this.u3(2);g.qI(this.element,"ytp-show-watch-later-title",g.LM(f));Uz(this.U,this.element,this)}; ZFf=function(f){var D=f.U.getPlayerSize(),F=f.U.j(),Z=f.U.getVideoData(),I=g.LM(F)&&g.LN(f.U)&&g.O(f.U.getPlayerStateObject(),128),p=F.B;return F.m9&&D.width>=240&&!Z.isAd()&&Z.m9&&!I&&!Z.Yn&&!f.U.isEmbedsShortsMode()&&!p}; IhE=function(f,D){eYw(g.FT(f.U.j()),"wl_button",function(){hSs({videoId:D});window.location.reload()})}; DYT=function(f){if(!f.isRequestPending){f.isRequestPending=!0;f.u3(3);var D=f.U.getVideoData();D=f.Y?D.removeFromWatchLaterCommand:D.addToWatchLaterCommand;var F=f.U.Ge(),Z=f.Y?function(){f.Y=!1;f.isRequestPending=!1;f.u3(2);f.U.j().N&&f.U.wY("WATCH_LATER_VIDEO_REMOVED")}:function(){f.Y=!0; f.isRequestPending=!1;f.u3(1);f.U.j().J&&f.U.Qk(f.element);f.U.j().N&&f.U.wY("WATCH_LATER_VIDEO_ADDED")}; rg(F,D).then(Z,function(){f.isRequestPending=!1;f.u3(4,"Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.");f.U.j().N&&f.U.wY("WATCH_LATER_ERROR","Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; pru=function(f,D){if(D!==f.icon){switch(D){case 3:var F=Vt();break;case 1:F=yx();break;case 2:F={K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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:F={K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path", hZ:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}f.updateValue("icon",F);f.icon=D}}; zvc=function(){g.LS.apply(this,arguments);this.kE=(this.vQ=g.LM(this.api.j()))&&(this.api.j().J||Z8()||D8());this.WG=48;this.jD=69;this.v8=this.QK=null;this.oo=[];this.Sv=this.jd=this.Iy=this.NG=this.N7=null;this.s1=[];this.contextMenu=this.O6=this.overflowButton=this.ze=this.Vz=this.searchButton=this.copyLinkButton=this.shareButton=this.j7=this.kK=this.title=this.channelAvatar=this.eI=this.tooltip=null;this.EV=!1;this.P9=this.X7=this.Ck=this.zl=null;this.jPr=this.VE=this.p9=!1}; s1T=function(f){var D=f.api.j(),F=g.O(f.api.getPlayerStateObject(),128);return D.G&&F&&!f.api.isFullscreen()}; qvd=function(f){if(f.AS()&&!f.api.isEmbedsShortsMode()&&f.ze){var D=f.api.Z("web_player_hide_overflow_button_if_empty_menu");!f.j7||D&&!ZFf(f.j7)||fAf(f.ze,f.j7);!f.shareButton||D&&!AkD(f.shareButton)||fAf(f.ze,f.shareButton);!f.copyLinkButton||D&&!KlI(f.copyLinkButton)||fAf(f.ze,f.copyLinkButton)}else{D=f.api.j().getWebPlayerContextConfig();if(f.ze){for(var F=f.ze,Z=g.a(F.actionButtons),I=Z.next();!I.done;I=Z.next())I.value.detach();F.actionButtons=[]}f.searchButton&&!g.Ua(f.kK.element,f.searchButton.element)&& f.searchButton.CQ(f.kK.element);!f.j7||(D==null?0:D.hideTopWatchNextButton)||g.Ua(f.kK.element,f.j7.element)||f.j7.CQ(f.kK.element);!f.shareButton||(D==null?0:D.hideTopShareButton)||g.Ua(f.kK.element,f.shareButton.element)||f.shareButton.CQ(f.kK.element);f.copyLinkButton&&!g.Ua(f.kK.element,f.copyLinkButton.element)&&f.copyLinkButton.CQ(f.kK.element)}}; HFD=function(f,D,F){D=F?D.lastElementChild:D.firstElementChild;for(var Z=null;D;){if(IE(D,"display")!=="none"&&D.getAttribute("aria-hidden")!=="true"){var I=void 0;D.tabIndex>=0?I=D:I=HFD(f,D,F);I&&(Z?F?I.tabIndex>Z.tabIndex&&(Z=I):I.tabIndexD||F>10||(f.play(),g.AW(function(){KiX(f,f.getCurrentTime(),F+1)},500))}; kSX=function(f,D){f.X&&f.X.equals(D)||(f.X&&f.X.dispose(),f.X=D)}; j1I=function(f){f.Ak()&&(f.Yo&&f.Yo.Ra("rs_s"),NS&&f.getCurrentTime()>0&&f.seekTo(0),f.kU(),f.load(),kSX(f,null));delete f.T}; iFu=function(f,D){return f.view?IK(D,f.view.start,f.view.end):D}; yyy=function(f){f=f===void 0?!1:f;hvT||(window.addEventListener(wk?"touchstart":"click",function(){var D=f;D=D===void 0?!1:D;for(var F=tk.length;F<4;F++){var Z=g.TR("VIDEO");Z.load();tk.push(D?new g.MZ(Z):new g.Gs(Z))}},{capture:!0, passive:!0}),hvT=!0)}; AyD=function(f,D,F,Z,I){I=I===void 0?!1:I;var p=F.getVideoData(),z=D.getVideoData();if(F.getPlayerState().isError())return{msg:"player-error"};var H=z.B;if(D.zm()>Z/1E3+1)return{msg:"in-the-past"};if(z.isLivePlayback&&!isFinite(Z))return{msg:"live-infinite"};Z=D.ac();var K=null;Z&&(K=I?Z.Y.played||O_([],[]):Z.isView()?Z.mediaElement.xX():Z.xX());if(K&&K.length>12&&g.ao(p))return{msg:"played-ranges"};if(!p.B)return null;if(!H)return{msg:"no-pvd-formats"};if(!p.B.Y||!H.Y)return{msg:"non-dash"};I=H.videoInfos[0]; Z=p.B.videoInfos[0];f.Bs&&AZ(z)&&(I=D.GX(),Z=F.GX());if(!I||!Z)return{msg:"no-video-info"};if(f.T&&(Bi(I)||Bi(Z)))return{msg:"av1"};D=f.G&&z.Lw()&&qq();if(Z.containerType!==I.containerType)if(D)z.Gx("sgap",{ierr:"container"});else return{msg:"container"};if(f.X&&!D&&(Z.qR!==I.qR||Z.qR===""||I.qR===""))return{msg:"codec"};if(f.S&&Z.video&&I.video&&Math.abs(Z.video.width/Z.video.height-I.video.width/I.video.height)>.01)return{msg:"ratio"};if(g.ao(z)&&g.ao(p))return{msg:"content-protection"};H=H.Y[0]; p=p.B.Y[0];F=H.audio;K=p.audio;if(F.sampleRate!==K.sampleRate&&!g.op)if(D)z.Gx("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:H.itag,cr:F.sampleRate,ni:p.itag,nr:K.sampleRate};return(F.numChannels||2)!==(K.numChannels||2)?{msg:"channel-count"}:f.N&&z.Lw()&&I.video.fps!==Z.video.fps?{msg:"fps"}:null}; $YX=function(f,D,F,Z){Z=Z===void 0?!1:Z;var I=f.getVideoData(),p=D.getVideoData();if(!I.j().supportsGaplessShorts())return{nq:"env"};if((!F.Jb||I.qe&&!I.isAd()||p.qe&&!p.isAd())&&(!F.J||I.qe&&!I.isAd()||p.qe)&&(!F.B||p.qe&&!p.isAd()||I.qe)&&(I.qe||p.qe))return{nq:"autoplay"};if(I.endSeconds>0)return{nq:"endcr"};if(!I.S)return{nq:"client"};if(!f.XJ())return{nq:"no-empty"};f=AyD(F,f,D,Infinity,Z);return f!=null?{nq:f.msg}:null}; Sr=function(f){g.J.call(this);this.app=f;this.X=this.G=this.J=this.Y=null;this.B=1;this.events=new g.ia(this);this.events.D(this.app.NR,g.gA("gaplessshortslooprange"),this.N);g.N(this,this.events)}; VPu=function(){this.Y=this.S=this.B=this.J=this.Jb=this.T=this.Bs=this.N=this.X=this.G=!1}; RvD=function(f){var D=new VPu;D.G=f.Z("h5_gapless_support_types_diff");D.N=!1;D.Bs=f.Z("html5_gapless_use_format_info_fix");D.T=f.Z("html5_gapless_disable_on_av1")&&!f.Z("html5_gapless_enable_on_av1");D.X=f.Z("html5_gapless_check_codec_diff_strictly");D.Jb=f.Z("html5_gapless_on_ad_autoplay");D.S=f.Z("html5_gapless_disable_diff_aspect_radio");D.J=f.Z("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!f.Z("html5_disable_loop_range_for_shorts_ads");D.Y=f.Z("html5_pseudogapless_shorts_seek_to_next_start"); D.B=f.Z("html5_gapless_ad_autoplay_on_video_to_ad_only");return D}; g.cd=function(f,D,F,Z){Z=Z===void 0?!1:Z;Vw.call(this);this.mediaElement=f;this.start=D;this.end=F;this.Jj=Z}; dYD=function(f,D,F,Z,I,p){p=p===void 0?0:p;g.J.call(this);var z=this;this.policy=f;this.Y=D;this.J=F;this.Nm=I;this.X=p;this.G=this.B=null;this.currentVideoDuration=this.T=-1;this.S=!1;this.sD=new $P;this.zU=Z-D.R_()*1E3;this.sD.then(void 0,function(){}); this.timeout=new g.xX(function(){z.tS("timeout")},1E4); g.N(this,this.timeout);this.N=isFinite(Z)||this.Nm.j().experiments.Hs("html5_pseudogapless_shorts")&&AZ(D.getVideoData());this.status={status:0,error:null}}; CBE=function(f){var D,F,Z,I,p,z,H,K,k;return g.l(function(h){if(h.Y==1){if(f.MR())return h.return(Promise.reject(Error(f.status.error||"disposed")));f.timeout.start();return g.r(h,f.sD,2)}D=f.Y.ac();if(D.isEnded())return f.tS("ended_in_finishTransition"),h.return(Promise.reject(Error(f.status.error||"")));if(!f.G||!kP(f.G))return f.tS("next_mse_closed"),h.return(Promise.reject(Error(f.status.error||"")));if(f.J.F0()!==f.G)return f.tS("next_mse_mismatch"),h.return(Promise.reject(Error(f.status.error|| "")));F=Uw(f);Z=F.UK;I=F.WE;p=F.eK;f.Y.Sd(!1,!0);z=Q1J(f,D,Z,p,!f.J.getVideoData().isAd());f.J.setMediaElement(z);(H=f.Y.HK())&&f.J.fB(H.MS,H.D_);f.N&&(f.policy.Y||f.J.seekTo(f.J.getCurrentTime()+.001,{Ax:!0,qw:3,pF:"gapless_pseudo"}),z.play());K=D.a_();K.cpn=f.Y.getVideoData().clientPlaybackNonce;K.st=""+Z;K.et=""+p;f.J.Gx("gapless",K);f.Y.Gx("gaplessTo",{cpn:f.J.getVideoData().clientPlaybackNonce});k=f.Y.getPlayerType()===f.J.getPlayerType();f.Y.H9(I,!0,!1,k,f.J.getVideoData().clientPlaybackNonce); f.J.H9(f.J.getCurrentTime(),!0,!0,k,f.Y.getVideoData().clientPlaybackNonce);f.J.Qy();g.mF(function(){!f.J.getVideoData().N&&f.J.getPlayerState().isOrWillBePlaying()&&f.J.Kv()}); vd(f,6);f.dispose();return h.return(Promise.resolve())})}; MPJ=function(f){if(f.J.getVideoData().B){var D=f.Nm.j().Z("html5_gapless_suspend_next_loader")&&f.X===1;f.J.yh(f.G,D,mYJ(f));vd(f,3);T_d(f);var F=bFX(f);D=F.l7;F=F.Kz;D.subscribe("updateend",f.wc,f);F.subscribe("updateend",f.wc,f);f.wc(D);f.wc(F)}}; T_d=function(f){f.Y.unsubscribe("internalvideodatachange",f.ZU,f);f.J.unsubscribe("internalvideodatachange",f.ZU,f);f.Nm.j().Z("html5_gapless_use_format_info_fix")&&(f.Y.unsubscribe("internalvideoformatchange",f.ZU,f),f.J.unsubscribe("internalvideoformatchange",f.ZU,f));f.Y.unsubscribe("mediasourceattached",f.ZU,f);f.J.unsubscribe("statechange",f.LY,f)}; tPu=function(f){var D=f.Nm.j().experiments.ww().Y.Kp(ax);return AyD(f.policy,f.Y,f.J,f.zU,D)}; Q1J=function(f,D,F,Z,I){if(f.Nm.j().experiments.ww().Y.Kp(ax))return D.view={start:F,end:Z,Jj:I===void 0?!1:I},D;f=D.isView()?D.mediaElement:D;return new g.cd(f,F,Z,I)}; vd=function(f,D){D<=f.status.status||(f.status={status:D,error:null},D===5&&f.sD.resolve())}; mYJ=function(f){return f.Nm.j().Z("html5_gapless_no_clear_buffer_timeline")&&f.X===1&&G6(f.Y.getVideoData())}; Uw=function(f){var D=f.Y.ac();D=D.isView()?D.start:0;var F=f.Y.getVideoData().isLivePlayback?Infinity:f.Y.jL(!0);F=Math.min(f.zU/1E3,F)+D;var Z=f.N?100:0;f=F-f.J.zm()+Z;return{jF:D,UK:f,WE:F,eK:Infinity}}; bFX=function(f){return{l7:f.B.Y.BD,Kz:f.B.J.BD}}; Gi=function(f){g.J.call(this);var D=this;this.app=f;this.S=this.J=this.Y=null;this.Bs=!1;this.Jb=this.T=this.B=this.G=null;this.X=RvD(this.app.j());this.N=function(){g.mF(function(){SvD(D)})}}; cyD=function(f,D,F,Z,I){Z=Z===void 0?0:Z;I=I===void 0?0:I;f.XJ()||(wn(f),Wd(f));f.G=new $P;f.Y=D;var p=F,z=I===0;z=z===void 0?!0:z;var H=f.app.VT(),K=H.getVideoData().isLivePlayback?Infinity:H.jL(!0)*1E3;p>K&&(p=K-200,f.Bs=!0);z&&H.getCurrentTime()>=p/1E3?f.N():(f.J=H,z&&(z=p,p=f.J,f.app.NR.addEventListener(g.Nh("vqueued"),f.N),z=isFinite(z)||z/1E3>p.getDuration()?z:0x8000000000000,f.S=new g.Jm(z,0x8000000000000,{namespace:"vqueued"}),p.addCueRange(f.S)));z=Z/=1E3;p=D.getVideoData().Y;Z&&p&&f.J&& (H=Z,K=0,D.getVideoData().isLivePlayback&&(z=Math.min(F/1E3,f.J.jL(!0)),K=Math.max(0,z-f.J.getCurrentTime()),H=Math.min(Z,D.jL()+K)),z=J9a(p,H)||Z,z!==Z&&f.Y.Gx("qvaln",{st:Z,at:z,rm:K,ct:H}));D=z;Z=f.Y;Z.getVideoData().Gi=!0;Z.getVideoData().S=!0;Z.VO(!0);p={};f.J&&(p=f.J.UQ(),z=f.J.getVideoData().clientPlaybackNonce,p={crt:(p*1E3).toFixed(),cpn:z});Z.Gx("queued",p);D!==0&&Z.seekTo(D+.01,{Ax:!0,qw:3,pF:"videoqueuer_queued"});f.B=new dYD(f.X,f.app.VT(),f.Y,F,f.app,I);F=f.B;F.status.status!==Infinity&& (vd(F,1),F.Y.subscribe("internalvideodatachange",F.ZU,F),F.J.subscribe("internalvideodatachange",F.ZU,F),F.Nm.j().Z("html5_gapless_use_format_info_fix")&&(F.Y.subscribe("internalvideoformatchange",F.ZU,F),F.J.subscribe("internalvideoformatchange",F.ZU,F)),F.Y.subscribe("mediasourceattached",F.ZU,F),F.J.subscribe("statechange",F.LY,F),F.Y.subscribe("newelementrequired",F.ZT,F),F.ZU());return f.G}; SvD=function(f){var D,F,Z,I,p,z,H;g.l(function(K){switch(K.Y){case 1:if(f.MR()||!f.G||!f.Y)return K.return();f.Bs&&f.app.VT().E9(!0,!1);D=null;if(!f.B){K.ZE(2);break}g.po(K,3);return g.r(K,CBE(f.B),5);case 5:g.qC(K,2);break;case 3:D=F=g.He(K);case 2:if(!f.Y)return K.return();UYu.Wg("vqsp",function(){f.app.PO(f.Y)}); if(!f.Y)return K.return();Z=f.Y.ac();f.app.j().Z("html5_gapless_seek_on_negative_time")&&Z&&Z.getCurrentTime()<-.01&&f.Y.seekTo(0);UYu.Wg("vqpv",function(){f.app.playVideo()}); D&&(f.Y?(I=D?D.message:"forced",(p=f.J)==null||p.Gx("gapfulfbk",{r:I}),f.Y.hA(I)):(z=f.J)==null||z.Gx("gapsp",{}));H=f.G;Wd(f);H&&H.resolve();return K.return(Promise.resolve())}})}; Wd=function(f,D){D=D===void 0?!1:D;if(f.J){if(f.S){var F=f.J;f.app.NR.removeEventListener(g.Nh("vqueued"),f.N);F.removeCueRange(f.S)}f.J=null;f.S=null}f.B&&(f.B.status.status!==6&&(F=f.B,F.status.status!==Infinity&&F.X!==1&&F.tS("Canceled")),f.B=null);f.G=null;f.Y&&!D&&f.Y!==f.app.fp()&&f.Y!==f.app.VT()&&f.Y.dispose();f.Y&&D&&f.Y.Le();f.Y=null;f.Bs=!1}; wn=function(f){f.Jb&&f.T&&f.Jb.removeEventListener("timeupdate",f.T);f.T=null;f.Jb=null}; GSJ=function(f,D){if(f.app.j().ww().Y.Kp(vFD)){var F=f.app.j().ww().Y.Kp(ahc);if(!(F<=0)){wn(f);var Z,I=(Z=f.app.VT())==null?void 0:Z.ac();I&&f.Y&&(f.Y.getVideoData().Zh=!0,f.T=function(){var p=I.getCurrentTime();p>=D+F/1E3&&(p=Date.now()-(p-D)*1E3,f.app.uv().tick("pbs",p),wn(f))},f.Jb=I,I.addEventListener("timeupdate",f.T))}}}; wrE=function(f){var D;return((D=f.B)==null?void 0:D.currentVideoDuration)||-1}; WiD=function(f,D,F){if(f.XJ())return"qie";if(f.Y==null||f.Y.MR()||f.Y.getVideoData()==null)return"qpd";if(D.videoId!==f.Y.Ww())return"vinm";if(wrE(f)<=0)return"ivd";if(F!==1)return"upt";if((F=f.B)==null)f=void 0;else if(F.getStatus().status!==5)f="niss";else if(tPu(F)!=null)f="pge";else{D=bFX(F);f=D.l7;var Z=D.Kz;D=g.Pf(F.Nm.j().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var I=F.T+D;F.Nm.j().experiments.Hs("html5_pseudogapless_shorts")&&(I=Uw(F).UK+D);F=Pi(Z.Ew(),I);f=Pi(f.Ew(),I); f=!(D>0)||F&&f?null:"neb"}return f!=null?f:null}; B_d=function(){g.zu.call(this);var f=this;this.fullscreen=0;this.G=this.B=this.pictureInPicture=this.Y=this.J=this.inline=!1;this.X=function(){f.lY()}; ssd(this.X);this.T=this.getVisibilityState(this.RP(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ob(),this.Wu(),this.Pu(),this.pw())}; iyw=function(f){return!(f.isMinimized()||f.isInline()||f.isBackground()||f.ob()||f.Wu()||f.Pu()||f.pw())}; g.Bd=function(f){g.J.call(this);this.V=f;this.videoData=this.playerState=null}; lhT=function(f,D,F){return(F===void 0?0:F)?new ryd(f,D):new Liu(f,D)}; Liu=function(f,D){g.J.call(this);var F=this;this.data=[];this.B=f||NaN;this.J=D||null;this.Y=new g.xX(function(){rn(F);LL(F)}); g.N(this,this.Y)}; rn=function(f){var D=(0,g.m5)();f.data.forEach(function(F){F.expireZ)break;var p=F.Y.remove(),z=F.map.get(p);z&&z.Lh===I&&Ew(F,p,!0)}Jk(F)}); this.map=new Map;this.Y=new rp;Number.isNaN(f);g.N(this,this.B)}; Ew=function(f,D,F){var Z=f.map.get(D);if(!Z)return!1;f.map.delete(D);F&&f.J&&f.J(Z.value);if(f.Y.Y.length>f.map.size*2)for(f.Y.clear(),D=g.a(f.map.entries()),F=D.next();!F.done;F=D.next())Z=g.a(F.value),F=Z.next().value,Z=Z.next().value,isFinite(Z.Lh)&&f.Y.enqueue(Z.Lh,F);return!0}; Jk=function(f){f.B.stop();for(var D;!f.Y.isEmpty();){var F=B$(f.Y);var Z=f.Y.Y;Z=Z.length!=0?Z[0].getValue():void 0;if(F===void 0||Z===void 0)break;if((Z=f.map.get(Z))&&Z.Lh===F){D=F;break}else f.Y.remove()}D!==void 0&&(F=(0,g.m5)(),f.B.start(Math.max(D-F,100)))}; g.up=function(f,D){g.J.call(this);var F=this;this.api=f;this.B={};this.ZB=null;this.G={};this.Y=null;this.N=new Map;this.X=null;D=lhT(D,function(Z){Z!==F.Hw({playerType:Z.getPlayerType()})&&Z.dispose()},f.j().ww().Y.Kp(EFa)); g.N(this,D);this.J=this.Jb=this.S=new g.Bd(f.j());this.T=D}; NZ=function(f){var D=[{cpn:f.J.CK()}];f.Y&&D.push({cpn:f.Y.CK()});f.api.publish("playbackChange",{xcx:D})}; Jyw=function(f){for(var D=g.a(Object.values(f.G)),F=D.next();!F.done;F=D.next())F.value.dispose();f.G={};f.Y=null;f.X=null;f.N.clear();NZ(f)}; gn=function(f,D,F){var Z=Z===void 0?"":Z;f.G[D.CK()]=D;f.Y=D;F&&(f.X=D);f.N.set(Z,D);NZ(f)}; PBE=function(f){var D=f.experiments,F=D.Hs.bind(D);u0f=N_u=F("html5_use_async_stopVideo");gFs=evf=F("html5_pause_for_async_stopVideo");xYa=Xrd=F("html5_not_reset_media_source");F("html5_listen_for_audio_output_changed")&&(OFd=nFE=!0);jq=F("html5_not_reset_media_source");Yvf=F("html5_not_reset_media_source");zB=F("html5_retain_source_buffer_appends_for_debugging");wps(F("web_watch_pip")||F("web_shorts_pip"));ovf(F("log_foreground_not_focused_as_background"));kTa(F("web_player_pip_logging_fix"));F("html5_mediastream_applies_timestamp_offset")&& (gY=!0);f.Oq()&&VKT();Error.stackTraceLimit=50;var Z=g.Pf(D,"html5_idle_rate_limit_ms");Z&&Object.defineProperty(window,"requestIdleCallback",{value:function(I){return window.setTimeout(I,Z)}}); hHE(f.X);aDu(F("html5_use_ump_request_slicer"));Kms(F("html5_record_now"));F("html5_disable_streaming_xhr")&&(Ik=!1);F("html5_byterate_constraints")&&(Bh=!0);F("html5_use_non_active_broadcast_for_post_live")&&(Aq=!0);F("html5_enable_encrypted_av1")&&(Wi=!0);o1X(g.Pf(f.experiments,"html5_sticky_duration_mos"))}; HXc=function(f){function D(p,z,H){Z.push(f5(z(H),function(K){F[p]=K}))} var F={};f=f.experiments.pk();var Z=[],I=f.Y.Kp(foI);I&&D("MediaSource.EnableUsingMediaSourceBufferedRange",HND,I===1);(I=f.Y.Kp(DyI))&&D("HTTP3",ouc,I===1);(I=f.Y.Kp(Fyu))&&D("MediaSource.EnableUsingMediaSourceAttachmentMethods",KSs,I===1);(I=f.Y.Kp(ZXu))&&D("QUIC",kyu,I===1);(I=f.Y.Kp(Ioa))&&D("Media.PlayerConfiguration.DecodeToTexturePreferred",iNy,I===1);(I=f.Y.Kp(p5J))&&D("Media.AudioWriteDurationLocal",jku,Number(I));(I=f.Y.Kp(zxE))&&D("Media.DisableExternalAllocator",h0D,Number(I)===1);(I= f.Y.Kp(s$c))&&D("Media.VideoBufferSizeClampMb",yOD,I);(f=f.Y.Kp(qrJ))&&D("Media.EnableAllocateOnDemand",AOD,Number(f)===1);return f5(vVc(Z),function(){return F})}; owX=function(f){this.J=f===void 0?15:f;this.values=new Float64Array(176);this.Y=new Float64Array(11);this.B=new Float64Array(16)}; er=function(f,D,F,Z){F=F===void 0?.5:F;Z=Z===void 0?0:Z;this.resolution=D;this.J=0;this.B=!1;this.bK=!0;this.Y=Math.round(f*this.resolution);this.values=Array(this.Y);for(f=0;f0)D=f.byterate,this.Bs= !0;else{var Z;F=(((Z=navigator.connection)==null?void 0:Z.downlink)||0)*64*1024;F>0&&(D=F,this.Bs=!0)}this.B.qp(this.policy.T,D);f.delay>0&&this.N.qp(1,Math.min(f.delay,2));f.stall>0&&this.S.qp(1,f.stall);f.init>0&&(this.Ir=Math.min(f.init,this.Ir));f.interruptions&&(this.G=this.G.concat(f.interruptions),this.G.length>16&&this.G.pop());this.KQ=(0,g.m5)();this.policy.S>0&&(this.dY=new g.xX(this.LQ,this.policy.S,this),g.N(this,this.dY),this.dY.start())}; QV=function(f,D,F,Z){f.B.qp(Z===void 0?D:Z,F/D);f.T=(0,g.m5)()}; Uuu=function(f){f.X||(f.X=(0,g.m5)());f.policy.Jb&&(f.T=(0,g.m5)())}; aQE=function(f,D){if(f.X){var F=D-f.X;if(F<6E4){if(F>1E3){var Z=f.interruptions;Z.push(Math.ceil(F));Z.sort(function(I,p){return p-I}); Z.length>16&&Z.pop()}f.zx+=F}}f.X=D}; x$=function(f,D,F,Z,I,p){p=p===void 0?!1:p;f.rY.qp(D,F/D);f.T=(0,g.m5)();I||f.Jb.qp(1,D-Z);p||(f.X=0);f.KQ>-1&&(0,g.m5)()-f.KQ>3E4&&(KDs(A1(f)),f.KQ=(0,g.m5)(),f.Bs=!0)}; Xw=function(f,D,F){D=Math.max(D,f.J.Y);f.S.qp(1,F/D)}; Oy=function(f){f=f.N.yz()+f.Tx.yz()||0;f=isNaN(f)?.5:f;return f=Math.min(f,5)}; kHT=function(f,D,F){isNaN(F)||(f.xo+=F);isNaN(D)||(f.Ps+=D)}; j$y=function(f){f=f.B.yz();return f>0?f:1}; Yq=function(f,D,F){D=D===void 0?!1:D;F=F===void 0?1048576:F;var Z=j$y(f);Z=1/((f.S.yz()||0)*f.policy.Bs+1/Z);var I=f.rY.yz();I=I>0?I:1;var p=Math.max(Z,I);f.policy.X>0&&I=4E3}; iXE=function(f){this.experiments=f;this.Y=17;this.B=13E4;this.T=.5;this.G=this.J=!1;this.KQ=this.Z("html5_use_histogram_for_bandwidth");this.X=g.Pf(this.experiments,"html5_auxiliary_estimate_weight");this.Bs=g.Pf(this.experiments,"html5_stall_factor")||1;this.S=g.Pf(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.Hs("html5_trigger_loader_when_idle_network");this.Jb=this.experiments.Hs("html5_sabr_fetch_on_idle_network_preloaded_players")}; hxJ=function(f,D,F){var Z=new iXE(F);f&&(Z.J=!0,Z.T=.1);F.Hs("html5_media_time_weight")&&(Z.J=!1);D&&(Z.B=D/8);Z.G=TN()>=480;return Z}; ANd=function(f,D,F,Z){Z=Z===void 0?0:Z;g.Oz.call(this,F.c$());var I=this;this.D5=f;this.videoData=D;this.duration=Z;this.Y=this.startTimeSecs=0;this.J=this.B=!0;this.G=new yNu(function(p,z){return void I.Gx(p,z)})}; yNu=function(f){this.Gx=f;this.Y={}}; $yE=function(f,D,F){f.Y[D]||(f.Gx("huli-sdai-err",F),f.Y[D]=!0)}; VwD=function(f){this.end=this.start=f}; g.Ow=function(){this.Y=new Map;this.B=new Map;this.J=new Map}; RxX=function(f){var D=this;this.V=f;this.J=[];this.B=new Map;this.G=new Map;this.Y=new Map;this.ej={Z4:function(){return D.B}, YPd:function(){return D.G}, h0:function(){return D.J}}; this.X=this.V.Z("html5_huli_ssdai_deprecate_playback_timeline_id")}; dyw=function(f,D,F){f=f.J;var Z=g.oi(f,{TT:D},function(z,H){return z.TT-H.TT}); Z=Z<0?(Z+2)*-1:Z;if(Z>=0)for(var I=Z;I<=Z+1&&I=p.TT-F&&D<=p.l4+F)return p}}; Ceu=function(f,D){g.iZ(f.J,D,function(F,Z){return F.TT===Z.TT?F.durationMs-Z.durationMs:F.TT-Z.TT}); f.B.set(D.cpn,D);D.kG&&!f.X&&f.G.set(D.kG,D);D.Zf&&Q$c(f,D.Zf,D)}; myD=function(f,D){for(var F=[],Z=g.a(f.J),I=Z.next();!I.done;I=Z.next())I=I.value,D(I)||F.push(I);if(f.V.Z("html5_sstm_fixes"))for(Z=g.a(f.J),I=Z.next();!I.done;I=Z.next())I=I.value,D(I)&&(f.B.delete(I.cpn),I.kG&&f.G.delete(I.kG));f.J=F}; TdX=function(f,D){D=g.oi(f.J,{l4:D},function(F,Z){return F.l4-Z.l4}); return D>=0?f.J[D]:null}; bXf=function(f,D){var F=f.J.indexOf(D);F>=0&&f.J.splice(F,1);f.B.delete(D.cpn);D.kG&&f.G.delete(D.kG)}; Q$c=function(f,D,F){var Z=f.Y.get(D);Z?(Z.push(F),g.kJ(Z,function(I,p){return I.TT-p.TT})):f.Y.set(D,[F])}; g.nL=function(f,D,F,Z){g.J.call(this);var I=this;this.api=f;this.V=D;this.playback=F;this.app=Z;this.Bs=new g.Ow;this.J=new Map;this.gw=new Map;this.xo=new Map;this.Tx=null;this.Z5=NaN;this.JN=this.Uq=null;this.G3=new g.xX(function(){Mwu(I,I.Z5,I.Uq||void 0)}); this.events=new g.ia(this);this.b3=15E3;this.T=new g.xX(function(){I.S=!0;I.playback.Ip(I.b3);twD(I);if(I.playback.getVideoData().nE()){var p;I.k8({togab:(p=I.X)==null?void 0:p.identifier})}I.sP(!1)},this.b3); this.S=!1;this.zw=new Map;this.Ps=[];this.X=null;this.Zx=new Set;this.N=[];this.Ir=[];this.OI=[];this.Xt=[];this.jT=new Set;this.e4=0;this.Jb=!1;this.WI=new Set;this.Gi=new Set;this.vI=new Set;this.eT=new Set;this.BI=this.Ms=0;this.nR=this.qb=!1;this.yl=this.B="";this.KQ=null;this.logger=new g.Qk("dai");this.Y_="";this.dY=!0;this.rY=new Map;this.Wk=new Map;this.ej={bCR:function(){return I.J}, Z4:function(){return I.Y.ej.Z4()}, fnT:function(){return I.B}, otQ:function(p){I.onCueRangeEnter(I.J.get(p))}, iCY:function(p){I.onCueRangeExit(I.J.get(p))}, WfI:function(p,z){I.J.set(p,z)}, kOR:function(p){I.yl=p}, WL:function(){return I.WL()}, tkE:function(p){return I.Y.Y.get(p)}, xyr:function(){return I.KQ}, h0:function(){return I.Y.ej.h0()}, d3:function(p,z){I.d3(p,z)}, Zlb:function(){return I.gw}, zp:function(p){I.zp(p)}}; this.playback.getPlayerType();this.Y=new RxX(this.V);this.playback.Ys(this);this.LQ=this.V.Oq();g.N(this,this.G3);g.N(this,this.events);g.N(this,this.T);this.Dp=this.V.Z("html5_use_new_ssdai_transition_detector");this.m9=this.V.ww().Y.Kp(eJu);this.AN=this.V.ww().Y.Kp(SrE);this.HD=this.playback.getVideoData().LL;this.Dp?this.playback.subscribe("playbackstarted",this.d3,this):(this.events.D(this.api,g.Nh("serverstitchedcuerange"),this.onCueRangeEnter),this.events.D(this.api,g.gA("serverstitchedcuerange"), this.onCueRangeExit));this.Fd=this.V.Z("html5_ssdai_report_stitch_error_after_skip_ad");gn(this.app.UE(),this.playback,!1)}; GHf=function(f,D,F,Z,I,p,z,H,K){var k=cNa(f,p,p+I);f.S&&f.k8({adaftto:1});F||f.k8({missadcon:1,enter:p,len:I,aid:H});f.G&&!f.G.nX&&(f.G.nX=H);f.nR&&f.k8({adfbk:1,enter:p,len:I,aid:H});var h=f.playback;p>z&&Y$(f,{reason:"enterTime_greater_than_return",TT:p,l4:z});var y=h.qm()*1E3;ph&&Y$(f,{reason:"parent_return_greater_than_content_duration",l4:z,Kfd:h});(h=TdX(f.Y,p))&&h.l4>p&&Uya(f,D.video_id|| "",p,z,h);if(k&&h)for(y=0;y=D)return F}f=g.a(f.J.values());for(F=f.next();!F.done;F=f.next())if(F=F.value,F.start<=D&&F.end>=D)return F}; Mwu=function(f,D,F){var Z=f.JN||f.app.VT().getPlayerState();Dc(f,!0);f.playback.seekTo(D,F);f=f.app.VT();D=f.getPlayerState();Z.isOrWillBePlaying()&&!D.isOrWillBePlaying()?f.playVideo():Z.isPaused()&&!D.isPaused()&&f.pauseVideo()}; Dc=function(f,D){f.Z5=NaN;f.Uq=null;f.G3.stop();f.Tx&&D&&f.Tx.yX();f.JN=null;f.Tx=null}; exy=function(f){var D=D===void 0?-1:D;var F=F===void 0?Infinity:F;NdE(f,D,F);for(var Z=g.a(f.J.values()),I=Z.next();!I.done;I=Z.next())I=I.value,I.start>=D&&I.end<=F&&(f.playback.removeCueRange(I),f.J.delete(I.getId()),f.k8({rmAdCR:1}));Z=fd(f,D/1E3);D=Z.iK;Z=Z.GF;D&&(Z=Z*1E3-D.TT,gwu(f,D,Z,D.TT+Z),Z=f.J.get(D.cpn))&&(Z.start=D.TT,Z.end=D.TT+D.durationMs);if(D=fd(f,F/1E3).iK){var p;Z="playback_timelinePlaybackId_"+D.kG+"_video_id_"+((p=D.videoData)==null?void 0:p.videoId)+"_durationMs_"+D.durationMs+ "_enterTimeMs_"+D.TT+"_parentReturnTimeMs_"+D.l4;f.Q$("Invalid_clearEndTimeMs_"+F+"_that_falls_during_"+Z+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; xyd=function(f){f.Bs.clearAll();f.J.clear();f.Y.clear();f.zw.clear();f.Ps=[];f.X=null;f.Zx.clear();f.jT.clear();f.N=[];f.Ir=[];f.OI=[];f.Xt=[];f.WI.clear();f.Gi.clear();f.vI.clear();f.eT.clear();f.S=!1;f.e4=0;f.Jb=!1;f.dY=!1;f.Ms=0;f.BI=0;f.qb=!1;f.nR=!1;f.B="";Jyw(f.app.UE());gn(f.app.UE(),f.playback,!1);f.xo.clear();f.T.isActive()&&Pd(f)}; gwu=function(f,D,F,Z){D.durationMs=F;D.l4=Z;(Z=f.xo.get(D.cpn))?Z.Oe(F/1E3):f.k8({nop_d:D.cpn})}; NdE=function(f,D,F){myD(f.Y,function(Z){return Z.TT>=D&&Z.l4<=F})}; nwT=function(f,D,F,Z,I,p){if(!f.nR)if(g.X5u(f,F))f.k8({gdu:"undec",seg:F,itag:I});else if(D=OXc(f,D,F,Z,p),!(f.playback.getVideoData().nE()&&(D==null?0:D.w6)))return D}; OXc=function(f,D,F,Z,I){var p=f.zw.get(F);if(!p){if(p=sd(f,D))return p;D=f.Bu(F-1,Z!=null?Z:2);if(I)return f.k8({misscue:I,sq:F,type:Z,prevsstate:D==null?void 0:D.lP,prevrecord:f.zw.has(F-1)}),f.zw.get(F-1);if((D==null?void 0:D.lP)===2)return f.k8({adnf:1,sq:F,type:Z,prevrecord:f.zw.has(F-1)}),f.zw.get(F-1)}return p}; sd=function(f,D){D+=f.PL();var F;if(f.playback.getVideoData().nE()){a:{var Z=D*1E3;f=g.a(f.Y.J);for(F=f.next();!F.done;F=f.next()){F=F.value;var I=F.q5?F.q5*1E3:F.TT;if(Z>=F.TT-1E3&&Z<=I+F.durationMs+1E3){Z=F;break a}}Z=void 0}F={iK:Z,GF:D}}else F=fd(f,D),((Z=F)==null?0:Z.iK)||(F=fd(f,D,1));var p;return(p=F)==null?void 0:p.iK}; g.mOf=function(f,D,F,Z,I,p,z){var H=I===3,K=nwT(f,D,F,I,Z,z);if(!K){FP(f,F,H);var k=g.X5u(f,F)?"undec":"ncp";f.k8({gvprp:k,mt:D,seg:F,tt:I,itag:Z,ce:z});return null}H||f.zw.set(F,K);z=K.Zf;var h;I=((h=f.Bu(F-1,I,p))==null?void 0:h.W2)||"";I===""&&f.k8({eds:1});h=YrT(f,K.ssdaiAdsConfig);p=f.playback.getVideoData();var y;H=((y=p.J)==null?void 0:y.containerType)||0;y=p.S3[H];K=K.UU&&F>=K.UU?K.UU:void 0;y={Pr:z?PeD(f,z):[],adsConfig:h,W2:I,Jq:K,Fj:gl(y.split(";")[0]),NB:y.split(";")[1]||""};K={BR:y}; f.LQ&&(D={gvprpro:"v",sq:F,mt:D.toFixed(3),itag:Z,acpns:((k=y.Pr)==null?void 0:k.join("_"))||"none",abid:z},f.k8(D));return K}; YrT=function(f,D){D=D===void 0?"":D;var F=G0(D)||void 0;if(!D||!F){var Z;f.k8({adcfg:(Z=D)==null?void 0:Z.length,dcfg:F==null?void 0:F.length})}return F}; fea=function(f){for(var D=g.a(f.J.values()),F=D.next();!F.done;F=D.next())f.playback.removeCueRange(F.value);f.J.clear();f.Bs.clearAll()}; FLu=function(f,D,F,Z,I,p,z){if(D&&F){f.yl=F.cpn;f.Ym(F.cpn,F.startTimeSecs||I);Bdf(f,F);var H=w5E(f,"a2a",F);f.k8(H);f.Ms++;H=DAs(f);f.playback.v9(D,F,Z||0,I||0,!!p,!!z,void 0,H)}else f.k8({misspbkonadtrans:1,enter:(F==null?void 0:F.cpn)||"",exit:(D==null?void 0:D.cpn)||"",seek:p,skip:z})}; FP=function(f,D,F){if(F===void 0||!F){F=g.a(f.Ps);for(var Z=F.next();!Z.done;Z=F.next()){Z=Z.value;if(D>=Z.start&&D<=Z.end)return;if(D===Z.end+1){Z.end+=1;return}}f.Ps.push(new VwD(D))}}; g.X5u=function(f,D){f=g.a(f.Ps);for(var F=f.next();!F.done;F=f.next())if(F=F.value,D>=F.start&&D<=F.end)return!0;return!1}; Zpf=function(f,D,F){var Z;if(Z=f.playback.getVideoData().nE())Z=(Z=f.Y.Hw({cpn:D}))&&Z.Zf?(f=f.Y.Y.get(Z==null?void 0:Z.Zf))&&f.slice(-1)[0].cpn===D:!1;return Z&&F===2?1E3:0}; Uya=function(f,D,F,Z,I){var p;D={reason:"overlapping_playbacks",sox:D,TT:F,l4:Z,yOs:I.kG,RBx:((p=I.videoData)==null?void 0:p.videoId)||"",LYo:I.durationMs,pOR:I.TT,Vky:I.l4};Y$(f,D)}; var jdy=function(){return sJ[q[16]](this,86)}; var Y$=function(f,D,F){f.playback.M_(D,F)},PeD=function(f,D){var F=[]; f=f.Y.Y.get(D);if(!f)return[];f=g.a(f);for(D=f.next();!D.done;D=f.next())D=D.value,D.cpn&&F.push(D.cpn);return F},IeJ=function(f,D,F){var Z=0; f=f.Y.Y.get(F);if(!f)return-1;f=g.a(f);for(F=f.next();!F.done;F=f.next()){if(F.value.cpn===D)return Z;Z++}return-1},p2X=function(f,D){var F=0; f=f.Y.Y.get(D);if(!f)return 0;f=g.a(f);for(D=f.next();!D.done;D=f.next())D=D.value,D.durationMs!==0&&D.l4!==D.TT&&F++;return F},zbT=function(f,D,F){var Z=!1; if(F=f.Y.Y.get(F)){F=g.a(F);for(var I=F.next();!I.done;I=F.next())I=I.value,I.durationMs!==0&&I.l4!==I.TT&&(I=I.cpn,D===I&&(Z=!0),Z&&!f.Gi.has(I)&&(f.k8({decoratedAd:I}),f.Gi.add(I)))}},twD=function(f){f.LQ&&f.k8({adf:"0_"+((new Date).getTime()/1E3-f.BI)+"_isTimeout_"+f.S})},cNa=function(f,D,F){if(f.N.length)for(var Z=g.a(f.N),I=Z.next(),p={};!I.done;p={jb:void 0},I=Z.next()){p.jb=I.value; I=p.jb.startSecs*1E3;var z=p.jb.I$*1E3+I;if(D>I&&DI&&F0&&(f.Ms=0,f.yl="",f.V.Z("html5_huli_ssdai_use_playback_state")&&f.Ym(f.playback.CK(),0),f.api.publish("serverstitchedvideochange"));f.playback.Ez(Z,I);return!0},Pd=function(f){f.S=!1; f.T.isActive()&&twD(f);f.T.stop();f.sP(!1)},slc=function(f,D){var F=""; D?D.event==="unknown"?F="unknown":f.jT.has(D.identifier)?f.G&&f.G.eD===D.identifier?f.G.eD===D.identifier?F=PV(f.Ir,function(Z){return Z.identifier===D.identifier})?"shortad":"pending":PV(f.Ir,function(Z){return Z.identifier===D.identifier})||(F="noAdsAdded"):F="wrongAdBreakInfo":F="unscheduled":F="noCuepoint"; return F},IY=function(f,D){f.B||f.Jb||Zc(f,f.yl); var F=D.r7,Z=D.SH;if(Z.cpn===f.yl)f.k8({igtranssame:1,enter:Z.cpn,exit:F.cpn});else{var I=f.Jb,p=!!f.B;f.B="";var z=D.Ik,H=F.playerType===2?F.TT/1E3+F.videoData.Wk:f.WL().videoData.Wk;f.api.Z("html5_ssdai_enable_media_end_cue_range")&&(p||I||F.playerType!==2?(I||p)&&f.k8({mecr:0,seek:I,skip:p}):f.api.IE(F.cpn));if(F.playerType===2&&Z.playerType===2)p?f.k8({igtransskip:1,enter:Z.cpn,exit:F.cpn,seek:I,skip:f.B}):FLu(f,F,Z,H,z,I,p);else{f.yl=Z.cpn;f.Ym(Z.cpn,Z.startTimeSecs||z);D=D.Geo;if(F.playerType=== 1&&Z.playerType===2){f.e4=0;Bdf(f,Z);var K=w5E(f,"c2a",Z);f.k8(K);f.Ms++}else if(F.playerType===2&&Z.playerType===1){f.api.publish("serverstitchedvideochange");K=w5E(f,"a2c");f.k8(K);f.Ms=0;f.e4=H;K=F.cpn;var k=f.e4;if(K!==f.playback.CK()){var h=f.xo.get(K);h?h.Y=k:f.k8({nop_e:K})}f.zp(F.Zf)}K=DAs(f);f.playback.v9(F,Z,H,z,I,p,D,K)}qsu(f)}},HpI=function(f,D,F,Z){f.V.Z("html5_ssdai_log_ssevt_in_loader_timers")&&(Z=f.Jb?0:Math.round((Z-F)*1E3),f.playback.Gx("ssevt",{tag:"sstme", ad:D!==f.playback.CK(),cpn:D,st:(F-f.playback.PL()).toFixed(3),late:Z}))},opu=function(f,D,F){f.playback.Qa(); f.playback.seekTo(D,F);f.playback.playVideo()},KLD=function(f,D,F,Z){D={r7:D, SH:F,Ik:f.playback.getCurrentTime(),Geo:Z};IY(f,D)},Zc=function(f,D){var F=D||f.yl,Z=f.Y.Hw({cpn:F}); if(Z){D=Z.videoData;var I,p;F=Z.q5||((p=(I=f.J.get(F))==null?void 0:I.start)!=null?p:0)/1E3;f=f.playback.getCurrentTime()-F;D.Wk=f>0?f:0}else f.WL().videoData.Wk=f.playback.getCurrentTime()},qsu=function(f){f.eT.add(f.B); f.B="";f.Jb=!1},DAs=function(f){if(f.m9||f.AN){var D=Array.from(f.app.UE().N.values()),F=[],Z=[],I=[],p=[],z=[],H=[]; D=g.a(D);for(var K=D.next();!K.done;K=D.next())if(K=f.Y.Hw({cpn:K.value.CK()}))K.serializedPlaybackPingContextLoggingData&&F.push(K.serializedPlaybackPingContextLoggingData),K.aK&&Z.push(K.aK),K.eQ&&Z.push(K.eQ),p.push(K.cpn),z.push(K.videoData.videoId||""),H.push(K.videoData.adFormat||K.videoData.G3),K.serializedQoeContextData&&I.push(K.serializedQoeContextData);K=D=void 0;f.m9&&(K={serializedPlaybackPingContextLoggingData:F,serializedStitchedClipLoggingMetadata:Z});f.AN&&(D={Pr:p,X5:z,adFormats:H, serializedQoeContextData:I});return{PX:K,Tq:D}}},jlf=function(f,D,F,Z){g.J.call(this); var I=this;this.api=f;this.V=D;this.Y=F;this.app=Z;this.X=new Map;this.J=[];this.B=this.S=null;this.Bs=NaN;this.T=this.G=this.Jb=null;this.N=new g.xX(function(){kMD(I,I.Bs,I.Jb||void 0)}); this.KQ=[];this.xo=new g.xX(function(){var p=I.KQ.pop();if(p){var z=p.kG,H=p.playerVars;p=p.playerType;H&&(H.prefer_gapless=!0,I.api.preloadVideoByPlayerVars(H,p,NaN,"",z),I.KQ.length&&g.XE(I.xo,4500))}}); this.events=new g.ia(this);this.ej={XKo:function(){return I.J}}; this.Y.getPlayerType();g.N(this,this.N);g.N(this,this.xo);g.N(this,this.events);this.events.D(this.api,g.Nh("childplayback"),this.onCueRangeEnter);this.events.D(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.D(this.api,"presentingplayerstatechange",this.ZY)},APc=function(f,D,F,Z,I,p){var z=D.cpn,H=D.docid||D.video_id||D.videoId||D.id,K=f.Y; p=p===void 0?I+Z:p;if(I>p)return pd(f,"enterAfterReturn enterTimeMs="+I+" is greater than parentReturnTimeMs="+p.toFixed(3),z,H),"";var k=K.qm()*1E3;if(Ik)return K="returnAfterDuration parentReturnTimeMs="+p.toFixed(3)+" is greater than parentDurationMs="+k+". And timestampOffset in seconds is "+K.R_(),pd(f,K,z,H),"";k=null;for(var h=g.a(f.J),y=h.next();!y.done;y=h.next()){y= y.value;if(I>=y.TT&&Iy.TT)return pd(f,"overlappingReturn",z,H),"";if(p===y.TT)return pd(f,"outOfOrder",z,H),"";I===y.l4&&(k=y)}z="cs_childplayback_"+ipT++;H={Nz:zC(Z,!0),zU:Infinity,target:null};var A={kG:z,playerVars:D,playerType:F,durationMs:Z,TT:I,l4:p,QF:H};f.J=f.J.concat(A).sort(function(m,b){return m.TT-b.TT}); k?hbX(f,k,{Nz:zC(k.durationMs,!0),zU:k.QF.zU,target:A}):(D={Nz:zC(I,!1),zU:I,target:A},f.X.set(D.Nz,D),K.addCueRange(D.Nz));D=!0;if(f.Y===f.app.VT()&&(K=K.getCurrentTime()*1E3,K>=A.TT&&KD)break;if(p>D)return{iK:Z,GF:D-I};F=p-Z.l4/1E3}return{iK:null,GF:D-F}},kMD=function(f,D,F){F=F===void 0?{}:F; var Z=f.T||f.app.VT().getPlayerState();HF(f,!0);D=isFinite(D)?D:f.Y.p7();var I=dAu(f,D);D=I.GF;var p=(I=I.iK)&&!sU(f,I)||!I&&f.Y!==f.app.VT(),z=D*1E3;z=f.B&&f.B.start<=z&&z<=f.B.end;!p&&z||qv(f);I?yPX(f,I,D,F,Z):QlJ(f,D,F,Z,"_execute")},QlJ=function(f,D,F,Z,I){var p=f.Y; p!==f.app.VT()&&f.app.Kd();f.V.Z("html5_sabr_csdai_seek_log")||(I="");var z;p.seekTo(D,Object.assign({},{pF:"application_timelinemanager"+((z=I)!=null?z:"")},F));Ccu(f,Z)},yPX=function(f,D,F,Z,I){var p=sU(f,D); if(!p){D.playerVars.prefer_gapless=!0;var z=new g.pT(f.V,D.playerVars);z.kG=D.kG;f.api.rR(z,D.playerType)}z=f.app.VT();p||z.addCueRange(D.QF.Nz);z.seekTo(F,Object.assign({},{pF:"application_timelinemanager"},Z));Ccu(f,I)},Ccu=function(f,D){f=f.app.VT(); var F=f.getPlayerState();D.isOrWillBePlaying()&&!F.isOrWillBePlaying()?f.playVideo():D.isPaused()&&!F.isPaused()&&f.pauseVideo()},HF=function(f,D){f.Bs=NaN; f.Jb=null;f.N.stop();f.G&&D&&f.G.yX();f.T=null;f.G=null},sU=function(f,D){f=f.app.VT(); return!!f&&f.getVideoData().kG===D.kG},mAE=function(f){var D=f.J.find(function(I){return sU(f,I)}); if(D){var F=f.app.VT();qv(f);var Z=new g.du(8);D=Rby(f,D)/1E3;QlJ(f,D,{},Z,"_force");F.Gx("forceParentTransition",{childPlayback:1});f.Y.Gx("forceParentTransition",{parentPlayback:1})}},bpD=function(f,D,F){D=D===void 0?-1:D; F=F===void 0?Infinity:F;for(var Z=D,I=F,p=g.a(f.X),z=p.next();!z.done;z=p.next()){var H=g.a(z.value);z=H.next().value;H=H.next().value;H.zU>=Z&&H.target&&H.target.l4<=I&&(f.Y.removeCueRange(z),f.X.delete(z))}Z=D;I=F;p=[];z=g.a(f.J);for(H=z.next();!H.done;H=z.next())if(H=H.value,H.TT>=Z&&H.l4<=I){var K=f;K.S===H&&qv(K);sU(K,H)&&K.app.Kd()}else p.push(H);f.J=p;Z=dAu(f,D/1E3);D=Z.iK;Z=Z.GF;D&&(Z*=1E3,TrJ(f,D,Z,D.l4===D.TT+D.durationMs?D.TT+Z:D.l4));(D=dAu(f,F/1E3).iK)&&pd(f,"Invalid clearEndTimeMs="+ F+" that falls during playback={timelinePlaybackId="+(D.kG+" video_id="+D.playerVars.video_id+" durationMs="+D.durationMs+" enterTimeMs="+D.TT+" parentReturnTimeMs="+D.l4+"}.Child playbacks can only have duration updated not their start."))},TrJ=function(f,D,F,Z){D.durationMs=F; D.l4=Z;Z={Nz:zC(F,!0),zU:F,target:null};hbX(f,D,Z);sU(f,D)&&f.app.VT().getCurrentTime()*1E3>F&&(D=Rby(f,D)/1E3,F=f.app.VT().getPlayerState(),QlJ(f,D,{},F,"_update"))},pd=function(f,D,F,Z){f.Y.Gx("timelineerror",{e:D, cpn:F?F:void 0,videoId:Z?Z:void 0})}; var ifd=function(f,D){return pf[q[16]](this,22,f,D)}; tRa=function(f){f&&f!=="web"&&MRf.includes(f)}; oY=function(f){f=f===void 0?!1:f;g.J.call(this);this.Y=lhT(5,null,f);g.N(this,this.Y);this.J=lhT(15,null,f);g.N(this,this.J)}; eGy=function(f,D){return D?!!f.Y.get(D):!1}; SsD=function(f,D){f.dataset.version=D}; vpX=function(f){g.x.call(this,{K:"div",ST:["html5-video-player"],W:{tabindex:f.j().disableOrganicUi?"":"-1",id:f.webPlayerContextConfig.rootElementId},L:[{K:"div",C:g.Uf.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var D=this;this.app=f;this.Cj=this.fQ(g.Uf.VIDEO_CONTAINER);this.Su=new g.Yd(0,0,0,0);this.GT=null;this.x0=new g.Yd(0,0,0,0);this.x4=this.iX=this.RS=NaN;this.lw=this.Bm=this.UZ=this.t$=!1;this.oC=NaN;this.XE=!1;this.yV=null;this.Ss=new g.xX(function(){D.app.j().Z("web_enable_smart_zoom")&& D.app.NR.getInternalApi().isAutocropEnabled()||D.resize()},100); this.Td=function(){D.element.focus({preventScroll:!0})}; this.PH=function(){D.app.NR.publish("playerUnderlayVisibilityChange","visible");D.GT.classList.remove(g.Uf.VIDEO_CONTAINER_TRANSITIONING);D.GT.removeEventListener(vN,D.PH);D.GT.removeEventListener("transitioncancel",D.PH)}; this.ix=this.xk=!1;var F=this.element.addEventListener,Z=this.element.removeEventListener;this.addEventListener=function(p,z,H){F.apply(D.element,[p,z,H])}; this.removeEventListener=function(p,z,H){Z.apply(D.element,[p,z,H])}; var I=f.j();I.transparentBackground&&this.Iu("ytp-transparent");I.controlsType==="0"&&this.Iu("ytp-hide-controls");g.IC(this.element,"ytp-exp-bottom-control-flexbox");g.IC(this.element,"ytp-modern-caption");I.Z("enable_new_paid_product_placement")&&!g.oe(I)&&g.IC(this.element,"ytp-exp-ppp-update");g.IC(this.element,"ytp-livebadge-color");SsD(this.element,cPa(f));this.nz=!1;this.Tl=new g.IG(NaN,NaN);UAu(this);this.D(f.NR,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.N(this,this.Ss)}; UAu=function(f){function D(z){f.GT&&Kd(f);ks(f)!==f.XE&&f.resize();f.app.j().Z("web_enable_smart_zoom")&&f.vG&&(z.state.isPaused()?f.vG.pause():g.hF(z,8)&&f.vG.playState==="paused"&&f.vG.play())} function F(z,H){f.T1(z,H)} function Z(z){z.getVideoData()&&f.updateVideoData(z.getVideoData())} function I(){f.x0=new g.Yd(0,0,0,0);f.Su=new g.Yd(0,0,0,0)} var p=f.app.NR;p.addEventListener("initializingmode",I);p.addEventListener("videoplayerreset",Z);p.addEventListener("videodatachange",F);p.addEventListener("presentingplayerstatechange",D);f.addOnDisposeCallback(function(){p.removeEventListener("initializingmode",I);p.removeEventListener("videoplayerreset",Z);p.removeEventListener("videodatachange",F);p.removeEventListener("presentingplayerstatechange",D)})}; GMf=function(f){var D=f.app.VT();if(D=D?D.getVideoData():null){if(g.JZ(D)||g.uj(D)||g.NE(D))return 16/9;if(ya(D)&&D.B.Y)return f=D.B.videoInfos[0].video,aeu(f.width,f.height)}return(f=f.GT)?aeu(f.videoWidth,f.videoHeight):16/9}; w2c=function(f,D,F,Z){var I=F,p=aeu(D.width,D.height);f.t$?I=Fp?{width:D.width,height:D.width/I,aspectRatio:I}:II?f.width=f.height*F:FK;if(ks(f)){var k=GMf(f);var h=isNaN(k)||g.gt||mt&&g.yy||K;NS&&!g.YZ(601)?k=I.aspectRatio:h=h||p.controlsType==="3";h?K?(h=p.Z("place_shrunken_video_on_left_of_player")?16:f.getPlayerSize().width-D.width-16,k=Math.max((f.getPlayerSize().height-D.height)/2,0),h=new g.Yd(h,k,D.width, D.height),f.GT.style.setProperty("border-radius","12px")):h=new g.Yd(0,0,D.width,D.height):(F=I.aspectRatio/k,h=new g.Yd((D.width-I.width/F)/2,(D.height-I.height)/2,I.width/F,I.height),F===1&&g.yy&&(k=h.width-D.height*k,k>0&&(h.width+=k,h.height+=k)));g.qI(f.element,"ytp-fit-cover-video",Math.max(h.width-I.width,h.height-I.height)<1);if(H||f.nz)f.GT.style.display="";f.XE=!0}else{h=-D.height;NS?h*=window.devicePixelRatio:g.KD&&(h-=window.screen.height);h=new g.Yd(0,h,D.width,D.height);if(H||f.nz)f.GT.style.display= "none";f.XE=!1}PE(f.x0,h)||(f.x0=h,g.ei(p)?(f.GT.style.setProperty("width",h.width+"px","important"),f.GT.style.setProperty("height",h.height+"px","important")):g.kH(f.GT,h.getSize()),Z=new g.FA(h.left,h.top),g.q2(f.GT,Math.round(Z.x),Math.round(Z.y)),Z=!0);D=new g.Yd((D.width-I.width)/2,(D.height-I.height)/2,I.width,I.height);PE(f.Su,D)||(f.Su=D,Z=!0);g.Dx(f.GT,"transform",F===1?"":"scaleX("+F+")");z&&K!==f.Bm&&(K&&(f.GT.addEventListener(vN,f.PH),f.GT.addEventListener("transitioncancel",f.PH),f.GT.classList.add(g.Uf.VIDEO_CONTAINER_TRANSITIONING)), f.Bm=K,f.app.NR.publish("playerUnderlayVisibilityChange",f.Bm?"transitioning":"hidden"));return Z}; rPu=function(f){f.xk=!f.xk;f.ix=!0;f.element.classList.toggle("ytp-retro-player",f.xk);f.resize();f.ix=!1;f.app.NR.wY("onRetroModeChanged",f.xk)}; LLc=function(){this.csn=g.d4();this.clientPlaybackNonce=null;this.elements=new Set;this.B=new Set;this.Y=new Set;this.J=new Set}; leE=function(f){if(f.csn!==g.d4())if(f.csn==="UNDEFINED_CSN")f.csn=g.d4();else{var D=g.d4(),F=g.R6();if(D&&F){f.csn=D;for(var Z=g.a(f.elements),I=Z.next();!I.done;I=Z.next())(I=I.value.visualElement)&&I.isClientVe()&&D&&F&&(g.CO("combine_ve_grafts")?h4(jh(),I,F):g.DK(g.uN)(void 0,D,F,I))}if(D)for(f=g.a(f.Y),F=f.next();!F.done;F=f.next())(F=F.value.visualElement)&&F.isClientVe()&&g.P1(D,F)}}; j7=function(f,D){g.J.call(this);this.X=f;this.Gx=D;this.G=0;this.B=!1}; EpD=function(f){var D,F,Z,I;return g.l(function(p){if(p.Y==1){if(f.wM)return p.return();f.wM=new Worker(yi(f.X),void 0);g.po(p,2);F=Promise.withResolvers();D=setTimeout(function(){F.reject("timeout")},1E3); f.wM.onerror=function(){F.reject("error")}; f.wM.onmessage=function(){F.resolve();clearTimeout(D)}; return g.r(p,F.promise,4)}if(p.Y!=2)return f.wM.onmessage=null,f.wM.onerror=null,f.wM.addEventListener("message",function(z){return void f.onMessage(z)}),f.Gx("workerCtor",{}),g.qC(p,0); Z=g.He(p);clearTimeout(D);(I=f.wM)==null||I.terminate();f.wM.onmessage=null;f.wM.onerror=null;f.wM=void 0;f.Gx("workerErr",{e:""+Z});g.Zb(p)})}; JPD=function(f,D,F){g.l(function(Z){if(Z.Y==1){if(f.J!==void 0||f.B)return Z.return();f.B=!0;return g.r(Z,EpD(f),2)}f.B=!1;if(!f.wM)return Z.return();f.J=setInterval(function(){f.sendMessage(F)},D); g.Zb(Z)})}; g.iH=function(f,D,F,Z){g.J.call(this);var I=this;this.logger=new g.Qk("App");this.YU=this.oN=!1;this.hD={};this.Qh=[];this.Fo=!1;this.Ah=null;this.intentionalPlayback=!1;this.Kt=!0;this.Mw=!1;this.Nh=this.bd=this.Mt=null;this.zY=!0;this.mediaElement=this.Mb=null;this.aS=NaN;this.W9=!1;this.Op=this.Sn=this.wU=this.screenLayer=this.playlist=null;this.Ks=[];this.sA=this.QE=0;this.ej={UE:function(){return I.LF}, G5:function(){return I.wU}}; if(!F)throw Error("b/179532961");this.DQ=(D==null?void 0:D.args)||{};this.webPlayerContextConfig=F;D=this.DQ;this.V=new fD(D,F,F.canaryState,Z);g.N(this,this.V);PBE(this.V);Z=HXc(this.V);this.V.Oq()&&f5(Z,function(z){I.kV("h5vcc",z)}); this.V.experiments.Hs("jspb_serialize_with_worker")&&$Ta();this.V.experiments.Hs("gzip_gel_with_worker")&&qEy();this.V.J&&(Z=this.V.experiments.ww().Y.Kp(ax),yyy(Z));this.Z("html5_onesie")&&(this.iW=new lr(this.V),g.N(this,this.iW));this.lE=new KyT(hxJ(g.hm(this.V),this.V.HQ,this.V.experiments),new A4y(this.V.experiments),function(){return void I.Lm()}); g.N(this,this.lE);this.fz=zf(Ep(this.V)&&!0,D.enablesizebutton);this.Eb=zf(!1,D.player_wide);this.visibility=new B_d;g.N(this,this.visibility);this.Z("web_log_theater_mode_visibility")&&this.aO(zf(!1,D.player_wide));this.oN=zf(!1,D.external_list);this.events=new g.ia(this);g.N(this,this.events);this.Z("start_client_gcf")&&(C_(Ml(),{q$:qc,IY:ULc()}),this.m3=Ml().resolve(qc),GEc(this.m3));this.YET=new VT;g.N(this,this.YET);this.e3=new LLc;D=new Rk;this.NR=new g.wW(this,D);g.N(this,this.NR);this.template= new vpX(this);g.N(this,this.template);this.appState=1;this.Rb=uku(this);g.N(this,D);D={};this.GE=(D.internalvideodatachange=this.B5,D.playbackready=this.IKo,D.playbackstarted=this.MUR,D.statechange=this.Dmr,D);this.lB=new pS(this.NR);this.i4=Nru(this);D=this.V.T;!1!==D&&this.kV("badps",{hbp:D,hostname:window.location.hostname,ps:this.V.playerStyle});this.Sj=new w0a(this.V,this.i4);this.NR.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||$_(this.i4))&&gpJ(this);D=10;g.hm(this.V)&& (D=3);qO(this.V)&&(D=g.Pf(this.V.experiments,"tvhtml5_unplugged_preload_cache_size"));this.LF=new g.up(this.NR,D);D=ebT(this);this.LF.wK(D);xAI(this);D={};this.x$=(D.airplayactivechange=this.Q$o,D.airplayavailabilitychange=this.P4d,D.beginseeking=this.Lws,D.sabrCaptionsDataLoaded=this.tpx,D.endseeking=this.Vpr,D.internalAbandon=this.RPb,D.internalaudioformatchange=this.OEY,D.internalvideodatachange=this.n_T,D.internalvideoformatchange=this.E_T,D.liveviewshift=this.iEr,D.playbackstalledatstart=this.KFY, D.progresssync=this.qpr,D.onAbnormalityDetected=this.gns,D.onSnackbarMessage=this.G8F,D.onLoadProgress=this.wDR,D.SEEK_COMPLETE=this.YwR,D.SEEK_TO=this.Jkr,D.onVideoProgress=this.xIs,D.onLoadedMetadata=this.HET,D.onAutoplayBlocked=this.onY,D.onPlaybackPauseAtStart=this.ePR,D.playbackready=this.axT,D.statechange=this.DT,D.newelementrequired=this.MD,D.heartbeatparams=this.yzx,D.videoelementevent=this.ckT,D.drmoutputrestricted=this.pDT,D.signatureexpired=this.BpQ,D.nonfatalerror=this.AzI,D.reloadplayer= this.s$o,D);this.dR=new g.ia(this);g.N(this,this.dR);this.uH=new oY(this.V.ww().Y.Kp(EFa));g.N(this,this.uH);this.XO=this.jH=-1;this.uo=new g.xX(this.template.resize,16,this.template);g.N(this,this.uo);this.D5=new jlf(this.NR,this.V,this.fp(),this);this.kC=new Gi(this);g.N(this,this.kC);this.Ry=new Sr(this);g.N(this,this.Ry);tRa(this.V.Y.c);this.events.D(this.NR,g.Nh("appapi"),this.zab);this.events.D(this.NR,g.gA("appapi"),this.lKY);this.events.D(this.NR,g.Nh("appprogressboundary"),this.CYb);this.events.D(this.NR, g.gA("applooprange"),this.p6);this.events.D(this.NR,"presentingplayerstatechange",this.ZY);this.events.D(this.NR,"resize",this.dI3);this.template.CQ(i5(document,f));this.events.D(this.NR,"offlineslatestatechange",this.WwE);this.events.D(this.NR,"sabrCaptionsTrackChanged",this.R_d);this.events.D(this.NR,"sabrCaptionsBufferedRangesUpdated",this.ykY);this.i4.U.j().Gv&&Vr(this.i4,"offline");this.V.LQ&&g.o2("ux",g.bp);f=g.Pf(this.V.experiments,"html5_defer_fetch_att_ms");this.Mx=new g.xX(this.c6s,f,this); g.N(this,this.Mx);this.KE().u4()&&(g.r0()&&this.KE().Y3.push("mdx"),X2T(this));this.Sj.tick("fs");Opw(this);this.V.LQ&&Vr(this.i4,"ux",!0);g.LM(this.i4.U.j())&&Vr(this.i4,"embed");this.Z("web_player_sentinel_is_uniplayer")||g.UT(new g.by("Player experiment flags missing","web_player_sentinel_is_uniplayer"));f=this.Z("web_player_sentinel_yt_experiments_sync");D=g.CO("web_player_sentinel_yt_experiments_sync");f!==D&&g.UT(new g.by("b/195699950",{yt:f,player:D}));this.fZ=npc(this);if(f=g.Pf(this.V.experiments, "html5_block_pip_safari_delay"))this.SC=new g.xX(this.Hj,f,this),g.N(this,this.SC);var p;F=tD((p=F==null?void 0:F.trustedEchoWorkerUrl)!=null?p:null);p=this.V.ww().Y.Kp(YsD);f=this.V.ww().Y.Kp(PcT);F&&p>0&&f>0&&(this.pW=new j7(F,function(z,H){I.fp().Gx(z,H)}),g.N(this,this.pW),JPD(this.pW,p,f)); WR=this.V.AN;this.NR.publish("applicationInitialized")}; npc=function(f){function D(F){F.stack&&F.stack.indexOf("player")!==-1&&f.VT().DP(F)} v1.subscribe("handleError",D);PY.push(D);return function(){v1.unsubscribe("handleError",D);var F=PY.indexOf(D);F!==-1&&PY.splice(F,1)}}; ebT=function(f){var D=new g.pT(f.V,f.DQ);f.NR.publish("initialvideodatacreated",D);return hV(f,1,D,!1)}; xAI=function(f){var D=f.fp();D.setPlaybackRate(f.V.G?1:f6u(f,Number(g.W6("yt-player-playback-rate"))||1));D.V3(f.GE,f);D.bl()}; Nru=function(f){var D="",F="",Z=cPa(f),I=vV(Z,"cb");I&&/^[\w-]+$/.test(I)&&(F=I);Z.indexOf("//")===0&&(Z=f.V.protocol+":"+Z);I=Z.lastIndexOf("/base.js");I!==-1&&(D=Z.substring(0,I+1));if(Z=Error().stack)if(Z=Z.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))Z=Z[1],Z.includes(D)||g.UT(Error("Player module URL mismatch: "+(Z+" vs "+D+".")));D=new P3s(f.NR,D,F);F={};fGE(D,(F.destroyed=function(){f.onApiChange()},F)); return D}; uku=function(f){if(f.V.storeUserVolume){f=g.W6("yt-player-volume")||{};var D=f.volume;f={volume:isNaN(D)?100:g.PZ(Math.floor(D),0,100),muted:!!f.muted}}else f={volume:100,muted:f.V.mute};return f}; yJ=function(f){var D=f.V.experiments.ww().Y.Kp(ax);var F=f.V.deviceIsAudioOnly;D=D===void 0?!1:D;F=F?D?new g.MZ(g.TR("AUDIO")):new g.Gs(g.TR("AUDIO")):tk.pop()||(D?new g.MZ(g.TR("VIDEO")):new g.Gs(g.TR("VIDEO")));f.mediaElement=F;g.N(f,f.mediaElement);f.VT().setMediaElement(f.mediaElement);try{f.V.BI?(f.Sn&&f.events.DK(f.Sn),f.Sn=f.events.D(f.mediaElement,"volumechange",f.zPT)):(f.mediaElement.QO(f.Rb.muted),f.mediaElement.setVolume(f.Rb.volume/100))}catch(I){f.tS("html5.missingapi",2,"UNSUPPORTED_DEVICE", "setvolume.1;emsg."+(I&&typeof I==="object"&&"message"in I&&typeof I.message==="string"&&I.message.replace(/[;:,]/g,"_")));return}g.a8(f.dR);D8c(f);F=f.template;D=f.mediaElement.Cp();F.GT=D;F.lw=!1;F.GT.parentNode||Sc(F.Cj,F.GT,0);F.x0=new g.Yd(0,0,0,0);Bru(F);Kd(F);D=F.GT;g.IC(D,"video-stream");g.IC(D,g.Uf.MAIN_VIDEO);var Z=F.app.j();Z.f7&&D.setAttribute("data-no-fullscreen","true");Z.Z("html5_local_playsinline")?"playsInline"in qJ()&&(D.playsInline=!0):Z.QY&&(D.setAttribute("webkit-playsinline", ""),D.setAttribute("playsinline",""));Z.oE&&F.GT&&F.D(D,"click",D.play,D);try{f.mediaElement.activate()}catch(I){f.tS("html5.missingapi",2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(I&&typeof I==="object"&&"message"in I&&typeof I.message==="string"&&I.message.replace(/[;:,]/g,"_")))}}; ZUT=function(f){if(!FHJ(f)){var D=f.fp().ac();D&&(D=D.OY(),D instanceof Promise&&D.catch(function(){})); AV(f,Sq(f.getPlayerStateObject()))}}; D8c=function(f){var D=f.mediaElement;kY()?f.dR.D(D,"webkitpresentationmodechanged",f.wwI):window.document.pictureInPictureEnabled&&(f.dR.D(D,"enterpictureinpicture",function(){f.x9(!0)}),f.dR.D(D,"leavepictureinpicture",function(){f.x9(!1)})); PR&&(f.dR.D(D,"webkitbeginfullscreen",function(){f.OQ(3)}),f.dR.D(D,"webkitendfullscreen",function(){f.OQ(0)}))}; g.$s=function(f,D){return f.LF.Hw(D)||f.LF.S}; bC=function(f,D){return f.Z("web_player_misc_bugfix_b")?f.LF.Hw(D)||f.LF.S:f.LF.Hw(D)}; g.I6D=function(f,D,F,Z){var I=f.Sj;D===2&&(I=new w0a(f.V));return new g.J3(f.V,D,I,f.template,function(p,z,H){f.NR.publish(p,z,H)},function(){return f.NR.getVisibilityState()},f.visibility,f,f.lE,F,Z)}; hV=function(f,D,F,Z,I){f=g.I6D(f,D,F,I);f=new g.Oz(f);Z&&f.bl();return f}; VJ=function(f,D){return f.xK(D)?f.fp():D}; RY=function(f,D){var F=f.VT();return D===f.fp()&&f.xK(D)&&f.xK(F)?F:D}; pSE=function(f){if(!dO(f)){var D=Qr(f.i4);D&&!D.created&&DUI(f.i4)&&D.create()}}; z$E=function(f){var D=f.getVideoData(),F=f.i4;o_u(F)||F.yM();!vL&&$_(F)&&AYy(F);Vr(F,"embed");Vr(F,"kids");Vr(F,"remote");Vr(F,"miniplayer");Vr(F,"offline");Vr(F,"unplugged");Vr(F,"ypc",!1,!0);Vr(F,"webgl",!1,!0);K4I(F)||(Vr(F,"captions",!0),Vr(F,"endscreen"),F.v6(),Vr(F,"creatorendscreen",!0));F.zG();F.U.publish("modulesCreated");f.NR.publish("videoready",D)}; QJ=function(f){f=f.KE();f.u4();return Y7(f)}; Opw=function(f){f.YP();var D=f.DQ;yJ(f);f.events.D(window,"resize",f.urT);var F=f.KE();f.NR.k_("onVolumeChange",f.Rb);if(D&&LpX(D)){var Z=Ie(f.V);Z&&!f.oN&&(D.fetch=0);var I=g.LM(f.V);I&&!f.oN&&(D.fetch=0);Cd(f,D);g.LM(f.V)&&f.Sj.tick("ep_pr_s");if(!Z||f.oN)if(I&&!f.oN)sww(f);else if(!F.u4())f.playlist.onReady(function(){m7(f)})}f.PO(f.fp(),!1,!0); g.O(f.fp().getPlayerState(),128)||(D=Zmu(!f.V.deviceIsAudioOnly),D==="fmt.noneavailable"?f.tS("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):D==="html5.missingapi"?f.tS(D,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):F&&F.u4()&&QJ(f)&&(f.V.sE||f.V.t6)?TC(f):F.Ld?f.NR.mutedAutoplay({durationMode:F.mutedAutoplayDurationMode}):g.W6("yt-player-playback-on-reload")?(g.ha("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!f.V.zx}),g.w0("yt-player-playback-on-reload",!1),TC(f)): jW(f.V)||qZf(f),g.sn(f.V)||V5(f.V)==="MWEB"?(g.Yj(g.f0(),function(){bH(f)}),g.Yj(g.f0(),function(){Hld()})):(bH(f),Hld()))}; bH=function(f){if(!f.Z("use_rta_for_player"))if(f.Z("fetch_att_independently"))g.XE(f.Mx);else{var D=f.getVideoData().botguardData;D&&g.m9(D,f.V,f.getVideoData().MN||"")}}; qZf=function(f){f.NR.publish("initializingmode");f.Ay(2);Vr(f.i4,"remote");Vr(f.i4,"miniplayer")}; var qJc=function(){return od[q[16]](this,8)}; var TC=function(f){var D=f.fp();if(g.O(D.getPlayerState(),128))return!1;D=D.getVideoData();QJ(f)&&f.V.t6&&(tk.length&&f.YU?(Mv(f,{muted:!1,volume:f.Rb.volume},!1),tV(f,!1)):tk.length||f.Rb.muted||(Mv(f,{muted:!0,volume:f.Rb.volume},!1),tV(f,!0)));QJ(f)&&g.LM(f.V)&&D.mutedAutoplay&&(Mv(f,{muted:!0,volume:f.Rb.volume},!1),tV(f,!0));D.Dc&&Mv(f,{muted:!0,volume:f.Rb.volume},!1);HUI(f,1,D,!1);var F=f.fp();f.NR.publish("initializingmode");f.PO(F);f.Ay(3);var Z;if(!(Z=!f.V.CG)){if(Z=f.Op){Z=f.Op;var I=f.mediaElement; Z=!!I&&I===Z.mediaElement}Z=Z&&f.Fo}Z&&(f.Sd(),yJ(f),F.setMediaElement(f.mediaElement));F.B1();if(g.O(F.getPlayerState(),128))return!1;D.B_||AV(f,3);return f.Fo=!0},dO=function(f){f=rW(f.i4); return!!f&&f.loaded},o5J=function(f,D){if(!f.Mb)return!1; var F=f.Mb.startTimeMs*.001-1,Z=f.Mb.endTimeMs*.001;f.Mb.type==="repeatChapter"&&Z--;return Math.abs(D-F)<=1E-6||Math.abs(D-Z)<=1E-6||D>=F&&D<=Z},KHE=function(f){var D=f.VT(); if(f.Z("html5_disable_loop_range_for_shorts_ads")&&D.getVideoData().isAd()?0:AZ(D.getVideoData())&&!D.s2())D=S7(f)*1E3-f.getVideoData().vZ,f.Z("html5_gapless_new_slr")?(f=f.Ry,cF(f.app,"gaplessshortslooprange"),D=new g.Jm(0,D,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(f=f.app.VT())&&f.addCueRange(D)):f.setLoopRange({startTimeMs:0,endTimeMs:D,type:"shortsLoop"})},kOw=function(f){var D=f.fp(); if(!(g.O(D.getPlayerState(),64)&&f.KE().isLivePlayback&&f.Mb.startTimeMs<5E3)){if(f.Mb.type==="repeatChapter"){var F,Z=(F=zUu(f.I_()))==null?void 0:F.L7(),I;F=(I=f.getVideoData())==null?void 0:I.Xt;Z instanceof g.LS&&F&&(I=F[DW(F,f.Mb.startTimeMs)],Z.renderChapterSeekingAnimation(0,I.title));isNaN(Number(f.Mb.loopCount))?f.Mb.loopCount=0:f.Mb.loopCount++;f.Mb.loopCount===1&&f.NR.wY("innertubeCommand",f.getVideoData().sb)}Z={pF:"application_loopRangeStart"};if(f.Mb.type==="clips"||f.Mb.type==="shortsLoop")Z.seekSource= 58;D.seekTo(f.Mb.startTimeMs*.001,Z)}},f6u=function(f,D){var F=f.NR.getAvailablePlaybackRates(); D=Number(D.toFixed(2));f=F[0];F=F[F.length-1];D<=f?D=f:D>=F?D=F:(f=Math.floor(D*100+.001)%5,D=f===0?D:Math.floor((D-f*.01)*100+.001)/100);return D},S7=function(f,D){D=g.$s(f,{playerType:D}); D=VJ(f,D);return UU(f,D.jL(),D)},UU=function(f,D,F){if(f.xK(F)&&(F=F.getVideoData(),!vF(f))){f=f.D5; for(var Z=g.a(f.J),I=Z.next();!I.done;I=Z.next())if(I=I.value,F.kG===I.kG){D+=I.TT/1E3;break}Z=D;f=g.a(f.J);for(I=f.next();!I.done;I=f.next()){I=I.value;if(F.kG===I.kG)break;var p=I.TT/1E3;if(p1&&(I=!1);f.W9&&I===D||(Z=Z.lock(I?"portrait":"landscape"),Z!=null&&Z.catch(function(){}),f.W9=!0)}else f.W9&&(f.W9=!1,Z.unlock())}; BF=function(f,D,F){f.NR.publish(D,F);var Z=g.hm(f.V)||g.ei(f.V)||g.rQ(f.V);if(F&&Z){switch(D){case "cuerangemarkersupdated":var I="onCueRangeMarkersUpdated";break;case "cuerangesadded":I="onCueRangesAdded";break;case "cuerangesremoved":I="onCueRangesRemoved"}I&&f.NR.wY(I,F.map(function(p){return{getId:function(){return this.id}, end:p.end,id:p.getId(),namespace:p.namespace==="ad"?"ad":"",start:p.start,style:p.style,visible:p.visible,markerPositionMs:p.markerPositionMs}}))}}; rO=function(f,D,F,Z,I,p){F=F===void 0?!0:F;var z=g.$s(f,{playerType:I});if((z.getPlayerType()!==2||f.xK(z))&&!g.lj(z.getVideoData())){var H=f.LF.ZB;H?H.seekTo(D,{hq:!F,fY:Z,pF:"application",seekSource:p}):(z&&z===f.fp()&&f.Mb&&!o5J(f,D)&&f.setLoopRange(null),f.seekTo(D,F,Z,I,p,"_request"))}}; bUu=function(f,D,F,Z){F&&(f.Sd(),yJ(f));F=f.VT();F.D7(D);var I=f.getVideoData(),p={};p.video_id=I.videoId;p.adformat=I.adFormat;I.isLivePlayback||(p.start=F.getCurrentTime(),p.resume="1");I.isLivePlayback&&ME(I)&&g.jo(f.V)&&(p.live_utc_start=F.zi(),p.resume="1");I.KQ&&(p.vvt=I.KQ);I.T&&(p.vss_credentials_token=I.T,p.vss_credentials_token_type=I.Ht);I.oauthToken&&(p.oauth_token=I.oauthToken);p.autoplay=1;p.reload_count=I.Ps+1;p.reload_reason=D;I.TK&&(p.unplugged_partner_opt_out=I.TK);I.HD&&(p.ypc_is_premiere_trailer= I.HD);I.playerParams&&(p.player_params=I.playerParams);I.Bs&&(p.itct=I.Bs);f.loadVideoByPlayerVars(p,void 0,!0,void 0,void 0,Z);D==="signature"&&f.wU&&pSE(f)}; Mmd=function(f,D){f.KE().autonavState=D;g.w0("yt-player-autonavstate",D);f.NR.publish("autonavchange",D)}; tmD=function(f){var D=f.getVideoData().hR,F=f.V.eT,Z=f.isInline()&&!f.getVideoData().yd,I=f.mediaElement;D||F||Z?I.Kn():(I.fn(),Mv(f,f.Rb))}; aY=function(f){(f=Qr(f.I_()))&&f.created&&f.destroy()}; vF=function(f){return f.getVideoData().enableServerStitchedDai&&!!f.wU}; SZJ=function(f,D){D.bounds=f.getBoundingClientRect();for(var F=g.a(["display","opacity","visibility","zIndex"]),Z=F.next();!Z.done;Z=F.next())Z=Z.value,D[Z]=IE(f,Z);D.hidden=!!f.hidden}; cPa=function(f){var D=f.webPlayerContextConfig.trustedJsUrl;return D?tD(D).toString():f.webPlayerContextConfig.jsUrl}; coD=function(f,D){var F=f.Hw({playerType:1});if(F){if(F.getVideoData().clientPlaybackNonce===D)return F;if((f=f.kC.Y)&&f.getVideoData().clientPlaybackNonce===D)return f}return null}; gpJ=function(f){FS(f,function(){var D=this;return function Z(){var I,p,z,H;return iX(Z,function(K){switch(K.Y){case 1:return g.zc(K,2),D.Sj.tick("wasm_s"),I=$_(D.i4)?function(k){return f5($UD(D.i4),function(h){return h.JN3(k)})}:void 0,g.po(K,4),p=GBa(D.webPlayerContextConfig.wasmModuleUrl,I,D.kV.bind(D)),z=yY,Db(K,ZP(p),6); case 6:H=z(K.J);D.Sj.tick(H.Y?"wasm_fa":"wasm_fw");Iwy(D.V,H);g.qC(K,2);break;case 4:g.He(K),D.Sj.tick("wasm_ferr");case 2:g.oU(K),g.Ko(K,0)}})}()})}; U8D=function(f){return f.name==="TypeError"&&f.stack.includes("/s/player/")&&uL()<=105}; v5w=function(f){return f.isTimeout?"NO_BID":"ERR_BID"}; a6J=function(){var f=null;qew().then(function(D){return f=D},function(D){return f=v5w(D)}); return f}; GOa=function(){var f=wG(1E3,"NO_BID");return g.UD(haJ([qew(),f]).U3(v5w),function(){f.cancel()})}; Ld=function(f){return f.Gi?g.JX().Kp(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; lH=function(f){this.player=f;this.B=this.Y=1}; Bbu=function(f,D,F,Z,I,p){D.client||(D.client={});f.player.j().Z("h5_remove_url_for_get_ad_break")||(D.client.originalUrl=F);var z=HR(F),H=g.dy(F)?!1:!0;(z||H)&&typeof Intl!=="undefined"&&(D.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);H=g.dy(F)?!1:!0;if(z||H||Z!==""){var K={};F=Ig(iL(Z)).split("&");var k=new Map;F.forEach(function(h){h=h.split("=");h.length>1&&k.set(h[0].toString(),decodeURIComponent(h[1].toString()))}); k.has("bid")&&(K.bid=k.get("bid"));K.params=[];wSu.forEach(function(h){k.has(h)&&(h={key:h,value:k.get(h)},K.params.push(h))}); WHE(f,K);D.adSignalsInfo=K}D.client.unpluggedAppInfo||(D.client.unpluggedAppInfo={});D.client.unpluggedAppInfo.enableFilterMode=!1;F=I.Y.cosver;F!=null&&F!=="cosver"&&(D.client.osVersion=F);F=I.Y.cplatform;F!=null&&F!=="cplatform"&&F!==""&&(D.client.platform=F);F=I.Y.cmodel;F!=null&&F!=="cmodel"&&(D.client.deviceModel=F);F=I.Y.cplayer;F!=null&&F!=="cplayer"&&(D.client.playerType=F);F=I.Y.cbrand;F!=null&&F!=="cbrand"&&(D.client.deviceMake=F);D.user||(D.user={});D.user.lockedSafetyMode=!1;g.gk(I)&& QNd(D,p,f.player.getPlayerState(1));if(f=I.livingRoomPoTokenId)D.client.tvAppInfo=Object.assign({},D.client.tvAppInfo,{livingRoomPoTokenId:f})}; l6d=function(f,D){var F=!1;if(D==="")return F;D.split(",").forEach(function(Z){var I={},p={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},z="ACTIVE";Z[0]==="!"&&(Z=Z.substring(1),z="INACTIVE");Z=Z.split("-");Z.length<3||(Z[0]in roT&&(p.clientName=roT[Z[0]]),Z[1]in LHT&&(p.platform=LHT[Z[1]]),p.applicationState=z,p.clientVersion=Z.length>2?Z[2]:"",I.remoteClient=p,f.remoteContexts?f.remoteContexts.push(I):f.remoteContexts=[I],F=!0)}); return F}; Jos=function(f){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in E5u))return!1;f=f.split(RegExp("[:&]"));var D=E5u.FLAG_AUTO_CAPTIONS_DEFAULT_ON,F="f"+(1+Math.floor(D/31)).toString();D=1<=2?z[1]:"";var H=Nba.test(D),K=g5u.exec(D);K=K!=null&&K.length>=2?K[1]:"";var k=e$y.exec(D);k=k!=null&&k.length>=2&&!Number.isNaN(Number(k[1]))?Number(k[1]):1;var h=x8X.exec(D);h=h!=null&&h.length>=2?h[1]:"0";var y=nM(f.player.j().tJ),A=f.player.getVideoData(1),V=g.fP(A.Bs,!0),R="BISCOTTI_ID"in F?F.BISCOTTI_ID:"";Bbu(f,V,D,R.toString(),f.player.j(), A);A={splay:!1,lactMilliseconds:F.LACT.toString(),playerHeightPixels:Math.trunc(F.P_H),playerWidthPixels:Math.trunc(F.P_W),vis:Math.trunc(F.VIS),signatureTimestamp:20432,autonavState:Ld(f.player.j())};Z&&(Z={},l6d(Z,F.YT_REMOTE)&&(A.mdxContext=Z));if(Z=XSu.includes(y)?void 0:g.LO("PREF")){for(var m=Z.split(RegExp("[:&]")),b=0,U=m.length;b1&&S[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}A.autoCaptionsDefaultOn= Jos(Z)}D=OUu.exec(D);(D=D!=null&&D.length>=2?D[1]:"")&&K&&(V.user.credentialTransferTokens=[{token:D,scope:"VIDEO"}]);D={contentPlaybackContext:A};z={adBlock:Math.trunc(F.AD_BLOCK),params:z,breakIndex:k,breakPositionMs:h,clientPlaybackNonce:F.CPN,topLevelDomain:y,isProxyAdTagRequest:H,context:V,adSignalsInfoString:Ig(iL(R.toString())),overridePlaybackContext:D};I!==void 0&&(z.cueProcessedMs=Math.round(I).toString());K&&(z.videoId=K);F.LIVE_TARGETING_CONTEXT&&(z.liveTargetingParams=F.LIVE_TARGETING_CONTEXT); F.AD_BREAK_LENGTH&&(z.breakLengthMs=Math.trunc(F.AD_BREAK_LENGTH*1E3).toString());p&&(z.driftFromHeadMs=p.toString());z.currentMediaTimeMs=Math.round(f.player.getCurrentTime(1)*1E3);(f=f.player.getGetAdBreakContext())&&(z.getAdBreakContext=f);return z}; YZs=function(){lH.apply(this,arguments)}; Pns=function(f,D,F,Z,I){var p=F.Id;var z=F.Nz;var H=f.player.j().n7,K=0;F.cueProcessedMs&&z&&!p&&(F=z.end-z.start,F>0&&(K=Math.floor(F/1E3)));var k={AD_BLOCK:I,AD_BREAK_LENGTH:p?p.I$:K,AUTONAV_STATE:Ld(f.player.j()),CA_TYPE:"image",CPN:f.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:f.player.XK()*1E3,LACT:Ve(),LIVE_INDEX:p?f.B++:1,LIVE_TARGETING_CONTEXT:p&&p.context?p.context:"",MIDROLL_POS:z?Math.round(z.start/1E3):0,MIDROLL_POS_MS:z?Math.round(z.start):0,VIS:f.player.getVisibilityState(), P_H:f.player.sy().nw().height,P_W:f.player.sy().nw().width,YT_REMOTE:H?H.join(","):""},h=jt(ko);Object.keys(h).forEach(function(y){h[y]!=null&&(k[y.toUpperCase()]=h[y].toString())}); Z!==""&&(k.BISCOTTI_ID=Z);Z={};KO(D)&&(Z.sts="20432",(f=f.player.j().forcedExperiments)&&(Z.forced_experiments=f));return q1(g.S$(D,k),Z)}; fZa=function(f,D){var F=f.player.j(),Z,I=(Z=f.player.getVideoData(1))==null?void 0:Z.oauthToken;return g.y4(F,I).then(function(p){if(p&&og()){var z=xu();X9(z,p)}return g.LP(f.player.Ge(z),D,"/youtubei/v1/player/ad_break").then(function(H){return H})})}; DGE=function(f){this.DE=f}; FkX=function(f){this.U=f}; ZKD=function(f){this.DE=f}; p8J=function(f){g.J.call(this);this.Y=f;this.p5=IZa(this)}; IZa=function(f){var D=new K_c(f.Y.bJ);g.N(f,D);f=[new DGE(f.Y.DE),new FkX(f.Y.U),new ZKD(f.Y.DE),new A5(f.Y.I6,f.Y.tv),new Vz,new Qz(f.Y.N5,f.Y.BV,f.Y.DE),new $k,new yz(f.Y.BV)];f=g.a(f);for(var F=f.next();!F.done;F=f.next())kwJ(D,F.value);f=g.a(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(F=f.next();!F.done;F=f.next())RD(D,F.value,function(){}); return D}; zFI=function(f,D){this.N5=f;this.mI=D}; EU=function(f){var D=f.QT,F=f.mI;f=f.Jk;var Z={SHR:new zFI(D.get(),F),mI:F};return{o_:new NB(F,f,D),context:Z}}; JV=function(f,D,F,Z,I){g.J.call(this);this.J=D;this.l3=F;this.QT=Z;this.o$=I;this.listeners=[];var p=new Ug(this);g.N(this,p);p.D(f,"internalAbandon",this.Eno);this.addOnDisposeCallback(function(){g.a8(p)})}; uH=function(f){this.U=f;this.adVideoId=this.Y=this.videoId=this.adCpn=this.contentCpn=null;this.X=!0;this.J=this.B=!1;this.adFormat=null;this.G="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; sbT=function(f){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.G="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.B=!1;f.J=!1}; q1u=function(f,D){f=g.a(D);for(D=f.next();!D.done;D=f.next())if((D=D.value.renderer)&&(D.instreamVideoAdRenderer||D.linearAdSequenceRenderer||D.sandwichedLinearAdRenderer||D.instreamSurveyAdRenderer)){Ul("ad_i");g.vk({isMonetized:!0});break}}; HKI=function(f){var D;(D=f.U.getVideoData(1))!=null&&D.N&&(f.J=!1,D={},f.Y&&f.videoId&&(D.cttAuthInfo={token:f.Y,videoId:f.videoId}),an("video_to_ad",D))}; eq=function(f){f.J=!1;var D={};f.Y&&f.videoId&&(D.cttAuthInfo={token:f.Y,videoId:f.videoId});an("ad_to_video",D);oUX(f)}; oUX=function(f){if(f.B)if(f.G==="AD_PLACEMENT_KIND_START"&&f.actionType==="video_to_ad")t7("video_to_ad");else{var D={adBreakType:vg(f.G),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:f.videoStreamType};f.actionType==="ad_to_video"?(f.contentCpn&&(D.targetCpn=f.contentCpn),f.videoId&&(D.targetVideoId=f.videoId)):(f.adCpn&&(D.targetCpn=f.adCpn),f.adVideoId&&(D.targetVideoId=f.adVideoId));f.adFormat&&(D.adType=f.adFormat);f.contentCpn&& (D.clientPlaybackNonce=f.contentCpn);f.videoId&&(D.videoId=f.videoId);f.adCpn&&(D.adClientPlaybackNonce=f.adCpn);f.adVideoId&&(D.adVideoId=f.adVideoId);g.vk(D,f.actionType);f.U.j().experiments.Hs("html5_ads_csi_qoes")&&(D=f.U.UQ(f.actionType==="ad_to_video"?1:2),D=(0,g.m5)()-1E3*D,wg("qoes",D,f.actionType))}}; Nv=function(f){g.J.call(this);this.U=f;this.Y=new Map;this.J=new Ug(this);g.N(this,this.J);this.J.D(this.U,g.Nh("ad"),this.onCueRangeEnter,this);this.J.D(this.U,g.gA("ad"),this.onCueRangeExit,this)}; KkI=function(f,D,F,Z,I,p,z){g.Jm.call(this,D,F,{id:f,namespace:"ad",priority:I,visible:Z,associatedClipId:p,markerPositionMs:z})}; gO=function(f){this.U=f}; kYX=function(f,D){f.U.cueVideoByPlayerVars(D,2)}; e7=function(f){this.U=f}; xs=function(f){this.U=f}; wA=function(f,D){return f.U.j().Z(D)}; jbc=function(f){return f.U.j().Z("substitute_ad_cpn_macro_in_ssdai")}; qB=function(f){var D,F,Z;return((D=f.U.getVideoData(1).getPlayerResponse())==null?void 0:(F=D.playerConfig)==null?void 0:(Z=F.daiConfig)==null?void 0:Z.enableServerStitchedDai)||!1}; eIf=function(f){return f.U.j().Z("html5_enable_vod_slar_with_notify_pacf")}; iKu=function(f){return f.U.j().Z("html5_recognize_predict_start_cue_point")}; Na=function(f){return f.U.j().experiments.Hs("enable_desktop_player_underlay")}; hFX=function(f){return f.U.j().experiments.Hs("html5_load_empty_player_in_media_break_sub_lra")}; Bg=function(f,D){return f.U.j().Z("html5_cue_video_for_preroll")&&(D==null?void 0:D.kind)==="AD_PLACEMENT_KIND_START"?!1:f.U.j().experiments.Hs("html5_load_ads_instead_of_cue")}; ru=function(f){return f.U.j().experiments.Hs("html5_preload_ads")}; ycc=function(f){return f.U.j().experiments.Hs("should_ignore_cuepoints_during_lifa_preroll")}; r5=function(f){return f.U.j().experiments.Hs("enable_ads_control_flow_deterministic_id_generation")}; AcD=function(f){return f.U.j().experiments.Hs("enable_desktop_discovery_video_abandon_pings")||pD(f.U.j())}; $Gs=function(f){return f.U.j().experiments.Hs("enable_progres_commands_lr_feeds")}; VCc=function(f){return f.U.j().experiments.Hs("enable_progress_commands_lr_shorts")}; Hw=function(f){return f.U.j().experiments.Hs("html5_cuepoint_identifier_logging")}; f2X=function(f){f=f.U.getVideoData(1);return!!f&&f.Z("html5_preload_first_vod_video_ad")&&!f.isDaiEnabled()&&!f.isLivePlayback}; RFD=function(f){return f.U.j().experiments.Hs("html5_ssdai_enable_media_end_cue_range")}; dGf=function(f){switch(f){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}}; QbJ=function(){g.zu.call(this);var f=this;this.Y={};this.addOnDisposeCallback(function(){for(var D=g.a(Object.keys(f.Y)),F=D.next();!F.done;F=D.next())delete f.Y[F.value]})}; XP=function(){if(Cgf===null){Cgf=new QbJ;U5(Pz).J="b";var f=U5(Pz),D=gw(f)=="h"||gw(f)=="b",F=!(hL(),!1);D&&F&&(f.X=!0,f.T=new wuy)}return Cgf}; mGD=function(f,D,F){f.Y[D]=F}; Tvy=function(f){switch(f){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}}; OU=function(f,D,F){this.l3=f;this.U=D;this.mI=F;this.J=new Set;this.Y=new Map;XP().subscribe("adactiveviewmeasurable",this.g9,this);XP().subscribe("adfullyviewableaudiblehalfdurationimpression",this.uW,this);XP().subscribe("adviewableimpression",this.QW,this);XP().subscribe("adaudioaudible",this.N$,this);XP().subscribe("adaudiomeasurable",this.d9,this)}; Ys=function(f,D,F){var Z=F.Ze,I=F.X$,p=F.listener;F=F.Wf;if(f.Y.has(D))Kb("Unexpected registration of layout in LidarApi");else{if(F){if(f.J.has(F))return;f.J.add(F)}f.Y.set(D,p);EQ(hL().zT,"fmd",1);g0u(U5(Pz),Z);mGD(XP(),D,{O_:function(){if(!I)return{};var z=f.U.getPresentingPlayerType(!0),H;return(H=f.U.getVideoData(z))!=null&&H.isAd()?{currentTime:f.l3.get().getCurrentTimeSec(z,!1,void 0),duration:I,isPlaying:nd(f.l3.get(),z).isPlaying(),isVpaid:!1,isYouTube:!0,volume:f.l3.get().isMuted()?0:f.l3.get().getVolume()/ 100}:{}}})}}; PF=function(f,D){f.Y.has(D)?(f.Y.delete(D),delete XP().Y[D]):Kb("Unexpected unregistration of layout in LidarApi")}; bKD=function(f,D){if(f.U.isLifaAdPlaying()){var F=f.U.Zi(!0,!0);f.k9(D,F.width*.5*1.1,F.height*.25*1.1,F.width*.5*.9,F.height*.5*.9)}}; S1D=function(f,D){var F={};MCa(f,F,D);tCu(F);F.LACT=fv(function(){return Ve().toString()}); F.VIS=fv(function(){return f.getVisibilityState().toString()}); F.SDKV="h.3.0";F.VOL=fv(function(){return f.isMuted()?"0":Math.round(f.getVolume()).toString()}); F.VED="";return F}; ccD=function(f,D){var F={};if(D||!f||!f.kind)return F;if(f.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||f.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!f.adTimeOffset||!f.adTimeOffset.offsetStartMilliseconds)return g.SJ(Error("malformed AdPlacementConfig")),F;F.MIDROLL_POS=fv(Ea(Math.round(gl(f.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else F.MIDROLL_POS=fv(Ea("0"));return F}; fv=function(f){return{toString:function(){return f()}}}; UGd=function(f,D,F){function Z(H,K){(K=F[K])&&(p[H]=K)} function I(H,K){(K=F[K])&&(p[H]=z(K))} if(!F||g.tC(F))return f;var p=Object.assign({},f),z=D?encodeURIComponent:function(H){return H}; I("DV_VIEWABILITY","doubleVerifyViewability");I("IAS_VIEWABILITY","integralAdsViewability");I("MOAT_INIT","moatInit");I("MOAT_VIEWABILITY","moatViewability");Z("GOOGLE_VIEWABILITY","googleViewability");Z("VIEWABILITY","viewability");return p}; MCa=function(f,D,F){D.CPN=fv(function(){var Z;(Z=f.getVideoData(1))?Z=Z.clientPlaybackNonce:(g.UT(Error("Video data is null.")),Z=null);return Z}); D.AD_MT=fv(function(){if(F!=null)var Z=F;else if(f.j().Z("enable_h5_shorts_ad_fill_ad_mt_macro")||f.j().Z("enable_desktop_discovery_pings_ad_mt_macro")||pD(f.j())){var I=f.getPresentingPlayerType(!0),p;Z=((p=f.getVideoData(I))==null?0:p.isAd())?f.getCurrentTime(I,!1):0}else Z=f.getCurrentTime(2,!1);return vUs(Z)}); D.MT=fv(function(){return vUs(f.getCurrentTime(1,!1))}); D.P_H=fv(function(){return f.sy().nw().height.toString()}); D.P_W=fv(function(){return f.sy().nw().width.toString()}); D.PV_H=fv(function(){return f.sy().getVideoContentRect().height.toString()}); D.PV_W=fv(function(){return f.sy().getVideoContentRect().width.toString()})}; vUs=function(f){return Math.round(Math.max(0,f*1E3)).toString()}; tCu=function(f){f.CONN=fv(Ea("0"));f.WT=fv(function(){return Date.now().toString()})}; aZy=function(){}; GYs=function(f,D,F,Z,I){var p,z,H,K,k,h,y,A,V,R,m,b,U;g.l(function(S){switch(S.Y){case 1:p=!!D.scrubReferrer;z=g.S$(D.baseUrl,UGd(F,p,Z));H={};if(!D.headers){S.ZE(2);break}K=f.G();if(!K.Y){k=K.getValue();S.ZE(3);break}return g.r(S,K.Y,4);case 4:k=S.J;case 3:h=k;y=g.a(D.headers);for(A=y.next();!A.done;A=y.next())switch(V=A.value,V.headerType){case "VISITOR_ID":g.nc("VISITOR_DATA")&&(H["X-Goog-Visitor-Id"]=g.nc("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.nc("EOM_VISITOR_DATA")&&(H["X-Goog-EOM-Visitor-Id"]= g.nc("EOM_VISITOR_DATA"));break;case "USER_AUTH":h&&(H.Authorization="Bearer "+h);break;case "PLUS_PAGE_ID":(R=f.X())&&(H["X-Goog-PageId"]=R);break;case "AUTH_USER":m=f.Y();!h&&m&&(H["X-Goog-AuthUser"]=m);break;case "DATASYNC_ID":if(b=void 0,(b=f.B())==null?0:b.Hs("enable_datasync_id_header_in_web_vss_pings"))U=f.J(),HR(z)&&g.nc("LOGGED_IN")&&U&&(H["X-YouTube-DataSync-Id"]=U)}"X-Goog-EOM-Visitor-Id"in H&&"X-Goog-Visitor-Id"in H&&delete H["X-Goog-Visitor-Id"];case 2:g.WH(z,void 0,p,Object.keys(H).length!== 0?H:void 0,"",!0,I),g.Zb(S)}})}; w8d=function(f,D,F,Z,I){this.G=f;this.X=D;this.Y=F;this.J=Z;this.B=I}; Wkf=function(f,D){this.Y=f;this.mI=D}; DB=function(f,D,F,Z,I,p){var z=z===void 0?new w8d(function(){var H=f.j(),K=f.getVideoData(1);return g.y4(H,K?g.Pt(K):"")},function(){return f.j().pageId},function(){return f.j().zx},function(){var H; return(H=f.j().datasyncId)!=null?H:""},function(){return f.j().experiments}):z; this.U=f;this.J=D;this.mE=F;this.QT=Z;this.o_=I;this.mI=p;this.G=z;this.m5=null;this.Y=new Map;this.B=new Wkf(z,this.mI)}; rcc=function(f,D,F,Z,I){var p=$R(f.J.get(),F);p?(F=i$(f,Bvf(p),p,void 0,void 0,Z),D.hasOwnProperty("baseUrl")?f.G.send(D,F):f.B.send(D,F,{},I)):Kb("Trying to ping from an unknown layout",void 0,void 0,{layoutId:F})}; RhD=function(f,D,F,Z,I,p){Z=Z===void 0?[]:Z;var z=$R(f.J.get(),D);if(z){var H=f.mE.get().Hl(D,F),K=i$(f,Bvf(z),z,I,p);Z.forEach(function(k,h){k.baseUrl&&(f.B.send(k.baseUrl,K,H,k.attributionSrcMode),k.serializedAdPingMetadata&&f.o_.Y("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,z,new Qnu(k,h),void 0,void 0,z.adLayoutLoggingData))})}else Kb("Trying to track from an unknown layout.",void 0,void 0,{layoutId:D, trackingType:F})}; sL=function(f,D){f.U.sendVideoStatsEngageEvent(D,void 0,2)}; ni=function(f,D){g.ha("adsClientStateChange",D)}; Lkd=function(f,D){f.Y.has(D.uF())?Kb("Trying to register an existing AdErrorInfoSupplier."):f.Y.set(D.uF(),D)}; lZI=function(f,D){f.Y.delete(D.uF())||Kb("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; fj=function(f,D,F){typeof F==="string"?f.U.getVideoData(1).jE(D,F):f.U.getVideoData(1).Gx(D,F)}; Bvf=function(f){var D=gN(f.clientMetadata,"metadata_type_ad_placement_config");f=gN(f.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:D,Nd:f}}; i$=function(f,D,F,Z,I,p){var z=F?EUE(f):{},H=F?Jca(f,F.layoutId):{},K=uoD(f),k,h=I!=null?I:(k=Zp(f.QT.get(),2))==null?void 0:k.clientPlaybackNonce;I={};f=Object.assign({},S1D(f.U,Z),ccD(D.adPlacementConfig,(F==null?void 0:F.renderingContent)!==void 0),H,z,K,(I.FINAL=fv(function(){return"1"}),I.AD_CPN=fv(function(){return h||""}),I)); (F==null?void 0:F.renderingContent)!==void 0||(f.SLOT_POS=fv(function(){return(D.Nd||0).toString()})); F={};p=Object.assign({},f,p);f=g.a(Object.values(Nvs));for(Z=f.next();!Z.done;Z=f.next())Z=Z.value,z=p[Z],z!=null&&z.toString()!=null&&(F[Z]=z.toString());return F}; EUE=function(f){var D={},F,Z=(F=f.m5)==null?void 0:F.rQ/1E3;Z!=null&&(D.SURVEY_ELAPSED_MS=fv(function(){return Math.round(Z*1E3).toString()})); D.SURVEY_LOCAL_TIME_EPOCH_S=fv(function(){return Math.round(Date.now()/1E3).toString()}); return D}; Jca=function(f,D){f=f.Y.get(D);if(!f)return{};f=f.Mr();if(!f)return{};D={};return D.YT_ERROR_CODE=f.tU.toString(),D.ERRORCODE=f.xF.toString(),D.ERROR_MSG=f.errorMessage,D}; uoD=function(f){var D={},F=f.U.getVideoData(1);D.ASR=fv(function(){var Z;return(Z=F==null?void 0:F.fX)!=null?Z:null}); D.EI=fv(function(){var Z;return(Z=F==null?void 0:F.eventId)!=null?Z:null}); return D}; FX=function(f,D,F){g.J.call(this);this.U=f;this.Yu=D;this.mI=F;this.listeners=[];this.kO=null;this.qT=new Map;D=new g.ia(this);g.N(this,D);D.D(f,"videodatachange",this.zwd);D.D(f,"serverstitchedvideochange",this.e_y);this.Dm=Zp(this)}; Zp=function(f,D){var F=f.U.getVideoData(D);return F?f.rC(F,D||f.U.getPresentingPlayerType(!0)):null}; gUT=function(f,D,F){var Z=f.rC(D,F);f.Dm=Z;f.listeners.forEach(function(I){I.QB(Z)})}; ZB=function(f,D){g.J.call(this);this.U=f;this.QT=D;this.listeners=[];this.H8=[];this.Bq=function(){Kb("Called 'doUnlockPreroll' before it's initialized.")}; D=new Ug(this);var F=new g.ia(this);g.N(this,F);g.N(this,D);D.D(f,"progresssync",this.lpo);D.D(f,"presentingplayerstatechange",this.bEE);D.D(f,"fullscreentoggled",this.onFullscreenToggled);D.D(f,"onVolumeChange",this.onVolumeChange);D.D(f,"minimized",this.Te);D.D(f,"overlayvisibilitychange",this.R2);D.D(f,"shortsadswipe",this.Hn);D.D(f,"resize",this.bE);F.D(f,g.Nh("appad"),this.V$)}; eFu=function(f,D){f.H8=f.H8.filter(function(F){return F!==D})}; IF=function(f,D,F){return f.getCurrentTimeSec(D,F)}; pv=function(f,D){var F;D=(F=f.QT.get().qT.get(D))!=null?F:null;if(D===null)return Kb("Expected ad video start time on playback timeline"),0;f=f.U.getCurrentTime(2,!0);return f0){var p=D.end.toString();I.forEach(function(z){(z=z.config&&z.config.adPlacementConfig)&&z.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&z.adTimeOffset&&z.adTimeOffset.offsetEndMilliseconds==="-1"&&z.adTimeOffset.offsetEndMilliseconds!==p&&(z.adTimeOffset.offsetEndMilliseconds=p)}); Z.map(function(z){return g.Q(z,dM)}).forEach(function(z){var H; (z=z==null?void 0:(H=z.slotEntryTrigger)==null?void 0:H.mediaTimeRangeTrigger)&&z.offsetEndMilliseconds==="-1"&&(z.offsetEndMilliseconds=p)})}return{qc:I, adSlots:Z,Ei:!1,ssdaiAdsConfig:f.ssdaiAdsConfig}}; oF=function(f){g.J.call(this);this.U=f;this.listeners=[];this.Y=new Ug(this);g.N(this,this.Y);this.Y.D(this.U,"aduxclicked",this.onAdUxClicked);this.Y.D(this.U,"aduxmouseover",this.Jd);this.Y.D(this.U,"aduxmouseout",this.YJ);this.Y.D(this.U,"muteadaccepted",this.ZFQ)}; Pgy=function(f,D,F){D=g.M2(D,function(Z){return new Q8y(Z,F,Z.id)}); f.U.wY("onAdUxUpdate",D)}; Kv=function(f,D){f=g.a(f.listeners);for(var F=f.next();!F.done;F=f.next())D(F.value)}; kL=function(f,D){this.J=f;this.B=D===void 0?!1:D;this.Y={}}; fXc=function(f,D){var F=f.startSecs+f.I$;F=F<=0?null:F;if(F===null)return null;switch(f.event){case "start":case "continue":case "stop":break;case "predictStart":if(D)break;return null;default:return null}D=Math.max(f.startSecs,0);return{Dw:new dp(D,F),KEF:new of(D,F-D,f.context,f.identifier,f.event,f.Y)}}; DdE=function(){this.Y=[]}; lrc=function(f,D,F){var Z=g.oi(f.Y,D);if(Z>=0)return D;D=-Z-1;return D>=f.Y.length||f.Y[D]>F?null:f.Y[D]}; jL=function(f,D,F){g.J.call(this);this.U=f;this.mI=D;this.DE=F;this.listeners=[];this.G=!1;this.Ui=[];this.Y=null;this.X=new kL(this,iKu(D.get()));this.B=new DdE;this.J=null}; FBu=function(f,D){f.Ui.push(D);for(var F=!1,Z=g.a(f.listeners),I=Z.next();!I.done;I=Z.next())F=I.value.u5(D)||F;f.G=F;Hw(f.mI.get())&&fj(f.DE.get(),"onci","cpi."+D.identifier+";cpe."+D.event+";cps."+D.startSecs+";cbi."+F)}; IXs=function(f,D){ni(f.DE.get(),{cuepointTrigger:{event:ZZT(D.event),cuepointId:D.identifier,totalCueDurationMs:D.I$*1E3,playheadTimeMs:D.Y,cueStartTimeMs:D.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:f.U.getVideoData(1).clientPlaybackNonce}})}; ZZT=function(f){switch(f){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 TJ(f,"Unexpected cuepoint event")}}; i4=function(f){this.U=f}; hw=function(f){this.U=f}; pWD=function(f){switch(f){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:TJ(f,"unknown transitionReason")}}; yB=function(){g.J.apply(this,arguments);this.V$T=new Map}; z9u=function(f){this.U=f}; sOD=function(f,D,F,Z,I){g.J.call(this);var p=this,z=tm(function(){return new Bw(p.mI)}); g.N(this,z);var H=tm(function(){return new LI(z)}); g.N(this,H);var K=tm(function(){return new yh}); g.N(this,K);var k=tm(function(){return new iU(f)}); g.N(this,k);var h=tm(function(){return new lU(z,H,p.mI)}); g.N(this,h);var y=tm(function(){return new g5}); g.N(this,y);this.xG=tm(function(){return new oF(D)}); g.N(this,this.xG);this.Nb=tm(function(){return new cC(I)}); g.N(this,this.Nb);this.jU=tm(function(){return new uH(D)}); g.N(this,this.jU);this.ZK=tm(function(){return new Nv(D)}); g.N(this,this.ZK);this.yj=tm(function(){return new gO(D)}); g.N(this,this.yj);this.bJ=tm(function(){return new e7(D)}); g.N(this,this.bJ);this.mI=tm(function(){return new xs(D)}); g.N(this,this.mI);var A=tm(function(){return new HA(Z)}); g.N(this,A);var V=tm(function(){return new fn(p.mI)}); g.N(this,V);this.P_=tm(function(){return new i4(D)}); g.N(this,this.P_);this.vL=tm(function(){return new aN}); g.N(this,this.vL);this.QT=tm(function(){return new FX(D,y,p.mI)}); g.N(this,this.QT);var R=EU({QT:this.QT,mI:this.mI,Jk:V}),m=R.context;this.o_=R.o_;this.o$=tm(function(){return new jL(D,p.mI,p.DE)}); g.N(this,this.o$);this.HI=tm(function(){return new hw(D)}); g.N(this,this.HI);this.l3=tm(function(){return new ZB(D,p.QT)}); g.N(this,this.l3);this.rS=tm(function(){return new yB}); g.N(this,this.rS);R=tm(function(){return new IT(z,h,H,p.mI,V,"SLOT_TYPE_ABOVE_FEED",p.l3,p.F9,p.Ql)}); g.N(this,R);this.Ow=tm(function(){return new Gq(p.mI)}); this.mE=tm(function(){return new OU(p.l3,D,p.mI)}); g.N(this,this.mE);this.DE=tm(function(){return new DB(D,K,p.mE,p.QT,p.o_,p.mI)}); g.N(this,this.DE);this.vn=new kR(KI,Aw,function(U,S,G,W){return um(H.get(),U,S,G,W)},k,h,H,V,this.mI,this.QT); g.N(this,this.vn);this.mw=new jZ(k,R,F,f,this.QT,this.l3,this.jU);g.N(this,this.mw);var b=new JV(D,this.mw,this.l3,this.QT,this.o$);this.Ne=tm(function(){return b}); this.P0=b;this.F9=new sk(k,h,this.Ne,this.o$,this.l3,this.mI,this.DE,this.HI);g.N(this,this.F9);this.oP=new hS(k,h,this.ZK,this.Ne,m);g.N(this,this.oP);this.Ti=new S3(this.mI,k,h,R,this.QT,this.oP,F,this.yj);g.N(this,this.Ti);this.Cc=tm(function(){return new Y1(A,H,V,p.mI,p.DE,p.l3,p.HI)}); g.N(this,this.Cc);this.mF=tm(function(){return new PC}); g.N(this,this.mF);this.n4=new CI(f,this.xG,this.mI);g.N(this,this.n4);this.Hk=new mq(f);g.N(this,this.Hk);this.Tz=new T4(f);g.N(this,this.Tz);this.kW=new MB(f,this.Ne,m);g.N(this,this.kW);this.Vl=new tS(f,this.ZK,this.l3,this.QT);g.N(this,this.Vl);this.Z8=new SZ(f,this.QT);g.N(this,this.Z8);this.Ql=new vw(f,this.o$,this.l3,this.DE,this.Ne,this.F9);g.N(this,this.Ql);this.U6=new cw(f);g.N(this,this.U6);this.MI=new Ww(f);g.N(this,this.MI);this.A7=new Uk(f);g.N(this,this.A7);this.jO=new w5(f);g.N(this, this.jO);this.MI=new Ww(f);g.N(this,this.MI);this.cw=tm(function(){return new Vh}); g.N(this,this.cw);this.qL=tm(function(){return new RT(p.l3)}); g.N(this,this.qL);this.cj=tm(function(){return new LMJ(p.xG,p.DE,f,K,p.mE)}); g.N(this,this.cj);this.Tt=tm(function(){return new B7(p.Ti,k,z)}); g.N(this,this.Tt);this.rN=tm(function(){return new l$(p.mI,p.DE,p.U6,p.mE)}); g.N(this,this.rN);this.eL=tm(function(){return new sC(f,p.MI,p.U6,p.QT,p.HI,p.l3,p.rS,p.DE,y,p.o$,p.mE,p.Ow,p.yj,p.ZK,p.jU,p.bJ,p.Nb,p.P_,p.mI,K,m)}); g.N(this,this.eL);this.cg=tm(function(){return new DsX(p.l3,p.DE,p.Nb,p.mI,p.mE,p.QT)}); g.N(this,this.cg);this.E4=tm(function(){return new KuX(p.xG,p.l3,p.DE,K,p.mE,p.Tz,p.jO,p.Nb,p.mI,F)}); g.N(this,this.E4);this.Xj=tm(function(){return new l1c(p.xG,p.DE,K)}); g.N(this,this.Xj);this.AL=new qj(f,this.vL,z);g.N(this,this.AL);this.Wl={X4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ti],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.F9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vn],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mw],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),o0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cc],["SLOT_TYPE_ABOVE_FEED",this.mF],["SLOT_TYPE_FORECASTING",this.mF], ["SLOT_TYPE_IN_PLAYER",this.mF],["SLOT_TYPE_PLAYER_BYTES",this.mF],["SLOT_TYPE_PLAYER_UNDERLAY",this.mF],["SLOT_TYPE_PLAYBACK_TRACKING",this.mF],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.mF]]),Rv:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n4],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.n4],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.Hk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hk],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Hk],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Hk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Tz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kW],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Vl],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.Vl],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Vl],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vl],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vl],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Vl],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Vl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Z8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Z8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.U6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.kW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.A7],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.jO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Ql],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Ql],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Ql],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Ql],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Ql]]),h3:new Map([["SLOT_TYPE_ABOVE_FEED",this.cw], ["SLOT_TYPE_AD_BREAK_REQUEST",this.cw],["SLOT_TYPE_FORECASTING",this.cw],["SLOT_TYPE_IN_PLAYER",this.cw],["SLOT_TYPE_PLAYER_BYTES",this.qL],["SLOT_TYPE_PLAYER_UNDERLAY",this.cw],["SLOT_TYPE_PLAYBACK_TRACKING",this.cw],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.cw]]),Io:new Map([["SLOT_TYPE_ABOVE_FEED",this.cj],["SLOT_TYPE_AD_BREAK_REQUEST",this.Tt],["SLOT_TYPE_FORECASTING",this.rN],["SLOT_TYPE_PLAYER_BYTES",this.eL],["SLOT_TYPE_PLAYBACK_TRACKING",this.cg],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.cg],["SLOT_TYPE_IN_PLAYER",this.E4],["SLOT_TYPE_PLAYER_UNDERLAY",this.Xj]])};this.listeners=[K.get()];this.V2={Ti:this.Ti,BV:this.mI.get(),yT:this.Nb.get(),zF:this.l3.get(),mw:this.mw,H2:z.get(),gL:this.vL.get(),tv:this.n4,I6:K.get(),N5:this.QT.get()}}; q3D=function(f,D,F,Z,I){g.J.call(this);var p=this,z=tm(function(){return new Bw(p.mI)}); g.N(this,z);var H=tm(function(){return new LI(z)}); g.N(this,H);var K=tm(function(){return new yh}); g.N(this,K);var k=tm(function(){return new iU(f)}); g.N(this,k);var h=tm(function(){return new lU(z,H,p.mI)}); g.N(this,h);var y=tm(function(){return new g5}); g.N(this,y);this.xG=tm(function(){return new oF(D)}); g.N(this,this.xG);this.Nb=tm(function(){return new cC(I)}); g.N(this,this.Nb);this.jU=tm(function(){return new uH(D)}); g.N(this,this.jU);this.ZK=tm(function(){return new Nv(D)}); g.N(this,this.ZK);this.yj=tm(function(){return new gO(D)}); g.N(this,this.yj);this.bJ=tm(function(){return new e7(D)}); g.N(this,this.bJ);this.mI=tm(function(){return new xs(D)}); g.N(this,this.mI);var A=tm(function(){return new HA(Z)}); g.N(this,A);var V=tm(function(){return new fn(p.mI)}); g.N(this,V);var R=tm(function(){return new IT(z,h,H,p.mI,V,null,null,p.F9,p.Ql)}); g.N(this,R);this.P_=tm(function(){return new i4(D)}); g.N(this,this.P_);this.vL=tm(function(){return new aN}); g.N(this,this.vL);this.QT=tm(function(){return new FX(D,y,p.mI)}); g.N(this,this.QT);var m=EU({QT:this.QT,mI:this.mI,Jk:V}),b=m.context;this.o_=m.o_;this.o$=tm(function(){return new jL(D,p.mI,p.DE)}); this.l3=tm(function(){return new ZB(D,p.QT)}); g.N(this,this.l3);this.rS=tm(function(){return new yB}); g.N(this,this.rS);this.mE=tm(function(){return new OU(p.l3,D,p.mI)}); g.N(this,this.mE);this.DE=tm(function(){return new DB(D,K,p.mE,p.QT,p.o_,p.mI)}); g.N(this,this.DE);this.Ow=tm(function(){return new Gq(p.mI)}); g.N(this,this.Ow);this.vn=new kR(KI,Aw,function(S,G,W,u){return um(H.get(),S,G,W,u)},k,h,H,V,this.mI,this.QT); g.N(this,this.vn);this.mw=new jZ(k,R,F,f,this.QT,this.l3,this.jU);g.N(this,this.mw);var U=new JV(D,this.mw,this.l3,this.QT,this.o$);this.Ne=tm(function(){return U}); this.P0=U;this.F9=new sk(k,h,this.Ne,this.o$,this.l3,this.mI,this.DE);g.N(this,this.F9);this.oP=new hS(k,h,this.ZK,this.Ne,b);g.N(this,this.oP);this.Ti=new S3(this.mI,k,h,R,this.QT,this.oP,F,this.yj);g.N(this,this.Ti);this.Cc=tm(function(){return new Y1(A,H,V,p.mI,p.DE,p.l3)}); g.N(this,this.Cc);this.mF=tm(function(){return new PC}); g.N(this,this.mF);this.n4=new CI(f,this.xG,this.mI);g.N(this,this.n4);this.Hk=new mq(f);g.N(this,this.Hk);this.Tz=new T4(f);g.N(this,this.Tz);this.kW=new MB(f,this.Ne,b);g.N(this,this.kW);this.Vl=new tS(f,this.ZK,this.l3,this.QT);g.N(this,this.Vl);this.U6=new cw(f);g.N(this,this.U6);this.A7=new Uk(f);g.N(this,this.A7);this.jO=new w5(f);g.N(this,this.jO);this.HI=tm(function(){return new hw(D)}); g.N(this,this.HI);this.MI=new Ww(f);g.N(this,this.MI);this.Ql=new vw(f,this.o$,this.l3,this.DE,this.Ne,this.F9);g.N(this,this.Ql);this.cw=tm(function(){return new Vh}); g.N(this,this.cw);this.qL=tm(function(){return new RT(p.l3)}); g.N(this,this.qL);this.Tt=tm(function(){return new B7(p.Ti,k,z)}); g.N(this,this.Tt);this.rN=tm(function(){return new l$(p.mI,p.DE,p.U6,p.mE)}); g.N(this,this.rN);this.E4=tm(function(){return new ktu(p.xG,p.l3,p.DE,K,p.mE,p.Tz,p.jO,p.Nb,p.mI,F)}); g.N(this,this.E4);this.eL=tm(function(){return new qM(f,p.MI,p.U6,p.DE,p.mE,p.Ow,p.yj,p.QT,p.l3,p.rS,p.ZK,p.jU,p.bJ,p.Nb,p.P_,p.mI,p.HI,b)}); g.N(this,this.eL);this.AL=new qj(f,this.vL,z);g.N(this,this.AL);this.Wl={X4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ti],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.F9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vn],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mw],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),o0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cc],["SLOT_TYPE_FORECASTING",this.mF],["SLOT_TYPE_IN_PLAYER",this.mF], ["SLOT_TYPE_PLAYER_BYTES",this.mF]]),Rv:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n4],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hk], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Hk],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Tz],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vl],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vl],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Vl],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.U6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.A7],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.jO],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Ql],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Ql],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Ql],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Ql],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Ql]]),h3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cw],["SLOT_TYPE_FORECASTING",this.cw],["SLOT_TYPE_IN_PLAYER",this.cw],["SLOT_TYPE_PLAYER_BYTES",this.qL]]), Io:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tt],["SLOT_TYPE_FORECASTING",this.rN],["SLOT_TYPE_IN_PLAYER",this.E4],["SLOT_TYPE_PLAYER_BYTES",this.eL]])};this.listeners=[K.get()];this.V2={Ti:this.Ti,BV:this.mI.get(),yT:this.Nb.get(),zF:this.l3.get(),mw:this.mw,H2:z.get(),gL:this.vL.get(),tv:this.n4,I6:K.get(),N5:this.QT.get()}}; HZu=function(f,D,F,Z,I){g.J.call(this);var p=this,z=tm(function(){return new Bw(p.mI)}); g.N(this,z);var H=tm(function(){return new LI(z)}); g.N(this,H);var K=tm(function(){return new yh}); g.N(this,K);var k=tm(function(){return new iU(f)}); g.N(this,k);var h=tm(function(){return new lU(z,H,p.mI)}); g.N(this,h);var y=tm(function(){return new g5}); g.N(this,y);this.xG=tm(function(){return new oF(D)}); g.N(this,this.xG);this.Nb=tm(function(){return new cC(I)}); g.N(this,this.Nb);this.jU=tm(function(){return new uH(D)}); g.N(this,this.jU);this.ZK=tm(function(){return new Nv(D)}); g.N(this,this.ZK);this.yj=tm(function(){return new gO(D)}); g.N(this,this.yj);this.bJ=tm(function(){return new e7(D)}); g.N(this,this.bJ);this.mI=tm(function(){return new xs(D)}); g.N(this,this.mI);var A=tm(function(){return new HA(Z)}); g.N(this,A);var V=tm(function(){return new fn(p.mI)}); g.N(this,V);var R=tm(function(){return new IT(z,h,H,p.mI,V,null,null,null,null)}); g.N(this,R);this.P_=tm(function(){return new i4(D)}); g.N(this,this.P_);this.QT=tm(function(){return new FX(D,y,p.mI)}); g.N(this,this.QT);var m=EU({QT:this.QT,mI:this.mI,Jk:V}),b=m.context;this.o_=m.o_;this.l3=tm(function(){return new ZB(D,p.QT)}); g.N(this,this.l3);this.rS=tm(function(){return new yB}); g.N(this,this.rS);this.mE=tm(function(){return new OU(p.l3,D,p.mI)}); g.N(this,this.mE);this.DE=tm(function(){return new DB(D,K,p.mE,p.QT,p.o_,p.mI)}); g.N(this,this.DE);this.Ow=tm(function(){return new Gq(p.mI)}); g.N(this,this.Ow);this.vn=new kR(KI,Aw,function(S,G,W,u){return um(H.get(),S,G,W,u)},k,h,H,V,this.mI,this.QT); g.N(this,this.vn);this.mw=new jZ(k,R,F,f,this.QT,this.l3,this.jU);g.N(this,this.mw);var U=new JV(D,this.mw,this.l3,this.QT);this.Ne=tm(function(){return U}); this.P0=U;this.oP=new hS(k,h,this.ZK,this.Ne,b);g.N(this,this.oP);this.Ti=new S3(this.mI,k,h,R,this.QT,this.oP,F,this.yj);g.N(this,this.Ti);this.Cc=tm(function(){return new Y1(A,H,V,p.mI,p.DE,p.l3)}); g.N(this,this.Cc);this.mF=tm(function(){return new PC}); g.N(this,this.mF);this.n4=new CI(f,this.xG,this.mI);g.N(this,this.n4);this.Hk=new mq(f);g.N(this,this.Hk);this.kW=new MB(f,this.Ne,b);g.N(this,this.kW);this.Vl=new tS(f,this.ZK,this.l3,this.QT);g.N(this,this.Vl);this.U6=new cw(f);g.N(this,this.U6);this.A7=new Uk(f);g.N(this,this.A7);this.HI=tm(function(){return new hw(D)}); g.N(this,this.HI);this.MI=new Ww(f);g.N(this,this.MI);this.cw=tm(function(){return new Vh}); g.N(this,this.cw);this.qL=tm(function(){return new RT(p.l3)}); g.N(this,this.qL);this.Tt=tm(function(){return new B7(p.Ti,k,z)}); g.N(this,this.Tt);this.rN=tm(function(){return new l$(p.mI,p.DE,p.U6,p.mE)}); g.N(this,this.rN);this.wA=tm(function(){return new PNu(p.xG,p.l3,p.DE,K,F,p.mI)}); g.N(this,this.wA);this.eL=tm(function(){return new qM(f,p.MI,p.U6,p.DE,p.mE,p.Ow,p.yj,p.QT,p.l3,p.rS,p.ZK,p.jU,p.bJ,p.Nb,p.P_,p.mI,p.HI,b)}); g.N(this,this.eL);this.Wl={X4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ti],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vn],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mw],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),o0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cc],["SLOT_TYPE_FORECASTING",this.mF],["SLOT_TYPE_IN_PLAYER",this.mF],["SLOT_TYPE_PLAYER_BYTES",this.mF]]),Rv:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n4],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Hk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vl],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Vl],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.U6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.A7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MI]]),h3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cw],["SLOT_TYPE_ABOVE_FEED",this.cw],["SLOT_TYPE_FORECASTING",this.cw],["SLOT_TYPE_IN_PLAYER",this.cw],["SLOT_TYPE_PLAYER_BYTES",this.qL]]),Io:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tt],["SLOT_TYPE_FORECASTING",this.rN],["SLOT_TYPE_IN_PLAYER", this.wA],["SLOT_TYPE_PLAYER_BYTES",this.eL]])};this.listeners=[K.get()];this.V2={Ti:this.Ti,BV:this.mI.get(),yT:this.Nb.get(),zF:this.l3.get(),mw:this.mw,H2:z.get(),gL:null,tv:this.n4,I6:K.get(),N5:this.QT.get()}}; o8y=function(f,D,F,Z,I){g.J.call(this);var p=this,z=tm(function(){return new Bw(p.mI)}); g.N(this,z);var H=tm(function(){return new LI(z)}); g.N(this,H);var K=tm(function(){return new yh}); g.N(this,K);var k=tm(function(){return new iU(f)}); g.N(this,k);var h=tm(function(){return new lU(z,H,p.mI)}); g.N(this,h);var y=tm(function(){return new g5}); g.N(this,y);this.Xc=tm(function(){return new z9u(D)}); g.N(this,this.Xc);this.xG=tm(function(){return new oF(D)}); g.N(this,this.xG);this.Nb=tm(function(){return new cC(I)}); g.N(this,this.Nb);this.jU=tm(function(){return new uH(D)}); g.N(this,this.jU);this.ZK=tm(function(){return new Nv(D)}); g.N(this,this.ZK);this.yj=tm(function(){return new gO(D)}); g.N(this,this.yj);this.bJ=tm(function(){return new e7(D)}); g.N(this,this.bJ);this.mI=tm(function(){return new xs(D)}); g.N(this,this.mI);var A=tm(function(){return new HA(Z)}); g.N(this,A);var V=tm(function(){return new fn(p.mI)}); g.N(this,V);var R=tm(function(){return new IT(z,h,H,p.mI,V,null,null,null,null)}); g.N(this,R);this.P_=tm(function(){return new i4(D)}); g.N(this,this.P_);this.QT=tm(function(){return new FX(D,y,p.mI)}); g.N(this,this.QT);var m=EU({QT:this.QT,mI:this.mI,Jk:V}),b=m.context;this.o_=m.o_;this.l3=tm(function(){return new ZB(D,p.QT)}); g.N(this,this.l3);this.rS=tm(function(){return new yB}); g.N(this,this.rS);this.mE=tm(function(){return new OU(p.l3,D,p.mI)}); g.N(this,this.mE);this.DE=tm(function(){return new DB(D,K,p.mE,p.QT,p.o_,p.mI)}); g.N(this,this.DE);this.Ow=tm(function(){return new Gq(p.mI)}); g.N(this,this.Ow);this.vn=new kR(nkT,Aw,function(S,G,W,u){return VUE(H.get(),S,G,W,u)},k,h,H,V,this.mI,this.QT); g.N(this,this.vn);this.mw=new jZ(k,R,F,f,this.QT,this.l3,this.jU);g.N(this,this.mw);var U=new JV(D,this.mw,this.l3,this.QT);this.Ne=tm(function(){return U}); this.P0=U;this.oP=new hS(k,h,this.ZK,this.Ne,b);g.N(this,this.oP);this.Ti=new S3(this.mI,k,h,R,this.QT,this.oP,F,this.yj);g.N(this,this.Ti);this.Cc=tm(function(){return new Y1(A,H,V,p.mI,p.DE,p.l3)}); g.N(this,this.Cc);this.mF=tm(function(){return new PC}); g.N(this,this.mF);this.n4=new CI(f,this.xG,this.mI);g.N(this,this.n4);this.Hk=new mq(f);g.N(this,this.Hk);this.kW=new MB(f,this.Ne,b);g.N(this,this.kW);this.Vl=new tS(f,this.ZK,this.l3,this.QT);g.N(this,this.Vl);this.U6=new cw(f);g.N(this,this.U6);this.A7=new Uk(f);g.N(this,this.A7);this.HI=tm(function(){return new hw(D)}); g.N(this,this.HI);this.MI=new Ww(f);g.N(this,this.MI);this.cw=tm(function(){return new Vh}); g.N(this,this.cw);this.qL=tm(function(){return new RT(p.l3)}); g.N(this,this.qL);this.Tt=tm(function(){return new B7(p.Ti,k,z)}); g.N(this,this.Tt);this.rN=tm(function(){return new l$(p.mI,p.DE,p.U6,p.mE)}); g.N(this,this.rN);this.eL=tm(function(){return new qM(f,p.MI,p.U6,p.DE,p.mE,p.Ow,p.yj,p.QT,p.l3,p.rS,p.ZK,p.jU,p.bJ,p.Nb,p.P_,p.mI,p.HI,b)}); g.N(this,this.eL);this.o4=tm(function(){return new iPE(p.xG,p.l3,p.DE,K,p.Xc,F,p.QT)}); g.N(this,this.o4);this.Wl={X4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ti],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vn],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mw],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),o0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cc],["SLOT_TYPE_FORECASTING",this.mF],["SLOT_TYPE_IN_PLAYER",this.mF],["SLOT_TYPE_PLAYER_BYTES",this.mF]]),Rv:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.n4],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.Hk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Vl],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.Vl],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.U6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.A7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MI]]),h3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cw],["SLOT_TYPE_FORECASTING",this.cw],["SLOT_TYPE_IN_PLAYER",this.cw],["SLOT_TYPE_PLAYER_BYTES",this.qL]]),Io:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tt],["SLOT_TYPE_FORECASTING",this.rN],["SLOT_TYPE_IN_PLAYER",this.o4],["SLOT_TYPE_PLAYER_BYTES", this.eL]])};this.listeners=[K.get()];this.V2={Ti:this.Ti,BV:this.mI.get(),yT:this.Nb.get(),zF:this.l3.get(),mw:this.mw,H2:z.get(),gL:null,tv:this.n4,I6:K.get(),N5:this.QT.get()}}; KBD=function(f,D,F,Z,I){g.J.call(this);var p=this,z=tm(function(){return new Bw(p.mI)}); g.N(this,z);var H=tm(function(){return new LI(z)}); g.N(this,H);var K=tm(function(){return new yh}); g.N(this,K);var k=tm(function(){return new iU(f)}); g.N(this,k);var h=tm(function(){return new lU(z,H,p.mI)}); g.N(this,h);var y=tm(function(){return new g5}); g.N(this,y);this.Xc=tm(function(){return new z9u(D)}); g.N(this,this.Xc);this.xG=tm(function(){return new oF(D)}); g.N(this,this.xG);this.Nb=tm(function(){return new cC(I)}); g.N(this,this.Nb);this.jU=tm(function(){return new uH(D)}); g.N(this,this.jU);this.ZK=tm(function(){return new Nv(D)}); g.N(this,this.ZK);this.yj=tm(function(){return new gO(D)}); g.N(this,this.yj);this.bJ=tm(function(){return new e7(D)}); g.N(this,this.bJ);this.mI=tm(function(){return new xs(D)}); g.N(this,this.mI);var A=tm(function(){return new HA(Z)}); g.N(this,A);var V=tm(function(){return new fn(p.mI)}); g.N(this,V);this.P_=tm(function(){return new i4(D)}); g.N(this,this.P_);this.QT=tm(function(){return new FX(D,y,p.mI)}); g.N(this,this.QT);var R=EU({QT:this.QT,mI:this.mI,Jk:V}),m=R.context;this.o_=R.o_;this.o$=tm(function(){return new jL(D,p.mI,p.DE)}); g.N(this,this.o$);this.HI=tm(function(){return new hw(D)}); g.N(this,this.HI);this.l3=tm(function(){return new ZB(D,p.QT)}); g.N(this,this.l3);this.rS=tm(function(){return new yB}); g.N(this,this.rS);R=tm(function(){return new IT(z,h,H,p.mI,V,null,p.l3,p.F9,p.Ql,3)}); g.N(this,R);this.Ow=tm(function(){return new Gq(p.mI)}); this.mE=tm(function(){return new OU(p.l3,D,p.mI)}); g.N(this,this.mE);this.DE=tm(function(){return new DB(D,K,p.mE,p.QT,p.o_,p.mI)}); g.N(this,this.DE);this.mw=new jZ(k,R,F,f,this.QT,this.l3,this.jU);g.N(this,this.mw);var b=new JV(D,this.mw,this.l3,this.QT,this.o$);this.Ne=tm(function(){return b}); this.P0=b;this.vn=new kR(YPD,Aw,function(U,S,G,W){return VUE(H.get(),U,S,G,W)},k,h,H,V,this.mI,this.QT); g.N(this,this.vn);this.F9=new sk(k,h,this.Ne,this.o$,this.l3,this.mI,this.DE,this.HI);g.N(this,this.F9);this.oP=new hS(k,h,this.ZK,this.Ne,m);g.N(this,this.oP);this.Ti=new S3(this.mI,k,h,R,this.QT,this.oP,F,this.yj);g.N(this,this.Ti);this.Cc=tm(function(){return new Y1(A,H,V,p.mI,p.DE,p.l3,p.HI)}); g.N(this,this.Cc);this.mF=tm(function(){return new PC}); g.N(this,this.mF);this.n4=new CI(f,this.xG,this.mI);g.N(this,this.n4);this.Hk=new mq(f);g.N(this,this.Hk);this.kW=new MB(f,this.Ne,m);g.N(this,this.kW);this.Vl=new tS(f,this.ZK,this.l3,this.QT);g.N(this,this.Vl);this.Z8=new SZ(f,this.QT);g.N(this,this.Z8);this.Ql=new vw(f,this.o$,this.l3,this.DE,this.Ne,this.F9);g.N(this,this.Ql);this.U6=new cw(f);g.N(this,this.U6);this.A7=new Uk(f);g.N(this,this.A7);this.MI=new Ww(f);g.N(this,this.MI);this.cw=tm(function(){return new Vh}); g.N(this,this.cw);this.qL=tm(function(){return new RT(p.l3)}); g.N(this,this.qL);this.Tt=tm(function(){return new B7(p.Ti,k,z)}); g.N(this,this.Tt);this.rN=tm(function(){return new l$(p.mI,p.DE,p.U6,p.mE)}); g.N(this,this.rN);this.eL=tm(function(){return new sC(f,p.MI,p.U6,p.QT,p.HI,p.l3,p.rS,p.DE,y,p.o$,p.mE,p.Ow,p.yj,p.ZK,p.jU,p.bJ,p.Nb,p.P_,p.mI,K,m)}); g.N(this,this.eL);this.E4=tm(function(){return new htI(p.xG,p.l3,p.DE,K,p.Xc,F,p.mI,p.QT)}); g.N(this,this.E4);this.Wl={X4:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Ti],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.F9],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.vn],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.mw],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),o0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Cc],["SLOT_TYPE_FORECASTING",this.mF],["SLOT_TYPE_IN_PLAYER",this.mF],["SLOT_TYPE_PLAYER_BYTES",this.mF]]),Rv:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.n4],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Hk],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Hk],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Hk],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Hk],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Hk],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.kW],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.Vl],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Vl],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Z8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Z8],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.U6],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.kW],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.A7],["TRIGGER_TYPE_AD_BREAK_STARTED",this.MI],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Ql],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Ql],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Ql],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Ql],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Ql]]),h3:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.cw],["SLOT_TYPE_FORECASTING",this.cw],["SLOT_TYPE_IN_PLAYER",this.cw],["SLOT_TYPE_PLAYER_BYTES",this.qL]]),Io:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Tt],["SLOT_TYPE_FORECASTING",this.rN],["SLOT_TYPE_PLAYER_BYTES",this.eL],["SLOT_TYPE_IN_PLAYER",this.E4]])};this.listeners=[K.get()]; this.V2={Ti:this.Ti,BV:this.mI.get(),yT:this.Nb.get(),zF:this.l3.get(),mw:this.mw,H2:z.get(),gL:null,tv:this.n4,I6:K.get(),N5:this.QT.get()}}; jOI=function(f,D,F,Z){function I(){return p.J} g.J.call(this);var p=this;f.j().experiments.Hs("html5_dispose_of_manager_before_dependency")?(this.Y=k_I(I,f,D,F,Z),this.J=(new So(this.Y)).B(),g.N(this,this.J),g.N(this,this.Y)):(this.Y=k_I(I,f,D,F,Z),g.N(this,this.Y),this.J=(new So(this.Y)).B(),g.N(this,this.J))}; $L=function(f){return f.Y.V2}; k_I=function(f,D,F,Z,I){try{var p=D.j();if(g.sn(p))var z=new sOD(f,D,F,Z,I);else if(g.oe(p))z=new q3D(f,D,F,Z,I);else if(PL(p))z=new HZu(f,D,F,Z,I);else if(g.rQ(p))z=new o8y(f,D,F,Z,I);else if(g.ei(p))z=new KBD(f,D,F,Z,I);else throw new TypeError("Unknown web interface");return z}catch(H){return z=D.j(),Kb("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:z.Y.cplatform,interface:z.Y.c,WNT:z.Y.cver,rXr:z.Y.ctheme,Dyb:z.Y.cplayer,f6F:z.playerStyle}),new nUJ(f,D,F,Z,I)}}; iZy=function(f){gF.call(this,f)}; h9c=function(f,D,F,Z,I){fb.call(this,f,{K:"div",C:"ytp-ad-timed-pie-countdown-container",L:[{K:"svg",C:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},L:[{K:"circle",C:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{K:"circle",C:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{K:"circle",C:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",D,F,Z,I);this.G=this.fQ("ytp-ad-timed-pie-countdown-container");this.B=this.fQ("ytp-ad-timed-pie-countdown-inner"); this.X=this.fQ("ytp-ad-timed-pie-countdown-outer");this.J=Math.ceil(2*Math.PI*5);this.hide()}; yeI=function(f,D,F,Z,I,p){kg.call(this,f,{K:"div",C:"ytp-ad-action-interstitial",W:{tabindex:"0"},L:[{K:"div",C:"ytp-ad-action-interstitial-background-container"},{K:"div",C:"ytp-ad-action-interstitial-slot",L:[{K:"div",C:"ytp-ad-action-interstitial-instream-info"},{K:"div",C:"ytp-ad-action-interstitial-card",L:[{K:"div",C:"ytp-ad-action-interstitial-image-container"},{K:"div",C:"ytp-ad-action-interstitial-headline-container"},{K:"div",C:"ytp-ad-action-interstitial-description-container"},{K:"div", C:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",D,F,Z);this.jG=I;this.KO=p;this.navigationEndpoint=this.Y=this.skipButton=this.J=this.actionButton=null;this.jT=this.fQ("ytp-ad-action-interstitial-instream-info");this.Ir=this.fQ("ytp-ad-action-interstitial-image-container");this.N=new Eq(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,"ytp-ad-action-interstitial-image");g.N(this,this.N);this.N.CQ(this.Ir);this.Tx=this.fQ("ytp-ad-action-interstitial-headline-container"); this.X=new Yg(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,"ytp-ad-action-interstitial-headline");g.N(this,this.X);this.X.CQ(this.Tx);this.KQ=this.fQ("ytp-ad-action-interstitial-description-container");this.B=new Yg(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,"ytp-ad-action-interstitial-description");g.N(this,this.B);this.B.CQ(this.KQ);this.eT=this.fQ("ytp-ad-action-interstitial-background-container");this.dY=new Eq(this.api,this.layoutId,this.interactionLoggingClientData, this.yT,"ytp-ad-action-interstitial-background",!0);g.N(this,this.dY);this.dY.CQ(this.eT);this.LQ=this.fQ("ytp-ad-action-interstitial-action-button-container");this.slot=this.fQ("ytp-ad-action-interstitial-slot");this.Fr=this.fQ("ytp-ad-action-interstitial-card");this.G=new Ug;g.N(this,this.G);this.hide()}; Aef=function(f){var D=g.$d("html5-video-player");D&&g.qI(D,"ytp-ad-display-override",f)}; ddE=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-overlay-slot",L:[{K:"div",C:"ytp-ad-overlay-container"}]},"invideo-overlay",D,F,Z);this.N=[];this.eT=this.Tx=this.G=this.LQ=this.jT=null;this.dY=!1;this.X=null;this.KQ=0;f=this.fQ("ytp-ad-overlay-container");this.Ir=new qi(f,45E3,6E3,.3,.4);g.N(this,this.Ir);this.B=$dc(this);g.N(this,this.B);this.B.CQ(f);this.J=V8E(this);g.N(this,this.J);this.J.CQ(f);this.Y=R9f(this);g.N(this,this.Y);this.Y.CQ(f);this.hide()}; $dc=function(f){var D=new g.Km({K:"div",C:"ytp-ad-text-overlay",L:[{K:"div",C:"ytp-ad-overlay-ad-info-button-container"},{K:"div",C:"ytp-ad-overlay-close-container",L:[{K:"button",C:"ytp-ad-overlay-close-button",L:[aV(QOy)]}]},{K:"div",C:"ytp-ad-overlay-title",nQ:"{{title}}"},{K:"div",C:"ytp-ad-overlay-desc",nQ:"{{description}}"},{K:"div",ST:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],nQ:"{{displayUrl}}"}]});f.D(D.fQ("ytp-ad-overlay-title"),"click",function(F){VB(f,D.element,F)}); f.D(D.fQ("ytp-ad-overlay-link"),"click",function(F){VB(f,D.element,F)}); f.D(D.fQ("ytp-ad-overlay-close-container"),"click",f.cA);D.hide();return D}; V8E=function(f){var D=new g.Km({K:"div",ST:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],L:[{K:"div",C:"ytp-ad-overlay-ad-info-button-container"},{K:"div",C:"ytp-ad-overlay-close-container",L:[{K:"button",C:"ytp-ad-overlay-close-button",L:[aV(QOy)]}]},{K:"div",C:"ytp-ad-overlay-text-image",L:[{K:"img",W:{src:"{{imageUrl}}"}}]},{K:"div",C:"ytp-ad-overlay-title",nQ:"{{title}}"},{K:"div",C:"ytp-ad-overlay-desc",nQ:"{{description}}"},{K:"div",ST:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], nQ:"{{displayUrl}}"}]});f.D(D.fQ("ytp-ad-overlay-title"),"click",function(F){VB(f,D.element,F)}); f.D(D.fQ("ytp-ad-overlay-link"),"click",function(F){VB(f,D.element,F)}); f.D(D.fQ("ytp-ad-overlay-close-container"),"click",f.cA);f.D(D.fQ("ytp-ad-overlay-text-image"),"click",f.xeY);D.hide();return D}; R9f=function(f){var D=new g.Km({K:"div",C:"ytp-ad-image-overlay",L:[{K:"div",C:"ytp-ad-overlay-ad-info-button-container"},{K:"div",C:"ytp-ad-overlay-close-container",L:[{K:"button",C:"ytp-ad-overlay-close-button",L:[aV(QOy)]}]},{K:"div",C:"ytp-ad-overlay-image",L:[{K:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});f.D(D.fQ("ytp-ad-overlay-image"),"click",function(F){VB(f,D.element,F)}); f.D(D.fQ("ytp-ad-overlay-close-container"),"click",f.cA);D.hide();return D}; CVD=function(f,D){if(D){var F=g.Q(D,Tj)||null;F==null?g.SJ(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(D=g.$d("video-ads ytp-ad-module")||null,D==null?g.SJ(Error("Could not locate the root ads container element to attach the ad info dialog.")):(f.Tx=new g.Km({K:"div",C:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(f,f.Tx),f.Tx.CQ(D),D=new nm(f.api,f.layoutId,f.interactionLoggingClientData,f.yT,f.Tx.element,!1),g.N(f,D),D.init(IV("ad-info-hover-text-button"),F,f.macros), f.X?(D.CQ(f.X,0),D.subscribe("f",f.hay,f),D.subscribe("e",f.Fz,f),f.D(f.X,"click",f.mmT),f.D(g.$d("ytp-ad-button",D.element),"click",function(){var Z;if(g.Q((Z=g.Q(F.button,g.Ma))==null?void 0:Z.serviceEndpoint,vjJ))f.dY=f.api.getPlayerState(1)===2,f.api.pauseVideo();else f.api.onAdUxClicked("ad-info-hover-text-button",f.layoutId)}),f.eT=D):g.SJ(Error("Ad info button container within overlay ad was not present."))))}else g.UT(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; T6s=function(f,D){if(mdJ(f,RF)||f.api.isMinimized())return!1;var F=jA(D.title),Z=jA(D.description);if(g.XI(F)||g.XI(Z))return!1;f.createServerVe(f.B.element,D.trackingParams||null);f.B.updateValue("title",jA(D.title));f.B.updateValue("description",jA(D.description));f.B.updateValue("displayUrl",jA(D.displayUrl));D.navigationEndpoint&&g.Z0(f.N,D.navigationEndpoint);f.B.show();f.Ir.start();f.logVisibility(f.B.element,!0);f.D(f.B.element,"mouseover",function(){f.KQ++}); return!0}; bZJ=function(f,D){if(mdJ(f,RF)||f.api.isMinimized())return!1;var F=jA(D.title),Z=jA(D.description);if(g.XI(F)||g.XI(Z))return!1;f.createServerVe(f.J.element,D.trackingParams||null);f.J.updateValue("title",jA(D.title));f.J.updateValue("description",jA(D.description));f.J.updateValue("displayUrl",jA(D.displayUrl));f.J.updateValue("imageUrl",JWw(D.image));D.navigationEndpoint&&g.Z0(f.N,D.navigationEndpoint);f.LQ=D.imageNavigationEndpoint||null;f.J.show();f.Ir.start();f.logVisibility(f.J.element,!0); f.D(f.J.element,"mouseover",function(){f.KQ++}); return!0}; M8J=function(f,D){if(f.api.isMinimized())return!1;var F=umf(D.image),Z=F;F.width0?(D=new WK(f.api,f.Y), D.CQ(f.playerOverlay),g.N(f,D)):(f=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(D)),g.SJ(f))}}else g.SJ(Error("addCommonComponents() needs to be called before starting countdown."))}; reE=function(f){function D(F){return{toString:function(){return F()}}} f.macros.SURVEY_LOCAL_TIME_EPOCH_S=D(function(){var F=new Date;return(Math.round(F.valueOf()/1E3)+-1*F.getTimezoneOffset()*60).toString()}); f.macros.SURVEY_ELAPSED_MS=D(function(){return(Date.now()-f.B).toString()})}; LBu=function(f,D,F,Z,I){m2.call(this,f,D,F,Z,"survey-question-multi-select");this.KQ=I;this.noneOfTheAbove=null;this.submitEndpoints=[];this.X=null;this.hide()}; lXT=function(f,D,F){f.noneOfTheAbove=new aXd(f.api,f.layoutId,f.interactionLoggingClientData,f.yT);f.noneOfTheAbove.CQ(f.answers);f.noneOfTheAbove.init(IV("survey-none-of-the-above"),D,F)}; Jes=function(f){f.J.forEach(function(D){D.Y.toggleButton(!1)}); E8a(f,!0)}; E8a=function(f,D){var F=f.G;f=uGa(f);D=D===void 0?!1:D;F.Y&&(f?F.Y.hide():F.Y.show(),D&&F.Y instanceof $4&&!F.Y.G&&EjD(F.Y,!1));F.J&&(f?F.J.show():F.J.hide())}; uGa=function(f){return f.J.some(function(D){return D.Y.isToggled()})||f.noneOfTheAbove.button.isToggled()}; Tg=function(f,D,F,Z,I){m2.call(this,f,D,F,Z,"survey-question-single-select",function(z){p.api.j().Z("supports_multi_step_on_desktop")&&I([z])}); var p=this;this.hide()}; b4=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-survey",L:[{K:"div",C:"ytp-ad-survey-questions"}]},"survey",D,F,Z);this.questions=[];this.J=[];this.conditioningRules=[];this.Y=0;this.X=this.fQ("ytp-ad-survey-questions");this.api.j().Z("fix_survey_color_contrast_on_destop")&&this.fQ("ytp-ad-survey").classList.add("color-contrast-fix");this.api.j().Z("web_enable_speedmaster")&&this.fQ("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; e9f=function(f,D){var F=f.J[D],Z;(Z=f.B)==null||Z.dispose();g.Q(F,Ce)?N6J(f,g.Q(F,Ce),f.macros):g.Q(F,Qv)&&g8u(f,g.Q(F,Qv),f.macros);f.Y=D}; N6J=function(f,D,F){var Z=new Tg(f.api,f.layoutId,f.interactionLoggingClientData,f.yT,f.G.bind(f));Z.CQ(f.X);Z.init(IV("survey-question-single-select"),D,F);f.api.j().Z("supports_multi_step_on_desktop")?f.B=Z:f.questions.push(Z);g.N(f,Z)}; g8u=function(f,D,F){var Z=new LBu(f.api,f.layoutId,f.interactionLoggingClientData,f.yT,f.G.bind(f));Z.CQ(f.X);Z.init(IV("survey-question-multi-select"),D,F);f.api.j().Z("supports_multi_step_on_desktop")?f.B=Z:f.questions.push(Z);g.N(f,Z)}; Mj=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-survey-interstitial",L:[{K:"div",C:"ytp-ad-survey-interstitial-contents",L:[{K:"div",C:"ytp-ad-survey-interstitial-logo",L:[{K:"div",C:"ytp-ad-survey-interstitial-logo-image"}]},{K:"div",C:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",D,F,Z);this.Y=this.actionButton=null;this.interstitial=this.fQ("ytp-ad-survey-interstitial");this.J=this.fQ("ytp-ad-survey-interstitial-contents");this.text=this.fQ("ytp-ad-survey-interstitial-text"); this.logoImage=this.fQ("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Zr(this,500,!1,300);g.N(this,this.transition)}; xdu=function(f,D){D=D&&lh(D)||"";if(g.XI(D))g.UT(Error("Found ThumbnailDetails without valid image URL"));else{var F=f.style;f=f.style.cssText;var Z=document.implementation.createHTMLDocument("").createElement("DIV");Z.style.cssText=f;f=Vlu(Z.style);F.cssText=[f,'background-image:url("'+D+'");'].join("")}}; XWX=function(f){var D=g.$d("html5-video-player");D&&g.qI(D,"ytp-ad-display-override",f)}; tw=function(f,D,F,Z,I,p){p=p===void 0?0:p;fb.call(this,f,{K:"div",C:"ytp-preview-ad",L:[{K:"div",C:"ytp-preview-ad__text"}]},"preview-ad",D,F,Z,I);var z=this;this.KQ=p;this.J=0;this.G=-1;this.B=this.fQ("ytp-preview-ad__text");switch(this.KQ){case 1:this.B.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Zr(this,400,!1,100,function(){z.hide()}); g.N(this,this.transition);this.hide()}; SL=function(f,D,F,Z){kg.call(this,f,{K:"img",C:"ytp-ad-avatar"},"ad-avatar",D,F,Z);this.hide()}; OZX=function(f){switch(f.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}}; cA=function(f,D,F,Z,I,p){I=I===void 0?!1:I;p=p===void 0?!1:p;kg.call(this,f,{K:"button",C:"ytp-ad-button-vm"},"ad-button",D,F,Z);this.buttonText=this.buttonIcon=null;this.hide();this.Y=I;this.J=p}; n8c=function(f,D,F,Z,I){fb.call(this,f,{K:"div",ST:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],L:[{K:"div",C:"ytp-ad-avatar-lockup-card__avatar_and_text_container",L:[{K:"div",C:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",D,F,Z,I);this.startMilliseconds=0;this.adAvatar=new SL(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.adAvatar);Sc(this.element,this.adAvatar.element,0);this.headline=new Ss(this.api,this.layoutId, this.interactionLoggingClientData,this.yT);g.N(this,this.headline);this.headline.CQ(this.fQ("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.description);this.description.CQ(this.fQ("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new cA(this.api, this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.adButton);this.adButton.CQ(this.element);this.hide()}; Ub=function(f,D,F,Z){kg.call(this,f,{K:"button",C:"ytp-skip-ad-button",L:[{K:"div",C:"ytp-skip-ad-button__text"}]},"skip-button",D,F,Z);var I=this;this.J=!1;this.G=this.fQ("ytp-skip-ad-button__text");this.transition=new g.Zr(this,500,!1,100,function(){I.hide()}); g.N(this,this.transition);this.Y=new qi(this.element,15E3,5E3,.5,.5,!0);g.N(this,this.Y);this.hide()}; Y3d=function(f,D,F,Z,I){fb.call(this,f,{K:"div",C:"ytp-skip-ad"},"skip-ad",D,F,Z,I);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new Ub(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.B);this.B.CQ(this.element);this.hide()}; vA=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-visit-advertiser-link"},"visit-advertiser-link",D,F,Z);this.hide()}; aF=function(f,D,F,Z,I){kg.call(this,f,{K:"div",C:"ytp-ad-player-overlay-layout",L:[{K:"div",C:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",C:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",C:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",C:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",D,F,Z);this.J=I;this.Tx=this.fQ("ytp-ad-player-overlay-layout__player-card-container");this.Y=this.fQ("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.fQ("ytp-ad-player-overlay-layout__skip-or-preview-container");this.KQ=this.fQ("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; PVJ=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-grid-card-text",L:[{K:"div",C:"ytp-ad-grid-card-text__metadata",L:[{K:"div",C:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",C:"ytp-ad-grid-card-text__metadata__description",L:[{K:"div",C:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",C:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",C:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",D,F,Z);this.headline=new Ss(this.api,this.layoutId,this.interactionLoggingClientData, this.yT);g.N(this,this.headline);this.headline.CQ(this.fQ("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new cA(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0);g.N(this,this.moreInfoButton);this.moreInfoButton.CQ(this.fQ("ytp-ad-grid-card-text__button"))}; Gg=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",D,F,Z);this.Y=[]}; wc=function(f,D,F,Z,I,p,z){fb.call(this,f,p,z,D,F,Z,I);this.playerProgressOffsetMs=0;this.J=!1}; flX=function(f){var D=g.$d("html5-video-player");D&&g.qI(D,"ytp-ad-display-override",f)}; Dtd=function(f,D,F,Z,I){wc.call(this,f,D,F,Z,I,{K:"div",C:"ytp-display-underlay-text-grid-cards",L:[{K:"div",C:"ytp-display-underlay-text-grid-cards__content_container",L:[{K:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header",L:[{K:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{K:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{K:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {K:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Gg(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.adGridCardCollection);this.adGridCardCollection.CQ(this.fQ("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new cA(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.adButton);this.adButton.CQ(this.fQ("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.B=this.fQ("ytp-display-underlay-text-grid-cards__content_container");this.G=this.fQ("ytp-display-underlay-text-grid-cards__content_container__header")}; WA=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-ad-details-line"},"ad-details-line",D,F,Z);this.Y=[];this.hide()}; BA=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-image-background",L:[{K:"img",C:"ytp-image-background-image"}]},"image-background",D,F,Z);this.hide()}; Fey=function(f,D,F,Z,I){fb.call(this,f,{K:"svg",C:"ytp-timed-pie-countdown",W:{viewBox:"0 0 20 20"},L:[{K:"circle",C:"ytp-timed-pie-countdown__background",W:{r:"10",cx:"10",cy:"10"}},{K:"circle",C:"ytp-timed-pie-countdown__inner",W:{r:"5",cx:"10",cy:"10"}},{K:"circle",C:"ytp-timed-pie-countdown__outer",W:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",D,F,Z,I);this.B=this.fQ("ytp-timed-pie-countdown__inner");this.J=Math.ceil(2*Math.PI*5);this.hide()}; rc=function(f,D,F,Z){kg.call(this,f,{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout",W:{tabindex:"0"},L:[{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content",L:[{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",L:[{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",C:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",D,F,Z);this.J=null;this.G=this.fQ("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.B=new Ug;g.N(this,this.B);this.hide()}; Zwa=function(f){var D=g.$d("html5-video-player");D&&g.qI(D,"ytp-ad-display-override",f)}; IlX=function(f){if(!f.adAvatar||!g.Q(f.adAvatar,Lv))return g.SJ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!f.headline)return g.SJ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!f.adBadge||!g.Q(f.adBadge,l4))return g.SJ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!f.adButton||!g.Q(f.adButton,Eb))return g.SJ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!f.adInfoRenderer|| !g.Q(f.adInfoRenderer,Tj))return g.SJ(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;f=f.durationMilliseconds||0;return typeof f!=="number"||f<=0?(g.SJ(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+f)),!1):!0}; Jw=function(f,D){D=D===void 0?2:D;g.zu.call(this);this.api=f;this.Y=null;this.handler=new Ug(this);g.N(this,this.handler);this.J=JXE;this.handler.D(this.api,"presentingplayerstatechange",this.V1);this.Y=this.handler.D(this.api,"progresssync",this.Ft);this.r$=D;this.r$===1&&this.Ft()}; u4=function(f,D,F){gF.call(this,f);this.api=f;this.yT=D;this.components={};f=new g.x({K:"div",ST:["video-ads","ytp-ad-module"]});g.N(this,f);WL&&g.IC(f.element,"ytp-ads-tiny-mode");this.G=new K_(f.element);g.N(this,this.G);g.uC(this.api,f.element,4);Na(F)&&(F=new g.x({K:"div",ST:["ytp-ad-underlay"]}),g.N(this,F),this.J=new K_(F.element),g.N(this,this.J),g.uC(this.api,F.element,0));g.N(this,AXy())}; p_T=function(f,D){f=g.S5(f.components,D.id,null);f==null&&g.UT(Error("Component not found for element id: "+D.id));return f||null}; zEa=function(f){g.KS.call(this,f);var D=this;this.J=null;this.created=!1;this.B=f.j().Z("h5_use_refactored_get_ad_break")?new YZs(this.player):new lH(this.player);this.G=function(){if(D.J!=null)return D.J;var Z=new p8J({tv:$L(D.Y).tv,N5:$L(D.Y).N5,U:D.player,BV:$L(D.Y).BV,DE:D.Y.Y.DE,I6:$L(D.Y).I6,bJ:D.Y.Y.bJ});D.J=Z.p5;return D.J}; this.Y=new jOI(this.player,this,this.B,this.G);g.N(this,this.Y);var F=f.j();!iv(F)||g.ei(F)||PL(F)||(g.N(this,new u4(f,$L(this.Y).yT,$L(this.Y).BV)),g.N(this,new iZy(f)))}; sWa=function(f){f.created!==f.loaded&&Kb("Created and loaded are out of sync")}; omD=function(f){g.KS.prototype.load.call(f);var D=$L(f.Y).BV;try{f.player.getRootNode().classList.add("ad-created")}catch(H){Kb(H instanceof Error?H:String(H))}var F=f.player.getVideoData(1),Z=F&&F.videoId||"",I=F&&F.getPlayerResponse()||{},p=(I&&I.adPlacements||[]).map(function(H){return H.adPlacementRenderer}),z=((I==null?void 0:I.adSlots)||[]).map(function(H){return g.Q(H,dM)}); I=I.playerConfig&&I.playerConfig.daiConfig&&I.playerConfig.daiConfig.enableDai||!1;F&&F.jj();D=q7a(p,z,D,$L(f.Y).H2);p=F&&F.clientPlaybackNonce||"";F=F&&F.xb||!1;z=1E3*f.player.getDuration(1);Hwa(f);f.Y.Y.P0.vV(p,z,F,D.w5,D.mp,D.w5,I,Z)}; Hwa=function(f){var D,F;if(F=(D=f.player.getVideoData(1))==null||!D.xb)D=f.player.j(),F=iv(D)&&!g.jo(D)&&D.playerStyle==="desktop-polymer";F&&(f=f.player.getInternalApi(),f.addEventListener("updateKevlarOrC3Companion",Pqu),f.addEventListener("updateEngagementPanelAction",faI),f.addEventListener("changeEngagementPanelVisibility",DSw),window.addEventListener("yt-navigate-start",Z0J))}; Nj=function(f,D){D===f.hP&&(f.hP=void 0)}; Ked=function(f){var D=$L(f.Y).mw,F=D.G().t8("SLOT_TYPE_PLAYER_BYTES",1);D=Zp(D.QT.get(),1).clientPlaybackNonce;var Z=!1;F=g.a(F);for(var I=F.next();!I.done;I=F.next()){I=I.value;var p=I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&I.slotEntryTrigger instanceof de?I.slotEntryTrigger.D6:void 0;p&&p===D&&(Z&&Kb("More than 1 preroll playerBytes slot detected",I),Z=!0)}Z||$L(f.Y).zF.Bq()}; k3T=function(f){var D="";f=g.a($L(f.Y).I6.MM.keys());for(var F=f.next();!F.done;F=f.next()){F=F.value;if(F.slotType==="SLOT_TYPE_PLAYER_BYTES"&&F.pQ==="core")return!0;D+=F.slotType+" "}Math.random()<.01&&Kb("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:D});return!1}; jWE=function(f){f=g.a($L(f.Y).I6.MM.values());for(var D=f.next();!D.done;D=f.next())if(D.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; n6u=function(f,D,F,Z,I,p,z){F=F===void 0?[]:F;Z=Z===void 0?"":Z;I=I===void 0?"":I;var H=$L(f.Y).BV,K=f.player.getVideoData(1);K&&K.getPlayerResponse();K&&K.jj();F=q7a(D,F,H,$L(f.Y).H2);FUX($L(f.Y).Ti,Z,F.w5,F.mp,D,I,p,z)}; q7a=function(f,D,F,Z){D={w5:[],mp:D};f=g.a(f);for(var I=f.next();!I.done;I=f.next())if((I=I.value)&&I.renderer!=null){var p=I.renderer;if(!F.U.j().Z("html5_enable_vod_lasr_with_notify_pacf")){var z=void 0,H=void 0,K=void 0,k=void 0,h=Z;g.Q((k=p.sandwichedLinearAdRenderer)==null?void 0:k.adVideoStart,Zq)?(z=g.Q((K=p.sandwichedLinearAdRenderer)==null?void 0:K.adVideoStart,Zq),z=hZT(z,h),g.W1(p.sandwichedLinearAdRenderer.adVideoStart,Zq,z)):g.Q((H=p.linearAdSequenceRenderer)==null?void 0:H.adStart,Zq)&& (K=g.Q((z=p.linearAdSequenceRenderer)==null?void 0:z.adStart,Zq),z=hZT(K,h),g.W1(p.linearAdSequenceRenderer.adStart,Zq,z))}D.w5.push(I)}return D}; g.eL=function(f){if(typeof DOMParser!="undefined")return LW(new DOMParser,hca(f),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.xL=function(f){g.J.call(this);this.callback=f;this.Y=new VM(0,0,.4,0,.2,1,1,1);this.delay=new g.e$(this.next,window,this);g.N(this,this.delay)}; g.iwE=function(f){var D=f.j();return D.Xt&&!D.B&&g.LM(D)?f.isEmbedsShortsMode()?(f=f.Zi(),Math.min(f.width,f.height)>=315):!f.AS():!1}; g.XX=function(f){g.x.call(this,{K:"div",C:"ytp-more-videos-view",W:{tabIndex:"-1"}});var D=this;this.api=f;this.J=!0;this.B=new g.ia(this);this.Y=[];this.suggestionData=[];this.columns=this.containerWidth=this.S=this.G=this.scrollPosition=0;this.title=new g.x({K:"h2",C:"ytp-related-title",nQ:"{{title}}"});this.previous=new g.x({K:"button",ST:["ytp-button","ytp-previous"],W:{"aria-label":"Mostrar v\u00eddeos sugeridos previamente"},L:[g.An()]});this.T=new g.xL(function(F){D.suggestions.element.scrollLeft= -F}); this.next=new g.x({K:"button",ST:["ytp-button","ytp-next"],W:{"aria-label":"Mostrar m\u00e1s v\u00eddeos sugeridos"},L:[g.$g()]});g.N(this,this.B);this.X=f.j().G;g.N(this,this.title);this.title.CQ(this.element);this.suggestions=new g.x({K:"div",C:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.CQ(this.element);g.N(this,this.previous);this.previous.CQ(this.element);this.previous.listen("click",this.iT,this);g.N(this,this.T);hEE(this);g.N(this,this.next);this.next.CQ(this.element);this.next.listen("click", this.Rg,this);this.B.D(this.api,"appresize",this.bE);this.B.D(this.api,"fullscreentoggled",this.Oj);this.B.D(this.api,"videodatachange",this.onVideoDataChange);this.bE(this.api.sy().getPlayerSize());this.onVideoDataChange()}; hEE=function(f){for(var D={ZR:0};D.ZR<16;D={ZR:D.ZR},++D.ZR){var F=new g.x({K:"a",C:"ytp-suggestion-link",W:{href:"{{link}}",target:f.api.j().Jb,"aria-label":"{{aria_label}}"},L:[{K:"div",C:"ytp-suggestion-image"},{K:"div",C:"ytp-suggestion-overlay",W:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},L:[{K:"div",C:"ytp-suggestion-title",nQ:"{{title}}"},{K:"div",C:"ytp-suggestion-author",nQ:"{{author_and_views}}"},{K:"div",W:{"data-is-live":"{{is_live}}"},C:"ytp-suggestion-duration", nQ:"{{duration}}"}]}]});g.N(f,F);var Z=F.fQ("ytp-suggestion-link");g.Dx(Z,"transitionDelay",D.ZR/20+"s");f.B.D(Z,"click",function(I){return function(p){var z=I.ZR;if(f.J){var H=f.suggestionData[z],K=H.sessionData;f.X&&f.api.Z("web_player_log_click_before_generating_ve_conversion_params")?(f.api.logClick(f.Y[z].element),z=H.wQ(),H={},g.lC(f.api,H),z=g.tL(z,H),g.AA(z,f.api,p)):g.hA(p,f.api,f.X,K||void 0)&&f.api.As(H.videoId,K,H.playlistId)}else p.preventDefault(),document.activeElement.blur()}}(D)); F.CQ(f.suggestions.element);f.Y.push(F);f.api.createServerVe(F.element,F)}}; yda=function(f){if(f.api.j().Z("web_player_log_click_before_generating_ve_conversion_params"))for(var D=Math.floor(-f.scrollPosition/(f.G+8)),F=Math.min(D+f.columns,f.suggestionData.length)-1;D<=F;D++)f.api.logVisibility(f.Y[D].element,!0)}; g.Ob=function(f){var D=f.api.z2()?32:16;D=f.S/2+D;f.next.element.style.bottom=D+"px";f.previous.element.style.bottom=D+"px";D=f.scrollPosition;var F=f.containerWidth-f.suggestionData.length*(f.G+8);g.qI(f.element,"ytp-scroll-min",D>=0);g.qI(f.element,"ytp-scroll-max",D<=F)}; $tD=function(f){for(var D=f.suggestionData.length,F=0;F>>0)+"_",I=0;return D}); JI("Symbol.iterator",function(f){if(f)return f;f=Symbol("Symbol.iterator");Nw(Array.prototype,f,{configurable:!0,writable:!0,value:function(){return wDw(Mud(this))}}); return f}); JI("Promise",function(f){function D(z){this.Y=0;this.B=void 0;this.J=[];this.S=!1;var H=this.G();try{z(H.resolve,H.reject)}catch(K){H.reject(K)}} function F(){this.Y=null} function Z(z){return z instanceof D?z:new D(function(H){H(z)})} if(f)return f;F.prototype.J=function(z){if(this.Y==null){this.Y=[];var H=this;this.B(function(){H.X()})}this.Y.push(z)}; var I=g.uy.setTimeout;F.prototype.B=function(z){I(z,0)}; F.prototype.X=function(){for(;this.Y&&this.Y.length;){var z=this.Y;this.Y=[];for(var H=0;H0&&F>0;)if(Z[--F]!=D[--I])return!1;return I<=0}}); JI("Array.prototype.find",function(f){return f?f:function(D,F){return WEw(this,D,F).LO}}); JI("Array.prototype.entries",function(f){return f?f:function(){return $n(this,function(D,F){return[D,F]})}}); JI("Array.prototype.keys",function(f){return f?f:function(){return $n(this,function(D){return D})}}); JI("String.prototype.startsWith",function(f){return f?f:function(D,F){var Z=Av(this,D,"startsWith");D+="";var I=Z.length,p=D.length;F=Math.max(0,Math.min(F|0,Z.length));for(var z=0;z=p}}); JI("Number.isFinite",function(f){return f?f:function(D){return typeof D!=="number"?!1:!isNaN(D)&&D!==Infinity&&D!==-Infinity}}); JI("String.prototype.repeat",function(f){return f?f:function(D){var F=Av(this,null,"repeat");if(D<0||D>1342177279)throw new RangeError("Invalid count value");D|=0;for(var Z="";D;)if(D&1&&(Z+=F),D>>>=1)F+=F;return Z}}); JI("Object.entries",function(f){return f?f:function(D){var F=[],Z;for(Z in D)xc(D,Z)&&F.push([Z,D[Z]]);return F}}); JI("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); JI("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); JI("Array.from",function(f){return f?f:function(D,F,Z){F=F!=null?F:function(H){return H}; var I=[],p=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(typeof p=="function"){D=p.call(D);for(var z=0;!(p=D.next()).done;)I.push(F.call(Z,p.value,z++))}else for(p=D.length,z=0;z>>0;if(D===0)return 32;var F=0;(D&4294901760)===0&&(D<<=16,F+=16);(D&4278190080)===0&&(D<<=8,F+=8);(D&4026531840)===0&&(D<<=4,F+=4);(D&3221225472)===0&&(D<<=2,F+=2);(D&2147483648)===0&&F++;return F}}); JI("Number.isNaN",function(f){return f?f:function(D){return typeof D==="number"&&isNaN(D)}}); JI("Array.prototype.values",function(f){return f?f:function(){return $n(this,function(D,F){return F})}}); JI("Array.prototype.fill",function(f){return f?f:function(D,F,Z){var I=this.length||0;F<0&&(F=Math.max(0,I+F));if(Z==null||Z>I)Z=I;Z=Number(Z);Z<0&&(Z=Math.max(0,I+Z));for(F=Number(F||0);F0&&F?F.repeat(Math.ceil(D/F.length)).substring(0,D):"")+Z}}); JI("Array.prototype.findIndex",function(f){return f?f:function(D,F){return WEw(this,D,F).hK}}); JI("Promise.prototype.finally",function(f){return f?f:function(D){return this.then(function(F){return Promise.resolve(D()).then(function(){return F})},function(F){return Promise.resolve(D()).then(function(){throw F; })})}}); JI("Math.imul",function(f){return f?f:function(D,F){D=Number(D);F=Number(F);var Z=D&65535,I=F&65535;return Z*I+((D>>>16&65535)*I+Z*(F>>>16&65535)<<16>>>0)|0}}); JI("Math.sign",function(f){return f?f:function(D){D=Number(D);return D===0||isNaN(D)?D:D>0?1:-1}}); JI("WeakSet",function(f){function D(F){this.Y=new WeakMap;if(F){F=g.a(F);for(var Z;!(Z=F.next()).done;)this.add(Z.value)}} if(function(){if(!f||!Object.seal)return!1;try{var F=Object.seal({}),Z=Object.seal({}),I=new f([F]);if(!I.has(F)||I.has(Z))return!1;I.delete(F);I.add(Z);return!I.has(F)&&I.has(Z)}catch(p){return!1}}())return f; D.prototype.add=function(F){this.Y.set(F,!0);return this}; D.prototype.has=function(F){return this.Y.has(F)}; D.prototype.delete=function(F){return this.Y.delete(F)}; return D}); JI("Array.prototype.copyWithin",function(f){function D(F){F=Number(F);return F===Infinity||F===-Infinity?F:F|0} return f?f:function(F,Z,I){var p=this.length;F=D(F);Z=D(Z);I=I===void 0?p:D(I);F=F<0?Math.max(p+F,0):Math.min(F,p);Z=Z<0?Math.max(p+Z,0):Math.min(Z,p);I=I<0?Math.max(p+I,0):Math.min(I,p);if(FZ;)--I in this?this[--F]=this[I]:delete this[--F];return this}}); Lf("copyWithin",function(f){return f?f:Array.prototype.copyWithin}); JI("Array.prototype.at",function(f){return f?f:VY}); Lf("at",function(f){return f?f:VY}); JI("String.prototype.at",function(f){return f?f:VY}); JI("Promise.withResolvers",function(f){return f?f:function(){var D,F;return{promise:new Promise(function(Z,I){D=Z;F=I}), resolve:D,reject:F}}}); JI("Array.prototype.findLastIndex",function(f){return f?f:function(D,F){return BTf(this,D,F).hK}}); Lf("findLastIndex",function(f){return f?f:function(D,F){return BTf(this,D,F).hK}}); JI("Number.parseInt",function(f){return f||parseInt});var u7,ce,rIs;u7=u7||{};g.RU=this||self;ce="closure_uid_"+(Math.random()*1E9>>>0);rIs=0;g.rE(lX,Error);lX.prototype.name="CustomError";var FaD;var eDa,SQ,PV;eDa=Array.prototype.indexOf?function(f,D){return Array.prototype.indexOf.call(f,D,void 0)}:function(f,D){if(typeof f==="string")return typeof D!=="string"||D.length!=1?-1:f.indexOf(D,0); for(var F=0;F=0;F--)if(F in f&&f[F]===D)return F;return-1}; g.hC=Array.prototype.forEach?function(f,D,F){Array.prototype.forEach.call(f,D,F)}:function(f,D,F){for(var Z=f.length,I=typeof f==="string"?f.split(""):f,p=0;p=.3:this.dU>=.5};var Nf={bcI:0,oRQ:1},ndD={NONE:0,rsy:1,wRd:2};var sUE="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");GD.prototype.getValue=function(){return this.J}; g.C(wU,GD);wU.prototype.B=function(f){this.J===null&&g.TD(this.G,f)&&(this.J=f)}; g.C(WO,GD);WO.prototype.B=function(f){this.J===null&&typeof f==="number"&&(this.J=f)}; g.C(BO,GD);BO.prototype.B=function(f){this.J===null&&typeof f==="string"&&(this.J=f)};rU.prototype.disable=function(){this.J=!1}; rU.prototype.enable=function(){this.J=!0}; rU.prototype.isEnabled=function(){return this.J}; rU.prototype.reset=function(){this.Y={};this.J=!0;this.B={}};var DS=document,l5=window;var bwd=Tc(1,!0),FW=Tc(610401301,!1);Tc(899588437,!1);var MVu=Tc(772657768,!0),tVD=Tc(513659523,!1),S7X=Tc(568333945,!0),QxD=Tc(1331761403,!1);Tc(651175828,!1);Tc(722764542,!1);Tc(748402145,!1);Tc(748402146,!1);var JQs=Tc(748402147,!0),nv=Tc(824648567,!0),vu=Tc(824656860,bwd);Tc(333098724,!1);Tc(2147483644,!1);Tc(2147483645,!1);Tc(2147483646,bwd);Tc(2147483647,!0);var ZM=!!g.QY("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var YJ=String.prototype.trim?function(f){return f.trim()}:function(f){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(f)[1]},UCf=/&/g,vnD=//g,Gcd=/"/g,weu=/'/g,WAa=/\x00/g,cvu=/[\x00&<>"']/;var Ih,cdy=g.RU.navigator;Ih=cdy?cdy.userAgentData||null:null;var V0u=globalThis.trustedTypes,kZ;iI.prototype.toString=function(){return this.Y+""};$Z.prototype.toString=function(){return this.Y}; var QUD=new $Z("about:invalid#zClosurez");var aWT=dl("tel"),UNu=dl("sms"),dCd=[dl("data"),dl("http"),dl("https"),dl("mailto"),dl("ftp"),new Rh(function(f){return/^[^:]*([/?#]|$)/.test(f)})],CXu=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;bI.prototype.toString=function(){return this.Y+""};Uc.prototype.toString=function(){return this.Y+""};wl.prototype.toString=function(){return this.Y};var BZ={};g.UtD=String.prototype.repeat?function(f,D){return f.repeat(D)}:function(f,D){return Array(D+1).join(f)};nW[" "]=function(){};var FD,mt,m8f,vmI,aly,G3d,wk,WL,w_D;g.BL=q7();g.ka=jUu();g.gt=zJ("Edge");g.KD=g.gt||g.ka;FD=zJ("Gecko")&&!(ns(g.DM(),"WebKit")&&!zJ("Edge"))&&!(zJ("Trident")||zJ("MSIE"))&&!zJ("Edge");g.dL=ns(g.DM(),"WebKit")&&!zJ("Edge");mt=Oc();m8f=JvD();g.Fq=Enc();vmI=xZ();aly=zJ("iPad");G3d=zJ("iPod");wk=XW();WL=ns(g.DM(),"KaiOS"); a:{var Wes="",BCs=function(){var f=g.DM();if(FD)return/rv:([^\);]+)(\)|;)/.exec(f);if(g.gt)return/Edge\/([\d\.]+)/.exec(f);if(g.ka)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(f);if(g.dL)return/WebKit\/(\S+)/.exec(f);if(g.BL)return/(?:Version)[ \/]?(\S+)/.exec(f)}(); BCs&&(Wes=BCs?BCs[1]:"");if(g.ka){var YL,rdT=g.RU.document;YL=rdT?rdT.documentMode:void 0;if(YL!=null&&YL>parseFloat(Wes)){w_D=String(YL);break a}}w_D=Wes}var eVu=w_D,NET={};var PR,fC;g.ji=HZ();PR=xZ()||zJ("iPod");fC=zJ("iPad");g.rk=hVd();g.op=oh();g.yy=KW()&&!XW();var ZrE=!g.ka&&!KW();g.d=g.FA.prototype;g.d.clone=function(){return new g.FA(this.x,this.y)}; g.d.equals=function(f){return f instanceof g.FA&&Zm(this,f)}; g.d.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.d.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.d.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.d.scale=function(f,D){this.x*=f;this.y*=typeof D==="number"?D:f;return this};g.d=g.IG.prototype;g.d.clone=function(){return new g.IG(this.width,this.height)}; g.d.aspectRatio=function(){return this.width/this.height}; g.d.isEmpty=function(){return!zR(this)}; g.d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.d.scale=function(f,D){this.width*=f;this.height*=typeof D==="number"?D:f;return this};qe.prototype.toString=function(){return this.Y}; var sa={};new qe(sa,"");var Ood=/^[a-z][a-z\d-]*$/i,nns="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),PXJ="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),DfE=["action","formaction","href"];var ZsT={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.d=KG.prototype;g.d.Cp=function(f){return i5(this.Y,f)}; g.d.getElementsByTagName=function(f,D){return(D||this.Y).getElementsByTagName(String(f))}; g.d.fQ=function(f){return g.$d(f,this.Y)}; g.d.setProperties=RG;g.d.createElement=function(f){return CG(this.Y,f)}; g.d.appendChild=g.Me;g.d.append=function(f,D){siT(kd(f),f,arguments,1)}; g.d.canHaveChildren=function(f){if(f.nodeType!=1)return!1;switch(f.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.d.removeNode=g.cE;g.d.getChildren=function(f){return f.children!=void 0?f.children:Array.prototype.filter.call(f.childNodes,function(D){return D.nodeType==1})}; g.d.contains=g.Ua;g.d.isFocusable=GR;BE.prototype.now=function(){return 0}; BE.prototype.J=function(){return 0}; BE.prototype.B=function(){return 0}; BE.prototype.Y=function(){return 0};g.C(LG,BE);LG.prototype.now=function(){return rL()&&l5.performance.now?l5.performance.now():BE.prototype.now.call(this)}; LG.prototype.J=function(){return rL()&&l5.performance.memory?l5.performance.memory.totalJSHeapSize||0:BE.prototype.J.call(this)}; LG.prototype.B=function(){return rL()&&l5.performance.memory?l5.performance.memory.usedJSHeapSize||0:BE.prototype.B.call(this)}; LG.prototype.Y=function(){return rL()&&l5.performance.memory?l5.performance.memory.jsHeapSizeLimit||0:BE.prototype.Y.call(this)};var fju=function(){if(!g.RU.addEventListener||!Object.defineProperty)return!1;var f=!1,D=Object.defineProperty({},"passive",{get:function(){f=!0}}); try{var F=function(){}; g.RU.addEventListener("test",F,D);g.RU.removeEventListener("test",F,D)}catch(Z){}return f}();var YMy=oJu("AnimationEnd"),vN=oJu("TransitionEnd");g.d=xd.prototype;g.d.getHeight=function(){return this.bottom-this.top}; g.d.clone=function(){return new xd(this.top,this.right,this.bottom,this.left)}; g.d.contains=function(f){return this&&f?f instanceof xd?f.left>=this.left&&f.right<=this.right&&f.top>=this.top&&f.bottom<=this.bottom:f.x>=this.left&&f.x<=this.right&&f.y>=this.top&&f.y<=this.bottom:!1}; g.d.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.d.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.d.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.d.scale=function(f,D){D=typeof D==="number"?D:f;this.left*=f;this.right*=f;this.top*=D;this.bottom*=D;return this};g.d=g.Yd.prototype;g.d.clone=function(){return new g.Yd(this.left,this.top,this.width,this.height)}; g.d.contains=function(f){return f instanceof g.FA?f.x>=this.left&&f.x<=this.left+this.width&&f.y>=this.top&&f.y<=this.top+this.height:this.left<=f.left&&this.left+this.width>=f.left+f.width&&this.top<=f.top&&this.top+this.height>=f.top+f.height}; g.d.getSize=function(){return new g.IG(this.width,this.height)}; g.d.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.d.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.d.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.d.scale=function(f,D){D=typeof D==="number"?D:f;this.left*=f;this.width*=f;this.top*=D;this.height*=D;return this};var kDw={};var V5u=Ne(function(){var f=!1;try{var D=Object.defineProperty({},"passive",{get:function(){f=!0}}); g.RU.addEventListener("test",null,D)}catch(F){}return f});RmX.prototype.isVisible=function(){return AG(DS)===1};var TUu=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");QI.prototype.M7=function(f,D,F){f=f+"//"+D+F;var Z=UfD(this)-F.length;if(Z<0)return"";this.Y.sort(function(k,h){return k-h}); F=null;D="";for(var I=0;I=K.length){Z-=K.length;f+=K;D=this.B;break}F=F==null?p:F}}Z="";F!=null&&(Z=""+D+"trn="+F);return f+Z};var iWE=c9(function(f){return typeof f==="number"}),qm=c9(function(f){return typeof f==="string"}),hXJ=c9(function(f){return typeof f==="boolean"}),XZ=c9(function(f){return f!=null&&typeof f==="object"&&typeof f.then==="function"}),aRE=c9(function(f){return typeof f==="function"}),Leu=c9(function(f){return!!f&&(typeof f==="object"||typeof f==="function")});var t5w={uyR:"allow-forms",gCb:"allow-modals",QNr:"allow-orientation-lock",Psd:"allow-pointer-lock",O7E:"allow-popups",oCo:"allow-popups-to-escape-sandbox",LsF:"allow-presentation",pVd:"allow-same-origin",VAI:"allow-scripts",ylb:"allow-top-navigation",Rnb:"allow-top-navigation-by-user-activation"},WaJ=Ne(function(){return SQD()});v9.prototype.setInterval=function(f,D){return l5.setInterval(f,D)}; v9.prototype.clearInterval=function(f){l5.clearInterval(f)}; v9.prototype.setTimeout=function(f,D){return l5.setTimeout(f,D)}; v9.prototype.clearTimeout=function(f){l5.clearTimeout(f)};var tU=void 0,M0,HGf=typeof TextDecoder!=="undefined",gJs,NUu=typeof String.prototype.isWellFormed==="function",uIu=typeof TextEncoder!=="undefined";var nJI={},lG=null,YQX=FD||g.dL||typeof g.RU.btoa=="function";var qcu=typeof Uint8Array!=="undefined",ZWE=!g.ka&&typeof btoa==="function",IMc=/[-_.]/g,D7w={"-":"+",_:"/",".":"="},JG={};E5.prototype.isEmpty=function(){return this.Y==null}; E5.prototype.sizeBytes=function(){var f=N2(this);return f?f.length:0}; var shD;var HWf=void 0;var P9=typeof Symbol==="function"&&typeof Symbol()==="symbol",llT=YH("jas",void 0,!0),W3=YH(void 0,"1oa"),Ye=YH(void 0,Symbol()),Emy=YH(void 0,"0ub"),aMu=YH(void 0,"0ubs"),WKJ=YH(void 0,"0ubsb"),Nlu=YH(void 0,"0actk"),Xy=YH("m_m","HmI",!0),Wgc=YH(void 0,"vps"),Jda=YH();Math.max.apply(Math,g.w(Object.values({AsT:1,HRY:2,wtx:4,yvI:8,qDI:16,ucr:32,efb:64,GRr:128,yWd:256,Wdb:512,i1b:1024,KiT:2048,g1E:4096,vqQ:8192})));var Kgy={Bwr:{value:0,configurable:!0,writable:!0,enumerable:!1}},oZu=Object.defineProperties,fr=P9?llT:"Bwr",VN,uUw=[];Fy(uUw,7);VN=Object.freeze(uUw);var OR={},Z$={},Ycs=Object.freeze({}),co={},zA={};var Hu=typeof g.RU.BigInt==="function"&&typeof g.RU.BigInt(0)==="bigint";var uW=c9(function(f){return Hu?f>=NCf&&f<=gmc:f[0]==="-"?yQs(f,eEw):yQs(f,xtD)}),eEw=Number.MIN_SAFE_INTEGER.toString(),NCf=Hu?BigInt(Number.MIN_SAFE_INTEGER):void 0,xtD=Number.MAX_SAFE_INTEGER.toString(),gmc=Hu?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Imw=typeof Uint8Array.prototype.slice==="function",Kr=0,ke=0,BLD;var GA=typeof BigInt==="function"?BigInt.asIntN:void 0,Meu=typeof BigInt==="function"?BigInt.asUintN:void 0,Jg=Number.isSafeInteger,Mm=Number.isFinite,ER=Math.trunc,VeJ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Bls={};var X_E={r6y:!0};var FB;var rQu,LgJ;var Dea=o0(0),XB={};Zu.prototype.init=function(f,D,F,Z){var I=Z===void 0?{}:Z;Z=I.Uu===void 0?!1:I.Uu;I=I.Dt===void 0?!1:I.Dt;this.Uu=Z;this.Dt=I;f&&(f=FK(f,this.Dt),this.J=f.buffer,this.X=f.Y,this.G=D||0,this.B=F!==void 0?this.G+F:this.J.length,this.Y=this.G)}; Zu.prototype.free=function(){this.clear();QP.length<100&&QP.push(this)}; Zu.prototype.clear=function(){this.J=null;this.X=!1;this.Y=this.B=this.G=0;this.Uu=!1}; Zu.prototype.reset=function(){this.Y=this.G}; var QP=[];CA.prototype.free=function(){this.Y.clear();this.J=this.B=-1;mZ.length<100&&mZ.push(this)}; CA.prototype.reset=function(){this.Y.reset();this.G=this.Y.Y;this.J=this.B=-1}; var mZ=[];var jGD,hMw;aQ.prototype.length=function(){return this.Y.length}; aQ.prototype.end=function(){var f=this.Y;this.Y=[];return f};var JU=ld(),OwT=ld(),nmu=ld(),Y7w=ld(),Pou=ld(),fnX=ld(),DnD=ld(),FnD=ld(),Z9E=ld(),Ind=ld(),pJa=ld();EB.prototype.toJSON=function(){return p4(this)}; EB.prototype.s6=function(f){return JSON.stringify(p4(this,f))}; EB.prototype.clone=function(){var f=this.Bk,D=f[fr]|0;return H3(this,f,D)?ou(this,f,!0):new this.constructor(qo(f,D,!1))}; EB.prototype[Xy]=OR;EB.prototype.toString=function(){return this.Bk.toString()};var bGd=N0(function(f,D,F,Z,I){if(f.J!==2)return!1;bd(f,B3(D,Z,F),I);return!0},TLJ),Mcd=N0(function(f,D,F,Z,I){if(f.J!==2)return!1; bd(f,B3(D,Z,F),I);return!0},TLJ),Dj=Symbol(),OB=Symbol(),Po=Symbol(),amT=Symbol(),cBw=Symbol(),gI,e9;var z8c=o0(0),s9d=I_(function(f,D,F){if(f.J!==1)return!1;zW(D,F,RQ(f.Y));return!0},so,Z9E),qiy=I_(function(f,D,F){if(f.J!==1)return!1; f=RQ(f.Y);zW(D,F,f===0?void 0:f);return!0},so,Z9E),H9d=I_(function(f,D,F,Z){if(f.J!==1)return!1; G7(D,F,Z,RQ(f.Y));return!0},so,Z9E),oxu=I_(function(f,D,F){if(nv)return f.J!==0?f=!1:(zW(D,F,hU(f.Y,QG)),f=!0),f; if(f.J!==0)return!1;zW(D,F,hU(f.Y,R0));return!0},qX,DnD),Knf=I_(function(f,D,F){if(nv)return f.J!==0?D=!1:(f=hU(f.Y,QG),zW(D,F,f===z8c?void 0:f),D=!0),D; if(f.J!==0)return!1;f=hU(f.Y,R0);zW(D,F,f===0?void 0:f);return!0},qX,DnD),koT=I_(function(f,D,F,Z){if(nv)return f.J!==0?f=!1:(G7(D,F,Z,hU(f.Y,QG)),f=!0),f; if(f.J!==0)return!1;G7(D,F,Z,hU(f.Y,R0));return!0},qX,DnD),j9d=I_(function(f,D,F){if(f.J!==0)return!1; zW(D,F,yP(f.Y));return!0},HV,Y7w),i9y=I_(function(f,D,F){if(f.J!==0)return!1; f=yP(f.Y);zW(D,F,f===0?void 0:f);return!0},HV,Y7w),h8D=I_(function(f,D,F,Z){if(f.J!==0)return!1; G7(D,F,Z,yP(f.Y));return!0},HV,Y7w),yHT=I_(function(f,D,F){if(nv)return f.J!==1?f=!1:(zW(D,F,VP(f.Y)),f=!0),f; if(f.J!==1)return!1;zW(D,F,$E(f.Y));return!0},function(f,D,F){dey(f,F,teD(D))},FnD),AHE=p8(function(f,D,F){if(nv)return f.J!==1&&f.J!==2?f=!1:(D=Sf(D,D[fr]|0,F),f.J==2?KKf(f,VP,D):D.push(VP(f.Y)),f=!0),f; if(f.J!==1&&f.J!==2)return!1;D=Sf(D,D[fr]|0,F);f.J==2?KKf(f,$E,D):D.push($E(f.Y));return!0},function(f,D,F){D=Zj(teD,D,!1); if(D!=null)for(var Z=0;Z>>0);return!0},function(f,D,F){D=UR(D); D!=null&&D!=null&&(rI(f,F,0),wI(f.Y,D))},Pou),I1=I_(function(f,D,F){if(f.J!==0)return!1; zW(D,F,yP(f.Y));return!0},function(f,D,F){D=cu(D); D!=null&&(D=parseInt(D,10),rI(f,F,0),ABa(f.Y,D))},pJa);var EdI=new Map;g.C(JBf,kRE);NLf.prototype.register=function(){nW(this)};g.C(kz,EB);kz.prototype.B=eMT([0,qiy,Knf,-2,i9y]);OGy.prototype.Kp=function(f){var D=this.Y[f.key];if(f.valueType==="proto"){try{var F=JSON.parse(D);if(Array.isArray(F))return F}catch(Z){}return f.defaultValue}return typeof D===typeof f.defaultValue?D:f.defaultValue};var Yau={EkQ:1,z6:2,rvF:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};fxu.prototype.m6=function(f){if(typeof f==="string"&&f.length!=0){var D=this.zT;if(D.J){f=f.split("&");for(var F=f.length-1;F>=0;F--){var Z=f[F].split("="),I=decodeURIComponent(Z[0]);Z.length>1?(Z=decodeURIComponent(Z[1]),Z=/^[0-9]+$/g.exec(Z)?parseInt(Z,10):Z):Z=1;(I=D.Y[I])&&I.B(Z)}}}};var pF=null;var $z=g.RU.performance,T3u=!!($z&&$z.mark&&$z.measure&&$z.clearMarks),yW=Ne(function(){var f;if(f=T3u){var D=D===void 0?window:D;if(pF===null){pF="";try{f="";try{f=D.top.location.hash}catch(Z){f=D.location.hash}if(f){var F=f.match(/\bdeid=([\d,]+)/);pF=F?F[1]:""}}catch(Z){}}D=pF;f=!!D.indexOf&&D.indexOf("1337")>=0}return f}); AL.prototype.disable=function(){this.Y=!1;this.events!==this.J.google_js_reporting_queue&&(yW()&&g.hC(this.events,z2D),this.events.length=0)}; AL.prototype.start=function(f,D){if(!this.Y)return null;var F=Ixc()||Z3I();f=new p9y(f,D,F);D="goog_"+f.label+"_"+f.uniqueId+"_start";$z&&yW()&&$z.mark(D);return f}; AL.prototype.end=function(f){if(this.Y&&typeof f.value==="number"){var D=Ixc()||Z3I();f.duration=D-f.value;D="goog_"+f.label+"_"+f.uniqueId+"_end";$z&&yW()&&$z.mark(D);!this.Y||this.events.length>2048||this.events.push(f)}};var sED=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Uo=/#|$/,jEf=/[?&]($|#)/;h2E.prototype.Ob=function(f,D,F,Z,I){I=I||this.Ag;try{var p=new QI;p.Y.push(1);p.J[1]=C3("context",f);D.error&&D.meta&&D.id||(D=new BV(ry(D)));if(D.msg){var z=D.msg.substring(0,512);p.Y.push(2);p.J[2]=C3("msg",z)}var H=D.meta||{};if(this.Y5)try{this.Y5(H)}catch(V){}if(Z)try{Z(H)}catch(V){}Z=[H];p.Y.push(3);p.J[3]=Z;var K=M5w();if(K.J){var k=K.J.url||"";p.Y.push(4);p.J[4]=C3("top",k)}var h={url:K.Y.url||""};if(K.Y.url){var y=g.R_(K.Y.url);var A=VW(y[1],null,y[3],y[4])}else A="";k=[h,{url:A}];p.Y.push(5); p.J[5]=k;D2D(this.Y,I,p,F)}catch(V){try{D2D(this.Y,I,{context:"ecmserr",rctx:f,msg:ry(V),url:K&&K.Y.url},F)}catch(R){}}return this.d1}; g.C(BV,Fwu);var wy,WV,GW=new AL;wy=new function(){var f="https:";l5&&l5.location&&l5.location.protocol==="http:"&&(f="http:");this.J=f;this.Y=.01}; WV=new h2E;l5&&l5.document&&(l5.document.readyState=="complete"?AGu():GW.Y&&yI(l5,"load",function(){AGu()}));var R2J=Date.now(),gy=-1,ui=-1,Umy,eD=-1,NX=!1;xz.prototype.equals=function(f,D){return!!f&&(!(D===void 0?0:D)||this.volume==f.volume)&&this.B==f.B&&Oa(this.Y,f.Y)&&!0};Xe.prototype.Cp=function(){return this.S}; Xe.prototype.equals=function(f,D){return this.G.equals(f.G,D===void 0?!1:D)&&this.S==f.S&&Oa(this.B,f.B)&&Oa(this.T,f.T)&&this.Y==f.Y&&this.X==f.X&&this.J==f.J&&this.N==f.N};var b9c={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Yt={xD:"start",Zl:"firstquartile",y8:"midpoint",XR:"thirdquartile",COMPLETE:"complete",ERROR:"error",V8:"metric",PAUSE:"pause",n$:"resume",EB:"skip",C$:"viewable_impression",im:"mute",mA:"unmute",TP:"fullscreen",hB:"exitfullscreen",JB:"bufferstart",YL:"bufferfinish",C5:"fully_viewable_audible_half_duration_impression",po:"measurable_impression",R4:"abandon",Un:"engagedview",Ig:"impression",n5:"creativeview",LOADED:"loaded", U0s:"progress",CLOSE:"close",wno:"collapse",eHF:"overlay_resize",aUd:"overlay_unmeasurable_impression",v1I:"overlay_unviewable_impression",qkY:"overlay_viewable_immediate_impression",bHb:"overlay_viewable_end_of_session_impression",En:"custom_metric_viewable",e_:"audio_audible",vX:"audio_measurable",a4:"audio_impression"},Jzd="start firstquartile midpoint thirdquartile resume loaded".split(" "),uBI=["start","firstquartile","midpoint","thirdquartile"],a$w=["abandon"],$G={UNKNOWN:-1,xD:0,Zl:1,y8:2, XR:3,COMPLETE:4,V8:5,PAUSE:6,n$:7,EB:8,C$:9,im:10,mA:11,TP:12,hB:13,C5:14,po:15,R4:16,Un:17,Ig:18,n5:19,LOADED:20,En:21,JB:22,YL:23,a4:27,vX:28,e_:29};var QEJ={MAd:"addEventListener",AWF:"getMaxSize",eMY:"getScreenSize",vRy:"getState",b1x:"getVersion",V7I:"removeEventListener",eVT:"isViewable"};S5c.prototype.update=function(f){f&&f.document&&(this.S=Oo(!1,f,this.isMobileDevice),this.Y=Oo(!0,f,this.isMobileDevice),U2w(this,f),cGD(this,f))};ZS.prototype.cancel=function(){aE().clearTimeout(this.Y);this.Y=null}; ZS.prototype.schedule=function(){var f=this,D=aE(),F=hL().Y.Y;this.Y=D.setTimeout(jD(F,li(143,function(){f.J++;f.B.sample()})),d2u())};g.d=Ic.prototype;g.d.Aq=function(){return!1}; g.d.initialize=function(){return this.isInitialized=!0}; g.d.a5=function(){return this.Y.Tx}; g.d.Jn=function(){return this.Y.Bs}; g.d.fail=function(f,D){if(!this.Bs||(D===void 0?0:D))this.Bs=!0,this.Tx=f,this.N=0,this.Y!=this||z$(this)}; g.d.getName=function(){return this.Y.jT}; g.d.R0=function(){return this.Y.rz()}; g.d.rz=function(){return{}}; g.d.yq=function(){return this.Y.N}; g.d.Fg=function(){var f=fq();f.Y=Oo(!0,this.B,f.isMobileDevice)}; g.d.Ng=function(){cGD(fq(),this.B)}; g.d.iZ=function(){return this.G.Y}; g.d.sample=function(){}; g.d.isActive=function(){return this.Y.T}; g.d.Ec=function(f){var D=this.Y;this.Y=f.yq()>=this.N?f:this;D!==this.Y?(this.T=this.Y.T,z$(this)):this.T!==this.Y.T&&(this.T=this.Y.T,z$(this))}; g.d.JX=function(f){if(f.J===this.Y){var D=!this.G.equals(f,this.Jb);this.G=f;D&&Gxf(this)}}; g.d.RI=function(){return this.Jb}; g.d.dispose=function(){this.zx=!0}; g.d.MR=function(){return this.zx};g.d=sj.prototype;g.d.observe=function(){return!0}; g.d.unobserve=function(){}; g.d.k9=function(f){this.X=f}; g.d.dispose=function(){if(!this.MR()){var f=this.J;g.no(f.X,this);f.Jb&&this.RI()&&axX(f);this.unobserve();this.xo=!0}}; g.d.MR=function(){return this.xo}; g.d.R0=function(){return this.J.R0()}; g.d.yq=function(){return this.J.yq()}; g.d.a5=function(){return this.J.a5()}; g.d.Jn=function(){return this.J.Jn()}; g.d.Ec=function(){}; g.d.JX=function(){this.I0()}; g.d.RI=function(){return this.zx};g.d=qQ.prototype;g.d.yq=function(){return this.Y.yq()}; g.d.a5=function(){return this.Y.a5()}; g.d.Jn=function(){return this.Y.Jn()}; g.d.create=function(f,D,F){var Z=null;this.Y&&(Z=this.oL(f,D,F),pq(this.Y,Z));return Z}; g.d.uG=function(){return this.aH()}; g.d.aH=function(){return!1}; g.d.init=function(f){return this.Y.initialize()?(pq(this.Y,this),this.G=f,!0):!1}; g.d.Ec=function(f){f.yq()==0&&this.G(f.a5(),this)}; g.d.JX=function(){}; g.d.RI=function(){return!1}; g.d.dispose=function(){this.X=!0}; g.d.MR=function(){return this.X}; g.d.R0=function(){return{}};HM.prototype.add=function(f,D,F){++this.B;f=new Wws(f,D,F);this.Y.push(new Wws(f.J,f.Y,f.B+this.B/4096));this.J=!0;return this};EHu.prototype.toString=function(){var f="//pagead2.googlesyndication.com//pagead/gen_204",D=kt(this.Y);D.length>0&&(f+="?"+D);return f};g.J.prototype.qz=!1;g.J.prototype.MR=function(){return this.qz}; g.J.prototype.dispose=function(){this.qz||(this.qz=!0,this.Ey())}; g.J.prototype[Symbol.dispose]=function(){this.dispose()}; g.J.prototype.addOnDisposeCallback=function(f,D){this.qz?D!==void 0?f.call(D):f():(this.K4||(this.K4=[]),D&&(f=f.bind(D)),this.K4.push(f))}; g.J.prototype.Ey=function(){if(this.K4)for(;this.K4.length;)this.K4.shift()()};var MNw=[0,oxu,$na,-1];ht.prototype.update=function(f,D,F){f&&(this.Y+=D,this.J+=D,this.G+=D,this.B=Math.max(this.B,this.G));if(F===void 0?!f:F)this.G=0};var e2y=[1,.75,.5,.3,0];yU.prototype.update=function(f,D,F,Z,I,p){p=p===void 0?!0:p;D=I?Math.min(f,D):D;for(I=0;I0&&D>=z;z=!(f>0&&f>=z)||F;this.Y[I].update(p&&H,Z,!p||z)}};QU.prototype.update=function(f,D,F,Z){this.S=this.S!=-1?Math.min(this.S,D.dU):D.dU;this.KQ=Math.max(this.KQ,D.dU);this.xo=this.xo!=-1?Math.min(this.xo,D.JW):D.JW;this.Tx=Math.max(this.Tx,D.JW);this.JN.update(D.JW,F.JW,D.Y,f,Z);this.Ir+=f;D.dU===0&&(this.jT+=f);this.J.update(D.dU,F.dU,D.Y,f,Z);F=Z||F.Yh!=D.Yh?F.isVisible()&&D.isVisible():F.isVisible();D=!D.isVisible()||D.Y;this.Ps.update(F,f,D)}; QU.prototype.GS=function(){return this.Ps.B>=this.eT};if(DS&&DS.URL){var tNX=DS.URL,Siu;a:{if(tNX){var cHX=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var zS=cHX.exec(decodeURIComponent(tNX));if(zS){Siu=zS[1]&&zS[1].length>1?zS[1].substring(1):"true";break a}}catch(f){}}Siu=""}WV.d1=!(Siu.length>0)};var Unu=new xd(0,0,0,0);var Dmd=new xd(0,0,0,0);g.C(MQ,g.J);g.d=MQ.prototype; g.d.Ey=function(){if(this.I2.Y){if(this.zz.eR){var f=this.I2.Y;typeof f.removeEventListener==="function"&&f.removeEventListener("mouseover",this.zz.eR,hG());this.zz.eR=null}this.zz.AF&&(f=this.I2.Y,typeof f.removeEventListener==="function"&&f.removeEventListener("mouseout",this.zz.AF,hG()),this.zz.AF=null)}this.yk&&this.yk.dispose();this.gU&&this.gU.dispose();delete this.sO;delete this.oS;delete this.hI;delete this.I2.WY;delete this.I2.Y;delete this.zz;delete this.yk;delete this.gU;delete this.zT; g.J.prototype.Ey.call(this)}; g.d.pG=function(){return this.gU?this.gU.Y:this.position}; g.d.m6=function(f){hL().m6(f)}; g.d.RI=function(){return!1}; g.d.sz=function(){return new QU}; g.d.yZ=function(){return this.sO}; g.d.uZ=function(f){return puX(this,f,1E4)}; g.d.u3=function(f,D,F,Z,I,p,z){this.fm||(this.nk&&(f=this.X8(f,F,I,z),Z=Z&&this.UG.dU>=(this.Yh()?.3:.5),this.TL(p,f,Z),this.S2=D,f.dU>0&&-1===this.Lz&&(this.Lz=D),this.Hy==-1&&this.GS()&&(this.Hy=D),this.uX==-2&&(this.uX=T$(this.pG())?f.dU:-1),this.UG=f),this.oS(this))}; g.d.TL=function(f,D,F){this.yZ().update(f,D,this.UG,F)}; g.d.iV=function(){return new AC}; g.d.X8=function(f,D,F,Z){F=this.iV();F.Y=D;D=aE().J;D=AG(DS)===0?-1:D.isVisible()?0:1;F.J=D;F.dU=this.QM(f);F.Yh=this.Yh();F.JW=Z;return F}; g.d.QM=function(f){return this.opacity===0&&JC(this.zT,"opac")===1?0:f}; g.d.Yh=function(){return!1}; g.d.ET=function(){return this.f53||this.hFT}; g.d.r9=function(){JL()}; g.d.tK=function(){JL()}; g.d.bV=function(){return this.requestSource}; g.d.UD=function(){return 0}; g.d.GS=function(){return this.sO.GS()}; g.d.A0=function(){var f=this.nk;f=(this.hasCompleted||this.MR())&&!f;var D=hL().J!==2||this.PnE;return this.fm||D&&f?2:this.GS()?4:3}; g.d.Oz=function(){return 0};g.Sg.prototype.next=function(){return g.qY}; g.qY={done:!0,value:void 0};g.Sg.prototype.bO=function(){return this};g.C(KJy,AC);var Hr=j0y([void 0,1,2,3,4,8,16]),o1=j0y([void 0,4,8,16]),vxy={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:ac("p0",o1),p1:ac("p1",o1),p2:ac("p2",o1),p3:ac("p3",o1),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:vM("mtos1",[0,2,4],!1,o1),mtos2:vM("mtos2",[0,2,4],!1,o1),mtos3:vM("mtos3",[0,2,4],!1,o1),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:ac("a0",o1),a1:ac("a1",o1),a2:ac("a2",o1),a3:ac("a3",o1),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:ac("c0",o1),c1:ac("c1",o1),c2:ac("c2",o1),c3:ac("c3",o1),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:ac("qmtos",Hr),qnc:ac("qnc",Hr),qmv:ac("qmv",Hr),qnv:ac("qnv",Hr), 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:ac("ss0",o1),ss1:ac("ss1",o1),ss2:ac("ss2",o1),ss3:ac("ss3",o1),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"},anw=Object.assign({},vxy,{avid:Ea("audio"),avas:"avas",vs:"vs"}),GoD={atos:"atos",avt:vM("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(f,D){return function(F){return F[f]===void 0&&D!==void 0?D:F[f]}}("ss",0), t:"t"};BM.prototype.getValue=function(){return this.J}; BM.prototype.update=function(f,D){f>=32||(this.Y&1<=.5;Yz(D.volume)&&(this.G=this.G!=-1?Math.min(this.G,D.volume):D.volume,this.T=Math.max(this.T,D.volume));p&&(this.zx+=f,this.Jb+=I?f:0);this.Y.update(D.dU,F.dU,D.Y,f,Z,I);this.B.update(!0,f);this.X.update(I,f);this.Bs.update(F.fullscreen,f);this.G3.update(I&&!p,f);f=Math.floor(D.mediaTime/1E3);this.rY.update(f,D.isVisible());this.b3.update(f,D.dU>=1);this.LQ.update(f, Uj(D))}};VOT.prototype.J=function(f){this.B||(this.Y(f)?(f=czy(this.Jb,this.G,f),this.X|=f,f=f==0):f=!1,this.B=f)};g.C(lD,VOT);lD.prototype.Y=function(){return!0}; lD.prototype.T=function(){return!1}; lD.prototype.getId=function(){var f=this,D=Mf(Yt,function(F){return F==f.G}); return $G[D].toString()}; lD.prototype.toString=function(){var f="";this.T()&&(f+="c");this.B&&(f+="s");this.X>0&&(f+=":"+this.X);return this.getId()+f};g.C(Ej,lD);Ej.prototype.J=function(f,D){D=D===void 0?null:D;D!=null&&this.S.push(D);lD.prototype.J.call(this,f)};g.C(Jt,RBa);Jt.prototype.J=function(){return null}; Jt.prototype.B=function(){return[]};g.C(uD,sj);g.d=uD.prototype;g.d.ZI=function(){if(this.element){var f=this.element,D=this.J.Y.B;try{try{var F=b3D(f.getBoundingClientRect())}catch(k){F=new xd(0,0,0,0)}var Z=F.right-F.left,I=F.bottom-F.top,p=yCu(f,D),z=p.x,H=p.y;var K=new xd(Math.round(H),Math.round(z+Z),Math.round(H+I),Math.round(z))}catch(k){K=Unu.clone()}this.B=K;this.Y=w9X(this,this.B)}}; g.d.RJ=function(){this.T=this.J.G.Y}; g.d.LA=function(f){var D=JC(this.zT,"od")==1;return f$T(f,this.T,this.element,D)}; g.d.wj=function(){this.timestamp=JL()}; g.d.I0=function(){this.wj();this.ZI();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var f=this.element;var D=new g.IG(f.videoWidth,f.videoHeight);f=this.Y;var F=XA(f),Z=f.getHeight(),I=D.width;D=D.height;I<=0||D<=0||F<=0||Z<=0||(I/=D,D=F/Z,f=f.clone(),I>D?(F/=I,Z=(Z-F)/2,Z>0&&(Z=f.top+Z,f.top=Math.round(Z),f.bottom=Math.round(Z+F))):(Z*=I,F=Math.round((F-Z)/2),F>0&&(F=f.left+F,f.left=Math.round(F),f.right=Math.round(F+Z))));this.Y=f}this.RJ(); f=this.Y;F=this.T;f=f.left<=F.right&&F.left<=f.right&&f.top<=F.bottom&&F.top<=f.bottom?new xd(Math.max(f.top,F.top),Math.min(f.right,F.right),Math.min(f.bottom,F.bottom),Math.max(f.left,F.left)):new xd(0,0,0,0);F=f.top>=f.bottom||f.left>=f.right?new xd(0,0,0,0):f;f=this.J.G;D=I=Z=0;if((this.Y.bottom-this.Y.top)*(this.Y.right-this.Y.left)>0)if(this.LA(F))F=new xd(0,0,0,0);else{Z=fq().G;D=new xd(0,Z.height,Z.width,0);var p;Z=bD(F,(p=this.X)!=null?p:this.Y);I=bD(F,fq().Y);D=bD(F,D)}p=F.top>=F.bottom|| F.left>=F.right?new xd(0,0,0,0):nG(F,-this.Y.left,-this.Y.top);Fb()||(I=Z=0);this.Jb=new Xe(f,this.element,this.Y,p,Z,I,this.timestamp,D)}; g.d.getName=function(){return this.J.getName()};var wJy=new xd(0,0,0,0);g.C(NQ,uD);g.d=NQ.prototype;g.d.observe=function(){this.G();return!0}; g.d.JX=function(){uD.prototype.I0.call(this)}; g.d.wj=function(){}; g.d.ZI=function(){}; g.d.I0=function(){this.G();uD.prototype.I0.call(this)}; g.d.Ec=function(f){f=f.isActive();f!==this.N&&(f?this.G():(fq().Y=new xd(0,0,0,0),this.Y=new xd(0,0,0,0),this.T=new xd(0,0,0,0),this.timestamp=-1));this.N=f};var KF={},cgu=(KF.firstquartile=0,KF.midpoint=1,KF.thirdquartile=2,KF.complete=3,KF);g.C(eg,MQ);g.d=eg.prototype;g.d.RI=function(){return!0}; g.d.Av=function(){return this.Pn==2}; g.d.uZ=function(f){return puX(this,f,Math.max(1E4,this.B/3))}; g.d.u3=function(f,D,F,Z,I,p,z){var H=this,K=this.S(this)||{};g.ai(K,I);this.B=K.duration||this.B;this.Jb=K.isVpaid||this.Jb;this.jT=K.isYouTube||this.jT;aE();this.JN=!1;I=Q0E(this,D);dmu(this)===1&&(p=I);MQ.prototype.u3.call(this,f,D,F,Z,K,p,z);this.cO&&this.cO.B&&g.hC(this.T,function(k){k.J(H)})}; g.d.TL=function(f,D,F){MQ.prototype.TL.call(this,f,D,F);Oj(this).update(f,D,this.UG,F);this.eT=Uj(this.UG)&&Uj(D);this.Tx==-1&&this.b3&&(this.Tx=this.yZ().B.Y);this.pK.B=0;f=this.GS();D.isVisible()&&WM(this.pK,"vs");f&&WM(this.pK,"vw");Yz(D.volume)&&WM(this.pK,"am");Uj(D)?WM(this.pK,"a"):WM(this.pK,"mut");this.l6&&WM(this.pK,"f");D.J!=-1&&(WM(this.pK,"bm"),D.J==1&&(WM(this.pK,"b"),Uj(D)&&WM(this.pK,"umutb")));Uj(D)&&D.isVisible()&&WM(this.pK,"avs");this.eT&&f&&WM(this.pK,"avw");D.dU>0&&WM(this.pK, "pv");nq(this,this.yZ().B.Y,!0)&&WM(this.pK,"gdr");Rc(this.yZ().J,1)>=2E3&&WM(this.pK,"pmx");this.JN&&WM(this.pK,"tvoff")}; g.d.sz=function(){return new rm}; g.d.yZ=function(){return this.sO}; g.d.iV=function(){return new KJy}; g.d.X8=function(f,D,F,Z){f=MQ.prototype.X8.call(this,f,D,F,Z===void 0?-1:Z);f.fullscreen=this.l6;f.paused=this.Av();f.volume=F.volume;Yz(f.volume)||(this.Uq++,D=this.UG,Yz(D.volume)&&(f.volume=D.volume));F=F.currentTime;f.mediaTime=F!==void 0&&F>=0?F:-1;return f}; g.d.QM=function(f){return fq(),this.l6?1:MQ.prototype.QM.call(this,f)}; g.d.UD=function(){return 1}; g.d.getDuration=function(){return this.B}; g.d.A0=function(){return this.fm?2:mmu(this)?5:this.GS()?4:3}; g.d.Oz=function(){return this.G3?this.yZ().X.B>=2E3?4:3:2}; g.d.k9=function(f){this.gU&&this.gU.k9(f)};var WnJ=g.We();EeI.prototype.reset=function(){this.Y=[];this.J=[]}; var ZY=U5(EeI);g.C(zh,qQ);g.d=zh.prototype;g.d.getName=function(){return(this.J?this.J:this.Y).getName()}; g.d.R0=function(){return(this.J?this.J:this.Y).R0()}; g.d.yq=function(){return(this.J?this.J:this.Y).yq()}; g.d.init=function(f){var D=!1;(0,g.hC)(this.B,function(F){F.initialize()&&(D=!0)}); D&&(this.G=f,pq(this.Y,this));return D}; g.d.dispose=function(){(0,g.hC)(this.B,function(f){f.dispose()}); qQ.prototype.dispose.call(this)}; g.d.uG=function(){return PV(this.B,function(f){return f.Aq()})}; g.d.aH=function(){return PV(this.B,function(f){return f.Aq()})}; g.d.oL=function(f,D,F){return new uD(f,this.Y,D,F)}; g.d.JX=function(f){this.J=f.J};var neE={threshold:[0,.3,.5,.75,1]};g.C(sN,uD);g.d=sN.prototype;g.d.observe=function(){var f=this;this.KQ||(this.KQ=JL());if(VQD(298,function(){return YRJ(f)}))return!0; this.J.fail("msf");return!1}; g.d.unobserve=function(){if(this.G&&this.element)try{this.G.unobserve(this.element),this.N?(this.N.unobserve(this.element),this.N=null):this.S&&(this.S.disconnect(),this.S=null)}catch(f){}}; g.d.I0=function(){var f=qk(this);f.length>0&&Hz(this,f);uD.prototype.I0.call(this)}; g.d.ZI=function(){}; g.d.LA=function(){return!1}; g.d.RJ=function(){}; g.d.R0=function(){var f={};return Object.assign(this.J.R0(),(f.niot_obs=this.KQ,f.niot_cbk=this.Bs,f))}; g.d.getName=function(){return"nio"};g.C(oX,qQ);oX.prototype.getName=function(){return"nio"}; oX.prototype.aH=function(){return!fq().J&&this.Y.Y.B.IntersectionObserver!=null}; oX.prototype.oL=function(f,D,F){return new sN(f,this.Y,D,F)};g.C(KB,Ic);KB.prototype.iZ=function(){return fq().Y}; KB.prototype.Aq=function(){var f=fHa();this.N!==f&&(this.Y!=this&&f>this.Y.N&&(this.Y=this,z$(this)),this.N=f);return f==2};kG.prototype.sample=function(){h6(this,IX(),!1)}; kG.prototype.G=function(){var f=Fb(),D=JL();f?(NX||(gy=D,g.hC(ZY.Y,function(F){var Z=F.yZ();Z.dY=Lq(Z,D,F.Pn!=1)})),NX=!0):(this.S=p3D(this,D),NX=!1,Umy=D,g.hC(ZY.Y,function(F){F.nk&&(F.yZ().N=D)})); h6(this,IX(),!f)}; var j6=U5(kG);var sud=null,u8="",J6=!1;var o0I=H4f().Hr,A6=H4f().e7;var juE={Llo:"visible",Xnr:"audible",Fds:"time",N3r:"timetype"},i4u={visible:function(f){return/^(100|[0-9]{1,2})$/.test(f)}, audible:function(f){return f=="0"||f=="1"}, timetype:function(f){return f=="mtos"||f=="tos"}, time:function(f){return/^(100|[0-9]{1,2})%$/.test(f)||/^([0-9])+ms$/.test(f)}}; k7T.prototype.setTime=function(f,D,F){D=="ms"?(this.B=f,this.G=-1):(this.B=-1,this.G=f);this.X=F===void 0?"tos":F;return this};g.C(dw,lD);dw.prototype.getId=function(){return this.S}; dw.prototype.T=function(){return!0}; dw.prototype.Y=function(f){var D=f.yZ(),F=f.getDuration();return PV(this.N,function(Z){if(Z.Y!=void 0)var I=yza(Z,D);else b:{switch(Z.X){case "mtos":I=Z.J?D.X.B:D.B.Y;break b;case "tos":I=Z.J?D.X.Y:D.B.Y;break b}I=0}I==0?Z=!1:(Z=Z.B!=-1?Z.B:F!==void 0&&F>0?Z.G*F:-1,Z=Z!=-1&&I>=Z);return Z})};g.C(QF,hBE);QF.prototype.Y=function(f){var D=new iru;D.Y=wm(f,vxy);D.J=wm(f,GoD);return D};g.C(CB,lD);CB.prototype.Y=function(f){return mmu(f)};g.C(mR,RBa);g.C(cz,lD);cz.prototype.Y=function(f){return f.yZ().GS()};g.C(UN,Ej);UN.prototype.Y=function(f){var D=g.e0(this.S,JC(hL().zT,"ovms"));return!f.fm&&(f.Pn!=0||D)};g.C(vz,mR);vz.prototype.J=function(){return new UN(this.Y)}; vz.prototype.B=function(){return[new cz("viewable_impression",this.Y),new CB(this.Y)]};g.C(aX,NQ);aX.prototype.G=function(){var f=g.QY("ima.admob.getViewability"),D=JC(this.zT,"queryid");typeof f==="function"&&D&&f(D)}; aX.prototype.getName=function(){return"gsv"};g.C(Gh,qQ);Gh.prototype.getName=function(){return"gsv"}; Gh.prototype.aH=function(){var f=fq();hL();return f.J&&!1}; Gh.prototype.oL=function(f,D,F){return new aX(this.Y,D,F)};g.C(ww,NQ);ww.prototype.G=function(){var f=this,D=g.QY("ima.bridge.getNativeViewability"),F=JC(this.zT,"queryid");typeof D==="function"&&F&&D(F,function(Z){g.tC(Z)&&f.S++;var I=Z.opt_nativeViewVisibleBounds||{},p=Z.opt_nativeViewHidden;f.Y=MQJ(Z.opt_nativeViewBounds||{});var z=f.J.G;z.Y=p?wJy.clone():MQJ(I);f.timestamp=Z.opt_nativeTime||-1;fq().Y=z.Y;Z=Z.opt_nativeVolume;Z!==void 0&&(z.volume=Z)})}; ww.prototype.getName=function(){return"nis"};g.C(Wz,qQ);Wz.prototype.getName=function(){return"nis"}; Wz.prototype.aH=function(){var f=fq();hL();return f.J&&!1}; Wz.prototype.oL=function(f,D,F){return new ww(this.Y,D,F)};g.C(Bz,Ic);g.d=Bz.prototype;g.d.Aq=function(){return this.J.q9!=null}; g.d.rz=function(){var f={};this.rY&&(f.mraid=this.rY);this.xo&&(f.mlc=1);f.mtop=this.J.BMs;this.S&&(f.mse=this.S);this.Ir&&(f.msc=1);f.mcp=this.J.compatibility;return f}; g.d.nB=function(f){var D=g.hv.apply(1,arguments);try{return this.J.q9[f].apply(this.J.q9,D)}catch(F){Eo(538,F,.01,function(Z){Z.method=f})}}; g.d.initialize=function(){var f=this;if(this.isInitialized)return!this.Jn();this.isInitialized=!0;if(this.J.compatibility===2)return this.S="ng",this.fail("w"),!1;if(this.J.compatibility===1)return this.S="mm",this.fail("w"),!1;fq().N=!0;this.B.document.readyState&&this.B.document.readyState=="complete"?RWT(this):mo(this.B,"load",function(){aE().setTimeout(li(292,function(){return RWT(f)}),100)},292); return!0}; g.d.Fg=function(){var f=fq(),D=T9J(this,"getMaxSize");f.Y=new xd(0,D.width,D.height,0)}; g.d.Ng=function(){fq().G=T9J(this,"getScreenSize")}; g.d.dispose=function(){QuX(this);Ic.prototype.dispose.call(this)};var B3y=new function(f,D){this.key=f;this.defaultValue=D===void 0?!1:D;this.valueType="boolean"}("45378663");g.d=LB.prototype;g.d.GB=function(f){tt(f,!1);geu(f)}; g.d.fV=function(){}; g.d.qq=function(f,D,F,Z){var I=this;f=new eg(l5,f,F?D:-1,7,this.w0(),this.SF());f.SA=Z;q0a(f.zT);EQ(f.zT,"queryid",f.SA);f.m6("");qRT(f,function(){return I.q2.apply(I,g.w(g.hv.apply(0,arguments)))},function(){return I.OQr.apply(I,g.w(g.hv.apply(0,arguments)))}); (Z=U5(pB).Y)&&I$J(f,Z);this.B&&(f.k9(this.B),this.B=null);f.I2.WY&&U5(Doc);return f}; g.d.Ec=function(f){switch(f.yq()){case 0:if(f=U5(pB).Y)f=f.Y,g.no(f.X,this),f.Jb&&this.RI()&&axX(f);EN();break;case 2:i8()}}; g.d.JX=function(){}; g.d.RI=function(){return!1}; g.d.OQr=function(f,D){f.fm=!0;switch(f.UD()){case 1:Uow(f,D);break;case 2:this.df(f)}}; g.d.HQy=function(f){var D=f.S(f);D&&(D=D.volume,f.G3=Yz(D)&&D>0);MOw(f,0);return PM(f,"start",Fb())}; g.d.TH=function(f,D,F){h6(j6,[f],!Fb());return this.md(f,D,F)}; g.d.md=function(f,D,F){return PM(f,F,Fb())}; g.d.VTr=function(f){return xG(f,"firstquartile",1)}; g.d.Rdx=function(f){f.b3=!0;return xG(f,"midpoint",2)}; g.d.AbI=function(f){return xG(f,"thirdquartile",3)}; g.d.oo3=function(f){var D=xG(f,"complete",4);xt(f);return D}; g.d.LIr=function(f){f.Pn=3;return PM(f,"error",Fb())}; g.d.Pz=function(f,D,F){D=Fb();if(f.Av()&&!D){var Z=f.yZ(),I=JL();Z.N=I}h6(j6,[f],!D);f.Av()&&(f.Pn=1);return PM(f,F,D)}; g.d.wsb=function(f,D){D=this.TH(f,D||{},"skip");xt(f);return D}; g.d.yby=function(f,D){tt(f,!0);return this.TH(f,D||{},"fullscreen")}; g.d.psY=function(f,D){tt(f,!1);return this.TH(f,D||{},"exitfullscreen")}; g.d.Bg=function(f,D,F){D=f.yZ();var Z=JL();D.dY=Lq(D,Z,f.Pn!=1);h6(j6,[f],!Fb());f.Pn==1&&(f.Pn=2);return PM(f,F,Fb())}; g.d.iQo=function(f){h6(j6,[f],!Fb());return f.J()}; g.d.Ij=function(f){h6(j6,[f],!Fb());this.rW(f);xt(f);return f.J()}; g.d.q2=function(){}; g.d.df=function(){}; g.d.rW=function(){}; g.d.Q_=function(){}; g.d.HG=function(){}; g.d.SF=function(){this.Y||(this.Y=this.HG());return this.Y==null?new Jt:new vz(this.Y)}; g.d.w0=function(){return new QF};g.C(Xn,lD);Xn.prototype.Y=function(f){return f.Oz()==4};g.C(ON,Ej);ON.prototype.Y=function(f){f=f.Oz();return f==3||f==4};g.C(nB,mR);nB.prototype.J=function(){return new ON(this.Y)}; nB.prototype.B=function(){return[new Xn(this.Y)]};g.C(YG,hBE);YG.prototype.Y=function(f){f&&(f.e===28&&(f=Object.assign({},f,{avas:3})),f.vs===4||f.vs===5)&&(f=Object.assign({},f,{vs:3}));var D=new iru;D.Y=wm(f,anw);D.J=wm(f,GoD);return D};w3w.prototype.J=function(){return g.QY(this.Y)};g.C(Pz,LB);g.d=Pz.prototype;g.d.fV=function(f,D){var F=this,Z=U5(pB);if(Z.Y!=null)switch(Z.Y.getName()){case "nis":var I=LvD(this,f,D);break;case "gsv":I=rzJ(this,f,D);break;case "exc":I=lHu(this,f)}I||(D.opt_overlayAdElement?I=void 0:D.opt_adElement&&(I=aHu(this,f,D.opt_adElement,D.opt_osdId)));I&&I.UD()==1&&(I.S==g.u5&&(I.S=function(p){return F.Q_(p)}),B9a(this,I,D)); return I}; g.d.Q_=function(f){f.J=0;f.zx=0;if(f.G=="h"||f.G=="n"){hL();f.LQ&&(hL(),gw(this)!="h"&&gw(this));var D=g.QY("ima.common.getVideoMetadata");if(typeof D==="function")try{var F=D(f.SA)}catch(I){f.J|=4}else f.J|=2}else if(f.G=="b")if(D=g.QY("ytads.bulleit.getVideoMetadata"),typeof D==="function")try{F=D(f.SA)}catch(I){f.J|=4}else f.J|=2;else if(f.G=="ml")if(D=g.QY("ima.common.getVideoMetadata"),typeof D==="function")try{F=D(f.SA)}catch(I){f.J|=4}else f.J|=2;else f.J|=1;f.J||(F===void 0?f.J|=8:F===null? f.J|=16:g.tC(F)?f.J|=32:F.errorCode!=null&&(f.zx=F.errorCode,f.J|=64));F==null&&(F={});D=F;f.N=0;for(var Z in b9c)D[Z]==null&&(f.N|=b9c[Z]);G7u(D,"currentTime");G7u(D,"duration");Yz(F.volume)&&Yz()&&(F.volume*=NaN);return F}; g.d.HG=function(){hL();gw(this)!="h"&&gw(this);var f=E0u(this);return f!=null?new w3w(f):null}; g.d.df=function(f){!f.Y&&f.fm&&e6(this,f,"overlay_unmeasurable_impression")&&(f.Y=!0)}; g.d.rW=function(f){f.Ex&&(f.GS()?e6(this,f,"overlay_viewable_end_of_session_impression"):e6(this,f,"overlay_unviewable_impression"),f.Ex=!1)}; g.d.q2=function(){}; g.d.qq=function(f,D,F,Z){if(hL().flags.Kp(B3y)){var I=JC(hL().zT,"mm"),p={};(I=(p[ii.AI]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",p[ii.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",p)[I])&&g0u(this,I);this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Eo(1044,Error())}f=LB.prototype.qq.call(this,f,D,F,Z);this.X&&(D=this.T,f.X==null&&(f.X=new HrX),D.Y[f.SA]=f.X,f.X.X=WnJ);return f}; g.d.GB=function(f){f&&f.UD()==1&&this.X&&delete this.T.Y[f.SA];return LB.prototype.GB.call(this,f)}; g.d.SF=function(){this.Y||(this.Y=this.HG());return this.Y==null?new Jt:this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new nB(this.Y):new vz(this.Y)}; g.d.w0=function(){return this.G==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new YG:new QF}; g.d.k9=function(f,D,F,Z,I){D=new xd(F,D+Z,F+I,D);(f=Fn(ZY,f))?f.k9(D):this.B=D}; var rHI=L8(193,xoE,void 0,v0s);g.dE("Goog_AdSense_Lidar_sendVastEvent",rHI);var Lnw=li(194,function(f,D){D=D===void 0?{}:D;f=N9d(U5(Pz),f,D);return eWJ(f)}); g.dE("Goog_AdSense_Lidar_getViewability",Lnw);var lnf=L8(195,function(){return l0u()}); g.dE("Goog_AdSense_Lidar_getUrlSignalsArray",lnf);var ExI=li(196,function(){return JSON.stringify(l0u())}); g.dE("Goog_AdSense_Lidar_getUrlSignalsList",ExI);var n0y=g.eu(["//ep2.adtrafficquality.google/sodar/",""]),Y8c=g.eu(["//tpc.googlesyndication.com/sodar/",""]);g.C(Fv,Error);g.C(pg,g.J);pg.prototype.ZL=function(){return this.wpc.f()}; pg.prototype.RC=function(f){this.wpc.c(f)}; pg.prototype.Q7=function(f){return this.wpc.m(FZs(f))}; pg.prototype.aR=function(f){return this.wpc.mws(FZs(f))}; g.C(Zi,g.J);Zi.prototype.snapshot=function(f){return this.q7.s(Object.assign({},f.Au&&{c:f.Au},f.Nw&&{s:f.Nw},f.g1!==void 0&&{p:f.g1}))}; Zi.prototype.Am=function(f){this.q7.e(f)}; Zi.prototype.Gu=function(){return this.q7.l()};g.C(sI,g.J);sI.prototype.share=function(){if(this.MR())throw Error("E:AD");this.J++;return this}; sI.prototype.dispose=function(){--this.J||g.J.prototype.dispose.call(this)};qBI.prototype.Qg=function(f,D){this.Y.Qg("/client_streamz/bg/frs",f,D)}; HAf.prototype.Qg=function(f,D,F,Z,I,p){this.Y.Qg("/client_streamz/bg/wrl",f,D,F,Z,I,p)}; oEI.prototype.Dx=function(f,D){this.Y.n1("/client_streamz/bg/ec",f,D)}; KZJ.prototype.Qg=function(f,D,F){this.Y.Qg("/client_streamz/bg/el",f,D,F)}; kUI.prototype.Dx=function(f,D){this.Y.n1("/client_streamz/bg/cec",f,D)}; jQa.prototype.Dx=function(f,D){this.Y.n1("/client_streamz/bg/po/csc",f,D)}; iAJ.prototype.Dx=function(f,D){this.Y.n1("/client_streamz/bg/po/ctav",f,D)}; hoa.prototype.Dx=function(f,D){this.Y.n1("/client_streamz/bg/po/cwsc",f,D)};g.C(yUa,EB);g.C(oB,EB);var $f=[1,2,3];var JHT=[0,$f,Q9a,h8D,R8d];var uiX=[0,fF,[0,s9d,oxu]];g.C(Kg,EB);var Ab=[1,2,3];var N3d=[0,Ab,koT,H9d,F0,uiX];g.C(kf,EB);var gxf=[0,fF,JHT,N3d];var e8J=[0,PA];g.C(jl,EB);var xnX=[0,PA,-1,VND];var XJI=[0,PA,-1,j9d,VND];g.C(iJ,EB);var xPc=[1,2,3];var O9X=[0,xPc,F0,xnX,F0,XJI,F0,e8J];g.C(y8,EB);y8.prototype.OS=function(){var f=QN(this,3,eO,3,!0);pr(f);return f[void 0]};y8.prototype.B=eMT([0,PA,O9X,dnE,fF,gxf,yHT,AHE]);g.C($0a,EB);g.d=V8.prototype;g.d.isEnabled=function(){if(!g.RU.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{AA:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.d.set=function(f,D,F){var Z=!1;if(typeof F==="object"){var I=F.sameSite;Z=F.secure||!1;var p=F.domain||void 0;var z=F.path||void 0;var H=F.AA}if(/[;=\s]/.test(f))throw Error('Invalid cookie name "'+f+'"');if(/[;\r\n]/.test(D))throw Error('Invalid cookie value "'+D+'"');H===void 0&&(H=-1);F=p?";domain="+p:"";z=z?";path="+z:"";Z=Z?";secure":"";H=H<0?"":H==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+H*1E3)).toUTCString();this.Y.cookie=f+"="+D+F+z+H+Z+(I!=null? ";samesite="+I:"")}; g.d.get=function(f,D){for(var F=f+"=",Z=(this.Y.cookie||"").split(";"),I=0,p;I=0;D--)this.remove(f[D])}; var BR=new V8(typeof document=="undefined"?null:document);d$.prototype.compress=function(f){var D,F,Z,I;return g.l(function(p){switch(p.Y){case 1:return D=new CompressionStream("gzip"),F=(new Response(D.readable)).arrayBuffer(),Z=D.writable.getWriter(),g.r(p,Z.write((new TextEncoder).encode(f)),2);case 2:return g.r(p,Z.close(),3);case 3:return I=Uint8Array,g.r(p,F,4);case 4:return p.return(new I(p.J))}})}; d$.prototype.isSupported=function(f){return f<1024?!1:typeof CompressionStream!=="undefined"};g.C(Q8,EB);Cg.prototype.setInterval=function(f){this.intervalMs=f;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Cg.prototype.start=function(){var f=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){f.tick()},this.intervalMs),this.J=this.Y())}; Cg.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Cg.prototype.tick=function(){var f=this;if(this.enabled){var D=Math.max(this.Y()-this.J,0);D0?F:void 0));F=Az(F,4,SO(I>0?I:void 0));F=Az(F,5,SO(p>0?p:void 0));I=F.Bk;p=I[fr]|0;F=I0(F,p)?F:H3(F,I,p)?ou(F,I):new F.constructor(qo(I,p,!0));E8(z,g.bJ,10,F)}z=this.Y.clone();F=Date.now().toString();z=Az(z,4,lW(F));f=Jz(z,GK,3,f.slice());Z&&(z=new mN,Z=Az(z,13,SO(Z)),z= new TK,Z=E8(z,mN,2,Z),z=new aB,Z=E8(z,TK,1,Z),Z=fA(Z,2,9),E8(f,aB,18,Z));D&&n4(f,14,D);return f};g.Lg.prototype.J=0;g.Lg.prototype.reset=function(){this.Y=this.B=this.G;this.J=0}; g.Lg.prototype.getValue=function(){return this.B};g.C(o_,EB);var nxw=K8(o_);g.C(uAf,EB);var kF;kF=new NLf;g.C(uJ,g.J);g.d=uJ.prototype;g.d.Ey=function(){Jb(this);this.J.stop();this.rY.stop();g.J.prototype.Ey.call(this)}; g.d.dispatch=function(f){if(f instanceof GK)this.log(f);else try{var D=new GK,F=f.s6();var Z=Y0(D,8,F);this.log(Z)}catch(I){N_(this,4,1)}}; g.d.log=function(f){N_(this,2,1);if(this.Ir){f=f.clone();var D=this.Ps++;f=n4(f,21,D);this.componentId&&Y0(f,26,this.componentId);D=f;var F=hz(D,1);var Z=Z===void 0?!1:Z;var I=typeof F;Z=F==null?F:I==="bigint"?String(GA(64,F)):tg(F)?I==="string"?a0(F):Z?w1(F):Wu(F):void 0;Z==null&&(Z=Date.now(),Z=Number.isFinite(Z)?Z.toString():"0",Az(D,1,lW(Z)));(vu?TlI(hz(D,15,void 0,void 0,Nm)):TlI(hz(D,15)))!=null||n4(D,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Z=this.experimentIds.clone(),E8(D, Q8,16,Z));N_(this,1,1);D=this.Y.length-1E3+1;D>0&&(this.Y.splice(0,D),this.G+=D,N_(this,3,D));this.Y.push(f);this.Yx||this.J.enabled||this.J.start()}}; g.d.flush=function(f,D){var F=this;if(this.Y.length===0)f&&f();else if(this.Tx&&this.Bs)this.B.J=3,JUD(this);else{var Z=Date.now();if(this.dY>Z&&this.zx0&&(F.zx=Date.now(),F.dY=F.zx+A);A=Be(Ye);var m;P9&&A&&((m=V.Bk[A])==null?void 0:m[175237375])!=null&&O5(Emy,3);a:{var b=b===void 0?!1:b;if(Be(Jda)&&Be(Ye)&&void 0===Jda){m=V.Bk;A=m[Ye];if(!A)break a;if(A=A.A4)try{A(m,175237375,X_E);break a}catch(U){wi(U)}}b&&(b=V.Bk, (m=Be(Ye))&&m in b&&(b=b[m])&&delete b[175237375])}b=kF.Y?kF.J(V,kF.Y,175237375,kF.B):kF.J(V,175237375,null,kF.B);if(b=b===null?void 0:b)b=g.No(b,1,-1),b!==-1&&(F.X=new g.Lg(b<1?1:b,3E5,.1),F.J.setInterval(F.X.getValue()))}}f&&f();F.T=0},h=function(A,V){var R=lE(p,GK,3); var m=Number(FKd(p,14));g.lJ(F.X);F.J.setInterval(F.X.getValue());A===401&&z&&(F.jT=z);m&&(F.G+=m);V===void 0&&(V=F.isRetryable(A));V&&(F.Y=R.concat(F.Y),F.Yx||F.J.enabled||F.J.start());N_(F,7,1);D&&D("net-send-failed",A);++F.T},y=function(){F.network&&F.network.send(K,k,h)}; H?H.then(function(A){N_(F,5,I);K.requestHeaders["Content-Encoding"]="gzip";K.requestHeaders["Content-Type"]="application/binary";K.body=A;K.aB=2;y()},function(){N_(F,6,I); y()}):y()}}}}; g.d.isRetryable=function(f){return 500<=f&&f<600||f===401||f===0};g$.prototype.send=function(f,D,F){var Z=this,I,p,z,H,K,k,h,y,A,V;return g.l(function(R){switch(R.Y){case 1:return p=(I=Z.rX?new AbortController:void 0)?setTimeout(function(){I.abort()},f.timeoutMillis):void 0,g.po(R,2,3),z=Object.assign({},{method:f.requestType, headers:Object.assign({},f.requestHeaders)},f.body&&{body:f.body},f.withCredentials&&{credentials:"include"},{signal:f.timeoutMillis&&I?I.signal:null}),g.r(R,fetch(f.url,z),5);case 5:H=R.J;if(H.status!==200){(K=F)==null||K(H.status);R.ZE(3);break}if((k=D)==null){R.ZE(7);break}return g.r(R,H.text(),8);case 8:k(R.J);case 7:case 3:g.oU(R);clearTimeout(p);g.Ko(R,0);break;case 2:h=g.He(R);switch((y=h)==null?void 0:y.name){case "AbortError":(A=F)==null||A(408);break;default:(V=F)==null||V(400)}R.ZE(3)}})}; g$.prototype.xE=function(){return 4};g.C(el,g.J);el.prototype.GJ=function(){this.G=!0;return this}; el.prototype.build=function(){this.network||(this.network=new g$);var f=new uJ({logSource:this.logSource,iQ:this.iQ?this.iQ:SBc,sessionIndex:this.sessionIndex,YWr:this.F_,JO:this.B,Yx:!1,GJ:this.G,Pj:this.Pj,network:this.network});g.N(this,f);if(this.buildLabel){var D=this.buildLabel,F=r$(f.B);Y0(F,7,D)}f.S=new d$;this.componentId&&(f.componentId=this.componentId);this.v0&&(f.v0=this.v0);this.pageId&&(f.pageId=this.pageId);this.Y&&((F=this.Y)?(f.experimentIds||(f.experimentIds=new Q8),D=f.experimentIds, F=F.s6(),Y0(D,4,F)):f.experimentIds&&Az(f.experimentIds,4));this.J&&(f.Tx=f.Bs);BIX(f.B);this.network.DC&&this.network.DC(this.logSource);this.network.vWE&&this.network.vWE(f);return f};g.C(xf,g.J);xf.prototype.flush=function(f){f=f||[];if(f.length){for(var D=new $0a,F=[],Z=0;Z-1?(D=f[z],F||(D.u$=!1)):(D=new nEJ(D,this.src,p,!!Z,I),D.u$=F,f.push(D));return D}; g.d.remove=function(f,D,F,Z){f=f.toString();if(!(f in this.listeners))return!1;var I=this.listeners[f];D=pz(I,D,F,Z);return D>-1?(F6(I[D]),g.xn(I,D),I.length==0&&(delete this.listeners[f],this.Y--),!0):!1}; g.d.removeAll=function(f){f=f&&f.toString();var D=0,F;for(F in this.listeners)if(!f||F==f){for(var Z=this.listeners[F],I=0;I-1?f[I]:null}; g.d.hasListener=function(f,D){var F=f!==void 0,Z=F?f.toString():"",I=D!==void 0;return g.Kf(this.listeners,function(p){for(var z=0;z>>0);g.rE(g.i7,g.J);g.i7.prototype[Xoa]=!0;g.d=g.i7.prototype;g.d.addEventListener=function(f,D,F,Z){g.sD(this,f,D,F,Z)}; g.d.removeEventListener=function(f,D,F,Z){IjI(this,f,D,F,Z)}; g.d.dispatchEvent=function(f){var D=this.td;if(D){var F=[];for(var Z=1;D;D=D.td)F.push(D),++Z}D=this.je;Z=f.type||f;if(typeof f==="string")f=new g.PP(f,D);else if(f instanceof g.PP)f.target=f.target||D;else{var I=f;f=new g.PP(Z,D);g.ai(f,I)}I=!0;var p;if(F)for(p=F.length-1;!f.J&&p>=0;p--){var z=f.currentTarget=F[p];I=hs(z,Z,!0,f)&&I}f.J||(z=f.currentTarget=D,I=hs(z,Z,!0,f)&&I,f.J||(I=hs(z,Z,!1,f)&&I));if(F)for(p=0;!f.J&&p0){this.J--;var f=this.Y;this.Y=f.next;f.next=null}else f=this.B();return f};var $Q;Rv.prototype.add=function(f,D){var F=ozD.get();F.set(f,D);this.J?this.J.next=F:this.Y=F;this.J=F}; Rv.prototype.remove=function(){var f=null;this.Y&&(f=this.Y,this.Y=this.Y.next,this.Y||(this.J=null),f.next=null);return f}; var ozD=new yp(function(){return new dG},function(f){return f.reset()}); dG.prototype.set=function(f,D){this.Y=f;this.scope=D;this.next=null}; dG.prototype.reset=function(){this.next=this.scope=this.Y=null};var Qp,Cz=!1,qoc=new Rv;KXD.prototype.reset=function(){this.context=this.J=this.B=this.Y=null;this.G=!1}; var kWs=new yp(function(){return new KXD},function(f){f.reset()}); g.b7.prototype.then=function(f,D,F){return dXD(this,As(typeof f==="function"?f:null),As(typeof D==="function"?D:null),F)}; g.b7.prototype.$goog_Thenable=!0;g.d=g.b7.prototype;g.d.finally=function(f){var D=this;f=As(f);return new g.b7(function(F,Z){yLs(D,function(I){f();F(I)},function(I){f(); Z(I)})})}; g.d.U3=function(f,D){return dXD(this,null,As(f),D)}; g.d.catch=g.b7.prototype.U3;g.d.cancel=function(f){if(this.Y==0){var D=new vl(f);g.mF(function(){ALd(this,D)},this)}}; g.d.RiT=function(f){this.Y=0;T2(this,2,f)}; g.d.iwI=function(f){this.Y=0;T2(this,3,f)}; g.d.mW=function(){for(var f;f=$Xs(this);)VDD(this,f,this.Y,this.S);this.T=!1}; var TyJ=wi;g.rE(vl,lX);vl.prototype.name="cancel";g.rE(g.av,g.i7);g.d=g.av.prototype;g.d.enabled=!1;g.d.AZ=null;g.d.setInterval=function(f){this.cV=f;this.AZ&&this.enabled?(this.stop(),this.start()):this.AZ&&this.stop()}; g.d.rJx=function(){if(this.enabled){var f=g.We()-this.qo;f>0&&f0&&(this.getStatus(),this.T=setTimeout(this.qC.bind(this), this.Bs)),this.getStatus(),this.Jb=!0,this.Y.send(f),this.Jb=!1}catch(z){this.getStatus(),lju(this,z)}}; g.d.qC=function(){typeof u7!="undefined"&&this.Y&&(this.G="Timed out after "+this.Bs+"ms, aborting",this.J=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.d.abort=function(f){this.Y&&this.B&&(this.getStatus(),this.B=!1,this.X=!0,this.Y.abort(),this.X=!1,this.J=f||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Js(this))}; g.d.Ey=function(){this.Y&&(this.B&&(this.B=!1,this.X=!0,this.Y.abort(),this.X=!1),Js(this,!0));g.ED.YK.Ey.call(this)}; g.d.ji=function(){this.MR()||(this.xo||this.Jb||this.X?EzI(this):this.MxI())}; g.d.MxI=function(){EzI(this)}; g.d.isActive=function(){return!!this.Y}; g.d.isComplete=function(){return g.N4(this)==4}; g.d.getStatus=function(){try{return g.N4(this)>2?this.Y.status:-1}catch(f){return-1}}; g.d.getResponseHeader=function(f){if(this.Y&&this.isComplete())return f=this.Y.getResponseHeader(f),f===null?void 0:f}; g.d.getLastError=function(){return typeof this.G==="string"?this.G:String(this.G)};OD.prototype.send=function(f,D,F){D=D===void 0?function(){}:D; F=F===void 0?function(){}:F; rLJ(f.url,function(Z){Z=Z.target;gG(Z)?D(g.ey(Z)):F(Z.getStatus())},f.requestType,f.body,f.requestHeaders,f.timeoutMillis,f.withCredentials)}; OD.prototype.xE=function(){return 1};YQ.prototype.done=function(){this.logger.Ct(this.event,nz()-this.startTime)}; g.C(Pl,sI);g.C(DE,Pl);g.d=DE.prototype;g.d.LS=function(){}; g.d.Ma=function(){}; g.d.Ct=function(){}; g.d.Q$=function(){}; g.d.kt=function(){}; g.d.pS=function(f,D,F,Z){return Z}; g.d.w_=function(){}; g.d.Vb=function(){}; g.d.Rl=function(){}; g.C(Ff,Pl);g.d=Ff.prototype;g.d.update=function(f){this.logger.dispose();this.logger=f}; g.d.Ma=function(f){this.logger.Ma(f)}; g.d.Ct=function(f,D){this.logger.Ct(f,D)}; g.d.Q$=function(f){this.logger.Q$(f)}; g.d.kt=function(){this.logger.kt()}; g.d.pS=function(f,D,F,Z){return this.logger.pS(f,D,F,Z)}; g.d.w_=function(f){this.logger.w_(f)}; g.d.Vb=function(f){this.logger.Vb(f)}; g.d.Rl=function(f){this.logger.Rl(f)}; g.d.LS=function(f){this.logger.LS(f)}; g.C(gzD,g.J);g.C(ZE,Pl);g.d=ZE.prototype;g.d.LS=function(f){this.metrics.Kho.Qg(f,this.xC)}; g.d.Ma=function(f){this.metrics.eventCount.Dx(f,this.xC)}; g.d.Ct=function(f,D){this.metrics.Uh.Qg(D,f,this.xC)}; g.d.Q$=function(f){this.metrics.errorCount.Dx(f,this.xC)}; g.d.pS=function(f,D,F,Z){function I(H){if(!p.MR()){var K=nz()-z;p.metrics.XVE.Qg(K,f,F,H,D,p.xC)}} var p=this,z=nz();Z.then(function(){return void I(0)},function(H){return void I(H instanceof Bl?H.code:-1)}); return Z}; g.d.w_=function(f){this.metrics.hnT.Dx(f,this.xC)}; g.d.Vb=function(f){this.metrics.sB.Dx(f,this.xC)}; g.d.Rl=function(f){this.metrics.UMy.Dx(f,this.xC)}; g.C(I5,ZE);I5.prototype.kt=function(){eau(this.Y)};g.C(pQ,EB);g.C(zd,EB);g.C(se,EB);var zgc=K8(se),XVs=function(f){return c9(function(D){return D instanceof f&&!I0(D)})}(se); se.messageId="bfkj";g.C(zK,EB);g.C(qW,EB);var O8D=K8(qW);g.C(o5,g.J);o5.prototype.snapshot=function(f){if(this.MR())throw Error("Already disposed");this.logger.Ma("n");var D=this.logger.share();return this.B.then(function(F){var Z=F.p$;return new Promise(function(I){var p=new YQ(D,"n");Z(function(z){p.done();D.LS(z.length);D.kt();D.dispose();I(z)},[f.Au, f.Nw,f.OM,f.g1])})})}; o5.prototype.h_=function(f){var D=this;if(this.MR())throw Error("Already disposed");this.logger.Ma("n");var F=fQ(this.logger,function(){return D.G([f.Au,f.Nw,f.OM,f.g1])},"n"); this.logger.LS(F.length);this.logger.kt();return F}; o5.prototype.Am=function(f){this.B.then(function(D){var F;(F=D.u6I)==null||F(f)})}; o5.prototype.Gu=function(){return this.logger.share()};g.C(jv,EB);g.C(ik,EB);hi.prototype.h8=function(f){return otf(this,f,new DE,0)};g.C(yL,g.J);g.d=yL.prototype;g.d.snapshot=function(f){var D=this;return g.l(function(F){switch(F.Y){case 1:if(D.MR())throw Error("Already disposed");if(D.J||D.S){F.ZE(2);break}return g.r(F,D.X.promise,2);case 2:if(!D.J){F.ZE(4);break}return g.r(F,D.J.snapshot(f),5);case 5:return F.return(F.J);case 4:throw D.S;}})}; g.d.pause=function(){this.MR()||this.isPaused||(this.isPaused=!0,this.Y&&this.Y.pause())}; g.d.resume=function(){!this.MR()&&this.isPaused&&(this.isPaused=!1,this.Y&&this.Y.resume())}; g.d.checkForRefresh=function(){var f=this;return g.l(function(D){if(f.MR())throw Error("Already disposed");var F;if(F=f.Y)F=f.Y,F.isExpired()?(R5(F),F.XS(0),F=!0):F=!1,F=!F;return F?D.ZE(0):g.r(D,f.B.promise,0)})}; g.d.Am=function(f){var D,F;(D=this.J)==null||(F=D.Am)==null||F.call(D,f)}; g.d.handleError=function(f){if(!this.MR()){this.S=f;this.X.resolve();var D,F;(F=(D=this.options).scT)==null||F.call(D,f)}}; g.d.Gu=function(){return this.logger.share()}; var jcI={EWs:432E5,CO:3E5,wh:10,CM:1E4,Sf:3E4,NwT:3E4,sAE:6E4,cS:1E3,Ki:6E4,Eh:6E5,xg:.25,GW:2,maxAttempts:10};VL.prototype.pause=function(){this.isPaused||(this.isPaused=!0,R5(this))}; VL.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())}; VL.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var fs0,CDT=(fs0=Math.imul)!=null?fs0:function(f,D){return f*D|0},QL=[196, 200,224,18];CQ.prototype.s6=function(){return String(this.Y)+","+this.J.join()}; CQ.prototype.Pl=function(f,D){var F=void 0;if(this.J[this.Y]!==f){var Z=this.J.indexOf(f);Z!==-1?(this.J.splice(Z,1),Z0;)D[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(f%62),f=Math.floor(f/62);return D.join("")}};g.C(Td,g.J);Td.prototype.aR=function(f,D){var F=this.Q7(f);D==null||D(F);return fQ(this.logger,function(){return g.B9(F,2)},this.J)}; g.C(ti,Td);ti.prototype.Q7=function(f,D){var F=this;this.logger.Ma(this.Y);++this.X>=this.T&&this.B.resolve();var Z=f();f=fQ(this.logger,function(){return F.G(Z)},"C"); if(f===void 0)throw new Fv(17,"YNJ:Undefined");if(!(f instanceof Uint8Array))throw new Fv(18,"ODM:Invalid");D==null||D(f);return f}; g.C(Sv,Td);Sv.prototype.Q7=function(){return this.G}; g.C(cc,Td);cc.prototype.Q7=function(){var f=this;return fQ(this.logger,function(){return L3(f.G)},"d")}; cc.prototype.aR=function(){return this.G}; g.C(Ue,Td);Ue.prototype.Q7=function(){if(this.G)return this.G;this.G=Wou(this,function(f){return"_"+wME(f)}); return Wou(this,function(f){return f})}; g.C(a5,Td);a5.prototype.Q7=function(){var f=Math.floor(Date.now()/1E3),D=[Math.random()*255,Math.random()*255],F=D.concat([this.G&255,this.clientState],[f>>24&255,f>>16&255,f>>8&255,f&255]);f=new Uint8Array(2+F.length);f[0]=34;f[1]=F.length;f.set(F,2);F=f.subarray(2);for(var Z=D=D.length;Z150))try{this.cache=new ctD(f,this.logger)}catch(D){this.reportError(new Fv(22,"GBJ:init",D))}}; g.d.reportError=function(f){this.logger.Q$(f.code);this.onError(f);return f}; var LoE=function(f){return c9(function(D){if(!Leu(D))return!1;for(var F=g.a(Object.entries(f)),Z=F.next();!Z.done;Z=F.next()){var I=g.a(Z.value);Z=I.next().value;I=I.next().value;if(!(Z in D)){if(I.FN3===!0)continue;return!1}if(!I(D[Z]))return!1}return!0})}({q7:function(f){return c9(function(D){return D instanceof f})}(yL)},"");Oqy.prototype.Dx=function(f,D){this.Y.n1("/client_streamz/youtube/aba/gac",f,D)};var SDE=(new Date).getTime();g.C(rH,EB);var Dw0=K8(rH);ntc.prototype.getMetadata=function(){return this.metadata};LQ.prototype.getMetadata=function(){return this.metadata}; LQ.prototype.getStatus=function(){return this.status};lk.prototype.T=function(f,D){D=D===void 0?{}:D;return new ntc(f,this,D)}; lk.prototype.getName=function(){return this.name};var FEe=new lk("/google.internal.waa.v1.Waa/Create",jv,rH,function(f){return f.s6()},Dw0);g.C(Ee,EB);var qju=new lk("/google.internal.waa.v1.Waa/GenerateIT",ik,Ee,function(f){return f.s6()},K8(Ee));var M6u=new Set(["SAPISIDHASH","APISIDHASH"]);g.C(Ji,EB);Ji.prototype.getValue=function(){var f=hz(this,2);if(Array.isArray(f)||f instanceof EB)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return mv(this,2)};g.C(uk,EB);uk.prototype.getMessage=function(){return ef(this,2)}; var ZBX=K8(uk);NW.prototype.removeListener=function(f,D){f==="data"?YB(this.J,D):f==="metadata"?YB(this.G,D):f==="status"?YB(this.X,D):f==="end"?YB(this.B,D):f==="error"&&YB(this.Y,D);return this}; NW.prototype.cancel=function(){this.xhr.abort()}; g.C(PDw,Error);g.rE(g.Dz,WXu);g.Dz.prototype.Y=function(){var f=new FE(this.G,this.B);this.J&&f.setCredentialsMode(this.J);return f}; g.Dz.prototype.setCredentialsMode=function(f){this.J=f}; g.rE(FE,g.i7);g.d=FE.prototype;g.d.open=function(f,D){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.KQ=f;this.Bs=D;this.readyState=1;Zz(this)}; g.d.send=function(f){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.N.signal.aborted)throw this.abort(),Error("Request was aborted.");this.Y=!0;var D={headers:this.Jb,method:this.KQ,credentials:this.X,cache:void 0,signal:this.N.signal};f&&(D.body=f);(this.xo||g.RU).fetch(new Request(this.Bs,D)).then(this.QrF.bind(this),this.mK.bind(this))}; g.d.abort=function(){this.response=this.responseText="";this.Jb=new Headers;this.status=0;this.N.abort("Request was aborted.");this.B&&this.B.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.Y&&this.readyState!=4&&(this.Y=!1,Iq(this));this.readyState=0}; g.d.QrF=function(f){if(this.Y&&(this.G=f,this.J||(this.status=this.G.status,this.statusText=this.G.statusText,this.J=f.headers,this.readyState=2,Zz(this)),this.Y&&(this.readyState=3,Zz(this),this.Y)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.uFo.bind(this),this.mK.bind(this));else if(typeof g.RU.ReadableStream!=="undefined"&&"body"in f){this.B=f.body.getReader();if(this.T){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.S=new TextDecoder;IYI(this)}else f.text().then(this.goF.bind(this),this.mK.bind(this))}; g.d.DRs=function(f){if(this.Y){if(this.T&&f.value)this.response.push(f.value);else if(!this.T){var D=f.value?f.value:new Uint8Array(0);if(D=this.S.decode(D,{stream:!f.done}))this.response=this.responseText+=D}f.done?Iq(this):Zz(this);this.readyState==3&&IYI(this)}}; g.d.goF=function(f){this.Y&&(this.response=this.responseText=f,Iq(this))}; g.d.uFo=function(f){this.Y&&(this.response=f,Iq(this))}; g.d.mK=function(){this.Y&&Iq(this)}; g.d.setRequestHeader=function(f,D){this.Jb.append(f,D)}; g.d.getResponseHeader=function(f){return this.J?this.J.get(f.toLowerCase())||"":""}; g.d.getAllResponseHeaders=function(){if(!this.J)return"";for(var f=[],D=this.J.entries(),F=D.next();!F.done;)F=F.value,f.push(F[0]+": "+F[1]),F=D.next();return f.join("\r\n")}; g.d.setCredentialsMode=function(f){this.X=f}; Object.defineProperty(FE.prototype,"withCredentials",{get:function(){return this.X==="include"}, set:function(f){this.setCredentialsMode(f?"include":"same-origin")}});g.Rd.prototype.toString=function(){var f=[],D=this.X;D&&f.push(oq(D,Zf0,!0),":");var F=this.Y;if(F||D=="file")f.push("//"),(D=this.N)&&f.push(oq(D,Zf0,!0),"@"),f.push(g.lI(F).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),F=this.B,F!=null&&f.push(":",String(F));if(F=this.J)this.Y&&F.charAt(0)!="/"&&f.push("/"),f.push(oq(F,F.charAt(0)=="/"?IsE:pDY,!0));(F=this.G.toString())&&f.push("?",F);(F=this.T)&&f.push("#",oq(F,zDe));return f.join("")}; g.Rd.prototype.resolve=function(f){var D=this.clone(),F=!!f.X;F?g.pk(D,f.X):F=!!f.N;F?D.N=f.N:F=!!f.Y;F?g.dT(D,f.Y):F=f.B!=null;var Z=f.J;if(F)g.zE(D,f.B);else if(F=!!f.J){if(Z.charAt(0)!="/")if(this.Y&&!this.J)Z="/"+Z;else{var I=D.J.lastIndexOf("/");I!=-1&&(Z=D.J.slice(0,I+1)+Z)}I=Z;if(I==".."||I==".")Z="";else if(g.OQ(I,"./")||g.OQ(I,"/.")){Z=gU(I,"/");I=I.split("/");for(var p=[],z=0;z1||p.length==1&&p[0]!="")&&p.pop(), Z&&z==I.length&&p.push("")):(p.push(H),Z=!0)}Z=p.join("/")}else Z=I}F?D.J=Z:F=f.G.toString()!=="";F?sG(D,f.G.clone()):F=!!f.T;F&&(D.T=f.T);return D}; g.Rd.prototype.clone=function(){return new g.Rd(this)}; var Zf0=/[#\/\?@]/g,pDY=/[#\?:]/g,IsE=/[#\?]/g,HBJ=/[#\?@]/g,zDe=/#/g;g.d=Hb.prototype;g.d.add=function(f,D){kX(this);this.B=null;f=j$(this,f);var F=this.Y.get(f);F||this.Y.set(f,F=[]);F.push(D);this.J=this.J+1;return this}; g.d.remove=function(f){kX(this);f=j$(this,f);return this.Y.has(f)?(this.B=null,this.J=this.J-this.Y.get(f).length,this.Y.delete(f)):!1}; g.d.clear=function(){this.Y=this.B=null;this.J=0}; g.d.isEmpty=function(){kX(this);return this.J==0}; g.d.forEach=function(f,D){kX(this);this.Y.forEach(function(F,Z){F.forEach(function(I){f.call(D,I,Z,this)},this)},this)}; g.d.cC=function(){kX(this);for(var f=Array.from(this.Y.values()),D=Array.from(this.Y.keys()),F=[],Z=0;Z0?String(f[0]):D}; g.d.toString=function(){if(this.B)return this.B;if(!this.Y)return"";for(var f=[],D=Array.from(this.Y.keys()),F=0;F>>3;p.B!=1&&p.B!=2&&p.B!=15&&Af(p,z,H,"unexpected tag");p.Y=1;p.J=0;p.G=0} function F(K){p.G++;p.G==5&&K&240&&Af(p,z,H,"message length too long");p.J|=(K&127)<<(p.G-1)*7;K&128||(p.Y=2,p.N=0,typeof Uint8Array!=="undefined"?p.X=new Uint8Array(p.J):p.X=Array(p.J),p.J==0&&I())} function Z(K){p.X[p.N++]=K;p.N==p.J&&I()} function I(){if(p.B<15){var K={};K[p.B]=p.X;p.S.push(K)}p.Y=0} for(var p=this,z=f instanceof Array?f:new Uint8Array(f),H=0;H0?f:null};$X.prototype.isInputValid=function(){return this.Y===null}; $X.prototype.rp=function(){return this.Y}; $X.prototype.Gp=function(){return!1}; $X.prototype.parse=function(f){this.Y!==null&&A6X(this,f,"stream already broken");var D=null;try{var F=this.B;F.B||y6D(F,f,"stream already broken");F.Y+=f;var Z=Math.floor(F.Y.length/4);if(Z==0)var I=null;else{try{var p=fMs(F.Y.slice(0,Z*4))}catch(z){y6D(F,F.Y,z.message)}F.J+=Z*4;F.Y=F.Y.slice(Z*4);I=p}D=I===null?null:this.G.parse(I)}catch(z){A6X(this,f,z.message)}this.J+=f.length;return D};g.d=Rq.prototype;g.d.isInputValid=function(){return this.X!=3}; g.d.rp=function(){return this.Jb}; g.d.done=function(){return this.X===2}; g.d.Gp=function(){return!1}; g.d.parse=function(f){function D(){for(;y0;)if(V=f[y++],p.N===4?p.N=0:p.N++,!V)break a;if(V==='"'&&!p.S){p.Y=Z();break}if(V==="\\"&&!p.S&&(p.S=!0,V=f[y++], !V))break;if(p.S)if(p.S=!1,V==="u"&&(p.N=1),V=f[y++])continue;else break;H.lastIndex=y;V=H.exec(f);if(!V){y=f.length+1;break}y=V.index+1;V=f[V.index];if(!V)break}p.B+=y-R;continue;case 9:if(!V)continue;V==="r"?p.Y=10:dS(p,f,y);continue;case 10:if(!V)continue;V==="u"?p.Y=11:dS(p,f,y);continue;case 11:if(!V)continue;V==="e"?p.Y=Z():dS(p,f,y);continue;case 12:if(!V)continue;V==="a"?p.Y=13:dS(p,f,y);continue;case 13:if(!V)continue;V==="l"?p.Y=14:dS(p,f,y);continue;case 14:if(!V)continue;V==="s"?p.Y=15: dS(p,f,y);continue;case 15:if(!V)continue;V==="e"?p.Y=Z():dS(p,f,y);continue;case 16:if(!V)continue;V==="u"?p.Y=17:dS(p,f,y);continue;case 17:if(!V)continue;V==="l"?p.Y=18:dS(p,f,y);continue;case 18:if(!V)continue;V==="l"?p.Y=Z():dS(p,f,y);continue;case 19:V==="."?p.Y=20:dS(p,f,y);continue;case 20:if("0123456789.eE+-".indexOf(V)!==-1)continue;else y--,p.B--,p.Y=Z();continue;default:dS(p,f,y)}}} function Z(){var V=z.pop();return V!=null?V:1} function I(V){p.J>1||(V||(V=h===-1?p.G+f.substring(k,y):f.substring(h,y)),p.Bs?p.T.push(V):p.T.push(JSON.parse(V)),h=y)} for(var p=this,z=p.KQ,H=p.xo,K=f.length,k=0,h=-1,y=0;y0?(A=p.T,p.T=[],A):null}return null};QC.prototype.isInputValid=function(){return this.X===null}; QC.prototype.rp=function(){return this.X}; QC.prototype.Gp=function(){return!1}; QC.prototype.parse=function(f){function D(K){p.J=6;p.X="The stream is broken @"+p.Y+"/"+z+". Error: "+K+". With input:\n";throw Error(p.X);} function F(){p.B=new Rq({JOy:!0,g8:!0})} function Z(K){if(K)for(var k=0;k1)&&D("extra status: "+K);p.T=!0;var k={};k[2]=K[0];p.G.push(k)}} for(var p=this,z=0;z0?(f=p.G,p.G=[],f):null};Ck.prototype.Er=function(){return this.Y}; Ck.prototype.getStatus=function(){return this.X}; Ck.prototype.Bs=function(f){f=f.target;try{if(f==this.Y)a:{var D=g.N4(this.Y),F=this.Y.J,Z=this.Y.getStatus(),I=g.ey(this.Y);f=[];if(g.xQ(this.Y)instanceof Array){var p=g.xQ(this.Y);p.length>0&&p[0]instanceof Uint8Array&&(this.Jb=!0,f=p)}if(!(D<3||D==3&&!I&&f.length==0))if(Z=Z==200||Z==206,D==4&&(F==8?mP(this,7):F==7?mP(this,8):Z||mP(this,3)),this.J||(this.J=$ka(this.Y),this.J==null&&mP(this,5)),this.X>2)TE(this);else{if(f.length>this.B){var z=f.length;F=[];try{if(this.J.Gp())for(var H=0;Hthis.B){H=I.slice(this.B);this.B=I.length;try{var k=this.J.parse(H);k!=null&&this.G&&this.G(k)}catch(h){mP(this,5);TE(this);break a}}D==4?(I.length!= 0||this.Jb?mP(this,2):mP(this,4),TE(this)):mP(this,1)}}}catch(h){mP(this,6),TE(this)}};g.d=V6T.prototype;g.d.addListener=function(f,D){Oe(this,f,D);return this}; g.d.removeListener=function(f,D){var F=this.J[f];F&&g.no(F,D);(f=this.Y[f])&&g.no(f,D);return this}; g.d.once=function(f,D){var F=this.Y[f];F||(F=[],this.Y[f]=F);F.push(D);return this}; g.d.RaI=function(f){var D=this.J.data;D&&Rqc(f,D);(D=this.Y.data)&&Rqc(f,D);this.Y.data=[]}; g.d.BSE=function(){switch(this.B.getStatus()){case 1:bP(this,"readable");break;case 5:case 6:case 4:case 7:case 3:bP(this,"error");break;case 8:bP(this,"close");break;case 2:bP(this,"end")}};dkf.prototype.serverStreaming=function(f,D,F,Z){var I=this,p=f.substring(0,f.length-Z.name.length);return t6d(function(z){var H=z.OA,K=z.getMetadata(),k=mku(I,!1);K=Tww(I,K,k,p+H.getName());var h=bBy(k,H.J,!0);z=H.Y(z.Fe);k.send(K,"POST",z);return h},this.dh).call(this,Z.T(D,F))};SNy.prototype.create=function(f,D,F){var Z=this.Y,I=this.J+"/$rpc/google.internal.waa.v1.Waa/Create";D=D||{};F=F===void 0?{}:F;return Hqu(Z,I,f,D,FEe,F)};var pQX,SrE,eJu,qJn,HfX,oc0,YsD,PcT,KEL,hl,ZtD,ir,XiI,vFD,ahc,N5d,xJa,wNc,jdX,Jxa,ifU,hDb,yIE,jwX,$OD,EFa,ax,Vpd,$wY;pQX=new ML(45745123,!1);SrE=new ML(45742118,!1);eJu=new ML(45742119,!1);qJn=new ML(45739196,!1);HfX=new ML(45739198,!1);oc0=new ML(45739197,!1);YsD=new tf(45737488,0);PcT=new tf(45737489,0);KEL=new ML(45736776,!1);hl=new ML(45738227,!1);ZtD=new ML(45732791,!1);ir=new ML(45728572,!1);g.kav=new ML(45742954,!1);XiI=new ML(45742469,!1);vFD=new ML(45737482,!1);ahc=new tf(45741773,0); N5d=new ML(45732704,!0);xJa=new ML(45731083,!1);wNc=new ML(45728553,!1);jdX=new ML(45734191,!1);Jxa=new ML(45735523,!1);ifU=new tf(45735428,4E3);hDb=new ML(45735462,!1);yIE=new ML(45727949,!1);jwX=new ML(45728181,!1);$OD=new ML(45740357,!1);EFa=new ML(45733155,!1);ax=new ML(45732481,!1);Vpd=new ML(45732775,!1);g.AIV=new ML(45734776,!1);$wY=new ML(45739595,!1);var p5J=new tf(45725542,0),zxE=new tf(45739023,0),qrJ=new tf(45743228,0),Ioa=new tf(45725543,0),DyI=new tf(45725539,0),ZXu=new tf(45725541,0),Fyu=new tf(45725540,0),foI=new tf(45725538,0),s$c=new tf(45741339,0);var vGu="://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(" "),aYy=/\bocr\b/;var wzT=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.C(WRy,EB);g.C(Bwd,EB);g.C(cb,EB);cb.prototype.getName=function(){return ef(this,1)}; cb.prototype.getOptions=function(){return r9(this,Bwd,3)}; cb.prototype.clearOptions=function(){return Az(this,3)};g.C(UG,EB);g.d=UG.prototype;g.d.getName=function(){return ef(this,1)}; g.d.getOptions=function(){return r9(this,WRy,3)}; g.d.clearOptions=function(){return Az(this,3)}; g.d.EG=function(){return x0(this,6)}; g.d.VL=function(f){fA(this,6,f)};var lYu=function(f){return function(D){D=JSON.parse(D);if(!Array.isArray(D))throw Error("Expected jspb data to be an array, got "+bX(D)+": "+D);D$(D,34);return new f(D)}}(UG);var LRc=Symbol();var J6T=Symbol();Object.assign({},{attributes:{},handleError:function(f){throw f;}},{Dvb:!0, WYF:!0,jaE:tVD,kST:tVD,FYr:S7X,NkI:!1,dvR:!1,Bky:!1,rOF:!0,gtT:MVu,Mkd:!1,ass:!1,Qod:!1});var aq=null,wS=!1,D_J=1,YND=Symbol("SIGNAL"),jP={version:0,uWY:0,bK:!1,producers:void 0,We:void 0,Rf:void 0,aU:void 0,rf:!1,PG:!1,OV:!1,kind:"unknown",Uf:function(){return!1}, ma:function(){}, mL:function(){}, ZCy:function(){}};var iB=Symbol("UNSET"),hy=Symbol("COMPUTING"),y_=Symbol("ERRORED");Object.assign({},jP,{value:iB,bK:!0,error:null,P7:vb,kind:"computed",Uf:function(f){return f.value===iB||f.value===hy}, ma:function(f){if(f.value===hy)throw Error("");var D=f.value;f.value=hy;var F=eqs(f),Z=!1;try{var I=f.hM();GE(null);Z=D!==iB&&D!==y_&&I!==y_&&f.P7(D,I)}catch(p){I=y_,f.error=p}finally{GE(F),f&&Xzu(f)}Z?f.value=D:(f.value=I,f.version++)}});Object.assign({},jP,{OV:!0,PG:!0,bK:!0,kind:"effect"});var nGE=Object.assign({},jP,{P7:vb,value:void 0,kind:"signal"});Object.assign({},jP,{value:iB,bK:!0,error:null,P7:vb,kind:"linkedSignal",Uf:function(f){return f.value===iB||f.value===hy}, ma:function(f){if(f.value===hy)throw Error("");var D=f.value;f.value=hy;var F=eqs(f);try{var Z=f.source();var I=f.hM(Z,D===iB||D===y_?void 0:{source:f.cJs,value:D});f.cJs=Z}catch(p){I=y_,f.error=p}finally{GE(F),f&&Xzu(f)}D!==iB&&I!==y_&&f.P7(D,I)?f.value=D:(f.value=I,f.version++)}});Object.assign({},jP,{OV:!0,PG:!1,mL:function(f){f.schedule!==null&&f.schedule(f.TJx)}, xvT:function(){}});g.C(Lk,g.i7);Lk.prototype.dispose=function(){window.removeEventListener("offline",this.B);window.removeEventListener("online",this.B);this.ew.lc(this.X);delete Lk.instance}; Lk.prototype.Sm=function(){return this.Y}; Lk.prototype.cD=function(){var f=this;this.X=this.ew.vp(function(){var D;return g.l(function(F){if(F.Y==1)return f.Y?((D=window.navigator)==null?0:D.onLine)?F.ZE(3):g.r(F,rS(f),3):g.r(F,rS(f),3);f.cD();g.Zb(F)})},3E4)};g.C(ZgD,EB);var FVu=gdf(ZgD,[0,I1,MNw,j9d,I1,-2,j9d,oxu]);EG.prototype.set=function(f,D){D=D===void 0?!0:D;0<=f&&f<52&&Number.isInteger(f)&&this.data[f]!==D&&(this.data[f]=D,this.Y=-1)}; EG.prototype.get=function(f){return!!this.data[f]};var uP;g.rE(g.e$,g.J);g.d=g.e$.prototype;g.d.start=function(){this.stop();this.G=!1;var f=pPX(this),D=zAc(this);f&&!D&&this.J.mozRequestAnimationFrame?(this.Y=g.sD(this.J,"MozBeforePaint",this.B),this.J.mozRequestAnimationFrame(null),this.G=!0):this.Y=f&&D?f.call(this.J,this.B):this.J.setTimeout(Kac(this.B),20)}; g.d.stop=function(){if(this.isActive()){var f=pPX(this),D=zAc(this);f&&!D&&this.J.mozRequestAnimationFrame?Kz(this.Y):f&&D?D.call(this.J,this.Y):this.J.clearTimeout(this.Y)}this.Y=null}; g.d.isActive=function(){return this.Y!=null}; g.d.sC=function(){this.G&&this.Y&&Kz(this.Y);this.Y=null;this.T.call(this.X,g.We())}; g.d.Ey=function(){this.stop();g.e$.YK.Ey.call(this)};g.rE(g.xX,g.J);g.d=g.xX.prototype;g.d.v1=0;g.d.Ey=function(){g.xX.YK.Ey.call(this);this.stop();delete this.Y;delete this.J}; g.d.start=function(f){this.stop();this.v1=g.G2(this.B,f!==void 0?f:this.cV)}; g.d.stop=function(){this.isActive()&&g.RU.clearTimeout(this.v1);this.v1=0}; g.d.isActive=function(){return this.v1!=0}; g.d.O8=function(){this.v1=0;this.Y&&this.Y.call(this.J)};g.C(g.YX,g.J);g.d=g.YX.prototype;g.d.Lu=function(f){this.B=arguments;this.AZ||this.J?this.Y=!0:Pb(this)}; g.d.stop=function(){this.AZ&&(g.RU.clearTimeout(this.AZ),this.AZ=null,this.Y=!1,this.B=null)}; g.d.pause=function(){this.J++}; g.d.resume=function(){this.J--;this.J||!this.Y||this.AZ||(this.Y=!1,Pb(this))}; g.d.Ey=function(){g.J.prototype.Ey.call(this);this.stop()};g.fY.prototype[Symbol.iterator]=function(){return this}; g.fY.prototype.next=function(){var f=this.Y.next();return{value:f.done?void 0:this.J.call(void 0,f.value),done:f.done}};g.rE(g.H$,g.i7);g.d=g.H$.prototype;g.d.isPlaying=function(){return this.Y==1}; g.d.isPaused=function(){return this.Y==-1}; g.d.Sl=function(){this.lM("begin")}; g.d.mY=function(){this.lM("end")}; g.d.onFinish=function(){this.lM("finish")}; g.d.onStop=function(){this.lM("stop")}; g.d.lM=function(f){this.dispatchEvent(f)};var Vuc=Ne(function(){var f=g.TR("DIV"),D=g.dL?"-webkit":FD?"-moz":null,F="transition:opacity 1s linear;";D&&(F+=D+"-transition:opacity 1s linear;");D=f0D({style:F});if(f.nodeType===1&&/^(script|style)$/i.test(f.tagName))throw Error("");f.innerHTML=tQ(D);return g.Zx(f.firstChild,"transition")!=""});g.rE(oC,g.H$);g.d=oC.prototype;g.d.play=function(){if(this.isPlaying())return!1;this.Sl();this.lM("play");this.startTime=g.We();this.Y=1;if(Vuc())return g.Dx(this.J,this.T),this.B=g.G2(this.p_Y,void 0,this),!0;this.kd(!1);return!1}; g.d.p_Y=function(){g.jQ(this.J);HgD(this.J,this.S);g.Dx(this.J,this.G);this.B=g.G2((0,g.aU)(this.kd,this,!1),this.X*1E3)}; g.d.stop=function(){this.isPlaying()&&this.kd(!0)}; g.d.kd=function(f){g.Dx(this.J,"transition","");g.RU.clearTimeout(this.B);g.Dx(this.J,this.G);this.endTime=g.We();this.Y=0;if(f)this.onStop();else this.onFinish();this.mY()}; g.d.Ey=function(){this.stop();oC.YK.Ey.call(this)}; g.d.pause=function(){};var KNf={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};KY("Element","attributes")||KY("Node","attributes");KY("Element","innerHTML")||KY("HTMLElement","innerHTML");KY("Node","nodeName");KY("Node","nodeType");KY("Node","parentNode");KY("Node","childNodes");KY("HTMLElement","style")||KY("Element","style");KY("HTMLStyleElement","sheet");var AbE=jBI("getPropertyValue"),$_D=jBI("setProperty");KY("Element","namespaceURI")||KY("Node","namespaceURI");var ybJ={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var QBT,Adu,d_D,RAE,CJI;QBT=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]");Adu=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.RDY=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.jk=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]");d_D=/^http:\/\/.*/;g.dwo=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");RAE=/\s+/;CJI=/[\d\u06f0-\u06f9]/;h$.prototype.bO=function(){return new yM(this.J())}; h$.prototype[Symbol.iterator]=function(){return new A$(this.J())}; h$.prototype.Y=function(){return new A$(this.J())}; g.C(yM,g.Sg);yM.prototype.next=function(){return this.J.next()}; yM.prototype[Symbol.iterator]=function(){return new A$(this.J)}; yM.prototype.Y=function(){return new A$(this.J)}; g.C(A$,h$);A$.prototype.next=function(){return this.B.next()};VM.prototype.clone=function(){return new VM(this.Y,this.S,this.B,this.X,this.G,this.T,this.J,this.N)}; VM.prototype.equals=function(f){return this.Y==f.Y&&this.S==f.S&&this.B==f.B&&this.X==f.X&&this.G==f.G&&this.T==f.T&&this.J==f.J&&this.N==f.N};dp.prototype.clone=function(){return new dp(this.start,this.end)};(function(){if(m8f){var f=/Windows NT ([0-9.]+)/;return(f=f.exec(g.DM()))?f[1]:"0"}return mt?(f=/1[0|1][_.][0-9_.]+/,(f=f.exec(g.DM()))?f[0].replace(/_/g,"."):"10"):g.Fq?(f=/Android\s+([^\);]+)(\)|;)/,(f=f.exec(g.DM()))?f[1]:""):vmI||aly||G3d?(f=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(f=f.exec(g.DM()))?f[1].replace(/_/g,"."):""):""})();var bgw=function(){if(g.ji)return QM(/Firefox\/([0-9.]+)/);if(g.ka||g.gt||g.BL)return eVu;if(g.op){if(XW()||Oc()){var f=QM(/CriOS\/([0-9.]+)/);if(f)return f}return QM(/Chrome\/([0-9.]+)/)}if(g.yy&&!XW())return QM(/Version\/([0-9.]+)/);if(PR||fC){if(f=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.DM()))return f[1]+"."+f[2]}else if(g.rk)return(f=QM(/Android\s+([0-9.]+)/))?f:QM(/Version\/([0-9.]+)/);return""}();g.rE(g.mQ,g.J);g.d=g.mQ.prototype;g.d.subscribe=function(f,D,F){var Z=this.J[f];Z||(Z=this.J[f]=[]);var I=this.T;this.Y[I]=f;this.Y[I+1]=D;this.Y[I+2]=F;this.T=I+3;Z.push(I);return I}; g.d.unsubscribe=function(f,D,F){if(f=this.J[f]){var Z=this.Y;if(f=f.find(function(I){return Z[I+1]==D&&Z[I+2]==F}))return this.A6(f)}return!1}; g.d.A6=function(f){var D=this.Y[f];if(D){var F=this.J[D];this.G!=0?(this.B.push(f),this.Y[f+1]=function(){}):(F&&g.no(F,f),delete this.Y[f],delete this.Y[f+1],delete this.Y[f+2])}return!!D}; g.d.publish=function(f,D){var F=this.J[f];if(F){var Z=Array(arguments.length-1),I=arguments.length,p;for(p=1;p0&&this.G==0)for(;F=this.B.pop();)this.A6(F)}}return p!=0}return!1}; g.d.clear=function(f){if(f){var D=this.J[f];D&&(D.forEach(this.A6,this),delete this.J[f])}else this.Y.length=0,this.J={}}; g.d.Ey=function(){g.mQ.YK.Ey.call(this);this.clear();this.B.length=0};g.TP.prototype.set=function(f,D){D===void 0?this.Ny.remove(f):this.Ny.set(f,g.rG(D))}; g.TP.prototype.get=function(f){try{var D=this.Ny.get(f)}catch(F){return}if(D!==null)try{return JSON.parse(D)}catch(F){throw"Storage: Invalid value was encountered";}}; g.TP.prototype.remove=function(f){this.Ny.remove(f)};g.rE(bS,g.TP);bS.prototype.set=function(f,D){bS.YK.set.call(this,f,SID(D))}; bS.prototype.nI=function(f){f=bS.YK.get.call(this,f);if(f===void 0||f instanceof Object)return f;throw"Storage: Invalid value was encountered";}; bS.prototype.get=function(f){if(f=this.nI(f)){if(f=f.data,f===void 0)throw"Storage: Invalid value was encountered";}else f=void 0;return f};g.rE(MI,bS);MI.prototype.set=function(f,D,F){if(D=SID(D)){if(F){if(F=F.length)return g.qY;var I=F.key(D++);if(f)return g.cM(I);I=F.getItem(I);if(typeof I!=="string")throw"Storage mechanism: Invalid value was encountered";return g.cM(I)}; return Z}; g.d.clear=function(){UE(this);this.Y.clear()}; g.d.key=function(f){UE(this);return this.Y.key(f)};g.rE(v$,c$);g.rE(vff,c$);g.rE(aC,Sk);aC.prototype.set=function(f,D){this.J.set(this.Y+f,D)}; aC.prototype.get=function(f){return this.J.get(this.Y+f)}; aC.prototype.remove=function(f){this.J.remove(this.Y+f)}; aC.prototype.bO=function(f){var D=this.J[Symbol.iterator](),F=this,Z=new g.Sg;Z.next=function(){var I=D.next();if(I.done)return I;for(I=I.value;I.slice(0,F.Y.length)!=F.Y;){I=D.next();if(I.done)return I;I=I.value}return g.cM(f?I.slice(F.Y.length):F.J.get(I))}; return Z};wp.prototype.getValue=function(){return this.J}; wp.prototype.clone=function(){return new wp(this.Y,this.J)};g.d=W$.prototype;g.d.Pl=function(f,D){var F=this.Y;F.push(new wp(f,D));f=F.length-1;D=this.Y;for(F=D[f];f>0;){var Z=f-1>>1;if(D[Z].Y>F.Y)D[f]=D[Z],f=Z;else break}D[f]=F}; g.d.remove=function(){var f=this.Y,D=f.length,F=f[0];if(!(D<=0)){if(D==1)f.length=0;else{f[0]=f.pop();f=0;D=this.Y;for(var Z=D.length,I=D[f];f>1;){var p=f*2+1,z=f*2+2;p=zI.Y)break;D[f]=D[p];f=p}D[f]=I}return F.getValue()}}; g.d.TR=function(){for(var f=this.Y,D=[],F=f.length,Z=0;Z>>16&65535|0;for(var p;F!==0;){p=F>2E3?2E3:F;F-=p;do I=I+D[Z++]|0,f=f+I|0;while(--p);I%=65521;f%=65521}return I|f<<16|0};for(var hD={},Ay,bfX=[],$F=0;$F<256;$F++){Ay=$F;for(var MuU=0;MuU<8;MuU++)Ay=Ay&1?3988292384^Ay>>>1:Ay>>>1;bfX[$F]=Ay}hD=function(f,D,F,Z){F=Z+F;for(f^=-1;Z>>8^bfX[(f^D[Z])&255];return f^-1};var ZV={};ZV={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 OE=[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],P$=[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],Ikc=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],eAD=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qT=Array(576);EE(qT);var HY=Array(60);EE(HY);var Ya=Array(512);EE(Ya);var Xs=Array(256);EE(Xs);var nY=Array(29);EE(nY);var fc=Array(30);EE(fc);var D4I,FFw,Zzw,fkJ=!1;var mx;mx=[new Cc(0,0,0,0,function(f,D){var F=65535;for(F>f.NA-5&&(F=f.NA-5);;){if(f.vk<=1){yj(f);if(f.vk===0&&D===0)return 1;if(f.vk===0)break}f.z3+=f.vk;f.vk=0;var Z=f.f1+F;if(f.z3===0||f.z3>=Z)if(f.vk=f.z3-Z,f.z3=Z,oJ(f,!1),f.PD.Az===0)return 1;if(f.z3-f.f1>=f.Fy-262&&(oJ(f,!1),f.PD.Az===0))return 1}f.Pl=0;if(D===4)return oJ(f,!0),f.PD.Az===0?3:4;f.z3>f.f1&&oJ(f,!1);return 1}), new Cc(4,4,8,4,dB),new Cc(4,5,16,8,dB),new Cc(4,6,32,32,dB),new Cc(4,4,16,16,Qj),new Cc(8,16,32,32,Qj),new Cc(8,16,128,128,Qj),new Cc(8,32,128,256,Qj),new Cc(32,128,258,1024,Qj),new Cc(32,258,258,4096,Qj)];var PJD={};PJD=function(){this.input=null;this.k6=this.PV=this.F7=0;this.output=null;this.Bd=this.Az=this.Ji=0;this.msg="";this.state=null;this.tj=2;this.CE=0};var plw=Object.prototype.toString; TG.prototype.push=function(f,D){var F=this.PD,Z=this.options.chunkSize;if(this.ended)return!1;var I=D===~~D?D:D===!0?4:0;typeof f==="string"?F.input=wPs(f):plw.call(f)==="[object ArrayBuffer]"?F.input=new Uint8Array(f):F.input=f;F.F7=0;F.PV=F.input.length;do{F.Az===0&&(F.output=new lS.Ph(Z),F.Ji=0,F.Az=Z);f=YIs(F,I);if(f!==1&&f!==0)return this.mY(f),this.ended=!0,!1;if(F.Az===0||F.PV===0&&(I===4||I===2))if(this.options.to==="string"){var p=lS.Fw(F.output,F.Ji);D=p;p=p.length;if(p<65537&&(D.subarray&& TTE||!D.subarray))D=String.fromCharCode.apply(null,lS.Fw(D,p));else{for(var z="",H=0;H0||F.Az===0)&&f!==1);if(I===4)return(F=this.PD)&&F.state?(Z=F.state.status,Z!==42&&Z!==69&&Z!==73&&Z!==91&&Z!==103&&Z!==113&&Z!==666?f=IJ(F,-2):(F.state=null,f=Z===113?IJ(F,-3):0)):f=-2,this.mY(f),this.ended=!0,f===0;I===2&&(this.mY(0),F.Az=0);return!0}; TG.prototype.mY=function(f){f===0&&(this.result=this.options.to==="string"?this.chunks.join(""):lS.G$(this.chunks));this.chunks=[];this.err=f;this.msg=this.PD.msg};var MT="@@redux/INIT"+bf(),KFT="@@redux/REPLACE"+bf();var k2J=typeof Symbol==="function"&&Symbol.observable||"@@observable";var tub=[0,C1D,-3,Zh];g.C(ysy,EB);var UFu=gdf(ysy,[0,I1,mnu,PA,C1D,PA,-1,Zh,C1D,Zh,-1,I1,Zh,mnu,fF,tub,PA,-1,Zh]);var RDX=-1040352636;var SJe=function(f,D){return function(){var F=new JBf(f,D,co);return function(){return F}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var vjJ=new g.cY("adInfoDialogEndpoint");var i_a=new g.cY("adPingingEndpoint");var tsD=new g.cY("crossDeviceProgressCommand");var nj=new g.cY("actionCompanionAdRenderer");var X8=new g.cY("adActionInterstitialRenderer");var cIY=new g.cY("adDurationRemainingRenderer");var Tj=new g.cY("adHoverTextButtonRenderer");var cXd=new g.cY("adInfoDialogRenderer");var Zq=new g.cY("adMessageRenderer");var bm=new g.cY("adPreviewRenderer");var PI=new g.cY("adsEngagementPanelRenderer");var aOs=new g.cY("dismissablePanelTextPortraitImageRenderer");var yv=new g.cY("adsEngagementPanelSectionListViewModel");var Uwc=new g.cY("flyoutCtaRenderer");var YN=new g.cY("imageCompanionAdRenderer");var eS=new g.cY("instreamAdPlayerOverlayRenderer");var WBX=new g.cY("instreamSurveyAdBackgroundImageRenderer");var mV=new g.cY("instreamSurveyAdPlayerOverlayRenderer");var o4=new g.cY("instreamSurveyAdRenderer"),Ce=new g.cY("instreamSurveyAdSingleSelectQuestionRenderer"),Qv=new g.cY("instreamSurveyAdMultiSelectQuestionRenderer"),V_=new g.cY("instreamSurveyAdAnswerRenderer"),vcA=new g.cY("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var qa=new g.cY("instreamVideoAdRenderer");var ase=new g.cY("textOverlayAdContentRenderer"),Ga0=new g.cY("enhancedTextOverlayAdContentRenderer"),wDC=new g.cY("imageOverlayAdContentRenderer");var xT=new g.cY("playerOverlayLayoutRenderer");var OL=new g.cY("videoInterstitialButtonedCenteredLayoutRenderer");var r7u=new g.cY("aboveFeedAdLayoutRenderer");var Lus=new g.cY("belowPlayerAdLayoutRenderer");var BgT=new g.cY("inPlayerAdLayoutRenderer");var lOD=new g.cY("inPlayerOrganicOverlayAdLayoutRenderer");var j3=new g.cY("playerBytesAdLayoutRenderer");var R4=new g.cY("playerBytesSequenceItemAdLayoutRenderer");var Vv=new g.cY("playerUnderlayAdLayoutRenderer");var H4=new g.cY("adIntroRenderer");var zj=new g.cY("playerBytesSequentialLayoutRenderer");var ROs=new g.cY("slidingTextPlayerOverlayRenderer");var Ke=new g.cY("surveyTextInterstitialRenderer");var im=new g.cY("videoAdTrackingRenderer");var SlD=new g.cY("videoInterstitialCenteredLayoutViewModel");var WEC=new g.cY("simpleAdBadgeRenderer");var I7=new g.cY("skipAdRenderer"),BTo=new g.cY("skipButtonRenderer");var dM=new g.cY("adSlotRenderer");var Ax=new g.cY("squeezebackPlayerSidePanelRenderer");var rIb=new g.cY("timedPieCountdownRenderer");var Lv=new g.cY("adAvatarViewModel");var l4=new g.cY("adBadgeViewModel");var Eb=new g.cY("adButtonViewModel");var LEE=new g.cY("adDetailsLineViewModel");var lso=new g.cY("adDisclosureBannerViewModel");var EcV=new g.cY("adPodIndexViewModel");var JIc=new g.cY("imageBackgroundViewModel");var uuc=new g.cY("adGridCardCollectionViewModel");var NTo=new g.cY("adGridCardTextViewModel");var gco=new g.cY("adPreviewViewModel");var eDc=new g.cY("playerAdAvatarLockupCardButtonedViewModel");var xwn=new g.cY("skipAdButtonViewModel");var XDC=new g.cY("skipAdViewModel");var Ofo=new g.cY("timedPieCountdownViewModel");var ncY=new g.cY("visitAdvertiserLinkViewModel");var fe=new g.cY("bannerImageLayoutViewModel");var Dv=new g.cY("topBannerImageTextIconButtonedLayoutViewModel");var FC=new g.cY("adsEngagementPanelLayoutViewModel");var $D=new g.cY("displayUnderlayTextGridCardsLayoutViewModel");g.rf=new g.cY("browseEndpoint");var YJc=new g.cY("confirmDialogEndpoint");var Dgd=new g.cY("commandContext");var NBu=new g.cY("rawColdConfigGroup");var urX=new g.cY("rawHotConfigGroup");g.AF=new g.cY("commandExecutorCommand");g.C(Asu,EB);var xqI={sId:0,UNF:1,DNE:32,dNF:61,LzR:67,QuT:103,gur:86,M33:42,Wzx:60,mNY:62,Nsx:73,kK3:76,PCo:88,OG3:90,pQT:99,SSF:98,ouo:100,FzY:102,V3T:41,yco:69,RmT:70,iGT:71,Qqd:2,PMT:27,ANDROID:3,H7T:54,Als:14,BNx:91,enb:55,aY3:24,vCI:20,b7R:18,sNs:21,tAr:104,K2T:30,E3Q:29,xLQ:28,ccs:101,ffT:34,GtR:36,qWT:38,IOS:5,jvd:15,oqE:92,kRI:40,Neo:25,dAF:17,uKb:19,gqs:64,Qvb:66,P_b:26,pto:22,VyT:33,ys3:68,RVI:35,ORT:53,LiT:37,FiT:39,Ld3:7,pCx:57,V23:43,RtF:59,yy3:93,c7Y:74,ieR:75,wCb:85,HeT:65,eto:80,aFx:8,OeR:10, beY:58,vXT:63,Ays:72,n3o:23,Acs:11,emI:13,y7b:12,oXF:16,IWE:56,ulr:31,NvE:77,qQT:84,juI:87,t8F:89,s6o:94,Tv3:95};g.C(Ut,EB);Ut.prototype.oW=function(){return ef(this,3)}; Ut.prototype.HS=function(){return ef(this,5)}; Ut.prototype.uI=function(f){return Y0(this,5,f)};g.C(vY,EB);g.C($4w,EB);g.C(aJ,EB);g.d=aJ.prototype;g.d.getDeviceId=function(){return ef(this,6)}; g.d.eb=function(f){var D=QN(this,9,cu,3,!0);pr(D,f);return D[f]}; g.d.getPlayerType=function(){return x0(this,36)}; g.d.setHomeGroupInfo=function(f){return E8(this,$4w,81,f)}; g.d.clearLocationPlayabilityToken=function(){return Az(this,89)};g.C(GG,EB);GG.prototype.getValue=function(){return ef(this,w9(this,EWD,2))}; var EWD=[2,3,4,5,6];g.C(wB,EB);wB.prototype.setTrackingParams=function(f){return Az(this,1,kJw(f,!1))};g.C(WY,EB);g.C(BY,EB);BY.prototype.eb=function(f){var D=QN(this,5,UR,3,!0);pr(D,f);return D[f]};g.C(rB,EB);rB.prototype.getToken=function(){return O8(this,2)}; rB.prototype.setToken=function(f){return Y0(this,2,f)};g.C(Lc,EB);Lc.prototype.setSafetyMode=function(f){return fA(this,5,f)};g.C(lf,EB);lf.prototype.IT=function(f){return E8(this,aJ,1,f)};var tx=new g.cY("thumbnailLandscapePortraitRenderer");g.PyU=new g.cY("changeEngagementPanelVisibilityAction");var qXE=new g.cY("continuationCommand");g.fb0=new g.cY("openPopupAction");var J_c=new g.cY("signalAction");g.R1=new g.cY("webCommandMetadata");var nDX=new g.cY("metadataBadgeRenderer");var sty=new g.cY("signalServiceEndpoint");var a6=new g.cY("innertubeCommand");var uqf=new g.cY("loggingDirectives");var DWa={rWI:"EMBEDDED_PLAYER_MODE_UNKNOWN",Iix:"EMBEDDED_PLAYER_MODE_DEFAULT",D5T:"EMBEDDED_PLAYER_MODE_PFP",M8y:"EMBEDDED_PLAYER_MODE_PFL"};var T5X=new g.cY("channelThumbnailEndpoint");var mBa=new g.cY("embeddedPlayerErrorMessageRenderer");var RTu=new g.cY("embeddedPlayerOverlayVideoDetailsRenderer"),bIu=new g.cY("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),MZs=new g.cY("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var xaI=new g.cY("embedsInfoPanelRenderer");var GXu=new g.cY("feedbackEndpoint");var DCL=new g.cY("callToActionButtonViewModel");var FA0=new g.cY("interactionLoggingCommandMetadata");var Xbu={lWQ:"WEB_DISPLAY_MODE_UNKNOWN",ZGs:"WEB_DISPLAY_MODE_BROWSER",CCd:"WEB_DISPLAY_MODE_MINIMAL_UI",zmY:"WEB_DISPLAY_MODE_STANDALONE",TsQ:"WEB_DISPLAY_MODE_FULLSCREEN"};g.C(Et,EB);Et.prototype.getPlayerType=function(){return x0(this,7)}; Et.prototype.Ww=function(){return ef(this,19)}; Et.prototype.setVideoId=function(f){return Y0(this,19,f)};g.C(JD,EB);g.C(uf,EB);g.C(NT,EB); var ZoL=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var Ibo=new g.cY("loggingContext");g.C(gB,EB);g.C(e_,EB);e_.prototype.Ww=function(){return O8(this,w9(this,I6,1))}; e_.prototype.setVideoId=function(f){return au(this,1,I6,g1(f))}; e_.prototype.getPlaylistId=function(){return O8(this,w9(this,I6,2))}; var I6=[1,2];g.C(g.xW,EB);g.xW.prototype.JK=wT(0);var pe0=new g.cY("dismissPlayerOverlayCommand");var ij=new g.cY("changeKeyedMarkersVisibilityCommand");var zVC=new g.cY("changeMarkersVisibilityCommand");var Pmu=new g.cY("loadMarkersCommand");var sUA=new g.cY("suggestedActionDataViewModel");var sLa=new g.cY("timelyActionViewModel");var zys=new g.cY("timelyActionsOverlayViewModel");var trd=new g.cY("productListItemRenderer");var q0c=new g.cY("shoppingOverlayRenderer");var dBu=new g.cY("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var HoA=new g.cY("adFeedbackEndpoint");var onE=new g.cY("menuEndpoint");var vrE=new g.cY("phoneDialerEndpoint");var cMs=new g.cY("sendSmsEndpoint");var VZI=new g.cY("copyTextEndpoint");var KAC=new g.cY("shareEndpoint"),kcL=new g.cY("shareEntityEndpoint"),jU0=new g.cY("shareEntityServiceEndpoint"),ioV=new g.cY("webPlayerShareEntityServiceEndpoint");g.rF=new g.cY("urlEndpoint");g.k7=new g.cY("watchEndpoint");var hVU=new g.cY("watchPlaylistEndpoint");g.yvA=new g.cY("offlineOrchestrationActionCommand");var WhD=new g.cY("compositeVideoOverlayRenderer");var AvY=new g.cY("miniplayerRenderer");var ySu=new g.cY("paidContentOverlayRenderer");var YCJ=new g.cY("playerMutedAutoplayOverlayRenderer"),PxE=new g.cY("playerMutedAutoplayEndScreenRenderer");var gNT=new g.cY("unserializedPlayerResponse"),Heu=new g.cY("unserializedPlayerResponse");var $Cv=new g.cY("playlistEditEndpoint");var d_;g.Ma=new g.cY("buttonRenderer");d_=new g.cY("toggleButtonRenderer");var Uzy=new g.cY("counterfactualRenderer");var V00=new g.cY("resolveUrlCommandMetadata");var RVA=new g.cY("modifyChannelNotificationPreferenceEndpoint");var jzD=new g.cY("pingingEndpoint");var dCU=new g.cY("unsubscribeEndpoint");g.LT=new g.cY("subscribeButtonRenderer");var QUe=new g.cY("subscribeEndpoint");var zru=new g.cY("buttonViewModel");var v6E=new g.cY("qrCodeRenderer");var Oiy={cvF:"LIVING_ROOM_APP_MODE_UNSPECIFIED",GwT:"LIVING_ROOM_APP_MODE_MAIN",BvQ:"LIVING_ROOM_APP_MODE_KIDS",KVT:"LIVING_ROOM_APP_MODE_MUSIC",n1s:"LIVING_ROOM_APP_MODE_UNPLUGGED",Jvs:"LIVING_ROOM_APP_MODE_GAMING"};var NMu=new g.cY("autoplaySwitchButtonRenderer");var lM,TOJ,h4X,W7u;lM=new g.cY("decoratedPlayerBarRenderer");TOJ=new g.cY("chapteredPlayerBarRenderer");h4X=new g.cY("multiMarkersPlayerBarRenderer");W7u=new g.cY("chapterRenderer");g.SUd=new g.cY("markerRenderer");var EsD=new g.cY("decoratedPlayheadRenderer");var X4D=new g.cY("desktopOverlayConfigRenderer");var Gtw=new g.cY("engagementPanelSectionListRenderer");var e4J=new g.cY("gatedActionsOverlayViewModel");var acd=new g.cY("heatMarkerRenderer");var vsX=new g.cY("heatmapRenderer");var Yhw=new g.cY("watchToWatchTransitionRenderer");var QTu=new g.cY("playlistPanelRenderer");var CXL=new g.cY("productUpsellSuggestedActionViewModel");var mCC=new g.cY("suggestedActionTimeRangeTrigger"),TEn=new g.cY("suggestedActionsRenderer"),boL=new g.cY("suggestedActionRenderer");var GCc=new g.cY("timedMarkerDecorationRenderer");var IsT=new g.cY("cipher");var ewf=new g.cY("playerVars");var oDa=new g.cY("playerVars");var Q_=g.RU.window,M0b,t0A,Xr=(Q_==null?void 0:(M0b=Q_.yt)==null?void 0:M0b.config_)||(Q_==null?void 0:(t0A=Q_.ytcfg)==null?void 0:t0A.data_)||{};g.dE("yt.config_",Xr);var PY=[];var tyc=/^[\w.]*$/,m4D={q:!0,search_query:!0},C7D=String(ZK);var ko=new function(){var f=window.document;this.Y=window;this.J=f}; g.dE("yt.ads_.signals_.getAdSignalsString",function(f){return Ig(iL(f))});g.We();var csT="XMLHttpRequest"in g.RU?function(){return new XMLHttpRequest}:null;var S00="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.w(S00);var G2s={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"},gQJ="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.w(S00)),EQD=!1,rsJ=M1;g.C(cR,lX);ag.prototype.then=function(f,D,F){return this.Y?this.Y.then(f,D,F):this.B===1&&f?(f=f.call(F,this.J))&&typeof f.then==="function"?f:wo(f):this.B===2&&D?(f=D.call(F,this.J))&&typeof f.then==="function"?f:Gr(f):this}; ag.prototype.getValue=function(){return this.J}; ag.prototype.$goog_Thenable=!0;var WR=!1;var NS=PR||fC;var P7J=/^([0-9\.]+):([0-9\.]+)$/;g.C(hX,lX);hX.prototype.name="BiscottiError";g.C(iq,lX);iq.prototype.name="BiscottiMissingError";var ZQf={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ym=null;var bou=g.eu(["data-"]),kdu={};var cvL=0,AX=g.dL?"webkit":FD?"moz":g.ka?"ms":g.BL?"o":"",UCo=g.QY("ytDomDomGetNextId")||function(){return++cvL}; g.dE("ytDomDomGetNextId",UCo);var yif={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};mW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; mW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; mW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Tf=g.RU.ytEventsEventsListeners||{};g.dE("ytEventsEventsListeners",Tf);var Vvf=g.RU.ytEventsEventsCounter||{count:0};g.dE("ytEventsEventsCounter",Vvf);var Cky=Ne(function(){var f=!1;try{var D=Object.defineProperty({},"passive",{get:function(){f=!0}}); window.addEventListener("test",null,D)}catch(F){}return f}),R3a=Ne(function(){var f=!1; try{var D=Object.defineProperty({},"capture",{get:function(){f=!0}}); window.addEventListener("test",null,D)}catch(F){}return f});var CF;CF=window;g.m5=CF.ytcsi&&CF.ytcsi.now?CF.ytcsi.now:CF.performance&&CF.performance.timing&&CF.performance.now&&CF.performance.timing.navigationStart?function(){return CF.performance.timing.navigationStart+CF.performance.now()}:function(){return(new Date).getTime()};g.rE(c6,g.J);c6.prototype.Jb=function(f){f.Y===void 0&&AiT(f);var D=f.Y;f.J===void 0&&AiT(f);this.Y=new g.FA(D,f.J)}; c6.prototype.pG=function(){return this.Y||new g.FA}; c6.prototype.Bs=function(){if(this.Y){var f=(0,g.m5)();if(this.G!=0){var D=this.T,F=this.Y,Z=D.x-F.x;D=D.y-F.y;Z=Math.sqrt(Z*Z+D*D)/(f-this.G);this.J[this.B]=Math.abs((Z-this.X)/this.X)>.5?1:0;for(F=D=0;F<4;F++)D+=this.J[F]||0;D>=3&&this.S();this.X=Z}this.G=f;this.T=this.Y;this.B=(this.B+1)%4}}; c6.prototype.Ey=function(){g.Rg(this.N);g.MP(this.KQ)};g.C(Ug,g.J);Ug.prototype.D=function(f,D,F,Z,I){F=g.DK((0,g.aU)(F,Z||this.Uq));F={target:f,name:D,callback:F};var p;I&&Cky()&&(p={passive:!0});f.addEventListener(D,F.callback,p);this.T.push(F);return F}; Ug.prototype.DK=function(f){for(var D=0;D=u.hv)||b.Y.version>=E||b.Y.objectStoreNames.contains(W)||S.push(W)}K=S;if(K.length===0){m.ZE(5);break}k=Object.keys(F.options.UH); h=H.objectStoreNames();if(F.XF.options.version+1)throw A.close(),F.B=!1,Hkd(F,V);return m.return(A);case 8:throw D(),y instanceof Error&&!g.CO("ytidb_async_stack_killswitch")&&(y.stack=y.stack+"\n"+z.substring(z.indexOf("\n")+1)),A2(y,F.name,"",(R=F.options.version)!=null?R:-1);}})} function D(){F.Y===Z&&(F.Y=void 0)} var F=this;if(!this.B)throw Hkd(this);if(this.Y)return this.Y;var Z,I={blocking:function(p){p.close()}, closed:D,SGE:D,upgrade:this.options.upgrade};return this.Y=Z=f()};var J2=new lu("YtIdbMeta",{UH:{databases:{hv:1}},upgrade:function(f,D){D(1)&&g.MS(f,"databases",{keyPath:"actualName"})}});var xb,eF=new function(){}(new function(){});new g.Hc;g.C(PG,lu);PG.prototype.J=function(f,D,F){F=F===void 0?{}:F;return(this.options.shared?$Ld:AfE)(f,D,Object.assign({},F))}; PG.prototype.delete=function(f){f=f===void 0?{}:f;return(this.options.shared?QqD:V$X)(this.name,f)};var lbA={},mLc=g.fl("ytGcfConfig",{UH:(lbA.coldConfigStore={hv:1},lbA.hotConfigStore={hv:1},lbA),shared:!1,upgrade:function(f,D){D(1)&&(g.at(g.MS(f,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.at(g.MS(f,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.C(FO,g.J);FO.prototype.Ey=function(){for(var f=g.a(this.J),D=f.next();!D.done;D=f.next()){var F=this.Y;D=F.indexOf(D.value);D>=0&&F.splice(D,1)}this.J.length=0;g.J.prototype.Ey.call(this)};qc.prototype.uI=function(f){this.hotHashData=f;g.dE("yt.gcf.config.hotHashData",this.hotHashData||null)};var Enn=typeof TextEncoder!=="undefined"?new TextEncoder:null,kPT=Enn?function(f){return Enn.encode(f)}:function(f){f=g.W9(f); for(var D=new Uint8Array(f.length),F=0;F=D?!1:!0}; g.d.Qr=function(){var f=this;if(!U2(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.OE.gz("QUEUED",this.iY).then(function(D){D&&!f.N_(D,f.zq)?f.ew.vp(function(){return g.l(function(F){if(F.Y==1)return D.id===void 0?F.ZE(2):g.r(F,f.OE.yD(D.id,f.iY),2);f.Qr();g.Zb(F)})}):f.IA.Sm()&&f.xQ()})};var Gz;var XYu={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71, visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336, appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358, webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376, parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394, prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418, sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501, parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297, biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456, youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486, crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511, embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534, mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539,loggingReliabilityProbe:540};var uLn={},c$f=g.fl("ServiceWorkerLogsDatabase",{UH:(uLn.SWHealthLog={hv:1},uLn),shared:!0,upgrade:function(f,D){D(1)&&g.at(g.MS(f,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var BH={},WQs=0;var rz;l_.prototype.requestComplete=function(f,D){D&&(this.J=!0);f=this.removeParams(f);this.Y.get(f)||this.Y.set(f,D)}; l_.prototype.isEndpointCFR=function(f){f=this.removeParams(f);return(f=this.Y.get(f))?!1:f===!1&&this.J?!0:null}; l_.prototype.removeParams=function(f){return f.split("?")[0]}; l_.prototype.removeParams=l_.prototype.removeParams;l_.prototype.isEndpointCFR=l_.prototype.isEndpointCFR;l_.prototype.requestComplete=l_.prototype.requestComplete;l_.getInstance=LQc;g.C(E2,g.i7);g.d=E2.prototype;g.d.Sm=function(){return this.Y.Sm()}; g.d.W0=function(f){this.Y.Y=f}; g.d.ZQQ=function(){var f=window.navigator.onLine;return f===void 0?!0:f}; g.d.e1=function(){this.J=!0}; g.d.listen=function(f,D){return this.Y.listen(f,D)}; g.d.Rp=function(f){return rS(this.Y,f)}; E2.prototype.sendNetworkCheckRequest=E2.prototype.Rp;E2.prototype.listen=E2.prototype.listen;E2.prototype.enableErrorFlushing=E2.prototype.e1;E2.prototype.getWindowStatus=E2.prototype.ZQQ;E2.prototype.networkStatusHint=E2.prototype.W0;E2.prototype.isNetworkAvailable=E2.prototype.Sm;E2.getInstance=lyc;g.C(g.JT,g.i7);g.JT.prototype.Sm=function(){var f=g.QY("yt.networkStatusManager.instance.isNetworkAvailable");return f?f.bind(this.J)():!0}; g.JT.prototype.W0=function(f){var D=g.QY("yt.networkStatusManager.instance.networkStatusHint").bind(this.J);D&&D(f)}; g.JT.prototype.Rp=function(f){var D=this,F;return g.l(function(Z){F=g.QY("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(D.J);return g.CO("skip_network_check_if_cfr")&&LQc().isEndpointCFR("generate_204")?Z.return(new Promise(function(I){var p;D.W0(((p=window.navigator)==null?void 0:p.onLine)||!0);I(D.Sm())})):F?Z.return(F(f)):Z.return(!0)})};var u_;g.C(Nc,vH);Nc.prototype.writeThenSend=function(f,D){D||(D={});D=ea(f,D);g.Xq()||(this.Y=!1);vH.prototype.writeThenSend.call(this,f,D)}; Nc.prototype.sendThenWrite=function(f,D,F){D||(D={});D=ea(f,D);g.Xq()||(this.Y=!1);vH.prototype.sendThenWrite.call(this,f,D,F)}; Nc.prototype.sendAndWrite=function(f,D){D||(D={});D=ea(f,D);g.Xq()||(this.Y=!1);vH.prototype.sendAndWrite.call(this,f,D)}; Nc.prototype.awaitInitialization=function(){return this.B.promise};var NpX=g.RU.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.dE("ytNetworklessLoggingInitializationOptions",NpX);g.xh.prototype.isReady=function(){!this.config_&&EXu()&&(this.config_=g.oS());return!!this.config_};var NEE,nl,PH;NEE=g.RU.ytPubsubPubsubInstance||new g.mQ;nl=g.RU.ytPubsubPubsubSubscribedKeys||{};PH=g.RU.ytPubsubPubsubTopicToKeys||{};g.Yh=g.RU.ytPubsubPubsubIsSynchronous||{};g.mQ.prototype.subscribe=g.mQ.prototype.subscribe;g.mQ.prototype.unsubscribeByKey=g.mQ.prototype.A6;g.mQ.prototype.publish=g.mQ.prototype.publish;g.mQ.prototype.clear=g.mQ.prototype.clear;g.dE("ytPubsubPubsubInstance",NEE);g.dE("ytPubsubPubsubTopicToKeys",PH);g.dE("ytPubsubPubsubIsSynchronous",g.Yh); g.dE("ytPubsubPubsubSubscribedKeys",nl);var naX={};g.C(oz,g.J);oz.prototype.append=function(f){if(!this.J)throw Error("This does not support the append operation");f=f.Cp();this.Cp().appendChild(f)}; g.C(K_,oz);K_.prototype.Cp=function(){return this.Y};g.C(kA,g.J);kA.prototype.onTouchStart=function(f){this.S=!0;this.J=f.touches.length;this.Y.isActive()&&(this.Y.stop(),this.X=!0);f=f.touches;this.T=fVD(this,f)||f.length!=1;var D=f.item(0);this.T||!D?this.Jb=this.N=Infinity:(this.N=D.clientX,this.Jb=D.clientY);for(D=this.B.length=0;D=0)}if(D||f&&Math.pow(f.clientX-this.N,2)+Math.pow(f.clientY-this.Jb,2)>25)this.G=!0}; kA.prototype.onTouchEnd=function(f){var D=f.changedTouches;D&&this.S&&this.J==1&&!this.G&&!this.X&&!this.T&&fVD(this,D)&&(this.Bs=f,this.Y.start());this.J=f.touches.length;this.J===0&&(this.G=this.S=!1,this.B.length=0);this.X=!1};var jn=Date.now().toString();var $A={};var m_=Symbol("injectionDeps");Rz.prototype.toString=function(){return"InjectionToken("+this.name+")"}; IVJ.prototype.resolve=function(f){return f instanceof da?Tw(this,f.key,[],!0):Tw(this,f,[])};var bA;var tK=window;var vy=g.CO("web_enable_lifecycle_monitoring")&&Sn()!==0,jJD=g.CO("web_enable_lifecycle_monitoring");oWc.prototype.cancel=function(){for(var f=g.a(this.Y),D=f.next();!D.done;D=f.next())D=D.value,D.jobId===void 0||D.Xv||this.scheduler.lc(D.jobId),D.Xv=!0;this.J.resolve()};g.d=az.prototype;g.d.install=function(f){this.plugins.push(f);return this}; g.d.uninstall=function(){var f=this;g.hv.apply(0,arguments).forEach(function(D){D=f.plugins.indexOf(D);D>-1&&f.plugins.splice(D,1)})}; g.d.transition=function(f,D){var F=this;vy&&qta(this.state);var Z=this.transitions.find(function(p){return Array.isArray(p.from)?p.from.find(function(z){return z===F.state&&p.to===f}):p.from===F.state&&p.to===f}); if(Z){this.J&&(Kxu(this.J),this.J=void 0);icT(this,f,D);this.state=f;vy&&cy(this.state);Z=Z.action.bind(this);var I=this.plugins.filter(function(p){return p[f]}).map(function(p){return p[f]}); Z(kGu(this,I),D)}else throw Error("no transition specified from "+this.state+" to "+f);}; g.d.k2y=function(f){var D=g.hv.apply(1,arguments);g.f0();for(var F=g.a(f),Z=F.next(),I={};!Z.done;I={QV:void 0},Z=F.next())I.QV=Z.value,wcd(function(p){return function(){wa(p.QV.name);By(function(){return p.QV.callback.apply(p.QV,g.w(D))}); Wy(p.QV.name)}}(I))}; g.d.jAI=function(f){var D=g.hv.apply(1,arguments),F,Z,I,p;return g.l(function(z){z.Y==1&&(g.f0(),F=g.a(f),Z=F.next(),I={});if(z.Y!=3){if(Z.done)return z.ZE(0);I.Dn=Z.value;I.CX=void 0;p=function(H){return function(){wa(H.Dn.name);var K=By(function(){return H.Dn.callback.apply(H.Dn,g.w(D))}); XZ(K)?H.CX=g.CO("web_lifecycle_error_handling_killswitch")?K.then(function(){Wy(H.Dn.name)}):K.then(function(){Wy(H.Dn.name)},function(k){Hcf(k); Wy(H.Dn.name)}):Wy(H.Dn.name)}}(I); wcd(p);return I.CX?g.r(z,I.CX,3):z.ZE(3)}I={Dn:void 0,CX:void 0};Z=F.next();return z.ZE(2)})}; g.d.J_=function(f){var D=g.hv.apply(1,arguments),F=this,Z=f.map(function(I){return{mH:function(){wa(I.name);By(function(){return I.callback.apply(I,g.w(D))}); Wy(I.name)}, priority:Gw(F,I)}}); Z.length&&(this.J=new oWc(Z))}; g.uy.Object.defineProperties(az.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var L_;g.C(ra,az);ra.prototype.X=function(f,D){var F=this;this.Y=g.Yj(0,function(){F.currentState==="application_navigating"&&F.transition("none")},5E3); f(D==null?void 0:D.event)}; ra.prototype.T=function(f,D){this.Y&&(g.lP.lc(this.Y),this.Y=null);f(D==null?void 0:D.event)};var ky=[];g.dE("yt.logging.transport.getScrapedGelPayloads",function(){return ky});lA.prototype.storePayload=function(f,D){f=Eu(f);this.store[f]?this.store[f].push(D):(this.J={},this.store[f]=[D]);this.Y++;g.CO("more_accurate_gel_parser")&&(D=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(D));return f}; lA.prototype.smartExtractMatchingEntries=function(f){if(!f.keys.length)return[];for(var D=uA(this,f.keys.splice(0,1)[0]),F=[],Z=0;Z=0){Z=!1;break a}}Z=!0}Z&&(D=w4(D))&&this.mZ(D)}}; g.d.Z$=function(f){return f}; g.d.onTouchStart=function(f){this.xo.onTouchStart(f)}; g.d.onTouchMove=function(f){this.xo.onTouchMove(f)}; g.d.onTouchEnd=function(f){if(this.xo)this.xo.onTouchEnd(f)}; g.d.mZ=function(f){this.layoutId?this.yT.executeCommand(f,this.layoutId):(f=new g.by("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.SJ(f))}; g.d.createServerVe=function(f,D){this.api.createServerVe(f,this);this.api.setTrackingParams(f,D)}; g.d.logVisibility=function(f,D){this.api.hasVe(f)&&this.api.logVisibility(f,D,this.interactionLoggingClientData)}; g.d.Ey=function(){this.clear(null);this.DK(this.JN);for(var f=g.a(this.zx),D=f.next();!D.done;D=f.next())this.DK(D.value);g.Km.prototype.Ey.call(this)};g.C(Gu,kg); Gu.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);this.Y=D;if(D.text==null&&D.icon==null)g.UT(Error("ButtonRenderer did not have text or an icon set."));else{switch(D.style||null){case "STYLE_UNKNOWN":f="ytp-ad-button-link";break;default:f=null}f!=null&&g.IC(this.element,f);D.text!=null&&(f=g.ih(D.text),g.XI(f)||(this.element.setAttribute("aria-label",f),this.B=new g.Km({K:"span",C:"ytp-ad-button-text",nQ:f}),g.N(this,this.B),this.B.CQ(this.element)));D.accessibilityData&&D.accessibilityData.accessibilityData&& D.accessibilityData.accessibilityData.label&&!g.XI(D.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",D.accessibilityData.accessibilityData.label);D.icon!=null&&(D=aV(D.icon,this.G),D!=null&&(this.J=new g.Km({K:"span",C:"ytp-ad-button-icon",L:[D]}),g.N(this,this.J)),this.X?Sc(this.element,this.J.element,0):this.J.CQ(this.element))}}; Gu.prototype.clear=function(){this.hide()}; Gu.prototype.onClick=function(f){kg.prototype.onClick.call(this,f);f=g.a(yXD(this));for(var D=f.next();!D.done;D=f.next())D=D.value,this.layoutId?this.yT.executeCommand(D,this.layoutId):g.SJ(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.C(wF,g.J);wF.prototype.Ey=function(){this.J&&g.MP(this.J);this.Y.clear();Wa=null;g.J.prototype.Ey.call(this)}; wF.prototype.register=function(f,D){D&&this.Y.set(f,D)}; var Wa=null;g.C(Lm,kg); Lm.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);f=D.hoverText||null;D=D.button&&g.Q(D.button,g.Ma)||null;D==null?g.SJ(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Gu(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,void 0,void 0,void 0,void 0,this.B),g.N(this,this.button),this.button.init(IV("button"),D,this.macros),f&&this.button.element.setAttribute("aria-label",g.ih(f)),this.button.CQ(this.element),this.N&&!g.Zy(this.button.element, "ytp-ad-clickable")&&g.IC(this.button.element,"ytp-ad-clickable"),this.B&&g.IC(this.button.element,"ytp-ad-hover-text-button--clean-player"),f&&(this.J=new g.Km({K:"div",C:"ytp-ad-hover-text-container"}),this.X&&(D=new g.Km({K:"div",C:"ytp-ad-hover-text-callout"}),D.CQ(this.J.element),g.N(this,D)),g.N(this,this.J),this.J.CQ(this.element),D=Ba(f),Sc(this.J.element,D,0)),this.show())}; Lm.prototype.hide=function(){this.button&&this.button.hide();this.J&&this.J.hide();kg.prototype.hide.call(this)}; Lm.prototype.show=function(){this.button&&this.button.show();kg.prototype.show.call(this)};g.C(Eq,kg); Eq.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);F=(f=D.thumbnail)&&lh(f)||"";g.XI(F)?Math.random()<.01&&g.UT(Error("Found AdImage without valid image URL")):(this.Y?g.Dx(this.element,"backgroundImage","url("+F+")"):RG(this.element,{src:F}),RG(this.element,{alt:f&&f.accessibility&&f.accessibility.label||""}),D&&D.adRendererCommands&&D.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Eq.prototype.clear=function(){this.hide()};g.C(Jn,kg);g.d=Jn.prototype;g.d.hide=function(){kg.prototype.hide.call(this);this.B&&this.B.focus()}; g.d.show=function(){this.B=document.activeElement;kg.prototype.show.call(this);this.G.focus()}; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);this.J=D;D.dialogMessages||D.title!=null?D.confirmLabel==null?g.SJ(Error("ConfirmDialogRenderer.confirmLabel was not set.")):D.cancelLabel==null?g.SJ(Error("ConfirmDialogRenderer.cancelLabel was not set.")):RLf(this,D):g.SJ(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.d.clear=function(){g.a8(this.Y);this.hide()}; g.d.Kq=function(){this.hide()}; g.d.F2=function(){var f=this.J.cancelEndpoint;f&&(this.layoutId?this.yT.executeCommand(f,this.layoutId):g.SJ(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.d.c5=function(){var f=this.J.confirmNavigationEndpoint||this.J.confirmEndpoint;f&&(this.layoutId?this.yT.executeCommand(f,this.layoutId):g.SJ(Error("Missing layoutId for confirm dialog.")));this.hide()};g.C(uh,kg);g.d=uh.prototype; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);this.B=D;if(D.defaultText==null&&D.defaultIcon==null)g.SJ(Error("ToggleButtonRenderer must have either text or icon set."));else if(D.defaultIcon==null&&D.toggledIcon!=null)g.SJ(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(D.style){switch(D.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":f="ytp-ad-toggle-button-default-style";break;default:f=null}f!=null&&g.IC(this.G,f)}f={};D.defaultText? (F=g.ih(D.defaultText),g.XI(F)||(f.buttonText=F,this.api.j().experiments.Hs("a11y_h5_associate_survey_question")||this.Y.setAttribute("aria-label",F),this.api.j().experiments.Hs("fix_h5_toggle_button_a11y")&&this.J.setAttribute("aria-label",F))):g.iG(this.Tx,!1);D.defaultTooltip&&(f.tooltipText=D.defaultTooltip,this.Y.hasAttribute("aria-label")||this.J.setAttribute("aria-label",D.defaultTooltip));D.defaultIcon?(F=aV(D.defaultIcon),this.updateValue("untoggledIconTemplateSpec",F),D.toggledIcon?(this.KQ= !0,F=aV(D.toggledIcon),this.updateValue("toggledIconTemplateSpec",F)):(g.iG(this.N,!0),g.iG(this.X,!1)),g.iG(this.Y,!1)):g.iG(this.J,!1);g.tC(f)||this.update(f);D.isToggled&&(g.IC(this.G,"ytp-ad-toggle-button-toggled"),this.toggleButton(D.isToggled));Ns(this);this.D(this.element,"change",this.oz);this.show()}}; g.d.onClick=function(f){this.zx.length>0&&(this.toggleButton(!this.isToggled()),this.oz());kg.prototype.onClick.call(this,f)}; g.d.oz=function(){g.qI(this.G,"ytp-ad-toggle-button-toggled",this.isToggled());for(var f=g.a(dPy(this,this.isToggled())),D=f.next();!D.done;D=f.next())D=D.value,this.layoutId?this.yT.executeCommand(D,this.layoutId):g.SJ(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Ns(this)}; g.d.clear=function(){this.hide()}; g.d.toggleButton=function(f){g.qI(this.G,"ytp-ad-toggle-button-toggled",f);this.Y.checked=f;Ns(this)}; g.d.isToggled=function(){return this.Y.checked};g.C(gF,Ug);gF.prototype.X=function(f){if(Array.isArray(f)){f=g.a(f);for(var D=f.next();!D.done;D=f.next())D=D.value,D instanceof Q8y&&this.B(D)}};g.C(eA,kg);g.d=eA.prototype;g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);D.reasons?D.confirmLabel==null?g.SJ(Error("AdFeedbackRenderer.confirmLabel was not set.")):(D.cancelLabel==null&&g.UT(Error("AdFeedbackRenderer.cancelLabel was not set.")),D.title==null&&g.UT(Error("AdFeedbackRenderer.title was not set.")),bCw(this,D)):g.SJ(Error("AdFeedbackRenderer.reasons were not set."))}; g.d.clear=function(){tX(this.X);tX(this.N);this.G.length=0;this.hide()}; g.d.hide=function(){this.Y&&this.Y.hide();this.J&&this.J.hide();kg.prototype.hide.call(this);this.B&&this.B.focus()}; g.d.show=function(){this.Y&&this.Y.show();this.J&&this.J.show();this.B=document.activeElement;kg.prototype.show.call(this);this.X.focus()}; g.d.ER=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.d.CtT=function(){this.hide()}; xg.prototype.Cp=function(){return this.Y.element}; xg.prototype.getCommand=function(){return this.J}; xg.prototype.isChecked=function(){return this.B.checked};g.C(X5,Jn);X5.prototype.Kq=function(f){Jn.prototype.Kq.call(this,f);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; X5.prototype.F2=function(f){Jn.prototype.F2.call(this,f);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; X5.prototype.c5=function(f){Jn.prototype.c5.call(this,f);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.C(Oq,kg);g.d=Oq.prototype; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);this.X=D;if(D.dialogMessage==null&&D.title==null)g.SJ(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{D.confirmLabel==null&&g.UT(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(f=D.closeOverlayRenderer&&g.Q(D.closeOverlayRenderer,g.Ma)||null)this.Y=new Gu(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.N(this,this.Y),this.Y.init(IV("button"),f,this.macros),this.Y.CQ(this.element);D.title&&(f=g.ih(D.title),this.updateValue("title",f));if(D.adReasons)for(f=D.adReasons,F=0;F=this.Ir?(this.KQ.hide(),this.dY=!0,this.publish("i")):this.B&&this.B.isTemplated()&&(f=Math.max(0,Math.ceil((this.Ir-f)/1E3)),f!=this.LQ&&(Pa(this.B,{TIME_REMAINING:String(f)}),this.LQ=f)))}};g.C(zL,fb);g.d=zL.prototype; g.d.init=function(f,D,F){fb.prototype.init.call(this,f,D,F);if(D.image&&D.image.thumbnail)if(D.headline)if(D.description)if((f=D.actionButton&&g.Q(D.actionButton,g.Ma))&&f.navigationEndpoint){var Z=this.api.getVideoData(2);if(Z!=null)if(D.image&&D.image.thumbnail){var I=D.image.thumbnail.thumbnails;I!=null&&I.length>0&&g.XI(g.uI(I[0].url))&&(I[0].url=Z.profilePicture)}else g.UT(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.B.init(IV("ad-image"),D.image,F);this.X.init(IV("ad-text"), D.headline,F);this.G.init(IV("ad-text"),D.description,F);this.J.init(IV("button"),f,F);F=gS(this.J.element);NL(this.J.element,F+" This link opens in new tab");this.KQ=f.navigationEndpoint;this.api.u6()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.pN.bind(this));this.Tx=D.startMs||0;Dr(this)}else g.SJ(Error("FlyoutCtaRenderer has no valid action button."));else g.SJ(Error("FlyoutCtaRenderer has no description AdText."));else g.SJ(Error("FlyoutCtaRenderer has no headline AdText.")); else g.UT(Error("FlyoutCtaRenderer has no image."))}; g.d.onClick=function(f){fb.prototype.onClick.call(this,f);this.api.pauseVideo();!g.Ua(this.J.element,f.target)&&this.KQ&&(this.layoutId?this.yT.executeCommand(this.KQ,this.layoutId):g.SJ(Error("Missing layoutId for flyout cta.")))}; g.d.gy=function(){if(this.Y){var f=this.Y.getProgressState();(f&&f.current||this.Ir)&&1E3*f.current>=this.Tx&&(Fx(this),g.zP(this.element,"ytp-flyout-cta-inactive"),this.J.element.removeAttribute("tabIndex"))}}; g.d.ge=function(){this.clear()}; g.d.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.pN.bind(this))}; g.d.show=function(){this.J&&this.J.show();fb.prototype.show.call(this)}; g.d.hide=function(){this.J&&this.J.hide();fb.prototype.hide.call(this)}; g.d.pN=function(f){f=="hidden"?this.show():this.hide()};g.C(sK,kg);g.d=sK.prototype; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);this.Y=D;if(this.Y.rectangle)for(f=this.Y.likeButton&&g.Q(this.Y.likeButton,d_),D=this.Y.dislikeButton&&g.Q(this.Y.dislikeButton,d_),this.B.init(IV("toggle-button"),f,F),this.J.init(IV("toggle-button"),D,F),this.D(this.element,"change",this.V_),this.G.show(100),this.show(),F=g.a(this.Y&&this.Y.impressionCommands||[]),f=F.next();!f.done;f=F.next())f=f.value,this.layoutId?this.yT.executeCommand(f,this.layoutId):g.SJ(Error("Missing layoutId for instream user sentiment."))}; g.d.clear=function(){this.hide()}; g.d.hide=function(){this.B.hide();this.J.hide();kg.prototype.hide.call(this)}; g.d.show=function(){this.B.show();this.J.show();kg.prototype.show.call(this)}; g.d.V_=function(){qIJ(this.element,"ytp-ad-instream-user-sentiment-selected");this.Y.postMessageAction&&this.api.wY("onYtShowToast",this.Y.postMessageAction);this.G.hide()}; g.d.onClick=function(f){this.zx.length>0&&this.V_();kg.prototype.onClick.call(this,f)};g.C(qi,g.J);g.d=qi.prototype;g.d.Ey=function(){this.reset();g.J.prototype.Ey.call(this)}; g.d.reset=function(){g.a8(this.G);this.T=!1;this.Y&&this.Y.stop();this.X.stop();this.B&&(this.B=!1,this.S.play())}; g.d.start=function(){this.reset();this.G.D(this.J,"mouseover",this.Rz,this);this.G.D(this.J,"mouseout",this.y_,this);this.Bs&&(this.G.D(this.J,"focusin",this.Rz,this),this.G.D(this.J,"focusout",this.y_,this));this.Y?this.Y.start():(this.T=this.B=!0,g.Dx(this.J,{opacity:this.Jb}))}; g.d.Rz=function(){this.B&&(this.B=!1,this.S.play());this.X.stop();this.Y&&this.Y.stop()}; g.d.y_=function(){this.T?this.X.start():this.Y&&this.Y.start()}; g.d.F5=function(){this.B||(this.B=!0,this.N.play(),this.T=!0)};var rXd=[new HK("b.f_",0),new HK("j.s_",2),new HK("r.s_",4),new HK("e.h_",6),new HK("i.s_",8),new HK("s.t_",10),new HK("p.h_",12),new HK("s.i_",14),new HK("f.i_",16),new HK("a.b_",18),new HK("a.o_"),new HK("g.o_",22),new HK("p.i_",24),new HK("p.m_"),new HK("n.k_",20),new HK("i.f_"),new HK("a.s_"),new HK("m.c_"),new HK("n.h_",26),new HK("o.p_"),new HK("m.p_",28),new HK("o.a_"),new HK("d.p_"),new HK("e.i_")].reduce(function(f,D){f[D.J]=D;return f},{});g.C(ys,fb);g.d=ys.prototype; g.d.init=function(f,D,F){fb.prototype.init.call(this,f,D,F);this.KQ=D;(this.Tx=l8f(this))&&g.UT(Error("hasAdControlInClickCommands_ is true."));if(!D||g.tC(D))g.SJ(Error("SkipButtonRenderer was not specified or empty."));else if(!D.message||g.tC(D.message))g.SJ(Error("SkipButtonRenderer.message was not specified or empty."));else if(f=this.X?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},D=this.api.j().Z("delhi_modern_web_player_icons"),D=aV(f,!1,!1,D),D==null?g.SJ(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+f.iconType+ ".")):(this.api.j().Z("disable_touch_events_on_skip_button")&&(D.W=Object.assign({},D.W,{"aria-hidden":"true",focusable:"false"})),this.B=new g.Km({K:"button",ST:[this.X?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],L:[{K:"span",C:this.X?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",L:[D]}]}),g.N(this,this.B),this.B.CQ(this.G.element),this.J=new Yg(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,"ytp-ad-skip-button-text"),this.X&&this.J.element.classList.add("ytp-ad-skip-button-text-centered"), this.J.init(IV("ad-text"),this.KQ.message,F),g.N(this,this.J),Sc(this.B.element,this.J.element,0)),!this.api.j().Z("disable_touch_events_on_skip_button")){var Z=Z===void 0?null:Z;F=this.api.j();!(this.zx.length>0)&&F.J&&(WL?0:"ontouchstart"in document.documentElement&&(Qic()||VI()))&&(this.DK(this.JN),Z&&this.DK(Z),this.zx=[this.D(this.element,"touchstart",this.onTouchStart,this),this.D(this.element,"touchmove",this.onTouchMove,this),this.D(this.element,"touchend",this.onTouchEnd,this)])}}; g.d.clear=function(){this.Ir.reset();this.hide()}; g.d.hide=function(){this.G.hide();this.J&&this.J.hide();Fx(this);fb.prototype.hide.call(this)}; g.d.onClick=function(f){if(this.B!=null){if(f){var D=f||window.event;D.returnValue=!1;D.preventDefault&&D.preventDefault()}var F;if(WWT(f,{contentCpn:((F=this.api.getVideoData(1))==null?void 0:F.clientPlaybackNonce)||""})===0)this.api.wY("onAbnormalityDetected");else if(fb.prototype.onClick.call(this,f),this.publish("j"),this.api.wY("onAdSkip"),this.dY||!this.Tx)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.d.Z$=function(f){if(!this.dY)return this.Tx&&Kb("SkipButton click commands not pruned while ALC exist"),f;var D,F=(D=g.Q(f,g.AF))==null?void 0:D.commands;if(!F)return f;f=[];for(D=0;D=this.X&&EjD(this,!0)};g.C(Vs,Gu);Vs.prototype.init=function(f,D,F){Gu.prototype.init.call(this,f,D,F);f=!1;D.text!=null&&(f=g.ih(D.text),f=!g.XI(f));f?D.navigationEndpoint==null?g.UT(Error("No visit advertiser clickthrough provided in renderer,")):D.style!=="STYLE_UNKNOWN"?g.UT(Error("Button style was not a link-style type in renderer,")):this.show():g.UT(Error("No visit advertiser text was present in the renderer."))};g.C(Rj,kg); Rj.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);f=D.text;g.XI(jA(f))?g.UT(Error("SimpleAdBadgeRenderer has invalid or empty text")):(f&&f.text&&(D=f.text,this.B&&!this.J&&(D=this.api.j(),D=f.text+" "+(D&&D.J?"\u2022":"\u00b7")),D={text:D,isTemplated:f.isTemplated},f.style&&(D.style=f.style),f.targetId&&(D.targetId=f.targetId),f=new Yg(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),f.init(IV("simple-ad-badge"),D,F),f.CQ(this.element),g.N(this,f)),this.show())}; Rj.prototype.clear=function(){this.hide()};g.C(dQ,pm);g.C(Qs,g.zu);g.d=Qs.prototype;g.d.yI=function(){return this.durationMs}; g.d.stop=function(){this.Y&&this.handler.DK(this.Y)}; g.d.Ft=function(f){this.J={seekableStart:0,seekableEnd:this.durationMs/1E3,current:f.current};this.publish("h")}; g.d.getProgressState=function(){return this.J}; g.d.Yz=function(f){g.hF(f,2)&&this.publish("g")};g.C(Cb,g.zu);g.d=Cb.prototype;g.d.yI=function(){return this.durationMs}; g.d.start=function(){this.Y||(this.Y=!0,this.timer.start())}; g.d.stop=function(){this.Y&&(this.Y=!1,this.timer.stop())}; g.d.Ft=function(){this.rQ+=100;var f=!1;this.rQ>this.durationMs&&(this.rQ=this.durationMs,this.timer.stop(),f=!0);this.J={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.rQ/1E3};this.publish("h");f&&this.publish("g")}; g.d.getProgressState=function(){return this.J};g.C(bt,fb);g.d=bt.prototype;g.d.init=function(f,D,F){fb.prototype.init.call(this,f,D,F);var Z;if(D==null?0:(Z=D.templatedCountdown)==null?0:Z.templatedAdText){f=D.templatedCountdown.templatedAdText;if(!f.isTemplated){g.UT(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.J=new Yg(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);this.J.init(IV("ad-text"),f,{});this.J.CQ(this.element);g.N(this,this.J)}this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Fx(this);fb.prototype.hide.call(this)}; g.d.ge=function(){this.hide()}; g.d.gy=function(){if(this.Y!=null){var f=this.Y.getProgressState();if(f!=null&&f.current!=null&&this.J){var D=this.Y instanceof Qs?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:f.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Y instanceof Cb?f.seekableEnd:this.api.getDuration(2,!1);f=f.current;var F,Z,I=((F=this.api.getVideoData())==null?0:(Z=F.nE)==null?0:Z.call(F))?Math.max(D-f,0):D-f;Pa(this.J,{FORMATTED_AD_DURATION_REMAINING:String(g.ms(I)), TIME_REMAINING:String(Math.ceil(I))})}}}; g.d.show=function(){Dr(this);fb.prototype.show.call(this)};g.C(Mi,Yg);Mi.prototype.onClick=function(f){Yg.prototype.onClick.call(this,f);this.api.onAdUxClicked(this.componentType)};g.C(Ss,kg);Ss.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(f=D.content){g.aG(this.element,f);var F,Z;D=((F=D.interaction)==null?void 0:(Z=F.accessibility)==null?void 0:Z.label)||f;this.element.setAttribute("aria-label",D)}else g.SJ(Error("AdSimpleAttributedString does not have text content"))}; Ss.prototype.clear=function(){this.hide()}; Ss.prototype.onClick=function(f){kg.prototype.onClick.call(this,f)};g.C(cK,kg); cK.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});(f=D.label)&&f.content&&!g.XI(f.content)?(this.adBadgeText.init(IV("ad-simple-attributed-string"),new tF(f)),(D=D.adPodIndex)&&D.content&&!g.XI(D.content)&&(this.Y=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),this.Y.CQ(this.element),g.N(this,this.Y),this.Y.element.classList.add("ytp-ad-badge__pod-index"),this.Y.init(IV("ad-simple-attributed-string"),new tF(D))),this.element.classList.add(this.J?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.SJ(Error("No label is returned in AdBadgeViewModel."))}; cK.prototype.show=function(){this.adBadgeText.show();var f;(f=this.Y)==null||f.show();kg.prototype.show.call(this)}; cK.prototype.hide=function(){this.adBadgeText.hide();var f;(f=this.Y)==null||f.hide();kg.prototype.hide.call(this)};g.C(UK,kg);UK.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});(f=D.adPodIndex)&&f.content&&!g.XI(f.content)&&(this.Y=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),this.Y.CQ(this.element),g.N(this,this.Y),this.Y.init(IV("ad-simple-attributed-string"),new tF(f)),D.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()}; UK.prototype.show=function(){var f;(f=this.Y)==null||f.show();kg.prototype.show.call(this)}; UK.prototype.hide=function(){var f;(f=this.Y)==null||f.hide();kg.prototype.hide.call(this)};g.C(aj,kg); aj.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(D!=null&&D.text){var F;if(((F=D.text)==null?0:F.content)&&!g.XI(D.text.content)){this.Y=new g.Km({K:"div",C:"ytp-ad-disclosure-banner__text",nQ:D.text.content});g.N(this,this.Y);this.Y.CQ(this.element);if(this.api.j().Z("enable_ad_disclosure_banner_a11y_fix")){var Z,I,p=(Z=D.interaction)==null?void 0:(I=Z.accessibility)==null?void 0:I.label;p||(p=D.text.content+" This link opens in new tab");NL(this.element,p)}else{var z;Z=((p= D.interaction)==null?void 0:(z=p.accessibility)==null?void 0:z.label)||D.text.content;this.element.setAttribute("aria-label",Z)}var H;if((H=D.interaction)==null?0:H.onTap)this.api.j().Z("remove_chevron_from_ad_disclosure_banner_h5")||(this.J=new g.Km({K:"div",C:"ytp-ad-disclosure-banner__chevron",L:[g.$g()]}),g.N(this,this.J),this.J.CQ(this.element)),this.api.j().Z("enable_ad_disclosure_banner_a11y_fix")&&(Jf(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.VK)); this.show()}}else g.SJ(Error("No banner text found in AdDisclosureBanner."))}; aj.prototype.VK=function(f){if(f.key==="Enter"||f.key===" ")f.preventDefault(),this.element.click()}; aj.prototype.clear=function(){this.hide()};g.C(WK,g.Km);WK.prototype.Ft=function(){var f=this.J.getProgressState(),D=f.seekableEnd;this.api.getPresentingPlayerType()===2&&(D=this.B?this.B/1E3:f.seekableEnd);this.progressBar.style.width=wQ(new GL(f.seekableStart,D),f.current,0)*100+"%"}; WK.prototype.onStateChange=function(){g.ei(this.api.j())||(this.api.getPresentingPlayerType()===2?this.Y===-1&&(this.show(),this.Y=this.J.subscribe("h",this.Ft,this),this.Ft()):this.Y!==-1&&(this.hide(),this.J.A6(this.Y),this.Y=-1))};g.C(BK,kg); BK.prototype.init=function(f,D,F,Z){kg.prototype.init.call(this,f,D,F);if(D.skipOrPreviewRenderer){if(f=g.Q(D.skipOrPreviewRenderer,I7))F=new $4(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J,this.N),F.CQ(this.jT),F.init(IV("skip-button"),f,this.macros),g.N(this,F);if(f=g.Q(D.skipOrPreviewRenderer,I7))var I=f.skipOffsetMilliseconds}D.brandInteractionRenderer&&(f=D.brandInteractionRenderer.brandInteractionRenderer,F=new sK(this.api,this.layoutId,this.interactionLoggingClientData,this.yT), F.CQ(this.Tx),F.init(IV("instream-user-sentiment"),f,this.macros),g.N(this,F));if(f=g.Q(D,Uwc))if(f=g.Q(f,Uwc))F=new zL(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J,!!D.showWithoutLinkedMediaLayout),g.N(this,F),F.CQ(this.X),F.init(IV("flyout-cta"),f,this.macros);Z=Z&&Z.videoAdDurationSeconds;D.adBadgeRenderer&&(F=D.adBadgeRenderer,f=g.Q(F,l4),f!=null?(F=new cK(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!1),g.N(this,F),F.CQ(this.Y),F.init(IV("ad-badge"), f,this.macros),this.B=F.element):(f=F.simpleAdBadgeRenderer,f==null&&(f={text:{text:"Anuncio",isTemplated:!1}}),F=new Rj(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0),g.N(this,F),F.CQ(this.Y),F.init(IV("simple-ad-badge"),f,this.macros)));D.adPodIndex&&(f=g.Q(D.adPodIndex,EcV),f!=null&&(F=new UK(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,F),F.CQ(this.Y),F.init(IV("ad-pod-index"),f)));D.adDurationRemaining&&!D.showWithoutLinkedMediaLayout&&(f=D.adDurationRemaining.adDurationRemainingRenderer, f==null&&(f={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),Z=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J,Z,!1),g.N(this,Z),Z.CQ(this.Y),Z.init(IV("ad-duration-remaining"),f,this.macros));D.adInfoRenderer&&(Z=g.Q(D.adInfoRenderer,Tj))&&(f=new nm(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.element,void 0,!1),g.N(this,f),this.B!==null?this.Y.insertBefore(f.element,this.B.nextSibling):f.CQ(this.Y), f.init(IV("ad-info-hover-text-button"),Z,this.macros));D.visitAdvertiserRenderer&&(f=g.Q(D.visitAdvertiserRenderer,g.Ma))&&(F=gjs(this)&&this.G?this.G:this.Y)&&(Z=new Vs(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,Z),Z.CQ(F),Z.init(IV("visit-advertiser"),f,this.macros),Jf(Z.element),f=gS(Z.element),NL(Z.element,f+" This link opens in new tab"));!(Z=this.api.j())||g.NF(Z)||g.LM(Z)||Z.controlsType!="3"&&!Z.disableOrganicUi||(I=new WK(this.api,this.J,I,!1),I.CQ(this.Ir), g.N(this,I));D.adDisclosureBannerRenderer&&(D=g.Q(D.adDisclosureBannerRenderer,lso))&&(I=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),I.CQ(this.KQ),I.init(IV("ad-disclosure-banner"),D),g.N(this,I));this.api.j().Z("enable_updated_html5_player_focus_style")&&g.IC(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; BK.prototype.clear=function(){this.hide()};lt.prototype.flush=function(f,D){f=f===void 0?[]:f;D=D===void 0?!1:D;if(g.CO("enable_client_streamz_web")){f=g.a(f);for(var F=f.next();!F.done;F=f.next())F=d0a(F.value),this.Y&&E8(F,iJ,2,this.Y),F={serializedIncrementBatch:g.B9(F.B())},g.ha("streamzIncremented",F,{sendIsolatedPayload:D})}}; g.C(eLu,lt);g.C(X6D,lt);var EK,dgJ=new Map;JF.prototype.set=function(f,D,F){F=F!==void 0?Date.now()+F:void 0;this.Y.set(f,D,F)}; JF.prototype.get=function(f){return this.Y.get(f)}; JF.prototype.remove=function(f){this.Y.remove(f)};var njs=null;var x4=null,Xx=null,OK=null,F5I=null;g.dE("yt.www.ads.eventcache.getLastCompanionData",function(){return x4}); g.dE("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.dE("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Xx}); g.dE("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return OK}); g.dE("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return F5I});var Iac=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);nb.prototype.handleResponse=function(f,D){if(!D)throw Error("request needs to be passed into ConsistencyService");var F,Z;D=((F=D.Ce.context)==null?void 0:(Z=F.request)==null?void 0:Z.consistencyTokenJars)||[];var I;(f=(I=f.responseContext)==null?void 0:I.consistencyTokenJar)&&this.replace(D,f)}; nb.prototype.replace=function(f,D){f=g.a(f);for(var F=f.next();!F.done;F=f.next())delete this.Y[F.value.encryptedTokenJarContents];zCJ(this,D)};var OoU=window.location.hostname.split(".").slice(-2).join("."),ty;PK.getInstance=function(){ty=g.QY("yt.clientLocationService.instance");ty||(ty=new PK,g.dE("yt.clientLocationService.instance",ty));return ty}; g.d=PK.prototype; g.d.setLocationOnInnerTubeContext=function(f){f.client||(f.client={});if(this.Y)f.client.locationInfo||(f.client.locationInfo={}),f.client.locationInfo.latitudeE7=Math.floor(this.Y.coords.latitude*1E7),f.client.locationInfo.longitudeE7=Math.floor(this.Y.coords.longitude*1E7),f.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Y.coords.accuracy),f.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.B||this.locationPlayabilityToken)f.client.locationPlayabilityToken=this.B|| this.locationPlayabilityToken}; g.d.handleResponse=function(f){var D;f=(D=f.responseContext)==null?void 0:D.locationPlayabilityToken;f!==void 0&&(this.locationPlayabilityToken=f,this.Y=void 0,g.nc("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Y4(this))&&this.localStorage.set("yt-location-playability-token",f,15552E3):g.ro("YT_CL",JSON.stringify({loctok:f}),15552E3,OoU,!0))}; g.d.clearLocationPlayabilityToken=function(f){f==="TVHTML5"?(this.localStorage=Y4(this))&&this.localStorage.remove("yt-location-playability-token"):g.lL("YT_CL");this.B=void 0;this.J!==-1&&(clearTimeout(this.J),this.J=-1)}; g.d.getCurrentPositionFromGeolocation=function(){var f=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var D=!1,F=1E4;g.nc("INNERTUBE_CLIENT_NAME")==="MWEB"&&(D=!0,F=15E3);return new Promise(function(Z,I){navigator.geolocation.getCurrentPosition(function(p){f.Y=p;Z(p)},function(p){I(p)},{enableHighAccuracy:D, maximumAge:0,timeout:F})})}; g.d.createUnpluggedLocationInfo=function(f){var D={};f=f.coords;if(f==null?0:f.latitude)D.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)D.longitudeE7=Math.floor(f.longitude*1E7);if(f==null?0:f.accuracy)D.locationRadiusMeters=Math.round(f.accuracy);return D}; g.d.createLocationInfo=function(f){var D={};f=f.coords;if(f==null?0:f.latitude)D.latitudeE7=Math.floor(f.latitude*1E7);if(f==null?0:f.longitude)D.longitudeE7=Math.floor(f.longitude*1E7);return D};g.d=K5u.prototype;g.d.contains=function(f){return Object.prototype.hasOwnProperty.call(this.Y,f)}; g.d.get=function(f){if(this.contains(f))return this.Y[f]}; g.d.set=function(f,D){this.Y[f]=D}; g.d.cC=function(){return Object.keys(this.Y)}; g.d.remove=function(f){delete this.Y[f]};DO.prototype.getModuleId=function(f){return f.serviceId.getModuleId()}; DO.prototype.get=function(f){a:{var D=this.mappings.get(f.toString());switch(D.type){case "mapping":f=D.value;break a;case "factory":D=D.value();this.mappings.set(f.toString(),{type:"mapping",value:D});f=D;break a;default:f=TJ(D)}}return f}; DO.prototype.registerService=function(f,D){this.mappings.set(f.toString(),{type:"mapping",value:D});return f}; new DO;var SP={},key=(SP.WEB_UNPLUGGED="^unplugged/",SP.WEB_UNPLUGGED_ONBOARDING="^unplugged/",SP.WEB_UNPLUGGED_OPS="^unplugged/",SP.WEB_UNPLUGGED_PUBLIC="^unplugged/",SP.WEB_CREATOR="^creator/",SP.WEB_KIDS="^kids/",SP.WEB_EXPERIMENTS="^experiments/",SP.WEB_MUSIC="^music/",SP.WEB_REMIX="^music/",SP.WEB_MUSIC_EMBEDDED_PLAYER="^music/",SP.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",SP);In.prototype.X=function(f,D,F){D=D===void 0?{}:D;F=F===void 0?kh:F;var Z={context:g.fP(f.clickTrackingParams,!1,this.G)};var I=this.J(f);if(I){this.Y(Z,I,D);var p;D=g.ZO(this.B());(I=(p=g.Q(f.commandMetadata,g.R1))==null?void 0:p.apiUrl)&&(D=I);p=XlJ(E4(D));f=Object.assign({},{command:f},void 0);Z={input:p,KB:JW(p),Ce:Z,config:f};Z.config.Jx?Z.config.Jx.identity=F:Z.config.Jx={identity:F};return Z}F=new g.by("Error: Failed to create Request from Command.",f);g.SJ(F)}; g.uy.Object.defineProperties(In.prototype,{G:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.C(pP,In);g.C(zt,pP);zt.prototype.X=function(){return{input:"/getDatasyncIdsEndpoint",KB:JW("/getDatasyncIdsEndpoint","GET"),Ce:{}}}; zt.prototype.B=function(){return[]}; zt.prototype.J=function(){}; zt.prototype.Y=function(){};var nnb={},gbu=(nnb.GET_DATASYNC_IDS=Fd(zt),nnb);var cr={},Y00=(cr["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",cr["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",cr["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",cr["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",cr["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",cr["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",cr["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", cr["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",cr["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",cr["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",cr["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",cr["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",cr["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",cr["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",cr["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", cr["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",cr["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",cr["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",cr["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",cr["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",cr["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",cr["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", cr["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",cr.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",cr["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",cr["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",cr["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",cr["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",cr["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",cr["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", cr["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",cr["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",cr["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",cr["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",cr["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",cr["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",cr["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",cr["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",cr["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",cr["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",cr.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",cr["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",cr["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",cr["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",cr["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",cr["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",cr["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",cr["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",cr["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",cr["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",cr["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",cr["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",cr["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",cr["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",cr["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",cr["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",cr["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",cr["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",cr["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",cr["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",cr["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",cr["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", cr["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",cr["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",cr["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",cr["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",cr["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",cr["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",cr["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",cr["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",cr["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", cr["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",cr["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",cr["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",cr["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",cr["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",cr["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",cr["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",cr["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", cr),Uv={},VFE=(Uv.auto_search="LATENCY_ACTION_AUTO_SEARCH",Uv.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Uv.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Uv.app_startup="LATENCY_ACTION_APP_STARTUP",Uv.browse="LATENCY_ACTION_BROWSE",Uv.cast_splash="LATENCY_ACTION_CAST_SPLASH",Uv.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Uv.channels="LATENCY_ACTION_CHANNELS",Uv.chips="LATENCY_ACTION_CHIPS",Uv.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Uv.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Uv.editor="LATENCY_ACTION_EDITOR",Uv.embed="LATENCY_ACTION_EMBED",Uv.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Uv.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Uv.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Uv.explore="LATENCY_ACTION_EXPLORE",Uv.favorites="LATENCY_ACTION_FAVORITES",Uv.home="LATENCY_ACTION_HOME",Uv.inboarding="LATENCY_ACTION_INBOARDING",Uv.landing="LATENCY_ACTION_LANDING",Uv.learning="LATENCY_ACTION_LEARNING", Uv.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Uv.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Uv.library="LATENCY_ACTION_LIBRARY",Uv.live="LATENCY_ACTION_LIVE",Uv.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Uv.management="LATENCY_ACTION_MANAGEMENT",Uv.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Uv.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Uv.onboarding="LATENCY_ACTION_ONBOARDING",Uv.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", Uv.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Uv.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Uv.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Uv.prebuffer="LATENCY_ACTION_PREBUFFER",Uv.prefetch="LATENCY_ACTION_PREFETCH",Uv.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Uv.profile_switcher="LATENCY_ACTION_LOGIN",Uv.projects="LATENCY_ACTION_PROJECTS",Uv.reel_watch="LATENCY_ACTION_REEL_WATCH",Uv.results="LATENCY_ACTION_RESULTS",Uv.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", Uv.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Uv.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Uv.review="LATENCY_ACTION_REVIEW",Uv.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Uv.search_ui="LATENCY_ACTION_SEARCH_UI",Uv.search_suggest="LATENCY_ACTION_SUGGEST",Uv.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Uv.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Uv.seek="LATENCY_ACTION_PLAYER_SEEK",Uv.settings="LATENCY_ACTION_SETTINGS",Uv.store="LATENCY_ACTION_STORE", Uv.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Uv.tenx="LATENCY_ACTION_TENX",Uv.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Uv.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Uv.watch="LATENCY_ACTION_WATCH",Uv.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Uv["watch,watch7"]="LATENCY_ACTION_WATCH",Uv["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Uv["watch,watch7ad"]="LATENCY_ACTION_WATCH",Uv["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Uv.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", Uv.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Uv.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Uv.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Uv.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Uv.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Uv.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Uv.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Uv);Object.assign(VFE,Y00);g.C(h7,i_);var aay=new hT("aft-recorded",h7);var PX0=g.RU.ytLoggingGelSequenceIdObj_||{};g.dE("ytLoggingGelSequenceIdObj_",PX0);var $6=g.RU.ytLoggingLatencyUsageStats_||{};g.dE("ytLoggingLatencyUsageStats_",$6);yl.prototype.tick=function(f,D,F,Z){Vl(this,"tick_"+f+"_"+D)||g.ha("latencyActionTicked",{tickName:f,clientActionNonce:D},{timestamp:F,cttAuthInfo:Z})}; yl.prototype.info=function(f,D,F){var Z=Object.keys(f).join("");Vl(this,"info_"+Z+"_"+D)||(f=Object.assign({},f),f.clientActionNonce=D,g.ha("latencyActionInfo",f,{cttAuthInfo:F}))}; yl.prototype.jspbInfo=function(f,D,F){for(var Z="",I=0;I=I.length?(D.append(I),f-=I.length):f?(D.append(new Uint8Array(I.buffer,I.byteOffset,f)),F.append(new Uint8Array(I.buffer,I.byteOffset+f,I.length-f)),f=0):F.append(I);return{CV:D,R6:F}}; K6.prototype.isFocused=function(f){return f>=this.B&&f=64&&(this.T.set(f.subarray(0,64-this.J),this.J),D=64-this.J,this.J=0,rTX(this,this.T,0));for(;D+64<=F;D+=64)rTX(this,f,D);D=this.start&&(f=2&&F.ssdaiAdsConfig&&Kb("Unexpected ad placement renderers length",f.slot,null,{length:Z.length});var I;((I=F.adSlots)==null?0:I.some(function(p){var z,H;return((z=g.Q(p,dM))==null?void 0:(H=z.adSlotMetadata)==null?void 0:H.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||Z.some(function(p){var z,H,K,k; return!!((z=p.renderer)==null?0:(H=z.linearAdSequenceRenderer)==null?0:(K=H.linearAds)==null?0:K.length)||!((k=p.renderer)==null||!k.instreamVideoAdRenderer)})||oyu(f)})}; eo.prototype.C9=function(){O_T(this.Y)};x1.prototype.h1=function(){var f=this;Xyu(this.J,function(){var D=gN(f.slot.clientMetadata,"metadata_type_ad_break_request_data");return D.cueProcessedMs?f.Y.get().fetch({SW:D.getAdBreakUrl,aC:new g.Jm(D.WO,D.rk),cueProcessedMs:D.cueProcessedMs}):f.Y.get().fetch({SW:D.getAdBreakUrl,aC:new g.Jm(D.WO,D.rk)})})}; x1.prototype.C9=function(){O_T(this.J)};Xc.prototype.h1=function(){var f=this.slot.clientMetadata,D,F=(D=this.slot.fulfilledLayout)!=null?D:gN(f,"metadata_type_fulfilled_layout");Tay(this.callback,this.slot,F)}; Xc.prototype.C9=function(){zq(this.callback,this.slot,new Y("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")};nn.prototype.build=function(f,D){return D.fulfilledLayout||Ox(D,{fE:["metadata_type_fulfilled_layout"]})?new Xc(f,D):this.B(f,D)};g.C(Y1,nn); Y1.prototype.B=function(f,D){if(Ox(D,{fE:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new eo(f,D,this.Y,this.J,this.Jk,this.mI,this.DE,this.l3,this.HI);if(Ox(D,{fE:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new x1(f,D,this.Y,this.J,this.Jk,this.mI);throw new Y("Unsupported slot with type: "+D.slotType+" and client metadata: "+eU(D.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.C(PC,nn);PC.prototype.B=function(f,D){throw new Y("Unsupported slot with type: "+D.slotType+" and client metadata: "+eU(D.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.d=KMJ.prototype;g.d.YG=function(){return this.slot}; g.d.Y8=function(){return this.layout}; g.d.init=function(){}; g.d.release=function(){}; g.d.startRendering=function(f){if(f.layoutId!==this.layout.layoutId)this.callback.e$(this.slot,f,new uz("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 D=gN(f.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.fF(this.slot,f),POf(this.B, this.slot,D)):Kb("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,f)}}; g.d.IG=function(f,D){f.layoutId!==this.layout.layoutId?this.callback.e$(this.slot,f,new uz("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.iJ(this.slot,f,D),j6y(this),i2u(this))};g.C(Im,g.zu);g.d=Im.prototype;g.d.YG=function(){return this.J.slot}; g.d.Y8=function(){return this.J.layout}; g.d.init=function(){this.B.get().addListener(this)}; g.d.release=function(){this.B.get().removeListener(this);this.dispose()}; g.d.Zg=function(){}; g.d.Ur=function(){}; g.d.XZ=function(){}; g.d.UO=function(){}; g.d.startRendering=function(f){var D=this;ZJ(this.J,f,function(){return void D.xs()})}; g.d.xs=function(){this.B.get().xs(this.Y)}; g.d.IG=function(f,D){var F=this;ZJ(this.J,f,function(){var Z=F.B.get();Pgy(Z,F.Y,3);F.Y=[];F.callback.iJ(F.slot,f,D)})}; g.d.Ey=function(){this.B.MR()||this.B.get().removeListener(this);g.zu.prototype.Ey.call(this)}; g.uy.Object.defineProperties(Im.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.J.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.J.layout}}});kT.prototype.Hl=function(f,D){D=D===void 0?!1:D;var F=(this.B.get(f)||[]).concat();if(D=D&&$3y(f)){var Z=this.B.get(D);Z&&F.push.apply(F,g.w(Z))}hu(this,f,F);this.Y.add(f);D&&this.Y.add(D)}; kT.prototype.iE=function(f,D){D=D===void 0?!1:D;if(!this.Y.has(f)){var F=D&&$3y(f);F&&(D=!this.Y.has(F));this.Hl(f,D)}};g.C(d3X,pm);g.C(Rm,Im);g.d=Rm.prototype;g.d.c_=function(f,D){q$("ads-engagement-panel-layout",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),g.Q(this.Y8().renderingContent,FC),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(D,F,Z,I,p){return new d3X(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};g.C(CNy,pm);g.C(d7,Im);g.d=d7.prototype;g.d.c_=function(f,D){q$("banner-image",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),g.Q(this.Y8().renderingContent,fe),this.callback,"metadata_type_banner_image_layout_view_model",function(D,F,Z,I,p){return new CNy(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};g.C(QH,pm);g.C(CJ,Im);g.d=CJ.prototype;g.d.c_=function(f,D){q$("action-companion",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),g.Q(this.Y8().renderingContent,nj),this.callback,"metadata_type_action_companion_ad_renderer",function(D,F,Z,I,p){return new QH(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){D.layoutId===this.layout.layoutId?this.Rr.iE("impression"):this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};g.C(b2I,pm);g.C(md,Im);g.d=md.prototype;g.d.c_=function(f,D){q$("image-companion",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),g.Q(this.Y8().renderingContent,YN),this.callback,"metadata_type_image_companion_ad_renderer",function(D,F,Z,I,p){return new b2I(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){D.layoutId===this.layout.layoutId?this.Rr.iE("impression"):this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};g.C(tJE,pm);g.C(Tl,Im);g.d=Tl.prototype;g.d.c_=function(f,D){q$("shopping-companion",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(D,F,Z,I,p){return new tJE(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){D.layoutId===this.layout.layoutId?this.Rr.iE("impression"):this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};g.C(tu,Im);g.d=tu.prototype;g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(D,F,Z,I,p){return new QH(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(){}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)}; g.d.c_=function(){};g.d=a1u.prototype;g.d.YG=function(){return this.slot}; g.d.Y8=function(){return this.layout}; g.d.init=function(){this.l3.get().addListener(this);this.l3.get().H8.push(this);var f=gN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=gN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");H7(this.layout.Xq)&&Ys(this.mE.get(),this.layout.layoutId,{Ze:D,X$:f,listener:this})}; g.d.release=function(){this.l3.get().removeListener(this);eFu(this.l3.get(),this);H7(this.layout.Xq)&&PF(this.mE.get(),this.layout.layoutId)}; g.d.startRendering=function(f){this.callback.fF(this.slot,f)}; g.d.IG=function(f,D){AcD(this.mI.get())&&!this.Y&&(this.Rr.iE("abandon"),this.Y=!0);this.callback.iJ(this.slot,f,D)}; g.d.V$=function(f){switch(f.id){case "part2viewed":this.Rr.iE("start");this.Rr.iE("impression");break;case "videoplaytime25":this.Rr.iE("first_quartile");break;case "videoplaytime50":this.Rr.iE("midpoint");break;case "videoplaytime75":this.Rr.iE("third_quartile");break;case "videoplaytime100":AcD(this.mI.get())?this.Y||(this.Rr.iE("complete"),this.Y=!0):this.Rr.iE("complete");VH(this.Rr)&&Au(this.Rr,Infinity,!0);$Gs(this.mI.get())&&M$(this.J,Infinity,!0);break;case "engagedview":VH(this.Rr)||this.Rr.iE("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Kb("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.d.onVolumeChange=function(){}; g.d.Lc=function(){}; g.d.Te=function(){}; g.d.R2=function(){}; g.d.onFullscreenToggled=function(){}; g.d.UW=function(){}; g.d.aN=function(){}; g.d.E7=function(f){$Gs(this.mI.get())&&M$(this.J,f*1E3,!1);VH(this.Rr)&&Au(this.Rr,f*1E3,!1)}; g.d.Hn=function(){}; g.d.g9=function(){this.Rr.iE("active_view_measurable")}; g.d.QW=function(){this.Rr.iE("active_view_viewable")}; g.d.uW=function(){this.Rr.iE("active_view_fully_viewable_audible_half_duration")}; g.d.d9=function(){this.Rr.iE("audio_measurable")}; g.d.N$=function(){this.Rr.iE("audio_audible")};g.C(SS,Im);g.d=SS.prototype;g.d.init=function(){Im.prototype.init.call(this);var f=gN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),D={adsClientData:this.layout.Pk};this.Y.push(new dQ(f,this.layout.layoutId,gN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),D,!0))}; g.d.j2=function(){this.G||this.l3.get().resumeVideo(1)}; g.d.startRendering=function(f){Im.prototype.startRendering.call(this,f);zg(this.l3.get(),"ad-showing");this.callback.fF(this.slot,f);this.X.hP=this}; g.d.IG=function(f,D){Im.prototype.IG.call(this,f,D);sb(this.l3.get(),"ad-showing");Nj(this.X,this)}; g.d.c_=function(f){switch(f){case "ad-info-icon-button":(this.G=this.l3.get().Av(1))||this.l3.get().pauseVideo();break;case "visit-advertiser":this.l3.get().pauseVideo()}}; g.d.Ey=function(){Im.prototype.Ey.call(this)};g.C(c7,pm);g.C(UL,Im);g.d=UL.prototype;g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(D,F,Z,I,p){return new c7(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(){}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)}; g.d.c_=function(){};g.C(v7,pm);g.C(am,Im);am.prototype.init=function(){Im.prototype.init.call(this);this.Y.push(new v7(g.Q(this.layout.renderingContent,$D),this.layout.layoutId,{adsClientData:this.layout.Pk}))}; am.prototype.c_=function(){AS(this.G.get(),this.X)&&sL(this.DE.get(),3)}; am.prototype.startRendering=function(f){Im.prototype.startRendering.call(this,f);this.callback.fF(this.slot,f)}; am.prototype.Ey=function(){Im.prototype.Ey.call(this)};g.C(Gl,pm);g.C(w7,Im);w7.prototype.init=function(){Im.prototype.init.call(this);var f=g.Q(this.layout.renderingContent,X8)||gN(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),D=pJ(this.Rr);this.Y.push(new Gl(f,D,this.layout.layoutId,{adsClientData:this.layout.Pk},!0,!0))}; w7.prototype.startRendering=function(f){Im.prototype.startRendering.call(this,f);this.callback.fF(this.slot,f)}; w7.prototype.c_=function(f,D){if(D===this.layout.layoutId)switch(f){case "skip-button":var F;(f=(F=gN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&u0(f,this.YG(),this.layout)}}; w7.prototype.Ey=function(){Im.prototype.Ey.call(this)};B7.prototype.build=function(f,D,F,Z){if(W7(Z,{fE:["metadata_type_ad_break_response_data"],vD:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new KMJ(f,F,Z,this.J,this.B,this.Y);throw new uz("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+eU(Z.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.C(WMD,pm);g.C(r7,Im);g.d=r7.prototype;g.d.c_=function(f,D){q$("ads-engagement-panel",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),g.Q(this.Y8().renderingContent,PI),this.callback,"metadata_type_ads_engagement_panel_renderer",function(D,F,Z,I,p){return new WMD(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){D.layoutId===this.layout.layoutId?this.Rr.iE("impression"):this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};g.C(LJ,Im);g.d=LJ.prototype;g.d.c_=function(f,D){q$("top-banner-image-text-icon-buttoned",f,this.T.get().MM,this.DE.get(),this.G,this.X,this.YG(),this.Y8(),D)}; g.d.startRendering=function(f){zl(this.Rr,this.YG(),this.Y8(),g.Q(this.Y8().renderingContent,Dv),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(D,F,Z,I,p){return new c7(D,F,Z,I,p)},this.Y); Im.prototype.startRendering.call(this,f)}; g.d.fF=function(f,D){this.X===D.layoutId&&(this.G===null?this.G=this.DE.get().h6():Kb("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.Ey=function(){Zt(this.CF(),this);Im.prototype.Ey.call(this)};LMJ.prototype.build=function(f,D,F,Z){if(W7(Z,B4u())||g.Q(Z.renderingContent,PI)!==void 0)return new r7(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,T4c())||g.Q(Z.renderingContent,nj)!==void 0)return new CJ(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,MJw())||g.Q(Z.renderingContent,YN)!==void 0)return new md(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,STT()))return new Tl(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,vyD()))return new tu(f,F,Z,this.xG,this.DE,this.CF, this.mE,this.Y);if(W7(Z,m3J())||g.Q(Z.renderingContent,fe)!==void 0)return new d7(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,rau())||g.Q(Z.renderingContent,Dv)!==void 0)return new LJ(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,GnJ()))return new UL(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);if(W7(Z,Q6E())||g.Q(Z.renderingContent,FC)!==void 0)return new Rm(f,F,Z,this.xG,this.DE,this.CF,this.mE,this.Y);throw new uz("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+ eU(Z.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};l1c.prototype.build=function(f,D,F,Z){if(W7(Z,{fE:["metadata_type_linked_player_bytes_layout_id"],vD:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new am(f,F,Z,this.xG,this.DE,this.Y);throw new uz("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+eU(Z.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.d=Eyc.prototype;g.d.YG=function(){return this.slot}; g.d.Y8=function(){return this.layout}; g.d.init=function(){}; g.d.release=function(){}; g.d.startRendering=function(f){f.layoutId!==this.layout.layoutId?this.callback.e$(this.slot,f,new uz("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.fF(this.slot,f),this.Rr.iE("impression"),xP(this.y$,f))}; g.d.IG=function(f,D){f.layoutId!==this.layout.layoutId?this.callback.e$(this.slot,f,new uz("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.iJ(this.slot,f,D)};g.d=u7f.prototype;g.d.YG=function(){return this.slot}; g.d.Y8=function(){return this.layout}; g.d.init=function(){}; g.d.release=function(){}; g.d.startRendering=function(f){f.layoutId!==this.layout.layoutId?this.callback.e$(this.slot,f,new uz("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.fF(this.slot,f),this.Rr.iE("impression"),xP(this.y$,f))}; g.d.IG=function(f,D){f.layoutId!==this.layout.layoutId?this.callback.e$(this.slot,f,new uz("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.iJ(this.slot,f,D)};l$.prototype.build=function(f,D,F,Z){if(!this.mI.get().U.j().Z("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(W7(Z,JaI()))return new Eyc(f,F,Z,this.DE,this.y$)}else if(W7(Z,{fE:[],vD:["LAYOUT_TYPE_FORECASTING"]}))return new u7f(f,F,Z,this.DE,this.y$);throw new uz("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+eU(Z.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.C(ehw,pm);g.C(EL,Im);g.d=EL.prototype;g.d.init=function(){Im.prototype.init.call(this);var f=g.Q(this.layout.renderingContent,xT)||gN(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),D={adsClientData:this.layout.Pk};this.Y.push(new ehw(f,gN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,D))}; g.d.j2=function(){this.G||this.l3.get().resumeVideo(2)}; g.d.startRendering=function(f){Im.prototype.startRendering.call(this,f);this.callback.fF(this.slot,f);this.X.hP=this}; g.d.IG=function(f,D){Im.prototype.IG.call(this,f,D);Nj(this.X,this)}; g.d.c_=function(f,D){if(!wA(this.mI.get(),"stop_handling_click_for_non_rendering_overlay_layout")||D===this.layout.layoutId){if(AS(this.T.get(),this.S))switch(f){case "visit-advertiser-link":sL(this.DE.get(),3)}switch(f){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.l3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.l3.get().Av(2))||this.l3.get().pauseVideo();break; case "visit-advertiser-link":this.l3.get().pauseVideo();x3a(this).k0();break;case "skip-button":if(f=x3a(this),this.layout.renderingContent&&!lz(this.layout.clientMetadata,"metadata_type_dai")||!f||!f.d_){var F;(f=(F=gN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&u0(f,this.YG(),this.layout)}else Kb("Requesting to skip by LegacyPlayerBytes when components enabled"),f.I7(this.YG(),this.layout)}}}; g.d.Ey=function(){Im.prototype.Ey.call(this)};g.C(Ju,Im);g.d=Ju.prototype;g.d.init=function(){Im.prototype.init.call(this);var f=g.Q(this.layout.renderingContent,eS)||gN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),D={adsClientData:this.layout.Pk},F;(F=!!this.layout.renderingContent)||(F=u$(this),F=!(F&&F.d_));this.Y.push(new dQ(f,this.layout.layoutId,gN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),D,F))}; g.d.j2=function(){this.G||this.l3.get().resumeVideo(2)}; g.d.startRendering=function(f){Im.prototype.startRendering.call(this,f);this.callback.fF(this.slot,f);this.X.hP=this}; g.d.IG=function(f,D){Im.prototype.IG.call(this,f,D);Nj(this.X,this)}; g.d.c_=function(f,D){if(!this.mI||!wA(this.mI.get(),"stop_handling_click_for_non_rendering_overlay_layout")||D===this.layout.layoutId){if(AS(this.T.get(),this.S))switch(f){case "visit-advertiser":sL(this.DE.get(),3)}switch(f){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.G||this.l3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.G=this.l3.get().Av(2))||this.l3.get().pauseVideo();break; case "visit-advertiser":this.l3.get().pauseVideo();u$(this).k0();break;case "skip-button":if(f=u$(this),this.layout.renderingContent&&!lz(this.layout.clientMetadata,"metadata_type_dai")||!f||!f.d_){var F;(f=(F=gN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&u0(f,this.YG(),this.layout)}else Kb("Requesting to skip by LegacyPlayerBytes"),f.I7(this.YG(),this.layout)}}}; g.d.Ey=function(){Im.prototype.Ey.call(this)};g.C(O2f,pm);g.C(N$,Im);g.d=N$.prototype;g.d.startRendering=function(f){var D=this;ZJ(this.J,f,function(){D.Y.push(new O2f(gN(D.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),f.layoutId,f.Pk));D.xs();D.callback.fF(D.slot,f);g.O(nd(D.l3.get(),1),512)&&D.callback.e$(D.YG(),D.Y8(),new uz("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.d.aN=function(){}; g.d.UW=function(f){if(f.state.isError()){var D;this.callback.e$(this.YG(),this.Y8(),new uz("A player error happened during adNotify",{playerErrorCode:(D=f.state.dB)==null?void 0:D.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.d.onFullscreenToggled=function(){}; g.d.Te=function(){}; g.d.R2=function(){}; g.d.Lc=function(){}; g.d.onVolumeChange=function(){}; g.d.V$=function(){}; g.d.Hn=function(){}; g.d.c_=function(){};g.C(YTu,pm);g.C(g7,Im);g7.prototype.init=function(){Im.prototype.init.call(this);var f=g.Q(this.layout.renderingContent,OL),D=pJ(this.Rr);this.Y.push(new YTu(f,D,this.layout.layoutId,{adsClientData:this.layout.Pk}))}; g7.prototype.startRendering=function(f){Im.prototype.startRendering.call(this,f);this.callback.fF(this.slot,f)}; g7.prototype.c_=function(f,D){if(D===this.layout.layoutId)switch(f){case "skip-button":var F;(f=(F=gN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:F.current)&&u0(f,this.YG(),this.layout)}}; g7.prototype.Ey=function(){Im.prototype.Ey.call(this)};PNu.prototype.build=function(f,D,F,Z){if(f=nJ(f,F,Z,this.xG,this.l3,this.DE,this.J,this.Y,this.mI))return f;throw new uz("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+eU(Z.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.d=Dp.prototype;g.d.YG=function(){return this.slot}; g.d.Y8=function(){return this.layout}; g.d.init=function(){this.l3.get().addListener(this);this.l3.get().H8.push(this);var f=fFw(this),D=g.Q(this.layout.renderingContent,im),F=D?om(D.pings):gN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");D=D?Aac(D.pings):gN(this.layout.clientMetadata,"metadata_type_active_view_identifier");H7(this.layout.Xq)&&Ys(this.mE.get(),this.layout.layoutId,{Ze:F,X$:f,listener:this,Wf:D})}; g.d.release=function(){this.l3.get().removeListener(this);eFu(this.l3.get(),this);H7(this.layout.Xq)&&PF(this.mE.get(),this.layout.layoutId)}; g.d.startRendering=function(f){this.callback.fF(this.slot,f)}; g.d.IG=function(f,D){Fh(this,"abandon");this.callback.iJ(this.slot,f,D)}; g.d.V$=function(f){switch(f.id){case "part2viewed":this.Rr.iE("start");this.Rr.iE("impression");break;case "videoplaytime25":this.Rr.iE("first_quartile");break;case "videoplaytime50":this.Rr.iE("midpoint");break;case "videoplaytime75":this.Rr.iE("third_quartile");break;case "videoplaytime100":Fh(this,"complete");VH(this.Rr)&&Au(this.Rr,Infinity,!0);VCc(this.mI.get())&&M$(this.J,Infinity,!0);break;case "engagedview":VH(this.Rr)||this.Rr.iE("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Kb("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.d.onVolumeChange=function(){}; g.d.Lc=function(){}; g.d.Te=function(){}; g.d.R2=function(){}; g.d.onFullscreenToggled=function(){}; g.d.UW=function(f){this.Y||(g.hF(f,4)&&!g.hF(f,2)?yH(this.Rr,"pause"):js(f,4)<0&&!(js(f,2)<0)&&yH(this.Rr,"resume"))}; g.d.aN=function(){}; g.d.E7=function(f){VCc(this.mI.get())&&M$(this.J,f*1E3,!1);VH(this.Rr)&&Au(this.Rr,f*1E3,!1)}; g.d.Hn=function(){Fh(this,"swipe")}; g.d.g9=function(){this.Rr.iE("active_view_measurable")}; g.d.QW=function(){this.Rr.iE("active_view_viewable")}; g.d.uW=function(){this.Rr.iE("active_view_fully_viewable_audible_half_duration")}; g.d.d9=function(){this.Rr.iE("audio_measurable")}; g.d.N$=function(){this.Rr.iE("audio_audible")};DsX.prototype.build=function(f,D,F,Z){if(F.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.Q(Z.renderingContent,im)!==void 0)return new Dp(f,F,Z,this.l3,this.DE,this.Nb,this.mI,this.mE,this.QT);D=["metadata_type_ad_placement_config"];for(var I=g.a(jS()),p=I.next();!p.done;p=I.next())D.push(p.value);if(W7(Z,{fE:D,vD:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return F.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Dp(f,F,Z,this.l3,this.DE,this.Nb,this.mI,this.mE,this.QT):new a1u(f,F,Z, this.l3,this.DE,this.Nb,this.mI,this.mE);throw new uz("Unsupported layout with type: "+Z.layoutType+" and client metadata: "+eU(Z.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var hmA,Wr; hmA={i7r:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",hfr:"AUTHENTICATION_MALFORMED",mLo:"AUTHENTICATION_MISSING",zfb:"BAD_REQUEST",j2s:"CAST_SESSION_DEVICE_MISMATCHED",ktT:"CAST_SESSION_VIDEO_MISMATCHED",F2s:"CAST_TOKEN_EXPIRED",NNy:"CAST_TOKEN_FAILED",dLb:"CAST_TOKEN_MALFORMED",u0Q:"CGI_PARAMS_MALFORMED",g3T:"CGI_PARAMS_MISSING",nRQ:"DEVICE_FALLBACK",NyE:"GENERIC_WITH_LINK_AND_CPN",d5y:"ERROR_HDCP",u33:"LICENSE",Q6I:"VIDEO_UNAVAILABLE",V8I:"FORMAT_UNAVAILABLE",H1r:"GEO_FAILURE", fqy:"HTML5_AUDIO_RENDERER_ERROR",XtT:"GENERIC_WITHOUT_LINK",UAF:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",hVr:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",mAI:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",ZR3:"HTML5_SPS_UMP_STATUS_REJECTED",Wis:"INVALID_DRM_MESSAGE",ZyI:"PURCHASE_NOT_FOUND",T$x:"PURCHASE_REFUNDED",yub:"RENTAL_EXPIRED",aSd:"RETRYABLE_ERROR",B33:"SERVER_ERROR",htb:"SIGNATURE_EXPIRED",SDI:"STOPPED_BY_ANOTHER_PLAYBACK",IFy:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",M2I:"STREAMING_NOT_ALLOWED", DaY:"STREAM_LICENSE_NOT_FOUND",uY3:"TOO_MANY_REQUESTS",gXT:"TOO_MANY_REQUESTS_WITH_LINK",QII:"TOO_MANY_STREAMS_PER_ENTITLEMENT",PzI:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",GKQ:"VIDEO_FORBIDDEN",Kzr:"VIDEO_NOT_FOUND",DLx:"BROWSER_OR_EXTENSION_ERROR"};Wr={}; g.Gp=(Wr.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.",Wr.DEVICE_FALLBACK="Este v\u00eddeo no est\u00e1 disponible en este dispositivo.",Wr.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",Wr.LICENSE= "Se ha producido un error de licencia con este v\u00eddeo.",Wr.VIDEO_UNAVAILABLE="El v\u00eddeo no est\u00e1 disponible",Wr.FORMAT_UNAVAILABLE="Este v\u00eddeo no est\u00e1 disponible en esa calidad. Vuelve a intentarlo.",Wr.GEO_FAILURE="Este v\u00eddeo no est\u00e1 disponible en tu pa\u00eds.",Wr.HTML5_AUDIO_RENDERER_ERROR="No se ha podido procesar el audio. Reinicia tu ordenador.",Wr.GENERIC_WITHOUT_LINK="Se ha producido un error. Vuelve a intentarlo m\u00e1s tarde.",Wr.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de v\u00eddeo.",Wr.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.",Wr.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Este navegador no puede reproducir este v\u00eddeo. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",Wr.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", Wr.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico del sistema DRM no es v\u00e1lido.",Wr.PURCHASE_NOT_FOUND="Este v\u00eddeo es de pago.",Wr.PURCHASE_REFUNDED="Te hemos devuelto el importe de este v\u00eddeo.",Wr.RENTAL_EXPIRED="El periodo de alquiler de este v\u00eddeo ha finalizado.",Wr.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo de la transmisi\u00f3n no coincide con el solicitado.",Wr.CAST_SESSION_VIDEO_MISMATCHED="El v\u00eddeo de la transmisi\u00f3n no coincide con el solicitado.",Wr.CAST_TOKEN_FAILED= "La transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Wr.CAST_TOKEN_EXPIRED="La transmisi\u00f3n ha caducado. Actualiza la p\u00e1gina.",Wr.CAST_TOKEN_MALFORMED="La transmisi\u00f3n no es v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",Wr.SERVER_ERROR="Se ha producido un error en el servidor interno. Vuelve a intentarlo m\u00e1s tarde.",Wr.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.", Wr.STREAM_LICENSE_NOT_FOUND="Se ha interrumpido la reproducci\u00f3n del v\u00eddeo. Vuelve a intentarlo.",Wr.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="En un periodo de 24 horas se han utilizado demasiados dispositivos o direcciones IP.",Wr.STREAMING_NOT_ALLOWED="No se permite la reproducci\u00f3n porque el v\u00eddeo est\u00e1 fijado a otro dispositivo.",Wr.RETRYABLE_ERROR="Se ha producido un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.",Wr.TOO_MANY_REQUESTS="Inicia sesi\u00f3n para ver este v\u00eddeo.", Wr.TOO_MANY_REQUESTS_WITH_LINK="Haz clic en $BEGIN_LINKeste enlace$END_LINK para ver este v\u00eddeo en YouTube.",Wr.TOO_MANY_STREAMS_PER_USER="Se ha detenido la reproducci\u00f3n porque se est\u00e1n viendo demasiados v\u00eddeos de la misma cuenta.",Wr.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se ha detenido la reproducci\u00f3n porque el v\u00eddeo se ha visto en demasiados dispositivos.",Wr.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.",Wr.VIDEO_FORBIDDEN="El acceso a este v\u00eddeo est\u00e1 prohibido.", Wr.VIDEO_NOT_FOUND="No es posible encontrar este v\u00eddeo.",Wr.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",Wr);var yCL;var AC0=g.DM(),$fv=AC0.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!$fv||$fv.length<2)yCL=void 0;else{var V5L=AC0.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);yCL=V5L&&V5L.length===6?Number(V5L[5].replace("_",".")):0}var wK=yCL,Sp=wK>=0;g.C(g.ia,Ug);g.ia.prototype.D=function(f,D,F,Z,I){return Ug.prototype.D.call(this,f,D,F,Z,I)};var Br={},E$=(Br.FAIRPLAY="fairplay",Br.PLAYREADY="playready",Br.WIDEVINE="widevine",Br.CLEARKEY=null,Br.FLASHACCESS=null,Br.UNKNOWN=null,Br.WIDEVINE_CLASSIC=null,Br);h9.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var r_={},Ph=(r_.WIDTH={name:"width",video:!0,valid:640,Iv:99999},r_.HEIGHT={name:"height",video:!0,valid:360,Iv:99999},r_.FRAMERATE={name:"framerate",video:!0,valid:30,Iv:9999},r_.BITRATE={name:"bitrate",video:!0,valid:3E5,Iv:2E9},r_.EOTF={name:"eotf",video:!0,valid:"bt709",Iv:"catavision"},r_.CHANNELS={name:"channels",video:!1,valid:2,Iv:99},r_.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Iv:"invalidformat"},r_.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", Iv:"nope"},r_.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Iv:"av99.0.05M.08"},r_.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Iv:"invalid"},r_.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",Iv:"false"},r_);var RmY=["h","H"],dfn=["9","("],Qin=["9h","(h"],CZL=["8","*"],mfA=["a","A"],TU0=["o","O"],bso=["m","M"],M5C=["mac3","MAC3"],t5C=["meac3","MEAC3"],LF={},nYd=(LF.h=RmY,LF.H=RmY,LF["9"]=dfn,LF["("]=dfn,LF["9h"]=Qin,LF["(h"]=Qin,LF["8"]=CZL,LF["*"]=CZL,LF.a=mfA,LF.A=mfA,LF.o=TU0,LF.O=TU0,LF.m=bso,LF.M=bso,LF.mac3=M5C,LF.MAC3=M5C,LF.meac3=t5C,LF.MEAC3=t5C,LF),SQV=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),lta=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var P={},vi=(P["0"]="f",P["160"]="h",P["133"]="h",P["134"]="h",P["135"]="h",P["136"]="h",P["137"]="h",P["264"]="h",P["266"]="h",P["138"]="h",P["298"]="h",P["299"]="h",P["304"]="h",P["305"]="h",P["214"]="h",P["216"]="h",P["374"]="h",P["375"]="h",P["140"]="a",P["141"]="a",P["327"]="sa",P["258"]="m",P["380"]="mac3",P["328"]="meac3",P["161"]="H",P["142"]="H",P["143"]="H",P["144"]="H",P["222"]="H",P["223"]="H",P["145"]="H",P["224"]="H",P["225"]="H",P["146"]="H",P["226"]="H",P["227"]="H",P["147"]="H",P["384"]= "H",P["376"]="H",P["385"]="H",P["377"]="H",P["149"]="A",P["261"]="M",P["381"]="MAC3",P["329"]="MEAC3",P["598"]="9",P["278"]="9",P["242"]="9",P["243"]="9",P["244"]="9",P["775"]="9",P["776"]="9",P["777"]="9",P["778"]="9",P["779"]="9",P["780"]="9",P["781"]="9",P["782"]="9",P["783"]="9",P["247"]="9",P["248"]="9",P["353"]="9",P["355"]="9",P["356"]="9",P["271"]="9",P["577"]="9",P["313"]="9",P["579"]="9",P["272"]="9",P["302"]="9",P["303"]="9",P["407"]="9",P["408"]="9",P["308"]="9",P["315"]="9",P["330"]= "9h",P["331"]="9h",P["332"]="9h",P["333"]="9h",P["334"]="9h",P["335"]="9h",P["336"]="9h",P["337"]="9h",P["338"]="so",P["600"]="o",P["250"]="o",P["251"]="o",P["774"]="o",P["194"]="*",P["195"]="*",P["220"]="*",P["221"]="*",P["196"]="*",P["197"]="*",P["279"]="(",P["280"]="(",P["317"]="(",P["318"]="(",P["273"]="(",P["274"]="(",P["357"]="(",P["358"]="(",P["275"]="(",P["359"]="(",P["360"]="(",P["276"]="(",P["583"]="(",P["584"]="(",P["314"]="(",P["585"]="(",P["561"]="(",P["277"]="(",P["361"]="(h",P["362"]= "(h",P["363"]="(h",P["364"]="(h",P["365"]="(h",P["366"]="(h",P["591"]="(h",P["592"]="(h",P["367"]="(h",P["586"]="(h",P["587"]="(h",P["368"]="(h",P["588"]="(h",P["562"]="(h",P["409"]="(",P["410"]="(",P["411"]="(",P["412"]="(",P["557"]="(",P["558"]="(",P["394"]="1",P["395"]="1",P["396"]="1",P["397"]="1",P["398"]="1",P["399"]="1",P["720"]="1",P["721"]="1",P["400"]="1",P["401"]="1",P["571"]="1",P["402"]="1",P["694"]="1h",P["695"]="1h",P["696"]="1h",P["697"]="1h",P["698"]="1h",P["699"]="1h",P["700"]="1h", P["701"]="1h",P["702"]="1h",P["703"]="1h",P["386"]="3",P["387"]="w",P["406"]="6",P["787"]="1",P["788"]="1",P["548"]="1e",P["549"]="1e",P["550"]="1e",P["551"]="1e",P["809"]="1e",P["810"]="1e",P["552"]="1e",P["811"]="1e",P["812"]="1e",P["553"]="1e",P["813"]="1e",P["814"]="1e",P["554"]="1e",P["815"]="1e",P["816"]="1e",P["555"]="1e",P["817"]="1e",P["818"]="1e",P["572"]="1e",P["556"]="1e",P["645"]="(",P["646"]="(",P["647"]="(",P["648"]="(",P["649"]="(",P["650"]="(",P["651"]="(",P["652"]="(",P["653"]="(", P["654"]="(",P["655"]="(",P["656"]="(",P["657"]="(",P["658"]="(",P["659"]="(",P["660"]="(",P["661"]="(",P["662"]="(",P["663"]="(",P["664"]="(",P["665"]="(",P["666"]="(",P["667"]="(",P["668"]="(",P["669"]="(",P["670"]="(",P["671"]="(",P["672"]="(",P["673"]="(",P["674"]="(h",P["675"]="(h",P["676"]="(h",P["677"]="(h",P["678"]="(h",P["679"]="(h",P["680"]="(h",P["681"]="(h",P["682"]="(h",P["683"]="(h",P["684"]="(h",P["685"]="(h",P["686"]="(h",P["687"]="(h",P["688"]="A",P["689"]="A",P["690"]="A",P["691"]= "MEAC3",P["773"]="i",P["806"]="I",P["805"]="I",P["829"]="9",P["830"]="9",P["831"]="9",P["832"]="9",P["833"]="9",P["834"]="9",P["835"]="9",P["836"]="9",P["892"]="9",P["893"]="9",P["837"]="9",P["838"]="9",P["839"]="9",P["840"]="9",P["841"]="(",P["842"]="(",P["843"]="(",P["844"]="(",P["845"]="(",P["846"]="(",P["847"]="(",P["848"]="(",P["894"]="(",P["895"]="(",P["849"]="(",P["850"]="(",P["851"]="(",P["852"]="(",P["865"]="9",P["866"]="9",P["867"]="9",P["868"]="9",P["869"]="9",P["870"]="9",P["871"]="9", P["872"]="9",P["896"]="9",P["897"]="9",P["873"]="9",P["874"]="9",P["875"]="9",P["876"]="9",P["877"]="(",P["878"]="(",P["879"]="(",P["880"]="(",P["881"]="(",P["882"]="(",P["883"]="(",P["884"]="(",P["898"]="(",P["899"]="(",P["885"]="(",P["886"]="(",P["887"]="(",P["888"]="(",P["900"]="2",P["901"]="2",P["902"]="2",P["903"]="2",P["904"]="2",P["905"]="2",P["906"]="2",P["907"]="2",P["908"]="2",P);var lB={},txX=(lB.STEREO_LAYOUT_UNKNOWN=0,lB.STEREO_LAYOUT_LEFT_RIGHT=1,lB.STEREO_LAYOUT_TOP_BOTTOM=2,lB);var znf={PKo:0,M7Q:124,ISo:144,WtY:220,ruR:240,kUb:340,jss:360,FtF:480,d0x:588,N$y:608,uXx:720,gkd:740,zEx:1080,lSb:1100,SUr:1440,D0Y:2160,QsI:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var Ev,L5,Jy,c9D;Ev={};g.t9=(Ev.auto=0,Ev.tiny=144,Ev.light=144,Ev.small=240,Ev.medium=360,Ev.large=480,Ev.hd720=720,Ev.hd1080=1080,Ev.hd1440=1440,Ev.hd2160=2160,Ev.hd2880=2880,Ev.highres=4320,Ev);L5={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Jy={}; c9D=(Jy.QUALITY_ORDINAL_UNKNOWN=0,Jy.QUALITY_ORDINAL_144P_SAVER=124,Jy.QUALITY_ORDINAL_144P=144,Jy.QUALITY_ORDINAL_240P_SAVER=220,Jy.QUALITY_ORDINAL_240P=240,Jy.QUALITY_ORDINAL_360P_SAVER=340,Jy.QUALITY_ORDINAL_360P=360,Jy.QUALITY_ORDINAL_480P=480,Jy.QUALITY_ORDINAL_608P_SAVER=588,Jy.QUALITY_ORDINAL_608P=608,Jy.QUALITY_ORDINAL_720P=720,Jy.QUALITY_ORDINAL_720P_ENHANCED=740,Jy.QUALITY_ORDINAL_1080P=1080,Jy.QUALITY_ORDINAL_1080P_ENHANCED=1100,Jy.QUALITY_ORDINAL_1440P=1440,Jy.QUALITY_ORDINAL_2160P=2160, Jy.QUALITY_ORDINAL_HIGHRES=9999,Jy);var ci="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");Sx.prototype.isHdr=function(){return this.Y==="smpte2084"||this.Y==="arib-std-b67"};ap.prototype.x_=function(){return this.containerType===2}; ap.prototype.isEncrypted=function(){return!!this.Sp}; ap.prototype.E6=function(){return!!this.audio}; ap.prototype.fK=function(){return!!this.video}; var Wi=!1;g.C(pi,g.zu);g.d=pi.prototype;g.d.appendBuffer=function(f,D,F){if(this.BD.lF()!==this.appendWindowStart+this.start||this.BD.PF()!==this.appendWindowEnd+this.start||this.BD.R_()!==this.timestampOffset+this.start)this.BD.supports(1),this.BD.cT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.BD.XX(this.timestampOffset+this.start);this.BD.appendBuffer(f,D,F)}; g.d.abort=function(){this.BD.abort()}; g.d.remove=function(f,D){this.BD.remove(f+this.start,D+this.start)}; g.d.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.d.clear=function(){this.BD.clear()}; g.d.cT=function(f,D){this.appendWindowStart=f;this.appendWindowEnd=D}; g.d.G7=function(){return this.timestampOffset+this.start}; g.d.lF=function(){return this.appendWindowStart}; g.d.PF=function(){return this.appendWindowEnd}; g.d.XX=function(f){this.timestampOffset=f}; g.d.R_=function(){return this.timestampOffset}; g.d.Ew=function(f){f=this.BD.Ew(f===void 0?!1:f);return IK(f,this.start,this.end)}; g.d.S8=function(){return this.BD.S8()}; g.d.XI=function(){return this.BD.XI()}; g.d.z1=function(){return this.BD.z1()}; g.d.aj=function(){return this.BD.aj()}; g.d.lQ=function(){this.BD.lQ()}; g.d.Zn=function(f){return this.BD.Zn(f)}; g.d.Qn=function(){return this.BD.Qn()}; g.d.eH=function(){return this.BD.eH()}; g.d.U5=function(f,D,F){this.BD.U5(f,D,F)}; g.d.h5=function(f,D,F){this.BD.h5(f,D,F)}; g.d.E1=function(f,D){return this.BD.E1(f,D)}; g.d.supports=function(f){return this.BD.supports(f)}; g.d.bA=function(){return this.BD.bA()}; g.d.isView=function(){return!0}; g.d.QP=function(){return this.BD.QP()?this.isActive:!1}; g.d.isLocked=function(){return this.m7&&!this.isActive}; g.d.a_=function(f){f=this.BD.a_(f);f.vw=this.start+"-"+this.end;return f}; g.d.vF=function(){return this.BD.vF()}; g.d.Fb=function(){return this.BD.Fb()}; g.d.qr=function(){return this.BD.qr()}; g.d.Ey=function(){this.BD.WW(this.BU);g.zu.prototype.Ey.call(this)};var gY=!1;g.C(s9,g.zu);g.d=s9.prototype;g.d.appendBuffer=function(f,D,F){this.QS=!1;F&&(this.jS=F);if(f.length){var Z;((Z=this.yL)==null?0:Z.appendBuffer)?this.yL.appendBuffer(f):this.yL?this.yL.append(f):this.Do&&this.Do.webkitSourceAppend(this.id,f)}D&&(D.isEncrypted()&&(this.SR=this.jS),D.type===3&&(this.bY=D),this.Wb.push(D.lJ()),this.Wb.length>4&&this.Wb.shift());this.gZ&&(this.gZ.length>=2||f.length>1048576?delete this.gZ:this.gZ.push(f))}; g.d.abort=function(){try{this.yL?this.yL.abort():this.Do&&this.Do.webkitSourceAbort(this.id)}catch(f){Yvf&&g.UT(new g.by("Error while abort the source buffer: "+f.name+", "+f.message))}this.jS=this.bY=null}; g.d.remove=function(f,D,F){this.QS=!1;var Z;if((Z=this.yL)==null?0:Z.remove)F&&F({b:nx(this.Ew()),s:f,e:D}),this.yL.remove(f,D)}; g.d.removeAll=function(){this.remove(this.lF(),this.PF())}; g.d.clear=function(){this.z1()||(this.abort(),this.removeAll(),this.SR=this.jS=this.bY=null,this.appendWindowStart=this.timestampOffset=0,this.mX=O_([],[]),this.QS=!1,this.gZ=zB?[]:void 0,this.i$=!0)}; g.d.lF=function(){if(gY&&this.fK)return this.appendWindowStart;var f;return((f=this.yL)==null?void 0:f.appendWindowStart)||0}; g.d.PF=function(){var f;return((f=this.yL)==null?void 0:f.appendWindowEnd)||0}; g.d.cT=function(f,D){this.yL&&(gY&&this.fK?(this.appendWindowStart=f,this.yL.appendWindowEnd=D):f>this.lF()?(this.yL.appendWindowEnd=D,this.yL.appendWindowStart=f):(this.yL.appendWindowStart=f,this.yL.appendWindowEnd=D))}; g.d.G7=function(){return this.timestampOffset}; g.d.XX=function(f){gY?this.timestampOffset=f:this.supports(1)&&(this.yL.timestampOffset=f)}; g.d.R_=function(){return gY?this.timestampOffset:this.supports(1)?this.yL.timestampOffset:0}; g.d.Ew=function(f){if(f===void 0?0:f)return this.QS||this.S8()||(this.mX=this.Ew(!1),this.QS=!0),this.mX;try{return this.yL?this.yL.buffered:this.Do?this.Do.webkitSourceBuffered(this.id):O_([0],[Infinity])}catch(D){return O_([],[])}}; g.d.S8=function(){var f;return((f=this.yL)==null?void 0:f.updating)||!1}; g.d.z1=function(){return this.i$}; g.d.aj=function(){return!this.i$&&this.S8()}; g.d.lQ=function(){this.i$=!1}; g.d.Zn=function(f){var D=f==null?void 0:f.qR;f=f==null?void 0:f.containerType;return!D&&!f||D===this.qR&&f===this.containerType}; g.d.Qn=function(){return this.jS}; g.d.eH=function(){return this.SR}; g.d.E1=function(f,D){return this.containerType!==f||this.qR!==D}; g.d.U5=function(f,D,F){if(this.containerType!==f||F&&this.E1(f,F))this.supports(4),qq()&&this.yL.changeType(D),F&&(this.qR=F);this.containerType=f}; g.d.h5=function(f,D,F){this.containerType&&this.E1(f,D)&&qq()&&this.yL.changeType(F);this.containerType=f;this.qR=D}; g.d.bA=function(){return this.bY}; g.d.isView=function(){return!1}; g.d.supports=function(f){switch(f){case 1:var D;return((D=this.yL)==null?void 0:D.timestampOffset)!==void 0;case 0:var F;return!((F=this.yL)==null||!F.appendBuffer);case 2:var Z;return!((Z=this.yL)==null||!Z.remove);case 3:var I,p;return!!(((I=this.yL)==null?0:I.addEventListener)&&((p=this.yL)==null?0:p.removeEventListener));case 4:return!(!this.yL||!this.yL.changeType);default:return!1}}; g.d.QP=function(){return!this.S8()}; g.d.isLocked=function(){return!1}; g.d.a_=function(f){f.to=this.R_();f.up=this.S8();var D,F=((D=this.yL)==null?void 0:D.appendWindowStart)||0,Z;D=((Z=this.yL)==null?void 0:Z.appendWindowEnd)||Infinity;f.aw=F.toFixed(3)+"-"+D.toFixed(3);return f}; g.d.XI=function(){var f;return((f=this.yL)==null?void 0:f.writeHead)||0}; g.d.vF=function(){for(var f={},D=0;D=7&&(!D||((Z=this.Yo)==null?0:Z.Z("mweb_ios_allow_playback_workaround_when_ready")))&&F3a(this,function(){g.AW(function(){Vsd(f,f.getCurrentTime(),0)},500)})}return D}; g.d.bM=function(f,D,F){var Z;((Z=this.Yo)==null?0:Z.Oq())&&this.Yo.Gx(f,D,F===void 0?!1:F)}; g.d.JU=function(f){this.Yo=f}; g.d.d$=function(){return ZT(this.NI(),this.getCurrentTime())}; g.d.seekTo=function(f){this.FJ()>0&&(Sp&&wK<4&&(f=Math.max(.1,f)),this.setCurrentTime(f))}; g.d.yv=function(f){if(this.FJ()===0||this.hasError())return!1;var D=this.getCurrentTime()>0;if(f>=0){var F=this.XY();if(F.length||!D)return Pi(F,f)}return D}; g.d.Kc=function(){if(!this.B&&this.gY)if(this.gY.T)try{var f;this.bM("rms",{l:"mer",sr:(f=this.Yo)==null?void 0:f.W_(),rs:hJ(this.gY)});this.gY.clear();this.q_(this.gY);this.gY=void 0}catch(D){f=new g.by("Error while clearing Media Source in MediaElement: "+D.name+", "+D.message),g.SJ(f),this.stopVideo()}else this.stopVideo()}; g.d.stopVideo=function(){var f=this;if(!this.B){var D;(D=this.gY)==null||AJ(D);if(N_u){if(!this.S){var F=new $P;F.then(void 0,function(){}); this.S=F;evf&&this.pause();g.AW(function(){f.S===F&&(RK(f),F.resolve())},200)}}else RK(this)}}; g.d.VZ=function(){var f=this.NI();return FH(f)&&this.getDuration()?fi(f,this.getCurrentTime()):0}; g.d.N2=function(){var f=this.NI();return FH(f)&&this.getDuration()?f.end(f.length-1):0}; g.d.yF=function(){var f=this.getDuration();return f===Infinity?1:f?this.VZ()/f:0}; g.d.a_=function(){try{var f=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:nx(this.xX(),",",3),vbu:nx(this.NI()),vbs:nx(this.XY()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.FJ(),vns:""+this.sY(),vec:""+this.wp(),vemsg:this.rp(),vvol:""+this.getVolume(),vdom:""+ +this.Zz(),vsrc:""+ +!!this.Ak(),vw:""+f.width,vh:""+f.height}}catch(D){return{}}}; g.d.mR=function(){return this.wp()===4}; g.d.hasError=function(){return this.wp()>0}; g.d.JA=function(){switch(this.wp()){case 2:return"progressive.net.retryexhausted";case 3:var f=this.rp();return(f==null?0:f.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||nFE&&(f==null?0:f.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.d.addEventListener=function(f,D){this.Jb.listen(f,D,!1,this);this.Xb(f)}; g.d.removeEventListener=function(f,D){this.Jb.DK(f,D,!1,this)}; g.d.dispatchEvent=function(f){if(this.S&&f.type==="pause")return!1;if(Xrd){var D,F=((D=f.Y)==null?void 0:D.timeStamp)||Infinity;D=F>performance.now()?F-Date.now()+performance.now():F;F=this.B||this.gY;if((F==null?0:F.z1())||D<=((F==null?void 0:F.G)||0)){var Z;this.bM("rms",{l:"mede",sr:(Z=this.Yo)==null?void 0:Z.W_(),et:f.type});return!1}if(this.cY)return this.bM("rms",{l:"medes",et:f.type}),F&&f.type==="seeking"&&(F.G=performance.now(),this.cY=!1),!1}return this.Jb.dispatchEvent(f)}; g.d.fn=function(){this.xo=!1}; g.d.Kn=function(){this.xo=!0;this.QO(!0)}; g.d.BE=function(){this.xo&&!this.qZ()&&this.QO(!0)}; g.d.equals=function(f){return!!f&&f.Cp()===this.Cp()}; g.d.Ey=function(){this.zx&&this.removeEventListener("volumechange",this.BE);N_u&&RK(this);g.J.prototype.Ey.call(this)}; var N_u=!1,evf=!1,Xrd=!1,nFE=!1;g.d=g.du.prototype;g.d.isPaused=function(){return g.O(this,4)}; g.d.isPlaying=function(){return g.O(this,8)&&!g.O(this,512)&&!g.O(this,64)&&!g.O(this,2)}; g.d.isOrWillBePlaying=function(){return g.O(this,8)&&!g.O(this,2)&&!g.O(this,1024)}; g.d.isCued=function(){return g.O(this,64)&&!g.O(this,8)&&!g.O(this,4)}; g.d.isBuffering=function(){return g.O(this,1)&&!g.O(this,2)}; g.d.isError=function(){return g.O(this,128)}; g.d.isSuspended=function(){return g.O(this,512)}; g.d.XW=function(){return g.O(this,64)&&g.O(this,4)}; g.d.toString=function(){return"PSt."+this.state.toString(16)}; var uB={},NY=(uB.BUFFERING="buffering-mode",uB.CUED="cued-mode",uB.ENDED="ended-mode",uB.PAUSED="paused-mode",uB.PLAYING="playing-mode",uB.SEEKING="seeking-mode",uB.UNSTARTED="unstarted-mode",uB);g.C(U9,g.J);g.d=U9.prototype;g.d.YG=function(){return this.slot}; g.d.Y8=function(){return this.layout}; g.d.init=function(){var f=gN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),D=gN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");H7(this.layout.Xq)&&Ys(this.mE.get(),this.layout.layoutId,{Ze:D,X$:f,listener:this});Lkd(this.DE.get(),this);this.Il()}; g.d.Ie=function(){}; g.d.release=function(){H7(this.layout.Xq)&&PF(this.mE.get(),this.layout.layoutId);lZI(this.DE.get(),this);this.GN()}; g.d.w9=function(){}; g.d.U$=function(){}; g.d.startRendering=function(f){if(f.layoutId!==this.layout.layoutId){this.wk.e$(this.slot,f,new uz("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");var D=!1}else D=!0;D&&(this.KF="rendering_start_requested",this.oI(-1),this.Vk(f),this.Du(!1))}; g.d.fF=function(f,D){if(D.layoutId===this.layout.layoutId){this.KF="rendering";this.Y=this.l3.get().isMuted()||this.l3.get().getVolume()===0;this.iE("impression");this.iE("start");if(this.l3.get().isMuted()){aK(this,"mute");var F;f=((F=cg(this))==null?void 0:F.muteCommands)||[];Ux(this.Nb.get(),f,this.layout.layoutId)}if(this.l3.get().isFullscreen()){this.Hl("fullscreen");var Z;F=((Z=cg(this))==null?void 0:Z.fullscreenCommands)||[];Ux(this.Nb.get(),F,this.layout.layoutId)}Z=this.jU.get();Z.B&&!Z.J&& (Z.X=!1,Z.J=!0,Z.actionType!=="ad_to_video"&&(Wk("pbs",void 0,Z.actionType),g.CO("finalize_all_timelines")&&r2y(Z.actionType)));this.oI(1);this.mT(D);var I;D=((I=cg(this))==null?void 0:I.impressionCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.TQ=function(f,D,F){this.X={tU:3,xF:f==="load_timeout"?402:400,errorMessage:D.message};this.iE("error");var Z;f=((Z=cg(this))==null?void 0:Z.errorCommands)||[];Ux(this.Nb.get(),f,this.layout.layoutId);this.wk.e$(this.slot,this.layout,D,F)}; g.d.JI=function(){if(this.KF==="rendering"){aK(this,"pause");var f,D=((f=cg(this))==null?void 0:f.pauseCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId);this.oI(2)}}; g.d.BX=function(){if(this.KF==="rendering"){aK(this,"resume");var f,D=((f=cg(this))==null?void 0:f.resumeCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.Xf=function(f,D){D=D===void 0?!1:D;if(this.KF==="rendering"){Au(this.Rr,f*1E3,D);this.Y||Au(this.Rr,f*1E3,D===void 0?!1:D);var F=this.bQ();F&&(F/=1E3,(f>=F*.25||D)&&this.iE("first_quartile"),(f>=F*.5||D)&&this.iE("midpoint"),(f>=F*.75||D)&&this.iE("third_quartile"),this.mI.get().U.j().experiments.Hs("enable_progress_command_flush_on_kabuki")?M$(this.J,f*1E3,D):M$(this.J,f*1E3,SKd(this)?D:!1))}}; g.d.FO=function(){var f;return((f=Zp(this.QT.get(),1))==null?void 0:f.clientPlaybackNonce)||""}; g.d.pO=function(f,D){f.layoutId!==this.layout.layoutId?this.wk.e$(this.slot,f,new uz("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"):D()}; g.d.iJ=function(f,D,F){if(D.layoutId===this.layout.layoutId)switch(this.KF="not_rendering",this.layoutExitReason=void 0,(f=F!=="normal"||this.position+1===this.G)&&this.Du(f),this.YH(F),this.oI(0),F){case "abandoned":if($T(this.Rr,"impression")){var Z,I=((Z=cg(this))==null?void 0:Z.abandonCommands)||[];Ux(this.Nb.get(),I,this.layout.layoutId)}break;case "normal":Z=((I=cg(this))==null?void 0:I.completeCommands)||[];Ux(this.Nb.get(),Z,this.layout.layoutId);break;case "skipped":var p;Z=((p=cg(this))== null?void 0:p.skipCommands)||[];Ux(this.Nb.get(),Z,this.layout.layoutId)}}; g.d.uF=function(){return this.layout.layoutId}; g.d.Mr=function(){return this.X}; g.d.g9=function(){if(this.KF==="rendering"){this.Rr.iE("active_view_measurable");var f,D=((f=cg(this))==null?void 0:f.activeViewMeasurableCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.uW=function(){if(this.KF==="rendering"){this.Rr.iE("active_view_fully_viewable_audible_half_duration");var f,D=((f=cg(this))==null?void 0:f.activeViewFullyViewableAudibleHalfDurationCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.QW=function(){if(this.KF==="rendering"){this.Rr.iE("active_view_viewable");var f,D=((f=cg(this))==null?void 0:f.activeViewViewableCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.N$=function(){if(this.KF==="rendering"){this.Rr.iE("audio_audible");var f,D=((f=cg(this))==null?void 0:f.activeViewAudioAudibleCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.d9=function(){if(this.KF==="rendering"){this.Rr.iE("audio_measurable");var f,D=((f=cg(this))==null?void 0:f.activeViewAudioMeasurableCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}}; g.d.Du=function(f){this.jU.get().Du(gN(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,f,this.position,this.G,!1)}; g.d.onFullscreenToggled=function(f){if(this.KF==="rendering")if(f){this.Hl("fullscreen");var D,F=((D=cg(this))==null?void 0:D.fullscreenCommands)||[];Ux(this.Nb.get(),F,this.layout.layoutId)}else this.Hl("end_fullscreen"),D=((F=cg(this))==null?void 0:F.endFullscreenCommands)||[],Ux(this.Nb.get(),D,this.layout.layoutId)}; g.d.onVolumeChange=function(){if(this.KF==="rendering")if(this.l3.get().isMuted()){aK(this,"mute");var f,D=((f=cg(this))==null?void 0:f.muteCommands)||[];Ux(this.Nb.get(),D,this.layout.layoutId)}else aK(this,"unmute"),f=((D=cg(this))==null?void 0:D.unmuteCommands)||[],Ux(this.Nb.get(),f,this.layout.layoutId)}; g.d.Te=function(){}; g.d.R2=function(){}; g.d.Lc=function(){}; g.d.V$=function(){}; g.d.Hn=function(){}; g.d.Hl=function(f){this.Rr.Hl(f,!this.Y)}; g.d.iE=function(f){this.Rr.iE(f,!this.Y)};g.C(wu,U9);g.d=wu.prototype;g.d.Il=function(){}; g.d.GN=function(){var f=this.DE.get();f.m5===this&&(f.m5=null);this.timer.stop()}; g.d.w9=function(){this.timer.stop();U9.prototype.JI.call(this)}; g.d.U$=function(){cFD(this);U9.prototype.BX.call(this)}; g.d.bQ=function(){return gN(this.Y8().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.d.IG=function(f,D){var F=this;this.pO(f,function(){F.KF!=="rendering_stop_requested"&&(F.KF="rendering_stop_requested",F.layoutExitReason=D,mis(F,D),F.timer.stop())})}; g.d.Ft=function(){var f=Date.now(),D=f-this.jR;this.jR=f;this.rQ+=D;this.rQ>=this.bQ()?(this.rQ=this.bQ(),this.Xf(this.rQ/1E3,!0),Wg(this,this.rQ),this.yS()):(this.Xf(this.rQ/1E3),Wg(this,this.rQ))}; g.d.UW=function(f){if(this.KF!=="not_rendering"){f=TQD(this,f);var D=this.l3.get().getPresentingPlayerType()===2;this.KF==="rendering_start_requested"?D&&P7(f)&&this.e0():D?g.hF(f,2)?Kb("Receive player ended event during MediaBreak",this.YG(),this.Y8()):bbD(this,f):this.q3()}}; g.d.Vk=function(){Msd(this);X8c(this.l3.get());this.DE.get().m5=this;Gt("pbp")||Gt("pbs")||Wk("pbp");Gt("pbp","watch")||Gt("pbs","watch")||Wk("pbp",void 0,"watch");this.e0()}; g.d.mT=function(f){this.jU.get();var D=gN(f.clientMetadata,"metadata_type_ad_placement_config").kind,F=this.position===0;f=gN(f.clientMetadata,"metadata_type_linked_in_player_layout_type");f={adBreakType:vg(D),adType:i$E(f)};var Z=void 0;F?D!=="AD_PLACEMENT_KIND_START"&&(Z="video_to_ad"):Z="ad_to_ad";Ul("ad_mbs",void 0,Z);g.vk(f,Z);cFD(this)}; g.d.q3=function(){this.yS()}; g.d.YH=function(){}; g.d.aN=function(){};g.C(Li,U9);g.d=Li.prototype;g.d.q3=function(){this.yS()}; g.d.UW=function(f){this.Cb(f)}; g.d.Il=function(){gN(this.Y8().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=gN(this.Y8().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.d.GN=function(){gN(this.Y8().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;this.Bp&&this.ZK.get().removeCueRange(this.Bp);this.Bp=void 0;var f;(f=this.Jm)==null||f.dispose();this.vu&&this.vu.dispose()}; g.d.Vk=function(f){var D=gN(f.clientMetadata,"metadata_type_ad_placement_config");D=Bg(this.mI.get(),D);var F=ru(this.mI.get());if(D&&F){F=gN(f.clientMetadata,"metadata_type_preload_player_vars");var Z=this.mI.get();Z=g.Pf(Z.U.j().experiments,"html5_preload_wait_time_secs");F&&this.vu&&this.vu.start(Z*1E3)}F=gN(f.clientMetadata,"metadata_type_ad_video_id");Z=gN(f.clientMetadata,"metadata_type_legacy_info_card_vast_extension");F&&Z&&this.P_.get().U.j().Ir.add(F,{LX:Z});(F=gN(f.clientMetadata,"metadata_type_sodar_extension_data"))&& gAw(this.Ow.get(),F);OKf(this.l3.get(),!1);Msd(this);D?(F=this.yj.get(),f=gN(f.clientMetadata,"metadata_type_player_vars"),F.U.loadVideoByPlayerVars(f,!1,2)):kYX(this.yj.get(),gN(f.clientMetadata,"metadata_type_player_vars"));var I;(I=this.Jm)==null||I.start();D||this.yj.get().U.playVideo(2)}; g.d.mT=function(){var f;(f=this.Jm)==null||f.stop();this.Nt();(this.adCpn=CtX(this))||Kb("Media layout confirmed started, but ad CPN not set.");this.bJ.get().vY("onAdStart",this.adCpn);this.h$=Date.now()}; g.d.bQ=function(){var f;return(f=Zp(this.QT.get(),2))==null?void 0:f.qD}; g.d.k0=function(){this.Rr.Hl("clickthrough")}; g.d.IG=function(f,D){var F=this;this.pO(f,function(){if(F.KF!=="rendering_stop_requested"){F.KF="rendering_stop_requested";F.layoutExitReason=D;mis(F,D);var Z;(Z=F.Jm)==null||Z.stop();F.vu&&F.vu.stop();OKf(F.l3.get(),!0);var I;((I=F.shrunkenPlayerBytesConfig)==null?0:I.shouldRequestShrunkenPlayerBytes)&&F.l3.get().e2(!1)}})}; g.d.onCueRangeEnter=function(f){f!==this.Bp?Kb("Received CueRangeEnter signal for unknown layout.",this.YG(),this.Y8(),{cueRangeId:f}):(this.ZK.get().removeCueRange(this.Bp),this.Bp=void 0,f=gN(this.Y8().clientMetadata,"metadata_type_video_length_seconds"),this.Xf(f,!0),this.iE("complete"))}; g.d.YH=function(f){f!=="abandoned"&&this.bJ.get().vY("onAdComplete");this.bJ.get().vY("onAdEnd",this.adCpn)}; g.d.Nt=function(){this.Bp="adcompletioncuerange:"+this.Y8().layoutId;this.ZK.get().addCueRange(this.Bp,0x7ffffffffffff,0x8000000000000,!1,this,2,2)}; g.d.onCueRangeExit=function(){}; g.d.aN=function(f){this.KF==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&f>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.l3.get().e2(!0),this.Xf(f))}; g.d.Xf=function(f,D){U9.prototype.Xf.call(this,f,D===void 0?!1:D);D=Date.now()-this.h$;var F=f*1E3,Z={contentCpn:this.FO(),adCpn:CtX(this)};if(f-this.eZ>=5){var I=D0&&y9(this.Y(),D)}; g.d.ya=function(f){this.X.delete(f.slotId);for(var D=[],F=g.a(this.uE.values()),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=Z.trigger;I instanceof ge&&I.triggeringSlotId===f.slotId&&D.push(Z)}D.length>0&&y9(this.Y(),D)}; g.d.oA=function(f){for(var D=[],F=g.a(this.uE.values()),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=Z.trigger;I instanceof we&&I.slotType===f.slotType&&I.Y!==f.slotId&&D.push(Z)}D.length>0&&y9(this.Y(),D)}; g.d.uY=function(f){this.B.add(f.slotId);for(var D=[],F=g.a(this.uE.values()),Z=F.next();!Z.done;Z=F.next())Z=Z.value,Z.trigger instanceof lx&&f.slotId===Z.trigger.triggeringSlotId&&D.push(Z);D.length>0&&y9(this.Y(),D)}; g.d.gp=function(f){this.B.delete(f.slotId);this.G.add(f.slotId);for(var D=[],F=g.a(this.uE.values()),Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,Z.trigger instanceof EC)f.slotId===Z.trigger.triggeringSlotId&&D.push(Z);else if(Z.trigger instanceof mO){var I=Z.trigger;f.slotId===I.slotId&&this.J.has(I.triggeringLayoutId)&&D.push(Z)}D.length>0&&y9(this.Y(),D)}; g.d.L4=function(f){for(var D=[],F=g.a(this.uE.values()),Z=F.next();!Z.done;Z=F.next())Z=Z.value,Z.trigger instanceof J_&&f.slotId===Z.trigger.triggeringSlotId&&D.push(Z);D.length>0&&y9(this.Y(),D)}; g.d.Va=function(f){for(var D=[],F=g.a(this.uE.values()),Z=F.next();!Z.done;Z=F.next())Z=Z.value,Z.trigger instanceof ux&&f.slotId===Z.trigger.triggeringSlotId&&D.push(Z);D.length>0&&y9(this.Y(),D)}; g.d.Mz=function(f,D){this.T.add(D.layoutId)}; g.d.Me=function(f,D){this.T.delete(D.layoutId)}; g.d.fF=function(f,D){this.J.add(D.layoutId);for(var F=[],Z=g.a(this.uE.values()),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.trigger instanceof T5)D.layoutId===I.trigger.triggeringLayoutId&&F.push(I);else if(I.trigger instanceof G5){var p=I.trigger;f.slotType===p.slotType&&D.layoutType===p.layoutType&&D.layoutId!==p.Y&&F.push(I)}else I.trigger instanceof mO&&(p=I.trigger,D.layoutId===p.triggeringLayoutId&&this.G.has(p.slotId)&&F.push(I));F.length>0&&y9(this.Y(),F)}; g.d.iJ=function(f,D,F){this.J.delete(D.layoutId);f=[];for(var Z=g.a(this.uE.values()),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.trigger instanceof MM&&D.layoutId===I.trigger.triggeringLayoutId&&f.push(I),I.trigger instanceof bx){var p=I.trigger;D.layoutId===p.triggeringLayoutId&&p.Y.includes(F)&&f.push(I)}f.length>0&&y9(this.Y(),f)}; g.d.aP=function(){}; g.d.vV=function(){this.G.clear()}; g.d.jy=function(){};g.C(T4,g.J);T4.prototype.t7=function(f,D,F,Z){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(D instanceof Qd))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in CloseRequestedTriggerAdapter");this.uE.set(D.triggerId,new XN(f,D,F,Z))}; T4.prototype.G1=function(f){this.uE.delete(f.triggerId)};g.C(MB,g.J);MB.prototype.t7=function(f,D,F,Z){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(D instanceof de||D instanceof BI))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.uE.set(D.triggerId,new XN(f,D,F,Z))}; MB.prototype.G1=function(f){this.uE.delete(f.triggerId)}; MB.prototype.vV=function(f){for(var D=[],F=D.push,Z=F.apply,I=[],p=g.a(this.uE.values()),z=p.next();!z.done;z=p.next())z=z.value,z.trigger instanceof de&&z.trigger.D6===f&&I.push(z);Z.call(F,D,g.w(I));F=D.push;Z=F.apply;I=[];p=g.a(this.uE.values());for(z=p.next();!z.done;z=p.next())z=z.value,z.trigger instanceof BI&&z.trigger.Y!==f&&I.push(z);Z.call(F,D,g.w(I));D.length&&y9(this.Y(),D)}; MB.prototype.jy=function(f){for(var D=[],F=D.push,Z=F.apply,I=[],p=g.a(this.uE.values()),z=p.next();!z.done;z=p.next()){z=z.value;var H=z.trigger;H instanceof BI&&H.Y===f&&I.push(z)}Z.call(F,D,g.w(I));D.length&&y9(this.Y(),D)};g.C(tS,g.J);g.d=tS.prototype;g.d.t7=function(f,D,F,Z){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");var I="adtriggercuerange:"+D.triggerId;if(D instanceof vI)IRs(this,f,D,F,Z,I,D.Y.start,D.Y.end,D.D6,D.visible);else if(D instanceof Cj)IRs(this,f,D,F,Z,I,0x7ffffffffffff,0x8000000000000,D.D6,D.visible);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in CueRangeTriggerAdapter");}; g.d.G1=function(f){var D=this.uE.get(f.triggerId);D&&this.ZK.get().removeCueRange(D.cueRangeId);this.uE.delete(f.triggerId)}; g.d.onCueRangeEnter=function(f){if(f=pfd(this,f))if(f=this.uE.get(f))if(g.O(nd(this.l3.get()),32))this.Y.add(f.cueRangeId);else{var D=f==null?void 0:f.yc.trigger;(D instanceof vI||D instanceof Cj)&&y9(this.J(),[f.yc])}}; g.d.onCueRangeExit=function(f){(f=pfd(this,f))&&(f=this.uE.get(f))&&this.Y.delete(f.cueRangeId)}; g.d.UW=function(f){if(js(f,16)<0){f=g.a(this.Y);for(var D=f.next();!D.done;D=f.next())this.onCueRangeEnter(D.value,!0);this.Y.clear()}}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.fF=function(){}; g.d.iJ=function(){}; g.d.aP=function(){}; g.d.aN=function(){}; g.d.onFullscreenToggled=function(){}; g.d.Te=function(){}; g.d.R2=function(){}; g.d.Lc=function(){}; g.d.onVolumeChange=function(){}; g.d.V$=function(){}; g.d.Hn=function(){};g.C(SZ,g.J); SZ.prototype.t7=function(f,D,F,Z){if(this.J.has(D.triggerId)||this.B.has(D.triggerId))throw new Y("Tried to re-register the trigger.");f=new XN(f,D,F,Z);if(f.trigger instanceof UC)this.J.set(f.trigger.triggerId,f);else if(f.trigger instanceof t_)this.B.set(f.trigger.triggerId,f);else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+f.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.J.has(f.trigger.triggerId)&&f.slot.slotId===this.Y&&y9(this.G(),[f])}; SZ.prototype.G1=function(f){this.J.delete(f.triggerId);this.B.delete(f.triggerId)}; SZ.prototype.QB=function(f){f=f.slotId;if(this.Y!==f){var D=[];this.Y!=null&&D.push.apply(D,g.w(zZX(this.B,this.Y)));f!=null&&D.push.apply(D,g.w(zZX(this.J,f)));this.Y=f;D.length&&y9(this.G(),D)}};g.C(cw,g.J);g.d=cw.prototype;g.d.t7=function(f,D,F,Z){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(D instanceof WI))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.uE.set(D.triggerId,new XN(f,D,F,Z))}; g.d.G1=function(f){this.uE.delete(f.triggerId)}; g.d.fF=function(){}; g.d.iJ=function(){}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){};g.C(Uk,g.J);g.d=Uk.prototype;g.d.aP=function(f,D){for(var F=[],Z=g.a(this.uE.values()),I=Z.next();!I.done;I=Z.next()){I=I.value;var p=I.trigger;p.opportunityType===f&&(p.associatedSlotId&&p.associatedSlotId!==D||F.push(I))}F.length&&y9(this.Y(),F)}; g.d.t7=function(f,D,F,Z){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(D instanceof xlD))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in OpportunityEventTriggerAdapter");this.uE.set(D.triggerId,new XN(f,D,F,Z))}; g.d.G1=function(f){this.uE.delete(f.triggerId)}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.fF=function(){}; g.d.iJ=function(){};g.C(vw,g.J);g.d=vw.prototype;g.d.t7=function(f,D,F,Z){f=new XN(f,D,F,Z);if(D instanceof Sz||D instanceof a7||D instanceof cI||D instanceof re||D instanceof y7I){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");this.uE.set(D.triggerId,f)}else throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in PrefetchTriggerAdapter");}; g.d.G1=function(f){this.uE.delete(f.triggerId)}; g.d.v_=function(f){var D=f.slotFulfillmentTriggers.find(function(F){return F instanceof Sz}); D&&(aT(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",D.breakDurationMs,new Set([f.slotId]),!0),fj(this.DE.get(),"ads_css","sid."+f.slotId+";bd."+D.breakDurationMs))}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.fF=function(){}; g.d.iJ=function(){}; g.d.aP=function(){}; g.d.u5=function(f){var D=this;if(!this.Y)return fj(this.DE.get(),"ads_nfi","a.pta;cid."+f.identifier),!1;this.J&&this.J.stop();this.X&&g.XE(this.X);var F=oVc(this,f);if(!F){var Z=syT(this),I=this.S!==void 0&&Date.now()<=this.S+1E4;fj(this.DE.get(),"ads_ncfs","cid."+f.identifier+";cd."+f.I$.toFixed(3)+";ccs."+I+";cfa."+this.G+";bdc."+Z.length+";"+Z.slice(0,6).map(function(p){return";bd."+p}).join("")); return I?(oT(this.F9,this.Y,f),!0):!1}(Z=gN(F.slot.clientMetadata,"metadata_type_triggering_cue_point"))?Z.current=f:Kb("Expected triggering cue point ref to be available",F.slot);(new g.xX(function(){var p=F.trigger,z=F.slot;aT(D,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",p.breakDurationMs,new Set,!0);aT(D,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",p.breakDurationMs,new Set,!1);for(var H=0,K=g.a(D.uE.values()),k=K.next();!k.done;k=K.next()){k=k.value;var h=k.trigger; k.slot.slotId===z.slotId&&(D.uE.delete(h.triggerId),H++)}fj(D.DE.get(),"ads_csf","sid."+z.slotId+";bd."+p.breakDurationMs+";dt."+H)},10)).start(); return!0}; g.d.xJ=function(){}; g.d.vV=function(f){var D=this;this.G=!1;this.S=Date.now();if(this.Y&&this.Y.contentCpn!==f)Kb("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:f,fetchInstructionsCpn:this.Y.contentCpn}),G4(this);else{this.B=new g.xX(function(){if(D.G)delete D.B;else{var Z=D.l3.get().getGetAdBreakContext(),I;if(Number(Z==null?void 0:(I=Z.livePlaybackPosition)==null?void 0:I.utcTimeMillis)>0)delete D.B,H$u(D);else{var p;(p=D.B)==null||p.start()}}},200); var F;(F=this.B)==null||F.start()}}; g.d.jy=function(f){this.Y&&this.Y.contentCpn!==f&&Kb("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:f,fetchInstructionsCpn:this.Y.contentCpn},!0);G4(this)}; g.d.hd=function(f){var D=this;if(this.Y)Kb("Unexpected multiple fetch instructions for the current content");else{this.Y=f;f=kbf(f);this.J=new g.xX(function(){H$u(D)},f?f:6E5); this.J.start();this.X=new g.xX(function(){D.Y&&(D.J&&(D.J.stop(),D.J.start()),qmX(D,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},K1u(this.Y)); f=this.l3.get().getCurrentTimeSec(1,!1);for(var F=g.a(this.o$.get().Ui),Z=F.next();!Z.done;Z=F.next())Z=Z.value,fj(this.DE.get(),"nocache","ct."+Date.now()+";cmt."+f+";d."+Z.I$.toFixed(3)+";tw."+(Z.startSecs-f)+";cid."+Z.identifier+";")}}; g.d.Ey=function(){g.J.prototype.Ey.call(this);G4(this)};g.C(w5,g.J);g.d=w5.prototype;g.d.t7=function(f,D,F,Z){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");if(!(D instanceof xN))throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.uE.set(D.triggerId,new XN(f,D,F,Z));f=this.Y.has(D.triggeringLayoutId)?this.Y.get(D.triggeringLayoutId):new Set;f.add(D);this.Y.set(D.triggeringLayoutId,f)}; g.d.G1=function(f){this.uE.delete(f.triggerId);if(!(f instanceof xN))throw new Y("Incorrect TriggerType: Tried to unregister trigger of type "+f.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var D=this.J.get(f.triggerId);D&&(D.dispose(),this.J.delete(f.triggerId));if(D=this.Y.get(f.triggeringLayoutId))D.delete(f),D.size===0&&this.Y.delete(f.triggeringLayoutId)}; g.d.v_=function(){}; g.d.ya=function(){}; g.d.oA=function(){}; g.d.uY=function(){}; g.d.gp=function(){}; g.d.L4=function(){}; g.d.Va=function(){}; g.d.Mz=function(){}; g.d.Me=function(){}; g.d.aP=function(){}; g.d.fF=function(f,D){var F=this;if(this.Y.has(D.layoutId)){f=this.Y.get(D.layoutId);f=g.a(f);var Z=f.next();for(D={};!Z.done;D={rI:void 0},Z=f.next())D.rI=Z.value,Z=new g.xX(function(I){return function(){var p=F.uE.get(I.rI.triggerId);y9(F.B(),[p])}}(D),D.rI.durationMs),Z.start(),this.J.set(D.rI.triggerId,Z)}}; g.d.iJ=function(){};g.C(Ww,g.J);Ww.prototype.t7=function(f,D){if(this.uE.has(D.triggerId))throw new Y("Tried to register duplicate trigger for slot.");throw new Y("Incorrect TriggerType: Tried to register trigger of type "+D.triggerType+" in VideoTransitionTriggerAdapter.");}; Ww.prototype.G1=function(f){this.uE.delete(f.triggerId)};lU.prototype.hX=function(f){return f.kind==="AD_PLACEMENT_KIND_START"};g.C(uU,g.J);uU.prototype.logEvent=function(f){this.Y(f)}; uU.prototype.Y=function(f,D,F,Z,I,p,z,H,K,k,h,y){var A=this;y=y===void 0?0:y;wA(this.mI.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+f,"slot:",I,"layout:",p,"ping:",z,"Opportunity:",{opportunityType:D,associatedSlotId:F,A3T:Z,Y2I:H,adSlotLoggingData:K,adLayoutLoggingData:k});try{var V=function(){if(!A.mI.get().U.j().Z("html5_disable_client_tmp_logs")&&f!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){f||Kb("Empty PACF event type",I,p);var R=n$(A.J.get()),m={eventType:f,eventOrder:++A.eventCount}, b={};I&&(b.slotData=Om(R,I));p&&(b.layoutData=dlD(R,p));z&&(b.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:z.Y.serializedAdPingMetadata,pingIndex:z.index});H&&(b.triggerData=Xg(H.trigger,H.category));D&&(b.opportunityData=Qzs(R,D,F,Z));R={organicPlaybackContext:{contentCpn:Zp(A.QT.get(),1).clientPlaybackNonce}};R.organicPlaybackContext.isLivePlayback=Zp(A.QT.get(),1).jj;var U;R.organicPlaybackContext.isMdxPlayback=(U=Zp(A.QT.get(),1))==null?void 0: U.isMdxPlayback;var S;if((S=Zp(A.QT.get(),1))==null?0:S.daiEnabled)R.organicPlaybackContext.isDaiContent=!0;var G;if(U=(G=Zp(A.QT.get(),2))==null?void 0:G.clientPlaybackNonce)R.adVideoPlaybackContext={adVideoCpn:U};R&&(b.externalContext=R);m.adClientData=b;K&&(m.serializedSlotAdServingData=K.serializedSlotAdServingDataEntry);k&&(m.serializedAdServingData=k.serializedAdServingDataEntry);h&&(m.errorInfo=h);g.ha("adsClientStateChange",{adsClientEvent:m})}}; y&&y>0?g.Yj(g.f0(),function(){return V()},y):V()}catch(R){wA(this.mI.get(),"html5_log_pacf_logging_errors")&&g.Yj(g.f0(),function(){Kb(R instanceof Error?R:String(R),I,p,{pacf_message:"exception during pacf logging"})})}};g.C(NB,uU);NB.prototype.Y=function(f,D,F,Z,I,p,z,H,K,k,h){var y=this.mI.get();g.hm(y.U.j())?(y=this.mI.get(),y=g.Pf(y.U.j().experiments,"H5_async_logging_delay_ms")):y=void 0;uU.prototype.Y.call(this,f,D,F,Z,I,p,z,H,K,k,h,y)};g5.prototype.clear=function(){this.Y.clear()};eZ.prototype.state=function(){return this.Y==="fulfilled"?{state:"fulfilled",value:this.result}:this.Y==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; eZ.prototype.G=function(f){XZ(f)||xR(f)?f5(Ok(f),this.G.bind(this),this.reject.bind(this)):(this.Y="fulfilled",this.result=f,Pw(this))}; eZ.prototype.reject=function(f){this.Y="rejected";this.error=f;Pw(this)}; var xR=c9(function(f){return Leu(f)?f instanceof eZ:!1});var p5=window.vud||"es";Hh.prototype.IT=function(f){this.client=f}; Hh.prototype.Y=function(){this.clear();this.csn=g.d4()}; Hh.prototype.clear=function(){this.B.clear();this.J.clear();this.G.clear();this.csn=null};K5.prototype.IT=function(f){g.DK(oR().IT).bind(oR())(f)}; K5.prototype.clear=function(){g.DK(oR().clear).bind(oR())()};g.d=k9.prototype;g.d.IT=function(f){this.client=f}; g.d.I9=function(f,D){var F=this;D=D===void 0?{}:D;g.DK(function(){var Z,I,p,z=((Z=g.Q(f==null?void 0:f.commandMetadata,g.R1))==null?void 0:Z.rootVe)||((I=g.Q(f==null?void 0:f.commandMetadata,FA0))==null?void 0:(p=I.screenVisualElement)==null?void 0:p.uiType);if(z){Z=g.Q(f==null?void 0:f.commandMetadata,V00);if(Z==null?0:Z.parentTrackingParams){var H=g.Aa(Z.parentTrackingParams);if(Z.parentCsn)var K=Z.parentCsn}else D.clickedVisualElement?H=D.clickedVisualElement:f.clickTrackingParams&&(H=g.Aa(f.clickTrackingParams)); a:{Z=g.Q(f,g.k7);I=g.Q(f,hVU);if(Z){if(I=wfc(Z,"VIDEO")){Z={token:I,videoId:Z.videoId};break a}}else if(I&&(Z=wfc(I,"PLAYLIST"))){Z={token:Z,playlistId:I.playlistId};break a}Z=void 0}D=Object.assign({},{cttAuthInfo:Z,parentCsn:K},D);if(g.CO("expectation_logging")){var k;D.loggingExpectations=((k=g.Q(f==null?void 0:f.commandMetadata,FA0))==null?void 0:k.loggingExpectations)||void 0}i9(F,z,H,D)}else g.UT(new g.by("Error: Trying to create a new screen without a rootVeType",f))})()}; g.d.clickCommand=function(f,D,F){f=f.clickTrackingParams;F=F===void 0?0:F;f?(F=g.d4(F===void 0?0:F))?(OT(this.client,F,g.Aa(f),D),D=!0):D=!1:D=!1;return D}; g.d.stateChanged=function(f,D,F){this.visualElementStateChanged(g.Aa(f),D,F===void 0?0:F)}; g.d.visualElementStateChanged=function(f,D,F){F=F===void 0?0:F;F===0&&this.J.has(F)?this.N.push([f,D]):J0d(this,f,D,F)};$9.prototype.fetch=function(f,D,F){var Z=this,I=gVu(f,D,F);return new Promise(function(p,z){function H(){if(F==null?0:F.Qq)try{var k=Z.handleResponse(f,I.status,I.response,F);p(k)}catch(h){z(h)}else p(Z.handleResponse(f,I.status,I.response,F))} I.onerror=H;I.onload=H;var K;I.send((K=D.body)!=null?K:null)})}; $9.prototype.handleResponse=function(f,D,F,Z){F=F.replace(")]}'","");try{var I=JSON.parse(F)}catch(p){g.UT(new g.by("JSON parsing failed after XHR fetch",f,D,F));if((Z==null?0:Z.Qq)&&F)throw new g.Xd(1,"JSON parsing failed after XHR fetch");I={}}D!==200&&(g.UT(new g.by("XHR API fetch failed",f,D,F)),I=Object.assign({},I,{errorMetadata:{status:D}}));return I};VQ.getInstance=function(){var f=g.QY("ytglobal.storage_");f||(f=new VQ,g.dE("ytglobal.storage_",f));return f}; VQ.prototype.estimate=function(){var f,D,F;return g.l(function(Z){f=navigator;return((D=f.storage)==null?0:D.estimate)?Z.return(f.storage.estimate()):((F=f.webkitTemporaryStorage)==null?0:F.queryUsageAndQuota)?Z.return(eZf()):Z.return()})}; g.dE("ytglobal.storageClass_",VQ);RR.prototype.Q$=function(f){this.handleError(f)}; RR.prototype.logEvent=function(f,D){switch(f){case "IDB_DATA_CORRUPTED":g.CO("idb_data_corrupted_killswitch")||this.Y("idbDataCorrupted",D);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Y("idbUnexpectedlyClosed",D);break;case "IS_SUPPORTED_COMPLETED":g.CO("idb_is_supported_completed_killswitch")||this.Y("idbIsSupportedCompleted",D);break;case "QUOTA_EXCEEDED":XfE(this,D);break;case "TRANSACTION_ENDED":this.B&&Math.random()<=.1&&this.Y("idbTransactionEnded",D);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":f= Object.assign({},D,{hasWindowUnloaded:this.J}),this.Y("idbTransactionAborted",f)}};var g_={},V3X=g.fl("yt-player-local-media",{UH:(g_.index={hv:2},g_.media={hv:2},g_.captions={hv:5},g_),shared:!1,upgrade:function(f,D){D(2)&&(g.MS(f,"index"),g.MS(f,"media"));D(5)&&g.MS(f,"captions");D(6)&&(t2(f,"metadata"),t2(f,"playerdata"))}, version:5});var Ufe={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},eP;a:{var xF=g.DM();xF=xF.toLowerCase();if(g.OQ(xF,"android")){var vJU=xF.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(vJU){var a00=parseFloat(vJU[1]);if(a00<100){eP=a00;break a}}var GDc=xF.match("("+Object.keys(Ufe).join("|")+")");eP=GDc?Ufe[GDc[0]]:0}else eP=void 0}var ul=eP,Jr=ul>=0;var O$w={clientName:"UNKNOWN_INTERFACE",clientVersion:"unknown",clientTheme:"UNKNOWN_THEME",clientLanguage:"en",clientLocation:"US",clientLabel:"",cssPrefix:"",hasDisplay:!0,webpSupport:!1,forcedExperiments:"",requestVideoQuality:"",forceAdsUrl:"",forceHomeAdsUrl:"",internalExperimentFlags:[],oAuthClientProfiles:{},payments:{url:"https://payments.youtube.com"},xsrfToken:"",creditsUrl:"",startTime:0,authConfig:{accessTokenDiscountedExpirationMinutes:5,accessTokenServerExpirationMinutes:5,backgroundRefreshMinRemainingTokenTimeSec:0, defaultPlayerAccessTokenExpirationMs:-1,accountManagerTokenRefreshRetryDelayMs:0,accountManagerTokenRefreshMaxDelayMs:0,enableBackgroundTokenRefresh:!1,enableBackgroundTokenRefreshOauthCallback:!1,enableAuthenticationFailClosed:!1,enableAccountManagerAccountPropagation:!1,supexSignOutDisabled:!1,enableSwitchAccountsButton:!1,enableTectonicPlayerOauthCallback:!1,enableOAuthCredShare:!1},settings:{defaultValues:new Map([["AUTONAV",!0],["AUTONAV_KIDS",!1],["ENABLE_SOUND",!0],["ENABLE_PREVIEWS_WITH_SOUND", !0],["MDX_AUTOPLAY_ENABLED",!0],["SAFETY_MODE",!1],["HOME_ENABLE_PERSONAL_RESULTS",!0],["PRE_APP_USER_SETTING_FOR_LIVING_ROOM",!0]])}};var Ymd=Ne(function(){var f,D;return(D=(f=window).matchMedia)==null?void 0:D.call(f,"(prefers-reduced-motion: reduce)").matches});var QQ;g.ds=new h5;QQ=0;var Ik=qxu()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.gt?!0:!1;var kc={fD:function(f){f[q[42]]()}, Ab:function(f,D){var F=f[0];f[0]=f[D%f[q[3]]];f[D%f[q[3]]]=F}, AE:function(f,D){f[q[34]](0,D)}};var Nud={NQb:"adunit",Klb:"detailpage",zMo:"editpage",SQd:"embedded",svo:"leanback",x0r:"previewpage",Xrr:"profilepage",ZZ:"unplugged",nkY:"playlistoverview",lFT:"sponsorshipsoffer",xab:"shortspage",JsT:"handlesclaiming",C_E:"immersivelivepage",YQT:"creatormusic",zVR:"immersivelivepreviewpage",DMY:"admintoolyurt",EXF:"shortsaudiopivot",afQ:"consumption",TNr:"background_audio_playback"};var HnT=2592E3;var X0,wOe,Rx;X0={};g.Uf=(X0.STOP_EVENT_PROPAGATION="html5-stop-propagation",X0.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",X0.IV_DRAWER_OPEN="ytp-iv-drawer-open",X0.MAIN_VIDEO="html5-main-video",X0.VIDEO_CONTAINER="html5-video-container",X0.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",X0.HOUSE_BRAND="house-brand",X0);wOe={};Rx=(wOe.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",wOe.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",wOe);var RSd={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var mhJ={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},TAs={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"},dVE={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var LVu={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Cf[q[12]][q[15]]=function(f,D){this[q[6]][f]!==D&&(this[q[6]][f]=D,this[q[0]]=q[13])}; g.Cf[q[12]][q[53]]=function(f){sJ(44,this);return this[q[6]][f]||null}; g.Cf[q[12]][q[39]]=function(){this[q[0]]||(this[q[0]]=hI(4,this));return this[q[0]]}; g.Cf[q[12]][q[50]]=function(){var f=new g.Cf(this[q[10]],this[q[7]]);f[q[46]]=this[q[46]];f[q[4]]=this[q[4]];f[q[35]]=this[q[35]];f[q[6]]=g.UQ(this[q[6]]);f[q[0]]=this[q[0]];return f}; var fsJ=[C5T];g.GN.prototype.getLanguageInfo=function(){return this.dw}; g.GN.prototype.getXtags=function(){if(!this.xtags){var f=this.id.split(";");f.length>1&&(this.xtags=f[1])}return this.xtags}; g.GN.prototype.toString=function(){return this.dw.name}; g.GN.prototype.isAutoDubbed=function(){return this.dw.getIsAutoDubbed()}; g.GN.prototype.getLanguageInfo=g.GN.prototype.getLanguageInfo;g.GN.prototype.isAutoDubbed=g.GN.prototype.isAutoDubbed;ws.prototype.equals=function(f){return this.J===f.J&&this.Y===f.Y&&this.B===f.B&&this.reason===f.reason&&(!Bh||this.Eq===f.Eq)}; ws.prototype.isLocked=function(){return this.B&&!!this.J&&this.J===this.Y}; ws.prototype.compose=function(f){if(f.B&&rs(f))return Io;if(f.B||rs(this))return f;if(this.B||rs(f))return this;var D=this.J&&f.J?Math.max(this.J,f.J):this.J||f.J,F=this.Y&&f.Y?Math.min(this.Y,f.Y):this.Y||f.Y;D=Math.min(D,F);var Z=0;Bh&&(Z=this.Eq!==0&&f.Eq!==0?Math.min(this.Eq,f.Eq):this.Eq===0?f.Eq:this.Eq);return Bh&&D===this.J&&F===this.Y&&Z===this.Eq||!Bh&&D===this.J&&F===this.Y?this:Bh?new ws(D,F,!1,F===this.Y&&Z===this.Eq?this.reason:f.reason,Z):new ws(D,F,!1,F===this.Y?this.reason:f.reason)}; ws.prototype.G=function(f){return!f.video||Bh&&this.Eq!==0&&this.Eq=0}; g.d.ou=function(){var f=this.segments[this.segments.length-1];return f?f.endTime:NaN}; g.d.qm=function(){return this.segments[0].startTime}; g.d.tR=function(){return this.segments.length}; g.d.Zq=function(){return 0}; g.d.Kw=function(f){return(f=this.ph(f))?f.Ws:-1}; g.d.BN=function(f){return(f=this.Iq(f))?f.sourceURL:""}; g.d.getStartTime=function(f){return(f=this.Iq(f))?f.startTime:0}; g.d.PJ=function(f){return this.getStartTime(f)+this.getDuration(f)}; g.d.cN=wT(3);g.d.isLoaded=function(){return this.segments.length>0}; g.d.Iq=function(f){if(this.Y&&this.Y.Ws===f)return this.Y;f=g.oi(this.segments,new fH(f,0,0,0,""),function(D,F){return D.Ws-F.Ws}); return this.Y=f>=0?this.segments[f]:null}; g.d.ph=function(f){if(this.Y&&this.Y.startTime<=f&&f=0?this.segments[f]:this.segments[Math.max(0,-f-2)]}; g.d.append=function(f){if(f.length)if(f=g.FI(f),this.segments.length){var D=this.segments.length?g.Jv(this.segments).endTime:0,F=f[0].Ws-this.eU();F>1&&xwc(this.segments);for(F=F>0?0:-F+1;Ff.Ws&&this.index.Fc()<=f.Ws+1}; g.d.update=function(f,D,F){this.index.append(f);XCE(this.index,F);f=this.index;f.J=D;f.B="update"}; g.d.IP=function(){return this.Q2()?!0:O6.prototype.IP.call(this)}; g.d.Kl=function(f,D){var F=this.index.BN(f),Z=this.index.getStartTime(f),I=this.index.getDuration(f),p;D?I=p=0:p=this.info.Eq>0?this.info.Eq*I:1E3;return new HT([new FY(3,this,void 0,"liveCreateRequestInfoForSegment",f,Z,I,0,p,!D)],F)}; g.d.Rh=function(){return this.Q2()?0:this.initRange.length}; g.d.Kx=function(){return!1};yk.prototype.update=function(f){var D=void 0;this.J&&(D=this.J);var F=new yk,Z=Array.from(f.getElementsByTagName("S"));if(Z.length){var I=+iQ(f,"timescale")||1,p=(+Z[0].getAttribute("t")||0)/I,z=+iQ(f,"startNumber")||0;F.G=p;var H=D?D.startSecs+D.I$:0,K=Date.parse(u8a(iQ(f,"yt:segmentIngestTime")))/1E3;F.X=f.parentElement.tagName==="SegmentTemplate";F.X&&(F.S=iQ(f,"media"));f=D?z-D.Ws:1;F.T=f>0?0:-f+1;f=g.a(Z);for(Z=f.next();!Z.done;Z=f.next()){Z=Z.value;for(var k=+Z.getAttribute("d")/I,h=(+Z.getAttribute("yt:sid")|| 0)/I,y=+Z.getAttribute("r")||0,A=0;A<=y;A++)if(D&&z<=D.Ws)z++;else{var V=new ETX(z,H,k,K+h,p);F.Y.push(V);var R=Z;var m=I,b=V.startSecs;V=R.getAttribute("yt:cuepointTimeOffset");var U=R.getAttribute("yt:cuepointDuration");if(V&&U){V=Number(V);b=-V/m+b;m=Number(U)/m;U=R.getAttribute("yt:cuepointContext")||null;var S=R.getAttribute("yt:cuepointIdentifier")||"";R=R.getAttribute("yt:cuepointEvent")||"";R=new of(b,m,U,S,BUE[R]||"unknown",V)}else R=null;R&&F.B.push(R);z++;H+=k;p+=k;K+=k+h}}F.Y.length&& (F.J=g.Jv(F.Y))}this.T=F.T;this.J=F.J||this.J;g.Z0(this.Y,F.Y);g.Z0(this.B,F.B);this.X=F.X;this.S=F.S;this.G===-1&&(this.G=F.getStreamTimeOffset())}; yk.prototype.getStreamTimeOffset=function(){return this.G===-1?0:this.G};g.C($C,g.DQ);g.d=$C.prototype;g.d.wm=function(){return this.j$}; g.d.pH=function(f,D){f=Vk(this,f);return f>=0&&(D||!this.segments[f].pending)}; g.d.Fc=function(){return this.mV?this.segments.length?this.ph(this.qm()).Ws:-1:g.DQ.prototype.Fc.call(this)}; g.d.qm=function(){if(this.rU)return 0;if(!this.mV)return g.DQ.prototype.qm.call(this);if(!this.segments.length)return 0;var f=Math.max(g.Jv(this.segments).endTime-this.NN,0);return this.Ca>0&&this.ph(f).Ws0)return this.Sy/1E3;if(!this.segments.length)return g.DQ.prototype.ou.call(this);var f=this.eU();if(!this.mV||f<=this.segments[this.segments.length-1].Ws)f=this.segments[this.segments.length-1];else{var D=this.segments[this.segments.length-1];f=new fH(f,Math.max(0,D.startTime-(D.Ws-f)*this.j$),this.j$,0,"sq/"+f,void 0,void 0,!0)}return this.rU?Math.min(this.NN,f.endTime):f.endTime}; g.d.tR=function(){return this.mV?this.segments.length?this.eU()-this.Fc()+1:0:g.DQ.prototype.tR.call(this)}; g.d.eU=function(){var f=Math.min(this.hJ,Math.max(g.DQ.prototype.eU.call(this),this.TX)),D=this.NN*1E3;D=this.Sy>0&&this.Sy0&&this.TX>0&&!D&&(D=this.ph(this.NN))&&(f=Math.min(D.Ws-1,f));return f}; g.d.P2=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.d.VR=function(f){var D=Vk(this,f.Ws);if(D>=0)this.segments[D]=f;else if(this.segments.splice(-(D+1),0,f),this.AK&&f.Ws%(300/this.j$)===0){var F=this.segments[0].Ws,Z=Math.floor(this.AK/this.j$);f=f.Ws-Z;D=-(D+1)-Z;D>0&&f>F&&(this.segments=this.segments.slice(D))}}; g.d.kx=function(){return this.TX}; g.d.IR=function(f){return Aq?!this.J&&f>=0&&this.eU()<=f:g.DQ.prototype.IR.call(this,f)}; g.d.ph=function(f){if(!this.mV)return g.DQ.prototype.ph.call(this,f);if(!this.segments.length)return null;var D=this.segments[this.segments.length-1];if(f=D.endTime)D=D.Ws+Math.floor((f-D.endTime)/this.j$+1);else{D=Ks(this.segments,function(Z){return f=Z.endTime?1:0}); if(D>=0)return this.segments[D];var F=-(D+1);D=this.segments[F-1];F=this.segments[F];D=Math.floor((f-D.endTime)/((F.startTime-D.endTime)/(F.Ws-D.Ws-1))+1)+D.Ws}return this.Iq(D)}; g.d.Iq=function(f){if(!this.mV)return g.DQ.prototype.Iq.call(this,f);if(!this.segments.length)return null;var D=Vk(this,f);if(D>=0)return this.segments[D];var F=-(D+1);D=this.j$;if(F===0)var Z=Math.max(0,this.segments[0].startTime-(this.segments[0].Ws-f)*D);else F===this.segments.length?(Z=this.segments[this.segments.length-1],Z=Z.endTime+(f-Z.Ws-1)*D):(Z=this.segments[F-1],D=this.segments[F],D=(D.startTime-Z.endTime)/(D.Ws-Z.Ws-1),Z=Z.endTime+(f-Z.Ws-1)*D);return new fH(f,Z,D,0,"sq/"+f,void 0,void 0, !0)}; var Aq=!1;g.C(RA,jY);g.d=RA.prototype;g.d.jM=function(){return!0}; g.d.IP=function(){return!0}; g.d.Gy=function(f){return this.B0()&&f.J&&!f.B||!f.XF.index.IR(f.Ws)}; g.d.pj=function(){}; g.d.eB=function(f,D){return typeof f!=="number"||isFinite(f)?jY.prototype.eB.call(this,f,D===void 0?!1:D):new HT([new FY(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.x3,void 0,this.x3*this.info.Eq)],"")}; g.d.Kl=function(f,D){var F=F===void 0?!1:F;if(this.index.pH(f))return jY.prototype.Kl.call(this,f,D);var Z=this.index.getStartTime(f),I=Math.round(this.x3*this.info.Eq),p=this.x3;D&&(p=I=0);return new HT([new FY(F?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",f,Z,p,void 0,I,!D)],f>=0?"sq/"+f:"")};g.C(dq,O6);g.d=dq.prototype;g.d.MA=function(){return!1}; g.d.B0=function(){return!1}; g.d.jM=function(){return!1}; g.d.pj=function(){return new HT([new FY(1,this,void 0,"otfInit")],this.X)}; g.d.Yi=function(){return null}; g.d.tq=function(f){this.Gy(f);return YLX(this,zV(f),!1)}; g.d.eB=function(f,D){D=D===void 0?!1:D;f=this.index.Kw(f);D&&(f=Math.min(this.index.eU(),f+1));return YLX(this,f,!0)}; g.d.mP=function(f){f.info.type===1&&(this.Y||(this.Y=Ah(f.J)),f.Y&&f.Y.uri==="http://youtube.com/streaming/otf/durations/112015"&&P$d(this,f.Y))}; g.d.Gy=function(f){return f.J===0?!0:this.index.eU()>f.Ws&&this.index.Fc()<=f.Ws+1}; g.d.Rh=function(){return 0}; g.d.Kx=function(){return!1};var FrD=new Map,piD=new Map,ZxX=new function(){var f=this;this.Y=new Map;this.ej={cPx:function(){return f.Y}}};g.d=g.U$.prototype;g.d.pH=function(f){return f<=this.eU()}; g.d.Zq=function(f){return this.offsets[f]}; g.d.getStartTime=function(f){return this.startTicks[f]/this.Y}; g.d.PJ=function(f){return this.getStartTime(f)+this.getDuration(f)}; g.d.cN=wT(2);g.d.zi=function(){return NaN}; g.d.getDuration=function(f){f=this.z$(f);return f>=0?f/this.Y:-1}; g.d.z$=function(f){return f+1=0}; g.d.ou=function(){return this.J?this.startTicks[this.count]/this.Y:NaN}; g.d.qm=function(){return 0}; g.d.tR=function(){return this.count}; g.d.BN=function(){return""}; g.d.Kw=function(f){f=g.oi(this.startTicks.subarray(0,this.count),f*this.Y);return f>=0?f:Math.max(0,-f-2)}; g.d.isLoaded=function(){return this.eU()>=0}; g.d.jr=function(f,D){if(f>=this.eU())return 0;var F=0;for(D=this.getStartTime(f)+D;fthis.getStartTime(f);f++)F=Math.max(F,jpI(this,f)/this.getDuration(f));return F}; g.d.resize=function(f){f+=2;var D=this.offsets;this.offsets=new Float64Array(f+1);var F=this.startTicks;this.startTicks=new Float64Array(f+1);for(f=0;f0&&f&&(F=F.range.end+1,f=Math.min(f,this.info.contentLength-F),f>0&&Z.push(new FY(4,this,fh(F,f),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,D)));return new HT(Z)}; g.d.mP=function(f){if(f.info.type===1){if(this.Y)return;this.Y=Ah(f.J)}else if(f.info.type===2){if(this.X||this.index.eU()>=0)return;if(g.Lx(this.info)){var D=this.index,F=g.TV(f);f=f.info.range.start;var Z=g.iY(F,0,1936286840);F=qLJ(Z);D.Y=F.timescale;var I=F.yC;D.offsets[0]=F.ri+f+Z.size;D.startTicks[0]=I;D.J=!0;f=F.w1.length;for(Z=0;Z0&&f===p[0].H6)for(f=0;f=D+F)break}I.length||(f=new g.by("b189619593",""+f,""+D,""+F),g.SJ(f));return new HT(I)}; g.d.iG=function(f){for(var D=this.ul(f.info),F=f.info.range.start+f.info.Y,Z=[],I=0;I=this.index.Zq(F+1);)F++;return this.RZ(F,D,f.J).tb}; g.d.Gy=function(f){f.HV();return this.IP()?!0:f.range.end+1this.info.contentLength&&(D=new YI(D.start,this.info.contentLength-1)),new HT([new FY(4,f.XF,D,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,f.clipId)]);f.type===4&&(f=this.ul(f),f=f[f.length-1]);var F=0,Z=f.range.start+f.Y+f.J;f.type===3&&(f.HV(),F=f.Ws,Z===f.range.end+1&&(F+=1));return this.RZ(F,Z,D)}; g.d.tq=function(){return null}; g.d.eB=function(f,D){D=D===void 0?!1:D;f=this.index.Kw(f);D&&(f=Math.min(this.index.eU(),f+1));return this.RZ(f,this.index.Zq(f),0,void 0)}; g.d.MA=function(){return!0}; g.d.B0=function(){return!0}; g.d.jM=function(){return!1}; g.d.Rh=function(){return this.indexRange.length+this.initRange.length}; g.d.Kx=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var nF={},S_D=(nF.COLOR_PRIMARIES_BT709="bt709",nF.COLOR_PRIMARIES_BT2020="bt2020",nF.COLOR_PRIMARIES_UNKNOWN=null,nF.COLOR_PRIMARIES_UNSPECIFIED=null,nF),YF={},hjf=(YF.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",YF.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",YF.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",YF.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",YF.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,YF.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,YF);g.d=g.GV.prototype;g.d.getName=function(){return this.name}; g.d.getId=function(){return this.id}; g.d.getIsDefault=function(){return this.isDefault}; g.d.getIsAutoDubbed=function(){return this.isAutoDubbed}; g.d.toString=function(){return this.name}; g.GV.prototype.getName=g.GV.prototype.getName;g.GV.prototype.getId=g.GV.prototype.getId;g.GV.prototype.getIsDefault=g.GV.prototype.getIsDefault;g.GV.prototype.getIsAutoDubbed=g.GV.prototype.getIsAutoDubbed;var Vxa=/action_display_post/;var Rju,BT,rq;g.C(Lh,g.zu);g.d=Lh.prototype;g.d.isLoading=function(){return this.state===1}; g.d.lO=function(){return this.state===3}; g.d.kmT=function(f){var D=f.getElementsByTagName("Representation");if(f.getElementsByTagName("SegmentList").length>0||f.getElementsByTagName("SegmentTemplate").length>0){this.jj=this.J=!0;this.S||(this.S=new gTd);OJc(this.S,f);this.publish("refresh");for(f=0;f=0?h=PX(A):y=y+"?range="+A}K.call(H,new fH(k.Ws,k.startSecs,k.I$,k.Y,y,h,k.J))}Z=I}F.update(Z,this.isLive,this.dY)}nTJ(this.S);return!0}this.duration=Juy(iQ(f,"mediaPresentationDuration"));a:{for(f= 0;f0))return this.tZ()-f}}f=this.Y;for(var D in f){var F=f[D].index;if(F.isLoaded()&&!xY(f[D].info.mimeType))return F.qm()}return 0}; g.d.getStreamTimeOffset=function(){return this.N}; g.d.zi=function(f){for(var D in this.Y){var F=this.Y[D].index;if(F.isLoaded()){var Z=F.Kw(f),I=F.zi(Z);if(I)return I+f-F.getStartTime(Z)}}return NaN}; var fM=null,rCA,Df=!((rCA=navigator.mediaCapabilities)==null||!rCA.decodingInfo),Wru={commentary:1,alternate:2,dub:3,main:4};var pV=new Set,F1=new Map;pM.prototype.clone=function(f){return new pM(this.flavor,f,this.J,this.experiments)}; pM.prototype.a_=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; pM.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var LaX={},hr=(LaX.playready=["com.youtube.playready","com.microsoft.playready"],LaX.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],LaX),Pr={},G9J=(Pr.widevine="DRM_SYSTEM_WIDEVINE",Pr.fairplay="DRM_SYSTEM_FAIRPLAY",Pr.playready="DRM_SYSTEM_PLAYREADY",Pr),fX={},l0L=(fX.widevine=1,fX.fairplay=2,fX.playready=3,fX);var $S;g.C(y5,g.J); y5.prototype.initialize=function(f,D){for(var F=this,Z=g.a(Object.keys(f)),I=Z.next();!I.done;I=Z.next()){I=g.a(f[I.value]);for(var p=I.next();!p.done;p=I.next())if(p=p.value,p.Sp)for(var z=g.a(Object.keys(p.Sp)),H=z.next();!H.done;H=z.next()){var K=H.value;H=K;K=hr[K];!K&&this.Z("html5_enable_vp9_fairplay")&&H==="fairplay"&&(K=["com.youtube.fairplay.sbdl"]);if(K){K=g.a(K);for(var k=K.next();!k.done;k=K.next())k=k.value,this.B[k]=this.B[k]||new pM(H,k,p.Sp[H],this.Uy.experiments),this.Y[H]=this.Y[H]|| {},this.Y[H][p.mimeType]=!0}}}Xm()&&(this.B["com.youtube.fairplay"]=new pM("fairplay","com.youtube.fairplay","",this.Uy.experiments),this.Z("html5_enable_vp9_fairplay")||(this.Y.fairplay=this.Y.fairplay||{},this.Y.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Y.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.J=Y_T(D,this.useCobaltWidevine,this.Z("html5_enable_safari_fairplay")&&!0,this.Z("html5_enable_vp9_fairplay")).filter(function(h){return!!F.B[h]})}; y5.prototype.Z=function(f){return this.Uy.experiments.Hs(f)};var EJV={"":"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 eHu={RED:"red",wQY:"white"};Rr.prototype.Kp=function(f){if(f.XC!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return sKI(this,f)}; Rr.prototype.Hs=function(f){return this.flags.get(""+f)==="true"};dk.prototype.ww=function(){return this.B}; dk.prototype.pk=function(){return this.J}; dk.prototype.Hs=function(f){f=this.Kp(f);JSON.stringify(f);return f==="true"}; dk.prototype.Kp=function(f){return this.flags[f]};var oPX=Promise.resolve(),iiy=window.queueMicrotask?window.queueMicrotask.bind(window):Kzd;CM.prototype.canPlayType=function(f,D){f=f.canPlayType?f.canPlayType(D):!1;NS?f=f||JCL[D]:ul===2.2?f=f||uIL[D]:et()&&(f=f||NU0[D]);return!!f}; CM.prototype.isTypeSupported=function(f){return this.N?window.cast.receiver.platform.canDisplayType(f):Kx(f)}; var uIL={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},NU0={"application/x-mpegURL":"maybe"},JCL={"application/x-mpegURL":"maybe"};g.C(bl,g.zu);bl.prototype.add=function(f,D){if(!this.items[f]&&(D.LX||D.pX||D.sx)){var F=this.items,Z=D;Object.isFrozen&&!Object.isFrozen(D)&&(Z=Object.create(D),Object.freeze(Z));F[f]=Z;this.publish("vast_info_card_add",f)}}; bl.prototype.remove=function(f){var D=this.get(f);delete this.items[f];return D}; bl.prototype.get=function(f){return this.items[f]||null}; bl.prototype.isEmpty=function(){return g.tC(this.items)};MF.prototype.encrypt=function(f){this.Y.exports.AES128CTRCipher_encrypt(this.cipher,f.byteOffset,f.byteLength);return f}; MF.prototype.MR=function(){return this.cipher===0}; MF.prototype.dispose=function(){this.Y.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Si.prototype.Qg=function(f,D){D=D===void 0?1:D;this.Xm+=D;this.J+=f;f/=D;for(var F=0;F0)Z+="."+tr[I].toFixed(0)+"_"+F.Y[I].toFixed(0);else break;F=Z}F&&(f[D]=F)}this.Y=new $qu;return f}; g.d.toString=function(){return""};g.d=mqc.prototype;g.d.isActive=function(){return!1}; g.d.Qv=function(){}; g.d.pL=function(){}; g.d.VX=function(){}; g.d.Wg=function(f,D){D()}; g.d.KT=function(){return{}}; g.d.toString=function(){return""};var gJb=new mqc,emA=!!+YW("html5_enable_profiler"),xfA=!!+YW("html5_onesie_enable_profiler"),Do=emA||xfA?new RHI:gJb,UYu=emA?Do:gJb,Up=xfA?Do:gJb;UqI.prototype.emscripten_notify_memory_growth=function(){};g.d=cL.prototype;g.d.malloc=function(f){return this.exports.malloc(f)}; g.d.free=function(f){this.exports.free(f)}; g.d.realloc=function(f,D){return this.exports.realloc(f,D)}; g.d.S6=function(f){if(f.buffer!==this.exports.memory.buffer){var D=this.malloc(f.byteLength);D=new Uint8Array(this.exports.memory.buffer,D,f.byteLength);D.set(f);return D}}; g.d.Yf=function(f){if(f.buffer===this.exports.memory.buffer){var D=f.slice();this.free(f.byteOffset);return D}}; var tqf=new function(){this.Y="WebAssembly"in window},vL="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); Up.Qv(cL,{S6:function(f){return{profile:"copyj2w",Xm:f===void 0?0:Math.ceil(f.byteLength/16)}}, Yf:function(f){return{profile:"copyw2j",Xm:f===void 0?0:Math.ceil(f.byteLength/16)}}});ar.prototype.encrypt=function(f,D){try{return this.Y.Yf(wgD(this,f,D))}catch(F){g.UT(Error("ocwce: wasm encrypt failed: "+F))}}; ar.prototype.MR=function(){return this.B}; ar.prototype.dispose=function(){this.MR()||(g.jg(this.J),this.Y.free(this.G.byteOffset),this.B=!0)};g.C(Wza,g.J);g.C(rJa,g.J);g.C(lTX,g.J);var gPy="blogger discover-ads ads-preview ads-fe gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),Y9E={Y3r:"caoe",J7R:"capsv",IfT:"cbrand",MLx:"cbr",r7F:"cbrver",PcY:"cchip",Rfr:"ccappver",icY:"ccrv",pRQ:"cfrmver",SeE:"c",DAE:"cver",My3:"ctheme",IqT:"cplayer",D9y:"cmodel",AQ:"cnetwork",AvT:"cos",OS_VERSION:"cosver",YUT:"cplatform",wrI:"crqyear"};g.C(fD,g.J);g.d=fD.prototype;g.d.Z=function(f){return this.experiments.Hs(f)}; g.d.ww=function(){return this.experiments.ww()}; g.d.pk=function(){return this.experiments.pk()}; g.d.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.d.getVideoUrl=function(f,D,F,Z,I,p,z){D={list:D};F&&(I?D.time_continue=F:D.t=F);F=z?"music.youtube.com":g.FT(this);I=F==="www.youtube.com";!p&&Z&&I?p="https://youtu.be/"+f:g.ei(this)?(p="https://"+F+"/fire",D.v=f):(p&&I?(p=this.protocol+"://"+F+"/shorts/"+f,Z&&(D.feature="share")):(p=this.protocol+"://"+F+"/watch",D.v=f),NS&&(f=Vyu())&&(D.ebc=f));return g.tL(p,D)}; g.d.getVideoEmbedCode=function(f,D,F,Z){D="https://"+g.FT(this)+"/embed/"+D;Z&&(D=g.tL(D,{list:Z}));Z=F.width;F=F.height;D=JQ(D);f=JQ(f!=null?f:"YouTube video player");return'')}; g.d.supportsGaplessAudio=function(){return g.op&&!NS&&uL()>=74||g.ji&&g.YZ(68)?!0:!1}; g.d.supportsGaplessShorts=function(){return!this.Z("html5_enable_short_gapless")||this.dY||g.yy?!1:!0}; g.d.getPlayerType=function(){return this.Y.cplayer}; g.d.Oq=function(){return this.Dp}; var FOf=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],nPu=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],fwX=[19];var F3={},s7T=(F3["140"]={numChannels:2},F3["141"]={numChannels:2},F3["251"]={audioSampleRate:48E3,numChannels:2},F3["774"]={audioSampleRate:48E3,numChannels:2},F3["380"]={numChannels:6},F3["328"]={numChannels:6},F3["773"]={},F3),Zo={},pIc=(Zo["1"]='video/mp4; codecs="av01.0.08M.08"',Zo["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Zo["1e"]='video/mp4; codecs="av01.0.08M.08"',Zo["9"]='video/webm; codecs="vp9"',Zo["("]='video/webm; codecs="vp9"',Zo["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Zo.h='video/mp4; codecs="avc1.64001e"',Zo.H='video/mp4; codecs="avc1.64001e"',Zo.o='audio/webm; codecs="opus"',Zo.a='audio/mp4; codecs="mp4a.40.2"',Zo.ah='audio/mp4; codecs="mp4a.40.2"',Zo.mac3='audio/mp4; codecs="ac-3"; channels=6',Zo.meac3='audio/mp4; codecs="ec-3"; channels=6',Zo.i='audio/mp4; codecs="iamf.001.001.Opus"',Zo),I$={},zwD=(I$["337"]={width:3840,height:2160,bitrate:3E7,fps:30},I$["336"]={width:2560,height:1440,bitrate:15E6,fps:30},I$["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, I$["702"]={width:7680,height:4320,bitrate:4E7,fps:60},I$["701"]={width:3840,height:2160,bitrate:2E7,fps:60},I$["700"]={width:2560,height:1440,bitrate:1E7,fps:60},I$["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},I$["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},I$["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},I$["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, I$["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},I$["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},I$["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},I$["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},I$["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},I$["315"]={width:3840,height:2160,bitrate:2E7,fps:60},I$["308"]={width:2560, height:1440,bitrate:1E7,fps:60},I$["303"]={width:1920,height:1080,bitrate:5E6,fps:60},I$["302"]={width:1280,height:720,bitrate:25E5,fps:60},I$["299"]={width:1920,height:1080,bitrate:75E5,fps:60},I$["298"]={width:1280,height:720,bitrate:35E5,fps:60},I$["571"]={width:7680,height:4320,bitrate:3E7,fps:60},I$["401"]={width:3840,height:2160,bitrate:15E6,fps:60},I$["400"]={width:2560,height:1440,bitrate:75E5,fps:60},I$["399"]={width:1920,height:1080,bitrate:2E6,fps:60},I$["398"]={width:1280,height:720,bitrate:1E6, fps:60},I$["397"]={width:854,height:480,bitrate:4E5,fps:30},I$["396"]={width:640,height:360,bitrate:25E4,fps:30},I$["787"]={width:1080,height:608,bitrate:2E5,fps:30},I$["788"]={width:1080,height:608,bitrate:4E5,fps:30},I$["572"]={width:7680,height:4320,bitrate:3E7,fps:60},I$["555"]={width:3840,height:2160,bitrate:15E6,fps:60},I$["554"]={width:2560,height:1440,bitrate:75E5,fps:60},I$["553"]={width:1920,height:1080,bitrate:2E6,fps:60},I$["552"]={width:1280,height:720,bitrate:1E6,fps:60},I$["551"]={width:854, height:480,bitrate:4E5,fps:30},I$["550"]={width:640,height:360,bitrate:25E4,fps:30},I$["313"]={width:3840,height:2160,bitrate:8E6,fps:30},I$["271"]={width:2560,height:1440,bitrate:4E6,fps:30},I$["248"]={width:1920,height:1080,bitrate:2E6,fps:30},I$["247"]={width:1280,height:720,bitrate:15E5,fps:30},I$["244"]={width:854,height:480,bitrate:52E4,fps:30},I$["243"]={width:640,height:360,bitrate:28E4,fps:30},I$["137"]={width:1920,height:1080,bitrate:4E6,fps:30},I$["136"]={width:1280,height:720,bitrate:3E6, fps:30},I$["135"]={width:854,height:480,bitrate:1E6,fps:30},I$["385"]={width:1920,height:1080,bitrate:6503313,fps:60},I$["376"]={width:1280,height:720,bitrate:5706960,fps:60},I$["384"]={width:1280,height:720,bitrate:3660979,fps:60},I$["225"]={width:1280,height:720,bitrate:5805E3,fps:30},I$["224"]={width:1280,height:720,bitrate:453E4,fps:30},I$["145"]={width:1280,height:720,bitrate:2682052,fps:30},I$);g.d=V4.prototype;g.d.getInfo=function(){return this.Y}; g.d.Yw=function(){return null}; g.d.Sr=function(){var f=this.Yw();return f?(f=g.zr(f.T3),Number(f.expire)):NaN}; g.d.G0=function(){}; g.d.getHeight=function(){return this.Y.video.height};KOD.prototype.build=function(){ijd(this);var f=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],D={};a:if(this.Y)var F=this.Y;else{F="";for(var Z=g.a(this.B),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.dw){if(I.dw.getIsDefault()){F=I.dw.getId();break a}F||(F=I.dw.getId())}}Z=g.a(this.B);for(I=Z.next();!I.done;I=Z.next())if(I=I.value,this.T||!I.dw||I.dw.getId()===F)D[I.itag]||(D[I.itag]=[]),D[I.itag].push(I);F=g.a(this.J);for(Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,I=D[Z.Y]){I=g.a(I);for(var p=I.next();!p.done;p= I.next()){var z=f,H=z.push;p=p.value;var K="#EXT-X-MEDIA:TYPE=AUDIO,",k="YES",h="audio";if(p.dw){h=p.dw;var y=h.getId().split(".")[0];y&&(K+='LANGUAGE="'+y+'",');(this.Y?this.Y===h.getId():h.getIsDefault())||(k="NO");h=h.getName()}y="";Z!==null&&(y=Z.itag.toString());y=dK(this,p.url,y);K=K+('NAME="'+h+'",DEFAULT='+(k+',AUTOSELECT=YES,GROUP-ID="'))+(j7X(p,Z)+'",URI="'+(y+'"'));H.call(z,K)}}F=g.a(this.X);for(Z=F.next();!Z.done;Z=F.next())Z=Z.value,I=XOc,Z=(z=Z.dw)?'#EXT-X-MEDIA:URI="'+dK(this,Z.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+I+'",LANGUAGE="'+z.getId()+'",NAME="'+z.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Z&&f.push(Z);F=this.X.length>0?XOc:void 0;Z=g.a(this.J);for(I=Z.next();!I.done;I=Z.next())I=I.value,H=D[I.Y],z=void 0,((z=H)==null?void 0:z.length)>0&&(z=I,H=H[0],H="#EXT-X-STREAM-INF:BANDWIDTH="+(z.bitrate+H.bitrate)+',CODECS="'+(z.codecs+","+H.codecs+'",RESOLUTION=')+(z.width+"x"+z.height+',AUDIO="')+(j7X(H,z)+'",')+(F?'SUBTITLES="'+F+'",':"")+"CLOSED-CAPTIONS=NONE",z.fps>1&&(H+= ",FRAME-RATE="+z.fps),z.l0&&(H+=",VIDEO-RANGE="+z.l0),f.push(H),f.push(dK(this,I.url,"")));return f.join("\n")}; var XOc="text";g.C(Q4,V4);Q4.prototype.Sr=function(){return this.expiration}; Q4.prototype.Yw=function(){if(!this.T3||this.T3.MR()){var f=this.J.build();f="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(f);this.T3=new Hg(f)}return this.T3};g.C(CD,V4);CD.prototype.Yw=function(){return new Hg(this.J.M7())}; CD.prototype.G0=function(){this.J=Ta(18,this.J)};g.C(T6,V4);T6.prototype.Yw=function(){return new Hg(this.J)};var pX={},mMI=(pX.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",pX.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",pX.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",pX.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",pX);g.d=g.bM.prototype;g.d.getId=function(){return this.id}; g.d.getName=function(){return this.name}; g.d.isServable=function(){return this.Y}; g.d.M7=function(){return this.url}; g.d.getXtags=function(){return this.xtags}; g.d.toString=function(){return this.languageCode+": "+g.MO(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.d.equals=function(f){return f?this.toString()===f.toString():!1}; g.d.u4=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var c_D={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},UMJ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},vNf=/^(\d*)_((\d*)_?(\d*))$/;var G5u={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},wIs={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var zH={},BeE=(zH.ALWAYS=1,zH.BY_REQUEST=3,zH.UNKNOWN=void 0,zH),sr={},kjD=(sr.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",sr.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",sr.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",sr.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",sr);var dcf; dcf=function(f){for(var D=Object.keys(f),F={},Z=0;ZZ-D?-1:f}; g.d.JR=function(){return this.J.eU()}; g.d.dO=function(){return this.J.Fc()}; g.d.wd=function(f){this.J=f};g.C(Z_,D_);Z_.prototype.J=function(f,D){return D_.prototype.J.call(this,"$N|"+f,D)}; Z_.prototype.X=function(f,D,F){return new F2(f,D,F,this.isLive)};g.C(g.pT,g.zu);g.d=g.pT.prototype; g.d.setData=function(f){var D=this;f=f||{};var F=f.errordetail;F!=null&&(this.errorDetail=F);var Z=f.errorcode;Z!=null?this.errorCode=Z:f.status==="fail"&&(this.errorCode="auth");var I=f.reason;I!=null&&(this.errorReason=I);var p=f.subreason;p!=null&&(this.Sw=p);if(!this.clientPlaybackNonce){this.clientPlaybackNonce=f.cpn||(this.Uy.Oq()?"r"+g.hK(15):g.hK(16));var z;(z=this.nH)==null||z.clear()}this.HL=zf(this.Uy.HL,f.livemonitor);WVT(this,f);var H=f.raw_player_response;if(H)this.Vp=H;else{var K=f.player_response; K&&(H=JSON.parse(K))}H&&(this.playerResponse=H);if(this.playerResponse){var k=this.playerResponse.annotations;k&&r_X(this,k);var h=this.playerResponse.attestation;h&&LOu(this,h);var y=this.playerResponse.cotn;y&&(this.cotn=y);var A=this.playerResponse.heartbeatParams;A&&Nec(this,A);var V=this.playerResponse.messages;V&&XID(this,V);var R=this.playerResponse.overlay;R&&fvI(this,R);var m=this.playerResponse.playabilityStatus;if(m){DaT(this,m);var b=m.errorScreen;b&&KVX(this,b)}var U=this.playerResponse.playbackTracking; U&&ZeJ(this,U,f);var S=this.playerResponse.playerCueRanges;S&&S.length>0&&(this.cueRanges=S);var G=this.playerResponse.playerCueRangeSet;G&&g.oo(this,G);var W=ASy(this.playerResponse.adPlacements);U&&U.promotedPlaybackTracking&&W&&g.UT(new g.by("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(W||udD(this.playerResponse.adSlots))this.Go=!0;var u=this.playerResponse.playerAds;u&&Ivu(this,u,f);var E=this.playerResponse.playerConfig;E&&p4I(this,E);var Ds=this.playerResponse.streamingData; Ds&&z4J(this,Ds,E||null);var Fu=this.playerResponse.trackingParams;Fu&&(this.Bs=Fu);var Zs=this.playerResponse.videoDetails;if(Zs){qhE(this,Zs,f);j4D(this,Zs,E||null,f);var za=Zs.isPrivate;za!==void 0&&(this.isPrivate=zf(this.isPrivate,za))}m&&uNa(this,m,Zs||null);var ju=this.playerResponse.interstitialPods;ju&&xMu(this,ju);this.Js&&this.eventId&&(this.Js=q1(this.Js,{ei:this.eventId}));var Id=this.playerResponse.captions;Id&&Id.playerCaptionsTracklistRenderer&&ENy(this,Id.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.C0=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&OjI(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var QX;this.compositeLiveIngestionOffsetToken=(QX=this.playerResponse.playbackTracking)==null?void 0:QX.compositeLiveIngestionOffsetToken; var Yc;this.compositeLiveStatusToken=(Yc=this.playerResponse.playbackTracking)==null?void 0:Yc.compositeLiveStatusToken;this.Z("html5_fill_default_mosaic_audio_track_id")&&DU(this)&&(this.Uy.b3=aqc(this));var s0,ly,OJ=(s0=this.playerResponse.playerConfig)==null?void 0:(ly=s0.granularVariableSpeedConfig)==null?void 0:ly.minimumPlaybackRate,WD,XL,U0=(WD=this.playerResponse.playerConfig)==null?void 0:(XL=WD.granularVariableSpeedConfig)==null?void 0:XL.maximumPlaybackRate;OJ&&U0&&(this.rG=OJ/100,this.Cu= U0/100);this.Z("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(ng){var b8;((b8=g.Q(ng,J_c))==null?void 0:b8.signal)==="INIT_ATT_SERVICE"&&(D.JV=!0)})}sW(this,f); BMD(this,f);f.queue_info&&(this.queueInfo=f.queue_info);var c=f.hlsdvr;c!=null&&(this.allowLiveDvr=Number(c)===1?m0()?!0:fC&&wK<5?!1:!0:!1);this.adQueryId=f.ad_query_id||null;this.fX||(this.fX=f.encoded_ad_safety_reason||null);this.hR=zf(this.hR,f.infringe||f.muted);this.y0=f.authkey;this.L8=f.authuser;this.mutedAutoplay=zf(this.mutedAutoplay,f&&f.playmuted);this.mutedAutoplayDurationMode=qP(this.mutedAutoplayDurationMode,f&&f.muted_autoplay_duration_mode);this.Ld=zf(this.Ld,f&&f.mutedautoplay);var Yn= f.length_seconds;Yn&&(this.lengthSeconds=typeof Yn==="string"?gl(Yn):Yn);this.isAd()||this.sE||!g.jM(g.X1(this.Uy))?this.endSeconds=qP(this.endSeconds,this.v5||f.end||f.endSeconds):uCE(this,g.X1(this.Uy),this.lengthSeconds);this.Bs=H6(this.Bs,f.itct);this.PW=zf(this.PW,f.is_live_destination);this.isLivePlayback=zf(this.isLivePlayback,f.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.jj();f.isUpcoming&&(this.isUpcoming=zf(this.isUpcoming,f.isUpcoming));this.rU=zf(this.rU, f.post_live_playback);this.Al&&(this.rU=!1);this.isMdxPlayback=zf(this.isMdxPlayback,f.mdx);var E0=f.mdx_control_mode;E0&&(this.mdxControlMode=typeof E0==="number"?E0:gl(E0));this.isInlinePlaybackNoAd=zf(this.isInlinePlaybackNoAd,f.is_inline_playback_no_ad);this.Ps=qP(this.Ps,f.reload_count);this.reloadReason=H6(this.reloadReason,f.reload_reason);this.sL=zf(this.sL,f.show_content_thumbnail);this.cycToken=f.cyc||null;var HD=cU(f);Object.keys(HD).length>0&&(this.wB=HD);this.KQ=H6(this.KQ,f.vvt);this.mdxEnvironment= H6(this.mdxEnvironment,f.mdx_environment);f.source_container_playlist_id&&(this.sourceContainerPlaylistId=f.source_container_playlist_id);f.serialized_mdx_metadata&&(this.serializedMdxMetadata=f.serialized_mdx_metadata);this.hF=f.osig;this.eventId||(this.eventId=f.eventid);this.osid||(this.osid=f.osid);this.playlistId=H6(this.playlistId,f.list);f.index&&(this.playlistIndex=this.playlistIndex===void 0?qP(0,f.index):qP(this.playlistIndex,f.index));this.u0=f.pyv_view_beacon_url;this.iL=f.pyv_quartile25_beacon_url; this.wG=f.pyv_quartile50_beacon_url;this.HZ=f.pyv_quartile75_beacon_url;this.jq=f.pyv_quartile100_beacon_url;var S0=f.session_data;!this.AG&&S0&&(this.AG=ZK(S0,"&").feature);this.isFling=qP(this.isFling?1:0,f.is_fling)===1;this.vnd=qP(this.vnd,f.vnd);this.forceAdsUrl=H6(this.forceAdsUrl,f.force_ads_url);this.IN=H6(this.IN,f.ctrl);this.YR=H6(this.YR,f.ytr);this.VS=f.ytrcc;this.eq=f.ytrexp;this.O$=f.ytrext;this.G3=H6(this.G3,f.adformat);this.wI=H6(this.wI,f.attrib);this.slotPosition=qP(this.slotPosition, f.slot_pos);this.breakType=f.break_type;this.u9=zf(this.u9,f.ssrt);this.videoId=KC(f)||this.videoId;this.T=H6(this.T,f.vss_credentials_token);this.Ht=H6(this.Ht,f.vss_credentials_token_type);this.Qp=zf(this.Qp,f.audio_only);this.zx=zf(this.zx,f.aac_high);this.ZW=zf(this.ZW,f.prefer_low_quality_audio);this.B7=zf(this.B7,f.uncap_inline_quality);this.Z("html5_enable_qoe_cat_list")?f.qoe_cat&&(this.Vx=this.Vx.concat(f.qoe_cat.split(","))):this.Ds=H6(this.Ds,f.qoe_cat);this.b_=zf(this.b_,f.download_media); this.S=rSu(this,f.prefer_gapless);y0u(this.playerResponse)&&this.Y3.push("ad");var M=f.adaptive_fmts;M&&(this.adaptiveFormats=M,this.Gx("adpfmts",{},!0));var ff=f.allow_embed;ff&&(this.allowEmbed=Number(ff)===1);var dU=f.backgroundable;dU&&(this.backgroundable=Number(dU)===1);var qf=f.autonav;qf&&(this.isAutonav=Number(qf)===1);var e5=f.autoplay;e5&&(this.qe=this.HC=Number(e5)===1);var HO=f.iv_load_policy;HO&&(this.annotationsLoadPolicy=sg(this.annotationsLoadPolicy,HO,Op));var PD=f.cc_lang_pref; PD&&(this.captionsLanguagePreference=H6(PD,this.captionsLanguagePreference));var FL=f.cc_load_policy;FL&&(this.uK=sg(this.uK,FL,Op));var bZ;this.deviceCaptionsOn=(bZ=f.device_captions_on)!=null?bZ:void 0;var t;this.mM=(t=f.device_captions_lang_pref)!=null?t:"";var T;this.Kh=(T=f.viewer_selected_caption_langs)!=null?T:[];var v=f.cached_load;v&&(this.xb=zf(this.xb,v));if(f.dash==="0"||f.dash===0||f.dash===!1)this.X_=!0;var B=f.dashmpd;B&&(this.Fl=g.tL(B,{cpn:this.clientPlaybackNonce}));var X=f.delay; X&&(this.vr=gl(X));var qw=this.v5||f.end;if(this.LQ?qw!=null:qw!=void 0)this.clipEnd=qP(this.clipEnd,qw);var n=f.fmt_list;n&&(this.TJ=n);f.heartbeat_preroll&&this.Y3.push("heartbeat");Osv&&(this.QY=-Math.floor(Math.random()*10),this.mz=-Math.floor(Math.random()*40));var e=f.is_listed;e&&(this.isListed=zf(this.isListed,e));var L=f.is_private;L&&(this.isPrivate=zf(this.isPrivate,L));var UJ=f.is_dni;UJ&&(this.Yn=zf(this.Yn,UJ));var vD=f.dni_color;vD&&(this.sU=H6(this.sU,vD));var $c=f.pipable;$c&&(this.pipable= zf(this.pipable,$c));this.qF=(this.c8=this.pipable&&this.Uy.bI)&&!this.Uy.showMiniplayerButton;var Su=f.paid_content_overlay_duration_ms;Su&&(this.paidContentOverlayDurationMs=gl(Su));var IU=f.paid_content_overlay_text;IU&&(this.paidContentOverlayText=IU);var Mw=f.url_encoded_fmt_stream_map;Mw&&(this.FH=Mw);var lZ=f.hls_formats;lZ&&(this.hlsFormats=lZ);var xJ=f.hlsvp;xJ&&(this.hlsvp=xJ);var O0=f.live_start_walltime;O0&&(this.Ih=typeof O0==="number"?O0:gl(O0));var cD=f.live_manifest_duration;cD&&(this.qA= typeof cD==="number"?cD:gl(cD));var JB=f.player_params;JB&&(this.playerParams=JB);var ad=f.partnerid;ad&&(this.partnerId=qP(this.partnerId,ad));var Co=f.probe_url;Co&&(this.probeUrl=lv(g.tL(Co,{cpn:this.clientPlaybackNonce})));var EJ=f.pyv_billable_url;EJ&&FMJ(EJ)&&(this.Z7=EJ);var Bu=f.pyv_conv_url;Bu&&FMJ(Bu)&&(this.WZ=Bu);lvJ(this,f);this.startSeconds>0?this.Z("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.C0||this.DR||f.start||f.startSeconds)&&this.Gx("lss",{css:this.startSeconds, pcss:this.C0,iss:this.DR,ps:f.start||void 0,pss:f.startSeconds||void 0}):(this.startSeconds=qP(this.startSeconds,this.C0||this.DR||f.start||f.startSeconds),this.Z("html5_log_start_seconds_inconsistency")&&this.startSeconds>0&&this.Gx("lsss",{css:this.startSeconds,pcss:this.C0,iss:this.DR,ps:f.start||void 0,pss:f.startSeconds||void 0}),this.dY=this.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var mA=f.live_utc_start;mA!=null?this.liveUtcStartSeconds=Number(mA):fqJ(this.startSeconds)&& (this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Pe=f.utc_start_millis;Pe&&(this.liveUtcStartSeconds=Number(Pe)*.001)}var Ii=f.stream_time_start_millis;Ii&&(this.yO=Number(Ii)*.001);var Lo=this.DR||f.start;(this.LQ?Lo==null||Number(f.resume)===1:Lo==void 0||f.resume=="1")||this.isLivePlayback||(this.clipStart=qP(this.clipStart,Lo));var Gc=f.url_encoded_third_party_media;Gc&&(this.Tm=pO(Gc));var AQ=f.ypc_offer_button_formatted_text;if(AQ){var vE= JSON.parse(AQ);this.NP=vE!=null?vE:null;this.B6=AQ}var hg=f.ypc_offer_button_text;hg&&(this.qK=hg);var yG=f.ypc_offer_description;yG&&(this.IL=yG);var IQ=f.ypc_offer_headline;IQ&&(this.sT=IQ);var pA=f.ypc_full_video_message;pA&&(this.lL=pA);var s5=f.ypc_offer_id;s5&&(this.MV=s5);var Vq=f.ypc_buy_url;Vq&&(this.ev=Vq);var zU=f.ypc_item_thumbnail;zU&&(this.vv=zU);var sB=f.ypc_item_title;sB&&(this.Sq=sB);var q0=f.ypc_item_url;q0&&(this.bR=q0);var xH=f.ypc_vid;xH&&(this.D3=xH);f.ypc_overlay_timeout&&(this.MF= Number(f.ypc_overlay_timeout));var r1=f.ypc_trailer_player_vars;r1&&(this.Db=iy(r1));var Lr=f.ypc_original_itct;Lr&&(this.FQ=Lr);this.HR=H6(this.HR,f.ucid);this.cL=f.storyboard_spec||null;this.Y1=f.live_storyboard_spec||null;this.Z3=f.iv_endscreen_url||null;this.Ub=zf(this.Ub,f.iv3_module);this.Qu=zf(this.Qu,f.ypc_module);this.pB=zf(this.pB,f.ypc_clickwrap_module);this.Qu&&this.Y3.push("ypc");this.pB&&this.Y3.push("ypcRentalActivation");this.rg={video_id:f.video_id,eventid:f.eventid,cbrand:f.cbrand, cbr:f.cbr,cbrver:f.cbrver,c:f.c,cver:f.cver,ctheme:f.ctheme,cplayer:f.cplayer,cmodel:f.cmodel,cnetwork:f.cnetwork,cos:f.cos,cosver:f.cosver,cplatform:f.cplatform,user_age:f.user_age,user_display_image:f.user_display_image,user_display_name:f.user_display_name,user_gender:f.user_gender,csi_page_type:f.csi_page_type,csi_service_name:f.csi_service_name,enablecsi:f.enablecsi,enabled_engage_types:f.enabled_engage_types};rxc(this,f);var Ho=f.cotn;Ho&&(this.cotn=Ho);IqX(this)?CT(this)&&(this.isLivePlayback&& this.Fl&&(this.WI=!0),this.xq&&(this.Gv=!0)):pwd(this)?this.WI=!0:ZID(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&ME(this):this.Fl&&(this.Uy.Bs==="yt"&&this.jj()&&this.Z("drm_manifestless_unplugged")&&this.Z("html5_deprecate_manifestful_fallback")?this.Gx("deprecateMflFallback",{}):this.WI=!0);var T7=f.adpings;T7&&(this.i_=T7?iy(T7):null);var bE=f.feature;bE&&(this.bj=bE);var oQ=f.referrer;oQ&&(this.referrer=oQ);this.clientScreenNonce=H6(this.clientScreenNonce,f.csn);this.U1= qP(this.U1,f.root_ve_type);this.oE=qP(this.oE,f.kids_age_up_mode);this.LQ||f.kids_app_info==void 0||(this.kidsAppInfo=f.kids_app_info);this.LQ&&f.kids_app_info!=null&&(this.kidsAppInfo=f.kids_app_info);this.GD=zf(this.GD,f.upg_content_filter_mode);this.unpluggedFilterModeType=qP(this.unpluggedFilterModeType,f.unplugged_filter_mode_type);var KA=f.unplugged_location_info;KA&&(this.Z5=KA);var kE=f.unplugged_partner_opt_out;kE&&(this.TK=H6("",kE));this.kT=zf(this.kT,f.disable_watch_next);this.rJ=H6(this.rJ, f.internal_ip_override);this.Lv=!!f.is_yto_interstitial;this.interstitials.length&&this.Y3.push("playableSequences");var j9=f.Wt;j9&&(this.Wt=j9);this.Jb=H6(this.Jb,f.csi_timer);f.watchUrl&&(this.watchUrl=f.watchUrl);var Tx=f.watch_endpoint;this.Z("html5_attach_watch_endpoint_ustreamer_config")&&Tx&&tzf(this,Tx);if(Tx==null?0:Tx.ustreamerConfig)this.Wr=G0(Tx.ustreamerConfig);var XD,Mo,Th=Tx==null?void 0:(XD=Tx.loggingContext)==null?void 0:(Mo=XD.qoeLoggingContext)==null?void 0:Mo.serializedContextData; Th&&(this.xp=Th);g.LM(this.Uy)&&this.Uy.Gw&&(this.embedsRct=H6(this.embedsRct,f.rct),this.embedsRctn=H6(this.embedsRctn,f.rctn));f.embed_config&&(this.FX=f.embed_config);this.B_=this.B_||!!f.pause_at_start;f.default_active_source_video_id&&(this.defaultActiveSourceVideoId=f.default_active_source_video_id);this.vI=this.vI||!!f.live_preload}; g.d.j=function(){return this.Uy}; g.d.Z=function(f){return this.Uy.Z(f)}; g.d.H_=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.d.hasSupportedAudio51Tracks=function(){var f;return!((f=this.b3)==null||!f.G3)}; g.d.getUserAudio51Preference=function(){var f=1;qO(this.Uy)&&this.Z("html5_ytv_surround_toggle_default_off")?f=0:pD(this.Uy)&&this.isLivePlayback&&this.S$()&&(f=0);var D;return(D=g.W6("yt-player-audio51"))!=null?D:f}; g.d.Xk=function(){this.MR()||(this.Y.J||this.Y.unsubscribe("refresh",this.Xk,this),this.Yc(-1))}; g.d.Yc=function(f){if(!this.isLivePlayback||!this.X||this.X.flavor!=="fairplay"){var D=apy(this.Y,this.LB);if(D.length>0){for(var F=g.a(D),Z=F.next();!Z.done;Z=F.next())Z=Z.value,Z.startSecs=Math.max(Z.startSecs,this.qm()),this.Z("html5_cuepoint_identifier_logging")&&Z.event==="start"&&this.Gx("cuepoint",{pubCue:Z.identifier,segNum:f});this.publish("cuepointupdated",D,f);this.LB+=D.length;if(ME(this)&&this.Uy.Oq())for(D=g.a(D),F=D.next();!F.done;F=D.next())F=F.value,this.Gx("cuepoint",{segNum:f,event:F.event, startSecs:F.startSecs,id:F.identifier.slice(-16)}),F.event==="start"&&(F=F.startSecs,this.CG.start=this.Wk,this.CG.end=F+3)}}}; g.d.EL=function(){this.MR()||(this.loading=!1,this.publish("dataloaded"))}; g.d.S$=function(){return this.vt!==void 0?this.vt:this.vt=!!this.Sp||!!this.Y&&eh(this.Y)}; g.d.rC=function(f){var D=this;if(this.MR())return Gr();this.JN=this.Tx=this.B=null;qV(this,"html5_high_res_logging_always")&&(this.Uy.Dp=!0);return qkT(this,f).then(void 0,function(){return oRf(D,f)}).then(void 0,function(){return KqT(D)}).then(void 0,function(){return jTE(D)})}; g.d.sX=function(f){this.B=f;HIE(this,this.B.getAvailableAudioTracks());if(this.B){f=g.a(this.B.videoInfos);for(var D=f.next();!D.done;D=f.next()){D=D.value;var F=D.containerType;F!==0&&(this.S3[F]=D.id)}}f=this.getAvailableAudioTracks();f=f.concat(this.Dp);for(D=0;D0)return this.B.getAvailableAudioTracks();if(this.OI)return this.OI;if(this.My)return this.My}return[]}; g.d.getAudioTrack=function(){var f=this;if(this.G&&!ua(this.G)){var D=g.NC(this.getAvailableAudioTracks(),function(I){return I.id===f.G.id}),F; if(!D&&((F=this.G.dw)==null?0:F.id)){var Z=this.G.dw.id;D=g.NC(this.getAvailableAudioTracks(),function(I){return I.dw.id===Z}); this.Gx("nat",{id:this.G.id,track:!!D})}return D||this.Dp}if(this.OI){if(!this.f7)for(D=g.a(this.OI),F=D.next();!F.done;F=D.next())if(F=F.value,F.dw.getIsDefault()){this.f7=F;break}return this.f7||this.Dp}return this.Dp}; g.d.getPlayerResponse=function(){return this.playerResponse}; g.d.getWatchNextResponse=function(){return this.xo}; g.d.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.d.getHeartbeatResponse=function(){return this.Cm}; g.d.wQ=function(){return this.watchUrl?this.watchUrl:this.Uy.getVideoUrl(this.videoId)}; g.d.v$=function(){return!!this.Y&&(Cau(this.Y)||mJa(this.Y)||Tjd(this.Y))}; g.d.getEmbeddedPlayerResponse=function(){return this.QK}; g.d.Lw=function(){return(this.eventLabel||this.Uy.xo)==="shortspage"}; g.d.isAd=function(){return this.w4||!!this.adFormat}; g.d.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.d.nE=function(){var f,D,F;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((f=this.playerResponse)==null?0:(D=f.playerConfig)==null?0:(F=D.daiConfig)==null?0:F.ssaEnabledPlayback)}; g.d.ID=function(){return this.xI}; g.d.dE=function(){return this.Qu||this.HD}; g.d.hV=function(){return qV(this,"html5_samsung_vp9_live")}; g.d.Gx=function(f,D,F){this.publish("ctmp",f,D,F)}; g.d.jE=function(f,D,F){this.publish("ctmpstr",f,D,F)}; g.d.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.d.getGetAdBreakContext=function(f,D){f=f===void 0?NaN:f;D=D===void 0?NaN:D;var F={isSabr:G6(this)},Z,I=(Z=this.getHeartbeatResponse())==null?void 0:Z.adBreakHeartbeatParams;I&&(F.adBreakHeartbeatParams=I);if(this.Z("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Y&&!isNaN(f)&&!isNaN(D)){D=f-D;for(var p in this.Y.Y)if(Z=this.Y.Y[p],Z.info.fK()||Z.info.E6())if(Z=Z.index,Z.isLoaded()){p=Z.Kw(D);Z=Z.zi(p)+D-Z.getStartTime(p);this.Gx("gabc",{t:f.toFixed(3),mt:D.toFixed(3),sg:p,igt:Z.toFixed(3)}); F.livePlaybackPosition={utcTimeMillis:""+(Z*1E3).toFixed(0)};break}}return F}; g.d.isEmbedsShortsMode=function(f,D){if(!g.LM(this.Uy)||(this.Uy.Tx||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||D)return!1;if(this.Z("embeds_enable_shorts")){var F,Z;return!!((F=this.embeddedPlayerConfig)==null?0:(Z=F.embeddedPlayerFlags)==null?0:Z.isShortsExperienceEligible)}var I,p;return!!(((I=this.embeddedPlayerConfig)==null?0:(p=I.embeddedPlayerFlags)==null?0:p.isShortsExperienceEligible)&&f.width<=f.height)}; g.d.AD=function(f,D){D?this.Mh||(this.Mh=f):this.Dz||(this.Dz=f)}; g.d.Ey=function(){g.zu.prototype.Ey.call(this);this.i_=null;delete this.V0;delete this.accountLinkingConfig;delete this.Y;this.B=this.Cm=this.playerResponse=this.xo=null;this.FH=this.adaptiveFormats="";delete this.botguardData;this.rY=this.suggestions=this.ey=null;this.sabrContextUpdates.clear()}; var Osv=!0;var xBu={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},Xwu={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},gRa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ERE={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"},uZa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},JST={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"},eTu={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.C(iC,g.J);g.d=iC.prototype;g.d.handleExternalCall=function(f,D,F){var Z=this.state.T[f],I=this.state.S[f],p=Z;if(I)if(F&&rA(F,ise))p=I;else if(!Z)throw Error('API call from an untrusted origin: "'+F+'"');this.logApiCall(f,F);if(p){a:{F=g.a(D);for(Z=F.next();!Z.done;Z=F.next())if(String(Z.value).includes("javascript:")){F=!0;break a}F=!1}F&&g.UT(Error('Dangerous call to "'+f+'" with ['+D+"]."));return p.apply(this,D)}throw Error('Unknown API method: "'+f+'".');}; g.d.logApiCall=function(f,D,F){var Z=this.app.j();Z.xT&&!this.state.Jb.has(f)&&(this.state.Jb.add(f),g.ha("webPlayerApiCalled",{callerUrl:Z.loaderUrl,methodName:f,origin:D||void 0,playerStyle:Z.playerStyle||void 0,embeddedPlayerMode:Z.Tx,errorCode:F}))}; g.d.publish=function(f){var D=g.hv.apply(1,arguments);this.state.B.publish.apply(this.state.B,[f].concat(g.w(D)));if(f==="videodatachange"||f==="resize"||f==="cardstatechange")this.state.J.publish.apply(this.state.J,[f].concat(g.w(D))),this.state.G.publish.apply(this.state.G,[f].concat(g.w(D)))}; g.d.wY=function(f){var D=g.hv.apply(1,arguments);this.state.B.publish.apply(this.state.B,[f].concat(g.w(D)));this.state.J.publish.apply(this.state.J,[f].concat(g.w(D)))}; g.d.Ep=function(f){var D=g.hv.apply(1,arguments);this.state.B.publish.apply(this.state.B,[f].concat(g.w(D)));this.state.J.publish.apply(this.state.J,[f].concat(g.w(D)));this.state.G.publish.apply(this.state.G,[f].concat(g.w(D)))}; g.d.k_=function(f){var D=g.hv.apply(1,arguments);this.state.B.publish.apply(this.state.B,[f].concat(g.w(D)));this.state.J.publish.apply(this.state.J,[f].concat(g.w(D)));this.state.G.publish.apply(this.state.G,[f].concat(g.w(D)));this.state.X.publish.apply(this.state.X,[f].concat(g.w(D)))}; g.d.Z=function(f){return this.app.j().Z(f)}; g.d.Ey=function(){if(this.state.element){var f=this.state.element,D;for(D in this.state.Y)this.state.Y.hasOwnProperty(D)&&(f[D]=null);this.state.element=null}g.J.prototype.Ey.call(this)};g.C(VT,g.mQ);VT.prototype.publish=function(f){var D=g.hv.apply(1,arguments);if(this.X.has(f))return this.X.get(f).push(D),!0;var F=!1;try{for(D=[D],this.X.set(f,D);D.length;)F=g.mQ.prototype.publish.call.apply(g.mQ.prototype.publish,[this,f].concat(g.w(D.shift())))}finally{this.X.delete(f)}return F};g.C(Rk,g.J);Rk.prototype.Ey=function(){this.X.dispose();this.G.dispose();this.J.dispose();this.B.dispose();this.Jb=this.Y=this.S=this.T=this.N=void 0};var F9u=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.C(QT,iC);g.d=QT.prototype;g.d.getApiInterface=function(){return Array.from(this.state.N)}; g.d.OB=function(f,D){this.state.X.subscribe(f,D)}; g.d.hSE=function(f,D){this.state.X.unsubscribe(f,D)}; g.d.getPlayerState=function(f){return iUf(this.app,f)}; g.d.YyR=function(){return iUf(this.app)}; g.d.QAT=function(f,D,F){Ty(this)&&(wO(this.app,!0,1),rO(this.app,f,D,F,1))}; g.d.getCurrentTime=function(f,D,F){var Z=this.getPlayerState(f);if(this.app.getAppState()===2&&Z===5){var I;return((I=this.app.getVideoData())==null?void 0:I.startSeconds)||0}return this.Z("web_player_max_seekable_on_ended")&&Z===0?S7(this.app,f):f?this.app.getCurrentTime(f,D,F):this.app.getCurrentTime(f)}; g.d.VU=function(){return this.app.getCurrentTime(1)}; g.d.Ae=function(){var f=this.app.zi(1);return isNaN(f)?this.getCurrentTime(1):f}; g.d.iB=function(){return this.app.getDuration(1)}; g.d.Bv=function(f,D){f=g.PZ(Math.floor(f),0,100);isFinite(f)&&Mv(this.app,{volume:f,muted:this.isMuted()},D)}; g.d.qE3=function(f){this.Bv(f,!1)}; g.d.xN=function(f){Mv(this.app,{muted:!0,volume:this.getVolume()},f)}; g.d.nGI=function(){this.xN(!1)}; g.d.NK=function(f){Mv(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},f)}; g.d.yJI=function(){mS(this.app)||this.NK(!1)}; g.d.getPlayerMode=function(){var f={};this.app.getVideoData().Yn&&(f.pfp={enableIma:this.app.KE().allowImaMonetization,autoplay:Y7(this.app.KE()),mutedAutoplay:this.app.KE().mutedAutoplay});return f}; g.d.nx=function(){var f=this.app.getPresentingPlayerType();if(f===2&&!this.app.xK()){var D=Qr(this.app.I_());if(!(k3T(D)||g.LM(this.app.j())&&g.O(this.app.VT().getPlayerState(),1024))||jWE(D))return}(D=this.app.UE().ZB)?D.playVideo():this.app.playVideo(f)}; g.d.L$o=function(){wO(this.app,!0,1);this.nx()}; g.d.pauseVideo=function(f){var D=this.app.getPresentingPlayerType();if(D!==2||this.app.xK()||k3T(Qr(this.app.I_()))){var F=this.app.UE().ZB;F?F.pauseVideo():this.app.pauseVideo(D,f)}}; g.d.hiY=function(){var f=this.app,D=!1;f.V.gw&&(f.NR.publish("pageTransition"),D=!0);f.stopVideo(D)}; g.d.clearVideo=function(){}; g.d.getAvailablePlaybackRates=function(){var f=this.app.j();if(f.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(f.G?f.ancestorOrigins[0]:window.location.origin)||f.fl)return eV0;f=this.app.getVideoData();var D=f.rG,F=f.Cu;return xCX.filter(function(Z){return Z>=D&&Z<=F})}return[1]}; g.d.getPlaybackQuality=function(f){return(f=bC(this.app,{playerType:f}))?f.getPlaybackQuality():"unknown"}; g.d.H4Q=function(){}; g.d.getAvailableQualityLevels=function(f){return(f=bC(this.app,{playerType:f}))?(f=g.M2(f.DU(),function(D){return D.quality}),f.length&&(f[0]==="auto"&&f.shift(),f=f.concat(["auto"])),f):[]}; g.d.PS=function(){return this.getAvailableQualityLevels(1)}; g.d.noY=function(){return this.Hx()}; g.d.EoR=function(){return 1}; g.d.getVideoLoadedFraction=function(f){return this.app.getVideoLoadedFraction(f)}; g.d.Hx=function(){return this.getVideoLoadedFraction()}; g.d.XsR=function(){return 0}; g.d.getSize=function(){var f=this.app.sy().getPlayerSize();return{width:f.width,height:f.height}}; g.d.setSize=function(){this.app.sy().resize()}; g.d.loadVideoById=function(f,D,F,Z){if(!f)return!1;f=dW(f,D,F);return this.app.loadVideoByPlayerVars(f,Z)}; g.d.dbI=function(f,D,F){f=this.loadVideoById(f,D,F,1);wO(this.app,f,1)}; g.d.cueVideoById=function(f,D,F,Z){f=dW(f,D,F);this.app.cueVideoByPlayerVars(f,Z)}; g.d.W4=function(f,D,F){this.cueVideoById(f,D,F,1)}; g.d.loadVideoByUrl=function(f,D,F,Z){f=D9J(f,D,F);return this.app.loadVideoByPlayerVars(f,Z)}; g.d.Q_E=function(f,D,F){f=this.loadVideoByUrl(f,D,F,1);wO(this.app,f,1)}; g.d.cueVideoByUrl=function(f,D,F,Z){f=D9J(f,D,F);this.app.cueVideoByPlayerVars(f,Z)}; g.d.FU=function(f,D,F){this.cueVideoByUrl(f,D,F,1)}; g.d.hdE=function(){var f=this.app.j();if(f.KQ)return"";var D=this.app.KE(),F=void 0;D.isLivePlayback||(F=Math.floor(this.app.getCurrentTime(1)));return f.getVideoUrl(D.videoId,this.getPlaylistId()||void 0,F)}; g.d.RW=function(){return this.app.getDebugText()}; g.d.getVideoEmbedCode=function(){var f=this.app.j();if(f.KQ)return"";var D=this.app.KE();return f.getVideoEmbedCode(D.isPrivate?"":D.title,this.app.KE().videoId,this.app.sy().getPlayerSize(),this.getPlaylistId()||void 0)}; g.d.QQ=function(f,D,F){return Vmf(this.app,f,D,F)}; g.d.removeCueRange=function(f){return this.app.D$(f)}; g.d.loadPlaylist=function(f,D,F,Z){this.app.loadPlaylist(f,D,F,Z)}; g.d.FEs=function(f,D,F,Z){this.loadPlaylist(f,D,F,Z);wO(this.app,!0,1)}; g.d.cuePlaylist=function(f,D,F,Z){this.app.cuePlaylist(f,D,F,Z)}; g.d.nextVideo=function(f,D){this.app.nextVideo(f,D)}; g.d.cZI=function(){this.nextVideo();wO(this.app,!0,1)}; g.d.previousVideo=function(f){this.app.previousVideo(f)}; g.d.q63=function(){this.previousVideo();wO(this.app,!0,1)}; g.d.playVideoAt=function(f){this.app.playVideoAt(f)}; g.d.oKR=function(f){this.playVideoAt(f);wO(this.app,!0,1)}; g.d.setShuffle=function(f){var D=this.app.getPlaylist();D&&D.setShuffle(f)}; g.d.setLoop=function(f){var D=this.app.getPlaylist();D&&(D.loop=f)}; g.d.BYR=function(){var f=this.app.getPlaylist();if(!f)return null;for(var D=[],F=0;F=400)if(f=this.KE(),this.U.j().Z("client_respect_autoplay_switch_button_renderer"))f=!!f.autoplaySwitchButtonRenderer;else{var D,F,Z,I;f=!!((D=f.getWatchNextResponse())==null?0:(F=D.contents)==null?0:(Z=F.twoColumnWatchNextResults)==null?0:(I=Z.autoplay)==null?0:I.autoplay)!==!1}f?this.Y||(this.Y=!0,this.VL(this.Y),D=this.KE(),this.HP(D.autonavState),this.U.logVisibility(this.element,this.Y)): (this.Y=!1,this.VL(this.Y))}; g.d.HP=function(f){E9a(this)?this.isChecked=f!==1:((f=f!==1)||(f=g.JX(),f=g.CO("web_autonav_allow_off_by_default")&&!f.Kp(141)&&g.nc("AUTONAV_OFF_BY_DEFAULT")?!1:!f.Kp(140)),this.isChecked=f);lPd(this)}; g.d.onClick=function(){this.isChecked=!this.isChecked;this.U.Fv(this.isChecked?2:1);lPd(this);if(E9a(this)){var f=this.KE().autoplaySwitchButtonRenderer;this.isChecked&&(f==null?0:f.onEnabledCommand)?this.U.wY("innertubeCommand",f.onEnabledCommand):!this.isChecked&&(f==null?0:f.onDisabledCommand)&&this.U.wY("innertubeCommand",f.onDisabledCommand)}this.U.logClick(this.element)}; g.d.getValue=function(){return this.isChecked}; g.d.KE=function(){return this.U.getVideoData(1)};g.C(J4T,z9);g.C(aP,jG);aP.prototype.u3=function(f){f?this.Y||(this.x8.tN(this),this.Y=!0):this.Y&&(this.x8.Sx(this),this.Y=!1);this.Y&&i2(this,FDa())}; aP.prototype.G=function(){g.zP(this.element,"ytp-menuitem-highlight-transition-enabled")}; aP.prototype.B=function(f){var D=FDa();f!==D&&(D=g.JX(),NP(190,f),NP(192,!0),D.save(),this.U.wY("cinematicSettingsToggleChange",f))}; aP.prototype.Ey=function(){this.Y&&this.x8.Sx(this);jG.prototype.Ey.call(this)};g.C(G9,z9);G9.prototype.updateCinematicSettings=function(f){this.Y=f;var D;(D=this.menuItem)==null||D.u3(f);this.api.publish("onCinematicSettingsVisibilityChange",f)};g.C(Nsa,z9);g.C(wZ,z9);wZ.prototype.setCreatorEndscreenVisibility=function(f){var D;(D=bb(this.api.I_()))==null||D.VL(f)}; wZ.prototype.Y=function(f){function D(Z){Z==="creatorendscreen"&&(Z=bb(F.api.I_()))&&Z.i4T(F.hideButton)} var F=this;this.hideButton=f;this.events.D(this.api,"modulecreated",D);D("creatorendscreen")};g.C(eUu,z9);g.C(WN,jG);WN.prototype.X=function(f){this.G(f?1:0)}; WN.prototype.oG=function(){if(this.enableNewAudioSettingsMenu||this.B){var f=this.U.getPresentingPlayerType();f===2||f===3?this.Y&&(this.Y=!1,this.x8.Sx(this)):(f=this.getDrcState(),f!==1?(f===0?(i2(this,this.J()===1),this.setEnabled(!0)):(i2(this,!1),this.setEnabled(!1)),this.Y||(this.x8.tN(this),this.Y=!0)):this.Y&&(this.x8.Sx(this),this.Y=!1))}else{f=this.hasDrcAudioTrack();var D=this.J()===1&&f;i2(this,D);this.setEnabled(f)}}; WN.prototype.Ey=function(){this.x8.Sx(this);jG.prototype.Ey.call(this)}; WN.prototype.T=function(){this.U.logClick(this.element)};g.C(BN,z9);g.d=BN.prototype;g.d.getDrcUserPreference=function(){return this.Y}; g.d.setDrcUserPreference=function(f){this.api.Gx("drc_set",{pref:f});g.w0("yt-player-drc-pref",f,31536E3);f!==this.Y&&(this.Y=f,this.updateEnvironmentData(),this.Dg()&&this.api.Is(),this.api.X9())}; g.d.updateEnvironmentData=function(){this.api.j().Gm=this.Y===1}; g.d.Dg=function(){var f,D,F=(f=this.api.getVideoData())==null?void 0:(D=f.B)==null?void 0:D.Y;if(!F)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Z("mta_drc_mutual_exclusion_removal")){var Z,I,p=(Z=this.api.R5())==null?void 0:(I=Z.dw)==null?void 0:I.id;return PV(F,function(z){var H;return z.audio.Y&&((H=z.dw)==null?void 0:H.id)===p})}return PV(F,function(z){var H; return((H=z.audio)==null?void 0:H.Y)===!0})}; g.d.getDrcState=function(){return this.api.M9(3)};g.C(rZ,z9);rZ.prototype.onVideoDataChange=function(){var f=this,D=this.api.getVideoData();this.api.WD("embargo",1);var F=D==null?void 0:D.KH.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(F==null?0:F.length)?O5f(this,F.filter(function(Z){return XhE(f,Z)})):(D==null?0:D.cueRanges)&&O5f(this,D.cueRanges.filter(function(Z){return XhE(f,Z)}))}; rZ.prototype.J=function(f){return f.embargo!==void 0}; rZ.prototype.Ey=function(){z9.prototype.Ey.call(this);this.Y={}};g.C(La,z9); La.prototype.addEmbedsConversionTrackingParams=function(f){var D=this.api.j(),F=D.widgetReferrer,Z=D.JS,I=this.Y,p="",z=D.getWebPlayerContextConfig();z&&(p=z.embedsIframeOriginParam||"");F.length>0&&(f.embeds_widget_referrer=F);Z.length>0&&(f.embeds_referring_euri=Z);D.G&&p.length>0&&(f.embeds_referring_origin=p);z&&z.embedsFeature&&(f.feature=z.embedsFeature);I.length>0&&(D.Z("embeds_web_enable_lite_experiment_control_arm_logging")?I.unshift(28572):g.jM(g.X1(D))&&I.unshift(159628),D=I.join(","),D= g.xo()?D:g.ri(D,4),f.source_ve_path=D);this.Y.length=0};g.C(n9J,z9);g.C(YfI,z9);g.C(l2,g.J);l2.prototype.Ey=function(){g.J.prototype.Ey.call(this);this.Y=null;this.J&&this.J.disconnect()};g.C(fQu,z9);g.C(Ey,z9);Ey.prototype.dismissFeaturedProductOverlay=function(){this.api.publish("featuredproductdismissed")};g.C(JA,g.x);JA.prototype.show=function(){g.x.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; JA.prototype.stopTimer=function(){this.Y&&(this.Y.dispose(),this.Y=null)}; JA.prototype.onVideoDataChange=function(f){var D,F,Z=(D=this.api.getVideoData())==null?void 0:(F=D.getPlayerResponse())==null?void 0:F.playabilityStatus;Z&&(D=Duu(Z),g.O(this.api.getPlayerStateObject(),128)||f==="dataloaderror"||!D?(this.J=0,this.stopTimer(),this.hide()):(f=(D.remainingTimeSecs||0)*1E3,f>0&&(this.show(),this.updateValue("label",sf(D.label)),ZHa(this,f))))}; JA.prototype.Ey=function(){this.stopTimer();g.x.prototype.Ey.call(this)};g.C(IQs,z9);g.C(u2,g.x);u2.prototype.onClick=function(){this.NR.logClick(this.element);this.NR.wY("onFullerscreenEduClicked")}; u2.prototype.u3=function(){this.NR.isFullscreen()?this.Y?this.fade.hide():this.fade.show():this.hide();this.NR.logVisibility(this.element,this.NR.isFullscreen()&&!this.Y)};g.C(NK,z9);NK.prototype.updateFullerscreenEduButtonSubtleModeState=function(f){var D;(D=this.Y)!=null&&(g.qI(D.element,"ytp-fullerscreen-edu-button-subtle",f),f&&!D.J&&(D.NR.Z("player_tooltip_data_title_killswitch")?D.element.setAttribute("title","Desliza hacia abajo para ver m\u00e1s detalles"):D.element.setAttribute("data-tooltip-title","Desliza hacia abajo para ver m\u00e1s detalles"),Uz(D.NR,D.element,D),D.J=!0))}; NK.prototype.updateFullerscreenEduButtonVisibility=function(f){var D;(D=this.Y)!=null&&(D.Y=f,D.u3())};g.C(pXT,g.x);g.C(q6y,z9);g.C(gZ,z9);gZ.prototype.getSphericalProperties=function(){var f=g.Ez(this.api.I_());return f?f.getSphericalProperties():{}}; gZ.prototype.setSphericalProperties=function(f){if(f){var D=g.Ez(this.api.I_());D&&D.setSphericalProperties(f,!0)}};g.C(eG,z9);g.d=eG.prototype;g.d.createClientVe=function(f,D,F,Z){this.api.createClientVe(f,D,F,Z===void 0?!1:Z)}; g.d.createServerVe=function(f,D,F){this.api.createServerVe(f,D,F===void 0?!1:F)}; g.d.setTrackingParams=function(f,D){this.api.setTrackingParams(f,D)}; g.d.logClick=function(f,D){this.api.logClick(f,D)}; g.d.logVisibility=function(f,D,F){this.api.logVisibility(f,D,F)}; g.d.hasVe=function(f){return this.api.hasVe(f)}; g.d.destroyVe=function(f){this.api.destroyVe(f)};var oIy=!1;Xj.prototype.setPlaybackRate=function(f){this.playbackRate=Math.max(1,f)}; Xj.prototype.getPlaybackRate=function(){return this.playbackRate};FQ.prototype.Pq=function(f){var D=g.NJ(f.info.XF.info,this.FF.jj),F=f.info.Ws+this.G,Z=f.info.startTime*1E3;if(this.policy.b3)try{Z=this.policy.b3?g.Mx(f)*1E3:f.info.startTime*1E3}catch(z){Math.random()>.99&&this.logger&&(Z=Ah(f.J).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:f.info.lJ(),encodedDataView:g.B9(Z,4)})),Z=f.info.startTime*1E3}var I=f.info.clipId,p=this.policy.b3?g.HxT(f)*1E3:f.info.duration*1E3;this.policy.b3&&(Z<0||p<0)&&(this.logger&&(this.logger({missingSegInfo:f.info.lJ(), startTimeMs:Z,durationMs:p}),this.policy.zK||(Z<0&&(Z=f.info.startTime*1E3),p<0&&(p=f.info.duration*1E3))),this.policy.zK&&(Z<0&&(Z=f.info.startTime*1E3),p<0&&(p=f.info.duration*1E3)));return{formatId:D,Ws:F,startTimeMs:Z,clipId:I,VC:p}}; FQ.prototype.XX=function(f){this.timestampOffset=f};ZI.prototype.seek=function(f,D){f!==this.targetTime&&(this.seekCount=0);this.targetTime=f;var F=this.videoTrack.Y,Z=this.audioTrack.Y,I=this.audioTrack.yL,p=M2E(this,this.videoTrack,f,this.videoTrack.yL,D);D=M2E(this,this.audioTrack,this.policy.Z5?f:p,I,D);f=Math.max(f,p,D);this.G=!0;this.FF.isManifestless&&(Qfs(this,this.videoTrack,F),Qfs(this,this.audioTrack,Z));return f}; ZI.prototype.isSeeking=function(){return this.G}; ZI.prototype.Cs=function(f){this.J=f}; var bHI=2/24;var cRa=0;var i6;h1.prototype.add=function(f){if(this.pos+20>this.data.length){var D=new Uint8Array(this.data.length*2);D.set(this.data);this.data=D}for(;f>31;)this.data[this.pos++]=i6[(f&31)+32],f>>=5;this.data[this.pos++]=i6[f|0]}; h1.prototype.s6=function(){return g.Qo(this.data.subarray(0,this.pos))}; h1.prototype.reset=function(){this.pos=0};g.d=$v.prototype;g.d.HY=function(){this.Jb=this.now();aQE(this.lE,this.Jb);this.Oy.HY()}; g.d.zS=function(f,D){var F=this.policy.J?(0,g.m5)():0;VV(this,f,D);f-this.T<10&&this.J>0||this.vW(f,D);this.Oy.zS(f,D);this.policy.J&&(f=(0,g.m5)()-F,this.Z5+=f,this.JN=Math.max(f,this.JN))}; g.d.vW=function(f,D){var F=(f-this.T)/1E3,Z=D-this.B;this.q0||(kHT(this.lE,F,Z),this.BW(F,Z));this.T=f;this.B=D}; g.d.Ju=function(){this.zx&&vIa(this);this.Oy.Ju()}; g.d.Zs=function(f){this.zx||(this.zx=this.X-this.AN+f,this.qb=this.X,this.BI=this.S)}; g.d.s4=function(f,D){f=f===void 0?this.S:f;D=D===void 0?this.X:D;this.J>0||(this.N=f,this.J=D,this.Bs=this.isActive=!0)}; g.d.qn=function(){return this.j$||2}; g.d.SQ=function(){}; g.d.hc=function(){var f,D={rn:this.requestNumber,rt:(this.S-this.Y).toFixed(),lb:this.X,stall:(1E3*this.G).toFixed(),ht:(this.Jb-this.Y).toFixed(),elt:(this.N-this.Y).toFixed(),elb:this.J,d:(f=this.Tx)==null?void 0:f.s6()};this.url&&HHa(D,this.url);this.policy.J&&(D.mph=this.JN.toFixed(),D.tph=this.Z5.toFixed());D.ulb=this.rY;D.ult=this.KQ;return D}; g.d.now=function(){return(0,g.m5)()}; g.d.deactivate=function(){this.isActive&&(this.isActive=!1)};g.C(d2,$v);g.d=d2.prototype;g.d.hc=function(){var f=$v.prototype.hc.call(this);f.pb=this.o5;f.pt=(1E3*this.gw).toFixed();f.se=this.m9;return f}; g.d.BC=function(){var f=this.Oy;this.LQ||(this.LQ=f.BC?f.BC():1);return this.LQ}; g.d.nf=function(){return this.Di?this.BC()!==1:!1}; g.d.qt=function(f,D,F){if(!this.Wk){this.Wk=!0;if(!this.q0){VV(this,f,D);this.vW(f,D);var Z=this.BC();this.m9=F;if(!this.q0)if(Z===2){Z=f-this.N0)||Cy(this,Z,D),this.J>0&&Xw(this.lE,D,this.G));f=(f-this.Y)/ 1E3||.01;this.policy.N&&!(this.J>0)||x$(this.lE,f,this.B,wXD(this),this.Tw)}this.deactivate()}}; g.d.kR=function(f,D,F){F&&(this.LQ=2);f<0&&this.j$&&(f=this.j$);D?this.Ps+=f:this.dY+=f}; g.d.qn=function(){return this.dY||this.Ps||$v.prototype.qn.call(this)}; g.d.vW=function(f,D){var F=(f-this.T)/1E3,Z=D-this.B,I=this.BC();this.isActive?I===1&&((Z>0||this.policy.X)&&(F>.2||Z<1024)?(this.G+=F,Z>0&&F>.2&&Cy(this,this.WR?F:.05,Z),this.G3=!0):Z>0&&(Cy(this,F,Z),this.G3=!0)):D&&D>=this.policy.Y&&this.s4(f,D);$v.prototype.vW.call(this,f,D)}; g.d.CD=function(f){if(!this.q0){VV(this,f,this.X);var D=(f-this.Y)/1E3;this.BC()!==2&&this.J>0&&(this.G+=(f-this.T)/1E3,Xw(this.lE,this.B,this.G));x$(this.lE,D,this.B,wXD(this),this.Tw,!0);f=(f-this.T)/1E3;kHT(this.lE,f,0);this.BW(f,0)}}; g.d.s4=function(f,D){f=f===void 0?this.S:f;D=D===void 0?this.X:D;if(!(this.J>0)&&($v.prototype.s4.call(this,f,D),this.BC()===1)){D=(this.Jb-this.Y)/1E3;var F=(f-this.Jb)/1E3;this.Di&&mf(this,this.now());this.Uq||this.q0||(this.j$&&(F=Math.max(0,F-this.j$)),f=this.lE,f.N.qp(1,D),f.Tx.qp(1,F))}}; g.d.LT=function(){this.Di&&mf(this,this.now());return this.jT}; g.d.Gh=function(){var f;if(f=this.B>this.b5)f=(f=this.B)?f>=this.policy.Y:!1;return f}; g.d.A8=function(){return this.b3}; g.d.gf=function(f){f=f===void 0?this.now():f;if(this.Di){mf(this,f);if(this.LQ?this.nf():this.xo!==this.Ir){var D=this.Ir;if(f0?F+f:F+Math.max(f,D)}; g.d.Rk=function(){return this.now()-this.N}; g.d.eC=function(){return(this.B-this.J)*1E3/this.Rk()||0}; g.d.VH=function(){return this.N};TT.prototype.feed=function(f){kl(this.Y,f);this.cD()}; TT.prototype.cD=function(){if(this.G){if(!this.Y.totalLength)return;var f=this.Y.split(this.B-this.J),D=f.CV;f=f.R6;if(!this.Oy.Zs(this.G,D,this.J,this.B))return;this.J+=D.totalLength;this.Y=f;this.J===this.B&&(this.G=this.B=this.J=void 0)}for(;;){var F=0;f=g.a(LmD(this.Y,F));D=f.next().value;F=f.next().value;F=g.a(LmD(this.Y,F));f=F.next().value;F=F.next().value;if(D<0||f<0)break;if(!(F+f<=this.Y.totalLength)){if(!(this.Oy.Zs&&F+1<=this.Y.totalLength))break;F=this.Y.split(F).R6;this.Oy.Zs(D,F,0, f)&&(this.G=D,this.J=F.totalLength,this.B=f,this.Y=new K6([]));break}f=this.Y.split(F).R6.split(f);F=f.R6;this.Oy.f0(D,f.CV);this.Y=F}}; TT.prototype.dispose=function(){this.Y=new K6};g.d=b6.prototype;g.d.kP=function(){return 0}; g.d.kx=function(){return null}; g.d.D4=function(){return null}; g.d.mN=function(){return this.state>=1}; g.d.isComplete=function(){return this.state>=3}; g.d.lO=function(){return this.state===5}; g.d.onStateChange=function(){}; g.d.uJ=function(f){var D=this.state;this.state=f;this.onStateChange(D);this.callback&&this.callback(this,D)}; g.d.Be=function(f){f&&this.state=this.xhr.HEADERS_RECEIVED}; g.d.getResponseHeader=function(f){try{return this.xhr.getResponseHeader(f)}catch(D){return""}}; g.d.M3=function(){return+this.getResponseHeader("content-length")}; g.d.hs=function(){return this.J}; g.d.sj=function(){return this.status>=200&&this.status<300&&!!this.J}; g.d.au=function(){return this.Y.totalLength>0}; g.d.Cd=function(){var f=this.Y;this.Y=new K6;return f}; g.d.b8=function(){return this.Y}; g.d.abort=function(){this.MR=!0;this.xhr.abort()}; g.d.CB=function(){return!0}; g.d.zM=function(){return this.B}; g.d.rp=function(){return""};g.d=JRs.prototype; g.d.run=function(){var f=this,D,F,Z,I,p,z,H,K,k,h,y,A,V,R,m;return g.l(function(b){if(b.Y==1){f.status=200;D=f.Y.get("docid");F=Ec(f.Y.get("fmtid")||"");Z=f.Y.get("lmt")||"0";I=+(f.Y.get("csz")||0);if(!D||!F||!I)throw Error("Invalid local URL");f.Y.get("ck")&&f.Y.get("civ")&&(p=new EIJ(f.Y.get("ck"),f.Y.get("civ")));z=f.range;H=Math.floor(z.start/I);K=Math.floor(z.end/I);k=H}if(b.Y!=5)return k<=K?g.r(b,beT(D,F,Z,k,p),5):b.ZE(0);h=b.J;if(h===void 0)throw Error("invariant: data is undefined");y=k*I; A=(k+1)*I;V=Math.max(0,z.start-y);R=Math.min(z.end+1,A)-(V+y);m=new Uint8Array(h.buffer,V,R);f.J.append(m);f.loaded+=R;f.loaded=200&&this.status<300&&!!this.J}; g.d.au=function(){return!!this.Y.totalLength}; g.d.Cd=function(){var f=this.Y;this.Y=new K6;return f}; g.d.b8=function(){return this.Y}; g.d.MR=function(){return this.aborted}; g.d.abort=function(){this.B&&this.B.cancel().catch(function(){}); this.G&&this.G.abort();this.aborted=!0}; g.d.CB=function(){return!0}; g.d.zM=function(){return this.X}; g.d.rp=function(){return this.errorMessage};g.d=gIc.prototype;g.d.onDone=function(){if(!this.MR){this.status=this.xhr.status;try{this.response=this.xhr.response,this.J=this.response.byteLength}catch(f){}this.Y=!0;this.Oy.Ju()}}; g.d.xU=function(){this.xhr.readyState===2&&this.Oy.HY()}; g.d.onProgress=function(f){this.MR||(this.status=this.xhr.status,this.Y||(this.J=f.loaded),this.Oy.zS((0,g.m5)(),f.loaded))}; g.d.BY=function(){return this.xhr.readyState>=2}; g.d.getResponseHeader=function(f){try{return this.xhr.getResponseHeader(f)}catch(D){return g.UT(Error("Could not read XHR header "+f)),""}}; g.d.M3=function(){return+this.getResponseHeader("content-length")}; g.d.hs=function(){return this.J}; g.d.sj=function(){return this.status>=200&&this.status<300&&this.Y&&!!this.J}; g.d.au=function(){return this.Y&&!!this.response&&!!this.response.byteLength}; g.d.Cd=function(){var f=this.response;this.response=void 0;return new K6([new Uint8Array(f)])}; g.d.b8=function(){return new K6([new Uint8Array(this.response)])}; g.d.abort=function(){this.MR=!0;this.xhr.abort()}; g.d.CB=function(){return!1}; g.d.zM=function(){return!1}; g.d.rp=function(){return""};g.C(Sd,g.J);Sd.prototype.o6=function(){if(!this.Pw.length)return[];var f=this.Pw;this.Pw=[];this.B=g.Jv(f).info;return f}; Sd.prototype.kf=function(){return this.Pw}; Sd.prototype.Ey=function(){g.J.prototype.Ey.call(this);this.Y=null;this.Pw.length=0;this.tb.length=0;this.B=null};g.C(US,g.J);g.d=US.prototype; g.d.zSo=function(){if(!this.MR()){var f=(0,g.m5)(),D=!1;if(this.policy.B_){var F=this.timing.J>0?this.timing.N:this.timing.Y;this.policy.yA&&this.B&&(F=this.B);f=f-F-(this.policy.g$?this.policy.fl:this.timing.qn()*1E3);F=E6(vs(this),!1);f>=2E3*F?D=!0:f>=this.policy.O$*F&&(this.Y=this.policy.Jv)}else if(this.timing.J>0){if(this.T){this.policy.Xt&&(this.Y=0);return}f=this.timing.A8();this.timing.gf();this.timing.A8()-f>=this.policy.JS*.8?(this.Y++,D=this.Y>=5):this.Y=0}else D=f-this.timing.LT(),this.policy.Jv&& D>0&&(this.Y+=1),f=E6(vs(this),!1)*this.policy.m8,D=D>f*1E3;this.Y>0&&this.Oy.z7();D?this.Mc():this.J.start()}}; g.d.Mc=function(){this.X=!0;this.Oy.c7();this.lastError="net.timeout";GT(this)}; g.d.canRetry=function(f){var D=vs(this);f=f?this.policy.rg:this.policy.y3;return D.timedOut0&&(D=$l(D.Y,0),f.ubyte=D,F===1&&D===0&&(f.b248180278=!0))}this.Qz&&(f.rc=this.policy.ZW?this.Qz:this.Qz.toString());this.policy.vI&&this.R1&&(f.tr=this.R1);f.itag=this.info.tb[0].XF.info.itag;f.ml=""+ +this.info.tb[0].XF.IP();f.sq=""+this.info.tb[0].Ws;this.jp&&(f.ifi=""+ +AI(38,this.info.T3.J));this.Qz!==410&&this.Qz!==500&&this.Qz!==503||(f.fmt_unav="true");var Z;(F=this.errorMessage||((Z=this.xhr)==null? void 0:Z.rp()))&&(f.msg=F);this.i9&&(f.smb="1");this.info.isDecorated()&&(f.sdai="1");return f}; g.d.CT=function(){return WmE(this.timing)}; g.d.rp=function(){return this.xhr.rp()||""}; g.d.Gh=function(){return this.isComplete()||this.timing.Gh()}; g.d.zS=function(){!this.MR()&&this.xhr&&(this.Qz=this.xhr.status,this.policy.GD&&this.hS&&this.CR(!1),this.u_()?this.Be(2):!this.Xo&&this.Gh()&&(this.Be(),this.Xo=!0))}; g.d.HY=function(){if(!this.MR()&&this.xhr){if(!this.I5&&this.xhr.BY()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var f=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.I5=((0,g.m5)()-f)/1E3}this.xhr.BY()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.rN3&&!ymw()&&g.w0("yt-player-headers-readable",!0,2592E3);f=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var D=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),F;(F=this.O4)==null||F.stop();this.TX=f||this.TX; this.Sy=D||this.Sy}}; g.d.Ju=function(){var f=this.xhr;if(!this.MR()&&f){this.Qz=f.status;f=this.M1(f);if(this.policy.vI){var D;(D=this.O4)==null||D.stop()}f===5?GT(this.Ic):this.uJ(f);this.Ic.J.stop()}}; g.d.M1=function(f){CQd(this);if(w2(this.Ic,this.xhr.status,this.gF?this.timing.Bs||this.Fu:this.xhr.sj(),!1,this.nt))return 5;var D="";Ws(this.Ic,this.xhr)&&(D=nIu(this.Ic,this.xhr));if(D)return lY(vs(this.Ic)),this.info.zR(this.jp,D),3;D=f.hs();if(this.wy){this.CR(!0);CQd(this);if(w2(this.Ic,this.xhr.status,this.timing.Bs||this.Fu,!1,this.nt))return 5;if(!this.EM){if(this.Fu)return lY(vs(this.Ic)),3;this.Ic.lastError="net.closed";return 5}}else{if(w2(this.Ic,this.xhr.status,this.xhr.sj(),!1,this.nt))return 5; var F=this.info.B;if(F&&F!==D||f.zM())return this.Ic.lastError="net.closed",5;this.CR(!0)}F=lQu(this)?f.getResponseHeader("X-Bandwidth-Est"):0;if(f=lQu(this)?f.getResponseHeader("X-Bandwidth-Est3"):0)this.vz=!0,this.policy.T6&&(F=f);OHJ(this.Ic,D,F?Number(F):0,this.info.tb[0].type===5);return 4}; g.d.canRetry=function(){this.MR();var f=this.info.isDecorated();return this.Ic.canRetry(f)}; g.d.onStateChange=function(){this.isComplete()&&(this.policy.vO?this.c7():this.timing.deactivate())}; g.d.Mc=function(){this.Ic.Mc()}; g.d.z7=function(){this.callback&&this.callback(this,this.state)}; g.d.LG=function(){return this.Ic.LG()}; g.d.dispose=function(){b6.prototype.dispose.call(this);this.Ic.dispose();var f;(f=this.O4)==null||f.dispose();this.policy.vO||this.c7()}; g.d.c7=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.d.o6=function(){if(!this.kf().length)return[];this.W$=!0;return this.hS.o6()}; g.d.u_=function(){if(this.state<1)return!1;if(this.hS&&this.hS.Pw.length)return!0;var f;return((f=this.xhr)==null?0:f.au())?!0:!1}; g.d.kf=function(){this.CR(!1);return this.hS?this.hS.kf():[]}; g.d.CR=function(f){try{if(f||this.xhr.BY()&&this.xhr.au()&&!Ws(this.Ic,this.xhr)&&!this.UL)this.hS||(this.hS=new Sd(this.policy,this.info.tb)),this.xhr.au()&&(this.wy?this.wy.feed(this.xhr.Cd()):cs(this.hS,this.xhr.Cd(),f&&!this.xhr.au()))}catch(D){this.wy?dxw(this,D):g.UT(D)}}; g.d.f0=function(f,D){switch(f){case 21:f=D.split(1).R6;QAu(this,f);break;case 22:this.EM=!0;cs(this.hS,new K6([]),!0);break;case 43:if(f=aa(new bw(D),1))this.info.zR(this.jp,f),this.Fu=!0;break;case 45:D=ba(new bw(D));f=D.L6;D=D.sZ;f&&D&&(this.FT=f/D);break;case 44:this.Pe=Fsu(new bw(D));var F,Z,I;!this.timing.Bs&&((F=this.Pe)==null?void 0:F.action)===4&&((Z=this.Pe)==null?0:(I=Z.VG)==null?0:I.gF)&&(this.gF=this.Pe.VG.gF);break;case 53:this.policy.vI&&(f=PhX(new bw(D)).WC)&&(this.O4||(this.WC=f,this.O4= new g.xX(this.Fs,f,this)),this.O4.start());break;case 60:this.pI=TI(new bw(D));break;case 58:if(f=MAD(new bw(D)))this.bz=f,f.bz===3&&(this.nt=!0)}}; g.d.Zs=function(f,D,F,Z){F||this.timing.Zs(Z);if(f!==21)return!1;if(f=this.policy.GD)if(f*=this.info.tb[0].XF.info.Eq,D.totalLength+F!==Z&&D.totalLength0)return!1;if(!this.xhr.BY())return!0;if(this.wy)var f=!this.info.B;else this.xhr.M3()?f=!1:(f=this.xhr.getResponseHeader("content-type"),f=f==="audio/mp4"||f==="video/mp4"||f==="video/webm");if(!f)return!1;if(isNaN(this.info.Zo)){f=this.xhr.getResponseHeader("x-head-seqnum");var D=this.timing.policy.S?1:0;if(f&&Number(f)>this.info.tb[0].Ws+D)return!1}return!0}; g.d.Y4=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.d.kx=function(){this.xhr&&(this.TX=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.TX}; g.d.D4=function(){this.xhr&&(this.Sy=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Sy}; g.d.wp=function(){return this.Ic.wp()}; g.d.Fs=function(){if(!this.MR()&&this.xhr){this.R1="heartbeat";var f=this.Ic;f.Y+=2;this.z7()}};g.C(Nr,$v);g.d=Nr.prototype;g.d.vW=function(f,D){var F=(f-this.T)/1E3,Z=D-this.B;this.J>0?Z>0&&(this.xo&&(F>.2||Z<1024?(this.G+=F,F>.2&&mxX(this,.05,Z)):mxX(this,F,Z)),this.Ir&&(this.jT+=Z,this.dY+=F)):D>this.policy.Y&&this.s4(f,D);$v.prototype.vW.call(this,f,D)}; g.d.qt=function(f,D){VV(this,f,D);this.vW(f,D);this.xo&&(D=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.J>0&&Xw(this.lE,this.jT,this.G),f=(f-this.Y)/1E3||.01,this.policy.N&&!(this.J>0)||x$(this.lE,f,this.B,D,!1))}; g.d.CD=function(f){VV(this,f,this.X);var D=(f-this.T)/1E3;kHT(this.lE,D,0);this.BW(D,0);!this.xo&&this.J>0||(D=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.J>0&&(this.G+=(f-this.T)/1E3,Xw(this.lE,this.jT,this.G)),x$(this.lE,(f-this.Y)/1E3||.01,this.B,D,!1,!0))}; g.d.Mq=function(f){f=f.f9||2147483647;(f&2)!==2&&(this.Ir=!1);(f&1)===1&&(this.xo=!0)}; g.d.Uv=function(f){f=f.f9||2147483647;(f&2)===2&&(this.Ir=!1);(f&1)===1&&(this.xo=!1)}; g.d.VH=function(){return this.N}; g.d.Rk=function(){var f=this.Ir?this.now()-this.T:0;return Math.max(this.dY*1E3+f,1)}; g.d.eC=function(){return this.jT*1E3/this.Rk()}; g.d.s4=function(f,D){f=f===void 0?this.S:f;D=D===void 0?this.X:D;this.J>0||($v.prototype.s4.call(this,f,D),D=this.lE,f=(f-this.Jb)/1E3,D.N.qp(1,(this.Jb-this.Y)/1E3),D.Tx.qp(1,f))}; g.d.SQ=function(f){this.Ps=f}; g.d.hc=function(){var f=$v.prototype.hc.call(this);f.rbw=this.eC();f.rbe=+this.Ir;f.gbe=+this.xo;f.ackt=(this.Ps-this.Y).toFixed();return f}; g.d.gf=function(){}; g.d.A8=function(){return NaN}; g.d.LT=function(){return this.Y+this.snapshot.delay*1E3};g2.prototype.f0=function(f,D){switch(f){case 20:f=new bw(D);f={Ve:SB(f,1),videoId:aa(f,2),itag:SB(f,3),lmt:SB(f,4),xtags:aa(f,5),oO:SB(f,6),wv:UA(f,8),Ib:SB(f,9),lsQ:SB(f,10),startMs:SB(f,11),durationMs:SB(f,12),dk:SB(f,14),timeRange:GF(f,15,dj),E3:SB(f,16),zQ:SB(f,17),Rx:SB(f,20),oR:GF(f,21,L3y),clipId:aa(f,1E3)};this.W5(f);break;case 21:this.Dj(D,!1);break;case 22:this.FY(D);break;case 31:f=BB(D,NFu);this.Oy.Fn(f);break;case 52:f=BB(D,frd);this.Oy.ND(f);break;case 69:f={eX:WB(new bw(D),1,W3D)}; this.Oy.hO(f);break;default:this.U7(f,D)}}; g2.prototype.W5=function(){}; g2.prototype.U7=function(){};var YQY=new Set([53,49,50]);g.C(ed,g2);g.d=ed.prototype;g.d.U7=function(f,D){BqT(this.Oy)&&!YQY.has(f)?this.Y.push({id:f,data:D}):TqD(this,f,D)}; g.d.S9=function(f){f=new bw(f);f={DcE:WB(f,1,Rp),MtE:WB(f,2,Rp)};this.Oy.S9(f)}; g.d.Tb=function(f){var D=new bw(f);f=wX(D,1);var F=wX(D,2);D=wX(D,3);this.Oy.Tb(f,F,D)}; g.d.g3=function(f){f=ba(new bw(f));this.Oy.g3(f)}; g.d.zb=function(f){f=BB(f,xsu);this.Oy.zb(f)}; g.d.Cq=function(f){f=new bw(f);f={videoId:aa(f,1),formatId:GF(f,2,Rp),endTimeMs:SB(f,3),PIr:SB(f,4),mimeType:aa(f,5),kI:GF(f,6,BFf),indexRange:GF(f,7,BFf),lV:GF(f,8,rnJ)};this.Oy.Cq(f)}; g.d.VW=function(f){f=new bw(f);f={type:SB(f,1),scope:SB(f,2),value:vB(f,3),sendByDefault:UA(f,4),writePolicy:SB(f,5)};this.Oy.VW(f)}; g.d.ZA=function(){this.Oy.ZA()}; g.d.Na=function(f){f=ggs(new bw(f));this.Oy.Na(f)}; g.d.P5=function(f){f=PhX(new bw(f));this.Oy.P5(f)}; g.d.Cv=function(f){f=Fsu(new bw(f));this.Oy.Cv(f)}; g.d.Lq=function(f){f={redirectUrl:aa(new bw(f),1)};this.Oy.Lq(f)}; g.d.Dj=function(f){var D=$l(f,0);if(f.totalLength!==1){f=f.split(1).R6;var F=this.J[D]||null;F&&fE(this.Oy.qI,D,F,f)}}; g.d.FY=function(f){f=$l(f,0);var D=this.J[f]||null;D&&this.Oy.FY(f,D)}; g.d.W5=function(f){var D=f.Ve,F=f.wv,Z=f.oO,I=f.zQ,p=f.E3,z=f.Ib,H=f.startMs,K=f.durationMs,k=f.timeRange,h=f.dk,y=f.Rx,A=f.clipId,V=f.oR,R=XV(f);f=SQV.has(vi[""+f.itag]);this.J[D]=R;var m=-1;y&&(k==null?0:k.timescale)&&(m=y/k.timescale);this.Oy.kR(R,f,m,{Ve:D,wv:!!F,oO:Z!=null?Z:-1,Ib:z!=null?z:-1,startMs:H!=null?H:-1,durationMs:K!=null?K:-1,dk:h,zQ:I,E3:p,clipId:A,timeRange:k,oR:V})}; g.d.Mq=function(f){f={f9:SB(new bw(f),1)};this.Oy.Mq(f)}; g.d.Uv=function(f){f={f9:SB(new bw(f),1)};this.Oy.Uv(f)}; g.d.iH=function(f){f=MAD(new bw(f));this.Oy.iH(f)}; g.d.CC=function(f){f={mq:GF(new bw(f),1,ngu)};this.Oy.CC(f)}; g.d.onSnackbarMessage=function(f){f=SB(new bw(f),1);this.Oy.onSnackbarMessage(f)}; g.d.hY=function(f){f=new bw(f);f={reloadPlaybackParams:GF(f,1,bmu),WX:UA(f,2)};this.Oy.hY(f)}; g.d.Zy=function(){for(var f=g.a(this.Y),D=f.next();!D.done;D=f.next())D=D.value,TqD(this,D.id,D.data);this.Y=[]};g.C(xv,g.J);g.d=xv.prototype;g.d.VF=function(){return Array.from(this.Vj.keys())}; g.d.oa=function(f){f=this.Vj.get(f);var D=f.Pw;f.Ch+=D.totalLength;f.Pw=new K6;return D}; g.d.wS=function(f){return this.Vj.get(f).wS}; g.d.bb=function(f){return this.Vj.get(f).bb}; g.d.kR=function(f,D,F){this.Vj.get(f)||this.Vj.set(f,{Pw:new K6,Ch:0,bytesReceived:0,jZ:0,TC:!1,wS:!1,bb:!1,E6:D,J2:[],tb:[],An:[],zn:!1,eA:new Map,O1:new Map,M$:[]});D=this.Vj.get(f);this.FF?(f=UxX(this,f,F),cqy(this,F.Ve,D,f)):(F.wv?D.jZ=F.dk:D.An.push(F),D.J2.push(F))}; g.d.Qe=function(f){var D;return((D=this.Vj.get(f))==null?void 0:D.tb)||[]}; g.d.Be=function(){for(var f=g.a(this.Vj.values()),D=f.next();!D.done;D=f.next())if(D=D.value,D.TC){if(D.onProgress)D.onProgress();D.TC=!1}}; g.d.FY=function(f,D){D=this.Vj.get(D);XQ?D&&!D.wS&&(D.eA.get(f)?D.eA.get(f).JT=!0:D.eA.set(f,{data:new K6,kZ:0,JT:!0}),D.bb=!0):D&&!D.bb&&(D.bb=!0)}; g.d.o6=function(f){if(XQ){var D=this.Vj.get(f);if(D)for(var F=g.a(D.eA),Z=F.next();!Z.done;Z=F.next()){var I=g.a(Z.value);Z=I.next().value;I=I.next().value;var p=D.O1.get(Z);if(ZD(p[0])){if(!I.JT)continue;var z=I.data,H=0,K=[];p=g.a(p);for(var k=p.next();!k.done;k=p.next()){k=k.value;var h=k.J,y=jB(z,H,h);H+=h;K.push(new mC(k,y))}D.M$.push.apply(D.M$,g.w(K))}else if(I.data.totalLength>0||!p[0].range&&I.JT)z=void 0,H=p[0],K=I.kZ,p=I.data,H.range||(z=I.JT),z=new mC(w7T(H,H.Y+K,p.totalLength,z),p),I.kZ+= z.info.J,D.M$.push(z);D.eA.get(Z).data=new K6;I.JT&&D.eA.delete(Z)}f=this.Vj.get(f);if(!f)return[];D=f.M$;f.M$=[];F=g.a(D);for(Z=F.next();!Z.done;Z=F.next())f.Ch+=Z.value.info.J;return D||[]}F=(D=this.Vj.get(f))==null?void 0:D.hS;if(!F)return[];this.CR(f,F);return F.o6()}; g.d.u_=function(f){if(XQ)return Ps(this,f);var D,F,Z;return!!((F=(D=this.Vj.get(f))==null?void 0:D.hS)==null?0:(Z=F.kf())==null?0:Z.length)||Ps(this,f)}; g.d.CR=function(f,D){for(;Ps(this,f);){var F=this.oa(f);var Z=f;Z=this.Vj.get(Z).wS&&!Yv(this,Z);cs(D,F,Z&&S$u(this,f))}}; g.d.Ey=function(){g.J.prototype.Ey.call(this);for(var f=g.a(this.Vj.keys()),D=f.next();!D.done;D=f.next())OS(this,D.value);var F;if((F=this.Xr)==null?0:F.KH)for(f=g.a(this.Vj.values()),D=f.next();!D.done;D=f.next())D=D.value,D.eA.clear(),D.O1.clear(),D.M$.length=0,D.tb.length=0,D.J2.length=0,D.An.length=0;this.Vj.clear()}; var XQ=!1;var PZL=new Set([2]);g.C(DC,g.J);g.d=DC.prototype;g.d.zS=function(){!this.MR()&&this.xhr&&(this.CR(!1),Aj(this.Oy,this))}; g.d.HY=function(){}; g.d.Ju=function(){if(!this.MR()&&this.xhr){var f=this.M1();f===5?(this.policy.Nc&&this.wp()==="net.badstatus"&&this.Oy.dH(),GT(this.Ic)):(this.policy.Nc&&this.Oy.VD(),this.uJ(f));this.Ic.J.stop();var D;(D=this.KL)==null||D.stop()}}; g.d.M1=function(){var f="";Ws(this.Ic,this.xhr)&&(f=nIu(this.Ic,this.xhr));if(f)return this.info.T3.zR(this.jp,f),3;this.CR(!0);if(w2(this.Ic,this.xhr.status,this.xhr.sj(),this.info.sS(),this.nt))return 5;if(this.yG)return 3;OHJ(this.Ic,this.xhr.hs(),0,this.sS());this.policy.WI&&GZy(this.Oy);return 4}; g.d.CR=function(f){var D=this.xhr;!f&&Ws(this.Ic,this.xhr)||!D.au()||(f=D.Cd(),this.wy.feed(f))}; g.d.f0=function(f,D){this.xhr.CB()&&f===21&&wTy(this);this.qE.f0(f,D)}; g.d.Zs=function(f,D,F,Z){F||(this.Jz.Zs(Z),this.policy.At&&f===21&&wTy(this));if(f!==21)return!1;this.Jz.Bs=!0;f=D.totalLength;F||(this.bD=$l(D,0),D=D.split(1).R6);var I=this.policy.Sg,p=this.qE.J[this.bD],z=this.FF.B.get(p);if(I&&z&&(I*=z.info.Eq,f+F!==Z&&f0){this.policy.B_&&this.Ic.J.stop();f=this.Jz.Rk();D=this.Jz.eC();var F=WCs(this,f);if(!(D>F.KD||F.Ho>0&&this.info.gD()>F.Ho)){this.Pg=(0,g.m5)();var Z;(Z=this.KL)==null||Z.stop();this.policy.WI&&(Z=this.Oy,f={E2:Math.round(D*f/1E3),Wh:f},Z.policy.WI&&(Z.jT=f,Z.yN++));this.Mc()}}}}; g.d.Mc=function(){this.Ic.Mc()}; g.d.Cv=function(f){this.Oy.Cv(f,this.RN())}; g.d.Lq=function(f){this.yG=!0;this.info.T3.zR(this.jp,f.redirectUrl)}; g.d.Mq=function(f){this.Jz instanceof Nr&&this.Jz.Mq(f)}; g.d.Uv=function(f){this.Jz instanceof Nr&&this.Jz.Uv(f)}; g.d.Cq=function(f){var D=f.formatId,F=XV({itag:D.itag,lmt:D.lmt,xtags:D.xtags}),Z,I,p=new YI(((Z=f.kI)==null?void 0:Z.first)||0,((I=f.kI)==null?void 0:I.Aw)||0),z,H;Z=new YI(((z=f.indexRange)==null?void 0:z.first)||0,((H=f.indexRange)==null?void 0:H.Aw)||0);this.FF.B.get(F)||(F=f.lV||{},F.mimeType=f.mimeType,F.itag=D.itag,F.lastModified=""+(D.lmt||0),F.xtags=D.xtags,f=this.FF,D=Nx(""),F=Jq(F,null),WT(f,new aA(D,F,p,Z)))}; g.d.g3=function(f){this.Oy.g3(f,this.RN())}; g.d.onSnackbarMessage=function(f){if(this.policy.V0)this.Oy.onSnackbarMessage(f)}; g.d.hO=function(f){this.policy.T&&this.Oy.hO(f,this.RN())}; g.d.Fn=function(f){this.Pm=f;this.Ic.B=(0,g.m5)();this.Oy.Fn(f)}; g.d.yW=function(f){this.Oy.yW(f)}; g.d.Tb=function(f,D,F){this.Oy.Tb(f,D,F)}; g.d.VW=function(f){f.scope===2&&(this.bx=f);this.Oy.VW(f)}; g.d.ZA=function(){this.Cg=!0;this.Oy.ZA()}; g.d.S9=function(f){this.policy.f7&&this.Oy.S9(f)}; g.d.zb=function(f){this.Oy.zb(f,this.RN())}; g.d.iH=function(f){f.bz===3&&(this.nt=!0);this.Oy.iH(f)}; g.d.CC=function(f){this.Oy.CC(f)}; g.d.hY=function(f){this.Oy.hY(f)}; g.d.canRetry=function(){this.MR();return this.Ic.canRetry(!1)}; g.d.dispose=function(){if(!this.MR()){g.J.prototype.dispose.call(this);this.Ic.dispose();var f;(f=this.KL)==null||f.dispose();this.uJ(-1);this.c7()}}; g.d.uJ=function(f){this.state=f;Aj(this.Oy,this)}; g.d.sS=function(){return this.info.sS()}; g.d.TE=function(){return this.Cg}; g.d.s_=function(){return this.bx}; g.d.kR=function(f,D,F,Z){this.policy.EW&&this.Oy.AD(2,D);F>=0&&this.Oy.M4(F);Z.clipId&&(this.clipId=Z.clipId);this.policy.J&&!D&&(this.PR=Z.Ib);if(this.info.isDecorated()){var I=this.info,p,z;F=((p=I.data)==null?0:(z=p.BR)==null?0:z.Jq)?I.data.BR.Jq:-1;F>=0&&F>Z.Ib&&this.Oy.loader.Gx("sdai",{skpsqmismatch:"1",stsq:F,rcvsq:Z.Ib,a:D})}this.qI.kR(f,D,Z);this.policy.nH&&this.Pm&&this.Jz instanceof d2&&(p=this.Pm.KS,this.Jz.kR(Z.durationMs/1E3,D,p>0&&Z.Ib+1>=p));this.qI.Vj.get(f).zn=!0;this.Oy.kR(Z)}; g.d.FY=function(f,D){this.qI.FY(f,D)}; g.d.ND=function(f){this.requestIdentifier=f}; g.d.o6=function(f){return this.qI.o6(f)}; g.d.Qe=function(f){return this.qI.Qe(f)}; g.d.u_=function(f){return this.qI.u_(f)}; g.d.VF=function(){return this.qI.VF()}; g.d.BC=function(){return 1}; g.d.RN=function(){return this.Jz.requestNumber}; g.d.vJ=function(){return this.requestIdentifier}; g.d.M7=function(){return this.jp.M7()}; g.d.YA=function(){this.c7()}; g.d.c7=function(){this.Jz.deactivate();var f;(f=this.xhr)==null||f.abort()}; g.d.isComplete=function(){return this.state>=3}; g.d.RV=function(){return this.state===3}; g.d.lO=function(){return this.state===5}; g.d.HU=function(){return this.state===4}; g.d.hw=function(){return this.isComplete()}; g.d.mN=function(){return this.state>=1}; g.d.LG=function(){return this.policy.Xt?this.Ic.LG():0}; g.d.z7=function(){this.policy.Xt&&Aj(this.Oy,this)}; g.d.yH=function(){return Wq(this.info)}; g.d.Zy=function(){this.YO()&&!this.q1&&(this.q1=!0,this.qE.Zy())}; g.d.YO=function(){var f,D;var F=(f=this.info.Y)==null?void 0:(D=f.w$)==null?void 0:D.s3;return!!F&&PZL.has(F)}; g.d.bV=function(){return"SABR"}; g.d.wp=function(){return this.Ic.wp()}; g.d.Ke=function(){var f=Y6c(this.Ic);Object.assign(f,l4X(this.info));f.req="sabr";f.rn=this.RN();var D;if((D=this.xhr)==null?0:D.status)f.rc=this.policy.ZW?this.xhr.status:this.xhr.status.toString();var F;(D=(F=this.xhr)==null?void 0:F.rp())&&(f.msg=D);this.Pg&&(F=WCs(this,this.Pg-this.Jz.VH()),f.letm=F.l5T,f.mrbps=F.KD,f.mram=F.Ho);return f};rqD.prototype.tick=function(f,D){this.ticks[f]=D?window.performance.timing.navigationStart+D:(0,g.m5)()};g.C(ZC,g.zu);g.d=ZC.prototype; g.d.NJ=function(f,D,F,Z){var I=!1;this.policy.J&&(I=F?this.xo===f.Ws:this.KQ===f.Ws);if(this.D5&&Z&&!I){Z=[];I=[];var p=[],z=void 0,H=0;D&&(Z=D.Y,I=D.J,p=D.G,z=D.B,H=D.lP,this.Gx("sdai",{sq:f.Ws,ssvicpns:Z.join("."),ssvid:I.join(".")}));this.policy.J&&(F?this.xo=f.Ws:this.KQ=f.Ws);this.D5.yB(f.Ws,f.startTime,Z,I,p,F,H,z)}if(this.policy.J){if(F){this.J===1&&pE(this,5,"noad");var K;f.Ws!==((K=this.Y)==null?void 0:K.Ws)&&(uYy(this,f,D,F),isNaN(f.startTime)||Nqd(this,f.Ws,Hn(this,f.startTime,f.Ws),!!D, this.D5))}}else F&&uYy(this,f,D)}; g.d.jN=function(f,D,F){var Z=this.videoTrack.XF.index.eU()<=D;this.Y={Xd:f,Ws:D,Rd:F};Z&&II(this,f,D)}; g.d.YY=function(){this.D5&&this.D5.YY()}; g.d.Gx=function(f,D,F){(f!=="sdai"||this.policy.LB||(F===void 0?0:F))&&this.loader.Gx(f,D)}; g.d.LR=function(f,D){var F=this.videoTrack.XF.index.Kw(f);if(F>=0){var Z;var I=((Z=D.Bu(F,2))==null?void 0:Z.W2)||"";if(this.policy.J||I)return D.U9(f,F),zv(this.loader,f,f,F),this.Gx("sdai",{cmskpad:1,t:f.toFixed(3),sq:F}),!0}this.Gx("sdai",{cmskpad:0,t:f.toFixed(3),sq:F});return!1};g.d=nCJ.prototype;g.d.OH=function(f,D,F){var Z=f||this.X;this.Gx("clsdai",{setadcfg:f||"misscid",cid:Z,acpn:F,acfglen:(D==null?void 0:D.length)||0});this.Y.has(Z)||(this.Gx("clsdai",{setadcfg:"noentry",cid:Z}),this.Y.set(Z,{event:"unknown",startTimeSecs:0,I$:0,XT:[],AV:Date.now(),dL:-1,AJ:6}));(f=this.Y.get(Z))?D?(f.AJ=6,f.XT.push(F),f.Eu=D):f.AJ=2:this.Gx("clsdai",{setadcfg:"notfound",cid:Z})}; g.d.GO=function(f){var D=f||this.X;this.Gx("clsdai",{rmvadcfg:f||"misscid",lastcid:this.X});(f=this.Y.get(D))?(f.Eu="",f.AJ=4):this.Gx("clsdai",{rmadcfg:"notfound",cid:D})}; g.d.hO=function(f,D,F,Z,I){this.S=D;var p;if(!((((p=f.eX)==null?void 0:p.length)||0)<=0))if(Z){if(this.B=Z,this.Gx("clsdai",{oncldisabled:Z,rn:D}),this.B===3&&I)for(D=g.a(f.eX),F=D.next();!F.done;F=D.next())F=F.value,F.Xd&&F.trackType===2&&gYD(I,PQT(F),F.Ib||0,!0)}else for(I=g.a(f.eX),f=I.next();!f.done;f=I.next()){p=f.value;if(f=p.Xd){f=PQT(p);Z=D;var z=p.Ib||0,H=F;this.Y.has(f.identifier)?(p=this.Y.get(f.identifier),z>p.dL&&(p.startTimeSecs=f.startSecs,p.I$=f.I$,p.event==="predictStart"&&p.AJ=== 5&&f.event!=="predictStart"&&(p.AV=Date.now()),p.event=f.event)):(p={event:f.event,startTimeSecs:f.startSecs,I$:f.I$,XT:[],dL:z,AJ:0},this.Y.set(f.identifier,p),this.G&&this.Gx("clsdai",{newcid:1,cid:f.identifier,evt:f.event,sn:z,rn:Z,st:DFy(p.AJ)}));var K=!1;p.AJ===0&&((H==null?0:H.V7(f))?p.AJ=5:(p.AJ=H?11:3,p.Eu="",K=!0),p.AV=Date.now(),p.dL=z,this.G&&this.Gx("clsdai",{onqpnt:1,cid:f.identifier,evt:f.event,sn:z,rn:Z,st:DFy(p.AJ)}));z>p.dL&&(H==null||H.V7(f),p.dL=z);this.X=f.identifier;this.G&&this.J.add(f.identifier); f=K}f&&(this.T=!0)}}; g.d.U9=function(f,D,F){var Z=f;this.G&&(Z+=F);var I,p="";Z=ffu(this,Z);Z.length>0&&(p=Z[0])&&(I=this.Y.get(p));if(!I||I.Pc){var z;this.Gx("clsdai",{skipadfail:1,cid:p,sn:D,mt:f.toFixed(3),of:F.toFixed(3),skipsq:((z=I)==null?void 0:z.Pc)||-1});return!1}this.Gx("clsdai",{skipadsuc:1,cid:p,sn:D,mt:f.toFixed(3),of:F.toFixed(3)});I.Pc=D;this.J.clear();this.J.add(p);return!0}; g.d.Rw=function(){this.Gx("clsdai",{rstskipad:1});for(var f=g.a(this.Y.values()),D=f.next();!D.done;D=f.next())D.value.Pc=NaN};g.C(jH,g.J);jH.prototype.S7=function(f,D,F){F=F===void 0?{}:F;this.policy.QZ=Ir(f,F,this.G,D===void 0?!1:D)};AE.prototype.qp=function(f,D){var F=Math.pow(this.alpha,f);this.Y=D*(1-F)+F*this.Y;this.J+=f}; AE.prototype.yz=function(){return this.Y/(1-Math.pow(this.alpha,this.J))};V0.prototype.jl=function(f){var D=this;if(this.policy.B6){var F=new Set(f);F.size===this.Tx.size&&[].concat(g.w(F)).every(function(Z){return D.Tx.has(Z)})||(this.loader.Gx("lwnmow",{itagDenylist:[].concat(g.w(f)).join(",")}),this.loader.x6(!!F.size),this.Jb=-1,this.Tx=F,RI(this,this.Y),this.jT=!0)}}; V0.prototype.S7=function(f,D,F){F=F===void 0?{}:F;var Z=this.policy.QZ;this.X.S7(f,D===void 0?!1:D,F);if(Z!==this.policy.QZ){RI(this,this.Y);dY(this);var I,p;Z>this.policy.QZ&&((I=this.B)==null?0:Bi(I.info))&&((p=this.nextVideo)==null||!Bi(p.info))&&(this.Bs=!0)}};var Tv={fU:-1,NW:!1,s3:0};g.C(bT,g.J);bT.prototype.Ey=function(){this.J=Tv;MR(this);g.J.prototype.Ey.call(this)};tE.prototype.XX=function(f){this.timestampOffset=f;this.flush()}; tE.prototype.flush=function(){if(this.Y.pos>0){var f={a:this.track.E6(),u:this.Y.s6(),pd:Math.round(this.G),ad:Math.round(this.B)},D=this.J;if(D){var F=D.XF.info;f.itag=F.itag;F.Y&&(f.xtags=F.Y);f.sq=D.Ws;f.st=D.startTime;f.sd=D.duration;this.track.policy.xL&&(f.si=D.lJ());D.B&&(f.esl=D.Y+D.J);D.HV()&&(f.eos=1)}isNaN(this.timestampOffset)||(f.to=this.timestampOffset);var Z;if(D=(Z=this.track.yL)==null?void 0:Z.a_({})){for(var I in D)this.T[I]!==D[I]&&(f["sb_"+I]=D[I]);this.T=D}this.track.Gx("sbu", f);this.Y.reset();this.buffered=[];this.X=this.B=this.G=0;this.timestampOffset=this.J=void 0}};cn.prototype.dispose=function(){this.KQ=!0}; cn.prototype.MR=function(){return this.KQ}; g.C(Wn,Error);LE.prototype.skip=function(f){this.offset+=f}; LE.prototype.Zq=function(){return this.offset};g.d=rrD.prototype;g.d.oi=function(){return this.J}; g.d.PC=function(){return this.J.length?this.J[this.J.length-1]:null}; g.d.Jl=function(){this.J=[];uT(this);Ed(this)}; g.d.oa=function(f){this.jT=this.J.shift().info;f.info.equals(this.jT)}; g.d.Qe=function(){return g.M2(this.J,function(f){return f.info})}; g.d.E6=function(){return!!this.XF.info.audio}; g.d.isDrm=function(){return!!this.XF.info.Sp}; g.d.getDuration=function(){return this.XF.index.ou()};g.C(Is,b6);g.d=Is.prototype;g.d.onStateChange=function(){this.MR()&&(ny(this.qI,this.formatId),this.Y.dispose())}; g.d.Ke=function(){var f=tYI(this.qI,this.formatId),D;var F=((D=this.qI.Vj.get(this.formatId))==null?void 0:D.bytesReceived)||0;var Z;D=((Z=this.qI.Vj.get(this.formatId))==null?void 0:Z.Ch)||0;return{expected:f,received:F,bytesShifted:D,sliceLength:Yv(this.qI,this.formatId),isAnyMediaEndReceived:this.qI.bb(this.formatId)}}; g.d.CT=function(){return 0}; g.d.Gh=function(){return!0}; g.d.o6=function(){return this.qI.o6(this.formatId)}; g.d.kf=function(){return[]}; g.d.u_=function(){return this.qI.u_(this.formatId)}; g.d.wp=function(){return this.lastError}; g.d.LG=function(){return 0};g.C(x2,g.J);g.d=x2.prototype;g.d.E6=function(){return!!this.XF.info.audio}; g.d.PC=function(){return this.B.PC()}; g.d.oa=function(f){this.B.oa(f);var D;(D=this.S)!=null&&(D.X.add(f.info.Ws),D.Y=yRs(D,D.UI,D.FK,f,D.Y),D.B=f,D.T=(0,g.m5)());this.Eq=Math.max(this.Eq,f.info.XF.info.Eq||0)}; g.d.getDuration=function(){return this.XF.index.ou()}; g.d.Jl=function(){zT(this);this.B.Jl()}; g.d.Vo=function(){return this.B}; g.d.bC=function(f){return this.yL?Pi(this.yL.Ew(),f):!0}; g.d.isRequestPending=function(f){return this.J.length?f===this.J[this.J.length-1].info.tb[0].Ws:!1}; g.d.XX=function(f){var D;(D=this.S)==null||D.XX(f);var F;(F=this.N)==null||F.XX(f)}; g.d.Gx=function(f,D){this.loader.Gx(f,D)}; g.d.UQ=function(){return this.loader.UQ()}; g.d.dispose=function(){var f;(f=this.N)==null||f.flush();g.J.prototype.dispose.call(this)};g.C($M,g.J);$M.prototype.B=function(){this.J++>15||(this.Y=!this.Y,new dOX(this.loader,this.policy,this.lE,this.T3,this.Y),this.delay.start())}; g.d=dOX.prototype;g.d.HY=function(){}; g.d.zS=function(){}; g.d.Ju=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.hs()===this.size)this.loader.Gx("rqs",this.getInfo());else{var f="net.connect";this.xhr.status>200?f="net.badstatus":this.xhr.BY()&&(f="net.closed");this.onError(f)}}; g.d.onError=function(f){var D=this;this.loader.handleError(f,this.getInfo());xq("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(F){D.loader.Gx("pathprobe",F)},function(F){D.loader.handleError(F.errorCode,F.details)})}; g.d.getInfo=function(){var f=this.timing.hc();f.shost=hI(58,this.location.sG);f.pb=this.size;return f};g.C(RH,g.J); RH.prototype.T=function(f,D){if(f.T){this.FF.isLive?(f=this.FF.Ca&&this.FF.G?f.XF.Kl(this.FF.Ca,!1):f.XF.eB(Infinity),f.Zo=this.Zo):f=f.XF.Kl(0,!1);if(this.Jb){var F=this.Jb;f.Zo===0&&(f.X=F.N)}else f.X=this.N;return f}F=f.Y;if(!F.XF.IP())return F.XF.MA()?(f=PN(this.G,f.XF.info.Eq,D.XF.info.Eq,0),f=F.XF.Yi(F,f)):f=F.XF.tq(F),f;var Z=F.X-this.loader.getCurrentTime(),I=!F.range||F.J===0&&F.Y===0?0:F.range.length-(F.Y+F.J),p=F.XF;this.G4(f,Z)&&I===0&&(this.FF.isManifestless?p=f.XF:(p=F.startTime+qyX, F.J&&(p+=F.duration),Hs(f,p),F=f.Y,p=F.XF));p.MA()?(I=this.J,D=PN(this.G,p.info.Eq,D.XF.info.Eq,Z,I.G.length>0&&I.N===0&&this.loader.Yt),Z=oH(f),f=F.XF.Yi(F,D),(D=f.B)&&f.tb.length>1&&(Z||f.T3.B||f.tb[0].XF!==F.XF?f=F.XF.Yi(F,f.tb[0].J):(Z=f.tb[f.tb.length-1],p=Z.J/D,!Z.B&&p<.4&&(f=F.XF.Yi(F,D-Z.J))))):(F.Ws<0&&(D=s$(F),D.pr=""+f.J.length,this.loader.isSeeking()&&(D.sk="1"),D.snss=F.T,this.loader.Gx("nosq",D)),f=p.tq(F));if(this.policy.rY)for(F=g.a(f.tb),D=F.next();!D.done;D=F.next())D.value.type= 6;return f}; RH.prototype.G4=function(f,D){if(!oH(f)||!f.XF.IP())return!1;var F;(F=this.J.jT)||(F=oH(f)&&f.XF.IP()&&f.Y.XF.info.Eq=D)return Z.return();(F=f.Y.get(0))&&XUE(f,F);g.Zb(Z)})}; var eed={fSE:0,YDs:1,oko:2,JyR:3,G1I:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};N5.prototype.decrypt=function(f){var D=this,F,Z,I,p,z,H;return g.l(function(K){switch(K.Y){case 1:if(D.Y.length&&!D.Y[0].isEncrypted)return K.return();D.J=!0;D.kq.Mm("omd_s");F=new Uint8Array(16);z1()?Z=new g.Hj(f):I=new g.q6(f);case 2:if(!D.Y.length||!D.Y[0].isEncrypted){K.ZE(4);break}p=D.Y.shift();if(!Z){z=I.decrypt(yo(p.buffer),F);K.ZE(5);break}return g.r(K,Z.decrypt(yo(p.buffer),F),6);case 6:z=K.J;case 5:H=z;for(var k=0;k=4)){var D=sF(this),F=this.xhr;D.rc=F.status;f&&(D.ab=!0);if(F.rp()){var Z="onesie.net";D.msg=F.rp()}else F.status>=400?Z="onesie.net.badstatus":F.sj()?this.fA||(Z="onesie.response.noplayerresponse"):Z=F.status===204?"onesie.net.nocontent":"onesie.net.connect";Z?this.fail(new g.px(Z,D)):(this.Mm("or_fs"),this.Jz.qt((0,g.m5)(),F.hs(),0),this.uJ(4),this.l_&&this.Gx("rqs",D));this.l_&&this.Gx("ombre","ok."+ +!Z);this.xr=!1;pt(this); IZ(this.kq);if(!this.Ku){this.r4.stop();var I;(I=this.LD)==null||I.stop()}var p;if(f=(p=this.Uc)==null?void 0:ODy(p))for(p=0;p1E3){var f;(f=this.Jz)==null||f.CD((0,g.m5)());f=sF(this);if(this.V.Oq()&&this.xhr instanceof Mr){var D=this.xhr;f.xrs=D.xhr.readyState;f.xpb=D.Y.totalLength;f.xdc=D.G}this.fail(new g.px("net.timeout",f))}}else(0,g.m5)()-this.Jz.Y>1E4&&((D=this.Jz)==null||D.CD((0,g.m5)()),this.Sa());this.isComplete()||this.DI.start()}}; g.d.Sa=function(){this.xr=!1;if(!pt(this)){var f=sF(this);f.timeout="1";this.fail(new g.px("onesie.request",f))}}; g.d.fail=function(f){var D=this;f=s_(f);this.rq?this.Yo.xn(f):(this.sD.reject(f),this.rq=!0);IZ(this.kq);this.Ku||this.r4.stop();this.Mm("or_fe");var F,Z;(F=this.Uc)==null||(Z=ODy(F))==null||Z.forEach(function(I){D.Gx("pathprobe",I)}); this.uJ(5);this.dispose()}; g.d.isComplete=function(){return this.state>=3}; g.d.HU=function(){return this.state===4}; g.d.hw=function(f){var D,F;return this.isComplete()||!!((D=this.X6)==null?0:(F=D.get(f))==null?0:F.Y)}; g.d.RV=function(){return!1}; g.d.lO=function(){return this.state===5}; g.d.notifySubscribers=function(f){for(var D=0;D102400&&!this.PU&&(this.Mm("or100k"),this.PU=!0);if(f.au()){var D=f.Cd(),F=D.totalLength;this.l_&&this.Gx("ombrss","len."+F);this.wy.feed(D)}if(this.X6)for(var Z=g.a(this.X6.keys()),I=Z.next();!I.done;I=Z.next()){var p=I.value;f=void 0;(f=this.X6.get(p))==null||f.Be();this.notifySubscribers(p)}}catch(z){this.fail(z)}}; g.d.RN=function(){return this.Jz.requestNumber}; g.d.vJ=function(f){return this.k$.get(f)}; g.d.YO=function(){return!1}; g.d.bV=function(){return"ONESIE"};g.C(HQ,g.J);g.d=HQ.prototype; g.d.UV=function(f){var D=gD(this.loader)&&f&&f.fU!==void 0&&!f.NW?f.fU*1E3+(this.loader.R_()||0):oZ(this);if(this.policy.Gm){var F=this.Tx;var Z=this.rY}else F=is(this,this.audioTrack),Z=is(this,this.videoTrack);var I=[].concat(g.w(F.UI),g.w(Z.UI));Kt(this)&&I.push.apply(I,g.w(this.X));var p=[].concat(g.w(F.F3),g.w(Z.F3)),z=this.loader.YE();if(this.policy.PW&&!this.videoData.isLivePlayback){var H=this.videoData.lengthSeconds*1E3;D>=H&&this.loader.Gx("invalidSabrCmt",{cmt:D,vd:H})}var K,k;H=this.lE; var h=this.Yo,y=this.FF,A=this.B,V=this.videoData.Ir,R=this.policy,m=this.loader.D2,b=MWJ(this.loader)*1E3,U=(K=this.jT)==null?void 0:K.E2;K=(k=this.jT)==null?void 0:k.Wh;var S;k=Number((S=this.J.G)==null?void 0:S.info.itag)||0;var G;S=Number((G=this.J.X)==null?void 0:G.info.itag)||0;G=this.yN;var W=this.Yo.Nr();var u=(f==null?0:f.s3)?f.s3:this.loader.isSuspended?4:void 0;D={lE:H,Yo:h,FF:y,UI:I,F3:p,Yl:D,nextRequestPolicy:A,Lb:V,Xr:R,LV:m,jI:b,E2:U,Wh:K,yN:G,DbT:k,Sqd:S,TF:z,Ix:W,s3:u};I=this.loader.uM(); p=G0(I);I&&(D.Ov=p);if(f=gD(this.loader)&&(f==null?0:f.NW)?f.fU:this.Yo.wF())D.w3=f*1E3;var E;f=this.J;I=f.KQ;if(((E=f.Xr)==null?0:ES(E))&&!I)for(E=g.a(f.B),p=E.next();!p.done;p=E.next())if(p.value.dw){I=!0;break}E=ES(f.Xr)&&!I?[]:UOI(f,f.B);D.CL=E;E=this.J;ES(E.Xr)&&!E.xo?E=[]:(f=WbD(E),f.length===0&&(f=E.T),E=UOI(E,f));D.l9=E;D.z_=Kt(this)?[this.T]:void 0;D.i7=Array.from(hE(this.J.Y).keys(),Number);this.policy.IB&&(D.RR=Igs(this.loader,this.audioTrack),D.wL=Igs(this.loader,this.videoTrack));E=this.loader.getCurrentTime(); F=jE(this,F.UI,E);Z=jE(this,Z.UI,E);this.Ir=Z=Math.min(F,Z);if(this.policy.J&&(Kt(this)&&(F=jE(this,this.X,E),this.Yo.Oq()&&F=p.PT?p.UU:void 0,I={Pr:f?PeD(F,f):[],adsConfig:I,Jq:p},E={gvprpro:"v",mt:E.toFixed(3), acpns:((Ds=I.Pr)==null?void 0:Ds.join("_"))||"none",abid:f},F.k8(E),Ds=I):(F.k8({gvprp:"ncp",mt:E}),Ds=null)}Ds&&(D.BR=Ds)}if(this.policy.T){var Fu;Ds=((Fu=this.videoData.J)==null?void 0:Fu.containerType)||0;Fu=this.videoData.S3[Ds];F=this.loader.isSeeking()&&!this.loader.BO?Z+this.loader.R_():NaN;if((Ds=this.N)==null)Fu=void 0;else if(Ds.B!==0){Ds.Gx("clsdai",{gssinfodisabled:Ds.B});Fu=7;switch(Ds.B){case 1:Fu=7;break;case 2:Fu=9;break;case 3:Fu=10;break;default:Ds.Gx("clsdai",{unknowndisr:Ds.B})}Fu= [{AJ:Fu}]}else{Z=[];if(!isNaN(F))if(E=ffu(Ds,F),f=Ds.S+1,E.length>0)for(Ds.Gx("clsdai",{updcids:1,mt:F.toFixed(3),cid:E.join(","),rn:f}),Ds.J.clear(),F=g.a(E),E=F.next();!E.done;E=F.next())Ds.J.add(E.value);else Ds.N&&(Ds.Gx("clsdai",{updcids:0,mt:F.toFixed(3),rn:f}),Ds.J.clear());F=g.a(Ds.J);for(f=F.next();!f.done;f=F.next()){E=Ds;if(f=f.value){E=E.Y.get(f);f={cuepointId:f};if(E==null?0:E.Eu)f.adsConfig=G0(E.Eu)||void 0;if(E==null?0:E.XT)f.Pr=E.XT;if(E==null?0:E.Pc)f.Jq=E.Pc;Fu&&(f.Fj=gl(Fu.split(";")[0]), f.NB=Fu.split(";")[1]||"");f.AJ=(E==null?void 0:E.AJ)||0;E=f}else E=void 0;E&&Z.push(E)}Fu=Z}D.cW=Fu;(Fu=this.N)!=null&&(Fu.J.clear(),Fu.B=0,Fu.T=!1)}this.policy.Bs&&this.Y.length>0&&this.Y[0].TE()&&(D.OZ=this.Y[0].s_());return D}; g.d.iz=function(f,D){this.S=void 0;GZy(this);a_X(this,f,D)}; g.d.JF=function(f){if(this.Y.length===0)return!1;var D=this.Y[0];return D instanceof qp?f===this.loader.getCurrentTime()*1E3:!(D instanceof DC&&Bq(D.info))&&Math.abs(D.yH()-f)<50}; g.d.Na=function(f,D){this.B=f;this.policy.J&&!f.playbackCookie&&this.loader.Gx("sbrnocookie",{rn:D!=null?D:-1});var F;if(this.policy.zFb&&((F=this.N)==null?0:F.T)){var Z;this.loader.Gx("clsdai",{ignbckoff:D!=null?D:-1,backoff:(Z=f.backoffTimeMs)!=null?Z:-1})}else this.S=(0,g.m5)()+(f.backoffTimeMs||0)}; g.d.Cv=function(f,D){if(f.action===void 0){var F=this.Yo.wF();F!==void 0&&this.loader.j4(F)}else if(f.action!==0||!this.Ps)if(f.action===0&&this.policy.qF&&(f.action=2),f.TM==="sabr.malformed_config"&&this.b3++<3)this.loader.handleError("sabr.malformed_config",{action:f.action,rn:D,retry:this.b3},0);else switch(F={},F.reason=f.TM,F.action=f.action,F.rn=D,f.action){case 1:this.policy.J&&this.D5&&S1(this.D5,void 0,void 0,F);break;case 0:this.Ps=!0;this.videoData.nE()&&this.policy.J&&this.D5&&S1(this.D5, void 0,void 0,F,!1);this.loader.BJ(F);break;case 2:bjT(f.TM)!=="sabr.config"&&delete F.reason;this.loader.handleError(bjT(f.TM),F,1);break;case 3:this.policy.gw&&((f=this.FF.Jb)!=null&&(f.N=!0),this.loader.handleError("sabr.hostfallback",F))}}; g.d.VW=function(f){f&&(this.loader.Gx("sabrctxt",{onsbrctxt:f.type,scp:f.scope,dflt:f.sendByDefault}),f.type&&f.sendByDefault&&this.videoData.Ir.add(f.type),f.scope!==2&&(f.type&&this.videoData.sabrContextUpdates.set(f.type,f),this.Yo.VW(f)))}; g.d.ZA=function(){}; g.d.g3=function(f,D){if(this.loader.BO)this.loader.Gx("sdai",{ignSabrSeek:1,smt:f==null?void 0:f.L6,rn:D});else if(f.L6!==void 0&&f.sZ){D=f.L6/f.sZ;this.audioTrack.T=!1;this.videoTrack.T=!1;if(this.policy.xo||this.policy.gM||this.policy.kT)this.loader.F6.Y=!1;if(this.Yo.getCurrentTime()!==D){var F={pF:"sabr_seek",zg:!0,u7:!0};f.seekSource&&(F.seekSource=f.seekSource);kv(this.loader,D+.1,F)}}}; g.d.onSnackbarMessage=function(f){this.Yo.publish("onSnackbarMessage",f)}; g.d.hO=function(f,D){this.policy.T&&this.loader.hO(f,D)}; g.d.Fn=function(f){f.KS&&f.fI&&YC(this.FF,f.KS,f.fI);this.policy.KP&&(f.Lr&&f.V4&&(this.FF.ZC=f.Lr/f.V4),f.D9&&f.rT&&(this.FF.OL=f.D9/f.rT));EW(this.videoData)&&!this.videoData.Al&&f.fI&&this.loader.py(f.fI,1E3);f.pV!=null&&this.Yo.Y6(f.pV);f.Wd&&(f=((0,g.m5)()-f.Wd)/1E3,this.loader.pP.qp(1,f))}; g.d.yW=function(f){this.loader.yW(f)}; g.d.kR=function(f){this.loader.kR(f)}; g.d.iH=function(f){this.loader.iH(f)}; g.d.gq=function(f){return this.videoData.Ir.has(f)}; g.d.Tb=function(f,D,F){this.policy.B&&this.loader.Gx("sabrctxtplc",{start:f?f.join("_"):"",stop:D?D.join("_"):"",discard:F?F.join("_"):""});if(f){f=g.a(f);for(var Z=f.next();!Z.done;Z=f.next())this.videoData.Ir.add(Z.value)}if(D)for(D=g.a(D),f=D.next();!f.done;f=D.next())f=f.value,this.videoData.Ir.has(f)&&this.videoData.Ir.delete(f);if(F)for(F=g.a(F),D=F.next();!D.done;D=F.next())if(D=D.value,this.videoData.sabrContextUpdates.has(D)&&this.videoData.sabrContextUpdates.delete(D),this.policy.Bs&&this.Y.length)for(f= g.a(this.Y),Z=f.next();!Z.done;Z=f.next())if(Z=Z.value,!(Z instanceof qp)){var I=void 0;((I=Z.bx)==null?void 0:I.type)===D&&(Z.bx=void 0)}}; g.d.S9=function(){}; g.d.By=function(f){this.T=f}; g.d.El=function(f){this.X=f}; g.d.zb=function(f,D){Al(this.policy,f,4,D)}; g.d.CC=function(f){if(f==null?0:f.mq)if(f=f.mq.fT){f=g.a(f);for(var D=f.next();!D.done;D=f.next())if(D=D.value,D.formatId){var F=this.FF.B.get(XV(D.formatId));F&&F.info&&(F.info.debugInfo=D.debugInfo)}}}; g.d.hY=function(f){this.LQ=!0;this.Yo.publish("reloadplayer",f)}; g.d.Ww=function(){return this.Yo.Ww()||""}; g.d.gD=function(){var f=WjD(this);return Math.min(f.MY,f.iR)}; g.d.k8=function(f,D){this.loader.Gx(f,D)}; g.d.ai=function(f){xVI(this.loader,K0T(this.G3,f))}; g.d.AD=function(f,D){this.videoData.AD(f,D)}; g.d.M4=function(f){this.Yo.M4(f)}; g.d.VD=function(){this.loader.VD()}; g.d.dH=function(){this.loader.dH()}; g.d.Ey=function(){g.J.prototype.Ey.call(this);this.B=void 0;a_X(this,!0,"i");this.Y=[]};Bfc.prototype.getCurrentTime=function(){return this.Yo.getCurrentTime()-this.Yo.R_()}; V2.prototype.N=function(f){tJ(f.state)&&$i(this.X)}; V2.prototype.clear=function(){E7d(this.X);this.J.clear();this.Y.clear();this.T=NaN;this.S=!1}; V2.prototype.lj=function(){this.isSeeking=!0;E7d(this.X);this.S=!1;this.T=NaN;this.G=this.f4};dD.prototype.cD=function(f,D){if(this.G)return YWd(this,D);if(D=jd(f)){var F=D.Y;F&&F.B&&F.Y&&(f=f.J.length?f.J[0]:null)&&f.state>=2&&!f.lO()&&f.info.Zo===0&&(this.G=f,this.S=F,this.J=D.info,this.T=this.startTimeSecs=Date.now()/1E3,this.X=this.J.startTime)}return NaN}; dD.prototype.clear=function(){this.J=this.S=this.G=null;this.Y=this.X=this.T=this.startTimeSecs=NaN;this.B=!1};g.C(Ct,g.J);Ct.prototype.Ey=function(){FSc(this);g.J.prototype.Ey.call(this)};var ZNu=/[?&]cpn=/;g.C(bs,g.J);bs.prototype.flush=function(){var f={};this.J&&(f.pe=this.J);this.Y.length>0&&(f.pt=this.Y.join("."));this.Y=[];return f}; bs.prototype.stop=function(){var f=this,D,F,Z;return g.l(function(I){if(I.Y==1)return g.po(I,2),g.r(I,(D=f.G)==null?void 0:D.stop(),4);if(I.Y!=2)return(F=I.J)&&f.logTrace(F),g.qC(I,0);Z=g.He(I);f.J=skJ(Z.message);g.Zb(I)})}; bs.prototype.logTrace=function(f){this.encoder.reset();this.encoder.add(1);var D=Array.from(f.resources),F=Array.from(f.frames),Z=Array.from(f.stacks);f=Array.from(f.samples);this.encoder.add(D.length);D=g.a(D);for(var I=D.next();!I.done;I=D.next()){I=I.value.replace("https://www.youtube.com/s/","");this.encoder.add(I.length);for(var p=0;p=0?f:g.aZ(this.provider),this.xo?fMb.has(this.R$)&&(this.Y.size||(this.R$==="PL"?f>=this.J+30:f<=this.Bs+30||f>=this.J+1200&&f<=this.Bs+86400))&&(g.SE(this,f,"vps",[this.R$]),this.J=f):["PL","B","S"].indexOf(this.R$)>-1&&(this.Y.size||f>=this.J+30)&&(g.SE(this,f,"vps",[this.R$]),this.J=f),this.Y.size)){this.sequenceNumber===7E3&&g.UT(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){wD(this,f);var D=this.provider.Yo.rD(); D=g.a(D);for(var F=D.next();!F.done;F=D.next())F=F.value,this.Gx(F.key,F.value);D=f;F=this.provider.Yo.A1();var Z=F.droppedVideoFrames||0,I=F.totalVideoFrames||0,p=Z-this.MS,z=I&&!this.D_;Z>F.totalVideoFrames||p>5E3?tKD(this,"html5.badframedropcount","df."+Z+";tf."+F.totalVideoFrames):(p>0||z)&&g.SE(this,D,"df",[p]);this.MS=Z;this.D_=I;this.N>0&&(g.SE(this,f,"glf",[this.N]),this.N=0);Do.isActive()&&(f=Do.KT(),Object.keys(f).length>0&&this.Gx("profile",f));this.Uq&&BQ(this,"lwnmow");this.provider.V.Oq()&& this.provider.Z("html5_record_now")&&this.Gx("now",{wt:(0,g.m5)()});f={};this.provider.videoData.J&&(f.fmt=this.provider.videoData.J.itag,(D=this.provider.videoData.G)&&D.itag!==f.fmt&&(f.afmt=D.itag));f.cpn=this.provider.videoData.clientPlaybackNonce;var H;((H=this.EY)==null?0:H.length)?f.adcpn=this.EY.join(","):this.adCpn&&(f.adcpn=this.adCpn);var K;((K=this.fh)==null?0:K.length)?f.addocid=this.fh.join(","):this.xi.length&&(f.addocid=this.xi);K=this.provider.videoData;H=K.nE();K=K.latencyClass; (this.provider.V.ww().Y.Kp(oc0)&&H&&K==="NORMAL"||this.provider.V.ww().Y.Kp(HfX)&&H&&K==="LOW"||this.provider.V.ww().Y.Kp(qJn)&&this.provider.videoData.isDaiEnabled()&&Ro(this.provider.videoData))&&(f.adc=1);this.provider.videoData.cotn&&(f.cotn=this.provider.videoData.cotn);f.el=X2(this.provider.videoData);f.content_v=nT(this.provider.videoData);f.ns=this.provider.V.Bs;f.fexp=HiJ(this.provider.V.experiments).toString();f.cl=(842839980).toString();H=this.provider.videoData.adFormat||this.adFormat; var k;((k=this.SX)==null?0:k.length)?f.adformat=this.SX.join(","):H&&(f.adformat=H);(k=wf(this.provider.videoData))&&(f.live=k);this.provider.videoData.S$()&&(f.drm=1,this.provider.videoData.X&&(f.drm_system=l0L[this.provider.videoData.X.flavor]||0),this.provider.videoData.drmProduct&&(f.drm_product=this.provider.videoData.drmProduct));og()&&this.provider.videoData.T&&(f.ctt=this.provider.videoData.T,f.cttype=this.provider.videoData.Ht,this.provider.videoData.mdxEnvironment&&(f.mdx_environment=this.provider.videoData.mdxEnvironment)); this.provider.videoData.isDaiEnabled()?(f.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Nc&&(f.dai_fallback="1"),Ro(this.provider.videoData)&&(f.dai="mv")):this.provider.videoData.kG?f.dai="cs":this.provider.videoData.jJ&&(f.dai="disabled");f.seq=this.sequenceNumber++;if(this.provider.videoData.Lg){if(k=this.provider.videoData.Lg,f&&k)for(k.ns==="3pp"&&(f.ns="3pp"),this.Gi.has(k.ns)&&BQ(this,"hbps"),k.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= k.shbpslc),H=g.a(Object.keys(k)),K=H.next();!K.done;K=H.next())K=K.value,this.vI.has(K)||(f[K]=k[K])}else f.event="streamingstats",f.docid=this.provider.videoData.videoId,f.ei=this.provider.videoData.eventId;this.isEmbargoed&&(f.embargoed="1");Object.assign(f,this.provider.V.Y);(k=f.seq)&&!this.provider.V.experiments.ww().Y.Kp(jdX)&&(H=mVE(this,+k),H=g.gX(H,GuD),H=g.B9(H,4),this.Y.set("qclc",[H]));f=g.tL("//"+this.provider.V.lC+"/api/stats/qoe",f);K=H="";D=g.a(this.Y.entries());for(F=D.next();!F.done;F= D.next())Z=g.a(F.value),F=Z.next().value,Z=Z.next().value,I=void 0,(I=Z)!=null&&I.join&&(F="&"+F+"="+Z.join(","),F.length>100?K+=F:H+=F);this.provider.V.experiments.ww().Y.Kp(jdX)&&(k=mVE(this,+(k||0)),k.qoePingUrl=f+H+K,g.ha("qoeClientLoggingContext",k),H+="&dl=1");TWc(this,f+H,K.replace(/ /g,"%20"))}this.Y.clear()}}; g.d.x6=function(f){this.Uq=f}; g.d.YB=function(){if(this.provider.videoData.X){var f=this.provider.videoData.X;BQ(this,"eme-"+(f.keySystemAccess?"final":sp(f)?"ms":or(f)?"ytfp":HL(f)?"safarifp":"nonfinal"))}}; g.d.j8=wT(49);g.d.Bn=function(f){this.isEmbargoed=f}; g.d.rB=wT(26);g.d.RA=wT(32);g.d.onPlaybackRateChange=function(f){var D=g.aZ(this.provider);f&&f!==this.qb&&(g.SE(this,D,"rate",[f]),this.qb=f);this.xo||this.reportStats(D)}; g.d.Xy=wT(20);g.d.getPlayerState=function(f){if(g.O(f,128))return"ER";if(g.O(f,2048))return"B";if(g.O(f,512))return"SU";if(g.O(f,16)||g.O(f,32))return"S";if(f.isOrWillBePlaying()&&g.O(f,64))return"B";var D=D7C[Sq(f)];g.hm(this.provider.V)&&D==="B"&&this.provider.Yo.getVisibilityState()===3&&(D="SU");D==="B"&&g.O(f,4)&&(D="PB");return D}; g.d.JH=function(f,D){var F=g.aZ(this.provider);g.SE(this,F,"vfi",[f==="A"?"":""+(D!=null?D:0),f])}; g.d.Ey=function(){g.J.prototype.Ey.call(this);g.Rg(this.KQ);g.Rg(this.Wk)}; g.d.AY=function(f){this.isOffline=f;g.SE(this,g.aZ(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.d.Gx=function(f,D,F){var Z=this.WI.indexOf(f)!==-1;Z||this.WI.push(f);if(!F||!Z){D=typeof D!=="string"?Ip(D):D;D=SzD(D);if(!F&&!/^t[.]/.test(D)){var I=g.aZ(this.provider)*1E3;D="t."+I.toFixed()+";"+D}UF(this,"ctmp",f+":"+D);WQ(this);return I}}; g.d.Y9=function(f,D,F){this.X={Fo3:Number(this.Gx("glrem",{nst:f.toFixed(),rem:D.toFixed(),ca:+F})),vM:f,Xly:D,isAd:F}}; g.d.jk=function(f,D,F){g.SE(this,g.aZ(this.provider),"ad_playback",[f,D,F])}; g.d.tX=function(f,D){var F=g.aZ(this.provider)*1E3;UF(this,"daism","t."+F.toFixed(0)+";smw."+(f*1E3).toFixed(0)+";smo."+(D*1E3).toFixed(0))}; g.d.resume=function(){var f=this;isNaN(this.KQ)?bNu(this):this.KQ=g.$o(function(){f.reportStats()},1E4)}; var $w={},D7C=($w[5]="N",$w[-1]="N",$w[3]="B",$w[0]="EN",$w[2]="PA",$w[1]="PL",$w[-1E3]="ER",$w[1E3]="N",$w),fMb=new Set(["PL","B","S"]),tj=[];g.C(us,g.J);g.d=us.prototype;g.d.initialize=function(f,D,F){f=f||0;this.policy.Y||(D=jrc(this.Y),e0d(this.Yo,new k2(D.video,D.reason)),this.Yo.oM(new k2(D.audio,D.reason)));this.policy.Y&&mT(this);this.FF.isManifestless&&SnX(this.T);this.N&&Xtu(this.N,this.videoTrack.XF);D=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Z=!this.FF.isManifestless;this.policy.XP&&(Z=Z||this.FF.rU);if(!this.policy.Ir||this.policy.AN)this.currentTime=Z?f:D;this.policy.xo&&this.seek(this.getCurrentTime(),{}).U3(function(){}); if(this.policy.Y){var I;((I=this.G)==null?0:dEc(I,this.Ww()||""))&&rOu(this)&&BWX(this,this.videoTrack)&&BWX(this,this.audioTrack)&&(wta(this.J,this.G),this.policy.X&&wvu(this))}else this.Bs&&(LSs(this,this.videoTrack),LSs(this,this.audioTrack),MYD(this.Bs),delete this.Bs);F?(Euf(this,!1),g.XE(this.i6)):(f=this.getCurrentTime()===0,Tm(this.T,this.videoTrack,this.videoTrack.XF,f),Tm(this.T,this.audioTrack,this.audioTrack.XF,f),this.policy.Y&&mEJ(this.J,{s3:1}),this.policy.xo||this.seek(this.getCurrentTime(), {}).U3(function(){}),this.timing.tick("gv")); (this.FF.Ca||this.FF.hJ||this.FF.O3||this.FF.DF||this.FF.vC)&&this.Yo.e9(this.FF)}; g.d.resume=function(){if(this.isSuspended||this.Yt){this.cF=this.Yt=this.isSuspended=!1;try{this.cD()}catch(f){g.SJ(f)}}}; g.d.s2=function(){return!this.policy.Zx}; g.d.NZ=function(f,D){f=f===void 0?!1:f;D=D===void 0?!1:D;NWu(this);this.Yo.W_()&&(this.S=NaN);f?(this.policy.jT&&this.Gx("loader",{setsmb:1}),this.policy.rY=!0,this.Jl()):(Euf(this,!1),D||this.Jl())}; g.d.setAudioTrack=function(f,D,F){F=F===void 0?!1:F;if(!this.MR()){var Z=!isNaN(D);F&&Z&&(this.audioTrack.Bs=Date.now(),this.policy.qz&&(this.eT=!0));F=this.Yo.W_()&&!this.Yo.getVideoData().N;if(this.policy.Y){var I=this.X.wW(f.id,Z);this.Yo.oM(I)}else I=this.Y,I.J=I.FF.Y[f.id],I.S=I.J,I=new KE(I.S,I.B,Z?"t":"m"),this.Yo.oM(new k2(I.audio,I.reason));Z?(this.Uq=Date.now(),Z=this.audioTrack.XF.index.Kw(D),this.Gx("setAudio",{id:f.id,cmt:D,sq:Z}),Z>=0&&(f=this.policy.y0?Z+1:Z,this.policy.Y&&this.iz(!0, "mosaic"),zm(this.audioTrack,f,NaN,NaN),!this.policy.Fd&&this.FF.isLive&&nh(this.FF,f,!1))):F||this.Yo.EU()}}; g.d.setPlaybackRate=function(f){f!==this.Jb.getPlaybackRate()&&this.Jb.setPlaybackRate(f)}; g.d.He=function(f){var D=this.J.T;this.J.By(f);this.Gx("scfidc",{curr:XV(D),"new":XV(f)});f&&XV(f)!==XV(D)&&(this.iz(!0,"caption change"),this.cD())}; g.d.wZ=function(f){this.J.El(f)}; g.d.WH=function(f){f.Y.info.E6()?this.Yo.oM(f):e0d(this.Yo,f)}; g.d.ai=function(f){IA(f.tb[f.tb.length-1])&&xVI(this,K0T(this.Y,f.tb[0].XF))}; g.d.uM=function(){return this.Yo.uM()}; g.d.YE=function(){return this.Yo.YE()}; g.d.iH=function(f){this.Yo.j().Oq()&&this.Gx("sps",{status:f.bz||""});if(f.bz===1)this.mf=0;else if(f.bz===2||f.bz===3){var D=!1;if(f.bz===3){var F;this.Xt=(F=f.fob)!=null?F:Infinity;this.mf+=1;(D=tl(this))&&this.SI(!0)}this.Yo.R3(!0,D)}}; g.d.Y7=function(){return this.Yo.Y7()}; g.d.gB=function(){return this.Yo.gB()}; g.d.H5=function(f){this.Yo.H5(f)}; g.d.iKT=function(){var f,D=(f=this.Yo.ac())==null?void 0:f.getCurrentTime();D?this.Yo.Gx("rms",{cta:D}):g.XE(this.BI)}; g.d.cD=function(){gud(this);if(this.gY&&kP(this.gY)&&!this.gY.S8()&&(!this.policy.Ir||isFinite(this.getCurrentTime()))){var f=Od(this.videoTrack);f=this.policy.xp&&f&&f.HV();this.FF.isManifestless&&this.FF.G&&eY(this.FF)?(this.S=eY(this.FF),this.gY.Oe(this.S)):PT(this.FF)&&!f?(f=this.policy.NV?Np(this)-this.timestampOffset:this.getCurrentTime(),isNaN(this.S)?(this.S=f+3600,this.gY.Oe(this.S)):this.S<=f+1800&&(this.S=Math.max(this.S+1800,f+3600),this.gY.Oe(this.S))):this.gY.isView||(f=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.S)||this.S!==f)&&f>0&&(this.gY.Oe(f),this.S=f))}if(!this.MR())if(gq(this.FF)&&this.FF.lO()){var D=this.FF;this.handleError("manifest.net.retryexhausted",D.eT?{rc:D.Qz}:{rc:D.Qz.toString()},1)}else if(this.policy.Y)a:{try{if(gD(this)&&this.ye){var F=this.J,Z=this.ye,I=Z.Y;if(I){var p=F.Yo.wF(),z=!0;p||(p=F.loader.getCurrentTime(),z=!1);D=p;var H=z?F.Yo.N9(D):D;if(F.loader.bC(H))var K=!1;else{var k={t:D.toFixed(3),isUtc:z};c:{var h=F.Yo.Ww();if(h){for(var y= g.a([F.audioTrack,F.videoTrack]),A=y.next();!A.done;A=y.next()){var V=nH(A.value.XF,F.FF.jj);p=void 0;var R=((p=I)==null?void 0:p.Qe(V,h))||[];if(R.length===0||!lJc(new HT(R),H)){var m=!1;break c}}m=!0}else m=!1}if(m)F.loader.Gx("prebuffer",Object.assign(k,{inrange:1})),K=!0;else{if(Bq(I.info)){var b;if(b=z){var U,S;b=(((U=I.info.Y)==null?void 0:(S=U.w$)==null?void 0:S.w3)||0)===D*1E3}var G=b}else G=!z&&Wq(I.info)===D*1E3;G?(F.loader.Gx("prebuffer",Object.assign(k,{match:1})),K=!0):K=!1}}if(K){F.Yo.Mm("ismp_c"); F.Y.push(I);var W;(W=F.zx)==null||VA(W,I.info.T3);I.Zy();MR(Z,!1)}}}y2(this.J);this.FF.isManifestless&&this.policy.X&&os(this.F6);var u;((u=this.gY)==null?0:i0(u))&&this.ll();mEJ(this.J);if(gD(this)&&this.ye){var E=this.J,Ds=this.ye,Fu=Ds.J.fU;if(Fu!==void 0&&Fu>=0){E.Yo.Mm("ismp_a");var Zs=Ds.J;var za=Zs.fU;if(za===void 0)var ju=!1;else{var Id=Zs.NW?E.Yo.N9(za):za,QX;if(QX=!E.loader.bC(Id)&&Mbu(E,E.eT)){var Yc=E.Yo.getCurrentTime()*1E3,s0=tbD(E,Yc),ly=s0.kc;QX=s0.DD>=7E3&&ly>=7E3}ju=QX}if(ju){var OJ= Cjc(E,Zs);E.policy.TK>0&&E.eT.Ky++;OJ&&(Ds.Y!==OJ&&(dFX(Ds),Ds.Y=OJ,Ds.J=Tv),E.Yo.Mm("ismp_rc"))}}}}catch(WD){g.UT(WD);D=WD;if(D.message.includes("changeType")){this.Gx("ctype",{exp:D.name,msg:D.message,s:D.stack});break a}this.handleError("fmt.unplayable",{exp:D.name,msg:D.message,s:D.stack,trg:"sabrslicerqt"},1)}zfI(this);g.XE(this.LQ)}else if(!this.FF.J||!o3a(this.videoTrack)&&!o3a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Uq?F=!1:(this.Jl(),this.Yo.seekTo(Infinity, {pF:"checkLoaderTracksSync",py:!0}),F=!0),!F){gud(this);this.FF.isManifestless&&(KbJ(this.videoTrack),KbJ(this.audioTrack),os(this.F6),(F=jd(this.videoTrack))&&F.Y&&(F=F.Y.B&&!this.policy.ML,this.Gx(F===this.policy.N.jA?"strm":"strmbug",{strm:F,sfmp4:this.policy.N.jA,dfs:this.policy.ML},!0)));if(this.gY)this.ll();else if(this.policy.G){F=!1;if(this.policy.AG)for(Z=g.a([this.videoTrack,this.audioTrack]),I=Z.next();!I.done;I=Z.next()){K=I.value;for(I=jd(K);I&&K.PC()!==Od(K);I=jd(K))K.oa(I);F=F||!!I}else(D= jd(this.videoTrack))&&this.videoTrack.oa(D),(z=jd(this.audioTrack))&&this.audioTrack.oa(z);F$(this.videoTrack)&&F$(this.audioTrack)||(D||z||F)&&hj(this)}lUT(this);Tm(this.T,this.videoTrack,this.videoTrack.XF,!1);Tm(this.T,this.audioTrack,this.audioTrack.XF,!1);if(!this.policy.tG&&(D=this.videoTrack,Z=this.audioTrack,(!this.gY||kP(this.gY)&&!this.policy.UP)&&!this.F6.isSeeking()&&(this.policy.Y||oH(D)&&D.XF.IP()&&this.Y.Bs)))a:{if(z=this.getCurrentTime(),F=this.Jb,Z=PN(F,D.XF.info.Eq,Z.XF.info.Eq, 0),I=Oy(F.lE)+Z/Yq(F.lE),z+=Math.max(I,I+F.policy.Os-Z/D.XF.info.Eq),D.J.length){if(D.J[0].info.tb[0].startTime<=z)break a;zT(D)}F=D.B;for(Z=F.J.length-1;Z>=0;Z--)F.J[Z].info.startTime>z&&F.J.pop();zey(D);D.Y&&z5&&k.Jb.shift();D=D.Ws;var h;if((h=this.Yo.getVideoData())==null?0:h.enableServerStitchedDai)h=hed(this.audioTrack,D),F=hed(this.videoTrack,D),h!==0&&F!==0&&h!==F&&this.handleError("ssdai.avsync", {sq:D,a:h,v:F},0)}}}; g.d.jN=function(f,D,F,Z){f.info.video&&this.B.jN(D,F,Z)}; g.d.jl=function(f){this.Y.jl(f)}; g.d.G5=function(){return this.D5}; g.d.SS=function(){return this.videoTrack.T||this.audioTrack.T}; g.d.seek=function(f,D){if(this.MR())return Sy();if(this.SS())return Sy("seeking to head");if(this.policy.xo&&!isFinite(f))return mud(this.F6),g.ts(Infinity);gud(this);iaT(this,f,!1,D.seekSource);mT(this);this.policy.Y||lUT(this,f);this.gY&&this.gY.Y&&this.gY.J&&!this.Yo.getVideoData().EF&&(this.gY.Y.isLocked()||this.gY.J.isLocked())&&this.Yo.EU({reattachOnLockedBuffer:1,vsb:""+this.gY.J.isLocked(),asb:""+this.gY.Y.isLocked()});var F=this.getCurrentTime(),Z=this.F6.seek(f,D);if(!this.policy.Ir||this.policy.AN)this.currentTime= Z;oI(this.B,f,F,this.policy.Z3&&!D.zg);hj(this);return g.ts(Z)}; g.d.JF=function(f){return this.policy.Y&&this.J.JF(f)}; g.d.gq=function(f){return this.J.gq(f)}; g.d.iz=function(f,D){this.J.iz(f,D)}; g.d.getCurrentTime=function(){if(this.policy.Ir){var f=this.R_()||0;return this.Yo.getCurrentTime(!0)-f}return this.currentTime}; g.d.dD=function(){return this.audioTrack.XF.info}; g.d.GX=function(){return this.videoTrack.XF.info}; g.d.H7=function(){return this.audioTrack.XF.info.qR}; g.d.AR=function(){return this.videoTrack.XF.info.qR}; g.d.Ey=function(){try{this.NZ(),zT(this.audioTrack),zT(this.videoTrack),KR(this.audioTrack),KR(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.J.prototype.Ey.call(this)}catch(f){g.SJ(f)}}; g.d.handleError=function(f,D,F){F=F===void 0?0:F;var Z=zI(F);f==="fmt.unplayable"&&this.FF.isLive&&(this.policy.M0=!1,O$(this.FF));D=new g.px(f,D,F);g.ve(this);Ip(D.details);this.Yo.handleError(D);f!=="html5.invalidstate"&&D.errorCode!=="fmt.unplayable"&&f!=="fmt.unparseable"&&Z&&this.dispose()}; g.d.a_=function(){var f=Od(this.audioTrack),D=Od(this.videoTrack);f={lct:this.getCurrentTime().toFixed(3),lsk:this.F6.isSeeking(),lmf:this.Y.Y.isLocked(),lbw:j$y(this.schedule).toFixed(3),lhd:Oy(this.schedule).toFixed(3),lst:((this.schedule.S.yz()||0)*1E9).toFixed(3),laa:f?f.lJ():"",lva:D?D.lJ():"",lar:this.audioTrack.Y?this.audioTrack.Y.lJ():"",lvr:this.videoTrack.Y?this.videoTrack.Y.lJ():"",laq:""+Z7(this.audioTrack),lvq:""+Z7(this.videoTrack)};this.gY&&!this.gY.wS()&&this.gY.Y&&this.gY.J&&(f.lab= nx(this.gY.Y.Ew()),f.lvb=nx(this.gY.J.Ew()));this.KQ&&(f.lapt=((0,g.m5)()-this.KQ).toFixed(0),f.lapr=XvD(this));this.rY&&(f.lapmabht=((0,g.m5)()-this.rY).toFixed(0),f.lapmabh=qr(this,this.audioTrack).toFixed(0));this.jT&&(f.lapmvbht=((0,g.m5)()-this.jT).toFixed(0),f.lapmvbh=qr(this,this.videoTrack).toFixed(0));this.Ir&&(f.lapsdai=((0,g.m5)()-this.Ir).toFixed(0));return f}; g.d.Jl=function(){try{this.policy.Y&&this.J.iz(!1,"pending"),this.audioTrack.Jl(),this.videoTrack.Jl()}catch(f){g.SJ(f)}this.policy.G=""}; g.d.bC=function(f){return this.videoTrack&&this.audioTrack?this.videoTrack.bC(f)&&this.audioTrack.bC(f):!0}; g.d.WJ=function(){return na(this.Jb)}; g.d.Gx=function(f,D,F){this.Yo.Gx(f,D,F===void 0?!1:F)}; g.d.Ww=function(){return this.Yo.Ww()}; g.d.py=function(f,D){f/=D;isNaN(this.timestampOffset)&&k9I(this,f-Math.min(f,this.policy.lT));return(f-this.timestampOffset)*D}; g.d.R_=function(){return this.timestampOffset}; g.d.isSeeking=function(){return this.F6.isSeeking()}; g.d.YY=function(){this.B.YY()}; g.d.S7=function(f,D,F){D=D===void 0?!1:D;F=F===void 0?{}:F;this.policy.Y?this.X.S7(f,D,F):this.Y.S7(f,D,F)}; g.d.LR=function(f,D){if(this.policy.J&&(this.BO||this.isSeeking()))return this.Gx("sdai",{ignoreSkip:"1",isSkip:this.BO,isSeek:this.isSeeking(),t:f.toFixed(3)}),!1;var F=this.policy.J&&(this.policy.T||this.policy.QY),Z=this.videoTrack.XF.index.Kw(f),I=!1;if(F){var p;if(I=!((p=this.xo)==null||!p.U9(f,Z,this.timestampOffset)))if(zv(this,f,f,Z),this.D5){var z;(z=this.D5)==null||z.U9(f,Z)}}else this.D5&&(I=!!this.B.LR(f,this.D5));if(!I)return this.handleError("ad.skipfailed",{dec:!!this.D5,t:f.toFixed(3), sq:Z}),!1;this.policy.J&&(this.Gx("sdai",{skipAdStd:"1"}),this.BO=!0);if(this.policy.HD){var H;(H=this.OI)==null||H.clear()}k9I(this,this.timestampOffset-D);hj(this);this.policy.J&&(O$(this.FF),KR(this.audioTrack),KR(this.videoTrack),this.Jl());return!0}; g.d.getManifest=function(){return this.FF}; g.d.isOffline=function(){return!!this.Yo.getVideoData().cotn}; g.d.a7=function(f,D){this.Yo.a7(f,D)}; g.d.FD=function(f,D){if(this.policy.Y)iaT(this,f,!0,D),this.J.iz(!0,"utc"),this.cD();else if(D=this.Yo.getVideoData().ke){var F=this.T;F.jm=f;F.ke=D;cq(this)}}; g.d.j4=function(f){this.videoTrack.T=!1;this.audioTrack.T=!1;this.F6.Y=!1;this.Yo.j4(f)}; g.d.Cs=function(f){this.F6.Cs(f-this.R_())}; g.d.LP=function(){this.Yo.LP()}; g.d.SI=function(f){f!==this.policy.sE&&((this.policy.sE=f)||this.cD())}; g.d.EU=function(f){this.Yo.EU(f)}; g.d.x6=function(f){this.Yo.x6(f)}; g.d.OH=function(f,D,F){var Z;(Z=this.xo)==null||Z.OH(f,D,F);this.policy.T&&(this.J.S=void 0,this.cD())}; g.d.GO=function(f){var D;(D=this.xo)==null||D.GO(f)}; g.d.kR=function(f){this.policy.eT&&this.Yo.getVideoData().jj()&&!f.oR&&(this.Gx("liveUmpMissing",{segmentNum:f.Ib,headerId:f.Ve,startMs:f.startMs,durationMs:f.durationMs}),this.policy.eT=!1)}; g.d.hO=function(f,D){if(this.policy.T){var F,Z=(F=f.eX)==null?void 0:F[0];F=lqf(this.Yo.getVideoData());var I;(I=this.xo)==null||I.hO(f,D,this.D5||void 0,F,this.policy.K7?this.FF:void 0);var p,z,H;this.Gx("clidai",{onqlst:1,len:((p=f.eX)==null?void 0:p.length)||0,rn:D,evt:Y$d(Z==null?void 0:(z=Z.Xd)==null?void 0:z.event),cid:(Z==null?void 0:(H=Z.Xd)==null?void 0:H.identifier)||"null",sq:(Z==null?void 0:Z.Ib)||-1,trk:(Z==null?void 0:Z.trackType)||"null",disr:F})}}; g.d.yW=function(f){if(this.policy.eT){var D;(D=this.D5)==null||D.yW(f)}}; g.d.prefetchKeyPlay=function(f,D){var F=this;if(gD(this)){var Z=nVT().legacyApplicationQuality==="limited-memory";this.policy.Gg&&Z||(this.ye||(this.ye=new bT(function(I){F.Yo.Mm(I)}),g.N(this,this.ye)),RRT(this.ye,{fU:f, NW:D,s3:2}),this.cD())}}; g.d.dH=function(){this.Z5++}; g.d.VD=function(){this.Z5=0};g.C(eE,g.zu);g.C(xi,eE);xi.prototype.T=function(f,D){if(f&&D){var F=Number(vV(f,"cpi"))*1+1;isNaN(F)||F<=0||Fthis.B&&(this.B=F,g.tC(this.Y)||(this.Y={},this.G.stop(),this.J.stop())),this.Y[D]=f,g.XE(this.J))}}; xi.prototype.X=function(){for(var f=g.a(Object.keys(this.Y)),D=f.next();!D.done;D=f.next()){var F=D.value;D=this.publish;for(var Z=this.B,I=g.R_(this.Y[F]),p=[],z=g.a(I[6].split("&")),H=z.next();!H.done;H=z.next())H=H.value,H.indexOf("cpi=")===0?p.push("cpi="+Z.toString()):H.indexOf("ek=")===0?p.push("ek="+g.lI(F)):p.push(H);I[6]="?"+p.join("&");F="skd://"+I.slice(2).join("");I=F.length*2;Z=new Uint8Array(I+4);Z[0]=I%256;Z[1]=(I-Z[0])/256;for(I=0;I0)for(var F=g.a(this.Y),Z=F.next();!Z.done;Z=F.next())if(D===Z.value.info.cryptoPeriodIndex){D=!0;break a}D=!1}if(!D){D=(0,g.m5)();a:{F=f.cryptoPeriodIndex;if(!isNaN(F)){Z=g.a(this.B.values());for(var I=Z.next();!I.done;I=Z.next())if(Math.abs(I.value.cryptoPeriodIndex-F)<=1){F=!0;break a}}F=!1}F?(F=f.Y,F=Math.max(0,Math.random()*((isNaN(F)?120:F)-30))*1E3):F=0;this.publish("log_qoe",{wvagt:"delay."+F,cpi:f.cryptoPeriodIndex,reqlen:this.Y.length}); F<=0?yAs(this,f):(this.Y.push({time:D+F,info:f}),g.XE(this.J,F))}}; X_.prototype.Ey=function(){this.Y=[];eE.prototype.Ey.call(this)};var VZ={},QPE=(VZ.DRM_TRACK_TYPE_AUDIO="AUDIO",VZ.DRM_TRACK_TYPE_SD="SD",VZ.DRM_TRACK_TYPE_HD="HD",VZ.DRM_TRACK_TYPE_UHD1="UHD1",VZ);g.C(Rfd,g.J);g.C(mKD,g.zu);g.d=mKD.prototype;g.d.kX=function(f){var D=this;if(!(this.MR()||f.size<=0)){var F={};f.forEach(function(Z,I){var p=qF(D.J)?I:Z;I=new Uint8Array(qF(D.J)?Z:I);qF(D.J)&&Equ(I);Z=g.B9(I,4);Equ(I);I=g.B9(I,4);D.Y[Z]?D.Y[Z].status=p:D.Y[I]?D.Y[I].status=p:D.Y[Z]={type:"",status:p};L$c(D,D.Y[Z].type,F)}); BZu(this,",");OF(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.d.error=function(f,D,F,Z){this.MR()||(this.publish("licenseerror",f,D,F,Z),f==="drm.provision"&&(f=(Date.now()-this.T)/1E3,this.T=NaN,this.publish("ctmp","provf",{et:f.toFixed(3)})));zI(D)&&this.dispose()}; g.d.shouldRetry=function(f,D){return!f&&this.requestNumber===D.requestNumber}; g.d.Ey=function(){this.Y={};g.zu.prototype.Ey.call(this)}; g.d.a_=function(){var f={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.zx,cryptoPeriodIndex:this.cryptoPeriodIndex};this.B&&(f.keyStatuses=this.Y);return f}; g.d.getInfo=function(){var f=this.G.join();if(nt(this)){var D=new Set,F;for(F in this.Y)this.Y[F].status!=="usable"&&D.add(this.Y[F].type);f+="/UKS."+Array.from(D)}return f+="/"+this.cryptoPeriodIndex}; g.d.M7=function(){return this.url};g.C(PQ,g.J);g.d=PQ.prototype;g.d.Ko=function(f){if(this.X){var D=f.messageType||"license-request";this.X(new Uint8Array(f.message),D)}}; g.d.kX=function(){this.S&&this.S(this.Y.keyStatuses)}; g.d.onClosed=function(){this.MR()||g.go("xboxone")&&this.B&&this.B("closedShouldNotRetry")}; g.d.IX=function(f){this.X&&this.X(f.message,"license-request")}; g.d.Si=function(f){if(this.B){if(this.J){var D=this.J.error.code;f=this.J.error.systemCode}else D=f.errorCode,f=f.systemCode;this.B("t.prefixedKeyError;c."+D+";sc."+f,D,f)}}; g.d.lN=function(){this.T&&this.T()}; g.d.update=function(f){var D=this;if(this.Y)return this.Y.update(f).then(null,q9(function(F){ujy(D,"t.update",F)})); this.J?this.J.update(f):this.element.addKey?this.element.addKey(this.N.keySystem,f,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,f,this.initData,this.sessionId);return wo()}; g.d.Ey=function(){this.Y&&(this.Jb?this.Y.close().catch(g.UT):this.Y.close());this.element=null;g.J.prototype.Ey.call(this)};g.C(fV,g.J);g.d=fV.prototype;g.d.setServerCertificate=function(){return this.J.setServerCertificate?this.Y.flavor==="widevine"&&this.Y.IH?this.J.setServerCertificate(this.Y.IH):KM(this.Y)&&this.Y.xq?this.J.setServerCertificate(this.Y.xq):null:null}; g.d.createSession=function(f,D){var F=f.initData;if(this.Y.keySystemAccess){D&&D("createsession");var Z=this.J.createSession();or(this.Y)?F=efI(F,this.Y.xq):KM(this.Y)&&(F=hfd(F)||new Uint8Array(0));D&&D("genreq");f=Z.generateRequest(f.contentType,F);var I=new PQ(null,null,null,Z,null,this.S);f.then(function(){D&&D("genreqsuccess")},q9(function(z){ujy(I,"t.generateRequest",z)})); return I}if(sp(this.Y))return XNI(this,F);if(HL(this.Y))return xKs(this,F);if((Z=this.element)==null?0:Z.generateKeyRequest)this.element.generateKeyRequest(this.Y.keySystem,F);else{var p;(p=this.element)==null||p.webkitGenerateKeyRequest(this.Y.keySystem,F)}return this.G=new PQ(this.element,this.Y,F,null,null,this.S)}; g.d.xz=function(f){var D=Oaf(this,f);D&&D.IX(f)}; g.d.Es=function(f){var D=Oaf(this,f);D&&D.Si(f)}; g.d.cB=function(f){var D=Oaf(this,f);D&&D.lN(f)}; g.d.getMetrics=function(){var f=null;if(this.J&&this.J.getMetrics)try{f=this.J.getMetrics()}catch(D){}return f}; g.d.Ey=function(){this.B=this.J=null;var f;(f=this.G)==null||f.dispose();f=g.a(Object.values(this.T));for(var D=f.next();!D.done;D=f.next())D.value.dispose();this.T={};g.J.prototype.Ey.call(this);delete this.element};g.d=DL.prototype;g.d.get=function(f){f=this.findIndex(f);return f!==-1?this.values[f]:null}; g.d.remove=function(f){f=this.findIndex(f);f!==-1&&(this.keys.splice(f,1),this.values.splice(f,1))}; g.d.removeAll=function(){this.keys=[];this.values=[]}; g.d.set=function(f,D){var F=this.findIndex(f);F!==-1?this.values[F]=D:(this.keys.push(f),this.values.push(D))}; g.d.findIndex=function(f){return g.gE(this.keys,function(D){return g.j5(f,D)})};g.C(P2f,g.zu);g.d=P2f.prototype;g.d.bFT=function(f){this.us({onecpt:1});f.initData&&Ffd(this,new Uint8Array(f.initData),f.initDataType)}; g.d.D7R=function(f){this.us({onndky:1});Ffd(this,f.initData,f.contentType)}; g.d.y7=function(f){this.us({onneedkeyinfo:1});this.V.Z("html5_eme_loader_sync")&&(this.S.get(f.initData)||this.S.set(f.initData,f));DrD(this,f)}; g.d.Zc=function(f){this.B.push(f);Fp(this)}; g.d.createSession=function(f){var D=IIa(this)?aff(f):g.B9(f.initData);this.J.get(D);this.zx=!0;f=new mKD(this.videoData,this.V,f,this.drmSessionId);this.J.set(D,f);f.subscribe("ctmp",this.Gj,this);f.subscribe("keystatuseschange",this.kX,this);f.subscribe("licenseerror",this.kN,this);f.subscribe("newlicense",this.Tj,this);f.subscribe("newsession",this.C2,this);f.subscribe("sessionready",this.gA,this);f.subscribe("fairplay_next_need_key_info",this.UR,this);this.V.Z("html5_enable_vp9_fairplay")&&f.subscribe("qualitychange", this.l1,this);f.subscribe("sabrlicenseconstraint",this.iaY,this);tGf(f,this.G)}; g.d.Tj=function(f){this.MR()||(this.us({onnelcswhb:1}),f&&!this.heartbeatParams&&(this.heartbeatParams=f,this.publish("heartbeatparams",f)))}; g.d.C2=function(){this.MR()||(this.us({newlcssn:1}),this.B.shift(),this.zx=!1,Fp(this))}; g.d.gA=function(){if(sp(this.Y)&&(this.us({onsnrdy:1}),this.Ir--,this.Ir===0)){var f=this.Bs,D,F;(D=f.element)==null||(F=D.msSetMediaKeys)==null||F.call(D,f.B)}}; g.d.kX=function(f){if(!this.MR()){this.rY||(this.rY=!0,this.V.Oq()&&psT(this));this.us({onksch:1});var D=this.l1;if(!nt(f)&&g.gt&&f.J.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var F="large";else{F=[];var Z=!0;if(nt(f))for(var I=g.a(Object.keys(f.Y)),p=I.next();!p.done;p=I.next())p=p.value,f.Y[p].status==="usable"&&F.push(f.Y[p].type),f.Y[p].status!=="unknown"&&(Z=!1);if(!nt(f)||Z)F=f.G;F=W$X(F)}D.call(this,F);if(f.V.Z("html5_enable_vp9_fairplay")&&KM(f.J))D=f.Jb; else{if(!nt(f))for(D={},F=g.a(f.G),Z=F.next();!Z.done;Z=F.next())L$c(f,Z.value,D);D=f.authorizedFormats}this.videoData.authorizedFormats=D;this.publish("keystatuseschange",f)}}; g.d.Gj=function(f,D){this.MR()||this.publish("ctmp",f,D)}; g.d.UR=function(f,D){this.MR()||this.publish("fairplay_next_need_key_info",f,D)}; g.d.kN=function(f,D,F,Z){this.MR()||(this.videoData.Z("html5_log_drm_metrics_on_error")&&psT(this),this.publish("licenseerror",f,D,F,Z))}; g.d.O2=function(){return this.N}; g.d.l1=function(f){var D=g.Wh("auto",f,!1,"l");if(this.videoData.j6){if(this.N.equals(D))return}else if(MoD(this.N,f))return;this.N=D;this.publish("qualitychange");this.us({updtlq:f})}; g.d.iaY=function(f){this.videoData.sabrLicenseConstraint=f}; g.d.Ey=function(){var f,D;this.Y.keySystemAccess&&this.element&&!((f=this.mediaElement)==null?0:(D=f.Yo)==null?0:D.W_())&&(this.xo?this.element.setMediaKeys(null).catch(g.UT):this.element.setMediaKeys(null));this.element=null;this.B=[];f=g.a(this.J.values());for(D=f.next();!D.done;D=f.next())D=D.value,D.unsubscribe("ctmp",this.Gj,this),D.unsubscribe("keystatuseschange",this.kX,this),D.unsubscribe("licenseerror",this.kN,this),D.unsubscribe("newlicense",this.Tj,this),D.unsubscribe("newsession",this.C2, this),D.unsubscribe("sessionready",this.gA,this),D.unsubscribe("fairplay_next_need_key_info",this.UR,this),this.V.Z("html5_enable_vp9_fairplay")&&D.unsubscribe("qualitychange",this.l1,this),D.dispose();this.J.clear();this.T.removeAll();this.S.removeAll();this.heartbeatParams=null;g.zu.prototype.Ey.call(this)}; g.d.a_=function(){for(var f={systemInfo:this.Y.a_(),sessions:[]},D=g.a(this.J.values()),F=D.next();!F.done;F=D.next())f.sessions.push(F.value.a_());return f}; g.d.getInfo=function(){return this.J.size<=0?"no session":""+this.J.values().next().value.getInfo()+(this.X?"/KR":"")}; g.d.us=function(f,D){D=D===void 0?!1:D;this.MR()||(Ip(f),(this.V.Oq()||D)&&this.publish("ctmp","drmlog",f))};var Hyu=!1,KfD=!1;g.C(jsD,g.J);g.d=jsD.prototype;g.d.mC=function(){return!!this.FA}; g.d.Ej=function(){return this.J}; g.d.handleError=function(f){var D=this;Vdf(this,f);var F;if(F=!((f.errorCode==="html5.invalidstate"||f.errorCode==="fmt.unplayable"||f.errorCode==="fmt.unparseable")&&$rD(this,f.errorCode,f.details)))if(F=!C6u(this,f))this.videoData.errorDetail==="7"&&g.hm(this.Uy)?(QsE(this,"innertube_player_reload_required"),F=!0):F=!1,F=!F;if(F)if(this.Uy.Bs!=="yt"&&drD(this,f)&&this.videoData.Fd&&(0,g.m5)()/1E3>this.videoData.Fd&&Ht(this.videoData)&&(F=Object.assign({e:f.errorCode},f.details),F.stalesigexp="1", F.expire=Math.round(this.videoData.Fd*1E3),F.init=Math.round(this.videoData.Z2),F.now=Math.round((0,g.m5)()),f=new g.px(f.errorCode,F,2),this.Yo.b4(f.errorCode,2,"SIGNATURE_EXPIRED",Ip(f.details))),zI(f.severity)){var Z;F=(Z=this.Yo.loader)==null?void 0:Z.Y.Y;if(this.Uy.Z("html5_use_network_error_code_enums"))if(RJd(f)&&F&&F.isLocked())var I="FORMAT_UNAVAILABLE";else if(this.Uy.T||f.errorCode!=="auth"||f.details.rc!==429)f.errorCode==="ump.spsrejectfailure"&&(I="HTML5_SPS_UMP_STATUS_REJECTED");else{I= "TOO_MANY_REQUESTS";var p="6"}else RJd(f)&&F&&F.isLocked()?I="FORMAT_UNAVAILABLE":this.Uy.T||f.errorCode!=="auth"||f.details.rc!=="429"?f.errorCode==="ump.spsrejectfailure"&&(I="HTML5_SPS_UMP_STATUS_REJECTED"):(I="TOO_MANY_REQUESTS",p="6");this.Yo.b4(f.errorCode,f.severity,I,Ip(f.details),p)}else this.Yo.publish("nonfatalerror",f),Z=/^pp/.test(this.videoData.clientPlaybackNonce),this.xn(f.errorCode,f.details),Z&&f.errorCode==="manifest.net.connect"&&(f="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.m5)(),xq(f,"manifest",function(z){D.T=!0;D.Gx("pathprobe",z)},function(z){D.xn(z.errorCode,z.details)}))}; g.d.Gx=function(f,D){this.Yo.Lp.Gx(f,D)}; g.d.xn=function(f,D){D=Ip(D);this.Yo.Lp.xn(f,D)};IM.prototype.DL=function(f){var D=MdX(this);if(!f)return{bN:Io,gx:Io,Ux:Io,uf:Io,wx:Io,Tr:Io,Wy:D};var F=Io;if(rs(D)||this.Z("html5_perf_cap_override_sticky"))F=r1T(this,f);return{bN:F,gx:aID(this,f),Ux:UrJ(this,f),uf:Lfy(this,f.videoData),wx:lIa(this,f.videoData,f),Tr:SSu(this,f),Wy:D}}; IM.prototype.aZ=function(f){if(g.hm(this.V)&&Y9(this.V.X,Ph.HEIGHT))var D=f.Y.videoInfos[0].video.qualityOrdinal;else{var F=this.Ln(!!f.Y.Y);$7(f.videoData)||F9(f.videoData);f=f.Y.videoInfos;if(f.length){var Z=.85,I=f[0].video;I.projectionType!=="MESH"&&I.projectionType!=="EQUIRECTANGULAR"&&I.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Jr||(Z=.45);I=g.Pf(this.V.experiments,"html5_viewport_undersend_maximum");for(var p=0;p=0,stateAtSend:D,joinLatencySecs:p,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Z,playerCanaryStage:I,isAd:this.provider.videoData.isAd(),liveMode:F,hasDrm:!!g.ao(this.provider.videoData),isGapless:this.provider.videoData.S,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:G6(this.provider.videoData)};f||g.ha("html5PlayerHealthEvent",D);this.B=!0;this.dispose()}}; zQ.prototype.Ey=function(){this.B||this.send();window.removeEventListener("error",this.n0);window.removeEventListener("unhandledrejection",this.n0);g.J.prototype.Ey.call(this)}; var Fgc=/\bnet\b/;gvJ.prototype.update=function(){if(this.N){var f=this.zm()||0,D=g.aZ(this.provider);f>=this.provider.Yo.getDuration()-.1&&(this.previouslyEnded=!0);if(f!==this.J||OyD(this,f,D)){var F;if(!(F=fD-this.S2+2||OyD(this,f,D))){F=this.provider.Yo.getVolume();var Z=F!==this.Bs,I=this.provider.Yo.isMuted()?1:0;I!==this.Jb?(this.Jb=I,F=!0):(!Z||this.G>=0||(this.Bs=F,this.G=D),F=D-this.G,this.G>=0&&F>2?(this.G=-1,F=!0):F=!1)}F&&(qD(this),this.B=f);this.S2=D;this.J=f}}}; gvJ.prototype.zm=function(){var f=this.provider.Yo.zm();return Ro(this.provider.videoData)?f+this.provider.Yo.R_():f};nvc.prototype.send=function(f){var D=this;if(!this.b3){var F=P6E(this),Z=g.tL(this.uri,F);this.V.Z("vss_through_gel_double")&&fCJ(Z);this.zx&&!this.V.Z("html5_simplify_pings")?pny(this,Z):YSa(this,f).then(function(I){if(D.OI){I=I||{};I.method="POST";var p=zpI(D);p&&(I.postBody=p)}D.zx&&(I=I||{},I.method="POST",I.postParams={atr:D.attestationResponse});T8(Z,I,{token:D.KQ,b7:D.Uq,mdxEnvironment:D.mdxEnvironment},D.V,f,D.Tx,D.isFinal&&D.B_||D.rY||D.B&&D.Gm)}); this.b3=!0}}; nvc.prototype.J=function(f){f===void 0&&(f=NaN);return Number(f.toFixed(3)).toString()}; var R$={},ZEs=(R$.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,R$.LIVING_ROOM_APP_MODE_MAIN=1,R$.LIVING_ROOM_APP_MODE_KIDS=2,R$.LIVING_ROOM_APP_MODE_MUSIC=3,R$.LIVING_ROOM_APP_MODE_UNPLUGGED=4,R$.LIVING_ROOM_APP_MODE_GAMING=5,R$),dd={},Ftu=(dd.EMBEDDED_PLAYER_MODE_UNKNOWN=0,dd.EMBEDDED_PLAYER_MODE_DEFAULT=1,dd.EMBEDDED_PLAYER_MODE_PFP=2,dd.EMBEDDED_PLAYER_MODE_PFL=3,dd);g.C(oM,g.J);g.d=oM.prototype; g.d.d3=function(){if(!this.B){this.provider.videoData.U1===16623&&g.UT(Error("Playback for EmbedPage"));var f=iK(this,"playback");this.N=sID(this);Xsw(this.Y);f.S=kO(this);this.J>0&&(f.Y-=this.J);f.send();if(this.provider.videoData.HH){f=this.provider.V;var D=this.provider.videoData,F={html5:"1",video_id:D.videoId,cpn:D.clientPlaybackNonce,ei:D.eventId,ptk:D.HH,oid:D.aX,ptchn:D.AC,pltype:D.va,content_v:nT(D)};D.Zr&&Object.assign(F,{m:D.Zr});f=g.tL(f.tJ+"ptracking",F);kvD(this,f)}this.provider.videoData.vr|| (jIX(this),iEd(this));this.B=!0;f=this.Y;f.J=f.zm();f.S2=g.aZ(f.provider);!(f.B===0&&f.J<5)&&f.J-f.B>2&&(f.B=f.J);f.N=!0}}; g.d.onProgress=function(){this.Y.update();o2X(this)&&(jIX(this),iEd(this))}; g.d.Ey=function(){g.J.prototype.Ey.call(this);j4(this);xrf(this.Y)}; g.d.a_=function(){return P6E(iK(this,"playback"))}; g.d.h6=function(f){var D=iK(this,"engage");D.xo=f;return DRD(D,VHy(this.provider))};$RI.prototype.isEmpty=function(){return this.endTime===this.startTime};y$.prototype.Z=function(f){return this.V.Z(f)}; y$.prototype.getCurrentTime=function(){return this.Yo.getCurrentTime()}; y$.prototype.zm=function(){return this.Yo.zm()}; var Rpu={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.C(g.A3,g.J);g.d=g.A3.prototype;g.d.d3=function(){this.Y&&this.Y.d3();this.J&&this.J.d3()}; g.d.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.f4){var f;(f=this.B.get(this.f4))==null||f.onProgress()}else if(this.Y)this.Y.onProgress()}; g.d.Bn=function(f){this.qoe&&this.qoe.Bn(f)}; g.d.rB=wT(25);g.d.RA=wT(31);g.d.tX=function(f,D){this.qoe&&this.qoe.tX(f,D)}; g.d.rb=function(){if(this.provider.videoData.enableServerStitchedDai&&this.f4){var f;(f=this.B.get(this.f4))!=null&&qD(f.Y)}else this.Y&&qD(this.Y.Y)}; g.d.xn=function(f,D){this.qoe&&tKD(this.qoe,f,D);if(this.J)this.J.onError(f)}; g.d.JH=function(f,D){switch(f){case "M":var F;(F=this.qoe)==null||F.JH(f,D);break;case "A":var Z;(Z=this.qoe)==null||Z.JH(f)}}; g.d.onPlaybackRateChange=function(f){if(this.qoe)this.qoe.onPlaybackRateChange(f);this.Y&&qD(this.Y.Y)}; g.d.j8=wT(48);g.d.Gx=function(f,D,F){this.qoe&&this.qoe.Gx(f,D,F)}; g.d.Y9=function(f,D,F){this.qoe&&this.qoe.Y9(f,D,F)}; g.d.Y6=function(f){var D;(D=this.qoe)==null||D.Y6(f)}; g.d.e9=function(f){var D;(D=this.qoe)==null||D.e9(f)}; g.d.J3=function(f,D,F,Z){var I;(I=this.qoe)==null||I.J3(f,D,F,Z)}; g.d.x6=function(f){this.qoe&&this.qoe.x6(f)}; g.d.jk=function(f,D,F){this.qoe&&this.qoe.jk(f,D,F)}; g.d.Xy=wT(19);g.d.N3=function(){if(this.qoe)return this.qoe.N3()}; g.d.a_=function(){if(this.provider.videoData.enableServerStitchedDai&&this.f4){var f,D;return(D=(f=this.B.get(this.f4))==null?void 0:f.a_())!=null?D:{}}return this.Y?this.Y.a_():{}}; g.d.HK=function(){var f;return(f=this.qoe)==null?void 0:f.HK()}; g.d.fB=function(f,D){var F;(F=this.qoe)==null||F.fB(f,D)}; g.d.h6=function(f){return this.Y?this.Y.h6(f):function(){}}; g.d.getVideoData=function(){return this.provider.videoData}; g.d.resume=function(){this.qoe&&this.qoe.resume()};g.C(g.V$,g.J);g.d=g.V$.prototype;g.d.Bw=function(f,D){this.sync();D&&this.Y.array.length>=2E3&&this.YX("captions",1E4);D=this.Y;if(f.length>1&&f.length>D.array.length)D.array=D.array.concat(f),D.array.sort(D.Y);else{f=g.a(f);for(var F=f.next();!F.done;F=f.next())F=F.value,!D.array.length||D.Y(F,D.array[D.array.length-1])>0?D.array.push(F):g.iZ(D.array,F,D.Y)}this.B=NaN;this.sync()}; g.d.cn=function(f){f.length>1E4&&g.UT(new g.by("Over 10k cueRanges removal occurs with a sample: ",f[0]));if(!this.MR()){var D=new Set(f);this.J=this.J.filter(function(F){return!D.has(F)}); v2d(this.Y,D);this.sync()}}; g.d.D$=function(f){if(!this.MR()){var D=this.gB().find(function(F){return F.id===void 0&&F.namespace===f}); D&&this.cn([D])}}; g.d.YX=function(f,D){var F=(isNaN(this.B)?wnc(this):this.B)-D;D=this.gB().filter(function(Z){return Z.namespace===f&&Z.endthis.Y,p=g.O(F,8)&&g.O(F,16),z=this.Yo.EG().isBackground()||F.isSuspended();cp(this,this.LQ,p&&!z,I,"qoe.slowseek",function(){},"timeout"); var H=isFinite(this.Y);H=p&&H&&D.yv(this.Y);var K=!Z||Math.abs(Z-this.Y)>10,k=this.V.Z("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),h=Z===0&&this.J&&[11,10].includes(this.J);cp(this,this.b3,H&&K&&!z&&(!k||!h),I,"qoe.slowseek",function(){D.seekTo(f.Y)},"set_cmt"); K=H&&Pi(D.NI(),this.Y);var y=this.Yo.loader;H=!y||y.s2();var A=function(){D.seekTo(f.Y+.001)}; cp(this,this.rY,K&&H&&!z,I,"qoe.slowseek",A,"jiggle_cmt");H=function(){return f.Yo.Qa()}; cp(this,this.jT,K&&!z,I,"qoe.slowseek",H,"new_elem");var V=tJ(F);h=F.isBuffering();var R=D.NI(),m=YY(R,Z),b=m>=0&&R.end(m)>Z+5;K=V&&h&&b;k=this.Yo.getVideoData();cp(this,this.Ir,Z<.002&&this.Y<.002&&p&&g.hm(this.V)&&g.OW(k)&&!z,I,"qoe.slowseek",H,"slow_seek_shorts");cp(this,this.Jb,k.Lw()&&p&&!z&&!k.N,I,"qoe.slowseek",H,"slow_seek_gapless_shorts");cp(this,this.Bs,K&&!z,V&&!h,"qoe.longrebuffer",A,"jiggle_cmt");cp(this,this.KQ,K&&!z,V&&!h,"qoe.longrebuffer",H,"new_elem_nnr");if(y){var U=y.getCurrentTime(); p=D.xX();p=ibu(p,U);p=!y.isSeeking()&&Z===p;cp(this,this.Wk,V&&h&&p&&!z,V&&!h&&!p,"qoe.longrebuffer",function(){D.seekTo(U)},"seek_to_loader")}p={}; A=YY(R,Math.max(Z-3.5,0));var S=A>=0&&Z>R.end(A)-1.1,G=A>=0&&A+1=0&&S&&G<11;p.close2edge=S;p.gapsize=G;p.buflen=R.length;this.J&&(p.seekSour=this.J);cp(this,this.xo,V&&h&&!z,V&&!h,"qoe.longrebuffer",function(){},"timeout",p); p=F.isSuspended();p=this.Yo.iM()&&!p;cp(this,this.S,p,!p,"qoe.start15s",function(){f.Yo.DB("ad")},"ads_preroll_timeout"); p=this.V.experiments.Hs("html5_use_playback_rate_in_skip_slow_ad")?this.Yo.getPlaybackRate()*1E3:1E3;m=Z-this.G

5;cp(this,this.Ps,y,V&&!h,"qoe.longrebuffer",function(){f.Yo.EU()},"reset_media_source"); cp(this,this.dY,y,V&&!h,"qoe.longrebuffer",H,"reset_media_element");this.G===0&&(this.T=Z);y=h&&this.Y===0&&Z>1&&Z===this.T;cp(this,this.Tx,g.OW(k)&&y,V&&!h,"qoe.slowseek",function(){D.seekTo(0)},"reseek_after_time_jump"); z=F.isOrWillBePlaying()&&!z;b=this.Yo.jL()-Z<6&&!b&&this.Yo.qN();cp(this,this.N,k.Lw()&&z&&h&&b,V&&!h,"qoe.longrebuffer",function(){f.Yo.Qa(!1,!0)},"handoff_end_long_buffer_reload"); z=this.J===104||this.Yo.DG;F=AZ(k)&&k.isAd()&&!k.N&&z&&(h||g.O(F,8)&&g.O(F,16));cp(this,this.eT,F,I,"qoe.start15s",H,"gapless_ad_slow_start");F=AZ(k)&&!k.N&&z&&K;cp(this,this.JN,F,I,"qoe.longrebuffer",H,"gapless_slow_start");this.G=Z;this.X.start()}}; S4.prototype.xn=function(f,D,F){D=this.a_(D);D.wn=F;D.wdup=this.B[f]?"1":"0";this.Yo.xn(new g.px(f,D));this.B[f]=!0}; S4.prototype.a_=function(f){f=Object.assign(this.Yo.a_(!0),f.a_());this.Y&&(f.stt=this.Y.toFixed(3));this.Yo.getVideoData().isLivePlayback&&(f.ct=this.Yo.getCurrentTime().toFixed(3),f.to=this.Yo.R_().toFixed(3));delete f.uga;delete f.euri;delete f.referrer;delete f.fexp;delete f.vm;return f}; t3.prototype.reset=function(){this.Y=this.J=this.B=this.startTimestamp=0;this.G=!1}; t3.prototype.test=function(f){if(!this.X||this.J)return!1;if(!f)return this.reset(),!1;f=(0,g.m5)();if(!this.startTimestamp)this.startTimestamp=f,this.B=0;else if(this.B>=this.X)return this.J=f,!0;this.B+=1;return!1}; t3.prototype.a_=function(){var f={},D=(0,g.m5)();this.startTimestamp&&(f.wsd=(D-this.startTimestamp).toFixed());this.J&&(f.wtd=(D-this.J).toFixed());this.Y&&(f.wssd=(D-this.Y).toFixed());return f};g.C(f7y,g.J);g.d=f7y.prototype;g.d.setMediaElement=function(f){(this.mediaElement=f)?(this.mediaElement&&(this.X||this.B||!this.mediaElement.fL()||this.seekTo(.01,{pF:"seektimeline_setupMediaElement"})),UH(this)):aM(this)}; g.d.getCurrentTime=function(f){f=f===void 0?!1:f;if(vp(this.Yo)){if(this.Z("html5_use_centralized_player_time")&&!f&&!isNaN(this.T))return this.T;if(!isNaN(this.J))return this.J}else{if(this.Z("html5_use_centralized_player_time")&&!f&&!isNaN(this.T)&&isFinite(this.T))return this.T;if(!isNaN(this.J)&&isFinite(this.J))return this.J}return this.mediaElement&&iRD(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.B||0}; g.d.wF=function(){return this.eT}; g.d.zm=function(){return this.getCurrentTime()-this.R_()}; g.d.p7=function(){return this.Y?this.Y.p7():Infinity}; g.d.isAtLiveHead=function(f){if(!this.Y)return!1;f===void 0&&(f=this.getCurrentTime());return TQ(this.Y,f)}; g.d.lz=function(){return!!this.Y&&this.Y.lz()}; g.d.seekTo=function(f,D){var F=D===void 0?{}:D;D=F.hq===void 0?!1:F.hq;var Z=F.fY===void 0?0:F.fY;var I=F.Ax===void 0?!1:F.Ax;var p=F.qw===void 0?0:F.qw;var z=F.pF===void 0?"":F.pF;var H=F.seekSource===void 0?void 0:F.seekSource;var K=F.py===void 0?!1:F.py;var k=F.zg===void 0?!1:F.zg;F=F.u7===void 0?!1:F.u7;K&&(f+=this.R_());G6(this.videoData)&&H===29&&(this.eT=void 0);K=f=this.tZ())||!g.lj(this.videoData),m||(b={st:b,mst:this.tZ()},this.Y&&this.Z("html5_high_res_seek_logging")&&(b.ht=this.Y.p7(),b.adft=m6(this.Y)),this.Yo.Gx("seeknotallowed",b)),b=m));if(!b)return this.G&&(this.G=null,KTw(this)),g.ts(this.getCurrentTime());b=.005;k&&this.Z("html5_sabr_seek_no_shift_tolerance")&&(b=0);if(Math.abs(f-this.J)<=b&&this.Tx)return this.X;this.Z("html5_reset_rate_limiter_on_user_seek")&& (b=this.loader)!=null&&(b.J.KQ.Ky=0);this.Z("html5_reset_backoff_on_user_seek")&&(b=this.loader)!=null&&(b.J.S=void 0);z&&(b=f,this.V.Oq()||this.Z("html5_log_seek_reasons"))&&(z={reason:z,tgt:b},this.Z("html5_sabr_csdai_seek_log")&&(z.source=H),this.Yo.Gx("seekreason",z));H&&(this.Bs.J=H);this.Tx&&aM(this);this.X||(this.X=new $P);f&&!isFinite(f)&&I7c(this,!1);(z=F||K)||(z=f,z=!(this.videoData.isLivePlayback&&this.videoData.B&&!this.videoData.B.Y&&!(this.mediaElement&&this.mediaElement.FJ()>0&&this.mediaElement.EO()> 0)||ME(this.videoData)&&this.qm()===this.tZ(!1)?0:isFinite(z)||!ME(this.videoData)));z||(f=GQ(this,f,I));f&&!isFinite(f)&&I7c(this,!1);this.Z("html5_use_centralized_player_time")?this.T=f:this.J=this.B=f;this.Ps=p;this.S=0;this.Y&&(I=this.Y,p=f,xRE(I,p,!1),Xnd(I,p));I=this.Yo;p=f;z={hq:D,seekSource:H};I.SU.B=p;F=I.uP;F.mediaTime=p;F.Y=!0;z.hq&&I.GH(z);z=p>I.videoData.endSeconds&&p>I.videoData.limitedPlaybackDurationInSeconds;I.uC&&z&&isFinite(p)&&Xqc(I);p0&&fD.start&&Xqc(this.Yo);return this.X}; g.d.tZ=function(f){if(!this.videoData.isLivePlayback)return this.Yo.videoData.tZ();var D;return Hv(this.videoData)&&((D=this.mediaElement)==null?0:D.isPaused())&&this.videoData.Y?(f=this.getCurrentTime(),wwE(this.zi(f)*1E3)+f):this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&G6(this.videoData)&&this.videoData.Y?f?this.videoData.Y.xo||0:this.videoData.Y.OL||0:ME(this.videoData)&&this.videoData.Al&&this.videoData.Y?this.videoData.Y.tZ()+this.timestampOffset:this.videoData.B&&this.videoData.B.Y? !f&&this.Y?this.Y.p7():this.Yo.videoData.tZ()+this.timestampOffset:this.mediaElement?Xm()?wwE(this.mediaElement.qV().getTime()):this.mediaElement.EO()+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.d.qm=function(){if(this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&G6(this.videoData)){var f;return((f=this.videoData.Y)==null?void 0:f.ZC)||0}f=this.videoData?this.videoData.qm()+this.timestampOffset:this.timestampOffset;if(Hv(this.videoData)&&this.videoData.Y){var D,F=Number((D=this.videoData.progressBarStartPosition)==null?void 0:D.utcTimeMillis)/1E3;if(!isNaN(F)&&(D=this.N9(F),!isNaN(D)))return Math.max(f,D)}return f}; g.d.CJ=function(){this.X||this.seekTo(this.B,{pF:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.d.SS=function(){return this.Tx&&!isFinite(this.J)}; g.d.Ey=function(){pqf(this,null);this.Bs.dispose();g.J.prototype.Ey.call(this)}; g.d.a_=function(){var f={};this.loader&&Object.assign(f,this.loader.a_());this.mediaElement&&Object.assign(f,this.mediaElement.a_());return f}; g.d.wH=function(f){this.timestampOffset=f}; g.d.getStreamTimeOffset=function(){return ME(this.videoData)?0:this.videoData.Y?this.videoData.Y.getStreamTimeOffset():0}; g.d.R_=function(){return this.timestampOffset}; g.d.zi=function(f){return this.videoData&&this.videoData.Y?this.videoData.Y.zi(f-this.timestampOffset):NaN}; g.d.yF=function(){if(!this.mediaElement)return 0;if(EW(this.videoData)){var f=this.mediaElement.N2()+this.timestampOffset-this.qm(),D=this.tZ()-this.qm();return Math.max(0,Math.min(1,f/D))}return this.mediaElement.yF()}; g.d.oM=function(f){this.N&&(this.N.Y=f)}; g.d.FD=function(f,D,F){this.Yo.Gx("requestUtcSeek",{time:f});G6(this.videoData)&&(this.eT=f);var Z;(Z=this.loader)==null||Z.FD(f,F);D&&(this.zx=D)}; g.d.j4=function(f){G6(this.videoData)&&(this.eT=void 0);this.zx?(this.Yo.Gx("utcSeekingFallback",{source:"streamTime",timeSeconds:this.zx}),this.Yo.seekTo(this.zx,{pF:"utcSeekingFallback_streamTime"}),this.zx=0):(f=this.N9(f),isNaN(f)||(this.Yo.Gx("utcSeekingFallback",{source:"estimate",timeSeconds:f}),this.Yo.seekTo(f,{pF:"utcSeekingFallback_estimate"})))}; g.d.LP=function(){this.zx=0}; g.d.M4=function(f){this.jT=f}; g.d.N9=function(f){var D=this.getCurrentTime();if(isNaN(D))return NaN;var F=this.zi(D);return isNaN(F)?NaN:f-(F-D)}; g.d.Z=function(f){return this.V&&this.V.Z(f)};g.C(wh,g.J);wh.prototype.start=function(){this.J.start()}; wh.prototype.stop=function(){this.J.stop()}; wh.prototype.clear=function(){for(var f=g.a(this.Y.values()),D=f.next();!D.done;D=f.next())D.value.clear()}; wh.prototype.sample=function(){for(var f=g.a(this.B),D=f.next();!D.done;D=f.next()){var F=g.a(D.value);D=F.next().value;F=F.next().value;this.Y.has(D)||this.Y.set(D,new RGu(ZWA.has(D)));this.Y.get(D).update(F())}this.J.start()}; var ZWA=new Set(["networkactivity"]);RGu.prototype.update=function(f){this.J?(this.buffer.add(f-this.Y||0),this.Y=f):this.buffer.add(f)}; RGu.prototype.clear=function(){this.buffer.clear();this.Y=0};rh.prototype.mN=function(){return this.started}; rh.prototype.start=function(){this.started=!0}; rh.prototype.reset=function(){this.finished=this.started=!1};var bRJ=!1;g.C(g.J3,g.zu);g.d=g.J3.prototype;g.d.Ey=function(){g.Rg(this.sK);qSJ(this.lY);this.visibility.unsubscribe("visibilitystatechange",this.lY);QIE(this.Lp);g.jg(this.Lp);xO(this);g.lP.lc(this.bW);this.Sd();this.hk=null;g.jg(this.videoData);g.jg(this.X3);g.jg(this.n9);g.jg(this.cG);g.iD(this.XIs);this.uC=null;g.zu.prototype.Ey.call(this)}; g.d.jk=function(f,D,F,Z,I){if(this.V.Z("html5_log_ad_playback_docid")){var p=this.Lp;if(p.qoe){p=p.qoe;var z=this.V.Bs||"yt";g.SE(p,g.aZ(p.provider),"ad_playback",[f,D,F,I,z])}}else this.Lp.jk(f,D,F);this.Z("html5_log_media_perf_info")&&this.Gx("adloudness",{ld:Z.toFixed(3),cpn:f})}; g.d.H7=function(){var f;return(f=this.loader)==null?void 0:f.H7()}; g.d.AR=function(){var f;return(f=this.loader)==null?void 0:f.AR()}; g.d.GX=function(){var f;return(f=this.loader)==null?void 0:f.GX()}; g.d.dD=function(){var f;return(f=this.loader)==null?void 0:f.dD()}; g.d.S$=function(){return this.videoData.S$()}; g.d.W_=function(){return this.Z("html5_not_reset_media_source")&&this.videoData.isLivePlayback&&this.oZ()>10}; g.d.bl=function(){this.videoData.S&&(this.videoData.Q3=this.videoData.Q3||this.Nm.VT().H7(),this.videoData.y3=this.videoData.y3||this.Nm.VT().AR());if(CUc(this.videoData)||!sz(this.videoData)){var f=this.videoData.errorDetail;this.b4(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),f,f,this.videoData.Sw||void 0)}this.Z("html5_generate_content_po_token")&&this.Nk();this.Z("html5_enable_d6de4")&&this.BZ()}; g.d.getVideoData=function(){return this.videoData}; g.d.j=function(){return this.V}; g.d.DL=function(){return this.Tv.DL(this.hk)}; g.d.EG=function(){return this.visibility}; g.d.qG=function(){return this.mediaElement&&this.mediaElement.BK()?this.mediaElement.Cp():null}; g.d.ac=function(){return this.mediaElement}; g.d.Zm=function(){if(this.videoData.errorCode)return!1;this.j().T&&this.j().houseBrandUserStatus&&this.Gx("hbut",{status:this.j().houseBrandUserStatus},!0);if(this.videoData.u4())return!0;this.b4("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.d.VO=function(f){(f=f===void 0?!1:f)||dRX(this.Lp);this.U4=f;!this.Zm()||this.Ia.mN()?l7T(this)&&this.Ia.mN()&&!this.Ia.finished&&!this.U4&&this.r0():(this.Ia.start(),f=this.Lp,g.aZ(f.provider),f.qoe&&bNu(f.qoe),this.r0())}; g.d.r0=function(){if(this.videoData.isLoaded()){var f=this.X3;g.Pf(f.Uy.experiments,"html5_player_min_build_cl")>0&&g.Pf(f.Uy.experiments,"html5_player_min_build_cl")>842839980&&QsE(f,"oldplayer");NJI(this)}else this.videoData.WI||this.videoData.Gv?this.U4&&l7T(this)||(this.videoData.WI?zTX(this.videoData):(f=this.Lp,f.qoe&&(f=f.qoe,BQ(f,"protected"),f.provider.videoData.X?f.YB():f.provider.videoData.subscribe("dataloaded",f.YB,f)),DBw(this.videoData))):!this.videoData.loading&&this.tp&&EMD(this)}; g.d.Ys=function(f){this.D5=f;this.loader&&(sPc(this.loader,f),this.Gx("sdai",{sdsstm:1}))}; g.d.OH=function(f,D,F){var Z;(Z=this.loader)==null||Z.OH(f,D,F)}; g.d.GO=function(f){var D;(D=this.loader)==null||D.GO(f)}; g.d.Lj=function(){var f;return((f=this.loader)==null?void 0:f.G5())||null}; g.d.isFullscreen=function(){return this.visibility.isFullscreen()}; g.d.isBackground=function(){return this.visibility.isBackground()}; g.d.Is=function(){var f=this;ND(this).then(function(){return gh(f)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.d.B1=function(){this.mediaElement&&this.mediaElement.activate();this.VO();this.Zm()&&!g.O(this.playerState,128)&&(this.Mv.mN()||(this.Mv.start(),this.videoData.B_?this.cI(mz(this.playerState,4)):this.cI(mz(mz(this.playerState,8),1))),Jld(this))}; g.d.Fa=function(){return this.Ia.finished}; g.d.sendAbandonmentPing=function(){g.O(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.yr(!0),QIE(this.Lp),g.jg(this.Lp),g.lP.lc(this.bW))}; g.d.E9=function(f,D,F){f=f===void 0?!0:f;(D===void 0||D)&&this.mediaElement&&this.mediaElement.pause();f&&F&&this.loader&&ME(this.videoData)&&this.loader.J3(F);this.cI(f?new g.du(14):new g.du)}; g.d.ek=function(){this.Lp.rb()}; g.d.b4=function(f,D,F,Z,I,p){var z,H;g.TD(hmA,F)?z=F:F?H=F:z="GENERIC_WITHOUT_LINK";Z=(Z||"")+(";a6s."+Z2());if(f==="auth"||f==="drm.auth"||f==="heartbeat.stop")F&&(Z+=";r."+F.replaceAll(" ","_")),p&&(Z+="sr."+p.replaceAll(" ","_"));D={errorCode:f,errorDetail:I,errorMessage:H||g.Gp[z]||"",E_:z,Sw:p||"",C6:Z,Mn:D,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=f;e4(this,"dataloaderror");this.cI(Ci(this.playerState,128,D));g.lP.lc(this.bW);xO(this);this.Kc()}; g.d.DB=function(f){this.Sk=this.Sk.filter(function(D){return f!==D}); this.Mv.mN()&&Jld(this)}; g.d.C1=function(){var f;(f=!!this.Sk.length)||(f=this.xW.Y.array[0],f=!!f&&f.start<=-0x8000000000000);return f}; g.d.lz=function(){return this.SU.lz()}; g.d.isPlaying=function(){return this.playerState.isPlaying()}; g.d.XW=function(){return this.playerState.XW()&&this.videoData.B_}; g.d.getPlayerState=function(){return this.playerState}; g.d.He=function(f){var D;(D=this.loader)==null||D.He(f)}; g.d.wZ=function(f){var D;(D=this.loader)==null||D.wZ(f)}; g.d.getPlayerType=function(){return this.playerType}; g.d.getPreferredQuality=function(){if(this.hk){var f=this.hk;f=f.videoData.Ek.compose(f.videoData.XP);f=l9(f)}else f="auto";return f}; g.d.ED=wT(12);g.d.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.d.setMediaElement=function(f){if(this.mediaElement&&f.Cp()===this.mediaElement.Cp()&&(f.isView()||this.mediaElement.isView())){if(f.isView()||!this.mediaElement.isView())this.F4(),this.mediaElement=f,this.mediaElement.JU(this),Khc(this),this.SU.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Sd();if(!this.playerState.isError()){var D=TB(this.playerState,512);g.O(D,8)&&!g.O(D,2)&&(D=mz(D,1));f.isView()&&(D=TB(D,64));this.cI(D)}this.mediaElement=f;this.mediaElement.JU(this);!g.hm(this.V)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Khc(this);this.SU.setMediaElement(this.mediaElement);this.Z("html5_prewarm_media_source")&&!this.X3.mC()&&this.mediaElement.f6()}}; g.d.Sd=function(f,D,F){f=f===void 0?!1:f;D=D===void 0?!1:D;F=F===void 0?!1:F;if(this.mediaElement){var Z=this.getCurrentTime();Z>0&&(this.SU.B=Z);this.SU.setMediaElement(null);!f&&this.W_()?sZy(this):this.Le(F);this.loader&&(hj(this.loader),YO(this,D));this.Th.stop();if(this.mediaElement&&(!this.Mv.mN()&&!this.iM()||this.playerState.isError()||g.O(this.playerState,2)||this.cI(mz(this.playerState,512)),this.mediaElement)){this.F4();if(f||!this.mediaElement.isView())this.Sj.Ra("mesv_s"),this.mediaElement.stopVideo(), Pp(this);this.mediaElement.JU(null);this.mediaElement=null}}}; g.d.playVideo=function(f,D){f=f===void 0?!1:f;D=D===void 0?!1:D;var F=this,Z,I,p,z,H,K;return g.l(function(k){if(k.Y==1){var h=window.google_image_requests;h&&h.length>10&&(window.google_image_requests=h.slice(-10));if(g.O(F.playerState,128))return k.return();if(F.X3.Ej())return F.publish("signatureexpired"),k.return();F.mediaElement&&dRX(F.Lp);F.B1();(g.O(F.playerState,64)||f)&&F.cI(mz(F.playerState,8));return F.Mv.finished&&F.mediaElement?F.hk||!F.j9?k.ZE(2):g.r(k,F.j9,3):k.return()}if(k.Y!=2&& g.O(F.playerState,128))return k.return();if(!F.videoData.B)return F.videoData.isLivePlayback&&!g.T0(F.V.X,!0)?(Z="html5.unsupportedlive",I=2):(Z=F.videoData.S$()?"fmt.unplayable":"fmt.noneavailable",I=1),g.UT(Error("selectableFormats")),F.b4(Z,I,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),k.return();if(F.RP()&&F.videoData.B.Y)return k.return(ND(F));if(vp(F))h=F.SU,mj(h.videoData)&&!h.isAtLiveHead(h.getCurrentTime())&&h.lz()&&h.Yo.seekTo(Infinity,{pF:"seektimeline_peggedToLive", seekSource:34});else if(mj(F.videoData)&&(p=F.getCurrentTime()z;if(!H||!z){I&&H&&(p=Math.max(p,I));var K;I=tdX(D,(K=Z.Y)==null?void 0:K.videoInfos);K=D.Yo.getPlaybackRate();K>1&&I&&(K=jKs(D.V.X,Z.Y.videoInfos,K),f.Y!==0&&K=480;if(D.Z("html5_perf_cap_override_sticky")){k=D.B;D=D.Z("html5_perserve_av1_perf_cap");D=D===void 0?!1:D;if(D===void 0?0:D){h=M9();f=g.a(Object.keys(h));for(p=f.next();!p.done;p=f.next())p=p.value,p.indexOf("1")!==0&&delete h[p];g.w0("yt-player-performance-cap",h,2592E3)}else g.B6("yt-player-performance-cap");inJ(D);if(D){D=g.a(F1.keys());for(h=D.next();!h.done;h=D.next())h=h.value,h.startsWith("1")|| F1.delete(h);D=g.a(pV.values());for(h=D.next();!h.done;h=D.next())h=h.value,h.startsWith("1")||pV.delete(h);D=g.a(k.keys());for(h=D.next();!h.done;h=D.next())h=h.value,h.startsWith("1")||k.delete(h)}else F1.clear(),pV.clear(),k.clear()}}}}this.loader&&(D=this.loader,F=F||"",D.policy.Y?y0(D.X.Y,F):y0(D.Y.X,F));this.GK()}; g.d.getUserPlaybackQualityPreference=function(){return this.videoData.B&&!this.videoData.B.Y?l9(this.videoData.Ek):L5[TN()]}; g.d.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.d.setUserAudio51Preference=function(f,D){this.getUserAudio51Preference()!==f&&(this.Gx("toggle51",{pref:f}),g.w0("yt-player-audio51",f,D?31536E3:2592E3),this.Is())}; g.d.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.d.setProximaLatencyPreference=function(f){var D=this.getProximaLatencyPreference();this.Gx("proxima",{pref:f});g.w0("yt-player-proxima-pref",f,31536E3);D!==f&&(f=this.SU,f.JN=!0,f.Yo.seekTo(Infinity,{pF:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.d.getProximaLatencyPreference=function(){var f;return(f=b9())!=null?f:0}; g.d.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.d.Nk=function(){this.videoData.videoId?this.Nm.Nk(this.videoData):this.Gx("povid",{})}; g.d.BZ=function(){this.videoData.videoId?this.Nm.BZ(this.videoData):this.Gx("piavid",{})}; g.d.GK=function(){if(!this.MR()&&!g.O(this.playerState,128)&&this.videoData.B){if(this.videoData.B.Y)lK(this);else{var f=nV(this),D=this.videoData;a:{var F=this.videoData.JN;if(f.Y){for(var Z=g.a(F),I=Z.next();!I.done;I=Z.next()){I=I.value;var p=I.getInfo(),z=g.t9[p.video.quality];if((!f.B||p.video.quality!=="auto")&&z<=f.Y){F=I;break a}}F=F[F.length-1]}else F=F[0]}D.Tx=F;ORu(this,f.reason,ity(this,this.videoData.Tx))}if(this.Z("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.SU.Jb= !1,this.playVideo()}}; g.d.FS=function(f,D){if(this.MR()||g.O(this.playerState,128))return!1;var F,Z=!((F=this.videoData.B)==null||!F.Y);F=Z&&D?this.getCurrentTime()-this.R_():NaN;if(f.dw&&f.dw.id){var I=this.Lp;if(I.qoe){I=I.qoe;var p=[f.dw.id,isNaN(F)?"m":"t"];g.SE(I,g.aZ(I.provider),"afi",p)}}if(Z)return D&&(Z=zGD(this.SU),this.Gx("aswh",{id:f.id,xtags:f.xtags,bh:Z.toFixed(3)})),this.loader.setAudioTrack(f,F,D),!0;if(YVE(this)){a:{D=this.mediaElement.audioTracks();Z=!1;for(F=0;Fp.gY.getDuration()&&oiy(p,z)):oiy(p,k);var h=p.loader,y=p.gY;H=H===void 0?!1:H;K=K===void 0?!1:K;h.policy.rY&&(h.policy.jT&&h.Gx("loader",{setsmb:0}),h.Jl(),h.policy.rY=!1);NWu(h,K);if(!i0(y)){var A=jd(h.videoTrack),V=jd(h.audioTrack),R=(A?A.info.XF:h.videoTrack.XF).info, m=(V?V.info.XF:h.audioTrack.XF).info,b=h.policy.Q3,U=R.mimeType+(b===void 0?"":b),S=m.mimeType,G=R.qR,W=m.qR,u;y.Bs=(u=y.gY)==null?void 0:u.addSourceBuffer(S);var E;y.KQ=U.split(";")[0]==="fakesb"?void 0:(E=y.gY)==null?void 0:E.addSourceBuffer(U);y.Do&&(y.Do.webkitSourceAddId("0",S),y.Do.webkitSourceAddId("1",U));var Ds=new s9(y.Bs,y.Do,"0",U_(S),W,!1),Fu=new s9(y.KQ,y.Do,"1",U_(U),G,!0);AFD(y,Ds,Fu)}A=H;V=K;A=A===void 0?!1:A;V=V===void 0?!1:V;XF(h.videoTrack,y.J||null,V);XF(h.audioTrack,y.Y||null, V);h.gY=y;h.gY.X=!0;A||h.resume();y.Y.V3(h.Ps,h);y.J.V3(h.Ps,h);try{h.cD()}catch(Zs){g.SJ(Zs)}p.publish("mediasourceattached")}}catch(Zs){g.UT(Zs),p.handleError(new g.px("fmt.unplayable",{msi:"1",ename:Zs&&typeof Zs==="object"&&"name"in Zs?String(Zs.name):void 0,trg:"setmediasrc"},1))}} var p=this;D=D===void 0?!1:D;F=F===void 0?!1:F;Htu(this,Z===void 0?!1:Z);this.gY=f;this.W_()&&hJ(this.gY)==="open"?I(this.gY):yFD(this.gY,I)}; g.d.y7=function(f){this.Z_.set(f.initData,f);this.a$&&(this.a$.y7(f),this.Z("html5_eme_loader_sync")||this.Z_.remove(f.initData))}; g.d.H5=function(f){this.videoData.fH=g.Wh("auto",f,!1,"u");lK(this)}; g.d.oM=function(f){var D=f.reason,F=f.Y.info,Z=f.token,I=f.videoId,p=this.Lp,z=this.videoData;if(F!==z.G){var H=!z.G;z.G=F;var K=D==="m"||D==="t";K||(D=H?"i":"a");this.V.experiments.Hs("html5_refactor_sabr_audio_format_selection_logging")?this.S0=new T2T(z,F,D,"",Z,I):(D=new T2T(z,F,D,"",Z),p.qoe&&(p=p.qoe,F=g.aZ(p.provider),aUD(p,F,D)));this.publish("internalaudioformatchange",z,!H&&K)}this.X9();this.SU.oM(f.Y.index)}; g.d.Lt=function(f){this.publish("localmediachange",f)}; g.d.S7=function(f){f=f===void 0?{}:f;var D;(D=this.loader)==null||D.S7(this.V,Va(this.videoData),f)}; g.d.Ej=function(){return this.X3.Ej()}; g.d.D7=function(f){this.xn(new g.px("staleconfig",{reason:f}))}; g.d.handleError=function(f){this.X3.handleError(f)}; g.d.mC=function(){return this.X3.mC()}; g.d.j4=function(f){this.SU.j4(f)}; g.d.Qa=function(f,D){f=f===void 0?!1:f;D=D===void 0?!1:D;var F=this,Z,I,p;return g.l(function(z){if(z.Y==1){F.loader&&F.loader.YY();F.loader&&F.loader.MR()&&xO(F);if(F.Z("html5_enable_vp9_fairplay")&&F.S$()&&(Z=F.videoData.Y)!=null)for(var H in Z.Y)Z.Y.hasOwnProperty(H)&&(Z.Y[H].Y=null,Z.Y[H].B=!1);F.cI(mz(F.playerState,2048));F.publish("newelementrequired");return f?g.r(z,ND(F),2):z.ZE(2)}F.videoData.jj()&&((I=F.loader)==null?0:I.zx)&&!vp(F)&&((p=F.isAtLiveHead())&&mj(F.videoData)?F.seekTo(Infinity, {pF:"videoPlayer_getNewElement"}):F.videoData.rU&&F.loader&&(H=F.loader,H.FF.jj&&(H.FF.rU||H.FF.G||H.FF.isPremiere?(H.seek(0,{pF:"loader_resetSqless"}),H.videoTrack.T=!0,H.audioTrack.T=!0,H.videoTrack.G=!0,H.audioTrack.G=!0):PT(H.FF)&&cq(H))));D&&F.seekTo(0,{seekSource:105});g.O(F.playerState,8)&&F.playVideo();g.Zb(z)})}; g.d.Vn=function(f){this.Gx("hgte",{ne:+f});this.videoData.S=!1;f&&this.Qa();this.loader&&u9u(this.loader)}; g.d.hA=function(f){this.Gx("newelem",{r:f});this.Qa()}; g.d.pauseVideo=function(f){f=f===void 0?!1:f;if((g.O(this.playerState,64)||g.O(this.playerState,2))&&!f)if(g.O(this.playerState,8))this.cI(b0(this.playerState,4,8));else if(this.XW())gh(this);else return;g.O(this.playerState,128)||(f?this.cI(mz(this.playerState,256)):this.cI(b0(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.lj(this.videoData)&&this.loader&&YO(this,!1)}; g.d.stopVideo=function(){this.pauseVideo();this.loader&&(YO(this,!1),this.loader.Jl())}; g.d.Kc=function(f,D){f=f===void 0?!1:f;D=D===void 0?!1:D;if(this.W_()&&D){var F;(F=this.mediaElement)==null||F.Kc()}else{var Z;(Z=this.mediaElement)==null||Z.stopVideo()}Pp(this);xO(this);g.O(this.playerState,128)||(f?this.cI(TB(TB(mz(this.playerState,4),8),16)):this.cI(Ci(this.playerState)));this.videoData.videoId&&this.V.Ir.remove(this.videoData.videoId)}; g.d.seekTo=function(f,D){D=D===void 0?{}:D;g.O(this.playerState,2)&&gh(this);D.RWY&&this.cI(mz(this.playerState,2048));if((D.seekSource===58||D.seekSource===60)&&this.Z("html5_update_vss_during_gapless_seeking")){var F=this.Lp;F.Y&&(F=F.Y,D.seekSource===58?F.Y.update():F.B&&(j4(F),h3(F).send(),F.G=NaN))}this.SU.seekTo(f,D);this.xW.sync()}; g.d.GH=function(f){this.Sj.G.J=(0,g.m5)();g.O(this.playerState,32)||(this.cI(mz(this.playerState,32,f==null?void 0:f.seekSource)),g.O(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Ft()}; g.d.yX=function(f){f=f==null?void 0:f.seekSource;g.O(this.playerState,32)?(this.cI(b0(this.playerState,16,32,f)),this.publish("endseeking")):g.O(this.playerState,2)||this.cI(mz(this.playerState,16,f));f=this.Sj.G;var D=this.videoData,F=this.playerState.isPaused();if(D.clientPlaybackNonce&&!isNaN(f.Y)){if(Math.random()<.01){F=F?"pbp":"pbs";var Z={startTime:f.Y};D.T&&(Z.cttAuthInfo={token:D.T,videoId:D.videoId});an("seek",Z);g.vk({clientPlaybackNonce:D.clientPlaybackNonce},"seek");isNaN(f.J)||Ul("pl_ss", f.J,"seek");Ul(F,(0,g.m5)(),"seek")}f.reset()}}; g.d.lj=function(f){this.yX(f)}; g.d.VB=function(){this.publish("SEEK_COMPLETE")}; g.d.VW=function(f){var D=this.Nm,F=this.videoData.clientPlaybackNonce,Z=this.playerType;if(f.scope===4){var I=f.type;if(I){var p=D.fp(),z=p.getVideoData().clientPlaybackNonce;Z===1&&(z=F);if(Z=coD(D,z)){if(F=Z.getVideoData())f.writePolicy===2&&F.sabrContextUpdates.has(I)||(f.sendByDefault&&F.Ir.add(I),F.sabrContextUpdates.set(I,f)),D.Z("html5_enable_t1_enf_on_sabr")&&(f=I===5,I=y0u(F.playerResponse),f?(f=I?1:0,oj(f,"m.p_",{}),Ot("MBSTAT",f)):f=1,f===0&&D.NR.wY("onAbnormalityDetected"))}else p.Gx("scuset", {ncpf:"1",ccpn:z,crcpn:F})}else g.UT(Error("b/380308491: contextUpdateType is undefined"))}}; g.d.Nr=function(){if(this.playerType===2)return this.Nm.Nr("")}; g.d.getCurrentTime=function(f){return this.SU.getCurrentTime(f===void 0?!1:f)}; g.d.wF=function(){return this.SU.wF()}; g.d.zm=function(){return this.SU.zm()}; g.d.uV=function(){return this.zm()}; g.d.p7=function(){return this.SU.p7()}; g.d.getPlaylistSequenceForTime=function(f){return this.videoData.getPlaylistSequenceForTime(f-this.R_())}; g.d.VZ=function(){var f=NaN;this.mediaElement&&(f=this.mediaElement.VZ());return f>=0?f:this.getCurrentTime()}; g.d.zi=function(){var f;return((f=this.videoData.Y)==null?0:f.zi)?this.videoData.Y.zi(this.getCurrentTime()-this.R_()):this.mediaElement&&(f=this.mediaElement.qV())&&(f=f.getTime(),!isNaN(f))?f/1E3+this.getCurrentTime():NaN}; g.d.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.R_():this.tZ()?this.tZ():0}; g.d.iF=function(){var f=new bEs;if(this.loader){var D=this.lE,F=this.V.Oq();F=F===void 0?!1:F;f.AO=D.xo;f.St=D.Ps;f.bandwidthEstimate=Yq(D);if(F){F=(D.N.yz()*1E3).toFixed();var Z=(D.Tx.yz()*1E3).toFixed(),I=Oy(D).toFixed(2),p=((D.S.yz()||0)*1E9).toFixed(2),z=D.B.yz().toFixed(0),H=D.rY.yz().toFixed(0),K=D.Jb.percentile(.5).toFixed(2),k=D.Jb.percentile(.92).toFixed(2),h=D.Jb.percentile(.96).toFixed(2),y=D.Jb.percentile(.98).toFixed(2);D.Y?D.Y.reset():D.Y=new h1;D.Y.add(D.zx);D.Y.add(D.interruptions.length); for(var A=0,V=D.interruptions.length-1;V>=0;V--){var R=D.interruptions[V];D.Y.add(R-A);A=R}A=0;for(V=D.G.length-1;V>=0;V--){R=D.G[V];var m=R.stamp/36E5;D.Y.add(m-A);A=m;D.Y.add(R.net/1E3);D.Y.add(R.max)}D=D.Y.s6();f.Y={ttr:F,ttm:Z,d:I,st:p,bw:z,abw:H,v50:K,v92:k,v96:h,v98:y,"int":D}}D=this.loader;D.gY&&D.gY.X&&!D.gY.wS()&&(f.Kj=pR(D.videoTrack),f.J=pR(D.audioTrack),D.policy.B&&(F=Z7(D.videoTrack),Z=Z7(D.audioTrack),I=nx(D.gY.J.Ew(),"_",5),p=nx(D.gY.Y.Ew(),"_",5),Object.assign(f.Y,{lvq:F,laq:Z,lvb:I, lab:p})));f.bandwidthEstimate=na(D.Jb);var b;(b=D.audioTrack.N)==null||b.flush();var U;(U=D.videoTrack.N)==null||U.flush()}else this.mediaElement&&(f.Kj=this.mediaElement.d$());f.AO=this.AO;f.St=this.St;f.B=this.isAtLiveHead()&&this.isPlaying()?rlc(this):NaN;b=this.SU;b=b.Y?m6(b.Y):0;f.G=b;return f}; g.d.a7=function(f,D){this.St+=f;this.AO+=D}; g.d.yF=function(){return this.mediaElement?g.lj(this.videoData)?1:EW(this.videoData)?this.isAtLiveHead()||this.lz()?1:this.SU.yF():this.mediaElement.yF():0}; g.d.Gk=function(){var f=this.Ls,D=Bp(f,"bandwidth"),F=Bp(f,"bufferhealth"),Z=Bp(f,"livelatency"),I=Bp(f,"networkactivity"),p=Wp(f,"bandwidth"),z=Wp(f,"bufferhealth"),H=Wp(f,"livelatency");f=Wp(f,"networkactivity");var K=this.A1(),k=K.droppedVideoFrames;K=K.totalVideoFrames;var h=this.getCurrentTime();if(this.a$){var y="IT/"+(this.a$.Y.getInfo()+"/"+l9(this.O2()));y+="/"+this.a$.getInfo()}else y="";var A=this.isGapless(),V=this.XJ(),R=this.N3(),m=g.OH(this),b=this.getPlayerState().state.toString(16), U=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var S=0;var G="";if(this.D5){if(this.D5.nR){G="D,";break a}S=this.D5.Ms;G=this.D5.yl.substring(0,4)}S>0?(S="AD"+S+", ",G&&(S+=G+", "),G=S):G=""}return{oJ:p,TD:z,currentTime:h,Kk:y,droppedVideoFrames:k,isGapless:A,XJ:V,Oc:R,Y2:D,J9:F,GY:Z,Kr:I,UA:H,A9:f,RX:m,Jo:b,Gq:U,yf:G,totalVideoFrames:K}}; g.d.a_=function(f){var D={};if(f===void 0?0:f){Object.assign(D,this.Lp.a_());this.mediaElement&&(Object.assign(D,this.mediaElement.a_()),f=this.A1(),D.dvf=f.droppedVideoFrames,D.tvf=f.totalVideoFrames);this.loader&&Object.assign(D,this.loader.a_());this.a$&&(D.drm=JSON.stringify(this.a$.a_()));D.state=this.playerState.state.toString(16);g.O(this.playerState,128)&&(D.debug_error=JSON.stringify(this.playerState.dB));this.C1()&&(D.prerolls=this.Sk.join(","));this.videoData.HQ&&(D.ismb=this.videoData.HQ); this.videoData.latencyClass!=="UNKNOWN"&&(D.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(D.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)D.is_mosaic=1;this.videoData.cotn&&(D.is_offline=1,D.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(D.playerResponseCpn=this.videoData.playerResponseCpn);this.Nm.isOrchestrationLeader()&&(D.leader=1);this.videoData.isLivePlayback&& (this.videoData.Y&&XY(this.videoData.Y)&&(D.segduration=XY(this.videoData.Y)),f=this.SU,D.lat=f.N?E2u(f.N.G):0,D.liveutcstart=this.videoData.liveUtcStartSeconds);D.relative_loudness=this.videoData.Bh.toFixed(3);if(f=g.OH(this))D.optimal_format=f.video.qualityLabel;D.user_qual=TN();D.release_version=q[36]}D.debug_videoId=this.videoData.videoId;return D}; g.d.addCueRange=function(f){this.Ty([f])}; g.d.removeCueRange=function(f){this.xW.cn([f])}; g.d.fv=function(){var f=this.xW;if(f.Yo.j().Z("html5_sort_cueranges_on_update")&&!(f.gB().length<=0||f.MR())){var D=f.Y;D.array.sort(D.Y)}f.sync()}; g.d.YX=function(f,D){return this.xW.YX(f,D)}; g.d.Ty=function(f,D){this.xW.Bw(f,D)}; g.d.E$=function(f){this.xW.cn(f)}; g.d.gB=function(){return this.xW.gB()||[]}; g.d.HF=function(){return this.WN}; g.d.RP=function(){return this.visibility.RP()}; g.d.ov=function(){this.mediaElement&&this.mediaElement.ov()}; g.d.l1o=function(){e4(this)}; g.d.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.d.F4=function(){g.a8(this.fu)}; g.d.z_Q=function(){this.Ft();this.publish("onLoadProgress",this.yF())}; g.d.oX=function(f){var D=f.target.Ak();if(this.mediaElement&&this.mediaElement.Ak()&&this.mediaElement.Ak()===D){dpX(this,f.type);switch(f.type){case "error":var F=this.mediaElement.JA()||"",Z=this.mediaElement.rp();if(F==="capability.changed"){this.Z("html5_restart_on_capability_change")?(this.Gx("capchg",{msg:Z}),this.Qa(!0)):ND(this);return}if(this.mediaElement.hasError()&&$rD(this.X3,F,{msg:Z,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.mR()){this.Kc();Xp(this,"unplayable"); return}break;case "durationchange":F=this.mediaElement.getDuration();isFinite(F)&&(!this.gY||F>0)&&F!==1&&this.Oe(F);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());F=this.xW;F.started=!0;F.sync();this.Lp.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":(this.ww().Y.Kp(yIE)||this.Z("html5_prevent_mobile_background_play_on_event_shared"))&&EH(this,!1);Csd(this);this.publish("onLoadedMetadata");jZX(this);F=this.zi();this.videoData.Hv&& (this.videoData.Hv=F);break;case "loadstart":jZX(this);break;case "progress":case "suspend":this.Wa.Lu();break;case "seeked":(F=this.loader)!=null&&F.policy.J&&F.BO&&(F.Gx("sdai",{skipAdSked:"1"}),F.BO=!1);break;case "playing":(this.ww().Y.Kp(yIE)||this.Z("html5_prevent_mobile_background_play_on_event_shared"))&&EH(this,!1);this.Sj.Ra("plev");this.YM&&!vp(this)&&(this.YM=!1,this.isAtLiveHead()||this.seekTo(Infinity,{pF:"videoplayer_onPlaying"}));break;case "timeupdate":(this.ww().Y.Kp(yIE)||this.Z("html5_prevent_mobile_background_play_on_event_shared"))&& EH(this,!1);F=this.mediaElement&&!this.mediaElement.getCurrentTime();Z=this.mediaElement&&this.mediaElement.FJ()===0;if(F&&(!this.hm||Z))return;this.hm=this.hm||!!this.mediaElement.getCurrentTime();k8w(this);this.Ft();if(!this.mediaElement||this.mediaElement.Ak()!==D)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.xX().length>0&&this.mediaElement.NI().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return; this.Z("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.FJ()>2||!this.mediaElement.isSeeking()&&Pi(this.mediaElement.NI(),this.mediaElement.getCurrentTime()))&&(F=this.mediaElement.a_(),F.bh=this.mediaElement.d$().toFixed(3),this.Gx("uwe",F));break;case "resize":Csd(this);this.videoData.J&&this.videoData.J.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.gj&&g.O(this.playerState,8)&&!g.O(this.playerState, 1024)&&this.getCurrentTime()===0&&g.yy){Xp(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Ak()===D){AlD(this.SU,f);this.publish("videoelementevent",f);D=this.playerState;Z=this.uP;var I=this.mediaElement;F=this.videoData.clientPlaybackNonce;if(!g.O(D,128)){var p=D.state;I=I?I:f.target;var z=I.getCurrentTime();if(!g.O(D,64)||f.type!=="ended"&&f.type!=="pause"){var H=I.getDuration();H=I.isEnded()||z>1&&Math.abs(z-H)<1.1;var K=f.type==="pause"&&I.isEnded();z=f.type=== "ended"||f.type==="waiting"||f.type==="timeupdate"&&!g.O(D,4)&&!RM(Z,z);if(K||H&&z)I.sY()>0&&I.Ak()&&(p=14);else switch(f.type){case "error":I.JA()&&(p|=128);break;case "pause":g.O(D,256)?(p^=256)||(p=64):g.O(D,32)||g.O(D,2)||g.O(D,4)||(p=4,g.O(D,1)&&g.O(D,8)&&(p|=1));break;case "playing":z=p;p=(p|8)&-1093;z&4?(p|=1,Qw(Z,I,!0)):RM(Z,I.getCurrentTime())&&(p&=-2);g.O(D,1)&&Qw(Z,I)&&(p|=1);break;case "seeking":p|=16;g.O(D,8)&&(p|=1);p&=-3;break;case "seeked":p&=-17;Qw(Z,I,!0);break;case "waiting":g.O(D, 2)||(p|=1);Qw(Z,I);break;case "timeupdate":z=g.O(D,16),H=g.O(D,4),(g.O(D,8)||z)&&!H&&RM(Z,I.getCurrentTime())&&(p=8),Qw(Z,I)&&(p|=1)}}Z=p;p=null;Z&128&&(p=f.target,I=p.JA(),z=1,I?(I==="capability.changed"&&(z=2),H="GENERIC_WITHOUT_LINK",K=p.a_(),K.mediaElem="1",K.trg="melem",/AUDIO_RENDERER/.test(p.rp())&&(H="HTML5_AUDIO_RENDERER_ERROR"),p={errorCode:I,errorMessage:g.Gp[H]||"",E_:H,C6:Ip(K),Mn:z,cpn:D.dB?D.dB.cpn:""}):p=null,p&&(p.cpn=F));D=Ci(D,Z,p)}!g.O(this.playerState,1)&&g.O(D,1)&&RNa(this,"evt"+ f.type);this.cI(D)}}}; g.d.Tob=function(f){f=f.Y.availability==="available";f!==this.WN&&(this.WN=f,this.publish("airplayavailabilitychange"))}; g.d.CJb=function(){var f=(0,g.m5)(),D=this.mediaElement.RP();this.Gx("airplay",{ia:D});!D&&!isNaN(this.OO)&&f-this.OO<2E3||(this.OO=f,D!==this.RP()&&(f=this.visibility,f.Y!==D&&(f.Y=D,f.lY()),this.Gx("airplay",{rbld:D}),this.Is()),this.publish("airplayactivechange"))}; g.d.sP=function(f){if(this.loader){var D=this.loader,F=D.B,Z=D.getCurrentTime(),I=Date.now()-F.N;F.N=NaN;F.Gx("sdai",{adfetchdone:f,d:I});f&&!isNaN(F.T)&&F.J!==3&&zv(F.loader,Z,F.T,F.X);F.policy.J?F.B=NaN:F.G=NaN;pE(F,4,F.J===3?"adfps":"adf");hj(D)}}; g.d.Kv=function(){g.Rg(this.sK);this.Th.stop();this.videoData.N=!0;this.V.EP=!0;this.V.Uq=0;var f=this.X3;if(f.videoData.J){var D=f.Uy.X,F=f.videoData.J.qR;D.B.has(F)&&(D.B.delete(F),D.Y=!0)}f.Y.stop();this.P8();g.O(this.playerState,8)&&this.cI(TB(this.playerState,65));this.U4=!1;this.Lp.d3();g.XE(this.n9);this.publish("playbackstarted");(f=g.QY("yt.scheduler.instance.clearPriorityThreshold"))?f():FM(0)}; g.d.P8=function(){var f=this.Nm.KE(),D={},F={};!Gt("pbs",this.Sj.timerName)&&Rn.measure&&Rn.getEntriesByName&&(Rn.getEntriesByName("mark_nr")[0]?L5E("mark_nr"):L5E());f.videoId&&(D.videoId=f.videoId);f.clientPlaybackNonce&&!this.Z("web_player_early_cpn")&&(D.clientPlaybackNonce=f.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(F.isPausedOnLoad=!0);F.itag=f.J?Number(f.J.itag):-1;f.Gi&&(F.preloadType=String(this.Ug?2:1));D.liveStreamMode=EJV[wf(f)];D.playerInfo=F;this.Sj.infoGel(D); if(this.loader){f=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(f.B&&(D=window.performance.getEntriesByName(f.B),D.length&&(D=D[0],f.tick("vri",D.fetchStart),f.tick("vdns",D.domainLookupEnd),f.tick("vreq",D.requestStart),f.tick("vrc",D.responseEnd))),f.J&&(D=window.performance.getEntriesByName(f.J),D.length&&(D=D[0],f.tick("ari",D.fetchStart),f.tick("adns",D.domainLookupEnd),f.tick("areq",D.requestStart),f.tick("arc",D.responseEnd))));f=f.ticks;for(var Z in f)f.hasOwnProperty(Z)&& this.Sj.tick(Z,f[Z])}}; g.d.Ft=function(f){var D=this;f=f===void 0?!1:f;if(this.mediaElement&&this.videoData){sHu(this.SU,this.isPlaying());var F=this.getCurrentTime();if(this.loader&&(g.O(this.playerState,4)&&g.lj(this.videoData)||g.O(this.playerState,32)&&G6(this.videoData)||Hay(this.loader,F),this.Z("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-Np(this.loader))>10)){var Z;this.Gx("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(Z=this.loader)==null?void 0:Np(Z)},!0)}F>5&&(this.SU.B=F); (Z=g.Da())?g.lP.lc(this.bW):g.Vu(this.bW);var I=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!I||Hv(this.videoData))&&!g.O(this.playerState,128)){var p=function(){if(D.mediaElement&&!g.O(D.playerState,128)){D.V.Oq()&&dpX(D,"pfx");var z=D.getCurrentTime();D.Z("html5_buffer_underrun_transition_fix")&&(z-=D.R_());var H=D.mediaElement.d$(),K=g.O(D.playerState,8),k=RM(D.uP,z),h=diu(D.uP,z,(0,g.m5)(),H);K&&k?D.cI(TB(D.playerState,1)):K&&h?(K=D.getDuration(),k=mj(D.videoData),K&&Math.abs(K- z)<1.1?(D.Gx("setended",{ct:z,bh:H,dur:K,live:k}),D.mediaElement.Ue()?D.seekTo(0,{pF:"videoplayer_loop",seekSource:37}):D.E9()):(D.playerState.isBuffering()||RNa(D,"progress_fix"),D.cI(mz(D.playerState,1)))):(K&&!k&&!h&&z>0&&(K=(Date.now()-D.FA)/1E3,k=D.getDuration(),z>k-1&&D.Gx("misspg",{t:z.toFixed(2),d:k.toFixed(2),r:K.toFixed(2),bh:H.toFixed(2)})),D.playerState.isPaused()&&D.playerState.isBuffering()&&D.mediaElement.d$()>5&&D.cI(TB(D.playerState,1)));D.Ft()}}; this.mediaElement.xX().length===0?this.bW=Z?g.lP.vp(p,100):g.AW(p,100):this.bW=Z?g.lP.vp(p,500):g.AW(p,500)}this.videoData.Wk=F;!f&&this.isPlaying()&&hNf(this);B2X(this.Tv,this.hk,this.ac(),this.isBackground())&&lK(this);this.publish("progresssync",f);I&&Hv(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.d.lEx=function(){this.b4("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.d.N3=function(){return this.Lp.N3()}; g.d.WJ=function(){return this.loader?this.loader.WJ():Yq(this.lE,!0)}; g.d.cI=function(f){if(!g.Mq(this.playerState,f)){var D=new g.k4(f,this.playerState);this.playerState=f;QZu(this);var F=!this.JD.length;this.JD.push(D);var Z=this.mediaElement&&this.mediaElement.isSeeking();g.hF(D,1)&&this.loader&&JOJ(this.loader);Z=D.oldState.state===8&&!Z;if(g.hF(D,1)&&Z&&g.O(this.playerState,8)&&!g.O(this.playerState,64)&&this.loader){Z=this.loader;Z.Yt=!0;if(Z.policy.m9&&Z.gY){var I,p,z,H;Z.Gx("lr_rb",{c:Z.getCurrentTime(),s:Z.isSeeking(),ab:nx(Z.gY.Y.Ew()),ala:(I=Od(Z.audioTrack))== null?void 0:I.lJ(),alr:(p=Z.audioTrack.Y)==null?void 0:p.lJ(),vb:nx(Z.gY.J.Ew()),vla:(z=Od(Z.videoTrack))==null?void 0:z.lJ(),vlr:(H=Z.videoTrack.Y)==null?void 0:H.lJ()})}Z.mf!==0&&Z.Gx("sps_rebuffer",{c:Z.getCurrentTime()});this.mediaElement&&this.mediaElement.d$()>=5&&(I=this.Tv,p=this.hk,!p.videoData.J||I.Z("html5_disable_performance_downgrade")?I=!1:(Date.now()-I.S>6E4&&(I.J=0),I.J++,I.S=Date.now(),I.J!==4?I=!1:(wsI(I,p.videoData.J),I=!0)),I&&lK(this))}(I=g.Pf(this.V.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.O(f,1)&&(g.O(f,8)||g.O(f,16))?this.HA.start(I):this.HA.stop();(js(D,8)<0||g.hF(D,1024))&&this.Th.stop();!g.hF(D,8)||this.videoData.N||g.O(D.state,1024)||this.Th.start();g.O(D.state,8)&&js(D,16)<0&&!g.O(D.state,32)&&!g.O(D.state,2)&&this.playVideo();g.O(D.state,2)&&EW(this.videoData)&&(this.Oe(this.getCurrentTime()),this.Ft(!0));g.hF(D,2)&&(this.yr(!0),this.V.Oq()&&this.Z("html5_sabr_parse_live_metadata_playback_boundaries")&&G6(this.videoData)&&this.videoData.Y&&(f={minst:""+ this.videoData.Y.ZC,cminst:""+(this.videoData.Y.qm()+this.R_()),maxst:""+this.videoData.Y.OL,hts:""+this.videoData.Y.xo,cmaxst:""+(this.videoData.Y.tZ()+this.R_())},this.Gx("sabrSeekableBoundaries",f)));g.hF(D,128)&&this.Kc();this.videoData.Y&&this.videoData.isLivePlayback&&!this.zf&&(js(D,8)<0?(f=this.videoData.Y,f.X&&f.X.stop()):g.hF(D,8)&&this.videoData.Y.resume());f=this.SU;g.XE(f.Bs.X);if(f.mediaElement)if(D.oldState.state===8&&tJ(D.state)&&D.state.isBuffering()){var K=f.mediaElement.getCurrentTime(); I=f.mediaElement.NI();p=f.Z("manifestless_post_live_ufph")||f.Z("manifestless_post_live")?YY(I,Math.max(K-3.5,0)):YY(I,K-3.5);p>=0&&K>I.end(p)-1.1&&p+10?(uK(f.Yo,f.getCurrentTime()+f.videoData.limitedPlaybackDurationInSeconds), f.b3=!0):f.videoData.isLivePlayback&&f.videoData.endSeconds>0&&(uK(f.Yo,f.getCurrentTime()+f.videoData.endSeconds),f.b3=!0));K=this.Lp;if(g.hF(D,1024)||g.hF(D,512)||g.hF(D,4))K.J&&(f=K.J,f.J>=0||(f.Y=-1,f.delay.stop())),K.qoe&&(f=K.qoe,f.S||(f.B=-1));if(K.provider.videoData.enableServerStitchedDai&&K.f4){var k;(k=K.B.get(K.f4))==null||yEc(k,D)}else K.Y&&yEc(K.Y,D);K.qoe&&(k=K.qoe,f=D.state,I=g.aZ(k.provider),p=k.getPlayerState(f),z=f.seekSource||void 0,p!==k.R$&&(k.xo||I=10&&k.playTimeSecs<=180&&(k.Y.set("qoealert",["1"]),k.JN=!0)),p!=="B"||k.R$!=="PL"&&k.R$!=="PB"||(k.isBuffering=!0),k.J=I),k.R$==="PL"&&(p==="B"||p==="S")||k.provider.V.Oq()?wD(k,I):(k.G3||p!=="PL"||(k.G3=!0,G8(k,I,k.provider.Yo.iF())),vQ(k,I)),p==="PL"&&g.XE(k.Xt),H=[p],p==="S"&&z&&H.push("ss."+z),g.SE(k,I,"vps",H),k.R$=p,k.Bs=I,k.J=I,k.G=!0),p=f.dB,g.O(f,128)&&p&&(p.C6=p.C6||"",MKX(k,I,p.errorCode, p.Mn,p.C6)),(g.O(f,2)||g.O(f,128))&&k.reportStats(I),f.isPlaying()&&!k.S&&(k.B>=0&&k.Y.set("user_intent",[k.B.toString()]),k.S=!0),WQ(k));K.J&&(k=K.J,uQu(k),k.playerState=D.state,k.J>=0&&g.hF(D,16)&&k.seekCount++,D.state.isError()&&k.send());if(F&&!this.MR())try{for(var h=g.a(this.JD),y=h.next();!y.done;y=h.next()){var A=y.value,V=this.xW;if(V.started&&(V.sync(),g.O(A.oldState,16))){D=V;var R=URD(D.Y,Math.max(D.B-2E3,0));!isNaN(R)&&R<0x7ffffffffffff&&D.G.start()}this.publish("statechange",A)}}finally{this.JD.length= 0}}}; g.d.o3=function(){this.Sj.tick("qoes")}; g.d.CJ=function(){this.SU.CJ()}; g.d.kN=function(f,D,F,Z){a:{var I=this.X3;Z=Z===void 0?"LICENSE":Z;F=F.substring(0,256);var p=zI(D);f==="drm.keyerror"&&this.a$&&this.a$.J.keys.length>1&&I.G<96&&(f="drm.sessionlimitexhausted",p=!1);var z=I.Uy.experiments.Hs("html5_retry_on_drm_unavailable"),H=I.Uy.experiments.Hs("html5_retry_on_drm_key_error"),K=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(z&&f==="drm.unavailable"||H&&f==="drm.keyerror"&&!F.match(K))I.xn("qoe.restart",{retryOnDrmError:1,e:f,detail:F}),I.Yo.Qa(!0);else{if(p)if(I.videoData.J&& I.videoData.J.video.isHdr())mrX(I,f);else{if(I.Yo.b4(f,D,Z,F),hJf(I,{detail:F}))break a}else I.xn(f,{detail:F});f==="drm.sessionlimitexhausted"&&(I.Gx("retrydrm",{sessionLimitExhausted:1}),I.G++,VEc(I.Yo))}}}; g.d.fxF=function(){var f=this,D=g.Pf(this.V.experiments,"html5_license_constraint_delay"),F=I8();D&&F?(D=new g.xX(function(){f.GK();e4(f)},D),g.N(this,D),D.start()):(this.GK(),e4(this))}; g.d.l5=function(f){this.publish("heartbeatparams",f)}; g.d.kX=function(f){this.Gx("keystatuses",rAa(f));var D="auto",F=!1;this.videoData.J&&(D=this.videoData.J.video.quality,F=this.videoData.J.video.isHdr());a:{switch(D){case "highres":case "hd2880":D="UHD2";break;case "hd2160":case "hd1440":D="UHD1";break;case "hd1080":case "hd720":D="HD";break;case "large":case "medium":case "small":case "light":case "tiny":D="SD";break;default:D="";break a}F&&(D+="HDR")}D=nt(f)?Yi(f,D):f.G.includes(D);if(this.Z("html5_enable_vp9_fairplay")){if(F)if(f.S){var Z;if((Z= this.a$)==null?0:KM(Z.Y))if((F=this.a$)==null)F=0;else{for(var I=Z=void 0,p=g.a(F.J.values()),z=p.next();!z.done;z=p.next())z=z.value,Z||(Z=lga(z,"SD")),I||(I=lga(z,"AUDIO"));F.us({sd:Z,audio:I});F=Z==="output-restricted"||I==="output-restricted"}else F=!D;if(F){this.Gx("drm",{dshdr:1});mrX(this.X3);return}}else{this.videoData.UP||(this.videoData.UP=!0,this.Gx("drm",{dphdr:1}),this.Qa(!0));return}var H;if((H=this.a$)==null?0:KM(H.Y))return}else if(H=f.S&&D,F&&!H){mrX(this.X3);return}D||Yi(f,"AUDIO")&& Yi(f,"SD")||(f=rAa(f),this.Hg?(this.publish("drmoutputrestricted"),this.Z("html5_report_fatal_drm_restricted_error_killswitch")||this.b4("drm.keyerror",2,void 0,"info."+f)):(this.Hg=!0,this.xn(new g.px("qoe.restart",Object.assign({},{retrydrm:1},f))),lK(this),VEc(this)))}; g.d.XDR=function(){if(!this.videoData.N&&this.mediaElement&&!this.isBackground()){var f="0";this.mediaElement.FJ()>0&&this.mediaElement.d$()>=5&&this.videoData.B&&this.videoData.B.Y&&(this.cI(mz(this.playerState,1)),RNa(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),f="1");QZu(this);var D=this.videoData.B;f={restartmsg:f,mfmt:!ya(this.videoData),mdrm:!(!(D&&D.videoInfos&&D.videoInfos.length&&D.videoInfos[0].Sp)||this.a$),mfmtinfo:!this.videoData.J,prerolls:this.C1()?this.Sk.join(","): "0"};if(this.a$){D=this.a$;if(D.J.size<=0){var F="ns;";D.Jb||(F+="nr;");D=F+="ql."+D.B.length}else D=rAa(D.J.values().next().value),D=Ip(D);f.drmp=D}var Z;Object.assign(f,((Z=this.loader)==null?void 0:Z.a_())||{});var I;Object.assign(f,((I=this.mediaElement)==null?void 0:I.a_())||{});this.Lp.xn("qoe.start15s",Ip(f));this.publish("loadsofttimeout")}}; g.d.Oe=function(f){this.videoData.lengthSeconds!==f&&(this.videoData.lengthSeconds=f,e4(this))}; g.d.yr=function(f,D){var F=this;f=f===void 0?!1:f;if(!this.l$)if(Gt("att_s","player_att")||Wk("att_s",void 0,"player_att"),this.Z("use_rta_for_player"))(function(){var I,p,z,H,K;return g.l(function(k){switch(k.Y){case 1:if(!(I=f)){k.ZE(2);break}return g.r(k,g.$cy(),3);case 3:I=!k.J;case 2:if(I)return k.return();g.po(k,4);p=mRT(F.Lp);if(!p)throw Error();z={};return g.r(k,g.ATD((z.cpn=F.videoData.clientPlaybackNonce,z.encryptedVideoId=F.videoData.videoId||"",z),g.Pf(F.V.experiments,"html5_att_playback_timeout_ms")|| 3E4),6);case 6:H=k.J;if(F.l$)throw Error();if(!H.challenge)throw K=H.error?"; error: "+H.error:"",g.UT(Error("Not sending atr ping; missing challenge string"+K)),Error();F.l$=!0;var h=[H.challenge];if(H.error){var y=SJe();y=unu(y).get(H.error)||0;h.push("r1c="+y)}else H.webResponse&&h.push("r1a="+H.webResponse);var A;((A=H.adblockReporting)==null?void 0:A.reportingStatus)!==void 0&&h.push("r6a="+H.adblockReporting.reportingStatus);var V;((V=H.adblockReporting)==null?void 0:V.broadSpectrumDetectionResult)!== void 0&&h.push("r6b="+H.adblockReporting.broadSpectrumDetectionResult);p(h.join("&"));Wk("att_f",void 0,"player_att");g.qC(k,0);break;case 4:g.He(k),Wk("att_e",void 0,"player_att"),g.Zb(k)}})})().then(function(){D==null||D()}); else{var Z=new g.zSc(this.videoData);if("c1a"in Z.GR&&!g.ds.isInitialized()){Wk("att_wb",void 0,"player_att");this.K9===2&&Math.random()<.01&&g.UT(Error("Botguard not available after 2 attempts"));if(f)return;if(this.K9<5){g.XE(this.cG);this.K9++;return}}(Z=g.sND(Z))?(Wk("att_f",void 0,"player_att"),CTJ(this.Lp,Z),this.l$=!0):Wk("att_e",void 0,"player_att")}}; g.d.jL=function(f){f=f===void 0?!1:f;return mj(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.lz()||g.lj(this.videoData))?this.getCurrentTime():this.tZ(f)}; g.d.ih=function(){return this.qm()}; g.d.tZ=function(f){return this.SU.tZ(f===void 0?!1:f)}; g.d.qm=function(){return this.SU.qm()}; g.d.R_=function(){return this.SU?this.SU.R_():0}; g.d.getStreamTimeOffset=function(){return this.SU?this.SU.getStreamTimeOffset():0}; g.d.PL=function(){return this.getStreamTimeOffset()===0?this.R_():this.getStreamTimeOffset()}; g.d.setPlaybackRate=function(f){var D;this.playbackRate!==f&&tdX(this.Tv,(D=this.videoData.B)==null?void 0:D.videoInfos)&&(this.playbackRate=f,lK(this));this.playbackRate=f;this.mediaElement&&this.mediaElement.setPlaybackRate(f)}; g.d.getPlaybackRate=function(){return this.playbackRate}; g.d.getPlaybackQuality=function(){var f="unknown";if(this.videoData.J&&(f=this.videoData.J.video.quality,f==="auto"&&this.mediaElement)){var D=this.qG();D&&D.videoHeight>0&&(f=MJ(D.videoWidth,D.videoHeight))}return f}; g.d.isHdr=function(){return!!(this.videoData.J&&this.videoData.J.video&&this.videoData.J.video.isHdr())}; g.d.sendVideoStatsEngageEvent=function(f,D){var F=this.Lp;F.Y?(F=iK(F.Y,"engage"),F.xo=f,F.send(D)):D&&D()}; g.d.h6=function(f){return this.Lp.h6(f)}; g.d.isAtLiveHead=function(f,D){D=D===void 0?!1:D;return mj(this.videoData)&&(this.Gc||D)?this.SU.isAtLiveHead(f):!1}; g.d.XK=function(){var f=this.tZ(),D=this.getCurrentTime(),F;(F=!mj(this.videoData))||(F=this.SU,F=!(F.Y&&F.Y.B));return F||this.lz()||isNaN(f)||isNaN(D)?0:Math.max(0,f-D)}; g.d.Qm=function(f){(this.Gc=f)||this.Th.stop();if(this.videoData.Y)if(f)this.videoData.Y.resume();else{var D=this.videoData.Y;D.X&&D.X.stop()}this.loader&&(D=this.videoData.Z("html5_disable_preload_for_ssdai_with_preroll")&&this.iM()&&this.videoData.isLivePlayback,f&&!D?this.loader.resume():YO(this,!0));g.O(this.playerState,2)||f?g.O(this.playerState,512)&&f&&this.cI(TB(this.playerState,512)):this.cI(mz(this.playerState,512));D=this.Lp;D.qoe&&(D=D.qoe,g.SE(D,g.aZ(D.provider),"stream",[f?"A":"I"]))}; g.d.DP=function(f){this.Lp.xn("player.exception",Ip({n:f.name,m:f.message}))}; g.d.Xy=wT(18);g.d.j8=wT(47);g.d.Bn=function(f){this.Lp.Bn(f)}; g.d.Y6=function(f){this.Lp.Y6(f)}; g.d.x6=function(f){this.Lp.x6(f)}; g.d.rB=wT(24);g.d.RA=wT(30);g.d.e9=function(f){this.Lp.e9(f)}; g.d.J3=function(f,D,F,Z){this.Lp.J3(f,D,F,Z)}; g.d.HN=function(){this.Gx("hidden",{},!0)}; g.d.A1=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.d.s2=function(){return this.loader?this.loader.s2():!0}; g.d.setLoop=function(f){this.loop=f;this.mediaElement&&!g.hm(this.V)&&this.mediaElement.setLoop(f)}; g.d.Ue=function(){return this.mediaElement&&!g.hm(this.V)?this.mediaElement.Ue():this.loop}; g.d.wH=function(f){this.Gx("timestamp",{o:f.toString()});this.SU.wH(f)}; g.d.Mm=function(f){this.Sj.tick(f)}; g.d.J6=function(f){return this.Sj.J6(f)}; g.d.Ra=function(f){this.Sj.Ra(f)}; g.d.Gx=function(f,D,F){this.Lp.Gx(f,D,F===void 0?!1:F)}; g.d.jE=function(f,D,F){this.Lp.Gx(f,D,F===void 0?!1:F)}; g.d.xn=function(f){this.Lp.xn(f.errorCode,Ip(f.details));f=f.errorCode;if(this.videoData.isLivePlayback&&(f==="qoe.longrebuffer"||f==="qoe.slowseek")||f==="qoe.restart"){f=this.loader?ZDD(this.loader.videoTrack):{};var D,F;this.Gx("lasoe",Object.assign(this.loader?ZDD(this.loader.audioTrack):{},(D=this.gY)==null?void 0:(F=D.Y)==null?void 0:F.vF()));var Z,I;this.Gx("lvsoe",Object.assign(f,(Z=this.gY)==null?void 0:(I=Z.J)==null?void 0:I.vF()))}if(this.Z("html5_log_centralized_player_time")){var p;this.Gx("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(p=this.loader)==null?void 0:Np(p)})}}; g.d.Y9=function(f,D,F){this.Lp.Y9(f,D,F)}; g.d.v9=function(f,D,F,Z,I,p,z,H){var K;if((K=this.videoData.Y)!=null&&K.isLive){var k=D.playerType===2?D:f,h=f.videoData.videoId,y=D.videoData.videoId;if(h&&y){K=this.Lp;if(H==null?0:H.Tq){if(K.qoe){h=K.qoe;y=H.Tq;h.reportStats();var A=h.provider.videoData.clientPlaybackNonce,V=h.provider.videoData.videoId||"",R,m=((R=h.EY)==null?void 0:R.join("."))||A,b;R=((b=h.fh)==null?void 0:b.join("."))||V;EF(h,p?4:I?2:0,y.Pr.join(".")||A,y.X5.join(".")||V,Z);h.reportStats();h.EY=y.Pr;h.fh=y.X5;h.SX=y.adFormats; h.yx=y.serializedQoeContextData;EF(h,p?5:I?3:1,m,R,F);h.reportStats()}}else if(K.qoe){b=K.qoe;R=f.cpn;A=D.cpn;V=k.videoData.G3;var U=b.provider.videoData.clientPlaybackNonce,S=b.provider.videoData.videoId;m=A!==U&&y!==S;U=R!==U&&h!==S;b.reportStats();b.adCpn&&b.adCpn!==R||(b.adCpn=U?R:"",b.xi=U?h:"",b.adFormat=U?V:void 0,EF(b,p?4:I?2:0,A,y,Z),b.reportStats(),b.adCpn=m?A:"",b.xi=m?y:"",b.adFormat=m?V:void 0,EF(b,p?5:I?3:1,R,h,F),b.reportStats())}if(H==null?0:H.PX){var G=H.PX;if((Z=K.Y)!=null){k=Z.Y.X; var W=Z.provider.V.ww().Y.Kp(ifU)||4E3;k>W&&KV(Z)}var u;(u=K.Y)!=null&&qD(u.Y);(Z=K.Y)!=null&&(Z=Z.Y,u=G.serializedStitchedClipLoggingMetadata,Z.serializedPlaybackPingContextLoggingData=G.serializedPlaybackPingContextLoggingData,Z.serializedStitchedClipLoggingMetadata=u);var E;(E=K.Y)!=null&&qD(E.Y);var Ds;(Ds=K.Y)==null||KV(Ds);(K=K.Y)!=null&&(K.S=0)}else E=f.cpn,K.B.has(E)?(Ds=K.B.get(E),h3(Ds,!0).send(),j4(Ds),E!==K.provider.videoData.clientPlaybackNonce&&(hpE(Ds),(W=K.Y)==null||KV(W),K.B.delete(E))): (K.f4=K.provider.videoData.clientPlaybackNonce,K.f4&&K.Y&&(K.B.set(K.f4,K.Y),h3(K.Y).send(),j4(K.Y))),E=D.cpn,Ds=k.videoData,Z-=this.PL(),K.B.has(E)?(G=K.B.get(E),Ds=G.B&&isNaN(G.X)?kO(G):NaN,G=Kty(G,!1),isNaN(Ds)||(G.S=Ds),G.send()):(Ds=TYI(K,K.provider,Ds,Z),K.B.set(E,Ds),yEc(Ds,new g.k4(mz(new g.du,8),new g.du)),Ds.d3(),(G=K.Y)==null||j4(G)),K.f4=E;if(this.Z("html5_unify_csi_server_stitched_transition_logging")){if(K=this.Sj,Ds=f.cpn,f=D.cpn,G=this.videoData.clientPlaybackNonce,E=D.videoData,D= (0,g.m5)(),Ds=(Ds===G?"video":"ad")+"_to_"+(f===G?"video":"ad"),Ds!=="video_to_ad"){G=Ds==="ad_to_video"?void 0:E;Z=G==null?void 0:G.yA;u={};if(E==null?0:E.T)u.cttAuthInfo={token:E.T,videoId:E.videoId};z&&(u.startTime=z);an(Ds,u);var Fu,Zs,za;z={targetVideoId:(Fu=E==null?void 0:E.videoId)!=null?Fu:"empty_video",targetCpn:f,adVideoId:(Zs=G==null?void 0:G.videoId)!=null?Zs:"empty_video",adClientPlaybackNonce:(za=Z==null?void 0:Z.cpn)!=null?za:G==null?void 0:G.clientPlaybackNonce};Z&&(z.adBreakType= Z.adBreakType,z.adType=Z.adType);g.vk(z,Ds);zp(K,D,Ds)}}else Fu=this.Sj,K=this.videoData.clientPlaybackNonce,Zs=(0,g.m5)(),za=D.videoData,f=(f.cpn===K?"video":"ad")+"_to_"+(D.cpn===K?"video":"ad"),K={},za.T&&(K.cttAuthInfo={token:za.T,videoId:za.videoId}),z&&(K.startTime=z),an(f,K),g.vk({targetVideoId:za.videoId,targetCpn:D.cpn,isSsdai:!0},f),z||zp(Fu,Zs,f)}}else g.Ch(this.logger,360717806,"SSTEvent for nonSS")}; g.d.rD=function(){var f=this.Nm,D=f.Ks;f.Ks=[];return D}; g.d.BJ=function(f){this.videoData.UN=!0;this.xn(new g.px("sabr.fallback",f));this.Qa(!0)}; g.d.Ez=function(f,D){this.videoData.Nc=!0;if(D===void 0||D)this.xn(new g.px("qoe.restart",f)),this.Qa(!0)}; g.d.Ip=function(f){this.Gx("sdai",{aftimeout:f});this.xn(new g.px("ad.fetchtimeout",{timeout:f}))}; g.d.M_=function(f,D){this.Gx("timelineerror",f);f=new g.px("dai.timelineerror",f);D?this.b4("dai.timelineerror",1,"RETRYABLE_ERROR",Ip(f.details)):this.xn(f)}; g.d.UQ=function(){return g.aZ(this.Lp.provider)}; g.d.getPlayerSize=function(){return this.YQ.getPlayerSize()}; g.d.nw=function(){return this.YQ.nw()}; g.d.uv=function(){return this.Sj}; g.d.Vq=function(){return this.Nm.Vq()}; g.d.getVolume=function(){return this.Nm.getVolume()}; g.d.zX=function(){return this.Nm.zX()}; g.d.isMuted=function(){return this.Nm.isMuted()}; g.d.wl=function(){return this.Nm.wl()}; g.d.e5=function(){this.zf=!0}; g.d.Z=function(f){return this.V.Z(f)}; g.d.ww=function(){return this.V.ww()}; g.d.H9=function(f,D,F,Z,I){this.Gx("xvt",{m:f,g:D?1:0,tt:F?1:0,np:Z?1:0,c:I})}; g.d.gK=function(){var f;(f=this.loader)==null||f.resume()}; g.d.iM=function(){return g.e0(this.Sk,"ad")}; g.d.LR=function(){var f=this.getCurrentTime(),D=f-this.R_();var F=this.mediaElement?DT(this.mediaElement.NI()):0;F=Math.floor(Math.max(F-D,0))+100;var Z;return((Z=this.loader)==null?0:Z.LR(D,F))?(this.Gx("sdai",{skipad:1,ct:D.toFixed(3),adj:F.toFixed(3)}),G6(this.videoData)&&this.loader.seek(D+F,{seekSource:89,pF:"videoplayer_skipServerStitchedAd"}),V1u(this.SU,f),!0):!1}; g.d.Oq=function(){return this.V.Oq()}; g.d.uM=function(){if(this.Z("html5_generate_content_po_token"))return this.videoData.UF||"";this.Nm.CY();return this.V.KK||""}; g.d.YE=function(){if(this.videoData.videoId)return this.videoData.EP}; g.d.Ww=function(){return this.videoData.videoId}; g.d.Y7=function(){return this.Nm.iW}; g.d.NH=function(){return this.U4}; g.d.qN=function(){return this.Nm.qN()}; g.d.FD=function(f,D,F){this.cI(mz(this.playerState,16,F));this.SU.FD(f,D,F)}; g.d.prefetchKeyPlay=function(f,D){var F;(F=this.loader)==null||F.prefetchKeyPlay(f,D)}; g.d.N9=function(f){return this.SU.N9(f)}; g.d.LP=function(){this.SU.LP()}; g.d.R3=function(f,D){var F=this.Z("html5_generate_content_po_token")?this.videoData:void 0;this.Nm.R3(f,D,F)}; g.d.fB=function(f,D){this.Lp.fB(f,D)}; g.d.HK=function(){return this.Lp.HK()}; g.d.XJ=function(){return this.Nm.XJ()}; g.d.Bo=function(){return this.Nm.Bo(this)}; g.d.Qy=function(){this.DG=!0}; g.d.SI=function(f){var D;(D=this.loader)==null||D.SI(f)}; g.d.M4=function(f){this.SU.M4(f)}; var f5y={primary:"Primary",secondary:"Secondary"};g.C(TDs,z9);g.C(f7,jG);f7.prototype.Y=function(f){f&&i2(this,this.U.getLoopVideo());this.U.logVisibility(this.element,f)}; f7.prototype.logClick=function(){this.U.logClick(this.element)}; f7.prototype.onLoopChange=function(f){i2(this,f)}; f7.prototype.J=function(f){this.U.setLoopVideo(f)};g.C(btE,z9);g.C(MEJ,z9);g.d=MEJ.prototype;g.d.seekToChapterWithAnimation=function(f){var D=this;if(g.CN(this.api)&&!(f<0)){var F=this.api.getVideoData(),Z=F.Xt;if(Z&&f=0)return;D=~D;g.zD(this.items,D,0,f);Sc(this.menuItems.element,f.element,D)}f.subscribe("size-change",this.kJ,this);this.menuItems.publish("size-change")}; g.d.nT=function(){ppE(this)||this.items[0].focus();return!0}; g.d.Et=function(){this.items[this.items.length-1].focus();return!0}; g.d.Sx=function(f){f.unsubscribe("size-change",this.kJ,this);this.MR()||(g.no(this.items,f),this.menuItems.element.removeChild(f.element),this.menuItems.publish("size-change"))}; g.d.kJ=function(){this.menuItems.publish("size-change")}; g.d.focus=function(){for(var f=0,D=0;D1&&g.$K(this)}; g.d.CU=function(){HVy(this);this.hN&&(sMc(this),g.kH(this.element,this.size))}; g.d.C7=function(){var f=this.Y.pop();qHs(this,f,this.Y[this.Y.length-1],!0)}; g.d.VK=function(f){if(!f.defaultPrevented)switch(f.keyCode){case 27:this.Fq();f.preventDefault();break;case 37:this.Y.length>1&&this.C7();f.preventDefault();break;case 39:f.preventDefault()}}; g.d.focus=function(){this.Y.length&&this.Y[this.Y.length-1].focus()}; g.d.Ey=function(){g.nN.prototype.Ey.call(this);this.B&&this.B.dispose();this.G&&this.G.dispose()};g.C(VO,g.yO);VO.prototype.open=function(f,D){this.initialize(f.items)&&this.Rc(D,!!D)}; VO.prototype.initialize=function(f){g.hp(this.G8);if(f===void 0||f.length===0)return!1;var D=f.length;f=g.a(f);for(var F=f.next();!F.done;F=f.next())this.tN(F.value,D--);return!0}; VO.prototype.tN=function(f,D){f.menuNavigationItemRenderer?kQJ(this,f.menuNavigationItemRenderer,D):f.menuServiceItemRenderer&&jMu(this,f.menuServiceItemRenderer,D)};g.C(RL,kK);g.d=RL.prototype;g.d.Ev=function(f){f.target!==this.dismissButton.element&&f.target!==this.overflowButton.element&&(this.FW(),this.onClickCommand&&this.U.wY("innertubeCommand",this.onClickCommand))}; g.d.pm=function(){this.enabled=!1;this.N.hide()}; g.d.XH=function(){return!!this.Y&&this.enabled}; g.d.onVideoDataChange=function(f,D){this.bk(D);if(this.Y){this.sf();a:if(!this.isCounterfactual){var F,Z,I;this.banner.update({title:(F=this.Y)==null?void 0:F.title,subtitle:(Z=this.Y)==null?void 0:Z.subtitle,metadata:(I=this.Y)==null?void 0:I.metadataText});var p;this.onClickCommand=g.Q((p=this.Y)==null?void 0:p.onTap,a6);var z;if(f=g.Q((z=this.Y)==null?void 0:z.onOverflow,a6))this.T=g.Q(f,onE);var H;if((H=this.Y)==null?0:H.thumbnailImage){var K,k;z=((K=this.Y)==null?void 0:(k=K.thumbnailImage)== null?void 0:k.sources)||[];if(z.length===0)break a;this.thumbnailImage.update({url:z[0].url})}else{var h;if((h=this.Y)==null?0:h.thumbnailIconName){var y;this.thumbnailIcon.update({icon:(y=this.Y)==null?void 0:y.thumbnailIconName})}}var A;this.shouldShowOverflowButton=!((A=this.Y)==null||!A.shouldShowOverflowButton);var V;this.shouldHideDismissButton=!((V=this.Y)==null||!V.shouldHideDismissButton)}var R;this.banner.element.setAttribute("aria-label",((R=this.Y)==null?void 0:R.a11yLabel)||"");var m; this.Ps=(m=this.Y)==null?void 0:m.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;h1y(this)}}; g.d.qIy=function(){this.isVisible=!0;h1y(this)}; g.d.tUF=function(){this.isVisible=!1;h1y(this)}; g.d.qW=function(){kK.prototype.qW.call(this);this.B&&this.U.logVisibility(this.banner.element,this.isVisible)}; g.d.FW=function(){kK.prototype.FW.call(this,!1);this.B&&this.U.logClick(this.banner.element)}; g.d.X1=function(f){this.X||(this.X=new VO(this.U),g.N(this,this.X));var D,F;if((D=this.T)==null?0:(F=D.menu)==null?0:F.menuRenderer)this.X.open(this.T.menu.menuRenderer,f.target),f.preventDefault()}; g.d.bk=function(){}; g.d.sf=function(){}; g.d.Ey=function(){this.U.WD("suggested_action_view_model");kK.prototype.Ey.call(this)};g.C(dP,RL); dP.prototype.bk=function(f){var D,F,Z;this.productUpsellSuggestedActionViewModel=g.Q((D=f.getWatchNextResponse())==null?void 0:(F=D.playerOverlays)==null?void 0:(Z=F.playerOverlayRenderer)==null?void 0:Z.suggestedActionViewModel,CXL);var I;if((I=this.productUpsellSuggestedActionViewModel)==null?0:I.content){var p;this.Y=g.Q((p=this.productUpsellSuggestedActionViewModel)==null?void 0:p.content,sUA)}var z,H;if(this.B=!!((z=this.productUpsellSuggestedActionViewModel)==null?0:(H=z.loggingDirectives)==null? 0:H.trackingParams)){var K,k;this.U.setTrackingParams(this.banner.element,((K=this.productUpsellSuggestedActionViewModel)==null?void 0:(k=K.loggingDirectives)==null?void 0:k.trackingParams)||null)}var h;this.isCounterfactual=!((h=this.productUpsellSuggestedActionViewModel)==null||!h.isCounterfactualServing)}; dP.prototype.sf=function(){var f=[],D,F=g.a(((D=this.productUpsellSuggestedActionViewModel)==null?void 0:D.ranges)||[]);for(D=F.next();!D.done;D=F.next()){var Z=D.value;Z&&(D=Number(Z.startTimeMilliseconds),Z=Number(Z.endTimeMilliseconds),isNaN(D)||isNaN(Z)||f.push(new g.Jm(D,Z,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.U.Bw(f)};g.C(y3T,z9);g.C(QO,z9);QO.prototype.onVideoDataChange=function(f,D){var F=this;if(!DU(D)&&(f==="newdata"&&V4w(this),this.Y&&f==="dataloaded")){this.Y=!1;var Z;DP(f5(A8(this.api.j(),(Z=this.api.getVideoData())==null?void 0:g.Pt(Z)),function(I){ThI(F,I)}),function(){F.Y=!0})}}; QO.prototype.Ge=function(){var f=this;if(g.hm(this.api.j())){var D,F=g.y4(this.api.j(),(D=this.api.getVideoData())==null?void 0:g.Pt(D));return f5(Ok(F),function(Z){var I=xu();X9(I,Z);return f.api.Ge(I)})}return Ok(this.api.Ge())};g.C(g.C7,g.Fj);g.d=g.C7.prototype;g.d.open=function(){g.Ap(this.x8,this.Qj)}; g.d.bv=function(f){M4E(this);var D=this.options[f];D&&(D.element.setAttribute("aria-checked","true"),this.setContent(this.gQ(f)),this.B=f)}; g.d.cR=function(f){g.hp(this.Qj);for(var D={},F=!1,Z=0;Z=0?this.Y.playbackRate:1}catch(f){return 1}}; g.d.setPlaybackRate=function(f){this.getPlaybackRate()!==f&&(this.Y.playbackRate=f);return f}; g.d.Ue=function(){return this.Y.loop}; g.d.setLoop=function(f){this.Y.loop=f}; g.d.canPlayType=function(f,D){return this.Y.canPlayType(f,D)}; g.d.isPaused=function(){return this.Y.paused}; g.d.isSeeking=function(){return this.Y.seeking}; g.d.isEnded=function(){return this.Y.ended}; g.d.qZ=function(){return this.Y.muted}; g.d.QO=function(f){jx();this.Y.muted=f}; g.d.xX=function(){return this.Y.played||O_([],[])}; g.d.NI=function(){try{var f=this.Y.buffered}catch(D){}return f||O_([],[])}; g.d.XY=function(){return this.Y.seekable||O_([],[])}; g.d.qV=function(){var f=this.Y;return f.getStartDate?f.getStartDate():null}; g.d.getCurrentTime=function(){return this.Y.currentTime}; g.d.setCurrentTime=function(f){this.Y.currentTime=f}; g.d.getDuration=function(){return this.Y.duration}; g.d.load=function(){var f=this.Y.playbackRate;try{this.Y.load()}catch(D){}this.Y.playbackRate=f}; g.d.pause=function(){this.Y.pause()}; g.d.play=function(){var f=this.Y.play();if(!f||!f.then)return null;f.then(void 0,function(){}); return f}; g.d.FJ=function(){return this.Y.readyState}; g.d.sY=function(){return this.Y.networkState}; g.d.wp=function(){return this.Y.error?this.Y.error.code:null}; g.d.rp=function(){return this.Y.error?this.Y.error.message:""}; g.d.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Y instanceof window.HTMLVideoElement&&this.Y.getVideoPlaybackQuality)return this.Y.getVideoPlaybackQuality();if(this.Y){var f=this.Y,D=f.webkitDroppedFrameCount;if(f=f.webkitDecodedFrameCount)return{droppedVideoFrames:D||0,totalVideoFrames:f}}return{}}; g.d.RP=function(){return!!this.Y.webkitCurrentPlaybackTargetIsWireless}; g.d.ov=function(){return!!this.Y.webkitShowPlaybackTargetPicker()}; g.d.togglePictureInPicture=function(){var f=this.Y,D=window.document;window.document.pictureInPictureEnabled?this.Y!==D.pictureInPictureElement?f.requestPictureInPicture():D.exitPictureInPicture():kY()&&f.webkitSetPresentationMode(f.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.d.pG=function(){return jiu(this.Y)}; g.d.getSize=function(){return g.jQ(this.Y)}; g.d.setSize=function(f){g.kH(this.Y,f)}; g.d.getVolume=function(){return this.Y.volume}; g.d.setVolume=function(f){jx();this.Y.volume=f}; g.d.Xb=function(f){this.J[f]||(this.Y.addEventListener(f,this.listener),this.J[f]=this.listener)}; g.d.setAttribute=function(f,D){this.Y.setAttribute(f,D)}; g.d.removeAttribute=function(f){this.Y.removeAttribute(f)}; g.d.hasAttribute=function(f){return this.Y.hasAttribute(f)}; g.d.Yb=wT(53);g.d.Mk=wT(56);g.d.Da=wT(59);g.d.MG=wT(62);g.d.OY=function(){return CC(this.Y)}; g.d.Iu=function(f){g.IC(this.Y,f)}; g.d.KI=function(f){return g.Zx(this.Y,f)}; g.d.Zz=function(){return g.Ua(document.body,this.Y)}; g.d.audioTracks=function(){var f=this.Y;if("audioTracks"in f)return f.audioTracks}; g.d.Ey=function(){for(var f=g.a(Object.keys(this.J)),D=f.next();!D.done;D=f.next())D=D.value,this.Y.removeEventListener(D,this.J[D]);Vw.prototype.Ey.call(this)}; g.d.M6=function(f){this.Y.disableRemotePlayback=f};g.C(wP,g.x);g.C(B0,g.x);B0.prototype.show=function(){g.x.prototype.show.call(this);this.u3()}; B0.prototype.hide=function(){g.x.prototype.hide.call(this);this.delay.stop();this.G.stop()}; B0.prototype.u3=function(){var f=(0,g.m5)(),D=EOu(this.NR);W0(this.Y,D.bandwidth_samples);W0(this.T,D.network_activity_samples);W0(this.B,D.live_latency_samples);W0(this.J,D.buffer_health_samples);var F={};D=g.a(Object.entries(D));for(var Z=D.next();!Z.done;Z=D.next()){var I=g.a(Z.value);Z=I.next().value;I=I.next().value;this.S[Z]!==I&&(F[Z]=" "+String(I));this.S[Z]=I}this.update(F);f=(0,g.m5)()-f>25?5E3:500;this.delay.start(f)}; B0.prototype.N=function(){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.G.start(2E4)};g.C(Nhs,z9);g.C(rP,g.J);rP.prototype.Y=function(){var f=(0,g.m5)()-this.startTime;f=fthis.G[f])&&(this.Y=f,this.IM())}; g.d.onCueRangeExit=function(f){var D=INE(this,f);D&&this.Y===f&&this.api.wY("innertubeCommand",D);EO(this);this.Y=void 0}; g.d.lj=function(f){this.B=f}; g.d.VB=function(){this.IM();this.B=void 0}; g.d.IM=function(){if(this.Y!==void 0){var f=(f=l3(this,this.Y))&&f.onCueRangeEnter?w4(f.onCueRangeEnter):void 0;var D=l3(this,this.Y);a:if(D&&D.additionalTrigger){var F=g.a(D.additionalTrigger);for(var Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,Z.type){var I=void 0,p=void 0;if((I=this.zx[Z.type])==null?0:I((p=Z.args)!=null?p:{})){F=!0;break a}}F=!1}else F=!0;f&&F&&(this.api.wY("innertubeCommand",f),p0a(this,D),this.G[this.Y]!==void 0&&this.G[this.Y]++,this.Jb=!0)}}; g.d.Ey=function(){this.timelyActions=this.B=this.Y=this.videoId=void 0;this.G={};this.cn();EO(this);z9.prototype.Ey.call(this)};g.C(qOw,z9);g.C(Jp,jG);Jp.prototype.G=function(f){this.B(f?2:1)}; Jp.prototype.oG=function(){var f=this.U.getPresentingPlayerType();f===2||f===3?this.Y&&(this.Y=!1,this.x8.Sx(this)):(f=this.getVoiceBoostState(),f!==1?(f===0?(i2(this,this.J()===2),this.setEnabled(!0)):(i2(this,!1),this.setEnabled(!1)),this.Y||(this.x8.tN(this),this.Y=!0)):this.Y&&(this.x8.Sx(this),this.Y=!1))}; Jp.prototype.Ey=function(){this.x8.Sx(this);jG.prototype.Ey.call(this)};g.C(u3,z9);u3.prototype.getVoiceBoostUserPreference=function(){return this.Y}; u3.prototype.setVoiceBoostUserPreference=function(f){this.api.Gx("vb_set",{pref:f});g.w0("yt-player-voice-boost",f,31536E4);f!==this.Y&&(this.Y=f,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.Is(),this.api.X9())}; u3.prototype.getVoiceBoostState=function(){return this.api.M9(1)}; u3.prototype.updateEnvironmentData=function(){this.api.j().S3=this.Y};g.C(gP,z9);gP.prototype.Ey=function(){this.N&&(g.Rg(this.N),this.N=void 0);z9.prototype.Ey.call(this)}; gP.prototype.CY=function(){(this.J?!this.Y:this.B)&&Xz(this)}; gP.prototype.Cw=function(f,D,F){var Z=this;if(KpI(f)){var I=F||"";if(this.Y)D=OO(this,I),ksw(f,D);else{var p=new g.Hc;D.push(p.promise);this.X.promise.then(function(){var z=OO(Z,I);ksw(f,z);p.resolve()})}}}; gP.prototype.Nk=function(f){var D=this;if(this.J||this.B)f.UF=OO(this,f.videoId),this.Y||(this.G=new $P,this.X.promise.then(function(){D.Sj.J6("pot_if");f.UF=OO(D,f.videoId)}))};g.C(n7,g.x);g.d=n7.prototype;g.d.Q0=function(){var f=this.U.getVideoData(1),D,F,Z=(F=((f==null?0:(D=f.suggestions)==null?0:D.length)?f.suggestions:(f==null?0:g.jb(f))?[g.jb(f)]:[])[0])==null?void 0:F.ut("mqdefault.jpg");this.J&&Z&&g.Dx(this.J,"background-image",Z?'url("'+Z+'")':"")}; g.d.onClick=function(){this.U.logClick(this.element)}; g.d.uJ=function(f){this.VL([1,2].includes(f));C3T(this,f)}; g.d.VL=function(f){g.x.prototype.VL.call(this,f);this.element.setAttribute("aria-hidden",String(!f));f&&this.Q0()}; g.d.Ey=function(){g.x.prototype.Ey.call(this)};g.C(g.P0,g.x);g.P0.prototype.select=function(){this.api.As(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.QX||void 0)&&this.api.logClick(this.element)}; g.P0.prototype.onClick=function(f){if(g.LM(this.api.j())&&this.api.Z("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var D=this.suggestion.wQ(),F={};g.lC(this.api,F);D=g.tL(D,F);g.AA(D,this.api,f)}else g.hA(f,this.api,this.J,this.suggestion.sessionData||void 0)&&this.select()}; g.P0.prototype.onKeyPress=function(f){switch(f.keyCode){case 13:case 32:f.defaultPrevented||(this.select(),f.preventDefault())}}; g.P0.prototype.onVideoDataChange=function(){var f=this.api.getVideoData(),D=this.api.j();this.J=f.Yn?!1:D.G};g.C(TPu,g.x);g.d=TPu.prototype;g.d.Ey=function(){this.hide();g.a8(this.S);g.iD(this.stills);this.stills.length=0;this.B&&(this.B.remove(),this.B=void 0);this.Y&&(this.Y.remove(),this.Y=void 0);this.J&&(this.J.remove(),this.J=void 0);g.x.prototype.Ey.call(this)}; g.d.setCommentsButton=function(f){f!==this.Y&&(this.Y&&this.Y.remove(),this.Y=f)&&(g.IC(this.Y,"ytp-fullscreen-grid-action-button"),this.N.appendChild(this.Y))}; g.d.setDescriptionButton=function(f){f!==this.J&&(this.J&&this.J.remove(),this.J=f)&&(g.IC(this.J,"ytp-fullscreen-grid-action-button"),Sc(this.N,this.J,0))}; g.d.T7=function(f){this.xo&&this.xo(f)}; g.d.onVideoDataChange=function(){if(!this.KQ){this.videoData=this.player.getVideoData(1);var f,D,F,Z,I;var p=(((f=this.videoData)==null?0:(D=f.suggestions)==null?0:D.length)?(F=this.videoData)==null?void 0:F.suggestions:((Z=this.videoData)==null?0:g.jb(Z))?[(I=this.videoData)==null?void 0:g.jb(I)]:[]).slice(0,18);if((f=this.Bs)&&this.G)if(g.tB(f),p.length)for(this.stills.length>p.length&&g.iD(this.stills.splice(p.length)),this.stills.length=p.length,D=0;D=0;f--)this.features[f].dispose();this.features.length=0;g.J.prototype.Ey.call(this)};Gsu.prototype.reset=function(){this.Y=this.J=NaN};g.d=w0a.prototype;g.d.reset=function(){t7(this.timerName)}; g.d.tick=function(f,D){Ul(f,D,this.timerName)}; g.d.J6=function(f){return wg(f,void 0,this.timerName)}; g.d.Ra=function(f){g.GB(f,void 0,this.timerName)}; g.d.infoGel=function(f){g.vk(f,this.timerName)};g.C(rpf,g.zu);g.d=rpf.prototype;g.d.hasNext=function(f){return this.loop||!!f||this.index+1=0}; g.d.setShuffle=function(f){this.shuffle=f;f=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var D=0;D=D.top&&f.right<=D.right&&f.bottom<=D.bottom&&f.left>=D.left))return}MU(this,2,!1)}; g.d.r9=function(f){var D=new g.FA(f.pageX,f.pageY);Zm(D,this.G)||(this.G=D,(f=f.target)&&this.P6(f)&&(MU(this,4,!0),this.Y.DK(this.B),this.B=this.Y.D(this.target,"mouseover",this.tK),this.S=this.Y.D(this.target,"mouseout",this.tK)))}; g.d.tK=function(f){f=f.relatedTarget;f&&this.P6(f)||(this.G=new g.FA(NaN,NaN),Cbf(this))}; g.d.CEd=function(){MU(this,1,!0)}; g.d.WS=function(f){f=f.target;f instanceof Element&&!(f.tabIndex>0)||MU(this,1,!0)}; g.d.qg=function(){this.T=!0;this.Y.DK(this.X);this.X=this.Y.D(document,"mouseup",this.ZN)}; g.d.ZN=function(){this.T=!1;MU(this,8,!1);this.Y.DK(this.X);this.X=this.Y.D(this.target,"mousedown",this.qg)}; g.d.s8=function(f){if(f=(f=f.changedTouches)&&f[0])this.zx=f.identifier,this.Y.DK(this.N),this.N=this.Y.D(this.target,"touchend",this.TV,void 0,!0),MU(this,1024,!0)}; g.d.TV=function(f){if(f=f.changedTouches)for(var D=0;D1280||I>720)if(D=Z.ut("maxresdefault.jpg"))break;if(p>640||I>480)if(D=Z.ut("maxresdefault.jpg"))break;if(p>320||I>180)if(D=Z.ut("sddefault.jpg")||Z.ut("hqdefault.jpg")||Z.ut("mqdefault.jpg"))break;if(D=Z.ut("default.jpg"))break}g.oe(f)&&(f=new Image,f.addEventListener("load", function(){NtD()}),f.src=D?D:"",this.api.uv().tick("ftr")); this.G.style.backgroundImage=D?"url("+D+")":""};g.C(g.vm,g.x);g.vm.prototype.resize=function(){}; g.vm.prototype.J=function(f){var D=this;this.B=!1;bSE(this);var F=f.E_,Z=this.api.j();F!=="GENERIC_WITHOUT_LINK"||Z.T?F==="TOO_MANY_REQUESTS"?(Z=this.api.getVideoData(),this.setContent(wR(this,"TOO_MANY_REQUESTS_WITH_LINK",Z.wQ(),void 0,void 0,void 0,!1))):F!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Z.T?this.api.j().Z("html5_enable_bandaid_error_screen")&&F==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Z.T?(Z=Z.hostLanguage,f="//support.google.com/youtube?p=videoError",Z&&(f=g.tL(f,{hl:Z})),this.setContent(wR(this, "HTML5_SPS_UMP_STATUS_REJECTED",f))):this.api.j().Z("enable_adb_handling_in_sabr")&&F==="BROWSER_OR_EXTENSION_ERROR"&&!Z.T?(Z=Z.hostLanguage,f="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Z&&(f=g.tL(f,{hl:Z})),this.setContent(wR(this,"BROWSER_OR_EXTENSION_ERROR",f))):this.setContent(g.a2(f.errorMessage)):this.setContent(wR(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(f=Z.hostLanguage,F= "//support.google.com/youtube/?p=player_error1",f&&(F=g.tL(F,{hl:f})),this.setContent(wR(this,"GENERIC_WITH_LINK_AND_CPN",F,!0)),Z.gw&&!Z.G&&TRf(this,function(p){if(g.hA(p,D.api,!Ie(D.api.j()))){p={as3:!1,html5:!0,player:!0,cpn:D.api.getVideoData().clientPlaybackNonce};var z=D.api;z.Ep("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:p});z.isFullscreen()&&z.toggleFullscreen()}})); if(this.B){var I=this.fQ("ytp-error-link");I&&(this.api.createClientVe(I,this,216104),this.api.logVisibility(I,!0),TRf(this,function(){D.api.logClick(I)}))}}; var mUJ=/([^<>]+)<\/a>/;g.C(Mpd,g.x);Mpd.prototype.Np=function(f,D,F){F=F===void 0?!1:F;switch(D){case 1:Wm(this,f,this.B,F);break;case 2:Wm(this,f,this.G,F);break;case 3:Wm(this,f,this.Y,F);break;case 4:Wm(this,f,this.J,F)}};g.C(tpa,g.x);g.d=tpa.prototype;g.d.onClick=function(f){this.innertubeCommand?(this.U.wY("innertubeCommand",this.innertubeCommand),f.preventDefault()):g.hA(f,this.U,!0);this.U.logClick(this.element)}; g.d.onVideoDataChange=function(f,D){cYw(this,D);this.R$&&UUa(this,this.R$)}; g.d.Co=function(f){var D=this.U.getVideoData();this.videoId!==D.videoId&&cYw(this,D);this.Y&&UUa(this,f.state);this.R$=f.state}; g.d.Rc=function(){this.fade.show();this.U.publish("paidcontentoverlayvisibilitychange",!0);this.U.logVisibility(this.element,!0)}; g.d.Fq=function(){this.fade.hide();this.U.publish("paidcontentoverlayvisibilitychange",!1);this.U.logVisibility(this.element,!1)};g.C(Bm,g.x);Bm.prototype.hide=function(){this.Y.stop();this.message.style.display="none";g.x.prototype.hide.call(this)}; Bm.prototype.onStateChange=function(f){this.uJ(f.state)}; Bm.prototype.uJ=function(f){if(g.O(f,128)||this.api.NH())var D=!1;else{var F;D=this.api.Z("web_watch_enable_multiview_manager")&&((F=this.api.getVideoData())==null?0:DU(F))?!1:g.O(f,16)||g.O(f,1)?!0:!1}D?this.Y.start():this.hide()}; Bm.prototype.J=function(){this.message.style.display="block"};g.C(rR,g.nN);rR.prototype.onMutedAutoplayChange=function(f){this.J&&(f?(v_s(this),this.Rc()):(this.Y&&this.logClick(),this.Fq()))}; rR.prototype.ZY=function(f){this.api.isMutedByMutedAutoplay()&&g.hF(f,2)&&this.Fq()}; rR.prototype.onClick=function(){this.api.unMute();this.logClick()}; rR.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.C(g.LS,g.ia);g.d=g.LS.prototype;g.d.init=function(){var f=this.api,D=f.getPlayerStateObject();this.MW=f.getPlayerSize();this.cI(D);this.KG();this.bE();this.api.publish("basechromeinitialized",this);this.B$()&&this.api.publish("standardControlsInitialized")}; g.d.onVideoDataChange=function(f,D){var F=this.kY!==D.videoId;if(F||f==="newdata")f=this.api,f.isFullscreen()||(this.MW=f.getPlayerSize());F&&(this.kY=D.videoId,F=this.La,F.Tx=3E3,MU(F,512,!0),this.KG());this.api.Z("web_render_jump_buttons")&&D.showSeekingControls&&(this.XM=572)}; g.d.uds=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.d.qS=function(){var f=this.api.zt()&&this.api.VY(),D=this.api.uw();return this.p9||f||this.N1||D}; g.d.jt=function(){var f=!this.qS();g.qI(this.api.getRootNode(),"ytp-menu-shown",!f)}; g.d.P6=function(f){try{if(!g.Ua(this.api.getRootNode(),f))return!1}catch(D){return!1}for(;f&&!GR(f);)f=f===this.api.getRootNode()?null:f.parentElement||null;return!!f}; g.d.K0=function(f){var D=this.api.getRootNode();g.qI(D,"ytp-autohide",f);g.qI(D,"ytp-autohide-active",!0);this.Nx.start(f?250:100);f&&(this.MK=!1,g.zP(D,"ytp-touch-mode"));this.VM=!f;this.api.Hm(!f);this.api.Z("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",f)}; g.d.Gd=function(){var f=this.api.getRootNode();g.qI(f,"ytp-autohide-active",!1)}; g.d.Vxx=function(){this.GL=!0}; g.d.pwr=function(f){if(this.api.j().Z("player_doubletap_to_seek")||this.api.j().S)this.GL=!1,this.KY&&this.DK(this.KY),this.c9===0&&lb(this,f)?(this.dn(),this.xl.start(),this.KY=this.D(this.api.sy(),"touchmove",this.Vxx,void 0,!0)):this.xl.stop();W4u(this)&&lb(this,f)&&!this.api.j().S&&Gpa(this);var D=this.XQ.NL();if(!g.LM(this.api.j())&&wk&&BRw(this,f))D&&f.preventDefault();else if(this.MK=!0,g.IC(this.api.getRootNode(),"ytp-touch-mode"),this.La.Jc(),this.api.j().Z("player_doubletap_to_seek")||this.api.j().S)if(D= this.api.getPlayerStateObject(),!(!this.api.H_()||g.O(D,2)&&g.Wv(this.api)||g.O(D,64))){D=Date.now()-this.vU;this.c9+=1;if(D<=350){this.Gl=!0;D=this.api.getPlayerSize().width/3;var F=this.api.getRootNode().getBoundingClientRect(),Z=f.targetTouches[0].clientX-F.left;F=f.targetTouches[0].clientY-F.top;var I=(this.c9-1)*10;Z>0&&ZD*2&&Z=650,Z=f.width<528;this.La.resize();if(this.api.Z("web_player_use_screen_width_for_big_mode")){var I,p=f.width>=((I=g.Pf(this.api.j().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?I:2E3);g.qI(D,"ytp-big-mode",p)}g.qI(D,"ytp-fullscreen",this.api.isFullscreen());g.qI(D,"ytp-large-width-mode",F);this.api.Z("delhi_modern_web_player")?g.qI(D,"ytp-xsmall-width-mode",Z):g.qI(D,"ytp-small-mode",this.AS()); g.qI(D,"ytp-tiny-mode",this.g_());g.qI(D,"ytp-big-mode",this.z2());this.dS&&this.dS.resize(f)}; g.d.ZY=function(f){this.cI(f.state);this.KG()}; g.d.RO=wT(5);g.d.LJ=function(){var f=!!this.kY&&!this.api.T8()&&!this.q8,D=this.api.getPresentingPlayerType()===2,F=this.api.j();if(D)return F=Qr(this.api.I_()),f&&(F&&F.player?f=(f=F.player.getVideoData(2))?f.isListed&&!g.jo(F.player.j()):!1:(Kb("showInfoBarDuringAd: this is null"),f=!1)),f;D=F.Z("web_player_imax_theater_mode")&&this.api.pw()&&!this.api.isInline();return f&&(F.ZW||D||this.api.isFullscreen()||F.zv)}; g.d.KG=function(){var f=this.LJ();this.Rq!==f&&(this.Rq=f,g.qI(this.api.getRootNode(),"ytp-hide-info-bar",!f))}; g.d.cI=function(f){var D=f.isCued()||this.api.C1()&&this.api.getPresentingPlayerType()!==3;D!==this.isCued&&(this.isCued=D,this.nY&&this.DK(this.nY),this.nY=this.D(this.api.sy(),"touchstart",this.pwr,void 0,D));var F=this.La,Z=f.isPlaying()&&!g.O(f,32)||this.api.zo();MU(F,128,!Z);F=this.La;Z=this.api.getPresentingPlayerType()===3;MU(F,256,Z);F=this.api.getRootNode();g.O(f,2)?Z=[NY.ENDED]:(Z=[],g.O(f,8)?Z.push(NY.PLAYING):g.O(f,4)&&Z.push(NY.PAUSED),g.O(f,1)&&!g.O(f,32)&&Z.push(NY.BUFFERING),g.O(f, 32)&&Z.push(NY.SEEKING),g.O(f,64)&&Z.push(NY.UNSTARTED));g.j5(this.wO,Z)||(g.sE(F,this.wO),this.wO=Z,g.pY(F,Z));Z=this.api.j();var I=g.O(f,2);a:{var p=this.api.j();var z=p.controlsType;switch(z){case "2":case "0":p=!1;break a}p=z==="3"&&!g.O(f,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:jWE(Qr(this.api.I_())))||this.api.uw()||g.LM(p)&&this.api.getPresentingPlayerType()===2?!1:!0}g.qI(F,"ytp-hide-controls",!p);g.qI(F,"ytp-native-controls",Z.controlsType==="3"&&!D&&!I&&!this.N1);g.O(f, 128)&&!g.LM(Z)?(this.dS||(this.dS=new g.vm(this.api),g.N(this,this.dS),g.uC(this.api,this.dS.element,4)),this.dS.J(f.dB),this.dS.show()):this.dS&&(this.dS.dispose(),this.dS=null)}; g.d.gs=function(){return this.api.zt()&&this.api.VY()?(this.api.Vh(!1,!1),!0):this.api.T8()?(g.Bv(this.api,!0),!0):!1}; g.d.onMutedAutoplayChange=function(f){this.N1=f;this.jt()}; g.d.z2=function(){return!1}; g.d.AS=function(){return!this.z2()&&(this.api.getPlayerSize().width=0&&D.left>=0&&D.bottom>D.top&&D.right>D.left?D:null;D=this.size;f=f.clone();D=D.clone();Z&&(z=D,I=5,(I&65)==65&&(f.x=Z.right)&&(I&=-2),(I&132)==132&&(f.y=Z.bottom)&&(I&=-5),f.xZ.right&&(z.width=Math.min(Z.right-f.x,p+z.width-Z.left),z.width=Math.max(z.width,0))),f.x+z.width>Z.right&&I&1&&(f.x=Math.max(Z.right-z.width,Z.left)),f.yZ.bottom&&(z.height=Math.min(Z.bottom-f.y,p+z.height-Z.top),z.height=Math.max(z.height,0))),f.y+z.height>Z.bottom&&I&4&&(f.y=Math.max(Z.bottom-z.height,Z.top)));Z=new g.Yd(0,0,0,0);Z.left=f.x;Z.top=f.y;Z.width= D.width;Z.height=D.height;g.q2(this.element,new g.FA(Z.left,Z.top));g.a8(this.J);this.J.D(Yu(this),"contextmenu",this.AZs);this.J.D(this.U,"fullscreentoggled",this.onFullscreenToggled);this.J.D(this.U,"pageTransition",this.MQ)}; g.d.AZs=function(f){if(!f.defaultPrevented){var D=SM(f);g.Ua(this.element,D)||this.Fq();this.U.j().disableNativeContextMenu&&f.preventDefault()}}; g.d.onFullscreenToggled=function(){this.Fq();orT(this)}; g.d.MQ=function(){this.Fq()};g.C(OM,g.x);OM.prototype.onClick=function(){var f=this,D,F,Z,I;return g.l(function(p){if(p.Y==1)return D=f.api.j(),F=f.api.getVideoData(),Z=f.api.getPlaylistId(),I=D.getVideoUrl(F.videoId,Z,void 0,!0),g.r(p,j3T(f,I),2);p.J&&kXD(f);f.api.logClick(f.element);g.Zb(p)})}; OM.prototype.u3=function(){this.updateValue("icon",{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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=KlI(this); g.qI(this.element,"ytp-copylink-button-visible",this.visible);this.VL(this.visible);this.tooltip.EE();this.api.logVisibility(this.element,this.visible&&this.Jb)}; OM.prototype.nF=function(f){g.x.prototype.nF.call(this,f);this.api.logVisibility(this.element,this.visible&&f)}; OM.prototype.Ey=function(){g.x.prototype.Ey.call(this);g.zP(this.element,"ytp-copylink-button-visible")};g.C(i1I,g.x);g.d=i1I.prototype;g.d.show=function(){g.x.prototype.show.call(this);g.XE(this.J)}; g.d.hide=function(){this.G.stop();this.B=0;this.fQ("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.zP(this.element,"ytp-chapter-seek");g.zP(this.element,"ytp-time-seeking");g.x.prototype.hide.call(this)}; g.d.NS=function(f,D,F,Z){this.B=f===this.T?this.B+Z:Z;this.T=f;var I=f===-1?this.N:this.S;I&&this.U.logClick(I);this.X?this.J.stop():g.nk(this.J);this.G.start();this.element.setAttribute("data-side",f===-1?"back":"forward");var p=3*this.U.sy().getPlayerSize().height;I=this.U.sy().getPlayerSize();I=I.width/3-3*I.height;this.Y.style.width=p+"px";this.Y.style.height=p+"px";f===1?(this.Y.style.left="",this.Y.style.right=I+"px"):f===-1&&(this.Y.style.right="",this.Y.style.left=I+"px");var z=p*2.5;p=z/ 2;var H=this.fQ("ytp-doubletap-ripple");H.style.width=z+"px";H.style.height=z+"px";f===1?(f=this.U.sy().getPlayerSize().width-D+Math.abs(I),H.style.left="",H.style.right=f-p+"px"):f===-1&&(f=Math.abs(I)+D,H.style.right="",H.style.left=f-p+"px");H.style.top="calc((33% + "+Math.round(F)+"px) - "+p+"px)";if(F=this.fQ("ytp-doubletap-ripple"))F.classList.remove("ytp-doubletap-ripple"),F.classList.add("ytp-doubletap-ripple");hiT(this,this.X?this.B:Z)}; g.d.VN=function(f,D,F){if(F=F===void 0?null:F){var Z=f===-1?this.N.visualElement:this.S.visualElement;F={seekData:F};var I=g.d4();I&&ZF(I,Z,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",F)}this.B=f===this.T?this.B+D:D;this.T=f;Z=this.U.sy().getPlayerSize();this.X?this.J.stop():g.nk(this.J);this.G.start();this.element.setAttribute("data-side",f===-1?"back":"forward");g.IC(this.element,"ytp-time-seeking");this.Y.style.width="110px";this.Y.style.height="110px";F=Z.width*.1-15;f===1?this.Bs?(this.Y.style.right= F+"px",this.Y.style.left=""):(this.Y.style.right="",this.Y.style.left=Z.width*.8-30+"px"):f===-1&&(this.Bs?(this.Y.style.right="",this.Y.style.left=F+"px"):(this.Y.style.right="",this.Y.style.left=Z.width*.1-15+"px"));this.Y.style.top=Z.height*.5+15+"px";hiT(this,this.X?this.B:D)}; g.d.Bc=function(f,D,F){F=F===void 0?null:F;g.nk(this.J);this.G.start();switch(f){case -1:f="back";break;case 1:f="forward";break;default:f=""}this.element.setAttribute("data-side",f);this.Y.style.width="0";this.Y.style.height="0";g.IC(this.element,"ytp-chapter-seek");this.updateValue("seekText",D);this.updateValue("seekTime","");D=this.fQ("ytp-seek-icon");if(F){a:if(F){switch(F){case "PREMIUM_STANDALONE":F=HCc();break a;case "PREMIUM_STANDALONE_CAIRO":F=ojJ();break a}F=void 0}else F=null;this.updateValue("seekIcon", F);D.style.display="inline-block"}else D.style.display="none"};g.C(AMy,kK);g.d=AMy.prototype;g.d.DN=function(f){this.Ir||(this.Ir=new VO(this.U),g.N(this,this.Ir));var D,F;if((D=this.Z5)==null?0:(F=D.menu)==null?0:F.menuRenderer)this.Ir.open(this.Z5.menu.menuRenderer,f.target),f.preventDefault()}; g.d.XH=function(){return!!this.Y}; g.d.nO=function(){return!!this.Y}; g.d.Ev=function(f){f.target===this.overflowButton.element?f.preventDefault():(this.BI&&this.U.wY("innertubeCommand",this.BI),this.FW(!1))}; g.d.pm=function(){this.FW(!0);var f,D;if((f=this.Y)==null?0:(D=f.bannerData)==null?0:D.dismissedStatusKey){if(this.b3.includes(this.Y.bannerData.dismissedStatusKey))return;this.b3.push(this.Y.bannerData.dismissedStatusKey)}this.tY();this.U.Z("web_enable_shopping_timely_shelf_client")&&(f={},g.W1(f,pe0,{overlayId:"player_overlay_timely_shelf"}),this.U.wY("innertubeCommand",f))}; g.d.Af=function(){this.tY();Pm(this)}; g.d.RSr=function(f){var D=this,F;if(f.id!==((F=this.Y)==null?void 0:F.identifier)){this.tY();F=g.a(this.zx);for(var Z=F.next();!Z.done;Z=F.next()){var I=Z.value,p=void 0,z=void 0;if((Z=(p=I)==null?void 0:(z=p.bannerData)==null?void 0:z.itemData)&&I.identifier===f.id){z=p=void 0;var H=((p=I)==null?void 0:(z=p.bannerData)==null?void 0:z.dismissedStatusKey)||"";if(this.b3.includes(H))return;this.Y=I;this.banner.element.setAttribute("aria-label",Z.accessibilityLabel||"");Z.trackingParams&&(this.J=!0, this.U.setTrackingParams(this.badge.element,Z.trackingParams));this.show();this.N.show();K7(this);this.Tx.VL(!Z.stayInApp);SYJ(this);Vjf(this);Y_(this);this.BI=g.Q(Z.onTapCommand,a6);if(I=g.Q(Z.menuOnTap,a6))this.Z5=g.Q(I,onE);I=void 0;this.banner.update({thumbnail:(I=(Z.thumbnailSources||[])[0])==null?void 0:I.url,title:Z.productTitle,price:Z.priceReplacementText?Z.priceReplacementText:Z.price,salesOriginalPrice:Q3s(this),priceDropReferencePrice:CFD(this),promotionText:dNu(this),priceA11yText:mNT(this), affiliateDisclaimer:Z.affiliateDisclaimer,vendor:T8u(this)});H=z=p=I=void 0;((I=Z)==null?0:(p=I.hiddenProductOptions)==null?0:p.showDropCountdown)&&((z=Z)==null?0:(H=z.hiddenProductOptions)==null?0:H.dropTimestampMs)&&(this.gw=new g.xX(function(){tju(D)},1E3),this.Tx.hide(),this.countdownTimer.show(),tju(this)); this.U.Z("web_player_enable_featured_product_banner_exclusives_on_desktop")&&$NX(this)&&(this.m9=new g.xX(function(){Riu(D)},1E3),Riu(this))}}this.U.getRootNode()&&g.IC(this.U.getRootNode(),"ytp-featured-product-shown")}}; g.d.tY=function(){this.Y&&(this.Y=void 0,this.h7(),this.U.getRootNode()&&g.zP(this.U.getRootNode(),"ytp-featured-product-shown"))}; g.d.onVideoDataChange=function(f,D){var F=this;yME(this,D);f==="dataloaded"&&Pm(this);var Z,I,p;f=g.Q((Z=D.getWatchNextResponse())==null?void 0:(I=Z.playerOverlays)==null?void 0:(p=I.playerOverlayRenderer)==null?void 0:p.productsInVideoOverlayRenderer,q0c);this.overflowButton.show();this.dismissButton.hide();var z=f==null?void 0:f.featuredProductsEntityKey;this.trendingOfferEntityKey=f==null?void 0:f.trendingOfferEntityKey;this.zx.length||(MjD(this,z),Y_(this));var H;(H=this.Xt)==null||H.call(this); this.Xt=g.hZ.subscribe(function(){MjD(F,z);Y_(F)})}; g.d.Ey=function(){Pm(this);SYJ(this);Vjf(this);kK.prototype.Ey.call(this)};g.C(Wlf,g.x);Wlf.prototype.onClick=function(){this.U.logClick(this.element,this.B);if(this.U.Z("embeds_enable_info_panel_dismissal")&&this.Y&&this.feedbackToken){var f=this.U.Ge();if(f==null?0:H0I(this.Y,f.Cn))rg(f,this.Y,{feedbackTokens:[this.feedbackToken]}),this.U.publish("infopaneldetaildismissed")}};g.C(B8w,g.nN);g.d=B8w.prototype;g.d.show=function(){g.nN.prototype.show.call(this);this.U.publish("infopaneldetailvisibilitychange",!0);this.U.logVisibility(this.element,!0);rMs(this,!0)}; g.d.hide=function(){g.nN.prototype.hide.call(this);this.U.publish("infopaneldetailvisibilitychange",!1);this.U.logVisibility(this.element,!1);rMs(this,!1)}; g.d.getId=function(){return this.B}; g.d.fR=function(){return this.itemData.length}; g.d.onVideoDataChange=function(f,D){if(D){var F,Z,I,p;this.update({title:((F=D.JS)==null?void 0:(Z=F.title)==null?void 0:Z.content)||"",body:((I=D.JS)==null?void 0:(p=I.bodyText)==null?void 0:p.content)||""});var z;f=((z=D.JS)==null?void 0:z.trackingParams)||null;this.U.setTrackingParams(this.element,f);z=g.a(this.itemData);for(f=z.next();!f.done;f=z.next())f.value.dispose();this.itemData=[];var H;if((H=D.JS)==null?0:H.ctaButtons)for(D=g.a(D.JS.ctaButtons),H=D.next();!H.done;H=D.next())if(H=g.Q(H.value, DCL))H=new Wlf(this.U,H,this.Y),H.u4&&(this.itemData.push(H),H.CQ(this.items))}}; g.d.Ey=function(){this.hide();g.nN.prototype.Ey.call(this)};g.C(ErI,g.x);g.d=ErI.prototype;g.d.onVideoDataChange=function(f,D){lWf(this,D);this.R$&&uRT(this,this.R$)}; g.d.jo=function(f){var D=this.U.getVideoData();this.videoId!==D.videoId&&lWf(this,D);uRT(this,f.state);this.R$=f.state}; g.d.f2=function(f){(this.B=f)?this.hide():this.Y&&!this.isDismissed&&this.show()}; g.d.WB=function(){this.J||this.Rc();this.showControls=!0}; g.d.ra=function(){this.J||this.Fq();this.showControls=!1}; g.d.Rc=function(){if(!this.isDismissed){var f,D=(f=this.U)==null?void 0:f.getPlayerSize();f=D.width<380;var F;D=D.height<(((F=this.U)==null?0:F.isEmbedsShortsMode())?400:280);var Z,I;(((Z=this.U)==null?0:Z.getPlayerStateObject().isCued())||((I=this.U)==null?0:g.O(I.getPlayerStateObject(),1024)))&&f&&D||!this.Y||this.B||(this.fade.show(),this.U.publish("infopanelpreviewvisibilitychange",!0),this.U.logVisibility(this.element,!0))}}; g.d.Fq=function(){this.Y&&!this.B&&(this.fade.hide(),this.U.publish("infopanelpreviewvisibilitychange",!1),this.U.logVisibility(this.element,!1))}; g.d.aoT=function(){this.J=!1;this.showControls||this.Fq()};var she={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(she).reduce(function(f,D){f[she[D]]=D;return f},{}); var qc0={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(qc0).reduce(function(f,D){f[qc0[D]]=D;return f},{}); var HWo={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(HWo).reduce(function(f,D){f[HWo[D]]=D;return f},{});var oZL,KgX;oZL=[{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"}];KgX=[{option:0,text:f1(0)},{option:.25,text:f1(.25)},{option:.5,text:f1(.5)},{option:.75,text:f1(.75)},{option:1,text:f1(1)}]; g.I3=[{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:oZL},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:f1(.5)},{option:-1,text:f1(.75)},{option:0,text:f1(1)},{option:1, text:f1(1.5)},{option:2,text:f1(2)},{option:3,text:f1(3)},{option:4,text:f1(4)}]},{option:"background",text:"Color de fondo",options:oZL},{option:"backgroundOpacity",text:"Opacidad del fondo",options:KgX},{option:"windowColor",text:"Color de la ventana",options:oZL},{option:"windowOpacity",text:"Opacidad de la ventana",options:KgX},{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:f1(.25)},{option:.5,text:f1(.5)},{option:.75,text:f1(.75)},{option:1,text:f1(1)}]}];var kJC=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.C(O1I,g.ia);g.d=O1I.prototype; g.d.t0=function(f){f.repeat||(this.B.Em=!1);var D=!1,F=f.keyCode,Z=SM(f),I=!f.altKey&&!f.ctrlKey&&!f.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||kJC.includes(F)),p=!1,z=!1,H=this.api.j();f.defaultPrevented?(I=!1,z=!0):H.Fd&&!this.api.isMutedByEmbedsMutedAutoplay()&&(I=!1);if(F===9)D=!0;else{if(Z)switch(F){case 32:case 13:if(Z.tagName==="BUTTON"||Z.tagName==="A"||Z.tagName==="INPUT")D=!0,I=!1;else if(I){var K=Z.getAttribute("role");!K||K!=="option"&&K!=="button"&&K.indexOf("menuitem")!==0|| (D=!0,Z.click(),p=!0)}break;case 37:case 39:case 36:case 35:D=Z.getAttribute("role")==="slider";break;case 38:case 40:K=Z.getAttribute("role"),Z=F===38?Z.previousSibling:Z.nextSibling,K==="slider"?D=!0:I&&(K==="option"?(Z&&Z.getAttribute("role")==="option"&&Z.focus(),p=D=!0):K&&K.indexOf("menuitem")===0&&(Z&&Z.hasAttribute("role")&&Z.getAttribute("role").indexOf("menuitem")===0&&Z.focus(),p=D=!0))}if(I&&!p)switch(F){case 38:p=Math.min(this.api.getVolume()+5,100);ub(this.N7,p,!1);this.api.setVolume(p); z=p=!0;break;case 40:p=Math.max(this.api.getVolume()-5,0);ub(this.N7,p,!0);this.api.setVolume(p);z=p=!0;break;case 36:this.api.H_()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),z=p=!0);break;case 35:this.api.H_()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),z=p=!0)}}D&&FR(this,!0);(D||z)&&this.La.Jc();(p||I&&this.handleGlobalKeyDown(F,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code,f.repeat))&&f.preventDefault();H.N&&(f={keyCode:f.keyCode, altKey:f.altKey,ctrlKey:f.ctrlKey,metaKey:f.metaKey,shiftKey:f.shiftKey,handled:f.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.k_("onKeyPress",f))}; g.d.YI=function(f){var D=f.keyCode;!this.B.T4&&this.handleGlobalKeyUp(D,f.shiftKey,f.ctrlKey,f.altKey,f.metaKey,f.key,f.code)&&f.preventDefault()}; g.d.handleGlobalKeyUp=function(f,D,F,Z,I,p,z){this.api.publish("keyboardserviceglobalkeyup",{keyCode:f,shiftKey:D,ctrlKey:F,altKey:Z,metaKey:I,key:p,code:z});D=!1;if(this.B.Em)return D;(p=g.Ez(this.api.I_()))&&(p=p.pC)&&p.hN&&(p.bZ(f),D=!0);switch(f){case 9:FR(this,!0);D=!0;break;case 32:if(this.api.Z("web_speedmaster_spacebar_control")&&!this.api.j().Fd){var H,K;f=(H=this.progressBar)==null?void 0:(K=H.J)==null?void 0:K.isEnabled;D=this.HO(f)}break;case 39:(this.api.Z("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(I||F&&Z))&&(mt?Z:F)&&this.api.H_()&&this.api.Z("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),H=(H=this.api.getVideoData())?H.Xt:[],K=grd(H,this.api.getCurrentTime()*1E3),K!==-1&&this.Y!=null&&(this.Y.Bc(1,H[K].title),this.api.seekTo(H[K].startTime/1E3,void 0,void 0,void 0,52),D=!0))}return D}; g.d.handleGlobalKeyDown=function(f,D,F,Z,I,p,z,H){H||(this.B.Em=!1);var K=!1,k=this.api.j();if(k.Fd&&!this.api.isMutedByEmbedsMutedAutoplay())return K;var h=g.Ez(this.api.I_());if(h&&(h=h.pC)&&h.hN)switch(f){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:K=h.vx(f)}k.T||K||(K=p||String.fromCharCode(f).toLowerCase(),this.J+=K,"awesome".indexOf(this.J)===0||this.api.Z("web_player_rtr_ctrls")&&"bday".indexOf(this.J)===0?(K=!0,4===this.J.length&&this.J==="bday"&&this.api.Z("web_player_rtr_ctrls")&& (rPu(this.X),this.La.Jc()),7===this.J.length&&this.J==="awesome"&&qIJ(this.api.getRootNode(),"ytp-color-party")):(this.J=K,K="awesome".indexOf(this.J)===0||"bday".indexOf(this.J)===0));if(!K&&(!this.api.isMutedByEmbedsMutedAutoplay()||kJC.includes(f))){var y=this.api.getVideoData(),A,V;h=(A=this.progressBar)==null?void 0:(V=A.J)==null?void 0:V.isEnabled;A=y?y.Xt:[];V=mt?Z:F;switch(f){case 80:D&&!k.jT&&(JY(this.N7,KWu(),"Anterior"),this.api.previousVideo(),K=!0);break;case 78:D&&!k.jT&&(JY(this.N7, Cm(),"Siguiente"),this.api.nextVideo(),K=!0);break;case 74:this.api.H_()&&(this.api.startSeekCsiAction(),this.Y?this.api.Z("enable_key_press_seek_logging")?(K=ZW(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.Y.VN(-1,10,K)):this.Y.VN(-1,10):JY(this.N7,{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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),K=!0);break;case 76:this.api.H_()&&(this.api.startSeekCsiAction(),this.Y?this.api.Z("enable_key_press_seek_logging")?(K=ZW(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.Y.VN(1,10,K)):this.Y.VN(1,10):JY(this.N7,{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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),K=!0);break;case 37:if(this.api.H_())if(this.api.startSeekCsiAction(),V){if(this.api.Z("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(I||F&&Z))V=eif(A,this.api.getCurrentTime()*1E3),V!==-1&&this.Y!=null&&(this.Y.Bc(-1,A[V].title),this.api.seekTo(A[V].startTime/1E3,void 0,void 0,void 0,53),K=!0)}else this.Y?this.api.Z("enable_key_press_seek_logging")?(K=ZW(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.Y.VN(-1,5,K)):this.Y.VN(-1,5):JY(this.N7,{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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),K=!0;break;case 39:this.api.H_()&&(this.api.startSeekCsiAction(),V?this.api.Z("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.Z("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(I||F&&Z)||(V=grd(A,this.api.getCurrentTime()*1E3),V!==-1&&this.Y!=null&&(this.Y.Bc(1,A[V].title),this.api.seekTo(A[V].startTime/1E3,void 0,void 0,void 0,52),K=!0)):(this.Y!=null?this.api.Z("enable_key_press_seek_logging")?(K=ZW(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.Y.VN(1,5,K)):this.Y.VN(1,5):JY(this.N7,{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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),K=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),ub(this.N7,this.api.getVolume(),!1)):(this.api.mute(),ub(this.N7,0,!0));K=!0;break;case 32:K=this.api.Z("web_speedmaster_spacebar_control")?!this.api.j().jT:this.HO(h);break;case 75:K=this.HO(h);break;case 190:D?k.enableSpeedOptions&&YYT(this)&&(K=this.api.getPlaybackRate(),this.api.setPlaybackRate(K+.25,!0),L4D(this.N7,!1),K=!0):this.api.H_()&&(this.step(1),K=!0);break;case 188:D? k.enableSpeedOptions&&YYT(this)&&(K=this.api.getPlaybackRate(),this.api.setPlaybackRate(K-.25,!0),L4D(this.N7,!0),K=!0):this.api.H_()&&(this.step(-1),K=!0);break;case 70:b5f(this.api)&&(this.api.toggleFullscreen().catch(function(){}),K=!0); break;case 27:h?(this.progressBar.ub(),K=!0):this.S()&&(K=!0)}if(k.controlsType!=="3")switch(f){case 67:g.AY(this.api.I_())&&(k=this.api.getOption("captions","track"),this.api.toggleSubtitles(),lGJ(this.N7,!k||k&&!k.displayName),K=!0);break;case 79:p1(this,"textOpacity");break;case 87:p1(this,"windowOpacity");break;case 187:case 61:p1(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:p1(this,"fontSizeIncrement",!0,!0)}var R;D||F||Z||(f>=48&&f<=57?R=f-48:f>=96&&f<=105&&(R=f-96));R!=null&&this.api.H_()&& !this.api.Z("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),k=this.api.getProgressState(),this.api.seekTo(R/10*(k.seekableEnd-k.seekableStart)+k.seekableStart,void 0,void 0,void 0,81),K=!0);K&&this.La.Jc()}this.B.Yp=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:f,shiftKey:D,ctrlKey:F,altKey:Z,metaKey:I,key:p,code:z,repeat:H},this.B);this.B.Yp&&(K=!0,this.La.Jc());return K}; g.d.step=function(f){this.api.H_();if(this.api.getPlayerStateObject().isPaused()){var D=this.api.getVideoData().J;D&&(D=D.video)&&this.api.seekBy(f/(D.fps||30),void 0,void 0,f>0?77:78)}}; g.d.HO=function(f){if(!this.api.j().jT){var D;var F,Z=(D=this.api.getVideoData())==null?void 0:(F=D.getPlayerResponse())==null?void 0:F.playabilityStatus;if(Z){var I;D=((I=g.Q(Z.miniplayer,AvY))==null?void 0:I.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else D=!1;D&&this.api.wY("onExpandMiniplayer");f?this.progressBar.mQ():(f=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.N7.gE(f),f?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.d.Ey=function(){g.nk(this.G);g.ia.prototype.Ey.call(this)};g.C(zX,g.x);zX.prototype.u3=function(){var f=this.U.j(),D=f.B||this.U.Z("web_player_hide_overflow_button_if_empty_menu")&&this.ze.isEmpty();f=g.LM(f)&&g.LN(this.U)&&g.O(this.U.getPlayerStateObject(),128);var F=this.U.getPlayerSize();this.visible=this.U.AS()&&!f&&F.width>=240&&!this.U.getVideoData().Yn&&!D&&!this.U.isEmbedsShortsMode();g.qI(this.element,"ytp-overflow-button-visible",this.visible);this.VL(this.visible);this.visible&&this.U.EE();this.U.logVisibility(this.element,this.visible&&this.Jb)}; zX.prototype.nF=function(f){g.x.prototype.nF.call(this,f);this.U.logVisibility(this.element,this.visible&&f)}; zX.prototype.Ey=function(){g.x.prototype.Ey.call(this);g.zP(this.element,"ytp-overflow-button-visible")};g.C(PFu,g.nN);g.d=PFu.prototype;g.d.kz=function(f){f=SM(f);g.Ua(this.element,f)&&(g.Ua(this.Y,f)||g.Ua(this.closeButton,f)||Pv(this))}; g.d.Fq=function(){g.nN.prototype.Fq.call(this);this.U.Bt(this.element)}; g.d.show=function(){this.hN&&this.U.publish("OVERFLOW_PANEL_OPENED");g.nN.prototype.show.call(this);this.element.setAttribute("aria-modal","true");DZd(this,!0)}; g.d.hide=function(){g.nN.prototype.hide.call(this);this.element.removeAttribute("aria-modal");DZd(this,!1)}; g.d.onFullscreenToggled=function(f){!f&&this.NL()&&Pv(this)}; g.d.isEmpty=function(){return this.actionButtons.length===0}; g.d.focus=function(){for(var f=g.a(this.actionButtons),D=f.next();!D.done;D=f.next())if(D=D.value,D.hN){D.focus();break}};g.C(F8u,g.x);F8u.prototype.onClick=function(f){g.hA(f,this.api)&&this.api.playVideoAt(this.index)};g.C(ZLT,g.nN);g.d=ZLT.prototype;g.d.show=function(){g.nN.prototype.show.call(this);this.Y.D(this.api,"videodatachange",this.O0);this.Y.D(this.api,"onPlaylistUpdate",this.O0);this.O0()}; g.d.hide=function(){g.nN.prototype.hide.call(this);g.a8(this.Y);this.updatePlaylist(null)}; g.d.O0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.j().B&&(this.fQ("ytp-playlist-menu-title-name").removeAttribute("href"),this.J&&(this.DK(this.J),this.J=null))}; g.d.dK=function(){var f=this.playlist,D=f.author,F=D?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Z={CURRENT_POSITION:String(f.index+1),PLAYLIST_LENGTH:String(f.length)};D&&(Z.AUTHOR=D);this.update({title:f.title,subtitle:g.F8(F,Z),playlisturl:this.api.getVideoUrl(!0)});D=f.J;if(D===this.B)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[f.index];else{F=g.a(this.playlistData);for(Z=F.next();!Z.done;Z=F.next())Z.value.dispose(); F=f.length;this.playlistData=[];for(Z=0;Z=this.J&&!f.B&&!D.isAd()&&!this.api.isEmbedsShortsMode()}else f=!1;this.visible=f;this.VL(this.visible);g.qI(this.element,"ytp-search-button-visible",this.visible);g.qI(this.element,"ytp-show-search-title",!this.api.AS());this.api.logVisibility(this.element,this.visible&&this.Jb)}; o3.prototype.nF=function(f){g.x.prototype.nF.call(this,f);this.api.logVisibility(this.element,this.visible&&f)};g.C(K1,g.x); K1.prototype.trigger=function(f,D,F,Z){this.show();if(this.J&&f!==this.J){var I=1;this.B&&(I=hkc(this));o$u(this,I,!1);iLy(this)}this.J=f;this.G=this.J===-1?this.S:this.N;f="";D?(this.J===-1&&this.U.getCurrentTime()<=D?this.X=D:this.X+=D,f=(this.J===-1?"\u2212":"+")+" "+this.X):this.X=0;this.updateValue(this.J===-1?"durationBack":"durationForward",f);if(this.Y==="hidden"||this.Y==="fading-out")D=0,this.Y==="fading-out"&&(D=hkc(this),jxE(this)),K8J(this,D),this.Y!=="fading-out"&&kiJ(this,this.G.querySelector(".ytp-seek-overlay-arrow-persistent")), this.Y="fading-in";else if(this.Y==="fading-in"||this.Y==="lingering")D=this.G.querySelector(".ytp-seek-overlay-duration"),f=g.Pf(this.U.j().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,D.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("+f+")"},{offset:1,transform:"scale(1)"}],{duration:184}),jxE(this),this.Y==="lingering"&&(this.T.stop(),this.T.start());F&&ykT(this, F,Z)}; K1.prototype.NS=function(f,D,F,Z){this.trigger(f,Z)}; K1.prototype.VN=function(f,D,F){this.trigger(f,D);F&&(f=f===-1?this.N.visualElement:this.S.visualElement,F={seekData:F},(D=g.d4())&&ZF(D,f,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",F))}; K1.prototype.Bc=function(f,D,F){this.trigger(f,void 0,D,F)};g.C(kr,g.x);kr.prototype.onClick=function(){var f=this,D=this.api.j(),F=this.api.getVideoData(this.api.getPresentingPlayerType()),Z=this.api.getPlaylistId();D=this.api.Z("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):D.getVideoUrl(F.videoId,Z,void 0,!0);if(navigator.share)try{var I=navigator.share({title:F.title,url:D});I instanceof Promise&&I.catch(function(p){$ZD(f,p)})}catch(p){p instanceof Error&&$ZD(this,p)}else this.Y.gs(),Pv(this.J,this.element,!1); this.api.logClick(this.element)}; kr.prototype.u3=function(){var f=this.api.j(),D=this.api.isEmbedsShortsMode();g.qI(this.element,"ytp-show-share-title",g.LM(f)&&!D);this.Y.z2()&&D?(f=(this.api.sy().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dx(this.element,"right",f+"px")):D&&g.Dx(this.element,"right","0px");this.updateValue("icon",{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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=AkD(this);g.qI(this.element,"ytp-share-button-visible",this.visible);this.VL(this.visible);this.tooltip.EE();this.api.logVisibility(this.element,AkD(this)&&this.Jb)}; kr.prototype.nF=function(f){g.x.prototype.nF.call(this,f);this.api.logVisibility(this.element,this.visible&&f)}; kr.prototype.Ey=function(){g.x.prototype.Ey.call(this);g.zP(this.element,"ytp-share-button-visible")};g.C(RkD,g.nN);g.d=RkD.prototype;g.d.Dl=function(f){f=SM(f);g.Ua(this.G,f)||g.Ua(this.closeButton,f)||Pv(this)}; g.d.Fq=function(){g.nN.prototype.Fq.call(this);this.tooltip.Bt(this.element);this.api.logVisibility(this.Y,!1);for(var f=g.a(this.J),D=f.next();!D.done;D=f.next())D=D.value,this.api.hasVe(D.element)&&this.api.logVisibility(D.element,!1)}; g.d.show=function(){var f=this.hN;g.nN.prototype.show.call(this);this.u3();f||this.api.wY("onSharePanelOpened")}; g.d.LEY=function(){this.hN&&this.u3()}; g.d.u3=function(){var f=this;g.IC(this.element,"ytp-share-panel-loading");g.zP(this.element,"ytp-share-panel-fail");var D=this.api.getVideoData(),F=this.api.getPlaylistId()&&this.B.checked;D.getSharePanelCommand&&rg(this.api.Ge(),D.getSharePanelCommand,{includeListId:F}).then(function(Z){f.MR()||(g.zP(f.element,"ytp-share-panel-loading"),CpD(f,Z))}); D=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",D);this.updateValue("linkText",D);this.updateValue("shareLinkWithUrl",g.F8("Compartir enlace: $URL",{URL:D}));RP(this.Y);this.api.logVisibility(this.Y,!0)}; g.d.onFullscreenToggled=function(f){!f&&this.NL()&&Pv(this)}; g.d.focus=function(){this.Y.focus()}; g.d.Ey=function(){g.nN.prototype.Ey.call(this);dZs(this)};g.C(bLE,kK);g.d=bLE.prototype;g.d.Ey=function(){UZd(this);kK.prototype.Ey.call(this)}; g.d.Ev=function(f){f.target!==this.dismissButton.element&&(this.FW(!1),this.U.wY("innertubeCommand",this.onClickCommand))}; g.d.pm=function(){this.LQ=!0;this.FW(!0);this.h7()}; g.d.fpb=function(f){this.T=f;this.h7()}; g.d.onVideoDataChange=function(f,D){if(f=!!D.videoId&&this.videoId!==D.videoId)this.videoId=D.videoId,this.LQ=!1,this.xo=!0,this.S=this.KQ=!1,UZd(this),ckX(this,!1),this.B=this.Y=!1,iF(this),Mrw(this);if(f||!D.videoId)this.Bs=this.J=!1;var F,Z;if(D==null?0:(F=D.getPlayerResponse())==null?0:(Z=F.videoDetails)==null?0:Z.isLiveContent)this.lY(!1);else{var I,p,z;D=g.Q((I=D.getWatchNextResponse())==null?void 0:(p=I.playerOverlays)==null?void 0:(z=p.playerOverlayRenderer)==null?void 0:z.productsInVideoOverlayRenderer, q0c);this.T=this.enabled=!1;if(D){if(I=D==null?void 0:D.featuredProductsEntityKey){p=g.hZ.getState().entities;var H;if((H=OA(p,"featuredProductsEntity",I))==null?0:H.productsData){this.lY(!1);return}}if(!D.text||!D.onClickCommand||!D.timing){this.lY(!1);return}this.enabled=!0;if(!this.J){var K;H=(K=D.badgeInteractionLogging)==null?void 0:K.trackingParams;(this.J=!!H)&&this.U.setTrackingParams(this.badge.element,H||null)}if(!this.Bs){var k;if(this.Bs=!((k=D.dismissButton)==null||!k.trackingParams)){var h; this.U.setTrackingParams(this.dismissButton.element,((h=D.dismissButton)==null?void 0:h.trackingParams)||null)}}D.isContentForward&&(K=D.productsData,ckX(this,!0),Mrw(this),K=Swu(this,K),k=[],K.length>0&&k.push(K[0]),K.length>1&&(h=new g.x({K:"div",C:"ytp-suggested-action-more-products-icon"}),g.N(this,h),k.push(h),k.push.apply(k,g.w(K.slice(1)))),this.X=new g.x({K:"div",L:k,C:"ytp-suggested-action-content-forward-container"}),g.N(this,this.X),this.rY.element.append(this.X.element));this.text=g.ih(D.text); var y;if(K=(y=D.dismissButton)==null?void 0:y.a11yLabel)this.Ps=g.ih(K);this.onClickCommand=D.onClickCommand;this.timing=D.timing;this.Bw()}ILw(this);K7(this);this.h7()}}; g.d.XH=function(){return!this.T&&this.enabled&&!this.LQ&&!this.U.AS()&&!this.Wk&&(this.S||this.xo)}; g.d.MJ=function(f){kK.prototype.MJ.call(this,f);if(this.Y||this.B)this.timing&&jj(this.timing.preview)&&(this.Y=!1,iF(this),this.B=!1,iF(this),this.U.WD("shopping_overlay_preview_collapsed"),this.U.WD("shopping_overlay_preview_expanded"),f=hM(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),jj(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.U.WD("shopping_overlay_expanded"),f.end=this.timing.expanded.endSec*1E3),this.U.Bw([f])), this.KQ=!0,K7(this);iF(this)}; g.d.lY=function(f){(this.S=f)?(oL(this),K7(this,!1)):(UZd(this),this.jT.start());this.h7()}; g.d.Bw=function(f){var D=this.timing;f=(f===void 0?0:f)+this.U.getCurrentTime();var F=[],Z=D.visible,I=D.preview;D=D.expanded;jj(Z)&&(mZa(Z,f),F.push(hM(Z.startSec,Z.endSec,"shopping_overlay_visible")));jj(I)&&(mZa(I,f),Z=I.startSec+1,F.push(hM(I.startSec,Z,"shopping_overlay_preview_collapsed")),F.push(hM(Z,I.endSec,"shopping_overlay_preview_expanded")));jj(D)&&(mZa(D,f),F.push(hM(D.startSec,D.endSec,"shopping_overlay_expanded")));this.U.Bw(F)}; g.d.h7=function(){kK.prototype.h7.call(this);this.U.getRootNode()&&g.qI(this.U.getRootNode(),"ytp-shopping-pill-shown",this.XH())};g.C(GiD,g.x); GiD.prototype.u3=function(){var f=this.api.j();this.VL(g.LM(f)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.hN);var D=this.api.getVideoData(),F=!1;this.api.getPresentingPlayerType()===2?F=!!D.videoId&&!!D.isListed&&!!D.author&&!!D.jT&&!!D.profilePicture:g.LM(f)&&(F=!!D.videoId&&!!D.jT&&!!D.profilePicture&&!D.Yn&&!f.B&&!(f.S&&this.api.getPlayerSize().width<200));var Z=D.profilePicture;f=g.LM(f)?D.expandedTitle:D.author;Z=Z===void 0? "":Z;f=f===void 0?"":f;F?(this.J!==Z&&(this.Y.style.backgroundImage="url("+Z+")",this.J=Z),this.updateValue("channelLogoLabel",g.F8("Foto de $CHANNEL_NAME",{CHANNEL_NAME:f})),g.IC(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.zP(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Y,F&&this.Jb);this.api.logVisibility(this.channelName,F&&this.Jb);this.subscribeButton&&(this.subscribeButton.channelId=D.HR);this.updateValue("expandedTitle",D.expandedTitle)};g.C(y6,g.nN);y6.prototype.show=function(){g.nN.prototype.show.call(this);this.Y.start()}; y6.prototype.hide=function(){g.nN.prototype.hide.call(this);this.Y.stop()}; y6.prototype.T1=function(f,D){f==="dataloaded"&&((this.v2=D.v2,this.xm=D.xm,isNaN(this.v2)||isNaN(this.xm))?this.J&&(this.U.WD("intro"),this.U.removeEventListener(g.Nh("intro"),this.S),this.U.removeEventListener(g.gA("intro"),this.G),this.U.removeEventListener("onShowControls",this.B),this.hide(),this.J=!1):(this.U.addEventListener(g.Nh("intro"),this.S),this.U.addEventListener(g.gA("intro"),this.G),this.U.addEventListener("onShowControls",this.B),f=new g.Jm(this.v2,this.xm,{priority:9,namespace:"intro"}), this.U.Bw([f]),this.J=!0))};g.C(AM,g.x);AM.prototype.onClick=function(){this.U.ov()}; AM.prototype.u3=function(){var f=!0;g.LM(this.U.j())&&(f=f&&this.U.sy().getPlayerSize().width>=480);this.VL(f);f=this.updateValue;var D=this.U.Z("delhi_modern_web_player_icons"),F=D?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,W:{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"}}]};D=D?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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"}}]};f.call(this,"icon",this.U.RP()?F:D)};g.C(W8T,g.x);W8T.prototype.Ey=function(){this.Y=null;g.x.prototype.Ey.call(this)};g.C($r,g.x);$r.prototype.onClick=function(){this.U.wY("innertubeCommand",this.J)}; $r.prototype.N=function(){if(this.U.Z("delhi_modern_web_player")){var f=this.U.getPlayerSize();f.width&&(this.element.style.maxWidth=f.width*.25+"px")}}; $r.prototype.KQ=function(f){f!==this.T&&(this.update({chapterTitle:f,ariaLabel:f}),this.T=f);f?this.show():this.hide()}; $r.prototype.Bs=function(){this.Y.disabled=this.J==null;g.qI(this.Y,"ytp-chapter-container-disabled",this.Y.disabled);this.Ft()};g.C(V6,$r);V6.prototype.onClickCommand=function(f){g.Q(f,ij)&&this.Ft()}; V6.prototype.updateVideoData=function(f,D){var F,Z,I;f=g.Q((F=D.getWatchNextResponse())==null?void 0:(Z=F.playerOverlays)==null?void 0:(I=Z.playerOverlayRenderer)==null?void 0:I.decoratedPlayerBarRenderer,lM);F=g.Q(f==null?void 0:f.playerBarActionButton,g.Ma);if(this.U.Z("web_player_updated_entrypoint")){this.S=sf(F==null?void 0:F.text);var p;Z=(p=F==null?void 0:F.tooltip)!=null?p:"Ver cap\u00edtulo";this.X.setAttribute("title",Z)}this.J=F==null?void 0:F.command;$r.prototype.Bs.call(this)}; V6.prototype.Ft=function(){var f=this.S,D=this.G.Y,F,Z=((F=this.U.getLoopRange())==null?void 0:F.type)==="clips";if(D.length>1&&!Z){f=this.U.getProgressState().current*1E3;F=DW(D,f);f=D[F].title||"Cap\u00edtulos";if(F!==this.currentIndex||this.B)this.U.wY("innertubeCommand",D[F].onActiveCommand),this.currentIndex=F;this.B=!1}else this.B=!0;$r.prototype.KQ.call(this,f)};g.C(R3,g.Km);R3.prototype.J=function(){var f;(f=this.element.parentElement)==null||f.classList.contains("ytp-right-controls-left");(this.Y=!this.Y)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; R3.prototype.isExpanded=function(){return this.Y};g.C(d8,g.x);d8.prototype.B=function(f){g.O(f.state,32)?rkX(this,this.api.OG()):this.hN&&(g.O(f.state,16)||g.O(f.state,1))||this.fade.hide()}; d8.prototype.onProgress=function(){var f=this.api.getPlayerStateObject();(g.O(f,32)||g.O(f,16))&&L8c(this)}; d8.prototype.G=function(){this.frameIndex=NaN;L8c(this)}; d8.prototype.hide=function(){this.Y&&rkX(this,null);g.x.prototype.hide.call(this)};g.C(lAf,g.x);g.d=lAf.prototype;g.d.onClick=function(){var f=this;if(this.U.j().JN||this.U.j().S){this.U.logClick(this.element);try{this.U.toggleFullscreen().catch(function(D){f.sN(D)})}catch(D){this.sN(D)}}else Pv(this.message,this.element,!0)}; g.d.sN=function(f){String(f).includes("fullscreen error")?g.UT(f):g.SJ(f);this.zd()}; g.d.zd=function(){this.disable();this.message.Rc(this.element,!0)}; g.d.Oj=function(){Qm()===this.U.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())}; g.d.GI=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var f=window.screen.width*.9,D=window.screen.height*.9,F=Math.max(window.outerWidth,window.innerWidth),Z=Math.max(window.outerHeight,window.innerHeight);if(F>Z!==f>D){var I=F;F=Z;Z=I}f>F&&D>Z&&this.zd()}}; g.d.disable=function(){var f=this;if(!this.message){var D=(Vm(["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.nN(this.U,{K:"div",ST:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"}, L:[D[0],{K:"a",W:{href:"https://support.google.com/youtube/answer/6276924",target:this.U.j().Jb},nQ:D[2]},D[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(F){f.J.EN(f.message,F)}); g.uC(this.U,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Y)();this.Y=null}}; g.d.u3=function(){var f=b5f(this.U),D=this.U.j().S&&this.U.getPlayerSize().width<250;this.VL(f&&!D);this.U.logVisibility(this.element,this.hN)}; g.d.OQ=function(f){if(f){var D=g.ak(this.U,"Salir del modo de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir del modo de pantalla completa"});document.activeElement===this.element&&this.U.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(F){g.UT(F)})}else D=g.ak(this.U,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); f=E$D(this,f);D=this.message?null:D;this.U.j().Z("player_tooltip_data_title_killswitch")?this.update({title:D,icon:f}):this.update({"tooltip-title":D,"aria-label":D,icon:f});this.J.pE().EE()}; g.d.Ey=function(){this.message||((0,this.Y)(),this.Y=null);g.x.prototype.Ey.call(this)}; g.d.nF=function(f){g.x.prototype.nF.call(this,f)};g.C(Q6,g.x);Q6.prototype.onClick=function(){this.U.logClick(this.element);this.U.seekBy(this.Y,!0);var f=this.Y>0?1:-1,D=Math.abs(this.Y),F=this.U.L7().NG;F&&F.VN(f,D);this.J.isActive()?this.B=!0:(f=["ytp-jump-spin"],this.Y<0&&f.push("backwards"),this.element.classList.add.apply(this.element.classList,g.w(f)),g.XE(this.J))};g.C(C1,$r);C1.prototype.onClickCommand=function(f){g.Q(f,zVC)&&this.Ft()}; C1.prototype.updateVideoData=function(){var f,D;this.J=(f=uwD(this))==null?void 0:(D=f.onTap)==null?void 0:D.innertubeCommand;$r.prototype.Bs.call(this)}; C1.prototype.Ft=function(){var f="",D=this.G.S,F,Z=(F=uwD(this))==null?void 0:F.headerTitle;F=Z?g.ih(Z):"";var I;Z=((I=this.U.getLoopRange())==null?void 0:I.type)==="clips";D.length>1&&!Z&&(f=this.U.getProgressState().current*1E3,I=N8D(D,f),f=I!=null?D[I].title:F,I!=null&&I!==this.currentIndex&&(this.U.wY("innertubeCommand",D[I].onActiveCommand),this.currentIndex=I));$r.prototype.KQ.call(this,f)};g.C(ml,g.x);ml.prototype.onClick=function(){this.U.wY("onCollapseMiniplayer");this.U.logClick(this.element)}; ml.prototype.u3=function(){this.visible=!this.U.isFullscreen();this.VL(this.visible);this.U.logVisibility(this.element,this.visible&&this.Jb)}; ml.prototype.nF=function(f){g.x.prototype.nF.call(this,f);this.U.logVisibility(this.element,this.visible&&f)};var Xdc=new VM(0,0,.05,0,0,1,1,1);g.C(TX,g.x);TX.prototype.init=function(){this.update({minvalue:this.B,maxvalue:this.X,stepvalue:this.T,slidervalue:this.Y,ariaValueNow:this.Y,ariaMinValue:this.B,ariaMaxValue:this.X});xZX(this,this.Y)}; TX.prototype.Xp=function(){bF(this,Number(this.J.value));this.J.focus()}; TX.prototype.BA=function(f){if(!f.defaultPrevented){switch(f.code){case "ArrowDown":f=-this.T;break;case "ArrowUp":f=this.T;break;default:return}bF(this,Math.min(this.X,Math.max(Number((this.Y+f).toFixed(2)),this.B)))}};g.C(MN,TX);MN.prototype.onVolumeChange=function(f){if(this.S)this.S=!1;else{var D=f.volume;D===0||f.muted?bF(this,0):bF(this,D)}}; MN.prototype.Xp=function(){TX.prototype.Xp.call(this);this.N(this.Y)}; MN.prototype.Bs=function(f){var D=-f.deltaY;D=f.deltaMode===WheelEvent.DOM_DELTA_LINE||f.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.PZ(this.Y+D,0,100):g.PZ(this.Y+g.PZ(D/10,-10,10),0,100);D===0?bF(this,0):bF(this,D);this.N(D);f.preventDefault();f.stopPropagation()}; MN.prototype.KQ=function(f,D){this.S=!0;f===0||D?this.U.mute():(this.U.isMuted()&&this.U.unMute(),this.U.setVolume(f))};g.C(OLf,g.x);g.C(Sj,g.x);g.d=Sj.prototype;g.d.u1=function(){if(!this.U.uc()){this.updateValue("dataTooltipOffsetY",-120);var f;(f=this.Y)!=null&&tM(f,!0);var D;(D=this.Y)!=null&&D.Y.stop()}}; g.d.zc=function(){var f;(f=this.Y)!=null&&f.Y.start()}; g.d.gr=function(f){this.visible=f.width>=300||this.Ir;this.VL(this.visible);this.U.logVisibility(this.element,this.visible&&this.Jb)}; g.d.N8=function(){this.U.j().rY?this.U.isMuted()?this.U.unMute():this.U.mute():Pv(this.message,this.element,!0);this.U.logClick(this.element)}; g.d.S6T=function(f){if(this.U.j().rY&&this.Y)if(f.target===this.B){var D;if(!this.U.uc()||((D=this.Y)==null?0:D.isVisible))this.N8();else{var F;(F=this.Y)!=null&&tM(F,!0)}}else{var Z;(Z=this.Y)!=null&&tM(Z,!0)}else this.N8()}; g.d.onVolumeChange=function(f){this.setVolume(f.volume,f.muted)}; g.d.setVolume=function(f,D){var F=this,Z=D?0:f/100;f=Z===0?1:f>50?1:0;if(this.N!==f){var I=this.S;isNaN(I)?DvI(this,f):xDD(this.rY,function(z){DvI(F,I+(F.N-I)*z)},250); this.N=f}Z=Z===0?1:0;if(this.T!==Z){var p=this.xo;isNaN(p)?F7w(this,Z):xDD(this.zx,function(z){F7w(F,p+(F.T-p)*z)},250); this.T=Z}Yww(this,D)}; g.d.nF=function(f){g.x.prototype.nF.call(this,f);this.U.logVisibility(this.element,this.visible&&f)}; var Pps=["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"],fcf=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.C(g.cx,g.x);g.d=g.cx.prototype;g.d.onStateChange=function(f){this.uJ(f.state)}; g.d.uJ=function(f){var D=g.lj(this.U.getVideoData()),F=!1;f.isOrWillBePlaying()?f=D?4:2:g.O(f,2)?(f=3,F=D):f=1;this.element.disabled=F;if(this.Y!==f){D=null;switch(f){case 2:D=g.ak(this.U,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:D="Ver de nuevo";this.update({"data-title-no-tooltip":"Ver de nuevo"});break;case 1:D=g.ak(this.U,"Bot\u00f3n de reproducci\u00f3n","k");this.update({"data-title-no-tooltip":"Bot\u00f3n de reproducci\u00f3n"});break;case 4:D="Detener reproducci\u00f3n", this.update({"data-title-no-tooltip":"Detener reproducci\u00f3n"})}f===3?this.U.j().Z("player_tooltip_data_title_killswitch")?this.update({title:D,icon:ZdT(this,f)}):this.update({"tooltip-title":D,icon:ZdT(this,f)}):(this.U.Z("player_tooltip_data_title_killswitch")?this.update({title:D}):this.update({"tooltip-title":D}),(D=ZdT(this,f))&&this.Y&&this.Y!==3?OVy(this.transition,this.element,D):this.updateValue("icon",D));this.tooltip.EE();this.Y=f}}; g.d.onVideoDataChange=function(){g.qI(this.element,"ytp-play-button-playlist",g.LN(this.U))}; g.d.HO=function(f){this.U.logClick(this.element);if(this.U.getPlayerStateObject().isOrWillBePlaying())this.U.pauseVideo();else{if(this.U.isMinimized()&&this.U.getPlayerStateObject().isCued()){var D={},F;if((F=this.U.getVideoData())==null?0:F.T)D.cttAuthInfo={token:this.U.getVideoData().T,videoId:this.U.getVideoData().videoId};an("direct_playback",D);this.U.uv().timerName="direct_playback"}this.U.playVideo()}this.U.isMinimized()&&(f==null?void 0:f.type)==="click"&&this.element.blur()}; g.d.nF=function(f){g.x.prototype.nF.call(this,f)};g.C(g.UY,g.x);g.d=g.UY.prototype;g.d.onVideoDataChange=function(){z5c(this);this.G&&(this.DK(this.G),this.G=null);this.videoData=this.U.getVideoData(1);if(this.playlist=this.U.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.G=this.D(this.U,"progresssync",this.rP);this.B=sYu(this);pFI(this);this.Gs(this.U.sy().getPlayerSize())}; g.d.Gs=function(f){f=f===void 0?this.U.sy().getPlayerSize():f;var D,F=((D=this.U.getLoopRange())==null?void 0:D.type)==="clips";D=g.LN(this.U)||this.Y&&g.NV(this.U)&&!this.U.Z("web_hide_next_button")||qUy(this);var Z=!this.Y&&f.width<400;f=this.U.Z("delhi_modern_web_player_horizontal_volume_controls")&&f.width<640;F=D&&!F&&!Z&&!f;this.VL(F);this.U.logVisibility(this.element,F)}; g.d.onClick=function(f){this.U.logClick(this.element);var D=!0;this.T?D=g.hA(f,this.U):f.preventDefault();D&&(this.Y&&this.U.getPresentingPlayerType()===5?this.U.publish("ytoprerollinternstitialnext"):this.Y?(sM(this.U.uv()),this.U.publish("playlistnextbuttonclicked",this.element),this.U.nextVideo(!0)):this.B?this.U.seekTo(0):(sM(this.U.uv()),this.U.publish("playlistprevbuttonclicked",this.element),this.U.previousVideo(!0)))}; g.d.rP=function(){var f=sYu(this);f!==this.B&&(this.B=f,pFI(this))}; g.d.Ey=function(){this.J&&(this.J(),this.J=null);z5c(this);g.x.prototype.Ey.call(this)};g.C(osI,g.x);g.d=osI.prototype;g.d.jg=function(f){this.n8(f.pageX);this.K8(f.pageX+f.deltaX);K7w(this)}; g.d.n8=function(f){this.Bs=f-this.Ir}; g.d.K8=function(f){f-=this.Ir;!isNaN(this.Bs)&&this.thumbnails.length>0&&(this.N=f-this.Bs,this.thumbnails.length>0&&this.N!==0&&(this.B=this.S+this.N,f=yVf(this,this.B),this.B<=this.Y/2&&this.B>=h5X(this)?(this.api.seekTo(f,!1,void 0,void 0,25),g.Dx(this.xo,"transform","translateX("+(this.B-this.Y/2)+"px)"),Hdy(this,f)):this.B=this.S))}; g.d.W3=function(){this.KQ&&(this.KQ.zk=!0);var f=(0,g.m5)()-this.dY<300;if(Math.abs(this.N)<5&&!f){this.dY=(0,g.m5)();f=this.Bs+this.N;var D=this.Y/2-f;this.n8(f);this.K8(f+D);K7w(this);this.api.logClick(this.X)}K7w(this)}; g.d.kL=function(){vx(this,this.api.getCurrentTime())}; g.d.play=function(f){this.api.seekTo(yVf(this,this.B),void 0,void 0,void 0,26);this.api.playVideo();f&&this.api.logClick(this.playButton)}; g.d.onExit=function(f){this.api.seekTo(this.jT,void 0,void 0,void 0,63);this.api.playVideo();f&&this.api.logClick(this.dismissButton)}; g.d.bE=function(f,D){this.Ir=f;this.Y=D;vx(this,this.api.getCurrentTime())}; g.d.enable=function(){this.isEnabled||(this.isEnabled=!0,this.jT=this.api.getCurrentTime(),Hdy(this,this.jT),g.qI(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.rY=this.D(this.element,"wheel",this.jg),this.logVisibility(this.isEnabled))}; g.d.disable=function(){this.isEnabled=!1;this.hide();g.qI(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.rY&&this.DK(this.rY);this.logVisibility(this.isEnabled)}; g.d.reset=function(){this.disable();this.G=[];this.Tx=!1}; g.d.logVisibility=function(f){this.api.logVisibility(this.element,f);this.api.logVisibility(this.X,f);this.api.logVisibility(this.dismissButton,f);this.api.logVisibility(this.playButton,f)}; g.d.Ey=function(){for(;this.J.length;){var f=void 0;(f=this.J.pop())==null||f.dispose()}g.x.prototype.Ey.call(this)}; g.C(kCy,g.x);g.C(jYs,g.x);g.C(AVa,g.x);g.C(a3,g.x);a3.prototype.Cp=function(f){return f==="PLAY_PROGRESS"?this.S:f==="LOAD_PROGRESS"?this.T:f==="LIVE_BUFFER"?this.X:this.B};R5X.prototype.update=function(f,D,F,Z){F=F===void 0?0:F;this.width=D;this.G=F;this.Y=D-F-(Z===void 0?0:Z);this.position=g.PZ(f,F,F+this.Y);this.B=this.position-F;this.J=this.B/this.Y};g.C(dvw,g.x);g.C(g.Wx,g.Km);g.d=g.Wx.prototype; g.d.CZ=function(){var f=!1,D=this.api.getVideoData();if(!D)return f;this.api.WD("timedMarkerCueRange");mvX(this);for(var F=g.a(D.rY),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var I=void 0,p=(I=this.LQ[Z])==null?void 0:I.markerType,z=void 0;I=(z=this.LQ[Z])==null?void 0:z.markers;if(!I)break;if(p==="MARKER_TYPE_TIMESTAMPS"){f=g.a(I);for(p=f.next();!p.done;p=f.next()){z=p.value;p=new dvw;var H=void 0;p.title=((H=z.title)==null?void 0:H.simpleText)||"";p.timeRangeStartMillis=Number(z.startMillis);p.Y= Number(z.durationMillis);var K=H=void 0;p.onActiveCommand=(K=(H=z.onActive)==null?void 0:H.innertubeCommand)!=null?K:void 0;cVT(this,p)}Uvc(this,this.S);f=this.S;p=this.t6;z=[];H=null;for(K=0;Kk&&(H.end=k);k=xNf(k,k+y);z.push(k);H=k;p[k.id]=f[K].onActiveCommand}}this.api.Bw(z);a:{f=g.a(I);for(I=f.next();!I.done;I=f.next())if(I.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){f= !1;break a}f=!0}f&&(this.Gv=this.LQ[Z]);f=!0}else if(p==="MARKER_TYPE_HEATMAP"){Z=this.LQ[Z];h=k=p=K=H=z=void 0;if(Z&&Z.markers){I=(p=(h=Z.markersMetadata)==null?void 0:(k=h.heatmapMetadata)==null?void 0:k.minHeightDp)!=null?p:0;p=(z=(K=Z.markersMetadata)==null?void 0:(H=K.heatmapMetadata)==null?void 0:H.maxHeightDp)!=null?z:60;z=this.Y.length;H=null;for(K=0;K=h&&R<=y&&k.push(V)}p>0&&(this.KQ.style.height=p+"px");h=this.G[K];y=k;V=I;var m=p,b=K===0;b=b===void 0?!1:b;$vs(h,m);A=y;R=h.J;b=b===void 0?!1:b;var U=1E3/A.length,S=[];S.push({x:0,y:100});for(var G=0;G0&&(H=k[k.length-1])}g.Bx(this)}p=void 0;I=[];if(Z=(p=Z.markersDecoration)==null?void 0:p.timedMarkerDecorations)for(Z=g.a(Z),p=Z.next();!p.done;p=Z.next())p=p.value,K=H=z=void 0,I.push({visibleTimeRangeStartMillis:(z=p.visibleTimeRangeStartMillis)!= null?z:-1,visibleTimeRangeEndMillis:(H=p.visibleTimeRangeEndMillis)!=null?H:-1,decorationTimeMillis:(K=p.decorationTimeMillis)!=null?K:NaN,label:p.label?g.ih(p.label):""});Z=I;this.heatMarkersDecorations=Z}}D.nP=this.S;g.qI(this.element,"ytp-timed-markers-enabled",f);return f}; g.d.bE=function(){g.Bx(this);lF(this);Uvc(this,this.S);if(this.J){var f=g.oE(this.element).x||0;this.J.bE(f,this.T)}}; g.d.g_F=function(){var f=this.api.getVideoData();f&&JVJ(this,f)}; g.d.onClickCommand=function(f){if(f=g.Q(f,ij)){var D=f.key;f.isVisible&&D&&wFD(this,D)}}; g.d.X_I=function(f){this.api.wY("innertubeCommand",this.t6[f.id])}; g.d.Ft=function(){lF(this);var f=this.api.getCurrentTime();(fthis.clipEnd)&&this.j5()}; g.d.VK=function(f){if(!f.defaultPrevented){var D=!1;switch(f.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);D=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);D=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);D=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);D=!0;break;case 38:this.api.Z("enable_key_press_seek_logging")&&ej(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);D=!0;break;case 40:this.api.Z("enable_key_press_seek_logging")&&ej(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),D=!0}D&&f.preventDefault()}}; g.d.T1=function(f,D){this.updateVideoData(D,f==="newdata")}; g.d.NYo=function(){this.T1("newdata",this.api.getVideoData())}; g.d.updateVideoData=function(f,D){D=D===void 0?!1:D;var F=!!f&&f.u4();F&&(Hv(f)||lcT(this)?this.Ye=!1:this.Ye=f.allowLiveDvr,g.qI(this.api.getRootNode(),"ytp-enable-live-buffer",!(f==null||!Hv(f))),JVJ(this,f));Zvu(this,this.api.H_());if(D){if(F){D=f.clipEnd;this.clipStart=f.clipStart;this.clipEnd=D;xr(this);for(uF(this,this.Bs,this.Z5);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.gw={};var Z;(Z=this.J)==null||Z.reset();Yr(this);g.qI(this.api.getRootNode(),"ytp-fine-scrubbing-exp", w8(this))}else this.j5();this.xe()}if(f){var I;Z=((I=this.Mb)==null?void 0:I.type)==="clips";if(I=!f.isLivePlayback){I=this.api.getVideoData();D=g.En(I);F=bdX(I);var p;I=D!=null||F!=null&&F.length>0||((p=I.Jv)==null?void 0:p.length)>0}if(I&&!Z){p=this.api.getVideoData();Z=g.En(p);I=!1;if(Z==null?0:Z.markersMap){I=this.api.getVideoData();var z;I.fl=((z=Z.visibleOnLoad)==null?void 0:z.key)||I.fl;z=g.a(Z.markersMap);for(Z=z.next();!Z.done;Z=z.next())Z=Z.value,Z.key&&Z.value&&(this.gw[Z.key]=Z.value, Z.value.onChapterRepeat&&(I.sb=Z.value.onChapterRepeat));I.fl!=null&&wFD(this,I.fl);I=!0}var H;if(((H=p.Jv)==null?void 0:H.length)>0){H=g.hZ.getState().entities;z=g.a(p.Jv);for(Z=z.next();!Z.done;Z=z.next()){Z=Z.value;F=void 0;D=(F=OA(H,"macroMarkersListEntity",Z))==null?void 0:F.markersList;var K=F=void 0;if(((F=D)==null?void 0:F.markerType)==="MARKER_TYPE_TIMESTAMPS"||((K=D)==null?void 0:K.markerType)==="MARKER_TYPE_HEATMAP")this.LQ[Z]=D}I=this.CZ()||I}!I&&(H=bdX(p))&&(t7E(this,H),p.Xt=this.Y,M7f(this)); uPT(this,null);f.TA&&this.G.length===0&&(f=f.TA,H=f.key,f.isVisible&&H&&wFD(this,H))}else QYD(this),mvX(this)}lF(this)}; g.d.Cb=function(f){this.N&&!g.O(f.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var D;((D=this.J)==null?0:D.isEnabled)&&g.O(f.state,8)&&this.api.pauseVideo();f=this.api.getPresentingPlayerType()===2||!this.api.H_()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.qI(this.Tm,"ytp-hide-scrubber-button",f)}; g.d.Q9=function(f){var D=!!this.Mb!==!!f,F=this.Mb;this.Mb=f;uPT(this,F);(f==null?void 0:f.type)!=="clips"&&f||(f?(this.updateValue("clipstarticon",FWD()),this.updateValue("clipendicon",FWD()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",XRE()),this.updateValue("clipendicon",x1u()),this.updateValue("clipstarttitle","Ver v\u00eddeo completo"),this.updateValue("clipendtitle","Ver v\u00eddeo completo")),D&&(this.updateVideoData(this.api.getVideoData(), !0),g.Bx(this)),xr(this));uF(this,this.Bs,this.Z5)}; g.d.UIs=function(){this.api.publish("progressBarHoverStart")}; g.d.mIx=function(f,D,F){var Z=g.oE(this.element),I=L1(this).Y,p=F?F.getAttribute("data-tooltip"):void 0,z=F?F.getAttribute("data-position"):void 0,H=F?F.getAttribute("data-offset-y"):void 0;H=H?Number(H):0;z&&(f=wQ(this.B,Number(F.getAttribute("data-position")),0)*I+g.oE(this.progressBar).x);this.Uq.x=f-Z.x;this.Uq.y=D-Z.y;f=L1(this);F=g8(this,f);D=0;var K;if((K=this.api.getVideoData())==null?0:Hv(K))(K=this.api.getProgressState().seekableEnd)&&F>K&&(F=K,f.position=wQ(this.B,K)*L1(this).Y),D=this.B.J; lcT(this)&&(D=this.B.J);K=p||g.ms(this.Ye?F-this.B.Y:F-D);D=f.position+this.f7;F-=this.api.R_();var k;if((k=this.J)==null||!k.isEnabled)if(this.api.OG()){if(this.Y.length>1){k=NN(this,this.Uq.x,!0);if(!this.Mb)for(Z=0;Z1)for(Z=0;Z0)for(k=this.Uq.x,Z=g.a(this.S),I=Z.next();!I.done;I=Z.next())I=I.value,z=r8(this,I.timeRangeStartMillis/ (this.B.Y*1E3),L1(this)),g.qI(I.element,"ytp-timed-marker-hover",z<=k&&z+6>=k);Z=this.tooltip.scale;k=this.api.Z("delhi_modern_web_player")?67:45;H=(isNaN(H)?0:H)-k*Z;this.api.Z("web_key_moments_markers")?this.Gv?(k=N8D(this.S,F*1E3),k=k!=null?this.S[k].title:""):(k=DW(this.Y,F*1E3),k=this.Y[k].title):(k=DW(this.Y,F*1E3),k=this.Y[k].title);k||(H+=16*Z);this.tooltip.scale===.6&&(g.sn(this.api.j())?(H=this.api.sy().getPlayerSize().height-225,Z=this.api.Z("delhi_modern_web_player")?70:110,H=k?H+Z:H+ Z+16):H=k?110:126);Z=DW(this.Y,F*1E3);this.rY=gsE(this,F,Z)?Z:gsE(this,F,Z+1)?Z+1:-1;g.qI(this.api.getRootNode(),"ytp-progress-bar-snap",this.rY!==-1&&this.Y.length>1);Z=!1;I=g.a(this.heatMarkersDecorations);for(z=I.next();!z.done;z=I.next()){z=z.value;var h=F*1E3;h>=z.visibleTimeRangeStartMillis&&h<=z.visibleTimeRangeEndMillis&&(k=z.label,K=g.ms(g8(this,f)),Z=!0)}this.JS!==Z&&(this.JS=Z,this.api.logVisibility(this.Y_,this.JS));g.qI(this.api.getRootNode(),"ytp-progress-bar-decoration",Z);Z=160*this.tooltip.scale* 2;I=k.length*(this.X?8.55:5.7);I=I<=Z?I:Z;z=I<160*this.tooltip.scale;Z=3;!z&&I/2>f.position&&(Z=1);!z&&I/2>this.T-f.position&&(Z=2);this.api.j().S&&(H-=10);this.G.length&&this.G[0].u4&&(H-=14*(this.X?2:1),this.dY||(this.dY=!0,this.api.logVisibility(this.KQ,this.dY)));var y;if(w8(this)&&(((y=this.J)==null?0:y.isEnabled)||this.eT>0)){var A;H-=((A=this.J)==null?0:A.isEnabled)?(this.X?135:90)-this.xo:this.eT}y=void 0;w8(this)&&!this.api.Z("web_player_hide_fine_scrubbing_edu")&&(y="Arrastra hacia arriba para b\u00fasquedas m\u00e1s precisas", this.jT||(this.jT=!0,this.api.logVisibility(this.HD,this.jT)));this.tooltip.fO(D,F,K,!!p,H,k,Z,y)}else this.tooltip.fO(D,F,K,!!p,H);g.IC(this.api.getRootNode(),"ytp-progress-bar-hover");L7I(this)}; g.d.h_3=function(){this.xe();g.zP(this.api.getRootNode(),"ytp-progress-bar-hover");this.dY&&(this.dY=!1,this.api.logVisibility(this.KQ,this.dY));this.jT&&(this.jT=!1,this.api.logVisibility(this.HD,this.jT));this.api.Z("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.d.XwT=function(f,D){var F=g.oE(this.element);this.OI=f-F.x;w8(this)&&this.J&&(this.J.Tx?vx(this.J,this.api.getCurrentTime()):idf(this.J),this.J.show(),g.qI(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.J.isEnabled));this.KK&&(this.KK.dispose(),this.KK=null);this.zv=D;this.Gm=this.api.getCurrentTime();this.Y.length>1&&this.rY!==-1?this.api.seekTo(this.Y[this.rY].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(g8(this,L1(this)),!1,void 0,void 0,7);g.IC(this.element,"ytp-drag");(this.gM= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.d.ZaY=function(){if(w8(this)&&this.J){var f=(this.X?135:90)-this.xo;this.eT>=f*.5?(this.J.enable(),vx(this.J,this.api.getCurrentTime()),F2D(this,f)):Yr(this)}if(g.O(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var D;if((D=this.J)==null?0:D.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Y.length>1&&this.rY!==-1)this.api.Z("html5_enable_progress_bar_slide_seek_logging")&&ej(this,this.Gm,this.Y[this.rY].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Y[this.rY].startTime/1E3,void 0,void 0,void 0,7);else{f=g8(this,L1(this));this.api.Z("html5_enable_progress_bar_slide_seek_logging")&&ej(this,this.Gm,f,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(f,void 0,void 0,void 0,7);D=g.a(this.heatMarkersDecorations);for(var F=D.next();!F.done;F=D.next())F=F.value,f*1E3>=F.visibleTimeRangeStartMillis&&f*1E3<=F.visibleTimeRangeEndMillis&& this.api.logClick(this.Y_)}g.zP(this.element,"ytp-drag");this.Tx&&(this.zx.src=this.Tx);this.gM&&!g.O(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.d.Tpx=function(f,D){var F=this,Z=L1(this),I=g8(this,Z);this.api.sy().xk||(Z.position>this.OI+2?this.Xt&&(this.zx.src=this.Xt):Z.position1);this.VL(f&&this.U.sy().getPlayerSize().width>=400);this.U.logVisibility(this.element,this.hN);var D=1;f&&this.isActive()&&(D=2);if(this.Y!==D){this.Y=D;f=this.U.Z("delhi_modern_web_player_icons");switch(D){case 1:this.updateValue("icon",f?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{K:"path",hZ:!0,W:{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", f?{K:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},L:[{K:"path",W:{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.Nod())}g.qI(this.element,"ytp-remote-button-active",this.isActive())}}; Px.prototype.J=function(){if(this.U.getOption("remote","quickCast"))this.U.setOption("remote","quickCast",!0);else{var f=this.x8,D=this.element;if(f.NL())f.Fq();else{f.initialize();a:{var F=g.a(f.G8.items);for(var Z=F.next();!Z.done;Z=F.next())if(Z=Z.value,Z.priority===1){F=Z;break a}F=null}F&&(F.open(),f.Rc(D));f.Rc(D)}}this.U.logClick(this.element)};g.C(fL,g.x);fL.prototype.Y=function(f){var D=this.U.j(),F=400;D.T?F=300:D.S&&(F=200);f=this.J&&f.width>=F;this.VL(f);this.U.logVisibility(this.element,f)}; fL.prototype.B=function(){if(this.x8.hN)this.x8.Fq();else{var f=g.AY(this.U.I_());f&&!f.loaded&&(f.JJ("tracklist",{includeAsr:!0}).length||f.load());this.U.logClick(this.element);this.x8.Rc(this.element)}}; fL.prototype.updateBadge=function(){var f=this.U.isHdr(),D=this.U.getPresentingPlayerType(),F=D!==2&&D!==3,Z=g.JO(this.U),I=F&&!!g.Ez(this.U.I_());D=I&&Z.displayMode===1;Z=I&&Z.displayMode===2;F=(I=D||Z)||!F?null:this.U.getPlaybackQuality();g.qI(this.element,"ytp-hdr-quality-badge",f);g.qI(this.element,"ytp-hd-quality-badge",!f&&(F==="hd1080"||F==="hd1440"));g.qI(this.element,"ytp-4k-quality-badge",!f&&F==="hd2160");g.qI(this.element,"ytp-5k-quality-badge",!f&&F==="hd2880");g.qI(this.element,"ytp-8k-quality-badge", !f&&F==="highres");g.qI(this.element,"ytp-3d-badge-grey",!f&&I&&D);g.qI(this.element,"ytp-3d-badge",!f&&I&&Z)};g.C(DA,g.C7);g.d=DA.prototype;g.d.u3=function(){var f=this.U.getAvailableAudioTracks();if(f.length>1){if(this.U.j().experiments.ww().Y.Kp(KEL)){var D=f.filter(function(I){return I.isAutoDubbed()}),F=f.filter(function(I){return!I.isAutoDubbed()}).map(this.gg); D.length>0&&(this.U.Gx("ad_grp",{ad_c:D.length,t_c:f.length}),F.push(new bVw),F.push.apply(F,g.w(D.map(this.gg))));t4D(this,F)}else this.cR(g.M2(f,this.gg));this.tracks=g.yg(f,this.gg,this);this.countLabel.setContent(f.length?" ("+f.length+")":"");this.publish("size-change");f=this.gg(this.U.getAudioTrack());this.bv(f);if(this.U.Z("html5_enable_new_audio_settings_menu")){var Z;(Z=this.Y)!=null&&Z.setContent(f.toString())}this.enable(!0)}else this.U.Z("html5_enable_new_audio_settings_menu")&&(D=this.Y)!= null&&D.setContent(""),this.enable(!1)}; g.d.G2=function(f){g.C7.prototype.G2.call(this,f);f=this.tracks[f];this.U.setAudioTrack(f);this.x8.C7();this.U.j().experiments.ww().Y.Kp(KEL)&&this.U.Gx("ad_sel",{lang:f.dw.id})}; g.d.gg=function(f){return f.toString()}; g.d.cK=function(f){this.U.Z("html5_enable_new_audio_settings_menu")?this.Y&&(f?this.Y.tN(this):this.Y.Sx(this)):g.C7.prototype.cK.call(this,f)}; g.d.onClick=function(){this.U.logClick(this.element)};g.C(pAf,g.Fj);g.d=pAf.prototype;g.d.X9=function(){this.U.X9()}; g.d.open=function(){this.Qj.fR()>0&&g.Ap(this.x8,this.Qj)}; g.d.oG=function(){this.Qj.fR()>0&&this.U.getPresentingPlayerType()!==2&&this.U.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.d.VK=function(f){f.defaultPrevented||(this.open(),f.preventDefault())}; g.d.tN=function(f){this.Qj.tN(f)}; g.d.Sx=function(f){this.Qj.Sx(f)};g.C(Fw,jG); Fw.prototype.oG=function(){var f=this.U.getPresentingPlayerType();if(f!==2&&f!==3&&g.NV(this.U))this.Y||(this.x8.tN(this),this.Y=!0,this.J.push(this.D(this.U,"videodatachange",this.oG)),this.J.push(this.D(this.U,"videoplayerreset",this.oG)),this.J.push(this.D(this.U,"onPlaylistUpdate",this.oG)),this.J.push(this.D(this.U,"autonavchange",this.B)),f=this.U.getVideoData(),this.B(f.autonavState),this.U.logVisibility(this.element,this.Y));else if(this.Y){this.x8.Sx(this);this.Y=!1;f=g.a(this.J);for(var D= f.next();!D.done;D=f.next())this.DK(D.value)}}; Fw.prototype.B=function(f){i2(this,f!==1)}; Fw.prototype.onSelect=function(f){this.U.Fv(f?2:1);this.Y&&(this.U.logVisibility(this.element,this.Y),this.U.logClick(this.element))}; Fw.prototype.Ey=function(){this.Y&&this.x8.Sx(this);jG.prototype.Ey.call(this)};g.C(zzI,g.Fj);zzI.prototype.onClick=function(f){f.preventDefault();var D,F;(D=g.CN(this.U))==null||(F=D.Pp())==null||F.Fq();var Z,I;(Z=g.CN(this.U))==null||(I=Z.T$())==null||I.Rc(f.target)};g.C(sFD,g.C7);g.d=sFD.prototype; g.d.oG=function(){var f=this.U.getPresentingPlayerType();if(f!==2&&f!==3){this.KQ=this.U.DU();var D=this.U.getAvailableQualityLevels();if(this.Y){this.J={};f=g.$u(this.U,"getAvailableQualityData",[]);f=g.a(f);for(var F=f.next();!F.done;F=f.next())F=F.value,this.J[F.qualityLabel]=F;f=Object.keys(this.J);D[D.length-1]==="auto"&&f.push("auto");this.xo=new Set(D)}else if(this.G){F=g.$u(this.U,"getAvailableQualityData",[]);f=[];F=g.a(F);for(var Z=F.next();!Z.done;Z=F.next())Z=Z.value,this.T[Z.quality]= Z,Z.quality&&f.push(Z.quality);D[D.length-1]==="auto"&&f.push("auto")}else f=D;g.hUw(this.U)&&this.U.yn()&&f.unshift("missing-qualities");D=this.U.app.VT();F=D.getVideoData();if(!F.J||!F.J.video||F.J.video.qualityOrdinal<1080||F.Hb)D=!1;else{Z=/^qsa/.test(F.clientPlaybackNonce);var I="r";F.J.id.indexOf(";")>=0&&(Z=/^[a-p]/.test(F.clientPlaybackNonce),I="x");Z?(D.Gx("iqss",{trigger:I},!0),D=!0):D=!1}D&&f.unshift("inline-survey");this.cR(f);D=this.U.getVideoData().cotn?!0:!1;F=this.Bs.Sm();F=!g.sn(this.U.j())|| !(D===void 0?0:D)||!(F===void 0||F);D=this.Qj;F=F===void 0?!1:F;D.cU&&g.qI(D.fQ("ytp-panel-footer"),"ytp-panel-hide-footer",F===void 0?!1:F);if(f.length){this.Pd();this.enable(!0);return}}this.enable(!1)}; g.d.Pd=function(){if(this.Y){var f=this.U.getPreferredQuality();this.xo.has(f)&&(this.X=this.U.getPlaybackQuality(),this.S=this.U.getPlaybackQualityLabel(),f==="auto"?(this.bv(f),this.setContent(this.gQ(f))):this.bv(this.S))}else f=this.U.getPreferredQuality(),this.options[f]&&(this.X=this.U.getPlaybackQuality(),this.bv(f),f==="auto"&&this.setContent(this.gQ(f)))}; g.d.G2=function(f){if(f!=="missing-qualities"){g.C7.prototype.G2.call(this,f);var D=this.Y?this.J[f]:this.T[f];var F=D==null?void 0:D.quality,Z=D==null?void 0:D.formatId,I=D==null?void 0:D.paygatedQualityDetails;D=I==null?void 0:I.endpoint;if(I){var p;I=(p=this.options[f])==null?void 0:p.element;this.U.logClick(I)}if(this.Y){var z,H;if((z=g.Q(D,g.fb0))==null?0:(H=z.popup)==null?0:H.notificationActionRenderer)this.U.wY("innertubeCommand",D);else if(D){this.U.wY("innertubeCommand",D);return}Z?this.U.setPlaybackQuality(F, Z):this.U.setPlaybackQuality(F)}else{if(this.G){var K,k;if((K=g.Q(D,g.fb0))==null?0:(k=K.popup)==null?0:k.notificationActionRenderer)this.U.wY("innertubeCommand",D);else if(D){this.U.wY("innertubeCommand",D);return}}this.U.setPlaybackQuality(f)}this.x8.Fq();this.oG()}}; g.d.open=function(){for(var f=g.a(Object.values(this.options)),D=f.next();!D.done;D=f.next()){D=D.value;var F=void 0;this.U.hasVe((F=D)==null?void 0:F.element)&&(F=void 0,this.U.logVisibility((F=D)==null?void 0:F.element,!0))}g.C7.prototype.open.call(this);this.U.logClick(this.element)}; g.d.nj=function(f,D,F){var Z=this;if(f==="missing-qualities")return new g.Fj({K:"a",ST:["ytp-menuitem"],W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.U.j().Jb,tabindex:"0",role:"menuitemradio"},L:[{K:"div",ST:["ytp-menuitem-label"],nQ:"{{label}}"}]},D,this.gQ(f));if(f!=="inline-survey"){var I,p=(I=this.Y?this.J[f]:this.T[f])==null?void 0:I.paygatedQualityDetails;I=p==null?void 0:p.veType;p=p==null?void 0:p.trackingParams;D=g.C7.prototype.nj.call(this,f,D,F);p?(this.U.createServerVe(D.element, this,!0),this.U.setTrackingParams(D.element,p)):I&&this.U.createClientVe(D.element,this,I,!0);return D}f=[{K:"span",nQ:"\u00bfSe ve bien?"}];F=g.a([!0,!1]);p=F.next();for(I={};!p.done;I={P$:void 0},p=F.next())I.P$=p.value,p=new g.x({K:"span",C:"ytp-menuitem-inline-survey-response",L:[I.P$?DPs():noT()],W:{tabindex:"0",role:"button"}}),p.listen("click",function(z){return function(){var H=Z.U.app.VT();H.Gx("iqsr",{tu:z.P$});H.getVideoData().Hb=!0;Z.x8.Fq();Z.oG()}}(I)),f.push(p); return new g.Fj({K:"div",C:"ytp-menuitem",W:{"aria-disabled":"true"},L:[{K:"div",ST:["ytp-menuitem-label"],L:f}]},D)}; g.d.gQ=function(f,D){D=D===void 0?!1:D;if(f==="missing-qualities")return{K:"div",nQ:"\u00bfFalta alguna opci\u00f3n?"};if(f==="inline-survey")return"";var F=this.G||this.Y?[oLd(this,f,D,!1)]:[Hvs(this,f)];var Z=this.U.getPreferredQuality();D||Z!=="auto"||f!=="auto"||(F.push(" "),this.Y?F.push(oLd(this,this.S,D,!0,["ytp-menu-label-secondary"])):this.G?F.push(oLd(this,this.X,D,!0,["ytp-menu-label-secondary"])):F.push(Hvs(this,this.X,["ytp-menu-label-secondary"])));return{K:"div",L:F}};g.C(ZA,TX);g.d=ZA.prototype;g.d.Xp=function(){TX.prototype.Xp.call(this);this.S&&this.nG()}; g.d.Qcx=function(){this.U.Z("enable_web_premium_varispeed")&&bF(this,Math.round(this.Y/.05)*.05);this.N()}; g.d.FB=function(){this.U.setPlaybackRate(this.Y,!0)}; g.d.nG=function(){this.S.textContent=this.Y.toFixed(2)+"x";var f=this.Y>2&&this.U.Z("enable_web_premium_varispeed");this.Bs.classList.toggle("ytp-speedslider-premium-badge",f);this.Bs.setAttribute("aria-label",f?"Premium":"")}; g.d.BA=function(f){TX.prototype.BA.call(this,f);this.N();this.nG();this.U.Z("web_enable_varispeed_panel")?(f.code==="ArrowUp"||f.code==="ArrowDown")&&f.preventDefault():f.preventDefault()};g.C(Ix,g.x);g.d=Ix.prototype;g.d.init=function(){this.yp(this.Y);this.updateValue("minvalue",this.J);this.updateValue("maxvalue",this.B)}; g.d.uT=function(f){if(!f.defaultPrevented){switch(f.keyCode){case 37:case 40:var D=-this.S;break;case 39:case 38:D=this.S;break;default:return}this.yp(this.Y+D);f.preventDefault()}}; g.d.Nf=function(f){var D=this.Y;D+=(f.deltaX||-f.deltaY)<0?-this.N:this.N;this.yp(D);f.preventDefault()}; g.d.dP=function(f){f=(f-g.oE(this.G).x)/this.Bs*this.range+this.J;this.yp(f)}; g.d.yp=function(f,D){D=D===void 0?"":D;f=g.PZ(f,this.J,this.B);D===""&&(D=f.toString());this.updateValue("valuenow",f);this.updateValue("valuetext",D);this.KQ.style.left=(f-this.J)/this.range*(this.Bs-this.Tx)+"px";this.Y=f}; g.d.focus=function(){this.rY.focus()};g.C(pL,Ix);pL.prototype.xo=function(){this.U.setPlaybackRate(this.Y,!0)}; pL.prototype.nG=function(){this.X.textContent=K2u(this,this.Y)+"x"}; pL.prototype.yp=function(f){Ix.prototype.yp.call(this,f,K2u(this,f).toString());this.X&&(this.nG(),this.zx())}; pL.prototype.updateValues=function(){var f=this.U.getPlaybackRate();K2u(this,this.Y)!==f&&(this.yp(f),this.nG())};g.C(kga,g.Km);kga.prototype.focus=function(){this.Y.focus()};g.C(jFD,jI);g.C(hzX,g.C7);g.d=hzX.prototype;g.d.onVideoDataChange=function(f){f==="dataloaded"&&(f=this.U.getAvailablePlaybackRates(),g.j5(this.G,f)||(this.G=f,this.pR.dispose(),this.pR=new ZA(this.U)),this.u3())}; g.d.gQ=function(f){return f==="1"?"Normal":f.toLocaleString()}; g.d.u3=function(){var f,D=(f=this.U.getVideoData())==null?void 0:f.nE();f=this.U.getPresentingPlayerType(D);this.enable(f!==2&&f!==3);$jD(this)}; g.d.cR=function(f){g.C7.prototype.cR.call(this,f);this.pR&&this.pR.J.focus()}; g.d.cK=function(f){g.C7.prototype.cK.call(this,f);f?(this.Bs=this.D(this.U,"onPlaybackRateChange",this.onPlaybackRateChange),$jD(this),ywE(this,this.U.getPlaybackRate()),this.U.Z("enable_web_premium_varispeed_upsell")&&(this.U.logVisibility(this.element,!0),this.J&&this.U.logVisibility(this.S.element,!0))):(this.DK(this.Bs),this.Bs=null)}; g.d.onPlaybackRateChange=function(f){var D=this.U.getPlaybackRate();!this.X&&this.G.includes(D)||Awu(this,D);ywE(this,f)}; g.d.nj=function(f,D,F){return f===this.Y&&RzJ(this.U)?g.C7.prototype.nj.call(this,f,D,F,{K:"div",C:"ytp-speed-slider-menu-footer",L:[this.pR]}):f===this.J&&ivs(this.U,this.KQ)?VLD(this,f,D,F):g.C7.prototype.nj.call(this,f,D,F)}; g.d.G2=function(f){g.C7.prototype.G2.call(this,f);f===this.J?(this.U.logClick(this.S.element),this.U.wY("innertubeCommand",this.KQ)):f===this.Y?this.U.setPlaybackRate(this.T,!0):this.U.setPlaybackRate(Number(f),!0);(!RzJ(this.U)||f!==this.Y&&f!==this.J)&&this.x8.C7()}; g.d.RL=function(f){var D=f===this.Y;this.X=!1;D&&zi(this.U)&&!RzJ(this.U)?(f=new jFD(this.U),g.Ap(this.x8,f)):g.C7.prototype.RL.call(this,f)};g.C(QFJ,g.C7);g.d=QFJ.prototype;g.d.bv=function(f){g.C7.prototype.bv.call(this,f)}; g.d.O5=function(f){return f.option.toString()}; g.d.getOption=function(f){return this.settings[f]}; g.d.gQ=function(f){return this.getOption(f).text||""}; g.d.G2=function(f){g.C7.prototype.G2.call(this,f);this.publish("settingChange",this.setting,this.settings[f].option)};g.C(Hd,g.i3);Hd.prototype.rM=function(f){for(var D=g.a(Object.keys(f)),F=D.next();!F.done;F=D.next()){var Z=F.value;if(F=this.gR[Z]){var I=f[Z].toString();Z=!!f[Z+"Override"];F.options[I]&&(F.bv(I),F.J.element.setAttribute("aria-checked",String(!Z)),F.Y.element.setAttribute("aria-checked",String(Z)))}}}; Hd.prototype.wN=function(f,D){this.publish("settingChange",f,D)};g.C(ox,g.C7);ox.prototype.Y=function(f){return f.languageCode}; ox.prototype.gQ=function(f){return this.languages[f].languageName||""}; ox.prototype.G2=function(f){this.publish("select",f);this.U.logClick(this.element);g.$K(this.x8)};g.C(TcI,g.C7);g.d=TcI.prototype;g.d.Qw=function(f){return g.tC(f)?"__off__":f.displayName}; g.d.gQ=function(f){return f==="__off__"?"Desactivados":f==="__translate__"?"Traducir autom\u00e1ticamente":f==="__contribute__"?"A\u00f1adir subt\u00edtulos":f==="__correction__"?"Sugerir correcciones en los subt\u00edtulos":(f==="__off__"?{}:this.tracks[f]).displayName}; g.d.G2=function(f){if(f==="__translate__")this.Y.open();else if(f==="__contribute__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var D=g.C5(this.U.j(),this.U.getVideoData());g.es(D)}else if(f==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();var F=bvX(this);KL(this,F);g.C7.prototype.G2.call(this,this.Qw(F));var Z,I;F=(D=this.U.getVideoData().getPlayerResponse())==null?void 0:(Z=D.captions)==null?void 0:(I=Z.playerCaptionsTracklistRenderer)== null?void 0:I.openTranscriptCommand;this.U.wY("innertubeCommand",F);this.x8.C7();this.J&&this.U.logClick(this.J)}else{if(f==="__correction__"){this.U.pauseVideo();this.U.isFullscreen()&&this.U.toggleFullscreen();D=bvX(this);KL(this,D);g.C7.prototype.G2.call(this,this.Qw(D));var p,z;D=(F=this.U.getVideoData().getPlayerResponse())==null?void 0:(p=F.captions)==null?void 0:(z=p.playerCaptionsTracklistRenderer)==null?void 0:z.openTranscriptCommand;this.U.wY("innertubeCommand",D)}else this.U.logClick(this.element), KL(this,f==="__off__"?{}:this.tracks[f]),g.C7.prototype.G2.call(this,f);this.x8.C7()}}; g.d.u3=function(){var f=this.U.getOptions();f=f&&f.indexOf("captions")!==-1;var D=this.U.getVideoData(),F=D&&D.Ou,Z,I=!((Z=this.U.getVideoData())==null||!g.zy(Z));Z={};if(f||F){var p;if(f){var z=this.U.getOption("captions","track");Z=this.U.getOption("captions","tracklist",{includeAsr:!0});var H=I?[]:this.U.getOption("captions","translationLanguages");this.tracks=g.yg(Z,this.Qw,this);I=g.M2(Z,this.Qw);var K,k;bvX(this)&&((p=D.getPlayerResponse())==null?0:(K=p.captions)==null?0:(k=K.playerCaptionsTracklistRenderer)== null?0:k.openTranscriptCommand)&&I.push("__correction__");if(H.length&&!g.tC(z)){if((p=z.translationLanguage)&&p.languageName){var h=p.languageName;p=H.findIndex(function(y){return y.languageName===h}); DCu(H,p)}C4J(this.Y,H);I.push("__translate__")}p=this.Qw(z)}else this.tracks={},I=[],p="__off__";I.unshift("__off__");this.tracks.__off__={};F&&I.unshift("__contribute__");this.tracks[p]||(this.tracks[p]=z,I.push(p));this.cR(I);this.bv(p);z&&z.translationLanguage?this.Y.bv(this.Y.Y(z.translationLanguage)):M4E(this.Y);f&&this.G.rM(this.U.getSubtitlesUserSettings());this.countLabel.setContent(Z&&Z.length?" ("+Z.length+")":"");this.publish("size-change");this.U.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.d.gP=function(f){var D=this.U.getOption("captions","track");D=g.UQ(D);D.translationLanguage=this.Y.languages[f];KL(this,D)}; g.d.wN=function(f,D){if(f==="reset")this.U.resetSubtitlesUserSettings();else{var F={};F[f]=D;this.U.updateSubtitlesUserSettings(F)}mjf(this,!0);this.X.start();this.G.rM(this.U.getSubtitlesUserSettings())}; g.d.v_E=function(f){f||g.nk(this.X)}; g.d.Ey=function(){g.nk(this.X);g.C7.prototype.Ey.call(this)}; g.d.open=function(){g.C7.prototype.open.call(this);this.options.__correction__&&!this.J&&(this.J=this.options.__correction__.element,this.U.createClientVe(this.J,this,167341),this.U.logVisibility(this.J,!0))};g.C(k$,jI);k$.prototype.onPlaybackRateChange=function(f){bF(this.pR,f,!0);this.nG(f)}; k$.prototype.nG=function(f){f=Math.round(f*20)/20;this.Cz.element.textContent=f.toFixed(2)+"x";this.Ef.element.classList.toggle("ytp-variable-speed-panel-premium-badge-visible",f>2)}; k$.prototype.lf=function(){for(var f=this.U.getPlayerSize().width,D=g.a(this.element.getElementsByClassName("ytp-variable-speed-panel-preset-button-wrapper")),F=D.next();!F.done;F=D.next()){F=F.value;var Z=void 0,I=Number((Z=F.dataset.priority)!=null?Z:0);Z=!0;f<680?Z=I>1:f<1900&&(Z=I>0);g.iG(F,Z);F.setAttribute("aria-hidden",Z?"false":"true")}};g.C(jr,g.C7);jr.prototype.Y=function(){var f,D=(f=this.U.getVideoData())==null?void 0:f.nE();f=this.U.getPresentingPlayerType(D);this.enable(f!==2&&f!==3)}; jr.prototype.J=function(f){this.setContent(f===1?"Normal":f.toString())}; jr.prototype.open=function(){g.Ap(this.x8,new k$(this.U))};g.C(MLa,g.yO);g.d=MLa.prototype; g.d.initialize=function(){if(!this.isInitialized){var f=this.U.j();this.isInitialized=!0;try{this.Dy=new sFD(this.U,this)}catch(F){g.UT(Error("QualityMenuItem creation failed"))}g.N(this,this.Dy);var D=new TcI(this.U,this);g.N(this,D);f.enableSpeedOptions&&(f.Z("web_enable_varispeed_panel")?(D=new jr(this.U,this),g.N(this,D)):(D=new hzX(this.U,this),g.N(this,D)));(g.LM(f)||f.T)&&(f.J||f.dY)&&(D=new zzI(this.U,this),g.N(this,D));f.Gi&&!f.Z("web_player_move_autonav_toggle")&&(D=new Fw(this.U,this), g.N(this,D));f.Z("html5_enable_new_audio_settings_menu")?(this.IU=new pAf(this.U,this),g.N(this,this.IU)):(f=new DA(this.U,this),g.N(this,f));this.U.publish("settingsMenuInitialized");IBw(this.settingsButton,this.G8.fR())}}; g.d.tN=function(f){this.initialize();this.G8.tN(f);IBw(this.settingsButton,this.G8.fR())}; g.d.Sx=function(f){this.MR()||(this.hN&&this.G8.fR()<=1&&this.hide(),this.G8.Sx(f),IBw(this.settingsButton,this.G8.fR()))}; g.d.Rc=function(f){this.initialize();this.G8.fR()>0&&g.yO.prototype.Rc.call(this,f)}; g.d.Fq=function(){this.i8?this.i8=!1:g.yO.prototype.Fq.call(this)}; g.d.show=function(){g.yO.prototype.show.call(this);g.IC(this.U.getRootNode(),"ytp-settings-shown")}; g.d.hide=function(){g.yO.prototype.hide.call(this);g.zP(this.U.getRootNode(),"ytp-settings-shown")}; g.d.lY=function(f){this.U.logVisibility(this.element,f);this.U.publish("settingsMenuVisibilityChanged",f)}; g.d.X9=function(){this.U.X9()};g.C(cwD,g.x);g.d=cwD.prototype;g.d.onClick=function(){if(ip(this)&&(this.U.toggleSubtitles(),this.U.logClick(this.element),!this.isEnabled())){var f=!1,D=g.JX().Kp(65);g.sn(this.U.j())&&D!=null&&(f=!D);f&&this.U.j().Z("web_player_nitrate_promo_tooltip")&&this.U.publish("showpromotooltip",this.element)}}; g.d.hwy=function(f){var D,F;(D=g.CN(this.U))==null||(F=D.Pp())==null||F.Rc(f)}; g.d.isEnabled=function(){var f=this.U.getOption("captions","track");return!(!f||!f.displayName)}; g.d.u3=function(){var f=ip(this),D=300;this.U.j().S&&(D=480);this.U.Z("delhi_modern_web_player_icons")&&this.updateValue("icon",Sbs(this));var F=this.U.j();if(F.Z("html5_hide_unavailable_subtitles_button")?0:!F.T){if(f){var Z;(Z=this.fQ("ytp-subtitles-button-icon"))==null||Z.setAttribute("fill-opacity","1");this.U.j().Z("player_tooltip_data_title_killswitch")?this.updateValue("title",g.ak(this.U,"Subt\u00edtulos","c")):this.update({"tooltip-title":g.ak(this.U,"Subt\u00edtulos","c")});this.update({"data-title-no-tooltip":"Subt\u00edtulos"})}else{if(this.U.Z("delhi_modern_web_player_icons")){var I; (I=this.fQ("ytp-subtitles-button-icon"))==null||I.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var p;(p=this.fQ("ytp-subtitles-button-icon"))==null||p.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"})}F=this.U.Z("player_disable_caption_button_if_captions_not_available")&&this.U.Z("delhi_modern_web_player")? f:!0}else this.updateValue("title",g.ak(this.U,"Subt\u00edtulos","c")),this.update({"tooltip-title":g.ak(this.U,"Subt\u00edtulos","c")}),this.update({"data-title-no-tooltip":"Subt\u00edtulos"}),F=f;this.tooltip.EE();F=F&&this.U.sy().getPlayerSize().width>=D;this.VL(F);this.U.logVisibility(this.element,F);f?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.d.nF=function(f){g.x.prototype.nF.call(this,f)};g.C(g.hk,g.x);g.d=g.hk.prototype;g.d.canShowCountdown=function(){return!Ak(this)&&!yR(this)}; g.d.Ft=function(){var f=this.api.sy().getPlayerSize().width,D=this.Bs;this.api.j().S&&(D=400);D=f>=D&&(!yR(this)||!g.O(this.api.getPlayerStateObject(),64));this.VL(D);g.qI(this.element,"ytp-time-display-allow-autohide",D&&f<400);f=this.api.getProgressState();if(D){var F=this.api.getPresentingPlayerType();D=this.api.getCurrentTime(F,!1);this.J&&(D-=f.airingStart);Ak(this)&&(D-=this.Mb.startTimeMs/1E3);this.canShowCountdown()&&this.B&&(D-=this.api.getDuration(F,!1));var Z=g.ms(D);this.G!==Z&&(this.updateValue("currenttime", Z),this.G=Z);F=Ak(this)?(this.Mb.endTimeMs-this.Mb.startTimeMs)/1E3:this.api.getDuration(F,!1);Z=g.ms(F);this.X!==Z&&(this.updateValue("duration",Z),this.X=Z);D=g.F8("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.ms(D,!0),DURATION:g.ms(F,!0)});this.updateValue("timeDisplayAriaLabel",D)}UjJ(this,f.isAtLiveHead);vLE(this,this.api.getLoopRange())}; g.d.onLoopRangeChange=function(f){var D=this.Mb!==f;this.Mb=f;D&&(this.Ft(),aBE(this))}; g.d.I1b=function(){this.api.setLoopRange(null)}; g.d.yZF=function(){this.B=!this.B;this.Ft()}; g.d.onVideoDataChange=function(f,D,F){this.updateVideoData((this.api.j().Z("enable_topsoil_wta_for_halftime")||this.api.j().Z("enable_topsoil_wta_for_halftime_live_infra"))&&F===2?this.api.getVideoData(1):D);this.Ft();aBE(this)}; g.d.updateVideoData=function(f){this.CS=f.isLivePlayback&&!f.HL;this.J=Hv(f);this.isPremiere=f.isPremiere;var D,F,Z;this.liveIndicatorText=(f=(D=f.getWatchNextResponse())==null?void 0:(F=D.playerOverlays)==null?void 0:(Z=F.playerOverlayRenderer)==null?void 0:Z.liveIndicatorText)?sf(f):null;g.qI(this.element,"ytp-live",yR(this));this.api.Z("delhi_modern_web_player")&&this.fQ("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.d.onClick=function(f){f.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.d.Ey=function(){this.Y&&this.Y();g.x.prototype.Ey.call(this)};g.C(W2J,g.x);g.d=W2J.prototype;g.d.Oj=function(){Bcs(this)}; g.d.rZF=function(f){GgD(this,f);this.N&&Bcs(this)}; g.d.On=function(f){if(!f.defaultPrevented){var D=f.keyCode,F=null;D===37?F=this.volume-5:D===39?F=this.volume+5:D===36?F=0:D===35&&(F=100);F!==null&&(F=g.PZ(F,0,100),F===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(F)),f.preventDefault())}}; g.d.Q1=function(f){var D=f.deltaX||-f.deltaY;f.deltaMode?this.api.setVolume(this.volume+(D<0?-10:10)):this.api.setVolume(this.volume+g.PZ(D/10,-10,10));f.preventDefault();var F,Z;((F=this.api.j())==null?0:(Z=F.getWebPlayerContextConfig())==null?0:Z.enableFullscreenComponentsFeature)&&f.stopPropagation()}; g.d.txT=function(){$$(this,this.Y,!0,this.J,this.api.uc());this.Bs=this.volume;this.api.isMuted()&&this.api.unMute()}; g.d.P3=function(f){var D=this.B?78:52,F=this.B?18:12;f-=g.oE(this.S).x;F=g.PZ((f-F/2)/(D-F),0,1);this.N&&(F=g.PZ(f/D,0,1));D=F;D=this.api.Z("web_player_non_linear_volume_controls")?D<=.25?D/.25*.1:.1+(D-.25)/.75*.9:D;this.api.setVolume(D*100)}; g.d.sGb=function(){$$(this,this.Y,!1,this.J,this.api.uc());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Bs))}; g.d.onVolumeChange=function(f){wAw(this,f.volume,f.muted)}; g.d.Jg=function(){$$(this,this.Y,this.isDragging,this.J,this.api.uc())}; g.d.Ey=function(){g.x.prototype.Ey.call(this);g.zP(this.T,"ytp-volume-slider-active")};g.C(VR,g.x); VR.prototype.onVideoDataChange=function(){var f=this.api.j();this.bE();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).Yn;this.VL(this.visible);this.api.logVisibility(this.element,this.visible&&this.Jb);if(this.visible){var D=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",D)}f.B&&(this.Y&&(this.DK(this.Y),this.Y=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.IC(this.element,"no-link")); D=this.api.j();f=this.api.getVideoData();var F="";D.B||(D=g.FT(D),D.indexOf("www.")===0&&(D=D.substring(4)),F=g.ok(f)?"Ver en YouTube Music":D==="youtube.com"?"Ver en YouTube":g.F8("Ver en $WEBSITE",{WEBSITE:D}));this.api.Z("player_tooltip_data_title_killswitch")?this.updateValue("title",F):this.updateValue("tooltip-title",F)}; VR.prototype.onClick=function(f){this.api.Z("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var D=this.api.j(),F=this.api.getVideoUrl(!g.TL(f),!1,!0,!0);if(g.LM(D)){var Z={};g.LM(D)&&g.$u(this.api,"addEmbedsConversionTrackingParams",[Z]);F=g.tL(F,Z)}g.AA(F,this.api,f);this.api.Z("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; VR.prototype.bE=function(){var f={K:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},L:[{K:"path",hZ:!0,C:"ytp-svg-fill",W:{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 "}}]}, D=28666,F=this.api.getVideoData();this.api.isEmbedsShortsMode()?f={K:"svg",W:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},L:[{K:"path",W:{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.ok(F)&&(f={K:"svg",W:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},L:[{K:"path",W:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{K:"path",W:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{K:"path",W:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{K:"path",W:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",W:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{K:"path",W:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{K:"path",W:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{K:"path",W:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{K:"path",W:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{K:"path",W:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{K:"path",W:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{K:"path",W:{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"}}]},D=216163);g.ok(F)?g.IC(this.element,"ytp-youtube-music-button"):g.zP(this.element,"ytp-youtube-music-button");f.W=Object.assign({},f.W,{"aria-hidden":"true"});this.updateValue("logoSvg",f);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,D,!0)}; VR.prototype.nF=function(f){g.x.prototype.nF.call(this,f);this.api.logVisibility(this.element,this.visible&&f)};g.C(lBT,g.ia);g.d=lBT.prototype;g.d.onProgress=function(){if(this.U.Z("web_player_max_seekable_on_ended")||!g.O(this.U.getPlayerStateObject(),2))tY(this.La),this.progressBar.Ft(),this.iI.Ft()}; g.d.K0=function(){this.zL();if(tY(this.La))this.progressBar.xe();else this.onProgress()}; g.d.L5=function(){this.onProgress();this.N.start()}; g.d.zL=function(){var f;if(f=!this.U.j().J){f=this.progressBar;var D=2*g.z6()*f.T,F=f.B;f=(F.Y-F.J)*1E3/f.api.getPlaybackRate()/D<300}f=f&&this.U.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;D=!f;tY(this.La)&&(f=D=!1);D?this.KQ||(this.KQ=this.D(this.U,"progresssync",this.onProgress)):this.KQ&&(this.DK(this.KQ),this.KQ=null);f?this.N.isActive()||this.N.start():this.N.stop()}; g.d.bE=function(){var f=this.U.z2(),D=this.U.sy().getPlayerSize(),F=this.U.sy().xk,Z=Jww(this),I=uXa(this),p=Math.max(D.width-Z*2,100);if(this.eT!==D.width||this.b3!==f||this.U.Z("web_player_rtr_ctrls")&&this.Nh!==F)this.eT=D.width,this.b3=f,this.Nh=F,this.J.element.style.width=I+"px",this.J.element.style.left=Z+"px",g.fBu(this.progressBar,Z,I,f),this.U.pE().oY=I;F=this.Y;p=Math.min(570*(f?1.5:1),p);f=Math.min(413*(f?1.5:1),Math.round((D.height-NcD(this))*.82));F.maxWidth=p;F.maxHeight=f;F.CU();this.zL(); this.G3&&wds(this.Ps,D.height)}; g.d.onVideoDataChange=function(){var f=this.U.getVideoData();this.Ir.style.background=f.Yn?f.sU:"";this.Bs&&Jkd(this.Bs,f.showSeekingControls);this.Jb&&Jkd(this.Jb,f.showSeekingControls)}; g.d.Cp=function(){return this.J.element};g.C(ezJ,kK);g.d=ezJ.prototype;g.d.Ev=function(f){f.target===this.dismissButton.element?this.Y&&EVa(jh(),this.Y):(this.onClickCommand&&(this.FW(!1),this.U.wY("innertubeCommand",this.onClickCommand)),this.pm())}; g.d.pm=function(){this.enabled=!1;this.N.hide()}; g.d.onVideoDataChange=function(f,D){f==="dataloaded"&&xjX(this);f=[];var F,Z,I,p;if(D=(p=g.Q((F=D.getWatchNextResponse())==null?void 0:(Z=F.playerOverlays)==null?void 0:(I=Z.playerOverlayRenderer)==null?void 0:I.suggestedActionsRenderer,TEn))==null?void 0:p.suggestedActions)for(F=g.a(D),Z=F.next();!Z.done;Z=F.next())(Z=g.Q(Z.value,boL))&&g.Q(Z.trigger,mCC)&&f.push(Z);if(f.length!==0){F=[];f=g.a(f);for(Z=f.next();!Z.done;Z=f.next())if(Z=Z.value,I=g.Q(Z.trigger,mCC)){p=(p=Z.title)?g.ih(p):"View Chapters"; D=I.timeRangeStartMillis;var z=I.timeRangeEndMillis;I=I.onlyTriggersOnPlayerPause;Z.tapCommand&&(D!=null&&z!=null&&F.push(new g.Jm(D,z,{priority:9,namespace:"suggested_action_button_visible",id:p})),D!=null&&z!=null||I)&&(this.suggestedActions[p]=Z,Z.rendererContext&&!this.J&&(p=g.Q(Z.rendererContext,Ibo))&&(I=void 0,p=(I=p.loggingDirectives)==null?void 0:I.trackingParams)&&(this.U.setTrackingParams(this.badge.element,p),this.J=!0),I=void 0,((I=Z.dismissButtonClientVeSpec)==null?0:I.uiType)&&!this.Y&& (this.Y=$y(Z.dismissButtonClientVeSpec.uiType),h4(jh(),this.Y)))}this.U.Bw(F)}}; g.d.XH=function(){return this.enabled}; g.d.lY=function(){this.enabled?this.jT.start():oL(this);this.h7()}; g.d.onStateChange=function(f){for(var D=g.a(Object.keys(this.suggestedActions)),F=D.next();!F.done;F=D.next()){F=F.value;var Z=void 0;if((Z=g.Q(this.suggestedActions[F].trigger,mCC))==null?0:Z.onlyTriggersOnPlayerPause){f.state.isPaused()?(gLD(this,F),this.enabled=!0,this.lY()):f.oldState.isPaused()&&(this.enabled=!1,this.lY());break}}}; g.d.Ey=function(){xjX(this);kK.prototype.Ey.call(this)};var be={},QR=(be.CHANNEL_NAME="ytp-title-channel-name",be.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",be.LINK="ytp-title-link",be.SESSIONLINK="yt-uix-sessionlink",be.SUBTEXT="ytp-title-subtext",be.TEXT="ytp-title-text",be.TITLE="ytp-title",be);g.C(CL,g.x);CL.prototype.onClick=function(f){this.api.logClick(this.element);var D=this.api.j(),F=this.api.getVideoUrl(!g.TL(f),!1,!0);g.LM(D)&&(D={},g.$u(this.api,"addEmbedsConversionTrackingParams",[D]),F=g.tL(F,D));g.AA(F,this.api,f)}; CL.prototype.u3=function(){var f=this.api.getVideoData(),D=this.api.j();this.updateValue("title",f.title);var F={K:"a",C:QR.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},nQ:"{{channelName}}"};this.api.j().B?F={K:"span",C:QR.CHANNEL_NAME,nQ:"{{channelName}}",W:{tabIndex:"{{channelSubtextFocusable}}"}}:f.Vu&&(F={K:"span",C:QR.SUBTEXT,nQ:f.Vu});this.updateValue("subtextElement",F);XAD(this);this.api.getPresentingPlayerType()===2&&(F=this.api.getVideoData(),F.videoId&&F.isListed&&F.author&& F.jT&&F.profilePicture?(this.updateValue("channelLink",F.jT),this.updateValue("channelName",F.author),this.updateValue("channelTitleFocusable","0")):XAD(this));F=D.externalFullscreen||!this.api.isFullscreen()&&D.zv;g.qI(this.link,QR.FULLERSCREEN_LINK,F);D.KQ||!f.videoId||F||f.Yn||D.B?this.Y&&(this.updateValue("url",null),this.DK(this.Y),this.Y=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Y||(this.Y=this.D(this.link,"click",this.onClick)));D.B&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.LM(D)?f.expandedTitle:f.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.C(g.m8,g.x);g.d=g.m8.prototype;g.d.setEnabled=function(f){if(this.type!=null)if(f)switch(this.type){case 3:case 2:Ti(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.T=f}; g.d.fO=function(f,D,F,Z,I,p,z,H){if(!this.zx||this.env.S){this.type===3&&this.xe();this.type!==1&&(g.Fs(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.T&&this.fade.show(),this.J&&this.J.dispose(),(this.J=this.api.OG())&&this.J.subscribe("l",this.hC,this));if(H){var K=g.jQ(this.bg).height||141;this.Tx.style.bottom=K+2+"px"}else this.Tx.style.display="none";this.env.Z("delhi_modern_web_player")?(this.update({pillTimeStamp:F,pillTitle:p!=null?p:"",eduText:H!=null?H:""}),g.IC(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:F,title:p!=null?p:"",eduText:H!=null?H:""}),g.qI(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!p));this.api.isInline()&&g.IC(this.bottomText,"ytp-modern-tooltip-text");g.qI(this.element,"ytp-text-detail",!!Z);F=-1;this.J&&(F=nD(this.J,243*this.scale),this.env.Z("web_l3_storyboard")&&this.J.levels.length===4&&(F=this.J.levels.length-1),F=avD(this.J,F,D));P4D(this,F);if(z)switch(D=g.jQ(this.element).width,z){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=D+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=D/2+"px",this.title.style.textAlign="center"}Ybc(this,!!Z,f,I)}}; g.d.uq=function(){this.type===1&&this.xe()}; g.d.Qk=function(f,D){if(this.type)if(this.type===3)this.xe();else return;OvX(this,f,3,D)}; g.d.EE=function(){this.Y&&!this.S&&(this.env.Z("player_tooltip_data_title_killswitch")?this.Y.hasAttribute("title")&&(this.B=this.Y.getAttribute("title")||"",this.Y.removeAttribute("title"),this.T&&Ti(this)):this.Y.hasAttribute("data-tooltip-title")&&(this.B=this.Y.getAttribute("data-tooltip-title")||"",this.Y.removeAttribute("data-tooltip-title"),this.T&&Ti(this)))}; g.d.hC=function(f,D){f<=this.G&&this.G<=D&&(f=this.G,this.G=NaN,P4D(this,f))}; g.d.k3Y=function(){Uau(this.J,this.G,243*this.scale)}; g.d.xe=function(){switch(this.type){case 2:var f=this.Y;f.removeEventListener("mouseout",this.N);f.addEventListener("mouseover",this.X);f.removeEventListener("blur",this.N);f.addEventListener("focus",this.X);fhD(this);break;case 3:fhD(this);break;case 1:this.J&&(this.J.unsubscribe("l",this.hC,this),this.J=null),this.api.removeEventListener("videoready",this.Bs),this.KQ.stop()}this.type=null;this.T&&this.fade.hide()}; g.d.Bt=function(){if(this.Y)for(var f=0;f=0;D--)if(this.oo[D]===f){this.oo.splice(D,1);break}MU(this.La,64,this.oo.length>0)}; g.d.qS=function(){this.api.zt()&&this.api.VY();return!!this.v8||s1T(this)||g.LS.prototype.qS.call(this)}; g.d.jt=function(){var f=!this.qS(),D=f&&this.api.zt()&&!g.O(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().Yn&&!this.api.j().B&&!this.api.isEmbedsShortsMode(),F=this.vQ&&g.LN(this.api)&&g.O(this.api.getPlayerStateObject(),128);f||F?(this.Sv.show(),this.Iy.show()):(this.Sv.hide(),this.Iy.hide(),this.api.Bt(this.jd.element));D?this.Vz.Rc():this.Vz.Fq();this.O6&&ELu(this.O6,this.jPr||!f);this.api.Z("web_player_hide_overflow_button_if_empty_menu")&&qvd(this);g.LS.prototype.jt.call(this)}; g.d.aM=function(f,D,F,Z,I){f.style.left="";f.style.top="";f.style.bottom="";var p=g.jQ(f),z=Z||this.O6&&g.Ua(this.O6.Cp(),D),H=Z=null;F!=null&&z||(Z=g.jQ(D),H=g.K3(D,this.api.getRootNode()),F==null&&(F=H.x+Z.width/2));F-=p.width/2;z?(D=this.O6,Z=Jww(D),H=uXa(D),z=this.api.sy().getPlayerSize().height,F=g.PZ(F,Z,Z+H-p.width),p=z-NcD(D)-p.height):g.Ua(this.jd.element,D)?(D=this.api.sy().getPlayerSize().width,F=g.PZ(F,12,D-p.width-12),p=this.z2()?this.jD:this.WG,this.api.j().playerStyle==="gvn"&&(p+= 20),this.vQ&&(p-=this.z2()?26:18)):(D=this.api.sy().getPlayerSize(),F=g.PZ(F,12,D.width-p.width-12),p=H.y>(D.height-Z.height)/2?H.y-p.height-12:H.y+Z.height+12);f.style.top=p+(I||0)+"px";f.style.left=F+"px"}; g.d.K0=function(f){f&&(this.api.Bt(this.jd.element),this.O6&&this.api.Bt(this.O6.Cp()));this.kE&&(g.qI(this.contextMenu.element,"ytp-autohide",f),g.qI(this.contextMenu.element,"ytp-autohide-active",!0));g.LS.prototype.K0.call(this,f)}; g.d.Gd=function(){g.LS.prototype.Gd.call(this);this.kE&&(g.qI(this.contextMenu.element,"ytp-autohide-active",!1),this.kE&&(this.contextMenu.hide(),this.ze&&this.ze.hide()))}; g.d.Zi=function(f,D){var F=this.api.sy().getPlayerSize();F=new g.Yd(0,0,F.width,F.height);if(f||!tY(this.La)&&!this.qS()){if(this.api.j().ZW||D)f=this.z2()?this.jD:this.WG,F.top+=f,F.height-=f;this.O6&&(F.height-=NcD(this.O6))}return F}; g.d.Oj=function(f){var D=this.api.getRootNode();f?D.parentElement?(D.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube a pantalla completa"),this.api.j().externalFullscreen||(D.parentElement.insertBefore(this.zl.element,D),D.parentElement.insertBefore(this.Ck.element,D.nextSibling))):g.SJ(Error("Player not in DOM.")):(D.setAttribute("aria-label","Reproductor de v\u00eddeo de YouTube"),this.zl.detach(),this.Ck.detach());this.bE();this.KG()}; g.d.z2=function(){if(this.api.Z("web_player_use_screen_width_for_big_mode")){var f;return this.api.sy().getPlayerSize().width>=((f=g.Pf(this.api.j().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?f:2E3)}f=this.api.j();return this.api.isFullscreen()&&!f.S||!1}; g.d.showControls=function(f){this.p9=!f;this.jt()}; g.d.bE=function(){var f=this.z2();this.tooltip.scale=f?1.5:1;this.contextMenu&&g.qI(this.contextMenu.element,"ytp-big-mode",f);this.jt();this.api.Z("web_player_hide_overflow_button_if_empty_menu")||qvd(this);this.KG();var D=this.api.isEmbedsShortsMode();D&&f?(f=(this.api.sy().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Dx(this.jd.element,"padding-left",f+"px"),g.Dx(this.jd.element,"padding-right",f+"px")):D&&(g.Dx(this.jd.element,"padding-left",""),g.Dx(this.jd.element,"padding-right", ""));g.LS.prototype.bE.call(this)}; g.d.LJ=function(){if(s1T(this)&&!g.LN(this.api))return!1;var f=this.api.getVideoData();return!g.LM(this.api.j())||this.api.getPresentingPlayerType()===2||!this.QK||((f=this.QK||f.QK)?(f=f.embedPreview)?(f=f.thumbnailPreviewRenderer,f=f.videoDetails&&g.Q(f.videoDetails,RTu)||null):f=null:f=null,f&&f.collapsedRenderer&&f.expandedRenderer)?g.LS.prototype.LJ.call(this):!1}; g.d.KG=function(){g.LS.prototype.KG.call(this);this.api.logVisibility(this.title.element,!!this.Rq);this.eI&&this.eI.nF(!!this.Rq);this.channelAvatar.nF(!!this.Rq);this.overflowButton&&this.overflowButton.nF(this.AS()&&!!this.Rq);this.shareButton&&this.shareButton.nF(!this.AS()&&!!this.Rq);this.j7&&this.j7.nF(!this.AS()&&!!this.Rq);this.searchButton&&this.searchButton.nF(!this.AS()&&!!this.Rq);this.copyLinkButton&&this.copyLinkButton.nF(!this.AS()&&!!this.Rq);if(!this.Rq){this.api.Bt(this.jd.element); for(var f=0;f=0?this.Y.playbackRate:1}catch(f){return 1}}; g.d.setPlaybackRate=function(f){this.getPlaybackRate()!==f&&(this.Y.playbackRate=f);return f}; g.d.Ue=function(){return this.Y.loop}; g.d.setLoop=function(f){this.Y.loop=f}; g.d.canPlayType=function(f,D){return this.Y.canPlayType(f,D)}; g.d.isPaused=function(){return this.Y.paused}; g.d.isSeeking=function(){return this.Y.seeking}; g.d.isEnded=function(){return this.Y.ended}; g.d.qZ=function(){return this.Y.muted}; g.d.QO=function(f){jx();this.Y.muted=f}; g.d.xX=function(){var f=this.Y.played||O_([],[]);return this.view?iFu(this,f):f}; g.d.NI=function(){try{var f=this.Y.buffered}catch(D){}f=f||O_([],[]);return this.view?iFu(this,f):f}; g.d.XY=function(){var f=this.Y.seekable||O_([],[]);return this.view?iFu(this,f):f}; g.d.qV=function(){var f=this.Y;return f.getStartDate?f.getStartDate():null}; g.d.getCurrentTime=function(){if(this.view){var f=this.Y.currentTime;f=this.view?f-this.view.start:f}else f=this.Y.currentTime;return f}; g.d.setCurrentTime=function(f){this.Y.currentTime=this.view?this.view?f+this.view.start:f:f}; g.d.getDuration=function(){return this.view?isFinite(this.view.end)&&!this.view.Jj?this.view.end-this.view.start:this.Y.duration-this.view.start:this.Y.duration}; g.d.load=function(){var f=this.Y.playbackRate;try{this.Y.load()}catch(D){}this.Y.playbackRate=f}; g.d.pause=function(){this.Y.pause()}; g.d.play=function(){if(this.view&&this.fL())try{this.Y.currentTime=this.view.start}catch(D){}var f=this.Y.play();if(!f||!f.then)return null;f.then(void 0,function(){}); return f}; g.d.FJ=function(){return this.Y.readyState}; g.d.sY=function(){return this.Y.networkState}; g.d.wp=function(){return this.Y.error?this.Y.error.code:null}; g.d.rp=function(){return this.Y.error?this.Y.error.message:""}; g.d.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Y instanceof window.HTMLVideoElement&&this.Y.getVideoPlaybackQuality)return this.Y.getVideoPlaybackQuality();if(this.Y){var f=this.Y,D=f.webkitDroppedFrameCount;if(f=f.webkitDecodedFrameCount)return{droppedVideoFrames:D||0,totalVideoFrames:f}}return{}}; g.d.a_=function(){try{var f=this.getSize(),D={vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:nx(this.xX(),",",3),vbu:nx(this.NI()),vbs:nx(this.XY()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.FJ(),vns:""+this.sY(),vec:""+this.wp(),vemsg:this.rp(),vvol:""+this.getVolume(),vdom:""+ +this.Zz(),vsrc:""+ +!!this.Ak(),vw:""+f.width,vh:""+f.height};this.view&&(D.view=this.view.start+"-"+this.view.end);return D}catch(F){return{}}}; g.d.RP=function(){return!!this.Y.webkitCurrentPlaybackTargetIsWireless}; g.d.ov=function(){return!!this.Y.webkitShowPlaybackTargetPicker()}; g.d.togglePictureInPicture=function(){var f=this.Y,D=window.document;window.document.pictureInPictureEnabled?this.Y!==D.pictureInPictureElement?f.requestPictureInPicture():D.exitPictureInPicture():kY()&&f.webkitSetPresentationMode(f.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.d.pG=function(){return jiu(this.Y)}; g.d.getSize=function(){return g.jQ(this.Y)}; g.d.setSize=function(f){g.kH(this.Y,f)}; g.d.getVolume=function(){return this.Y.volume}; g.d.setVolume=function(f){jx();this.Y.volume=f}; g.d.addEventListener=function(f,D){this.KQ.listen(f,D,!1,this);this.Xb(f)}; g.d.removeEventListener=function(f,D){this.KQ.DK(f,D,!1,this)}; g.d.dispatchEvent=function(f){if(this.T&&f.type==="pause")return!1;if(xYa){var D,F=((D=f.Y)==null?void 0:D.timeStamp)||Infinity;D=F>performance.now()?F-Date.now()+performance.now():F;F=this.J||this.G;if((F==null?0:F.z1())||D<=((F==null?void 0:F.G)||0)){var Z;this.bM("rms",{l:"mede",sr:(Z=this.Yo)==null?void 0:Z.W_(),et:f.type});return!1}if(this.cY)return this.bM("rms",{l:"medes",et:f.type}),F&&f.type==="seeking"&&(F.G=performance.now(),this.cY=!1),!1}return this.KQ.dispatchEvent(f)}; g.d.Xb=function(f){this.N[f]||(this.Y.addEventListener(f,this.listener),this.N[f]=this.listener)}; g.d.setAttribute=function(f,D){this.Y.setAttribute(f,D)}; g.d.removeAttribute=function(f){this.Y.removeAttribute(f)}; g.d.hasAttribute=function(f){return this.Y.hasAttribute(f)}; g.d.Yb=wT(52);g.d.Mk=wT(55);g.d.Da=wT(58);g.d.MG=wT(61);g.d.OY=function(){return CC(this.Y)}; g.d.Iu=function(f){g.IC(this.Y,f)}; g.d.KI=function(f){return g.Zx(this.Y,f)}; g.d.Zz=function(){return g.Ua(document.body,this.Y)}; g.d.audioTracks=function(){var f=this.Y;if("audioTracks"in f)return f.audioTracks}; g.d.fn=function(){this.Tx=!1}; g.d.Kn=function(){this.Tx=!0;this.QO(!0)}; g.d.Ha=function(){this.Tx&&!this.qZ()&&this.QO(!0)}; g.d.equals=function(f){return!!f&&f.Cp()===this.Cp()}; g.d.Ey=function(){for(var f=g.a(Object.keys(this.N)),D=f.next();!D.done;D=f.next())D=D.value,this.Y.removeEventListener(D,this.N[D]);this.rY&&this.removeEventListener("volumechange",this.Ha);u0f&&j1I(this);Vw.prototype.Ey.call(this)}; g.d.mR=function(){return this.wp()===4}; g.d.hasError=function(){return this.wp()>0}; g.d.JA=function(){switch(this.wp()){case 2:return"progressive.net.retryexhausted";case 3:var f=this.rp();return(f==null?0:f.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||OFd&&(f==null?0:f.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; g.d.M6=function(f){this.Y.disableRemotePlayback=f}; g.d.EO=function(){var f=this.XY();return f.length<1?NaN:f.end(f.length-1)}; g.d.b0=function(){return this.X}; g.d.activate=function(f){var D="";f&&(kSX(this,f),D=f.T3);if(!this.Ak()||D)D&&this.Ak()!==D&&(this.TN(D),delete this.J,this.T&&(this.T.reject(),delete this.T),!window.MediaSource&&window.ManagedMediaSource&&this.M6(!(f==null||!f.Y))),f&&f.Y||this.load(),this.rY||(this.addEventListener("volumechange",this.Ha),this.rY=!0)}; g.d.f6=function(){var f=this;!this.J&&Ki()&&(this.T?this.T.then(function(){return void f.f6()}):this.Ak()||(this.J=this.F0()))}; g.d.RU=function(){this.J&&(this.J.dispose(),this.J=void 0)}; g.d.F0=function(f,D){if(this.J)if(xYa&&i0(this.J)&&!this.J.Zn(f,D)){var F;this.bM("rms",{l:"megms",sr:(F=this.Yo)==null?void 0:F.W_()});this.RU();this.stopVideo()}else return this.G=this.J,this.J=void 0,this.G;f=hnu(this);this.activate(f.B);this.G=f;this.cY=!1;return f}; g.d.q_=function(f){this.J=f}; g.d.playVideo=function(){var f=this;this.isEnded()&&this.seekTo(0);!this.Ak()&&this.X&&(g.SJ(Error("playVideo without src")),this.TN(this.X.T3),this.X.Y||this.load());var D=this.play(),F;if((F=this.Yo)==null||!mpX(F)){var Z;Sp&&(wK||0)>=7&&(!D||((Z=this.Yo)==null?0:Z.Z("mweb_ios_allow_playback_workaround_when_ready")))&&F3a(this,function(){g.AW(function(){KiX(f,f.getCurrentTime(),0)},500)})}return D}; g.d.bM=function(f,D,F){var Z;((Z=this.Yo)==null?0:Z.Oq())&&this.Yo.Gx(f,D,F===void 0?!1:F)}; g.d.JU=function(f){this.Yo=f}; g.d.d$=function(){return ZT(this.NI(),this.getCurrentTime())}; g.d.seekTo=function(f){this.FJ()>0&&(Sp&&wK<4&&(f=Math.max(.1,f)),this.setCurrentTime(f))}; g.d.yv=function(f){if(this.FJ()===0||this.hasError())return!1;var D=this.getCurrentTime()>0;if(f>=0){var F=this.XY();if(F.length||!D)return Pi(F,f)}return D}; g.d.Kc=function(){if(!this.J&&this.G)if(this.G.T)try{var f;this.bM("rms",{l:"mer",sr:(f=this.Yo)==null?void 0:f.W_(),rs:hJ(this.G)});this.G.clear();this.q_(this.G);this.G=void 0}catch(D){f=new g.by("Error while clearing Media Source in MediaElement: "+D.name+", "+D.message),g.SJ(f),this.stopVideo()}else this.stopVideo()}; g.d.stopVideo=function(){var f=this;if(!this.J){var D;(D=this.G)==null||AJ(D);if(u0f){if(!this.T){var F=new $P;F.then(void 0,function(){}); this.T=F;gFs&&this.pause();g.AW(function(){f.T===F&&(j1I(f),F.resolve())},200)}}else j1I(this)}}; g.d.VZ=function(){var f=this.NI();return FH(f)&&this.getDuration()?fi(f,this.getCurrentTime()):0}; g.d.N2=function(){var f=this.NI();return FH(f)&&this.getDuration()?f.end(f.length-1):0}; g.d.yF=function(){var f=this.getDuration();return f===Infinity?1:f?this.VZ()/f:0}; var u0f=!1,gFs=!1,xYa=!1;var tk=[],hvT=!1;g.C(Sr,g.J);Sr.prototype.S=function(){this.Y!=null&&this.app.getVideoData()!==this.Y&&zZ(this.Y)&&h$E(this.app,this.Y,void 0,void 0,this.B)}; Sr.prototype.T=function(){if(this.Y!=null&&this.app.getVideoData()!==this.Y&&this.J!=null&&this.G!=null&&this.X!=null&&zZ(this.Y)){var f=this.app.j().experiments.ww().Y.Kp(ax);f=$YX(this.J,this.G,this.X,f);f==null?h$E(this.app,this.Y,void 0,void 0,this.B):(this.J.Gx("sgap",f),this.J.getVideoData().S&&this.J.Vn(!1),this.app.j().Z("html5_remove_loop_range_on_gapless_fallback")&&(cF(this.app,"gaplessshortslooprange"),this.app.setLoopRange(null)))}}; Sr.prototype.N=function(f){var D=this.app.VT();if(D){var F=this.app.getCurrentTime();Math.abs(F-f.end/1E3)>5&&D.Gx("glrs",{cmt:F});D.seekTo(0,{seekSource:58});D.Gx("glrre",{cmt:F})}}; Sr.prototype.Ey=function(){this.Y=null;g.J.prototype.Ey.call(this)};g.C(g.cd,Vw);g.d=g.cd.prototype;g.d.isView=function(){return!0}; g.d.fL=function(){var f=this.mediaElement.getCurrentTime();if(f1;Pi(f.Ew(),Z-.01)&&!I&&(vd(this,4),F.isActive=!1,F.m7=F.m7||F.isActive,(this.X===1?this.Y:this.J).Gx("sbh",{}),D.isActive=!0,D.m7=D.m7||D.isActive,this.X!==0&&(this.Y.getVideoData().EF=!0));f=this.G.J;if(this.G.Y.isActive&&f.isActive&&(vd(this,5),this.X!==0)){f=this.J.GX();F=this.Y.GX(); this.Y.Gx("sbs",{citag:F==null?void 0:F.itag,nitag:f==null?void 0:f.itag});this.J.Gx("gitags",{pitag:F==null?void 0:F.itag,citag:f==null?void 0:f.itag});var p;(p=this.J)==null||p.ZP()}}}; g.d.ZT=function(){this.qN()&&this.tS("player-reload-after-handoff")}; g.d.tS=function(f,D){D=D===void 0?{}:D;if(!this.MR()&&this.status.status!==6){var F=this.status.status>=4&&f!=="player-reload-after-handoff";this.status={status:Infinity,error:f};if(this.Y&&this.J){var Z=this.J.getVideoData().clientPlaybackNonce;this.Y.xn(new g.px("dai.transitionfailure",Object.assign(D,{cpn:Z,transitionTimeMs:this.zU,msg:f})));this.Y.Vn(F)}this.sD.reject(f);this.dispose()}}; g.d.qN=function(){return this.status.status>=4&&this.status.status<6}; g.d.Ey=function(){T_d(this);this.Y.unsubscribe("newelementrequired",this.ZT,this);if(this.B){var f=this.B.J;this.B.Y.BD.unsubscribe("updateend",this.wc,this);f.BD.unsubscribe("updateend",this.wc,this)}g.J.prototype.Ey.call(this)}; g.d.LY=function(f){g.hF(f,128)&&this.tS("player-error-event")};g.C(Gi,g.J);Gi.prototype.clearQueue=function(f,D){f=f===void 0?!1:f;D=D===void 0?!1:D;wn(this);this.G&&this.G.reject("Queue cleared");this.app.j().Z("html5_gapless_fallback_on_qoe_restart_v2")||D&&this.J&&this.J.Vn(!1);Wd(this,f)}; Gi.prototype.XJ=function(){return!this.Y}; Gi.prototype.qN=function(){var f;return((f=this.B)==null?void 0:f.qN())||!1}; Gi.prototype.Ey=function(){wn(this);Wd(this);g.J.prototype.Ey.call(this)};g.C(B_d,g.zu);g.d=B_d.prototype;g.d.getVisibilityState=function(f,D,F,Z,I,p,z,H){return f?4:I&&KfD?7:Hyu&&!(ZL()||document.hasFocus&&document.hasFocus())||ZL()?3:D?2:F?1:Z?5:I&&!KfD?7:p?8:z?9:H?10:0}; g.d.OQ=function(f){this.fullscreen!==f&&(this.fullscreen=f,this.lY())}; g.d.setMinimized=function(f){this.J!==f&&(this.J=f,this.lY())}; g.d.setInline=function(f){this.inline!==f&&(this.inline=f,this.lY())}; g.d.x9=function(f){this.pictureInPicture!==f&&(this.pictureInPicture=f,this.lY())}; g.d.setSqueezeback=function(f){this.B!==f&&(this.B=f,this.lY())}; g.d.aO=function(f){this.G!==f&&(this.G=f,this.lY())}; g.d.RP=function(){return this.Y}; g.d.zX=function(){return this.fullscreen!==0}; g.d.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.d.jc=function(){return this.fullscreen}; g.d.isMinimized=function(){return this.J}; g.d.isInline=function(){return this.inline}; g.d.isBackground=function(){return ZL()}; g.d.ob=function(){return this.pictureInPicture}; g.d.Wu=function(){return!1}; g.d.Pu=function(){return this.B}; g.d.pw=function(){return this.G}; g.d.lY=function(){this.publish("visibilitychange");var f=this.getVisibilityState(this.RP(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.ob(),this.Wu(),this.Pu(),this.pw());f!==this.T&&this.publish("visibilitystatechange");this.T=f}; g.d.Ey=function(){qSJ(this.X);g.zu.prototype.Ey.call(this)};g.C(g.Bd,g.J);g.d=g.Bd.prototype;g.d.Ey=function(){this.videoData=this.playerState=null;g.J.prototype.Ey.call(this)}; g.d.addCueRange=function(){}; g.d.Ty=function(){}; g.d.P8=function(){}; g.d.Zm=function(){return!1}; g.d.ZD=function(){return!1}; g.d.rb=function(){}; g.d.Ez=function(){}; g.d.YX=function(){return[]}; g.d.X9=function(){}; g.d.yX=function(){}; g.d.M9=function(){return 1}; g.d.getAudioTrack=function(){return this.getVideoData().Dp}; g.d.R5=function(){return null}; g.d.getAvailableAudioTracks=function(){return[]}; g.d.DU=function(){return[]}; g.d.PQ=function(){return[]}; g.d.CK=function(){return""}; g.d.gB=function(){return[]}; g.d.H7=function(){}; g.d.zm=function(){return 0}; g.d.getCurrentTime=function(){return 0}; g.d.AR=function(){}; g.d.GX=function(){}; g.d.a_=function(){return{}}; g.d.getDuration=function(){return 0}; g.d.p7=function(){return 0}; g.d.zi=function(){return 0}; g.d.HF=function(){return!1}; g.d.XK=function(){return 0}; g.d.VZ=function(){return 0}; g.d.Lj=function(){return null}; g.d.UQ=function(){return 0}; g.d.Ue=function(){return!1}; g.d.jL=function(){return 0}; g.d.ac=function(){return null}; g.d.F0=function(){return null}; g.d.qm=function(){return 0}; g.d.ih=function(){return 0}; g.d.Qa=function(){return g.l(function(f){g.Zb(f)})}; g.d.ED=wT(11);g.d.getPlaybackQuality=function(){return"auto"}; g.d.getPlaybackRate=function(){return 1}; g.d.getPlayerState=function(){this.playerState||(this.playerState=new g.du);return this.playerState}; g.d.getPlayerType=function(){return 0}; g.d.getPlaylistSequenceForTime=function(){return null}; g.d.h6=function(){return function(){}}; g.d.uM=function(){return""}; g.d.getPreferredQuality=function(){return"unknown"}; g.d.HK=function(){}; g.d.getProximaLatencyPreference=function(){return 0}; g.d.nV=function(){return Io}; g.d.OG=function(){return null}; g.d.getStoryboardFormat=function(){return null}; g.d.getStreamTimeOffset=function(){return 0}; g.d.PL=function(){return 0}; g.d.R_=function(){return 0}; g.d.Gk=function(){return{oJ:[],TD:[],currentTime:0,Kk:"",droppedVideoFrames:0,isGapless:!1,XJ:!0,Oc:0,Y2:0,J9:0,GY:0,Kr:0,UA:[],A9:[],RX:null,Jo:"0",Gq:null,yf:"",totalVideoFrames:0}}; g.d.getUserAudio51Preference=function(){return 0}; g.d.getUserPlaybackQualityPreference=function(){return""}; g.d.getVideoData=function(){this.videoData||(this.videoData=new g.pT(this.V),g.N(this,this.videoData));return this.videoData}; g.d.c$=function(){return null}; g.d.qG=function(){return null}; g.d.Ww=function(){}; g.d.getVideoLoadedFraction=function(){return 0}; g.d.sP=function(){}; g.d.handleError=function(){}; g.d.Vn=function(){}; g.d.hA=function(){}; g.d.ZF=wT(36);g.d.C1=function(){return!1}; g.d.hasSupportedAudio51Tracks=function(){return!1}; g.d.isAd=function(){return!1}; g.d.iM=function(){return!1}; g.d.RP=function(){return!1}; g.d.isAtLiveHead=function(){return!1}; g.d.s2=function(){return!0}; g.d.isGapless=function(){return!1}; g.d.isHdr=function(){return!1}; g.d.XW=function(){return!1}; g.d.Fa=function(){return!1}; g.d.NH=function(){return!1}; g.d.isProximaLatencyEligible=function(){return!1}; g.d.XJ=function(){return!0}; g.d.gq=function(){return!1}; g.d.Ej=function(){return!1}; g.d.HN=function(){}; g.d.SI=function(){}; g.d.ZP=function(){}; g.d.Lm=function(){}; g.d.Kv=function(){}; g.d.fv=function(){}; g.d.DP=function(){}; g.d.j8=wT(46);g.d.Xy=wT(17);g.d.Qy=function(){}; g.d.pauseVideo=function(){}; g.d.prefetchKeyPlay=function(){}; g.d.playVideo=function(){return g.l(function(f){return f.return()})}; g.d.jk=function(){}; g.d.rB=wT(23);g.d.RA=wT(29);g.d.H9=function(){}; g.d.Gx=function(){}; g.d.Bn=function(){}; g.d.tX=function(){}; g.d.Y9=function(){}; g.d.xn=function(){}; g.d.Ip=function(){}; g.d.M_=function(){}; g.d.v9=function(){}; g.d.IK=function(){}; g.d.D7=function(){}; g.d.Kc=function(){}; g.d.removeCueRange=function(){}; g.d.E$=function(){}; g.d.WD=function(){return[]}; g.d.Le=function(){}; g.d.Sd=function(){}; g.d.F4=function(){}; g.d.GO=function(){}; g.d.dW=function(){}; g.d.gK=function(){}; g.d.FD=function(){}; g.d.seekTo=function(){}; g.d.sendAbandonmentPing=function(){}; g.d.sendVideoStatsEngageEvent=function(){}; g.d.E9=function(){}; g.d.setLoop=function(){}; g.d.e5=function(){}; g.d.setMediaElement=function(){}; g.d.yh=function(){}; g.d.setPlaybackRate=function(){}; g.d.b4=function(){}; g.d.fB=function(){}; g.d.DB=function(){}; g.d.setProximaLatencyPreference=function(){}; g.d.wZ=function(){}; g.d.He=function(){}; g.d.OH=function(){}; g.d.bl=function(){}; g.d.Ys=function(){}; g.d.setUserAudio51Preference=function(){}; g.d.jP=function(){}; g.d.W_=function(){return!1}; g.d.ov=function(){}; g.d.LR=function(){return!1}; g.d.VO=function(){}; g.d.B1=function(){}; g.d.GH=function(){}; g.d.stopVideo=function(){}; g.d.subscribe=function(){return NaN}; g.d.V3=function(){}; g.d.togglePictureInPicture=function(){}; g.d.IE=function(){return 0}; g.d.Jt=function(){}; g.d.unsubscribe=function(){return!1}; g.d.WW=function(){}; g.d.FS=function(){return!1}; g.d.GK=function(){}; g.d.Qm=function(){}; g.d.Is=function(){};g.C(Liu,g.J);g.d=Liu.prototype;g.d.get=function(f){rn(this);var D=this.data.find(function(F){return F.key===f}); return D?D.value:null}; g.d.QI=function(){rn(this);return this.data.map(function(f){return f.value})}; g.d.set=function(f,D,F){this.remove(f,!0);rn(this);f={key:f,value:D,expire:Infinity};F&&isFinite(F)&&(F*=1E3,f.expire=(0,g.m5)()+F);for(this.data.push(f);this.data.length>this.B;)(F=this.data.shift())&&lp(this,F,!0);LL(this)}; g.d.remove=function(f,D){D=D===void 0?!1:D;var F=this.data.find(function(Z){return Z.key===f}); F&&(lp(this,F,D),g.fs(this.data,function(Z){return Z.key===f}),LL(this))}; g.d.removeAll=function(f){if(f=f===void 0?!1:f)for(var D=g.a(this.data),F=D.next();!F.done;F=D.next())lp(this,F.value,f);this.data=[];LL(this)}; g.d.Ey=function(){var f=this;g.J.prototype.Ey.call(this);this.data.forEach(function(D){lp(f,D,!0)}); this.data=[]}; g.C(ryd,g.J);g.d=ryd.prototype;g.d.get=function(f){var D=this.map.get(f);return D?D.Lh<=(0,g.m5)()?(this.remove(f,!0),null):D.value:null}; g.d.QI=function(){for(var f=[],D=(0,g.m5)(),F=[],Z=g.a(this.map.entries()),I=Z.next();!I.done;I=Z.next()){var p=g.a(I.value);I=p.next().value;p=p.next().value;p.Lh<=D?F.push(I):f.push(p.value)}if(F.length>0){D=g.a(F);for(F=D.next();!F.done;F=D.next())Ew(this,F.value,!0);Jk(this)}return f}; g.d.set=function(f,D,F){this.map.has(f)&&Ew(this,f,!0);var Z=(0,g.m5)(),I=Infinity;F!==void 0&&F!==null&&isFinite(F)&&(I=Z+F*1E3);this.map.set(f,{value:D,Lh:I});isFinite(I)&&(this.Y.enqueue(I,f),B$(this.Y)===I&&Jk(this));if(!Number.isNaN(this.G))for(f=this.map.keys();this.map.size>this.G;){D=f.next();if(D.done)break;Ew(this,D.value,!0)}}; g.d.remove=function(f,D){Ew(this,f,D===void 0?!1:D)&&Jk(this)}; g.d.removeAll=function(f){if((f===void 0?0:f)&&this.J){f=g.a(this.map.values());for(var D=f.next();!D.done;D=f.next())this.J(D.value.value)}this.map.clear();this.Y.clear();this.B.stop()}; g.d.Ey=function(){g.J.prototype.Ey.call(this);this.removeAll(!0)};g.C(g.up,g.J);g.d=g.up.prototype;g.d.Ey=function(){for(var f=g.a(Object.values(this.B)),D=f.next();!D.done;D=f.next())D.value.dispose();Jyw(this);this.S.dispose();g.J.prototype.Ey.call(this)}; g.d.HJ=function(f){return f?f===1?this.Jb:this.J.getVideoData().enableServerStitchedDai&&f===2?this.J.getVideoData().hE?this.B[2]||this.J:this.J:this.B[f]||null:this.J}; g.d.Hw=function(f){var D=f.cpn;f=f.playerType;if(D)a:{f=g.a(Object.values(this.B));for(var F=f.next();!F.done;F=f.next())if(F=F.value,F.CK()===D){D=F;break a}D=this.G[D]||null}else D=f?this.HJ(f):this.J;return D}; g.d.fp=function(){return this.Jb}; g.d.wK=function(f){this.Jb=f}; g.d.VT=function(){return this.J}; g.d.PO=function(f){this.J=f;NZ(this)}; g.d.rE=wT(42);g.d.Yr=wT(44);owX.prototype.qp=function(f,D){for(var F=0;F<10;F++){var Z=this.Y[F],I=Z+(F===0?f:0),p=1*Math.pow(2,F);if(I<=p)break;Z=Math.min(1,(I-p*.5)/Z);for(I=0;I<16;I++)p=this.values[F*16+I]*Z,this.values[(F+1)*16+I]+=p,this.Y[F+1]+=p,this.values[F*16+I]-=p,this.Y[F]-=p}Z=F=0;I=8192;D>8192&&(F=Math.ceil(Math.log(D/8192)/Math.log(2)),Z=8192*Math.pow(2,F-1),I=Z*2);F+2>16?this.values[15]+=f:(D=(D-Z)/(I-Z),this.values[F]+=f*(1-D),this.values[F+1]+=f*D);this.Y[0]+=f}; owX.prototype.yz=function(){var f=f===void 0?this.J:f;var D=D===void 0?.02:D;var F=F===void 0?.98:F;for(var Z=this.B,I=0;I<16;I++)Z[I]=this.values[I];I=this.Y[0];for(var p=1;p<11;p++){var z=this.Y[p];if(z===0)break;for(var H=Math.min(1,(f-I)/z),K=0;K<16;K++)Z[K]+=this.values[p*16+K]*H;I+=z*H;if(H<1)break}for(p=f=z=0;p<16;p++){H=z+Z[p]/I;f+=Math.max(0,Math.min(H,F)-Math.max(z,D))*(p>0?8192*Math.pow(2,p-1):0);if(H>F)break;z=H}return f/(F-D)};er.prototype.qp=function(f,D){f=Math.min(this.Y,Math.max(1,Math.round(f*this.resolution)));f+this.J>=this.Y&&(this.B=!0);for(;f--;)this.values[this.J]=D,this.J=(this.J+1)%this.Y;this.bK=!0}; er.prototype.percentile=function(f){var D=this;if(!this.B&&this.J===0)return 0;this.bK&&(g.kJ(this.X,function(F,Z){return D.values[F]-D.values[Z]}),this.bK=!1); return this.values[this.X[Math.round(f*((this.B?this.Y:this.J)-1))]]||0}; er.prototype.yz=function(){return this.T?(this.percentile(this.G-this.T)+this.percentile(this.G)+this.percentile(this.G+this.T))/3:this.percentile(this.G)};g.C(KyT,g.J);KyT.prototype.LQ=function(){var f;(f=this.dY)==null||f.start();CR(this)&&this.policy.N&&this.b3()};iXE.prototype.Z=function(f){return this.experiments.Hs(f)};g.C(ANd,g.Oz);g.d=ANd.prototype;g.d.o9=function(){}; g.d.CK=function(){return this.videoData.clientPlaybackNonce}; g.d.getVideoData=function(){if(g.Oz.prototype.getVideoData.call(this).Z("html5_huli_ssdai_use_playback_state")){var f=u3y(this.D5,g.Oz.prototype.getCurrentTime.call(this))||g.Oz.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==f.clientPlaybackNonce&&$yE(this.G,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:f.clientPlaybackNonce});return this.videoData}return u3y(this.D5,g.Oz.prototype.getCurrentTime.call(this))||g.Oz.prototype.getVideoData.call(this)}; g.d.getCurrentTime=function(f){var D=g.Oz.prototype.getCurrentTime.call(this);if(g.Oz.prototype.getVideoData.call(this).Z("html5_huli_ssdai_use_playback_state")){this.Y===0?f||(D-=this.startTimeSecs,g.Oz.prototype.getVideoData.call(this).Z("html5_ssdai_log_missed_ad_impressions")&&this.J&&this.B&&D>1&&this.Gx("sdai-admiss",{cpn:this.CK(),ct:D.toFixed(3),pfs:this.B}),this.J=!1):f&&(D=this.Y);var F=f?this.D5.e4||g.Oz.prototype.getCurrentTime.call(this):LyI(this.D5,g.Oz.prototype.getCurrentTime.call(this)); D!==F&&$yE(this.G,"time"+(f!=null?f:!1),{time:D,ref:F,ct:f!=null?f:!1})}else D=f?this.D5.e4||D:LyI(this.D5,D);return D}; g.d.getDuration=function(){if(g.Oz.prototype.getVideoData.call(this).Z("html5_huli_ssdai_use_playback_state")){var f=Ewa(this.D5,g.Oz.prototype.getCurrentTime.call(this));this.duration!==f&&$yE(this.G,"duration",{dur:this.duration,ref:f});return this.duration}return Ewa(this.D5,g.Oz.prototype.getCurrentTime.call(this))}; g.d.Oe=function(f){this.duration=f};g.Ow.prototype.Bu=function(f,D){if(D===1)return this.Y.get(f);if(D===2)return this.B.get(f);if(D===3)return this.J.get(f)}; g.Ow.prototype.JG=wT(68);g.Ow.prototype.yB=function(f,D,F,Z){F={W2:Z,lP:F};D?this.B.set(f,F):this.Y.set(f,F)}; g.Ow.prototype.clearAll=function(){this.Y.clear();this.B.clear();this.J.clear()}; RxX.prototype.clear=function(){this.J=[];this.B.clear();this.G.clear();this.Y.clear()}; RxX.prototype.Hw=function(f){var D=f.cpn;f=f.kG;if(D&&(D=this.B.get(D))||f&&(D=(this.X?this.B:this.G).get(f)))return D}; g.C(g.nL,g.J);g.d=g.nL.prototype;g.d.YX=function(){var f=this.playback.YX("serverstitchedcuerange",36E5);f=g.a(f);for(var D=f.next();!D.done;D=f.next())this.J.delete(D.value.getId())}; g.d.onCueRangeEnter=function(f){var D=f.getId();this.k8({oncueEnter:1,cpn:D,start:f.start,end:f.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.zm()||0).toFixed(3)});var F=this.Y.Hw({cpn:D});this.k8({enterAdCueRange:1});var Z=this.yl||this.WL().cpn,I;Z=(I=this.Y.Hw({cpn:Z}))!=null?I:this.WL();F&&(I=this.playback.getCurrentTime(),F.startTimeSecs=f.start/1E3,F={r7:Z,SH:F,Ik:I},HpI(this,D,f.start/1E3,I),IY(this,F));this.dY=!1}; g.d.d3=function(f,D,F){if(f&&D)if((this.app.UE().G[f]||null)===null){var Z;this.k8({nocpn:f,active:(Z=this.app.UE().Y)==null?void 0:Z.CK()})}else{this.dY=F!=null?F:!1;var I;F=((I=this.app.UE().Y)==null?void 0:I.CK())||this.playback.CK();var p;I=(p=this.Y.Hw({cpn:F}))!=null?p:this.WL();var z;p=(z=this.Y.Hw({cpn:f}))!=null?z:this.WL();p.startTimeSecs=D;p.playerType===2&&(p.q5=p.q5!=null?Math.min(p.q5,D):D);z=this.playback.getCurrentTime();HpI(this,F,D,z);IY(this,{r7:I,SH:p,Ik:z});if(this.playback.getVideoData().nE()&& f===this.playback.CK())if(D=this.Wk.get(F)){var H;f=g.a((H=this.rY.get(D))!=null?H:[]);for(H=f.next();!H.done;H=f.next()){H=H.value;F=z=void 0;p=this.app.UE();F=F===void 0?"":F;if(I=p.G[H])p.Y===I&&(p.Y=null),p.X===I&&(p.X=null),H===((z=p.N.get(F))==null?void 0:z.CK())&&p.N.delete(F),delete p.G[H];this.xo.delete(H);this.Wk.delete(H)}this.rY.delete(D)}else this.k8({no_abid:f})}}; g.d.Ym=function(f,D){if(f===this.playback.CK())gn(this.app.UE(),this.playback,!1);else{var F=this.xo.get(f);F?(f=!this.dY,F.Y=0,F.startTimeSecs=D,F.B=f===void 0?!0:f,F.J=!0,gn(this.app.UE(),F,!0)):this.k8({nop_s:f})}}; g.d.onCueRangeExit=function(f){for(var D=this.playback.getCurrentTime()*1E3,F=f.getId(),Z=g.a(this.J.values()),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.getId()!==F&&D>=I.start&&D<=I.end)return;if(F=this.Y.Hw({cpn:F}))D=this.playback.getCurrentTime(),Z=this.WL(),Z.startTimeSecs=f.end/1E3,F={r7:F,SH:Z,Ik:D},HpI(this,this.playback.CK(),f.end/1E3,D),IY(this,F)}; g.d.WL=function(){return{cpn:this.playback.CK(),durationMs:0,TT:0,playerType:1,l4:0,videoData:this.playback.getVideoData(),errorCount:0,Zf:""}}; g.d.seekTo=function(f,D,F,Z){f=f===void 0?0:f;D=D===void 0?{}:D;F=F===void 0?!1:F;Z=Z===void 0?null:Z;Zc(this,this.yl);if(this.playback.getVideoData().nE()&&f<=this.e4)this.playback.pauseVideo(),this.e4=0,opu(this,f);else if(this.dY=this.Jb=!0,F)Mwu(this,f,D);else{F=this.app.VT();var I=F===this.Tx?this.JN:null;Dc(this,!1);this.Z5=f;this.Uq=D;Z!=null&&this.G3.start(Z);F&&(this.JN=I||F.getPlayerState(),F.GH(D),this.Tx=F)}}; g.d.Ey=function(){Dc(this,!1);exy(this);xyd(this);g.J.prototype.Ey.call(this)}; g.d.zR=function(f,D,F){if(F&&D){var Z=this.zw.get(f);if(Z){Z.locations||(Z.locations=new Map);var I=Number(D.split(";")[0]);F=new g.Cf(F);this.k8({hdlredir:1,itag:D,seg:f,hostport:hI(57,F)});Z.locations.set(I,F)}}}; g.d.VI=function(f,D,F,Z,I,p){var z=Number(F.split(";")[0]),H=Z===3;f=nwT(this,f,D,Z,F,p);this.k8({gdu:1,seg:D,itag:z,pb:""+!!f});if(!f)return FP(this,D,H),null;f.locations||(f.locations=new Map);if(!f.locations.has(z)){var K,k;p=(K=f.videoData.getPlayerResponse())==null?void 0:(k=K.streamingData)==null?void 0:k.adaptiveFormats;if(!p)return this.k8({gdu:"noadpfmts",seg:D,itag:z}),FP(this,D,H),null;K=p.find(function(A){return A.itag===z}); if(!K||!K.url){var h=f.videoData.videoId;f=[];var y=g.a(p);for(Z=y.next();!Z.done;Z=y.next())f.push(Z.value.itag);this.k8({gdu:"nofmt",seg:D,vid:h,itag:z,fullitag:F,itags:f.join(",")});FP(this,D,H);return null}f.locations.set(z,new g.Cf(K.url,!0))}p=f.locations.get(z);if(!p)return this.k8({gdu:"nourl",seg:D,itag:z}),FP(this,D,H),null;p=new rV(p);this.qb&&(p.get("dvc")?this.k8({dvc:p.get("dvc")||""}):p.set("dvc","webm"));(Z=(y=this.Bu(D-1,Z,I))==null?void 0:y.W2)&&p.set("daistate",Z);f.UU&&D>=f.UU&& p.set("skipsq",""+f.UU);(y=this.playback.getVideoData().clientPlaybackNonce)&&p.set("cpn",y);y=[];f.Zf&&(y=PeD(this,f.Zf),y.length>0&&p.set("acpns",y.join(",")));H||this.zw.set(D,f);H=null;H=p.get("aids");Z=p.M7();(Z==null?void 0:Z.length)>2048&&this.k8({urltoolong:1,sq:D,itag:z,len:Z.length});this.LQ&&(Z&&(p=f.cpn,I=f.Zf,zbT(this,p,I),I&&!this.vI.has(I)&&(p=IeJ(this,p,I),K=p2X(this,I),this.k8({iofa:p}),this.k8({noawnzd:K-p}),this.k8({acpns:y.join("."),aids:(h=H)==null?void 0:h.replace(/,/g,".")}), this.vI.add(I))),this.k8({gdu:"v",seg:D,itag:F,ast:f.TT.toFixed(3),alen:f.durationMs.toFixed(3),acpn:f.cpn,avid:f.videoData.videoId}));return Z}; g.d.U9=function(f,D,F){F=F===void 0?!1:F;var Z=OXc(this,f,D);if(Z){this.Fd&&(this.zx=Z);var I=void 0,p=Z.Zf;if(p){this.k8({skipadonsq:D,sts:F,abid:p,acpn:Z.cpn,avid:Z.videoData.videoId});F=this.Y.Y.get(p);if(!F)return;F=g.a(F);for(p=F.next();!p.done;p=F.next())p=p.value,p.UU=D,p.PT=f,p.TT>Z.TT&&(I=p)}Zc(this,this.yl);this.B=Z.cpn;fea(this);this.api.Z("html5_ssdai_enable_media_end_cue_range")&&this.playback.Jt(this.B);f=this.playback.getCurrentTime();FLu(this,Z,I,f,f,!1,!0);qsu(this)}}; g.d.Rw=function(){for(var f=g.a(this.Y.J),D=f.next();!D.done;D=f.next())D=D.value,D.UU=NaN,D.PT=NaN;fea(this);this.k8({rsac:"resetSkipAd",sac:this.B});this.eT.delete(this.B);this.B="";this.Fd&&(this.zx=void 0)}; g.d.Bu=function(f,D,F){return this.Bs.Bu(f,D,F)}; g.d.JG=wT(67); g.d.yW=function(f){var D=f.trackType,F;f=g.a((F=f.metadata)!=null?F:[]);for(F=f.next();!F.done;F=f.next()){var Z=void 0;F=g.a((Z=F.value.w_d)!=null?Z:[]);for(Z=F.next();!Z.done;Z=F.next()){var I=Z.value,p=I.TI,z=I.fM;Z=I.cpn;var H=I.loggingMetadata,K=I.Xi;I=I.Ml;if(Z&&Z!==this.playback.getVideoData().clientPlaybackNonce){var k=this.Y.Hw({cpn:Z});if(D===2){if(p&&p.startTicks!==void 0&&p.uh!==void 0&&p.timescale!==void 0&&z&&z.startTicks!==void 0&&z.uh!==void 0&&z.timescale!==void 0&&K!==void 0){var h= p.startTicks/p.timescale+this.PL();p=z.startTicks/z.timescale;z=z.uh/z.timescale;k&&(k.q5=k.q5!==void 0?Math.min(k.q5,h):h,H&&(k.aK=g.Qo(H)));H=(h-p)*1E3;z=(p+z)*1E3;K=H+(I?z:Math.max(z+1E3,K));(I=this.J.get(Z))?(I.start=H,I.end=K,this.playback.fv()):(I=WyX(H,K,Z),this.J.set(Z,I),this.playback.addCueRange(I))}this.YX()}else D===1&&k&&H&&(k.eQ=g.Qo(H))}}}}; g.d.yB=function(f,D,F,Z,I,p,z,H){F.length>0&&this.k8({onssinfo:1,sq:f,start:D.toFixed(3),cpns:F.join(","),ds:Z.join(","),isVideo:p?1:0});if(this.Fd&&this.zx&&this.zx.UU&&F.length>0)for(var K=g.a(F),k=K.next();!k.done;k=K.next())if(k=k.value,k===this.zx.cpn){this.Y_!==k&&(this.k8({skiperror:1,sq:f,acpn:this.zx.cpn,skipsq:this.zx.UU||0}),this.Y_=k);break}H&&this.Bs.yB(f,p,z,H);if(p){if(F.length&&Z.length)for(this.eT.has(F[0])&&this.k8({skipfail:1,sq:f,acpn:F[0]}),f=D+this.PL(),p=0;pthis.G.c6+1){this.k8({cueStChg:f.identifier,oldSt:this.G.c6.toFixed(3),newSt:f.startSecs.toFixed(3),abid:this.G.nX});if(this.G.nX){var F=f.startSecs-this.G.c6,Z=this.Y.Y.get(this.G.nX);if(Z){Z=g.a(Z);for(var I= Z.next();!I.done;I=Z.next())I=I.value,I.TT>=0&&(I.TT+=F*1E3,this.k8({newApEt:I.TT,newApPrt:I.l4,acpn:I.cpn}))}}this.G.c6=f.startSecs}D?this.jT.add(f.identifier):this.jT.has(f.identifier)&&this.jT.delete(f.identifier);return D}; g.d.Qi=function(f){var D=this;if(this.V.Z("html5_lifa_ignore_multiple_skips")&&this.KQ)return this.k8({ufs_ad:this.B,ufs_cur:this.yl,ufs_cont:this.WL().cpn}),!1;Zc(this,this.yl);this.playback.pauseVideo();var F=this.playback.getCurrentTime(),Z=this.Y.Hw({cpn:this.yl});if(!Z)return this.k8({skipFail:F}),!1;this.B=this.yl;this.Jb=!1;this.api.Z("html5_ssdai_enable_media_end_cue_range")&&this.playback.Jt(this.B);this.zp(Z.Zf);KLD(this,Z,this.WL(),f);opu(this,F,{seekSource:89,pF:"lifa_skip"});this.KQ|| (this.KQ=this.events.D(this.api,"progresssync",function(){zp(D.api.uv(),(0,g.m5)(),"ad_to_video");D.KQ&&(D.events.DK(D.KQ),D.KQ=null)})); return!0}; g.d.zp=function(f){if(this.playback.getVideoData().nE()){var D=this.Y.Y.get(f);if(D){D=g.a(D);for(var F=D.next();!F.done;F=D.next()){F=F.value;var Z=this.J.get(F.cpn);this.J.delete(F.cpn);Z&&this.playback.removeCueRange(Z);bXf(this.Y,F)}this.zw.clear();D=this.Y;var I;F=(I=D.Y.get(f))!=null?I:[];I=g.a(F);for(F=I.next();!F.done;F=I.next())bXf(D,F.value);D.Y.delete(f);(f=this.gw.get(f))&&this.HD&&this.playback.GO(f)}}}; g.d.k8=function(f,D){((D===void 0?0:D)||this.LQ)&&this.playback.Gx("sdai",f)}; var vwD=0;g.C(jlf,g.J);g.d=jlf.prototype;g.d.onCueRangeEnter=function(f){if(this.Y===this.app.VT()){var D=this.X.get(f);D?VRX(this,D.target,D.zU,f):this.xn("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:f.toString()})}else if(D=this.J.find(function(I){return I.QF.Nz===f})){var F=D.QF,Z=F.target; F=F.zU;Z?VRX(this,Z,F,f):$Af(this,D.l4,F,f)}}; g.d.onQueuedVideoLoaded=function(){var f=this.S;qv(this);if(f){if(!sU(this,f)){var D=this.app.VT();this.xn("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:D==null?void 0:D.getVideoData().clientPlaybackNonce,ccpn:""+f.playerVars.cpn})}this.app.VT().addCueRange(f.QF.Nz)}}; g.d.seekTo=function(f,D,F,Z){f=f===void 0?0:f;D=D===void 0?{}:D;Z=Z===void 0?null:Z;if(F===void 0?0:F)kMD(this,f,D);else{F=this.app.VT()||null;var I=F===this.G?this.T:null;HF(this,!1);this.Bs=f;this.Jb=D;Z!=null&&this.N.start(Z);F&&(this.T=I||F.getPlayerState(),F.GH(),this.G=F)}}; g.d.ZY=function(f){g.hF(f,128)&&mAE(this)}; g.d.isManifestless=function(){return ME(this.Y.getVideoData())}; g.d.Ey=function(){HF(this,!1);bpD(this);g.J.prototype.Ey.call(this)}; g.d.xn=function(f,D){this.Y.xn(new g.px(f,D))}; var ipT=0;var MRf="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_APPS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.C(oY,g.J);oY.prototype.iA=function(f){if(f)return this.J.get(f)}; oY.prototype.Ey=function(){this.Y.removeAll();this.J.removeAll();g.J.prototype.Ey.call(this)};g.jhV=Ne(function(){var f=window.AudioContext||window.webkitAudioContext;try{return new f}catch(D){return D.name}});g.C(vpX,g.x);g.d=vpX.prototype;g.d.Iu=function(){g.pY(this.element,g.hv.apply(0,arguments))}; g.d.Sd=function(){this.GT&&(this.GT.removeEventListener("focus",this.Td),g.cE(this.GT),this.GT=null)}; g.d.YP=function(){this.MR();var f=this.app.j();f.CG||this.Iu("tag-pool-enabled");f.T&&this.Iu(g.Uf.HOUSE_BRAND);f.playerStyle==="gvn"&&(this.Iu("ytp-gvn"),this.element.style.backgroundColor="transparent");f.gw&&(this.oC=g.f_("yt-dom-content-change",this.resize,this));this.D(window,"orientationchange",this.resize,this);this.D(window,"resize",this.resize,this)}; g.d.Hm=function(f){g.NF(this.app.j());this.lw=!f;Kd(this)}; g.d.resize=function(){if(this.GT){var f=this.nw();if(!f.isEmpty()){this.app.NR.isFullscreen()&&et()&&this.Ss.start();var D=!g.pG(f,this.Su.getSize()),F=Bru(this);D&&(this.Su.width=f.width,this.Su.height=f.height);f=this.app.j();(F||D||this.ix||f.gw)&&this.app.NR.publish("resize",this.getPlayerSize())}}}; g.d.T1=function(f,D){this.updateVideoData(D)}; g.d.updateVideoData=function(f){if(this.GT){var D=this.app.j();NS&&(this.GT.setAttribute("x-webkit-airplay","allow"),f.title?this.GT.setAttribute("title",f.title):this.GT.removeAttribute("title"));this.GT.setAttribute("controlslist","nodownload");D.qv&&f.videoId?this.GT.poster=f.ut("default.jpg"):D.experiments.ww().Y.Kp($wY)&&Z8()&&(ul!=null?ul:0)>=10&&(this.GT.poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}D=g.Wt(f,"yt:bgcolor");this.Cj.style.backgroundColor= D?D:"";this.RS=o8(g.Wt(f,"yt:stretch"));this.iX=o8(g.Wt(f,"yt:crop"),!0);g.qI(this.element,"ytp-dni",f.Yn);this.resize()}; g.d.setGlobalCrop=function(f){this.x4=o8(f,!0);this.resize()}; g.d.setCenterCrop=function(f){this.t$=f;this.resize()}; g.d.OQ=function(){}; g.d.getPlayerSize=function(){var f=this.app.j(),D=this.app.NR.isFullscreen(),F=f.externalFullscreen&&g.LM(f);if(D&&et()&&!F)return new g.IG(window.outerWidth,window.outerHeight);F=!isNaN(this.Tl.width)&&!isNaN(this.Tl.height);var Z=this.app.j().Z("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.j().Z("web_watch_enable_fs_squeezeback_panels");if(D&&!F&&Z)return new g.IG(this.element.clientWidth,this.element.clientHeight);if(D||f.kT){if(window.matchMedia){f="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.yV&&this.yV.media===f||(this.yV=window.matchMedia(f));var I=this.yV&&this.yV.matches}if(I)return new g.IG(window.innerWidth,window.innerHeight)}else if(F)return this.Tl.clone();return new g.IG(this.element.clientWidth,this.element.clientHeight)}; g.d.nw=function(){var f=this.app.j().Z("enable_desktop_player_underlay"),D=this.getPlayerSize(),F=g.Pf(this.app.j().experiments,"player_underlay_min_player_width");return f&&this.UZ&&D.width>F?(f=g.Pf(this.app.j().experiments,"player_underlay_video_width_fraction"),new g.IG(Math.min(D.height*this.getVideoAspectRatio(),D.width*f),Math.min(D.height,D.width*f/this.getVideoAspectRatio()))):D}; g.d.getVideoAspectRatio=function(){return isNaN(this.RS)?GMf(this):this.RS}; g.d.getVideoContentRect=function(f){var D=this.nw();f=w2c(this,D,this.getVideoAspectRatio(),f);return new g.Yd((D.width-f.width)/2,(D.height-f.height)/2,f.width,f.height)}; g.d.e2=function(f){this.UZ=f;this.resize()}; g.d.u6=function(){return this.Bm}; g.d.onMutedAutoplayChange=function(){Kd(this)}; g.d.setInternalSize=function(f){g.pG(this.Tl,f)||(this.Tl=f,this.resize())}; g.d.Ey=function(){this.oC&&g.Dd(this.oC);this.Sd();g.x.prototype.Ey.call(this)};g.d=LLc.prototype;g.d.click=function(f,D){this.elements.has(f);this.Y.has(f);var F=g.d4();F&&f.visualElement&&g.F5(F,f.visualElement,D)}; g.d.createClientVe=function(f,D,F,Z){var I=this;Z=Z===void 0?!1:Z;this.elements.has(f);this.elements.add(f);F=$y(F);f.visualElement=F;var p=g.d4(),z=g.R6();p&&z&&(g.CO("combine_ve_grafts")?h4(jh(),F,z):g.DK(g.uN)(void 0,p,z,F));D.addOnDisposeCallback(function(){I.elements.has(f)&&I.destroyVe(f)}); Z&&this.J.add(f)}; g.d.createServerVe=function(f,D,F){var Z=this;F=F===void 0?!1:F;this.elements.has(f);this.elements.add(f);D.addOnDisposeCallback(function(){Z.destroyVe(f)}); F&&this.J.add(f)}; g.d.destroyVe=function(f){this.elements.has(f);this.elements.delete(f);this.B.delete(f);this.Y.delete(f);this.J.delete(f)}; g.d.I9=function(f,D){this.clientPlaybackNonce!==D&&(this.clientPlaybackNonce=D,i9(jh(),f),leE(this))}; g.d.setTrackingParams=function(f,D){this.elements.has(f);D&&(f.visualElement=g.Aa(D))}; g.d.VL=function(f,D,F){this.elements.has(f);D?this.Y.add(f):this.Y.delete(f);var Z=g.d4(),I=f.visualElement;this.J.has(f)?Z&&I&&(D?g.fm(Z,[I]):g.DF(Z,[I])):D&&!this.B.has(f)&&(Z&&I&&g.P1(Z,I,void 0,F),this.B.add(f))}; g.d.hasVe=function(f){return this.elements.has(f)};g.C(j7,g.J);j7.prototype.sendMessage=function(f){if(this.wM){if(this.Y&&this.Y.byteLength===f)var D=this.Y;else{D=new Uint8Array(f);for(var F=0;f>0;){var Z=new Uint8Array(Math.min(f,65536));crypto.getRandomValues(Z);D.set(Z,F);f-=Z.length;F+=Z.length}this.Y=D}D.length>0&&D[0]++;F=performance.now();this.wM.postMessage({mainEventSent:F,data:D})}}; j7.prototype.onMessage=function(f){if(!(this.G>=1E4)){var D=f.timeStamp,F=performance.now();f=f.data;var Z=f.mainEventSent;this.Gx("worker",{t1:(f.workerEventCreated-performance.timeOrigin-Z).toFixed(3),t2:(f.workerEventProcessed-performance.timeOrigin-Z).toFixed(3),t3:(D-Z).toFixed(3),t4:(F-Z).toFixed(3),data:Uint8Array.BYTES_PER_ELEMENT*f.data.length});this.G++}}; j7.prototype.Ey=function(){this.J!==void 0&&(clearInterval(this.J),this.J=void 0);var f;(f=this.wM)==null||f.terminate();this.Y=this.wM=void 0;this.Gx("workerDtor",{});g.J.prototype.Ey.call(this)};g.C(g.iH,g.J);g.iH.create=function(f,D,F,Z){try{var I=typeof f==="string"?f:"player"+g.ve(f),p=My[I];if(p){try{p.dispose()}catch(H){g.SJ(H)}My[I]=null}var z=new g.iH(f,D,F,Z);z.addOnDisposeCallback(function(){My[I]=null;z.fZ&&z.fZ()}); return My[I]=z}catch(H){throw g.SJ(H),(H&&H instanceof Error?H:Error(String(H))).stack;}}; g.d=g.iH.prototype;g.d.EG=function(){return this.visibility}; g.d.wK=function(f){var D=this.fp();if(f!==D){f.getVideoData().autonavState=D.getVideoData().autonavState;D.WW(this.GE,this);var F=D.getPlaybackRate();D.dispose();this.LF.wK(f);f.setPlaybackRate(F);f.V3(this.GE,this);X2T(this)}}; g.d.Ge=function(){this.Ah||(this.Ah=g.Y6(xu(),NNJ()));return this.Ah}; g.d.Sd=function(f){if(this.mediaElement){this.Sn&&(this.events.DK(this.Sn),this.Sn=null);g.a8(this.dR);this.VT().Sd(!0,!1,f);this.template.Sd();try{this.Z("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.kU()}catch(D){g.UT(D)}this.mediaElement=null}}; g.d.PO=function(f,D,F){if(f!==this.VT()){var Z=null;if(F===void 0||!F){F=this.VT();Z=F.getPlayerState();dR(this.i4,3);BF(this,"cuerangesremoved",F.gB());this.kC&&!f.isGapless()&&F.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();F=f.W_()&&F.W_();this.Sj.Ra("iv_s");F=F===void 0?!0:F;var I;if(I=this.Op){I=this.Op;var p=this.mediaElement;I=!!p&&p===I.mediaElement}I&&(this.Sd(),yJ(this));I=this.VT();I.Sd(!F);I.WW(this.x$,this);I.getPlayerType()!==1&&I.dispose();F=this.LF;F.J=F.S;NZ(F)}f.getPlayerType()=== 1&&this.wK(f);F=f.getPlayerType();I=this.LF.B[F]||null;f!==this.fp()&&f!==I&&(I==null||I.dispose(),this.LF.B[F]=f);this.LF.PO(f);this.mediaElement&&f.setMediaElement(this.mediaElement);f.V3(this.x$,this);f.Ej()?bUu(this,"setPresenting",!1):(this.T1("newdata",f,f.getVideoData()),Z&&!g.Mq(Z,f.getPlayerState())&&this.DT(new g.k4(f.getPlayerState(),Z)),D=D&&f.getPlayerType()===1,f.Fa()&&!D&&this.T1("dataloaded",f,f.getVideoData()),(D=(D=f.getVideoData().J)&&D.video)&&this.NR.k_("onPlaybackQualityChange", D.quality),BF(this,"cuerangesadded",f.gB()),D=f.getPlayerState(),g.O(D,2)?ZUT(this):g.O(D,8)?f.playVideo():f.XW()&&f.pauseVideo(),D=this.fp(),f.getPlayerType()===2&&(f.getVideoData().Gn=D.getVideoData().clientPlaybackNonce),f.getPlayerType()!==2||this.xK()||(f=f.getVideoData(),D.jk(f.clientPlaybackNonce,f.G3||"",f.breakType||0,f.Bh,f.videoId||"")),this.sA++)}}; g.d.Kd=function(){this.fp()!==this.VT()&&this.PO(this.fp())}; g.d.UE=function(){return this.LF}; g.d.Hw=function(f){return this.LF.Hw(f)}; g.d.HJ=function(f){return this.LF.HJ(f)}; g.d.fp=function(){return this.LF.fp()}; g.d.VT=function(){return this.LF.VT()}; g.d.Ar=wT(40);g.d.IKo=function(){dO(this)||this.Ay(5)}; g.d.axT=function(){if(!dO(this)){Qww(this);var f=this.VT(),D=f.getVideoData();this.V.Z("html5_allow_multiview_tile_preload")&&D.vI&&f.seekTo(Infinity);D=f.getPlayerState();f.XW()?this.pauseVideo():D.isOrWillBePlaying()&&this.playVideo()}}; g.d.canPlayType=function(f){return Hi(f)}; g.d.j=function(){return this.V}; g.d.getVideoData=function(){return this.VT().getVideoData()}; g.d.G5=function(){return this.VT().Lj()}; g.d.KE=function(){return this.fp().getVideoData()}; g.d.getVideoLoadedFraction=function(f){return g.$s(this,{playerType:f}).getVideoLoadedFraction()}; g.d.sy=function(){return this.template}; g.d.I_=function(){return this.i4}; g.d.uv=function(){return this.Sj}; g.d.il=function(f,D,F){g.$s(this,{playerType:D===void 0?1:D}).E9(f,void 0,F)}; g.d.Vq=function(){var f=this.i4.Vq();this.NR.publish("videoStatsPingCreated",f);return f}; g.d.getVolume=function(){return Math.round(this.NR.getVolume())}; g.d.isMuted=function(){return this.NR.isMuted()}; g.d.wl=function(){if(this.fp()===this.VT()&&this.Mb)return this.Mb.postId}; g.d.c6s=function(){var f=this;this.Z("use_rta_for_player")||(g.hm(this.V)?g.y4(this.V,g.Pt(this.getVideoData())).then(function(D){X9(xu(),D);fPD(f.getVideoData(),f.V,f.Ge())}):fPD(this.getVideoData(),this.V,this.Ge()))}; g.d.Nk=function(f){this.NR.publish("poTokenVideoBindingChange",f)}; g.d.BZ=function(f){this.NR.publish("d6de4videobindingchange",f)}; g.d.CY=function(){this.K3&&this.K3.CY()}; g.d.m_=function(f){this.K3=f}; g.d.o7=function(f){if(f===1){this.Sj.tick("vr");var D=this.VT();D.P8();Wpy(this.Sj,D.getVideoData(),d8I(this));kpw(this.i4)}D=this.V;if(jW(D)&&D.N||g.ei(D)){var F;(((F=this.VT().getVideoData())==null?0:F.enableServerStitchedDai)||!this.xK())&&this.NR.k_("onAdStateChange",f)}}; g.d.setLoopVideo=function(f){var D=this.VT();D===this.fp()&&D.Ue()!==f&&(D.setLoop(f),this.NR.wY("onLoopChange",f))}; g.d.getLoopVideo=function(){return this.VT().Ue()}; g.d.setLoopRange=function(f){var D=!1;!!this.Mb!==!!f?D=!0:this.Mb&&f&&(D=this.Mb.startTimeMs!==f.startTimeMs||this.Mb.endTimeMs!==f.endTimeMs||this.Mb.postId!==f.postId||this.Mb.type!==f.type);if(D){D=this.VT();AZ(D.getVideoData())&&D.Gx("slr",{et:(f==null?void 0:f.endTimeMs)||-1});D=this.fp();D.WD("applooprange");if(f){var F=new g.Jm(f.startTimeMs,f.endTimeMs,{id:"looprange",namespace:"applooprange"});D.addCueRange(F)}else{this.KE().clipConfig=void 0;var Z;((F=this.Mb)==null?void 0:F.type)!=="repeatChapter"|| isNaN(Number((Z=this.Mb)==null?void 0:Z.loopCount))||(F={loopCount:String(this.Mb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.ha("repeatChapterLoopEvent",F))}this.Mb=f;this.NR.wY("onLoopRangeChange",f||void 0);this.fp()===this.VT()&&(this.p6(),D.rb())}}; g.d.getLoopRange=function(){return this.Mb}; g.d.p6=function(){var f="",D=this.fp();this.Mb?D!==this.VT()?f="pnea":o5J(this,D.getCurrentTime())&&(this.Mb.loopCount=0,f="ilr"):f="nlr";var F=this.VT();if(AZ(F.getVideoData()))if(this.Z("html5_gapless_log_loop_range_info")){var Z,I;F.Gx("slrre",{rej:f,ct:D.getCurrentTime(),lst:(Z=this.Mb)==null?void 0:Z.startTimeMs,let:(I=this.Mb)==null?void 0:I.endTimeMs})}else F.Gx("slrre",{});f||kOw(this)}; g.d.setPlaybackRate=function(f,D){if(!isNaN(f)){f=f6u(this,f);var F=this.fp();F.getPlaybackRate()!==f&&(F.setPlaybackRate(f),D&&!this.V.G&&g.w0("yt-player-playback-rate",f),this.NR.k_("onPlaybackRateChange",f))}}; g.d.getCurrentTime=function(f,D){D=D===void 0?!0:D;var F=this.LF.ZB;if(F)return F.getCurrentTime();f=(F=f===2&&this.getVideoData().enableServerStitchedDai)?this.VT():g.$s(this,{playerType:f});return F&&this.wU?(F=this.LF.X)?F.getCurrentTime(D):f.getCurrentTime():D?(D=RY(this,f),UU(this,D.getCurrentTime(),D)):f.getCurrentTime()}; g.d.VZ=function(){var f=g.$s(this,{playerType:void 0});f=RY(this,f);return UU(this,f.VZ(),f)}; g.d.getDuration=function(f,D){D=D===void 0?!0:D;var F=this.LF.ZB;if(F)return F.getDuration();F=this.getVideoData();var Z=f===2&&F.enableServerStitchedDai;var I=Z?this.VT():g.$s(this,{playerType:f});if(F.hasProgressBarBoundaries()&&!Z){var p,z=Number((p=F.progressBarStartPosition)==null?void 0:p.utcTimeMillis),H;p=Number((H=F.progressBarEndPosition)==null?void 0:H.utcTimeMillis);if(!isNaN(z)&&!isNaN(p))return(p-z)/1E3}if(AZ(F)&&!F.isLivePlayback)return S7(this,f);if(D)return f=VJ(this,I),UU(this,f.getDuration(), f);if(Z&&this.wU){if(this.Z("html5_huli_ssdai_use_playback_state"))return f=this.LF,f=f.Y===f.X?f.Y:null,(f==null?void 0:f.getDuration())||0;var K;return((K=this.LF.X)==null?void 0:K.getDuration())||0}return I.getDuration()}; g.d.zi=function(f){var D=g.$s(this,{playerType:f});return this.xK(D)?(D=VJ(this,D),D.zi()-D.getCurrentTime()+this.getCurrentTime(f)):D.zi()}; g.d.finishSegmentByCpn=function(){return[]}; g.d.YP=function(){this.template.YP();var f=this.NR;f.state.element=this.template.element;var D=f.state.element,F;for(F in f.state.Y)f.state.Y.hasOwnProperty(F)&&(D[F]=f.state.Y[F]);(f=iQc(this.template.element))&&this.events.D(this.template,f,this.onFullscreenChange)}; g.d.getDebugText=function(f){var D=this.fp().a_(f),F=this.VT();if(F!==this.fp()){F=F.a_(f);for(var Z=g.a(Object.keys(F)),I=Z.next();!I.done;I=Z.next())I=I.value,D["ad"+I]=F[I];if(f){F=D;Z={};if(I=i5(document,"movie_player"))Z.bounds=I.getBoundingClientRect(),Z["class"]=I.className;I={};var p=g.$d("video-ads");p?(SZJ(p,I),I.html=p.outerHTML):I.missing=1;p={};var z=g.$d("videoAdUiSkipContainer"),H=g.$d("ytp-ad-skip-button-container"),K=g.$d("ytp-skip-ad-button"),k=z||H||K;k?(SZJ(k,p),p.ima=z?1:0,p.bulleit= H?1:0,p.component=K?1:0):p.missing=1;Z=JSON.stringify({player:Z,videoAds:I,skipButton:p});F.ad_skipBtnDbgInfo=Z}}f&&this.mediaElement&&(D["0sz"]=""+(+zR(this.mediaElement.getSize())===0),D.op=this.mediaElement.KI("opacity"),F=this.mediaElement.pG().y+this.mediaElement.getSize().height,D.yof=""+(+F<=0),D.dis=this.mediaElement.KI("display"));f&&((f=(0,g.rD)())&&(D.gpu=f),(f=this.V.playerStyle)&&(D.ps=f),this.V.dY&&(D.webview=1),(f=this.webPlayerContextConfig.jsUrl)&&(D.js=f));D.debug_playbackQuality= this.NR.getPlaybackQuality(1);D.debug_date=(new Date).toString();D.origin=window.origin;D.timestamp=Date.now();delete D.uga;delete D.q;return JSON.stringify(D,null,2)}; g.d.getFeedbackProductData=function(){var f={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.j().experiments.experimentIds.join(", "),player_release:q[36]},D=this.getPlayerStateObject().dB;D&&(f.player_error_code=D.errorCode,f.player_error_details=JSON.stringify(D.errorDetail));return f}; g.d.getPresentingPlayerType=function(f){if(this.appState===1)return 1;if(dO(this))return 3;var D,F,Z;return(f&&this.V.ww().Y.Kp(jwX)?(Z=(D=this.LF.Y)==null?void 0:D.isAd())!=null&&Z:(F=this.wU)==null?0:JNy(F,this.getCurrentTime()))?2:this.VT().getPlayerType()}; g.d.uw=function(){return!1}; g.d.getPlayerStateObject=function(f){var D=this.LF.ZB;return D?D.getPlayerState():g.$s(this,{playerType:f}).getPlayerState()}; g.d.getAppState=function(){return this.appState}; g.d.ckT=function(f){switch(f.type){case "loadedmetadata":this.uo.start();f=g.a(this.Qh);for(var D=f.next();!D.done;D=f.next())D=D.value,R$d(this,D.id,D.clT,D.nCy,void 0,!1);this.Qh=[];break;case "loadstart":this.Sj.Ra("gv");break;case "progress":case "timeupdate":DT(f.target.NI())>=2&&this.Sj.Ra("l2s");break;case "playing":g.KD&&this.uo.start();if(g.hm(this.V))f=!1;else{D=g.Ez(this.I_());f=this.mediaElement.KI("display")==="none"||zR(this.mediaElement.getSize())===0;var F=ks(this.template),Z=this.VT().getVideoData(), I=g.rQ(this.V);Z=$7(Z);D=!F||D||I||Z||this.V.eT;f=f&&!D}f&&(f=this.VT(),f.HN(),this.getVideoData().Ps||(this.getVideoData().Ps=1,this.MD(),f.playVideo()))}}; g.d.wDR=function(f){this.NR.Ep("onLoadProgress",f)}; g.d.KFY=function(){this.NR.publish("playbackstalledatstart")}; g.d.tpx=function(f,D){this.NR.publish("sabrCaptionsDataLoaded",f,D)}; g.d.R_d=function(f){this.VT().He(f)}; g.d.ykY=function(f){this.VT().wZ(f)}; g.d.xIs=function(f){f=RY(this,this.VT());f=UU(this,f.getCurrentTime(),f);this.NR.k_("onVideoProgress",f);this.V.uK&&yof(this,this.visibility.ob())&&this.pauseVideo()}; g.d.onY=function(){this.NR.k_("onAutoplayBlocked");var f=this.VT().getVideoData();f&&(f.xw=!0);g.LM(this.V)&&(f={autoplayBrowserPolicy:vh(),autoplayIntended:aR(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.ha("embedsAutoplayStatusChanged",f))}; g.d.qpr=function(){this.NR.publish("progresssync")}; g.d.ePR=function(){this.NR.Ep("onPlaybackPauseAtStart")}; g.d.Dmr=function(f){if(this.getPresentingPlayerType()===1){g.hF(f,1)&&!g.O(f.state,64)&&this.KE().isLivePlayback&&this.fp().isAtLiveHead()&&this.NR.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.hF(f,2)){if(this.Mb&&this.Mb.endTimeMs>=(this.getDuration()-1)*1E3){kOw(this);return}ZUT(this)}if(g.O(f.state,128)){var D=f.state;this.cancelPlayback(5);D=D.dB;JSON.stringify({errorData:D,debugInfo:this.getDebugText(!0)});this.NR.k_("onError",kNX(D.errorCode));this.NR.Ep("onDetailedError",{errorCode:D.errorCode, errorDetail:D.errorDetail,message:D.errorMessage,messageKey:D.E_,cpn:D.cpn});(0,g.m5)()-this.V.B_>6048E5&&this.NR.Ep("onReloadRequired")}D={};if(f.state.isPlaying()&&!f.state.isBuffering()&&!Gt("pbresume","ad_to_video")&&Gt("_start","ad_to_video")){var F=this.getVideoData();D.clientPlaybackNonce=F.clientPlaybackNonce;F.videoId&&(D.videoId=F.videoId);g.vk(D,"ad_to_video");Ul("pbresume",void 0,"ad_to_video");kpw(this.i4)}this.NR.publish("applicationplayerstatechange",f)}}; g.d.DT=function(f){this.LF.ZB||this.NR.publish("presentingplayerstatechange",f)}; g.d.ZY=function(f){AV(this,Sq(f.state));g.O(f.state,1024)&&this.NR.isMutedByMutedAutoplay()&&(Mv(this,{muted:!1,volume:this.Rb.volume},!1),tV(this,!1))}; g.d.onPlayerRequestSent=function(f){this.NR.wY("onPlayerRequestSent",f)}; g.d.B5=function(f,D){f==="newdata"&&X2T(this);this.NR.publish("applicationvideodatachange",f,D)}; g.d.OEY=function(f,D){Qww(this);this.NR.Ep("onPlaybackAudioChange",this.NR.getAudioTrack().dw.name);this.NR.publish("internalaudioformatchange",this.NR.getAudioTrack().dw.id,D)}; g.d.E_T=function(f){var D=this.VT().getVideoData();f===D&&this.NR.k_("onPlaybackQualityChange",f.J.video.quality)}; g.d.yP=function(){var f=this.LF.B[2]||null;f&&(f=f.getVideoData(),this.VT().Gx("ssdai",{cleanaply:1,acpn:f==null?void 0:f.clientPlaybackNonce,avid:f.videoId,isDai:this.KE().enableServerStitchedDai?1:0}),delete this.LF.B[2])}; g.d.n_T=function(f,D){this.T1(f,this.VT(),D)}; g.d.T1=function(f,D,F){this.V.Oq()&&D.Gx("vdc",{type:f,vid:F.videoId||"",cpn:F.clientPlaybackNonce||""});D===this.fp()&&(this.V.K7=F.oauthToken);D===this.fp()&&(this.getVideoData().enableServerStitchedDai&&!this.wU?(this.fp().Gx("sdai",{initSstm:1}),this.wU=new g.nL(this.NR,this.V,this.fp(),this)):!this.getVideoData().enableServerStitchedDai&&this.wU&&(this.wU.dispose(),this.wU=null));if(f==="newdata")dR(this.i4,2),this.NR.publish("videoplayerreset",D);else{if(!this.mediaElement)return;if(f==="dataloaded")if(this.fp()=== this.VT()){if(YS(F.Uy,F.rg),!this.fp().getPlayerState().isError()){var Z=dO(this);this.KE().isLoaded();Z&&this.Ay(6);z$E(this);o_u(this.i4)||pSE(this)}}else z$E(this);if(D.getPlayerType()===1&&(this.V.rY&&tmD(this),this.getVideoData().isLivePlayback&&!this.V.Vp&&this.tS("html5.unsupportedlive",2,"DEVICE_FALLBACK"),F.isLoaded()&&(($BI(F)||this.getVideoData().i_)&&this.NR.publish("legacyadtrackingpingchange",this.getVideoData()),F.hasProgressBarBoundaries()))){var I;Z=Number((I=this.getVideoData().progressBarEndPosition)== null?void 0:I.utcTimeMillis)/1E3;!isNaN(Z)&&(I=this.zi())&&(I-=this.getCurrentTime(),Z=(Z-I)*1E3,I=this.hD.progressEndBoundary,(I==null?void 0:I.start)!==Z&&(I&&this.E$([I]),Z=new g.Jm(Z,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.fp().addCueRange(Z),this.hD.progressEndBoundary=Z))}this.NR.publish("videodatachange",f,F,D.getPlayerType())}this.NR.k_("onVideoDataChange",{type:f,playertype:D.getPlayerType()});this.p6();(f=F.U1)?this.e3.I9(f,F.clientPlaybackNonce): leE(this.e3)}; g.d.F8=function(){Cd(this,null);this.NR.Ep("onPlaylistUpdate")}; g.d.CYb=function(f){delete this.hD[f.getId()];this.fp().removeCueRange(f);a:{f=this.getVideoData();var D,F,Z,I,p,z,H,K,k,h,y=((D=f.xo)==null?void 0:(F=D.contents)==null?void 0:(Z=F.singleColumnWatchNextResults)==null?void 0:(I=Z.autoplay)==null?void 0:(p=I.autoplay)==null?void 0:p.sets)||((z=f.xo)==null?void 0:(H=z.contents)==null?void 0:(K=H.twoColumnWatchNextResults)==null?void 0:(k=K.autoplay)==null?void 0:(h=k.autoplay)==null?void 0:h.sets);if(y)for(D=g.a(y),F=D.next();!F.done;F=D.next())if(F= F.value,I=Z=void 0,F=F.autoplayVideo||((Z=F.autoplayVideoRenderer)==null?void 0:(I=Z.autoplayEndpointRenderer)==null?void 0:I.endpoint),Z=g.Q(F,g.k7),p=I=void 0,F!=null&&((I=Z)==null?void 0:I.videoId)===f.videoId&&((p=Z)==null?0:p.continuePlayback)){f=F;break a}f=null}(D=g.Q(f,g.k7))&&this.NR.wY("onPlayVideo",{sessionData:{autonav:"1",itct:f==null?void 0:f.clickTrackingParams},videoId:D.videoId,watchEndpoint:D})}; g.d.Ay=function(f){f!==this.appState&&(f===2&&this.getPresentingPlayerType()===1&&(AV(this,-1),AV(this,5)),this.appState=f,this.NR.publish("appstatechange",f))}; g.d.tS=function(f,D,F,Z,I){this.fp().b4(f,D,F,Z,I)}; g.d.aI=wT(9);g.d.isAtLiveHead=function(f,D){D=D===void 0?!1:D;var F=g.$s(this,{playerType:f});f=VJ(this,F);F=RY(this,F);return f!==F?f.isAtLiveHead(UU(this,F.getCurrentTime(),F),!0):f.isAtLiveHead(void 0,D)}; g.d.XK=function(){var f=g.$s(this,{playerType:void 0});return VJ(this,f).XK()}; g.d.seekTo=function(f,D,F,Z,I,p){D=D!==!1;Z=g.$s(this,{playerType:Z});this.appState===2&&TC(this);if(this.xK(Z))vF(this)?this.wU.seekTo(f,{seekSource:I},D,F):this.D5.seekTo(f,{seekSource:I},D,F);else{this.Z("html5_sabr_csdai_seek_log")||(p="");var z;Z.seekTo(f,{hq:!D,fY:F,pF:"application"+((z=p)!=null?z:""),seekSource:I})}}; g.d.seekBy=function(f,D,F,Z){this.seekTo(this.getCurrentTime()+f,D,F,Z,void 0,"_by")}; g.d.YwR=function(){this.NR.k_("SEEK_COMPLETE")}; g.d.gns=function(){this.NR.wY("onAbnormalityDetected")}; g.d.G8F=function(f){this.NR.wY("onSnackbarMessage",f)}; g.d.Jkr=function(f){var D=this.VT(),F=D.getVideoData();if(this.appState===1||this.appState===2)F.startSeconds=f;this.appState===2?g.O(D.getPlayerState(),512)||TC(this):this.NR.k_("SEEK_TO",f)}; g.d.Q$o=function(){this.NR.publish("airplayactivechange")}; g.d.P4d=function(){this.NR.publish("airplayavailabilitychange")}; g.d.showAirplayPicker=function(){this.VT().ov()}; g.d.Lws=function(){this.NR.publish("beginseeking")}; g.d.Vpr=function(){this.NR.publish("endseeking")}; g.d.getStoryboardFormat=function(f){f=g.$s(this,{playerType:f});return VJ(this,f).getStoryboardFormat()}; g.d.OG=function(f){f=g.$s(this,{playerType:f});return VJ(this,f).getVideoData().OG()}; g.d.xK=function(f){f=(f||this.VT()).getVideoData();if(vF(this))f=f===this.wU.playback.getVideoData();else a:{var D=this.D5;if(f===D.Y.getVideoData()&&D.J.length)f=!0;else{D=g.a(D.J);for(var F=D.next();!F.done;F=D.next())if(f.kG===F.value.kG){f=!0;break a}f=!1}}return f}; g.d.If=function(f,D,F,Z,I,p,z,H){var K=vF(this);this.VT().Gx("appattl",{sstm:this.wU?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:K});K?(F=GHf(this.wU,f,D,F,Z,I,p,z,H),f=(F==null?void 0:F.kG)||"",(this.Z("html5_ssdai_new_decoration_logic")||this.fp().getVideoData().LL)&&this.fp().OH(H||"",D,(F==null?void 0:F.clientPlaybackNonce)||"")):f=APc(this.D5,f,F,Z,I,p);return f}; g.d.XA=function(f,D,F,Z,I,p,z,H){if(vF(this)){var K;(K=this.wU)==null||GHf(K,f,D,F,Z,I,p,z,H)}}; g.d.Ro=function(f){(this.Z("html5_ssdai_new_decoration_logic")||this.fp().getVideoData().LL)&&this.fp().OH(f,"","");var D;(D=this.wU)==null||D.Ro(f)}; g.d.zD=function(f,D){f=f===void 0?-1:f;D=D===void 0?Infinity:D;vF(this)||bpD(this.D5,f,D)}; g.d.GA=function(f,D,F){if(vF(this)){var Z=this.wU,I=Z.Y.Hw({kG:f});I?(F===void 0&&(F=I.l4),gwu(Z,I,D,F)):Z.Q$("Invalid_timelinePlaybackId_"+f+"_specified")}else{Z=this.D5;I=null;for(var p=g.a(Z.J),z=p.next();!z.done;z=p.next())if(z=z.value,z.kG===f){I=z;break}I?(F===void 0&&(F=I.l4),TrJ(Z,I,D,F)):pd(Z,"InvalidTimelinePlaybackId timelinePlaybackId="+f)}}; g.d.enqueueVideoByPlayerVars=function(f,D,F,Z){F=F===void 0?Infinity:F;Z=Z===void 0?"":Z;this.xK();f=new g.pT(this.V,f);Z&&(f.kG=Z);h$E(this,f,D,F)}; g.d.queueNextVideo=function(f,D,F,Z,I){F=F===void 0?NaN:F;f=this.preloadVideoByPlayerVars(f,D===void 0?1:D,F,Z===void 0?"":Z,I===void 0?"":I);D=this.VT();f&&(this.Z("html5_check_queue_on_data_loaded")?this.j().supportsGaplessShorts()&&D.getVideoData().S&&(F=this.Ry,Z=this.kC.X,F.G!==f&&(F.J=D,F.G=f,F.B=1,F.Y=f.getVideoData(),F.X=Z,F.Y.isLoaded()?F.T():F.Y.subscribe("dataloaded",F.T,F))):(F=this.V.experiments.ww().Y.Kp(ax),F=$YX(D,f,this.kC.X,F),F!=null?(D.Gx("sgap",F),D.getVideoData().S&&D.Vn(!1)): (f=f.getVideoData(),D=this.Ry,D.Y!==f&&(D.Y=f,D.B=1,f.isLoaded()?D.S():D.Y.subscribe("dataloaded",D.S,D)))))}; g.d.zB=function(f,D,F,Z){var I=this;F=F===void 0?0:F;Z=Z===void 0?0:Z;VJ(this,this.VT()).e5();cyD(this.kC,f,D,F,Z).then(function(){I.NR.Ep("onQueuedVideoLoaded")},function(){})}; g.d.XJ=function(){return this.kC.XJ()}; g.d.Bo=function(f){var D=this.kC.Y;return D?D.ZD(f):!1}; g.d.clearQueue=function(f,D){this.kC.clearQueue(f===void 0?!1:f,D===void 0?!1:D)}; g.d.loadVideoByPlayerVars=function(f,D,F,Z,I,p){D=D===void 0?1:D;var z=this.fp();if(D===2&&this.KE().enableServerStitchedDai&&z&&!z.iM())return z.Gx("lvonss",{vid:(f==null?void 0:f.videoId)||"",ptype:D}),!1;var H=!1;z=new g.pT(this.V,f);z.EW=p;g.oe(this.V)&&!z.qe&&sM(this.Sj);var K;p=this.Sj;var k=(K=z.Jb)!=null?K:"";p.timerName=k;this.Sj.J6("pl_i");this.Z("web_player_early_cpn")&&z.clientPlaybackNonce&&this.Sj.infoGel({clientPlaybackNonce:z.clientPlaybackNonce});OIX(z).supportsVp9Encoding===!1&& this.VT().Gx("noVp9enc",{});if(this.j().supportsGaplessShorts()){K=WiD(this.kC,z,D);if(K==null){AV(this,-1);var h;((h=this.kC.Y)==null?0:h.getVideoData().isAd())||aY(this);f=this.kC;f.app.j().Z("html5_gapless_new_slr")?cF(f.app,"gaplessshortslooprange"):f.app.setLoopRange(null);f.app.getVideoData().m1=!0;var y;(y=f.Y)==null||y.gK();var A;(A=f.Y)==null||A.IK();F={pF:"gapless_to_next_video",seekSource:60,u7:f.X.Y};Z=wrE(f);if(f.X.Y){var V;I=((V=f.B)==null?void 0:Uw(V))||{};V=I.jF;I=I.UK;I!=null&&V!= null&&(Z=I-V+.001)}var R;(R=f.app.VT())==null||R.seekTo(Z,F);if(!f.app.getPlayerStateObject(D).isPlaying()){var m;(m=f.app.VT())==null||m.playVideo(!0)}GSJ(f,Z);var b;(b=f.app.VT())==null||b.F4();f.N();return!0}R=this.Z("html5_shorts_gapless_preload_fallback");m=this.kC.Y;R&&m&&!m.MR()&&(b=m.getVideoData(),this.LF.T.set(GC(D,b),m,3600));this.kC.clearQueue(R);this.VT().Gx("sgap",{f:K})}if(I){for(;z.Wt.length&&z.Wt[0].isExpired();)z.Wt.shift();R=z.Wt.length-1;H=R>0&&I.J(z.Wt[R])&&I.J(z.Wt[R-1]);z.Wt.push(I)}F|| (f&&LpX(f)?(Ie(this.V)&&!this.oN&&(f.fetch=0),Cd(this,f)):this.playlist&&Cd(this,null),f&&(this.oN=zf(!1,f.external_list)));this.NR.publish("loadvideo");R=this.rR(z,D,Z);H&&this.tS("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+z.Wt.join()).replace(/[;:,]/g,"_"));return R}; g.d.preloadVideoByPlayerVars=function(f,D,F,Z,I){D=D===void 0?1:D;F=F===void 0?NaN:F;I=I===void 0?"":I;Z=D;var p=I,z=KC(f);if(Z=this.LF.T.get(Z+"_"+z+"_"+p+"_"+ +(f.autonav==="1"||f.autonav===!0)+ +(f.autoplay==="1"||f.autoplay===!0||f.autoplay===1))||null)return Z;f=new g.pT(this.V,f);I&&(f.kG=I);I=GC(D,f);Z=this.VT();p=GC(Z.getPlayerType(),Z.getVideoData());I===p?(Z.VO(!0),f.dispose(),F=null):(f.Gi=!0,f.bI=!0,Z=hV(this,D,f,!0),(D!==1||!qO(this.V)||this.V.Z("html5_allow_multiview_tile_preload")&& f.vI)&&Z.VO(!0),this.LF.T.set(I,Z,F||3600),F=Z);return F}; g.d.setMinimized=function(f){this.visibility.setMinimized(f);(f=yYs(this.i4))&&(this.isMinimized()?f.load():f.unload());this.NR.publish("minimized")}; g.d.setInline=function(f){this.visibility.setInline(f)}; g.d.setInlinePreview=function(f){this.visibility.setInline(f)}; g.d.x9=function(f){Aof(this,f)||this.visibility.x9(f)}; g.d.setSqueezeback=function(f){this.visibility.setSqueezeback(f)}; g.d.Hj=function(){var f,D=(f=this.mediaElement)==null?void 0:f.Cp();D&&(this.V.rJ&&DP(YR(function(){return document.exitFullscreen()}),function(){}),DP(YR(function(){return CC(D)}),function(){}))}; g.d.wwI=function(){this.mediaElement.Cp();this.mediaElement.Cp().webkitPresentationMode==="picture-in-picture"?this.x9(!0):this.x9(!1)}; g.d.togglePictureInPicture=function(){this.VT().togglePictureInPicture()}; g.d.rR=function(f,D,F){D=D===void 0?1:D;Gt("_start",this.Sj.timerName)||g.DK(mu)(void 0,this.Sj.timerName);var Z=!1,I=HUI(this,D,f,!1);I?(Z=!0,f.dispose(),I.getVideoData().vI&&I.Gx("app_lv",{pdl:I.Fa()})):(I=hV(this,D,f,!0,F),(this.Z("html5_onesie")||this.Z("html5_load_before_stop"))&&I.Zm()&&I.VO(),this.uo.stop(),D===1&&D!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,D),this.PO(I));I===this.fp()&&(this.V.K7=f.oauthToken);if(!I.Zm())return!1;if(I===this.fp())return this.Ay(1), f=TC(this),Z&&this.Z("html5_player_preload_ad_fix")&&I.getPlayerType()===1&&I.Fa()&&this.T1("dataloaded",I,I.getVideoData()),f;I.B1();return!0}; g.d.cueVideoByPlayerVars=function(f,D){var F=this;D=D===void 0?1:D;var Z=this.fp();if(this.KE().enableServerStitchedDai&&Z&&!Z.iM()&&f&&Object.keys(f).length>0)Z.Gx("qvonss",{vid:(f==null?void 0:f.videoId)||"",ptype:D});else if(f&&LpX(f))if(this.Kt=!0,Cd(this,f),(f=g.qU(this.playlist))&&f.u4())WF(this,f,D);else this.playlist.onReady(function(){m7(F)}); else{D||(D=this.getPresentingPlayerType());D===1&&this.F8();Z=new g.pT(this.V,f);var I=g.LM(this.V)&&!this.V.KQ&&D===1&&!Z.isAd()&&!Z.G3;this.NR.publish("cuevideo",D);I?(this.VT().getVideoData().loading=!0,eyX(Z,f?f:{}).then(function(p){WF(F,p,D)}),Z.dispose()):WF(this,Z,D)}}; g.d.As=function(f,D,F,Z,I,p,z){if(!f&&!F)throw Error("Playback source is invalid");if(Ep(this.V)||g.jo(this.V))return D=D||{},D.lact=Ve(),D.vis=this.NR.getVisibilityState(),this.NR.wY("onPlayVideo",{videoId:f,watchEndpoint:p,sessionData:D,listId:F}),!1;BPE(this.Sj);this.Sj.reset();f={video_id:f};Z&&(f.autoplay="1");Z&&(f.autonav="1");p&&(f.player_params=p.playerParams);z&&(f.oauth_token=z);F?(f.list=F,this.loadPlaylist(f)):this.loadVideoByPlayerVars(f,1);return!0}; g.d.cuePlaylist=function(f,D,F,Z){this.Kt=!0;$8y(this,f,D,F,Z)}; g.d.loadPlaylist=function(f,D,F,Z){this.Kt=!1;$8y(this,f,D,F,Z)}; g.d.IZ=function(){return this.NR.isMutedByMutedAutoplay()?!1:this.LF.ZB?!0:!(!this.playlist||!this.playlist.hasNext())}; g.d.Ll=wT(7); g.d.nextVideo=function(f,D){var F=g.jb(this.fp().getVideoData());g.NV(this.NR)&&F?this.As(F.videoId,D?F.fk:F.sessionData,F.playlistId,D,void 0,F.dj||void 0):this.oN?this.NR.Ep("onPlaylistNext"):this.getPresentingPlayerType()===3?rW(this.i4).nextVideo():!this.playlist||Ie(this.V)&&!this.NR.isFullscreen()||(this.playlist.hasNext(f)&&Jpu(this.playlist,lNy(this.playlist)),this.playlist.loaded?(f=D&&this.V.Z("html5_player_autonav_logging"),D&&this.NR.publish("playlistautonextvideo"),this.rR(g.qU(this.playlist,void 0, D,f),1)):this.Kt=!1)}; g.d.previousVideo=function(f){this.oN?this.NR.Ep("onPlaylistPrevious"):this.getPresentingPlayerType()===3?rW(this.i4).EX():!this.playlist||Ie(this.V)&&!this.NR.isFullscreen()||(this.playlist.hasPrevious(f)&&Jpu(this.playlist,EKd(this.playlist)),this.playlist.loaded?this.rR(g.qU(this.playlist),1):this.Kt=!1)}; g.d.playVideoAt=function(f){this.oN?this.NR.Ep("onPlaylistIndex",f):this.playlist&&(this.playlist.loaded?this.rR(g.qU(this.playlist,f),1):this.Kt=!1,Jpu(this.playlist,f))}; g.d.getPlaylist=function(){return this.playlist}; g.d.Lk=wT(15);g.d.D$=function(f){this.Qh=g.G$(this.Qh,function(p){return p.id!==f}); for(var D=this.fp(),F=D.gB(),Z=0;Z0&&(K=Math.floor(k/1E3))}K=D?D.I$:K;var h={AD_BLOCK:this.Y++,AD_BREAK_LENGTH:K,AUTONAV_STATE:Ld(this.player.j()),CA_TYPE:"image",CPN:H.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.XK()*1E3,LACT:Ve(),LIVE_INDEX:D?this.B++:1,LIVE_TARGETING_CONTEXT:D&&D.context?D.context:"",MIDROLL_POS:p? Math.round(p.start/1E3):0,MIDROLL_POS_MS:p?Math.round(p.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.sy().nw().height,P_W:this.player.sy().nw().width,YT_REMOTE:I?I.join(","):""},y=jt(ko);Object.keys(y).forEach(function(V){y[V]!=null&&(h[V.toUpperCase()]=y[V].toString())}); F!==""&&(h.BISCOTTI_ID=F);F={};KO(f)&&(F.sts="20432",(D=this.player.j().forcedExperiments)&&(F.forced_experiments=D));var A=q1(g.S$(f,h),F);return A.split("?").length!==2?Sy(Error("Invalid AdBreakInfo URL")):g.y4(this.player.j(),H==null?void 0:H.oauthToken).then(function(V){if(V&&og()){var R=xu();X9(R,V)}V=Z.player.Ge(R);R=n5X(Z,A,h,H.isMdxPlayback,z);return g.LP(V,R,"/youtubei/v1/player/ad_break").then(function(m){return m})})}; lH.prototype.reset=function(){this.B=this.Y=1};g.C(YZs,lH); YZs.prototype.J=function(f,D,F){D=D===void 0?{}:D;var Z=D.Id;var I=D.Nz;var p=D.cueProcessedMs;F=F===void 0?"":F;D=this.Y;this.Y++;var z=this.player.j().Z("h5_disable_macro_substitution_in_get_ad_break")?f:Pns(this,f,{Id:Z,Nz:I,cueProcessedMs:p},F,D);if(z.split("?").length!==2)return Math.random()<.1&&g.UT(Error("Invalid AdBreakInfo URL")),Sy(Error("Invalid AdBreakInfo URL"));var H=this.player.getVideoData(1).isMdxPlayback,K=F;F=u4a.exec(z);F=F!=null&&F.length>=2?F[1]:"";f=Nba.test(z);var k=g5u.exec(z); k=k!=null&&k.length>=2?k[1]:"";var h=e$y.exec(z);h=h!=null&&h.length>=2&&!Number.isNaN(Number(h[1]))?Number(h[1]):1;var y=x8X.exec(z);y=y!=null&&y.length>=2?y[1]:"0";var A=nM(this.player.j().tJ),V=g.fP(this.player.getVideoData(1).Bs,!0);Bbu(this,V,z,K===""?"":K,this.player.j(),this.player.getVideoData(1));K={splay:!1,lactMilliseconds:String(Ve()),playerHeightPixels:Math.trunc(this.player.sy().nw().height),playerWidthPixels:Math.trunc(this.player.sy().nw().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20432,autonavState:Ld(this.player.j())};if(H){H={};var R=this.player.j().n7;l6d(H,R?R.join(","):"")&&(K.mdxContext=H)}if(H=XSu.includes(A)?void 0:g.LO("PREF")){R=H.split(RegExp("[:&]"));for(var m=0,b=R.length;m1&&U[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}K.autoCaptionsDefaultOn=Jos(H)}z=OUu.exec(z);(z=z!=null&&z.length>=2?z[1]:"")&&k&&(V.user.credentialTransferTokens= [{token:z,scope:"VIDEO"}]);z={contentPlaybackContext:K};K=this.player.getVideoData(1).getGetAdBreakContext();H=this.player.getVideoData(1).clientPlaybackNonce;R=p!==void 0?Math.round(p).toString():void 0;m=(Z==null?0:Z.context)?Z.context:void 0;b=0;p&&I&&!Z&&(I=I.end-I.start,I>0&&(b=Math.floor(I/1E3)));Z=(Z=Math.trunc((Z?Z.I$:b)*1E3))?String(Z):void 0;I=this.player.XK()*1E3;I=Number.isNaN(I)?0:Math.trunc(I);D={adBlock:D,params:F,breakIndex:h,breakPositionMs:y,clientPlaybackNonce:H,topLevelDomain:A, isProxyAdTagRequest:f,context:V,overridePlaybackContext:z,cueProcessedMs:R,videoId:k?k:void 0,liveTargetingParams:m,breakLengthMs:Z,driftFromHeadMs:I?String(I):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:K?K:void 0};return fZa(this,D)};var hX0={REb:"replaceUrlMacros",iHb:"onAboutThisAdPopupClosed",O1b:"executeCommand"};DGE.prototype.OS=function(){return"adPingingEndpoint"}; DGE.prototype.tP=function(f,D,F){rcc(this.DE.get(),f,D,F)};FkX.prototype.OS=function(){return"changeEngagementPanelVisibilityAction"}; FkX.prototype.tP=function(f){this.U.wY("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:f})};ZKD.prototype.OS=function(){return"loggingUrls"}; ZKD.prototype.tP=function(f,D,F){f=g.a(f);for(var Z=f.next();!Z.done;Z=f.next())Z=Z.value,rcc(this.DE.get(),Z.baseUrl,D,F,Z.attributionSrcMode)};g.C(p8J,g.J);zFI.prototype.k8=function(f,D){var F={};D=Object.assign({},D,(F.cc=this.N5.FO(),F));this.N5.U.Gx(f,D)};g.C(JV,g.J);g.d=JV.prototype;g.d.addListener=function(f){this.listeners.push(f)}; g.d.removeListener=function(f){this.listeners=this.listeners.filter(function(D){return D!==f})}; g.d.vV=function(f,D,F,Z,I,p,z,H){if(f==="")Kb("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(f!==this.Y||F){this.Y=f;this.l3.get().vV(f,D,F,Z,I,p,z,H);this.QT.get().vV(f,D,F,Z,I,p,z,H);var K;(K=this.o$)==null||K.get().vV(f,D,F,Z,I,p,z,H);this.J.vV(f,D,F,Z,I,p,z,H);K=g.a(this.listeners);for(var k=K.next();!k.done;k=K.next())k.value.vV(f,D,F,Z,I,p,z,H)}else Kb("Duplicate content video loaded signal")}; g.d.Eno=function(){this.Y&&this.jy(this.Y)}; g.d.jy=function(f){this.Y=void 0;for(var D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.jy(f)};uH.prototype.Du=function(f,D,F,Z,I){sbT(this);this.X=!D&&F===0;var p=this.U.getVideoData(1),z=this.U.getVideoData(2);p&&(this.contentCpn=p.clientPlaybackNonce,this.videoId=p.videoId,this.Y=p.T);z&&(this.adCpn=z.clientPlaybackNonce,this.adVideoId=z.videoId,this.adFormat=z.adFormat);this.G=f;Z<=0?(sbT(this),this.X=!D&&F===0):(this.actionType=this.X?D?"unknown_type":"video_to_ad":D?"ad_to_video":"ad_to_ad",this.videoStreamType=I?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.B=!0,Gt("_start",this.actionType)&&oUX(this)))}; uH.prototype.reset=function(){return new uH(this.U)};g.C(Nv,g.J);Nv.prototype.addCueRange=function(f,D,F,Z,I,p,z,H,K){p=p===void 0?3:p;z=z===void 0?1:z;this.Y.has(f)?Kb("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:f}):(f=new KkI(f,D,F,Z,p,H,K),this.Y.set(f.id,{Nz:f,listener:I,r$:z}),this.U.Bw([f],z))}; Nv.prototype.removeCueRange=function(f){var D=this.Y.get(f);D?(this.U.cn([D.Nz],D.r$),this.Y.delete(D.Nz.id)):Kb("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:f})}; Nv.prototype.onCueRangeEnter=function(f){if(this.Y.has(f.id))this.Y.get(f.id).listener.onCueRangeEnter(f.id)}; Nv.prototype.onCueRangeExit=function(f){if(this.Y.has(f.id))this.Y.get(f.id).listener.onCueRangeExit(f.id)}; g.C(KkI,g.Jm);gO.prototype.addPlayerResponseForAssociation=function(f){this.U.addPlayerResponseForAssociation(f)};e7.prototype.o7=function(f){this.U.o7(f)}; e7.prototype.vY=function(f){var D=g.hv.apply(1,arguments);f==="onAdStart"||f==="onAdEnd"?this.U.k_.apply(this.U,[f].concat(g.w(D))):this.U.wY.apply(this.U,[f].concat(g.w(D)))};var Cgf=null;g.C(QbJ,g.zu);QbJ.prototype.O_=function(f){return this.Y.hasOwnProperty(f)?this.Y[f].O_():{}}; g.dE("ytads.bulleit.getVideoMetadata",function(f){return XP().O_(f)}); g.dE("ytads.bulleit.triggerExternalActivityEvent",function(f,D,F){var Z=XP();F=dGf(F);F!==null&&Z.publish(F,{queryId:f,viewabilityString:D})});g.d=OU.prototype;g.d.Hl=function(f,D){if(!this.Y.has(f))return{};if(D==="seek"){D=!1;D=D===void 0?!1:D;var F=U5(Pz).fV(f,{});F?xt(F):D&&(f=U5(Pz).qq(null,JL(),!1,f),f.Pn=3,xmc([f]));return{}}D=Tvy(D);if(D===null)return{};var Z=this.U.qG();if(!Z)return{};var I=this.U.getPresentingPlayerType(!0);if((F=this.U.getVideoData(I))==null||!F.isAd())return{};F={opt_adElement:Z,opt_fullscreen:this.l3.get().isFullscreen()};return xoE(D,f,F)}; g.d.k9=function(f,D,F,Z,I){this.Y.has(f)&&(Z<=0||I<=0||U5(Pz).k9(f,D,F,Z,I))}; g.d.g9=function(f){var D;(D=this.Y.get(f.queryId))==null||D.g9()}; g.d.uW=function(f){var D;(D=this.Y.get(f.queryId))==null||D.uW()}; g.d.QW=function(f){var D;(D=this.Y.get(f.queryId))==null||D.QW()}; g.d.N$=function(f){var D;(D=this.Y.get(f.queryId))==null||D.N$()}; g.d.d9=function(f){var D;(D=this.Y.get(f.queryId))==null||D.d9()};aZy.prototype.send=function(f,D,F,Z){try{GYs(this,f,D,F,Z===void 0?!1:Z)}catch(I){}};g.C(w8d,aZy);Wkf.prototype.send=function(f,D,F,Z){var I=!1;try{if(Z==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Z==="ATTRIBUTION_SRC_MODE_XHR_OPTION")I=!0,f=Bpf(f);Z=I;var p=g.R_(f);if(p[1]==="https")var z=f;else p[1]="https",z=VW("https",p[2],p[3],p[4],p[5],p[6],p[7]);var H=Ghw(z);p=[];var K=Myy(z)&&this.mI.get().U.j().experiments.Hs("add_auth_headers_to_remarketing_google_dot_com_ping");if(KO(z)||K)p.push({headerType:"USER_AUTH"}),p.push({headerType:"PLUS_PAGE_ID"}),p.push({headerType:"VISITOR_ID"}),p.push({headerType:"EOM_VISITOR_ID"}), p.push({headerType:"AUTH_USER"}),p.push({headerType:"DATASYNC_ID"});this.Y.send({baseUrl:z,scrubReferrer:H,headers:p},D,F,Z)}catch(k){}};DB.prototype.h6=function(){return this.U.h6(1)};g.C(FX,g.J);g.d=FX.prototype;g.d.FO=function(){return this.U.getVideoData(1).clientPlaybackNonce}; g.d.addListener=function(f){this.listeners.push(f)}; g.d.removeListener=function(f){this.listeners=this.listeners.filter(function(D){return D!==f})}; g.d.vV=function(){this.qT.clear();this.kO=null;this.Yu.get().clear()}; g.d.jy=function(){}; g.d.zwd=function(f,D,F){D.videoId==="nPpU29QrbiU"&&this.U.Gx("ads_ssm_vdc_s",{pt:F,dvt:f});qB(this.mI.get())&&f!=="dataloaded"||gUT(this,D,F)}; g.d.e_y=function(f,D){f!==void 0&&(this.kO=f,D===void 0?Kb("Expected ad video start time on SS video changed"):this.qT.set(f,D));var F=this.U.getPresentingPlayerType(!0),Z=this.U.getVideoData(F),I;f===void 0?I=null:I=this.Yu.get().Y.get(f)||null;this.U.getVideoData(1).Gx("ads_ssvc",{pt:F,cpn:Z==null?void 0:Z.clientPlaybackNonce,crtt:this.U.getCurrentTime(1,!1),atlh:this.U.isAtLiveHead(),adstt:D,pid:f,slid:I==null?void 0:I.layoutId});Z?gUT(this,Z,F):Kb("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.U.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:f})}; g.d.rC=function(f,D){var F=f.author,Z=f.clientPlaybackNonce,I=f.isListed,p=f.kG,z=f.title,H=f.IN,K=f.YR,k=f.isMdxPlayback,h=f.Ht,y=f.mdxEnvironment,A=f.isAutonav,V=f.HC,R=f.qe,m=f.xb,b=f.videoId||"",U=f.profilePicture||"",S=f.HR||"",G=f.Lw()||!1,W=f.nE()||!1;f=f.VS||void 0;p=this.Yu.get().Y.get(p)||{layoutId:null,slotId:null};var u=this.U.getVideoData(1),E=u.jj();u=u.getPlayerResponse();D=1E3*this.U.getDuration(D);var Ds=1E3*this.U.getDuration(1),Fu,Zs,za=(u==null?void 0:(Fu=u.playerConfig)==null? void 0:(Zs=Fu.daiConfig)==null?void 0:Zs.enableDai)||!1,ju,Id;Fu=(u==null?void 0:(ju=u.playerConfig)==null?void 0:(Id=ju.daiConfig)==null?void 0:Id.enablePreroll)||!1;return Object.assign({},p,{videoId:b,author:F,clientPlaybackNonce:Z,qD:D,un:Ds,daiEnabled:za,FC:Fu,isListed:I,jj:E,profilePicture:U,title:z,HR:S,IN:H,YR:K,VS:f,isMdxPlayback:k,Ht:h,mdxEnvironment:y,isAutonav:A,HC:V,qe:R,xb:m,Lw:G,nE:W})}; g.d.Ey=function(){this.listeners.length=0;this.Dm=null;g.J.prototype.Ey.call(this)};g.C(ZB,g.J);g.d=ZB.prototype;g.d.vV=function(){var f=this;this.Bq=gL(function(){f.U.MR()||f.U.DB("ad",1)})}; g.d.jy=function(){}; g.d.addListener=function(f){this.listeners.push(f)}; g.d.removeListener=function(f){this.listeners=this.listeners.filter(function(D){return D!==f})}; g.d.E7=function(){}; g.d.playVideo=function(){this.U.playVideo()}; g.d.pauseVideo=function(){this.U.pauseVideo()}; g.d.resumeVideo=function(f){this.Av(f)&&this.U.playVideo()}; g.d.Av=function(f){return this.U.getPlayerState(f)===2}; g.d.getCurrentTimeSec=function(f,D){var F=this.QT.get().kO;return f!==2||D||F===null?this.U.getCurrentTime(f,D):pv(this,F)}; g.d.getVolume=function(){return this.U.getVolume()}; g.d.isMuted=function(){return this.U.isMuted()}; g.d.getPresentingPlayerType=function(){return this.U.getPresentingPlayerType(!0)}; g.d.getPlayerState=function(f){return this.U.getPlayerState(f)}; g.d.getGetAdBreakContext=function(){return this.U.getGetAdBreakContext()}; g.d.isFullscreen=function(){return this.U.isFullscreen()}; g.d.isAtLiveHead=function(){return this.U.isAtLiveHead()}; g.d.e2=function(f){this.U.e2(f)}; g.d.lpo=function(){var f=this.U.getPresentingPlayerType(!0),D=this.getCurrentTimeSec(f,!1);if(f===2){f=g.a(this.listeners);for(var F=f.next();!F.done;F=f.next())F.value.aN(D)}else if(f===1)for(f=g.a(this.H8),F=f.next();!F.done;F=f.next())F.value.E7(D)}; g.d.bEE=function(f){for(var D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.UW(f,this.getPresentingPlayerType())}; g.d.onFullscreenToggled=function(f){for(var D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.onFullscreenToggled(f)}; g.d.onVolumeChange=function(){for(var f=g.a(this.listeners),D=f.next();!D.done;D=f.next())D.value.onVolumeChange()}; g.d.Te=function(){for(var f=this.U.isMinimized(),D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.Te(f)}; g.d.R2=function(f){for(var D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.R2(f)}; g.d.bE=function(){for(var f=this.U.sy().nw(),D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.Lc(f)}; g.d.V$=function(f){for(var D=g.a(this.listeners),F=D.next();!F.done;F=D.next())F.value.V$(f)}; g.d.Hn=function(){for(var f=g.a(this.listeners),D=f.next();!D.done;D=f.next())D.value.Hn()};g.C(nUJ,g.J);g.C(qj,g.J);qj.prototype.Ey=function(){this.vL.MR()||this.vL.get().removeListener(this);g.J.prototype.Ey.call(this)};HA.prototype.fetch=function(f){var D=f.aC;return this.Y.fetch(f.SW,{Id:f.Id===void 0?void 0:f.Id,Nz:D,cueProcessedMs:f.cueProcessedMs===void 0?0:f.cueProcessedMs}).then(function(F){return Y1u(F,D)})};g.C(oF,g.J);g.d=oF.prototype;g.d.addListener=function(f){this.listeners.push(f)}; g.d.removeListener=function(f){this.listeners=this.listeners.filter(function(D){return D!==f})}; g.d.xs=function(f){Pgy(this,f,1)}; g.d.onAdUxClicked=function(f,D){Kv(this,function(F){F.c_(f,D)})}; g.d.Jd=function(f){Kv(this,function(D){D.Ur(f)})}; g.d.YJ=function(f){Kv(this,function(D){D.XZ(f)})}; g.d.ZFQ=function(f){Kv(this,function(D){D.UO(f)})};kL.prototype.reduce=function(f){switch(f.event){case "unknown":return}var D=f.identifier;var F=this.Y[D];F?D=F:(F={bP:null,BM:-Infinity},D=this.Y[D]=F);F=f.startSecs+f.Y/1E3;if(!(F=this.Y.startSecs&&F.startSecs<=this.Y.startSecs+this.Y.I$)){var Z=void 0;if(Hw(this.mI.get())&&F.identifier!==((Z=this.Y)==null?void 0:Z.identifier)){var I=Z=void 0,p=void 0,z=void 0;fj(this.DE.get(),"ocud","ccpi."+F.identifier+";ccpe."+F.event+";ccps."+F.startSecs+";\n ccpd."+F.I$+";pcpi."+((Z=this.Y)==null?void 0:Z.identifier)+ ";pcpe."+((I=this.Y)==null?void 0:I.event)+";\n pcps."+((p=this.Y)==null?void 0:p.startSecs)+";pcpd."+((z=this.Y)==null?void 0:z.I$)+";")}Z=void 0;F.identifier!==((Z=this.Y)==null?void 0:Z.identifier)&&Kb("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Y=F,FBu(this,F)}}; g.d.Ey=function(){this.J!=null&&(this.J.unsubscribe("cuepointupdated",this.fq,this),this.J=null);this.listeners.length=0;this.Ui.length=0;g.J.prototype.Ey.call(this)};g.d=hw.prototype;g.d.If=function(f,D,F,Z,I,p,z,H){return this.U.If(f,D,F,Z,I,p,z,H)}; g.d.zD=function(f,D){this.U.zD(f,D)}; g.d.GA=function(f,D,F){this.U.GA(f,D,F)}; g.d.Ro=function(f){this.U.Ro(f)}; g.d.XA=function(f,D,F,Z,I,p,z,H){this.U.XA(f,D,F,Z,I,p,z,H)}; g.d.LR=function(f){return this.U.LR(f)}; g.d.finishSegmentByCpn=function(f,D,F){F=pWD(F);this.U.finishSegmentByCpn(f,D,F)};g.C(yB,g.J);g.C(sOD,g.J);g.C(q3D,g.J);g.C(HZu,g.J);g.C(o8y,g.J);g.C(KBD,g.J);g.C(jOI,g.J);jOI.prototype.B=function(){return this.J};g.C(iZy,gF); iZy.prototype.B=function(f){var D=f.content;if(D.componentType==="shopping-companion")switch(f.actionType){case 1:case 2:f=this.Y.getVideoData(1);this.Y.wY("updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,shoppingCompanionCarouselRenderer:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.Y,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:this.Y.wY("updateKevlarOrC3Companion",{})}else if(D.componentType==="action-companion")switch(f.actionType){case 1:case 2:f=this.Y.getVideoData(1); this.Y.wY("updateKevlarOrC3Companion",{contentVideoId:f&&f.videoId,actionCompanionAdRenderer:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.Y,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D.renderer&&(D=this.Y.getVideoData(1),this.Y.wY("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId})),this.Y.wY("updateKevlarOrC3Companion",{})}else if(D.componentType==="image-companion")switch(f.actionType){case 1:case 2:f=this.Y.getVideoData(1);this.Y.wY("updateKevlarOrC3Companion", {contentVideoId:f&&f.videoId,imageCompanionAdRenderer:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.Y,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D=this.Y.getVideoData(1),this.Y.wY("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId}),this.Y.wY("updateKevlarOrC3Companion",{})}else if(D.componentType==="top-banner-image-text-icon-buttoned")switch(f.actionType){case 1:case 2:f=this.Y.getVideoData(1);this.Y.wY("updateKevlarOrC3Companion", {contentVideoId:f&&f.videoId,topBannerImageTextIconButtonedLayoutViewModel:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.Y,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D.renderer&&(D=this.Y.getVideoData(1),this.Y.wY("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId})),this.Y.wY("updateKevlarOrC3Companion",{})}else if(D.componentType==="banner-image")switch(f.actionType){case 1:case 2:f=this.Y.getVideoData(1);this.Y.wY("updateKevlarOrC3Companion", {contentVideoId:f&&f.videoId,bannerImageLayoutViewModel:D.renderer,layoutId:D.layoutId,macros:D.macros,onLayoutVisibleCallback:D.Y,interactionLoggingClientData:D.interactionLoggingClientData});break;case 3:D=this.Y.getVideoData(1),this.Y.wY("updateKevlarOrC3Companion",{contentVideoId:D&&D.videoId}),this.Y.wY("updateKevlarOrC3Companion",{})}else if(D.componentType==="ads-engagement-panel")switch(D=D.renderer,f.actionType){case 1:case 2:this.Y.wY("updateEngagementPanelAction",D.addAction);this.Y.wY("changeEngagementPanelVisibility", D.expandAction);break;case 3:this.Y.wY("changeEngagementPanelVisibility",D.hideAction),this.Y.wY("updateEngagementPanelAction",D.removeAction)}else if(D.componentType==="ads-engagement-panel-layout"){var F=D.renderer;switch(f.actionType){case 1:case 2:this.Y.wY("updateEngagementPanelAction",{action:w4(F.addAction),layoutId:D.layoutId,onLayoutVisibleCallback:D.Y,interactionLoggingClientData:D.interactionLoggingClientData});this.Y.wY("changeEngagementPanelVisibility",w4(F.expandAction));break;case 3:this.Y.wY("changeEngagementPanelVisibility", w4(F.hideAction)),this.Y.wY("updateEngagementPanelAction",{action:w4(F.removeAction)})}}};g.C(h9c,fb);g.d=h9c.prototype;g.d.init=function(f,D,F){fb.prototype.init.call(this,f,D,F);g.Dx(this.B,"stroke-dasharray","0 "+this.J);this.B.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.X.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.G.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Fx(this);fb.prototype.hide.call(this)}; g.d.show=function(){Dr(this);fb.prototype.show.call(this)}; g.d.ge=function(){this.hide()}; g.d.gy=function(){if(this.Y){var f=this.Y.getProgressState();f!=null&&f.current!=null&&g.Dx(this.B,"stroke-dasharray",f.current/f.seekableEnd*this.J+" "+this.J)}};g.C(yeI,kg);g.d=yeI.prototype; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);if(D.image&&D.image.thumbnail)if(D.headline)if(D.description)if(D.backgroundImage&&D.backgroundImage.thumbnail)if(D.actionButton&&g.Q(D.actionButton,g.Ma))if(f=D.durationMilliseconds||0,typeof f!=="number"||f<=0)g.SJ(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+f));else if(D.navigationEndpoint){var Z=this.api.getVideoData(2);if(Z!=null){var I=D.image.thumbnail.thumbnails;I!=null&& I.length>0&&g.XI(g.uI(I[0].url))&&(I[0].url=Z.profilePicture,g.XI(g.uI(Z.profilePicture))&&DJJ("VideoPlayer",239976093,"Expected non-empty profile picture."));I=D.backgroundImage.thumbnail.thumbnails;I!=null&&I.length>0&&g.XI(g.uI(I[0].url))&&(I[0].url=Z.ut());I=D.headline;I!=null&&g.XI(g.uI(I.text))&&(I.text=Z.author)}this.N.init(IV("ad-image"),D.image,F);this.X.init(IV("ad-text"),D.headline,F);this.B.init(IV("ad-text"),D.description,F);this.dY.init(IV("ad-image"),D.backgroundImage,F);Z=["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.B.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.j().Z("enable_default_mono_cta_migration_web_client")?Z.push("ytp-ad-action-interstitial-action-button-mono-dark"):Z.push("ytp-ad-action-interstitial-action-button-dark");this.api.j().J&&(Z.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.j().Z("enable_default_mono_cta_migration_web_client")?Z.push("ytp-ad-action-interstitial-action-button-mono-dark"):Z.push("ytp-ad-action-interstitial-action-button-dark"));this.api.j().Z("enable_unified_action_endcap_on_web")&&!this.api.j().J&&(this.api.j().Z("enable_default_mono_cta_migration_web_client")?Z.push("ytp-ad-action-interstitial-action-button-unified-mono"):Z.push("ytp-ad-action-interstitial-action-button-unified"),this.LQ.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.eT.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Fr.classList.add("ytp-ad-action-interstitial-card-unified"),this.KQ.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.Tx.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.X.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.Ir.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.jT.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Gu(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,Z);g.N(this,this.actionButton);this.actionButton.CQ(this.LQ);this.actionButton.init(IV("button"),g.Q(D.actionButton,g.Ma),F);Jf(this.actionButton.element);Z=gS(this.actionButton.element);NL(this.actionButton.element, Z+" This link opens in new tab");this.navigationEndpoint=D.navigationEndpoint;this.G.D(this.Ir,"click",this.xP,this);this.G.D(this.KQ,"click",this.xP,this);this.api.j().J||this.G.D(this.Tx,"click",this.xP,this);this.Y=this.jG?new Qs(this.api,f):new Cb(f);g.N(this,this.Y);if(D.skipButton){(f=g.Q(D.skipButton,BTo))&&this.Y&&(this.skipButton=new ys(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.Y,this.KO),g.N(this,this.skipButton),this.skipButton.CQ(this.element),this.skipButton.init(IV("skip-button"), f,F));if(F=D.adBadgeRenderer)if(F=g.Q(F,WEC))f=new Rj(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0,!0),f.CQ(this.jT),f.init(IV("simple-ad-badge"),F,this.macros),g.N(this,f);if(F=D.adInfoRenderer)if(F=g.Q(F,Tj))f=new nm(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.element,void 0,!0),f.CQ(this.jT),f.init(IV("ad-info-hover-text-button"),F,this.macros),g.N(this,f)}else D.nonskippableOverlayRenderer&&(f=g.Q(D.nonskippableOverlayRenderer,bm))&&this.Y&&(this.J= new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.Y,!1),g.N(this,this.J),this.J.CQ(this.element),this.J.init(IV("ad-preview"),f,F));D.countdownRenderer&&(D=D.countdownRenderer,g.Q(D,rIb)&&this.Y&&(F=new h9c(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.Y),g.N(this,F),F.CQ(this.element),F.init(IV("timed-pie-countdown"),g.Q(D,rIb),this.macros)));this.show();this.element.focus()}else g.SJ(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.SJ(Error("AdActionInterstitialRenderer has no button."));else g.SJ(Error("AdActionInterstitialRenderer has no background AdImage."));else g.SJ(Error("AdActionInterstitialRenderer has no description AdText."));else g.SJ(Error("AdActionInterstitialRenderer has no headline AdText."));else g.SJ(Error("AdActionInterstitialRenderer has no image."))}; g.d.clear=function(){g.a8(this.G);this.hide()}; g.d.show=function(){Aef(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.J&&this.J.show();kg.prototype.show.call(this)}; g.d.hide=function(){Aef(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.J&&this.J.hide();kg.prototype.hide.call(this)}; g.d.xP=function(){this.navigationEndpoint&&(this.layoutId?this.yT.executeCommand(this.navigationEndpoint,this.layoutId):g.SJ(Error("Missing layoutId for ad action interstitial.")))};var QOy={iconType:"CLOSE"},RF=new g.IG(320,63);g.C(ddE,kg);g.d=ddE.prototype; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);this.G=D;this.N=g.FI(this.G.onClickCommands||[]);this.jT=this.G.onErrorCommand||null;if(f=this.G.contentSupportedRenderer)f=this.G.contentSupportedRenderer,D=this.G.adInfoRenderer||null,g.Q(f,ase)?(this.X=g.$d("ytp-ad-overlay-ad-info-button-container",this.B.element),CVD(this,D),f=T6s(this,g.Q(f,ase))):g.Q(f,Ga0)?(this.X=g.$d("ytp-ad-overlay-ad-info-button-container",this.J.element),CVD(this,D),f=bZJ(this,g.Q(f,Ga0))):g.Q(f,wDC)?(this.X= g.$d("ytp-ad-overlay-ad-info-button-container",this.Y.element),CVD(this,D),f=M8J(this,g.Q(f,wDC))):(g.SJ(Error("InvideoOverlayAdRenderer content could not be initialized.")),f=!1);f&&(this.show(),t8u(this,!0))}; g.d.clear=function(){t8u(this,!1);this.Ir.reset();this.KQ=0;this.B.hide();this.logVisibility(this.B.element,!1);this.J.hide();this.logVisibility(this.J.element,!1);this.Y.hide();this.logVisibility(this.Y.element,!1);this.hide();this.dispose()}; g.d.xeY=function(){this.LQ&&(this.layoutId?this.yT.executeCommand(this.LQ,this.layoutId):g.SJ(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.d.cA=function(){a:{if(this.G&&this.G.closeButton&&this.G.closeButton.buttonRenderer){var f=this.G.closeButton.buttonRenderer;if(f.serviceEndpoint){f=[f.serviceEndpoint];break a}}f=[]}f=g.a(f);for(var D=f.next();!D.done;D=f.next())D=D.value,this.layoutId?this.yT.executeCommand(D,this.layoutId):g.SJ(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.d.hay=function(){this.dY||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.d.Fz=function(){this.dY||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.Fz("invideo-overlay")}; g.d.mmT=function(f){f.target===this.X&&g.$d("ytp-ad-button",this.eT.element).click()};g.C(S3s,fb);g.d=S3s.prototype;g.d.init=function(f,D,F){fb.prototype.init.call(this,f,D,F);f=D.durationMs;this.B=f==null||f===0?0:f+this.Y.getProgressState().current*1E3;if(D.text)var Z=D.text.templatedAdText;else D.staticMessage&&(Z=D.staticMessage);this.messageText.init(IV("ad-text"),Z,F);this.messageText.CQ(this.J.element);this.G.show(100);this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){cea(this,!1);fb.prototype.hide.call(this);this.J.hide();this.messageText.hide();Fx(this)}; g.d.show=function(){cea(this,!0);fb.prototype.show.call(this);Dr(this);this.J.show();this.messageText.show()}; g.d.ge=function(){this.hide()}; g.d.gy=function(){if(this.Y!=null){var f=this.Y.getProgressState();f!=null&&f.current!=null&&(f=1E3*f.current,!this.KQ&&f>=this.B?(this.G.hide(),this.KQ=!0):this.messageText&&this.messageText.isTemplated()&&(f=Math.max(0,Math.ceil((this.B-f)/1E3)),f!==this.X&&(Pa(this.messageText,{TIME_REMAINING:String(f)}),this.X=f)))}};g.C(Udd,kg);g.d=Udd.prototype; g.d.init=function(f,D,F){kg.prototype.init.call(this,f,D,{});D.image&&D.image.thumbnail?D.headline?D.description?D.actionButton&&g.Q(D.actionButton,g.Ma)?(this.B.init(IV("ad-image"),D.image,F),this.J.init(IV("ad-text"),D.headline,F),this.G.init(IV("ad-text"),D.description,F),this.actionButton=new Gu(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,["ytp-ad-underlay-action-button"]),D.backgroundColor&&g.Dx(this.element,"background-color",g.Lb(D.backgroundColor)),g.N(this,this.actionButton), this.actionButton.CQ(this.X),this.actionButton.init(IV("button"),g.Q(D.actionButton,g.Ma),F),f=g.Pf(this.api.j().experiments,"player_underlay_video_width_fraction"),this.api.j().Z("place_shrunken_video_on_left_of_player")?(D=this.Y,g.zP(D,"ytp-ad-underlay-left-container"),g.IC(D,"ytp-ad-underlay-right-container"),g.Dx(this.Y,"margin-left",Math.round((f+.02)*100)+"%")):(D=this.Y,g.zP(D,"ytp-ad-underlay-right-container"),g.IC(D,"ytp-ad-underlay-left-container")),g.Dx(this.Y,"width",Math.round((1-f- .04)*100)+"%"),this.api.u6()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.V9.bind(this)),this.api.addEventListener("resize",this.pY.bind(this))):g.SJ(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.SJ(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.SJ(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.SJ(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.d.show=function(){v8D(!0);this.actionButton&&this.actionButton.show();kg.prototype.show.call(this)}; g.d.hide=function(){v8D(!1);this.actionButton&&this.actionButton.hide();kg.prototype.hide.call(this)}; g.d.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.V9.bind(this));this.api.removeEventListener("resize",this.pY.bind(this));this.hide()}; g.d.onClick=function(f){kg.prototype.onClick.call(this,f);this.actionButton&&g.Ua(this.actionButton.element,f.target)&&this.api.pauseVideo()}; g.d.V9=function(f){f==="transitioning"?(this.Y.classList.remove("ytp-ad-underlay-clickable"),this.show()):f==="visible"?this.Y.classList.add("ytp-ad-underlay-clickable"):f==="hidden"&&(this.hide(),this.Y.classList.remove("ytp-ad-underlay-clickable"))}; g.d.pY=function(f){f.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):f.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.Dx(this.J.element,"font-size",f.width/40+"px")};g.C(dc,kg); dc.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);D.toggledLoggingParams&&(this.toggledLoggingParams=D.toggledLoggingParams);D.answer&&g.Q(D.answer,g.Ma)?(f=new Gu(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),f.CQ(this.answer),f.init(IV("ytp-ad-survey-answer-button"),g.Q(D.answer,g.Ma),F),f.show()):D.answer&&g.Q(D.answer,d_)&&(this.Y=new uh(this.api,this.layoutId,this.interactionLoggingClientData,this.yT, ["ytp-ad-survey-answer-toggle-button"]),this.Y.CQ(this.answer),g.N(this,this.Y),this.Y.init(IV("survey-answer-button"),g.Q(D.answer,d_),F));this.show()}; dc.prototype.mZ=function(f){this.layoutId?vC(this.yT,f,this.layoutId,this.macros):(f=new g.by("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.SJ(f))}; dc.prototype.onClick=function(f){kg.prototype.onClick.call(this,f);if(this.api.j().Z("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; dc.prototype.clear=function(){this.hide()};g.C(aXd,kg);aXd.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);D.answer&&g.Q(D.answer,d_)&&(this.button=new uh(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.CQ(this.Y),this.button.init(IV("survey-none-of-the-above-button"),g.Q(D.answer,d_),F));this.show()};g.C(QB,Gu);QB.prototype.init=function(f,D,F){Gu.prototype.init.call(this,f,D,F);f=!1;D.text&&(D=g.ih(D.text),f=!g.XI(D));f||g.UT(Error("No submit text was present in the renderer."))}; QB.prototype.onClick=function(f){this.publish("l");Gu.prototype.onClick.call(this,f)};g.C(Cv,kg); Cv.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);if(f=D.skipOrPreviewRenderer)g.Q(f,I7)?(f=g.Q(f,I7),F=new $4(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.G,!0),F.CQ(this.skipOrPreview),F.init(IV("skip-button"),f,this.macros),g.N(this,F),this.Y=F):g.Q(f,bm)&&(f=g.Q(f,bm),F=new pb(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.G,!1),F.CQ(this.skipOrPreview),F.init(IV("ad-preview"),f,this.macros),F.KQ.show(100),F.show(),g.N(this,F), this.Y=F);this.Y==null&&(f=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(D)),g.SJ(f));D.submitButton&&(f=D.submitButton,g.Q(f,g.Ma)&&(f=g.Q(f,g.Ma),F=new QB(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),F.CQ(this.submitButton),F.init(IV("survey-submit"),f,this.macros),g.N(this,F),this.J=F));if(f=D.adBadgeRenderer)f=g.Q(f,WEC),F=new Rj(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0,!0,!0),F.CQ(this.B),F.init(IV("simple-ad-badge"), f,this.macros),this.adBadge=F.element,g.N(this,F);if(f=D.adDurationRemaining)f=g.Q(f,cIY),F=new bt(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.G,void 0,!0),F.CQ(this.B),F.init(IV("ad-duration-remaining"),f,this.macros),g.N(this,F);(D=D.adInfoRenderer)&&g.Q(D,Tj)&&(f=new nm(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.element,void 0,!0),g.N(this,f),this.adBadge!==void 0?this.B.insertBefore(f.element,this.adBadge.nextSibling):f.CQ(this.B),f.init(IV("ad-info-hover-text-button"), g.Q(D,Tj),this.macros));this.show()}; Cv.prototype.clear=function(){this.hide()};g.C(m2,kg);m2.prototype.init=function(f,D,F){kg.prototype.init.call(this,f,D,F);reE(this)}; m2.prototype.show=function(){this.B=Date.now();kg.prototype.show.call(this)}; m2.prototype.MO=function(){};g.C(LBu,m2);g.d=LBu.prototype;g.d.init=function(f,D,F){var Z=this;m2.prototype.init.call(this,f,D,F);D.questionText&&G_T(this,D.questionText);D.answers&&D.answers.forEach(function(I,p){g.Q(I,V_)&&wWX(Z,g.Q(I,V_),F,p)}); this.X=new Set(this.J.map(function(I){return I.Y.Y})); (f=D.noneOfTheAbove)&&(f=g.Q(f,vcA))&&lXT(this,f,F);D.surveyAdQuestionCommon&&B6u(this,D.surveyAdQuestionCommon);D.submitEndpoints&&(this.submitEndpoints=D.submitEndpoints);this.D(this.element,"change",this.onChange);this.show()}; g.d.MO=function(){E8a(this,!1);this.G.J.subscribe("l",this.cSo,this)}; g.d.onChange=function(f){f.target===this.noneOfTheAbove.button.Y?Jes(this):this.X.has(f.target)&&(this.noneOfTheAbove.button.toggleButton(!1),E8a(this,!0))}; g.d.cSo=function(){var f=[],D=this.J.reduce(function(I,p,z){var H=p.toggledLoggingParams;p.Y&&p.Y.isToggled()&&H&&(I.push(H),f.push(z));return I},[]).join("&"),F=this.submitEndpoints.map(function(I){if(!I.loggingUrls)return I; I=g.vO(I);I.loggingUrls=I.loggingUrls.map(function(p){p.baseUrl&&(p.baseUrl=SD(p.baseUrl,D));return p}); return I}); if(F){F=g.a(F);for(var Z=F.next();!Z.done;Z=F.next())Z=Z.value,this.layoutId?vC(this.yT,Z,this.layoutId,this.macros):g.SJ(Error("Missing layoutId for multi_select_question."))}this.api.j().Z("supports_multi_step_on_desktop")&&this.KQ(f)}; g.d.clear=function(){this.api.j().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.C(Tg,m2);Tg.prototype.init=function(f,D,F){var Z=this;m2.prototype.init.call(this,f,D,F);D.questionText&&G_T(this,D.questionText);D.answers&&D.answers.forEach(function(I,p){g.Q(I,V_)&&wWX(Z,g.Q(I,V_),F,p)}); D.surveyAdQuestionCommon?B6u(this,D.surveyAdQuestionCommon):c1(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(D)));this.show()}; Tg.prototype.clear=function(){this.api.j().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.C(b4,kg);b4.prototype.init=function(f,D,F){var Z=this;kg.prototype.init.call(this,f,D,F);if(this.api.j().Z("supports_multi_step_on_desktop")){var I;this.conditioningRules=(I=D.conditioningRules)!=null?I:[];var p;this.J=(p=D.questions)!=null?p:[];var z;((z=D.questions)==null?0:z.length)&&e9f(this,0)}else(D.questions||[]).forEach(function(H){g.Q(H,Ce)?N6J(Z,g.Q(H,Ce),F):g.Q(H,Qv)&&g8u(Z,g.Q(H,Qv),F)}); this.show()}; b4.prototype.clear=function(){this.api.j().Z("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; b4.prototype.G=function(f){var D=this;if(this.api.j().Z("supports_multi_step_on_desktop")){var F;if((F=this.conditioningRules)==null?0:F.length){var Z;if(f.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(I){return I.questionIndex===D.Y})==null)g.SJ(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(I){if(I.questionIndex===D.Y)switch(I.condition){case "CONDITION_ALL_OF":var p;if((p=I.answerIndices)==null?0:p.every(function(H){return f.includes(H)}))Z=I.nextQuestionIndex; break;case "CONDITION_ANY_OF":var z;if((z=I.answerIndices)==null?0:z.some(function(H){return f.includes(H)}))Z=I.nextQuestionIndex; break;default:g.SJ(Error("Expected specified condition in survey conditioning rules."))}}),Z!=null)e9f(this,Z); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.SJ(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.C(Mj,kg); Mj.prototype.init=function(f,D,F){var Z=this;kg.prototype.init.call(this,f,D,F);f=D.timeoutSeconds||0;if(typeof f!=="number"||f<0)g.SJ(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+f));else if(D.timeoutCommands)if(D.text)if(D.ctaButton&&g.Q(D.ctaButton,g.Ma))if(D.brandImage)if(D.backgroundImage&&g.Q(D.backgroundImage,tx)&&g.Q(D.backgroundImage,tx).landscape){this.layoutId||g.SJ(Error("Missing layoutId for survey interstitial."));xdu(this.interstitial,g.Q(D.backgroundImage, tx).landscape);xdu(this.logoImage,D.brandImage);g.aG(this.text,g.ih(D.text));var I=["ytp-ad-survey-interstitial-action-button"];I.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Gu(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,I);g.N(this,this.actionButton);this.actionButton.CQ(this.J);this.actionButton.init(IV("button"),g.Q(D.ctaButton,g.Ma),F);this.actionButton.show();this.Y=new Qs(this.api,f*1E3);this.Y.subscribe("g",function(){Z.transition.hide()}); g.N(this,this.Y);this.D(this.element,"click",function(p){var z=p.target===Z.interstitial;p=Z.actionButton.element.contains(p.target);if(z||p)if(Z.transition.hide(),z)Z.api.onAdUxClicked(Z.componentType,Z.layoutId)}); this.transition.show(100)}else g.SJ(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.SJ(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.SJ(Error("SurveyTextInterstitialRenderer has no button."));else g.SJ(Error("SurveyTextInterstitialRenderer has no text."));else g.SJ(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; Mj.prototype.clear=function(){this.hide()}; Mj.prototype.show=function(){XWX(!0);kg.prototype.show.call(this)}; Mj.prototype.hide=function(){XWX(!1);kg.prototype.hide.call(this)};g.C(tw,fb);g.d=tw.prototype; g.d.init=function(f,D){fb.prototype.init.call(this,f,D,{});if(D.durationMilliseconds){if(D.durationMilliseconds<0){g.SJ(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+D.durationMilliseconds));return}this.J=D.durationMilliseconds}else this.J=this.Y.yI();var F;if((F=D.previewText)==null||!F.text||g.XI(D.previewText.text))g.SJ(Error("No text is returned for AdPreview."));else{this.X=D.previewText;D.previewText.isTemplated||g.aG(this.B,D.previewText.text);var Z; if(((Z=this.api.getVideoData(1))==null?0:Z.sL)&&D.previewImage){var I,p;(f=((p=kk(((I=D.previewImage)==null?void 0:I.sources)||[],52,!1))==null?void 0:p.url)||"")&&f.length?(this.previewImage=new g.Km({K:"img",C:"ytp-preview-ad__image",W:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",f),g.N(this,this.previewImage),this.previewImage.CQ(this.element)):g.SJ(Error("Failed to get imageUrl in AdPreview."))}else this.B.classList.add("ytp-preview-ad__text--padding--wide")}}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Fx(this);fb.prototype.hide.call(this)}; g.d.show=function(){Dr(this);fb.prototype.show.call(this)}; g.d.ge=function(){this.hide()}; g.d.gy=function(){if(this.Y){var f=this.Y.getProgressState();if(f!=null&&f.current)if(f=1E3*f.current,f>=this.J)this.transition.hide();else{var D;if((D=this.X)==null?0:D.isTemplated)if(D=Math.max(0,Math.ceil((this.J-f)/1E3)),D!==this.G){var F,Z;(f=(F=this.X)==null?void 0:(Z=F.text)==null?void 0:Z.replace("{TIME_REMAINING}",String(D)))&&g.aG(this.B,f);this.G=D}}}};g.C(SL,kg); SL.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});var F,Z;if((f=((Z=kk(((F=D.image)==null?void 0:F.sources)||[],OZX(D),!0))==null?void 0:Z.url)||"")&&f.length){F=this.fQ("ytp-ad-avatar");F.src=f;var I,p;if(Z=(I=D.interaction)==null?void 0:(p=I.accessibility)==null?void 0:p.label)F.alt=Z;switch(D.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(D.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.SJ(Error("Failed to get imageUrl in AdAvatar."))}; SL.prototype.clear=function(){this.hide()}; SL.prototype.onClick=function(f){kg.prototype.onClick.call(this,f)};g.C(cA,kg); cA.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});var F;f=(F=D.label)==null?void 0:F.content;if((F=f!=null&&!g.XI(f))||D.iconImage){F&&(this.buttonText=new g.Km({K:"span",C:"ytp-ad-button-vm__text",nQ:f}),g.N(this,this.buttonText),this.buttonText.CQ(this.element));var Z,I,p=((Z=D.interaction)==null?0:(I=Z.accessibility)==null?0:I.label)||F?f:"";p&&NL(this.element,p+" This link opens in new tab");Jf(this.element);if(D.iconImage){Z=void 0;if(D.iconImage){a:{I=D.iconImage;if(I.sources)for(I= g.a(I.sources),f=I.next();!f.done;f=I.next())if(f=f.value,p=void 0,(p=f.clientResource)==null?0:p.imageName){I=f;break a}I=void 0}if(I){var z;Z={iconType:(z=I.clientResource)==null?void 0:z.imageName}}}z=aV(Z,!1,this.J);z!=null&&(this.buttonIcon=new g.Km({K:"span",C:"ytp-ad-button-vm__icon",L:[z]}),g.N(this,this.buttonIcon),D.iconLeading?(Sc(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):F?(this.buttonIcon.CQ(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.CQ(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(D.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.Z("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.Y?"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(D.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.UT(Error("AdButton does not have label or an icon."))}; cA.prototype.clear=function(){this.hide()}; cA.prototype.onClick=function(f){kg.prototype.onClick.call(this,f)};g.C(n8c,fb);g.d=n8c.prototype; g.d.init=function(f,D){fb.prototype.init.call(this,f,D,{});if(f=g.Q(D.avatar,Lv)){var F=D.headline;if(F){var Z=D.description;if(Z){var I=g.Q(D.button,Eb);I?(this.adAvatar.init(IV("ad-avatar"),f),this.headline.init(IV("ad-simple-attributed-string"),new tF(F)),this.description.init(IV("ad-simple-attributed-string"),new tF(Z)),F.content&&F.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(IV("ad-button"),I), this.startMilliseconds=D.startMs||0,this.api.u6()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.y9.bind(this)),Dr(this)):g.SJ(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.SJ(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.SJ(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.SJ(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.d.gy=function(){if(this.Y){var f=this.Y.getProgressState();f&&f.current&&1E3*f.current>=this.startMilliseconds&&(Fx(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.d.ge=function(){this.clear()}; g.d.onClick=function(f){this.api.pauseVideo();fb.prototype.onClick.call(this,f)}; g.d.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.y9.bind(this))}; g.d.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();fb.prototype.show.call(this)}; g.d.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();fb.prototype.hide.call(this)}; g.d.y9=function(f){f==="hidden"?this.show():this.hide()};g.C(Ub,kg);g.d=Ub.prototype; g.d.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(!D.label||g.XI(D.label))g.SJ(Error("No label is returned for SkipAdButton."));else if(g.aG(this.G,D.label),f=aV({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.Z("delhi_modern_web_player_icons")),f==null)g.SJ(Error("Unable to retrieve icon for SkipAdButton"));else if(this.B=new g.Km({K:"span",C:"ytp-skip-ad-button__icon",L:[f]}),g.N(this,this.B),this.B.CQ(this.element),this.api.j().experiments.Hs("enable_skip_to_next_messaging")&&(D=g.uI(D.targetId)))this.J= !0,this.element.setAttribute("data-tooltip-target-id",D),this.element.setAttribute("data-tooltip-target-fixed","")}; g.d.onClick=function(f){f&&f.preventDefault();var D,F;WWT(f,{contentCpn:(F=(D=this.api.getVideoData(1))==null?void 0:D.clientPlaybackNonce)!=null?F:""})===0?this.api.wY("onAbnormalityDetected"):(kg.prototype.onClick.call(this,f),this.api.wY("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.d.clear=function(){this.Y.reset();this.hide()}; g.d.hide=function(){kg.prototype.hide.call(this)}; g.d.show=function(){this.Y.start();kg.prototype.show.call(this);this.J&&this.api.j().experiments.Hs("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.C(Y3d,fb);g.d=Y3d.prototype; g.d.init=function(f,D){fb.prototype.init.call(this,f,D,{});f=g.Q(D.preskipState,gco);var F;if((F=this.api.getVideoData())==null?0:F.isDaiEnabled()){if(!f){g.SJ(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.J=new tw(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.Y);g.N(this,this.J);this.J.CQ(this.element);var Z;(Z=this.J)==null||Z.init(IV("preview-ad"),f);(F=this.J)!=null&&(F.transition.show(100),F.show())}(F=g.Q(D.skippableState,xwn))?(D.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=D.skipOffsetMilliseconds:(g.UT(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(IV("skip-button"),F),this.show()):g.SJ(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.d.show=function(){Dr(this);fb.prototype.show.call(this)}; g.d.hide=function(){!this.isSkippable&&this.J?this.J.hide():this.B&&this.B.hide();Fx(this);fb.prototype.hide.call(this)}; g.d.clear=function(){var f;(f=this.J)==null||f.clear();this.B&&this.B.clear();Fx(this);fb.prototype.hide.call(this)}; g.d.ge=function(){this.hide()}; g.d.gy=function(){if(1E3*this.Y.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var f;(f=this.J)!=null&&f.transition.hide();(f=this.B)!=null&&(f.transition.show(),f.show())}};g.C(vA,kg); vA.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(D.label){var F;((F=D.label)==null?0:F.content)&&!g.XI(D.label.content)&&(this.linkText=new g.Km({K:"span",C:"ytp-visit-advertiser-link__text",nQ:D.label.content}),g.N(this,this.linkText),this.linkText.CQ(this.element));var Z,I;if((Z=D.interaction)==null?0:(I=Z.accessibility)==null?0:I.label)NL(this.element,D.interaction.accessibility.label+" This link opens in new tab");else{var p;((p=D.label)==null?0:p.content)&&!g.XI(D.label.content)&&NL(this.element, D.label.content+" This link opens in new tab")}Jf(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.SJ(Error("No label found in VisitAdvertiserLink."))}; vA.prototype.onClick=function(f){kg.prototype.onClick.call(this,f);this.api.onAdUxClicked(this.componentType,this.layoutId)}; vA.prototype.clear=function(){this.hide()};g.C(aF,kg); aF.prototype.init=function(f,D,F,Z){kg.prototype.init.call(this,f,D,{});if(D.skipOrPreview){F=D.skipOrPreview;f=g.Q(F,XDC);F=g.Q(F,gco);if(f)this.U9=new Y3d(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J),g.N(this,this.U9),this.U9.CQ(this.N),this.U9.init(IV("skip-ad"),f);else{var I;F&&((I=this.api.getVideoData())==null?0:I.isDaiEnabled())&&(this.G=new tw(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J,1),g.N(this,this.G),this.G.CQ(this.N),this.G.init(IV("ad-preview"), F),I=this.G,I.transition.show(100),I.show())}if(I=g.Q(D.skipOrPreview,XDC))var p=I.skipOffsetMilliseconds}D.playerAdCard&&(I=g.Q(D.playerAdCard,eDc))&&(this.playerAdCard=new n8c(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J),g.N(this,this.playerAdCard),this.playerAdCard.CQ(this.Tx),this.playerAdCard.init(IV("ad-avatar-lockup-card"),I));D.adBadgeRenderer&&((I=g.Q(D.adBadgeRenderer,l4))?(this.B=new cK(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0),g.N(this, this.B),this.B.CQ(this.Y),this.B.init(IV("ad-badge"),I)):g.SJ(Error("AdBadgeViewModel is not found in player overlay layout.")));D.adPodIndex&&(I=g.Q(D.adPodIndex,EcV))&&(this.adPodIndex=new UK(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.adPodIndex),this.adPodIndex.CQ(this.Y),this.adPodIndex.init(IV("ad-pod-index"),I));D.adInfoRenderer&&((I=g.Q(D.adInfoRenderer,Tj))?(this.adInfoButton=new nm(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.element, void 0,!0),g.N(this,this.adInfoButton),this.B!==void 0?this.Y.insertBefore(this.adInfoButton.element,this.B.element.nextSibling):this.adInfoButton.CQ(this.Y),this.adInfoButton.init(IV("ad-info-hover-text-button"),I,this.macros)):g.UT(Error("AdInfoRenderer is not found in player overlay layout.")));var z;I=(z=this.api.getVideoData())==null?void 0:z.isDaiEnabled();D.adDurationRemaining&&I&&(z=g.Q(D.adDurationRemaining,cIY))&&(this.adDurationRemaining=new bt(this.api,this.layoutId,this.interactionLoggingClientData, this.yT,this.J,Z.videoAdDurationSeconds,!0),g.N(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.Y.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.CQ(this.Y),this.adDurationRemaining.init(IV("ad-duration-remaining"),z,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));D.visitAdvertiserLink&&(Z=g.Q(D.visitAdvertiserLink,ncY))&&(this.visitAdvertiserLink=new vA(this.api,this.layoutId, this.interactionLoggingClientData,this.yT),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.CQ(this.Y),this.visitAdvertiserLink.init(IV("visit-advertiser-link"),Z));D.adDisclosureBanner&&(D=g.Q(D.adDisclosureBanner,lso))&&(this.adDisclosureBanner=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.adDisclosureBanner),this.adDisclosureBanner.CQ(this.KQ),this.adDisclosureBanner.init(IV("ad-disclosure-banner"),D));this.X=new WK(this.api,this.J,p,!0);g.N(this, this.X);g.uC(this.api,this.X.element,4);this.show()}; aF.prototype.clear=function(){this.hide()};g.C(PVJ,kg);g.d=PVJ.prototype; g.d.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(D!=null&&D.title)if(f=D.title)if(this.headline.init(IV("ad-simple-attributed-string"),new tF(f)),f=g.Q(D.moreInfoButton,Eb)){if(this.moreInfoButton.init(IV("ad-button"),f),D.descriptions)D.descriptions.length>0&&(f=D.descriptions[0])&&(this.Y=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.Y),this.Y.CQ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Y.init(IV("ad-simple-attributed-string"), new tF(f))),D.descriptions.length>1&&(D=D.descriptions[1])&&(this.J=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.J),this.J.CQ(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.J.init(IV("ad-simple-attributed-string"),new tF(D)))}else g.SJ(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.SJ(Error("No headline found in AdGridCardText."));else g.SJ(Error("No headline found in AdGridCardText."))}; g.d.onClick=function(f){kg.prototype.onClick.call(this,f);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.d.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var f;(f=this.Y)==null||f.clear();var D;(D=this.J)==null||D.clear()}; g.d.hide=function(){this.headline.hide();this.moreInfoButton.hide();var f;(f=this.Y)==null||f.hide();var D;(D=this.J)==null||D.hide();kg.prototype.hide.call(this)}; g.d.show=function(){kg.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var f;(f=this.Y)==null||f.show();var D;(D=this.J)==null||D.show()};g.C(Gg,kg);Gg.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(D!=null&&D.gridCards)if(D.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.SJ(Error("Only single column style is currently supported in AdGridCardCollection."));else for(f=g.a(D.gridCards),D=f.next();!D.done;D=f.next()){if(D=g.Q(D.value,NTo)){var F=new PVJ(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,F);F.CQ(this.element);F.init(IV("ad-grid-card-text"),D);this.Y.push(F)}}else g.SJ(Error("No grid cards found in AdGridCardCollection."))}; Gg.prototype.show=function(){for(var f=g.a(this.Y),D=f.next();!D.done;D=f.next())D.value.show();kg.prototype.show.call(this)}; Gg.prototype.clear=function(){this.hide();for(var f=g.a(this.Y),D=f.next();!D.done;D=f.next())D.value.clear()}; Gg.prototype.hide=function(){for(var f=g.a(this.Y),D=f.next();!D.done;D=f.next())D.value.hide();kg.prototype.hide.call(this)};g.C(wc,fb);g.d=wc.prototype;g.d.init=function(f,D,F,Z,I){I=I===void 0?0:I;fb.prototype.init.call(this,f,D,F,Z);this.playerProgressOffsetMs=I;Dr(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Jw.bind(this));this.api.addEventListener("resize",this.RY.bind(this));this.api.u6()?(this.J=!0,this.api.e2(!0),this.show()):this.hide()}; g.d.gy=function(){if(this.Y){var f=this.Y.getProgressState();f&&f.current&&!this.J&&1E3*f.current>=this.playerProgressOffsetMs&&(this.J=!0,this.api.e2(!0),this.show())}}; g.d.ge=function(){this.J&&this.api.e2(!1);this.hide()}; g.d.clear=function(){this.api.e2(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Jw.bind(this));this.api.removeEventListener("resize",this.RY.bind(this));Fx(this);this.hide()}; g.d.hide=function(){flX(!1);fb.prototype.hide.call(this)}; g.d.show=function(){flX(!0);fb.prototype.show.call(this)};g.C(Dtd,wc);g.d=Dtd.prototype; g.d.init=function(f,D,F,Z){if(D!=null&&D.adGridCardCollection)if(D!=null&&D.adButton){var I=Number(D.playerProgressOffsetMs||"0");isNaN(I)?wc.prototype.init.call(this,f,D,F,Z):wc.prototype.init.call(this,f,D,F,Z,I);f=D.headline;F=g.Q(D.adAvatar,Lv);f&&F?(this.headline=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.headline),this.headline.CQ(this.fQ("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(IV("ad-simple-attributed-string"),new tF(f)), this.adAvatar=new SL(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.adAvatar),this.adAvatar.CQ(this.fQ("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(IV("ad-avatar"),F)):this.G.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");f=g.Q(D.adGridCardCollection,uuc);this.adGridCardCollection.init(IV("ad-grid-card-collection"),f);D=g.Q(D.adButton,Eb);this.adButton.init(IV("ad-button"),D); this.hide()}else g.SJ(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.SJ(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.d.onClick=function(f){(this.adButton&&g.Ua(this.adButton.element,f.target)||this.adAvatar&&g.Ua(this.adAvatar.element,f.target))&&this.api.pauseVideo();wc.prototype.onClick.call(this,f);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.d.RY=function(){}; g.d.clear=function(){this.hide();var f;(f=this.headline)==null||f.clear();var D;(D=this.adAvatar)==null||D.clear();this.adGridCardCollection.clear();this.adButton.clear();wc.prototype.clear.call(this)}; g.d.show=function(){var f;(f=this.headline)==null||f.show();var D;(D=this.adAvatar)==null||D.show();this.adGridCardCollection.show();this.adButton.show();wc.prototype.show.call(this)}; g.d.hide=function(){var f;(f=this.headline)==null||f.hide();var D;(D=this.adAvatar)==null||D.hide();this.adGridCardCollection.hide();this.adButton.hide();wc.prototype.hide.call(this)}; g.d.Jw=function(f){f==="transitioning"?(this.B.classList.remove("ytp-ad-underlay-clickable"),this.show()):f==="visible"?this.B.classList.add("ytp-ad-underlay-clickable"):f==="hidden"&&(this.hide(),this.B.classList.remove("ytp-ad-underlay-clickable"))};g.C(WA,kg); WA.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(D.attributes===void 0)g.SJ(Error("No attributes found in AdDetailsLineViewModel."));else if(D.style===void 0)g.SJ(Error("No style found in AdDetailsLineViewModel."));else{f=g.a(D.attributes);for(var F=f.next();!F.done;F=f.next())if(F=F.value,F.text!==void 0){F=F.text;var Z=D.style,I=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,I);I.CQ(this.element);a:switch(Z){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":Z="ytp-ad-details-line__text--style-responsive"; break a;default:Z="ytp-ad-details-line__text--style-standard"}I.element.classList.add(Z);I.init(IV("ad-simple-attributed-string"),new tF(F));this.Y.push(I)}this.show()}}; WA.prototype.show=function(){this.Y.forEach(function(f){f.show()}); kg.prototype.show.call(this)}; WA.prototype.clear=function(){this.hide()}; WA.prototype.hide=function(){this.Y.forEach(function(f){f.hide()}); kg.prototype.hide.call(this)};g.C(BA,kg);BA.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});var F,Z;(f=((Z=kk(((F=D.image)==null?void 0:F.sources)||[]))==null?void 0:Z.url)||"")&&f.length?(F=this.fQ("ytp-image-background-image"),g.Dx(F,"backgroundImage","url("+f+")"),D.blurLevel!==void 0&&g.Dx(F,"filter","blur("+D.blurLevel+"px)"),D.gradient!==void 0&&(D=new g.x({K:"div",ST:["ytp-image-background--gradient-vertical"]}),g.N(this,D),D.CQ(this.element)),this.show()):g.SJ(Error("Failed to get imageUrl in ImageBackground."))}; BA.prototype.clear=function(){this.hide()};g.C(Fey,fb);g.d=Fey.prototype;g.d.init=function(f,D){fb.prototype.init.call(this,f,D,{});g.Dx(this.B,"stroke-dasharray","0 "+this.J);this.show()}; g.d.clear=function(){this.hide()}; g.d.hide=function(){Fx(this);fb.prototype.hide.call(this)}; g.d.show=function(){Dr(this);fb.prototype.show.call(this)}; g.d.ge=function(){this.hide()}; g.d.gy=function(){if(this.Y){var f=this.Y.getProgressState();f!=null&&f.current!=null&&g.Dx(this.B,"stroke-dasharray",f.current/f.seekableEnd*this.J+" "+this.J)}};g.C(rc,kg); rc.prototype.init=function(f,D){kg.prototype.init.call(this,f,D,{});if(IlX(D)){this.adAvatar=new SL(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.adAvatar);this.adAvatar.CQ(this.fQ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(IV("ad-avatar"),g.Q(D.adAvatar,Lv));this.headline=new Ss(this.api,this.layoutId,this.interactionLoggingClientData,this.yT);g.N(this,this.headline);this.headline.CQ(this.fQ("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(IV("ad-simple-attributed-string"),new tF(D.headline));if(f=g.Q(D.adDetailsLine,LEE))this.detailsLine=new WA(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.detailsLine),this.detailsLine.CQ(this.fQ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(IV("ad-details-line"),f);this.adButton=new cA(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0);g.N(this,this.adButton); this.adButton.CQ(this.fQ("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(IV("ad-button"),g.Q(D.adButton,Eb));this.adBadge=new cK(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,!0);g.N(this,this.adBadge);this.adBadge.CQ(this.G);this.adBadge.init(IV("ad-badge"),g.Q(D.adBadge,l4));this.adInfoButton=new nm(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.element,void 0,!0);g.N(this,this.adInfoButton);this.adInfoButton.CQ(this.G); this.adInfoButton.init(IV("ad-info-hover-text-button"),g.Q(D.adInfoRenderer,Tj),this.macros);if(f=g.Q(D.skipAdButton,xwn))this.skipAdButton=new Ub(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.skipAdButton),this.skipAdButton.CQ(this.element),this.skipAdButton.init(IV("skip-button"),f);this.J=new Cb(D.durationMilliseconds);g.N(this,this.J);if(f=g.Q(D.countdownViewModel,Ofo))this.Y=new Fey(this.api,this.layoutId,this.interactionLoggingClientData,this.yT,this.J),g.N(this, this.Y),this.Y.CQ(this.fQ("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Y.init(IV("timed-pie-countdown"),f);if(D=g.Q(D.imageBackground,JIc))this.imageBackground=new BA(this.api,this.layoutId,this.interactionLoggingClientData,this.yT),g.N(this,this.imageBackground),this.imageBackground.CQ(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(IV("image-background"), D);this.show();this.element.focus()}}; rc.prototype.clear=function(){g.a8(this.B);this.hide()}; rc.prototype.show=function(){Zwa(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();kg.prototype.show.call(this)}; rc.prototype.hide=function(){Zwa(!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.Y&&this.Y.hide();this.imageBackground&&this.imageBackground.hide();kg.prototype.hide.call(this)};g.C(Jw,g.zu);g.d=Jw.prototype;g.d.yI=function(){return 1E3*this.api.getDuration(this.r$,!1)}; g.d.stop=function(){this.Y&&this.handler.DK(this.Y)}; g.d.Ft=function(){var f=this.api.getProgressState(this.r$);this.J={seekableStart:f.seekableStart,seekableEnd:f.seekableEnd,current:this.api.getCurrentTime(this.r$,!1)};this.publish("h")}; g.d.getProgressState=function(){return this.J}; g.d.V1=function(f){g.hF(f,2)&&this.publish("g")};var yQb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.C(u4,gF); u4.prototype.B=function(f){var D=f.id,F=f.content,Z=F.componentType;if(!yQb.includes(Z))switch(f.actionType){case 1:f=this.api;var I=this.yT,p=F.layoutId,z=F.interactionLoggingClientData,H=F instanceof Gl?F.jG:!1,K=F instanceof Gl||F instanceof dQ?F.KO:!1;z=z===void 0?{}:z;H=H===void 0?!1:H;K=K===void 0?!1:K;switch(Z){case "invideo-overlay":f=new ddE(f,p,z,I);break;case "player-overlay":f=new BK(f,p,z,I,new Jw(f),K);break;case "player-overlay-layout":f=new aF(f,p,z,I,new Jw(f));break;case "survey":f= new b4(f,p,z,I);break;case "ad-action-interstitial":f=new yeI(f,p,z,I,H,K);break;case "video-interstitial-buttoned-centered":f=new rc(f,p,z,I);break;case "survey-interstitial":f=new Mj(f,p,z,I);break;case "ad-message":f=new S3s(f,p,z,I,new Jw(f,1));break;case "player-underlay":f=new Udd(f,p,z,I);break;case "display-underlay-text-grid-cards":f=new Dtd(f,p,z,I,new Jw(f));break;default:f=null}if(!f){g.UT(Error("No UI component returned from ComponentFactory for type: "+Z));break}g.ma(this.components, D)?g.UT(Error("Ad UI component already registered: "+D)):this.components[D]=f;f.bind(F);F instanceof v7?this.J?this.J.append(f.eE):g.UT(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(f.eE);break;case 2:D=p_T(this,f);if(D==null)break;D.bind(F);break;case 3:F=p_T(this,f),F!=null&&(g.jg(F),g.ma(this.components,D)?(F=this.components,D in F&&delete F[D]):g.UT(Error("Ad UI component does not exist: "+D)))}}; u4.prototype.Ey=function(){g.iD(Object.values(this.components));this.components={};gF.prototype.Ey.call(this)};g.C(zEa,g.KS);g.d=zEa.prototype;g.d.create=function(){try{sWa(this),this.load(),this.created=!0,sWa(this)}catch(f){Kb(f instanceof Error?f:String(f))}}; g.d.load=function(){omD(this)}; g.d.destroy=function(){var f=this.player.getVideoData(1);this.Y.Y.P0.jy(f&&f.clientPlaybackNonce||"");this.unload();this.created=!1}; g.d.unload=function(){g.KS.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(D){Kb(D instanceof Error?D:String(D))}if(this.J!=null){var f=this.J;this.J=null;f.dispose()}this.B.reset()}; g.d.LC=function(){return!1}; g.d.getAdState=function(){return-1}; g.d.getOptions=function(){return Object.values(hX0)}; g.d.JJ=function(f,D){D=D===void 0?{}:D;switch(f){case "replaceUrlMacros":return f=D,f.url?(D=S1D(this.player),Object.assign(D,f.t3r),f=g.S$(f.url,D)):f=null,f;case "onAboutThisAdPopupClosed":this.j2(D);break;case "executeCommand":f=D;f.command&&f.layoutId&&this.executeCommand(f);break;default:return null}}; g.d.V7=function(f){var D;return!((D=this.Y.Y.o$)==null||!D.get().V7(f))}; g.d.j2=function(f){f.isMuted&&H_u($L(this.Y).I6,$L(this.Y).tv,f.layoutId);this.hP&&this.hP.j2()}; g.d.executeCommand=function(f){$L(this.Y).yT.executeCommand(f.command,f.layoutId)};g.dE("yt.player.Application.create",g.iH.create);g.dE("yt.player.Application.createAlternate",g.iH.create);iOs(Tn(),iWA);var AQv=g.QY("ytcsi.tick");AQv&&AQv("pe");g.o2("ad",zEa);g.C(g.xL,g.J);g.xL.prototype.start=function(f,D,F){this.config={from:f,to:D,duration:F,startTime:(0,g.m5)()};this.next()}; g.xL.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.xL.prototype.next=function(){if(this.config){var f=this.config,D=f.from,F=f.to,Z=f.duration;f=f.startTime;f=(0,g.m5)()-f;var I=this.Y;Z=g.PZ(m_I(I,T$a(I,f/Z)),0,1);this.callback(D+(F-D)*Z);Z<1&&this.delay.start()}};g.C(g.XX,g.x);g.d=g.XX.prototype;g.d.hasSuggestions=function(){return this.suggestionData.length>0}; g.d.Rg=function(){this.J&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.d.show=function(){g.x.prototype.show.call(this);yda(this)}; g.d.iT=function(){this.J&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.d.Oj=function(){this.bE(this.api.sy().getPlayerSize())}; g.d.bE=function(f){var D=this.api.isEmbedsShortsMode()?.5625:16/9,F=this.api.z2();f=f.width-(F?112:58);F=Math.ceil(f/(F?320:192));var Z=(f-F*8)/F;D=Math.floor(Z/D);for(var I=g.a(this.Y),p=I.next();!p.done;p=I.next())p=p.value.fQ("ytp-suggestion-image"),p.style.width=Z+"px",p.style.height=D+"px";this.suggestions.element.style.height=D+"px";this.G=Z;this.S=D;this.containerWidth=f;this.columns=F;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Ob(this)}; g.d.onVideoDataChange=function(){var f=this.api.j(),D=this.api.getVideoData();this.X=D.Yn?!1:f.G;this.suggestionData=D.suggestions?g.G$(D.suggestions,function(F){return F&&!F.playlistId}):[]; $tD(this);D.Yn?this.title.update({title:g.F8("M\u00e1s v\u00eddeos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:D.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s v\u00eddeos"})}; g.d.scrollTo=function(f){f=g.PZ(f,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.T.start(this.scrollPosition,f,1E3);this.scrollPosition=f;g.Ob(this);yda(this)};})(_yt_player);