var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var l='path;1970-01-01T10:45:56.000+10:45;length;;\\.a1\\.googlevideo\\.com$;slice;1;unshift;C;push;],),(;T;/videoplayback;1969-12-31T16:16:21.000-07:45;indexOf;S1;clone;sq;W;assign;splice;split;1969-12-31T13:00:01.000-11:00;prototype;playerfallback;/initplayback;scheme;1970-01-01T10:01:11.000+10:00;=;cmo=pf;set;local;pop;join;/api/manifest;\\.googlevideo\\.com$;youtube.player.web_20250625_21_RC00;url;J;reverse;fromCharCode;SZ;n;toString;/file/index.m3u8;match;get;fvip;Wv;&;cmo=;file;/;:;sp;://;Zy;,;cmo;startsWith;index.m3u8;NY;redirector.googlevideo.com;mn;fallback_count;rr;signatureCipher;//;r;1969-12-31T17:00:28.000-07:00;cmo=td;var;To;Untrusted URL;%3D;gytfd9yAbx0qZ4B1uH-_w8_;forEach;a1.googlevideo.com;www.youtube.com;null;https://local;rr?[1-9].*\\.c\\.youtube\\.com$;""{"";---;s;?;replace;false;http://local;undefined'.split(";"), PP,ycm,vmc,L3,djr,AcP,WP,TrU,ad,lvU,xm,OU,gr,Dv,MxT,nm6,Id,p3,sdc,f3,YUH,uR,X6,SUd,Rd,K3,z2,km,EU,Vx2,QH,dV,LT2,WT6,avP,SX,xjH,O33,LH,gmm,Djm,aC,G2v,b33,IC,FT3,X_,jdR,e3r,uw,mj3,Br6,qUR,rcm,wV,du,$jP,om3,l0,S4,CRc,Og,gu,DE,cL,Gn,b0,pPH,FF,j4,e4,UjU,i3P,BL,u6T,$N,C_,HL,XF,RM,K_,H3d,XPc,zn,Eg,kN,Nr6,R32,KTj,z33,EmR,wu,Jg,vD,d0,PD,T8,lX,JOU,sS,SP,Vt,Ln,tg,aV,xp,yOP,OS,g0,G8,dbT,PwR,AO3,bX,jP,eP,q7,r0,oV,Cn,VXm,L0c,tXx,W0v,hg,ayP,IV,pn,US,xbH,fn,OHU,DbH,XN,RV,kp,Qt,ZN,bHc,GQ2,BVx,eum,rO6,ds,PZ,nj,Cwx, IyU,huU,Yk,V6,pq3,SZ,xk,Jb,fyx,UbT,jZ,cZ,w0,iHc,eZ,BZ,m4,u_3,rs,HH2,og,Cj,Ig,pj,U3,fj,ia,HZ,Xn,zN,kk,ZG,NVv,K0r,Ru3,zuR,kQU,Pf,A3,Ts,QCj,lO,ZH2,sb,Y7,SB,JsH,ysR,P03,vN3,Asx,nNm,VG,M4T,Tuv,L9,t3,sMm,Wf,YgH,ae,V4j,Sgm,LpH,t43,Dr,cf,WpR,aEU,xh2,Gs,bO,O_r,GnU,Fp,b_d,Fp6,qgU,Bf,BuH,jM6,$h6,hbH,rp,oe,h3,C9,IE3,Ie,p9,Ub,uO,Hf,Xp,Re,H_x,K9,XLT,k7,QG,zbr,vk,Pk,TH,knr,AC,ENR,QMx,ls,dG,Mw,nI,Z_d,Yd,V5,JgU,LI,tC,Wk,d7R,GH,PXU,Agd,T0x,lNR,ck,Dk,aI,ygU,vpH,MPU,sVP,YS2,SS6,jd,ed,m2,VPx,rG,oI,CI,hC,LSv,WSd,pI,aNP, Hk,fI,cg6,Nw,X7,G86,FSm,zH,RI,jVv,kd,Et,Q5,KI,wG,Zk,yI,Jy,TJ,eed,v3,P3,lg,m7d,MV,B0H,nd,sf,Ld,ty,W3,Y3,VI,S6,x3,qSU,Of,rgx,gg,opx,DV,CX6,j6,Ay,e6,mG,B3,INT,qV,rg,oE,Cd,hy,IE,pd,pDH,Uf,U7T,fd,ig,ug,Xc,H3,NV,RE,Kd,zJ,k3,fNm,uN2,QI,Hnr,XDj,N0T,wg,Jq,St,KSv,Vs,k8j,Ll,QV6,tq,Wo,aA,Znj,xQ,wDj,O_,JbR,ybU,gX,vkU,DA,co,Gz,dix,Fv,jt,AbT,Bo,MZv,PaR,qU,$Q,oA,Y3d,nkr,hq,Xv,S3v,L4P,tZ3,NU,RA,Kl,zz,E_,Qs,ZA,xi3,Ojc,gk3,cbP,GN6,Jn,yQ,bjr,vV,F42,jg6,miv,$iR,dO,okm,Cax,haU,IGU,pZU,TG,UiU,MN,ijd,Yn,Sa,Hjc,VQ,LV,tn, XZR,Ns2,xn,O1,cV,GG,K4c,zac,kNH,qN,BV,mJ,Ek3,Qgj,Zj6,rO,$n,ol,J3c,U1,fV,v7x,dc3,PO3,i5,u5,A3H,Tp2,HV,lrm,MBU,n7T,sev,KV,NN,zG,kn,E1,Ybm,Sbv,VBH,QQ,ZS,L9R,wO,tBr,W9P,tdH,Ju,W2U,yN,v2,akr,xwm,OIH,gd3,Dwx,cCT,Au,TR,lK,nD,F2P,sd,Yg,jIH,bIx,M0,erv,ST,VN,LD,W2,tu,mwr,BG3,qt2,a$,$wH,D8,Csd,hrm,Ikm,pk6,Uw2,fkU,iI3,u73,bK,F4,jT,Xk2,HIT,NGU,Rrc,mA,K2x,B2,zr6,kHr,q0,rJ,$g,Edc,o$,hu,QIT,I$,pD,Ud,fD,iK,uK,H2,X4,ZIP,wk3,Jyj,yyR,N0,v3c,PgR,dVT,KD,zR,Tgc,AyP,n3m,SfH,Yfc,kg,V6r,LGv,t6d,aV3,WGc,xVc,Ed,Odv,g3x,Z8,DVj, cyP,GJj,bdH,wJ,FGR,JJ,jE3,yc,vt,mVT,d$,Bgr,Pt,AJ,qfT,ryd,TT,MT,o32,ny,$V3,Cg3,h83,IVU,UVd,sE,fV3,Vc,Ly,ucd,HdR,R8d,KG3,tJ,Wt,aH,xE,OE,g$,Dz,ct,GT,bc,FZ,j8,e8,QEU,E33,Zdr,JqP,w3j,vQd,kJj,yqv,z8m,m$,Bt,PNx,Aqv,TX3,UE,fy,ic,qT,Mtv,uc,dUr,sAv,Y_r,nQU,Ht,XZ,NT,RH,S_P,lA3,Vtj,Ky,LFj,ttU,WFT,aAU,xUH,DUc,cqR,Gz6,blP,zT,kE,FFj,jAT,BX3,q_m,EE,Zz,$U3,w$,Qc,CNR,oQm,hj3,IA6,poj,yB,va,fA3,ilc,uv3,Hld,Xo2,NX6,Rjx,KFr,zjv,kzc,Pa,At,TL,lM,Mm,nk,EQ3,wor,JnT,ynr,dN6,vn3,P5R,SS,VB,AnH,TOU,lSc,Lk,tt,Wa,am,xF,Oz,gK,Da, MaU,GL,slm,FW,Y1x,S13,jS,eS,mX,qm,Ba,VaR,tad,rK,wX,DiR,Im,WJT,aS3,pk,xN3,ht,gnP,OVR,Ck,Uz,fk,DNv,cnm,GGR,bVj,iM,FJU,uM,Zlc,QAx,Ha,XW,Rm,Kk,mNr,zL,kF,QB,BOr,q1x,Za,ho2,le,$NH,C5r,ye,Jo,SQ,Ve,ISm,WQ,pV3,aJ,x1,UN6,iVm,HVR,ma,qa,KJR,zox,kG6,rR,wVP,jQ,NOm,yuc,ZVc,Enm,QlU,vgU,JuR,oJ,IJ,PKm,AuT,TJ2,l83,MTR,Uk,ng6,ie,s$m,VTd,LAP,ue,WA2,x0d,a8m,ODR,XC,Kb,Qe,wR,J9,ym,vG,dP,cuR,GRd,PG,bDd,A9,Tl,ZJ,l1,Mk,nB,Jt,sY,FAU,Sh,m03,Vm,LB,qdd,BJ3,ruj,$02,ogm,t9,CKx,hTT,I8H,WG,a2,U0P,u42,HD6,x5,KAj,RT6,zTH,kRT,Eg2,OY, Q$m,X2r,gP,ZD3,w2m,D7,yJT,vE6,dTR,Pcr,AJc,Gl,T$2,lz2,M8U,nEU,SEU,sH6,b1,FX,jh,eh,me,BG,qk,rP,L$m,o2,$5,t86,h9,xTr,CB,OyP,gEU,F$R,DTm,cJP,GTT,byP,I2,pB,UY,jHc,fB,i1,u1,HG,XX,Nk,rJ2,ei3,k5,qER,EY,B$R,zl,R2,mTd,KB,Z7,oEc,Ji,wP,Cc6,hir,TA,lp,nx,UTU,M8,VT,fzd,Lx,Iz2,Hyx,Xtx,N$U,a8,xv,Ow,Rix,gi,Dn,cr,GA,K$H,bp,Fe,j5,zid,kT2,e5,EEP,iDT,ZyT,wt2,JtH,yt6,dm6,QH6,PMH,laT,Br,ri,nFT,smR,Yzj,Sz3,LXr,Cx,o8,tSm,VS6,Okx,xmm,Dmd,I8,ctP,hi,Uw,GL3,fx,Xe,N8,bkc,FXm,Zn,jm6,JZ,ePj,mmx,n$,BKd,rtx,sa,$mv,oFP,UmR,CMR,L$,tZ, WB,xK,Oa,XaT,g7,Df,cB,RPc,FG,KXP,zPx,jp,EF2,m8,BB,qS,r7,Qm3,$K,C$,hZ,IY,p$,Zk2,waT,Jov,f$,iq,uq,HB,XG,NS,yo3,v1T,da3,Pe3,Ao3,TR3,RY,lJm,w7,MQU,n1P,sJ6,JR,v$,dN,P$,lS,MP,ns,Sk3,V4,Ls,tR,VQP,LaR,W$,tQc,WaU,xV,bbP,Fa3,jJP,Ov,eL6,max,ror,D5,o1H,$ar,Cex,IJx,pQH,bS,Fa,Ua6,jm,em,mo,B$,qP,rN,$V,oG,Cs,hR,IG,ps,iS,uS,fJx,ibx,uCT,Xa,RG,HbT,Ev,Q4,Z5,wN,JN,v0,dh,Kam,P0,AN,To,kDj,zLP,XQR,nX,M5,wQr,sL,OL,W0,gh,DZ,y93,Go,A9T,dk3,P1R,l7r,SYU,Mhd,s2U,YYr,J92,Fq,bQ,Lex,e3,mv,B0,th3,hN,Wev,I7,pX,UL,iQ,a73,H0,Xq,xk3, N5,R7,g56,kU,Q2,ZZ,wh,JX,yn,v1,d3,P1,AX,c93,TW,nR,MW,bBR,mk6,j2P,epP,BPT,qYT,$k2,o5U,r9T,hpT,S$,Vn,W1,I7m,pGv,tX,a4,f7R,iBT,NPm,XGx,Du,c1,GW,b$,FM,Ked,zpc,o4,CR,kl2,E5x,Q2c,fR,i$,u$,ZBH,wGv,yi3,d8c,R4,Ppv,kD,KR,Zu,w3,yz,Air,Mt,nU,sq,YJ,Vz,LU,WN,s8r,Ywj,xJ,Sw6,V56,gS,L5T,t5j,Dm,cN,W5v,anj,Ox2,jO,D8m,cix,b9,GAT,bxT,j8m,F5c,qt,gvU,m83,Bir,IO,CU,qw3,ri2,pU,Uq,$8R,ov3,u9,Cp3,hlc,Ind,prx,KU,U8P,fnH,ixr,ued,Hxr,Xrd,NiT,Rlc,kJ,K5x,Qz,kAr,Evd,Q8R,ZxH,wrT,Zm,Pj,yZ6,Pq6,Ap,AZP,lfm,JZr,Mpd,nKj,sYx,vK2,dS3,wS, Jp,dl,T72,vj,yD,Yax,Sa3,Vpd,L8m,tp2,W8r,DSj,af3,sI,YW,VD,b$d,exR,jYv,SK,Wj,mSj,OI,B72,rZ6,bo,qax,i$T,$Sd,ffx,mW,uG2,N7T,Bj,eK,H$6,XBU,RxH,rl,zxT,kYH,EKd,QY3,Z$c,wBR,JRv,K8U,vVm,dPR,PSm,TNd,AR3,Mmd,hp,nVr,IF,p0,UI,sGc,Yv3,uo,Hj,Vm3,SvP,XL,LoT,Wo6,xPm,a5r,Osc,cR2,gV6,yw,MZ,lD,Gq3,vU,nc,sO,YR,S9,bs3,Lc,jGP,aT,WU,OO,gb,Dx,cU,eyH,Ga,FQ,mPm,e9,BU,qZ,BN2,qvd,rRc,$Pr,rb,oT,oVm,Cc,h4,IT,hyc,pc,UO,I5m,iD,XQ,HU,uD,NZ,RT,f5R,Ryc,zyv,NNU,X$m,Kox,kR,Zx,Zsr,kq3,EV2,QGP,UPP,lZc,MF,Thc,s7r,ANd,za,nT,vg,Tm,M3R,Jm, uax,isP,Hs6,Qw,PQr,VL,Wvr,LT,x5r,OXm,gUr,Wg,D5x,cN2,Go3,FvR,j7H,ON,m5H,g5,Bh6,qLU,$5r,oUH,CQd,cg,hCR,p02,Gm,U5P,bF,Ft,PN,Nhv,EUT,r5,ZX6,yX3,o5,dW3,P$d,AXR,R5,NF,T36,Hg,F8x,iF,Xt,uF,CT,Jl,w5,vC,PC,M$P,Al,l7,MK,nDH,s43,YH,SKd,V$H,LNd,tl,t$2,WNx,aux,xWj,ORx,gDR,DW2,WC,cXd,ax,Ox,GW2,bRU,FNR,j4P,eJ6,gD,De,mWH,B3R,qKU,rXd,$Wv,oD2,C$U,F9,jV,eV,hJ3,mt,Iud,qK,UW6,p1j,$H,ox,Cf,hl,fum,Ix,pf,iRP,uMP,Ux,ff,RJd,HRr,N3d,X1j,i7,u7,HC,KN3,zJ2,kWv,X9,Q4r,JWj,w1T,NK,Rx,Kf,z_,kH,QK,Ze,wD,JF,yh,vc,yW3,vJd,dtv,dm,Pc,AF, TS,Mu,s0,TSU,AW6,Sg,lmx,Vh,La,tF,Wc,aP,gm,DQ,cc,GS,bL,FS,jg,eg,sO3,mP,Bc,qu,YqH,VOr,Ca,Lqd,hF,IP,amr,xt3,OU6,Dtd,GCm,Hc,bUx,Nu,XS,edT,mtR,BSv,Ka,zS,rWT,E0,Qh,ZQ,wm,oJx,JI,yd,v4,C9R,dQ,$t3,P4,AI,Imj,hdv,Te,lx,MJ,nr,Yu,Ut3,fmR,Vd,Lr,W4,a6,iU3,tI,XNc,NS3,Rd2,Kqr,zdx,kCR,EJ3,OV,xu,HUc,wNm,gQ,yp2,vWv,Fh,dD2,c4,Ge,Po6,jq,Tlc,MKH,eq,md,nWm,B4,YIv,qJ,a6U,tK3,SIP,LWm,VKr,$u,o6,Cr,hI,I6,pr,UV,ix,O0c,cp3,Xh,rqP,NJ,G0H,FWP,Kr,Qd,ze,EV,ku,mD6,egv,jF3,Blv,ZR,qIU,Coc,wQ,yA,I6P,v9,dZ,P9,AV,pjP,UDm,Tp,lr,MH,f66,i02, si,Lu,tV,W9,aX,xj,Oi,gZ,DT,c9,Gp,br,Fb,j0,uLm,H0c,e0,mH,B9,qH,rZ,oX,XjR,Nl6,NH,kj,zgm,k0H,Ei,QA,dv,PA,QFU,lE,Z0U,wj3,sp,J4r,vRU,y4m,dZv,PDj,A4R,Tbj,lxH,M92,sT2,nR3,YOR,L_j,W_d,V9c,axH,xZH,gR2,SG,VR,c4x,DZd,Lp,tS,WA,bcT,ap,xI,Op,jTT,enc,gv,F_x,D1,qOj,cA,GP,bE,F0,jG,eG,mL,BA,qE,rv,$I,op,Cp,hS,Ip,pp,Up,fp,iE,uE,HA,X0,NE,Rp,Kp,zP,kI,Ep,QR,Z1,wv,Jh,y$,vx,dH,Px,Ah,T4,lG,Mz,nA,se,Yf,SF,V$,LA,th,Wx,ah,xf,Oe,gH,Do,cx,G4,bG,Fo,jF,eF,mn,Bx,qz,rH,$f,oh,CA,hh,Ih,pA,Ue,iG,uG,$Z3,Hx,Q,Xo,fA,Nz,Rh,KA,CDr,kf,Ixm, z4,pUH,Q$,UZd,wH,Ee,Jv,yb,v6,P6,icr,uQ6,Hc3,XUT,Vb,Lt,nt,tv,Rnc,K_m,zn3,kac,fx6,ERT,dF,QT6,Zcr,aw,c6,x8,TI,wU3,Av,W6,OA,GI,ymj,lI,MA,Dd,gF,vej,bI,Fz,jb,eb,dFH,m7,B6,qA,rF,$8,PF6,Am3,lY6,MvT,hv,Iw,s5x,pt,LUr,WUP,xFR,OT2,ft,DFR,cm2,Rw,GmH,Kt,zI,k8,EA,Qb,Zd,bTU,j5j,ev3,FUH,mFr,B5T,vI,da,AL,l4,Mg,n4,qNP,sQ,rm3,YM,SJ,PI,tL,WI,ab,xM,$Fm,L4,CFP,OQ,hvr,IYc,D0,pgd,cI,Gf,UF6,fY6,b4,iTR,utm,FT,HTP,Xg6,N5d,RvP,jJ,eJ,KUd,zvm,mK,BI,qg,kmH,ra,$M,ob,C4,Eec,hL,Ib,Q5r,p4,ZTx,UQ,wg3,Jld,ylc,vH2,dK2,P7U,f4,AlP,TDv,leT, i4,MV6,u4,nHR,HI,sxr,XT,Yxr,Sxj,Ng,EQ,VV6,QY,Z0,wa,JT,LtU,yS,vz,df,tV3,Wtr,AT,Tt,xKv,lU,Of3,gH3,ae6,DKH,clH,G_r,nm,bfR,sy,SA,VS,Ft6,Lm,tT,ac,jxT,x6,Oy,eI3,D9,bU,cz,m3,Bz,mK3,qo,BDH,$6,oc,Cm,qx6,Ic,rlm,Uy,fm,iU,jA,uU,Hz,No,$Km,Rc,Km,zt,oHP,k6,Ey,QS,Z9,wf,J8,vd,dj,Pd,A8,C73,hIR,IeU,ne,TK,sZ,Yz,pC2,UKR,fe2,S1,VV,Le,ifd,u9x,M_,HfR,XCT,t8,NDT,Wd,a0,OZ,gj,Dq,cd,GK,Fg,j1,mC,Bd,q_,rj,e1,zIj,k_c,o0,Ce,h8,EH6,pe,ZfU,UZ,fe,wCc,ih,Hd,N_,JFP,Xg,R0,Ke,zK,yFP,QV,duR,PLr,AFP,wj,Zq,Tmr,lQ6,Mg3,J$,sPm,I0,nZ6,Y0x,y_, S0U,vS,Vgj,dc,LPP,tg6,WPd,aQT,xuj,PS,gZr,Oa3,A$,MI,Du6,nz,cFP,so,GSU,baT,YG,FPP,jPd,ek3,mud,So,BmH,V_,rF3,t$,WS,oZ6,$u6,CLj,hkm,IQv,xG,Oo,DW,pcr,Uu6,fQ6,iar,uS3,HaR,Xc3,Nm3,RkP,KPU,Gv,bv,zkx,kSH,Fi,jo,EZH,eo,m1,qI,QPT,rc,$G,oq,Zar,Cz,wcd,h$,JI2,Iq,yIr,vu3,pz,dJx,PxT,AI3,Uo,fz,iv,uv,HS,TQ3,lRd,Xi,NI,Rq,Mq3,Kz,zv,kG,Eo,Q_,nuv,s6m,ZW,wc,YVT,Je,y9,vn,de,T5H,SVv,Vq3,Pn,LdR,tq3,Wdc,Ae,Tu,lj,M2,nO,sj,Y4,Sl,V9,LO,te,aRT,xJ2,Bn,q2,gud,re,Uj,oo,uj,j6R,rIv,eK3,$Jc,Cx3,hKr,oum,IRv,p4c,UJj,JB,uh6,NQc,X4P,Kdm, zK2,keR,Pu,AB,Q6T,ZrT,vjU,Tk,dHH,w4r,lH,MG,nG,s$,AV2,M0v,TZH,YiH,xH3,aTm,Si6,Our,SU,LHr,V0x,cVr,FHU,buH,BZ6,jXd,VF,LG,Cr2,aR,hN3,Hu2,ubc,iu2,fT3,p9R,RN2,NZc,UH3,QXT,EjP,Zu3,cu,yS6,w9H,JSr,IT3,vI2,dEm,xL,g6,zN2,KHT,kpj,PE3,O$,X9x,TvR,MGT,spx,SpH,tG3,WLr,xEU,Opj,DER,gIm,jpc,GP3,cSm,esH,qpd,rS6,$E3,oIR,oR,vu,I1c,CE3,IR,f1T,fG,u03,Hpc,ipr,iH,XA3,uH,Hu,wF,XP,irx,NG,RR,KG,Nvv,RsR,zk,KLP,zsv,kPr,kL,E$,QF,ZU,w6,JP,yv,vR,dU,EIU,Qpx,PR,Zp3,AP,lv,TO,lY,yhc,wAj,M3,vf3,dzc,PGR,nY,Jhr,s8,AhH,Yx,THv,loH,RKU,UEU, MFR,SW,JL,Ct,Gk,nfR,shP,LY,ojU,tB,Yec,CG,hB,FP,bH,YL,eU,VG6,a1x,jU,qiR,mEU,Sev,gjv,t0T,tP,pA3,d6,Lnj,VFT,Prc,LLm,tFR,Bv3,r6,rVU,$H3,Gp2,YpU,nIx,sXU,lTH,yV3,JVU,Eu3,ASR,WHT,bp3,eN3,mHv,Bu,qG,mV,FLx,l1m,aox,WnU,WR,ak,xx,O8,gU,DD,xzr,bY,F1,jW,mB,BR,OAH,eW,q3,rU,gfP,$x,ok,CY,Ik,chc,G4T,pY,U8,fY,iY,uY,HR,X1,N3,ecH,KY,mz2,Rk,BH6,FnP,jh3,qej,zO,kx,rh3,$zm,E8,ofT,dS,hc2,CG2,pxj,foc,iAU,UzR,Xx3,NHd,zc3,EfU,QhU,k4m,PW,TE,Ax,ZA6,wxP,yvT,JvP,vW,v8P,dA6,PId,AvH,dk,n8m,swj,YAv,Mbx,ld2,TFr,SAv,Vb6,Rcc,L7c,Kn3,tbP, W7x,g8x,adv,xAc,Otj,GId,DAv,cv6,btT,F7j,M9,mAT,jwH,BF3,eEj,qA3,rv6,$A3,o8R,CIP,hET,Idm,p63,UA6,fd2,itR,uzR,nC,X63,NFx,REc,Htx,K7j,kI3,Yi,Sn,E82,Qwj,Vk,LC,ZtP,w63,JLU,yLv,WW,vMT,xi,Os,P43,ALd,TaR,nMU,Dp,bk,jn,sbr,en,mD,BW,LKx,WKU,tJT,xgP,eSH,gMR,pC,rk,a0U,VJj,SQ3,YQH,Iz,$i,hx,HW,XK,qQH,N9,Rz,uk,C4U,rLU,$gd,hSv,KC,zE,pIm,Es,Qk,Zp,wk,Jk,yU,vJ,Ugm,f03,dy,PJ,Tg,uTc,H43,Ak,XIP,KK3,zSm,lb,kfU,s7,EM3,Ys,VU,QbU,S7,LS,Z4R,WJ,JTR,yTm,xs,O7,bb,do2,DI,Ff,e7,PUc,BJ,Gg,j7,ATP,qx,Tfd,ry,l9j,gy,cJ,v6T,ms,$s,MA3,n66, ou,scH,CS,hk,Iu,pS,Yyj,fS,U7,ib,ub,Syr,VAT,HJ,Xf,Nx,Ru,KS,L3R,zg,ks,tAd,W3P,E7,QU,ZI,xoT,a9r,wy,Omm,g6x,Dom,JA,cTm,Gtj,bm6,F32,jcc,yp,vi,dn,Pi,eQH,mod,TB,Bfm,ll,Ms,qyH,rTH,nL,$o3,o6U,pz6,Uoj,CUm,hQR,I9m,Y$,SR,Vp,LL,f9c,imr,uk6,HmT,Wi,RQx,aU,zQT,E6c,ktx,ci,D2,Zm6,wzr,J8H,y8U,GB,vzR,Fl,jR,d_3,A8x,Tjd,mO,$$,s0r,FKd,oz,SZU,V1x,LCU,t1x,WCv,q9,Bi,hA,IU,Oej,gz3,D_U,pL,FCj,c8T,GK3,eFx,m_c,UG,Bjx,j0R,qZ3,fL,il,ul,r83,$_3,Hi,Xl,oz3,Ns,Chv,RU,oU,EG,hFH,jbm,O4d,Qp,Z2,JD,yJ,vl,d4,Pl,wn,ln,pdU,no,fqU,sC,ug3,iej, U_R,Hex,Xdm,Nj3,Lo,RF3,KCv,kKR,tD,Baj,Wl,Q0T,wdv,Us,J$x,y$H,CC,Dgd,Gfx,b43,Ezc,xO,vGx,dIR,OC,Pv3,DK,cl,G3,bn,FA,A$j,jD,eD,Tcc,lW3,ml,Bl,qe,r4,$O,oK,nGT,Mo3,Co,sqx,SoT,hD,VoT,Yod,vT,Jw,dE,Aw,Tx,SD,L12,DIv,Y8,y0,sr,F1U,eUx,XA,tw,Hl,WT,Or,w4,gE,$I3,D_,cT,oGU,CvR,hUj,IWv,Gx,pST,UIP,bB,fW3,Nc3,XS6,izT,Hzc,uiH,Fw,RUc,jc,K1x,zU6,EGd,Qq3,Zzj,wSx,Pjx,rE,$o,lcr,oj,Ch,Ml6,YjP,Sjx,Vlx,LMU,hw,Ij,ph,Ur,tlv,acd,x2U,zx,ezU,ce2,GuP,BeT,ko,qj6,$2c,reT,o4T,Q0,JH,Cjm,Er,y1,vh,hzH,pnR,iOv,T7,sP,tH,x9,JB3,yBH,G7,ch,FV, js,vLT,AB2,PHH,T6v,mm,es,lUr,nLc,sRx,S$6,rC,Y$d,VUT,LV6,o9,CF,WVr,AH,qf,RzU,Icc,E42,iV,bV,MUj,z7,Wh,EP,Q1,mGP,q$m,B66,a9,OP,rBr,wC,JQ,oLd,y7,vp,CH6,gC,dx,dG3,AQ,DGT,lf,HOr,urH,U2j,Mr,IUU,Yt,RB2,N6U,zB3,kkU,L5,Wp,as,tQ,OH,gx,EL6,DF,ZGP,cp,JP3,F$,wuR,jM,eM,PYx,mx,lDR,MWU,rx,nxj,S8j,Nr,K5,z9,Q7,VWR,ZF,wx,dw,Py,A_,Td,LBx,l_,Mq,x32,n8,sm,OYH,gx3,Yq,D3v,cP2,GO2,bYr,Sk,VP,FBx,jk6,eOr,av,xq,Dg,cy,m3U,BUr,Gd,b_,FY,jk,q8d,rP6,ek,$3R,ox6,my,hO3,CYc,ID6,By,U33,pR3,fDU,qq,rw,iYP,HYR,XRT,$q,ov,C8,NUx,KB3,h_,zOU, p8,kOj,Exc,Iv,Um,f8,i_,wR3,yx6,Qk2,Jx2,vir,ZYd,d93,Pkd,u_,Axx,lpm,szT,SsP,Ys3,Em,kq,ww,LDP,Jr,yl,vF,WDd,dB,apR,tnr,PF,gi3,Ar,TV,D9U,lJ,cx3,D2P,joc,bCj,GEm,jzP,FD2,emT,Md,ng,sl,YB,m9R,rxm,Lg,tr,WF,oiR,$9H,Sz,CkR,hmT,Ipd,U9T,aN,zmr,ykr,cF,vsH,XY,Pbx,Ak3,TyU,lI2,M73,bJ,ns2,FE,jz,ez,sud,rB,Y7j,S7H,$B,oN,V7T,Ls6,t7T,WsT,aIP,Cg,qd,xxH,OSU,hr,DxT,ckH,Gg3,IN,bST,Fs6,juT,e2R,mxH,Byc,q72,rkH,$x6,osc,pg,h2T,Ul,pJ2,II2,fI3,UxH,uf3,HF,Cb3,fg,XE,HSd,Nd,RN,Kg,zV,kB,XJc,El,Nyv,Zl,EsP,wJR,JAU,yAv,v$6,yf,dsH,ZS2,kg2, Pl2,wB,AAT,l2H,Ql,J0,Ks2,z23,v8,MR3,n$3,QuH,R2U,sUT,P8,YGm,A0,Tj,SGv,li,tR2,VRH,LOx,My,WO3,nQ,sT,Y2,Su,a2m,xs6,OL3,Vf,DsH,cAx,LQ,GB2,t0,W8,bLT,FO3,jUx,eqv,msP,Bnm,Clv,rA2,Mn6,x2,I2P,piP,$sd,o$x,qGx,DX,HLU,gM,OT,hq6,Nnc,uld,iLR,f2H,UsT,Gj,Rqm,Hy,bi,Fj,ju,KOP,eu,zqU,mr,kB6,Zg,E$3,B8,Rv,zd,TkU,$2,CQ,wim,JDx,h0,pQ,o3,rM,UT,qy,QUP,ZLr,fQ,yD3,vOm,uJ,iSc,Nq,ii,deR,I3,Pnv,ADd,T4m,lKr,ui,H8,MDH,nO3,sKc,YCU,SCx,Tnj,Dl,Ny,R3,Xj,Llm,x9H,OC3,KQ,tD3,Wl3,aKx,xer,zj,Ood,k2,gOd,cDU,ET,G3d,bo6,wM,jKv,ZX,dL,mex,eGR, $ex,qCr,oOR,Cnj,B4x,rDP,hGU,P_,IKm,UeH,plj,Aj,gsT,fKj,io3,uA3,HoT,XlU,N46,RGx,Klc,zGP,k3r,EO6,QKR,Zo6,lT,ywT,voH,Jwj,dB6,PBT,Awx,TEm,M$,Mcd,nor,s4,sjT,Yb,Sw,Yrr,V8,SrT,Vcv,LP,Lkd,tcc,Wk3,tj,qsx,W_,Ohr,aL,xB6,go6,DBj,BkU,Vl,cwP,Gx3,IL,qrU,BE2,uT,rwd,mB2,hMj,I_U,pT6,UB2,f_R,ihd,uw3,HhU,XTm,NEr,RM2,Kkc,zMm,N$,xb,Eoj,QjP,H_,wTR,kx6,X3,JHr,yHr,PVU,lL6,AHT,KP,Msd,zh,v9m,RL,kb,dfm,Q8,YP3,Vsd,SP3,Lm3,s9d,ts3,WmT,aLT,xfT,OFd,DfT,cHH,g9c,bFH,j9d,FmT,qPj,mfT,G7x,eRP,rHc,BCv,$fc,o9H,CVP,ph3,ILj,hRH,Zb,UfP,iFx, uVr,HFP,XhT,NC3,RRr,iJ,Kmv,zRm,k7r,Q92,E92,ZF3,JQv,yQv,whx,E4,Jj,dr3,Pfm,AQc,SHj,MMr,ntm,ssd,VMR,tM6,Xic,wL,lFH,Tx3,Lxj,QP,YHj,a3,K8,TCr,gtH,O53,DrP,cQ6,jsP,eXP,fL3,v_,y8,aF2,mrH,xr3,Bxx,Qf,qHv,De2,n9U,Wx6,FlR,dI,PM,$r3,Aa,ot3,Cfv,hXU,IFU,ppT,fFj,HQU,Kr2,X8m,R1P,z13,lz,ZQ3,E2x,Q3v,yjH,vbc,d$T,MR,PTR,Tc,Aj3,Jjm,kj3,ni,TLU,NMx,lbT,sh,nbR,Mw6,Y4d,S4d,Vw3,sL2,YX,WQv,tw3,OPm,x$P,abT,gbx,D$r,Sr,cjR,Ghj,FQ2,jLH,bPT,ehj,$$m,BLP,q4r,rjH,obR,CTU,hh2,p_r,Ib3,U$x,fbU,Vo,u3R,HP2,NL3,X_T,Rh3,iPT,KQm,khT,Ebm,ZPH, Jac,QLc,yaH,vXH,dRH,zhc,PzT,w_3,ta,Aam,TI6,lMx,Mrj,nXd,syr,Yhj,VrT,trd,WEj,aMx,xRT,OiR,WM,gXx,ay,ca3,Gcd,DM,FEP,cM,e93,mRr,BIH,qhT,$Rc,rax,b53,h9m,G9U,Gc,IMm,oX6,CzP,pMR,jr,fMv,URP,iiR,uUj,HiU,R93,XMc,kc6,er,NIH,EX6,mE,y16,Qyx,qR,rI,vPH,BM,dX3,$X,T9U,A1v,wMT,J1P,lhr,M_U,nPx,ZiR,s_m,oy,YFx,PPv,jy2,FU,V_m,Luv,t_6,WuP,ahm,xXd,OZH,gPR,DXm,c1d,bZU,Fu3,j_x,G6m,eVx,mX2,B92,qFj,r1r,$Xv,hVd,CPU,oPH,IhT,Iy,KtR,pex,UXP,pi,fhP,iZR,fi,XeH,N9d,iz,KuH,zVj,RVT,HZ6,uz,Uh,usT,NR,HM,k6U,Ry,XU,wex,vYH,PdP,A2r,lCx,Q_v, d6r,MjP,ZZr,nYd,sac,Y2T,Qo,Ki,L63,tjx,S22,kX,aCH,x6U,y22,J2U,W63,O1c,TAv,Vj3,EPd,ZM,wI,J1,gYP,yi,jav,Gy3,e5d,b12,c2x,m6U,D6R,r2R,BAx,ve,$66,CdH,IC6,pm6,i1c,T6,uxd,U6d,Eh,NAm,R5H,YP,Zh3,d9,K66,z5m,EYv,kyx,QaR,Xm3,MX,Z1H,wmr,JY2,vlr,yYv,vtd,lP,d1m,AYR,PCm,lO3,T_d,h5H,nlv,MEU,nZ,Pe,stR,Vi,YMR,SMT,VEm,LRm,tER,S_,fCU,rQx,zc,WRR,LZ,aOv,x1x,OEr,gl6,D13,t1,We,bEv,FRj,jtj,cYj,G1T,a_,qM3,m1x,B_d,rYr,xP,$1d,olU,CC3,OF,hDv,p7m,U1j,fOm,g9,IOU,Dh,ce,iEd,udP,Fs,G6,bP,HEH,j_,X7T,N_6,RDH,zDP,KRd,$P,Elc,Qt2,k1c,ZEv, o_,w7r,CZ,JKH,h1,yKd,vrT,AKr,ML2,dnT,TdH,I_,Pud,lBr,nrd,sDc,Y9T,S92,UF,VL3,uP,fZ,LfR,He,Xs,WfT,aBT,R_,KZ,xnH,NX,OqR,z6,Dn3,grd,EF,Qi,Zh,bqx,cK3,Gbc,w9,Ffd,Bd3,eWU,jDm,mn6,J2,rKr,hW2,IBj,vm,pwd,yM,$n2,orr,iq3,dA,Pm,uu2,Hq6,Xwx,NdT,RWr,ld,kb3,Erc,QDT,M6,zWv,J6r,Ty,n1,s2,Kf3,VM,Wm,vS3,PA3,TqP,dlP,L1,t2,A6H,lt2,aa,MyR,nSr,sBR,xY,O2,YJ2,SJP,Vyx,LgU,tym,Wgm,at3,gSU,xl3,Dlx,c6P,Fg2,jBc,oS6,q6,Itj,ftP,Uld,psr,r6U,$lH,e$R,Bqr,CA2,rA,$Y,uOm,Is,yPH,Hw2,C1,Ia,Xsj,Nqd,mlj,h$T,KgR,z$T,kFU,p1,N6,QBr,Zw2,wsc,Ra, Jd2,v_v,yd2,dM3,K1,zy,PtT,ls3,MC2,QM,T1P,n_H,snd,Adx,JY,YBj,SBm,wA,VCm,Lc3,tC6,Wcr,xMx,asP,DMr,cdR,OJm,bJH,Fc2,g_6,d_,P7,jnr,B1m,AY,mMc,e4U,qBc,$M2,rdr,o_6,T1,CtH,h4H,Isr,pEd,UMU,fsU,iJd,HJP,u82,XE2,N12,R4j,Kc6,z4U,E_x,M1,lC,nE,Qn6,ZJj,krP,dpH,P3v,A7R,MY3,l3m,Ttc,nhx,sir,sM,Yl,YDP,SDT,VYR,LId,WI3,a3U,Vu,xpU,SE,tY,tYc,W7,O23,ghP,Dp2,c7r,GZR,at,b2c,FIv,mpH,xl,Btj,ew3,OM,g_,DO,r76,$pR,oh2,qDT,hwU,C3r,I3r,c7,p5U,UpP,i26,X56,f3U,uJr,G1,Nt3,KIv,zw3,Eh3,Qim,bC,Fd,Z2U,Rwj,yMT,JMm,w5T,jE,eE,dvj,vCT,mR,B7, q1,PWv,r_,AMR,TWm,lPd,MNj,$l,nCU,ot,sW2,CE,hY,It,YRU,pE,SR3,UM,fE,Lzj,aPc,xvx,VNP,ONx,cMv,GXx,bNx,Dvc,gCc,jWT,Fzr,e_U,qRr,H7,$vv,rMv,mvH,BWH,oCm,CWc,Xd,N1,h_R,IPm,pXr,Uvm,fP3,iNR,HNP,XX6,ZNx,Kzd,z_3,NW6,JGR,Qu,w_,AG6,Toc,vw,dd,l4H,yGd,EM,Tb,AK,JK,nAR,sfm,lu,Sc3,LwP,Vi2,Mn,ya,kl,Ycv,Pw,vAH,Mij,Wwv,Rt,nq,a4H,xOc,ZO,dOH,s9,Yr,OK3,SL,Va,Lq,gAj,DOj,G$H,bKP,cG3,tK,Fwx,Ww,aD,jfU,eH6,mO3,Bo3,qcx,rGm,oA3,$OP,O9,xr,C82,I4T,hHT,gd,DB,pOj,f4m,iKx,cw,UOc,uRr,HKc,Nod,Gb,XO2,RHc,KwU,zHc,Fu,jL,EAd,k$2,Qfv,eL,mf, wOP,ZKP,Jzd,vam,yz2,dCd,qn,P23,AzT,$r,T86,MHP,lj6,naH,srm,Yu6,SuR,LYm,tH6,WY6,VHR,aj3,xCR,O6R,gam,DC6,czR,Gi3,b6P,FYd,ID,jrm,eAP,mCj,quH,C2v,$Cc,B8j,fq,rzU,U9,oa3,iu,Ijc,hAj,uu,UC3,fj6,i66,m$T,RD,Y8m,Xu,Kq,Nn,kr,uH3,E9,KYR,zAm,kiU,Ea3,Qr6,Z6H,AUm,yE,TTr,PZ6,liP,vs,Ps,A6,nTU,MIR,wKH,TF,Y5P,S5m,sZR,Ljx,lA,tI3,WjP,ai3,dq,OW3,xL3,Ml,nw,vTP,wd,gTd,DL2,cU2,GUv,JU3,yU2,J6,bWP,jZH,efc,mLm,BT3,FjH,sJ,rUR,hfd,Sy,Ii2,pYP,oTH,Lw,ULm,fiR,q5v,iWT,CZ6,um3,t6,VE,HW3,NT3,XY6,YS,Kjj,Ws,H1d,zfc,QZ6,ETH,wYP,J52,ZWT, xS,aB,v0v,dY3,Pmx,A5R,Lix,sSU,YX3,Mex,lwP,Dt,xY2,WiP,O7v,g06,gq,GF,bA,b7j,GM3,c5P,jy,VeU,ql,jSP,Bs,FO,mYU,BYj,qXT,teP,oB,h6,r5R,SXU,FiH,ey,$YH,cs,o0c,Cmj,h7m,UJ,fw,e72,IwR,pb3,iA,uA,UY6,mg,awT,fwH,i7d,Cw,uBc,rq,H7H,$S,bf,Xb6,R7x,Hs,XO,KiH,z7x,kM3,pw,IB,E06,kUc,QSR,n0R,Z7x,wbT,JE2,yEm,Nl,RB,Pyd,l$x,ncH,d46,a$j,x4H,OvH,gc3,D4c,cEr,G56,FZv,bvH,Kw,zF,kS,jQ2,e0d,m4P,Tv,Bzc,EJ,q6R,QE,rET,Zt,wq,$4j,Mo,Jd,ow,ocx,pG,hsU,CyP,Wu,h0P,kz,EZ,I$U,Vv,pvj,U4R,U$,HrH,f$r,ivv,uyj,yC,Xv3,Nzr,vE,PE,Ad,R0j,k5P,Ec3,Tr, QQc,KZU,wv6,z0j,Zv6,Jf2,yf3,vw3,dQP,lt,AfT,oe3,Tf,Lz,T2r,lH6,aq,P6T,VY,Mfj,nwr,s1r,MM,$z,SW6,Vfc,nJ,sB,Lh3,Y_,SC,d1,tfj,WhP,vZ3,VC,LJ,aHx,td,WE,xQU,an,OMH,x_,OB,gwx,DQ3,q02,g1,cfd,bMr,Gwx,Ds,cE,Fhj,Gr,j1c,eZ3,mQT,B2H,qWx,rfR,owH,F8,$QR,C6x,hZr,IHc,pHr,u53,UQj,fH2,iMR,XHU,RZ6,Khm,zZH,N2T,jC,kwU,Ew2,Q1U,ZMH,wHd,mc,JcQ,BE,qM,r1,ycy,vmO,PRQ,Acq,Trn,lvn,nm_,Mx0,sdO,$_,on,VxQ,YUq,SUC,CJ,LTQ,txq,hd,In,WT_,pJ,avq,UB,xjq,fJ,ut,O3u,HE,X8,gmy,Djy,NM,Rn,ccq,KJ,G2y,b3u,QC,Zs,FTH,jdw,e3V,qUw,Br_,w1,rcy,$jq,omu, fRm,mjH,h3q,Iv_,Ujn,Jc2,Ym;PP=function(J){return function(){return Jc2[J].apply(this,arguments)}}; g.Ac=function(J,y){return Jc2[J]=y}; ycm=function(J){var y=0;return function(){return y=this.length))return this[J]}; EU=function(J){return J?J:km}; Vx2=function(J,y,v){J instanceof String&&(J=String(J));for(var d=J.length-1;d>=0;d--){var P=J[d];if(y.call(v,P,d,J))return{TR:d,UP:P}}return{TR:-1,UP:void 0}}; QH=function(J){return J?J:function(y,v){return Vx2(this,y,v).TR}}; g.yq=function(J,y,v){J=J.split(".");v=v||g.wr;for(var d;J.length&&(d=J.shift());)J.length||y===void 0?v[d]&&v[d]!==Object.prototype[d]?v=v[d]:v=v[d]={}:v[d]=y}; dV=function(J,y){var v=g.vq("CLOSURE_FLAGS");J=v&&v[J];return J!=null?J:y}; g.vq=function(J,y){J=J.split(".");y=y||g.wr;for(var v=0;v2){var d=Array.prototype.slice.call(arguments,2);return function(){var P=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(P,d);return J.apply(y,P)}}return function(){return J.apply(y,arguments)}}; g.Mb=function(J,y,v){g.Mb=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?WT6:avP;return g.Mb.apply(null,arguments)}; g.nH=function(J,y){var v=Array.prototype.slice.call(arguments,1);return function(){var d=v.slice();d.push.apply(d,arguments);return J.apply(this,d)}}; g.Yy=function(){return Date.now()}; SX=function(J){return J}; g.Vq=function(J,y){function v(){} v.prototype=y.prototype;J.au=y.prototype;J.prototype=new v;J.prototype.constructor=J;J.YH=function(d,P,A){for(var T=Array(arguments.length-2),M=2;M=0;--v)v in d&&y.call(void 0,d[v],v,J)}; g.On=function(J,y,v){y=aC(J,y,v);return y<0?null:typeof J==="string"?J.charAt(y):J[y]}; aC=function(J,y,v){for(var d=J.length,P=typeof J==="string"?J.split(""):J,A=0;A=0;d--)if(d in P&&y.call(v,P[d],d,J))return d;return-1}; g.cq=function(J,y){return ccP(J,y)>=0}; G2v=function(J){if(!Array.isArray(J))for(var y=J.length-1;y>=0;y--)delete J[y];J.length=0}; g.bw=function(J,y){y=ccP(J,y);var v;(v=y>=0)&&g.GQ(J,y);return v}; g.GQ=function(J,y){return Array.prototype.splice.call(J,y,1).length==1}; g.m0=function(J,y){y=aC(J,y);y>=0&&g.GQ(J,y)}; b33=function(J,y){var v=0;Djm(J,function(d,P){y.call(void 0,d,P,J)&&g.GQ(J,P)&&v++})}; g.qb=function(J){return Array.prototype.concat.apply([],arguments)}; g.rV=function(J){var y=J.length;if(y>0){for(var v=Array(y),d=0;d>>1),n=void 0;v?n=y.call(void 0,J[M],M,J):n=y(d,J[M]);n>0?P=M+1:(A=M,T=!n)}return T?P:-P-1}; g.KH=function(J,y){J.sort(y||uw)}; e3r=function(J,y){var v=uw;g.KH(J,function(d,P){return v(y(d),y(P))})}; g.zQ=function(J,y,v){if(!g.Pq(J)||!g.Pq(y)||J.length!=y.length)return!1;var d=J.length;v=v||mj3;for(var P=0;Py?1:J0&&(y[P]=d)},J); return y}; UjU=function(J){J=e4(J);var y=[];g.Js(J,function(v,d){d in Object.prototype||typeof v!="undefined"&&y.push([d,":",v].join(""))}); return y}; i3P=function(J){b0(J,"od",fvc);b0(J,"opac",mp).C=!0;b0(J,"sbeos",mp).C=!0;b0(J,"prf",mp).C=!0;b0(J,"mwt",mp).C=!0;b0(J,"iogeo",mp)}; BL=function(J,y){return J.lastIndexOf(y,0)==0}; u6T=function(J,y){var v=J.length-y.length;return v>=0&&J.indexOf(y,v)==v}; g.qh=function(J){return/^[\s\xa0]*$/.test(J)}; g.ru=function(J,y){return J.indexOf(y)!=-1}; $N=function(J,y){return g.ru(J.toLowerCase(),y.toLowerCase())}; g.hs=function(J,y){var v=0;J=oM(String(J)).split(".");y=oM(String(y)).split(".");for(var d=Math.max(J.length,y.length),P=0;v==0&&Py?1:0}; g.IM=function(){var J=g.wr.navigator;return J&&(J=J.userAgent)?J:""}; HL=function(J){if(!f_&&!i0||!u0)return!1;for(var y=0;y0:!1}; K_=function(){return RM()?!1:XF("Opera")}; H3d=function(){return RM()?!1:XF("Trident")||XF("MSIE")}; XPc=function(){return RM()?HL("Microsoft Edge"):XF("Edg/")}; zn=function(){return XF("Firefox")||XF("FxiOS")}; Eg=function(){return XF("Safari")&&!(kN()||(RM()?0:XF("Coast"))||K_()||(RM()?0:XF("Edge"))||XPc()||(RM()?HL("Opera"):XF("OPR"))||zn()||XF("Silk")||XF("Android"))}; kN=function(){return RM()?HL("Chromium"):(XF("Chrome")||XF("CriOS"))&&!(RM()?0:XF("Edge"))||XF("Silk")}; Nr6=function(){return XF("Android")&&!(kN()||zn()||K_()||XF("Silk"))}; R32=function(J){var y={};J.forEach(function(v){y[v[0]]=v[1]}); return function(v){return y[v.find(function(d){return d in y})]||""}}; KTj=function(J){var y=g.IM();if(J==="Internet Explorer"){if(H3d())if((J=/rv: *([\d\.]*)/.exec(y))&&J[1])y=J[1];else{J="";var v=/MSIE +([\d\.]+)/.exec(y);if(v&&v[1])if(y=/Trident\/(\d.\d)/.exec(y),v[1]=="7.0")if(y&&y[1])switch(y[1]){case "4.0":J="8.0";break;case "5.0":J="9.0";break;case "6.0":J="10.0";break;case "7.0":J="11.0"}else J="7.0";else J=v[1];y=J}else y="";return y}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");v=[];for(var P;P=d.exec(y);)v.push([P[1],P[2],P[3]||void 0]); y=R32(v);switch(J){case "Opera":if(K_())return y(["Version","Opera"]);if(RM()?HL("Opera"):XF("OPR"))return y(["OPR"]);break;case "Microsoft Edge":if(RM()?0:XF("Edge"))return y(["Edge"]);if(XPc())return y(["Edg"]);break;case "Chromium":if(kN())return y(["Chrome","CriOS","HeadlessChrome"])}return J==="Firefox"&&zn()||J==="Safari"&&Eg()||J==="Android Browser"&&Nr6()||J==="Silk"&&XF("Silk")?(y=v[2])&&y[1]||"":""}; z33=function(J){if(RM()&&J!=="Silk"){var y=u0.brands.find(function(v){return v.brand===J}); if(!y||!y.version)return NaN;y=y.version.split(".")}else{y=KTj(J);if(y==="")return NaN;y=y.split(".")}return y.length===0?NaN:Number(y[0])}; EmR=function(){var J=null;if(!k2U)return J;try{var y=function(v){return v}; J=k2U.createPolicy("goog#html",{createHTML:y,createScript:y,createScriptURL:y})}catch(v){}return J}; wu=function(){ZE===void 0&&(ZE=EmR());return ZE}; Jg=function(J){this.C=J}; vD=function(J){var y=wu();J=y?y.createScriptURL(J):J;return new Jg(J)}; d0=function(J){if(J instanceof Jg)return J.C;throw Error("");}; PD=function(J){this.C=J}; g.Ag=function(J){if(J instanceof PD)return J.C;throw Error("");}; T8=function(J){this.ZO=J}; lX=function(J){return new T8(function(y){return y.substr(0,J.length+1).toLowerCase()===J+":"})}; g.nn=function(J,y){y=y===void 0?QdT:y;a:if(y=y===void 0?QdT:y,!(J instanceof PD)){for(var v=0;v4);P++)y[jP(J[P])]||(v+="\nInner error "+d++ +": ",J[P].stack&&J[P].stack.indexOf(J[P].toString())==0||(v+=typeof J[P]==="string"?J[P]:J[P].message+"\n"),v+=bX(J[P],y));P")!=-1&&(J=J.replace(nyU,">")),J.indexOf('"')!=-1&&(J=J.replace(sC6,""")),J.indexOf("'")!=-1&&(J=J.replace(Yn3,"'")),J.indexOf("\x00")!=-1&&(J=J.replace(SnH,"�")));return J}; g.$p=function(J){return J==null?"":String(J)}; oV=function(J){for(var y=0,v=0;v>>0;return y}; Cn=function(J){var y=Number(J);return y==0&&g.qh(J)?NaN:y}; VXm=function(J){return String(J).replace(/\-([a-z])/g,function(y,v){return v.toUpperCase()})}; L0c=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; tXx=function(J){return J.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(y,v,d){return v+d.toUpperCase()})}; W0v=function(J){var y=1;J=J.split(":");for(var v=[];y>0&&J.length;)v.push(J.shift()),y--;J.length&&v.push(J.join(":"));return v}; hg=function(){return f_||i0?!!u0&&!!u0.platform:!1}; ayP=function(){return hg()?u0.platform==="Android":XF("Android")}; IV=function(){return XF("iPhone")&&!XF("iPod")&&!XF("iPad")}; pn=function(){return IV()||XF("iPad")||XF("iPod")}; US=function(){return hg()?u0.platform==="macOS":XF("Macintosh")}; xbH=function(){return hg()?u0.platform==="Windows":XF("Windows")}; fn=function(J){fn[" "](J);return J}; OHU=function(J,y){try{return fn(J[y]),!0}catch(v){}return!1}; DbH=function(J,y){var v=gyv;return Object.prototype.hasOwnProperty.call(v,J)?v[J]:v[J]=y(J)}; g.iX=function(J){return DbH(J,function(){return g.hs(cOU,J)>=0})}; g.uX=function(J,y,v){return Math.min(Math.max(J,y),v)}; g.HD=function(J,y){J%=y;return J*y<0?J+y:J}; XN=function(J,y,v){return J+v*(y-J)}; g.N7=function(J,y){this.x=J!==void 0?J:0;this.y=y!==void 0?y:0}; RV=function(J,y){return J==y?!0:J&&y?J.x==y.x&&J.y==y.y:!1}; g.Kn=function(J,y){this.width=J;this.height=y}; g.z8=function(J,y){return J==y?!0:J&&y?J.width==y.width&&J.height==y.height:!1}; kp=function(J){return J.width*J.height}; Qt=function(J,y){this.C=J===ES&&y||""}; ZN=function(J){if(J instanceof Vt)return J;J=String(J).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return Ln(J)}; bHc=function(J){return GQ2(J)}; GQ2=function(J){var y=ZN("");return Ln(J.map(function(v){return tg(ZN(v))}).join(tg(y).toString()))}; BVx=function(J){var y;if(!F03.test("div"))throw Error("");if(jC6.indexOf("DIV")!==-1)throw Error("");var v="":(J=bHc(y.map(function(d){return d instanceof Vt?d:ZN(String(d))})),v+=">"+J.toString()+""); return Ln(v)}; eum=function(J){for(var y="",v=Object.keys(J),d=0;d2&&pq3(P,T,d,2);return T}; pq3=function(J,y,v,d){function P(M){M&&y.appendChild(typeof M==="string"?J.createTextNode(M):M)} for(;d0)P(A);else{a:{if(A&&typeof A.length=="number"){if(g.AO(A)){var T=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){T=typeof A.item=="function";break a}}T=!1}g.En(T?g.rV(A):A,P)}}}; g.Lj=function(J){return SZ(document,J)}; SZ=function(J,y){y=String(y);J.contentType==="application/xhtml+xml"&&(y=y.toLowerCase());return J.createElement(y)}; g.tb=function(J){return document.createTextNode(String(J))}; g.WZ=function(J,y){J.appendChild(y)}; g.ag=function(J){for(var y;y=J.firstChild;)J.removeChild(y)}; xk=function(J,y,v){J.insertBefore(y,J.childNodes[v]||null)}; g.O3=function(J){return J&&J.parentNode?J.parentNode.removeChild(J):null}; g.gs=function(J,y){if(!J||!y)return!1;if(J.contains&&y.nodeType==1)return J==y||J.contains(y);if(typeof J.compareDocumentPosition!="undefined")return J==y||!!(J.compareDocumentPosition(y)&16);for(;y&&J!=y;)y=y.parentNode;return y==J}; Jb=function(J){return J.nodeType==9?J:J.ownerDocument||J.document}; g.DG=function(J,y){if("textContent"in J)J.textContent=y;else if(J.nodeType==3)J.data=String(y);else if(J.firstChild&&J.firstChild.nodeType==3){for(;J.lastChild!=J.firstChild;)J.removeChild(J.lastChild);J.firstChild.data=String(y)}else g.ag(J),J.appendChild(Jb(J).createTextNode(String(y)))}; fyx=function(J){return J.tagName=="A"&&J.hasAttribute("href")||J.tagName=="INPUT"||J.tagName=="TEXTAREA"||J.tagName=="SELECT"||J.tagName=="BUTTON"?!J.disabled&&(!J.hasAttribute("tabindex")||UbT(J)):J.hasAttribute("tabindex")&&UbT(J)}; UbT=function(J){J=J.tabIndex;return typeof J==="number"&&J>=0&&J<32768}; jZ=function(J,y,v){if(!y&&!v)return null;var d=y?String(y).toUpperCase():null;return cZ(J,function(P){return(!d||P.nodeName==d)&&(!v||typeof P.className==="string"&&g.cq(P.className.split(/\s+/),v))},!0)}; cZ=function(J,y,v){J&&!v&&(J=J.parentNode);for(v=0;J;){if(y(J))return J;J=J.parentNode;v++}return null}; w0=function(J){this.C=J||g.wr.document||document}; iHc=function(){this.C=this.QS=null}; eZ=function(){}; BZ=function(){if(!m4())throw Error();}; m4=function(){return!(!qi||!qi.performance)}; u_3=function(J){return g.s3?"webkit"+J:J.toLowerCase()}; rs=function(J){return function(){return J}}; g.$k=function(){}; HH2=function(J){var y=y||0;return function(){return J.apply(this,Array.prototype.slice.call(arguments,0,y))}}; og=function(J){var y=!1,v;return function(){y||(v=J(),y=!0);return v}}; Cj=function(J){var y=J;return function(){if(y){var v=y;y=null;v()}}}; Ig=function(J,y,v){var d=0;return function(P){g.wr.clearTimeout(d);var A=arguments;d=g.wr.setTimeout(function(){J.apply(v,A)},y)}}; pj=function(J,y,v,d){this.top=J;this.right=y;this.bottom=v;this.left=d}; U3=function(J){return J.right-J.left}; fj=function(J,y){return J==y?!0:J&&y?J.top==y.top&&J.right==y.right&&J.bottom==y.bottom&&J.left==y.left:!1}; ia=function(J,y,v){y instanceof g.N7?(J.left+=y.x,J.right+=y.x,J.top+=y.y,J.bottom+=y.y):(J.left+=y,J.right+=y,typeof v==="number"&&(J.top+=v,J.bottom+=v));return J}; g.ua=function(J,y,v,d){this.left=J;this.top=y;this.width=v;this.height=d}; HZ=function(J,y){return J==y?!0:J&&y?J.left==y.left&&J.width==y.width&&J.top==y.top&&J.height==y.height:!1}; g.Ni=function(J,y,v){if(typeof y==="string")(y=Xn(J,y))&&(J.style[y]=v);else for(var d in y){v=J;var P=y[d],A=Xn(v,d);A&&(v.style[A]=P)}}; Xn=function(J,y){var v=Xqm[y];if(!v){var d=VXm(y);v=d;J.style[d]===void 0&&(d=(g.s3?"Webkit":Rg?"Moz":null)+tXx(d),J.style[d]!==void 0&&(v=d));Xqm[y]=v}return v}; g.Kj=function(J,y){var v=J.style[VXm(y)];return typeof v!=="undefined"?v:J.style[Xn(J,y)]||""}; zN=function(J,y){var v=Jb(J);return v.defaultView&&v.defaultView.getComputedStyle&&(J=v.defaultView.getComputedStyle(J,null))?J[y]||J.getPropertyValue(y)||"":""}; kk=function(J,y){return zN(J,y)||(J.currentStyle?J.currentStyle[y]:null)||J.style&&J.style[y]}; g.Q6=function(J,y,v){if(y instanceof g.N7){var d=y.x;y=y.y}else d=y,y=v;J.style.left=g.E3(d,!1);J.style.top=g.E3(y,!1)}; ZG=function(J){try{return J.getBoundingClientRect()}catch(y){return{left:0,top:0,right:0,bottom:0}}}; NVv=function(J){var y=Jb(J),v=kk(J,"position"),d=v=="fixed"||v=="absolute";for(J=J.parentNode;J&&J!=y;J=J.parentNode)if(J.nodeType==11&&J.host&&(J=J.host),v=kk(J,"position"),d=d&&v=="static"&&J!=y.documentElement&&J!=y.body,!d&&(J.scrollWidth>J.clientWidth||J.scrollHeight>J.clientHeight||v=="fixed"||v=="absolute"||v=="relative"))return J;return null}; g.ws=function(J){var y=Jb(J),v=new g.N7(0,0);if(J==(y?Jb(y):document).documentElement)return v;J=ZG(J);y=ds(y);y=IyU(y.C);v.x=J.left+y.x;v.y=J.top+y.y;return v}; K0r=function(J,y){var v=new g.N7(0,0),d=Yk(Jb(J));if(!OHU(d,"parent"))return v;do{var P=d==y?g.ws(J):Ru3(J);v.x+=P.x;v.y+=P.y}while(d&&d!=y&&d!=d.parent&&(J=d.frameElement)&&(d=d.parent));return v}; g.J3=function(J,y){J=zuR(J);y=zuR(y);return new g.N7(J.x-y.x,J.y-y.y)}; Ru3=function(J){J=ZG(J);return new g.N7(J.left,J.top)}; zuR=function(J){if(J.nodeType==1)return Ru3(J);J=J.changedTouches?J.changedTouches[0]:J;return new g.N7(J.clientX,J.clientY)}; g.yG=function(J,y,v){if(y instanceof g.Kn)v=y.height,y=y.width;else if(v==void 0)throw Error("missing height argument");J.style.width=g.E3(y,!0);J.style.height=g.E3(v,!0)}; g.E3=function(J,y){typeof J=="number"&&(J=(y?Math.round(J):J)+"px");return J}; g.vf=function(J){var y=kQU;if(kk(J,"display")!="none")return y(J);var v=J.style,d=v.display,P=v.visibility,A=v.position;v.visibility="hidden";v.position="absolute";v.display="inline";J=y(J);v.display=d;v.position=A;v.visibility=P;return J}; kQU=function(J){var y=J.offsetWidth,v=J.offsetHeight,d=g.s3&&!y&&!v;return(y===void 0||d)&&J.getBoundingClientRect?(J=ZG(J),new g.Kn(J.right-J.left,J.bottom-J.top)):new g.Kn(y,v)}; g.dp=function(J,y){J.style.display=y?"":"none"}; Pf=function(J){return J?J.passive&&Eym()?J:J.capture||!1:!1}; A3=function(J,y,v,d){return typeof J.addEventListener==="function"?(J.addEventListener(y,v,Pf(d)),!0):!1}; Ts=function(J){if(J.prerendering)return 3;var y;return(y={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[J.visibilityState||J.webkitVisibilityState||J.mozVisibilityState||""])!=null?y:0}; QCj=function(){}; lO=function(J){J.VSW=!0;return J}; ZH2=function(){return(f_||i0)&&u0?u0.mobile:!sb()&&(XF("iPod")||XF("iPhone")||XF("Android")||XF("IEMobile"))}; sb=function(){return(f_||i0)&&u0?!u0.mobile&&(XF("iPad")||XF("Android")||XF("Silk")):XF("iPad")||XF("Android")&&!XF("Mobile")||XF("Silk")}; Y7=function(J){try{return!!J&&J.location.href!=null&&OHU(J,"foo")}catch(y){return!1}}; SB=function(J,y){if(J)for(var v in J)Object.prototype.hasOwnProperty.call(J,v)&&y(J[v],v,J)}; JsH=function(){var J=[];SB(wqR,function(y){J.push(y)}); return J}; ysR=function(J){var y,v;return(v=(y=/https?:\/\/[^\/]+/.exec(J))==null?void 0:y[0])!=null?v:""}; P03=function(){var J=vN3("IFRAME"),y={};g.En(dhP(),function(v){J.sandbox&&J.sandbox.supports&&J.sandbox.supports(v)&&(y[v]=!0)}); return y}; vN3=function(J,y){y=y===void 0?document:y;return y.createElement(String(J).toLowerCase())}; Asx=function(J){for(var y=J;J&&J!=J.parent;)J=J.parent,Y7(J)&&(y=J);return y}; nNm=function(J){J=J||VG();for(var y=new Tuv(g.wr.location.href,!1),v=null,d=J.length-1,P=d;P>=0;--P){var A=J[P];!v&&lE2.test(A.url)&&(v=A);if(A.url&&!A.C){y=A;break}}P=null;A=J.length&&J[d].url;y.depth!==0&&A&&(P=J[d]);return new M4T(y,P,v)}; VG=function(){var J=g.wr,y=[],v=null;do{var d=J;if(Y7(d)){var P=d.location.href;v=d.document&&d.document.referrer||null}else P=v,v=null;y.push(new Tuv(P||""));try{J=d.parent}catch(A){J=null}}while(J&&d!==J);d=0;for(J=y.length-1;d<=J;++d)y[d].depth=J-d;d=g.wr;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length===y.length-1)for(J=1;Jy&&(y=v.length);return 3997-y-J.J.length-1}; ae=function(J,y){this.C=J;this.depth=y}; V4j=function(){function J(M,n){return M==null?n:M} var y=VG(),v=Math.max(y.length-1,0),d=nNm(y);y=d.C;var P=d.T,A=d.J,T=[];A&&T.push(new ae([A.url,A.C?2:0],J(A.depth,1)));P&&P!=A&&T.push(new ae([P.url,2],0));y.url&&y!=A&&T.push(new ae([y.url,0],J(y.depth,v)));d=g.x7(T,function(M,n){return T.slice(0,T.length-n)}); !y.url||(A||P)&&y!=A||(P=ysR(y.url))&&d.push([new ae([P,1],J(y.depth,v))]);d.push([]);return g.x7(d,function(M){return Sgm(v,M)})}; Sgm=function(J,y){g.Ob(y,function(P){return P.depth>=0}); var v=gp(y,function(P,A){return Math.max(P,A.depth)},-1),d=Br6(v+2); d[0]=J;g.En(y,function(P){return d[P.depth+1]=P.C}); return d}; LpH=function(){var J=J===void 0?V4j():J;return J.map(function(y){return Wf(y)})}; t43=function(J){var y=!1;y=y===void 0?!1:y;qi.google_image_requests||(qi.google_image_requests=[]);var v=vN3("IMG",qi.document);y&&(v.attributionSrc="");v.src=J;qi.google_image_requests.push(v)}; Dr=function(J){var y="bj";if(J.bj&&J.hasOwnProperty(y))return J.bj;var v=new J;J.bj=v;J.hasOwnProperty(y);return v}; cf=function(){this.T=new QCj;this.C=m4()?new BZ:new eZ}; WpR=function(){Gs();var J=qi.document;return!!(J&&J.body&&J.body.getBoundingClientRect&&typeof qi.setInterval==="function"&&typeof qi.clearInterval==="function"&&typeof qi.setTimeout==="function"&&typeof qi.clearTimeout==="function")}; aEU=function(){Gs();return LpH()}; xh2=function(){}; Gs=function(){var J=Dr(xh2);if(!J.C){if(!qi)throw Error("Context has not been set and window is undefined.");J.C=Dr(cf)}return J.C}; bO=function(){throw Error("Invalid UTF8");}; O_r=function(J,y){y=String.fromCharCode.apply(null,y);return J==null?y:J+y}; GnU=function(J){var y=!1;y=y===void 0?!1:y;if(gNr){if(y&&(DhR?!J.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(J)))throw Error("Found an unpaired surrogate");J=(csr||(csr=new TextEncoder)).encode(J)}else{for(var v=0,d=new Uint8Array(3*J.length),P=0;P>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&P=56320&&T<=57343){A=(A-55296)*1024+ T-56320+65536;d[v++]=A>>18|240;d[v++]=A>>12&63|128;d[v++]=A>>6&63|128;d[v++]=A&63|128;continue}else P--}if(y)throw Error("Found an unpaired surrogate");A=65533}d[v++]=A>>12|224;d[v++]=A>>6&63|128}d[v++]=A&63|128}}J=v===d.length?d:d.subarray(0,v)}return J}; Fp=function(J){g.wr.setTimeout(function(){throw J;},0)}; b_d=function(J){return Array.prototype.map.call(J,function(y){y=y.toString(16);return y.length>1?y:"0"+y}).join("")}; Fp6=function(J){for(var y=[],v=0;v>6|192:((P&64512)==55296&&d+1>18|240,y[v++]=P>>12&63|128):y[v++]=P>>12|224,y[v++]=P>>6&63|128),y[v++]=P&63|128)}return y}; g.eB=function(J,y){y===void 0&&(y=0);jM6();y=ebr[y];for(var v=Array(Math.floor(J.length/3)),d=y[64]||"",P=0,A=0;P>2];T=y[(T&3)<<4|M>>4];M=y[(M&15)<<2|n>>6];n=y[n&63];v[A++]=""+Y+T+M+n}Y=0;n=d;switch(J.length-P){case 2:Y=J[P+1],n=y[(Y&15)<<2]||d;case 1:J=J[P],v[A]=""+y[J>>2]+y[(J&3)<<4|Y>>4]+n+d}return v.join("")}; g.m9=function(J,y){if(mhU&&!y)J=g.wr.btoa(J);else{for(var v=[],d=0,P=0;P255&&(v[d++]=A&255,A>>=8);v[d++]=A}J=g.eB(v,y)}return J}; qgU=function(J){var y=[];BuH(J,function(v){y.push(v)}); return y}; Bf=function(J){var y=J.length,v=y*3/4;v%3?v=Math.floor(v):g.ru("=.",J[y-1])&&(v=g.ru("=.",J[y-2])?v-2:v-1);var d=new Uint8Array(v),P=0;BuH(J,function(A){d[P++]=A}); return P!==v?d.subarray(0,P):d}; BuH=function(J,y){function v(n){for(;d>4);T!=64&&(y(A<<4&240|T>>2),M!=64&&y(T<<6&192|M))}}; jM6=function(){if(!qc){qc={};for(var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),y=["+/=","+/","-_=","-_.","-_"],v=0;v<5;v++){var d=J.concat(y[v].split(""));ebr[v]=d;for(var P=0;P=y||(d[J]=v+1,J=Error(),PwR(J,"incident"),Fp(J))}}; Ub=function(J,y,v){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(v===void 0?0:v)&&Symbol.for&&J?Symbol.for(J):J!=null?Symbol(J):Symbol():y}; uO=function(J,y){f9||iO in J||i_2(J,uFm);J[iO]|=y}; Hf=function(J,y){f9||iO in J||i_2(J,uFm);J[iO]=y}; Xp=function(){return typeof BigInt==="function"}; Re=function(J,y){return y===void 0?J.C!==Nc&&!!(2&(J.n8[iO]|0)):!!(2&y)&&J.C!==Nc}; H_x=function(J,y){if(J!=null)if(typeof J==="string")J=J?new rp(J,$7):oe();else if(J.constructor!==rp)if(UhH&&J!=null&&J instanceof Uint8Array)J=J.length?new rp(new Uint8Array(J),$7):oe();else{if(!y)throw Error();J=void 0}return J}; K9=function(J,y){if(typeof y!=="number"||y<0||y>=J.length)throw Error();}; XLT=function(J,y,v){var d=y&128?0:-1,P=J.length,A;if(A=!!P)A=J[P-1],A=A!=null&&typeof A==="object"&&A.constructor===Object;var T=P+(A?-1:0);for(y=y&128?1:0;yy.length)return!1;if(J.lengthP)return!1;if(d>>0;JC=y;y5=(J-y)/4294967296>>>0}; Pk=function(J){if(J<0){vk(0-J);var y=g.D(dG(JC,y5));J=y.next().value;y=y.next().value;JC=J>>>0;y5=y>>>0}else vk(J)}; TH=function(J,y){var v=y*4294967296+(J>>>0);return Number.isSafeInteger(v)?v:AC(J,y)}; knr=function(J,y){var v=y&2147483648;v&&(J=~J+1>>>0,y=~y>>>0,J==0&&(y=y+1>>>0));J=TH(J,y);return typeof J==="number"?v?-J:J:v?"-"+J:J}; AC=function(J,y){y>>>=0;J>>>=0;if(y<=2097151)var v=""+(4294967296*y+J);else Xp()?v=""+(BigInt(y)<>>24|y<<8)&16777215,y=y>>16&65535,J=(J&16777215)+v*6777216+y*6710656,v+=y*8147497,y*=2,J>=1E7&&(v+=J/1E7>>>0,J%=1E7),v>=1E7&&(y+=v/1E7>>>0,v%=1E7),v=y+ENR(v)+ENR(J));return v}; ENR=function(J){J=String(J);return"0000000".slice(J.length)+J}; QMx=function(){var J=JC,y=y5;y&2147483648?Xp()?J=""+(BigInt(y|0)<>>0)):(y=g.D(dG(J,y)),J=y.next().value,y=y.next().value,J="-"+AC(J,y)):J=AC(J,y);return J}; ls=function(J){if(J.length<16)Pk(Number(J));else if(Xp())J=BigInt(J),JC=Number(J&BigInt(4294967295))>>>0,y5=Number(J>>BigInt(32)&BigInt(4294967295));else{var y=+(J[0]==="-");y5=JC=0;for(var v=J.length,d=0+y,P=(v-y)%6+y;P<=v;d=P,P+=6)d=Number(J.slice(d,P)),y5*=1E6,JC=JC*1E6+d,JC>=4294967296&&(y5+=Math.trunc(JC/4294967296),y5>>>=0,JC>>>=0);y&&(y=g.D(dG(JC,y5)),J=y.next().value,y=y.next().value,JC=J,y5=y)}}; dG=function(J,y){y=~y;J?J=~J+1:y+=1;return[J,y]}; Mw=function(J){return Array.prototype.slice.call(J)}; nI=function(J){if(J!=null&&typeof J!=="number")throw Error("Value of float/double field must be a number, found "+typeof J+": "+J);return J}; Z_d=function(J){return J.displayName||J.name||"unknown type name"}; Yd=function(J){if(J!=null&&typeof J!=="boolean")throw Error("Expected boolean but got "+LT2(J)+": "+J);return J}; V5=function(J){switch(typeof J){case "bigint":return!0;case "number":return Sd(J);case "string":return wLx.test(J);default:return!1}}; JgU=function(J){if(typeof J!=="number")throw Ie("int32");if(!Sd(J))throw Ie("int32");return J|0}; LI=function(J){return J==null?J:JgU(J)}; tC=function(J){if(J==null)return J;if(typeof J==="string"&&J)J=+J;else if(typeof J!=="number")return;return Sd(J)?J|0:void 0}; Wk=function(J){if(J==null)return J;if(typeof J==="string"&&J)J=+J;else if(typeof J!=="number")return;return Sd(J)?J>>>0:void 0}; d7R=function(J){var y=0;y=y===void 0?0:y;if(!V5(J))throw Ie("int64");var v=typeof J;switch(y){case 512:switch(v){case "string":return aI(J);case "bigint":return String(xd(64,J));default:return Dk(J)}case 1024:switch(v){case "string":return ygU(J);case "bigint":return QG(xd(64,J));default:return vpH(J)}case 0:switch(v){case "string":return aI(J);case "bigint":return QG(xd(64,J));default:return ck(J)}default:return SP(y,"Unknown format requested type for int64")}}; GH=function(J){return J==null?J:d7R(J)}; PXU=function(J){if(J[0]==="-")return!1;var y=J.length;return y<20?!0:y===20&&Number(J.substring(0,6))<184467}; Agd=function(J){var y=J.length;return J[0]==="-"?y<20?!0:y===20&&Number(J.substring(0,7))>-922337:y<19?!0:y===19&&Number(J.substring(0,6))<922337}; T0x=function(J){if(J<0){Pk(J);var y=AC(JC,y5);J=Number(y);return bs(J)?J:y}y=String(J);if(PXU(y))return y;Pk(J);return TH(JC,y5)}; lNR=function(J){if(Agd(J))return J;ls(J);return QMx()}; ck=function(J){V5(J);J=F7(J);bs(J)||(Pk(J),J=knr(JC,y5));return J}; Dk=function(J){V5(J);J=F7(J);if(bs(J))J=String(J);else{var y=String(J);Agd(y)?J=y:(Pk(J),J=QMx())}return J}; aI=function(J){V5(J);var y=F7(Number(J));if(bs(y))return String(y);y=J.indexOf(".");y!==-1&&(J=J.substring(0,y));return lNR(J)}; ygU=function(J){var y=F7(Number(J));if(bs(y))return QG(y);y=J.indexOf(".");y!==-1&&(J=J.substring(0,y));return Xp()?QG(xd(64,BigInt(J))):QG(lNR(J))}; vpH=function(J){return bs(J)?QG(ck(J)):QG(Dk(J))}; MPU=function(J){if(J==null)return J;var y=typeof J;if(y==="bigint")return String(xd(64,J));if(V5(J)){if(y==="string")return aI(J);if(y==="number")return ck(J)}}; sVP=function(J){if(J==null)return J;var y=typeof J;if(y==="bigint")return String(npm(64,J));if(V5(J)){if(y==="string")return V5(J),y=F7(Number(J)),bs(y)&&y>=0?J=String(y):(y=J.indexOf("."),y!==-1&&(J=J.substring(0,y)),PXU(J)||(ls(J),J=AC(JC,y5))),J;if(y==="number")return V5(J),J=F7(J),J>=0&&bs(J)?J:T0x(J)}}; YS2=function(J){if(J==null||typeof J=="string"||J instanceof rp)return J}; SS6=function(J){if(typeof J!=="string")throw Error();return J}; jd=function(J){if(J!=null&&typeof J!=="string")throw Error();return J}; ed=function(J){return J==null||typeof J==="string"?J:void 0}; m2=function(J,y){if(!(J instanceof y))throw Error("Expected instanceof "+Z_d(y)+" but got "+(J&&Z_d(J.constructor)));return J}; VPx=function(J,y,v){if(J!=null&&J[Bk]===qw)return J;if(Array.isArray(J)){var d=J[iO]|0;v=d|v&32|v&2;v!==d&&Hf(J,v);return new y(J)}}; rG=function(J){return J}; oI=function(J){var y=SX($d);return y?J[y]:void 0}; CI=function(){}; hC=function(J,y){for(var v in J)!isNaN(v)&&y(J,+v,J[v])}; LSv=function(J){var y=new CI;hC(J,function(v,d,P){y[d]=Mw(P)}); y.V3=J.V3;return y}; WSd=function(J,y){y<100||p9(tPx,1)}; pI=function(J,y,v,d){var P=d!==void 0;d=!!d;var A=SX($d),T;!P&&f9&&A&&(T=J[A])&&hC(T,WSd);A=[];var M=J.length;T=4294967295;var n=!1,Y=!!(y&64),S=Y?y&128?0:-1:void 0;if(!(y&1)){var V=M&&J[M-1];V!=null&&typeof V==="object"&&V.constructor===Object?(M--,T=M):V=void 0;if(Y&&!(y&128)&&!P){n=!0;var L;T=((L=II)!=null?L:rG)(T-S,S,J,V)+S}}y=void 0;for(L=0;L=T){var W=L-S,c=void 0;((c=y)!=null?c:y={})[W]=t}else A[L]=t}if(V)for(var b in V)M=V[b],M!=null&& (M=v(M,d))!=null&&(L=+b,t=void 0,Y&&!Number.isNaN(L)&&(t=L+S)0?void 0:J===0?D7j||(D7j=[0,void 0]):[-J,void 0];case "string":return[0,J];case "object":return J}}; Nw=function(J,y,v){return J=X7(J,y[0],y[1],v?1:2)}; X7=function(J,y,v,d){d=d===void 0?0:d;if(J==null){var P=32;v?(J=[v],P|=128):J=[];y&&(P=P&-8380417|(y&1023)<<13)}else{if(!Array.isArray(J))throw Error("narr");P=J[iO]|0;2048&P&&!(2&P)&&G86();if(P&256)throw Error("farr");if(P&64)return d!==0||P&2048||Hf(J,P|2048),J;if(v&&(P|=128,v!==J[0]))throw Error("mid");a:{v=J;P|=64;var A=v.length;if(A){var T=A-1,M=v[T];if(M!=null&&typeof M==="object"&&M.constructor===Object){y=P&128?0:-1;T-=y;if(T>=1024)throw Error("pvtlmt");for(var n in M)A=+n,A1024)throw Error("spvt");P=P&-8380417|(n&1023)<<13}}}P|=64;d===0&&(P|=2048);Hf(J,P);return J}; G86=function(){p9(bnm,5)}; FSm=function(J,y){if(typeof J!=="object")return J;if(Array.isArray(J)){var v=J[iO]|0;J.length===0&&v&1?J=void 0:v&2||(!y||4096&v||16&v?J=RI(J,v,!1,y&&!(v&16)):(uO(J,34),v&4&&Object.freeze(J)));return J}if(J!=null&&J[Bk]===qw)return y=J.n8,v=y[iO]|0,Re(J,v)?J:KI(J,y,v)?zH(J,y):RI(y,v);if(J instanceof rp)return J}; zH=function(J,y,v){J=new J.constructor(y);v&&(J.C=Nc);J.T=Nc;return J}; RI=function(J,y,v,d){d!=null||(d=!!(34&y));J=pI(J,y,FSm,d);d=32;v&&(d|=2);y=y&8380609|d;Hf(J,y);return J}; jVv=function(J){var y=J.n8,v=y[iO]|0;return Re(J,v)?KI(J,y,v)?zH(J,y,!0):new J.constructor(RI(y,v,!1)):J}; kd=function(J){if(J.C!==Nc)return!1;var y=J.n8;y=RI(y,y[iO]|0);uO(y,2048);J.n8=y;J.C=void 0;J.T=void 0;return!0}; Et=function(J){if(!kd(J)&&Re(J,J.n8[iO]|0))throw Error();}; Q5=function(J,y){y===void 0&&(y=J[iO]|0);y&32&&!(y&4096)&&Hf(J,y|4096)}; KI=function(J,y,v){return v&2?!0:v&32&&!(v&4096)?(Hf(y,v|2),J.C=Nc,!0):!1}; wG=function(J,y,v,d,P){Object.isExtensible(J);y=Zk(J.n8,y,v,P);if(y!==null||d&&J.T!==Nc)return y}; Zk=function(J,y,v,d){if(y===-1)return null;var P=y+(v?0:-1),A=J.length-1;if(!(A<1+(v?0:-1))){if(P>=A){var T=J[A];if(T!=null&&typeof T==="object"&&T.constructor===Object){v=T[y];var M=!0}else if(P===A)v=T;else return}else v=J[P];if(d&&v!=null){d=d(v);if(d==null)return d;if(!Object.is(d,v))return M?T[y]=d:J[P]=d,d}return v}}; yI=function(J,y,v,d){Et(J);var P=J.n8;Jy(P,P[iO]|0,y,v,d);return J}; Jy=function(J,y,v,d,P){var A=v+(P?0:-1),T=J.length-1;if(T>=1+(P?0:-1)&&A>=T){var M=J[T];if(M!=null&&typeof M==="object"&&M.constructor===Object)return M[v]=d,y}if(A<=T)return J[A]=d,y;if(d!==void 0){var n;T=((n=y)!=null?n:y=J[iO]|0)>>13&1023||536870912;v>=T?d!=null&&(A={},J[T+(P?0:-1)]=(A[v]=d,A)):J[A]=d}return y}; TJ=function(J,y,v,d,P){var A=J.n8,T=A[iO]|0;d=Re(J,T)?1:d;P=!!P||d===3;d===2&&kd(J)&&(A=J.n8,T=A[iO]|0);J=v3(A,y);var M=J===dg?7:J[iO]|0,n=P3(M,T);var Y=4&n?!1:!0;if(Y){4&n&&(J=Mw(J),M=0,n=Ay(n,T),T=Jy(A,T,y,J));for(var S=0,V=0;S "+J)}; fd=function(J,y,v){this.buffer=J;if(v&&!y)throw Error();this.C=y}; ig=function(J,y){if(typeof J==="string")return new fd(hbH(J),y);if(Array.isArray(J))return new fd(new Uint8Array(J),y);if(J.constructor===Uint8Array)return new fd(J,!1);if(J.constructor===ArrayBuffer)return J=new Uint8Array(J),new fd(J,!1);if(J.constructor===rp)return y=C9(J)||new Uint8Array(0),new fd(y,!0,J);if(J instanceof Uint8Array)return J=J.constructor===Uint8Array?J:new Uint8Array(J.buffer,J.byteOffset,J.byteLength),new fd(J,!1);throw Error();}; ug=function(J,y,v,d){this.T=null;this.V=!1;this.C=this.J=this.W=0;this.init(J,y,v,d)}; Xc=function(J){var y=0,v=0,d=0,P=J.T,A=J.C;do{var T=P[A++];y|=(T&127)<32&&(v|=(T&127)>>4);for(d=3;d<32&&T&128;d+=7)T=P[A++],v|=(T&127)<>>0,v>>>0);throw Uf();}; H3=function(J,y){J.C=y;if(y>J.J)throw U7T(J.J,y);}; NV=function(J){var y=J.T,v=J.C,d=y[v++],P=d&127;if(d&128&&(d=y[v++],P|=(d&127)<<7,d&128&&(d=y[v++],P|=(d&127)<<14,d&128&&(d=y[v++],P|=(d&127)<<21,d&128&&(d=y[v++],P|=d<<28,d&128&&y[v++]&128&&y[v++]&128&&y[v++]&128&&y[v++]&128&&y[v++]&128)))))throw Uf();H3(J,v);return P}; RE=function(J){var y=J.T,v=J.C,d=y[v+0],P=y[v+1],A=y[v+2];y=y[v+3];H3(J,J.C+4);return(d<<0|P<<8|A<<16|y<<24)>>>0}; Kd=function(J){var y=RE(J);J=RE(J);return TH(y,J)}; zJ=function(J){var y=RE(J),v=RE(J);J=(v>>31)*2+1;var d=v>>>20&2047;y=4294967296*(v&1048575)+y;return d==2047?y?NaN:J*Infinity:d==0?J*4.9E-324*y:J*Math.pow(2,d-1075)*(y+4503599627370496)}; k3=function(J){for(var y=0,v=J.C,d=v+10,P=J.T;vJ.J)throw U7T(y,J.J-v);J.C=d;return v}; uN2=function(J,y){if(y==0)return oe();var v=fNm(J,y);J.Dn&&J.V?v=J.T.subarray(v,v+y):(J=J.T,y=v+y,v=v===y?new Uint8Array(0):inU?J.slice(v,y):new Uint8Array(J.subarray(v,y)));return v.length==0?oe():new rp(v,$7)}; QI=function(J,y,v,d){if(Ef.length){var P=Ef.pop();P.init(J,y,v,d);J=P}else J=new ug(J,y,v,d);this.C=J;this.J=this.C.C;this.T=this.W=-1;Hnr(this,d)}; Hnr=function(J,y){y=y===void 0?{}:y;J.gL=y.gL===void 0?!1:y.gL}; XDj=function(J,y,v,d){if(ZV.length){var P=ZV.pop();Hnr(P,d);P.C.init(J,y,v,d);return P}return new QI(J,y,v,d)}; N0T=function(J){var y=J.C;if(y.C==y.J)return!1;J.J=J.C.C;var v=NV(J.C)>>>0;y=v>>>3;v&=7;if(!(v>=0&&v<=5))throw pDH(v,J.J);if(y<1)throw Error("Invalid field number: "+y+" (at position "+J.J+")");J.W=y;J.T=v;return!0}; wg=function(J){switch(J.T){case 0:J.T!=0?wg(J):k3(J.C);break;case 1:J=J.C;H3(J,J.C+8);break;case 2:if(J.T!=2)wg(J);else{var y=NV(J.C)>>>0;J=J.C;H3(J,J.C+y)}break;case 5:J=J.C;H3(J,J.C+4);break;case 3:y=J.W;do{if(!N0T(J))throw Error("Unmatched start-group tag: stream EOF");if(J.T==4){if(J.W!=y)throw Error("Unmatched end-group tag");break}wg(J)}while(1);break;default:throw pDH(J.T,J.J);}}; Jq=function(J,y,v){var d=J.C.J,P=NV(J.C)>>>0,A=J.C.C+P,T=A-d;T<=0&&(J.C.J=A,v(y,J,void 0,void 0,void 0),T=A-J.C.C);if(T)throw Error("Message parsing ended unexpectedly. Expected to read "+(P+" bytes, instead read "+(P-T)+" bytes, either the data ended unexpectedly or the message misreported its own length"));J.C.C=A;J.C.J=d}; St=function(J){var y=NV(J.C)>>>0;J=J.C;var v=fNm(J,y);J=J.T;if(Re6){var d=J,P;(P=ys)||(P=ys=new TextDecoder("utf-8",{fatal:!0}));y=v+y;d=v===0&&y===d.length?d:d.subarray(v,y);try{var A=P.decode(d)}catch(Y){if(YQ===void 0){try{P.decode(new Uint8Array([128]))}catch(S){}try{P.decode(new Uint8Array([97])),YQ=!0}catch(S){YQ=!1}}!YQ&&(ys=void 0);throw Y;}}else{A=v;y=A+y;v=[];for(var T=null,M,n;A=y?bO():(n=J[A++],M<194||(n&192)!==128?(A--,bO()):v.push((M&31)<<6|n&63)): M<240?A>=y-1?bO():(n=J[A++],(n&192)!==128||M===224&&n<160||M===237&&n>=160||((P=J[A++])&192)!==128?(A--,bO()):v.push((M&15)<<12|(n&63)<<6|P&63)):M<=244?A>=y-2?bO():(n=J[A++],(n&192)!==128||(M<<28)+(n-144)>>30!==0||((P=J[A++])&192)!==128||((d=J[A++])&192)!==128?(A--,bO()):(M=(M&7)<<18|(n&63)<<12|(P&63)<<6|d&63,M-=65536,v.push((M>>10&1023)+55296,(M&1023)+56320))):bO(),v.length>=8192&&(T=O_r(T,v),v.length=0);A=O_r(T,v)}return A}; KSv=function(J){var y=NV(J.C)>>>0;return uN2(J.C,y)}; Vs=function(J,y){this.T=J>>>0;this.C=y>>>0}; k8j=function(J){if(!J)return zeR||(zeR=new Vs(0,0));if(!/^\d+$/.test(J))return null;ls(J);return new Vs(JC,y5)}; Ll=function(J,y){this.T=J>>>0;this.C=y>>>0}; QV6=function(J){if(!J)return Ep3||(Ep3=new Ll(0,0));if(!/^-?\d+$/.test(J))return null;ls(J);return new Ll(JC,y5)}; tq=function(){this.C=[]}; Wo=function(J,y,v){for(;v>0||y>127;)J.C.push(y&127|128),y=(y>>>7|v<<25)>>>0,v>>>=7;J.C.push(y)}; aA=function(J,y){for(;y>127;)J.C.push(y&127|128),y>>>=7;J.C.push(y)}; Znj=function(J,y){if(y>=0)aA(J,y);else{for(var v=0;v<9;v++)J.C.push(y&127|128),y>>=7;J.C.push(1)}}; xQ=function(J,y){J.C.push(y>>>0&255);J.C.push(y>>>8&255);J.C.push(y>>>16&255);J.C.push(y>>>24&255)}; wDj=function(){this.J=[];this.T=0;this.C=new tq}; O_=function(J,y){y.length!==0&&(J.J.push(y),J.T+=y.length)}; JbR=function(J,y){gX(J,y,2);y=J.C.end();O_(J,y);y.push(J.T);return y}; ybU=function(J,y){var v=y.pop();for(v=J.T+J.C.length()-v;v>127;)y.push(v&127|128),v>>>=7,J.T++;y.push(v);J.T++}; gX=function(J,y,v){aA(J.C,y*8+v)}; vkU=function(J,y,v){if(v!=null){switch(typeof v){case "string":k8j(v)}gX(J,y,1);switch(typeof v){case "number":J=J.C;vk(v);xQ(J,JC);xQ(J,y5);break;case "bigint":v=BigInt.asUintN(64,v);v=new Vs(Number(v&BigInt(4294967295)),Number(v>>BigInt(32)));J=J.C;y=v.C;xQ(J,v.T);xQ(J,y);break;default:v=k8j(v),J=J.C,y=v.C,xQ(J,v.T),xQ(J,y)}}}; DA=function(J,y,v){gX(J,y,2);aA(J.C,v.length);O_(J,J.C.end());O_(J,v)}; co=function(){function J(){throw Error();} Object.setPrototypeOf(J,J.prototype);return J}; Gz=function(J,y,v){this.n8=X7(J,y,v)}; dix=function(J,y){if(y==null||y=="")return new J;y=JSON.parse(y);if(!Array.isArray(y))throw Error("dnarr");uO(y,32);return new J(y)}; Fv=function(J,y,v){this.Ka=J;this.nD=y;J=SX(bN);this.C=!!J&&v===J||!1}; jt=function(J,y){var v=v===void 0?bN:v;return new Fv(J,y,v)}; AbT=function(J,y,v,d,P){y=PaR(y,d);y!=null&&(v=JbR(J,v),P(y,J),ybU(J,v))}; Bo=function(J,y,v,d){var P=d[J];if(P)return P;P={};P.C$=d;P.O9=cg6(d[0]);var A=d[1],T=1;A&&A.constructor===Object&&(P.extensions=A,A=d[++T],typeof A==="function"&&(P.Go=!0,et!=null||(et=A),mF!=null||(mF=d[T+1]),A=d[T+=2]));for(var M={};A&&Array.isArray(A)&&A.length&&typeof A[0]==="number"&&A[0]>0;){for(var n=0;n>BigInt(32)));Wo(J.C,v.T,v.C);break;default:v=QV6(y),Wo(J.C,v.T,v.C)}}}; ZA=function(J,y,v){y=tC(y);y!=null&&y!=null&&(gX(J,v,0),Znj(J.C,y))}; xi3=function(J,y,v){y=y==null||typeof y==="boolean"?y:typeof y==="number"?!!y:void 0;y!=null&&(gX(J,v,0),J.C.C.push(y?1:0))}; Ojc=function(J,y,v){y=ed(y);y!=null&&DA(J,v,GnU(y))}; gk3=function(J,y,v,d,P){y=PaR(y,d);y!=null&&(v=JbR(J,v),P(y,J),ybU(J,v))}; cbP=function(){var J=wX;this.C=DiR;this.isRepeated=0;this.T=Of;this.defaultValue=void 0;this.J=J.messageId!=null?zs:void 0}; GN6=function(J){return function(){var y=new wDj;L4P(this.n8,y,Bo(U_,hq,Xv,J));O_(y,y.C.end());for(var v=new Uint8Array(y.T),d=y.J,P=d.length,A=0,T=0;T-1)return y.apply(null,g.r(v));try{return J.C=J.J.C.now(),y.apply(null,g.r(v))}finally{J.W+=J.J.C.now()-J.C,J.C=-1,J.T+=1}}}; F42=function(J,y){this.T=J;this.J=y;this.C=new bjr(J)}; jg6=function(){this.C={}}; miv=function(){var J=dO().flags,y=eax;J=J.C[y.key];if(y.valueType==="proto"){try{var v=JSON.parse(J);if(Array.isArray(v))return v}catch(d){}return y.defaultValue}return typeof J===typeof y.defaultValue?J:y.defaultValue}; $iR=function(){this.J=void 0;this.T=this.L=0;this.V=-1;this.Ik=new Gn;b0(this.Ik,"mv",Bs3).C=!0;b0(this.Ik,"omid",mp);b0(this.Ik,"epoh",mp).C=!0;b0(this.Ik,"epph",mp).C=!0;b0(this.Ik,"umt",mp).C=!0;b0(this.Ik,"phel",mp).C=!0;b0(this.Ik,"phell",mp).C=!0;b0(this.Ik,"oseid",q3P).C=!0;var J=this.Ik;J.C.sloi||(J.C.sloi=new DE);J.C.sloi.C=!0;b0(this.Ik,"mm",PV);b0(this.Ik,"ovms",rbj).C=!0;b0(this.Ik,"xdi",mp).C=!0;b0(this.Ik,"amp",mp).C=!0;b0(this.Ik,"prf",mp).C=!0;b0(this.Ik,"gtx",mp).C=!0;b0(this.Ik, "mvp_lv",mp).C=!0;b0(this.Ik,"ssmol",mp).C=!0;b0(this.Ik,"fmd",mp).C=!0;b0(this.Ik,"gen204simple",mp);this.C=new F42(Gs(),this.Ik);this.W=!1;this.flags=new jg6}; dO=function(){return Dr($iR)}; okm=function(J,y,v,d){if(Math.random()<(d||J.C))try{if(v instanceof L9)var P=v;else P=new L9,SB(v,function(T,M){var n=P,Y=n.W++;T=t3(M,T);n.C.push(Y);n.T[Y]=T}); var A=P.S1(J.T,"pagead2.googlesyndication.com","/pagead/gen_204?id="+y+"&");A&&(Gs(),t43(A))}catch(T){}}; Cax=function(J,y,v){v=v===void 0?{}:v;this.error=J;this.meta=v;this.context=y.context;this.msg=y.message||"";this.id=y.id||"jserror"}; haU=function(){var J=J===void 0?g.wr:J;return(J=J.performance)&&J.now&&J.timing?Math.floor(J.now()+J.timing.navigationStart):g.Yy()}; IGU=function(){var J=J===void 0?g.wr:J;return(J=J.performance)&&J.now?J.now():null}; pZU=function(J,y,v){this.label=J;this.type=y;this.value=v;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; TG=function(){var J=window;this.events=[];this.T=J||g.wr;var y=null;J&&(J.google_js_reporting_queue=J.google_js_reporting_queue||[],this.events=J.google_js_reporting_queue,y=J.google_measure_js_timing);this.C=An()||(y!=null?y:Math.random()<1)}; UiU=function(J){J&&l5&&An()&&(l5.clearMarks("goog_"+J.label+"_"+J.uniqueId+"_start"),l5.clearMarks("goog_"+J.label+"_"+J.uniqueId+"_end"))}; MN=function(J,y,v,d,P,A,T){var M="";J&&(M+=J+":");v&&(M+="//",y&&(M+=y+"@"),M+=v,d&&(M+=":"+d));P&&(M+=P);A&&(M+="?"+A);T&&(M+="#"+T);return M}; g.nV=function(J){return J.match(fGT)}; ijd=function(J){return J?decodeURI(J):J}; g.s1=function(J){return ijd(g.nV(J)[3]||null)}; Yn=function(J){return ijd(g.nV(J)[5]||null)}; g.unx=function(J){J=g.nV(J);return MN(J[1],J[2],J[3],J[4])}; Sa=function(J){J=g.nV(J);return MN(null,null,null,null,J[5],J[6],J[7])}; Hjc=function(J){var y=J.indexOf("#");return y<0?J:J.slice(0,y)}; VQ=function(J,y){if(J){J=J.split("&");for(var v=0;v=0){var A=J[v].substring(0,d);P=J[v].substring(d+1)}else A=J[v];y(A,P?q7(P):"")}}}; LV=function(J,y){if(!y)return J;var v=J.indexOf("#");v<0&&(v=J.length);var d=J.indexOf("?");if(d<0||d>v){d=v;var P=""}else P=J.substring(d+1,v);J=[J.slice(0,d),P,J.slice(v)];v=J[1];J[1]=y?v?v+"&"+y:y:v;return J[0]+(J[1]?"?"+J[1]:"")+J[2]}; tn=function(J,y,v){if(Array.isArray(y))for(var d=0;d=0&&yv)P=v;d+=y.length+1;return q7(J.slice(d,P!==-1?P:0))}; GG=function(J,y){for(var v=J.search(gO),d=0,P,A=[];(P=O1(J,d,y,v))>=0;)A.push(J.substring(d,P)),d=Math.min(J.indexOf("&",P)+1||v,v);A.push(J.slice(d));return A.join("").replace(RaT,"$1")}; K4c=function(J,y,v){return xn(GG(J,y),y,v)}; zac=function(){var J=b5;this.C=FI;this.Cg="jserror";this.QT=!0;this.ze=null;this.T=this.Sa;this.Gu=J===void 0?null:J}; kNH=function(J,y,v){var d=ea;return vV(dO().C.C,function(){try{if(d.Gu&&d.Gu.C){var P=d.Gu.start(J.toString(),3);var A=y();d.Gu.end(P)}else A=y()}catch(M){var T=d.QT;try{UiU(P),T=d.T(J,new mJ(BV(M)),void 0,v)}catch(n){d.Sa(217,n)}if(!T)throw M;}return A})()}; qN=function(J,y,v,d){return vV(dO().C.C,function(){var P=g.iR.apply(0,arguments);return kNH(J,function(){return y.apply(v,P)},d)})}; BV=function(J){var y=J.toString();J.name&&y.indexOf(J.name)==-1&&(y+=": "+J.name);J.message&&y.indexOf(J.message)==-1&&(y+=": "+J.message);if(J.stack)a:{J=J.stack;var v=y;try{J.indexOf(v)==-1&&(J=v+"\n"+J);for(var d;J!=d;)d=J,J=J.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");y=J.replace(/\n */g,"\n");break a}catch(P){y=v;break a}y=void 0}return y}; mJ=function(J){Cax.call(this,Error(J),{message:J})}; Ek3=function(){qi&&typeof qi.google_measure_js_timing!="undefined"&&(qi.google_measure_js_timing||b5.disable())}; Qgj=function(J){ea.ze=function(y){g.En(J,function(v){v(y)})}}; Zj6=function(J,y){return kNH(J,y)}; rO=function(J,y){return qN(J,y)}; $n=function(J,y,v,d){ea.Sa(J,y,v,d)}; ol=function(){return Date.now()-wZd}; J3c=function(){var J=dO().J,y=CV>=0?ol()-CV:-1,v=hn?ol()-Il:-1,d=pV>=0?ol()-pV:-1;if(J==947190542)return 100;if(J==79463069)return 200;J=[2E3,4E3];var P=[250,500,1E3];$n(637,Error(),.001);var A=y;v!=-1&&v1500&&d<4E3?500:T}; U1=function(J,y,v){var d=new pj(0,0,0,0);this.time=J;this.volume=null;this.J=y;this.C=d;this.T=v}; fV=function(J,y,v,d,P,A,T,M){this.W=J;this.G=y;this.J=v;this.L=d;this.C=P;this.V=A;this.T=T;this.B=M}; v7x=function(J){var y=J!==J.top,v=J.top===Asx(J),d=-1,P=0;if(y&&v&&J.top.mraid){d=3;var A=J.top.mraid}else d=(A=J.mraid)?y?v?2:1:0:-1;A&&(A.IS_GMA_SDK||(P=2),$jP(y3r,function(T){return typeof A[T]==="function"})||(P=1)); return{oB:A,compatibility:P,U1x:d}}; dc3=function(){var J=window.document;return J&&typeof J.elementFromPoint==="function"}; PO3=function(J,y,v){if(J&&y!==null&&y!=y.top){if(!y.top)return new g.Kn(-12245933,-12245933);y=y.top}try{return(v===void 0?0:v)?(new g.Kn(y.innerWidth,y.innerHeight)).round():Cwx(y||window).round()}catch(d){return new g.Kn(-12245933,-12245933)}}; i5=function(J,y,v){try{if(J){if(!y.top)return new pj(-12245933,-12245933,-12245933,-12245933);y=y.top}var d=PO3(J,y,v),P=d.height,A=d.width;if(A===-12245933)return new pj(A,A,A,A);var T=ds(y.document);var M=IyU(T.C);var n=M.x,Y=M.y;return new pj(Y,n+A,Y+P,n)}catch(S){return new pj(-12245933,-12245933,-12245933,-12245933)}}; u5=function(J,y){y=Math.pow(10,y);return Math.floor(J*y)/y}; A3H=function(J){return new pj(J.top,J.right,J.bottom,J.left)}; Tp2=function(J){var y=J.top||0,v=J.left||0;return new pj(y,v+(J.width||0),y+(J.height||0),v)}; HV=function(J){return J!=null&&J>=0&&J<=1}; lrm=function(){var J=g.IM();return J?XI("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(y){return $N(J,y)})||$N(J,"OMI/")&&!$N(J,"XiaoMi/")?!0:$N(J,"Presto")&&$N(J,"Linux")&&!$N(J,"X11")&&!$N(J,"Android")&&!$N(J,"Mobi"):!1}; MBU=function(){this.J=!Y7(qi.top);this.isMobileDevice=sb()||ZH2();var J=VG();this.domain=J.length>0&&J[J.length-1]!=null&&J[J.length-1].url!=null?g.s1(J[J.length-1].url)||"":"";this.C=new pj(0,0,0,0);this.W=new g.Kn(0,0);this.V=new g.Kn(0,0);this.G=new pj(0,0,0,0);this.frameOffset=new g.N7(0,0);this.L=0;this.B=!1;this.T=!(!qi||!v7x(qi).oB);this.update(qi)}; n7T=function(J,y){y&&y.screen&&(J.W=new g.Kn(y.screen.width,y.screen.height))}; sev=function(J,y){a:{var v=J.C?new g.Kn(U3(J.C),J.C.getHeight()):new g.Kn(0,0);y=y===void 0?qi:y;y!==null&&y!=y.top&&(y=y.top);var d=0,P=0;try{var A=y.document,T=A.body,M=A.documentElement;if(A.compatMode=="CSS1Compat"&&M.scrollHeight)d=M.scrollHeight!=v.height?M.scrollHeight:M.offsetHeight,P=M.scrollWidth!=v.width?M.scrollWidth:M.offsetWidth;else{var n=M.scrollHeight,Y=M.scrollWidth,S=M.offsetHeight,V=M.offsetWidth;M.clientHeight!=S&&(n=T.scrollHeight,Y=T.scrollWidth,S=T.offsetHeight,V=T.offsetWidth); n>v.height?n>S?(d=n,P=Y):(d=S,P=V):n0||J.B)return!0;J=Gs().T.isVisible();var y=Ts(Rl)===0;return J||y}; NN=function(){return Dr(MBU)}; zG=function(J){this.J=J;this.T=0;this.C=null}; kn=function(J,y,v){this.J=J;this.Ek=v===void 0?"na":v;this.V=[];this.isInitialized=!1;this.W=new U1(-1,!0,this);this.C=this;this.B=y;this.zK=this.K=!1;this.If="uk";this.wj=!1;this.L=!0}; E1=function(J,y){g.cq(J.V,y)||(J.V.push(y),y.lr(J.C),y.rO(J.W),y.RD()&&(J.K=!0))}; Ybm=function(J){J=J.C;J.ji();J.pZ();var y=NN();y.G=i5(!1,J.J,y.isMobileDevice);sev(NN(),J.J);J.W.C=J.Nz()}; Sbv=function(J){J.K=J.V.length?XI(J.V,function(y){return y.RD()}):!1}; VBH=function(J){var y=g.rV(J.V);g.En(y,function(v){v.rO(J.W)})}; QQ=function(J){var y=g.rV(J.V);g.En(y,function(v){v.lr(J.C)}); J.C!=J||VBH(J)}; ZS=function(J,y,v,d){this.element=J;this.C=new pj(0,0,0,0);this.J=null;this.L=new pj(0,0,0,0);this.T=y;this.Ik=v;this.wj=d;this.AY=!1;this.timestamp=-1;this.K=new fV(y.W,this.element,this.C,new pj(0,0,0,0),0,0,ol(),0);this.V=void 0}; L9R=function(J,y){return J.V?new pj(Math.max(y.top+J.V.top,y.top),Math.min(y.left+J.V.right,y.right),Math.min(y.top+J.V.bottom,y.bottom),Math.max(y.left+J.V.left,y.left)):y.clone()}; wO=function(J){this.V=!1;this.C=J;this.W=function(){}}; tBr=function(J,y,v){this.J=v===void 0?0:v;this.T=J;this.C=y==null?"":y}; W9P=function(J){switch(Math.trunc(J.J)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; tdH=function(J,y){return J.Jy.J?!1:J.Ty.T?!1:typeof J.Ctypeof y.C?!1:J.C0?d[v]-d[v-1]:d[v]})}; ST=function(){this.T=new TR;this.Ek=this.WX=0;this.GK=new Au;this.Cy=this.G=-1;this.YB=1E3;this.rj=new TR([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.If=this.AY=-1}; VN=function(J,y){return F2P(J.T,y===void 0?!0:y)}; LD=function(J,y,v,d){var P=P===void 0?!1:P;v=qN(d,v);A3(J,y,v,{capture:P})}; W2=function(J,y){y=tu(y);return y===0?0:tu(J)/y}; tu=function(J){return Math.max(J.bottom-J.top,0)*Math.max(J.right-J.left,0)}; mwr=function(J,y){if(!J||!y)return!1;for(var v=0;J!==null&&v++<100;){if(J===y)return!0;try{if(J=J.parentElement||J){var d=Jb(J),P=d&&Yk(d),A=P&&P.frameElement;A&&(J=A)}}catch(T){break}}return!1}; BG3=function(J,y,v){if(!J||!y)return!1;y=ia(J.clone(),-y.left,-y.top);J=(y.left+y.right)/2;y=(y.top+y.bottom)/2;Y7(window.top)&&window.top&&window.top.document&&(window=window.top);if(!dc3())return!1;J=window.document.elementFromPoint(J,y);if(!J)return!1;y=(y=(y=Jb(v))&&y.defaultView&&y.defaultView.frameElement)&&mwr(y,J);var d=J===v;J=!d&&J&&cZ(J,function(P){return P===v}); return!(y||d||J)}; qt2=function(J,y,v,d){return NN().J?!1:U3(J)<=0||J.getHeight()<=0?!0:v&&d?Zj6(208,function(){return BG3(J,y,v)}):!1}; a$=function(J,y,v){g.u.call(this);this.position=rCT.clone();this.wB=this.uo();this.cD=-2;this.timeCreated=Date.now();this.cj=-1;this.Ww=y;this.z1=null;this.JD=!1;this.vS=null;this.opacity=-1;this.requestSource=v;this.pox=!1;this.LY=function(){}; this.Du=function(){}; this.W5=new iHc;this.W5.QS=J;this.W5.C=J;this.l7=!1;this.WE={GL:null,Ob:null};this.RH=!0;this.po=null;this.Ig=this.qp=!1;dO().L++;this.kH=this.Jn();this.yX=-1;this.hI=null;this.hasCompleted=this.uU=!1;this.Ik=new Gn;i3P(this.Ik);$wH(this);this.requestSource==1?FF(this.Ik,"od",1):FF(this.Ik,"od",0)}; $wH=function(J){J=J.W5.QS;var y;if(y=J&&J.getAttribute)y=/-[a-z]/.test("googleAvInapp")?!1:odP&&J.dataset?"googleAvInapp"in J.dataset:J.hasAttribute?J.hasAttribute("data-"+L0c()):!!J.getAttribute("data-"+L0c());y&&(NN().T=!0)}; D8=function(J,y){y!=J.Ig&&(J.Ig=y,J=NN(),y?J.L++:J.L>0&&J.L--)}; Csd=function(J,y){if(J.hI){if(y.getName()===J.hI.getName())return;J.hI.dispose();J.hI=null}y=y.create(J.W5.C,J.Ik,J.RD());if(y=y!=null&&y.observe()?y:null)J.hI=y}; hrm=function(J,y,v){if(!J.z1||J.Ww==-1||y.T===-1||J.z1.T===-1)return 0;J=y.T-J.z1.T;return J>v?0:J}; Ikm=function(J,y,v){if(J.hI){J.hI.yZ();var d=J.hI.K,P=d.W,A=P.C;if(d.L!=null){var T=d.J;J.vS=new g.N7(T.left-A.left,T.top-A.top)}A=J.Qp()?Math.max(d.C,d.V):d.C;T={};P.volume!==null&&(T.volume=P.volume);P=J.Lg(d);J.z1=d;J.Mx(A,y,v,!1,T,P,d.B)}}; pk6=function(J){if(J.JD&&J.po){var y=j4(J.Ik,"od")==1,v=NN().C,d=J.po,P=J.hI?J.hI.getName():"ns",A=J.vS,T=new g.Kn(U3(v),v.getHeight());v=J.Qp();J={ChB:P,vS:A,rAK:T,Qp:v,VM:J.kH.VM,YRk:y};if(y=d.T){y.yZ();P=y.K;A=P.W.C;var M=T=null;P.L!=null&&A&&(T=P.J,T=new g.N7(T.left-A.left,T.top-A.top),M=new g.Kn(A.right-A.left,A.bottom-A.top));P=v?Math.max(P.C,P.V):P.C;v={ChB:y.getName(),vS:T,rAK:M,Qp:v,YRk:!1,VM:P}}else v=null;v&&cCT(d,J,v)}}; Uw2=function(J,y,v){y&&(J.LY=y);v&&(J.Du=v)}; g.c2=function(){}; g.GR=function(J){return{value:J,done:!1}}; fkU=function(){this.W=this.C=this.J=this.T=this.V=0}; iI3=function(J){var y={};var v=g.Yy()-J.V;y=(y.ptlt=v,y);(v=J.T)&&(y.pnk=v);(v=J.J)&&(y.pnc=v);(v=J.W)&&(y.pnmm=v);(J=J.C)&&(y.pns=J);return y}; u73=function(){wV.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; bK=function(J){return HV(J.volume)&&J.volume>0}; F4=function(J,y,v,d){v=v===void 0?!0:v;d=d===void 0?function(){return!0}:d; return function(P){var A=P[J];if(Array.isArray(A)&&d(P))return HIT(A,y,v)}}; jT=function(J,y){return function(v){return y(v)?v[J]:void 0}}; Xk2=function(J){return function(y){for(var v=0;v0?A[P-1]+1:0,d+1).reduce(function(T,M){return T+M},0)})}; NGU=function(){this.T=this.C=""}; Rrc=function(){}; mA=function(J,y){var v={};if(J!==void 0)if(y!=null)for(var d in y){var P=y[d];d in Object.prototype||P!=null&&(v[d]=typeof P==="function"?P(J):J[P])}else g.xN(v,J);return v2(yN(new Ju,v))}; K2x=function(){var J={};this.T=(J.vs=[1,0],J.vw=[0,1],J.am=[2,2],J.a=[4,4],J.f=[8,8],J.bm=[16,16],J.b=[32,32],J.avw=[0,64],J.avs=[64,0],J.pv=[256,256],J.gdr=[0,512],J.p=[0,1024],J.r=[0,2048],J.m=[0,4096],J.um=[0,8192],J.ef=[0,16384],J.s=[0,32768],J.pmx=[0,16777216],J.mut=[33554432,33554432],J.umutb=[67108864,67108864],J.tvoff=[134217728,134217728],J);this.C={};for(var y in this.T)this.T[y][1]>0&&(this.C[y]=0);this.J=0}; B2=function(J,y){var v=J.T[y],d=v[1];J.J+=v[0];d>0&&J.C[y]==0&&(J.C[y]=1)}; zr6=function(J){var y=g.n_(J.T),v=0,d;for(d in J.C)g.cq(y,d)&&J.C[d]==1&&(v+=J.T[d][1],J.C[d]=2);return v}; kHr=function(J){var y=0,v;for(v in J.C){var d=J.C[v];if(d==1||d==2)y+=J.T[v][1]}return y}; q0=function(){this.C=this.T=0}; rJ=function(){ST.call(this);this.J=new Au;this.Vk=this.K=this.wj=0;this.B=-1;this.Ky=new Au;this.V=new Au;this.C=new TR;this.L=this.W=-1;this.zK=new Au;this.YB=2E3;this.cX=new q0;this.XW=new q0;this.ZB=new q0}; $g=function(J,y,v){var d=J.Vk;hn||v||J.B==-1||(d+=y-J.B);return d}; Edc=function(){this.J=!1}; o$=function(J,y){this.J=!1;this.W=J;this.K=y;this.V=0}; hu=function(J,y){o$.call(this,J,y);this.G=[]}; QIT=function(){}; I$=function(){}; pD=function(J,y,v,d){ZS.call(this,J,y,v,d)}; Ud=function(J,y,v){ZS.call(this,null,J,y,v);this.B=J.isActive();this.G=0}; fD=function(J){return[J.top,J.left,J.bottom,J.right]}; iK=function(J,y,v,d,P,A){A=A===void 0?new I$:A;a$.call(this,y,v,d);this.BI=P;this.dL=0;this.Sc={};this.YR=new K2x;this.Jz={};this.Av="";this.ZB=null;this.J9=!1;this.C=[];this.Jb=A.T();this.L=A.J();this.W=null;this.J=-1;this.Ek=this.K=void 0;this.Cy=this.zK=0;this.If=-1;this.YB=this.XW=!1;this.wj=this.B=this.T=this.AC=this.aG=0;new TR;this.cX=this.Vk=0;this.GK=-1;this.GY=0;this.G=g.$k;this.AY=[this.uo()];this.f8=2;this.He={};this.He.pause="p";this.He.resume="r";this.He.skip="s";this.He.mute="m";this.He.unmute= "um";this.He.exitfullscreen="ef";this.V=null;this.rj=this.Ky=!1;this.yl=Math.floor(Date.now()/1E3-1704067200);this.WX=0}; uK=function(J){J.hasCompleted=!0;J.GY!=0&&(J.GY=3)}; H2=function(J){return J===void 0?J:Number(J)?u5(J,3):0}; X4=function(J,y){return J.AY[y!=null&&yMath.max(1E4,J.J/3)?0:y);var v=J.G(J)||{};v=v.currentTime!==void 0?v.currentTime:J.zK;var d=v-J.zK,P=0;d>=0?(J.Cy+=y,J.cX+=Math.max(y-d,0),P=Math.min(d,J.Cy)):J.Vk+=Math.abs(d);d!=0&&(J.Cy=0);J.GK==-1&&d>0&&(J.GK=pV>=0?ol()-pV:-1);J.zK=v;return P}; Jyj=function(J,y){XI(J.L,function(v){return v.W==y.W})||J.L.push(y)}; yyR=function(J){var y=nD(J.Xs().C,1);return N0(J,y)}; N0=function(J,y,v){return y>=15E3?!0:J.XW?(v===void 0?0:v)?!0:J.J>0?y>=J.J/2:J.If>0?y>=J.If:!1:!1}; v3c=function(J){var y=u5(J.kH.VM,2),v=J.YR.J,d=J.kH,P=X4(J),A=H2(P.W),T=H2(P.L),M=H2(d.volume),n=u5(P.G,2),Y=u5(P.Cy,2),S=u5(d.VM,2),V=u5(P.AY,2),L=u5(P.If,2);d=u5(d.KN,2);var t=J.GC().clone().round();J=J.hI&&J.hI.J?(J.hI?J.hI.J:null).clone().round():null;P=VN(P,!1);return{Phk:y,nB:v,WS:A,sW:T,hs:M,p5:n,qX:Y,VM:S,tL:V,I6:L,KN:d,position:t,P3:J,EW:P}}; PgR=function(J,y){dVT(J.C,y,function(){return{Phk:0,nB:void 0,WS:-1,sW:-1,hs:-1,p5:-1,qX:-1,VM:-1,tL:-1,I6:-1,KN:-1,position:void 0,P3:void 0,EW:[]}}); J.C[y]=v3c(J)}; dVT=function(J,y,v){for(var d=J.length;d0?1:0;V.atos= lK(Y.C);V.ssb=lK(Y.rj,!1);V.amtos=F2P(Y.C,!1);V.uac=J.aG;V.vpt=Y.J.C;S=="nio"&&(V.nio=1,V.avms="nio");V.gmm="4";V.gdr=N0(J,Y.J.C,!0)?1:0;V.efpf=J.f8;if(S=="gsv"||S=="nis")S=J.hI,S.G>0&&(V.nnut=S.G);V.tcm=ZIP(J);V.nmt=J.Vk;V.bt=J.cX;V.pst=J.GK;V.vpaid=J.K;V.dur=J.J;V.vmtime=J.zK;V.is=J.YR.J;J.C.length>=1&&(V.i0=J.C[0].nB,V.a0=[J.C[0].hs],V.c0=[J.C[0].VM],V.ss0=[J.C[0].KN],S=J.C[0].position,A=J.C[0].P3,V.p0=S?fD(S):void 0,S&&A&&!fj(A,S)&&(V.cp0=fD(A)));J.C.length>=2&&(V.i1=J.C[1].nB,V.a1=zR(J.C[1].WS, J.C[1].hs,J.C[1].sW),V.c1=zR(J.C[1].p5,J.C[1].VM,J.C[1].qX),V.ss1=zR(J.C[1].tL,J.C[1].KN,J.C[1].I6),S=J.C[1].position,A=J.C[1].P3,V.p1=S?fD(S):void 0,S&&A&&!fj(A,S)&&(V.cp1=fD(A)),V.mtos1=J.C[1].EW);J.C.length>=3&&(V.i2=J.C[2].nB,V.a2=zR(J.C[2].WS,J.C[2].hs,J.C[2].sW),V.c2=zR(J.C[2].p5,J.C[2].VM,J.C[2].qX),V.ss2=zR(J.C[2].tL,J.C[2].KN,J.C[2].I6),S=J.C[2].position,A=J.C[2].P3,V.p2=S?fD(S):void 0,S&&A&&!fj(A,S)&&(V.cp2=fD(A)),V.mtos2=J.C[2].EW);J.C.length>=4&&(V.i3=J.C[3].nB,V.a3=zR(J.C[3].WS,J.C[3].hs, J.C[3].sW),V.c3=zR(J.C[3].p5,J.C[3].VM,J.C[3].qX),V.ss3=zR(J.C[3].tL,J.C[3].KN,J.C[3].I6),S=J.C[3].position,A=J.C[3].P3,V.p3=S?fD(S):void 0,S&&A&&!fj(A,S)&&(V.cp3=fD(A)),V.mtos3=J.C[3].EW);V.cs=kHr(J.YR);y&&(V.ic=zr6(J.YR),V.dvpt=Y.J.T,V.dvs=Yg(Y.T,.5),V.dfvs=Yg(Y.T,1),V.davs=Yg(Y.C,.5),V.dafvs=Yg(Y.C,1),v&&(Y.J.T=0,jIH(Y.T),jIH(Y.C)),J.zy()&&(V.dtos=Y.wj,V.dav=Y.K,V.dtoss=J.dL+1,v&&(Y.wj=0,Y.K=0,J.dL++)),V.dat=Y.V.T,V.dft=Y.zK.T,v&&(Y.V.T=0,Y.zK.T=0));V.ps=[M.V.width,M.V.height];V.bs=[U3(M.C),M.C.getHeight()]; V.scs=[M.W.width,M.W.height];V.dom=M.domain;J.AC&&(V.vds=J.AC);if(J.L.length>0||J.Jb)y=g.rV(J.L),J.Jb&&y.push(J.Jb),V.pings=g.x7(y,function(L){return L.toString()}); y=g.x7(g.eT(J.L,function(L){return L.L()}),function(L){return L.getId()}); FT3(y);V.ces=y;J.T&&(V.vmer=J.T);J.B&&(V.vmmk=J.B);J.wj&&(V.vmiec=J.wj);V.avms=J.hI?J.hI.getName():"ns";J.hI&&g.xN(V,J.hI.vQ());d?(V.c=u5(J.kH.VM,2),V.ss=u5(J.kH.KN,2)):V.tth=ol()-M6x;V.mc=u5(Y.Cy,2);V.nc=u5(Y.G,2);V.mv=H2(Y.L);V.nv=H2(Y.W);V.lte=u5(J.cD,2);d=X4(J,P);VN(Y);V.qmtos=VN(d);V.qnc=u5(d.G,2);V.qmv=H2(d.L);V.qnv=H2(d.W);V.qas=d.W>0?1:0;V.qi=J.Av;V.avms||(V.avms="geo");V.psm=Y.cX.C;V.psv=Y.cX.getValue();V.psfv=Y.XW.getValue();V.psa=Y.ZB.getValue();n=UjU(n.Ik);n.length&&(V.veid=n);J.V&&g.xN(V, iI3(J.V));V.avas=J.PG();V.vs=J.BJ();V.co=n3m(J);V.tm=Y.WX;V.tu=Y.Ek;return V}; AyP=function(J,y){if(g.cq(sEP,y))return!0;var v=J.Sc[y];return v!==void 0?(J.Sc[y]=!0,!v):!1}; n3m=function(J){var y=J.WX.toString(10).padStart(2,"0");y=""+J.yl+y;J.WX<99&&J.WX++;return y}; SfH=function(){this.C={};var J=Yk();kg(this,J,document);var y=Yfc();try{if("1"==y){for(var v=J.parent;v!=J.top;v=v.parent)kg(this,v,v.document);kg(this,J.top,J.top.document)}}catch(d){}}; Yfc=function(){var J=document.documentElement;try{if(!Y7(Yk().top))return"2";var y=[],v=Yk(J.ownerDocument);for(J=v;J!=v.top;J=J.parent)if(J.frameElement)y.push(J.frameElement);else break;return y&&y.length!=0?"1":"0"}catch(d){return"2"}}; kg=function(J,y,v){LD(v,"mousedown",function(){return V6r(J)},301); LD(y,"scroll",function(){return LGv(J)},302); LD(v,"touchmove",function(){return t6d(J)},303); LD(v,"mousemove",function(){return WGc(J)},304); LD(v,"keydown",function(){return aV3(J)},305)}; V6r=function(J){g.Js(J.C,function(y){y.J>1E5||++y.J})}; LGv=function(J){g.Js(J.C,function(y){y.C>1E5||++y.C})}; t6d=function(J){g.Js(J.C,function(y){y.C>1E5||++y.C})}; aV3=function(J){g.Js(J.C,function(y){y.T>1E5||++y.T})}; WGc=function(J){g.Js(J.C,function(y){y.W>1E5||++y.W})}; xVc=function(){this.C=[];this.T=[]}; Ed=function(J,y){return g.On(J.C,function(v){return v.Av==y})}; Odv=function(J,y){return y?g.On(J.C,function(v){return v.W5.QS==y}):null}; g3x=function(J,y){return g.On(J.T,function(v){return v.CR()==2&&v.Av==y})}; Z8=function(){var J=QN;return J.C.length==0?J.T:J.T.length==0?J.C:g.qb(J.T,J.C)}; DVj=function(J,y){J=y.CR()==1?J.C:J.T;var v=aC(J,function(d){return d==y}); return v!=-1?(J.splice(v,1),y.hI&&y.hI.unobserve(),y.dispose(),!0):!1}; cyP=function(J){var y=QN;if(DVj(y,J)){switch(J.CR()){case 0:var v=function(){return null}; case 2:v=function(){return g3x(y,J.Av)}; break;case 1:v=function(){return Ed(y,J.Av)}}for(var d=v();d;d=v())DVj(y,d)}}; GJj=function(J){var y=QN;J=g.eT(J,function(v){return!Odv(y,v.W5.QS)}); y.C.push.apply(y.C,g.r(J))}; bdH=function(J){var y=[];g.En(J,function(v){XI(QN.C,function(d){return d.W5.QS===v.W5.QS&&d.Av===v.Av})||(QN.C.push(v),y.push(v))})}; wJ=function(){this.C=this.T=null}; FGR=function(J,y){function v(d,P){y(d,P)} if(J.T==null)return!1;J.C=g.On(J.T,function(d){return d!=null&&d.EG()}); J.C&&(J.C.init(v)?Ybm(J.C.C):y(J.C.C.Bd(),J.C));return J.C!=null}; JJ=function(J){J=jE3(J);wO.call(this,J.length?J[J.length-1]:new kn(qi,0));this.J=J;this.T=null}; jE3=function(J){if(!J.length)return[];J=(0,g.eT)(J,function(v){return v!=null&&v.Pt()}); for(var y=1;yv.time?y:v},J[0])}; Pt=function(J){J=J===void 0?qi:J;wO.call(this,new kn(J,2))}; AJ=function(){var J=qfT();kn.call(this,qi.top,J,"geo")}; qfT=function(){dO();var J=NN();return J.J||J.T?0:2}; ryd=function(){}; TT=function(){this.done=!1;this.C={Om:0,GV:0,Spk:0,DT:0,UE:-1,f$:0,L$:0,Vv:0,lWy:0};this.V=null;this.L=!1;this.J=null;this.G=0;this.T=new zG(this)}; MT=function(){var J=lc;J.L||(J.L=!0,$V3(J,function(){return J.W.apply(J,g.r(g.iR.apply(0,arguments)))}),J.W())}; o32=function(){Dr(ryd);var J=Dr(wJ);J.C!=null&&J.C.C?Ybm(J.C.C):NN().update(qi)}; ny=function(J,y,v){if(!J.done&&(J.T.cancel(),y.length!=0)){J.J=null;try{o32();var d=ol();dO().V=d;if(Dr(wJ).C!=null)for(var P=0;P=0?ol()-CV:-1,M=ol();P.C.UE==-1&&(T=M);var n=NN(),Y=dO(),S=e4(Y.Ik),V=Z8();try{if(V.length>0){var L=n.C;L&&(S.bs=[U3(L),L.getHeight()]);var t=n.V;t&&(S.ps=[t.width,t.height]);qi.screen&&(S.scs=[qi.screen.width,qi.screen.height])}else S.url=encodeURIComponent(qi.location.href.substring(0,512)),A.referrer&&(S.referrer=encodeURIComponent(A.referrer.substring(0,512))); S.tt=T;S.pt=CV;S.bin=Y.T;qi.google_osd_load_pub_page_exp!==void 0&&(S.olpp=qi.google_osd_load_pub_page_exp);S.deb=[1,P.C.Om,P.C.GV,P.C.DT,P.C.UE,0,P.T.T,P.C.f$,P.C.L$,P.C.Vv,P.C.lWy,-1].join(";");S.tvt=h83(P,M);n.T&&(S.inapp=1);if(qi!==null&&qi!=qi.top){V.length>0&&(S.iframe_loc=encodeURIComponent(qi.location.href.substring(0,512)));var W=n.G;S.is=[U3(W),W.getHeight()]}}catch(c){S.error=1}lc.J=S}L=g.WL(lc.J);t=dO().C;j4(t.J,"prf")==1?(W=new yQ,P=t.C,A=0,P.C>-1&&(A=P.J.C.now()-P.C),W=nd(W,1,nI(P.W+ A),0),P=t.C,W=nd(W,5,LI(P.C>-1?P.T+1:P.T),0),W=nd(W,2,GH(t.T.C.J()),"0"),W=nd(W,3,GH(t.T.C.T()),"0"),t=nd(W,4,GH(t.T.C.C()),"0"),W={},t=(W.pf=g.eB(t.J()),W)):t={};g.xN(L,t);g.xN(y,d,v,L,J())}])}; UVd=function(){var J=p33||qi;if(!J)return"";var y=[];if(!J.location||!J.location.href)return"";y.push("url="+encodeURIComponent(J.location.href.substring(0,512)));J.document&&J.document.referrer&&y.push("referrer="+encodeURIComponent(J.document.referrer.substring(0,512)));return y.join("&")}; sE=function(){var J="youtube.player.web_20250625_21_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250625_21_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250625_21_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250625_21_RC00".match(/_(\d{8})_\d+_RC\d+$/),y;if(((y=J)==null?void 0:y.length)==2)return J[1];J="youtube.player.web_20250625_21_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var v;return((v=J)==null?void 0:v.length)==3?"20"+J[1]+J[2]:null}; fV3=function(){return"av.default_js".includes("ima_html5_sdk")?{Yf:"ima",Uj:null}:"av.default_js".includes("ima_native_sdk")?{Yf:"nima",Uj:null}:"av.default_js".includes("admob-native-video-javascript")?{Yf:"an",Uj:null}:"youtube.player.web_20250625_21_RC00".includes("cast_js_sdk")?{Yf:"cast",Uj:sE()}:"youtube.player.web_20250625_21_RC00".includes("youtube.player.web")?{Yf:"yw",Uj:sE()}:"youtube.player.web_20250625_21_RC00".includes("outstream_web_client")?{Yf:"out",Uj:sE()}:"youtube.player.web_20250625_21_RC00".includes("drx_rewarded_web")? {Yf:"r",Uj:sE()}:"youtube.player.web_20250625_21_RC00".includes("gam_native_web_video")?{Yf:"n",Uj:sE()}:"youtube.player.web_20250625_21_RC00".includes("admob_interstitial_video")?{Yf:"int",Uj:sE()}:{Yf:"j",Uj:null}}; Vc=function(J,y){var v={sv:"967"};YE!==null&&(v.v=YE);v.cb=id3;v.nas=QN.C.length;v.msg=J;y!==void 0&&(J=ucd(y))&&(v.e=S8[J]);return v}; Ly=function(J){return BL(J,"custom_metric_viewable")}; ucd=function(J){var y=Ly(J)?"custom_metric_viewable":J.toLowerCase();return S4(R$,function(v){return v==y})}; HdR=function(){this.C=void 0;this.T=!1;this.J=0;this.W=-1;this.V="tos"}; R8d=function(J){try{var y=J.split(",");return y.length>g.n_(X3T).length?null:gp(y,function(v,d){d=d.toLowerCase().split("=");if(d.length!=2||NgU[d[0]]===void 0||!NgU[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");v[d[0]]=d[1];return v},{})}catch(v){return null}}; KG3=function(J,y){if(J.C==void 0)return 0;switch(J.V){case "mtos":return J.T?sd(y.C,J.C):sd(y.T,J.C);case "tos":return J.T?nD(y.C,J.C):nD(y.T,J.C)}return 0}; tJ=function(J,y,v,d){o$.call(this,y,d);this.G=J;this.B=v}; Wt=function(){}; aH=function(J){o$.call(this,"fully_viewable_audible_half_duration_impression",J)}; xE=function(J){this.C=J}; OE=function(J,y){o$.call(this,J,y)}; g$=function(J){hu.call(this,"measurable_impression",J)}; Dz=function(){xE.apply(this,arguments)}; ct=function(J,y,v){Ud.call(this,J,y,v)}; GT=function(J){J=J===void 0?qi:J;wO.call(this,new kn(J,2))}; bc=function(J,y,v){Ud.call(this,J,y,v)}; FZ=function(J){J=J===void 0?qi:J;wO.call(this,new kn(J,2))}; j8=function(){kn.call(this,qi,2,"mraid");this.cX=0;this.Cy=this.AY=!1;this.G=null;this.T=v7x(this.J);this.W.C=new pj(0,0,0,0);this.WX=!1}; e8=function(J,y,v){J.Ud("addEventListener",y,v)}; QEU=function(J){dO().W=!!J.Ud("isViewable");e8(J,"viewableChange",z8m);J.Ud("getState")==="loading"?e8(J,"ready",kJj):E33(J)}; E33=function(J){typeof J.T.oB.AFMA_LIDAR==="string"?(J.AY=!0,Zdr(J)):(J.T.compatibility=3,J.G="nc",J.fail("w"))}; Zdr=function(J){J.Cy=!1;var y=j4(dO().Ik,"rmmt")==1,v=!!J.Ud("isViewable");(y?!v:1)&&Gs().setTimeout(rO(524,function(){J.Cy||(w3j(J),$n(540,Error()),J.G="mt",J.fail("w"))}),500); JqP(J);e8(J,J.T.oB.AFMA_LIDAR,yqv)}; JqP=function(J){var y=j4(dO().Ik,"sneio")==1,v=J.T.oB.AFMA_LIDAR_EXP_1!==void 0,d=J.T.oB.AFMA_LIDAR_EXP_2!==void 0;(y=y&&d)&&(J.T.oB.AFMA_LIDAR_EXP_2=!0);v&&(J.T.oB.AFMA_LIDAR_EXP_1=!y)}; w3j=function(J){J.Ud("removeEventListener",J.T.oB.AFMA_LIDAR,yqv);J.AY=!1}; vQd=function(J,y){if(J.Ud("getState")==="loading")return new g.Kn(-1,-1);y=J.Ud(y);if(!y)return new g.Kn(-1,-1);J=parseInt(y.width,10);y=parseInt(y.height,10);return isNaN(J)||isNaN(y)?new g.Kn(-1,-1):new g.Kn(J,y)}; kJj=function(){try{var J=Dr(j8);J.Ud("removeEventListener","ready",kJj);E33(J)}catch(y){$n(541,y)}}; yqv=function(J,y){try{var v=Dr(j8);v.Cy=!0;var d=J?new pj(J.y,J.x+J.width,J.y+J.height,J.x):new pj(0,0,0,0);var P=ol(),A=KV();var T=new U1(P,A,v);T.C=d;T.volume=y;v.rO(T)}catch(M){$n(542,M)}}; z8m=function(J){var y=dO(),v=Dr(j8);J&&!y.W&&(y.W=!0,v.WX=!0,v.G&&v.fail("w",!0))}; m$=function(){this.isInitialized=!1;this.C=this.T=null;var J={};this.G=(J.start=this.YE,J.firstquartile=this.GF,J.midpoint=this.Zd,J.thirdquartile=this.U0,J.complete=this.Hf,J.error=this.Xm,J.pause=this.ZN,J.resume=this.bM,J.skip=this.Bf,J.viewable_impression=this.aD,J.mute=this.Ta,J.unmute=this.Ta,J.fullscreen=this.N7,J.exitfullscreen=this.O0,J.fully_viewable_audible_half_duration_impression=this.aD,J.measurable_impression=this.aD,J.abandon=this.ZN,J.engagedview=this.aD,J.impression=this.aD,J.creativeview= this.aD,J.progress=this.Ta,J.custom_metric_viewable=this.aD,J.bufferstart=this.ZN,J.bufferfinish=this.bM,J.audio_measurable=this.aD,J.audio_audible=this.aD,J);J={};this.B=(J.overlay_resize=this.RZ,J.abandon=this.hn,J.close=this.hn,J.collapse=this.hn,J.overlay_unmeasurable_impression=function(y){return KD(y,"overlay_unmeasurable_impression",KV())},J.overlay_viewable_immediate_impression=function(y){return KD(y,"overlay_viewable_immediate_impression",KV())},J.overlay_unviewable_impression=function(y){return KD(y, "overlay_unviewable_impression",KV())},J.overlay_viewable_end_of_session_impression=function(y){return KD(y,"overlay_viewable_end_of_session_impression",KV())},J); dO().T=3;dUr(this);this.J=null}; Bt=function(J,y,v,d){J=J.vM(null,d,!0,y);J.W=v;GJj([J]);return J}; PNx=function(J,y,v){rcm(y);var d=J.C;g.En(y,function(P){var A=g.x7(P.criteria,function(T){var M=R8d(T);if(M==null)T=null;else if(T=new HdR,M.visible!=null&&(T.C=M.visible/100),M.audible!=null&&(T.T=M.audible==1),M.time!=null){var n=M.timetype=="mtos"?"mtos":"tos",Y=u6T(M.time,"%")?"%":"ms";M=parseInt(M.time,10);Y=="%"&&(M/=100);T.setTime(M,Y,n)}return T}); XI(A,function(T){return T==null})||Jyj(v,new tJ(P.id,P.event,A,d))})}; Aqv=function(){var J=[],y=dO();J.push(Dr(AJ));j4(y.Ik,"mvp_lv")&&J.push(Dr(j8));y=[new GT,new FZ];y.push(new JJ(J));y.push(new Pt(qi));return y}; TX3=function(J){if(!J.isInitialized){J.isInitialized=!0;try{var y=ol(),v=dO(),d=NN();CV=y;v.J=79463069;J.T!=="o"&&(p33=Asx(qi));if(WpR()){lc.C.GV=0;lc.C.UE=ol()-y;var P=Aqv(),A=Dr(wJ);A.T=P;FGR(A,function(){qT()})?lc.done||(Cg3(),E1(A.C.C,J),MT()):d.J?qT():MT()}else r$=!0}catch(T){throw QN.reset(),T; }}}; UE=function(J){lc.T.cancel();$E=J;lc.done=!0}; fy=function(J){if(J.T)return J.T;var y=Dr(wJ).C;if(y)switch(y.getName()){case "nis":J.T="n";break;case "gsv":J.T="m"}J.T||(J.T="h");return J.T}; ic=function(J,y,v){if(J.C==null)return y.AC|=4,!1;J=lA3(J.C,v,y);y.AC|=J;return J==0}; qT=function(){var J=[new Pt(qi)],y=Dr(wJ);y.T=J;FGR(y,function(){UE("i")})?lc.done||(Cg3(),MT()):UE("i")}; Mtv=function(J,y){if(!J.J9){var v=KD(J,"start",KV());v=J.BI.C(v).C;var d={id:"lidarv"};d.r=y;d.sv="967";YE!==null&&(d.v=YE);VQ(v,function(P,A){return d[P]=P=="mtos"||P=="tos"?A:encodeURIComponent(A)}); y=UVd();VQ(y,function(P,A){return d[P]=encodeURIComponent(A)}); y="//pagead2.googlesyndication.com/pagead/gen_204?"+v2(yN(new Ju,d));gd3(y);J.J9=!0}}; uc=function(J,y,v){ny(lc,[J],!KV());PgR(J,v);v!=4&&dVT(J.AY,v,J.uo);return KD(J,y,KV())}; dUr=function(J){IVU(function(){var y=nQU();J.T!=null&&(y.sdk=J.T);var v=Dr(wJ);v.C!=null&&(y.avms=v.C.getName());return y})}; sAv=function(J,y,v,d){var P=Odv(QN,v);P!==null&&P.Av!==y&&(J.S9(P),P=null);P||(y=J.vM(v,ol(),!1,y),QN.T.length==0&&(dO().J=79463069),bdH([y]),P=y,P.W=fy(J),d&&(P.ZB=d));return P}; Y_r=function(J,y){var v=J[y];v!==void 0&&v>0&&(J[y]=Math.floor(v*1E3))}; nQU=function(){var J=NN(),y={},v={},d={};return Object.assign({},(y.sv="967",y),YE!==null&&(v.v=YE,v),(d["if"]=J.J?"1":"0",d.nas=String(QN.C.length),d))}; Ht=function(J){o$.call(this,"audio_audible",J)}; XZ=function(J){hu.call(this,"audio_measurable",J)}; NT=function(){xE.apply(this,arguments)}; RH=function(){}; S_P=function(J){this.C=J}; lA3=function(J,y,v){J=J.T();if(typeof J==="function"){var d={};var P={};d=Object.assign({},YE!==null&&(d.v=YE,d),(P.sv="967",P.cb=id3,P.e=Vtj(y),P));P=KD(v,y,KV());g.xN(d,P);v.Jz[y]=P;d=v.CR()==2?OIH(d).join("&"):v.BI.C(d).C;try{return J(v.Av,d,y),0}catch(A){return 2}}else return 1}; Vtj=function(J){var y=Ly(J)?"custom_metric_viewable":J;J=S4(R$,function(v){return v==y}); return S8[J]}; Ky=function(){m$.call(this);this.L=null;this.V=!1;this.W="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; LFj=function(J,y,v){v=v.opt_configurable_tracking_events;J.C!=null&&Array.isArray(v)&&PNx(J,v,y)}; ttU=function(J,y,v){var d=Ed(QN,y);d||(d=v.opt_nativeTime||-1,d=Bt(J,y,fy(J),d),v.opt_osdId&&(d.ZB=v.opt_osdId));return d}; WFT=function(J,y,v){var d=Ed(QN,y);d||(d=Bt(J,y,"n",v.opt_nativeTime||-1));return d}; aAU=function(J,y){var v=Ed(QN,y);v||(v=Bt(J,y,"h",-1));return v}; xUH=function(J){dO();switch(fy(J)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; DUc=function(J,y,v,d){v=v===void 0?{}:v;var P={};g.xN(P,{opt_adElement:void 0,opt_fullscreen:void 0},v);var A=J.p7(y,v);v=A?A.BI:J.rG();if(P.opt_bounds)return v.C(Vc("ol",d));if(d!==void 0)if(ucd(d)!==void 0)if(r$)J=Vc("ue",d);else if(TX3(J),$E=="i")J=Vc("i",d),J["if"]=0;else if(y=J.p7(y,P)){b:{$E=="i"&&(y.l7=!0);A=P.opt_fullscreen;A!==void 0&&D8(y,!!A);var T;if(A=!NN().T)(A=$N(g.IM(),"CrKey")&&!($N(g.IM(),"CrKey")&&$N(g.IM(),"SmartSpeaker"))||$N(g.IM(),"PlayStation")||$N(g.IM(),"Roku")||lrm()||$N(g.IM(), "Xbox"))||(A=g.IM(),A=$N(A,"AppleTV")||$N(A,"Apple TV")||$N(A,"CFNetwork")||$N(A,"tvOS")),A||(A=g.IM(),A=$N(A,"sdk_google_atv_x86")||$N(A,"Android TV")),A=!A;A&&(Gs(),A=Ts(Rl)===0);if(T=A){switch(y.CR()){case 1:Mtv(y,"pv");break;case 2:J.qt(y)}UE("pv")}A=d.toLowerCase();if(T=!T)T=j4(dO().Ik,"ssmol")&&A==="loaded"?!1:g.cq(Ol3,A);if(T&&y.GY==0){$E!="i"&&(lc.done=!1);T=P!==void 0?P.opt_nativeTime:void 0;pV=T=typeof T==="number"?T:ol();y.JD=!0;var M=KV();y.GY=1;y.Sc={};y.Sc.start=!1;y.Sc.firstquartile= !1;y.Sc.midpoint=!1;y.Sc.thirdquartile=!1;y.Sc.complete=!1;y.Sc.resume=!1;y.Sc.pause=!1;y.Sc.skip=!1;y.Sc.mute=!1;y.Sc.unmute=!1;y.Sc.viewable_impression=!1;y.Sc.measurable_impression=!1;y.Sc.fully_viewable_audible_half_duration_impression=!1;y.Sc.fullscreen=!1;y.Sc.exitfullscreen=!1;y.dL=0;M||(y.Xs().B=T);ny(lc,[y],!M)}(T=y.He[A])&&B2(y.YR,T);j4(dO().Ik,"fmd")||g.cq(gQU,A)&&y.Jb&&y.Jb.T(y,null);switch(y.CR()){case 1:var n=Ly(A)?J.G.custom_metric_viewable:J.G[A];break;case 2:n=J.B[A]}if(n&&(d=n.call(J, y,P,d),j4(dO().Ik,"fmd")&&g.cq(gQU,A)&&y.Jb&&y.Jb.T(y,null),d!==void 0)){P=Vc(void 0,A);g.xN(P,d);d=P;break b}d=void 0}y.GY==3&&J.S9(y);J=d}else J=Vc("nf",d);else J=void 0;else r$?J=Vc("ue"):A?(J=Vc(),g.xN(J,Tgc(A,!0,!1,!1))):J=Vc("nf");return typeof J==="string"?v.C():v.C(J)}; cqR=function(J,y){y&&(J.W=y)}; Gz6=function(J){var y={};return y.viewability=J.C,y.googleViewability=J.T,y}; blP=function(J,y,v){v=v===void 0?{}:v;J=DUc(Dr(Ky),y,v,J);return Gz6(J)}; zT=function(J){var y=g.iR.apply(1,arguments).filter(Boolean).join("&");if(!y)return J;var v=J.match(/[?&]adurl=/);return v?J.slice(0,v.index+1)+y+"&"+J.slice(v.index+1):J+(J.indexOf("?")<0?"?":"&")+y}; kE=function(J,y){return y?"&"+J+"="+encodeURIComponent(y):""}; FFj=function(J){var y=J.url;J=J.TOk;this.T=y;this.W=J;this.J=(new Date).getTime()-17040672E5;this.C={};for(var v=/[?&]([^&=]+)=([^&]*)/g;J=v.exec(y);)this.C[J[1]]=J[2]}; jAT=function(J){J=J.W;if(!J)return"";var y=kE("uap",J.platform)+kE("uapv",J.platformVersion)+kE("uafv",J.uaFullVersion)+kE("uaa",J.architecture)+kE("uam",J.model)+kE("uab",J.bitness);J.fullVersionList&&(y+="&uafvl="+encodeURIComponent(J.fullVersionList.map(function(v){return encodeURIComponent(v.brand)+";"+encodeURIComponent(v.version)}).join("|"))); J.wow64!=null&&(y+="&uaw="+Number(J.wow64));return y.slice(1)}; BX3=function(J,y,v,d,P){var A=window;var T=T===void 0?!1:T;var M;v?M=(T===void 0?0:T)?"//ep1.adtrafficquality.google/bg/"+r0(v)+".js":"//pagead2.googlesyndication.com/bg/"+r0(v)+".js":M="";T=T===void 0?!1:T;v=A.document;var n={};y&&(n._scs_=y);n._bgu_=M;n._bgp_=d;n._li_="v_h.3.0.0.0";P&&(n._upb_=P);(y=A.GoogleTyFxhY)&&typeof y.push=="function"||(y=A.GoogleTyFxhY=[]);y.push(n);y=ds(v).createElement("SCRIPT");y.type="text/javascript";y.async=!0;J=(T===void 0?0:T)?rO6(ejU,r0(J)+".js"):rO6(mUU,r0(J)+ ".js");g.DN(y,J);(A=(A.GoogleTyFxhYEET||{})[y.src])?A():v.getElementsByTagName("head")[0].appendChild(y)}; q_m=function(){try{var J,y;return!!((J=window)==null?0:(y=J.top)==null?0:y.location.href)&&!1}catch(v){return!0}}; EE=function(J,y,v){v=v===void 0?Error():v;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=J;y+=":";v instanceof Error?(this.message=y+v.message,this.stack=v.stack||""):(this.message=y+String(v),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; Zz=function(){var J=rqP();J=J===void 0?"bevasrsg":J;return new Promise(function(y){var v=window===window.top?window:q_m()?window:window.top,d=v[J],P;((P=d)==null?0:P.bevasrs)?y(new Qc(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),v[J]=d),d.nqfbel.push(function(A){y(new Qc(A))}))})}; $U3=function(J){var y={c:J.XK,e:J.o9,mc:J.hJ,me:J.xl};J.wO&&(y.co={c:J.wO.wG,a:J.wO.Dk,s:J.wO.T7});return y}; w$=function(J){g.u.call(this);this.wpc=J}; Qc=function(J){g.u.call(this);var y=this;this.U8=J;this.J="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.T=void 0;this.qZ=this.U8.p;this.W=this.Ip.bind(this);this.addOnDisposeCallback(function(){return void oQm(y)})}; CNR=function(J){var y;return g.f(function(v){if(v.T==1){if(!J.U8.wpc)throw new EE(30,"NWA");return J.C?v.return(J.C):g.h(v,J.U8.wpc(),2)}y=v.C;J.C=new w$(y);return v.return(J.C)})}; oQm=function(J){J.T!==void 0&&(J.J.forEach(function(y){var v;(v=J.T)==null||v.removeEventListener(y,J.W)}),J.T=void 0)}; hj3=function(J){var y=y===void 0?49:y;var v=[];gg(J,Jt,6).forEach(function(d){mG(d,2)<=y&&v.push(mG(d,1))}); return v}; IA6=function(J){var y=y===void 0?49:y;var v=[];gg(J,Jt,6).forEach(function(d){mG(d,2)>y&&v.push(mG(d,1))}); return v}; poj=function(J){J.then(function(){},function(){})}; yB=function(){g.u.apply(this,arguments);this.W=1;this[UU2]=this.dispose}; va=function(J){return{fieldType:2,fieldName:J}}; g.dK=function(J){return{fieldType:3,fieldName:J}}; fA3=function(J){this.C=J;J.lf("/client_streamz/bg/frs",g.dK("mk"))}; ilc=function(J){this.C=J;J.lf("/client_streamz/bg/wrl",g.dK("mn"),va("ac"),va("sc"),g.dK("rk"),g.dK("mk"))}; uv3=function(J){this.C=J;J.k$("/client_streamz/bg/ec",g.dK("en"),g.dK("mk"))}; Hld=function(J){this.C=J;J.lf("/client_streamz/bg/el",g.dK("en"),g.dK("mk"))}; Xo2=function(J){this.C=J;J.k$("/client_streamz/bg/cec",va("ec"),g.dK("mk"))}; NX6=function(J){this.C=J;J.k$("/client_streamz/bg/po/csc",va("cs"),g.dK("mk"))}; Rjx=function(J){this.C=J;J.k$("/client_streamz/bg/po/ctav",g.dK("av"),g.dK("mk"))}; KFr=function(J){this.C=J;J.k$("/client_streamz/bg/po/cwsc",g.dK("su"),g.dK("mk"))}; zjv=function(J){this.n8=X7(J)}; kzc=function(J,y){return B0H(J,y,JgU)}; Pa=function(J){this.n8=X7(J)}; At=function(J){this.n8=X7(J)}; TL=function(J){this.n8=X7(J)}; lM=function(J){this.n8=X7(J)}; Mm=function(J){this.n8=X7(J)}; nk=function(J){this.n8=X7(J)}; EQ3=function(J){this.n8=X7(J)}; wor=function(J){var y=new nk;y=hy(y,1,J.T);var v=QAx(J);y=B0H(y,v,SS6);v=[];for(var d=[],P=g.D(J.C.keys()),A=P.next();!A.done;A=P.next())d.push(A.value.split(","));for(P=0;P>>31)&4294967295;V=P[0];var W=P[1],c=P[2],b=P[3],B=P[4];for(t=0;t<80;t++){if(t<40)if(t<20){var q=b^W&(c^b);var C=1518500249}else q=W^c^b,C=1859775393;else t<60?(q=W&c|b&(W|c),C=2400959708):(q=W^c^b,C=3395469782);q=((V<<5|V>>>27)&4294967295)+q+B+C+L[t]&4294967295;B=b;b=c;c=(W<<30|W>>>2)&4294967295;W=V;V=q}P[0]=P[0]+V&4294967295;P[1]=P[1]+W&4294967295;P[2]= P[2]+c&4294967295;P[3]=P[3]+b&4294967295;P[4]=P[4]+B&4294967295} function v(V,L){if(typeof V==="string"){V=unescape(encodeURIComponent(V));for(var t=[],W=0,c=V.length;W=56;t--)A[t]=L&255,L>>>=8;y(A);for(t=L=0;t<5;t++)for(var W=24;W>=0;W-=8)V[L++]=P[t]>>W&255;return V} for(var P=[],A=[],T=[],M=[128],n=1;n<64;++n)M[n]=0;var Y,S;J();return{reset:J,update:v,digest:d,Ui:function(){for(var V=d(),L="",t=0;t1)));T=T.next)P||(A=T);P&&(v.C==0&&d==1?kG6(v,y):(A?(d=A,d.next==v.W&&(v.W=d),d.next=d.next.next):Enm(v),QlU(v,P,3,y)))}J.J=null}else jQ(J,3,y)}; rR=function(J,y){J.T||J.C!=2&&J.C!=3||ZVc(J);J.W?J.W.next=y:J.T=y;J.W=y}; wVP=function(J,y,v,d){var P=ma(null,null,null);P.C=new g.eQ(function(A,T){P.J=y?function(M){try{var n=y.call(d,M);A(n)}catch(Y){T(Y)}}:A; P.T=v?function(M){try{var n=v.call(d,M);n===void 0&&M instanceof oJ?T(M):A(n)}catch(Y){T(Y)}}:T}); P.C.J=J;rR(J,P);return P.C}; jQ=function(J,y,v){J.C==0&&(J===v&&(y=3,v=new TypeError("Promise cannot resolve to itself")),J.C=1,NOm(v,J.SRy,J.LlB,J)||(J.G=v,J.C=y,J.J=null,ZVc(J),y!=3||v instanceof oJ||JuR(J,v)))}; NOm=function(J,y,v,d){if(J instanceof g.eQ)return zox(J,y,v,d),!0;if(J)try{var P=!!J.$goog_Thenable}catch(T){P=!1}else P=!1;if(P)return J.then(y,v,d),!0;if(g.AO(J))try{var A=J.then;if(typeof A==="function")return yuc(J,A,y,v,d),!0}catch(T){return v.call(d,T),!0}return!1}; yuc=function(J,y,v,d,P){function A(n){M||(M=!0,d.call(P,n))} function T(n){M||(M=!0,v.call(P,n))} var M=!1;try{y.call(J,T,A)}catch(n){A(n)}}; ZVc=function(J){J.L||(J.L=!0,g.FC(J.bZ,J))}; Enm=function(J){var y=null;J.T&&(y=J.T,J.T=y.next,y.next=null);J.T||(J.W=null);return y}; QlU=function(J,y,v,d){if(v==3&&y.T&&!y.W)for(;J&&J.V;J=J.J)J.V=!1;if(y.C)y.C.J=null,vgU(y,v,d);else try{y.W?y.J.call(y.context):vgU(y,v,d)}catch(P){d02.call(null,P)}ISm(XVv,y)}; vgU=function(J,y,v){y==2?J.J.call(J.context,v):J.T&&J.T.call(J.context,v)}; JuR=function(J,y){J.V=!0;g.FC(function(){J.V&&d02.call(null,y)})}; oJ=function(J){LH.call(this,J)}; g.Cb=function(J,y){g.Y1.call(this);this.F1=J||1;this.Hv=y||g.wr;this.A$=(0,g.Mb)(this.IWB,this);this.rY=g.Yy()}; g.ho=function(J,y,v){if(typeof J==="function")v&&(J=(0,g.Mb)(J,v));else if(J&&typeof J.handleEvent=="function")J=(0,g.Mb)(J.handleEvent,J);else throw Error("Invalid listener argument");return Number(y)>2147483647?-1:g.wr.setTimeout(J,y||0)}; IJ=function(J,y){var v=null;return(new g.eQ(function(d,P){v=g.ho(function(){d(y)},J); v==-1&&P(Error("Failed to schedule timer."))})).TY(function(d){g.wr.clearTimeout(v); throw d;})}; g.pb=function(J){g.u.call(this);this.G=J;this.W=0;this.J=100;this.V=!1;this.T=new Map;this.L=new Set;this.flushInterval=3E4;this.C=new g.Cb(this.flushInterval);this.C.listen("tick",this.kS,!1,this);g.X(this,this.C)}; PKm=function(J){J.C.enabled||J.C.start();J.W++;J.W>=J.J&&J.kS()}; AuT=function(J,y){return J.L.has(y)?void 0:J.T.get(y)}; TJ2=function(J){for(var y=0;y2?J.C.statusText:""}catch(v){y=""}J.W=y+" ["+J.getStatus()+"]";a8m(J)}}finally{XC(J)}}}; XC=function(J,y){if(J.C){J.L&&(clearTimeout(J.L),J.L=null);var v=J.C;J.C=null;y||J.dispatchEvent("ready");try{v.onreadystatechange=null}catch(d){}}}; Kb=function(J){var y=J.getStatus();a:switch(y){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var v=!0;break a;default:v=!1}if(!v){if(y=y===0)J=g.nV(String(J.B))[1]||null,!J&&g.wr.self&&g.wr.self.location&&(J=g.wr.self.location.protocol.slice(0,-1)),y=!ggv.test(J?J.toLowerCase():"");v=y}return v}; g.RJ=function(J){return J.C?J.C.readyState:0}; g.zD=function(J){try{return J.C?J.C.responseText:""}catch(y){return""}}; g.k1=function(J){try{if(!J.C)return null;if("response"in J.C)return J.C.response;switch(J.wj){case "":case "text":return J.C.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in J.C)return J.C.mozResponseArrayBuffer}return null}catch(y){return null}}; g.D0r=function(J){var y={};J=(J.C&&g.RJ(J)>=2?J.C.getAllResponseHeaders()||"":"").split("\r\n");for(var v=0;v>1,y),D7(J,J.length>>1)]}; vE6=function(J){var y=g.D(yJT(J,cG));J=y.next().value;y=y.next().value;return J.toString(16)+y.toString(16)}; dTR=function(J,y){var v=yJT(y);J=new Uint32Array(J.buffer);y=J[0];var d=g.D(v);v=d.next().value;d=d.next().value;for(var P=1;P>>8|T<<24,T+=A|0,T^=M+38293,A=A<<3|A>>>29,A^=T,n=n>>>8|n<<24,n+=M|0,n^=Y+38293,M=M<<3|M>>>29,M^=n;A=[A,T];J[P]^=A[0];P+1=v?(globalThis.sessionStorage.removeItem(J),["e"]):["a",new Uint8Array(d.buffer,y+4)]}; Gl=function(J,y,v){v=v===void 0?[]:v;this.maxItems=J;this.C=y===void 0?0:y;this.T=v}; T$2=function(J){var y=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!y)return new Gl(J);var v=y.split(",");if(v.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Gl(J);y=v.slice(1);y.length===1&&y[0]===""&&(y=[]);v=Number(v[0]);return isNaN(v)||v<0||v>y.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Gl(J)):new Gl(J,v,y)}; lz2=function(J,y){this.logger=y;try{var v=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){v=!1}v&&(this.index=T$2(J))}; M8U=function(J,y,v,d,P){var A=J.index?ym(J.logger,function(){return Pcr(J.index,vE6(y),v,d,P)},"W"):"u"; J.logger.AL(A)}; nEU=function(J,y,v){var d=g.D(J.index?ym(J.logger,function(){return AJc(vE6(y),v)},"R"):["u"]),P=d.next().value; d=d.next().value;J.logger.T1(P);return d}; SEU=function(J){function y(){v-=d;v-=P;v^=P>>>13;d-=P;d-=v;d^=v<<8;P-=v;P-=d;P^=d>>>13;v-=d;v-=P;v^=P>>>12;d-=P;d-=v;d^=v<<16;P-=v;P-=d;P^=d>>>5;v-=d;v-=P;v^=P>>>3;d-=P;d-=v;d^=v<<10;P-=v;P-=d;P^=d>>>15} J=sH6(J);for(var v=2654435769,d=2654435769,P=314159265,A=J.length,T=A,M=0;T>=12;T-=12,M+=12)v+=b1(J,M),d+=b1(J,M+4),P+=b1(J,M+8),y();P+=A;switch(T){case 11:P+=J[M+10]<<24;case 10:P+=J[M+9]<<16;case 9:P+=J[M+8]<<8;case 8:d+=J[M+7]<<24;case 7:d+=J[M+6]<<16;case 6:d+=J[M+5]<<8;case 5:d+=J[M+4];case 4:v+=J[M+3]<<24;case 3:v+=J[M+2]<<16;case 2:v+=J[M+1]<<8;case 1:v+=J[M+0]}y();return YEH.toString(P)}; sH6=function(J){for(var y=[],v=0;v>7,J.error.code]);d.set(v,4);return d}; o2=function(J,y,v){FX.call(this,J);this.W=y;this.clientState=v;this.C="S";this.T="q"}; $5=function(J){return globalThis.TextEncoder?(new TextEncoder).encode(J):g.jB(J)}; t86=function(J,y,v){return J instanceof a2?u42(J,v,y,1):J.S2(v)}; h9=function(J){g.u.call(this);var y=this;this.J=new g.Y5;this.W=0;this.T=void 0;this.state=2;this.U8=J.U8;this.ML=J.ML;this.Xq=Object.assign({},W$H,J.Xq||{});this.logger=J.U8.sP();var v;this.onError=(v=J.onError)!=null?v:function(){}; this.yW=J.yW||!1;if(azd(J)){var d=this.U8;this.V=function(){return KAj(d).catch(function(T){T=y.reportError(new EE(y.C?20:32,"TRG:Disposed",T));y.T=T;var M;(M=y.C)==null||M.dispose();y.C=void 0;y.J.reject(T)})}; zTH(d,function(){return void CB(y)}); d.B===2&&CB(this)}else this.V=J.gvk,CB(this);var P=this.logger.share();P.tQ("o");var A=new wR(P,"o");this.J.promise.then(function(){A.done();P.So();P.dispose()},function(){return void P.dispose()}); this.addOnDisposeCallback(function(){y.C?(y.C.dispose(),y.C=void 0):y.T?y.logger.So():(y.T=y.reportError(new EE(32,"TNP:Disposed")),y.logger.So(),y.J.reject(y.T))}); g.X(this,this.logger)}; xTr=function(J,y){if(!(y instanceof EE))if(y instanceof Uk){var v=Error(y.toString());v.stack=y.stack;y=new EE(11,"EBH:Error",v)}else y=new EE(12,"BSO:Unknown",y);return J.reportError(y)}; CB=function(J){var y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c;return g.f(function(b){switch(b.T){case 1:y=void 0;J.W++;v=new g.Y5;J.U8 instanceof x5&&J.U8.W.push(v.promise);if(!J.yW){b.Qk(2);break}d=new g.Y5;setTimeout(function(){return void d.resolve()}); return g.h(b,d.promise,2);case 2:return P=J.logger.share(),g.bR(b,4,5),J.state=5,A={},T=[],g.h(b,gP(J.U8.snapshot({XK:A,u2:T}),J.Xq.rrX,function(){return Promise.reject(new EE(15,"MDA:Timeout"))}),7); case 7:M=b.C;if(J.tY())throw new EE(J.C?20:32,"MDA:Disposed");n=T[0];J.state=6;return g.h(b,gP(t86(J.ML,P,M),J.Xq.Ez,function(){return Promise.reject(new EE(10,"BWB:Timeout"))}),8); case 8:Y=b.C;if(J.tY())throw new EE(J.C?20:32,"BWB:Disposed");J.state=7;y=ym(P,function(){var q=OyP(J,Y,v,n);q.J.promise.then(function(){return void J.V()}); return q},"i"); case 5:g.od(b);P.dispose();g.C3(b,6);break;case 4:S=g.BP(b);(V=y)==null||V.dispose();if(!J.T){L=xTr(J,S);v.resolve();var B;if(B=J.U8 instanceof x5&&J.W<2)a:if(S instanceof EE)B=S.code!==32&&S.code!==20&&S.code!==10;else{if(S instanceof Uk)switch(S.code){case 2:case 13:case 14:case 4:break;default:B=!1;break a}B=!0}if(B)return t=(1+Math.random()*.25)*(J.C?6E4:1E3),W=setTimeout(function(){return void J.V()},t),J.addOnDisposeCallback(function(){return void clearTimeout(W)}),b.return(); J.T=L}P.Ox(J.C?13:14);J.J.reject(J.T);return b.return();case 6:J.state=8,J.W=0,(c=J.C)==null||c.dispose(),J.C=y,J.J.resolve(),g.G2(b)}})}; OyP=function(J,y,v,d){var P=B3(y,2)*1E3;if(P<=0)throw new EE(31,"TTM:Invalid");if(qV(y,4))return new qk(J.logger,qV(y,4),P);if(!B3(y,3))return new BG(J.logger,h3(MV(y,1)),P);if(!d)throw new EE(4,"PMD:Undefined");d=d(h3(MV(y,1)));if(!(d instanceof Function))throw new EE(16,"APF:Failed");J.L=Math.floor((Date.now()+P)/1E3);J=new me(J.logger,d,B3(y,3),P);J.addOnDisposeCallback(function(){return void v.resolve()}); return J}; gEU=function(J,y){y=y instanceof EE?y:new EE(5,"TVD:error",y);return J.reportError(y)}; F$R=function(J,y,v){try{if(J.tY())throw new EE(21,"BNT:disposed");if(!J.C&&J.T)throw J.T;var d,P;return(P=(d=DTm(J,y,v))!=null?d:cJP(J,y,v))!=null?P:GTT(J,y,v)}catch(A){if(!y.xl)throw gEU(J,A);return byP(J,v,A)}}; DTm=function(J,y,v){var d;return(d=J.C)==null?void 0:eh(d,function(){return I2(J,y)},v,function(P){var A; if(J.C instanceof me&&((A=y.wO)==null?0:A.T7))try{var T;(T=J.cache)==null||M8U(T,I2(J,y),P,y.wO.wG,J.L-120)}catch(M){J.reportError(new EE(24,"ELX:write",M))}})}; cJP=function(J,y,v){var d;if((d=y.wO)!=null&&d.Dk)try{var P,A=(P=J.cache)==null?void 0:nEU(P,I2(J,y),y.wO.wG);return A?v?ym(J.logger,function(){return g.eB(A,2)},"a"):A:void 0}catch(T){J.reportError(new EE(23,"RXO:read",T))}}; GTT=function(J,y,v){var d={stack:[],error:void 0,hasError:!1};try{if(!y.hJ)throw new EE(29,"SDF:notready");return eh(xjH(d,new o2(J.logger,0,J.state)),function(){return I2(J,y)},v)}catch(P){d.error=P,d.hasError=!0}finally{O33(d)}}; byP=function(J,y,v){var d={stack:[],error:void 0,hasError:!1};try{var P=gEU(J,v);return eh(xjH(d,new rP(J.logger,P)),function(){return[]},y)}catch(A){d.error=A,d.hasError=!0}finally{O33(d)}}; I2=function(J,y){return y.o9?y.o9:y.XK?ym(J.logger,function(){return y.o9=$5(y.XK)},"c"):[]}; pB=function(){var J=0,y;return function(v){y||(y=new vG);var d=new o2(y,J,1),P=eh(d,function(){return $5(v)},!0); d.dispose();J++;return P}}; UY=function(J){this.n8=X7(J)}; jHc=function(J,y,v){this.q8=J;this.L_=y;this.metadata=v}; fB=function(J,y){y=y===void 0?{}:y;this.ArK=J;this.metadata=y;this.status=null}; i1=function(J,y,v,d,P){this.name=J;this.methodType="unary";this.requestType=y;this.responseType=v;this.C=d;this.T=P}; u1=function(J){this.n8=X7(J)}; HG=function(J){this.n8=X7(J)}; XX=function(J){this.n8=X7(J)}; Nk=function(J,y){this.G=J.gBj;this.B=y;this.C=J.xhr;this.J=[];this.V=[];this.L=[];this.W=[];this.T=[];this.G&&ei3(this)}; rJ2=function(J,y){var v=new mTd;g.wK(J.C,"complete",function(){if(Kb(J.C)){var d=g.zD(J.C);if(y&&J.C.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");d=atob(d)}try{var P=J.B(d)}catch(M){R2(J,KB(new Uk(13,"Error when deserializing response data; error: "+M+(", response: "+d)),v));return}d=l83(J.C.getStatus());zl(J,k5(J));d==0?B$R(J,P):R2(J,KB(new Uk(d,"Xhr succeeded but the status code is not 200"),v))}else{d=g.zD(J.C);P=k5(J);if(d){var A=qER(J, d);d=A.code;var T=A.details;A=A.metadata}else d=2,T="Rpc failed due to xhr error. uri: "+String(J.C.B)+", error code: "+J.C.T+", error: "+J.C.getLastError(),A=P;zl(J,P);R2(J,KB(new Uk(d,T,A),v))}})}; ei3=function(J){J.G.qn("data",function(y){if("1"in y){var v=y["1"];try{var d=J.B(v)}catch(P){R2(J,new Uk(13,"Error when deserializing response data; error: "+P+(", response: "+v)))}d&&B$R(J,d)}if("2"in y)for(y=qER(J,y["2"]),v=0;v-1&&J.splice(y,1)}; B$R=function(J,y){for(var v=0;v>4&15).toString(16)+(J&15).toString(16)}; M8=function(J,y){this.T=this.C=null;this.J=J||null;this.W=!!y}; VT=function(J){J.C||(J.C=new Map,J.T=0,J.J&&VQ(J.J,function(y,v){J.add(q7(y),v)}))}; fzd=function(J,y){VT(J);y=Lx(J,y);return J.C.has(y)}; g.iyj=function(J,y,v){J.remove(y);v.length>0&&(J.J=null,J.C.set(Lx(J,y),g.rV(v)),J.T=J.T+v.length)}; Lx=function(J,y){y=String(y);J.W&&(y=y.toLowerCase());return y}; Iz2=function(J,y){y&&!J.W&&(VT(J),J.J=null,J.C.forEach(function(v,d){var P=d.toLowerCase();d!=P&&(this.remove(d),g.iyj(this,P,v))},J)); J.W=y}; g.uZ2=function(J){var y="";g.Js(J,function(v,d){y+=d;y+=":";y+=v;y+="\r\n"}); return y}; g.ti=function(J,y,v){if(g.Vx(v))return J;v=g.uZ2(v);if(typeof J==="string")return xn(J,g.mS(y),v);g.Yv(J,y,v);return J}; g.Wr=function(J){g.u.call(this);this.T=J;this.C={}}; Hyx=function(J,y,v,d,P,A){if(Array.isArray(v))for(var T=0;T=0)return!0;try{var y=new g.vr(J)}catch(v){return g.On(At3,function(d){return J.search(d)>0})!=null}return y.L.match(TKU)?!0:g.On(At3,function(v){return J.match(v)!=null})!=null}; g.m5=function(J,y){return J.replace(MS3,function(v,d){try{var P=g.L_(y,d);if(P==null||P.toString()==null)return v;P=P.toString();if(P==""||!g.qh(g.$p(P)))return encodeURIComponent(P).replace(/%2C/g,",")}catch(A){}return v})}; Br=function(J,y){return Object.is(J,y)}; ri=function(J){var y=q8;q8=J;return y}; nFT=function(J){if(J.v5!==void 0){var y=$v;$v=!0;try{for(var v=g.D(J.v5),d=v.next();!d.done;d=v.next()){var P=d.value;P.Mj||(J=void 0,P.Mj=!0,nFT(P),(J=P.fG)==null||J.call(P,P))}}finally{$v=y}}}; smR=function(){var J;return((J=q8)==null?void 0:J.S4)!==!1}; Yzj=function(J){J&&(J.L5=0);return ri(J)}; Sz3=function(J,y){ri(y);if(J&&J.c_!==void 0&&J.Xd!==void 0&&J.jx!==void 0){if(o8(J))for(y=J.L5;yJ.L5;)J.c_.pop(),J.jx.pop(),J.Xd.pop()}}; LXr=function(J,y,v){VS6(J);if(J.v5.length===0&&J.c_!==void 0)for(var d=0;d0}; tSm=function(J){J.c_!=null||(J.c_=[]);J.Xd!=null||(J.Xd=[]);J.jx!=null||(J.jx=[])}; VS6=function(J){J.v5!=null||(J.v5=[]);J.QK!=null||(J.QK=[])}; Okx=function(J){function y(){if($v)throw Error("");if(q8!==null){var d=q8.L5++;tSm(q8);d0?" "+y:y))}}; g.PB=function(J,y){if(J.classList)Array.prototype.forEach.call(y,function(P){g.d7(J,P)}); else{var v={};Array.prototype.forEach.call(JZ(J),function(P){v[P]=!0}); Array.prototype.forEach.call(y,function(P){v[P]=!0}); y="";for(var d in v)y+=y.length>0?" "+d:d;g.yg(J,y)}}; g.AZ=function(J,y){J.classList?J.classList.remove(y):g.vB(J,y)&&g.yg(J,Array.prototype.filter.call(JZ(J),function(v){return v!=y}).join(" "))}; g.TY=function(J,y){J.classList?Array.prototype.forEach.call(y,function(v){g.AZ(J,v)}):g.yg(J,Array.prototype.filter.call(JZ(J),function(v){return!g.cq(y,v)}).join(" "))}; g.lq=function(J,y,v){v?g.d7(J,y):g.AZ(J,y)}; ePj=function(J,y){var v=!g.vB(J,y);g.lq(J,y,v)}; g.MS=function(){g.Y1.call(this);this.C=0;this.endTime=this.startTime=null}; mmx=function(J,y){Array.isArray(y)||(y=[y]);y=y.map(function(v){return typeof v==="string"?v:v.property+" "+v.duration+"s "+v.timing+" "+v.delay+"s"}); g.Ni(J,"transition",y.join(","))}; n$=function(J,y,v,d,P){g.MS.call(this);this.T=J;this.V=y;this.L=v;this.W=d;this.G=Array.isArray(P)?P:[P]}; BKd=function(J,y,v,d){return new n$(J,y,{opacity:v},{opacity:d},{property:"opacity",duration:y,timing:"ease-in",delay:0})}; rtx=function(J){J=oM(J);if(J=="")return null;var y=String(J.slice(0,4)).toLowerCase();if(("url("1||J&&J.split(")"),null;if(J.indexOf("(")>0){if(/"|'/.test(J))return null;y=/([\-\w]+)\(/g;for(var v;v=y.exec(J);)if(!(v[1].toLowerCase()in qz6))return null}return J}; sa=function(J,y){J=g.wr[J];return J&&J.prototype?(y=Object.getOwnPropertyDescriptor(J.prototype,y))&&y.get||null:null}; $mv=function(J){var y=g.wr.CSSStyleDeclaration;return y&&y.prototype&&y.prototype[J]||null}; oFP=function(J,y,v,d){if(J)return J.apply(y,d);if(g.YK&&document.documentMode<10){if(!y[v].call)throw Error("IE Clobbering detected");}else if(typeof y[v]!="function")throw Error("Clobbering detected");return y[v].apply(y,d)}; UmR=function(J){if(!J)return"";var y=document.createElement("div").style;CMR(J).forEach(function(v){var d=g.s3&&v in hPH?v:v.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");BL(d,"--")||BL(d,"var")||(v=oFP(Iam,J,J.getPropertyValue?"getPropertyValue":"getAttribute",[v])||"",v=rtx(v),v!=null&&oFP(pa3,y,y.setProperty?"setProperty":"setAttribute",[d,v]))}); return y.cssText||""}; CMR=function(J){g.Pq(J)?J=g.rV(J):(J=g.n_(J),g.bw(J,"cssText"));return J}; g.Vg=function(J){var y,v=y=0,d=!1;J=J.split(fac);for(var P=0;P.4?-1:1;return(y==0?null:y)==-1?"rtl":"ltr"}; g.aY=function(J){if(J instanceof L$||J instanceof tZ||J instanceof WB)return J;if(typeof J.next=="function")return new L$(function(){return J}); if(typeof J[Symbol.iterator]=="function")return new L$(function(){return J[Symbol.iterator]()}); if(typeof J.yq=="function")return new L$(function(){return J.yq()}); throw Error("Not an iterator or iterable.");}; L$=function(J){this.T=J}; tZ=function(J){this.T=J}; WB=function(J){L$.call(this,function(){return J}); this.J=J}; xK=function(J,y,v,d,P,A,T,M){this.C=J;this.G=y;this.J=v;this.V=d;this.W=P;this.L=A;this.T=T;this.B=M}; Oa=function(J,y){if(y==0)return J.C;if(y==1)return J.T;var v=XN(J.C,J.J,y),d=XN(J.J,J.W,y);J=XN(J.W,J.T,y);v=XN(v,d,y);d=XN(d,J,y);return XN(v,d,y)}; XaT=function(J,y){var v=(y-J.C)/(J.T-J.C);if(v<=0)return 0;if(v>=1)return 1;for(var d=0,P=1,A=0,T=0;T<8;T++){A=Oa(J,v);var M=(Oa(J,v+1E-6)-A)/1E-6;if(Math.abs(A-y)<1E-6)return v;if(Math.abs(M)<1E-6)break;else A1E-6&&T<8;T++)A=0}; g.GY=function(J){g.u.call(this);this.L=1;this.J=[];this.W=0;this.C=[];this.T={};this.G=!!J}; RPc=function(J,y,v){g.FC(function(){J.apply(y,v)})}; g.bq=function(J){this.C=J}; FG=function(J){this.C=J}; KXP=function(J){this.data=J}; zPx=function(J){return J===void 0||J instanceof KXP?J:new KXP(J)}; jp=function(J){this.C=J}; g.kLd=function(J){var y=J.creation;J=J.expiration;return!!J&&Jg.Yy()}; g.ep=function(J){this.C=J}; EF2=function(){}; m8=function(){}; BB=function(J){this.C=J;this.T=null}; qS=function(J){if(J.C==null)throw Error("Storage mechanism: Storage unavailable");J.isAvailable()||Fp(Error("Storage mechanism: Storage unavailable"))}; r7=function(){var J=null;try{J=g.wr.localStorage||null}catch(y){}BB.call(this,J)}; Qm3=function(){var J=null;try{J=g.wr.sessionStorage||null}catch(y){}BB.call(this,J)}; $K=function(J,y){this.T=J;this.C=y+"::"}; g.oY=function(J){var y=new r7;return y.isAvailable()?J?new $K(y,J):y:null}; C$=function(J,y){this.C=J;this.T=y}; hZ=function(J){this.C=[];if(J)a:{if(J instanceof hZ){var y=J.iQ();J=J.hx();if(this.C.length<=0){for(var v=this.C,d=0;d>>6:(A<65536?M[v++]=224|A>>>12:(M[v++]=240|A>>>18,M[v++]=128|A>>>12&63),M[v++]=128|A>>> 6&63),M[v++]=128|A&63);return M}; f$=function(J){for(var y=J.length;--y>=0;)J[y]=0}; iq=function(J,y,v,d,P){this.Cc=J;this.pI=y;this.WZ=v;this.lZ=d;this.UK=P;this.wY=J&&J.length}; uq=function(J,y){this.e4=J;this.YY=0;this.CP=y}; HB=function(J,y){J.Wo[J.pending++]=y&255;J.Wo[J.pending++]=y>>>8&255}; XG=function(J,y,v){J.hR>16-v?(J.VR|=y<>16-J.hR,J.hR+=v-16):(J.VR|=y<>>=1,v<<=1;while(--y>0);return v>>>1}; v1T=function(J,y,v){var d=Array(16),P=0,A;for(A=1;A<=15;A++)d[A]=P=P+v[A-1]<<1;for(v=0;v<=y;v++)P=J[v*2+1],P!==0&&(J[v*2]=yo3(d[P]++,P))}; da3=function(J){var y;for(y=0;y<286;y++)J.c5[y*2]=0;for(y=0;y<30;y++)J.fd[y*2]=0;for(y=0;y<19;y++)J.Uh[y*2]=0;J.c5[512]=1;J.bY=J.Kk=0;J.NP=J.matches=0}; Pe3=function(J){J.hR>8?HB(J,J.VR):J.hR>0&&(J.Wo[J.pending++]=J.VR);J.VR=0;J.hR=0}; Ao3=function(J,y,v){Pe3(J);HB(J,v);HB(J,~v);Ua.J1(J.Wo,J.window,y,v,J.pending);J.pending+=v}; TR3=function(J,y,v,d){var P=y*2,A=v*2;return J[P]>>7)];NS(J,T,v);M=Qg[T];M!==0&&(P-=Zf[T],XG(J,P,M))}}while(d>1;T>=1;T--)RY(J,v,T);n=A;do T=J.VQ[1],J.VQ[1]=J.VQ[J.Dz--],RY(J,v,1),d=J.VQ[1],J.VQ[--J.ag]=T,J.VQ[--J.ag]=d,v[n*2]=v[T*2]+v[d*2],J.depth[n]=(J.depth[T]>=J.depth[d]?J.depth[T]:J.depth[d])+1,v[T*2+1]=v[d*2+1]=n,J.VQ[1]=n++,RY(J,v,1);while(J.Dz>= 2);J.VQ[--J.ag]=J.VQ[1];T=y.e4;n=y.YY;d=y.CP.Cc;P=y.CP.wY;A=y.CP.pI;var Y=y.CP.WZ,S=y.CP.UK,V,L=0;for(V=0;V<=15;V++)J.fb[V]=0;T[J.VQ[J.ag]*2+1]=0;for(y=J.ag+1;y<573;y++){var t=J.VQ[y];V=T[T[t*2+1]*2+1]+1;V>S&&(V=S,L++);T[t*2+1]=V;if(!(t>n)){J.fb[V]++;var W=0;t>=Y&&(W=A[t-Y]);var c=T[t*2];J.bY+=c*(V+W);P&&(J.Kk+=c*(d[t*2+1]+W))}}if(L!==0){do{for(V=S-1;J.fb[V]===0;)V--;J.fb[V]--;J.fb[V+1]+=2;J.fb[S]--;L-=2}while(L>0);for(V=S;V!==0;V--)for(t=J.fb[V];t!==0;)d=J.VQ[--y],d>n||(T[d*2+1]!==V&&(J.bY+=(V-T[d* 2+1])*T[d*2],T[d*2+1]=V),t--)}v1T(v,M,J.fb)}; MQU=function(J,y,v){var d,P=-1,A=y[1],T=0,M=7,n=4;A===0&&(M=138,n=3);y[(v+1)*2+1]=65535;for(d=0;d<=v;d++){var Y=A;A=y[(d+1)*2+1];++T>>=1)if(y&1&&J.c5[v*2]!==0)return 0;if(J.c5[18]!==0||J.c5[20]!==0||J.c5[26]!==0)return 1;for(v=32;v<256;v++)if(J.c5[v*2]!==0)return 1;return 0}; JR=function(J,y,v){J.Wo[J.n9+J.NP*2]=y>>>8&255;J.Wo[J.n9+J.NP*2+1]=y&255;J.Wo[J.oQ+J.NP]=v&255;J.NP++;y===0?J.c5[v*2]++:(J.matches++,y--,J.c5[(K$[v]+256+1)*2]++,J.fd[(y<256?Ea[y]:Ea[256+(y>>>7)])*2]++);return J.NP===J.S8-1}; v$=function(J,y){J.msg=y4[y];return y}; dN=function(J){for(var y=J.length;--y>=0;)J[y]=0}; P$=function(J){var y=J.state,v=y.pending;v>J.ri&&(v=J.ri);v!==0&&(Ua.J1(J.output,y.Wo,y.ya,v,J.F4),J.F4+=v,y.ya+=v,J.Nb+=v,J.ri-=v,y.pending-=v,y.pending===0&&(y.ya=0))}; lS=function(J,y){var v=J.cn>=0?J.cn:-1,d=J.IG-J.cn,P=0;if(J.level>0){J.Xo.Cs===2&&(J.Xo.Cs=sJ6(J));w7(J,J.iE);w7(J,J.Et);MQU(J,J.c5,J.iE.YY);MQU(J,J.fd,J.Et.YY);w7(J,J.J$);for(P=18;P>=3&&J.Uh[YkT[P]*2+1]===0;P--);J.bY+=3*(P+1)+5+5+4;var A=J.bY+3+7>>>3;var T=J.Kk+3+7>>>3;T<=A&&(A=T)}else A=T=d+5;if(d+4<=A&&v!==-1)XG(J,y?1:0,3),Ao3(J,v,d);else if(J.strategy===4||T===A)XG(J,2+(y?1:0),3),lJm(J,AR,Tq);else{XG(J,4+(y?1:0),3);v=J.iE.YY+1;d=J.Et.YY+1;P+=1;XG(J,v-257,5);XG(J,d-1,5);XG(J,P-4,4);for(A=0;A>>8&255;J.Wo[J.pending++]=y&255}; Sk3=function(J,y){var v=J.bK,d=J.IG,P=J.iC,A=J.NG,T=J.IG>J.jW-262?J.IG-(J.jW-262):0,M=J.window,n=J.WY,Y=J.Hw,S=J.IG+258,V=M[d+P-1],L=M[d+P];J.iC>=J.UV&&(v>>=2);A>J.B$&&(A=J.B$);do{var t=y;if(M[t+P]===L&&M[t+P-1]===V&&M[t]===M[d]&&M[++t]===M[d+1]){d+=2;for(t++;M[++d]===M[++t]&&M[++d]===M[++t]&&M[++d]===M[++t]&&M[++d]===M[++t]&&M[++d]===M[++t]&&M[++d]===M[++t]&&M[++d]===M[++t]&&M[++d]===M[++t]&&dP){J.Rg=y;P=t;if(t>=A)break;V=M[d+P-1];L=M[d+P]}}}while((y=Y[y&n])>T&&--v!== 0);return P<=J.B$?P:J.B$}; V4=function(J){var y=J.jW,v;do{var d=J.q3-J.B$-J.IG;if(J.IG>=y+(y-262)){Ua.J1(J.window,J.window,y,y,0);J.Rg-=y;J.IG-=y;J.cn-=y;var P=v=J.MQ;do{var A=J.head[--P];J.head[P]=A>=y?A-y:0}while(--v);P=v=y;do A=J.Hw[--P],J.Hw[P]=A>=y?A-y:0;while(--v);d+=y}if(J.Xo.fp===0)break;P=J.Xo;v=J.window;A=J.IG+J.B$;var T=P.fp;T>d&&(T=d);T===0?v=0:(P.fp-=T,Ua.J1(v,P.input,P.Mq,T,A),P.state.wrap===1?P.yM=YV(P.yM,v,T,A):P.state.wrap===2&&(P.yM=Sm(P.yM,v,T,A)),P.Mq+=T,P.fW+=T,v=T);J.B$+=v;if(J.B$+J.BK>=3)for(d=J.IG-J.BK, J.NA=J.window[d],J.NA=(J.NA<=3&&(J.NA=(J.NA<=3)if(v=JR(J,J.IG-J.Rg,J.Jr-3),J.B$-=J.Jr,J.Jr<=J.mI&&J.B$>=3){J.Jr--;do J.IG++,J.NA=(J.NA<=3&&(J.NA=(J.NA<4096)&&(J.Jr=2));if(J.iC>=3&&J.Jr<=J.iC){d=J.IG+J.B$-3;v=JR(J,J.IG-1-J.nV,J.iC-3);J.B$-=J.iC-1;J.iC-=2;do++J.IG<=d&&(J.NA=(J.NA<=3&&J.IG>0&&(d=J.IG-1,v=A[d],v===A[++d]&&v===A[++d]&&v===A[++d])){for(P=J.IG+258;v===A[++d]&&v===A[++d]&&v===A[++d]&&v===A[++d]&&v===A[++d]&&v===A[++d]&&v===A[++d]&&v===A[++d]&&dJ.B$&&(J.Jr=J.B$)}J.Jr>=3?(v=JR(J,1,J.Jr-3),J.B$-=J.Jr,J.IG+=J.Jr,J.Jr=0):(v=JR(J,0,J.window[J.IG]),J.B$--,J.IG++);if(v&&(lS(J,!1),J.Xo.ri===0))return 1}J.BK=0;return y=== 4?(lS(J,!0),J.Xo.ri===0?3:4):J.NP&&(lS(J,!1),J.Xo.ri===0)?1:2}; LaR=function(J,y){for(var v;;){if(J.B$===0&&(V4(J),J.B$===0)){if(y===0)return 1;break}J.Jr=0;v=JR(J,0,J.window[J.IG]);J.B$--;J.IG++;if(v&&(lS(J,!1),J.Xo.ri===0))return 1}J.BK=0;return y===4?(lS(J,!0),J.Xo.ri===0?3:4):J.NP&&(lS(J,!1),J.Xo.ri===0)?1:2}; W$=function(J,y,v,d,P){this.IZ=J;this.Y0=y;this.JYK=v;this.Bu=d;this.func=P}; tQc=function(){this.Xo=null;this.status=0;this.Wo=null;this.wrap=this.pending=this.ya=this.Ul=0;this.o_=null;this.iX=0;this.method=8;this.HN=-1;this.WY=this.uF=this.jW=0;this.window=null;this.q3=0;this.head=this.Hw=null;this.NG=this.UV=this.strategy=this.level=this.mI=this.bK=this.iC=this.B$=this.Rg=this.IG=this.WB=this.nV=this.Jr=this.cn=this.Uu=this.Yz=this.X9=this.MQ=this.NA=0;this.c5=new Ua.IL(1146);this.fd=new Ua.IL(122);this.Uh=new Ua.IL(78);dN(this.c5);dN(this.fd);dN(this.Uh);this.J$=this.Et= this.iE=null;this.fb=new Ua.IL(16);this.VQ=new Ua.IL(573);dN(this.VQ);this.ag=this.Dz=0;this.depth=new Ua.IL(573);dN(this.depth);this.hR=this.VR=this.BK=this.matches=this.Kk=this.bY=this.n9=this.NP=this.S8=this.oQ=0}; WaU=function(J,y){if(!J||!J.state||y>5||y<0)return J?v$(J,-2):-2;var v=J.state;if(!J.output||!J.input&&J.fp!==0||v.status===666&&y!==4)return v$(J,J.ri===0?-5:-2);v.Xo=J;var d=v.HN;v.HN=y;if(v.status===42)if(v.wrap===2)J.yM=0,MP(v,31),MP(v,139),MP(v,8),v.o_?(MP(v,(v.o_.text?1:0)+(v.o_.KF?2:0)+(v.o_.extra?4:0)+(v.o_.name?8:0)+(v.o_.comment?16:0)),MP(v,v.o_.time&255),MP(v,v.o_.time>>8&255),MP(v,v.o_.time>>16&255),MP(v,v.o_.time>>24&255),MP(v,v.level===9?2:v.strategy>=2||v.level<2?4:0),MP(v,v.o_.os& 255),v.o_.extra&&v.o_.extra.length&&(MP(v,v.o_.extra.length&255),MP(v,v.o_.extra.length>>8&255)),v.o_.KF&&(J.yM=Sm(J.yM,v.Wo,v.pending,0)),v.iX=0,v.status=69):(MP(v,0),MP(v,0),MP(v,0),MP(v,0),MP(v,0),MP(v,v.level===9?2:v.strategy>=2||v.level<2?4:0),MP(v,3),v.status=113);else{var P=8+(v.uF-8<<4)<<8;P|=(v.strategy>=2||v.level<2?0:v.level<6?1:v.level===6?2:3)<<6;v.IG!==0&&(P|=32);v.status=113;ns(v,P+(31-P%31));v.IG!==0&&(ns(v,J.yM>>>16),ns(v,J.yM&65535));J.yM=1}if(v.status===69)if(v.o_.extra){for(P= v.pending;v.iX<(v.o_.extra.length&65535)&&(v.pending!==v.Ul||(v.o_.KF&&v.pending>P&&(J.yM=Sm(J.yM,v.Wo,v.pending-P,P)),P$(J),P=v.pending,v.pending!==v.Ul));)MP(v,v.o_.extra[v.iX]&255),v.iX++;v.o_.KF&&v.pending>P&&(J.yM=Sm(J.yM,v.Wo,v.pending-P,P));v.iX===v.o_.extra.length&&(v.iX=0,v.status=73)}else v.status=73;if(v.status===73)if(v.o_.name){P=v.pending;do{if(v.pending===v.Ul&&(v.o_.KF&&v.pending>P&&(J.yM=Sm(J.yM,v.Wo,v.pending-P,P)),P$(J),P=v.pending,v.pending===v.Ul)){var A=1;break}A=v.iXP&&(J.yM=Sm(J.yM,v.Wo,v.pending-P,P));A===0&&(v.iX=0,v.status=91)}else v.status=91;if(v.status===91)if(v.o_.comment){P=v.pending;do{if(v.pending===v.Ul&&(v.o_.KF&&v.pending>P&&(J.yM=Sm(J.yM,v.Wo,v.pending-P,P)),P$(J),P=v.pending,v.pending===v.Ul)){A=1;break}A=v.iXP&&(J.yM=Sm(J.yM,v.Wo,v.pending-P,P));A===0&&(v.status=103)}else v.status= 103;v.status===103&&(v.o_.KF?(v.pending+2>v.Ul&&P$(J),v.pending+2<=v.Ul&&(MP(v,J.yM&255),MP(v,J.yM>>8&255),J.yM=0,v.status=113)):v.status=113);if(v.pending!==0){if(P$(J),J.ri===0)return v.HN=-1,0}else if(J.fp===0&&(y<<1)-(y>4?9:0)<=(d<<1)-(d>4?9:0)&&y!==4)return v$(J,-5);if(v.status===666&&J.fp!==0)return v$(J,-5);if(J.fp!==0||v.B$!==0||y!==0&&v.status!==666){d=v.strategy===2?LaR(v,y):v.strategy===3?VQP(v,y):aG[v.level].func(v,y);if(d===3||d===4)v.status=666;if(d===1||d===3)return J.ri===0&&(v.HN= -1),0;if(d===2&&(y===1?(XG(v,2,3),NS(v,256,AR),v.hR===16?(HB(v,v.VR),v.VR=0,v.hR=0):v.hR>=8&&(v.Wo[v.pending++]=v.VR&255,v.VR>>=8,v.hR-=8)):y!==5&&(XG(v,0,3),Ao3(v,0,0),y===3&&(dN(v.head),v.B$===0&&(v.IG=0,v.cn=0,v.BK=0))),P$(J),J.ri===0))return v.HN=-1,0}if(y!==4)return 0;if(v.wrap<=0)return 1;v.wrap===2?(MP(v,J.yM&255),MP(v,J.yM>>8&255),MP(v,J.yM>>16&255),MP(v,J.yM>>24&255),MP(v,J.fW&255),MP(v,J.fW>>8&255),MP(v,J.fW>>16&255),MP(v,J.fW>>24&255)):(ns(v,J.yM>>>16),ns(v,J.yM&65535));P$(J);v.wrap>0&& (v.wrap=-v.wrap);return v.pending!==0?0:1}; xV=function(J){if(!(this instanceof xV))return new xV(J);J=this.options=Ua.assign({level:-1,method:8,chunkSize:16384,pP:15,FA:8,strategy:0,to:""},J||{});J.raw&&J.pP>0?J.pP=-J.pP:J.QP&&J.pP>0&&J.pP<16&&(J.pP+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.Xo=new aJU;this.Xo.ri=0;var y=this.Xo;var v=J.level,d=J.method,P=J.pP,A=J.FA,T=J.strategy;if(y){var M=1;v===-1&&(v=6);P<0?(M=0,P=-P):P>15&&(M=2,P-=16);if(A<1||A>9||d!==8||P<8||P>15||v<0||v>9||T<0||T>4)y=v$(y,-2);else{P===8&&(P=9);var n= new tQc;y.state=n;n.Xo=y;n.wrap=M;n.o_=null;n.uF=P;n.jW=1<>=7;A<30;A++)for(Zf[A]=T<<7,P=0;P<1<=Y.jW&&(y===0&&(dN(Y.head),Y.IG=0,Y.cn=0,Y.BK=0),v=new Ua.N5(Y.jW),Ua.J1(v,A,T-Y.jW,Y.jW,0),A=v,T=Y.jW);v=J.fp;d=J.Mq;P=J.input;J.fp=T;J.Mq=0;J.input=A;for(V4(Y);Y.B$>=3;){A=Y.IG;T=Y.B$-2;do Y.NA=(Y.NA<=-10&&((0,v[4])((0,v[16])(v[39])*(0,v[28])(v[39],(0,v[32])(),v[34]),v[16],v[54]),l[87])||((0,v[30])(v[68]),v[71])(v[73],v[12])/(0,v[76])(v[12],v[23]),v[87]>-5&&(v[63]>=0&&((((((0,v[20])(v[21],(0,v[27])(v[33],v[39]),v[76],(0,v[76])(v[18],v[new Date(l[22])/1E3]),(0,v[28])(v[39],(0,v[62])(),v[34]),(0,v[4])((0,v[27])(v[53],v[68]),v[28],v[39],(0,v[62])(), v[34]),v[17],v[40]),v[4])((0,v[38])(v[31],v[17]),v[72],v[11],v[17]),v[28])(v[68],(0,v[32])(),v[34]),v[4])((0,v[30])(v[39]),v[16],v[17]),v[28])(v[39],(0,v[19])(),v[34]),l[79])||((((((0,v[27])(v[26],v[68]),v[71])(v[52],v[39]),v[4])((0,v[38])(v[50],v[17]),v[27],v[30],v[61]),(0,v[31])(v[23],v[46]),v[27])(v[41],v[56]),v[29])((0,v[73])(v[61],v[26]),v[82],(0,v[48])(((0,v[27])(v[14],v[56]),v[26])(v[21],v[9]),v[74],v[56]),v[47],v[9]),v[17])(v[15],v[74]))}catch(d){((0,v[39])((0,v[39])((0,v[18])(v[79],v[74]), v[63],v[14],(0,v[67])(),v[69]),v[51],v[83],v[74]),v[73])(v[72],v[52])}finally{v[19]>=8&&((0,v[65])(v[52]),6)||(0,v[9])(v[80],v[15]),v[74]!==-10&&(v[32]!=10&&((0,v[69])((0,v[16])(v[63],v[37]),v[66],(0,v[15])(v[82],v[35]),v[86],v[68]),1)||(0,v[31])(((0,v[80])(v[57],v[23]),v[19])(v[27],v[86]),v[19],v[29],v[86])),v[59]<-5&&(v[28]==4||((0,v[52])(v[41],v[18]),0))&&(0,v[7])(v[new Date(l[1])/1E3],(0,v[62])(),v[1])}try{v[4]!=4&&(0,v[50])((0,v[53])(v[39],v[18]),v[48],(0,v[52])(v[35],v[70]),v[70],v[5]),v[37]!== -9?((0,v[59])((0,v[59])((0,v[18])(v[88],v[45]),v[25],v[54],v[46]),v[19],v[83],v[64]),(0,v[66])(v[1],v[83])):(0,v[44])(((0,v[44])((0,v[10])(v[7],v[31]),v[61],v[69],v[88]),v[32])(v[49],v[69]),v[32],v[50],v[31])}catch(d){((0,v[20])(v[69],(0,v[16])(),v[14]),v[10])(v[86],v[69])}finally{v[72]===-4&&((0,v[new Date(l[69])/1E3])(v[27],(0,v[32])(v[75],v[9]),v[66],(0,v[2])(v[83]),(0,v[32])(v[76],v[9]),(0,v[2])(v[36]),v[80],v[31]),1)||(((0,v[32])(v[82],v[69]),(0,v[10])(v[47],v[83]),v[10])(v[32],v[4]),(0,v[89])((0,v[55])(v[78], v[81]),v[55],v[68],v[new Date(l[13])/1E3])),v[62]!=-3&&(v[14]===9?(0,v[19])(v[69],v[75]):(0,v[55])(v[51],v[23]))}}catch(d){return l[75]+J}return y[l[33]](l[3])}; g.Gq=function(J){this.name=J}; pQH=function(J){this.n8=X7(J)}; bS=function(J){this.n8=X7(J)}; Fa=function(J){this.n8=X7(J)}; Ua6=function(J){this.n8=X7(J)}; jm=function(J){this.n8=X7(J)}; em=function(J){this.n8=X7(J)}; mo=function(J){this.n8=X7(J)}; B$=function(J){this.n8=X7(J)}; qP=function(J){this.n8=X7(J)}; rN=function(J){this.n8=X7(J)}; $V=function(J){this.n8=X7(J)}; oG=function(J){this.n8=X7(J)}; Cs=function(J){this.n8=X7(J)}; hR=function(J){this.n8=X7(J)}; IG=function(J){this.n8=X7(J)}; ps=function(J){this.n8=X7(J,500)}; iS=function(J){this.n8=X7(J)}; uS=function(J){this.n8=X7(J)}; fJx=function(J){this.n8=X7(J)}; ibx=function(){return g.vq("yt.ads.biscotti.lastId_")||""}; uCT=function(J){g.yq("yt.ads.biscotti.lastId_",J)}; Xa=function(){var J=arguments,y=H$;J.length>1?y[J[0]]=J[1]:J.length===1&&Object.assign(y,J[0])}; g.NP=function(J,y){return J in H$?H$[J]:y}; RG=function(J){var y=H$.EXPERIMENT_FLAGS;return y?y[J]:void 0}; HbT=function(J){Ks.forEach(function(y){return y(J)})}; g.kV=function(J){return J&&window.yterr?function(){try{return J.apply(this,arguments)}catch(y){g.zq(y)}}:J}; g.zq=function(J){var y=g.vq("yt.logging.errors.log");y?y(J,"ERROR",void 0,void 0,void 0,void 0,void 0):(y=g.NP("ERRORS",[]),y.push([J,"ERROR",void 0,void 0,void 0,void 0,void 0]),Xa("ERRORS",y));HbT(J)}; Ev=function(J,y,v,d,P){var A=g.vq("yt.logging.errors.log");A?A(J,"WARNING",y,v,d,void 0,P):(A=g.NP("ERRORS",[]),A.push([J,"WARNING",y,v,d,void 0,P]),Xa("ERRORS",A))}; Q4=function(J,y){y=J.split(y);for(var v={},d=0,P=y.length;d1?J[1]:J[0])):{}}; v0=function(J,y){return Kam(J,y||{},!0)}; dh=function(J,y){return Kam(J,y||{},!1)}; Kam=function(J,y,v){var d=J.split("#",2);J=d[0];d=d.length>1?"#"+d[1]:"";var P=J.split("?",2);J=P[0];P=wN(P[1]||"");for(var A in y)if(v||!g.sg(P,A))P[A]=y[A];return g.al(J,P)+d}; P0=function(J){if(!y)var y=window.location.href;var v=g.nV(J)[1]||null,d=g.s1(J);v&&d?(J=g.nV(J),y=g.nV(y),J=J[3]==y[3]&&J[1]==y[1]&&J[4]==y[4]):J=d?g.s1(y)===d&&(Number(g.nV(y)[4]||null)||null)===(Number(g.nV(J)[4]||null)||null):!0;return J}; AN=function(J){J||(J=document.location.href);J=g.nV(J)[1]||null;return J!==null&&J==="https"}; To=function(J){J=zLP(J);return J===null?!1:J[0]==="com"&&J[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; kDj=function(J){J=zLP(J);return J===null?!1:J[1]==="google"?!0:J[2]==="google"?J[0]==="au"&&J[1]==="com"?!0:J[0]==="uk"&&J[1]==="co"?!0:!1:!1}; zLP=function(J){J=g.s1(J);return J!==null?J.split(".").reverse():null}; XQR=function(J){return J&&J.match(E1H)?J:q7(J)}; nX=function(J){var y=lQ;J=J===void 0?ibx():J;var v=Object,d=v.assign,P=M5(y);var A=y.C;try{var T=A.screenX;var M=A.screenY}catch(B){}try{var n=A.outerWidth;var Y=A.outerHeight}catch(B){}try{var S=A.innerWidth;var V=A.innerHeight}catch(B){}try{var L=A.screenLeft;var t=A.screenTop}catch(B){}try{S=A.innerWidth,V=A.innerHeight}catch(B){}try{var W=A.screen.availWidth;var c=A.screen.availTop}catch(B){}A=[L,t,T,M,W,c,n,Y,S,V];T=PO3(!1,y.C.top);M={};var b=b===void 0?g.wr:b;n=new Uw;"SVGElement"in b&&"createElementNS"in b.document&&n.set(0);Y=P03();Y["allow-top-navigation-by-user-activation"]&&n.set(1);Y["allow-popups-to-escape-sandbox"]&&n.set(2);b.crypto&&b.crypto.subtle&&n.set(3);"TextDecoder"in b&&"TextEncoder"in b&&n.set(4);b=GL3(n);y=(M.bc=b,M.bih=T.height,M.biw=T.width,M.brdim=A.join(),M.vis=Ts(y.T),M.wgl=!!qi.WebGLRenderingContext,M);v=d.call(v,P,y);v.ca_type="image";J&&(v.bid=J);return v}; M5=function(J){var y={};y.dt=QJU;y.flash="0";a:{try{var v=J.C.top.location.href}catch(S){J=2;break a}J=v?v===J.T.location.href?0:1:2}y=(y.frm=J,y);try{y.u_tz=-(new Date).getTimezoneOffset();var d=d===void 0?qi:d;try{var P=d.history.length}catch(S){P=0}y.u_his=P;var A;y.u_h=(A=qi.screen)==null?void 0:A.height;var T;y.u_w=(T=qi.screen)==null?void 0:T.width;var M;y.u_ah=(M=qi.screen)==null?void 0:M.availHeight;var n;y.u_aw=(n=qi.screen)==null?void 0:n.availWidth;var Y;y.u_cd=(Y=qi.screen)==null?void 0: Y.colorDepth}catch(S){}return y}; wQr=function(){if(!Zb6)return null;var J=Zb6();return"open"in J?J:null}; g.YU=function(J){switch(sL(J)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; sL=function(J){return J&&"status"in J?J.status:-1}; g.S3=function(J,y){typeof J==="function"&&(J=g.kV(J));return window.setTimeout(J,y)}; g.V2=function(J,y){typeof J==="function"&&(J=g.kV(J));return window.setInterval(J,y)}; g.LX=function(J){window.clearTimeout(J)}; g.tN=function(J){window.clearInterval(J)}; g.a7=function(J){J=W0(J);return typeof J==="string"&&J==="false"?!1:!!J}; g.xU=function(J,y){J=W0(J);return J===void 0&&y!==void 0?y:Number(J||0)}; OL=function(){return g.NP("EXPERIMENTS_TOKEN","")}; W0=function(J){return g.NP("EXPERIMENT_FLAGS",{})[J]}; gh=function(){for(var J=[],y=g.NP("EXPERIMENTS_FORCED_FLAGS",{}),v=g.D(Object.keys(y)),d=v.next();!d.done;d=v.next())d=d.value,J.push({key:d,value:String(y[d])});v=g.NP("EXPERIMENT_FLAGS",{});d=g.D(Object.keys(v));for(var P=d.next();!P.done;P=d.next())P=P.value,P.startsWith("force_")&&y[P]===void 0&&J.push({key:P,value:String(v[P])});return J}; DZ=function(J,y,v,d,P,A,T,M){function n(){(Y&&"readyState"in Y?Y.readyState:0)===4&&y&&g.kV(y)(Y)} v=v===void 0?"GET":v;d=d===void 0?"":d;M=M===void 0?!1:M;var Y=wQr();if(!Y)return null;"onloadend"in Y?Y.addEventListener("loadend",n,!1):Y.onreadystatechange=n;g.a7("debug_forward_web_query_parameters")&&(J=J92(J));Y.open(v,J,!0);A&&(Y.responseType=A);T&&(Y.withCredentials=!0);v=v==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(P=y93(J,P))for(var S in P)Y.setRequestHeader(S,P[S]),"content-type"===S.toLowerCase()&&(v=!1);v&&Y.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); if(M&&"setAttributionReporting"in XMLHttpRequest.prototype){J={eventSourceEligible:!0,triggerEligible:!1};try{Y.setAttributionReporting(J)}catch(V){Ev(V)}}Y.send(d);return Y}; y93=function(J,y){y=y===void 0?{}:y;var v=P0(J),d=g.NP("INNERTUBE_CLIENT_NAME"),P=g.a7("web_ajax_ignore_global_headers_if_set"),A;for(A in v5j){var T=g.NP(v5j[A]),M=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||T||(T=g.NP("VISITOR_DATA"));var n;if(!(n=!T)){if(!(n=v||(g.s1(J)?!1:!0))){n=J;var Y;if(Y=g.a7("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&kDj(n))n=Yn(n)||"",n=n.split("/"), n="/"+(n.length>1?n[1]:""),Y=n==="/pagead";n=Y?!0:!1}n=!n}n||P&&y[A]!==void 0||d==="TVHTML5_UNPLUGGED"&&M||(y[A]=T)}"X-Goog-EOM-Visitor-Id"in y&&"X-Goog-Visitor-Id"in y&&delete y["X-Goog-Visitor-Id"];if(v||!g.s1(J))y["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(v||!g.s1(J)){try{var S=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(V){}S&&(y["X-YouTube-Time-Zone"]=S)}document.location.hostname.endsWith("youtubeeducation.com")||!v&&g.s1(J)||(y["X-YouTube-Ad-Signals"]= Z5(nX()));return y}; Go=function(J,y){y.method="POST";y.postParams||(y.postParams={});return g.c0(J,y)}; A9T=function(J,y){if(window.fetch&&y.format!=="XML"){var v={method:y.method||"GET",credentials:"same-origin"};y.headers&&(v.headers=y.headers);y.priority&&(v.priority=y.priority);J=dk3(J,y);var d=P1R(J,y);d&&(v.body=d);y.withCredentials&&(v.credentials="include");var P=y.context||g.wr,A=!1,T;fetch(J,v).then(function(M){if(!A){A=!0;T&&g.LX(T);var n=M.ok,Y=function(S){S=S||{};n?y.onSuccess&&y.onSuccess.call(P,S,M):y.onError&&y.onError.call(P,S,M);y.onFinish&&y.onFinish.call(P,S,M)}; (y.format||"JSON")==="JSON"&&(n||M.status>=400&&M.status<500)?M.json().then(Y,function(){Y(null)}):Y(null)}}).catch(function(){y.onError&&y.onError.call(P,{},{})}); J=y.timeout||0;y.onFetchTimeout&&J>0&&(T=g.S3(function(){A||(A=!0,g.LX(T),y.onFetchTimeout.call(y.context||g.wr))},J))}else g.c0(J,y)}; g.c0=function(J,y){var v=y.format||"JSON";J=dk3(J,y);var d=P1R(J,y),P=!1,A=TPx(J,function(n){if(!P){P=!0;M&&g.LX(M);var Y=g.YU(n),S=null,V=400<=n.status&&n.status<500,L=500<=n.status&&n.status<600;if(Y||V||L)S=l7r(J,v,n,y.convertToSafeHtml);Y&&(Y=Mhd(v,n,S));S=S||{};V=y.context||g.wr;Y?y.onSuccess&&y.onSuccess.call(V,n,S):y.onError&&y.onError.call(V,n,S);y.onFinish&&y.onFinish.call(V,n,S)}},y.method,d,y.headers,y.responseType,y.withCredentials); d=y.timeout||0;if(y.onTimeout&&d>0){var T=y.onTimeout;var M=g.S3(function(){P||(P=!0,A.abort(),g.LX(M),T.call(y.context||g.wr,A))},d)}return A}; dk3=function(J,y){y.includeDomain&&(J=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+J);var v=g.NP("XSRF_FIELD_NAME");if(y=y.urlParams)y[v]&&delete y[v],J=v0(J,y);return J}; P1R=function(J,y){var v=g.NP("XSRF_FIELD_NAME"),d=g.NP("XSRF_TOKEN"),P=y.postBody||"",A=y.postParams,T=g.NP("XSRF_FIELD_NAME"),M;y.headers&&(M=y.headers["Content-Type"]);y.excludeXsrf||g.s1(J)&&!y.withCredentials&&g.s1(J)!==document.location.hostname||y.method!=="POST"||M&&M!=="application/x-www-form-urlencoded"||y.postParams&&y.postParams[T]||(A||(A={}),A[v]=d);(g.a7("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof P==="string"&&(P=wN(P),g.xN(P,A),P=y.postBodyFormat&& y.postBodyFormat==="JSON"?JSON.stringify(P):g.WV(P));A=P||A&&!g.Vx(A);!n5H&&A&&y.method!=="POST"&&(n5H=!0,g.zq(Error("AJAX request with postData should use POST")));return P}; l7r=function(J,y,v,d){var P=null;switch(y){case "JSON":try{var A=v.responseText}catch(T){throw d=Error("Error reading responseText"),d.params=J,Ev(d),T;}J=v.getResponseHeader("Content-Type")||"";A&&J.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),P=JSON.parse(A));break;case "XML":if(J=(J=v.responseXML)?s2U(J):null)P={},g.En(J.getElementsByTagName("*"),function(T){P[T.tagName]=YYr(T)})}d&&SYU(P); return P}; SYU=function(J){if(g.AO(J))for(var y in J)y==="html_content"||u6T(y,"_html")?J[y]=Ln(J[y]):SYU(J[y])}; Mhd=function(J,y,v){if(y&&y.status===204)return!0;switch(J){case "JSON":return!!v;case "XML":return Number(v&&v.return_code)===0;case "RAW":return!0;default:return!!v}}; s2U=function(J){return J?(J=("responseXML"in J?J.responseXML:J).getElementsByTagName("root"))&&J.length>0?J[0]:null:null}; YYr=function(J){var y="";g.En(J.childNodes,function(v){y+=v.nodeValue}); return y}; J92=function(J){var y=window.location.search,v=g.s1(J);g.a7("debug_handle_relative_url_for_query_forward_killswitch")||!v&&P0(J)&&(v=document.location.hostname);var d=Yn(J);d=(v=v&&(v.endsWith("youtube.com")||v.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!v||d)return J;var P=wN(y),A={};g.En(Vhx,function(T){P[T]&&(A[T]=P[T])}); return dh(J,A)}; Fq=function(J,y){var v=g.WL(y),d;return(new g.eQ(function(P,A){v.onSuccess=function(T){g.YU(T)?P(new Lex(T)):A(new bQ("Request failed, status="+sL(T),"net.badstatus",T))}; v.onError=function(T){A(new bQ("Unknown request error","net.unknown",T))}; v.onTimeout=function(T){A(new bQ("Request timed out","net.timeout",T))}; d=g.c0(J,v)})).TY(function(P){if(P instanceof oJ){var A; (A=d)==null||A.abort()}return qa(P)})}; g.j3=function(J,y,v,d,P,A){function T(n,Y,S){return n.TY(function(V){if(Y<=0||sL(V.xhr)===403)return qa(new bQ("Request retried too many times","net.retryexhausted",V.xhr,V));var L=Math.pow(2,v-Y+1)*S,t=P>0?Math.min(P,L):L;return M(S).then(function(){A&&A(V,Y-1);return T(Fq(J,y),Y-1,t)})})} function M(n){return new g.eQ(function(Y){setTimeout(Y,n)})} P=P===void 0?-1:P;return T(Fq(J,y),v-1,d)}; bQ=function(J,y,v){LH.call(this,J+", errorCode="+y);this.errorCode=y;this.xhr=v;this.name="PromiseAjaxError"}; Lex=function(J){this.xhr=J}; e3=function(J){this.C=J===void 0?null:J;this.J=0;this.T=null}; mv=function(J){var y=new e3;J=J===void 0?null:J;y.J=2;y.T=J===void 0?null:J;return y}; B0=function(J){var y=new e3;J=J===void 0?null:J;y.J=1;y.T=J===void 0?null:J;return y}; g.$U=function(J,y,v,d,P){q5||rh.set(""+J,y,{xN:v,path:"/",domain:d===void 0?"youtube.com":d,secure:P===void 0?!1:P})}; g.o7=function(J,y){if(!q5)return rh.get(""+J,y)}; g.CX=function(J,y,v){q5||rh.remove(""+J,y===void 0?"/":y,v===void 0?"youtube.com":v)}; th3=function(){if(g.a7("embeds_web_enable_cookie_detection_fix")){if(!g.wr.navigator.cookieEnabled)return!1}else if(!rh.isEnabled())return!1;if(!rh.isEmpty())return!0;g.a7("embeds_web_enable_cookie_detection_fix")?rh.set("TESTCOOKIESENABLED","1",{xN:60,yrW:"none",secure:!0}):rh.set("TESTCOOKIESENABLED","1",{xN:60});if(rh.get("TESTCOOKIESENABLED")!=="1")return!1;rh.remove("TESTCOOKIESENABLED");return!0}; g.R=function(J,y){if(J)return J[y.name]}; hN=function(J){var y=g.NP("INNERTUBE_HOST_OVERRIDE");y&&(J=String(y)+String(Sa(J)));return J}; Wev=function(J){var y={};g.a7("json_condensed_response")&&(y.prettyPrint="false");return J=dh(J,y)}; I7=function(J,y){var v=v===void 0?{}:v;J={method:y===void 0?"POST":y,mode:P0(J)?"same-origin":"cors",credentials:P0(J)?"same-origin":"include"};y={};for(var d=g.D(Object.keys(v)),P=d.next();!P.done;P=d.next())P=P.value,v[P]&&(y[P]=v[P]);Object.keys(y).length>0&&(J.headers=y);return J}; pX=function(){var J=/Chrome\/(\d+)/.exec(g.IM());return J?parseFloat(J[1]):NaN}; UL=function(){var J=/\sCobalt\/(\S+)\s/.exec(g.IM());if(!J)return NaN;var y=[];J=g.D(J[1].split("."));for(var v=J.next();!v.done;v=J.next())v=parseInt(v.value,10),v>=0&&y.push(v);return parseFloat(y.join("."))}; iQ=function(){return g.fX("android")&&g.fX("chrome")&&!(g.fX("trident/")||g.fX("edge/"))&&!g.fX("cobalt")}; a73=function(){return g.fX("armv7")||g.fX("aarch64")||g.fX("android")}; g.uQ=function(){return g.fX("cobalt")}; H0=function(){return g.fX("cobalt")&&g.fX("appletv")}; Xq=function(){return g.fX("(ps3; leanback shell)")||g.fX("ps3")&&g.uQ()}; xk3=function(){return g.fX("(ps4; leanback shell)")||g.fX("ps4")&&g.uQ()}; g.OB3=function(){return g.uQ()&&(g.fX("ps4 vr")||g.fX("ps4 pro vr"))}; N5=function(){var J=/WebKit\/([0-9]+)/.exec(g.IM());return!!(J&&parseInt(J[1],10)>=600)}; R7=function(){var J=/WebKit\/([0-9]+)/.exec(g.IM());return!!(J&&parseInt(J[1],10)>=602)}; g56=function(){return g.fX("iemobile")||g.fX("windows phone")&&g.fX("edge")}; kU=function(){return(KX||zo)&&g.fX("applewebkit")&&!g.fX("version")&&(!g.fX("safari")||g.fX("gsa/"))}; Q2=function(){return g.EL&&g.fX("version/")}; ZZ=function(){return g.fX("smart-tv")&&g.fX("samsung")}; g.fX=function(J){var y=g.IM();return y?y.toLowerCase().indexOf(J)>=0:!1}; wh=function(){return AnH()||kU()||Q2()?!0:g.NP("EOM_VISITOR_DATA")?!1:!0}; JX=function(J,y){return y===void 0||y===null?J:y==="1"||y===!0||y===1||y==="True"?!0:!1}; yn=function(J,y,v){for(var d in v)if(v[d]==y)return v[d];return J}; v1=function(J,y){return y===void 0||y===null?J:Number(y)}; d3=function(J,y){return y===void 0||y===null?J:y.toString()}; P1=function(J,y){if(y){if(J==="fullwidth")return Infinity;if(J==="fullheight")return 0}return J&&(y=J.match(DkP))&&(J=Number(y[2]),y=Number(y[1]),!isNaN(J)&&!isNaN(y)&&J>0)?y/J:NaN}; AX=function(J){var y=J.docid||J.video_id||J.videoId||J.id;if(y)return y;y=J.raw_player_response;y||(J=J.player_response)&&(y=JSON.parse(J));return y&&y.videoDetails&&y.videoDetails.videoId||null}; c93=function(J){return TW(J,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; g.l$=function(J){return J==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||J==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; TW=function(J,y){y=(y===void 0?0:y)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(y="EMBEDDED_PLAYER_MODE_PFL");var v=J.raw_embedded_player_response;if(!v&&(J=J.embedded_player_response))try{v=JSON.parse(J)}catch(d){return y}return v?yn(y,v.embeddedPlayerMode,Gl3):y}; nR=function(J){LH.call(this,J.message||J.description||J.name);this.isMissing=J instanceof MW;this.isTimeout=J instanceof bQ&&J.errorCode=="net.timeout";this.isCanceled=J instanceof oJ}; MW=function(){LH.call(this,"Biscotti ID is missing from server")}; bBR=function(){if(g.a7("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!wh())return Error("User has not consented - not fetching biscotti id.");var J=g.NP("PLAYER_VARS",{});if(g.L_(J,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(c93(J))return Error("Biscotti id fetching has been disabled for pfl.")}; mk6=function(){var J=bBR();if(J!==void 0)return qa(J);sK||(sK=Fq("//googleads.g.doubleclick.net/pagead/id",FeR).then(j2P).TY(function(y){return epP(2,y)})); return sK}; j2P=function(J){J=J.xhr.responseText;if(!BL(J,")]}'"))throw new MW;J=JSON.parse(J.substr(4));if((J.type||1)>1)throw new MW;J=J.id;uCT(J);sK=B0(J);BPT(18E5,2);return J}; epP=function(J,y){y=new nR(y);uCT("");sK=mv(y);J>0&&BPT(12E4,J-1);throw y;}; BPT=function(J,y){g.S3(function(){Fq("//googleads.g.doubleclick.net/pagead/id",FeR).then(j2P,function(v){return epP(y,v)}).TY(g.$k)},J)}; qYT=function(){try{var J=g.vq("yt.ads.biscotti.getId_");return J?J():mk6()}catch(y){return qa(y)}}; $k2=function(J){J&&(J.dataset?J.dataset[r9T()]="true":dbT(J))}; o5U=function(J){return J?J.dataset?J.dataset[r9T()]:J.getAttribute("data-loaded"):null}; r9T=function(){return C1P.loaded||(C1P.loaded="loaded".replace(/\-([a-z])/g,function(J,y){return y.toUpperCase()}))}; hpT=function(){var J=document;if("visibilityState"in J)return J.visibilityState;var y=YD+"VisibilityState";if(y in J)return J[y]}; S$=function(J,y){var v;XI(J,function(d){v=y[d];return!!v}); return v}; Vn=function(J){if(J.requestFullscreen)J=J.requestFullscreen(void 0);else if(J.webkitRequestFullscreen)J=J.webkitRequestFullscreen();else if(J.mozRequestFullScreen)J=J.mozRequestFullScreen();else if(J.msRequestFullscreen)J=J.msRequestFullscreen();else if(J.webkitEnterFullscreen)J=J.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return J instanceof Promise?J:Promise.resolve()}; W1=function(J){var y;g.LR()?tX()==J&&(y=document):y=J;return y&&(J=S$(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],y))?(y=J.call(y),y instanceof Promise?y:Promise.resolve()):Promise.resolve()}; I7m=function(J){return g.On(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(y){return"on"+y.toLowerCase()in J})}; pGv=function(){var J=document;return g.On(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(y){return"on"+y.toLowerCase()in J})}; g.LR=function(){return!!S$(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; tX=function(J){J=J===void 0?!1:J;var y=S$(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(J)for(;y&&y.shadowRoot;)y=y.shadowRoot.fullscreenElement;return y?y:null}; a4=function(J){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(J=J||window.event){this.event=J;for(var y in J)y in Ukr||(this[y]=J[y]);this.scale=J.scale;this.rotation=J.rotation;var v=J.target||J.srcElement;v&&v.nodeType==3&&(v=v.parentNode);this.target=v;var d=J.relatedTarget; if(d)try{d=d.nodeName?d:null}catch(P){d=null}else this.type=="mouseover"?d=J.fromElement:this.type=="mouseout"&&(d=J.toElement);this.relatedTarget=d;this.clientX=J.clientX!=void 0?J.clientX:J.pageX;this.clientY=J.clientY!=void 0?J.clientY:J.pageY;this.keyCode=J.keyCode?J.keyCode:J.which;this.charCode=J.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=J.altKey;this.ctrlKey=J.ctrlKey;this.shiftKey=J.shiftKey;this.metaKey=J.metaKey;this.C=J.pageX;this.T=J.pageY}}catch(P){}}; f7R=function(J){if(document.body&&document.documentElement){var y=document.body.scrollTop+document.documentElement.scrollTop;J.C=J.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);J.T=J.clientY+y}}; iBT=function(J,y,v,d){d=d===void 0?{}:d;J.addEventListener&&(y!="mouseenter"||"onmouseenter"in document?y!="mouseleave"||"onmouseenter"in document?y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"):y="mouseout":y="mouseover");return S4(xD,function(P){var A=typeof P[4]==="boolean"&&P[4]==!!d,T=g.AO(P[4])&&g.AO(d)&&g.ts(P[4],d);return!!P.length&&P[0]==J&&P[1]==y&&P[2]==v&&(A||T)})}; g.OK=function(J,y,v,d){d=d===void 0?{}:d;if(!J||!J.addEventListener&&!J.attachEvent)return"";var P=iBT(J,y,v,d);if(P)return P;P=++uX2.count+"";var A=!(y!="mouseenter"&&y!="mouseleave"||!J.addEventListener||"onmouseenter"in document);var T=A?function(M){M=new a4(M);if(!cZ(M.relatedTarget,function(n){return n==J},!0))return M.currentTarget=J,M.type=y,v.call(J,M)}:function(M){M=new a4(M); M.currentTarget=J;return v.call(J,M)}; T=g.kV(T);J.addEventListener?(y=="mouseenter"&&A?y="mouseover":y=="mouseleave"&&A?y="mouseout":y=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(y="MozMousePixelScroll"),HBU()||typeof d==="boolean"?J.addEventListener(y,T,d):J.addEventListener(y,T,!!d.capture)):J.attachEvent("on"+y,T);xD[P]=[J,y,v,T,d];return P}; NPm=function(J){return XGx(J,function(y){return g.vB(y,"ytp-ad-has-logging-urls")})}; XGx=function(J,y){var v=document.body||document;return g.OK(v,"click",function(d){var P=cZ(d.target,function(A){return A===v||y(A)},!0); P&&P!==v&&!P.disabled&&(d.currentTarget=P,J.call(P,d))})}; g.g3=function(J){J&&(typeof J=="string"&&(J=[J]),g.En(J,function(y){if(y in xD){var v=xD[y],d=v[0],P=v[1],A=v[3];v=v[4];d.removeEventListener?HBU()||typeof v==="boolean"?d.removeEventListener(P,A,v):d.removeEventListener(P,A,!!v.capture):d.detachEvent&&d.detachEvent("on"+P,A);delete xD[y]}}))}; Du=function(J){for(var y in xD)xD[y][0]==J&&g.g3(y)}; c1=function(J){J=J||window.event;var y;J.composedPath&&typeof J.composedPath==="function"?y=J.composedPath():y=J.path;y&&y.length?J=y[0]:(J=J||window.event,J=J.target||J.srcElement,J.nodeType==3&&(J=J.parentNode));return J}; GW=function(J){this.G=J;this.C=null;this.W=0;this.L=null;this.V=0;this.T=[];for(J=0;J<4;J++)this.T.push(0);this.J=0;this.Cy=g.OK(window,"mousemove",(0,g.Mb)(this.K,this));this.B=g.V2((0,g.Mb)(this.zK,this),25)}; b$=function(J){g.u.call(this);this.G=[];this.J9=J||this}; FM=function(J,y,v,d){for(var P=0;P0?v:0;v=d?Date.now()+d*1E3:0;if((d=d?(0,g.e$)():mN())&&window.JSON){typeof y!=="string"&&(y=JSON.stringify(y,void 0));try{d.set(J,y,v)}catch(P){d.remove(J)}}}; g.qW=function(J){var y=mN(),v=(0,g.e$)();if(!y&&!v||!window.JSON)return null;try{var d=y.get(J)}catch(P){}if(typeof d!=="string")try{d=v.get(J)}catch(P){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(P){}return d}; Ked=function(){var J=(0,g.e$)();if(J&&(J=J.T("yt-player-quality")))return J.creation}; g.r3=function(J){try{var y=mN(),v=(0,g.e$)();y&&y.remove(J);v&&v.remove(J)}catch(d){}}; g.$D=function(){return g.qW("yt-remote-session-screen-id")}; zpc=function(J){var y=this;this.T=void 0;this.C=!1;J.addEventListener("beforeinstallprompt",function(v){v.preventDefault();y.T=v}); J.addEventListener("appinstalled",function(){y.C=!0},{once:!0})}; o4=function(){if(!g.wr.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.wr.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.wr.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.wr.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.wr.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(J){return"WEB_DISPLAY_MODE_UNKNOWN"}}; CR=function(){this.o4=!0}; kl2=function(){CR.instance||(CR.instance=new CR);return CR.instance}; E5x=function(J){switch(J){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}}; Q2c=function(){this.C=g.NP("ALT_PREF_COOKIE_NAME","PREF");this.T=g.NP("ALT_PREF_COOKIE_DOMAIN","youtube.com");var J=g.o7(this.C);J&&this.parse(J)}; g.I4=function(){hX||(hX=new Q2c);return hX}; g.pR=function(J,y){return!!((ZBH("f"+(Math.floor(y/31)+1))||0)&1<0;)switch(J=TC.shift(),J.type){case "ERROR":vN.Ox(J.payload);break;case "EVENT":vN.logEvent(J.eventType,J.payload)}}; Mt=function(J){l9||(vN?vN.Ox(J):(TC.push({type:"ERROR",payload:J}),TC.length>10&&TC.shift()))}; nU=function(J,y){l9||(vN?vN.logEvent(J,y):(TC.push({type:"EVENT",eventType:J,payload:y}),TC.length>10&&TC.shift()))}; sq=function(J){if(J.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; YJ=function(J){return J.substr(0,J.indexOf(":"))||J}; g.SO=function(J,y,v,d,P){y=y===void 0?{}:y;v=v===void 0?Tim[J]:v;d=d===void 0?ln3[J]:d;P=P===void 0?M5j[J]:P;g.H1.call(this,v,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:J},y));this.type=J;this.message=v;this.level=d;this.C=P;Object.setPrototypeOf(this,g.SO.prototype)}; Vz=function(J,y){g.SO.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:y,foundObjectStores:J},Tim.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Vz.prototype)}; LU=function(J,y){var v=Error.call(this);this.message=v.message;"stack"in v&&(this.stack=v.stack);this.index=J;this.objectStore=y;Object.setPrototypeOf(this,LU.prototype)}; WN=function(J,y,v,d){y=YJ(y);var P=J instanceof Error?J:Error("Unexpected error: "+J);if(P instanceof g.SO)return P;J={objectStoreNames:v,dbName:y,dbVersion:d};if(P.name==="QuotaExceededError")return new g.SO("QUOTA_EXCEEDED",J);if(g.tW&&P.name==="UnknownError")return new g.SO("QUOTA_MAYBE_EXCEEDED",J);if(P instanceof LU)return new g.SO("MISSING_INDEX",Object.assign({},J,{objectStore:P.objectStore,index:P.index}));if(P.name==="InvalidStateError"&&nvm.some(function(A){return P.message.includes(A)}))return new g.SO("EXECUTE_TRANSACTION_ON_CLOSED_DB", J); if(P.name==="AbortError")return new g.SO("UNKNOWN_ABORT",J,P.message);P.args=[Object.assign({},J,{name:"IdbError",g_:P.name})];P.level="WARNING";return P}; g.aO=function(J,y,v){var d=yz();return new g.SO("IDB_NOT_SUPPORTED",{context:{caller:J,publicName:y,version:v,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})}; s8r=function(J){if(!J)throw Error();throw J;}; Ywj=function(J){return J}; xJ=function(J){this.C=J}; g.Oq=function(J){function y(P){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:P};P=g.D(d.T);for(var A=P.next();!A.done;A=P.next())A=A.value,A()}} function v(P){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:P};P=g.D(d.C);for(var A=P.next();!A.done;A=P.next())A=A.value,A()}} var d=this;this.state={status:"PENDING"};this.C=[];this.T=[];J=J.C;try{J(v,y)}catch(P){y(P)}}; Sw6=function(J,y,v,d,P){try{if(J.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var A=v(J.state.value);A instanceof g.Oq?gS(J,y,A,d,P):d(A)}catch(T){P(T)}}; V56=function(J,y,v,d,P){try{if(J.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var A=v(J.state.reason);A instanceof g.Oq?gS(J,y,A,d,P):d(A)}catch(T){P(T)}}; gS=function(J,y,v,d,P){y===v?P(new TypeError("Circular promise chain detected.")):v.then(function(A){A instanceof g.Oq?gS(J,y,A,d,P):d(A)},function(A){P(A)})}; L5T=function(J,y,v){function d(){v(J.error);A()} function P(){y(J.result);A()} function A(){try{J.removeEventListener("success",P),J.removeEventListener("error",d)}catch(T){}} J.addEventListener("success",P);J.addEventListener("error",d)}; t5j=function(J){return new Promise(function(y,v){L5T(J,y,v)})}; Dm=function(J){return new g.Oq(new xJ(function(y,v){L5T(J,y,v)}))}; cN=function(J,y){return new g.Oq(new xJ(function(v,d){function P(){var A=J?y(J):null;A?A.then(function(T){J=T;P()},d):v()} P()}))}; W5v=function(J,y){this.request=J;this.cursor=y}; anj=function(J){return Dm(J).then(function(y){return y?new W5v(J,y):null})}; g.x8H=function(J){J.cursor.continue(void 0);return anj(J.request)}; Ox2=function(J,y){this.C=J;this.options=y;this.transactionCount=0;this.J=Math.round((0,g.GC)());this.T=!1}; g.FD=function(J,y,v){J=J.C.createObjectStore(y,v);return new b9(J)}; jO=function(J,y){J.C.objectStoreNames.contains(y)&&J.C.deleteObjectStore(y)}; g.BN=function(J,y,v){return g.eO(J,[y],{mode:"readwrite",t9:!0},function(d){return g.mq(d.objectStore(y),v)})}; g.eO=function(J,y,v,d){var P,A,T,M,n,Y,S,V,L,t,W,c;return g.f(function(b){switch(b.T){case 1:var B={mode:"readonly",t9:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof v==="string"?B.mode=v:Object.assign(B,v);P=B;J.transactionCount++;A=P.t9?3:1;T=0;case 2:if(M){b.Qk(4);break}T++;n=Math.round((0,g.GC)());g.bR(b,5);Y=J.C.transaction(y,P.mode);B=new qt(Y);B=gvU(B,d);return g.h(b,B,7);case 7:return S=b.C,V=Math.round((0,g.GC)()),D8m(J,n,V,T,void 0,y.join(),P),b.return(S);case 5:L=g.BP(b);t=Math.round((0,g.GC)()); W=WN(L,J.C.name,y.join(),J.C.version);if((c=W instanceof g.SO&&!W.C)||T>=A)D8m(J,n,t,T,W,y.join(),P),M=W;b.Qk(2);break;case 4:return b.return(Promise.reject(M))}})}; D8m=function(J,y,v,d,P,A,T){y=v-y;P?(P instanceof g.SO&&(P.type==="QUOTA_EXCEEDED"||P.type==="QUOTA_MAYBE_EXCEEDED")&&nU("QUOTA_EXCEEDED",{dbName:YJ(J.C.name),objectStoreNames:A,transactionCount:J.transactionCount,transactionMode:T.mode}),P instanceof g.SO&&P.type==="UNKNOWN_ABORT"&&(v-=J.J,v<0&&v>=2147483648&&(v=0),nU("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:y,transactionCount:J.transactionCount,dbDuration:v}),J.T=!0),cix(J,!1,d,A,y,T.tag),Mt(P)):cix(J,!0,d,A,y, T.tag)}; cix=function(J,y,v,d,P,A){nU("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:J.T,duration:P,isSuccessful:y,tryCount:v,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})}; b9=function(J){this.C=J}; g.rS=function(J,y,v){J.C.createIndex(y,v,{unique:!1})}; GAT=function(J,y){return g.$J(J,{query:y},function(v){return v.delete().then(function(){return g.oO(v)})}).then(function(){})}; bxT=function(J,y,v){var d=[];return g.$J(J,{query:y},function(P){if(!(v!==void 0&&d.length>=v))return d.push(P.getValue()),g.oO(P)}).then(function(){return d})}; j8m=function(J){return"getAllKeys"in IDBObjectStore.prototype?Dm(J.C.getAllKeys(void 0,void 0)):F5c(J)}; F5c=function(J){var y=[];return g.elH(J,{query:void 0},function(v){y.push(v.cursor.primaryKey);return g.x8H(v)}).then(function(){return y})}; g.mq=function(J,y,v){return Dm(J.C.put(y,v))}; g.$J=function(J,y,v){J=J.C.openCursor(y.query,y.direction);return CU(J).then(function(d){return cN(d,v)})}; g.elH=function(J,y,v){var d=y.query;y=y.direction;J="openKeyCursor"in IDBObjectStore.prototype?J.C.openKeyCursor(d,y):J.C.openCursor(d,y);return anj(J).then(function(P){return cN(P,v)})}; qt=function(J){var y=this;this.C=J;this.J=new Map;this.T=!1;this.done=new Promise(function(v,d){y.C.addEventListener("complete",function(){v()}); y.C.addEventListener("error",function(P){P.currentTarget===P.target&&d(y.C.error)}); y.C.addEventListener("abort",function(){var P=y.C.error;if(P)d(P);else if(!y.T){P=g.SO;for(var A=y.C.objectStoreNames,T=[],M=0;M=v))return d.push(P.getValue()),g.oO(P)}).then(function(){return d})}; g.hW=function(J,y,v){J=J.C.openCursor(y.query===void 0?null:y.query,y.direction===void 0?"next":y.direction);return CU(J).then(function(d){return cN(d,v)})}; IO=function(J,y){this.request=J;this.cursor=y}; CU=function(J){return Dm(J).then(function(y){return y?new IO(J,y):null})}; g.oO=function(J){J.cursor.continue(void 0);return CU(J.request)}; qw3=function(J,y,v){return new Promise(function(d,P){function A(){L||(L=new Ox2(T.result,{closed:V}));return L} var T=y!==void 0?self.indexedDB.open(J,y):self.indexedDB.open(J);var M=v.blocked,n=v.blocking,Y=v.oRy,S=v.upgrade,V=v.closed,L;T.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(T.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&nU("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:YJ(J)});var W=A(),c=new qt(T.transaction); S&&S(W,function(b){return t.oldVersion=b},c); c.done.catch(function(b){P(b)})}catch(b){P(b)}}); T.addEventListener("success",function(){var t=T.result;n&&t.addEventListener("versionchange",function(){n(A())}); t.addEventListener("close",function(){nU("IDB_UNEXPECTEDLY_CLOSED",{dbName:YJ(J),dbVersion:t.version});Y&&Y()}); d(A())}); T.addEventListener("error",function(){P(T.error)}); M&&T.addEventListener("blocked",function(){M()})})}; ri2=function(J,y,v){v=v===void 0?{}:v;return qw3(J,y,v)}; pU=function(J,y){y=y===void 0?{}:y;var v,d,P,A;return g.f(function(T){if(T.T==1)return g.bR(T,2),v=self.indexedDB.deleteDatabase(J),d=y,(P=d.blocked)&&v.addEventListener("blocked",function(){P()}),g.h(T,t5j(v),4); if(T.T!=2)return g.ex(T,0);A=g.BP(T);throw WN(A,J,"",-1);})}; Uq=function(J,y){this.name=J;this.options=y;this.J=!0;this.V=this.W=0}; $8R=function(J,y){return new g.SO("INCOMPATIBLE_DB_VERSION",{dbName:J.name,oldVersion:J.options.version,newVersion:y})}; g.fU=function(J,y){if(!y)throw g.aO("openWithToken",YJ(J.name));return J.open()}; ov3=function(J,y){var v;return g.f(function(d){if(d.T==1)return g.h(d,g.fU(i9,y),2);v=d.C;return d.return(g.eO(v,["databases"],{t9:!0,mode:"readwrite"},function(P){var A=P.objectStore("databases");return A.get(J.actualName).then(function(T){if(T?J.actualName!==T.actualName||J.publicName!==T.publicName||J.userIdentifier!==T.userIdentifier:1)return g.mq(A,J).then(function(){})})}))})}; u9=function(J,y){var v;return g.f(function(d){if(d.T==1)return J?g.h(d,g.fU(i9,y),2):d.return();v=d.C;return d.return(v.delete("databases",J))})}; Cp3=function(J,y){var v,d;return g.f(function(P){return P.T==1?(v=[],g.h(P,g.fU(i9,y),2)):P.T!=3?(d=P.C,g.h(P,g.eO(d,["databases"],{t9:!0,mode:"readonly"},function(A){v.length=0;return g.$J(A.objectStore("databases"),{},function(T){J(T.getValue())&&v.push(T.getValue());return g.oO(T)})}),3)):P.return(v)})}; hlc=function(J,y){return Cp3(function(v){return v.publicName===J&&v.userIdentifier!==void 0},y)}; Ind=function(){var J,y,v,d;return g.f(function(P){switch(P.T){case 1:J=yz();if((y=J)==null?0:y.hasSucceededOnce)return P.return(!0);if(HN&&N5()&&!R7()||g.XD)return P.return(!1);try{if(v=self,!(v.indexedDB&&v.IDBIndex&&v.IDBKeyRange&&v.IDBObjectStore))return P.return(!1)}catch(A){return P.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return P.return(!1);g.bR(P,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.h(P,ov3(d,Nt),4);case 4:return g.h(P,u9("yt-idb-test-do-not-use",Nt),5);case 5:return P.return(!0);case 2:return g.BP(P),P.return(!1)}})}; prx=function(){if(RO!==void 0)return RO;l9=!0;return RO=Ind().then(function(J){l9=!1;var y;if((y=JW())!=null&&y.C){var v;y={hasSucceededOnce:((v=yz())==null?void 0:v.hasSucceededOnce)||J};var d;(d=JW())==null||d.set("LAST_RESULT_ENTRY_KEY",y,2592E3,!0)}return J})}; KU=function(){return g.vq("ytglobal.idbToken_")||void 0}; g.zC=function(){var J=KU();return J?Promise.resolve(J):prx().then(function(y){(y=y?Nt:void 0)&&g.yq("ytglobal.idbToken_",y);return y})}; U8P=function(J){if(!g.NW())throw J=new g.SO("AUTH_INVALID",{dbName:J}),Mt(J),J;var y=g.XM();return{actualName:J+":"+y,publicName:J,userIdentifier:y}}; fnH=function(J,y,v,d){var P,A,T,M,n,Y;return g.f(function(S){switch(S.T){case 1:return A=(P=Error().stack)!=null?P:"",g.h(S,g.zC(),2);case 2:T=S.C;if(!T)throw M=g.aO("openDbImpl",J,y),g.a7("ytidb_async_stack_killswitch")||(M.stack=M.stack+"\n"+A.substring(A.indexOf("\n")+1)),Mt(M),M;sq(J);n=v?{actualName:J,publicName:J,userIdentifier:void 0}:U8P(J);g.bR(S,3);return g.h(S,ov3(n,T),5);case 5:return g.h(S,ri2(n.actualName,y,d),6);case 6:return S.return(S.C);case 3:return Y=g.BP(S),g.bR(S,7),g.h(S,u9(n.actualName, T),9);case 9:g.ex(S,8);break;case 7:g.BP(S);case 8:throw Y;}})}; ixr=function(J,y,v){v=v===void 0?{}:v;return fnH(J,y,!1,v)}; ued=function(J,y,v){v=v===void 0?{}:v;return fnH(J,y,!0,v)}; Hxr=function(J,y){y=y===void 0?{}:y;var v,d;return g.f(function(P){if(P.T==1)return g.h(P,g.zC(),2);if(P.T!=3){v=P.C;if(!v)return P.return();sq(J);d=U8P(J);return g.h(P,pU(d.actualName,y),3)}return g.h(P,u9(d.actualName,v),0)})}; Xrd=function(J,y,v){J=J.map(function(d){return g.f(function(P){return P.T==1?g.h(P,pU(d.actualName,y),2):g.h(P,u9(d.actualName,v),0)})}); return Promise.all(J).then(function(){})}; NiT=function(J){var y=y===void 0?{}:y;var v,d;return g.f(function(P){if(P.T==1)return g.h(P,g.zC(),2);if(P.T!=3){v=P.C;if(!v)return P.return();sq(J);return g.h(P,hlc(J,v),3)}d=P.C;return g.h(P,Xrd(d,y,v),0)})}; Rlc=function(J,y){y=y===void 0?{}:y;var v;return g.f(function(d){if(d.T==1)return g.h(d,g.zC(),2);if(d.T!=3){v=d.C;if(!v)return d.return();sq(J);return g.h(d,pU(J,y),3)}return g.h(d,u9(J,v),0)})}; kJ=function(J,y){Uq.call(this,J,y);this.options=y;sq(J)}; K5x=function(J,y){var v;return function(){v||(v=new kJ(J,y));return v}}; g.Eq=function(J,y){return K5x(J,y)}; Qz=function(J){return g.fU(zlr(),J)}; kAr=function(J,y,v,d){var P,A,T;return g.f(function(M){switch(M.T){case 1:return P={config:J,hashData:y,timestamp:d!==void 0?d:(0,g.GC)()},g.h(M,Qz(v),2);case 2:return A=M.C,g.h(M,A.clear("hotConfigStore"),3);case 3:return g.h(M,g.BN(A,"hotConfigStore",P),4);case 4:return T=M.C,M.return(T)}})}; Evd=function(J,y,v,d,P){var A,T,M;return g.f(function(n){switch(n.T){case 1:return A={config:J,hashData:y,configData:v,timestamp:P!==void 0?P:(0,g.GC)()},g.h(n,Qz(d),2);case 2:return T=n.C,g.h(n,T.clear("coldConfigStore"),3);case 3:return g.h(n,g.BN(T,"coldConfigStore",A),4);case 4:return M=n.C,n.return(M)}})}; Q8R=function(J){var y,v;return g.f(function(d){return d.T==1?g.h(d,Qz(J),2):d.T!=3?(y=d.C,v=void 0,g.h(d,g.eO(y,["coldConfigStore"],{mode:"readwrite",t9:!0},function(P){return g.hW(P.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){v=A.getValue()})}),3)):d.return(v)})}; ZxH=function(J){var y,v;return g.f(function(d){return d.T==1?g.h(d,Qz(J),2):d.T!=3?(y=d.C,v=void 0,g.h(d,g.eO(y,["hotConfigStore"],{mode:"readwrite",t9:!0},function(P){return g.hW(P.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){v=A.getValue()})}),3)):d.return(v)})}; wrT=function(){return g.f(function(J){return g.h(J,NiT("ytGcfConfig"),0)})}; Zm=function(){g.u.call(this);this.T=[];this.C=[];var J=g.vq("yt.gcf.config.hotUpdateCallbacks");J?(this.T=[].concat(g.r(J)),this.C=J):(this.C=[],g.yq("yt.gcf.config.hotUpdateCallbacks",this.C))}; Pj=function(){var J=this;this.V=!1;this.J=this.W=0;this.L=new Zm;this.b6={mjy:function(){J.V=!0}, jDB:function(){return J.C}, Gyy:function(y){wS(J,y)}, H7:function(y){J.H7(y)}, hMx:function(y){Jp(J,y)}, G9:function(){return J.coldHashData}, DD:function(){return J.hotHashData}, GWK:function(){return J.T}, V7R:function(){return yD()}, hrB:function(){return vj()}, M7y:function(){return g.vq("yt.gcf.config.coldHashData")}, xry:function(){return g.vq("yt.gcf.config.hotHashData")}, aZA:function(){JZr(J)}, cbX:function(){J.H7(void 0);dl(J);delete Pj.instance}, X7R:function(y){J.J=y}, STj:function(){return J.J}}}; yZ6=function(){if(!Pj.instance){var J=new Pj;Pj.instance=J}return Pj.instance}; Pq6=function(J){var y;g.f(function(v){if(v.T==1)return g.a7("start_client_gcf")||g.a7("delete_gcf_config_db")?g.a7("start_client_gcf")?g.h(v,g.zC(),3):v.Qk(2):v.return();v.T!=2&&((y=v.C)&&g.NW()&&!g.a7("delete_gcf_config_db")?(J.V=!0,JZr(J)):(vK2(J),dS3(J)));return g.a7("delete_gcf_config_db")?g.h(v,wrT(),0):v.Qk(0)})}; Ap=function(){var J;return(J=vj())!=null?J:g.NP("RAW_HOT_CONFIG_GROUP")}; AZP=function(J){var y,v,d,P,A,T;return g.f(function(M){switch(M.T){case 1:if(J.T)return M.return(vj());if(!J.V)return y=g.aO("getHotConfig IDB not initialized"),Ev(y),M.return(Promise.reject(y));v=KU();d=g.NP("TIME_CREATED_MS");if(!v){P=g.aO("getHotConfig token error");Ev(P);M.Qk(2);break}return g.h(M,ZxH(v),3);case 3:if((A=M.C)&&A.timestamp>d)return wS(J,A.config),J.H7(A.hashData),M.return(vj());case 2:dS3(J);if(!(v&&J.T&&J.hotHashData)){M.Qk(4);break}return g.h(M,kAr(J.T,J.hotHashData,v,d),4);case 4:return J.T? M.return(vj()):(T=new g.H1("Config not available in ytConfig"),Ev(T),M.return(Promise.reject(T)))}})}; lfm=function(J){var y,v,d,P,A,T;return g.f(function(M){switch(M.T){case 1:if(J.C)return M.return(yD());if(!J.V)return y=g.aO("getColdConfig IDB not initialized"),Ev(y),M.return(Promise.reject(y));v=KU();d=g.NP("TIME_CREATED_MS");if(!v){P=g.aO("getColdConfig");Ev(P);M.Qk(2);break}return g.h(M,Q8R(v),3);case 3:if((A=M.C)&&A.timestamp>d)return Jp(J,A.config),T72(J,A.configData),dl(J,A.hashData),M.return(yD());case 2:vK2(J);if(!(v&&J.C&&J.coldHashData&&J.configData)){M.Qk(4);break}return g.h(M,Evd(J.C, J.coldHashData,J.configData,v,d),4);case 4:return J.C?M.return(yD()):(T=new g.H1("Config not available in ytConfig"),Ev(T),M.return(Promise.reject(T)))}})}; JZr=function(J){if(!J.T||!J.C){if(!KU()){var y=g.aO("scheduleGetConfigs");Ev(y)}J.W||(J.W=g.px.Rd(function(){return g.f(function(v){switch(v.T){case 1:return g.bR(v,2),g.h(v,AZP(J),4);case 4:g.ex(v,3);break;case 2:g.BP(v);case 3:return g.bR(v,5),g.h(v,lfm(J),7);case 7:g.ex(v,6);break;case 5:g.BP(v);case 6:J.W&&(J.W=0),g.G2(v)}})},100))}}; Mpd=function(J,y,v){var d,P,A;return g.f(function(T){switch(T.T){case 1:if(!g.a7("start_client_gcf")){T.Qk(0);break}v&&wS(J,v);J.H7(y);d=KU();if(!d){T.Qk(3);break}if(v){T.Qk(4);break}return g.h(T,ZxH(d),5);case 5:P=T.C,v=(A=P)==null?void 0:A.config;case 4:return g.h(T,kAr(v,y,d),3);case 3:if(v)for(var M=v,n=g.D(J.L.C),Y=n.next();!Y.done;Y=n.next())Y=Y.value,Y(M);g.G2(T)}})}; nKj=function(J,y,v){var d,P,A,T;return g.f(function(M){if(M.T==1){if(!g.a7("start_client_gcf"))return M.Qk(0);dl(J,y);return(d=KU())?v?M.Qk(4):g.h(M,Q8R(d),5):M.Qk(0)}M.T!=4&&(P=M.C,v=(A=P)==null?void 0:A.config);if(!v)return M.Qk(0);T=v.configData;return g.h(M,Evd(v,y,T,d),0)})}; sYx=function(){var J=yZ6(),y=(0,g.GC)()-J.J;if(!(J.J!==0&&y0&&(y.request={internalExperimentFlags:v});Sa3(J,void 0,y);Vpd(void 0,y);L8m(void 0,y);tp2(J,void 0,y);W8r(void 0,y);g.a7("start_client_gcf")&&af3(void 0,y);g.NP("DELEGATED_SESSION_ID")&& !g.a7("pageid_as_header_web")&&(y.user={onBehalfOfUser:g.NP("DELEGATED_SESSION_ID")});!g.a7("fill_delegate_context_in_gel_killswitch")&&(J=g.NP("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(y.user=Object.assign({},y.user,{serializedDelegationContext:J}));J=g.NP("INNERTUBE_CONTEXT");var d;if(g.a7("enable_persistent_device_token")&&(J==null?0:(d=J.client)==null?0:d.rolloutToken)){var P;y.client.rolloutToken=J==null?void 0:(P=J.client)==null?void 0:P.rolloutToken}d=Object;P=d.assign;J=y.client; v={};for(var A=g.D(Object.entries(wN(g.NP("DEVICE","")))),T=A.next();!T.done;T=A.next()){var M=g.D(T.value);T=M.next().value;M=M.next().value;T==="cbrand"?v.deviceMake=M:T==="cmodel"?v.deviceModel=M:T==="cbr"?v.browserName=M:T==="cbrver"?v.browserVersion=M:T==="cos"?v.osName=M:T==="cosver"?v.osVersion=M:T==="cplatform"&&(v.platform=M)}y.client=P.call(d,J,v);return y}; Sa3=function(J,y,v){J=J.D6;if(J==="WEB"||J==="MWEB"||J===1||J===2)if(y){v=Of(y,Fa,96)||new Fa;var d=o4();d=Object.keys(xSx).indexOf(d);d=d===-1?null:d;d!==null&&pd(v,3,d);DV(y,Fa,96,v)}else v&&(v.client.mainAppWebInfo=(d=v.client.mainAppWebInfo)!=null?d:{},v.client.mainAppWebInfo.webDisplayMode=o4())}; Vpd=function(J,y){var v=g.vq("yt.embedded_player.embed_url");v&&(J?(y=Of(J,qP,7)||new qP,hy(y,4,v),DV(J,qP,7,y)):y&&(y.thirdParty={embedUrl:v}))}; L8m=function(J,y){var v;if(g.a7("web_log_memory_total_kbytes")&&((v=g.wr.navigator)==null?0:v.deviceMemory)){var d;v=(d=g.wr.navigator)==null?void 0:d.deviceMemory;J?yI(J,95,GH(v*1E6)):y&&(y.client.memoryTotalKbytes=""+v*1E6)}}; tp2=function(J,y,v){if(J.appInstallData)if(y){var d;v=(d=Of(y,bS,62))!=null?d:new bS;hy(v,6,J.appInstallData);DV(y,bS,62,v)}else v&&(v.client.configInfo=v.client.configInfo||{},v.client.configInfo.appInstallData=J.appInstallData)}; W8r=function(J,y){var v=yi3();v&&(J?pd(J,61,O$j[v]):y&&(y.client.connectionType=v));g.a7("web_log_effective_connection_type")&&(v=d8c())&&(J?pd(J,94,gK3[v]):y&&(y.client.effectiveConnectionType=v))}; DSj=function(J,y,v){v=v===void 0?{}:v;var d={};g.NP("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.NP("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":v.visitorData||g.NP("VISITOR_DATA","")};if(y&&y.includes("www.youtube-nocookie.com"))return d;y=v.r9||g.NP("AUTHORIZATION");y||(J?y="Bearer "+g.vq("gapi.auth.getToken")().access_token:(J=kl2().jJ(n0),g.a7("pageid_as_header_web")||delete J["X-Goog-PageId"],d=Object.assign({},d,J)));y&&(d.Authorization=y);return d}; af3=function(J,y){var v=sYx();if(v){var d=v.coldConfigData,P=v.coldHashData;v=v.hotHashData;if(J){var A;y=(A=Of(J,bS,62))!=null?A:new bS;d=hy(y,1,d);hy(d,3,P).H7(v);DV(J,bS,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},d&&(y.client.configInfo.coldConfigData=d),P&&(y.client.configInfo.coldHashData=P),v&&(y.client.configInfo.hotHashData=v))}}; sI=function(J,y){this.version=J;this.args=y}; YW=function(J,y){this.topic=J;this.C=y}; VD=function(J,y){var v=SK();v&&v.publish.call(v,J.toString(),J,y)}; b$d=function(J){var y=cZT,v=SK();if(!v)return 0;var d=v.subscribe(y.toString(),function(P,A){var T=g.vq("ytPubsub2Pubsub2SkipSubKey");T&&T==d||(T=function(){if(L0[d])try{if(A&&y instanceof YW&&y!=P)try{var M=y.C,n=A;if(!n.args||!n.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!M.k5){var Y=new M;M.k5=Y.version}var S=M.k5}catch(V){}if(!S||n.version!=S)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{A=Reflect.construct(M, g.rV(n.args))}catch(V){throw V.message="yt.pubsub2.Data.deserialize(): "+V.message,V;}}catch(V){throw V.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+y.toString()+": "+V.message,V;}J.call(window,A)}catch(V){g.zq(V)}},GYv[y.toString()]?g.Qn()?g.px.Rd(T):g.S3(T,0):T())}); L0[d]=!0;tp[y.toString()]||(tp[y.toString()]=[]);tp[y.toString()].push(d);return d}; exR=function(){var J=F8x,y=b$d(function(v){J.apply(void 0,arguments);jYv(y)}); return y}; jYv=function(J){var y=SK();y&&(typeof J==="number"&&(J=[J]),g.En(J,function(v){y.unsubscribeByKey(v);delete L0[v]}))}; SK=function(){return g.vq("ytPubsub2Pubsub2Instance")}; Wj=function(J,y,v){v=v===void 0?{sampleRate:.1}:v;Math.random()oKj||T=pBR&&(jK++,g.a7("abandon_compression_after_N_slow_zips")?FL===g.xU("compression_disable_point")&&jK>US6&&(cj=!1):cj=!1);ffx(y);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=J;d.postParams=void 0;P(v,d)}; i$T=function(J){var y=y===void 0?!1:y;var v=v===void 0?!1:v;var d=(0,g.GC)(),P={startTime:d,ticks:{},infos:{}},A=y?g.vq("yt.logging.gzipForFetch",!1):!0;if(cj&&A){if(!J.body)return J;try{var T=v?J.body:typeof J.body==="string"?J.body:JSON.stringify(J.body);A=T;if(!v&&typeof T==="string"){var M=$Sd(T);if(M!=null&&(M>oKj||M=pBR)if(jK++,g.a7("abandon_compression_after_N_slow_zips")||g.a7("abandon_compression_after_N_slow_zips_lr")){y=jK/FL;var Y=US6/g.xU("compression_disable_point");FL>0&&FL%g.xU("compression_disable_point")===0&&y>=Y&&(cj=!1)}else cj=!1;ffx(P)}}J.headers=Object.assign({},{"Content-Encoding":"gzip"},J.headers||{});J.body=A;return J}catch(S){return Ev(S),J}}else return J}; $Sd=function(J){try{return(new Blob(J.split(""))).size}catch(y){return Ev(y),null}}; ffx=function(J){g.a7("gel_compression_csi_killswitch")||!g.a7("log_gel_compression_latency")&&!g.a7("log_gel_compression_latency_lr")||Wj("gel_compression",J,{sampleRate:.1})}; mW=function(J){var y=this;this.CK=this.C=!1;this.potentialEsfErrorCounter=this.T=0;this.handleError=function(){}; this.zR=function(){}; this.now=Date.now;this.zz=!1;this.b6={HuK:function(S){y.YZ=S}, dmW:function(){y.iG()}, g$:function(){y.jm()}, FU:function(S){return g.f(function(V){return g.h(V,y.FU(S),0)})}, B1:function(S,V){return y.B1(S,V)}, P1:function(){y.P1()}}; var v;this.QX=(v=J.QX)!=null?v:100;var d;this.pV=(d=J.pV)!=null?d:1;var P;this.uM=(P=J.uM)!=null?P:2592E6;var A;this.aH=(A=J.aH)!=null?A:12E4;var T;this.W6=(T=J.W6)!=null?T:5E3;var M;this.YZ=(M=J.YZ)!=null?M:void 0;this.hm=!!J.hm;var n;this.IU=(n=J.IU)!=null?n:.1;var Y;this.Ef=(Y=J.Ef)!=null?Y:10;J.handleError&&(this.handleError=J.handleError);J.zR&&(this.zR=J.zR);J.zz&&(this.zz=J.zz);J.CK&&(this.CK=J.CK);this.BX=J.BX;this.gU=J.gU;this.Y3=J.Y3;this.cK=J.cK;this.sendFn=J.sendFn;this.HI=J.HI;this.BD= J.BD;eK(this)&&(!this.BX||this.BX("networkless_logging"))&&uG2(this)}; uG2=function(J){eK(J)&&!J.zz&&(J.C=!0,J.hm&&Math.random()<=J.IU&&J.Y3.Qv(J.YZ),J.P1(),J.cK.tO()&&J.iG(),J.cK.listen(J.HI,J.iG.bind(J)),J.cK.listen(J.BD,J.jm.bind(J)))}; N7T=function(J,y){if(!eK(J))throw Error("IndexedDB is not supported: updateRequestHandlers");var v=y.options.onError?y.options.onError:function(){}; y.options.onError=function(P,A){var T,M,n,Y;return g.f(function(S){switch(S.T){case 1:T=H$6(A);(M=XBU(A))&&J.BX&&J.BX("web_enable_error_204")&&J.handleError(Error("Request failed due to compression"),y.url,A);if(!(J.BX&&J.BX("nwl_consider_error_code")&&T||J.BX&&!J.BX("nwl_consider_error_code")&&J.potentialEsfErrorCounter<=J.Ef)){S.Qk(2);break}if(!J.cK.lW){S.Qk(3);break}return g.h(S,J.cK.lW(),3);case 3:if(J.cK.tO()){S.Qk(2);break}v(P,A);if(!J.BX||!J.BX("nwl_consider_error_code")||((n=y)==null?void 0: n.id)===void 0){S.Qk(6);break}return g.h(S,J.Y3.mG(y.id,J.YZ,!1),6);case 6:return S.return();case 2:if(J.BX&&J.BX("nwl_consider_error_code")&&!T&&J.potentialEsfErrorCounter>J.Ef)return S.return();J.potentialEsfErrorCounter++;if(((Y=y)==null?void 0:Y.id)===void 0){S.Qk(8);break}return y.sendCount=400&&J<=599?!1:!0}; XBU=function(J){var y;J=J==null?void 0:(y=J.error)==null?void 0:y.code;return!(J!==400&&J!==415)}; RxH=function(){if(qD)return qD();var J={};qD=g.Eq("LogsDatabaseV2",{oh:(J.LogsRequestsStore={VA:2},J),shared:!1,upgrade:function(y,v,d){v(2)&&g.FD(y,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});v(3);v(5)&&(d=d.objectStore("LogsRequestsStore"),d.C.indexNames.contains("newRequest")&&d.C.deleteIndex("newRequest"),g.rS(d,"newRequestV2",["status","interface","timestamp"]));v(7)&&jO(y,"sapisid");v(9)&&jO(y,"SWHealthLog")}, version:9});return qD()}; rl=function(J){return g.fU(RxH(),J)}; zxT=function(J,y){var v,d,P,A;return g.f(function(T){if(T.T==1)return v={startTime:(0,g.GC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.h(T,rl(y),2);if(T.T!=3)return d=T.C,P=Object.assign({},J,{options:JSON.parse(JSON.stringify(J.options)),interface:g.NP("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.h(T,g.BN(d,"LogsRequestsStore",P),3);A=T.C;v.ticks.tc=(0,g.GC)();K8U(v);return T.return(A)})}; kYH=function(J,y){var v,d,P,A,T,M,n,Y;return g.f(function(S){if(S.T==1)return v={startTime:(0,g.GC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.h(S,rl(y),2);if(S.T!=3)return d=S.C,P=g.NP("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[J,P,0],T=[J,P,(0,g.GC)()],M=IDBKeyRange.bound(A,T),n="prev",g.a7("use_fifo_for_networkless")&&(n="next"),Y=void 0,g.h(S,g.eO(d,["LogsRequestsStore"],{mode:"readwrite",t9:!0},function(V){return g.hW(V.objectStore("LogsRequestsStore").index("newRequestV2"), {query:M,direction:n},function(L){L.getValue()&&(Y=L.getValue(),J==="NEW"&&(Y.status="QUEUED",L.update(Y)))})}),3); v.ticks.tc=(0,g.GC)();K8U(v);return S.return(Y)})}; EKd=function(J,y){var v;return g.f(function(d){if(d.T==1)return g.h(d,rl(y),2);v=d.C;return d.return(g.eO(v,["LogsRequestsStore"],{mode:"readwrite",t9:!0},function(P){var A=P.objectStore("LogsRequestsStore");return A.get(J).then(function(T){if(T)return T.status="QUEUED",g.mq(A,T).then(function(){return T})})}))})}; QY3=function(J,y,v,d){v=v===void 0?!0:v;var P;return g.f(function(A){if(A.T==1)return g.h(A,rl(y),2);P=A.C;return A.return(g.eO(P,["LogsRequestsStore"],{mode:"readwrite",t9:!0},function(T){var M=T.objectStore("LogsRequestsStore");return M.get(J).then(function(n){return n?(n.status="NEW",v&&(n.sendCount+=1),d!==void 0&&(n.options.compress=d),g.mq(M,n).then(function(){return n})):g.Oq.resolve(void 0)})}))})}; Z$c=function(J,y){var v;return g.f(function(d){if(d.T==1)return g.h(d,rl(y),2);v=d.C;return d.return(v.delete("LogsRequestsStore",J))})}; wBR=function(J){var y,v;return g.f(function(d){if(d.T==1)return g.h(d,rl(J),2);y=d.C;v=(0,g.GC)()-2592E6;return g.h(d,g.eO(y,["LogsRequestsStore"],{mode:"readwrite",t9:!0},function(P){return g.$J(P.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=v)return A.delete().then(function(){return g.oO(A)})})}),0)})}; JRv=function(){g.f(function(J){return g.h(J,NiT("LogsDatabaseV2"),0)})}; K8U=function(J){g.a7("nwl_csi_killswitch")||Wj("networkless_performance",J,{sampleRate:1})}; vVm=function(J){return g.fU(yRv(),J)}; dPR=function(J){var y,v;g.f(function(d){if(d.T==1)return g.h(d,vVm(J),2);y=d.C;v=(0,g.GC)()-2592E6;return g.h(d,g.eO(y,["SWHealthLog"],{mode:"readwrite",t9:!0},function(P){return g.$J(P.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=v)return A.delete().then(function(){return g.oO(A)})})}),0)})}; PSm=function(J){var y;return g.f(function(v){if(v.T==1)return g.h(v,vVm(J),2);y=v.C;return g.h(v,y.clear("SWHealthLog"),0)})}; g.$W=function(J,y,v,d,P,A,T){P=P===void 0?"":P;A=A===void 0?!1:A;T=T===void 0?!1:T;if(J)if(v&&!g.uQ())Ev(new g.H1("Legacy referrer-scrubbed ping detected")),J&&AR3(J,void 0,{scrubReferrer:!0});else if(P)DZ(J,y,"POST",P,d);else if(g.NP("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||T)DZ(J,y,"GET","",d,void 0,A,T);else{b:{try{c:{var M=new FFj({url:J});if(M.C.dsh==="1")var n=null;else{var Y=M.C.ae;if(Y==="1"){var S=M.C.adurl;if(S)try{n={version:3,DJ:decodeURIComponent(S),n$:zT(M.T,"act=1","ri=1",jAT(M))}; break c}catch(t){}}n=Y==="2"?{version:4,DJ:zT(M.T,"dct=1","suid="+M.J,""),n$:zT(M.T,"act=1","ri=1","suid="+M.J)}:null}}if(n){var V=Yn(J);var L=!(!V||!V.endsWith("/aclk")||cV(J,"ri")!=="1");break b}}catch(t){}L=!1}L?TNd(J)?(y&&y(),v=!0):v=!1:v=!1;v||AR3(J,y)}}; TNd=function(J,y){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(J,y===void 0?"":y))return!0}catch(v){}return!1}; AR3=function(J,y,v){v=v===void 0?{}:v;var d=new Image,P=""+l5x++;oF[P]=d;d.onload=d.onerror=function(){y&&oF[P]&&y();delete oF[P]}; v.scrubReferrer&&(d.referrerPolicy="no-referrer");d.src=J}; Mmd=function(J){var y;return((y=document.featurePolicy)==null?0:y.allowedFeatures().includes("attribution-reporting"))?J+"&nis=6":J+"&nis=5"}; hp=function(){C0||(C0=new w3("yt.offline"));return C0}; nVr=function(J){if(g.a7("offline_error_handling")){var y=hp().get("errors",!0)||{};y[J.message]={name:J.name,stack:J.stack};J.level&&(y[J.message].level=J.level);hp().set("errors",y,2592E3,!0)}}; IF=function(){this.C=new Map;this.T=!1}; p0=function(){if(!IF.instance){var J=g.vq("yt.networkRequestMonitor.instance")||new IF;g.yq("yt.networkRequestMonitor.instance",J);IF.instance=J}return IF.instance}; UI=function(){g.Y1.call(this);var J=this;this.T=!1;this.C=ctP();this.C.listen("networkstatus-online",function(){if(J.T&&g.a7("offline_error_handling")){var y=hp().get("errors",!0);if(y){for(var v in y)if(y[v]){var d=new g.H1(v,"sent via offline_errors");d.name=y[v].name;d.stack=y[v].stack;d.level=y[v].level;g.zq(d)}hp().set("errors",{},2592E3,!0)}}})}; sGc=function(){if(!UI.instance){var J=g.vq("yt.networkStatusManager.instance")||new UI;g.yq("yt.networkStatusManager.instance",J);UI.instance=J}return UI.instance}; g.f0=function(J){J=J===void 0?{}:J;g.Y1.call(this);var y=this;this.C=this.W=0;this.T=sGc();var v=g.vq("yt.networkStatusManager.instance.listen").bind(this.T);v&&(J.rateLimit?(this.rateLimit=J.rateLimit,v("networkstatus-online",function(){Yv3(y,"publicytnetworkstatus-online")}),v("networkstatus-offline",function(){Yv3(y,"publicytnetworkstatus-offline")})):(v("networkstatus-online",function(){y.dispatchEvent("publicytnetworkstatus-online")}),v("networkstatus-offline",function(){y.dispatchEvent("publicytnetworkstatus-offline")})))}; Yv3=function(J,y){J.rateLimit?J.C?(g.px.yI(J.W),J.W=g.px.Rd(function(){J.J!==y&&(J.dispatchEvent(y),J.J=y,J.C=(0,g.GC)())},J.rateLimit-((0,g.GC)()-J.C))):(J.dispatchEvent(y),J.J=y,J.C=(0,g.GC)()):J.dispatchEvent(y)}; uo=function(){var J=mW.call;io||(io=new g.f0({Ujk:!0,R9y:!0}));J.call(mW,this,{Y3:{Qv:wBR,t1:Z$c,fg:kYH,Np:EKd,mG:QY3,set:zxT},cK:io,handleError:function(y,v,d){var P,A=d==null?void 0:(P=d.error)==null?void 0:P.code;if(A===400||A===415){var T;y=new g.H1(y.message,v,d==null?void 0:(T=d.error)==null?void 0:T.code);Ev(y,void 0,void 0,void 0,!0)}else g.zq(y)}, zR:Ev,sendFn:SvP,now:g.GC,I7:nVr,gU:g.EK(),HI:"publicytnetworkstatus-online",BD:"publicytnetworkstatus-offline",hm:!0,IU:.1,Ef:g.xU("potential_esf_error_limit",10),BX:g.a7,zz:!(g.NW()&&g.s1(document.location.toString())!=="www.youtube-nocookie.com")});this.J=new g.Y5;g.a7("networkless_immediately_drop_all_requests")&&JRv();Rlc("LogsDatabaseV2")}; Hj=function(){var J=g.vq("yt.networklessRequestController.instance");J||(J=new uo,g.yq("yt.networklessRequestController.instance",J),g.a7("networkless_logging")&&g.zC().then(function(y){J.YZ=y;uG2(J);J.J.resolve();J.hm&&Math.random()<=J.IU&&J.YZ&&dPR(J.YZ);g.a7("networkless_immediately_drop_sw_health_store")&&Vm3(J)})); return J}; Vm3=function(J){var y;g.f(function(v){if(!J.YZ)throw y=g.aO("clearSWHealthLogsDb"),y;return v.return(PSm(J.YZ).catch(function(d){J.handleError(d)}))})}; SvP=function(J,y,v,d){d=d===void 0?!1:d;y=g.a7("web_fp_via_jspb")?Object.assign({},y):y;g.a7("use_cfr_monitor")&&LoT(J,y);if(g.a7("use_request_time_ms_header"))y.headers&&P0(J)&&(y.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.GC)())));else{var P;if((P=y.postParams)==null?0:P.requestTimeMs)y.postParams.requestTimeMs=Math.round((0,g.GC)())}v&&Object.keys(y).length===0?g.$W(J):y.compress?y.postBody?(typeof y.postBody!=="string"&&(y.postBody=JSON.stringify(y.postBody)),bo(J,y.postBody, y,g.c0,d)):bo(J,JSON.stringify(y.postParams),y,Go,d):g.c0(J,y)}; XL=function(J,y){g.a7("use_event_time_ms_header")&&P0(J)&&(y.headers||(y.headers={}),y.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.GC)())));return y}; LoT=function(J,y){var v=y.onError?y.onError:function(){}; y.onError=function(P,A){p0().requestComplete(J,!1);v(P,A)}; var d=y.onSuccess?y.onSuccess:function(){}; y.onSuccess=function(P,A){p0().requestComplete(J,!0);d(P,A)}}; g.ND=function(J){this.config_=null;J?this.config_=J:Yax()&&(this.config_=g.lo())}; g.RF=function(J,y,v,d){function P(Y){try{if((Y===void 0?0:Y)&&d.retry&&!d.networklessOptions.bypassNetworkless)A.method="POST",d.networklessOptions.writeThenSend?Hj().writeThenSend(n,A):Hj().sendAndWrite(n,A);else if(d.compress){var S=!d.networklessOptions.writeThenSend;if(A.postBody){var V=A.postBody;typeof V!=="string"&&(V=JSON.stringify(A.postBody));bo(n,V,A,g.c0,S)}else bo(n,JSON.stringify(A.postParams),A,Go,S)}else g.a7("web_all_payloads_via_jspb")?g.c0(n,A):Go(n,A)}catch(L){if(L.name==="InvalidAccessError")Ev(Error("An extension is blocking network request.")); else throw L;}} !g.NP("VISITOR_DATA")&&y!=="visitor_id"&&Math.random()<.01&&Ev(new g.H1("Missing VISITOR_DATA when sending innertube request.",y,v,d));if(!J.isReady())throw J=new g.H1("innertube xhrclient not ready",y,v,d),g.zq(J),J;var A={headers:d.headers||{},method:"POST",postParams:v,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()}, onFetchTimeout:d.onTimeout,onSuccess:function(Y,S){if(d.onSuccess)d.onSuccess(S)}, onFetchSuccess:function(Y){if(d.onSuccess)d.onSuccess(Y)}, onError:function(Y,S){if(d.onError)d.onError(S)}, onFetchError:function(Y){if(d.onError)d.onError(Y)}, timeout:d.timeout,withCredentials:!0,compress:d.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");v="";var T=J.config_.Mi;T&&(v=T);T=J.config_.hq||!1;var M=DSj(T,v,d);Object.assign(A.headers,M);A.headers.Authorization&&!v&&T&&(A.headers["x-origin"]=window.location.origin);var n=v0(""+v+("/youtubei/"+J.config_.innertubeApiVersion+"/"+y),{alt:"json"});g.vq("ytNetworklessLoggingInitializationOptions")&&tm3.isNwlInitialized?prx().then(function(Y){P(Y)}):P(!1)}; g.QD=function(J,y,v){var d=g.K0();if(d&&y){var P=d.subscribe(J,function(){function A(){z0[P]&&y.apply&&typeof y.apply=="function"&&y.apply(v||window,T)} var T=arguments;try{g.kW[J]?A():g.S3(A,0)}catch(M){g.zq(M)}},v); z0[P]=!0;EI[J]||(EI[J]=[]);EI[J].push(P);return P}return 0}; Wo6=function(J){var y=g.QD("LOGGED_IN",function(v){J.apply(void 0,arguments);g.Z6(y)})}; g.Z6=function(J){var y=g.K0();y&&(typeof J==="number"?J=[J]:typeof J==="string"&&(J=[parseInt(J,10)]),g.En(J,function(v){y.unsubscribeByKey(v);delete z0[v]}))}; g.wl=function(J,y){var v=g.K0();return v?v.publish.apply(v,arguments):!1}; xPm=function(J){var y=g.K0();if(y)if(y.clear(J),J)a5r(J);else for(var v in EI)a5r(v)}; g.K0=function(){return g.wr.ytPubsubPubsubInstance}; a5r=function(J){EI[J]&&(J=EI[J],g.En(J,function(y){z0[y]&&delete z0[y]}),J.length=0)}; g.J4=function(J,y,v){Osc(J,y,v===void 0?null:v)}; Osc=function(J,y,v){v=v===void 0?null:v;var d=gV6(J),P=document.getElementById(d),A=P&&o5U(P),T=P&&!A;A?y&&y():(y&&(A=g.QD(d,y),y=""+g.lw(y),DPv[y]=A),T||(P=cR2(J,d,function(){o5U(P)||($k2(P),g.wl(d),g.S3(function(){xPm(d)},0))},v)))}; cR2=function(J,y,v,d){d=d===void 0?null:d;var P=g.Lj("SCRIPT");P.id=y;P.onload=function(){v&&setTimeout(v,0)}; P.onreadystatechange=function(){switch(P.readyState){case "loaded":case "complete":P.onload()}}; d&&P.setAttribute("nonce",d);g.DN(P,g.c$(J));J=document.getElementsByTagName("head")[0]||document.body;J.insertBefore(P,J.firstChild);return P}; gV6=function(J){var y=document.createElement("a");g.Yp(y,J);J=y.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+oV(J)}; yw=function(J,y){if(J===y)J=!0;else if(Array.isArray(J)&&Array.isArray(y))J=g.zQ(J,y,yw);else if(g.AO(J)&&g.AO(y))a:if(g.n_(J).length!=g.n_(y).length)J=!1;else{for(var v in J)if(!yw(J[v],y[v])){J=!1;break a}J=!0}else J=!1;return J}; MZ=function(J){var y=g.iR.apply(1,arguments);if(!vU(J)||y.some(function(d){return!vU(d)}))throw Error("Only objects may be merged."); y=g.D(y);for(var v=y.next();!v.done;v=y.next())lD(J,v.value)}; lD=function(J,y){for(var v in y)if(vU(y[v])){if(v in J&&!vU(J[v]))throw Error("Cannot merge an object into a non-object.");v in J||(J[v]={});lD(J[v],y[v])}else if(nc(y[v])){if(v in J&&!nc(J[v]))throw Error("Cannot merge an array into a non-array.");v in J||(J[v]=[]);Gq3(J[v],y[v])}else J[v]=y[v];return J}; Gq3=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next())v=v.value,vU(v)?J.push(lD({},v)):nc(v)?J.push(Gq3([],v)):J.push(v);return J}; vU=function(J){return typeof J==="object"&&!Array.isArray(J)}; nc=function(J){return typeof J==="object"&&Array.isArray(J)}; sO=function(J){g.u.call(this);this.T=J}; YR=function(J){sO.call(this,!0);this.C=J}; S9=function(J,y){g.u.call(this);var v=this;this.J=[];this.G=!1;this.T=0;this.V=this.L=this.W=!1;this.zK=null;var d=(0,g.Mb)(J,y);this.C=new g.Kx(function(){return d(v.zK)},300); g.X(this,this.C);this.K=this.B=Infinity}; bs3=function(J,y){if(!y)return!1;for(var v=0;v-1)throw Error("Deps cycle for: "+y);if(J.T.has(y))return J.T.get(y);if(!J.C.has(y)){if(d)return;throw Error("No provider for: "+y);}d=J.C.get(y);v.push(y);if(d.dI!==void 0)var P=d.dI;else if(d.Rwx)P=d[bD]?mPm(J,d[bD],v):[],P=d.Rwx.apply(d,g.r(P));else if(d.C4){P=d.C4;var A=P[bD]?mPm(J,P[bD],v):[];P=new (Function.prototype.bind.apply(P,[null].concat(g.r(A))))}else throw Error("Could not resolve providers for: "+y);v.pop();d.KrK||J.T.set(y,P); return P}; mPm=function(J,y,v){return y?y.map(function(d){return d instanceof Dx?FQ(J,d.key,v,!0):FQ(J,d,v)}):[]}; e9=function(){j9||(j9=new eyH);return j9}; BU=function(){var J,y;return"h5vcc"in m_&&((J=m_.h5vcc.traceEvent)==null?0:J.traceBegin)&&((y=m_.h5vcc.traceEvent)==null?0:y.traceEnd)?1:"performance"in m_&&m_.performance.mark&&m_.performance.measure?2:0}; qZ=function(J){var y=BU();switch(y){case 1:m_.h5vcc.traceEvent.traceBegin("YTLR",J);break;case 2:m_.performance.mark(J+"-start");break;case 0:break;default:SP(y,"unknown trace type")}}; BN2=function(J){var y=BU();switch(y){case 1:m_.h5vcc.traceEvent.traceEnd("YTLR",J);break;case 2:y=J+"-start";var v=J+"-end";m_.performance.mark(v);m_.performance.measure(J,y,v);break;case 0:break;default:SP(y,"unknown trace type")}}; qvd=function(J){var y,v;(v=(y=window).onerror)==null||v.call(y,J.message,"",0,0,J)}; rRc=function(J){var y=this;var v=v===void 0?0:v;var d=d===void 0?g.EK():d;this.J=v;this.scheduler=d;this.T=new g.Y5;this.C=J;for(J={UI:0};J.UI=1E3?P():d>=J?yL||(yL=vg(function(){P();yL=void 0},0)):A-M>=10&&(kq3(y,v.tier),T.W=A)}; X$m=function(J,y){if(J.endpoint==="log_event"){g.a7("more_accurate_gel_parser")&&RT().storePayload({isJspb:!1},J.payload);za(J);var v=kR(J),d=new Map;d.set(v,[J.payload]);var P=isP(J.payload)||"";y&&(wb=new y);return new g.eQ(function(A,T){wb&&wb.isReady()?EV2(d,wb,A,T,{bypassNetworkless:!0},!0,Qw(P)):A()})}}; Kox=function(J,y,v){if(y.endpoint==="log_event"){za(void 0,y);var d=kR(y,!0),P=new Map;P.set(d,[Hk(y.payload)]);v&&(wb=new v);return new g.eQ(function(A){wb&&wb.isReady()?QGP(P,wb,A,{bypassNetworkless:!0},!0,Qw(J)):A()})}}; kR=function(J,y){var v="";if(J.dangerousLogToVisitorSession)v="visitorOnlyApprovedKey";else if(J.cttAuthInfo){if(y===void 0?0:y){y=J.cttAuthInfo.token;v=J.cttAuthInfo;var d=new uS;v.videoId?d.setVideoId(v.videoId):v.playlistId&&Ld(d,2,d5,jd(v.playlistId));Pg[y]=d}else y=J.cttAuthInfo,v={},y.videoId?v.videoId=y.videoId:y.playlistId&&(v.playlistId=y.playlistId),Am[J.cttAuthInfo.token]=v;v=J.cttAuthInfo.token}return v}; Zx=function(J,y,v){J=J===void 0?{}:J;y=y===void 0?!1:y;new g.eQ(function(d,P){var A=Jm(y,v),T=A.J;A.J=!1;Tm(A.T);Tm(A.C);A.C=0;wb&&wb.isReady()?v===void 0&&g.a7("enable_web_tiered_gel")?Zsr(d,P,J,y,300,T):Zsr(d,P,J,y,v,T):(kq3(y,v),d())})}; Zsr=function(J,y,v,d,P,A){var T=wb;v=v===void 0?{}:v;d=d===void 0?!1:d;P=P===void 0?200:P;A=A===void 0?!1:A;var M=new Map,n=new Map,Y={isJspb:d,cttAuthInfo:void 0,tier:P},S={isJspb:d,cttAuthInfo:void 0};if(d){y=g.D(Object.keys(EO));for(P=y.next();!P.done;P=y.next())P=P.value,n=g.a7("enable_web_tiered_gel")?RT().smartExtractMatchingEntries({keys:[Y,S],sizeLimit:1E3}):RT().extractMatchingEntries({isJspb:!0,cttAuthInfo:P}),n.length>0&&M.set(P,n),(g.a7("web_fp_via_jspb_and_json")&&v.writeThenSend||!g.a7("web_fp_via_jspb_and_json"))&& delete EO[P];QGP(M,T,J,v,!1,A)}else{M=g.D(Object.keys(EO));for(Y=M.next();!Y.done;Y=M.next())Y=Y.value,S=g.a7("enable_web_tiered_gel")?RT().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Y,tier:P},{isJspb:!1,cttAuthInfo:Y}],sizeLimit:1E3}):RT().extractMatchingEntries({isJspb:!1,cttAuthInfo:Y}),S.length>0&&n.set(Y,S),(g.a7("web_fp_via_jspb_and_json")&&v.writeThenSend||!g.a7("web_fp_via_jspb_and_json"))&&delete EO[Y];EV2(n,T,J,y,v,!1,A)}}; kq3=function(J,y){function v(){Zx({writeThenSend:!0},J,y)} J=J===void 0?!1:J;y=y===void 0?200:y;var d=Jm(J,y),P=d===w$2||d===JNR?5E3:yNx;g.a7("web_gel_timeout_cap")&&!d.C&&(P=vg(function(){v()},P),d.C=P); Tm(d.T);P=g.NP("LOGGING_BATCH_TIMEOUT",g.xU("web_gel_debounce_ms",1E4));g.a7("shorten_initial_gel_batch_timeout")&&lF&&(P=vUv);P=vg(function(){g.xU("gel_min_batch_size")>0?RT().getSequenceCount({cttAuthInfo:void 0,isJspb:J,tier:y})>=d5U&&v():v()},P); d.T=P}; EV2=function(J,y,v,d,P,A,T){P=P===void 0?{}:P;var M=Math.round((0,g.GC)()),n=J.size,Y=PQr(T);J=g.D(J);var S=J.next();for(T={};!S.done;T={ZP:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,fq:void 0,iD:void 0},S=J.next()){var V=g.D(S.value);S=V.next().value;V=V.next().value;T.batchRequest=g.aM({context:g.MD(y.config_||g.lo())});if(!g.Pq(V)&&!g.a7("throw_err_when_logevent_malformed_killswitch")){d();break}T.batchRequest.events=V;(V=Am[S])&&ANd(T.batchRequest,S,V);delete Am[S];T.dangerousLogToVisitorSession= S==="visitorOnlyApprovedKey";Thc(T.batchRequest,M,T.dangerousLogToVisitorSession);lZc(P);T.fq=function(L){g.a7("start_client_gcf")&&g.px.Rd(function(){return g.f(function(t){return g.h(t,M3R(L),0)})}); n--;n||v()}; T.ZP=0;T.iD=function(L){return function(){L.ZP++;if(P.bypassNetworkless&&L.ZP===1)try{g.RF(y,Y,L.batchRequest,MF({writeThenSend:!0},L.dangerousLogToVisitorSession,L.fq,L.iD,A)),lF=!1}catch(t){g.zq(t),d()}n--;n||v()}}(T); try{g.RF(y,Y,T.batchRequest,MF(P,T.dangerousLogToVisitorSession,T.fq,T.iD,A)),lF=!1}catch(L){g.zq(L),d()}}}; QGP=function(J,y,v,d,P,A){d=d===void 0?{}:d;var T=Math.round((0,g.GC)()),M={value:J.size},n=new Map([].concat(g.r(J)));n=g.D(n);for(var Y=n.next();!Y.done;Y=n.next()){var S=g.D(Y.value).next().value,V=J.get(S);Y=new fJx;var L=y.config_||g.lo(),t=new oG,W=new jm;hy(W,1,L.r4);hy(W,2,L.Pg);pd(W,16,L.VD);hy(W,17,L.innertubeContextClientVersion);if(L.RS){var c=L.RS,b=new bS;c.coldConfigData&&hy(b,1,c.coldConfigData);c.appInstallData&&hy(b,6,c.appInstallData);c.coldHashData&&hy(b,3,c.coldHashData);c.hotHashData&& b.H7(c.hotHashData);DV(W,bS,62,b)}(c=g.wr.devicePixelRatio)&&c!=1&&yI(W,65,nI(c));c=OL();c!==""&&hy(W,54,c);c=gh();if(c.length>0){b=new B$;for(var B=0;B65535&&(J=1);Xa("BATCH_CLIENT_COUNTER",J);return J}; ANd=function(J,y,v){if(v.videoId)var d="VIDEO";else if(v.playlistId)d="PLAYLIST";else return;J.credentialTransferTokenTargetId=v;J.context=J.context||{};J.context.user=J.context.user||{};J.context.user.credentialTransferTokens=[{token:y,scope:d}]}; za=function(J,y){var v=g.vq("yt.logging.transport.enableScrapingForTest"),d=W0("il_payload_scraping");d=(d!==void 0?String(d):"")==="enable_il_payload_scraping";if(!v)if(d)Ye=[],g.yq("yt.logging.transport.enableScrapingForTest",!0),g.yq("yt.logging.transport.scrapedPayloadsForTesting",Ye),g.yq("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.yq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.yq("yt.logging.transport.scrapeClientEvent",!0);else return;v=g.vq("yt.logging.transport.scrapedPayloadsForTesting");d=g.vq("yt.logging.transport.payloadToScrape");y&&(y=y.payload,(y=g.vq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(y)())&&v.push(y));y=g.vq("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var P=0;P0&&Bh6(J,y,A)}else Bh6(J,y)}; Bh6=function(J,y,v){J=qLU(J);y=y?g.WV(y):"";v=v||5;wh()&&g.$U(J,y,v)}; qLU=function(J){for(var y=g.D(rNR),v=y.next();!v.done;v=y.next())J=GG(J,v.value);return"ST-"+oV(J).toString(36)}; $5r=function(J){if(J.name==="JavaException")return!0;J=J.stack;return J.includes("chrome://")||J.includes("-extension://")||J.includes("webkit-masked-url://")}; oUH=function(J){if(!J.stack)return!0;var y=!J.stack.includes("\n");return y&&J.stack.includes("ErrorType: ")||y&&J.stack.includes("Anonymous function (Unknown script")||J.stack.toLowerCase()==="not available"||J.fileName==="user-script"||J.fileName.startsWith("user-script:")?!0:!1}; CQd=function(){this.Ve=[];this.Ab=[]}; cg=function(){if(!DY){var J=DY=new CQd;J.Ab.length=0;J.Ve.length=0;hCR(J,IZ2)}return DY}; hCR=function(J,y){y.Ab&&J.Ab.push.apply(J.Ab,y.Ab);y.Ve&&J.Ve.push.apply(J.Ve,y.Ve)}; p02=function(J){function y(){return J.charCodeAt(d++)} var v=J.length,d=0;do{var P=Gm(y);if(P===Infinity)break;var A=P>>3;switch(P&7){case 0:P=Gm(y);if(A===2)return P;break;case 1:if(A===2)return;d+=8;break;case 2:P=Gm(y);if(A===2)return J.substr(d,P);d+=P;break;case 5:if(A===2)return;d+=4;break;default:return}}while(d500));d++);d=P}else if(typeof J==="object")for(P in J){if(J[P]){var A=P;var T=J[P],M=y,n=v;A=typeof T!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(T=p02(atob(T.replace(/-/g,"+").replace(/_/g,"/"))))?bF(A+".ve",T,M,n):0;d+=A;d+=bF(P,J[P],y,v);if(d>500)break}}else v[y]=Ft(J),d+=v[y].length;else v[y]=Ft(J),d+=v[y].length;return d}; bF=function(J,y,v,d){v+="."+J;J=Ft(y);d[v]=J;return v.length+J.length}; Ft=function(J){try{return(typeof J==="string"?J:String(JSON.stringify(J))).substr(0,500)}catch(y){return"unable to serialize "+typeof J+" ("+y.message+")"}}; PN=function(J){g.jv(J)}; g.ev=function(J){g.jv(J,"WARNING")}; g.jv=function(J,y){var v=v===void 0?{}:v;v.name=g.NP("INNERTUBE_CONTEXT_CLIENT_NAME",1);v.version=g.NP("INNERTUBE_CONTEXT_CLIENT_VERSION");y=y===void 0?"ERROR":y;var d=!1;y=y===void 0?"ERROR":y;d=d===void 0?!1:d;if(J){J.hasOwnProperty("level")&&J.level&&(y=J.level);if(g.a7("console_log_js_exceptions")){var P=[];P.push("Name: "+J.name);P.push("Message: "+J.message);J.hasOwnProperty("params")&&P.push("Error Params: "+JSON.stringify(J.params));J.hasOwnProperty("args")&&P.push("Error args: "+JSON.stringify(J.args)); P.push("File name: "+J.fileName);P.push("Stacktrace: "+J.stack);window.console.log(P.join("\n"),J)}if(!(fZ2>=5)){P=[];for(var A=g.D(iXT),T=A.next();!T.done;T=A.next()){T=T.value;try{T()&&P.push(T())}catch(c){}}P=[].concat(g.r(uq3),g.r(P));var M=AO3(J);A=M.message||"Unknown Error";T=M.name||"UnknownError";var n=M.stack||J.T||"Not available";if(n.startsWith(T+": "+A)){var Y=n.split("\n");Y.shift();n=Y.join("\n")}Y=M.lineNumber||"Not available";M=M.fileName||"Not available";var S=0;if(J.hasOwnProperty("args")&& J.args&&J.args.length)for(var V=0;V=500);V++);else if(J.hasOwnProperty("params")&&J.params){var L=J.params;if(typeof J.params==="object")for(V in L){if(L[V]){var t="params."+V,W=Ft(L[V]);v[t]=W;S+=t.length+W.length;if(S>500)break}}else v.params=Ft(L)}if(P.length)for(V=0;V=500);V++);navigator.vendor&&!v.hasOwnProperty("vendor")&&(v["device.vendor"]=navigator.vendor);v={message:A,name:T,lineNumber:Y, fileName:M,stack:n,params:v,sampleWeight:1};V=Number(J.columnNumber);isNaN(V)||(v.lineNumber=v.lineNumber+":"+V);if(J.level==="IGNORED")J=0;else a:{J=cg();V=g.D(J.Ab);for(P=V.next();!P.done;P=V.next())if(P=P.value,v.message&&v.message.match(P.gx)){J=P.weight;break a}J=g.D(J.Ve);for(V=J.next();!V.done;V=J.next())if(V=V.value,V.callback(v)){J=V.weight;break a}J=1}v.sampleWeight=J;J=g.D(HXm);for(V=J.next();!V.done;V=J.next())if(V=V.value,V.QV[v.name])for(A=g.D(V.QV[v.name]),P=A.next();!P.done;P=A.next())if(T= P.value,P=v.message.match(T.nN)){v.params["params.error.original"]=P[0];A=T.groups;T={};for(Y=0;Y1E3&&g.ev(new g.H1("IL Attach cache exceeded limit"))}M= iF(v,y);hm.has(M)?uF(v,y):pT.set(M,!0)}}d=d.filter(function(S){S.csn!==y?(S.csn=y,S=!0):S=!1;return S}); v={csn:y,parentVe:v.getAsJson(),childVes:g.x7(d,function(S){return S.getAsJson()})}; y==="UNDEFINED_CSN"?Hg("visualElementAttached",A,v):J?VL("visualElementAttached",v,J,A):g.AW("visualElementAttached",v,A)}; P$d=function(J,y,v,d,P){Xt(v,y);d=CT({cttAuthInfo:ON(y)||void 0},y);v={csn:y,ve:v.getAsJson(),eventType:1};P&&(v.clientData=P);y==="UNDEFINED_CSN"?Hg("visualElementShown",d,v):J?VL("visualElementShown",v,J,d):g.AW("visualElementShown",v,d)}; AXR=function(J,y,v,d){var P=(d=d===void 0?!1:d)?16:8;d=CT({cttAuthInfo:ON(y)||void 0,endOfSequence:d},y);v={csn:y,ve:v.getAsJson(),eventType:P};y==="UNDEFINED_CSN"?Hg("visualElementHidden",d,v):J?VL("visualElementHidden",v,J,d):g.AW("visualElementHidden",v,d)}; R5=function(J,y,v,d,P){NF(J,y,v,void 0,d,P)}; NF=function(J,y,v,d,P){Xt(v,y);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var A=CT({cttAuthInfo:ON(y)||void 0},y);v={csn:y,ve:v.getAsJson(),gestureType:d};P&&(v.clientData=P);y==="UNDEFINED_CSN"?Hg("visualElementGestured",A,v):J?VL("visualElementGestured",v,J,A):g.AW("visualElementGestured",v,A)}; T36=function(){var J=Lc(16);for(var y=[],v=0;v0&&v.push(g.Lj("BR"));v.push(g.tb(A))}):v.push(g.tb(d))}return v}; Al=function(J,y,v,d){if(v==="child"){g.ag(y);var P;d===void 0?P=void 0:P=!Array.isArray(d)||d&&typeof d.j==="string"?[d]:d;v=M$P(J,P);v=g.D(v);for(J=v.next();!J.done;J=v.next())y.appendChild(J.value)}else v==="style"?g.Ni(y,"cssText",d?d:""):d===null||d===void 0?y.removeAttribute(v):(J=d.toString(),v==="href"&&(J=g.Ag(g.nn(J))),y.setAttribute(v,J))}; g.z=function(J){g.dD.call(this,J);this.zI=!0;this.V=!1;this.listeners=[]}; g.T_=function(J){g.z.call(this,J);this.ZB=new g.yK;g.X(this,this.ZB)}; l7=function(J,y,v,d,P,A,T){T=T===void 0?null:T;g.T_.call(this,y);this.api=J;this.macros={};this.componentType=v;this.G=this.B=null;this.Ky=T;this.layoutId=d;this.interactionLoggingClientData=P;this.vX=A;this.GK=null;this.Mt=new YR(this.element);g.X(this,this.Mt);this.rj=this.Z(this.element,"click",this.onClick);this.wj=[];this.AY=new S9(this.onClick,this);g.X(this,this.AY);this.aG=!1;this.cX=this.zK=null}; MK=function(J,y){J=J===void 0?null:J;y=y===void 0?null:y;if(J==null)return g.ev(Error("Got null or undefined adText object")),"";var v=g.$p(J.text);if(!J.isTemplated)return v;if(y==null)return g.ev(Error("Missing required parameters for a templated message")),v;J=g.D(Object.entries(y));for(y=J.next();!y.done;y=J.next()){var d=g.D(y.value);y=d.next().value;d=d.next().value;v=v.replace("{"+y+"}",d)}return v}; nDH=function(J){J=J===void 0?null:J;return J!=null&&(J=J.thumbnail,J!=null&&J.thumbnails!=null&&J.thumbnails.length!=0&&J.thumbnails[0].url!=null)?g.$p(J.thumbnails[0].url):""}; s43=function(J){J=J===void 0?null:J;return J!=null&&(J=J.thumbnail,J!=null&&J.thumbnails!=null&&J.thumbnails.length!=0&&J.thumbnails[0].width!=null&&J.thumbnails[0].height!=null)?new g.Kn(J.thumbnails[0].width||0,J.thumbnails[0].height||0):new g.Kn(0,0)}; g.nf=function(J){if(J.simpleText)return J.simpleText;if(J.runs){var y=[];J=g.D(J.runs);for(var v=J.next();!v.done;v=J.next())v=v.value,v.text&&y.push(v.text);return y.join("")}return""}; g.sx=function(J){if(J.simpleText)return J=document.createTextNode(J.simpleText),J;var y=[];if(J.runs)for(var v=0;v1){for(var y=[J[0]],v=1;v0&&(this.C=new g.Kx(this.FB,y,this),g.X(this,this.C));this.V=new g.Kx(this.FB,v,this);g.X(this,this.V);this.B=BKd(this.T,P,1,d);g.X(this,this.B);this.G=BKd(this.T,0,d,1);g.X(this,this.G);this.W=new b$;g.X(this,this.W)}; vc=function(J,y,v){this.T=J;this.isAsync=y;this.C=v}; yW3=function(J){switch(J){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:SP(J,"unknown result type")}}; vJd=function(J,y){var v=1;J.isTrusted===!1&&(v=0);Xa("ISDSTAT",v);dm(v,"i.s_",{triggerContext:"sk",metadata:y});return v}; dtv=function(J,y){var v=[];y?y.isTrusted===!0?v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):y.isTrusted===!1?v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):v.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");dm(0,"a.s_",{metadata:J,states:v});Xa("ASDSTAT",0)}; dm=function(J,y,v){y=P9x[y];var d,P,A={detected:J===0,source:""+y.T+((d=v.triggerContext)!=null?d:"")+((P=v.Rb)!=null?P:""),detectionStates:v.states,durationMs:v.Zf};v.metadata&&(A.contentCpn=v.metadata.contentCpn,A.adCpn=v.metadata.adCpn);g.AW("biscottiBasedDetection",A);y.C!==void 0&&(v=Number(g.NP("CATSTAT",0)),y.C!==void 0?(y=y.C,J=yW3(J),J=v&~(3<0}; s0=function(J,y,v,d,P,A){Kf.call(this,J,{j:"div",N:"ytp-ad-skip-button-slot"},"skip-button",y,v,d,P);var T=this;this.Cy=null;this.If=!1;this.Vk=A;this.L=this.api.Y().experiments.BX("enable_modern_skip_button_on_web");this.XW=!1;this.W=new g.T_({j:"span",kB:["ytp-ad-skip-button-container"]});this.L&&this.W.element.classList.add("ytp-ad-skip-button-container-detached");g.X(this,this.W);this.W.yk(this.element);this.T=this.J=null;this.YB=new g.Ex(this.W,500,!1,100,function(){return T.hide()}); g.X(this,this.YB);this.WX=new yh(this.W.element,15E3,5E3,.5,.5,this.L);g.X(this,this.WX);this.hide()}; TSU=function(J){J=J.Cy&&J.Cy.adRendererCommands;return(J&&J.clickCommand&&g.R(J.clickCommand,g.YZ)&&g.R(J.clickCommand,g.YZ).commands||[]).some(function(y){return y.adLifecycleCommand?AW6(y.adLifecycleCommand):!1})}; AW6=function(J){return J.action==="END_LINEAR_AD"||J.action==="END_LINEAR_AD_PLACEMENT"}; Sg=function(J,y,v,d,P,A){Kf.call(this,J,{j:"div",N:"ytp-ad-skip-ad-slot"},"skip-ad",y,v,d,P);this.Cy=A;this.W=!1;this.L=0;this.J=this.T=null;this.hide()}; lmx=function(J,y){J.W||(J.W=!0,J.T&&(y?J.T.Cy.hide():J.T.hide()),y?(J=J.J,J.YB.show(),J.show()):J.J.show())}; Vh=function(J,y,v,d){eV.call(this,J,y,v,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; La=function(J,y,v,d,P,A,T){A=A===void 0?!1:A;T=T===void 0?!1:T;l7.call(this,J,{j:"span",N:"ytp-ad-simple-ad-badge"},"simple-ad-badge",y,v,d);this.J=P;this.C=this.uA("ytp-ad-simple-ad-badge");(this.T=A)&&this.C.classList.add("ytp-ad-simple-ad-badge--clean-player");T&&this.C.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; tF=function(J,y,v,d,P){P=P===void 0?!1:P;Jl.call(this,"player-overlay",J,{},y,d);this.videoAdDurationSeconds=v;this.interactionLoggingClientData=d;this.qW=P}; Wc=function(J,y){g.yK.call(this);this.api=J;this.durationMs=y;this.C=null;this.lJ=new b$(this);g.X(this,this.lJ);this.T=MOj;this.lJ.Z(this.api,"presentingplayerstatechange",this.aK);this.C=this.lJ.Z(this.api,"onAdPlaybackProgress",this.cq)}; aP=function(J){g.yK.call(this);this.C=!1;this.QR=0;this.lJ=new b$(this);g.X(this,this.lJ);this.durationMs=J;this.timer=new g.Cb(100);g.X(this,this.timer);this.lJ.Z(this.timer,"tick",this.cq);this.T={seekableStart:0,seekableEnd:J/1E3,current:0};this.start()}; g.xZ=function(J,y){var v=Math.abs(Math.floor(J)),d=Math.floor(v/86400),P=Math.floor(v%86400/3600),A=Math.floor(v%3600/60);v=Math.floor(v%60);if(y){y="";d>0&&(y+=" "+d+" d\u00edas");if(d>0||P>0)y+=" "+P+" horas";y+=" "+A+" minutos";y+=" "+v+" segundos";d=y.trim()}else{y="";d>0&&(y+=d+":",P<10&&(y+="0"));if(d>0||P>0)y+=P+":",A<10&&(y+="0");y+=A+":";v<10&&(y+="0");d=y+v}return J>=0?d:"-"+d}; g.O0=function(J){return(!("button"in J)||typeof J.button!=="number"||J.button===0)&&!("shiftKey"in J&&J.shiftKey)&&!("altKey"in J&&J.altKey)&&!("metaKey"in J&&J.metaKey)&&!("ctrlKey"in J&&J.ctrlKey)}; gm=function(J,y,v,d,P,A,T){Kf.call(this,J,{j:"span",N:T?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",y,v,d,P);this.videoAdDurationSeconds=A;this.T=null;T&&this.api.Y().T&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),HN&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; DQ=function(J,y,v,d){NK.call(this,J,y,v,d,"ytp-video-ad-top-bar-title","ad-title")}; cc=function(J){this.content=J.content;if(J.commandRuns){J=g.D(J.commandRuns);for(var y=J.next();!y.done;y=J.next())y=y.value,this.loggingDirectives=g.R(y,nJc),y.onTap&&(this.interaction={onTap:y.onTap})}}; GS=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ad-simple-attributed-string"},"ad-simple-attributed-string",y,v,d);this.hide()}; bL=function(J,y,v,d,P){l7.call(this,J,{j:"span",N:P?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",y,v,d);this.T=P;this.adBadgeText=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);this.adBadgeText.yk(this.element);g.X(this,this.adBadgeText);P?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),HN&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; FS=function(J,y,v,d){l7.call(this,J,{j:"span",N:"ytp-ad-pod-index"},"ad-pod-index",y,v,d);this.api.Y().T&&(this.element.classList.add("ytp-ad-pod-index--mweb"),HN&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; jg=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",y,v,d);this.hide()}; eg=function(J,y){this.T=J;this.C=y}; sO3=function(J,y){return J.T+y*(J.C-J.T)}; mP=function(J,y,v){return J.C-J.T?g.uX((y-J.T)/(J.C-J.T),0,1):v!=null?v:Infinity}; Bc=function(J,y,v,d){d=d===void 0?!1:d;g.T_.call(this,{j:"div",N:"ytp-ad-persistent-progress-bar-container",D:[{j:"div",N:"ytp-ad-persistent-progress-bar"}]});this.api=J;this.T=y;this.J=v;d&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.X(this,this.T);this.progressBar=this.uA("ytp-ad-persistent-progress-bar");this.C=-1;this.Z(J,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; qu=function(J,y,v,d,P,A){l7.call(this,J,{j:"div",N:"ytp-ad-player-overlay",D:[{j:"div",N:"ytp-ad-player-overlay-flyout-cta"},{j:"div",N:"ytp-ad-player-overlay-instream-info"},{j:"div",N:"ytp-ad-player-overlay-skip-or-preview"},{j:"div",N:"ytp-ad-player-overlay-progress-bar"},{j:"div",N:"ytp-ad-player-overlay-instream-user-sentiment"},{j:"div",N:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",y,v,d);this.K=A;this.L=this.uA("ytp-ad-player-overlay-flyout-cta");this.L.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.C=this.uA("ytp-ad-player-overlay-instream-info");this.W=null;YqH(this)&&(J=V6("div"),g.d7(J,"ytp-ad-player-overlay-top-bar-gradients"),y=this.C,y.parentNode&&y.parentNode.insertBefore(J,y),(y=this.api.getVideoData(2))&&y.isListed&&y.title&&(v=new DQ(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),v.yk(J),v.init(w5("ad-title"),{text:y.title},this.macros),g.X(this,v)),this.W=J);this.J=null;this.Ek=this.uA("ytp-ad-player-overlay-skip-or-preview");this.WX=this.uA("ytp-ad-player-overlay-progress-bar"); this.If=this.uA("ytp-ad-player-overlay-instream-user-sentiment");this.Cy=this.uA("ytp-ad-player-overlay-ad-disclosure-banner");this.T=P;g.X(this,this.T);this.hide()}; YqH=function(J){J=J.api.Y();return g.rm(J)&&J.T}; g.$Z=function(J){J&=16777215;var y=[(J&16711680)>>16,(J&65280)>>8,J&255];J=y[0];var v=y[1];y=y[2];J=Number(J);v=Number(v);y=Number(y);if(J!=(J&255)||v!=(v&255)||y!=(y&255))throw Error('"('+J+","+v+","+y+'") is not a valid RGB color');v=J<<16|v<<8|y;return J<16?"#"+(16777216|v).toString(16).slice(1):"#"+v.toString(16)}; g.oP=function(){}; VOr=function(J){var y=new Mm;var v=new lM;v=hy(v,1,"botguard");J=hy(v,2,J);this.C=CX6(y,lM,1,Sq3,J)}; Ca=function(J){this.C=new jp(J)}; Lqd=function(){var J=!1;try{J=!!window.sessionStorage.getItem("session_logininfo")}catch(y){J=!0}return(g.NP("INNERTUBE_CLIENT_NAME")==="WEB"||g.NP("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&J}; hF=function(){var J=J===void 0?!0:J;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");Xa("LOGIN_INFO","");J&&window.sessionStorage.setItem("from_switch_account","1");J=!0;J=J===void 0?!1:J;var y,v=tOP;v||(v=document.querySelector("#persist_identity"));if(y=v){var d=y.src?(new URL(y.src)).origin:"*";if(J){var P;(P=y.contentWindow)==null||P.postMessage({action:"clear"},d)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var A=window.sessionStorage.getItem("session_logininfo");if(A){var T;(T=y.contentWindow)==null||T.postMessage({loginInfo:A},d)}}}}catch(M){}}; IP=function(J){J&&(J.startsWith("https://accounts.google.com/AddSession")?hF():J.startsWith("https://accounts.google.com/ServiceLogin")?hF():J.startsWith("https://myaccount.google.com")&&g.S5(J).T.endsWith("/youtubeoptions")&&hF());if(g.NP("LOGGED_IN",!0)&&Lqd()){var y=g.NP("VALID_SESSION_TEMPDATA_DOMAINS",[]);var v=g.s1(window.location.href);v&&y.push(v);v=g.s1(J);g.cq(y,v)||!v&&BL(J,"/")?(y=Sa(J),(y=Hjc(y))?(y=qLU(y),y=(y=g.o7(y)||null)?wN(y):{}):y=null):y=null;y==null&&(y={});v=y;var d=void 0; Lqd()?(d||(d=g.NP("LOGIN_INFO")),d?(v.session_logininfo=d,v=!0):v=!1):v=!1;v&&g5(J,y)}}; g.WqR=function(J){var y=y===void 0?{}:y;var v=v===void 0?"":v;var d=d===void 0?window:d;J=g.al(J,y);IP(J);v=g.nn(J+v);d=d.location;v=sS(v);v!==void 0&&(d.href=v)}; g.pa=function(J,y,v){y=y===void 0?{}:y;v=v===void 0?!1:v;var d=g.NP("EVENT_ID");d&&(y.ei||(y.ei=d));y&&g5(J,y);v||(IP(J),g.WqR(J))}; g.U0=function(J,y,v,d,P){P=P===void 0?!1:P;v&&g5(J,v);v=g.nn(J);var A=g.Ag(v);J!=A&&Ev(Error("Unsafe window.open URL: "+J));J=A;y=y||oV(J).toString(36);try{if(P)return P=J,P=Mmd(P),IP(P),g.WD(window,P,y,"attributionsrc")}catch(T){g.zq(T)}IP(J);return g.WD(window,v,y,d)}; amr=function(J){fa=J}; xt3=function(J){iL=J}; OU6=function(J){uL=J}; Dtd=function(){gJv=uL=iL=fa=null}; GCm=function(){var J=J===void 0?window.location.href:J;if(g.a7("kevlar_disable_theme_param"))return null;var y=Yn(J);if(g.a7("enable_dark_theme_only_on_shorts")&&y!=null&&y.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var v=g.y2(J).theme;return cWH.get(v)||null}catch(d){}return null}; Hc=function(){this.C={};if(this.T=th3()){var J=g.o7("CONSISTENCY");J&&bUx(this,{encryptedTokenJarContents:J})}}; bUx=function(J,y){if(y.encryptedTokenJarContents&&(J.C[y.encryptedTokenJarContents]=y,typeof y.expirationSeconds==="string")){var v=Number(y.expirationSeconds);setTimeout(function(){delete J.C[y.encryptedTokenJarContents]},v*1E3); J.T&&g.$U("CONSISTENCY",y.encryptedTokenJarContents,v,void 0,!0)}}; Nu=function(){this.T=-1;var J=g.NP("LOCATION_PLAYABILITY_TOKEN");g.NP("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=XS(this))&&(J=this.localStorage.get("yt-location-playability-token"));J&&(this.locationPlayabilityToken=J,this.C=void 0)}; XS=function(J){return J.localStorage===void 0?new w3("yt-client-location"):J.localStorage}; g.RP=function(J,y,v){y=y===void 0?!1:y;v=v===void 0?!1:v;var d=g.NP("INNERTUBE_CONTEXT");if(!d)return g.jv(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.aM(d);g.a7("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var P=d.client;P.clientName==="MWEB"&&P.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(P.clientFormFactor=g.NP("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");P.screenWidthPoints=window.innerWidth;P.screenHeightPoints= window.innerHeight;P.screenPixelDensity=Math.round(window.devicePixelRatio||1);P.screenDensityFloat=window.devicePixelRatio||1;P.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var A=A===void 0?!1:A;g.I4();var T="USER_INTERFACE_THEME_LIGHT";g.pR(0,165)?T="USER_INTERFACE_THEME_DARK":g.pR(0,174)?T="USER_INTERFACE_THEME_LIGHT":!g.a7("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& (T="USER_INTERFACE_THEME_DARK");A=A?T:GCm()||T;P.userInterfaceTheme=A;if(!y){if(A=yi3())P.connectionType=A;g.a7("web_log_effective_connection_type")&&(A=d8c())&&(d.client.effectiveConnectionType=A)}var M;if(g.a7("web_log_memory_total_kbytes")&&((M=g.wr.navigator)==null?0:M.deviceMemory)){var n;M=(n=g.wr.navigator)==null?void 0:n.deviceMemory;d.client.memoryTotalKbytes=""+M*1E6}g.a7("web_gcf_hashes_innertube")&&(A=sYx())&&(n=A.coldConfigData,M=A.coldHashData,A=A.hotHashData,d.client.configInfo=d.client.configInfo|| {},n&&(d.client.configInfo.coldConfigData=n),M&&(d.client.configInfo.coldHashData=M),A&&(d.client.configInfo.hotHashData=A));n=g.y2(g.wr.location.href);!g.a7("web_populate_internal_geo_killswitch")&&n.internalcountrycode&&(P.internalGeo=n.internalcountrycode);P.clientName==="MWEB"||P.clientName==="WEB"?(P.mainAppWebInfo={graftUrl:g.wr.location.href},g.a7("kevlar_woffle")&&zpc.instance&&(n=zpc.instance,P.mainAppWebInfo.pwaInstallabilityStatus=!n.C&&n.T?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": "PWA_INSTALLABILITY_STATUS_UNKNOWN"),P.mainAppWebInfo.webDisplayMode=o4(),P.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):P.clientName==="TVHTML5"&&(!g.a7("web_lr_app_quality_killswitch")&&(n=g.NP("LIVING_ROOM_APP_QUALITY"))&&(P.tvAppInfo=Object.assign(P.tvAppInfo||{},{appQuality:n})),n=g.NP("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(P.tvAppInfo=Object.assign(P.tvAppInfo||{},{certificationScope:n}));if(!g.a7("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== "undefined")try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(U){}Y=void 0}Y&&(P.timeZone=Y)}(Y=OL())?P.experimentsToken=Y:delete P.experimentsToken;Y=gh();Hc.instance||(Hc.instance=new Hc);d.request=Object.assign({},d.request,{internalExperimentFlags:Y,consistencyTokenJars:l0(Hc.instance.C)});!g.a7("web_prequest_context_killswitch")&&(Y=g.NP("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=Y);P=g.I4();Y=g.pR(0,58);P=P.get("gsml","");d.user=Object.assign({}, d.user);Y&&(d.user.enableSafetyMode=Y);P&&(d.user.lockedSafetyMode=!0);g.a7("warm_op_csn_cleanup")?v&&(y=g.xe())&&(d.clientScreenNonce=y):!y&&(y=g.xe())&&(d.clientScreenNonce=y);J&&(d.clickTracking={clickTrackingParams:J});if(J=g.vq("yt.mdx.remote.remoteClient_"))d.remoteClient=J;Nu.getInstance().setLocationOnInnerTubeContext(d);try{var S=nX(),V=S.bid;delete S.bid;d.adSignalsInfo={params:[],bid:V};for(var L=g.D(Object.entries(S)),t=L.next();!t.done;t=L.next()){var W=g.D(t.value),c=W.next().value, b=W.next().value;S=c;V=b;J=void 0;(J=d.adSignalsInfo.params)==null||J.push({key:S,value:""+V})}var B,q;if(((B=d.client)==null?void 0:B.clientName)==="TVHTML5"||((q=d.client)==null?void 0:q.clientName)==="TVHTML5_UNPLUGGED"){var C=g.NP("INNERTUBE_CONTEXT");C.adSignalsInfo&&(d.adSignalsInfo.advertisingId=C.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=C.adSignalsInfo.limitAdTracking)}}catch(U){g.jv(U)}return d}; edT=function(J,y){if(!J)return!1;var v,d=(v=g.R(J,Fq3))==null?void 0:v.signal;if(d&&y.pW)return!!y.pW[d];var P;if((v=(P=g.R(J,jOc))==null?void 0:P.request)&&y.Rj)return!!y.Rj[v];for(var A in J)if(y.v2[A])return!0;return!1}; mtR=function(J){var y={"Content-Type":"application/json"};g.NP("EOM_VISITOR_DATA")?y["X-Goog-EOM-Visitor-Id"]=g.NP("EOM_VISITOR_DATA"):g.NP("VISITOR_DATA")&&(y["X-Goog-Visitor-Id"]=g.NP("VISITOR_DATA"));y["X-Youtube-Bootstrap-Logged-In"]=g.NP("LOGGED_IN",!1);g.NP("DEBUG_SETTINGS_METADATA")&&(y["X-Debug-Settings-Metadata"]=g.NP("DEBUG_SETTINGS_METADATA"));J!=="cors"&&((J=g.NP("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(y["X-Youtube-Client-Name"]=J),(J=g.NP("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(y["X-Youtube-Client-Version"]= J),(J=g.NP("CHROME_CONNECTED_HEADER"))&&(y["X-Youtube-Chrome-Connected"]=J),(J=g.NP("DOMAIN_ADMIN_STATE"))&&(y["X-Youtube-Domain-Admin-State"]=J),g.NP("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(J=g.NP("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(y["X-YouTube-Lava-Device-Context"]=J));return y}; BSv=function(){this.C={}}; Ka=function(){this.mappings=new BSv}; zS=function(J){return function(){return new J}}; rWT=function(J){var y=y===void 0?"UNKNOWN_INTERFACE":y;if(J.length===1)return J[0];var v=qqP[y];if(v){v=new RegExp(v);for(var d=g.D(J),P=d.next();!P.done;P=d.next())if(P=P.value,v.exec(P))return P}var A=[];Object.entries(qqP).forEach(function(T){var M=g.D(T);T=M.next().value;M=M.next().value;y!==T&&A.push(M)}); v=new RegExp(A.join("|"));J.sort(function(T,M){return T.length-M.length}); d=g.D(J);for(P=d.next();!P.done;P=d.next())if(P=P.value,!v.exec(P))return P;return J[0]}; g.kZ=function(J){return"/youtubei/v1/"+rWT(J)}; E0=function(){}; Qh=function(){}; ZQ=function(){}; wm=function(J){return g.vq("ytcsi."+(J||"")+"data_")||$t3(J)}; oJx=function(){var J=wm();J.info||(J.info={});return J.info}; JI=function(J){J=wm(J);J.metadata||(J.metadata={});return J.metadata}; yd=function(J){J=wm(J);J.tick||(J.tick={});return J.tick}; v4=function(J){J=wm(J);if(J.gel){var y=J.gel;y.gelInfos||(y.gelInfos={});y.gelTicks||(y.gelTicks={})}else J.gel={gelTicks:{},gelInfos:{}};return J.gel}; C9R=function(J){J=v4(J);J.gelInfos||(J.gelInfos={});return J.gelInfos}; dQ=function(J){var y=wm(J).nonce;y||(y=g.t4(16),wm(J).nonce=y);return y}; $t3=function(J){var y={tick:{},info:{}};g.yq("ytcsi."+(J||"")+"data_",y);return y}; P4=function(){var J=g.vq("ytcsi.debug");J||(J=[],g.yq("ytcsi.debug",J),g.yq("ytcsi.reference",{}));return J}; AI=function(J){J=J||"";var y=hdv();if(y[J])return y[J];var v=P4(),d={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};v.push(d);return y[J]=d}; Imj=function(J){J=J||"";var y=hdv();y[J]&&delete y[J];var v=P4(),d={timerName:J,info:{},tick:{},span:{},jspbInfo:[]};v.push(d);y[J]=d}; hdv=function(){var J=g.vq("ytcsi.reference");if(J)return J;P4();return g.vq("ytcsi.reference")}; Te=function(J){return pN3[J]||"LATENCY_ACTION_UNKNOWN"}; lx=function(J,y){sI.call(this,1,arguments);this.timer=y}; MJ=function(){this.C=0}; nr=function(){MJ.instance||(MJ.instance=new MJ);return MJ.instance}; Yu=function(J,y){sV[y]=sV[y]||{count:0};var v=sV[y];v.count++;v.time=(0,g.GC)();J.C||(J.C=g.zW(0,function(){var d=(0,g.GC)(),P;for(P in sV)sV[P]&&d-sV[P].time>6E4&&delete sV[P];J&&(J.C=0)},5E3)); return v.count>5?(v.count===6&&Math.random()*1E5<1&&(v=new g.H1("CSI data exceeded logging limit with key",y.split("_")),y.indexOf("plev")>=0||g.ev(v)),!0):!1}; Ut3=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; fmR=function(){var J;if(g.a7("csi_use_performance_navigation_timing")){var y,v,d,P=Sq==null?void 0:(J=Sq.getEntriesByType)==null?void 0:(y=J.call(Sq,"navigation"))==null?void 0:(v=y[0])==null?void 0:(d=v.toJSON)==null?void 0:d.call(v);P?(P.requestStart=Vd(P.requestStart),P.responseEnd=Vd(P.responseEnd),P.redirectStart=Vd(P.redirectStart),P.redirectEnd=Vd(P.redirectEnd),P.domainLookupEnd=Vd(P.domainLookupEnd),P.connectStart=Vd(P.connectStart),P.connectEnd=Vd(P.connectEnd),P.responseStart=Vd(P.responseStart), P.secureConnectionStart=Vd(P.secureConnectionStart),P.domainLookupStart=Vd(P.domainLookupStart),P.isPerformanceNavigationTiming=!0,J=P):J=Sq.timing}else J=g.a7("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Sq.timing)):Sq.timing;return J}; Vd=function(J){return Math.round(Lr()+J)}; Lr=function(){return(g.a7("csi_use_time_origin")||g.a7("csi_use_time_origin_tvhtml5"))&&Sq.timeOrigin?Math.floor(Sq.timeOrigin):Sq.timing.navigationStart}; W4=function(J,y){tI("_start",J,y)}; a6=function(J,y){if(!g.a7("web_csi_action_sampling_enabled")||!wm(y).actionDisabled){var v=AI(y||"");MZ(v.info,J);J.loadType&&(v=J.loadType,JI(y).loadType=v);MZ(C9R(y),J);v=dQ(y);y=wm(y).cttAuthInfo;nr().info(J,v,y)}}; iU3=function(){var J,y,v,d;return((d=e9().resolve(cU(Pj))==null?void 0:(J=Ap())==null?void 0:(y=J.loggingHotConfig)==null?void 0:(v=y.csiConfig)==null?void 0:v.debugTicks)!=null?d:[]).map(function(P){return Object.values(P)[0]})}; tI=function(J,y,v){if(!g.a7("web_csi_action_sampling_enabled")||!wm(v).actionDisabled){var d=dQ(v),P;if(P=g.a7("web_csi_debug_sample_enabled")&&d){(e9().resolve(cU(Pj))==null?0:Ap())&&!uDR&&(uDR=!0,tI("gcfl",(0,g.GC)(),v));var A,T,M;P=(e9().resolve(cU(Pj))==null?void 0:(A=Ap())==null?void 0:(T=A.loggingHotConfig)==null?void 0:(M=T.csiConfig)==null?void 0:M.debugSampleWeight)||0;if(A=P!==0)b:{A=iU3();if(A.length>0)for(T=0;Tv.duration?d:v},{duration:0}))&&y.startTime>0&&y.responseEnd>0&&(tI("wffs",Vd(y.startTime)),tI("wffe",Vd(y.responseEnd)))}; kCR=function(J,y,v){Sq&&Sq.measure&&(J.startsWith("measure_")||(J="measure_"+J),v?Sq.measure(J,y,v):y?Sq.measure(J,y):Sq.measure(J))}; EJ3=function(J){var y=xu("aft",J);if(y)return y;y=g.NP((J||"")+"TIMING_AFT_KEYS",["ol"]);for(var v=y.length,d=0;d0&&a6(y);y={isNavigation:!0,actionType:Te(g.NP("TIMING_ACTION"))};var v=g.NP("PREVIOUS_ACTION");v&&(y.previousAction=Te(v));if(v=g.NP("CLIENT_PROTOCOL"))y.httpProtocol=v;if(v=g.NP("CLIENT_TRANSPORT"))y.transportProtocol=v;(v=g.xe())&&v!=="UNDEFINED_CSN"&&(y.clientScreenNonce=v);v=NS3();if(v===1||v===-1)y.isVisible= !0;v=JI().loadType==="cold";var d=oJx();v||(v=d.yt_lt==="cold");if(v){y.loadType="cold";v=oJx();d=fmR();var P=Lr(),A=g.NP("CSI_START_TIMESTAMP_MILLIS",0);A>0&&!g.a7("embeds_web_enable_csi_start_override_killswitch")&&(P=A);P&&(tI("srt",d.responseStart),v.prerender!==1&&W4(P));v=wNm();v>0&&tI("fpt",v);v=fmR();v.isPerformanceNavigationTiming&&a6({performanceNavigationTiming:!0},void 0);tI("nreqs",v.requestStart,void 0);tI("nress",v.responseStart,void 0);tI("nrese",v.responseEnd,void 0);v.redirectEnd- v.redirectStart>0&&(tI("nrs",v.redirectStart,void 0),tI("nre",v.redirectEnd,void 0));v.domainLookupEnd-v.domainLookupStart>0&&(tI("ndnss",v.domainLookupStart,void 0),tI("ndnse",v.domainLookupEnd,void 0));v.connectEnd-v.connectStart>0&&(tI("ntcps",v.connectStart,void 0),tI("ntcpe",v.connectEnd,void 0));v.secureConnectionStart>=Lr()&&v.connectEnd-v.secureConnectionStart>0&&(tI("nstcps",v.secureConnectionStart,void 0),tI("ntcpe",v.connectEnd,void 0));Sq&&"getEntriesByType"in Sq&&zdx();v=[];if(document.querySelector&& Sq&&Sq.getEntriesByName)for(var T in DR)DR.hasOwnProperty(T)&&(d=DR[T],Kqr(T,d)&&v.push(d));if(v.length>0)for(y.resourceInfo=[],T=g.D(v),v=T.next();!v.done;v=T.next())y.resourceInfo.push({resourceCache:v.value})}a6(y);y=v4();y.preLoggedGelInfos||(y.preLoggedGelInfos=[]);T=y.preLoggedGelInfos;y=C9R();v=void 0;for(d=0;d-1&&(delete mT["@type"],E=mT);c&&J.T.has(c)&&J.T.delete(c);((JO=y.config)==null?0:JO.uIW)&&Ge(y.config.uIW);if(E||(fH=J.J)==null||!fH.WEx(y.input,y.qr)){UU.Qk(15);break}return g.h(UU,J.J.ZbW(y.input,y.qr),16);case 16:E=UU.C;case 15:return a6U(J, E,y),((gV=y.config)==null?0:gV.R8f)&&Ge(y.config.R8f),d(),UU.return(E||void 0)}})}; SIP=function(J,y){a:{J=J.s$;var v,d=(v=g.R(y,Fq3))==null?void 0:v.signal;if(d&&J.pW&&(v=J.pW[d])){var P=v();break a}var A;if((v=(A=g.R(y,jOc))==null?void 0:A.request)&&J.Rj&&(A=J.Rj[v])){P=A();break a}for(P in y)if(J.v2[P]&&(y=J.v2[P])){P=y();break a}P=void 0}if(P!==void 0)return Promise.resolve(P)}; LWm=function(J,y,v){var d,P,A,T,M,n,Y;return g.f(function(S){if(S.T==1){A=((d=y)==null?void 0:(P=d.Tb)==null?void 0:P.identity)||n0;n=(T=y)==null?void 0:(M=T.Tb)==null?void 0:M.sessionIndex;var V=g.BQ(J.C.jJ(A,{sessionIndex:n}));return g.h(S,V,2)}Y=S.C;return S.return(Promise.resolve(Object.assign({},mtR(v),Y)))})}; VKr=function(J,y,v){var d,P=(y==null?void 0:(d=y.Tb)==null?void 0:d.identity)||n0,A;y=y==null?void 0:(A=y.Tb)==null?void 0:A.sessionIndex;J=J.C.jJ(P,{sessionIndex:y});return Object.assign({},mtR(v),J)}; $u=function(){}; o6=function(){}; Cr=function(J){this.L=J}; hI=function(){}; I6=function(){}; pr=function(){}; UV=function(){}; g.fr=function(J,y){var v=g.iR.apply(2,arguments);J=J===void 0?0:J;g.H1.call(this,y,v);this.errorType=J;Object.setPrototypeOf(this,this.constructor.prototype)}; ix=function(J,y,v,d){this.C=J;this.T=y;this.J=v;this.W=d}; O0c=function(J,y,v){if(J.C){var d=Yn(GG(y,"key"))||"/UNKNOWN_PATH";J.C.start(d)}d=v;g.a7("wug_networking_gzip_request")&&(d=i$T(v));var P;return new ((P=J.W)!=null?P:window.Request)(y,d)}; g.H4=function(J,y){if(!ux){var v=e9();Ga(v,{b9:gW3,C4:ix});var d={v2:{feedbackEndpoint:zS(hI),modifyChannelNotificationPreferenceEndpoint:zS(I6),playlistEditEndpoint:zS(pr),shareEntityEndpoint:zS(Cr),subscribeEndpoint:zS($u),unsubscribeEndpoint:zS(o6),webPlayerShareEntityServiceEndpoint:zS(UV)}},P=Nu.getInstance(),A={};P&&(A.client_location=P);J===void 0&&(J=kl2());y===void 0&&(y=v.resolve(gW3));YIv(d,y,J,A);Ga(v,{b9:DDP,dI:B4.instance});ux=v.resolve(DDP)}return ux}; cp3=function(J){var y=new nB;if(J.interpreterJavascript){var v=ror(J.interpreterJavascript);v=OS(v).toString();var d=new l1;hy(d,6,v);DV(y,l1,1,d,zs)}else J.interpreterUrl&&(v=D5(J.interpreterUrl),v=d0(v).toString(),d=new Mk,hy(d,4,v),DV(y,Mk,2,d,zs));J.interpreterHash&&IE(y,3,J.interpreterHash,zs);J.program&&IE(y,4,J.program,zs);J.globalName&&IE(y,5,J.globalName,zs);J.clientExperimentsStateBlob&&IE(y,7,J.clientExperimentsStateBlob,zs);return y}; Xh=function(J){var y={};J=J.split("&");J=g.D(J);for(var v=J.next();!v.done;v=J.next())v=v.value.split("="),v.length===2&&(y[v[0]]=v[1]);return y}; rqP=function(){if(g.a7("bg_st_hr"))return"havuokmhhs-0";var J,y=((J=performance)==null?void 0:J.timeOrigin)||0;return"havuokmhhs-"+Math.floor(y)}; NJ=function(J){this.C=J}; G0H=function(){return new Promise(function(J){var y=window.top;y.ntpevasrs!==void 0?J(new NJ(y.ntpevasrs)):(y.ntpqfbel===void 0&&(y.ntpqfbel=[]),y.ntpqfbel.push(function(v){J(new NJ(v))}))})}; FWP=function(){if(wh()){var J=g.NP("PLAYER_VARS",{});if(g.L_(J,"privembed",!1)!="1"&&!c93(J)){var y=function(){R6=!0;"google_ad_status"in window?Xa("DCLKSTAT",1):Xa("DCLKSTAT",2)}; try{g.J4("//static.doubleclick.net/instream/ad_status.js",y)}catch(v){}b0R.push(g.px.Rd(function(){if(!(R6||"google_ad_status"in window)){try{if(y){var v=""+g.lw(y),d=DPv[v];d&&g.Z6(d)}}catch(P){}R6=!0;Xa("DCLKSTAT",3)}},5E3))}}}; Kr=function(){var J=Number(g.NP("DCLKSTAT",0));return isNaN(J)?0:J}; Qd=function(J,y,v){var d=this;this.network=J;this.options=y;this.T=v;this.C=null;if(y.ZAW){var P=new g.Y5;this.C=P.promise;g.wr.ytAtRC&&KR(function(){var A,T;return g.f(function(M){if(M.T==1){if(!g.wr.ytAtRC)return M.return();A=ze(null);return g.h(M,ku(d,A),2)}T=M.C;g.wr.ytAtRC&&g.wr.ytAtRC(JSON.stringify(T));g.G2(M)})},2); G0H().then(function(A){var T,M,n,Y;return g.f(function(S){if(S.T==1)return A.bindInnertubeChallengeFetcher(function(V){return ku(d,ze(V))}),g.h(S,Zz(),2); T=S.C;M=A.getLatestChallengeResponse();n=M.challenge;if(!n)throw Error("BGE_MACIL");Y={challenge:n,El:Xh(n),U8:T,bgChallenge:new nB};P.resolve(Y);A.registerChallengeFetchedCallback(function(V){V=V.challenge;if(!V)throw Error("BGE_MACR");V={challenge:V,El:Xh(V),U8:T,bgChallenge:new nB};d.C=Promise.resolve(V)}); g.G2(S)})})}else y.preload&&jF3(this,new Promise(function(A){g.zW(0,function(){A(EV(d))},0)}))}; ze=function(J){var y={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};J&&(y.interpreterHash=J);return y}; EV=function(J,y){y=y===void 0?0:y;var v,d,P,A,T,M,n,Y,S,V,L,t;return g.f(function(W){switch(W.T){case 1:v=ze(LB().C);if(g.a7("att_fet_ks"))return g.bR(W,7),g.h(W,ku(J,v),9);g.bR(W,4);return g.h(W,egv(J,v),6);case 6:T=W.C;P=T.wFX;A=T.yIj;d=T;g.ex(W,3);break;case 4:return g.BP(W),g.ev(Error("Failed to fetch attestation challenge after "+(y+" attempts; not retrying for 24h."))),ZR(J,864E5),W.return({challenge:"",El:{},U8:void 0,bgChallenge:void 0});case 9:d=W.C;if(!d)throw Error("Fetching Attestation challenge returned falsy"); if(!d.challenge)throw Error("Missing Attestation challenge");P=d.challenge;A=Xh(P);if("c1a"in A&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.ex(W,3);break;case 7:M=g.BP(W);g.ev(M);y++;if(y>=5)return g.ev(Error("Failed to fetch attestation challenge after "+(y+" attempts; not retrying for 24h."))),ZR(J,864E5),W.return({challenge:"",El:{},U8:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,y-1)+Math.random()*1E3;return W.return(new Promise(function(c){g.zW(0, function(){c(EV(J,y))},n)})); case 3:Y=Number(A.t)||7200;ZR(J,Y*1E3);S=void 0;if(!("c1a"in A&&d.bgChallenge)){W.Qk(10);break}V=cp3(d.bgChallenge);g.bR(W,11);return g.h(W,qdd(LB(),V),13);case 13:g.ex(W,12);break;case 11:return L=g.BP(W),g.ev(L),W.return({challenge:P,El:A,U8:S,bgChallenge:V});case 12:return g.bR(W,14),S=new Sh({challenge:V,D0:{ip:"aGIf"}}),g.h(W,S.qZ,16);case 16:g.ex(W,10);break;case 14:t=g.BP(W),g.ev(t),S=void 0;case 10:return W.return({challenge:P,El:A,U8:S,bgChallenge:V})}})}; ku=function(J,y){var v;return g.f(function(d){v=J.T;if(!v||v.tO())return d.return(ku(J.network,y));md("att_pna",void 0,"attestation_challenge_fetch");return d.return(new Promise(function(P){v.mB("publicytnetworkstatus-online",function(){ku(J.network,y).then(P)})}))})}; mD6=function(J){if(!J)throw Error("Fetching Attestation challenge returned falsy");if(!J.challenge)throw Error("Missing Attestation challenge");var y=J.challenge,v=Xh(y);if("c1a"in v&&(!J.bgChallenge||!J.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},J,{wFX:y,yIj:v})}; egv=function(J,y){var v,d,P,A,T;return g.f(function(M){switch(M.T){case 1:v=void 0,d=0,P={};case 2:if(!(d<5)){M.Qk(4);break}if(!(d>0)){M.Qk(5);break}P.CG=1E3*Math.pow(2,d-1)+Math.random()*1E3;return g.h(M,new Promise(function(n){return function(Y){g.zW(0,function(){Y(void 0)},n.CG)}}(P)),5); case 5:return g.bR(M,7),g.h(M,ku(J,y),9);case 9:return A=M.C,M.return(mD6(A));case 7:v=T=g.BP(M),T instanceof Error&&g.ev(T);case 8:d++;P={CG:void 0};M.Qk(2);break;case 4:throw v;}})}; jF3=function(J,y){J.C=y}; Blv=function(J){var y,v,d;return g.f(function(P){if(P.T==1)return g.h(P,Promise.race([J.C,null]),2);y=P.C;var A=EV(J);J.C=A;(v=y)==null||(d=v.U8)==null||d.dispose();g.G2(P)})}; ZR=function(J,y){function v(){var P;return g.f(function(A){P=d-Date.now();return P<1E3?g.h(A,Blv(J),0):(KR(v,0,Math.min(P,6E4)),A.Qk(0))})} var d=Date.now()+y;v()}; qIU=function(J,y){return new Promise(function(v){g.zW(0,function(){v(y())},J)})}; g.rp3=function(J,y){var v;return g.f(function(d){var P=g.vq("yt.aba.att");return(v=P?P:Qd.instance!==void 0?Qd.instance.J.bind(Qd.instance):null)?d.return(v("ENGAGEMENT_TYPE_PLAYBACK",J,y)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; g.$Dv=function(){var J;return(J=(J=g.vq("yt.aba.att2"))?J:Qd.instance!==void 0?Qd.instance.W.bind(Qd.instance):null)?J():Promise.resolve(!1)}; Coc=function(J,y){var v=g.vq("ytDebugData.callbacks");v||(v={},g.yq("ytDebugData.callbacks",v));if(g.a7("web_dd_iu")||oWm.includes(J))v[J]=y}; wQ=function(){var J=hgT;var y=y===void 0?[]:y;var v=v===void 0?[]:v;y=Fa3.apply(null,[jJP.apply(null,g.r(y))].concat(g.r(v)));this.store=max(J,void 0,y)}; g.JV=function(J,y,v){for(var d=Object.assign({},J),P=g.D(Object.keys(y)),A=P.next();!A.done;A=P.next()){A=A.value;var T=J[A],M=y[A];if(M===void 0)delete d[A];else if(T===void 0)d[A]=M;else if(Array.isArray(M)&&Array.isArray(T))d[A]=v?[].concat(g.r(T),g.r(M)):M;else if(!Array.isArray(M)&&g.AO(M)&&!Array.isArray(T)&&g.AO(T))d[A]=g.JV(T,M,v);else if(typeof M===typeof T)d[A]=M;else return y=new g.H1("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,uik:T,updateValue:M}),g.jv(y), J}return d}; yA=function(J){var y=this;J=J===void 0?[]:J;this.C=[];this.J=this.T=0;this.W=void 0;this.totalLength=0;J.forEach(function(v){y.append(v)})}; I6P=function(J,y){return J.C.length===0?!1:(J=J.C[J.C.length-1])&&J.buffer===y.buffer&&J.byteOffset+J.length===y.byteOffset}; v9=function(J,y){y=g.D(y.C);for(var v=y.next();!v.done;v=y.next())J.append(v.value)}; dZ=function(J,y,v){return J.split(y).Jx.split(v).h2}; P9=function(J){J.W=void 0;J.T=0;J.J=0}; AV=function(J,y,v){J.isFocused(y);return y-J.J+v<=J.C[J.T].length}; pjP=function(J){if(!J.W){var y=J.C[J.T];J.W=new DataView(y.buffer,y.byteOffset,y.length)}return J.W}; UDm=function(J,y,v){y=y===void 0?0:y;v=v===void 0?-1:v;if(!J.totalLength||!v)return new DataView(new ArrayBuffer(0));v<0&&(v=J.totalLength-y);J.focus(y);if(!AV(J,y,v)){var d=J.T,P=J.J;J.focus(y+v-1);P=new Uint8Array(J.J+J.C[J.T].length-P);for(var A=0,T=d;T<=J.T;T++)P.set(J.C[T],A),A+=J.C[T].length;J.C.splice(d,J.T-d+1,P);P9(J);J.focus(y)}d=J.C[J.T];return new DataView(d.buffer,d.byteOffset+y-J.J,v)}; Tp=function(J,y,v){J=UDm(J,y===void 0?0:y,v===void 0?-1:v);return new Uint8Array(J.buffer,J.byteOffset,J.byteLength)}; lr=function(J,y,v){J=Tp(J,y===void 0?0:y,v===void 0?-1:v);y=new Uint8Array(J.length);try{y.set(J)}catch(d){for(v=0;v>10;A=56320|A&1023}Yj[P++]=A}}A=String.fromCharCode.apply(String,Yj); P<1024&&(A=A.substring(0,P));v.push(A)}return v.join("")}; Lu=function(J,y){var v;if((v=VA)==null?0:v.encodeInto)return y=VA.encodeInto(J,y),y.read>6|192:((P&64512)===55296&&d+1>18|240,y[v++]=P>>12&63|128):y[v++]=P>>12|224,y[v++]=P>>6&63|128),y[v++]=P&63|128)}return v}; tV=function(J){if(VA)return VA.encode(J);var y=new Uint8Array(Math.ceil(J.length*1.2)),v=Lu(J,y);y.lengthv&&(y=y.subarray(0,v));return y}; W9=function(J){this.C=J;this.pos=0;this.T=-1}; aX=function(J){var y=MH(J.C,J.pos);++J.pos;if(y<128)return y;for(var v=y&127,d=1;y>=128;)y=MH(J.C,J.pos),++J.pos,d*=128,v+=(y&127)*d;return v}; xj=function(J,y){var v=J.T;for(J.T=-1;J.pos+1<=J.C.totalLength;){v<0&&(v=aX(J));var d=v>>3,P=v&7;if(d===y)return!0;if(d>y){J.T=v;break}v=-1;switch(P){case 0:aX(J);break;case 1:J.pos+=8;break;case 2:d=aX(J);J.pos+=d;break;case 5:J.pos+=4}}return!1}; Oi=function(J,y){if(xj(J,y))return aX(J)}; gZ=function(J,y){if(xj(J,y))return!!aX(J)}; DT=function(J,y){if(xj(J,y)){y=aX(J);var v=Tp(J.C,J.pos,y);J.pos+=y;return v}}; c9=function(J,y){if(J=DT(J,y))return g.S0(J)}; Gp=function(J,y,v){if(J=DT(J,y))return v(new W9(new yA([J])))}; br=function(J,y){for(var v=[];xj(J,y);)v.push(aX(J));return v.length?v:void 0}; Fb=function(J,y,v){for(var d=[],P;P=DT(J,y);)d.push(v(new W9(new yA([P]))));return d.length?d:void 0}; j0=function(J,y){J=J instanceof Uint8Array?new yA([J]):J;return y(new W9(J))}; uLm=function(J,y,v){if(y&&v&&v.buffer===y.exports.memory.buffer){var d=y.realloc(v.byteOffset,J);if(d)return new Uint8Array(y.exports.memory.buffer,d,J)}J=y?new Uint8Array(y.exports.memory.buffer,y.malloc(J),J):new Uint8Array(J);v&&J.set(v);return J}; H0c=function(J,y){this.J=y;this.pos=0;this.T=[];this.C=uLm(J===void 0?4096:J,y);this.view=new DataView(this.C.buffer,this.C.byteOffset,this.C.byteLength)}; e0=function(J,y){y=J.pos+y;if(!(J.C.length>=y)){for(var v=J.C.length*2;v268435455){e0(J,4);for(var v=y&1073741823,d=0;d<4;d++)J.view.setUint8(J.pos,v&127|128),v>>=7,J.pos+=1;y=Math.floor(y/268435456)}for(e0(J,4);y>127;)J.view.setUint8(J.pos,y&127|128),y>>=7,J.pos+=1;J.view.setUint8(J.pos,y);J.pos+=1}; B9=function(J,y,v){v!==void 0&&(mH(J,y*8),mH(J,v))}; qH=function(J,y,v){v!==void 0&&B9(J,y,v?1:0)}; rZ=function(J,y,v){v!==void 0&&(mH(J,y*8+2),y=v.length,mH(J,y),e0(J,y),J.C.set(v,J.pos),J.pos+=y)}; oX=function(J,y,v){v!==void 0&&(XjR(J,y,Math.ceil(Math.log2(v.length*4+2)/7)),e0(J,v.length*1.2),y=Lu(v,J.C.subarray(J.pos)),J.pos+y>J.C.length&&(e0(J,y),y=Lu(v,J.C.subarray(J.pos))),J.pos+=y,Nl6(J))}; XjR=function(J,y,v){v=v===void 0?2:v;mH(J,y*8+2);J.T.push(J.pos);J.T.push(v);J.pos+=v}; Nl6=function(J){for(var y=J.T.pop(),v=J.T.pop(),d=J.pos-v-y;y--;){var P=y?128:0;J.view.setUint8(v++,d&127|P);d>>=7}}; NH=function(J,y,v,d,P){v&&(XjR(J,y,P===void 0?3:P),d(J,v),Nl6(J))}; g.RX=function(J,y,v){v=new H0c(4096,v);y(v,J);return new Uint8Array(v.C.buffer,v.C.byteOffset,v.pos)}; g.Ku=function(J){var y=new W9(new yA([Bf(decodeURIComponent(J))]));J=c9(y,2);y=Oi(y,4);var v=Rgx[y];if(typeof v==="undefined")throw J=new g.H1("Failed to recognize field number",{name:"EntityKeyHelperError",alA:y}),g.jv(J),J;return{oe:y,entityType:v,entityId:J}}; g.zp=function(J,y){var v=v===void 0?0:v;var d=new H0c;rZ(d,2,tV(J));J=KWx[y];if(typeof J==="undefined")throw v=new g.H1("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:y}),g.jv(v),v;B9(d,4,J);B9(d,5,1);y=new Uint8Array(d.C.buffer,d.C.byteOffset,d.pos);return encodeURIComponent(g.eB(y,v))}; kj=function(J,y,v,d){if(d===void 0)return d=Object.assign({},J[y]||{}),v=(delete d[v],d),d={},Object.assign({},J,(d[y]=v,d));var P={},A={};return Object.assign({},J,(A[y]=Object.assign({},J[y],(P[v]=d,P)),A))}; zgm=function(J,y,v,d,P){var A=J[y];if(A==null||!A[v])return J;d=g.JV(A[v],d,P==="REPEATED_FIELDS_MERGE_OPTION_APPEND");P={};A={};return Object.assign({},J,(A[y]=Object.assign({},J[y],(P[v]=d,P)),A))}; k0H=function(J,y){J=J===void 0?{}:J;switch(y.type){case "ENTITY_LOADED":return y.payload.reduce(function(d,P){var A,T=(A=P.options)==null?void 0:A.persistenceOption;if(T&&T!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&T!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!P.entityKey)return g.jv(Error("Missing entity key")),d;if(P.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!P.payload)return P=new g.H1("REPLACE entity mutation is missing a payload",{entityKey:P.entityKey}),g.jv(P),d;var M=g.Tn(P.payload); return kj(d,M,P.entityKey,P.payload[M])}if(P.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{P=P.entityKey;try{var n=g.Ku(P).entityType;M=kj(d,n,P);break a}catch(V){if(V instanceof Error){P=new g.H1("Failed to deserialize entity key",{entityKey:P,originalMessage:V.message});g.jv(P);M=d;break a}throw V;}M=void 0}return M}if(P.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!P.payload)return P=new g.H1("UPDATE entity mutation is missing a payload",{entityKey:P.entityKey}),g.jv(P),d;M=g.Tn(P.payload);var Y,S;return zgm(d, M,P.entityKey,P.payload[M],(Y=P.fieldMask)==null?void 0:(S=Y.mergeOptions)==null?void 0:S.repeatedFieldsMergeOption)}return d},J); case "REPLACE_ENTITY":var v=y.payload;return kj(J,v.entityType,v.key,v.uZ);case "REPLACE_ENTITIES":return Object.keys(y.payload).reduce(function(d,P){var A=y.payload[P];return Object.keys(A).reduce(function(T,M){return kj(T,P,M,A[M])},d)},J); case "UPDATE_ENTITY":return v=y.payload,zgm(J,v.entityType,v.key,v.uZ,v.eLW);default:return J}}; Ei=function(J,y,v){return J[y]?J[y][v]||null:null}; QA=function(J){return window.Int32Array?new Int32Array(J):Array(J)}; dv=function(J){g.u.call(this);this.counter=[0,0,0,0];this.T=new Uint8Array(16);this.C=16;if(!EWP){var y,v=new Uint8Array(256),d=new Uint8Array(256);var P=1;for(y=0;y<256;y++)v[P]=y,d[y]=P,P^=P<<1^(P>>7&&283);ZT=new Uint8Array(256);wZ=QA(256);JS=QA(256);yR=QA(256);vA=QA(256);for(var A=0;A<256;A++){P=A?d[255^v[A]]:0;P^=P<<1^P<<2^P<<3^P<<4;P=P&255^P>>>8^99;ZT[A]=P;y=P<<1^(P>>7&&283);var T=y^P;wZ[A]=y<<24|P<<16|P<<8|T;JS[A]=T<<24|wZ[A]>>>8;yR[A]=P<<24|JS[A]>>>8;vA[A]=P<<24|yR[A]>>>8}EWP=!0}P=QA(44);for(v= 0;v<4;v++)P[v]=J[4*v]<<24|J[4*v+1]<<16|J[4*v+2]<<8|J[4*v+3];for(d=1;v<44;v++)J=P[v-1],v%4||(J=(ZT[J>>16&255]^d)<<24|ZT[J>>8&255]<<16|ZT[J&255]<<8|ZT[J>>>24],d=d<<1^(d>>7&&283)),P[v]=P[v-4]^J;this.key=P}; PA=function(J,y){for(var v=0;v<4;v++)J.counter[v]=y[v*4]<<24|y[v*4+1]<<16|y[v*4+2]<<8|y[v*4+3];J.C=16}; QFU=function(J){for(var y=J.key,v=J.counter[0]^y[0],d=J.counter[1]^y[1],P=J.counter[2]^y[2],A=J.counter[3]^y[3],T=3;T>=0&&!(J.counter[T]=-~J.counter[T]);T--);for(var M,n,Y=4;Y<40;)T=wZ[v>>>24]^JS[d>>16&255]^yR[P>>8&255]^vA[A&255]^y[Y++],M=wZ[d>>>24]^JS[P>>16&255]^yR[A>>8&255]^vA[v&255]^y[Y++],n=wZ[P>>>24]^JS[A>>16&255]^yR[v>>8&255]^vA[d&255]^y[Y++],A=wZ[A>>>24]^JS[v>>16&255]^yR[d>>8&255]^vA[P&255]^y[Y++],v=T,d=M,P=n;J=J.T;T=y[40];J[0]=ZT[v>>>24]^T>>>24;J[1]=ZT[d>>16&255]^T>>16&255;J[2]=ZT[P>>8&255]^ T>>8&255;J[3]=ZT[A&255]^T&255;T=y[41];J[4]=ZT[d>>>24]^T>>>24;J[5]=ZT[P>>16&255]^T>>16&255;J[6]=ZT[A>>8&255]^T>>8&255;J[7]=ZT[v&255]^T&255;T=y[42];J[8]=ZT[P>>>24]^T>>>24;J[9]=ZT[A>>16&255]^T>>16&255;J[10]=ZT[v>>8&255]^T>>8&255;J[11]=ZT[d&255]^T&255;T=y[43];J[12]=ZT[A>>>24]^T>>>24;J[13]=ZT[v>>16&255]^T>>16&255;J[14]=ZT[d>>8&255]^T>>8&255;J[15]=ZT[P&255]^T&255}; lE=function(){if(!AS&&!g.XD){if(TP)return TP;var J;TP=(J=window.crypto)==null?void 0:J.subtle;var y,v,d;if(((y=TP)==null?0:y.importKey)&&((v=TP)==null?0:v.sign)&&((d=TP)==null?0:d.encrypt))return TP;TP=void 0}}; g.ME=function(J){this.T=J}; Z0U=function(J,y,v,d){var P,A;return g.f(function(T){switch(T.T){case 1:if(J.J){T.Qk(2);break}return g.h(T,d.importKey("raw",J.T,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:J.J=T.C;case 2:return P={name:"AES-CTR",counter:v,length:128},g.h(T,d.encrypt(P,J.J,y),4);case 4:return A=T.C,T.return(new Uint8Array(A))}})}; wj3=function(J,y,v){J.C||(J.C=new dv(J.T));PA(J.C,v);return J.C.encrypt(y)}; g.np=function(J){this.T=J}; sp=function(J){this.V=new Uint8Array(64);this.J=new Uint8Array(64);this.W=0;this.L=new Uint8Array(64);this.T=0;this.V.set(J);this.J.set(J);for(J=0;J<64;J++)this.V[J]^=92,this.J[J]^=54;this.reset()}; J4r=function(J,y,v){for(var d=J.G,P=J.C[0],A=J.C[1],T=J.C[2],M=J.C[3],n=J.C[4],Y=J.C[5],S=J.C[6],V=J.C[7],L,t,W,c=0;c<64;)c<16?(d[c]=W=y[v]<<24|y[v+1]<<16|y[v+2]<<8|y[v+3],v+=4):(L=d[c-2],t=d[c-15],W=d[c-7]+d[c-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[c]=W),L=V+YI[c]+W+((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&Y^~n&S),t=((P>>>2|P<<30)^(P>>>13|P<<19)^(P>>>22|P<<10))+(P&A^P&T^A&T),V=L+t,M+=L,c++,c<16?(d[c]=W=y[v]<<24|y[v+1]<<16|y[v+2]<<8|y[v+3],v+=4):(L= d[c-2],t=d[c-15],W=d[c-7]+d[c-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[c]=W),L=S+YI[c]+W+((M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7))+(M&n^~M&Y),t=((V>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10))+(V&P^V&A^P&A),S=L+t,T+=L,c++,c<16?(d[c]=W=y[v]<<24|y[v+1]<<16|y[v+2]<<8|y[v+3],v+=4):(L=d[c-2],t=d[c-15],W=d[c-7]+d[c-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[c]=W),L=Y+YI[c]+W+((T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7))+(T&M^ ~T&n),t=((S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10))+(S&V^S&P^V&P),Y=L+t,A+=L,c++,c<16?(d[c]=W=y[v]<<24|y[v+1]<<16|y[v+2]<<8|y[v+3],v+=4):(L=d[c-2],t=d[c-15],W=d[c-7]+d[c-16]+((L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[c]=W),L=n+YI[c]+W+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&T^~A&M),t=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&S^Y&V^S&V),W=V,V=M,M=W,W=S,S=T,T=W,W=Y,Y=A,A=W,n=P+L,P=L+t,c++;J.C[0]=P+J.C[0]|0;J.C[1]=A+J.C[1]|0;J.C[2]=T+J.C[2]|0;J.C[3]= M+J.C[3]|0;J.C[4]=n+J.C[4]|0;J.C[5]=Y+J.C[5]|0;J.C[6]=S+J.C[6]|0;J.C[7]=V+J.C[7]|0}; vRU=function(J){var y=new Uint8Array(32),v=64-J.T;J.T>55&&(v+=64);var d=new Uint8Array(v);d[0]=128;for(var P=J.W*8,A=1;A<9;A++){var T=P%256;d[v-A]=T;P=(P-T)/256}J.update(d);for(v=0;v<8;v++)y[v*4]=J.C[v]>>>24,y[v*4+1]=J.C[v]>>>16&255,y[v*4+2]=J.C[v]>>>8&255,y[v*4+3]=J.C[v]&255;y4m(J);return y}; y4m=function(J){J.C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];J.G=[];J.G.length=64;J.W=0;J.T=0}; dZv=function(J){this.C=J}; PDj=function(J,y,v){J=new sp(J.C);J.update(y);J.update(v);y=vRU(J);J.update(J.V);J.update(y);y=vRU(J);J.reset();return y}; A4R=function(J){this.T=J}; Tbj=function(J,y,v,d){var P,A,T;return g.f(function(M){switch(M.T){case 1:if(J.C){M.Qk(2);break}return g.h(M,d.importKey("raw",J.T,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:J.C=M.C;case 2:return P=new Uint8Array(y.length+v.length),P.set(y),P.set(v,y.length),A={name:"HMAC",hash:"SHA-256"},g.h(M,d.sign(A,J.C,P),4);case 4:return T=M.C,M.return(new Uint8Array(T))}})}; lxH=function(J,y,v){J.J||(J.J=new dZv(J.T));return PDj(J.J,y,v)}; M92=function(J,y,v){var d,P;return g.f(function(A){if(A.T==1){d=lE();if(!d)return A.return(lxH(J,y,v));g.bR(A,3);return g.h(A,Tbj(J,y,v,d),5)}if(A.T!=3)return A.return(A.C);P=g.BP(A);g.ev(P);AS=!0;return A.return(lxH(J,y,v))})}; sT2=function(J){for(var y="",v=0;v=0||O1(J,0,"gad_source",J.search(gO))>=0}; xZH=function(){this.C=new Map}; gR2=function(J,y){var v=e9().resolve(Oc2);if(axH(y)){var d=cV(y,"gclid");y={handleEvent:function(M){J&&!J.closed&&typeof J.postMessage==="function"&&M&&M.origin&&M.source===J&&M.data&&M.data.action==="gcl_setup"&&J.postMessage(Object.assign({},{action:"gcl_transfer"},d&&{gclid:d},{gadSource:2}),M.origin)}}; for(var P=g.D(v.C),A=P.next();!A.done;A=P.next()){var T=g.D(A.value);A=T.next().value;T=T.next().value;if(A.closed)try{window.removeEventListener("message",T),v.C.delete(A)}catch(M){g.jv(M)}}J&&v.C.size<15&&(v.C.set(J,y),window.addEventListener("message",y))}}; SG=function(J,y,v){if(!y)return J.length>=1?J[J.length-1]:null;for(var d=g.D(J),P=d.next();!P.done;P=d.next())if(P=P.value,P.width&&P.height&&(v&&P.width>=y||!v&&P.height>=y))return P;for(y=J.length-1;y>=0;y--)if(v&&J[y].width||!v&&J[y].height)return J[y];return J[0]}; VR=function(){this.state=1;this.U8=null;this.MF=void 0}; c4x=function(J,y,v,d,P,A){var T=T===void 0?"trayride":T;v?(J.Hq(2),g.J4(v,function(){if(window[T])DZd(J,d,T,P);else{J.Hq(3);var M=gV6(v),n=document.getElementById(M);n&&(xPm(M),n.parentNode.removeChild(n));g.ev(new g.H1("BL:ULB",""+v))}},A)):y?(A=g.Lj("SCRIPT"),y instanceof xp?(A.textContent=OS(y),g0(A)):A.textContent=y,A.nonce=aV(document),document.head.appendChild(A),document.head.removeChild(A),window[T]?DZd(J,d,T,P):(J.Hq(4),g.ev(new g.H1("BL:ULBJ")))):g.ev(new g.H1("BL:ULV"))}; DZd=function(J,y,v,d){J.Hq(5);var P=!!J.MF&&Gax.includes(g.s1(J.MF)||"");try{var A=new Sh({program:y,globalName:v,D0:{disable:!g.a7("att_web_record_metrics")||!g.a7("att_skip_metrics_for_cookieless_domains_ks")&&P,ip:"aGIf"}});A.qZ.then(function(){J.Hq(6);d&&d(y)}); J.zn(A)}catch(T){J.Hq(7),T instanceof Error&&g.ev(T)}}; Lp=function(){var J=g.vq("yt.abuse.playerAttLoader");return J&&["bgvma","bgvmb","bgvmc"].every(function(y){return y in J})?J:null}; tS=function(){VR.apply(this,arguments)}; WA=function(){}; bcT=function(J,y,v){for(var d=!1,P=g.D(J.Ir.entries()),A=P.next();!A.done;A=P.next())A=g.D(A.value).next().value,A.slotType==="SLOT_TYPE_PLAYER_BYTES"&&A.HX==="core"&&(d=!0);if(d){a:if(!v){J=g.D(J.Ir.entries());for(v=J.next();!v.done;v=J.next())if(d=g.D(v.value),v=d.next().value,d=d.next().value,v.slotType==="SLOT_TYPE_IN_PLAYER"&&v.HX==="core"){v=d.layoutId;break a}v=void 0}v?y.LS(v):TS("No triggering layout ID available when attempting to mute.")}}; ap=function(J,y){this.Yi=J;this.sj=y}; xI=function(){}; Op=function(){}; jTT=function(J){g.u.call(this);var y=this;this.Bq=J;this.C=new Map;gv(this,"commandExecutorCommand",function(v,d,P){F_x(y,v.commands,d,P)}); gv(this,"clickTrackingParams",function(){})}; enc=function(J,y){gv(J,y.Ou(),function(v,d,P){y.PQ(v,d,P)})}; gv=function(J,y,v){J.tY();J.C.get(y)&&g.jv(Error("Extension name "+y+" already registered"));J.C.set(y,v)}; F_x=function(J,y,v,d){y=y===void 0?[]:y;J.tY();var P=[],A=[];y=g.D(y);for(var T=y.next();!T.done;T=y.next())T=T.value,g.R(T,mZ2)||g.R(T,Bb6)?P.push(T):A.push(T);P=g.D(P);for(y=P.next();!y.done;y=P.next())D1(J,y.value,v,d);A=g.D(A);for(P=A.next();!P.done;P=A.next())D1(J,P.value,v,d)}; D1=function(J,y,v,d){J.tY();y.loggingUrls&&qOj(J,"loggingUrls",y.loggingUrls,v,d);y=g.D(Object.entries(y));for(var P=y.next();!P.done;P=y.next()){var A=g.D(P.value);P=A.next().value;A=A.next().value;P==="openPopupAction"?J.Bq.get().vU("innertubeCommand",{openPopupAction:A}):P==="confirmDialogEndpoint"?J.Bq.get().vU("innertubeCommand",{confirmDialogEndpoint:A}):r4m.hasOwnProperty(P)||qOj(J,P,A,v,d)}}; qOj=function(J,y,v,d,P){if((J=J.C.get(y))&&typeof J==="function")try{J(v,d,P)}catch(A){g.jv(A)}else y=new g.H1("Unhandled field",y),g.ev(y)}; cA=function(J,y,v){this.zP=J;this.C=y;this.jb=v;Ga(e9(),{b9:Oc2,C4:xZH})}; GP=function(J){this.value=J}; bE=function(J){this.value=J}; F0=function(J){this.value=J}; jG=function(J){this.value=J}; eG=function(J){this.value=J}; mL=function(J){this.value=J}; BA=function(J){this.value=J}; qE=function(){GP.apply(this,arguments)}; rv=function(J){this.value=J}; $I=function(J){this.value=J}; op=function(J){this.value=J}; Cp=function(J){this.value=J}; hS=function(J){this.value=J}; Ip=function(J){this.value=J}; pp=function(J){this.value=J}; Up=function(J){this.value=J}; fp=function(J){this.value=J}; iE=function(J){this.value=J}; uE=function(){GP.apply(this,arguments)}; HA=function(J){this.value=J}; X0=function(J){this.value=J}; NE=function(J){this.value=J}; Rp=function(J){this.value=J}; Kp=function(J){this.value=J}; zP=function(J){this.value=J}; kI=function(J){this.value=J}; Ep=function(J){this.value=J}; QR=function(J){this.value=J}; Z1=function(J){this.value=J}; wv=function(J){this.value=J}; Jh=function(J){this.value=J}; y$=function(J){this.value=J}; vx=function(J){this.value=J}; dH=function(J){this.value=J}; Px=function(J){this.value=J}; Ah=function(J){this.value=J}; T4=function(J){this.value=J}; lG=function(J){this.value=J}; Mz=function(J){this.value=J}; nA=function(J){this.value=J}; se=function(J){this.value=J}; Yf=function(J){this.value=J}; SF=function(J){this.value=J}; V$=function(J){this.value=J}; LA=function(J){this.value=J}; th=function(J){this.value=J}; Wx=function(J){this.value=J}; ah=function(J){this.value=J}; xf=function(J){this.value=J}; Oe=function(J){this.value=J}; gH=function(J){this.value=J}; Do=function(J){this.value=J}; cx=function(J){this.value=J}; G4=function(J){this.value=J}; bG=function(J){this.value=J}; Fo=function(J){this.value=J}; jF=function(J){this.value=J}; eF=function(){GP.apply(this,arguments)}; mn=function(J){this.value=J}; Bx=function(){GP.apply(this,arguments)}; qz=function(){GP.apply(this,arguments)}; rH=function(){GP.apply(this,arguments)}; $f=function(){GP.apply(this,arguments)}; oh=function(){GP.apply(this,arguments)}; CA=function(J){this.value=J}; hh=function(J){this.value=J}; Ih=function(J){this.value=J}; pA=function(J){this.value=J}; Ue=function(J){this.value=J}; iG=function(J,y,v){if(v&&!v.includes(J.layoutType))return!1;y=g.D(y);for(v=y.next();!v.done;v=y.next())if(!fA(J.clientMetadata,v.value))return!1;return!0}; uG=function(){return""}; $Z3=function(J,y){switch(J){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 y(J),8}}; Hx=function(J,y,v,d){d=d===void 0?!1:d;LH.call(this,J);this.tB=v;this.Cd=d;this.args=[];y&&this.args.push(y)}; Q=function(J,y,v,d){d=d===void 0?!1:d;LH.call(this,J);this.tB=v;this.Cd=d;this.args=[];y&&this.args.push(y)}; Xo=function(J){var y=new Map;J.forEach(function(v){y.set(v.C(),v)}); this.C=y}; fA=function(J,y){return J.C.has(y)}; Nz=function(J,y){J=J.C.get(y);if(J!==void 0)return J.get()}; Rh=function(J){return Array.from(J.C.keys())}; KA=function(J,y,v){if(v&&v!==J.slotType)return!1;y=g.D(y);for(v=y.next();!v.done;v=y.next())if(!fA(J.clientMetadata,v.value))return!1;return!0}; CDr=function(J){var y;return((y=oR3.get(J))==null?void 0:y.Ea)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; kf=function(J,y){var v={type:y.slotType,controlFlowManagerLayer:hnx.get(y.HX)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};y.slotEntryTrigger&&(v.entryTriggerType=y.slotEntryTrigger.triggerType);y.slotPhysicalPosition!==1&&(v.slotPhysicalPosition=y.slotPhysicalPosition);if(J){v.debugData={slotId:y.slotId};if(J=y.slotEntryTrigger)v.debugData.slotEntryTriggerData=z4(J);J=y.slotFulfillmentTriggers;v.debugData.fulfillmentTriggerData=[];J=g.D(J);for(var d=J.next();!d.done;d=J.next())v.debugData.fulfillmentTriggerData.push(z4(d.value)); y=y.slotExpirationTriggers;v.debugData.expirationTriggerData=[];y=g.D(y);for(J=y.next();!J.done;J=y.next())v.debugData.expirationTriggerData.push(z4(J.value))}return v}; Ixm=function(J,y){var v={type:y.layoutType,controlFlowManagerLayer:hnx.get(y.HX)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J&&(v.debugData={layoutId:y.layoutId});return v}; z4=function(J,y){var v={type:J.triggerType};y!=null&&(v.category=y);J.triggeringSlotId!=null&&(v.triggerSourceData||(v.triggerSourceData={}),v.triggerSourceData.associatedSlotId=J.triggeringSlotId);J.triggeringLayoutId!=null&&(v.triggerSourceData||(v.triggerSourceData={}),v.triggerSourceData.associatedLayoutId=J.triggeringLayoutId);return v}; pUH=function(J,y,v,d){y={opportunityType:y};J&&(d||v)&&(d=g.x7(d||[],function(P){return kf(J,P)}),y.debugData=Object.assign({},v&&v.length>0?{associatedSlotId:v}:{},d.length>0?{slots:d}:{})); return y}; Q$=function(J,y){return function(v){return UZd(Ee(J),y.slotId,y.slotType,y.slotPhysicalPosition,y.HX,y.slotEntryTrigger,y.slotFulfillmentTriggers,y.slotExpirationTriggers,v.layoutId,v.layoutType,v.HX)}}; UZd=function(J,y,v,d,P,A,T,M,n,Y,S){return{adClientDataEntry:{slotData:kf(J,{slotId:y,slotType:v,slotPhysicalPosition:d,HX:P,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:M,clientMetadata:new Xo([])}),layoutData:Ixm(J,{layoutId:n,layoutType:Y,HX:S,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],C8:new Map,clientMetadata:new Xo([]),c$:{}})}}}; wH=function(J){this.gj=J;J=Math.random();var y=this.gj.get();y=g.Zo(y.S.Y().experiments,"html5_debug_data_log_probability");y=Number.isFinite(y)&&y>=0&&y<=1?y:0;this.C=J1){g.ev(new g.H1("Exit already started",{current:J.currentState}));var v=!1}else v=!0;if(!v)return!1;J.currentState=2;J.C=y;return!0}; df=function(J){if(J.currentState!==2)return!1;J.currentState=3;return!0}; tV3=function(J,y){var v=new Map;J=g.D(J);for(var d=J.next();!d.done;d=J.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var P="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(P=Nz(d.clientMetadata,"metadata_type_linked_in_player_layout_type"),P=P==="LAYOUT_TYPE_ENDCAP"||P==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":P==="LAYOUT_TYPE_SURVEY"?"s":P==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):P="u";v.set(d.layoutId,P);if(P==="u"){var A={};P=y;d=(A.c=d.layoutId,A);P.S.dj("uct",d)}}J= y.fE();Pz={contentCpn:J,B3:v};d={};v=(d.ct=v.size,d.c=J,d);y.S.dj("acc",v)}; Wtr=function(){Pz={contentCpn:"",B3:new Map}}; AT=function(J){var y;return(y=Pz.B3.get(J))!=null?y:"u"}; Tt=function(J,y,v){J.S.dj(y,v);ae6(J)}; xKv=function(J){var y=J.layoutId,v=J.lY;if(J.Ti){var d={};Tt(J.zP,"slso",(d.ec=y,d.is=v,d.ctp=AT(y),d))}}; lU=function(J){var y=J.layoutId,v=J.lY;if(J.Ti){var d={};Tt(J.zP,"slse",(d.ec=y,d.is=v,d.ctp=AT(y),d))}}; Of3=function(J){var y=J.layoutId,v=J.lY,d=J.zP;J.Ti&&(J={},Tt(d,"sleo",(J.xc=y,J.is=v,J.ctp=AT(y),J)),ae6(d))}; gH3=function(J){var y=J.cpn,v=J.zP;J=J.lY;var d=v.fE(),P={};Tt(v,"ce",(P.ec=y,P.ia=y!==d,P.r=Pz.B3.has(y),P.is=J,P.ctp=AT(y),P))}; ae6=function(J){if(J.fE()!==Pz.contentCpn){var y={};y=(y.c=Pz.contentCpn,y);J.S.dj("ccm",y)}}; DKH=function(J){var y=J.cpn,v=J.zP;J=J.lY;var d=v.fE(),P={};Tt(v,"cx",(P.xc=y,P.ia=y!==d,P.r=Pz.B3.has(y),P.is=J,P.ctp=AT(y),P))}; clH=function(J){this.params=J;this.C=new Set}; G_r=function(J,y,v){if(!J.C.has(y)){J.C.add(y);var d={};J.params.P_.eb(y,Object.assign({},v,(d.p_ac=J.params.adCpn,d.p_isv=J.params.Ia&&J.params.OH,d)))}}; nm=function(J,y,v){if(Mo(J.params.P_.gj.get(),!0)){var d=v.flush,P={};G_r(J,y,(P.cts=v.currentTimeSec,P.f=d,P))}}; bfR=function(J,y){this.zP=J;this.gj=y}; sy=function(J){var y=[];if(J){J=g.D(Object.entries(J));for(var v=J.next();!v.done;v=J.next()){var d=g.D(v.value);v=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),y.push(v+"."+d))}}return y.join(";")}; g.Y6=function(J,y,v){y=y===void 0?{}:y;this.errorCode=J;this.details=y;this.severity=v===void 0?0:v}; SA=function(J){return J===1||J===2}; VS=function(J,y){y=y===void 0?0:y;if(J instanceof g.Y6)return J;J=J&&J instanceof Error?J:Error(""+J);SA(y)?g.jv(J):g.ev(J);return new g.Y6(y===1?"player.fatalexception":"player.exception",{name:""+J.name,message:""+J.message},y)}; Ft6=function(J,y){function v(){var d=g.iR.apply(0,arguments);J.removeEventListener("playing",v);y.apply(null,g.r(d))} J.addEventListener("playing",v)}; Lm=function(){var J=g.vq("yt.player.utils.videoElement_");J||(J=g.Lj("VIDEO"),g.yq("yt.player.utils.videoElement_",J));return J}; tT=function(J){var y=Lm();return!!(y&&y.canPlayType&&y.canPlayType(J))}; ac=function(J){if(/opus/.test(J)&&g.Wz&&!cB("38")&&!g.uQ())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(J);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(J);if(/webm/.test(J)&&!xk3())return!1;J==='audio/mp4; codecs="mp4a.40.2"'&&(J='video/mp4; codecs="avc1.4d401f"');return!!tT(J)}; jxT=function(J){try{var y=ac('video/mp4; codecs="avc1.42001E"')||ac('video/webm; codecs="vp9"');return(ac('audio/mp4; codecs="mp4a.40.2"')||ac('audio/webm; codecs="opus"'))&&(y||!J)||tT('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(v){return"html5.missingapi"}}; x6=function(){var J=Lm();return!(!J.webkitSupportsPresentationMode||typeof J.webkitSetPresentationMode!=="function")}; Oy=function(){var J=Lm();try{var y=J.muted;J.muted=!y;return J.muted!==y}catch(v){}return!1}; eI3=function(){var J;return((J=navigator.connection)==null?void 0:J.type)||""}; g.gf=function(){b$.apply(this,arguments)}; D9=function(J,y,v,d,P,A,T,M){this.sampleRate=J===void 0?0:J;this.numChannels=y===void 0?0:y;this.spatialAudioType=v===void 0?"SPATIAL_AUDIO_TYPE_NONE":v;this.C=d===void 0?!1:d;this.J=P;this.W=A;this.audioQuality=T===void 0?"AUDIO_QUALITY_UNKNOWN":T;this.T=M===void 0?!1:M}; bU=function(J,y,v,d,P,A,T,M,n){this.width=J;this.height=y;this.quality=A||cz(J,y);this.qualityOrdinal=g.Gt[this.quality];this.fps=v||0;this.stereoLayout=!P||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:P;this.projectionType=d?d==="EQUIRECTANGULAR"&&P===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(J=T)||(J=g.Gt[this.quality],J===0?J="Autom\u00e1tica":(y=this.fps,v=this.projectionType,J=J.toString()+(v==="EQUIRECTANGULAR"||v==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||v==="MESH"?"s":"p")+(y>55?"60": y>49?"50":y>39?"48":"")));this.qualityLabel=J;this.C=M||"";this.primaries=n||""}; cz=function(J,y){var v=Math.max(J,y);J=Math.min(J,y);y=Fk[0];for(var d=0;d=Math.floor(A*16/9)*1.3||J>=A*1.3)return y;y=P}return"tiny"}; m3=function(J,y,v){v=v===void 0?{}:v;this.id=J;this.mimeType=y;v.FW>0||(v.FW=16E3);Object.assign(this,v);J=g.D(this.id.split(";"));this.itag=J.next().value;this.C=J.next().value;this.containerType=jA(y);this.PX=eA[this.itag]||""}; Bz=function(J){return J.PX==="9"||J.PX==="("||J.PX==="9h"||J.PX==="(h"}; mK3=function(J){return J.PX==="H"||J.PX==="h"}; qo=function(J){return J.PX==="9h"||J.PX==="(h"}; BDH=function(J){return!!J.E8&&!!J.E8.fairplay&&(J.PX==="("||J.PX==="(h"||J.PX==="A"||J.PX==="MEAC3")||rf&&!!J.E8&&J.PX==="1e"}; $6=function(J){return J.PX==="1"||J.PX==="1h"||rf&&J.PX==="1e"}; oc=function(J){return J.PX==="mac3"||J.PX==="meac3"||J.PX==="m"||J.PX==="i"}; Cm=function(J){return J.PX==="MAC3"||J.PX==="MEAC3"||J.PX==="M"||J.PX==="I"}; g.hT=function(J){return J.containerType===1}; qx6=function(J){return J.PX==="("||J.PX==="(h"||J.PX==="H"||rf&&J.PX==="1e"}; Ic=function(J){return J.mimeType==="application/x-mpegURL"}; g.pm=function(J,y){return{itag:+J.itag,lmt:y?0:J.lastModified,xtags:J.C||""}}; rlm=function(J){var y=navigator.mediaCapabilities;if(y==null||!y.decodingInfo||J.PX==="f")return Promise.resolve();var v={type:J.audio&&J.video?"file":"media-source"};J.video&&(v.video={contentType:J.mimeType,width:J.video.width||640,height:J.video.height||360,bitrate:J.FW*8||1E6,framerate:J.video.fps||30});J.audio&&(v.audio={contentType:J.mimeType,channels:""+(J.audio.numChannels||2),bitrate:J.FW*8||128E3,samplerate:J.audio.sampleRate||44100});return y.decodingInfo(v).then(function(d){J.T=d})}; Uy=function(J){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(J)}; fm=function(J){return/(vp9|vp09|vp8|avc1|av01)/.test(J)}; iU=function(J){return J.includes("vtt")||J.includes("text/mp4")}; jA=function(J){return J.indexOf("/mp4")>=0?1:J.indexOf("/webm")>=0?2:J.indexOf("/x-flv")>=0?3:J.indexOf("/vtt")>=0?4:0}; uU=function(J,y,v,d,P,A){var T=new D9;y in g.Gt||(y="small");y==="light"&&(y="tiny");d&&P?(P=Number(P),d=Number(d)):(P=g.Gt[y],d=Math.round(P*16/9));A=new bU(d,P,0,null,void 0,y,A);J=unescape(J.replace(/"/g,'"'));return new m3(v,J,{audio:T,video:A})}; Hz=function(J){var y="id="+J.id;J.video&&(y+=", res="+J.video.qualityLabel);var v,d;return y+", byterate=("+((v=J.gz)==null?void 0:v.toFixed(0))+", "+((d=J.FW)==null?void 0:d.toFixed(0))+")"}; No=function(J,y){return{start:function(v){return J[v]}, end:function(v){return y[v]}, length:J.length}}; $Km=function(J,y,v){for(var d=[],P=[],A=0;A=y)return v}catch(d){}return-1}; zt=function(J,y){return Km(J,y)>=0}; oHP=function(J,y){if(!J)return NaN;y=Km(J,y);return y>=0?J.start(y):NaN}; k6=function(J,y){if(!J)return NaN;y=Km(J,y);return y>=0?J.end(y):NaN}; Ey=function(J){return J&&J.length?J.end(J.length-1):NaN}; QS=function(J){return Ey(J)>0}; Z9=function(J,y){J=k6(J,y);return J>=0?J-y:0}; wf=function(J,y,v){for(var d=[],P=[],A=0;Av||(d.push(Math.max(y,J.start(A))-y),P.push(Math.min(v,J.end(A))-y));return No(d,P)}; J8=function(J,y,v,d){g.yK.call(this);var P=this;this.C0=J;this.start=y;this.end=v;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.aE={error:function(){!P.tY()&&P.isActive&&P.publish("error",P)}, updateend:function(){!P.tY()&&P.isActive&&P.publish("updateend",P)}}; this.C0.df(this.aE);this.n3=this.isActive}; vd=function(J,y,v,d,P,A){g.yK.call(this);var T=this;this.EN=J;this.My=y;this.id=v;this.containerType=d;this.PX=P;this.OH=A;this.IQ=this.w8=this.FI=null;this.wJ=!1;this.appendWindowStart=this.timestampOffset=0;this.y5=No([],[]);this.GX=!1;this.Q9=[];this.fk=yV?[]:void 0;this.lJ=function(n){return T.publish(n.type,T)}; var M;if((M=this.EN)==null?0:M.addEventListener)this.EN.addEventListener("updateend",this.lJ),this.EN.addEventListener("error",this.lJ)}; dj=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; Pd=function(J,y){this.q4=J;this.C=y===void 0?!1:y;this.T=!1}; A8=function(J,y,v){v=v===void 0?!1:v;g.u.call(this);this.mediaElement=J;this.hY=y;this.isView=v;this.L=0;this.W=!1;this.V=!0;this.K=0;this.callback=null;this.B=!1;this.hY||(this.My=this.mediaElement.sN());this.events=new g.gf(this);g.X(this,this.events);this.J=new Pd(this.hY?window.URL.createObjectURL(this.hY):this.My.webkitMediaSourceURL,!0);J=this.hY||this.My;FM(this.events,J,["sourceopen","webkitsourceopen"],this.P6R);FM(this.events,J,["sourceclose","webkitsourceclose"],this.Dsk);this.G={updateend:this.dE}}; C73=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; hIR=function(J,y){TK(J)?g.FC(function(){y(J)}):J.callback=y}; IeU=function(J,y,v){if(lh){var d;M_(J.mediaElement,{l:"mswssb",sr:(d=J.mediaElement.lA)==null?void 0:d.q$()},!1);y.df(J.G,J);v.df(J.G,J)}J.C=y;J.T=v;g.X(J,y);g.X(J,v)}; ne=function(J){return!!J.C||!!J.T}; TK=function(J){try{return sZ(J)==="open"}catch(y){return!1}}; sZ=function(J){if(J.hY)return J.hY.readyState;switch(J.My.webkitSourceState){case J.My.SOURCE_OPEN:return"open";case J.My.SOURCE_ENDED:return"ended";default:return"closed"}}; Yz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; pC2=function(J){TK(J)&&(J.hY?J.hY.endOfStream():J.My.webkitSourceEndOfStream(J.My.EOS_NO_ERROR))}; UKR=function(J,y,v,d){if(!J.C||!J.T)return null;var P=J.C.isView()?J.C.C0:J.C,A=J.T.isView()?J.T.C0:J.T,T=new A8(J.mediaElement,J.hY,!0);T.J=J.J;IeU(T,new J8(P,y,v,d),new J8(A,y,v,d));TK(J)||J.C.kf(J.C.Vl());return T}; fe2=function(J){var y;(y=J.C)==null||y.IV();var v;(v=J.T)==null||v.IV();J.V=!1}; S1=function(){var J=this;this.oP=this.Ic=gmm;this.promise=new g.eQ(function(y,v){J.Ic=y;J.oP=v})}; VV=function(){g.u.call(this);this.OF=!1;this.q4=null;this.G=this.L=!1;this.W=new g.Y1;this.lA=null;g.X(this,this.W)}; Le=function(J){J=J.F2();return J.length<1?NaN:J.end(J.length-1)}; ifd=function(J){!J.T&&C73()&&(J.J?J.J.then(function(){return ifd(J)}):J.qF()||(J.T=J.xi()))}; u9x=function(J){J.T&&(J.T.dispose(),J.T=void 0)}; M_=function(J,y,v){var d;((d=J.lA)==null?0:d.SH())&&J.lA.dj("rms",y,v===void 0?!1:v)}; HfR=function(J,y,v){J.isPaused()||J.getCurrentTime()>y||v>10||(J.play(),g.S3(function(){HfR(J,J.getCurrentTime(),v+1)},500))}; XCT=function(J,y){J.q4&&J.q4.equals(y)||(J.q4&&J.q4.dispose(),J.q4=y)}; t8=function(J){return Z9(J.DW(),J.getCurrentTime())}; NDT=function(J,y){if(J.yw()===0||J.hasError())return!1;var v=J.getCurrentTime()>0;return y>=0&&(J=J.F2(),J.length||!v)?zt(J,y):v}; Wd=function(J){J.qF()&&(J.lA&&J.lA.Ja("rs_s"),HN&&J.getCurrentTime()>0&&J.seekTo(0),J.N_(),J.load(),XCT(J,null));delete J.J}; a0=function(J){switch(J.R5()){case 2:return"progressive.net.retryexhausted";case 3:return J=J.ge(),(J==null?0:J.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||RI3&&(J==null?0:J.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.xz=function(J,y,v){this.Zx=y===void 0?null:y;this.seekSource=v===void 0?null:v;this.state=J||64}; OZ=function(J,y,v){v=v===void 0?!1:v;return KtR(J,y.getCurrentTime(),(0,g.GC)(),t8(y),v)}; gj=function(J,y,v,d){if(!(y===J.state&&v===J.Zx&&d===J.seekSource||y!==void 0&&(y&128&&!v||y&2&&y&16))){var P;if(P=y)P=y||J.state,P=!!(P&16||P&32);J=new g.xz(y,v,P?d?d:J.seekSource:null)}return J}; Dq=function(J,y,v){return gj(J,J.state|y,null,v===void 0?null:v)}; cd=function(J,y){return gj(J,J.state&~y,null,null)}; GK=function(J,y,v,d){return gj(J,(J.state|y)&~v,null,d===void 0?null:d)}; g.k=function(J,y){return!!(J.state&y)}; g.bh=function(J,y){return y.state===J.state&&y.Zx===J.Zx}; Fg=function(J){return J.isPlaying()&&!g.k(J,16)&&!g.k(J,32)}; j1=function(J){return g.k(J,128)?-1:g.k(J,2)?0:g.k(J,2048)?3:g.k(J,64)?-1:g.k(J,1)&&!g.k(J,32)?3:g.k(J,8)?1:g.k(J,4)?2:-1}; mC=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c,b){g.u.call(this);var B=this;this.cz=J;this.slot=y;this.layout=v;this.jb=d;this.gp=P;this.Sb=A;this.bA=T;this.qs=M;this.W$=n;this.rR=Y;this.position=V;this.L=L;this.gj=t;this.J8=W;this.U3=c;this.context=b;this.eK=!0;this.V=!1;this.DE="not_rendering";this.T=!1;this.J=new yS;J=Nz(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Nx=new YM(v.C8,this.jb,J,v.layoutId);var q;J=((q=e1(this))==null?void 0:q.progressCommands)||[];this.W=new RvP(n, J,v.layoutId,function(){return B.UC()}); this.C=new clH({adCpn:this.layout.layoutId,P_:b.P_,Ia:this.J8,OH:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; Bd=function(J){return{layoutId:J.DQ(),lY:J.J8,zP:J.Sb.get(),Ti:J.Iz()}}; q_=function(J,y){return y.layoutId!==J.layout.layoutId?(J.cz.nA(J.slot,y,new Hx("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+J.layout.layoutId+("and LayoutType: "+J.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; rj=function(J){J.DE="rendering_start_requested";J.rR(-1)}; e1=function(J){return Nz(J.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; zIj=function(J){TS("Received layout exit signal when not in layout exit flow.",J.slot,J.layout)}; k_c=function(J){var y;return((y=$z(J.Sb.get(),2))==null?void 0:y.clientPlaybackNonce)||""}; o0=function(J,y){switch(y){case "normal":J.xD("complete");break;case "skipped":J.xD("skip");break;case "abandoned":ab(J.Nx,"impression")&&J.xD("abandon")}}; Ce=function(J,y){J.V||(y=new g.lL(y.state,new g.xz),J.V=!0);return y}; h8=function(J,y){QY(y)?J.rR(1):g.na(y,4)&&!g.na(y,2)&&J.xI();Mu(y,4)<0&&!(Mu(y,2)<0)&&J.Hj()}; EH6=function(J){J.position===0&&(J.qs.get(),J=Nz(J.layout.clientMetadata,"metadata_type_ad_placement_config").kind,J={adBreakType:I0(J)},Ge("ad_bl"),g.bx(J))}; pe=function(J,y){tL(J.Nx,y,!J.T)}; ZfU=function(J){var y;return(((y=e1(J))==null?void 0:y.progressCommands)||[]).findIndex(function(v){return!!g.R(v==null?void 0:v.command,Qx3)})!==-1}; UZ=function(J,y){var v=Nz(J.clientMetadata,"metadata_type_eligible_for_ssap");return v===void 0?(TS("Expected SSAP eligibility in PlayerBytes factory",J),!1):y.Iz(v)}; fe=function(J,y){if(!ow(y.get(),"html5_ssap_pass_transition_reason"))return 3;switch(J){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return TS("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return TS("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:J}),3;default:SP(J,"unknown layoutExitReason")}}; wCc=function(J){TS("getExitReason: unexpected reason",void 0,void 0,{reason:J})}; ih=function(J,y){if(ow(y.get(),"html5_ssap_pass_transition_reason"))switch(J){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return wCc(J),"abandoned";case 3:case 1:return wCc(J),"error";default:SP(J,"unexpected transition reason")}else switch(J){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return TS("getExitReason: unexpected reason",void 0,void 0,{reason:J}),"error";default:SP(J,"unexpected transition reason")}}; g.uh=function(J,y,v){jq(J,v)||md(J,y,v);jq(J,"video_to_ad")||md(J,y,"video_to_ad");jq(J,"ad_to_video")||md(J,y,"ad_to_video");jq(J,"ad_to_ad")||md(J,y,"ad_to_ad")}; Hd=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c,b,B){mC.call(this,J,y,v,d,P,A,T,M,Y,S,V,L,t,W,c,b,B);var q=this;this.Bq=n;this.sT=V;this.DR=!0;this.bT=this.QR=0;this.WG=Cj(function(){xKv(Bd(q));q.cz.YD(q.slot,q.layout)}); this.Dy=Cj(function(){Of3(Bd(q));q.DE!=="rendering_stop_requested"&&q.sT(q);q.layoutExitReason?q.cz.u6(q.slot,q.layout,q.layoutExitReason):zIj(q)}); this.timer=new g.Cb(200);this.timer.listen("tick",function(){q.cq()}); g.X(this,this.timer)}; N_=function(J){J.bT=Date.now();Xg(J,J.QR);J.timer.start()}; JFP=function(J){J.QR=J.UC();J.VY(J.QR/1E3,!0);Xg(J,J.QR)}; Xg=function(J,y){y={current:y/1E3,duration:J.UC()/1E3};J.Bq.get().vU("onAdPlaybackProgress",y)}; R0=function(J){Hd.call(this,J.cz,J.slot,J.jK,J.jb,J.gp,J.Sb,J.bA,J.qs,J.Bq,J.W$,J.rR,J.sT,J.Ci,J.Og,J.gj,J.J8,J.U3,J.context)}; Ke=function(J){Hd.call(this,J.cz,J.slot,J.jK,J.jb,J.gp,J.Sb,J.bA,J.qs,J.Bq,J.W$,J.rR,J.sT,J.Ci,J.Og,J.gj,J.J8,J.U3,J.context)}; zK=function(){Ke.apply(this,arguments)}; yFP=function(J){return UZ(J.slot,J.gj.get())?new zK(J):new R0(J)}; QV=function(J){mC.call(this,J.callback,J.slot,J.jK,J.jb,J.gp,J.Sb,J.bA,J.qs,J.W$,J.rR,J.sT,J.Ci,J.Og,J.gj,J.J8,J.U3,J.context);var y=this;this.adCpn="";this.Bi=this.Zk=0;this.WG=Cj(function(){xKv(Bd(y));y.cz.YD(y.slot,y.layout)}); this.Dy=Cj(function(){Of3(Bd(y));y.DE!=="rendering_stop_requested"&&y.sT(y);y.layoutExitReason?y.cz.u6(y.slot,y.layout,y.layoutExitReason):zIj(y)}); this.Rz=J.Rz;this.J_=J.J_;this.Tu=J.Tu;this.Bq=J.Bq;this.hA=J.hA;this.sT=J.sT;if(!this.Iz()){ow(this.gj.get(),"html5_disable_media_load_timeout")||(this.bE=new g.Kx(function(){y.xp("load_timeout",new Hx("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); J=kz(this.gj.get());var v=EZ(this.gj.get());J&&v&&(this.UM=new g.Kx(function(){var d=Nz(y.layout.clientMetadata,"metadata_type_preload_player_vars");d&&y.J_.get().S.preloadVideoByPlayerVars(d,2,300)}))}}; duR=function(J,y){var v=Nz(y.clientMetadata,"metadata_type_ad_video_id"),d=Nz(y.clientMetadata,"metadata_type_legacy_info_card_vast_extension");v&&d&&J.hA.get().S.Y().WX.add(v,{oU:d});(y=Nz(y.clientMetadata,"metadata_type_sodar_extension_data"))&&PF6(J.Rz.get(),y);vZ3(J.bA.get(),!1)}; PLr=function(J){vZ3(J.bA.get(),!0);var y;((y=J.shrunkenPlayerBytesConfig)==null?0:y.shouldRequestShrunkenPlayerBytes)&&J.bA.get().Dl(!1)}; AFP=function(J){return new Zq(J)}; wj=function(){QV.apply(this,arguments)}; Zq=function(){wj.apply(this,arguments)}; Tmr=function(J){return yFP(Object.assign({},J,{cz:J.callback,rR:function(){}}))}; lQ6=function(J){return new QV(Object.assign({},J,{rR:function(y){J.Bq.get().vU("onAdIntroStateChange",y)}}))}; Mg3=function(J){function y(v){J.Bq.get().Sx(v)} return UZ(J.slot,J.gj.get())?AFP(Object.assign({},J,{rR:y})):new QV(Object.assign({},J,{rR:y}))}; J$=function(J){for(var y=J.jK,v=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.D(SJ()),P=d.next();!P.done;P=d.next())v.push(P.value);if(hL(y,{a_:v,BF:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Tmr(J);y=J.jK;v=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.D(SJ());for(P=d.next();!P.done;P=d.next())v.push(P.value);if(hL(y,{a_:v,BF:["LAYOUT_TYPE_MEDIA"]}))return fA(J.jK.clientMetadata,"metadata_type_ad_intro")?lQ6(J):Mg3(J)}; sPm=function(J){var y=Nz(J.clientMetadata,"metadata_type_ad_placement_config").kind,v=Nz(J.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:J.layoutId,adType:nZ6(v),adBreakType:I0(y)}}; I0=function(J){switch(J){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"}}; nZ6=function(J){switch(J){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; Y0x=function(J){try{return new y_(J.Rh,J.slot,J.layout,J.cF,J.sH,J.Sb,J.dn,J.J_,J.Fr,J.bA,J.aWj,J)}catch(y){}}; y_=function(J,y,v,d,P,A,T,M,n,Y,S,V){g.u.call(this);this.Rh=J;this.slot=y;this.layout=v;this.cF=d;this.sH=P;this.Sb=A;this.dn=T;this.J_=M;this.Fr=n;this.bA=Y;this.params=V;this.eK=!0;J=J$(S);if(!J)throw Error("Invalid params for sublayout");this.Z1=J}; S0U=function(){this.C=1;this.T=new yS}; vS=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t){g.u.call(this);this.callback=J;this.Sb=y;this.dn=v;this.J_=d;this.bA=P;this.pA=A;this.qs=T;this.tM=M;this.slot=n;this.layout=Y;this.cF=S;this.Oh=V;this.Fr=L;this.gj=t;this.eK=!0;this.eU=!1;this.rC=[];this.fQ=-1;this.F9=!1;this.pF=new S0U}; Vgj=function(J){var y;return(y=J.layout.ai)!=null?y:Nz(J.layout.clientMetadata,"metadata_type_sub_layouts")}; dc=function(J){return{zP:J.Sb.get(),lY:!1,Ti:J.Iz()}}; LPP=function(J,y,v){if(J.Sf()===J.rC.length-1){var d,P;TS("Unexpected skip requested during the last sublayout",(d=J.UH())==null?void 0:d.h9(),(P=J.UH())==null?void 0:P.xB(),{requestingSlot:y,requestingLayout:v})}}; tg6=function(J,y,v){return v.layoutId!==PS(J,y,v)?(TS("onSkipRequested for a PlayerBytes layout that is not currently active",J.h9(),J.xB()),!1):!0}; WPd=function(J){J.Sf()===J.rC.length-1&&TS("Unexpected skip with target requested during the last sublayout")}; aQT=function(J,y,v){return v.renderingContent===void 0&&v.layoutId!==PS(J,y,v)?(TS("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",J.h9(),J.xB(),{requestingSlot:y,requestingLayout:v}),!1):!0}; xuj=function(J,y,v,d){var P=Nz(y.xB().clientMetadata,"metadata_type_ad_pod_skip_target");if(P&&P>0&&P0)){TS("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",J.slot,J.layout,{indexToPlay:y,layoutId:J.layout.layoutId});break a}J.fQ=y;y=J.UH();if(J.Sf()>0&&!J.Iz()){var v=J.qs.get();v.T=!1;var d={};v.C&&v.videoId&&(d.cttAuthInfo={token:v.C,videoId:v.videoId});Fh("ad_to_ad",d)}J.ju(y)}}; MI=function(J){vS.call(this,J.Rh,J.Sb,J.dn,J.J_,J.bA,J.pA,J.qs,J.tM,J.slot,J.layout,J.cF,J.Oh,J.Fr,J.gj)}; Du6=function(J){(J=J.UH())&&J.ir()}; nz=function(J){vS.call(this,J.Rh,J.Sb,J.dn,J.J_,J.bA,J.pA,J.qs,J.tM,J.slot,J.layout,J.cF,J.Oh,J.Fr,J.gj);this.yE=void 0}; cFP=function(J,y){J.eX()&&!df(J.pF.T)||J.callback.u6(J.slot,J.layout,y)}; so=function(J){return ow(J.gj.get(),"html5_ssap_pass_transition_reason")}; GSU=function(J,y,v){y.D4().currentState<2&&(v=ih(v,J.gj),y.iJ(y.xB(),v));v=y.D4().C;J.NU(J.slot,y.xB(),v)}; baT=function(J,y){if(J.pF.T.currentState<2){var v=ih(y,J.gj);v==="error"?J.callback.nA(J.slot,J.layout,new Hx("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:y},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):lv(J.Oh,J.layout,v)}}; YG=function(J,y,v){y.D4().currentState>=2||(y.iJ(y.xB(),v),df(y.D4())&&(Lt(J.tM,J.slot,y.xB(),v),J.yE=void 0))}; FPP=function(J,y){J.pF.C===2&&y!==J.fE()&&TS("onClipEntered: unknown cpn",J.slot,J.layout,{cpn:y})}; jPd=function(J,y){var v=J.UH();if(v){var d=v.xB().layoutId,P=J.Sf()+1;J.eX()?YG(J,v,y):v.iJ(v.xB(),y);P>=0&&PP&&T.Zm(S,P-d);return S}; hkm=function(J,y,v){var d=Nz(y.clientMetadata,"metadata_type_sodar_extension_data");if(d)try{PF6(v,d)}catch(P){TS("Unexpected error when loading Sodar",J,y,{error:P})}}; IQv=function(J,y,v,d,P,A,T){xG(J,y,new g.lL(v,new g.xz),d,P,T,!1,A)}; xG=function(J,y,v,d,P,A,T,M){T=T===void 0?!0:T;QY(v)&&Z0(P,0,null)&&(!ab(J,"impression")&&M&&M(),J.xD("impression"));ab(J,"impression")&&(g.na(v,4)&&!g.na(v,2)&&J.ez("pause"),Mu(v,4)<0&&!(Mu(v,2)<0)&&J.ez("resume"),g.na(v,16)&&P>=.5&&J.ez("seek"),T&&g.na(v,2)&&Oo(J,v.state,y,d,P,A))}; Oo=function(J,y,v,d,P,A,T,M){ab(J,"impression")&&(A?(A=P-d,A=A>=-1&&A<=2):A=Math.abs(d-P)<=1,DW(J,y,A?d:P,v,d,T,M&&A),A&&J.xD("complete"))}; DW=function(J,y,v,d,P,A,T){WI(J,v*1E3,T);P<=0||v<=0||(y==null?0:g.k(y,16))||(y==null?0:g.k(y,32))||(Z0(v,P*.25,d)&&(A&&!ab(J,"first_quartile")&&A("first"),J.xD("first_quartile")),Z0(v,P*.5,d)&&(A&&!ab(J,"midpoint")&&A("second"),J.xD("midpoint")),Z0(v,P*.75,d)&&(A&&!ab(J,"third_quartile")&&A("third"),J.xD("third_quartile")))}; pcr=function(J,y){ab(J,"impression")&&J.ez(y?"fullscreen":"end_fullscreen")}; Uu6=function(J){ab(J,"impression")&&J.ez("clickthrough")}; fQ6=function(J){J.ez("active_view_measurable")}; iar=function(J){ab(J,"impression")&&!ab(J,"seek")&&J.ez("active_view_fully_viewable_audible_half_duration")}; uS3=function(J){ab(J,"impression")&&!ab(J,"seek")&&J.ez("active_view_viewable")}; HaR=function(J){ab(J,"impression")&&!ab(J,"seek")&&J.ez("audio_audible")}; Xc3=function(J){ab(J,"impression")&&!ab(J,"seek")&&J.ez("audio_measurable")}; Nm3=function(J,y,v,d,P,A,T,M,n,Y,S,V,L){this.callback=J;this.slot=y;this.layout=v;this.dn=d;this.Nx=P;this.bA=A;this.le=T;this.gp=M;this.Rz=n;this.gj=Y;this.jb=S;this.Sb=V;this.Tu=L;this.DR=!0;this.Xl=this.DE=null;this.adCpn=void 0;this.C=!1}; RkP=function(J,y,v){var d;aq(J.jb.get(),"ads_qua","cpn."+Nz(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=$z(J.Sb.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+y+";clr."+v)}; KPU=function(J,y){var v,d;aq(J.jb.get(),"ads_imp","cpn."+Nz(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((v=$z(J.Sb.get(),2))==null?void 0:v.clientPlaybackNonce)+";clr."+y+";skp."+!!g.R((d=Nz(J.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,cS))}; Gv=function(J){return{enterMs:Nz(J.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:Nz(J.clientMetadata,"metadata_type_layout_exit_ms")}}; bv=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t){V_.call(this,J,y,v,d,P,T,M,n,Y,V);this.le=A;this.Rz=S;this.gp=L;this.gj=t;this.Xl=this.DE=null}; zkx=function(J,y){var v;aq(J.jb.get(),"ads_imp","acpn."+((v=$z(J.Sb.get(),2))==null?void 0:v.clientPlaybackNonce)+";clr."+y)}; kSH=function(J,y,v){var d;aq(J.jb.get(),"ads_qua","cpn."+Nz(J.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((d=$z(J.Sb.get(),2))==null?void 0:d.clientPlaybackNonce)+";qt."+y+";clr."+v)}; Fi=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c,b,B,q,C,U,N){this.Fr=J;this.cF=y;this.Oh=v;this.Sb=d;this.dn=P;this.bA=A;this.pA=T;this.jb=M;this.le=n;this.O8=Y;this.gp=S;this.Rz=V;this.J_=L;this.Tu=t;this.qs=W;this.Bq=c;this.W$=b;this.hA=B;this.gj=q;this.C=C;this.context=U;this.U3=N}; jo=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c,b,B,q){this.Fr=J;this.cF=y;this.Oh=v;this.jb=d;this.gp=P;this.Rz=A;this.J_=T;this.Sb=M;this.bA=n;this.pA=Y;this.Tu=S;this.qs=V;this.Bq=L;this.W$=t;this.hA=W;this.gj=c;this.dn=b;this.context=B;this.U3=q}; EZH=function(J,y,v,d){Jl.call(this,"survey-interstitial",J,y,v,d)}; eo=function(J,y,v,d,P){da.call(this,v,J,y,d);this.jb=P;J=Nz(y.clientMetadata,"metadata_type_ad_placement_config");this.Nx=new YM(y.C8,P,J,y.layoutId)}; m1=function(J){return Math.round(J.width)+"x"+Math.round(J.height)}; qI=function(J,y,v){v=v===void 0?BS:v;v.widthJ.width*J.height*.2)return{F6:3,Dm:501,errorMessage:"ad("+m1(v)+") to container("+m1(J)+") ratio exceeds limit."};if(v.height>J.height/3-y)return{F6:3,Dm:501,errorMessage:"ad("+m1(v)+") covers container("+m1(J)+") center."}}; QPT=function(J,y){var v=Nz(J.clientMetadata,"metadata_type_ad_placement_config");return new YM(J.C8,y,v,J.layoutId)}; rc=function(J){return Nz(J.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; $G=function(J,y,v,d){Jl.call(this,"invideo-overlay",J,y,v,d);this.interactionLoggingClientData=d}; oq=function(J,y,v,d,P,A,T,M,n,Y,S,V){da.call(this,A,J,y,P);this.jb=v;this.W=T;this.bA=M;this.W$=n;this.gj=Y;this.L=S;this.V=V;this.Nx=QPT(y,v)}; Zar=function(){var J=["metadata_type_invideo_overlay_ad_renderer"];SJ().forEach(function(y){J.push(y)}); return{a_:J,BF:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; Cz=function(J,y,v,d,P,A,T,M,n,Y,S,V,L){da.call(this,A,J,y,P);this.jb=v;this.W=T;this.B=M;this.bA=n;this.W$=Y;this.gj=S;this.L=V;this.V=L;this.Nx=QPT(y,v)}; wcd=function(){for(var J=["metadata_type_invideo_overlay_ad_renderer"],y=g.D(SJ()),v=y.next();!v.done;v=y.next())J.push(v.value);return{a_:J,BF:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; h$=function(J){this.bA=J;this.C=!1}; JI2=function(J,y,v){Jl.call(this,"survey",J,{},y,v)}; Iq=function(J,y,v,d,P,A,T){da.call(this,v,J,y,d);this.W=P;this.bA=A;this.gj=T}; yIr=function(J,y,v,d,P,A,T,M,n,Y){this.nf=J;this.bA=y;this.jb=v;this.W=d;this.gp=P;this.T=A;this.J=T;this.W$=M;this.gj=n;this.C=Y}; vu3=function(J,y,v,d,P,A,T,M,n,Y){this.nf=J;this.bA=y;this.jb=v;this.W=d;this.gp=P;this.T=A;this.J=T;this.W$=M;this.gj=n;this.C=Y}; pz=function(J,y,v,d,P,A,T,M,n,Y){u4.call(this,J,y,v,d,P,A,T,n);this.E2=M;this.Sb=Y}; dJx=function(){var J=nHR();J.a_.push("metadata_type_ad_info_ad_metadata");return J}; PxT=function(J,y,v,d,P,A,T){this.nf=J;this.bA=y;this.jb=v;this.T=d;this.E2=P;this.C=A;this.Sb=T}; AI3=function(J,y,v,d,P,A,T,M){this.nf=J;this.bA=y;this.jb=v;this.T=d;this.E2=P;this.C=A;this.gj=T;this.Sb=M}; Uo=function(J,y){this.slotId=y;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=J(this.triggerType)}; fz=function(J,y){this.adPodIndex=J;this.C=y.length;this.adBreakLengthSeconds=y.reduce(function(d,P){return d+P},0); var v=0;for(J+=1;J0}; Bn=function(J){return!!(J.Tx&&J.slot&&J.layout)}; q2=function(J){var y,v=(y=J.config)==null?void 0:y.adPlacementConfig;J=J.renderer;return!(!v||v.kind==null||!J)}; gud=function(J){if(!te(J.adLayoutMetadata))return!1;J=J.renderingContent;return g.R(J,zf)||g.R(J,kM)||g.R(J,OrR)||g.R(J,Rb)||g.R(J,K4)?!0:!1}; re=function(J){return J.playerVars!==void 0&&J.pings!==void 0&&J.externalVideoId!==void 0}; Uj=function(J){if(!te(J.adLayoutMetadata))return!1;J=J.renderingContent;var y=g.R(J,$4);return y?oo(y):(y=g.R(J,CO))?re(y):(y=g.R(J,he))?y.playerVars!==void 0:(y=g.R(J,zf))?y.durationMilliseconds!==void 0:g.R(J,Io)||g.R(J,pO)?!0:!1}; oo=function(J){J=(J.sequentialLayouts||[]).map(function(y){return g.R(y,fO)}); return J.length>0&&J.every(Uj)}; uj=function(J){return te(J.adLayoutMetadata)?(J=g.R(J.renderingContent,ij))&&J.pings?!0:!1:!1}; j6R=function(J){if(!te(J.adLayoutMetadata))return!1;if(g.R(J.renderingContent,DJU)||g.R(J.renderingContent,cIH))return!0;var y=g.R(J.renderingContent,Hn);return g.R(J.renderingContent,Xr)||g.R(y==null?void 0:y.sidePanel,Gem)||g.R(y==null?void 0:y.sidePanel,br3)||g.R(y==null?void 0:y.sidePanel,FdP)?!0:!1}; rIv=function(J){var y;(y=!J)||(y=J.adSlotMetadata,y=!((y==null?void 0:y.slotId)!==void 0&&(y==null?void 0:y.slotType)!==void 0));if(y||!(eK3(J)||J.slotEntryTrigger&&J.slotFulfillmentTriggers&&J.slotExpirationTriggers))return!1;var v;J=(v=J.fulfillmentContent)==null?void 0:v.fulfilledLayout;return(v=g.R(J,fO))?Uj(v):(v=g.R(J,N2))?j6R(v):(v=g.R(J,mJ2))?gud(v):(v=g.R(J,BQU))?aRT(v):(v=g.R(J,qVP))?te(v.adLayoutMetadata)?g.R(v.renderingContent,Wn)?!0:!1:!1:(J=g.R(J,Ro))?uj(J):!1}; eK3=function(J){var y;J=g.R((y=J.fulfillmentContent)==null?void 0:y.fulfilledLayout,N2);var v;return J&&((v=J.adLayoutMetadata)==null?void 0:v.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&J.layoutExitNormalTriggers===void 0}; $Jc=function(J){var y;return(J==null?void 0:(y=J.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_IN_PLAYER"}; Cx3=function(J,y){var v;if((v=J.questions)==null||!v.length||!J.playbackCommands||(y===void 0||!y)&&J.questions.length!==1)return!1;J=g.D(J.questions);for(y=J.next();!y.done;y=J.next()){y=y.value;var d=v=void 0,P=((v=g.R(y,KO))==null?void 0:v.surveyAdQuestionCommon)||((d=g.R(y,zu))==null?void 0:d.surveyAdQuestionCommon);if(!oum(P))return!1}return!0}; hKr=function(J){J=((J==null?void 0:J.playerOverlay)||{}).instreamSurveyAdRenderer;var y;if(J)if(J.playbackCommands&&J.questions&&J.questions.length===1){var v,d=((y=g.R(J.questions[0],KO))==null?void 0:y.surveyAdQuestionCommon)||((v=g.R(J.questions[0],zu))==null?void 0:v.surveyAdQuestionCommon);y=oum(d)}else y=!1;else y=!1;return y}; oum=function(J){if(!J)return!1;J=g.R(J.instreamAdPlayerOverlay,k4);var y=g.R(J==null?void 0:J.skipOrPreviewRenderer,cS),v=g.R(J==null?void 0:J.adInfoRenderer,Ej);return(g.R(J==null?void 0:J.skipOrPreviewRenderer,Q9)||y)&&v?!0:!1}; IRv=function(J){return J.linearAds!=null&&te(J.adLayoutMetadata)}; p4c=function(J){return J.linearAd!=null&&J.adVideoStart!=null}; UJj=function(J){if(isNaN(Number(J.timeoutSeconds))||!J.text||!J.ctaButton||!g.R(J.ctaButton,g.Zc)||!J.brandImage)return!1;var y;return J.backgroundImage&&g.R(J.backgroundImage,we)&&((y=g.R(J.backgroundImage,we))==null?0:y.landscape)?!0:!1}; JB=function(J,y,v,d,P,A,T,M){g.u.call(this);this.gj=J;this.C=y;this.T=d;this.Sb=P;this.W=A;this.J=T;this.J_=M}; uh6=function(J,y,v){var d,P=((d=v.adSlots)!=null?d:[]).map(function(M){return g.R(M,yF)}); if(v.nM)if(Nz(y.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))wF(J.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},y.slotId); else{if(J.gj.get().S.Y().X("h5_check_forecasting_renderer_for_throttled_midroll")){var A=v.zb.filter(function(M){var n;return((n=M.renderer)==null?void 0:n.clientForecastingAdRenderer)!=null}); A.length!==0?fRm(J.J,A,P,y.slotId,v.ssdaiAdsConfig):wF(J.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},y.slotId)}else wF(J.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},y.slotId); irx(J.W,y)}else{var T;d={c7:Math.round(((A=Nz(y.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:A.c7)||0),tb:(T=Nz(y.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:T.tb};fRm(J.J,v.zb,P,y.slotId,v.ssdaiAdsConfig,d)}}; NQc=function(J,y,v,d,P,A,T){var M=$z(J.Sb.get(),1);if(HrH(J.gj.get())){var n=vu(J.T.get(),v,d,P,M.clientPlaybackNonce,M.Da,M.daiEnabled,M,A,T);X4P(J,n);wF(J.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return n},y)}else wF(J.C.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return vu(J.T.get(),v,d,P,M.clientPlaybackNonce,M.Da,M.daiEnabled,M,A,T)},y)}; X4P=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next()){var d=v.value;if(d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d.fulfilledLayout)if(v=void 0,d.fulfilledLayout.renderingContent)v=Nz(d.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(d.fulfilledLayout.ai){d=g.D(d.fulfilledLayout.ai);for(var P=d.next();!P.done&&(P=P.value,!P.renderingContent||!(v=Nz(P.clientMetadata,"metadata_type_player_vars")));P=d.next());}}else v=void 0;if(v){J.J_.get().S.preloadVideoByPlayerVars(v, 2,300);break}}}; Kdm=function(J,y,v,d,P,A,T){y=RKU(y,A,Number(d.prefetchMilliseconds)||0,T);J=y instanceof Q?y:d6(J,d,P,y,v);return J instanceof Q?J:[J]}; zK2=function(J,y,v,d,P){var A=JL(J.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new cx({getAdBreakUrl:d.getAdBreakUrl,c7:0,tb:0}),new Ih(!0)];J=y.pauseDurationMs?y.lactThresholdMs?{slotId:A,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new sj(J.C,A),slotFulfillmentTriggers:[new lRd(J.C)],slotExpirationTriggers:[new de(J.C,P),new lj(J.C,A)],HX:"core",clientMetadata:new Xo(d),adSlotLoggingData:v}:new Q("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new Q("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return J instanceof Q?J:[J]}; keR=function(J){var y,v;return((y=J.renderer)==null?void 0:(v=y.adBreakServiceRenderer)==null?void 0:v.getAdBreakUrl)!==void 0}; Pu=function(J,y,v){if(J.beforeContentVideoIdStartedTrigger)J=J.beforeContentVideoIdStartedTrigger?new iv(uG,y,J.id):new Q("Not able to create BeforeContentVideoIdStartedTrigger");else{if(J.layoutIdExitedTrigger){var d;y=(d=J.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new Kz(uG,J.layoutIdExitedTrigger.triggeringLayoutId,J.id):new Q("Not able to create LayoutIdExitedTrigger")}else{if(J.layoutExitedForReasonTrigger){var P,A;((P=J.layoutExitedForReasonTrigger)==null?0:P.triggeringLayoutId)&&((A= J.layoutExitedForReasonTrigger)==null?0:A.layoutExitReason)?(y=Mq3(J.layoutExitedForReasonTrigger.layoutExitReason),J=y instanceof Q?y:new Rq(uG,J.layoutExitedForReasonTrigger.triggeringLayoutId,[y],J.id)):J=new Q("Not able to create LayoutIdExitedForReasonTrigger")}else{if(J.onLayoutSelfExitRequestedTrigger){var T;y=(T=J.onLayoutSelfExitRequestedTrigger)!=null&&T.triggeringLayoutId?new vn(uG,J.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,J.id):new Q("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(J.onNewPlaybackAfterContentVideoIdTrigger)J= J.onNewPlaybackAfterContentVideoIdTrigger?new de(uG,y,J.id):new Q("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(J.skipRequestedTrigger){var M;y=(M=J.skipRequestedTrigger)!=null&&M.triggeringLayoutId?new Ae(uG,J.skipRequestedTrigger.triggeringLayoutId,J.id):new Q("Not able to create SkipRequestedTrigger")}else if(J.slotIdEnteredTrigger){var n;y=(n=J.slotIdEnteredTrigger)!=null&&n.triggeringSlotId?new Tu(uG,J.slotIdEnteredTrigger.triggeringSlotId,J.id):new Q("Not able to create SlotIdEnteredTrigger")}else if(J.slotIdExitedTrigger){var Y; y=(Y=J.slotIdExitedTrigger)!=null&&Y.triggeringSlotId?new lj(uG,J.slotIdExitedTrigger.triggeringSlotId,J.id):new Q("Not able to create SkipRequestedTrigger")}else if(J.surveySubmittedTrigger){var S;y=(S=J.surveySubmittedTrigger)!=null&&S.triggeringLayoutId?new Sl(uG,J.surveySubmittedTrigger.triggeringLayoutId,J.id):new Q("Not able to create SurveySubmittedTrigger")}else{if(J.mediaResumedTrigger)J=J.mediaResumedTrigger&&J.id?new nuv(J.id):new Q("Not able to create MediaResumedTrigger");else{if(J.closeRequestedTrigger){var V; y=(V=J.closeRequestedTrigger)!=null&&V.triggeringLayoutId?new uv(uG,J.closeRequestedTrigger.triggeringLayoutId,J.id):new Q("Not able to create CloseRequestedTrigger")}else if(J.slotIdScheduledTrigger){var L;y=(L=J.slotIdScheduledTrigger)!=null&&L.triggeringSlotId?new sj(uG,J.slotIdScheduledTrigger.triggeringSlotId,J.id):new Q("Not able to create SlotIdScheduledTrigger")}else{if(J.mediaTimeRangeTrigger){var t;d=Number((t=J.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var W;T=Number((W= J.mediaTimeRangeTrigger)==null?void 0:W.offsetEndMilliseconds);isFinite(d)&&isFinite(T)?(W=T,W===-1&&(W=v),v=d>W?new Q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:W},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",W===v&&d-500<=W):new g7(d,W),J=v instanceof Q?v:new ZW(uG,y,v,!1,J.id)):J=new Q("Not able to create MediaTimeRangeTrigger")}else if(J.contentVideoIdEndedTrigger)J=J.contentVideoIdEndedTrigger?new HS(uG,y,!1,J.id):new Q("Not able to create ContentVideoIdEndedTrigger"); else{if(J.layoutIdEnteredTrigger){var c;y=(c=J.layoutIdEnteredTrigger)!=null&&c.triggeringLayoutId?new NI(uG,J.layoutIdEnteredTrigger.triggeringLayoutId,J.id):new Q("Not able to create LayoutIdEnteredTrigger")}else if(J.timeRelativeToLayoutEnterTrigger){var b;y=(b=J.timeRelativeToLayoutEnterTrigger)!=null&&b.triggeringLayoutId?new V9(uG,Number(J.timeRelativeToLayoutEnterTrigger.durationMs),J.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,J.id):new Q("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(J.onDifferentLayoutIdEnteredTrigger){var B; y=(B=J.onDifferentLayoutIdEnteredTrigger)!=null&&B.triggeringLayoutId&&J.onDifferentLayoutIdEnteredTrigger.slotType&&J.onDifferentLayoutIdEnteredTrigger.layoutType?new Je(uG,J.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,J.onDifferentLayoutIdEnteredTrigger.slotType,J.onDifferentLayoutIdEnteredTrigger.layoutType,J.id):new Q("Not able to create CloseRequestedTrigger")}else{if(J.liveStreamBreakStartedTrigger)J=J.liveStreamBreakStartedTrigger&&J.id?new Q_(uG,J.id):new Q("Not able to create LiveStreamBreakStartedTrigger"); else if(J.liveStreamBreakEndedTrigger)J=J.liveStreamBreakEndedTrigger&&J.id?new zv(uG,J.id):new Q("Not able to create LiveStreamBreakEndedTrigger");else{if(J.liveStreamBreakScheduledDurationMatchedTrigger){var q;y=(q=J.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&q.breakDurationMs?new kG(Number(J.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,J.id):new Q("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(J.liveStreamBreakScheduledDurationNotMatchedTrigger){var C; y=(C=J.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&C.breakDurationMs?new Eo(Number(J.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,J.id):new Q("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(J.newSlotScheduledWithBreakDurationTrigger){var U;y=(U=J.newSlotScheduledWithBreakDurationTrigger)!=null&&U.breakDurationMs?new wc(Number(J.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,J.id):new Q("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else y= J.prefetchCacheExpiredTrigger?new Pn(uG,J.id):new Q("Not able to convert an AdsControlflowTrigger.");J=y}y=J}J=y}y=J}J=y}y=J}J=y}y=J}J=y}y=J}J=y}return J}; AB=function(J,y){y.C>=2&&(J.slot_pos=y.adPodIndex);J.autoplay="1"}; Q6T=function(J,y,v,d,P,A,T,M){return y===null?new Q("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:y,ActionCompanionAdRenderer:d}):[Eu3(J,y,T,A,function(n){var Y=n.slotId;n=M(n);var S=d.adLayoutLoggingData,V=new Xo([new bE(d),new Ip(P)]);Y=Ct(v.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var L={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",HX:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",C8:new Map, layoutExitNormalTriggers:[new de(v.C,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:V,c$:n(L),adLayoutLoggingData:S}})]}; ZrT=function(J,y,v,d,P,A,T,M){return y===null?new Q("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:y,TopBannerImageTextIconButtonedLayoutViewModel:d}):[Eu3(J,y,T,A,function(n){var Y=n.slotId;n=M(n);var S=d.adLayoutLoggingData,V=new Xo([new F0(d),new Ip(P)]);Y=Ct(v.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var L={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",HX:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", C8:new Map,layoutExitNormalTriggers:[new de(v.C,T)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:V,c$:n(L),adLayoutLoggingData:S}})]}; vjU=function(J,y,v,d,P,A){if(!A)for(y=g.D(y),A=y.next();!A.done;A=y.next())A=A.value,Tk(J,A.renderer,A.config.adPlacementConfig.kind);J=Array.from(J.values()).filter(function(S){return w4r(S)}); y=[];A=g.D(J);for(var T=A.next(),M={};!T.done;M={QN:void 0},T=A.next()){M.QN=T.value;T=g.D(M.QN.FM);for(var n=T.next(),Y={};!n.done;Y={SI:void 0},n=T.next())Y.SI=n.value,n=function(S,V){return function(L){return S.SI.P2(L,V.QN.instreamVideoAdRenderer.elementId,S.SI.eY)}}(Y,M),Y.SI.isContentVideoCompanion?y.push(JVU(v,d,P,M.QN.instreamVideoAdRenderer.elementId,Y.SI.associatedCompositePlayerBytesLayoutId,Y.SI.adSlotLoggingData,n)):J.length>1?y.push(yV3(v,d,P,M.QN.instreamVideoAdRenderer.elementId,Y.SI.adSlotLoggingData, function(S,V){return function(L){return S.SI.P2(L,V.QN.instreamVideoAdRenderer.elementId,S.SI.eY,S.SI.associatedCompositePlayerBytesLayoutId)}}(Y,M))):y.push(yV3(v,d,P,M.QN.instreamVideoAdRenderer.elementId,Y.SI.adSlotLoggingData,n))}return y}; Tk=function(J,y,v){if(y=dHH(y)){y=g.D(y);for(var d=y.next();!d.done;d=y.next())if((d=d.value)&&d.externalVideoId){var P=lH(J,d.externalVideoId);P.instreamVideoAdRenderer||(P.instreamVideoAdRenderer=d,P.lw=v)}else TS("InstreamVideoAdRenderer without externalVideoId")}}; dHH=function(J){var y=[],v=J.sandwichedLinearAdRenderer&&J.sandwichedLinearAdRenderer.linearAd&&g.R(J.sandwichedLinearAdRenderer.linearAd,CO);if(v)return y.push(v),y;if(J.instreamVideoAdRenderer)return y.push(J.instreamVideoAdRenderer),y;if(J.linearAdSequenceRenderer&&J.linearAdSequenceRenderer.linearAds){J=g.D(J.linearAdSequenceRenderer.linearAds);for(v=J.next();!v.done;v=J.next())v=v.value,g.R(v,CO)&&y.push(g.R(v,CO));return y}return null}; w4r=function(J){if(J.instreamVideoAdRenderer===void 0)return TS("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var y=g.D(J.FM),v=y.next();!v.done;v=y.next()){v=v.value;if(v.P2===void 0)return!1;if(v.eY===void 0)return TS("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(J.lw===void 0||v.BP===void 0||J.lw!==v.BP&&v.BP!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(J.instreamVideoAdRenderer.elementId===void 0)return TS("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:J.lw,"matching APSR kind":v.BP}),!1}return!0}; lH=function(J,y){J.has(y)||J.set(y,{instreamVideoAdRenderer:void 0,lw:void 0,adVideoId:y,FM:[]});return J.get(y)}; MG=function(J,y,v,d,P,A,T,M,n){P?lH(J,P).FM.push({uVj:y,BP:v,isContentVideoCompanion:d,eY:T,associatedCompositePlayerBytesLayoutId:A,adSlotLoggingData:M,P2:n}):TS("Companion AdPlacementSupportedRenderer without adVideoId")}; nG=function(J){var y=0;J=g.D(J.questions);for(var v=J.next();!v.done;v=J.next())if(v=v.value,v=g.R(v,KO)||g.R(v,zu)){var d=void 0;y+=((d=v.surveyAdQuestionCommon)==null?void 0:d.durationMilliseconds)||0}return y}; s$=function(J){var y,v,d,P,A=((v=g.R((y=J.questions)==null?void 0:y[0],KO))==null?void 0:v.surveyAdQuestionCommon)||((P=g.R((d=J.questions)==null?void 0:d[0],zu))==null?void 0:P.surveyAdQuestionCommon),T;y=[].concat(g.r(((T=J.playbackCommands)==null?void 0:T.instreamAdCompleteCommands)||[]),g.r((A==null?void 0:A.timeoutCommands)||[]));var M,n,Y,S,V,L,t,W,c,b,B,q,C,U,N,Jc,E,T2,Mj,lR;return{impressionCommands:(M=J.playbackCommands)==null?void 0:M.impressionCommands,errorCommands:(n=J.playbackCommands)== null?void 0:n.errorCommands,muteCommands:(Y=J.playbackCommands)==null?void 0:Y.muteCommands,unmuteCommands:(S=J.playbackCommands)==null?void 0:S.unmuteCommands,pauseCommands:(V=J.playbackCommands)==null?void 0:V.pauseCommands,rewindCommands:(L=J.playbackCommands)==null?void 0:L.rewindCommands,resumeCommands:(t=J.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(W=J.playbackCommands)==null?void 0:W.skipCommands,progressCommands:(c=J.playbackCommands)==null?void 0:c.progressCommands,cMB:(b= J.playbackCommands)==null?void 0:b.clickthroughCommands,fullscreenCommands:(B=J.playbackCommands)==null?void 0:B.fullscreenCommands,activeViewViewableCommands:(q=J.playbackCommands)==null?void 0:q.activeViewViewableCommands,activeViewMeasurableCommands:(C=J.playbackCommands)==null?void 0:C.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(U=J.playbackCommands)==null?void 0:U.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(N=J.playbackCommands)== null?void 0:(Jc=N.activeViewTracking)==null?void 0:Jc.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(E=J.playbackCommands)==null?void 0:(T2=E.activeViewTracking)==null?void 0:T2.activeViewAudioMeasurableCommands,endFullscreenCommands:(Mj=J.playbackCommands)==null?void 0:Mj.endFullscreenCommands,abandonCommands:(lR=J.playbackCommands)==null?void 0:lR.abandonCommands,completeCommands:y}}; AV2=function(J,y,v,d,P,A,T){return function(M,n){return Prc(J,n.slotId,M,A,function(Y,S){var V=n.layoutId;Y=T(Y);return YL(y,V,S,P,Y,"LAYOUT_TYPE_SURVEY",[new wv(v),d],v.adLayoutLoggingData)})}}; M0v=function(J,y,v,d,P,A,T){if(!TZH(J))return new Q("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:J});var M=J.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[lTH(A,y,v,d,function(n){var Y=n.slotId;n=T(n);Y=Ct(P.T.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Y);var S={layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",HX:"core"},V=new Kz(P.C,d);return{layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",C8:new Map,layoutExitNormalTriggers:[V], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([new Jh(M)]),c$:n(S)}})]}; TZH=function(J){J=g.R(J==null?void 0:J.additionalPlayerOverlay,njv);if(!J)return!1;var y=J.slidingMessages;return J.title&&y&&y.length!==0?!0:!1}; YiH=function(J,y,v,d,P){var A;if((A=J.playerOverlay)==null||!A.instreamSurveyAdRenderer)return function(){return[]}; if(!hKr(J))return function(){return new Q("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:J})}; var T=J.playerOverlay.instreamSurveyAdRenderer,M=nG(T);return M<=0?function(){return new Q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T})}:function(n,Y){var S=sXU(n,v,d,function(V){var L=V.slotId; V=Y(V);var t=s$(T);L=Ct(P.T.get(),"LAYOUT_TYPE_SURVEY",L);var W={layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",HX:"core"},c=new Kz(P.C,d),b=new Ae(P.C,L),B=new Sl(P.C,L),q=new Vq3(P.C);return{layoutId:L,layoutType:"LAYOUT_TYPE_SURVEY",C8:new Map,layoutExitNormalTriggers:[c,q],layoutExitSkipTriggers:[b],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[B],V8:[],HX:"core",clientMetadata:new Xo([new Z1(T),new Ip(y),new Fo(M/1E3),new Bx(t)]),c$:V(W),adLayoutLoggingData:T.adLayoutLoggingData}}); n=M0v(J,v,S.slotId,d,P,n,Y);return n instanceof Q?n:[S].concat(g.r(n))}}; xH3=function(J,y,v,d,P,A,T){T=T===void 0?!1:T;var M=[];try{var n=[];if(v.renderer.linearAdSequenceRenderer)var Y=function(c){c=Si6(c.slotId,v,y,P(c),d,A,T);n=c.gRK;return c.ZJ}; else if(v.renderer.instreamVideoAdRenderer)Y=function(c){var b=c.slotId;c=P(c);var B=T,q=v.config.adPlacementConfig,C=V0x(q),U=C.zm,N=C.JF;C=v.renderer.instreamVideoAdRenderer;var Jc;if(C==null?0:(Jc=C.playerOverlay)==null?0:Jc.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var E=SU(C,B);Jc=Math.min(U+E.videoLengthSeconds*1E3,N);B=new fz(0,[E.videoLengthSeconds]);N=E.videoLengthSeconds;var T2=E.playerVars,Mj=E.instreamAdPlayerOverlayRenderer,lR=E.playerOverlayLayoutRenderer, Sx=E.adVideoId,vP=LHr(v),mT=E.C8;E=E.u0;var hc=C==null?void 0:C.adLayoutLoggingData;C=C==null?void 0:C.sodarExtensionData;b=Ct(y.T.get(),"LAYOUT_TYPE_MEDIA",b);var JO={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",HX:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",C8:mT,layoutExitNormalTriggers:[new zv(y.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([new HA(d),new se(N),new Yf(T2),new LA(U),new th(Jc),Mj&& new X0(Mj),lR&&new NE(lR),new Ip(q),new uE(Sx),new pp(B),new gH(vP),C&&new V$(C),new T4({current:null}),new ah({}),new $f(E)].filter(t0T)),c$:c(JO),adLayoutLoggingData:hc}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var S=WHT(J,d,v.adSlotLoggingData,Y);M.push(S);for(var V=g.D(n),L=V.next();!L.done;L=V.next()){var t=L.value,W=t(J,P);if(W instanceof Q)return W;M.push.apply(M,g.r(W))}}catch(c){return new Q(c,{errorMessage:c.message,AdPlacementRenderer:v,numberOfSurveyRenderers:aTm(v)})}return M}; aTm=function(J){J=(J.renderer.linearAdSequenceRenderer||{}).linearAds;return J!=null&&J.length?J.filter(function(y){var v,d;return((v=g.R(y,CO))==null?void 0:(d=v.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer)!=null}).length:0}; Si6=function(J,y,v,d,P,A,T){var M=y.config.adPlacementConfig,n=V0x(M),Y=n.zm,S=n.JF;n=(y.renderer.linearAdSequenceRenderer||{}).linearAds;if(n==null||!n.length)throw new TypeError("Expected linear ads");var V=[],L={Eg:Y,Ci:0,dwy:V};n=n.map(function(W){return Our(J,W,L,v,d,M,P,S,T)}).map(function(W,c){c=new fz(c,V); return W(c)}); var t=n.map(function(W){return W.RF}); return{ZJ:gjv(v,J,Y,t,M,LHr(y),d,S,A),gRK:n.map(function(W){return W.JAk})}}; Our=function(J,y,v,d,P,A,T,M,n){var Y=SU(g.R(y,CO),n),S=v.Eg,V=v.Ci,L=Math.min(S+Y.videoLengthSeconds*1E3,M);v.Eg=L;v.Ci++;v.dwy.push(Y.videoLengthSeconds);var t,W,c=(t=g.R(y,CO))==null?void 0:(W=t.playerOverlay)==null?void 0:W.instreamSurveyAdRenderer;if(Y.adVideoId==="nPpU29QrbiU"&&c==null)throw new TypeError("Survey slate media has no survey overlay");return function(b){AB(Y.playerVars,b);var B,q,C=Y.videoLengthSeconds,U=Y.playerVars,N=Y.C8,Jc=Y.u0,E=Y.instreamAdPlayerOverlayRenderer,T2=Y.playerOverlayLayoutRenderer, Mj=Y.adVideoId,lR=(B=g.R(y,CO))==null?void 0:B.adLayoutLoggingData;B=(q=g.R(y,CO))==null?void 0:q.sodarExtensionData;q=Ct(d.T.get(),"LAYOUT_TYPE_MEDIA",J);var Sx={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",HX:"adapter"};b={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",C8:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"adapter",clientMetadata:new Xo([new HA(T),new se(C),new Yf(U),new LA(S),new th(L),new Wx(V),new T4({current:null}), E&&new X0(E),T2&&new NE(T2),new Ip(A),new uE(Mj),new pp(b),B&&new V$(B),c&&new rH(c),new ah({}),new $f(Jc)].filter(t0T)),c$:P(Sx),adLayoutLoggingData:lR};C=YiH(g.R(y,CO),A,T,b.layoutId,d);return{RF:b,JAk:C}}}; SU=function(J,y){if(!J)throw new TypeError("Expected instream video ad renderer");if(!J.playerVars)throw new TypeError("Expected player vars in url encoded string");var v=wN(J.playerVars),d=Number(v.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var P=Number(J.trimmedMaxNonSkippableAdDurationMs);d=isNaN(P)?d:Math.min(d,P/1E3);P=J.playerOverlay||{};P=P.instreamAdPlayerOverlayRenderer===void 0?null:P.instreamAdPlayerOverlayRenderer;var A=J.playerOverlay|| {};A=A.playerOverlayLayoutRenderer===void 0?null:A.playerOverlayLayoutRenderer;var T=v.video_id;T||(T=(T=J.externalVideoId)?T:void 0);if(!T)throw new TypeError("Expected valid video id in IVAR");if(y&&d===0){var M;y=(M=DH3[T])!=null?M:d}else y=d;return{playerVars:v,videoLengthSeconds:y,instreamAdPlayerOverlayRenderer:P,playerOverlayLayoutRenderer:A,adVideoId:T,C8:J.pings?sQ(J.pings):new Map,u0:n4(J.pings)}}; LHr=function(J){J=Number(J.driftRecoveryMs);return isNaN(J)||J<=0?null:J}; V0x=function(J){var y=J.adTimeOffset||{};J=y.offsetEndMilliseconds;y=Number(y.offsetStartMilliseconds);if(isNaN(y))throw new TypeError("Expected valid start offset");J=Number(J);if(isNaN(J))throw new TypeError("Expected valid end offset");return{zm:y,JF:J}}; cVr=function(J){var y,v=(y=Nz(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:y.current;if(!v)return null;y=Nz(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=J.layoutId,P=Nz(J.clientMetadata,"metadata_type_content_cpn"),A=Nz(J.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=Nz(J.clientMetadata,"metadata_type_player_underlay_renderer"),M=Nz(J.clientMetadata,"metadata_type_ad_placement_config"),n=Nz(J.clientMetadata,"metadata_type_video_length_seconds"); var Y=fA(J.clientMetadata,"metadata_type_layout_enter_ms")&&fA(J.clientMetadata,"metadata_type_layout_exit_ms")?(Nz(J.clientMetadata,"metadata_type_layout_exit_ms")-Nz(J.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{zU:d,contentCpn:P,r6:v,KD:y,instreamAdPlayerOverlayRenderer:A,instreamAdPlayerUnderlayRenderer:T,adPlacementConfig:M,videoLengthSeconds:n,y7:Y,inPlayerLayoutId:Nz(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nz(J.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; FHU=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W){d=JL(d,"SLOT_TYPE_PLAYER_BYTES");J=Gp2(P,J,T,v,d,n,Y);if(J instanceof Q)return J;var c;Y=(c=Nz(J.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:c.layoutId;if(!Y)return new Q("Invalid adNotify layout");y=buH(Y,P,A,v,M,y,n,S,V,L,t,W,T);return y instanceof Q?y:[J].concat(g.r(y))}; buH=function(J,y,v,d,P,A,T,M,n,Y,S,V,L){v=jXd(y,v,d,A,T,M,n,Y,S,V,L);if(v instanceof Q)return v;J=eN3(y,J,T,P,v);return J instanceof Q?J:[].concat(g.r(J.jC),[J.DX])}; BZ6=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t){y=jXd(J,y,v,P,A,M,n,Y,S,V,L,t);if(y instanceof Q)return y;J=mHv(J,v,A,T,d,M.jH,y);return J instanceof Q?J:J.jC.concat(J.DX)}; jXd=function(J,y,v,d,P,A,T,M,n,Y,S,V){var L=VF(d,v,Y);return L instanceof Hx?new Q(L):Y.S.Y().experiments.BX("html5_refactor_in_player_slot_generation")?function(t){var W=new fz(0,[L.Gi]);t=qiR(y,L.layoutId,L.Le,v,LG(L.playerVars,L.pk,A,n,W),L.Gi,P,W,T(t),M.get(L.Le.externalVideoId),V);W=[];if(L.Le.playerOverlay.instreamAdPlayerOverlayRenderer){var c=cVr(t);if(!c)return TS("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,jC:[]}; W=[rVU(J,c.contentCpn,c.zU,function(B){return tB(y,B.slotId,"core",c,Q$(S,B))},c.inPlayerSlotId)].concat(g.r(W)); if(c.instreamAdPlayerUnderlayRenderer&&Wu(Y)){var b=c.instreamAdPlayerUnderlayRenderer;W=[$H3(J,c.contentCpn,c.zU,function(B){return ojU(y,B.slotId,b,c.adPlacementConfig,c.zU,Q$(S,B))})].concat(g.r(W))}}return{layout:t, jC:W}}:function(t){var W=new fz(0,[L.Gi]); return{layout:qiR(y,L.layoutId,L.Le,v,LG(L.playerVars,L.pk,A,n,W),L.Gi,P,W,T(t),M.get(L.Le.externalVideoId),V),jC:[]}}}; VF=function(J,y,v){if(!J.playerVars)return new Hx("No playerVars available in InstreamVideoAdRenderer.");var d,P;if(J.elementId==null||J.playerVars==null||J.playerOverlay==null||((d=J.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((P=J.playerOverlay)==null?void 0:P.playerOverlayLayoutRenderer)==null||J.pings==null||J.externalVideoId==null)return new Hx("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:J});d=wN(J.playerVars);P=Number(d.length_seconds); isNaN(P)&&(P=0,TS("Expected valid length seconds in player vars but got NaN"));if(v.Iz(y.kind==="AD_PLACEMENT_KIND_START")){if(J.layoutId===void 0)return new Hx("Expected server generated layout ID in instreamVideoAdRenderer");y=J.layoutId}else y=J.elementId;return{layoutId:y,Le:J,playerVars:d,pk:J.playerVars,Gi:P}}; LG=function(J,y,v,d,P){J.iv_load_policy=d;y=wN(y);if(y.cta_conversion_urls)try{J.cta_conversion_urls=JSON.parse(y.cta_conversion_urls)}catch(A){TS(A)}v.s5&&(J.ctrl=v.s5);v.eh&&(J.ytr=v.eh);v.UZ&&(J.ytrcc=v.UZ);v.isMdxPlayback&&(J.mdx="1");J.vvt&&(J.vss_credentials_token=J.vvt,v.A7&&(J.vss_credentials_token_type=v.A7),v.mdxEnvironment&&(J.mdx_environment=v.mdxEnvironment));AB(J,P);return J}; Cr2=function(J){var y=new Map;J=g.D(J);for(var v=J.next();!v.done;v=J.next())(v=v.value.renderer.remoteSlotsRenderer)&&v.hostElementId&&y.set(v.hostElementId,v);return y}; aR=function(J){return J.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; hN3=function(J){return J!=null}; Hu2=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t){for(var W=[],c=g.D(J),b=c.next();!b.done;b=c.next())if(b=b.value,!eK3(b)&&!$Jc(b)){var B=aR(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger,q=n.Iz(B),C=IT3(b,Y,d,v.Da,q);if(C instanceof Q)return C;var U=void 0,N={slotId:b.adSlotMetadata.slotId,slotType:b.adSlotMetadata.slotType,slotPhysicalPosition:(U=b.adSlotMetadata.slotPhysicalPosition)!=null?U:1,HX:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers, slotExpirationTriggers:C.slotExpirationTriggers},Jc=g.R(b.fulfillmentContent.fulfilledLayout,fO);if(Jc){if(!Uj(Jc))return new Q("Invalid PlayerBytesAdLayoutRenderer");U=V&&!(aR(b)&&b.slotEntryTrigger.beforeContentVideoIdStartedTrigger);C=C.slotFulfillmentTriggers.some(function(E){return E instanceof kG}); q=U?p9R(N,b.adSlotMetadata.triggerEvent,Jc,v,d,A,Y,J,q,L,C,t):UH3(N,b.adSlotMetadata.triggerEvent,Jc,y,v,d,P,A,T,M,n,Y,J,S,q,b.adSlotMetadata.triggeringSourceLayoutId);if(q instanceof Q)return q;C=[];aR(b)&&C.push(new pA({dT:aR(b)&&!!b.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));U&&C.push(new ah({}));v.jH&&C.push(new qz({}));C.push(new hh(B));b=Object.assign({},N,{clientMetadata:new Xo(C),fulfilledLayout:q.layout,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push.apply(W,g.r(q.jC)); W.push(b)}else if(B=g.R(b.fulfillmentContent.fulfilledLayout,N2)){if(!j6R(B))return new Q("Invalid PlayerUnderlayAdLayoutRenderer");B=fT3(B,d,v.Da,A,N,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof Q)return B;b=Object.assign({},N,{clientMetadata:new Xo([]),fulfilledLayout:B,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else if(B=g.R(b.fulfillmentContent.fulfilledLayout,BQU)){if(!aRT(B))return new Q("Invalid AboveFeedAdLayoutRenderer");B= iu2(B,d,v.Da,A,N,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId);if(B instanceof Q)return B;b=Object.assign({},N,{clientMetadata:new Xo([]),fulfilledLayout:B,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else if(B=g.R(b.fulfillmentContent.fulfilledLayout,qVP)){if(!te(B.adLayoutMetadata)||!g.R(B.renderingContent,Wn))return new Q("Invalid BelowPlayerAdLayoutRenderer");B=iu2(B,d,v.Da,A,N,b.adSlotMetadata.triggerEvent,b.adSlotMetadata.triggeringSourceLayoutId); if(B instanceof Q)return B;b=Object.assign({},N,{clientMetadata:new Xo([]),fulfilledLayout:B,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else if(B=g.R(b.fulfillmentContent.fulfilledLayout,Ro)){if(!uj(B))return new Q("Invalid PlayerBytesSequenceItemAdLayoutRenderer");B=ubc(B,d,v.Da,A,N,b.adSlotMetadata.triggerEvent);if(B instanceof Q)return B;b=Object.assign({},N,{clientMetadata:new Xo([]),fulfilledLayout:B,adSlotLoggingData:b.adSlotMetadata.adSlotLoggingData});W.push(b)}else return new Q("Unable to retrieve a client slot ["+ N.slotType+"] from a given AdSlotRenderer")}return W}; ubc=function(J,y,v,d,P,A){var T={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,HX:"core"};y=xL(J,y,v);return y instanceof Q?y:(v=g.R(J.renderingContent,ij))&&v.pings?Object.assign({},T,{renderingContent:J.renderingContent,C8:sQ(v.pings)},y,{c$:Q$(d,P)(T),clientMetadata:new Xo([new Ip(O$(A))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData}):new Q("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; iu2=function(J,y,v,d,P,A,T){var M={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,HX:"core"};y=xL(J,y,v);if(y instanceof Q)return y;v=[];v.push(new Ip(O$(A)));A==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&T!==void 0&&v.push(new y$(T));return Object.assign({},M,{renderingContent:J.renderingContent,C8:new Map([["impression",X9x(J)]])},y,{c$:Q$(d,P)(M),clientMetadata:new Xo(v),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; fT3=function(J,y,v,d,P,A,T){if(J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(T=g.R(J.renderingContent,Hn))if(T=g.R(T.sidePanel,br3)){var M={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,HX:"core"};y=xL(J,y,v);J=y instanceof Q?y:Object.assign({},M,{renderingContent:J.renderingContent,C8:new Map([["impression",T.impressionPings||[]],["resume",T.resumePings||[]]])},y,{c$:Q$(d,P)(M),clientMetadata:new Xo([new Ip(O$(A))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}else J= new Q("DismissablePanelTextPortraitImageRenderer is missing");else J=new Q("SqueezebackPlayerSidePanelRenderer is missing");else J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.R(J.renderingContent,DJU)?(T={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,HX:"core"},y=xL(J,y,v),J=y instanceof Q?y:Object.assign({},T,{renderingContent:J.renderingContent,C8:new Map},y,{c$:Q$(d,P)(T),clientMetadata:new Xo([new Ip(O$(A))]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})): J=new Q("CounterfactualRenderer is missing"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?J=new Q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?J=new Q("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.R(J.renderingContent,Xr)?(A={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType, HX:"core"},y=xL(J,y,v),J=y instanceof Q?y:T?Object.assign({},A,{renderingContent:J.renderingContent,C8:new Map},y,{c$:Q$(d,P)(A),clientMetadata:new Xo([new y$(T)]),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData}):new Q("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):J=new Q("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.R(J.renderingContent,cIH)? (A={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,HX:"core"},y=xL(J,y,v),J=y instanceof Q?y:Object.assign({},A,{renderingContent:J.renderingContent,C8:new Map([])},y,{c$:Q$(d,P)(A),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Xo([])})):J=new Q("AdsEngagementPanelSectionListViewModel is missing"):J=new Q("LayoutType ["+J.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return J}; p9R=function(J,y,v,d,P,A,T,M,n,Y,S,V){if((V==null?void 0:V.c7)===void 0||(V==null?void 0:V.tb)===void 0)return new Q("Cached ad break range from cue point is missing");var L=xL(v,P,d.Da);if(L instanceof Q)return L;L={layoutExitMuteTriggers:[],layoutExitNormalTriggers:L.layoutExitNormalTriggers,layoutExitSkipTriggers:[],V8:[],layoutExitUserInputSubmittedTriggers:[]};if(g.R(v.renderingContent,CO))return J=NZc(J,y,v,L,P,A,M,n,d.Da,T,V.c7,V.tb),J instanceof Q?J:J.HF===void 0?new Q("Expecting associatedInPlayerSlot for single DAI media layout"): {layout:J.layout,jC:[J.HF]};var t=g.R(v.renderingContent,$4);if(t){if(!te(v.adLayoutMetadata))return new Q("Invalid ad layout metadata");if(!oo(t))return new Q("Invalid sequential layout");t=t.sequentialLayouts.map(function(W){return W.playerBytesAdLayoutRenderer}); J=RN2(J,y,v,L,t,P,d,A,T,n,M,Y,V.c7,V.tb,S);return J instanceof Q?J:{layout:J.Ow,jC:J.jC}}return new Q("Not able to convert a sequential layout")}; RN2=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W){var c=KHT(P,L,t);if(c instanceof Q)return c;var b=[],B=[];c=g.D(c);for(var q=c.next();!q.done;q=c.next()){var C=q.value;q=J;var U=P[C.Ci],N=C,Jc=y;C=A;var E=T,T2=M,Mj=n,lR=Y,Sx=S,vP=g6(U);if(vP instanceof Q)q=vP;else{var mT={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,HX:"adapter"};N=zN2(Jc,U,N,C);N instanceof Q?q=N:(q=Object.assign({},mT,DU,{C8:vP,renderingContent:U.renderingContent,clientMetadata:new Xo(N),c$:Q$(T2,q)(mT), adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}),q=(U=cu(Sx,q,C,E.Da,T2,Mj,lR,void 0,!0))?U instanceof Q?U:{layout:q,HF:U}:new Q("Expecting associatedInPlayerSlot"))}if(q instanceof Q)return q;b.push(q.layout);B.push(q.HF)}P={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,HX:"core"};y=[new gH(Number(v.driftRecoveryMs)),new LA(L),new th(t),new Ip(O$(y)),new CA(V),new ah({})];W&&y.push(new Ue({}));return{Ow:Object.assign({},P,d,{ai:b,C8:new Map,clientMetadata:new Xo(y), c$:Q$(M,J)(P)}),jC:B}}; NZc=function(J,y,v,d,P,A,T,M,n,Y,S,V){if(!Uj(v))return new Q("Invalid PlayerBytesAdLayoutRenderer");var L=g6(v);if(L instanceof Q)return L;var t={layoutId:v.adLayoutMetadata.layoutId,layoutType:v.adLayoutMetadata.layoutType,HX:"core"},W=g.R(v.renderingContent,CO);if(!W)return new Q("Invalid rendering content for DAI media layout");W=SU(W,!1);S={mF:W,Ci:0,Eg:S,A6:Math.min(S+W.videoLengthSeconds*1E3,V),Oj:new fz(0,[W.videoLengthSeconds])};var c;V=(c=Number(v.driftRecoveryMs))!=null?c:void 0;y=zN2(y, v,S,P,V);if(y instanceof Q)return y;J=Object.assign({},t,d,{C8:L,renderingContent:v.renderingContent,clientMetadata:new Xo(y),c$:Q$(A,J)(t),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData});return(P=cu(T,J,P,n,A,Y,M,void 0,!0))?P instanceof Q?P:{layout:J,HF:P}:new Q("Expecting associatedInPlayerSlot")}; UH3=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c){var b=xL(v,A,P.Da);if(b instanceof Q)return b;if(g.R(v.renderingContent,CO)){n=kpj([v],P,n);if(n instanceof Q)return n;if(n.length!==1)return new Q("Only expected one media layout.");J=EjP(J,y,v,b,n[0],void 0,"core",d,A,T,M,Y,L,t,W,P.Da,V,void 0,c);return J instanceof Q?J:{layout:J.layout,jC:J.HF?[J.HF]:[]}}var B=g.R(v.renderingContent,$4);if(B){if(!te(v.adLayoutMetadata))return new Q("Invalid ad layout metadata");if(!oo(B))return new Q("Invalid sequential layout"); B=B.sequentialLayouts.map(function(q){return q.playerBytesAdLayoutRenderer}); J=QXT(J,y,v.adLayoutMetadata,b,B,d,A,P,n,T,M,Y,S,V,W,L,t,c);return J instanceof Q?J:{layout:J.Ow,jC:J.jC}}return new Q("Not able to convert a sequential layout")}; QXT=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c,b,B){var q=new iE({current:null}),C=kpj(P,M,n);if(C instanceof Q)return C;n=[];for(var U=[],N=void 0,Jc=0;Jc0&&(Jc.push(B),Jc.push(new fp(N.adPodSkipTarget)));(A=Y.get(N.externalVideoId))&&Jc.push(new bG(A));A=Jc}else A= new Q("Invalid vod media renderer")}if(A instanceof Q)return A;J=Object.assign({},T,d,{C8:C,renderingContent:v.renderingContent,clientMetadata:new Xo(A),c$:Q$(S,J)(T),adLayoutLoggingData:v.adLayoutMetadata.adLayoutLoggingData});v=g.R(v.renderingContent,CO);if(!v||!re(v))return new Q("Invalid meida renderer");V=lH(V,v.externalVideoId);V.instreamVideoAdRenderer=v;V.lw="AD_PLACEMENT_KIND_START";return t?(n=cu(L,J,n,c,S,b,W,B,!1),n instanceof Q?n:JSr(J.layoutId,L)&&n?{layout:Object.assign({},J,{clientMetadata:new Xo(A.concat(new zP(n)))})}: {layout:J,HF:n}):{layout:J}}; Zu3=function(J,y,v,d,P){if(!Uj(y))return new Q("Invalid PlayerBytesAdLayoutRenderer");var A=g.R(y.renderingContent,zf);if(!A||A.durationMilliseconds===void 0)return new Q("Invalid endcap renderer");var T={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,HX:"adapter"};d=[new jF(A.durationMilliseconds),new Bx({impressionCommands:void 0,abandonCommands:A.abandonCommands?[{commandExecutorCommand:A.abandonCommands}]:void 0,completeCommands:A.completionCommands}),new Ip(d), new dH("LAYOUT_TYPE_ENDCAP")];if(P){d.push(new Up(P.Oj.adPodIndex-1));d.push(new Wx(P.Oj.adPodIndex));var M;d.push(new fp((M=P.adPodSkipTarget)!=null?M:-1))}return Object.assign({},T,DU,{renderingContent:y.renderingContent,clientMetadata:new Xo(d),C8:A.skipPings?new Map([["skip",A.skipPings]]):new Map,c$:Q$(v,J)(T),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData})}; cu=function(J,y,v,d,P,A,T,M,n){J=J.filter(function(V){return V.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&V.adSlotMetadata.triggeringSourceLayoutId===y.layoutId}); if(J.length!==0){if(J.length!==1)return new Q("Invalid InPlayer slot association for the given PlayerBytes layout");J=J[0];T=IT3(J,A,v,d,T);if(T instanceof Q)return T;var Y;A={slotId:J.adSlotMetadata.slotId,slotType:J.adSlotMetadata.slotType,slotPhysicalPosition:(Y=J.adSlotMetadata.slotPhysicalPosition)!=null?Y:1,HX:"core",slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:T.slotExpirationTriggers};Y=g.R(J.fulfillmentContent.fulfilledLayout, mJ2);if(!Y||!gud(Y))return new Q("Invalid InPlayerAdLayoutRenderer");T={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,HX:"core"};v=xL(Y,v,d);if(v instanceof Q)return v;d=[];var S=Y.adLayoutMetadata.layoutType;n&&d.push(new ah({}));if(S==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.r(yS6(J.adSlotMetadata.triggerEvent,y)));else if(S==="LAYOUT_TYPE_ENDCAP"||S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED"){d.push(new Ip(O$(J.adSlotMetadata.triggerEvent))); if(S==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_CENTERED")return new Q("Cannot parse endcap layout since AdUxReadyApi is not provided");M&&d.push(M)}else return new Q("Not able to parse an SDF InPlayer layout");P=Object.assign({},T,v,{renderingContent:Y.renderingContent,C8:new Map,c$:Q$(P,A)(T),clientMetadata:new Xo(d),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},A,{fulfilledLayout:P,clientMetadata:new Xo([])})}}; yS6=function(J,y){var v=[];v.push(new Ip(O$(J)));v.push(new y$(y.layoutId));(J=Nz(y.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&v.push(new T4(J));(J=Nz(y.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&v.push(new iE(J));(J=Nz(y.clientMetadata,"metadata_type_remote_slots_data"))&&v.push(new bG(J));(J=Nz(y.clientMetadata,"metadata_type_ad_next_params"))&&v.push(new mL(J));(J=Nz(y.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&v.push(new BA(J));(J= Nz(y.clientMetadata,"metadata_type_ad_pod_info"))&&v.push(new pp(J));(y=Nz(y.clientMetadata,"metadata_type_ad_video_id"))&&v.push(new uE(y));return v}; w9H=function(J,y,v,d,P,A){function T(Y){return Gk(y,Y)} var M=d.XN.inPlayerSlotId,n={layoutId:d.XN.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",HX:"core"};v={slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:new NI(T,J),slotFulfillmentTriggers:[new Tu(T,M)],slotExpirationTriggers:[new lj(T,M),new de(T,v)]};J=Object.assign({},n,{layoutExitNormalTriggers:[new Kz(T,J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],C8:new Map,clientMetadata:new Xo([new Ep(d.XN), new Ip(d.adPlacementConfig),P]),c$:Q$(A,v)(n),adLayoutLoggingData:d.XN.adLayoutLoggingData});return Object.assign({},v,{clientMetadata:new Xo([new Do(J)])})}; JSr=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next())if(v=v.value,v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.R(v.fulfillmentContent.fulfilledLayout,N2);if(d&&(d=g.R(d.renderingContent,Hn))&&d.associatedPlayerBytesLayoutId===J)return v}}; IT3=function(J,y,v,d,P){var A=vI2(Pu(J.slotEntryTrigger,v,d),P,J,y);if(A instanceof Q)return A;for(var T=[],M=g.D(J.slotFulfillmentTriggers),n=M.next();!n.done;n=M.next()){n=Pu(n.value,v,d);if(n instanceof Q)return n;T.push(n)}T=dEm(T,P,J,y);y=[];J=g.D(J.slotExpirationTriggers);for(P=J.next();!P.done;P=J.next()){P=Pu(P.value,v,d);if(P instanceof Q)return P;y.push(P)}return{slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:y}}; vI2=function(J,y,v,d){return y&&v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&J instanceof iv?new Uo(function(P){return Gk(d,P)},v.adSlotMetadata.slotId):J}; dEm=function(J,y,v,d){return y&&v.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?J.map(function(P){return P instanceof Tu?new sj(function(A){return Gk(d,A)},v.adSlotMetadata.slotId):P}):J}; xL=function(J,y,v){for(var d=[],P=g.D(J.layoutExitNormalTriggers||[]),A=P.next();!A.done;A=P.next()){A=Pu(A.value,y,v);if(A instanceof Q)return A;d.push(A)}P=[];A=g.D(J.layoutExitSkipTriggers||[]);for(var T=A.next();!T.done;T=A.next()){T=Pu(T.value,y,v);if(T instanceof Q)return T;P.push(T)}A=[];T=g.D(J.layoutExitMuteTriggers||[]);for(var M=T.next();!M.done;M=T.next()){M=Pu(M.value,y,v);if(M instanceof Q)return M;A.push(M)}T=[];J=g.D(J.layoutExitUserInputSubmittedTriggers||[]);for(M=J.next();!M.done;M= J.next()){M=Pu(M.value,y,v);if(M instanceof Q)return M;T.push(M)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:P,layoutExitMuteTriggers:A,layoutExitUserInputSubmittedTriggers:T,V8:[]}}; g6=function(J){var y=g.R(J.renderingContent,CO);if(y==null?0:y.pings)return sQ(y.pings);J=g.R(J.renderingContent,zf);return(J==null?0:J.skipPings)?new Map([["skip",J.skipPings]]):new Map}; zN2=function(J,y,v,d,P){y=g.R(y.renderingContent,CO);if(!y)return new Q("Invalid rendering content for DAI media layout");J=[new HA(d),new se(v.mF.videoLengthSeconds),new Yf(v.mF.playerVars),new LA(v.Eg),new th(v.A6),new Wx(v.Ci),new Ip(O$(J)),new uE(v.mF.adVideoId),new pp(v.Oj),y.sodarExtensionData&&new V$(y.sodarExtensionData),new T4({current:null}),new ah({}),new $f(n4(y.pings))].filter(hN3);P!==void 0&&J.push(new gH(P));return J}; KHT=function(J,y,v){J=J.map(function(n){return SU(g.R(n.renderingContent,CO),!1)}); var d=J.map(function(n){return n.videoLengthSeconds}),P=d.map(function(n,Y){return new fz(Y,d)}),A=y,T=v,M=[]; J.forEach(function(n,Y){T=Math.min(A+n.videoLengthSeconds*1E3,v);AB(n.playerVars,P[Y]);M.push({mF:n,Eg:A,A6:T,Ci:Y,Oj:P[Y]});A=T}); return M}; kpj=function(J,y,v){for(var d=[],P=g.D(J),A=P.next();!A.done;A=P.next())if(A=g.R(A.value.renderingContent,CO)){if(!re(A))return new Q("Invalid vod media renderer");d.push(PE3(A))}P=d.map(function(V){return V.Gi}); A=[];for(var T=0,M=0;M0?lR:-1;else if(mT= g.R(vP,zf)){vP=tG3(J,y,v,mT,A,c,M,E,lR);if(vP instanceof Q){t=vP;break a}vP=vP(L);b.push(vP.jK);B=[].concat(g.r(vP.S0),g.r(B));q=[].concat(g.r(vP.b1),g.r(q));vP.HF&&(Mj=[vP.HF].concat(g.r(Mj)))}else if(mT=g.R(vP,Io)){if(t===void 0){t=new Q("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:mT});break a}vP=xEU(J,y,v,A,mT,Jc,M,t,c,ow(S,"supports_multi_step_on_desktop"));if(vP instanceof Q){t=vP;break a}vP=vP(L);b.push(vP.jK);vP.HF&&Mj.push(vP.HF); B=[].concat(g.r(vP.S0),g.r(B));q=[].concat(g.r(vP.b1),g.r(q));C=[].concat(g.r(vP.kP),g.r(C));U=[].concat(g.r(vP.bd),g.r(U));N=[Jc].concat(g.r(N))}else if(vP=g.R(vP,pO)){vP=Opj(J,y,v,A,vP,Jc,M,c);if(vP instanceof Q){t=vP;break a}vP=vP(L);b.push(vP.jK);vP.HF&&Mj.push(vP.HF);q=[].concat(g.r(vP.b1),g.r(q))}else{t=new Q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={ai:b,layoutExitSkipTriggers:B,layoutExitUserInputSubmittedTriggers:C,V8:U,layoutExitMuteTriggers:q,ws:N,jC:Mj}}}else a:if(c= esH(d,v,S),c instanceof Q)t=c;else{b=0;B=[];q=[];C=[];U=[];N=[];Jc=[];E=new lG({current:null});T2=new iE({current:null});Mj=!1;Sx=[];lR=-1;W=g.D(d);for(vP=W.next();!vP.done;vP=W.next())if(vP=vP.value,g.R(vP,he)){vP=WLr(y,v,g.R(vP,he),M);if(vP instanceof Q){t=vP;break a}vP=vP(L);B.push(vP.jK);q=[].concat(g.r(vP.S0),g.r(q));C=[].concat(g.r(vP.b1),g.r(C));vP.HF&&(Sx=[vP.HF].concat(g.r(Sx)))}else if(g.R(vP,CO)){lR=VF(g.R(vP,CO),v,S);if(lR instanceof Hx){t=new Q(lR);break a}vP=new fz(b,c);vP=mEU(y,lR.layoutId, lR.Le,v,LG(lR.playerVars,lR.pk,T,Y,vP),lR.Gi,A,vP,M(L),T2,n.get(lR.Le.externalVideoId),void 0,V);b++;B.push(vP.jK);q=[].concat(g.r(vP.S0),g.r(q));C=[].concat(g.r(vP.b1),g.r(C));Mj||(Jc.push(T2),Mj=!0);lR=(lR=lR.Le.adPodSkipTarget)&&lR>0?lR:-1}else if(g.R(vP,zf)){vP=tG3(J,y,v,g.R(vP,zf),A,b,M,T2,lR);if(vP instanceof Q){t=vP;break a}vP=vP(L);B.push(vP.jK);q=[].concat(g.r(vP.S0),g.r(q));C=[].concat(g.r(vP.b1),g.r(C));vP.HF&&(Sx=[vP.HF].concat(g.r(Sx)))}else if(g.R(vP,Io)){if(t===void 0){t=new Q("Composite Survey must already have a Survey Bundle with required metadata.", {instreamSurveyAdRenderer:g.R(vP,Io)});break a}vP=xEU(J,y,v,A,g.R(vP,Io),E,M,t,b,ow(S,"supports_multi_step_on_desktop"));if(vP instanceof Q){t=vP;break a}vP=vP(L);B.push(vP.jK);vP.HF&&Sx.push(vP.HF);q=[].concat(g.r(vP.S0),g.r(q));C=[].concat(g.r(vP.b1),g.r(C));U=[].concat(g.r(vP.kP),g.r(U));N=[].concat(g.r(vP.bd),g.r(N));Jc=[E].concat(g.r(Jc))}else if(g.R(vP,pO)){vP=Opj(J,y,v,A,g.R(vP,pO),E,M,b);if(vP instanceof Q){t=vP;break a}vP=vP(L);B.push(vP.jK);vP.HF&&Sx.push(vP.HF);C=[].concat(g.r(vP.b1),g.r(C))}else{t= new Q("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={ai:B,layoutExitSkipTriggers:q,layoutExitUserInputSubmittedTriggers:U,V8:N,layoutExitMuteTriggers:C,ws:Jc,jC:Sx}}t instanceof Q?L=t:(N=L.slotId,c=t.ai,b=t.layoutExitSkipTriggers,B=t.layoutExitMuteTriggers,q=t.layoutExitUserInputSubmittedTriggers,C=t.ws,L=M(L),U=P?P.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=P?P.layoutId:Ct(y.T.get(),U,N),Jc={layoutId:N,layoutType:U,HX:"core"},L={layout:{layoutId:N,layoutType:U,C8:new Map, layoutExitNormalTriggers:[new vn(y.C,N)],layoutExitSkipTriggers:b,layoutExitMuteTriggers:B,layoutExitUserInputSubmittedTriggers:q,V8:[],HX:"core",clientMetadata:new Xo([new Mz(c)].concat(g.r(C))),c$:L(Jc)},jC:t.jC});return L}}; esH=function(J,y,v){var d=[];J=g.D(J);for(var P=J.next();!P.done;P=J.next())if(P=P.value,g.R(P,CO)){P=VF(g.R(P,CO),y,v);if(P instanceof Hx)return new Q(P);d.push(P.Gi)}return d}; qpd=function(J,y,v,d,P,A,T,M){if(!Cx3(v,M===void 0?!1:M))return new Q("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:v});var n=nG(v);if(n<=0)return new Q("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:v});var Y=new lG({current:null}),S=AV2(J,y,v,Y,d,A,T);return Bv3(J,d,A,n,P,function(V,L){var t=V.slotId,W=s$(v);V=T(V);var c,b=(c=eU(y,d,v.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?c: Ct(y.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",HX:"core"};c=S(b,L);var B=Nz(c.clientMetadata,"metadata_type_fulfilled_layout");B||TS("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");W=[new Ip(d),new jF(n),new Bx(W),Y];B&&W.push(new dH(B.layoutType));return{rg:{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",C8:new Map,layoutExitNormalTriggers:[new vn(y.C,b)],layoutExitSkipTriggers:[new Ae(y.C, L.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new Sl(y.C,L.layoutId)],V8:[],HX:"core",clientMetadata:new Xo(W),c$:V(t)},Km:c}})}; rS6=function(J){if(!p4c(J))return!1;var y=g.R(J.adVideoStart,$L);return y?g.R(J.linearAd,CO)&&Bn(y)?!0:(TS("Invalid Sandwich with notify"),!1):!1}; $E3=function(J){if(J.linearAds==null)return!1;J=g.R(J.adStart,$L);return J?Bn(J)?!0:(TS("Invalid LASR with notify"),!1):!1}; oIR=function(J){if(!IRv(J))return!1;J=g.R(J.adStart,$L);return J?Bn(J)?!0:(TS("Invalid LASR with notify"),!1):!1}; oR=function(J,y,v,d,P,A,T,M,n,Y){this.W=J;this.T=y;this.C=v;this.gj=d;this.lN=P;this.J=A;this.bA=T;this.pN=M;this.N1=n;this.loadPolicy=Y===void 0?1:Y}; vu=function(J,y,v,d,P,A,T,M,n,Y){var S=[];if(y.length===0&&d.length===0&&v.length===0)return S;y=y.filter(q2);var V=v.filter(rIv),L=d.filter(q2),t=new Map,W=Cr2(y),c=v.some(function(hc){var JO;return(hc==null?void 0:(JO=hc.adSlotMetadata)==null?void 0:JO.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),b=v.some(function(hc){var JO; return(hc==null?void 0:(JO=hc.adSlotMetadata)==null?void 0:JO.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),B=v.some(function(hc){var JO; return(hc==null?void 0:(JO=hc.adSlotMetadata)==null?void 0:JO.slotType)==="SLOT_TYPE_IN_PLAYER"}),q=v.some(function(hc){var JO,fH; return(hc==null?void 0:(JO=hc.adSlotMetadata)==null?void 0:JO.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(hc==null?void 0:(fH=hc.adSlotMetadata)==null?void 0:fH.slotType)==="SLOT_TYPE_ABOVE_FEED"}); v=v.some(function(hc){var JO;return(hc==null?void 0:(JO=hc.adSlotMetadata)==null?void 0:JO.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); if(c||b||B||q||v)Y=Hu2(V,y,M,P,W,J.lN.get(),J.loadPolicy,t,J.gj.get(),J.W.get(),B,T,n,Y),Y instanceof Q?TS(Y,void 0,void 0,{contentCpn:P}):S.push.apply(S,g.r(Y));Y=g.D(y);for(v=Y.next();!v.done;v=Y.next())v=v.value,b=CE3(J,t,v,P,A,T,c,M,W,n,V),b instanceof Q?TS(b,void 0,void 0,{renderer:v.renderer,config:v.config.adPlacementConfig,kind:v.config.adPlacementConfig.kind,contentCpn:P,daiEnabled:T}):S.push.apply(S,g.r(b));hsU(J.gj.get())||(A=I1c(J,L,P,M,W,t),S.push.apply(S,g.r(A)));if(J.J===null||T&&!M.NO){var C, U,N;J=M.jH&&y.length===1&&((C=y[0].config)==null?void 0:(U=C.adPlacementConfig)==null?void 0:U.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((N=y[0].renderer)==null?void 0:N.adBreakServiceRenderer);if(!S.length&&!J){var Jc,E,T2,Mj;TS("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":y.length,contentCpn:P,"first APR kind":(Jc=y[0])==null?void 0:(E=Jc.config)==null?void 0:(T2=E.adPlacementConfig)==null?void 0:T2.kind,renderer:(Mj=y[0])==null?void 0: Mj.renderer})}return S}C=d.filter(q2);S.push.apply(S,g.r(vjU(t,C,J.T.get(),J.J,P,c)));if(!S.length){var lR,Sx,vP,mT;TS("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":y.length,contentCpn:P,daiEnabled:T.toString(),"first APR kind":(lR=y[0])==null?void 0:(Sx=lR.config)==null?void 0:(vP=Sx.adPlacementConfig)==null?void 0:vP.kind,renderer:(mT=y[0])==null?void 0:mT.renderer})}return S}; I1c=function(J,y,v,d,P,A){function T(L){return Q$(J.lN.get(),L)} var M=[];y=g.D(y);for(var n=y.next();!n.done;n=y.next()){n=n.value;var Y=n.renderer,S=Y.sandwichedLinearAdRenderer,V=Y.linearAdSequenceRenderer;S&&rS6(S)?(TS("Found AdNotify with SandwichedLinearAdRenderer"),V=g.R(S.adVideoStart,$L),S=g.R(S.linearAd,CO),Tk(A,Y,n.config.adPlacementConfig.kind),Y=void 0,V=buH((Y=V)==null?void 0:Y.layout.layoutId,J.T.get(),J.C.get(),n.config.adPlacementConfig,n.adSlotLoggingData,S,v,d,T,P,J.loadPolicy,J.gj.get(),J.lN.get()),V instanceof Q?TS(V):M.push.apply(M,g.r(V))): V&&(!V.adLayoutMetadata&&$E3(V)||V.adLayoutMetadata&&oIR(V))&&(TS("Found AdNotify with LinearAdSequenceRenderer"),Tk(A,Y,n.config.adPlacementConfig.kind),Y=void 0,S=gIm((Y=g.R(V.adStart,$L))==null?void 0:Y.layout.layoutId,J.T.get(),J.C.get(),n.config.adPlacementConfig,n.adSlotLoggingData,V.linearAds,te(V.adLayoutMetadata)?V.adLayoutMetadata:void 0,v,d,T,P,J.loadPolicy,J.gj.get()),S instanceof Q?TS(S):M.push.apply(M,g.r(S)))}return M}; CE3=function(J,y,v,d,P,A,T,M,n,Y,S){function V(B){return Q$(J.lN.get(),B)} var L=v.renderer,t=v.config.adPlacementConfig,W=t.kind,c=v.adSlotLoggingData,b=M.NO&&W==="AD_PLACEMENT_KIND_START";b=A&&!b;if(L.adsEngagementPanelRenderer!=null)return MG(y,v.elementId,W,L.adsEngagementPanelRenderer.isContentVideoEngagementPanel,L.adsEngagementPanelRenderer.adVideoId,L.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.adsEngagementPanelRenderer;B=Q$(J.lN.get(),B);return CG(N,Jc,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", new jG(E),q,C,E.impressionPings,B,L.adsEngagementPanelRenderer.adLayoutLoggingData,U)}),[]; if(L.adsEngagementPanelLayoutViewModel)return MG(y,v.elementId,W,L.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,L.adsEngagementPanelLayoutViewModel.adVideoId,L.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.adsEngagementPanelLayoutViewModel;B=Q$(J.lN.get(),B);return hB(N,Jc,"LAYOUT_TYPE_PANEL",new eG(E),q,C,B,L.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,U)}),[]; if(L.actionCompanionAdRenderer!=null){if(L.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return Q6T(J.T.get(),J.J,J.C.get(),L.actionCompanionAdRenderer,t,c,d,V);MG(y,v.elementId,W,L.actionCompanionAdRenderer.isContentVideoCompanion,L.actionCompanionAdRenderer.adVideoId,L.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.actionCompanionAdRenderer;B=Q$(J.lN.get(),B);return CG(N,Jc,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", new bE(E),q,C,E.impressionPings,B,L.actionCompanionAdRenderer.adLayoutLoggingData,U)})}else if(L.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(L.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return ZrT(J.T.get(),J.J,J.C.get(),L.topBannerImageTextIconButtonedLayoutViewModel,t,c,d,V); MG(y,v.elementId,W,L.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,L.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,L.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.topBannerImageTextIconButtonedLayoutViewModel;B=Q$(J.lN.get(),B);return hB(N,Jc,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new F0(E),q,C,B,L.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,U)})}else if(L.imageCompanionAdRenderer)MG(y, v.elementId,W,L.imageCompanionAdRenderer.isContentVideoCompanion,L.imageCompanionAdRenderer.adVideoId,L.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.imageCompanionAdRenderer; B=Q$(J.lN.get(),B);return CG(N,Jc,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new rv(E),q,C,E.impressionPings,B,L.imageCompanionAdRenderer.adLayoutLoggingData,U)}); else if(L.bannerImageLayoutViewModel)MG(y,v.elementId,W,L.bannerImageLayoutViewModel.isContentVideoCompanion,L.bannerImageLayoutViewModel.adVideoId,L.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.bannerImageLayoutViewModel;B=Q$(J.lN.get(),B);return hB(N,Jc,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new $I(E),q,C,B,L.bannerImageLayoutViewModel.adLayoutLoggingData,U)}); else if(L.shoppingCompanionCarouselRenderer)MG(y,v.elementId,W,L.shoppingCompanionCarouselRenderer.isContentVideoCompanion,L.shoppingCompanionCarouselRenderer.adVideoId,L.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,c,function(B,q,C,U){var N=J.C.get(),Jc=B.slotId,E=L.shoppingCompanionCarouselRenderer;B=Q$(J.lN.get(),B);return CG(N,Jc,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new op(E),q,C,E.impressionPings,B,L.shoppingCompanionCarouselRenderer.adLayoutLoggingData,U)}); else if(L.adBreakServiceRenderer){if(!keR(v))return[];if(W==="AD_PLACEMENT_KIND_PAUSE")return zK2(J.T.get(),t,c,v.renderer.adBreakServiceRenderer,d);if(W!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&W!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return Kdm(J.T.get(),t,c,v.renderer.adBreakServiceRenderer,d,P,A);M.jH||TS("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:W,adPlacementConfig:t,daiEnabledForContentVideo:String(A),isServedFromLiveInfra:String(M.jH),clientPlaybackNonce:M.clientPlaybackNonce}); if(W==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!J.bA)return new Q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!J.N1)return new Q("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");J.N1.z5({adPlacementRenderer:v,contentCpn:d,Da:P});P=J.bA.get().getCurrentTimeSec(1,!1);return pA3(J.T.get(),v.renderer.adBreakServiceRenderer,t,P,d,c,A)}if(!J.pN)return new Q("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); J.pN.z5({adPlacementRenderer:v,contentCpn:d,Da:P})}else{if(L.clientForecastingAdRenderer)return MGT(J.T.get(),J.C.get(),t,c,L.clientForecastingAdRenderer,d,P,V);if(L.invideoOverlayAdRenderer)return SpH(J.T.get(),J.C.get(),t,c,L.invideoOverlayAdRenderer,d,P,V);if(L.instreamAdPlayerOverlayRenderer)return spx(J.T.get(),J.C.get(),t,c,L.instreamAdPlayerOverlayRenderer,d,V);if((L.linearAdSequenceRenderer||L.instreamVideoAdRenderer)&&b)return xH3(J.T.get(),J.C.get(),v,d,V,Y,!J.gj.get().S.Y().X("html5_override_ad_video_length_killswitch")); if(L.linearAdSequenceRenderer&&!b){if(T)return[];Tk(y,L,W);if(L.linearAdSequenceRenderer.adLayoutMetadata){if(!IRv(L.linearAdSequenceRenderer))return new Q("Received invalid LinearAdSequenceRenderer.")}else if(L.linearAdSequenceRenderer.linearAds==null)return new Q("Received invalid LinearAdSequenceRenderer.");if(g.R(L.linearAdSequenceRenderer.adStart,$L)){TS("Found AdNotify in LinearAdSequenceRenderer");v=g.R(L.linearAdSequenceRenderer.adStart,$L);if(!xJ2(v))return new Q("Invalid AdMessageRenderer."); A=L.linearAdSequenceRenderer.linearAds;return DER(J.W.get(),J.T.get(),J.C.get(),J.lN.get(),t,c,v,te(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,A,d,P,M,V,n,J.loadPolicy,J.gj.get())}return jpc(J.T.get(),J.C.get(),t,c,L.linearAdSequenceRenderer.linearAds,te(L.linearAdSequenceRenderer.adLayoutMetadata)?L.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,P,M,V,n,J.loadPolicy,J.gj.get(),S)}if(!L.remoteSlotsRenderer||A){if(L.instreamVideoAdRenderer&& !b){if(T)return[];Tk(y,L,W);return BZ6(J.T.get(),J.C.get(),t,c,L.instreamVideoAdRenderer,d,P,M,V,n,J.loadPolicy,J.gj.get(),J.lN.get(),S)}if(L.instreamSurveyAdRenderer)return qpd(J.T.get(),J.C.get(),L.instreamSurveyAdRenderer,t,c,d,V,ow(J.gj.get(),"supports_multi_step_on_desktop"));if(L.sandwichedLinearAdRenderer!=null)return p4c(L.sandwichedLinearAdRenderer)?g.R(L.sandwichedLinearAdRenderer.adVideoStart,$L)?(TS("Found AdNotify in SandwichedLinearAdRenderer"),v=g.R(L.sandwichedLinearAdRenderer.adVideoStart, $L),xJ2(v)?(A=g.R(L.sandwichedLinearAdRenderer.linearAd,CO))?FHU(v,A,t,J.W.get(),J.T.get(),J.C.get(),J.lN.get(),c,d,P,M,V,n,J.loadPolicy,J.gj.get()):new Q("Missing IVAR from Sandwich"):new Q("Invalid AdMessageRenderer.")):jpc(J.T.get(),J.C.get(),t,c,[L.sandwichedLinearAdRenderer.adVideoStart,L.sandwichedLinearAdRenderer.linearAd],void 0,d,P,M,V,n,J.loadPolicy,J.gj.get()):new Q("Received invalid SandwichedLinearAdRenderer.");if(L.videoAdTrackingRenderer!=null)return TvR(J.T.get(),J.C.get(),L.videoAdTrackingRenderer, t,c,d,P,M.Zo,V)}}return[]}; IR=function(J,y,v,d,P,A,T,M){g.u.call(this);var n=this;this.T=J;this.J=y;this.O8=d;this.bA=P;this.gj=A;this.jb=T;this.dn=M;this.C=null;v.get().addListener(this);this.addOnDisposeCallback(function(){v.tY()||v.get().removeListener(n)}); d.get().addListener(this);this.addOnDisposeCallback(function(){d.tY()||d.get().removeListener(n)})}; f1T=function(J,y,v){var d=J.bA.get().getCurrentTimeSec(1,!1);J.gj.get().S.Y().SH()&&aq(J.jb.get(),"sdai","onopp.1;evt."+v.event+";start."+v.startSecs.toFixed(3)+";d."+v.WF.toFixed(3));wF(J.T.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var P=J.J.get(),A=y.adPlacementRenderer.renderer.adBreakServiceRenderer,T=y.contentCpn,M=y.adPlacementRenderer.adSlotLoggingData,n=pG(J.gj.get()),Y=J.jb;if(P.gj.get().S.Y().experiments.BX("enable_smearing_expansion_dai")){var S=P.gj.get();S=g.Zo(S.S.Y().experiments, "max_prefetch_window_sec_for_livestream_optimization");n=P.gj.get();var V=g.Zo(n.S.Y().experiments,"min_prefetch_offset_sec_for_livestream_optimization");n={e0:UEU(v),Wy:!1,cueProcessedMs:d*1E3};var L=v.startSecs+v.WF;if(d===0)n.Ri=new g7(0,L*1E3);else{V=v.startSecs-V;var t=V-d;n.Ri=t<=0?new g7(V*1E3,L*1E3):new g7(Math.floor(d+Math.random()*Math.min(t,S))*1E3,L*1E3)}S=n}else S={e0:UEU(v),Wy:!1},L=v.startSecs+v.WF,v.startSecs<=d?n=new g7((v.startSecs-4)*1E3,L*1E3):(V=Math.max(0,v.startSecs-d-10),n= new g7(Math.floor(d+Math.random()*(n?d===0?0:Math.min(V,5):V))*1E3,L*1E3)),S.Ri=n;A=d6(P,A,T,S,M,[new nA(v)]);U$(P.gj.get())&&aq(Y.get(),"abrsm","cpi."+v.identifier+";cps."+v.startSecs+";cpd."+v.WF+";cts."+d+";rbf."+S.Ri.start);Y.get().S.N0(v.startSecs-d,S.Ri.start/1E3-d);return[A]})}; fG=function(J){var y,v=(y=Nz(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:y.current;if(!v)return null;y=Nz(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var d=J.layoutId,P=Nz(J.clientMetadata,"metadata_type_content_cpn"),A=Nz(J.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),T=Nz(J.clientMetadata,"metadata_type_player_overlay_layout_renderer"),M=Nz(J.clientMetadata,"metadata_type_player_underlay_renderer"),n=Nz(J.clientMetadata, "metadata_type_ad_placement_config"),Y=Nz(J.clientMetadata,"metadata_type_video_length_seconds");var S=fA(J.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Nz(J.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):fA(J.clientMetadata,"metadata_type_layout_enter_ms")&&fA(J.clientMetadata,"metadata_type_layout_exit_ms")?(Nz(J.clientMetadata,"metadata_type_layout_exit_ms")-Nz(J.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{zU:d,contentCpn:P,r6:v,KD:y,instreamAdPlayerOverlayRenderer:A, playerOverlayLayoutRenderer:T,instreamAdPlayerUnderlayRenderer:M,adPlacementConfig:n,videoLengthSeconds:Y,y7:S,inPlayerLayoutId:Nz(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nz(J.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; u03=function(J,y){return ipr(J,y)}; Hpc=function(J,y){y=ipr(J,y);if(!y)return null;var v;y.y7=(v=Nz(J.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:v.adBreakRemainingLengthSeconds;return y}; ipr=function(J,y){var v,d=(v=Nz(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:v.current;if(!d)return null;v=TDv(J,y);return{Gv:AlP(J,y),adPlacementConfig:Nz(J.clientMetadata,"metadata_type_ad_placement_config"),Br:v,contentCpn:Nz(J.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Nz(J.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Nz(J.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Nz(J.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,y7:void 0,r6:d,zU:J.layoutId,videoLengthSeconds:Nz(J.clientMetadata,"metadata_type_video_length_seconds")}}; iH=function(J,y,v,d,P,A,T,M,n){g.u.call(this);this.W=J;this.L=y;this.V=v;this.J=d;this.C=P;this.T=A;this.lN=T;this.gj=M;this.Sb=n;this.eK=!0}; XA3=function(J,y,v){return $H3(J.C.get(),y.contentCpn,y.zU,function(d){return ojU(J.T.get(),d.slotId,v,y.adPlacementConfig,y.zU,Q$(J.lN.get(),d))})}; uH=function(J,y,v,d,P,A,T,M){g.u.call(this);this.T=J;this.C=y;this.J=v;this.gj=d;this.W=P;this.Sb=A;this.bA=T;this.qs=M}; Hu=function(J){g.u.call(this);this.C=J}; wF=function(J,y,v,d){J.C().xR(y,d);v=v();J=J.C();J.mZ.WP("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",y,d,v);y=g.D(v);for(v=y.next();!v.done;v=y.next())a:{d=J;v=v.value;d.mZ.qo("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",v);d.mZ.qo("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",v);try{var P=d.C;if(g.qh(v.slotId))throw new Q("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(TI(P,v))throw new Q("Duplicate registration for slot.",{slotId:v.slotId,slotEntryTriggerType:v.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!P.hO.hW.has(v.slotType))throw new Q("No fulfillment adapter factory registered for slot of type: "+v.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!P.hO.nP.has(v.slotType))throw new Q("No SlotAdapterFactory registered for slot of type: "+v.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");GI(P,"TRIGGER_CATEGORY_SLOT_ENTRY",v.slotEntryTrigger?[v.slotEntryTrigger]:[]);GI(P,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", v.slotFulfillmentTriggers);GI(P,"TRIGGER_CATEGORY_SLOT_EXPIRATION",v.slotExpirationTriggers);var A=d.C,T=v.slotType+"_"+v.slotPhysicalPosition,M=x8(A,T);if(TI(A,v))throw new Q("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");M.set(v.slotId,new Zcr(v));A.C.set(T,M)}catch(T2){T2 instanceof Q&&T2.tB?(d.mZ.wR("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",T2.tB,v),TS(T2,v,void 0,void 0,T2.Cd)):(d.mZ.wR("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", v),TS(T2,v));break a}TI(d.C,v).L=!0;try{var n=d.C,Y=TI(n,v),S=v.slotEntryTrigger,V=n.hO.gf.get(S.triggerType);V&&(V.P5("TRIGGER_CATEGORY_SLOT_ENTRY",S,v,null),Y.AY.set(S.triggerId,V));for(var L=g.D(v.slotFulfillmentTriggers),t=L.next();!t.done;t=L.next()){var W=t.value,c=n.hO.gf.get(W.triggerType);c&&(c.P5("TRIGGER_CATEGORY_SLOT_FULFILLMENT",W,v,null),Y.zK.set(W.triggerId,c))}for(var b=g.D(v.slotExpirationTriggers),B=b.next();!B.done;B=b.next()){var q=B.value,C=n.hO.gf.get(q.triggerType);C&&(C.P5("TRIGGER_CATEGORY_SLOT_EXPIRATION", q,v,null),Y.K.set(q.triggerId,C))}var U=n.hO.hW.get(v.slotType).get().build(n.J,v);Y.G=U;var N=n.hO.nP.get(v.slotType).get().build(n.V,v);N.init();Y.T=N}catch(T2){T2 instanceof Q&&T2.tB?(d.mZ.wR("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",T2.tB,v),TS(T2,v,void 0,void 0,T2.Cd)):(d.mZ.wR("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",v),TS(T2,v));dF(d,v,!0);break a}d.mZ.qo("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",v);d.C.OR(v);for(var Jc=g.D(d.T),E=Jc.next();!E.done;E= Jc.next())E.value.OR(v);nt(d,v)}}; XP=function(J,y,v,d,P){g.u.call(this);var A=this;this.T=J;this.J=y;this.Tu=v;this.context=P;this.C=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.tY()||d.get().removeListener(A)})}; irx=function(J,y){var v=0x8000000000000;var d=0;for(var P=g.D(y.slotFulfillmentTriggers),A=P.next();!A.done;A=P.next())A=A.value,A instanceof ZW?(v=Math.min(v,A.C.start),d=Math.max(d,A.C.end)):TS("Found unexpected fulfillment trigger for throttled slot.",y,null,{fulfillmentTrigger:A});d=new g7(v,d);v="throttledadcuerange:"+y.slotId;J.C.set(v,y);J.Tu.get().addCueRange(v,d.start,d.end,!1,J);Mo(J.context.gj.get())&&(y=d.start,d=d.end,P={},J.context.P_.eb("tcrr",(P.cid=v,P.sm=y,P.em=d,P)))}; NG=function(){g.u.apply(this,arguments);this.eK=!0;this.Ir=new Map;this.C=new Map}; RR=function(J,y){J=g.D(J.Ir.values());for(var v=J.next();!v.done;v=J.next())if(v.value.layoutId===y)return!0;return!1}; KG=function(J,y){J=g.D(J.C.values());for(var v=J.next();!v.done;v=J.next()){v=g.D(v.value);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.layoutId===y)return d}TS("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.qh(y)),layoutId:y})}; Nvv=function(){this.C=new Map}; RsR=function(J,y){this.callback=J;this.slot=y}; zk=function(){}; KLP=function(J,y,v){this.callback=J;this.slot=y;this.bA=v}; zsv=function(J,y,v){this.callback=J;this.slot=y;this.bA=v;this.T=!1;this.C=0}; kPr=function(J,y,v){this.callback=J;this.slot=y;this.bA=v}; kL=function(J){this.bA=J}; E$=function(J){g.u.call(this);this.SY=J;this.kD=new Map}; QF=function(J,y){for(var v=[],d=g.D(J.kD.values()),P=d.next();!P.done;P=d.next()){P=P.value;var A=P.trigger;A instanceof Sl&&A.triggeringLayoutId===y&&v.push(P)}v.length?tv(J.SY(),v):TS("Survey is submitted but no registered triggers can be activated.")}; ZU=function(J,y,v){E$.call(this,J);var d=this;this.gj=v;y.get().addListener(this);this.addOnDisposeCallback(function(){y.tY()||y.get().removeListener(d)})}; w6=function(J){g.u.call(this);this.C=J;this.eK=!0;this.kD=new Map;this.V=new Set;this.J=new Set;this.W=new Set;this.L=new Set;this.T=new Set}; JP=function(J){g.u.call(this);this.C=J;this.kD=new Map}; yv=function(J,y){for(var v=[],d=g.D(J.kD.values()),P=d.next();!P.done;P=d.next())P=P.value,P.trigger.C===y.layoutId&&v.push(P);v.length&&tv(J.C(),v)}; vR=function(J,y,v){g.u.call(this);var d=this;this.C=J;this.context=v;this.kD=new Map;y.get().addListener(this);this.addOnDisposeCallback(function(){y.tY()||y.get().removeListener(d)})}; dU=function(J,y,v,d,P){g.u.call(this);var A=this;this.T=J;this.Tu=y;this.bA=v;this.Sb=d;this.context=P;this.eK=!0;this.kD=new Map;this.C=new Set;v.get().addListener(this);this.addOnDisposeCallback(function(){v.tY()||v.get().removeListener(A)})}; EIU=function(J,y,v,d,P,A,T,M,n,Y){if($z(J.Sb.get(),1).clientPlaybackNonce!==n)throw new Q("Cannot register CueRange-based trigger for different content CPN",{trigger:v});J.kD.set(v.triggerId,{v3:new LO(y,v,d,P),cueRangeId:A});J.Tu.get().addCueRange(A,T,M,Y,J);Mo(J.context.gj.get())&&(n={},J.context.P_.eb("crr",(n.ca=y,n.tt=v.triggerType,n.st=d.slotType,n.lt=P==null?void 0:P.layoutType,n.cid=A,n.sm=T,n.em=M,n)))}; Qpx=function(J,y){J=g.D(J.kD.entries());for(var v=J.next();!v.done;v=J.next()){var d=g.D(v.value);v=d.next().value;d=d.next().value;if(y===d.cueRangeId)return v}return""}; PR=function(J,y){g.u.call(this);var v=this;this.W=J;this.T=new Map;this.J=new Map;this.C=null;y.get().addListener(this);this.addOnDisposeCallback(function(){y.tY()||y.get().removeListener(v)}); var d;this.C=((d=y.get().cE)==null?void 0:d.slotId)||null}; Zp3=function(J,y){var v=[];J=g.D(J.values());for(var d=J.next();!d.done;d=J.next())d=d.value,d.slot.slotId===y&&v.push(d);return v}; AP=function(J){g.u.call(this);this.C=J;this.eK=!0;this.kD=new Map}; lv=function(J,y,v){y=y.layoutId;for(var d=[],P=g.D(J.kD.values()),A=P.next();!A.done;A=P.next())if(A=A.value,A.trigger instanceof vn){var T;if(T=A.trigger.layoutId===y){T=v;var M=Nb2.get(A.category);T=M?M===T:!1}T&&d.push(A)}d.length&&tv(J.C(),d)}; TO=function(J){g.u.call(this);this.C=J;this.eK=!0;this.kD=new Map}; lY=function(J,y,v,d,P){g.u.call(this);var A=this;this.L=J;this.O8=y;this.bA=v;this.jb=d;this.C=null;this.W=!1;this.eK=!0;this.kD=new Map;y.get().addListener(this);this.addOnDisposeCallback(function(){y.tY()||y.get().removeListener(A)}); P.get().addListener(this);this.addOnDisposeCallback(function(){P.tY()||P.get().removeListener(A)})}; yhc=function(J){J.C&&(J.W=!0,J.T&&(J.T.stop(),J.T.start()),wAj(J,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),aq(J.jb.get(),"ads_ce","bdc."+Jhr(J).length))}; wAj=function(J,y){for(var v=[],d=g.D(J.kD.values()),P=d.next();!P.done;P=d.next())P=P.value,P.trigger.triggerType===y&&v.push(P);v.length>0&&tv(J.L(),v)}; M3=function(J,y,v,d,P){for(var A=[],T=g.D(J.kD.values()),M=T.next();!M.done;M=T.next()){var n=M=M.value,Y=n.trigger;n=n.slot;if(Y.triggerType===y){if(Y instanceof kG||Y instanceof Eo||Y instanceof wc){if(P&&Y.breakDurationMs!==v)continue;if(!P&&Y.breakDurationMs===v)continue;if(d.has(n.slotId))continue}A.push(M)}}A.length>0&&tv(J.L(),A)}; vf3=function(J,y){y=(y.WF+1)*1E3;var v=void 0;J=g.D(J.kD.values());for(var d=J.next();!d.done;d=J.next()){var P=d.value;d=P.trigger;P=P.slot;d instanceof kG&&d.breakDurationMs<=y&&(!v||d.breakDurationMs>v.trigger.breakDurationMs)&&(v={slot:P,trigger:d})}return v}; dzc=function(J){J=J.adPlacementRenderer.config.adPlacementConfig;if(!J.prefetchModeConfig||!J.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;J=Number(J.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(J)||J<=0?0:Math.floor(Math.random()*J)}; PGR=function(J){J=J.adPlacementRenderer.config.adPlacementConfig;if(J.prefetchModeConfig&&J.prefetchModeConfig.cacheFetchRefreshDurationMs&&(J=Number(J.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(J)||J<=0)))return J}; nY=function(J){J.C=null;J.kD.clear();J.T&&J.T.stop();J.V&&J.V.stop();var y;(y=J.J)==null||y.stop();delete J.J}; Jhr=function(J){var y=[];J=g.D(J.kD.values());for(var v=J.next();!v.done;v=J.next())v=v.value.trigger,v instanceof kG&&y.push(v.breakDurationMs);return y}; s8=function(J){g.u.call(this);this.J=J;this.eK=!0;this.kD=new Map;this.C=new Map;this.T=new Map}; AhH=function(J,y){var v=[];if(y=J.C.get(y.layoutId)){y=g.D(y);for(var d=y.next();!d.done;d=y.next())(d=J.T.get(d.value.triggerId))&&v.push(d)}return v}; Yx=function(J){g.u.call(this);this.C=J;this.kD=new Map}; THv=function(J,y){for(var v=[],d=g.D(J.kD.values()),P=d.next();!P.done;P=d.next())P=P.value,P.trigger instanceof Uo&&P.trigger.slotId===y&&v.push(P);v.length>=1&&tv(J.C(),v)}; loH=function(J,y){var v={slotId:JL(y,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],HX:"surface",clientMetadata:new Xo([])},d=Object,P=d.assign;y=Ct(y,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",v.slotId);y={layoutId:y,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",C8:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"surface", clientMetadata:new Xo([]),c$:UZd(!1,v.slotId,v.slotType,v.slotPhysicalPosition,v.HX,v.slotEntryTrigger,v.slotFulfillmentTriggers,v.slotExpirationTriggers,y,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return P.call(d,{},J,{Tx:!0,slot:v,layout:y})}; RKU=function(J,y,v,d){var P=J.kind;d=d?!1:!J.hideCueRangeMarker;switch(P){case "AD_PLACEMENT_KIND_START":return d={e0:new g7(-0x8000000000000,-0x8000000000000),Wy:d},v!=null&&(d.Ri=new g7(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={e0:new g7(0x7ffffffffffff,0x8000000000000),Wy:d},v!=null&&(d.Ri=new g7(Math.max(0,y-v),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":P=J.adTimeOffset;P.offsetStartMilliseconds||TS("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); P.offsetEndMilliseconds||TS("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");J=Number(P.offsetStartMilliseconds);P=Number(P.offsetEndMilliseconds);P===-1&&(P=y);if(Number.isNaN(J)||Number.isNaN(P)||J>P)return new Q("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:J,offsetEndMs:P},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",P===y&&J-500<=P);d={e0:new g7(J,P),Wy:d};if(v!=null){J=Math.max(0,J-v);if(J===P)return d;d.Ri=new g7(J,P)}return d; default:return new Q("AdPlacementKind not supported in convertToRange.",{kind:P,adPlacementConfig:J})}}; UEU=function(J){var y=J.startSecs*1E3;return new g7(y,y+J.WF*1E3)}; MFR=function(J){if(!J||!J.adPlacements&&!J.adSlots)return!1;for(var y=g.D(J.adPlacements||[]),v=y.next();!v.done;v=y.next())if(v=v.value)if(v=v.adPlacementRenderer,v!=null&&(v.config&&v.config.adPlacementConfig&&v.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;J=g.D(J.adSlots||[]);for(y=J.next();!y.done;y=J.next()){var d=v=void 0;if(((v=g.R(y.value,yF))==null?void 0:(d=v.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; SW=function(J){this.gj=J;this.T=new Map;this.C=new Map;this.J=new Map}; JL=function(J,y){if(Vv(J.gj.get())){var v=J.T.get(y)||0;v++;J.T.set(y,v);return y+"_"+v}return g.t4(16)}; Ct=function(J,y,v){if(Vv(J.gj.get())){var d=J.C.get(y)||0;d++;J.C.set(y,d);return v+"_"+y+"_"+d}return g.t4(16)}; Gk=function(J,y){if(Vv(J.gj.get())){var v=J.J.get(y)||0;v++;J.J.set(y,v);return y+"_"+v}return g.t4(16)}; nfR=function(J){var y=[new y$(J.zU),new Ah(J.r6),new Ip(J.adPlacementConfig),new se(J.videoLengthSeconds),new Fo(J.y7)];J.instreamAdPlayerOverlayRenderer&&y.push(new X0(J.instreamAdPlayerOverlayRenderer));J.playerOverlayLayoutRenderer&&y.push(new NE(J.playerOverlayLayoutRenderer));J.KD&&y.push(new iE(J.KD));return y}; shP=function(J,y,v,d,P,A){J=v.inPlayerLayoutId?v.inPlayerLayoutId:Ct(A,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",J);var T,M,n=v.instreamAdPlayerOverlayRenderer?(T=v.instreamAdPlayerOverlayRenderer)==null?void 0:T.adLayoutLoggingData:(M=v.playerOverlayLayoutRenderer)==null?void 0:M.adLayoutLoggingData;T={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",HX:y};return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",C8:new Map,layoutExitNormalTriggers:[new Kz(function(Y){return Gk(A, Y)},v.zU)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:y,clientMetadata:d,c$:P(T),adLayoutLoggingData:n}}; LY=function(J,y){var v=this;this.T=J;this.gj=y;this.C=function(d){return Gk(v.T.get(),d)}}; ojU=function(J,y,v,d,P,A){v=new Xo([new Rp(v),new Ip(d)]);y=Ct(J.T.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",y);d={layoutId:y,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",HX:"core"};return{layoutId:y,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",C8:new Map,layoutExitNormalTriggers:[new Kz(function(T){return Gk(J.T.get(),T)},P)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:v,c$:A(d),adLayoutLoggingData:void 0}}; tB=function(J,y,v,d,P){var A=nfR(d);return shP(y,v,d,new Xo(A),P,J.T.get())}; Yec=function(J,y,v,d,P){var A=nfR(d);A.push(new Cp(d.Gv));A.push(new hS(d.Br));return shP(y,v,d,new Xo(A),P,J.T.get())}; CG=function(J,y,v,d,P,A,T,M,n,Y){y=Ct(J.T.get(),v,y);var S={layoutId:y,layoutType:v,HX:"core"},V=new Map;T&&V.set("impression",T);T=[new Je(J.C,P,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Y&&T.push(new Rq(J.C,Y,["normal"]));return{layoutId:y,layoutType:v,C8:V,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([d,new Ip(A),new y$(P)]),c$:M(S),adLayoutLoggingData:n}}; hB=function(J,y,v,d,P,A,T,M,n){y=Ct(J.T.get(),v,y);var Y={layoutId:y,layoutType:v,HX:"core"},S=[new Je(J.C,P,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&S.push(new Rq(J.C,n,["normal"]));return{layoutId:y,layoutType:v,C8:new Map,layoutExitNormalTriggers:S,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([d,new Ip(A),new y$(P)]),c$:T(Y),adLayoutLoggingData:M}}; FP=function(J,y,v){var d=[];d.push(new y9(J.C,v));y&&d.push(y);return d}; bH=function(J,y,v,d,P,A,T){var M={layoutId:y,layoutType:v,HX:"core"};return{layoutId:y,layoutType:v,C8:new Map,layoutExitNormalTriggers:T,layoutExitSkipTriggers:[new uv(J.C,y)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([new qE(d),new Ip(P)]),c$:A(M),adLayoutLoggingData:d.adLayoutLoggingData}}; YL=function(J,y,v,d,P,A,T,M){var n={layoutId:y,layoutType:A,HX:"core"};return{layoutId:y,layoutType:A,C8:new Map,layoutExitNormalTriggers:[new Kz(J.C,v)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([new Ip(d)].concat(g.r(T))),c$:P(n),adLayoutLoggingData:M}}; eU=function(J,y,v,d){if(J.gj.get().Iz(y.kind==="AD_PLACEMENT_KIND_START"))if(v===void 0)TS("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return v}; VG6=function(J,y,v,d,P,A,T,M,n,Y,S,V,L){J=jU(J,y,v,P,A,T,M,n,V,eU(J,v,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),L);y=J.ws;v=new vx(J.Ap);d=J.layoutExitSkipTriggers;Y>0&&(y.push(v),y.push(new fp(Y)),d=[]);y.push(new Up(S));return{jK:{layoutId:J.layoutId,layoutType:J.layoutType,C8:J.C8,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:J.HX,clientMetadata:new Xo(y),c$:J.c$,adLayoutLoggingData:J.adLayoutLoggingData}, S0:d,b1:J.layoutExitMuteTriggers,kP:J.layoutExitUserInputSubmittedTriggers,bd:J.V8,HF:J.HF}}; a1x=function(J,y,v,d,P,A,T,M,n,Y){y=jU(J,y,v,d,A,new Map,T,function(S){return M(S,n)},void 0,eU(J,v,P.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); J=new Sl(J.C,y.Ap);v=new vx(y.Ap);Y=new Up(Y);return{jK:{layoutId:y.layoutId,layoutType:y.layoutType,C8:y.C8,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:y.HX,clientMetadata:new Xo([].concat(g.r(y.ws),[v,Y])),c$:y.c$,adLayoutLoggingData:y.adLayoutLoggingData},S0:y.layoutExitSkipTriggers,b1:y.layoutExitMuteTriggers,kP:[].concat(g.r(y.layoutExitUserInputSubmittedTriggers),[J]),bd:y.V8,HF:y.HF}}; jU=function(J,y,v,d,P,A,T,M,n,Y,S){y=Y!=null?Y:Ct(J.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",y);Y={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",HX:"adapter"};M=M(y);var V=Nz(M.clientMetadata,"metadata_type_fulfilled_layout");V||TS("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var L=V?V.layoutId:"";v=[new Ip(v),new jF(d),new Bx(P)];V&&v.push(new dH(V.layoutType));S&&v.push(new Wx(S));return{layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", C8:A,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Ae(J.C,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"adapter",ws:v,c$:T(Y),adLayoutLoggingData:n,HF:M,Ap:L}}; qiR=function(J,y,v,d,P,A,T,M,n,Y,S){J=Sev(J,y,"core",v,d,P,A,T,M,n,Y,void 0,S);return{layoutId:J.layoutId,layoutType:J.layoutType,C8:J.C8,layoutExitNormalTriggers:J.layoutExitNormalTriggers,layoutExitSkipTriggers:J.layoutExitSkipTriggers,layoutExitMuteTriggers:J.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:J.layoutExitUserInputSubmittedTriggers,V8:J.V8,HX:J.HX,clientMetadata:new Xo(J.j4),c$:J.c$,adLayoutLoggingData:J.adLayoutLoggingData}}; mEU=function(J,y,v,d,P,A,T,M,n,Y,S,V,L){y=Sev(J,y,"adapter",v,d,P,A,T,M,n,S,V,L);d=y.layoutExitSkipTriggers;P=y.j4;v.adPodSkipTarget&&v.adPodSkipTarget>0&&(P.push(Y),P.push(new fp(v.adPodSkipTarget)),d=[]);P.push(new Up(M.adPodIndex));v.isCritical&&(d=[new Rq(J.C,y.layoutId,["error"])].concat(g.r(d)));return{jK:{layoutId:y.layoutId,layoutType:y.layoutType,C8:y.C8,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:y.HX,clientMetadata:new Xo(P), c$:y.c$,adLayoutLoggingData:y.adLayoutLoggingData},S0:d,b1:y.layoutExitMuteTriggers,kP:y.layoutExitUserInputSubmittedTriggers,bd:y.V8}}; Sev=function(J,y,v,d,P,A,T,M,n,Y,S,V,L){var t={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA",HX:v};P=[new Ip(P),new pp(n),new uE(d.externalVideoId),new HA(M),new Bx({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new Yf(A),new T4({current:null}),new se(T)];(A=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&P.push(new X0(A));(T=d.playerOverlay.playerOverlayLayoutRenderer)&&P.push(new NE(T)); V&&P.push(new SF(V));(V=d.playerUnderlay)&&P.push(new Rp(V));M=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER");V=(V=A?A.elementId:T==null?void 0:T.layoutId)?V:Ct(J.T.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",M);P.push(new vx(V));P.push(new Px(M));P.push(new Wx(n.adPodIndex));d.adNextParams&&P.push(new mL(d.adNextParams));d.shrunkenPlayerBytesConfig&&P.push(new kI(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&P.push(new BA(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&P.push(new eF(d.legacyInfoCardVastExtension)); d.sodarExtensionData&&P.push(new V$(d.sodarExtensionData));S&&P.push(new bG(S));P.push(new $f(n4(d.pings)));n=sQ(d.pings);if(L){a:{L=g.D(L);for(S=L.next();!S.done;S=L.next())if(S=S.value,S.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(A=g.R(S.fulfillmentContent.fulfilledLayout,N2))&&(A=g.R(A.renderingContent,Hn))&&A.associatedPlayerBytesLayoutId===y){L=S;break a}L=void 0}L&&P.push(new Kp(L))}return{layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA",C8:n,layoutExitNormalTriggers:[new vn(J.C,y)],layoutExitSkipTriggers:d.skipOffsetMilliseconds? [new Ae(J.C,V)]:[],layoutExitMuteTriggers:[new Ae(J.C,V)],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:v,j4:P,c$:Y(t),adLayoutLoggingData:d.adLayoutLoggingData}}; gjv=function(J,y,v,d,P,A,T,M,n){d.every(function(S){return iG(S,[],["LAYOUT_TYPE_MEDIA"])})||TS("Unexpect subLayout type for DAI composite layout"); y=Ct(J.T.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",y);var Y={layoutId:y,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",HX:"core"};return{layoutId:y,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",C8:new Map,layoutExitNormalTriggers:[new zv(J.C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],V8:[],HX:"core",clientMetadata:new Xo([new LA(v),new th(M),new Mz(d),new Ip(P),new gH(A),new ah({}),new CA(n)]),c$:T(Y)}}; t0T=function(J){return J!=null}; tP=function(J,y,v){var d=this;this.T=J;this.J=y;this.gj=v;this.C=function(P){return Gk(d.T.get(),P)}}; pA3=function(J,y,v,d,P,A,T){if(!v.prefetchModeConfig)return new Q("AdPlacementConfig for Live Prefetch is missing prefetch_config");v=v.prefetchModeConfig;d*=1E3;var M=[];if(!v.breakLengthMs)return new Q("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var n=g.D(v.breakLengthMs),Y=n.next();!Y.done;Y=n.next())if(Y=Y.value,Number(Y)>0){var S=d+Number(v.startTimeOffsetMs),V=S+Number(v.cacheFetchSmearingDurationMs);Y={e0:new g7(V,V+Number(Y)),Wy:!1,Ri:new g7(Math.floor(S+Math.random()* Number(v.cacheFetchSmearingDurationMs)),V),cueProcessedMs:d?d:S};S=[];S.push(new Ue({}));V=[];V.push(new Pn(J.C));V.push(new TQ3(J.C));T&&S.push(new ah({}));M.push(d6(J,y,P,Y,A,S,V))}return M}; d6=function(J,y,v,d,P,A,T){A=A===void 0?[]:A;var M=JL(J.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");T||(T=[],d.Ri&&d.Ri.start!==d.e0.start&&T.push(new ZW(J.C,v,new g7(d.Ri.start,d.e0.start),!1)),T.push(new ZW(J.C,v,new g7(d.e0.start,d.e0.end),d.Wy)));d={getAdBreakUrl:y.getAdBreakUrl,c7:d.e0.start,tb:d.e0.end,cueProcessedMs:d.cueProcessedMs};y=new nO(J.C,M);A=[new cx(d)].concat(g.r(A));return{slotId:M,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:T, slotExpirationTriggers:[new de(J.C,v),new lj(J.C,M),new M2(J.C,M)],HX:"core",clientMetadata:new Xo(A),adSlotLoggingData:P}}; Lnj=function(J,y,v){var d=[];v=g.D(v);for(var P=v.next();!P.done;P=v.next())d.push(VFT(J,y,P.value));return d}; VFT=function(J,y,v){return v.triggeringSlotId!=null&&v.triggeringSlotId===J?v.clone(y):v}; Prc=function(J,y,v,d,P){return tFR(J,y,v,d,P)}; LLm=function(J,y,v,d){var P=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER");return tFR(J,P,y,v,d)}; tFR=function(J,y,v,d,P){var A=new NI(J.C,v),T=[new Tu(J.C,y)];J=[new lj(J.C,y),new de(J.C,d)];return{slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(P({slotId:y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:J},v))]),adSlotLoggingData:void 0}}; Bv3=function(J,y,v,d,P,A){var T=JL(J.T.get(),"SLOT_TYPE_PLAYER_BYTES"),M=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER"),n=Ct(J.T.get(),"LAYOUT_TYPE_SURVEY",M);d=WR(J,y,v,d);var Y=[new Tu(J.C,T)];v=[new lj(J.C,T),new de(J.C,v),new uv(J.C,n)];if(d instanceof Q)return d;M=A({slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:d,slotFulfillmentTriggers:Y,slotExpirationTriggers:v},{slotId:M,layoutId:n});A=M.rg;M=M.Km;return[{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:Bu(J,y,T,d),slotFulfillmentTriggers:qG(J,y,T,Y),slotExpirationTriggers:v,HX:"core",clientMetadata:new Xo([new Do(A),new hh(r6(y)),new pA({dT:J.dT(y)})]),adSlotLoggingData:P},M]}; r6=function(J){return J.kind==="AD_PLACEMENT_KIND_START"}; rVU=function(J,y,v,d,P){P=P?P:JL(J.T.get(),"SLOT_TYPE_IN_PLAYER");v=new NI(J.C,v);var A=[new Tu(J.C,P)];J=[new de(J.C,y),new lj(J.C,P)];return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:A,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(d({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:v,slotFulfillmentTriggers:A,slotExpirationTriggers:J}))])}}; $H3=function(J,y,v,d){var P=JL(J.T.get(),"SLOT_TYPE_PLAYER_UNDERLAY");v=new NI(J.C,v);var A=[new Tu(J.C,P)];J=[new de(J.C,y),new lj(J.C,P)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:A,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(d({slotId:P,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:v,slotFulfillmentTriggers:A,slotExpirationTriggers:J}))])}}; Gp2=function(J,y,v,d,P,A,T){var M=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER"),n=Ct(J.T.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",M);d=WnU(J,d,A,T,n);if(d instanceof Q)return d;T=[new Tu(J.C,M)];P=[new de(J.C,A),new Tu(J.C,P),new Y4(J.C,P)];v=Q$(v,{slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:P});J=J.J.get();A={layoutId:n,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",HX:"core"};y={layoutId:n,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", C8:new Map,layoutExitNormalTriggers:[new LdR(J.C,n,y.durationMs)],layoutExitSkipTriggers:[new Wdc(J.C,n,y.durationMs)],V8:[new tq3(J.C,n)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],HX:"core",clientMetadata:new Xo([new mn(y)]),c$:v(A)};return{slotId:M,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:d,slotFulfillmentTriggers:T,slotExpirationTriggers:P,clientMetadata:new Xo([new Do(y)])}}; YpU=function(J,y,v,d,P,A){y=WR(J,y,v,d);if(y instanceof Q)return y;var T=y instanceof ZW?new YVT(J.C,v,y.C):null;d=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER");var M=[new Tu(J.C,d)];J=[new de(J.C,v),new lj(J.C,d)];A=A({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:y,slotFulfillmentTriggers:M,slotExpirationTriggers:J},T);return A instanceof Hx?new Q(A):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:M,slotExpirationTriggers:J, HX:"core",clientMetadata:new Xo([new Do(A)]),adSlotLoggingData:P}}; nIx=function(J,y,v,d){var P=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER"),A=new iv(J.C,y),T=[new sj(J.C,P)];J=[new de(J.C,y),new lj(J.C,P)];return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(d({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:J}))]),adSlotLoggingData:v}}; sXU=function(J,y,v,d){var P=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER");v=new NI(J.C,v);var A=[new Tu(J.C,P)],T=[new lj(J.C,P),new de(J.C,y)];A={slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:v,slotFulfillmentTriggers:A,slotExpirationTriggers:T};return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:[new Tu(J.C,P)],slotExpirationTriggers:[new de(J.C,y),new lj(J.C,P)],HX:"core",clientMetadata:new Xo([new Do(d(A))])}}; lTH=function(J,y,v,d,P){var A=JL(J.T.get(),"SLOT_TYPE_IN_PLAYER");v=new Xi(J.C,d,v);d=[new Tu(J.C,A)];J=[new de(J.C,y)];return{slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:v,slotFulfillmentTriggers:d,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(P({slotId:A,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:v,slotFulfillmentTriggers:d,slotExpirationTriggers:J}))])}}; yV3=function(J,y,v,d,P,A){var T=JL(J.T.get(),y);return ak(J,T,y,new NI(J.C,d),[new de(J.C,v),new lj(J.C,T),new Rq(J.C,d,["error"])],P,A)}; JVU=function(J,y,v,d,P,A,T){var M=JL(J.T.get(),y);return ak(J,M,y,new Rq(J.C,P,["normal"]),[new de(J.C,v),new lj(J.C,M),new Rq(J.C,d,["error"])],A,T)}; Eu3=function(J,y,v,d,P){var A=JL(J.T.get(),y);return ak(J,A,y,new iv(J.C,v),[new de(J.C,v),new lj(J.C,A)],d,P)}; ASR=function(J,y,v,d,P){v=v?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var A=JL(J.T.get(),v);y=new iv(J.C,y);var T=[new Tu(J.C,A)];J=[new lj(J.C,A)];return{slotId:A,slotType:v,slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:T,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(P({slotId:A,slotType:v,slotPhysicalPosition:1,HX:"core",slotEntryTrigger:y,slotFulfillmentTriggers:T,slotExpirationTriggers:J}))]),adSlotLoggingData:d}}; WHT=function(J,y,v,d){var P=JL(J.T.get(),"SLOT_TYPE_PLAYER_BYTES"),A=new Q_(J.C),T=[new sj(J.C,P)];J=[new de(J.C,y)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(d({slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:A,slotFulfillmentTriggers:T,slotExpirationTriggers:J})),new ah({})]),adSlotLoggingData:v}}; bp3=function(J,y){return hsU(J.gj.get())?new Rq(J.C,y,["normal","error","skipped"]):new Rq(J.C,y,["normal"])}; eN3=function(J,y,v,d,P){y=bp3(J,y);J=mV(J,y,v);P=P({slotId:J.slotId,slotType:J.slotType,slotPhysicalPosition:J.slotPhysicalPosition,slotEntryTrigger:J.slotEntryTrigger,slotFulfillmentTriggers:J.slotFulfillmentTriggers,slotExpirationTriggers:J.slotExpirationTriggers,HX:J.HX});return P instanceof Q?P:{DX:Object.assign({},J,{clientMetadata:new Xo([new Do(P.layout)]),adSlotLoggingData:d}),jC:P.jC}}; mHv=function(J,y,v,d,P,A,T){v=FLx(J,y,v,d);if(v instanceof Q)return v;T=T({slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:v.slotEntryTrigger,slotFulfillmentTriggers:v.slotFulfillmentTriggers,slotExpirationTriggers:v.slotExpirationTriggers,HX:v.HX});if(T instanceof Q)return T;d=[new hh(r6(y)),new Do(T.layout),new pA({dT:J.dT(y)})];A&&d.push(new qz({}));return{DX:{slotId:v.slotId,slotType:v.slotType,slotPhysicalPosition:v.slotPhysicalPosition,slotEntryTrigger:Bu(J, y,v.slotId,v.slotEntryTrigger),slotFulfillmentTriggers:qG(J,y,v.slotId,v.slotFulfillmentTriggers),slotExpirationTriggers:v.slotExpirationTriggers,HX:v.HX,clientMetadata:new Xo(d),adSlotLoggingData:P},jC:T.jC}}; Bu=function(J,y,v,d){return J.gj.get().Iz(r6(y))?new Uo(J.C,v):d}; qG=function(J,y,v,d){return J.gj.get().Iz(r6(y))?[new sj(J.C,v)]:d}; mV=function(J,y,v){var d=JL(J.T.get(),"SLOT_TYPE_PLAYER_BYTES"),P=[new Tu(J.C,d)];J=[new lj(J.C,d),new de(J.C,v)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:P,slotExpirationTriggers:J,HX:"core"}}; FLx=function(J,y,v,d){y=WR(J,y,v,d);return y instanceof Q?y:mV(J,y,v)}; l1m=function(J,y,v,d,P,A){var T=JL(J.T.get(),"SLOT_TYPE_FORECASTING");y=WR(J,y,v,d);if(y instanceof Q)return y;d=[new Tu(J.C,T)];J=[new lj(J.C,T),new de(J.C,v)];return{slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:y,slotFulfillmentTriggers:d,slotExpirationTriggers:J,HX:"core",clientMetadata:new Xo([new Do(A({slotId:T,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,HX:"core",slotEntryTrigger:y,slotFulfillmentTriggers:d,slotExpirationTriggers:J}))]),adSlotLoggingData:P}}; aox=function(J,y,v,d,P){var A=!y.hideCueRangeMarker;switch(y.kind){case "AD_PLACEMENT_KIND_START":return new iv(J.C,v);case "AD_PLACEMENT_KIND_MILLISECONDS":return J=RKU(y,d),J instanceof Q?J:P(J.e0,A);case "AD_PLACEMENT_KIND_END":return new HS(J.C,v,A);default:return new Q("Cannot construct entry trigger",{kind:y.kind})}}; WnU=function(J,y,v,d,P){return aox(J,y,v,d,function(A,T){return new s6m(J.C,v,A,T,P)})}; WR=function(J,y,v,d){return aox(J,y,v,d,function(P,A){return new ZW(J.C,v,P,A)})}; ak=function(J,y,v,d,P,A,T){J=[new sj(J.C,y)];return{slotId:y,slotType:v,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:J,slotExpirationTriggers:P,HX:"core",clientMetadata:new Xo([new Do(T({slotId:y,slotType:v,slotPhysicalPosition:1,HX:"core",slotEntryTrigger:d,slotFulfillmentTriggers:J,slotExpirationTriggers:P}))]),adSlotLoggingData:A}}; xx=function(J,y){g.u.call(this);this.gj=J;this.C=y;this.eventCount=0}; O8=function(J,y,v,d){xx.call(this,J,y);this.gj=J;this.Sb=v;this.context=d}; gU=function(){this.C=new Map}; DD=function(J){this.C="pending";this.T=[];this.J=[];try{J(this.W.bind(this),this.reject.bind(this))}catch(y){this.reject(y)}}; xzr=function(){var J,y;return{Ut:new DD(function(v,d){J=v;y=d}), resolve:J,reject:y}}; bY=function(J){return cR(J)?J:GO(J)?new DD(function(y,v){J.then(y,v)}):new DD(function(y){y(J)})}; F1=function(J){return new DD(function(y,v){v(J)})}; jW=function(J){try{return bY(J())}catch(y){return F1(y)}}; mB=function(J,y,v){var d=xzr(),P=d.Ut,A=d.resolve,T=d.reject;J.T.push(function(M){if(y)try{var n=y(M);A(n)}catch(Y){T(Y)}else A(M)}); J.J.push(function(M){if(v)try{var n=v(M);A(n)}catch(Y){T(Y)}else T(M)}); eW(J);return P}; BR=function(J,y){return mB(J,void 0,y)}; OAH=function(J,y){mB(J,function(v){return mB(bY(y()),function(){return v})},function(v){return mB(bY(y()),function(){return F1(v)})})}; eW=function(J){if(J.C==="fulfilled"){var y=J.T;J.T=[];J.J=[];y=g.D(y);for(var v=y.next();!v.done;v=y.next())v=v.value,v(J.result)}else if(J.C==="rejected")for(y=J.J,J.T=[],J.J=[],y=g.D(y),v=y.next();!v.done;v=y.next())v=v.value,v(J.error)}; q3=function(J,y){return gfP(y.call(J))}; rU=function(J){return function v(){return f3(v,function(d){if(d.T==1)return g.F6(d,2),g.h(d,{Ut:bY(J)},4);if(d.T!=2)return d.return(d.C);g.od(d);return g.C3(d,0)})}()}; gfP=function(J){return jW(function(){return $x(J,J.next())})}; $x=function(J,y){return y.done?bY(y.value):BR(mB(y.value.Ut,function(v){return $x(J,J.next(v))}),function(v){return $x(J,J.throw(v))})}; ok=function(J,y){if(J.length===0)return bY(NaN);var v=xzr(),d=v.Ut,P=v.resolve,A=J.length;J=g.D(J.entries());var T=J.next();for(v={};!T.done;v={Rv:void 0},T=J.next()){var M=g.D(T.value);T=M.next().value;M=M.next().value;v.Rv=T;OAH(M,function(n){return function(){d.C==="pending"&&(Dzv(y)&&y(n.Rv)&&d.C==="pending"?P(n.Rv):(--A,A===0&&P(NaN)))}}(v))}return d}; CY=function(J){return J.map(function(y){return bY(y)})}; Ik=function(J){var y=J.hours||0;var v=J.minutes||0,d=J.seconds||0;y=d+v*60+y*3600+(J.days||0)*86400+(J.weeks||0)*604800+(J.months||0)*2629800+(J.years||0)*31557600;y<=0?y={hours:0,minutes:0,seconds:0}:(J=y,y=Math.floor(J/3600),J%=3600,v=Math.floor(J/60),d=Math.floor(J%60),y={hours:y,minutes:v,seconds:d});var P=y.hours===void 0?0:y.hours;v=y.minutes===void 0?0:y.minutes;J=y.seconds===void 0?0:y.seconds;d=P>0;y=[];if(d){P=(new Intl.NumberFormat("en-u-nu-latn")).format(P);var A=["fr"],T="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); P="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(hP)?P.replace(",","\u00a0"):A.includes(hP)?P.replace(",","\u202f"):T.includes(hP)?P.replace(",","."):P;y.push(P)}d=d===void 0?!1:d;v=(["af","be","lt"].includes(hP)||d)&&v<10?chc().format(v):(new Intl.NumberFormat("en-u-nu-latn")).format(v);y.push(v);v=chc().format(J);y.push(v);v=":";"da fi id si sr sr-Latn".split(" ").includes(hP)&&(v=".");return y.join(v)}; chc=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; G4T=function(J,y){var v,d;J=((v=J.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=v.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(v=0;vy;J=v}else J=!1;return J}; g.wU=function(J,y){return J.MF+"timedtext_video?ref=player&v="+y.videoId}; g.uoP=function(J){var y=this;this.videoData=J;J={};this.C=(J.c1a=function(){var v=[];if(g.Qv.isInitialized()){var d="";y.videoData&&y.videoData.Lb&&(d=y.videoData.Lb+("&r1b="+y.videoData.clientPlaybackNonce));var P={};d=(P.atr_challenge=d,P);md("bg_v",void 0,"player_att");(d=iAU(d))?(md("bg_s",void 0,"player_att"),v.push("r1a="+d)):(md("bg_e",void 0,"player_att"),v.push("r1c=2"))}else md("bg_e",void 0,"player_att"),window.trayride||window.botguard?v.push("r1c=1"):v.push("r1c=4");v.push("r1d="+g.Qv.getState()); return v.join("&")},J.c6a=function(v){return"r6a="+(Number(v.c)^Kr())},J.c6b=function(v){return"r6b="+(Number(v.c)^Number(g.NP("CATSTAT",0)))},J); this.videoData&&this.videoData.Lb?this.El=wN(this.videoData.Lb):this.El={}}; g.HA3=function(J){if(J.videoData&&J.videoData.Lb){for(var y=[J.videoData.Lb],v=g.D(Object.keys(J.C)),d=v.next();!d.done;d=v.next())d=d.value,J.El[d]&&J.C[d]&&(d=J.C[d](J.El))&&y.push(d);return y.join("&")}return null}; g.Jx=function(J,y){foc(J,{e8k:g.Zo(y.experiments,"bg_vm_reinit_threshold"),cspNonce:y.cspNonce,MF:y.MF||""})}; Xx3=function(){var J=XMLHttpRequest.prototype.fetch;return!!J&&J.length===3}; NHd=function(J){J=J[l[21]](l[3]);yk[l[17]](J,56);yk[l[17]](J,51);yk[l[41]](J,1);yk[l[17]](J,39);yk[l[17]](J,64);yk[l[61]](J,28);return J[l[33]](l[3])}; zc3=function(J,y){NH(J,2,y.k8,vW,3);NH(J,3,y.innertubeRequest,Rcc,3);rZ(J,4,y.onesieUstreamerConfig);rZ(J,9,y.ue);NH(J,10,y.jr,dk,3);NH(J,15,y.reloadPlaybackParams,Kn3,3)}; EfU=function(J,y){NH(J,1,y.formatId,PW,3);B9(J,2,y.startTimeMs);B9(J,3,y.durationMs);B9(J,4,y.zY);B9(J,5,y.JA);NH(J,9,y.IvW,k4m,3);NH(J,11,y.IYY,Ax,1);NH(J,12,y.G5,Ax,1)}; QhU=function(J,y){oX(J,1,y.videoId);B9(J,2,y.lmt)}; k4m=function(J,y){if(y.Nh)for(var v=0;v>31));B9(J,16,y.ph);B9(J,17,y.detailedNetworkType);B9(J,18,y.kG);B9(J,19,y.bR);B9(J,21,y.nRy);B9(J,23,y.zT);B9(J,28,y.F3);B9(J,29,y.woj);B9(J,34,y.visibility);v=y.playbackRate;if(v!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=v;v=(new Uint32Array(d))[0];if(v!==void 0)for(mH(J,285),e0(J,4),d=0;d<4;)J.view.setUint8(J.pos,v&255),v>>=8,J.pos+=1,d+=1}B9(J,36,y.iZ); NH(J,38,y.mediaCapabilities,v8P,3);B9(J,39,y.Quk);B9(J,40,y.uB);B9(J,44,y.playerState);qH(J,46,y.ey);B9(J,48,y.w2);B9(J,50,y.qL);B9(J,51,y.SF);B9(J,54,y.Zl);if(y.ev)for(v=0;v>31));oX(J,2,y.message)}; YAv=function(J,y){B9(J,1,y.clientState);NH(J,2,y.iuK,n8m,1)}; Mbx=function(J,y){rZ(J,1,y.cIk);NH(J,2,y.t1b,swj,3);NH(J,3,y.coldStartInfo,YAv,3)}; ld2=function(J,y){B9(J,1,y.type);rZ(J,2,y.value)}; TFr=function(J,y){oX(J,1,y.hl);oX(J,12,y.deviceMake);oX(J,13,y.deviceModel);B9(J,16,y.clientName);oX(J,17,y.clientVersion);oX(J,18,y.osName);oX(J,19,y.osVersion)}; SAv=function(J,y){oX(J,1,y.name);oX(J,2,y.value)}; Vb6=function(J,y){oX(J,1,y.url);if(y.ND)for(var v=0;v0&&!(Ked()>(0,g.GC)()-J*1E3))return 0;J=g.qW("yt-player-quality");if(typeof J==="string"){if(J=g.Gt[J],J>0)return J}else if(J instanceof Object)return J.quality;return 0}; Sn=function(){var J=g.qW("yt-player-proxima-pref");return J==null?null:J}; E82=function(){var J=g.qW("yt-player-quality");if(J instanceof Object&&J.quality&&J.previousQuality){if(J.quality>J.previousQuality)return 1;if(J.quality0&&y[0]?J.getAutoplayPolicy(y[0]):J.getAutoplayPolicy("mediaelement");if(dgU[v])return dgU[v]}}catch(d){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; Os=function(J){return J.ER||J.Cr||J.mutedAutoplay}; P43=function(J,y){return Os(J)?y!==1&&y!==2&&y!==0?"AUTOPLAY_STATUS_UNAVAILABLE":J.MH?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; ALd=function(J,y,v){var d=y.Y();J.thirdParty||(J.thirdParty={});d.ancestorOrigins&&(J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{ancestorOrigins:d.ancestorOrigins}));d.X("embeds_enable_autoplay_and_visibility_signals")&&(d.Iq!=null&&(J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(d.Iq)})),d.Qw&&(J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{visibilityFractionSource:d.Qw})), J.thirdParty.embeddedPlayerContext=Object.assign({},J.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:xi(),autoplayIntended:Os(y),autoplayStatus:P43(y,v)}))}; TaR=function(J){var y=[];J=g.D(J.split(","));for(var v=J.next();!v.done;v=J.next()){var d=v.value;d&&((v=d.startsWith("!"))&&(d=d.substring(1)),d=d.split("-"),d.length<3||y.push({Di:d[0],platform:d[1],deviceVersion:d[2],tq:v}))}return y}; nMU=function(J){return TaR(J).map(function(y){return{deviceInterface:l06[MJj[y.Di]]||0,deviceVersion:y.deviceVersion||"",isSleeping:y.tq}})}; g.gk=function(J,y){this.id=J;this.N4=y;this.captionTracks=[];this.J=this.W=null;this.xtags="";this.V=!1;this.C=null;this.T="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";J=this.N4.id.split(".");J.length>1&&(this.V=J[1]==="2")}; Dp=function(J,y,v,d,P){this.T=J;this.C=y;this.J=v;this.reason=d;this.FW=P===void 0?0:P}; g.cW=function(J,y,v,d){return new Dp(g.Gt[J]||0,g.Gt[y]||0,v,d)}; bk=function(J){if(GE&&J.FW)return!1;var y=g.Gt.auto;return J.T===y&&J.C===y}; jn=function(J){return FK[J.C||J.T]||"auto"}; sbr=function(J,y){y=g.Gt[y];return J.T<=y&&(!J.C||J.C>=y)}; en=function(J){return"["+J.T+"-"+J.C+", override: "+(J.J+", reason: "+J.reason+"]")}; mD=function(J,y,v){this.videoInfos=J;this.C=y;this.audioTracks=[];if(this.C){J=new Set;v==null||v({ainfolen:this.C.length});y=g.D(this.C);for(var d=y.next();!d.done;d=y.next())if(d=d.value,!d.N4||J.has(d.N4.id)){var P=void 0,A=void 0,T=void 0;(T=v)==null||T({atkerr:!!d.N4,itag:d.itag,xtag:d.C,lang:((P=d.N4)==null?void 0:P.name)||"",langid:((A=d.N4)==null?void 0:A.id)||""})}else P=new g.gk(d.id,d.N4),J.add(d.N4.id),this.audioTracks.push(P);v==null||v({atklen:this.audioTracks.length})}}; BW=function(){g.u.apply(this,arguments);this.C=null}; LKx=function(J,y,v,d,P,A,T){if(J.C)return J.C;var M={},n=new Set,Y={};if(q9(d)){for(var S in d.C)d.C.hasOwnProperty(S)&&(J=d.C[S],Y[J.info.PX]=[J.info]);return Y}S=YQH(y,d,M);A&&P({aftsrt:rk(S)});for(var V={},L=g.D(Object.keys(S)),t=L.next();!t.done;t=L.next()){t=t.value;for(var W=g.D(S[t]),c=W.next();!c.done;c=W.next()){c=c.value;var b=c.itag,B=void 0,q=t+"_"+(((B=c.video)==null?void 0:B.fps)||0);V.hasOwnProperty(q)?V[q]===!0?Y[t].push(c):M[b]=V[q]:(B=$i(y,c,v,d.isLive,n),B!==!0?(T.add(t),M[b]=B, B==="disablevp9hfr"&&(V[q]="disablevp9hfr")):(Y[t]=Y[t]||[],Y[t].push(c),V[q]=!0))}}A&&P({bfflt:rk(Y)});for(var C in Y)Y.hasOwnProperty(C)&&(d=C,Y[d]&&Y[d][0].OH()&&(Y[d]=Y[d],Y[d]=SQ3(y,Y[d],M),Y[d]=VJj(Y[d],M)));A&&Object.keys(M).length>0&&P({rjr:sy(M)});y=g.D(n.values());for(d=y.next();!d.done;d=y.next())(d=v.W.get(d.value))&&--d.kK;A&&P({aftflt:rk(Y)});J.C=g.yx(Y,function(U){return!!U.length}); return J.C}; WKU=function(J,y,v,d,P,A,T,M){M=M===void 0?!1:M;if(y.h_&&T&&T.length>1&&!(y.Lp>0||y.B)){for(var n=y.T||!!P,Y=n&&y.L8?A:void 0,S=YQH(y,d),V=[],L=[],t={},W=0;W0&&L&&P&&(S=[T,v],C=P.concat(L).filter(function(U){return U})); if(C.length&&!y.QL){hx(C,S);if(n){n=[];y=g.D(C);for(d=y.next();!d.done;d=y.next())n.push(d.value.itag);A({hbdfmt:n.join(".")})}return B0(new mD(C,J,Y))}C=jbm(y);C=g.On(C,M);if(!C){if(V[T])return A=V[T],hx(A),B0(new mD(A,J,Y));n&&A({novideo:1});return mv()}y.Lf&&(C==="1"||C==="1h")&&V[v]&&(T=Iz(V[C]),S=Iz(V[v]),S>T?C=v:S===T&&eSH(V[v])&&(C=v));C==="9"&&V.h&&Iz(V.h)>Iz(V["9"])&&(C="h");y.Ky&&d.isLive&&C==="("&&V.H&&Iz(V["("])<1440&&(C="H");n&&A({vfmly:pC(C)});y=V[C];if(!y.length)return n&&A({novfmly:pC(C)}), mv();hx(y);return B0(new mD(y,J,Y))}; xgP=function(J,y){var v=!(!J.m&&!J.M),d=!(!J.mac3&&!J.MAC3),P=!(!J.meac3&&!J.MEAC3);J=!(!J.i&&!J.I);y.AI=J;return v||d||P||J}; eSH=function(J){J=g.D(J);for(var y=J.next();!y.done;y=J.next())if(y=y.value,y.itag&&mg6.has(y.itag))return!0;return!1}; gMR=function(J){J=g.D(J);for(var y=J.next();!y.done;y=J.next())if(y.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; pC=function(J){switch(J){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return J}}; rk=function(J){var y=[],v;for(v in J)if(J.hasOwnProperty(v)){var d=v;y.push(pC(d));d=g.D(J[d]);for(var P=d.next();!P.done;P=d.next())y.push(P.value.itag)}return y.join(".")}; a0U=function(J,y,v,d,P,A){var T={},M={};g.Js(y,function(n,Y){n=n.filter(function(S){var V=S.itag;if(!S.E8)return M[V]="noenc",!1;if(A.yl&&S.PX==="(h"&&A.rj)return M[V]="lichdr",!1;if(!J.V&&S.PX==="1e")return M[V]="noav1enc",!1;if(S.PX==="("||S.PX==="(h"){if(J.J&&v&&v.flavor==="widevine"){var L=S.mimeType+"; experimental=allowed";(L=!!S.E8[v.flavor]&&!!v.C[L])||(M[V]=S.E8[v.flavor]?"unspt":"noflv");return L}if(!Us(J,fC.CRYPTOBLOCKFORMAT)&&!J.If||J.AY)return M[V]=J.AY?"disvp":"vpsub",!1}return v&&S.E8[v.flavor]&& v.C[S.mimeType]?!0:(M[V]=v?S.E8[v.flavor]?"unspt":"noflv":"nosys",!1)}); n.length&&(T[Y]=n)}); d&&Object.entries(M).length&&P({rjr:sy(M)});return T}; VJj=function(J,y){var v=gp(J,function(d,P){return P.video.fps>32?Math.min(d,P.video.width):d},Infinity); v32||d.video.widthJ.L)return"max"+J.L;if(J.XW&&y.PX==="h"&&y.video&&y.video.qualityOrdinal>1080)return"blkhigh264";if(y.PX==="(h"&&!v.G)return"enchdr";if((d===void 0?0:d)&&Cm(y)&&!J.cX)return"blk51live";if((y.PX==="MAC3"||y.PX==="mac3")&&!J.W)return"blkac3";if((y.PX==="MEAC3"||y.PX==="meac3")&&!J.V)return"blkeac3";if(y.PX==="M"||y.PX==="m")return"blkaac51"; if((y.PX==="so"||y.PX==="sa")&&!J.zK)return"blkamb";if(!J.yl&&BDH(y)&&(!v.V||y.PX!=="1e"))return"cbc";if(!v.V&&BDH(y)&&y.PX==="1e")return"cbcav1";if((y.PX==="i"||y.PX==="I")&&!J.f8)return"blkiamf";var A;if(J.J9&&((A=y.audio)==null?void 0:A.T)===!0)return"blkvbcabr";var T,M;if(J.Vk&&(y.PX==="1"||y.PX==="1h"||v.V&&y.PX==="1e")&&((T=y.video)==null?0:T.qualityOrdinal)&&((M=y.video)==null?void 0:M.qualityOrdinal)>J.Vk)return"av1cap";d=v.W.get(y.PX);if(!J.aG&&d&&d.kK>0)return P.add(y.PX),"byerr";var n; if((n=y.video)==null?0:n.fps>32){if(!v.wj&&!Us(v,fC.FRAMERATE))return"capHfr";if(J.ZB&&y.video.qualityOrdinal>=4320)return"blk8khfr";if(Bz(y)&&J.DO&&y.E8&&y.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(J.FW&&y.FW>J.FW)return"ratecap";J=Baj(v,y);return J!==!0?J:!0}; hx=function(J,y){y=y===void 0?[]:y;g.KH(J,function(v,d){var P=d.FW-v.FW;if(!v.OH()||!d.OH())return P;var A=d.video.height*d.video.width-v.video.height*v.video.width;!A&&y&&y.length>0&&(v=y.indexOf(v.PX)+1,d=y.indexOf(d.PX)+1,A=v===0||d===0?d||-1:v-d);A||(A=P);return A})}; g.ik=function(J,y){this[l[11]]=J;this[l[18]]=y===void 0?!1:y;this[l[38]]=this[l[0]]=this[l[26]]=l[3];this[l[8]]={};this[l[37]]=l[3]}; HW=function(J){uk(J);return J[l[38]]}; XK=function(J){return J[l[11]]?J[l[11]][l[59]](l[31]):J[l[26]]===l[31]}; qQH=function(J){uk(J);return g.PL(J[l[8]],function(y){return y!==null})}; N9=function(J){uk(J);var y=decodeURIComponent(J[l[46]](l[63])||l[3])[l[21]](l[57]);return J[l[0]]===l[12]&&y[l[2]]>1&&!!y[1]}; Rz=function(J,y){y=y===void 0?!1:y;uk(J);if(J[l[0]]!==l[12]){var v=J[l[16]]();v[l[30]](l[24],l[6]);return v}var d=J[l[15]]();v=new g.vr(d);var P=J[l[46]](l[47]),A=decodeURIComponent(J[l[46]](l[63])||l[3])[l[21]](l[57]);if(P&&A&&A[l[2]]>1&&A[1])return d=v.C,J=d[l[86]](/^[^.]*/,l[3]),g.Pr(v,(d[l[14]](l[65])===0?l[65]:l[68])+P+l[83]+A[1]+J),v=new g.ik(v[l[43]]()),v[l[30]](l[64],l[6]),v;if(y)return v=J[l[16]](),v[l[30]](l[64],l[6]),v;P=v.C[l[45]](l[4]);v.C[l[45]](l[35])?(g.Pr(v,l[62]),d=v[l[43]]()):v.C[l[45]](l[81])? (g.Pr(v,l[78]),d=v[l[43]]()):(v=OT2(d),pt(v)&&(d=v));v=new g.ik(d);v[l[30]](l[29],l[6]);P&&v[l[30]](l[70],l[77]);return v}; uk=function(J){if(J[l[11]]){if(!(pt(J[l[11]])||J[l[11]][l[59]](l[31])||J[l[11]][l[59]](l[80])||J[l[11]][l[59]](l[88])))throw new g.H1(l[73],J[l[11]]);var y=g.S5(J[l[11]]);J[l[26]]=y.V;J[l[38]]=y.C+(y.J!=null?l[53]+y.J:l[3]);var v=y.T;if(v[l[59]](l[12]))J[l[0]]=l[12],v=v[l[5]](14);else if(v[l[59]](l[25]))J[l[0]]=l[25],v=v[l[5]](13);else if(v[l[59]](l[34])){var d=v[l[14]](l[52],12),P=v[l[14]](l[52],d+1);d>0&&P>0?(J[l[0]]=v[l[5]](0,P),v=v[l[5]](P+1)):(J[l[0]]=v,v=l[3])}else J[l[0]]=v,v=l[3];d=J[l[8]]; J[l[8]]=rLU(v);Object[l[19]](J[l[8]],$gd(y.W.toString()));Object[l[19]](J[l[8]],d);J[l[8]][l[51]]===l[60]&&(delete J[l[8]][l[51]],J[l[0]]+=l[44]);J[l[11]]=l[3];J[l[37]]=l[3];J[l[18]]&&(uk(J),y=J[l[8]][l[42]]||null)&&(y=oM6[0](y),J[l[30]](l[42],y))}}; C4U=function(J){uk(J);var y=J[l[26]]+(J[l[26]]?l[55]:l[67])+J[l[38]]+J[l[0]];if(qQH(J)){var v=[];g.Js(J[l[8]],function(d,P){d!==null&&v[l[9]](P+l[28]+d)}); y+=l[85]+v[l[33]](l[49])}return y}; rLU=function(J){J=J[l[21]](l[52]);var y=0;J[0]||y++;for(var v={};y0?hSv(y,d[l[5]](0,P),d[l[5]](P+1)):d&&(y[d]=l[3])}return y}; hSv=function(J,y,v){if(y===l[58]){var d;(d=v[l[14]](l[28]))>=0?(y=l[50]+v[l[5]](0,d),v=v[l[5]](d+1)):(d=v[l[14]](l[74]))>=0&&(y=l[50]+v[l[5]](0,d),v=v[l[5]](d+3))}J[y]=v}; KC=function(J){var y=g.R(J,I0x)||J[l[66]];J={To:!1,Zy:l[3],Wv:l[3],s:l[3]};if(!y)return J;y=wN(y);J[l[72]]=!0;J[l[56]]=y[l[37]];J[l[48]]=y[l[54]];J[l[84]]=y[l[84]];return J}; zE=function(J,y,v,d,P,A,T,M,n){this.py=J;this.startTime=y;this.duration=v;this.ingestionTime=d;this.sourceURL=P;this.wc=n;this.endTime=y+v;this.C=T||0;this.range=A||null;this.pending=M||!1;this.wc=n||null}; g.ki=function(){this.segments=[];this.C=null;this.T=!0;this.J=""}; pIm=function(J,y){if(y>J.Yj())J.segments=[];else{var v=aC(J.segments,function(d){return d.py>=y},J); v>0&&J.segments.splice(0,v)}}; Es=function(J,y,v,d,P){P=P===void 0?!1:P;this.data=J;this.offset=y;this.size=v;this.type=d;this.C=(this.T=P)?0:8;this.dataOffset=this.offset+this.C}; Qk=function(J){var y=J.data.getUint8(J.offset+J.C);J.C+=1;return y}; Zp=function(J){var y=J.data.getUint16(J.offset+J.C);J.C+=2;return y}; wk=function(J){var y=J.data.getInt32(J.offset+J.C);J.C+=4;return y}; Jk=function(J){var y=J.data.getUint32(J.offset+J.C);J.C+=4;return y}; yU=function(J){var y=J.data;var v=J.offset+J.C;y=y.getUint32(v)*4294967296+y.getUint32(v+4);J.C+=8;return y}; vJ=function(J,y){y=y===void 0?NaN:y;if(isNaN(y))var v=J.size;else for(v=J.C;v1?Math.ceil(P*y):Math.floor(P*y))}J.skip(1);v=Qk(J)<<16|Zp(J);if(v&256){d=v&1;P=v&4;var A=v&512,T=v&1024,M=v&2048;v=Jk(J);d&&J.skip(4);P&&J.skip(4);d=(A?4:0)+(T?4:0)+(M?4:0);for(P=0;P1?Math.ceil(T*y):Math.floor(T*y)),J.skip(d)}}}; s7=function(J){J=new DataView(J.buffer,J.byteOffset,J.byteLength);return(J=g.Mx(J,0,1836476516))?g.nS(J):NaN}; EM3=function(J){var y=g.Mx(J,0,1937011556);if(!y)return null;y=Ys(J,y.dataOffset+8,1635148593)||Ys(J,y.dataOffset+8,1635135537);if(!y)return null;var v=Ys(J,y.dataOffset+78,1936995172),d=Ys(J,y.dataOffset+78,1937126244);if(!d)return null;y=null;if(v)switch(v.skip(4),Qk(v)){default:y=0;break;case 1:y=2;break;case 2:y=1;break;case 3:y=255}var P=v=null,A=null;if(d=Ys(J,d.dataOffset,1886547818)){var T=Ys(J,d.dataOffset,1886546020),M=Ys(J,d.dataOffset,2037673328);if(!M&&(M=Ys(J,d.dataOffset,1836279920), !M))return null;T&&(T.skip(4),v=wk(T)/65536,A=wk(T)/65536,P=wk(T)/65536);J=Ugm(M);J=new DataView(J.buffer,J.byteOffset+8,J.byteLength-8);return new zSm(y,v,A,P,J)}return null}; Ys=function(J,y,v){for(;S7(J,y);){var d=VU(J,y);if(d.type===v)return d;y+=d.size}return null}; g.Mx=function(J,y,v){for(;S7(J,y);){var d=VU(J,y);if(d.type===v)return d;y=LS(d.type)?y+8:y+d.size}return null}; g.tk=function(J){if(J.data.getUint8(J.dataOffset)){var y=J.data;J=J.dataOffset+4;y=y.getUint32(J)*4294967296+y.getUint32(J+4)}else y=J.data.getUint32(J.dataOffset+4);return y}; VU=function(J,y){var v=J.getUint32(y),d=J.getUint32(y+4);return new Es(J,y,v,d)}; g.nS=function(J){var y=J.data.getUint8(J.dataOffset)?20:12;return J.data.getUint32(J.dataOffset+y)}; QbU=function(J){J=new Es(J.data,J.offset,J.size,J.type,J.T);var y=Qk(J);J.skip(7);var v=Jk(J);if(y===0){y=Jk(J);var d=Jk(J)}else y=yU(J),d=yU(J);J.skip(2);for(var P=Zp(J),A=[],T=[],M=0;M122)return!1}return!0}; LS=function(J){return J===1701082227||J===1836019558||J===1836019574||J===1835297121||J===1835626086||J===1937007212||J===1953653094||J===1953653099||J===1836475768}; Z4R=function(J){J.skip(4);return{bjj:vJ(J,0),value:vJ(J,0),timescale:Jk(J),p7B:Jk(J),PXk:Jk(J),id:Jk(J),Es:vJ(J),offset:J.offset}}; g.wIv=function(J){var y=Ys(J,0,1701671783);if(!y)return null;var v=Z4R(y),d=v.bjj;v=lb(v.Es);if(J=Ys(J,y.offset+y.size,1701671783))if(J=Z4R(J),J=lb(J.Es),v&&J){y=g.D(Object.keys(J));for(var P=y.next();!P.done;P=y.next())P=P.value,v[P]=J[P]}return v?new Tg(v,d):null}; WJ=function(J,y){for(var v=Ys(J,0,y);v;){var d=v;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);v=Ys(J,v.offset+v.size,y)}}; g.au=function(J,y){for(var v=0,d=[];S7(J,v);){var P=VU(J,v);P.type===y&&d.push(P);v=LS(P.type)?v+8:v+P.size}return d}; JTR=function(J,y){var v=g.Mx(J,0,1937011556),d=g.Mx(J,0,1953654136);if(!v||!d||J.getUint32(v.offset+12)>=2)return null;var P=new DataView(y.buffer,y.byteOffset,y.length),A=g.Mx(P,0,1937011556);if(!A)return null;y=P.getUint32(A.dataOffset+8);d=P.getUint32(A.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new f03(J.byteLength+y);dy(d,J,0,v.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;dy(d,J,v.offset+16,v.size-16);dy(d,P,P.byteOffset+A.dataOffset+8,y);dy(d,J,v.offset+v.size,J.byteLength- (v.offset+v.size));v=g.D([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(P=v.next();!P.done;P=v.next())P=g.Mx(J,0,P.value),d.data.setUint32(P.offset,P.size+y);J=g.Mx(d.data,0,1953654136);d.data.setUint32(J.offset+16,2);return d.data}; yTm=function(J){var y=g.Mx(J,0,1937011556);if(!y)return null;var v=J.getUint32(y.dataOffset+12);if(v!==1701733217&&v!==1701733238)return null;y=Ys(J,y.offset+24+(v===1701733217?28:78),1936289382);if(!y)return null;v=Ys(J,y.offset+8,1935894637);if(!v||J.getUint32(v.offset+12)!==1667392371)return null;y=Ys(J,y.offset+8,1935894633);if(!y)return null;y=Ys(J,y.offset+8,1952804451);if(!y)return null;v=new Uint8Array(16);for(var d=0;d<16;d++)v[d]=J.getInt8(y.offset+16+d);return v}; xs=function(J,y){this.C=J;this.pos=0;this.start=y||0}; O7=function(J){return J.pos>=J.C.byteLength}; bb=function(J,y,v){var d=new xs(v);if(!gy(d,J))return!1;d=DI(d);if(!cJ(d,y))return!1;for(J=0;y;)y>>>=8,J++;y=d.start+d.pos;var P=Gg(d,!0);d=J+(d.start+d.pos-y)+P;d=d>9?v6T(d-9,8):v6T(d-2,1);J=y-J;v.setUint8(J++,236);for(y=0;yv;P++)v=v*256+BJ(J),d*=128;return y?v-d:v}; j7=function(J){var y=Gg(J,!0);J.pos+=y}; ATP=function(J){if(!cJ(J,440786851,!0))return null;var y=J.pos;Gg(J,!1);var v=Gg(J,!0)+J.pos-y;J.pos=y+v;if(!cJ(J,408125543,!1))return null;Gg(J,!0);if(!cJ(J,357149030,!0))return null;var d=J.pos;Gg(J,!1);var P=Gg(J,!0)+J.pos-d;J.pos=d+P;if(!cJ(J,374648427,!0))return null;var A=J.pos;Gg(J,!1);var T=Gg(J,!0)+J.pos-A,M=new Uint8Array(v+12+P+T),n=new DataView(M.buffer);M.set(new Uint8Array(J.C.buffer,J.C.byteOffset+y,v));n.setUint32(v,408125543);n.setUint32(v+4,33554431);n.setUint32(v+8,4294967295); M.set(new Uint8Array(J.C.buffer,J.C.byteOffset+d,P),v+12);M.set(new Uint8Array(J.C.buffer,J.C.byteOffset+A,T),v+12+P);return M}; qx=function(J){var y=J.pos;J.pos=0;var v=1E6;gy(J,[408125543,357149030,2807729])&&(v=Ff(J));J.pos=y;return v}; Tfd=function(J,y){var v=J.pos;J.pos=0;if(J.C.getUint8(J.pos)!==160&&!ry(J)||!cJ(J,160))return J.pos=v,NaN;Gg(J,!0);var d=J.pos;if(!cJ(J,161))return J.pos=v,NaN;Gg(J,!0);BJ(J);var P=BJ(J)<<8|BJ(J);J.pos=d;if(!cJ(J,155))return J.pos=v,NaN;d=Ff(J);J.pos=v;return(P+d)*y/1E9}; ry=function(J){if(!l9j(J)||!cJ(J,524531317))return!1;Gg(J,!0);return!0}; l9j=function(J){if(J.dU()){if(!cJ(J,408125543))return!1;Gg(J,!0)}return!0}; gy=function(J,y){for(var v=0;v0){var d=$gd(y.substring(v+1));g.Js(d,function(P,A){this.set(A,P)},J); y=y.substring(0,v)}y=rLU(y);g.Js(y,function(P,A){this.set(A,P)},J)}; n66=function(J){var y=J.YH.S1(),v=[];g.Js(J.C,function(P,A){v.push(A+"="+P)}); if(!v.length)return y;var d=v.join("&");J=qQH(J.YH)?"&":"?";return y+J+d}; ou=function(J,y){var v=new g.ik(y);(y=v.get("req_id"))&&J.set("req_id",y);g.Js(J.C,function(d,P){v["set"](P,null)}); return v}; scH=function(){this.W=this.J=this.C=this.timedOut=this.started=this.V=this.T=0}; CS=function(J){J.V=(0,g.GC)();J.started=0;J.timedOut=0;J.C=0}; hk=function(J,y){var v=J.started+J.C*4;y&&(v+=J.J);v=Math.max(0,v-3);return Math.pow(1.6,v)}; Iu=function(J,y){J[y]||(J[y]=new scH);return J[y]}; pS=function(J){this.K=this.G=this.V=this.J=0;this.B=this.L=!1;this.C=J;this.T=J.clone()}; Yyj=function(J,y,v){if(XK(J.C))return!1;var d=Iu(v,HW(J.C));if(d.timedOut<1&&d.C<1)return!1;d=d.timedOut+d.C;J=U7(J,y);v=Iu(v,HW(J));return v.timedOut+v.C+01?y=y.cA:(v=Iu(v,ib(J,J.g0(y,v),y)),y=Math.max(J.V,v.timedOut)+y.vP*(J.J-J.V)+.25*J.G,y=y>3?1E3*Math.pow(1.6,y-3):0);return y===0?!0:J.K+y<(0,g.GC)()}; Syr=function(J,y,v){J.C.set(y,v);J.T.set(y,v);J.W&&J.W.set(y,v)}; VAT=function(J,y,v,d,P){++J.J;y&&++J.V;HW(v.YH).startsWith("redirector.")&&(J.C=J.T.clone(),delete J.W,d.Xa&&delete P[HW(J.C)])}; HJ=function(J){return J?(J.itag||"")+";"+(J.lmt||0)+";"+(J.xtags||""):""}; Xf=function(J,y,v,d){this.initRange=v;this.indexRange=d;this.C=null;this.J=!1;this.L=0;this.W=this.dZ=this.T=null;this.info=y;this.q4=new pS(J)}; Nx=function(J,y){this.start=J;this.end=y;this.length=y-J+1}; Ru=function(J){J=J.split("-");var y=Number(J[0]),v=Number(J[1]);if(!isNaN(y)&&!isNaN(v)&&J.length===2&&(J=new Nx(y,v),!isNaN(J.start)&&!isNaN(J.end)&&!isNaN(J.length)&&J.length>0))return J}; KS=function(J,y){return new Nx(J,J+y-1)}; L3R=function(J){return J.end==null?{start:String(J.start)}:{start:String(J.start),end:String(J.end)}}; zg=function(J){if(!J)return new Nx(0,0);var y=Number(J.start);J=Number(J.end);if(!isNaN(y)&&!isNaN(J)&&(y=new Nx(y,J),y.length>0))return y}; ks=function(J,y,v,d,P,A,T,M,n,Y,S,V){d=d===void 0?"":d;this.type=J;this.C=y;this.range=v;this.source=d;this.l1=S;this.clipId=V===void 0?"":V;this.K=[];this.G="";this.py=-1;this.zK=this.Cy=0;this.G=d;this.py=P>=0?P:-1;this.startTime=A||0;this.duration=T||0;this.T=M||0;this.J=n>=0?n:this.range?this.range.length:NaN;this.V=this.range?this.T+this.J===this.range.length:Y===void 0?!!this.J:Y;this.range?(this.W=this.startTime+this.duration*this.T/this.range.length,this.B=this.duration*this.J/this.range.length, this.L=this.W+this.B):tAd(this)}; tAd=function(J){J.W=J.startTime;J.B=J.duration;J.L=J.W+J.B}; W3P=function(J,y,v){var d=!(!y||y.C!==J.C||y.type!==J.type||y.py!==J.py);return v?d&&!!y&&(J.range&&y.range?y.range.end===J.range.end:y.range===J.range)&&y.T+y.J===J.T+J.J:d}; E7=function(J){return J.type===1||J.type===2}; QU=function(J){return J.type===3||J.type===6}; ZI=function(J,y){return J.C===y.C?J.range&&y.range?J.range.start+J.T+J.J===y.range.start+y.T:J.py===y.py?J.T+J.J===y.T:J.py+1===y.py&&y.T===0&&J.V:!1}; xoT=function(J,y){return J.py!==y.py&&y.py!==J.py+1||J.type!==y.type?!1:ZI(J,y)?!0:Math.abs(J.W-y.W)<=1E-6&&J.py===y.py?!1:a9r(J,y)}; a9r=function(J,y){return ZI(J,y)||Math.abs(J.L-y.W)<=1E-6||J.py+1===y.py&&y.T===0&&J.V?!0:!1}; wy=function(J){return J.py+(J.V?1:0)}; Omm=function(J){J.length===1||g.Ob(J,function(v){return!!v.range}); for(var y=1;y=y.range.start+y.T&&J.range.start+J.T+J.J<=y.range.start+y.T+y.J:J.py===y.py&&J.T>=y.T&&(J.T+J.J<=y.T+y.J||y.V)}; jcc=function(J,y){return J.C!==y.C?!1:J.type===4&&y.type===3&&J.C.kR()?(J=J.C.Lk(J),XI(J,function(v){return jcc(v,y)})):J.py===y.py&&!!y.J&&y.T+y.J>J.T&&y.T+y.J<=J.T+J.J}; yp=function(J,y){var v=y.py;J.G="updateWithSegmentInfo";J.py=v;if(J.startTime!==y.startTime||J.duration!==y.duration)J.startTime=y.startTime+J.Cy,J.duration=y.duration,tAd(J)}; vi=function(J,y){var v=this;this.Uk=J;this.W=this.C=null;this.V=this.y_=NaN;this.g0=this.requestId=null;this.b6={Ceb:function(){return v.range}}; this.q4=J[0].C.q4;this.T=y||"";this.Uk[0].range&&this.Uk[0].J>0&&(g6x(J)?(this.range=Omm(J),this.J=this.range.length):(this.range=this.Uk[this.Uk.length-1].range,this.J=Dom(J)))}; dn=function(J){return!E7(J.Uk[J.Uk.length-1])}; Pi=function(J){return J.Uk[J.Uk.length-1].type===4}; g.AA=function(J,y,v){v=J.g0===null?J.q4.g0(y,v,J.Uk[0].type):J.g0;if(J.C){y=v?Rz(J.C,y.b8):J.C;var d=new $s(y);d.get("alr")||d.set("alr","yes");J.T&&MA3(d,J.T)}else/http[s]?:\/\//.test(J.T)?d=new $s(new g.ik(J.T)):(d=fS(J.q4,v,y),J.T&&MA3(d,J.T));(y=J.range)?d.set("range",y.toString()):J.Uk[0].C.zH()&&J.Uk.length===1&&J.Uk[0].T&&d.set("range",J.Uk[0].T+"-");J.requestId&&d.set("req_id",J.requestId);isNaN(J.y_)||d.set("headm",J.y_.toString());isNaN(J.V)||d.set("mffa",J.V+"ms");J.urlParams&&g.Js(J.urlParams, function(P,A){d.set(A,P)}); return d}; eQH=function(J){if(J.range)return J.J;J=J.Uk[0];return Math.round(J.B*J.C.info.FW)}; mod=function(J,y){return Math.max(0,J.Uk[0].W-y)}; TB=function(J,y,v,d,P,A){A=A===void 0?0:A;Xf.call(this,J,y,d,void 0);this.V=v;this.CN=A;this.index=P||new g.ki}; Bfm=function(J,y,v,d,P){this.py=J;this.startSecs=y;this.WF=v;this.C=d||NaN;this.T=P||NaN}; ll=function(J,y,v){for(;J;J=J.parentNode)if(J.attributes&&(!v||J.nodeName===v)){var d=J.getAttribute(y);if(d)return d}return""}; Ms=function(J,y){for(;J;J=J.parentNode){var v=J.getElementsByTagName(y);if(v.length>0)return v[0]}return null}; qyH=function(J){if(!J)return 0;var y=J.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return y?(Number(y[2])|0)*3600+(Number(y[4])|0)*60+(Number(y[6])|0):Number(J)|0}; rTH=function(J){return J.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?J+"Z":J}; nL=function(){this.C=[];this.T=null;this.L=0;this.J=[];this.V=!1;this.G="";this.W=-1}; $o3=function(J){var y=J.J;J.J=[];return y}; o6U=function(){this.W=[];this.C=null;this.T={};this.J={}}; pz6=function(J,y){var v=[];y=Array.from(y.getElementsByTagName("SegmentTimeline"));y=g.D(y);for(var d=y.next();!d.done;d=y.next()){d=d.value;var P=d.parentNode.parentNode,A=null;P.nodeName==="Period"?A=CUm(J):P.nodeName==="AdaptationSet"?(P=P.getAttribute("id")||P.getAttribute("mimetype")||"",A=hQR(J,P)):P.nodeName==="Representation"&&(P=P.getAttribute("id")||"",A=I9m(J,P));if(A==null)return;A.update(d);g.hO(v,$o3(A))}g.hO(J.W,v);e3r(J.W,function(T){return T.startSecs*1E3+T.C})}; Uoj=function(J){J.C&&(J.C.C=[]);g.Js(J.T,function(y){y.C=[]}); g.Js(J.J,function(y){y.C=[]})}; CUm=function(J){J.C||(J.C=new nL);return J.C}; hQR=function(J,y){J.T[y]||(J.T[y]=new nL);return J.T[y]}; I9m=function(J,y){J.J[y]||(J.J[y]=new nL);return J.J[y]}; Y$=function(J){var y=J===void 0?{}:J;J=y.CN===void 0?0:y.CN;var v=y.Mc===void 0?!1:y.Mc;var d=y.hH===void 0?0:y.hH;var P=y.oz===void 0?0:y.oz;var A=y.W_===void 0?Infinity:y.W_;var T=y.BN===void 0?0:y.BN;var M=y.L0===void 0?!1:y.L0;y=y.YS===void 0?!1:y.YS;g.ki.call(this);this.Xv=this.uQ=-1;this.tA=J;this.hH=d;this.Mc=v;this.oz=P;this.W_=A;this.BN=T;((this.L0=M)||isFinite(A)&&this.W_>0)&&v&&sG&&(this.T=!1,this.J="postLive");this.YS=y}; SR=function(J,y){return X_(J.segments,function(v){return y-v.py})}; Vp=function(J,y,v){v=v===void 0?{}:v;TB.call(this,J,y,"",void 0,void 0,v.CN||0);this.index=new Y$(v)}; LL=function(J,y,v){Xf.call(this,J,y);this.V=v;J=this.index=new g.ki;J.T=!1;J.J="d"}; f9c=function(J,y,v){var d=J.index.IS(y),P=J.index.getStartTime(y),A=J.index.getDuration(y);v?A=v=0:v=J.info.FW*A;return new vi([new ks(3,J,void 0,"otfCreateRequestInfoForSegment",y,P,A,0,v)],d)}; imr=function(J,y){if(!J.index.isLoaded()){var v=[],d=y.W;y=y.V.split(",").filter(function(S){return S.length>0}); for(var P=0,A=0,T=0,M=/^(\d+)/,n=/r=(\d+)/,Y=0;Y0&&(P.C=Math.min(P.C+T,10),P.T=A);P.C>0?(P.C--,P=!0):P=!1;if(P)typeof d==="function"&&(d=d()),console.log("plyr."+y,d);else{var M;d=((M=K3x.get(y))!=null?M:0)+1;K3x.set(y,d);d%100===1&&console.warn("plyr","plyr."+y+" is chatty, dropping logs.")}}}; RQx=function(){this.C=10;this.T=Date.now()}; aU=function(J,y){this.info=J;this.T=y;this.C=null;this.W=this.J=-1;this.timestampOffset=0;this.isLocked=this.L=!1;this.V=this.info.C.VF()&&!this.info.T}; g.x$=function(J){return UDm(J.T)}; zQT=function(J,y){y=Math.min(y,J.info.J);var v=J.T.split(y),d=v.Jx;v=new aU(new ks(J.info.type,J.info.C,J.info.range,J.info.G,J.info.py,J.info.startTime,J.info.duration,J.info.T,y,!1,J.info.l1,J.info.clipId),v.h2);v.W=J.W;v.J=J.J;y=new aU(new ks(J.info.type,J.info.C,J.info.range,J.info.G,J.info.py,J.info.startTime,J.info.duration,J.info.T+y,J.info.J-y,J.info.V,J.info.l1,J.info.clipId),d);y.W=J.W;y.J=J.J;return[v,y]}; g.OG=function(J,y,v,d){v=v===void 0?!1:v;d=d===void 0?0:d;if(J.isLocked||y.isLocked||!ZI(J.info,y.info)||J.info.V)return null;if(d){if(J.T.totalLength+y.T.totalLength>d)return null}else if(v&&(v=J.T,d=y.T,v=!(d.C.length?I6P(v,d.C[0]):1)),v)return null;v=new ks(J.info.type,J.info.C,J.info.range,J.info.G,J.info.py,J.info.startTime,J.info.duration,J.info.T,J.info.J,J.info.V,J.info.l1,J.info.clipId);d=y.info;v.J+=d.J;v.range&&(v.B+=d.B);v.L=d.L;v.V=d.V;d=new yA;v9(d,J.T);v9(d,y.T);v=new aU(v,d);v.C!= null&&y.C!=null&&(new g.tA("dash")).C(414627957,"merged slice emsg overridden; prev: "+v.C.Fy()+" next: "+y.C.Fy());v.C=y.C||J.C;v.J=J.J!==-1?J.J:y.J;v.W=J.W!==-1?J.W:y.W;return v}; g.gn=function(J){g.hT(J.info.C.info)||J.info.C.info.Tg();if(J.J!==-1)return J.J;if(J.C&&H43(J.C))return J.J=H43(J.C),J.J;if(g.hT(J.info.C.info)){var y=g.x$(J);for(var v=J.info.C.C,d=NaN,P=NaN,A=0;S7(y,A);){var T=VU(y,A);T.type===1936286840?P=T.data.getUint32(T.dataOffset+8):T.type===1836476516?P=g.nS(T):T.type===1952867444&&isNaN(d)&&(d=g.tk(T));A=LS(T.type)?A+8:A+T.size}!P&&v&&(P=s7(v));y=d/P}else y=new xs(g.x$(J)),v=J.V?y:new xs(new DataView(J.info.C.C.buffer)),d=qx(v),v=y.pos,y.pos=0,ry(y)?cJ(y, 231)?(d=Ff(y)*d/1E9,y.pos=v,y=d):(y.pos=v,y=NaN):(y.pos=v,y=NaN);J.J=y||J.info.W;return J.J}; E6c=function(J,y){J.timestampOffset>0&&(y-=J.timestampOffset);var v=g.gn(J)+y;ktx(J,v);J.timestampOffset=y}; ktx=function(J,y){g.hT(J.info.C.info)||J.info.C.info.Tg();J.J=y;if(g.hT(J.info.C.info)){var v=g.x$(J);J=J.info.C.C;for(var d=NaN,P=NaN,A=0;S7(v,A);){var T=VU(v,A);isNaN(d)&&(T.type===1936286840?d=T.data.getUint32(T.dataOffset+8):T.type===1836476516&&(d=g.nS(T)));if(T.type===1952867444){!d&&J&&(d=s7(J));var M=g.tk(T);isNaN(P)&&(P=Math.round(y*d)-M);var n=T;M+=P;if(n.data.getUint8(n.dataOffset)){var Y=n.data;n=n.dataOffset+4;Y.setUint32(n,Math.floor(M/4294967296));Y.setUint32(n+4,M&4294967295)}else n.data.setUint32(n.dataOffset+ 4,M)}A=LS(T.type)?A+8:A+T.size}return!0}v=new xs(g.x$(J));J=J.V?v:new xs(new DataView(J.info.C.C.buffer));d=qx(J);J=v.pos;v.pos=0;if(ry(v)&&cJ(v,231))if(P=Gg(v,!0),y=Math.floor(y*1E9/d),Math.ceil(Math.log(y)/Math.log(2)/8)>P)y=!1;else{for(d=P-1;d>=0;d--)v.C.setUint8(v.pos+d,y&255),y>>>=8;v.pos=J;y=!0}else y=!1;return y}; ci=function(J,y){y=y===void 0?!1:y;var v=D2(J);J=y?0:J.info.B;return v||J}; D2=function(J){g.hT(J.info.C.info)||J.info.C.info.Tg();if(J.C&&J.info.type===6)return J.C.CN;if(g.hT(J.info.C.info)){var y=g.x$(J);var v=0;y=g.au(y,1936286840);y=g.D(y);for(var d=y.next();!d.done;d=y.next())d=QbU(d.value),v+=d.Su[0]/d.timescale;v=v||NaN;if(!(v>=0))a:{v=g.x$(J);y=J.info.C.C;for(var P=d=0,A=0;S7(v,d);){var T=VU(v,d);if(T.type===1836476516)P=g.nS(T);else if(T.type===1836019558){!P&&y&&(P=s7(y));if(!P){v=NaN;break a}var M=Ys(T.data,T.dataOffset,1953653094),n=M;M=P;var Y=Ys(n.data,n.dataOffset, 1952868452);n=Ys(n.data,n.dataOffset,1953658222);var S=wk(Y);wk(Y);S&2&&wk(Y);Y=S&8?wk(Y):0;var V=wk(n),L=V&1;S=V&4;var t=V&256,W=V&512,c=V&1024;V&=2048;var b=Jk(n);L&&wk(n);S&&wk(n);for(var B=L=0;B2048?"":y.indexOf("https://")===0?y:""}; mO=function(J,y,v){y.match(M12);return J(y,v).then(function(d){var P=g.lq3(d.xhr);return P?mO(J,P,v):d.xhr})}; $$=function(J,y,v){J=J===void 0?"":J;y=y===void 0?null:y;v=v===void 0?!1:v;g.yK.call(this);var d=this;this.sourceUrl=J;this.isLivePlayback=v;this.Vk=this.duration=0;this.isPremiere=this.L0=this.W=this.isLiveHeadPlayable=this.isLive=this.T=!1;this.W_=this.oz=0;this.isOtf=this.jH=!1;this.WX=(0,g.GC)();this.zK=Infinity;this.C={};this.J=new Map;this.state=this.Mw=0;this.timeline=null;this.isManifestless=!1;this.AY=[];this.L=null;this.If=0;this.V="";this.cX=NaN;this.wj=this.yl=this.timestampOffset=this.G= 0;this.sx=this.cH=NaN;this.L8=0;this.Ek=this.K=!1;this.GK=[];this.ZB={};this.Cy=NaN;this.b6={sBA:function(M){Bi(d,M)}}; var P;this.XW=(P=y)==null?void 0:P.BX("html5_use_network_error_code_enums");nz2=!!y&&y.BX("html5_modern_vp9_mime_type");var A;qs=!((A=y)==null||!A.BX("html5_enable_flush_during_seek"))&&g.uQ();var T;rn=!((T=y)==null||!T.BX("html5_enable_reset_audio_decoder"))&&g.uQ()}; s0r=function(J){return g.PL(J.C,function(y){return!!y.info.video&&y.info.video.qualityOrdinal>=2160})}; FKd=function(J){return g.PL(J.C,function(y){return!!y.info.video&&y.info.video.isHdr()})}; oz=function(J){return g.PL(J.C,function(y){return!!y.info.E8})}; g.YZv=function(J){return g.PL(J.C,function(y){return iU(y.info.mimeType)})}; SZU=function(J){return g.PL(J.C,function(y){return y.info.video?y.info.video.projectionType==="EQUIRECTANGULAR":!1})}; V1x=function(J){return g.PL(J.C,function(y){return y.info.video?y.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; LCU=function(J){return g.PL(J.C,function(y){return y.info.video?y.info.video.projectionType==="MESH":!1})}; t1x=function(J){return g.PL(J.C,function(y){return y.info.video?y.info.video.stereoLayout===1:!1})}; WCv=function(J){return $jP(J.C,function(y){return y.info.video?y.Yd():!0})}; q9=function(J){return g.PL(J.C,function(y){return XK(y.q4.C)})}; Bi=function(J,y){J.C[y.info.id]=y;J.J.set(HJ(g.pm(y.info,J.jH)),y)}; hA=function(J,y,v){v=v===void 0?0:v;var d=J.mimeType||"",P=J.itag;var A=J.xtags;P=P?P.toString():"";A&&(P+=";"+A);A=P;if(fm(d)){var T=J.width||640;P=J.height||360;var M=J.fps,n=J.qualityLabel,Y=J.colorInfo,S=J.projectionType,V;J.stereoLayout&&(V=aqm[J.stereoLayout]);var L=A8x(J)||void 0;if(Y==null?0:Y.primaries)var t=x_d[Y.primaries]||void 0;T=new bU(T,P,M,S,V,void 0,n,L,t);d=oU(d,T,eA[J.itag||""]);qs&&(d+="; enableflushduringseek=true");rn&&(d+="; enableresetaudiodecoder=true")}var W;if(Uy(d)){var c= J.audioSampleRate;V=J.audioTrack;c=new D9(c?+c:void 0,J.audioChannels,J.spatialAudioType,J.isDrc,J.loudnessDb,J.trackAbsoluteLoudnessLkfs,J.audioQuality||"AUDIO_QUALITY_UNKNOWN",J.isVb);V&&(t=V.displayName,P=V.id,V=V.audioIsDefault,t&&(W=new g.eR(t,P||"",!!V)))}var b;J.captionTrack&&(n=J.captionTrack,V=n.displayName,t=n.vssId,P=n.languageCode,M=n.kind,n=n.id,V&&t&&P&&(b=new d_3(V,t,P,M,J.xtags,n)));V=Number(J.bitrate)/8;t=Number(J.contentLength);P=Number(J.lastModified);n=J.drmFamilies;M=J.type;v= v&&t?t/v:0;J=Number(J.approxDurationMs);if(y&&n){var B={};n=g.D(n);for(Y=n.next();!Y.done;Y=n.next())(Y=CL[Y.value])&&(B[Y]=y[Y])}return new m3(A,d,{audio:c,video:T,N4:W,E8:B,FW:V,gz:v,contentLength:t,lastModified:P,captionTrack:b,streamType:M,approxDurationMs:J})}; IU=function(J,y,v){v=v===void 0?0:v;var d=J.type;var P=J.itag;var A=J.xtags;A&&(P=J.itag+";"+A);if(fm(d)){var T=(J.size||"640x360").split("x");T=new bU(+T[0],+T[1],+J.fps,J.projection_type,+J.stereo_layout,void 0,J.quality_label,J.eotf,J.primaries);d=oU(d,T,eA[J.itag]);qs&&(d+="; enableflushduringseek=true");rn&&(d+="; enableresetaudiodecoder=true")}var M;if(Uy(d)){var n=new D9(+J.audio_sample_rate||void 0,+J.audio_channels||0,J.spatial_audio_type,!!J.drc);J.name&&(M=new g.eR(J.name,J.audio_track_id, J.isDefault==="1"))}var Y;J.caption_display_name&&J.caption_vss_id&&J.caption_language_code&&(Y=new d_3(J.caption_display_name,J.caption_vss_id,J.caption_language_code,J.caption_kind,J.xtags,J.caption_id));A=Number(J.bitrate)/8;var S=Number(J.clen),V=Number(J.lmt);v=v&&S?S/v:0;if(y&&J.drm_families){var L={};for(var t=g.D(J.drm_families.split(",")),W=t.next();!W.done;W=t.next())W=W.value,L[W]=y[W]}return new m3(P,d,{audio:n,video:T,N4:M,E8:L,FW:A,gz:v,contentLength:S,lastModified:V,captionTrack:Y, streamType:J.stream_type,approxDurationMs:Number(J.approx_duration_ms)})}; Oej=function(J){return XI(J,function(y){return"FORMAT_STREAM_TYPE_OTF"===y.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; gz3=function(J){return XI(J,function(y){return"FORMAT_STREAM_TYPE_OTF"===y.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; D_U=function(J,y){return J.timeline?IC(J.timeline.W,y):J.AY.length?IC(J.AY,y):[]}; pL=function(J,y,v){y=y===void 0?"":y;v=v===void 0?"":v;J=new g.ik(J,!0);J.set("alr","yes");v&&(v=NHd(decodeURIComponent(v)),J[l[30]](y,encodeURIComponent(v)));return J}; FCj=function(J,y){var v=ll(y,"id");v=v.replace(":",";");var d=ll(y,"mimeType"),P=ll(y,"codecs");d=P?d+'; codecs="'+P+'"':d;P=Number(ll(y,"bandwidth"))/8;var A=Number(Ms(y,"BaseURL").getAttribute(J.V+":contentLength")),T=J.duration&&A?A/J.duration:0;if(fm(d)){var M=Number(ll(y,"width"));var n=Number(ll(y,"height")),Y=Number(ll(y,"frameRate")),S=c8T(ll(y,J.V+":projectionType"));a:switch(ll(y,J.V+":stereoLayout")){case "layout_left_right":var V=1;break a;case "layout_top_bottom":V=2;break a;default:V= 0}M=new bU(M,n,Y,S,V)}if(Uy(d)){var L=Number(ll(y,"audioSamplingRate"));var t=Number(ll(y.getElementsByTagName("AudioChannelConfiguration")[0],"value"));n=GK3(ll(y,J.V+":spatialAudioType"));L=new D9(L,t,n);a:{t=ll(y,"lang")||"und";if(n=Ms(y,"Role"))if(S=ll(n,"value")||"",g.sg(ber,S)){n=t+"."+ber[S];Y=S==="main";J=ll(y,J.V+":langName")||t+" - "+S;t=new g.eR(J,n,Y);break a}t=void 0}}if(y=Ms(y,"ContentProtection"))if(y.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var W={};for(y= y.firstChild;y!=null;y=y.nextSibling)y instanceof Element&&/SystemURL/.test(y.nodeName)&&(J=y.getAttribute("type"),n=y.textContent,J&&n&&(W[J]=n.trim()))}else W=void 0;return new m3(v,d,{audio:L,video:M,N4:t,E8:W,FW:P,gz:T,contentLength:A})}; c8T=function(J){switch(J){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"}}; GK3=function(J){switch(J){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"}}; eFx=function(J,y){y=y===void 0?"":y;J.state=1;J.WX=(0,g.GC)();return Tjd(y||J.sourceUrl).then(function(v){if(!J.tY()){J.Mw=v.status;v=v.responseText;var d=new DOMParser;v=eP(d,o1H(v),"text/xml").getElementsByTagName("MPD")[0];J.zK=qyH(ll(v,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(v.attributes){d=g.D(v.attributes);for(var P=d.next();!P.done;P=d.next())if(P=P.value,P.value==="http://youtube.com/yt/2012/10/10"){d=P.name.split(":")[1];break b}}d=""}J.V=d;J.isLive=J.zK=J.zK}; Bjx=function(J){J.L&&J.L.stop()}; j0R=function(J){var y=J.zK;isFinite(y)&&(UG(J)?J.refresh():(y=Math.max(0,J.WX+y-(0,g.GC)()),J.L||(J.L=new g.Kx(J.refresh,y,J),g.X(J,J.L)),J.L.start(y)))}; qZ3=function(J){J=J.C;for(var y in J){var v=J[y].index;if(v.isLoaded())return v.Yj()+1}return 0}; fL=function(J){return J.yl?J.yl-(J.G||J.timestampOffset):0}; il=function(J){return J.wj?J.wj-(J.G||J.timestampOffset):0}; ul=function(J){if(!isNaN(J.cX))return J.cX;var y=J.C,v;for(v in y){var d=y[v].index;if(d.isLoaded()&&!iU(y[v].info.mimeType)){y=0;for(v=d.PH();v<=d.Yj();v++)y+=d.getDuration(v);y/=d.Pd();y=Math.round(y/.5)*.5;d.Pd()>10&&(J.cX=y);return y}if(J.isLive&&(d=y[v],d.CN))return d.CN}return NaN}; r83=function(J,y){J=CRc(J.C,function(d){return d.index.isLoaded()}); if(!J)return NaN;J=J.index;var v=J.Q_(y);return J.getStartTime(v)===y?y:v=0&&P.segments.splice(A,1)}}}; oz3=function(J){for(var y in J.C)iU(J.C[y].info.mimeType)||pIm(J.C[y].index,Infinity)}; Ns=function(J,y,v){for(var d in J.C){var P=J.C[d].index,A=y,T=v;P.Mc&&(A&&(P.uQ=Math.max(P.uQ,A)),T&&(P.Xv=Math.max(P.Xv||0,T)))}v&&(J.Cy=v/1E3)}; Chv=function(J){J.wj=0;J.yl=0;J.L8=0}; RU=function(J){return J.Ek&&J.isManifestless?J.isLiveHeadPlayable:J.isLive}; oU=function(J,y,v){KL===null&&(KL=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(nz2&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return KL||v!=="9"&&v!=="("?KL||v!=="9h"&&v!=="(h"||(J='video/webm; codecs="vp9.2"'):J='video/webm; codecs="vp9"',J;if(!KL&&!zB||J!=='video/webm; codecs="vp9"'&&J!=='video/webm; codecs="vp9.2"')return J; v="00";var d="08",P="01",A="01",T="01";J==='video/webm; codecs="vp9.2"'&&(v="02",d="10",y.primaries==="bt2020"&&(T=P="09"),y.C==="smpte2084"&&(A="16"),y.C==="arib-std-b67"&&(A="18"));return'video/webm; codecs="'+["vp09",v,"51",d,"01",P,A,T,"00"].join(".")+'"'}; EG=function(J,y,v){J=""+J+(y>49?"p60":y>32?"p48":"");y=Vk()[J];if(y!=null&&y>0)return y;y=k$.get(J);if(y!=null&&y>0)return y;v=v==null?void 0:v.get(J);return v!=null&&v>0?v:8192}; hFH=function(J){this.qx=J;this.ZE=this.QL=this.If=this.V=this.W=this.GK=this.Ek=this.zK=!1;this.G=this.L=0;this.XW=!1;this.Cy=!0;this.ZB=!1;this.Lp=0;this.PP=this.AY=!1;this.Lf=!0;this.WX=this.cX=!1;this.C={};this.aG=this.J9=this.ON=this.disableAv1=this.rj=this.AI=this.YB=this.Ky=this.T=this.B=!1;this.QM=this.qx.X("html5_disable_aac_preference");this.H$=Infinity;this.wj=0;this.L8=this.qx.SH();this.yl=this.qx.experiments.BX("html5_enable_vp9_fairplay");this.iN=this.qx.X("html5_force_av1_for_testing"); this.Vk=g.Zo(this.qx.experiments,"html5_av1_ordinal_cap");this.DO=this.qx.X("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.h_=this.qx.X("html5_account_onesie_format_selection_during_format_filter");this.FW=g.Zo(this.qx.experiments,"html5_max_byterate");this.f8=this.qx.X("html5_enable_iamf_audio");this.xj=this.qx.experiments.BX("html5_allow_capability_merge");this.ES=this.qx.X("html5_enable_encrypted_av1")}; jbm=function(J){if(J.Ek)return["f"];if(g.fX("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var y=["9h","9","h","8"];J.ES&&y.push("1e");y=y.concat(["(h","(","H","*"]);J.AY&&(y.unshift("1"),y.unshift("1h"));J.QL&&y.unshift("h");J.K&&(y=(IqH[J.K]||[J.K]).concat(y));return y}; O4d=function(J){var y=["o","a","A"];J.wj===1&&(J.W&&(y=["mac3","MAC3"].concat(y)),J.V&&(y=["meac3","MEAC3"].concat(y)),J.f8&&(y=["i","I"].concat(y)));J.zK&&(y=["so","sa"].concat(y));!J.ZE||J.If||J.J||J.QM||y.unshift("a");J.J&&(y=(IqH[J.J]||[J.J]).concat(y));return y}; Qp=function(J,y,v,d){y=y===void 0?{}:y;if(d===void 0?0:d)return y.disabled=1,0;if(Us(J.V,fC.AV1_CODECS)&&Us(J.V,fC.HEIGHT)&&Us(J.V,fC.BITRATE))return y.isCapabilityUsable=1,8192;try{var P=yLv();if(P&&!J.X("disable_av1_setting"))return y.localPref=P}catch(M){}d=1080;P=navigator.hardwareConcurrency;P<=2&&(d=480);y.coreCount=P;if(P=g.Zo(J.experiments,"html5_default_av1_threshold"))d=y["default"]=P;!J.X("html5_disable_av1_arm_check")&&a73()&&(y.isArm=1,d=240);if(J=J.V.Cy)y.mcap=J,d=Math.max(d,J);if(v){var A, T;if(J=(A=v.videoInfos.find(function(M){return $6(M)}))==null?void 0:(T=A.T)==null?void 0:T.powerEfficient)d=8192,y.isEfficient=1; v=v.videoInfos[0].video;A=Math.min(EG("1",v.fps),EG("1",30));y.perfCap=A;d=Math.min(d,A);v.isHdr()&&!J&&(y.hdr=1,d*=.75)}else v=EG("1",30),y.perfCap30=v,d=Math.min(d,v),v=EG("1",60),y.perfCap60=v,d=Math.min(d,v);return y.av1Threshold=d}; Z2=function(J,y,v,d){this.flavor=J;this.keySystem=y;this.T=v;this.experiments=d;this.C={};this.Vk=this.keySystemAccess=null;this.NT=this.Zq=-1;this.Qw=null;this.J=!!d&&d.BX("edge_nonprefixed_eme");d&&d.BX("html5_enable_vp9_fairplay")}; JD=function(J){return J.J?!1:!J.keySystemAccess&&!!wn()&&J.keySystem==="com.microsoft.playready"}; yJ=function(J){return J.keySystem==="com.microsoft.playready"}; vl=function(J){return!J.keySystemAccess&&!!wn()&&J.keySystem==="com.apple.fps.1_0"}; d4=function(J){return J.keySystem==="com.youtube.fairplay"}; Pl=function(J){return J.keySystem==="com.youtube.fairplay.sbdl"}; g.AD=function(J){return J.flavor==="fairplay"}; wn=function(){var J=window,y=J.MSMediaKeys;N5()&&!y&&(y=J.WebKitMediaKeys);return y&&y.isTypeSupported?y:null}; ln=function(J){return navigator.requestMediaKeySystemAccess?g.Wz&&!g.uQ()?cB("45"):g.XD||g.YK?J.BX("edge_nonprefixed_eme"):g.T3?cB("47"):g.tW&&J.BX("html5_enable_safari_fairplay")?!1:!0:!1}; pdU=function(J,y,v,d){var P=H0(),A=(v=P||v&&N5())?["com.youtube.fairplay"]:["com.widevine.alpha"];y&&A.unshift("com.youtube.widevine.l3");P&&d&&A.unshift("com.youtube.fairplay.sbdl");return v?A:J?[].concat(g.r(A),g.r(Me.playready)):[].concat(g.r(Me.playready),g.r(A))}; no=function(J,y,v,d,P){d=d===void 0?!1:d;g.u.call(this);this.qx=y;this.useCobaltWidevine=d;this.dj=P;this.T=[];this.J={};this.C={};this.callback=null;this.V=!1;this.W=[];this.initialize(J,!v)}; fqU=function(J,y){J.callback=y;J.W=[];ln(J.qx.experiments)?sC(J):U_R(J)}; sC=function(J){if(!J.tY())if(J.T.length===0)J.callback(J.W);else{var y=J.T[0],v=J.J[y],d=iej(J,v);if(YO&&YO.keySystem===y&&YO.Jrk===JSON.stringify(d))J.dj("remksa",{re:!0}),ug3(J,v,YO.keySystemAccess);else{var P,A;J.dj("remksa",{re:!1,ok:(A=(P=YO)==null?void 0:P.keySystem)!=null?A:""});YO=void 0;navigator.requestMediaKeySystemAccess(y,d).then(U8(function(T){ug3(J,v,T,d)}),U8(function(){J.V=!J.V&&J.J[J.T[0]].flavor==="widevine"; J.V||J.T.shift();sC(J)}))}}}; ug3=function(J,y,v,d){if(!J.tY()){d&&(YO={keySystem:y.keySystem,keySystemAccess:v,Jrk:JSON.stringify(d)});y.keySystemAccess=v;if(yJ(y)){v=Lm();d=g.D(Object.keys(J.C[y.flavor]));for(var P=d.next();!P.done;P=d.next())P=P.value,y.C[P]=!!v.canPlayType(P)}else{v=y.keySystemAccess.getConfiguration();if(v.audioCapabilities)for(d=g.D(v.audioCapabilities),P=d.next();!P.done;P=d.next())y.C[P.value.contentType]=!0;if(v.videoCapabilities)for(v=g.D(v.videoCapabilities),d=v.next();!d.done;d=v.next())y.C[d.value.contentType]= !0}J.W.push(y);J.useCobaltWidevine||J.X("html5_enable_vp9_fairplay")&&Pl(y)?(J.T.shift(),sC(J)):J.callback(J.W)}}; iej=function(J,y){var v={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(J.X("html5_enable_vp9_fairplay")&&d4(y))return v.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),v.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[v];yJ(y)&&(v.initDataTypes=["keyids","cenc"]);for(var d=g.D(Object.keys(J.C[y.flavor])),P=d.next();!P.done;P=d.next()){P=P.value;var A=P.indexOf("audio/")===0,T=A?v.audioCapabilities:v.videoCapabilities;y.flavor!== "widevine"||J.V?T.push({contentType:P}):A?T.push({contentType:P,robustness:"SW_SECURE_CRYPTO"}):(g.Wz&&g.fX("windows nt")&&!J.X("html5_drm_enable_moho")||T.push({contentType:P,robustness:"HW_SECURE_ALL"}),A=P,J.qx.V.J&&P.includes("vp09")&&(A=P+"; experimental=allowed"),T.push({contentType:A,robustness:"SW_SECURE_DECODE"}),SD(J.qx)==="MWEB"&&(Q2()||iQ())&&(J.dj("swcrypto",{}),T.push({contentType:P,robustness:"SW_SECURE_CRYPTO"})))}return[v]}; U_R=function(J){if(wn()&&(g.tW||KX))J.W.push(new Z2("fairplay","com.apple.fps.1_0","",J.qx.experiments));else{var y=Hex(),v=g.On(J.T,function(d){var P=J.J[d],A=!1,T=!1,M;for(M in J.C[P.flavor])y(M,d)&&(P.C[M]=!0,A=A||M.indexOf("audio/")===0,T=T||M.indexOf("video/")===0);return A&&T}); v&&J.W.push(J.J[v]);J.T=[]}J.callback(J.W)}; Hex=function(){var J=wn();if(J){var y=J.isTypeSupported;return function(d,P){return y(P,d)}}var v=Lm(); return v&&(v.addKey||v.webkitAddKey)?function(d,P){return!!v.canPlayType(d,P)}:function(){return!1}}; Xdm=function(J){this.experiments=J;this.C=2048;this.W=0;this.Cy=(this.G=this.X("html5_streaming_resilience"))?.5:.25;var y=y===void 0?0:y;this.J=g.Zo(this.experiments,"html5_media_time_weight_prop")||y;this.zK=g.Zo(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.K=(this.V=this.experiments.BX("html5_consider_end_stall"))&&VJ;this.T=this.experiments.BX("html5_measure_max_progress_handling");this.B=this.X("html5_treat_requests_pre_elbow_as_metadata");this.L=this.X("html5_media_time_weight")|| !!this.J;this.X("html5_sabr_live_audio_early_return_fix")&&VJ&&(this.C=65536)}; Nj3=function(J,y){this.C=void 0;this.experimentIds=J?J.split(","):[];this.flags=Q4(y||"","&");J={};y=g.D(this.experimentIds);for(var v=y.next();!v.done;v=y.next())J[v.value]=!0;this.experiments=J}; g.Zo=function(J,y){J=J.flags[y];JSON.stringify(J);return Number(J)||0}; Lo=function(J,y){return(J=J.flags[y])?J.toString():""}; RF3=function(J){if(J=J.flags.html5_web_po_experiment_ids)if(J=J.replace(/\[ *(.*?) *\]/,"$1"))return J.split(",").map(Number);return[]}; KCv=function(J){if(J.C)return J.C;if(J.experimentIds.length<=1)return J.C=J.experimentIds,J.C;var y=[].concat(g.r(J.experimentIds)).map(function(d){return Number(d)}); y.sort();for(var v=y.length-1;v>0;--v)y[v]-=y[v-1];J.C=y.map(function(d){return d.toString()}); J.C.unshift("v1");return J.C}; kKR=function(J){return zFc.then(J)}; tD=function(J,y,v){this.experiments=J;this.wj=y;this.If=v===void 0?!1:v;this.K=!!g.vq("cast.receiver.platform.canDisplayType");this.B={};this.zK=!1;this.W=new Map;this.G=!0;this.T=this.J=!1;this.C=new Map;this.Cy=0;this.AY=this.experiments.BX("html5_disable_vp9_encrypted");this.V=this.experiments.BX("html5_enable_encrypted_av1");J=g.vq("cast.receiver.platform.getValue");this.L=!this.K&&J&&J("max-video-resolution-vpx")||null;Ezc(this);this.J=!!(H0()&&UL()>=21)}; Baj=function(J,y,v){v=v===void 0?1:v;var d=y.itag;if(d==="0")return!0;var P=y.mimeType;if(y.PX==="1e"&&!J.V)return"dav1enc";if($6(y)&&J.zK)return"dav1";if(y.video&&(y.video.isHdr()||y.video.primaries==="bt2020")&&!(Us(J,fC.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(d==="338"&&!(g.Wz?cB(53):g.T3&&cB(64)))return"dopus";var A=v;A=A===void 0?1: A;v={};y.video&&(y.video.width&&(v[fC.WIDTH.name]=y.video.width),y.video.height&&(v[fC.HEIGHT.name]=y.video.height),y.video.fps&&(v[fC.FRAMERATE.name]=y.video.fps*A),y.video.C&&(v[fC.EOTF.name]=y.video.C),y.FW&&(v[fC.BITRATE.name]=y.FW*8*A),y.PX==="("&&(v[fC.CRYPTOBLOCKFORMAT.name]="subsample"),y.video.projectionType==="EQUIRECTANGULAR"||y.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||y.video.projectionType==="MESH")&&(v[fC.DECODETOTEXTURE.name]="true");y.audio&&y.audio.numChannels&& (v[fC.CHANNELS.name]=y.audio.numChannels);J.J&&Bz(y)&&(v[fC.EXPERIMENTAL.name]="allowed");A=g.D(Object.keys(fC));for(var T=A.next();!T.done;T=A.next()){T=fC[T.value];var M;if(M=v[T.name])if(M=!(T===fC.EOTF&&y.mimeType.indexOf("vp09.02")>0)){M=T;var n=y;M=!(J.experiments.BX("html5_ignore_h264_framerate_cap")&&M===fC.FRAMERATE&&mK3(n))}if(M)if(Us(J,T))if(J.L){if(J.L[T.name] 1080&&y.E8&&(P+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||J.experiments.BX("html5_enable_new_hvc_enc")?H0()&&UL()>=21&&g.fX("appletv5")&&(d==="410"||d==="845")?!0:J.isTypeSupported(P)?!0:"tpus":"newhvc"}; Wl=function(){var J=iQ()&&!cB(29),y=g.fX("google tv")&&g.fX("chrome")&&!cB(30);return J||y?!1:C73()}; Q0T=function(J,y,v){var d=480;y=g.D(y);for(var P=y.next();!P.done;P=y.next()){P=P.value;var A=P.video.qualityOrdinal;A<=1080&&A>d&&Baj(J,P,v)===!0&&(d=A)}return d}; g.aK=function(J,y){y=y===void 0?!1:y;return Wl()&&J.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!y&&J.canPlayType(Lm(),"application/x-mpegURL")?!0:!1}; wdv=function(J){ZeU(function(){for(var y=g.D(Object.keys(fC)),v=y.next();!v.done;v=y.next())Us(J,fC[v.value])})}; Us=function(J,y){y.name in J.B||(J.B[y.name]=J$x(J,y));return J.B[y.name]}; J$x=function(J,y){if(J.L)return!!J.L[y.name];if(y===fC.BITRATE&&J.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!J.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(y===fC.AV1_CODECS)return J.isTypeSupported("video/mp4; codecs="+y.valid)&&!J.isTypeSupported("video/mp4; codecs="+y.vc);if(y.video){var v='video/webm; codecs="vp9"';J.isTypeSupported(v)||(v='video/mp4; codecs="avc1.4d401e"')}else v='audio/webm; codecs="opus"', J.isTypeSupported(v)||(v='audio/mp4; codecs="mp4a.40.2"');return J.isTypeSupported(v+"; "+y.name+"="+y.valid)&&!J.isTypeSupported(v+"; "+y.name+"="+y.vc)}; y$H=function(J,y){var v=0;J.W.has(y)&&(v=J.W.get(y).jj);J.W.set(y,{jj:v+1,kK:Math.pow(2,v+1)});J.T=!0}; CC=function(J){for(var y=[],v=g.D(J.C.keys()),d=v.next();!d.done;d=v.next()){d=d.value;var P=J.C.get(d);y.push(d+"_"+P.maxWidth+"_"+P.maxHeight)}return y.join(".")}; Dgd=function(J,y){for(var v=new Map,d=g.D(J.C.keys()),P=d.next();!P.done;P=d.next()){P=P.value;var A=P.split("_")[0];y.has(A)||v.set(P,J.C.get(P))}J.C=v}; Gfx=function(J,y,v){var d,P=((d=v.video)==null?void 0:d.fps)||0;d=y+"_"+P;var A=!!v.audio,T={itag:v.itag,PX:y,yQ:A};if(A)T.numChannels=v.audio.numChannels;else{var M=v.video;T.maxWidth=M==null?void 0:M.width;T.maxHeight=M==null?void 0:M.height;T.maxFramerate=P;Us(J,fC.BITRATE)&&(T.maxBitrateBps=v.FW*8);T.d8=M==null?void 0:M.isHdr()}M=J.C.get(d);M?A||(v=Math.max(M.maxWidth||0,M.maxHeight||0)>Math.max(T.maxWidth||0,T.maxHeight||0)?M:T,y={itag:v.itag,PX:y,yQ:A,maxWidth:Math.max(M.maxWidth||0,T.maxWidth|| 0),maxHeight:Math.max(M.maxHeight||0,T.maxHeight||0),maxFramerate:P,d8:v.d8},Us(J,fC.BITRATE)&&(y.maxBitrateBps=v.maxBitrateBps),J.C.set(d,y)):J.C.set(d,T)}; b43=function(J,y,v){var d,P=((d=v.video)==null?void 0:d.fps)||0;d=y+"_"+P;var A=!!v.audio,T=J.C.get(d);a:{var M=J.C.get(d),n=!!v.audio;if(M){if(n){var Y=!1;break a}var S;if(!n&&((Y=v.video)==null?0:Y.height)&&M.maxHeight&&M.maxHeight>=((S=v.video)==null?void 0:S.height)){Y=!1;break a}}Y=!0}Y&&(Y=v.itag,y=T?T:{itag:Y,PX:y,yQ:A},A?y.numChannels=v.audio.numChannels:(A=v.video,y.maxWidth=A==null?void 0:A.width,y.maxHeight=A==null?void 0:A.height,y.maxFramerate=P,Us(J,fC.BITRATE)&&(y.maxBitrateBps=v.FW* 8),y.d8=A==null?void 0:A.isHdr()),J.C.set(d,y))}; Ezc=function(J){var y;(y=navigator.mediaCapabilities)!=null&&y.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(v){v.smooth&&v.powerEfficient&&(J.Cy=2160)})}; xO=function(){g.yK.call(this);this.items={}}; vGx=function(J,y,v){this.encryptedClientKey=y;this.V=v;this.C=new Uint8Array(J.buffer,0,16);this.T=new Uint8Array(J.buffer,16)}; dIR=function(J){J.J||(J.J=new g.ME(J.C));return J.J}; OC=function(J){try{return Bf(J)}catch(y){return null}}; Pv3=function(J,y){if(!y&&J)try{y=JSON.parse(J)}catch(P){}if(y){J=y.clientKey?OC(y.clientKey):null;var v=y.encryptedClientKey?OC(y.encryptedClientKey):null,d=y.keyExpiresInSeconds?Number(y.keyExpiresInSeconds)*1E3+(0,g.GC)():null;J&&v&&d&&(this.C=new vGx(J,v,d));y.onesieUstreamerConfig&&(this.onesieUstreamerConfig=OC(y.onesieUstreamerConfig)||void 0);this.baseUrl=y.baseUrl}}; DK=function(){this.data=new Uint8Array(2048);this.pos=0;g4||(g4=tV("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; cl=function(J,y){J.add(y==null||isNaN(y)?0:y+1)}; G3=function(J){this.C=this.T=0;this.alpha=Math.exp(Math.log(.5)/J)}; bn=function(J){this.T=J===void 0?15:J;this.values=new Float64Array(176);this.C=new Float64Array(11);this.J=new Float64Array(16)}; FA=function(J,y,v,d){v=v===void 0?.5:v;d=d===void 0?0:d;this.resolution=y;this.T=0;this.J=!1;this.Mj=!0;this.C=Math.round(J*this.resolution);this.values=Array(this.C);for(J=0;J0)y=J.byterate,this.zK=!0;else{var d; v=(((d=navigator.connection)==null?void 0:d.downlink)||0)*64*1024;v>0&&(y=v,this.zK=!0)}this.J.B_(this.policy.L,y);J.delay>0&&this.B.B_(1,Math.min(J.delay,2));J.stall>0&&this.G.B_(1,J.stall);J.init>0&&(this.WX=Math.min(J.init,this.WX));J.interruptions&&(this.W=this.W.concat(J.interruptions),this.W.length>16&&this.W.pop());this.Cy=(0,g.GC)();this.policy.G>0&&(this.Ek=new g.Kx(this.GK,this.policy.G,this),g.X(this,this.Ek),this.Ek.start())}; eD=function(J,y,v,d){J.J.B_(d===void 0?y:d,v/y);J.L=(0,g.GC)()}; Tcc=function(J){J.V||(J.V=(0,g.GC)());J.policy.K&&(J.L=(0,g.GC)())}; lW3=function(J,y){if(J.V){var v=y-J.V;if(v<6E4){if(v>1E3){var d=J.interruptions;d.push(Math.ceil(v));d.sort(function(P,A){return A-P}); d.length>16&&d.pop()}J.wj+=v}}J.V=y}; ml=function(J,y,v,d,P,A){A=A===void 0?!1:A;J.cX.B_(y,v/y);J.L=(0,g.GC)();P||J.K.B_(1,y-d);A||(J.V=0);J.Cy>-1&&(0,g.GC)()-J.Cy>3E4&&Mo3(J)}; Bl=function(J,y,v){y=Math.max(y,J.T.C);J.G.B_(1,v/y)}; qe=function(J){J=J.B.Po()+J.If.Po()||0;J=isNaN(J)?.5:J;return J=Math.min(J,5)}; r4=function(J,y,v){isNaN(v)||(J.AY+=v);isNaN(y)||(J.Vk+=y)}; $O=function(J){J=J.J.Po();return J>0?J:1}; oK=function(J,y,v){y=y===void 0?!1:y;v=v===void 0?1048576:v;var d=$O(J);d=1/((J.G.Po()||0)*J.policy.zK+1/d);var P=J.cX.Po();P=P>0?P:1;var A=Math.max(d,P);J.policy.V>0&&P=4E3}; sqx=function(J){this.experiments=J;this.C=17;this.J=13E4;this.L=.5;this.W=this.T=!1;this.Cy=this.X("html5_use_histogram_for_bandwidth");this.V=g.Zo(this.experiments,"html5_auxiliary_estimate_weight");this.zK=g.Zo(this.experiments,"html5_stall_factor")||1;this.G=g.Zo(this.experiments,"html5_check_for_idle_network_interval_ms");this.B=this.experiments.BX("html5_trigger_loader_when_idle_network");this.K=this.experiments.BX("html5_sabr_fetch_on_idle_network_preloaded_players")}; SoT=function(J,y){J=J===void 0?{}:J;y=y===void 0?{}:y;g.u.call(this);var v=this;this.values=J;this.B9=y;this.T={};this.J=this.C=0;this.W=new g.Kx(function(){Yod(v)},1E4); g.X(this,this.W)}; hD=function(J,y){VoT(J,y);return J.values[y]&&J.B9[y]?J.values[y]/Math.pow(2,J.C/J.B9[y]):0}; VoT=function(J,y){J.values[y]||(y=Qwj(),J.values=y.values||{},J.B9=y.halfLives||{},J.T=y.values?Object.assign({},y.values):{})}; Yod=function(J){var y=Qwj();if(y.values){y=y.values;for(var v={},d=g.D(Object.keys(J.values)),P=d.next();!P.done;P=d.next())P=P.value,y[P]&&J.T[P]&&(J.values[P]+=y[P]-J.T[P]),v[P]=hD(J,P);J.T=v}y=J.B9;v={};v.values=J.T;v.halfLives=y;g.B1("yt-player-memory",v,2592E3)}; vT=function(J,y,v,d,P){g.u.call(this);this.webPlayerContextConfig=y;this.jf=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.jc=this.J9=this.iN=this.gr=this.userDisplayName=this.userDisplayImage=this.Ny="";this.C={};this.f8={};this.controlsType="0";this.Lf=NaN;this.Ky=!1;this.VE=(0,g.GC)();this.yl=0;this.oi=this.xf=!1;this.ox=!0;this.preferGapless=this.pE=this.Lj=this.J=this.SC=!1;this.H5=[];this.M1=!1;this.cH=0;J=J?g.WL(J):{};y&&y.csiPageType&&(this.csiPageType=y.csiPageType);y&&y.csiServiceName&& (this.csiServiceName=y.csiServiceName);y&&y.preferGapless&&(this.preferGapless=y.preferGapless);this.experiments=new Nj3(y?y.serializedExperimentIds:J.fexp,y?y.serializedExperimentFlags:J.fflags);this.forcedExperiments=y?y.serializedForcedExperimentIds:d3("",J.forced_experiments)||void 0;this.cspNonce=(y==null?0:y.cspNonce)?y.cspNonce:d3("",J.csp_nonce);this.X("web_player_deprecated_uvr_killswitch");try{var A=document.location.toString()}catch(T2){A=""}this.EH=A;this.ancestorOrigins=(d=window.location.ancestorOrigins)? Array.from(d):[];this.W=JX(!1,y?y.isEmbed:J.is_embed);if(y&&y.device){if(d=y.device,d.androidOsExperience&&(this.C.caoe=""+d.androidOsExperience),d.androidPlayServicesVersion&&(this.C.capsv=""+d.androidPlayServicesVersion),d.brand&&(this.C.cbrand=d.brand),d.browser&&(this.C.cbr=d.browser),d.browserVersion&&(this.C.cbrver=d.browserVersion),d.cobaltReleaseVehicle&&(this.C.ccrv=""+d.cobaltReleaseVehicle),this.C.c=d.interfaceName||"WEB",this.C.cver=d.interfaceVersion||"html5",d.interfaceTheme&&(this.C.ctheme= d.interfaceTheme),this.C.cplayer=d.interfacePlayerType||"UNIPLAYER",d.model&&(this.C.cmodel=d.model),d.network&&(this.C.cnetwork=d.network),d.os&&(this.C.cos=d.os),d.osVersion&&(this.C.cosver=d.osVersion),d.platform&&(this.C.cplatform=d.platform),A=Lo(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),A==="all"||A==="once")d.chipset&&(this.f8.cchip=d.chipset),d.cobaltAppVersion&&(this.f8.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.f8.cfrmver=d.firmwareVersion),d.deviceYear&&(this.f8.crqyear= d.deviceYear)}else this.C.c=J.c||"web",this.C.cver=J.cver||"html5",this.C.cplayer="UNIPLAYER";this.loaderUrl=y?this.W||L12(this)&&y.loaderUrl?y.loaderUrl||"":this.EH:this.W||L12(this)&&J.loaderUrl?d3("",J.loaderUrl):this.EH;this.W&&g.yq("yt.embedded_player.embed_url",this.loaderUrl);this.B=Iw(this.loaderUrl,toP);d=this.loaderUrl;var T=T===void 0?!1:T;this.P7=hv(Iw(d,W1c),d,T,"Trusted Ad Domain URL");this.ON=JX(!1,J.privembed);this.protocol=this.EH.indexOf("http:")===0?"http":"https";this.MF=s5x((y? y.customBaseYoutubeUrl:J.BASE_YT_URL)||"")||s5x(this.EH)||this.protocol+"://www.youtube.com/";T=y?y.eventLabel:J.el;d="detailpage";T==="adunit"?d=this.W?"embedded":"detailpage":T==="embedded"||this.B?d=yn(d,T,aWr):T&&(d="embedded");this.If=d;jGP();T=null;d=y?y.playerStyle:J.ps;A=g.cq(xIP,d);!d||A&&!this.B||(T=d);this.playerStyle=T;this.L=g.cq(xIP,this.playerStyle);this.houseBrandUserStatus=y==null?void 0:y.houseBrandUserStatus;this.Cy=this.L&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; this.Cb=!this.Cy;this.Ek=JX(!1,J.disableplaybackui);this.disablePaidContentOverlay=JX(!1,y==null?void 0:y.disablePaidContentOverlay);this.disableSeek=JX(!1,y==null?void 0:y.disableSeek);this.enableSpeedOptions=(y==null?void 0:y.enableSpeedOptions)||(Lm().defaultPlaybackRate?IK||g.EL||po?g.T3&&cB("20")||g.Wz&&cB("4")||g.UC&&cB("11")||R7():!(g.UC&&!g.fX("chrome")||IK||g.fX("android")||g.fX("silk")):!1);this.vz=JX(!1,J.enable_faster_speeds);var M;this.supportsVarispeedExtendedFeatures=(M=y==null?void 0: y.supportsVarispeedExtendedFeatures)!=null?M:!1;this.T=JX(this.playerStyle==="blazer",J.is_html5_mobile_device||y&&y.isMobileDevice);this.Vk=kU()||Q2();this.OT=this.X("mweb_allow_background_playback")?!1:this.T&&!this.L;this.cX=Oy();this.wS=g.fo;var n;this.s2=!!(y==null?0:(n=y.embedsHostFlags)==null?0:n.optOutApiDeprecation);var Y;this.AQ=!!(y==null?0:(Y=y.embedsHostFlags)==null?0:Y.allowPfpImaIntegration);this.bQ=this.X("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var S;y?y.hideInfo!== void 0&&(S=!y.hideInfo):S=J.showinfo;this.b8=g.un(this)&&!this.s2||JX(!Hl(this)&&!XA(this)&&!this.L,S);this.wf=y?!!y.mobileIphoneSupportsInlinePlayback:JX(!1,J.playsinline);M=this.T&&Ne&&RK!=null&&RK>0&&RK<=2.3;n=y?y.useNativeControls:J.use_native_controls;this.G=g.un(this)&&this.T;Y=this.T&&!this.G;n=g.Ko(this)||!M&&JX(Y,n)?"3":"1";this.disableOrganicUi=!(y==null||!y.disableOrganicUi);Y=y?y.controlsType:J.controls;this.controlsType=this.disableOrganicUi||Y==="0"||Y===0?"0":n;this.sx=this.T;this.color= yn("red",y?y.progressBarColor:J.color,Ozc);this.nF=this.controlsType==="3";this.H$=!this.W;this.k_=(n=!this.H$&&!XA(this)&&!this.Cy&&!this.L&&!Hl(this))&&!this.nF&&this.controlsType==="1";this.xj=g.z3(this)&&n&&this.controlsType==="0"&&!this.k_&&!(y==null?0:y.embedsEnableEmc3ds);this.jS=this.Qe=M;this.ES=(this.controlsType==="3"||this.T||JX(!1,J.use_media_volume))&&!this.G;this.WH=KX&&!g.iX(601)?!1:!0;this.pR=this.W||!1;this.ZE=XA(this)?"":(this.loaderUrl||J.post_message_origin||"").substring(0,128); this.widgetReferrer=d3("",y?y.widgetReferrer:J.widget_referrer);var V;y?y.disableCastApi&&(V=!1):V=J.enablecastapi;V=!this.B||JX(!0,V);M=!0;y&&y.disableMdxCast&&(M=!1);this.Kp=this.X("enable_cast_for_web_unplugged")&&g.kO(this)&&M||g.rm(this)&&M||V&&M&&this.controlsType==="1"&&!this.T&&(XA(this)||g.z3(this)||g.EC(this));this.W9=!!window.document.pictureInPictureEnabled||x6();V=y?!!y.supportsAutoplayOverride:JX(!1,J.autoplayoverride);this.Xg=!(this.T&&!g.un(this))&&!g.fX("nintendo wiiu")||V;this.vK= (y?!!y.enableMutedAutoplay:JX(!1,J.mutedautoplay))&&!1;V=(XA(this)||Hl(this))&&this.playerStyle==="blazer";this.nE=y?!!y.disableFullscreen:!JX(!0,J.fs);M=g.l$(g.QJ(this))&&g.un(this);this.aG=!this.nE&&(V||g.LR())&&!M;this.oL=this.X("html5_picture_in_picture_logging_onresize");var L;this.qj=(L=g.Zo(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?L:.33;this.qc=this.X("html5_picture_in_picture_blocking_onresize");this.Ii=this.X("html5_picture_in_picture_blocking_ontimeupdate"); this.l0=this.X("html5_picture_in_picture_blocking_document_fullscreen");this.QA=this.X("html5_picture_in_picture_blocking_standard_api");L=iQ()&&cB(58)&&!Q2();V=HN||typeof MediaSource==="undefined";this.sY=this.X("uniplayer_block_pip")&&(L||V)||this.qc||this.Ii||this.QA;L=g.un(this)&&!this.s2;var t;y?y.disableRelatedVideos!==void 0&&(t=!y.disableRelatedVideos):t=J.rel;this.h_=L||JX(!this.L,t);this.kz=JX(!1,y?y.enableContentOwnerRelatedVideos:J.co_rel);this.K=Q2()&&RK>0&&RK<=4.4?"_top":"_blank";this.ER= g.EC(this);this.u1=JX(this.playerStyle==="blazer",y?y.enableCsiLogging:J.enablecsi);switch(this.playerStyle){case "blogger":t="bl";break;case "gmail":t="gm";break;case "gac":t="ga";break;case "ads-preview":t="ap";break;case "books":t="gb";break;case "docs":case "flix":t="gd";break;case "duo":t="gu";break;case "google-live":t="gl";break;case "google-one":t="go";break;case "play":case "play-ads":t="gp";break;case "chat":t="hc";break;case "hangouts-meet":t="hm";break;case "photos-edu":case "picasaweb":t= "pw";break;default:t="yt"}this.zK=t;this.AY=d3("",y?y.authorizedUserIndex:J.authuser);this.L8=g.un(this)&&(this.ON||!th3()||this.Vk);var W;y?y.disableWatchLater!==void 0&&(W=!y.disableWatchLater):W=J.showwatchlater;this.Bo=((t=!this.L8)||!!this.AY&&t)&&JX(!this.Cy,this.B?W:void 0);this.QE=y?y.isMobileDevice||!!y.disableKeyboardControls:JX(!1,J.disablekb);this.loop=JX(!1,J.loop);this.pageId=d3("",y?y.initialDelegatedSessionId:J.pageid);this.ye=JX(!0,J.canplaylive);this.rj=JX(!1,J.livemonitor);this.disableSharing= JX(this.L,y?y.disableSharing:J.ss);(W=y&&this.X("fill_video_container_size_override_from_wpcc")?y.videoContainerOverride:J.video_container_override)?(t=W.split("x"),t.length!==2?W=null:(W=Number(t[0]),t=Number(t[1]),W=isNaN(W)||isNaN(t)||W*t<=0?null:new g.Kn(W,t))):W=null;this.jI=W;this.mute=y?!!y.startMuted:JX(!1,J.mute);this.storeUserVolume=!this.mute&&JX(this.controlsType!=="0",y?y.storeUserVolume:J.store_user_volume);W=y?y.annotationsLoadPolicy:J.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== "3"?3:yn(void 0,W,ZK);this.captionsLanguagePreference=y?y.captionsLanguagePreference||"":d3("",J.cc_lang_pref);W=yn(2,y?y.captionsLanguageLoadPolicy:J.cc_load_policy,ZK);this.controlsType==="3"&&W===2&&(W=3);this.uu=W;this.AI=y?y.hl||"en_US":d3("en_US",J.hl);this.region=y?y.contentRegion||"US":d3("US",J.cr);this.hostLanguage=y?y.hostLanguage||"en":d3("en",J.host_language);this.XV=!this.ON&&Math.random()=480;this.schedule=new jD(V,new Xdm(this.experiments),P);g.X(this,this.schedule);var c;this.enableSafetyMode=(c=y==null?void 0:y.initialEnableSafetyMode)!=null? c:JX(!1,J.enable_safety_mode);P=this.Ek?!1:XA(this)&&this.playerStyle!=="blazer";var b;y?y.disableAutonav!=null&&(b=!y.disableAutonav):b=J.allow_autonav;this.DO=JX(P,!this.Cy&&b);this.sendVisitorIdHeader=y?!!y.sendVisitorIdHeader:JX(!1,J.send_visitor_id_header);var B;this.playerStyle==="docs"&&(y?B=y.disableNativeContextMenu:B=J.disable_native_context_menu);this.disableNativeContextMenu=JX(!1,B);this.yb=Y8(this)&&this.X("enable_skip_intro_button");this.embedConfig=d3("",y?y.serializedEmbedConfig: J.embed_config);this.wj=TW(J,g.un(this));this.J=this.wj==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(y==null||!y.embedsErrorLinks);this.zA=JX(!1,J.full_window);var q;this.XW=!((q=this.webPlayerContextConfig)==null?0:q.chromeless);var C;this.livingRoomAppMode=yn("LIVING_ROOM_APP_MODE_UNSPECIFIED",J.living_room_app_mode||(y==null?void 0:(C=y.device)==null?void 0:C.livingRoomAppMode),c$3);var U;b=v1(NaN,y==null?void 0:(U=y.device)==null?void 0:U.deviceYear);isNaN(b)||(this.deviceYear=b);this.transparentBackground= y?!!y.transparentBackground:JX(!1,J.transparent_background);this.showMiniplayerButton=y?!!y.showMiniplayerButton:JX(!1,J.show_miniplayer_button);var N;g.un(this)&&!(y==null?0:(N=y.embedsHostFlags)==null?0:N.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=y?!!y.externalFullscreen:JX(!1,J.external_fullscreen);this.showMiniplayerUiWhenMinimized=y?!!y.showMiniplayerUiWhenMinimized:JX(!1,J.use_miniplayer_ui);var Jc;this.ox=(Jc=J.show_loop_video_toggle)!=null?Jc:!0;this.Ku=Math.random()< 1E-4;this.JB=J.onesie_hot_config||(y==null?0:y.onesieHotConfig)?new Pv3(J.onesie_hot_config,y==null?void 0:y.onesieHotConfig):void 0;this.isTectonic=y?!!y.isTectonic:!!J.isTectonic;this.playerCanaryState=v;this.playerCanaryStage=y==null?void 0:y.canaryStage;this.mL=new SoT;g.X(this,this.mL);this.datasyncId=(y==null?void 0:y.datasyncId)||g.NP("DATASYNC_ID");this.TA=g.NP("LOGGED_IN",!1);this.yH=(y==null?void 0:y.allowWoffleManagement)||!1;this.AB=Infinity;this.Ah=NaN;this.livingRoomPoTokenId=y==null? void 0:y.livingRoomPoTokenId;this.X("html5_high_res_logging_always")?this.Lj=!0:this.Lj=Math.random()*100=0&&J0&&J.Ku&&(d.sort(),g.ev(new g.H1("Player client parameters changed after startup",d)));J.userAge=v1(J.userAge,y.user_age);J.Ny=d3(J.Ny,y.user_display_email);J.userDisplayImage=d3(J.userDisplayImage,y.user_display_image);g.UA(J.userDisplayImage)||(J.userDisplayImage= "");J.userDisplayName=d3(J.userDisplayName,y.user_display_name);J.gr=d3(J.gr,y.user_gender);J.csiPageType=d3(J.csiPageType,y.csi_page_type);J.csiServiceName=d3(J.csiServiceName,y.csi_service_name);J.u1=JX(J.u1,y.enablecsi);J.pageId=d3(J.pageId,y.pageid);if(v=y.enabled_engage_types)J.enabledEngageTypes=new Set(v.split(","));y.living_room_session_po_token&&(J.TP=y.living_room_session_po_token.toString())}; dE=function(J,y){return!J.L&&iQ()&&cB(55)&&J.controlsType==="3"&&!y}; g.PT=function(J){J=w4(J.MF);return J==="www.youtube-nocookie.com"?"www.youtube.com":J}; Aw=function(J,y,v){return J.protocol+"://i1.ytimg.com/vi/"+y+"/"+(v||"hqdefault.jpg")}; Tx=function(J){return XA(J)&&!g.kO(J)}; g.Ko=function(J){return J.X("html5_local_playsinline")?KX&&!g.iX(602)&&!("playsInline"in Lm()):KX&&!J.wf||g.fX("nintendo wiiu")?!0:!1}; SD=function(J){return J.C.c}; g.Sb=function(J){return/^TVHTML5/.test(SD(J))}; g.lB=function(J){return SD(J)==="TVHTML5"}; L12=function(J){return SD(J)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; DIv=function(J){return J.C.cmodel==="CHROMECAST ULTRA/STEAK"||J.C.cmodel==="CHROMECAST/STEAK"}; g.MB=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Y8=function(J){return/web/i.test(SD(J))}; g.nh=function(J){return SD(J).toUpperCase()==="WEB"}; y0=function(J){return SD(J)==="WEB_KIDS"}; g.kO=function(J){return SD(J)==="WEB_UNPLUGGED"}; sr=function(J){return SD(J)==="TVHTML5_UNPLUGGED"}; g.sA=function(J){return g.kO(J)||SD(J)==="TV_UNPLUGGED_CAST"||sr(J)}; g.rm=function(J){return SD(J)==="WEB_REMIX"}; g.Yo=function(J){return SD(J)==="WEB_MUSIC_INTEGRATIONS"}; g.Sc=function(J){return SD(J)==="WEB_EMBEDDED_PLAYER"}; g.Lh=function(J){return(J.deviceIsAudioOnly||!g.Wz||HN||J.controlsType==="3"?!1:g.EL?J.W&&g.iX(51):!0)||(J.deviceIsAudioOnly||!g.T3||HN||J.controlsType==="3"?!1:g.EL?J.W&&g.iX(48):g.iX(38))||(J.deviceIsAudioOnly||!g.UC||HN||J.controlsType==="3"?!1:g.EL?J.W&&g.iX(37):g.iX(27))||!J.deviceIsAudioOnly&&g.V0&&!g56()&&g.iX(11)||!J.deviceIsAudioOnly&&g.tW&&g.iX("604.4")}; F1U=function(J){if(g.z3(J)&&Ne)return!1;if(g.T3){if(!g.iX(47)||!g.iX(52)&&g.iX(51))return!1}else if(g.tW)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; eUx=function(J,y){return J.enabledEngageTypes.has(y.toString())||jqP.includes(y)}; XA=function(J){return J.If==="detailpage"}; g.z3=function(J){return J.If==="embedded"}; tw=function(J){return J.If==="leanback"}; Hl=function(J){return J.If==="adunit"||J.playerStyle==="gvn"}; g.EC=function(J){return J.If==="profilepage"}; g.un=function(J){return J.W&&g.z3(J)&&!Hl(J)&&!J.L}; WT=function(J){if(!J.userDisplayImage)return"";var y=J.userDisplayImage.split("/");if(y.length===5)return J=y[y.length-1].split("="),J[1]="s20-c",y[y.length-1]=J.join("="),y.join("/");if(y.length===8)return y.splice(7,0,"s20-c"),y.join("/");if(y.length===9)return y[7]+="-s20-c",y.join("/");g.ev(new g.H1("Profile image not a FIFE URL.",J.userDisplayImage));return J.userDisplayImage}; g.aj=function(J){var y=g.PT(J);mI2.includes(y)&&(y="www.youtube.com");return J.protocol+"://"+y}; g.xo=function(J,y){y=y===void 0?"":y;if(J.jf){var v=new S1,d,P=J.jf();P.signedOut?d="":P.token?d=P.token:P.pendingResult.then(function(A){P.signedOut?v.resolve(""):v.resolve(A.token)},function(A){g.ev(new g.H1("b189348328_oauth_callback_failed",{error:A})); v.resolve(y)}); return d!==void 0?B0(d):new e3(v)}return B0(y)}; Or=function(J,y){y=y===void 0?"":y;return J.TA?bY(!0):BR(mB(bY(g.xo(J,y)),function(v){return bY(!!v)}),function(){return bY(!1)})}; w4=function(J){var y=g.s1(J);return(J=Number(g.nV(J)[4]||null)||null)?y+":"+J:y}; gE=function(J,y){y=y===void 0?!1:y;var v=eA[J],d=Bcv[v],P=qom[J];if(!P||!d)return null;y=new bU(y?P.height:P.width,y?P.width:P.height,P.fps);d=oU(d,y,v);return new m3(J,d,{video:y,FW:P.bitrate/8})}; $I3=function(J){var y=Bcv[eA[J]],v=r$R[J];return v&&y?new m3(J,y,{audio:new D9(v.audioSampleRate,v.numChannels)}):null}; D_=function(J){this.C=J}; cT=function(J,y,v,d){if(v)return mv();v={};var P=Lm();y=g.D(y);for(var A=y.next();!A.done;A=y.next())if(A=A.value,J.canPlayType(P,A.getInfo().mimeType)||d){var T=A.C.video.quality;if(!v[T]||v[T].getInfo().Tg())v[T]=A}J=[];v.auto&&J.push(v.auto);d=g.D(Fk);for(P=d.next();!P.done;P=d.next())(P=v[P.value])&&J.push(P);return J.length?B0(J):mv()}; oGU=function(J){this.itag=J.itag;this.url=J.url;this.codecs=J.codecs;this.width=J.width;this.height=J.height;this.fps=J.fps;this.bitrate=J.bitrate;var y;this.T=((y=J.audioItag)==null?void 0:y.split(","))||[];this.uG=J.uG;this.E8=J.E8||"";this.N4=J.N4;this.audioChannels=J.audioChannels;this.C=""}; CvR=function(J,y,v,d){y=y===void 0?!1:y;v=v===void 0?!0:v;d=d===void 0?{}:d;var P={};J=g.D(J);for(var A=J.next();!A.done;A=J.next()){A=A.value;if(y&&MediaSource&&MediaSource.isTypeSupported){var T=A.type;A.audio_channels&&(T=T+"; channels="+A.audio_channels);if(!MediaSource.isTypeSupported(T)){d[A.itag]="tpus";continue}}if(v||!A.drm_families||A.eotf!=="smpte2084"&&A.eotf!=="arib-std-b67"){T=void 0;var M={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},n=A.type.match(/codecs="([^"]*)"/); n=n?n[1]:"";A.audio_track_id&&(T=new g.eR(A.name,A.audio_track_id,!!A.is_default));var Y=A.eotf;A=new oGU({itag:A.itag,url:A.url,codecs:n,width:Number(A.width),height:Number(A.height),fps:Number(A.fps),bitrate:Number(A.bitrate),audioItag:A.audio_itag,uG:Y?M[Y]:void 0,E8:A.drm_families,N4:T,audioChannels:Number(A.audio_channels)});P[A.itag]=P[A.itag]||[];P[A.itag].push(A)}else d[A.itag]="enchdr"}return P}; hUj=function(J,y,v,d,P){this.J=J;this.T=y;this.V=v;this.cpn=d;this.L=P;this.W=0;this.C=""}; IWv=function(J,y){J.J.some(function(v){var d;return((d=v.N4)==null?void 0:d.getId())===y}); J.C=y}; Gx=function(J,y,v){J.cpn&&(y=g.al(y,{cpn:J.cpn}));v&&(y=g.al(y,{paired:v}));return y}; pST=function(J,y){J=J.itag.toString();y!==null&&(J+=y.itag.toString());return J}; UIP=function(J){for(var y=[],v=[],d=g.D(J.T),P=d.next();!P.done;P=d.next())P=P.value,P.bitrate<=J.W?y.push(P):v.push(P);y.sort(function(A,T){return T.bitrate-A.bitrate}); v.sort(function(A,T){return A.bitrate-T.bitrate}); J.T=y.concat(v)}; bB=function(J,y,v){this.C=J;this.T=y;this.expiration=v;this.q4=null}; fW3=function(J,y){if(!(HN||N5()||H0()))return null;J=CvR(y,J.X("html5_filter_fmp4_in_hls"));if(!J)return null;y=[];for(var v={},d=g.D(Object.keys(J)),P=d.next();!P.done;P=d.next()){P=g.D(J[P.value]);for(var A=P.next();!A.done;A=P.next()){var T=A.value;T.N4&&(A=T.N4.getId(),v[A]||(T=new g.gk(A,T.N4),v[A]=T,y.push(T)))}}return y.length>0?y:null}; Nc3=function(J,y,v,d,P,A,T){if(!(HN||N5()||H0()))return mv();var M={},n=izT(v),Y=CvR(v,J.X("html5_filter_fmp4_in_hls"),J.V.G,M);if(!Y)return T({noplst:1}),mv();uiH(Y);v={};var S=(v.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",v),V;v=[];var L=[],t=[],W=null,c="";d=d&&d.match(/hls_timedtext_playlist/)?new oGU({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,N4:new g.eR("English","en",!1)}):null;for(var b=g.D(Object.keys(Y)),B=b.next();!B.done;B=b.next())if(B=B.value,!J.X("html5_disable_drm_hfr_1080")|| B!=="383"&&B!=="373"){B=g.D(Y[B]);for(var q=B.next();!q.done;q=B.next())if(q=q.value,q.width){for(var C=g.D(q.T),U=C.next();!U.done;U=C.next())if(U=U.value,Y[U]){q.C=U;break}q.C||(q.C=Hzc(Y,q));if(C=Y[q.C])if(v.push(q),q.E8==="fairplay"&&(V=S),U="",q.uG==="PQ"?U="smpte2084":q.uG==="HLG"&&(U="arib-std-b67"),U&&(c=U),t.push(XS6(C,[q],d,A,q.itag,q.width,q.height,q.fps,n,void 0,void 0,V,U)),!W||q.width*q.height*q.fps>W.width*W.height*W.fps)W=q}else L.push(q)}else M[B]="disdrmhfr";t.reduce(function(N, Jc){return Jc.getInfo().isEncrypted()&&N},!0)&&(V=S); P=Math.max(P,0);S=W||{};Y=S.fps===void 0?0:S.fps;W=S.width===void 0?0:S.width;S=S.height===void 0?0:S.height;b=J.X("html5_native_audio_track_switching");t.push(XS6(L,v,d,A,"93",W,S,Y,n,"auto",P,V,c,b));Object.entries(M).length&&T(M);return cT(J.V,t,dE(J,y),!1)}; XS6=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t){for(var W=0,c="",b=g.D(J),B=b.next();!B.done;B=b.next())B=B.value,c||(c=B.itag),B.audioChannels&&B.audioChannels>W&&(W=B.audioChannels,c=B.itag);P=new m3(P,"application/x-mpegURL",{audio:new D9(0,W),video:new bU(A,T,M,null,void 0,Y,void 0,L),E8:V,Sd:c});J=new hUj(J,y,v?[v]:[],d,!!t);J.W=S?S:1369843;return new bB(P,J,n)}; izT=function(J){J=g.D(J);for(var y=J.next();!y.done;y=J.next())if(y=y.value,y.url&&(y=y.url.split("expire/"),!(y.length<=1)))return+y[1].split("/")[0];return NaN}; Hzc=function(J,y){for(var v=g.D(Object.keys(J)),d=v.next();!d.done;d=v.next()){d=d.value;var P=J[d][0];if(!P.width&&P.E8===y.E8&&!P.audioChannels)return d}return""}; uiH=function(J){for(var y=new Set,v=g.D(Object.values(J)),d=v.next();!d.done;d=v.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&y.add(d.height));v=[];if(y.size){d=g.D(Object.keys(J));for(var P=d.next();!P.done;P=d.next())if(P=P.value,J[P].length){var A=J[P][0];A.height&&y.has(A.height)&&!A.codecs.startsWith("vp09")&&v.push(P)}}y=g.D(v);for(v=y.next();!v.done;v=y.next())delete J[v.value]}; Fw=function(J,y){this.C=J;this.T=y}; RUc=function(J,y,v,d){var P=[];v=g.D(v);for(var A=v.next();!A.done;A=v.next()){var T=A.value;if(T.url){A=new g.ik(T.url,!0);if(T.s){var M=A,n=T.sp,Y=NHd(decodeURIComponent(T.s));M[l[30]](n,encodeURIComponent(Y))}M=g.D(Object.keys(d));for(n=M.next();!n.done;n=M.next())n=n.value,A.set(n,d[n]);T=uU(T.type,T.quality,T.itag,T.width,T.height);P.push(new Fw(T,A))}}return cT(J.V,P,dE(J,y),!1)}; jc=function(J,y){this.C=J;this.T=y}; K1x=function(J,y,v){var d=[];v=g.D(v);for(var P=v.next();!P.done;P=v.next())if((P=P.value)&&P.url){var A=uU(P.type,"medium","0");d.push(new jc(A,P.url))}return cT(J.V,d,dE(J,y),!1)}; zU6=function(J,y){var v=[],d=uU(y.type,"auto",y.itag);v.push(new jc(d,y.url));return cT(J.V,v,!1,!0)}; EGd=function(J){return J&&kv3[J]?kv3[J]:null}; Qq3=function(J){switch(J){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return J;default:return"sabr.config"}}; Zzj=function(J){if(J=J.commonConfig)this.url=J.url,this.urlQueryOverride=J.urlQueryOverride,J.ustreamerConfig&&(this.ue=OC(J.ustreamerConfig)||void 0)}; wSx=function(J,y){var v;if(y=y==null?void 0:(v=y.watchEndpointSupportedOnesieConfig)==null?void 0:v.html5PlaybackOnesieConfig)J.h3=new Zzj(y)}; g.ec=function(J){J=J===void 0?{}:J;this.languageCode=J.languageCode||"";this.languageName=J.languageName||null;this.kind=J.kind||"";this.name=J.name===void 0?null:J.name;this.displayName=J.displayName||null;this.id=J.id||null;this.C=J.is_servable||!1;this.isTranslateable=J.is_translateable||!1;this.url=J.url||null;this.vssId=J.vss_id||"";this.isDefault=J.is_default||!1;this.translationLanguage=J.translationLanguage||null;this.xtags=J.xtags||"";this.captionId=J.captionId||""}; g.BT=function(J){var y={languageCode:J.languageCode,languageName:J.languageName,displayName:g.mk(J),kind:J.kind,name:J.name,id:J.id,is_servable:J.C,is_default:J.isDefault,is_translateable:J.isTranslateable,vss_id:J.vssId};J.xtags&&(y.xtags=J.xtags);J.captionId&&(y.captionId=J.captionId);J.translationLanguage&&(y.translationLanguage=J.translationLanguage);return y}; g.qB=function(J){return J.translationLanguage?J.translationLanguage.languageCode:J.languageCode}; g.Jev=function(J){var y=J.vssId;J.translationLanguage&&y&&(y="t"+y+"."+g.qB(J));return y}; g.mk=function(J){var y=[];if(J.displayName)y.push(J.displayName);else{var v=J.languageName||"";y.push(v);J.kind==="asr"&&v.indexOf("(")===-1&&y.push(" (Subt\u00edtulos autom\u00e1ticos)");J.name&&y.push(" - "+J.name)}J.translationLanguage&&y.push(" >> "+J.translationLanguage.languageName);return y.join("")}; Pjx=function(J,y,v,d){J||(J=y&&yec.hasOwnProperty(y)&&v4R.hasOwnProperty(y)?v4R[y]+"_"+yec[y]:void 0);y=J;if(!y)return null;J=y.match(d26);if(!J||J.length!==5)return null;if(J=y.match(d26)){var P=Number(J[3]),A=[7,8,10,5,6];J=!(Number(J[1])===1&&P===8)&&A.indexOf(P)>=0}else J=!1;return v||d||J?y:null}; rE=function(J,y){for(var v={},d=g.D(Object.keys(Ae3)),P=d.next();!P.done;P=d.next()){P=P.value;var A=y?y+P:P;A=J[A+"_webp"]||J[A];g.UA(A)&&(v[Ae3[P]]=A)}return v}; $o=function(J){var y={};if(!J||!J.thumbnails)return y;J=J.thumbnails.filter(function(M){return!!M.url}); J.sort(function(M,n){return M.width-n.width||M.height-n.height}); for(var v=g.D(Object.keys(Te2)),d=v.next();!d.done;d=v.next()){var P=Number(d.value);d=Te2[P];for(var A=g.D(J),T=A.next();!T.done;T=A.next())if(T=T.value,T.width>=P){P=lcr(T.url);g.UA(P)&&(y[d]=P);break}}(J=J.pop())&&J.width>=1280&&(J=lcr(J.url),g.UA(J)&&(y["maxresdefault.jpg"]=J));return y}; lcr=function(J){return J.startsWith("//")?"https:"+J:J}; oj=function(J){return J&&J.baseUrl||""}; Ch=function(J){J=g.y2(J);for(var y=g.D(Object.keys(J)),v=y.next();!v.done;v=y.next()){v=v.value;var d=J[v];J[v]=Array.isArray(d)?d[0]:d}return J}; Ml6=function(J,y){J.botguardData=y.playerAttestationRenderer.botguardData;y=y.playerAttestationRenderer.challenge;y!=null&&(J.Lb=y)}; YjP=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;var d=v.interstitials.map(function(T){var M=g.R(T,n43);if(M)return{is_yto_interstitial:!0,raw_player_response:M};if(T=g.R(T,so2))return Object.assign({is_yto_interstitial:!0},wN(T))}); d=g.D(d);for(var P=d.next();!P.done;P=d.next())switch(P=P.value,v.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":J.interstitials=J.interstitials.concat({time:0,playerVars:P,VL:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":J.interstitials=J.interstitials.concat({time:0x7ffffffffffff,playerVars:P,VL:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var A=Number(v.podConfig.timeToInsertAtMillis);J.interstitials=J.interstitials.concat({time:A,playerVars:P, VL:A===0?5:7})}}}; Sjx=function(J,y){if(y=y.find(function(v){return!(!v||!v.tooltipRenderer)}))J.tooltipRenderer=y.tooltipRenderer}; Vlx=function(J,y){y.subscribeCommand&&(J.subscribeCommand=y.subscribeCommand);y.unsubscribeCommand&&(J.unsubscribeCommand=y.unsubscribeCommand);y.addToWatchLaterCommand&&(J.addToWatchLaterCommand=y.addToWatchLaterCommand);y.removeFromWatchLaterCommand&&(J.removeFromWatchLaterCommand=y.removeFromWatchLaterCommand);y.getSharePanelCommand&&(J.getSharePanelCommand=y.getSharePanelCommand)}; LMU=function(J,y){y!=null?(J.rU=y,J.vR=!0):(J.rU="",J.vR=!1)}; hw=function(J,y){this.type=J||"";this.id=y||""}; Ij=function(J){return new hw(J.substring(0,2),J.substring(2))}; ph=function(J,y){this.qx=J;this.author="";this.sB=null;this.playlistLength=0;this.C=this.sessionData=null;this.B={};this.title="";if(y){this.author=y.author||y.playlist_author||"";this.title=y.playlist_title||"";if(J=y.session_data)this.sessionData=Q4(J,"&");var v;this.C=((v=y.thumbnail_ids)==null?void 0:v.split(",")[0])||null;this.B=rE(y,"playlist_");this.videoId=y.video_id||void 0;if(v=y.list)switch(y.listType){case "user_uploads":this.playlistId=(new hw("UU","PLAYER_"+v)).toString();break;default:if(J= y.playlist_length)this.playlistLength=Number(J)||0;this.playlistId=Ij(v).toString();if(y=y.video)this.videoId=(y[0]||null).video_id||void 0}else y.playlist&&(this.playlistLength=y.playlist.toString().split(",").length)}}; Ur=function(J,y){this.qx=J;this.Iy=this.author="";this.sB=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.qq=this.lengthText="";this.sessionData=null;this.B={};this.title="";if(y){this.ariaLabel=y.aria_label||void 0;this.author=y.author||"";this.Iy=y.Iy||"";if(J=y.endscreen_autoplay_session_data)this.sB=Q4(J,"&");this.Vm=y.Vm;this.isLivePlayback=y.live_playback==="1";this.isUpcoming=!!y.isUpcoming;if(J=y.length_seconds)this.lengthSeconds=typeof J==="string"?Number(J):J;this.lengthText= y.lengthText||"";this.qq=y.qq||"";this.publishedTimeText=y.publishedTimeText||void 0;if(J=y.session_data)this.sessionData=Q4(J,"&");this.shortViewCount=y.short_view_count_text||void 0;this.B=rE(y);this.title=y.title||"";this.videoId=y.docid||y.video_id||y.videoId||y.id||void 0;this.watchUrl=y.watchUrl||void 0}}; tlv=function(J){var y,v,d=(y=J.getWatchNextResponse())==null?void 0:(v=y.contents)==null?void 0:v.twoColumnWatchNextResults,P,A,T,M,n;J=(P=J.getWatchNextResponse())==null?void 0:(A=P.playerOverlays)==null?void 0:(T=A.playerOverlayRenderer)==null?void 0:(M=T.endScreen)==null?void 0:(n=M.watchNextEndScreenRenderer)==null?void 0:n.results;if(!J){var Y,S;J=d==null?void 0:(Y=d.endScreen)==null?void 0:(S=Y.endScreen)==null?void 0:S.results}return J}; g.iB=function(J){var y,v,d;J=g.R((y=J.getWatchNextResponse())==null?void 0:(v=y.playerOverlays)==null?void 0:(d=v.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,fh);return g.R(J==null?void 0:J.playerBar,WMP)}; acd=function(J){this.C=J.playback_progress_0s_url;this.J=J.playback_progress_2s_url;this.T=J.playback_progress_10s_url}; x2U=function(){if(uB===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(y){}a:{try{var J=!!self.localStorage}catch(y){J=!1}if(J&&(J=g.oY(g.XM()+"::yt-player"))){uB=new Ca(J);break a}uB=void 0}}return uB}; g.HT=function(){var J=x2U();if(!J)return{};try{var y=J.get("yt-player-lv");return JSON.parse(y||"{}")}catch(v){return{}}}; g.OO3=function(J){var y=x2U();y&&(J=JSON.stringify(J),y.set("yt-player-lv",J))}; g.Xw=function(J){return g.HT()[J]||0}; g.NB=function(J,y){var v=g.HT();y!==v[J]&&(y!==0?v[J]=y:delete v[J],g.OO3(v))}; g.Rj=function(J){return g.f(function(y){return y.return(g.fU(g4H(),J))})}; zx=function(J,y,v,d,P,A,T,M){var n,Y,S,V,L,t;return g.f(function(W){switch(W.T){case 1:return n=g.Xw(J),n===4?W.return(4):g.h(W,g.zC(),2);case 2:Y=W.C;if(!Y)throw g.aO("wiac");if(!M||T===void 0){W.Qk(3);break}return g.h(W,D2P(M,T),4);case 4:T=W.C;case 3:return S=v.lastModified||"0",g.h(W,g.Rj(Y),5);case 5:return V=W.C,g.bR(W,6),Kh++,g.h(W,g.eO(V,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",t9:!0},function(c){if(A!==void 0&&T!==void 0){var b=""+J+"|"+y.id+"|"+S+"|"+String(A).padStart(10, "0");b=g.mq(c.objectStore("media"),T,b)}else b=g.Oq.resolve(void 0);var B=ce2(J,y.OH()),q=ce2(J,!y.OH()),C={fmts:GuP(d),format:v||{}};B=g.mq(c.objectStore("index"),C,B);var U=d.downloadedEndTime===-1;C=U?c.objectStore("index").get(q):g.Oq.resolve(void 0);var N={fmts:"music",format:{}};c=U&&P&&!y.OH()?g.mq(c.objectStore("index"),N,q):g.Oq.resolve(void 0);return g.Oq.all([c,C,b,B]).then(function(Jc){Jc=g.D(Jc);Jc.next();Jc=Jc.next().value;Kh--;var E=g.Xw(J);if(E!==4&&U&&P||Jc!==void 0&&g.bOd(Jc.fmts))E= 1,g.NB(J,E);return E})}),8); case 8:return W.return(W.C);case 6:L=g.BP(W);Kh--;t=g.Xw(J);if(t===4)return W.return(t);g.NB(J,4);throw L;}})}; g.FMU=function(J){var y,v;return g.f(function(d){if(d.T==1)return g.h(d,g.zC(),2);if(d.T!=3){y=d.C;if(!y)throw g.aO("ri");return g.h(d,g.Rj(y),3)}v=d.C;return d.return(g.eO(v,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(P){var A=IDBKeyRange.bound(J+"|",J+"~");return P.objectStore("index").getAll(A).then(function(T){return T.map(function(M){return M?M.format:{}})})}))})}; ezU=function(J,y,v,d,P){var A,T,M;return g.f(function(n){if(n.T==1)return g.h(n,g.zC(),2);if(n.T!=3){A=n.C;if(!A)throw g.aO("rc");return g.h(n,g.Rj(A),3)}T=n.C;M=g.eO(T,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Y){var S=""+J+"|"+y+"|"+v+"|"+String(d).padStart(10,"0");return Y.objectStore("media").get(S)}); return P?n.return(M.then(function(Y){if(Y===void 0)throw Error("No data from indexDb");return joc(P,Y)}).catch(function(Y){throw new g.H1("Error while reading chunk: "+Y.name+", "+Y.message); })):n.return(M)})}; g.bOd=function(J){return J?J==="music"?!0:J.includes("dlt=-1")||!J.includes("dlt="):!1}; ce2=function(J,y){return""+J+"|"+(y?"v":"a")}; GuP=function(J){var y={};return Z5((y.dlt=J.downloadedEndTime.toString(),y.mket=J.maxKnownEndTime.toString(),y.avbr=J.averageByteRate.toString(),y))}; BeT=function(J){var y={},v={};J=g.D(J);for(var d=J.next();!d.done;d=J.next()){var P=d.value,A=P.split("|");P.match(g.m2j)?(d=Number(A.pop()),isNaN(d)?v[P]="?":(A=A.join("|"),(P=y[A])?(A=P[P.length-1],d===A.end+1?A.end=d:P.push({start:d,end:d})):y[A]=[{start:d,end:d}])):v[P]="?"}J=g.D(Object.keys(y));for(d=J.next();!d.done;d=J.next())d=d.value,v[d]=y[d].map(function(T){return T.start+"-"+T.end}).join(","); return v}; ko=function(J){g.yK.call(this);this.C=null;this.J=new IY;this.C=null;this.L=new Set;this.crossOrigin=J||""}; qj6=function(J,y,v){for(v=Er(J,v);v>=0;){var d=J.levels[v];if(d.isLoaded(Q0(d,y))&&(d=g.Z_(d,y)))return d;v--}return g.Z_(J.levels[0],y)}; $2c=function(J,y,v){v=Er(J,v);for(var d,P;v>=0;v--)if(d=J.levels[v],P=Q0(d,y),!d.isLoaded(P)){d=J;var A=v,T=A+"-"+P;d.L.has(T)||(d.L.add(T),d.J.enqueue(A,{z$:A,HW:P}))}reT(J)}; reT=function(J){if(!J.C&&!J.J.isEmpty()){var y=J.J.remove();J.C=o4T(J,y)}}; o4T=function(J,y){var v=document.createElement("img");J.crossOrigin&&(v.crossOrigin=J.crossOrigin);v.src=J.levels[y.z$].S1(y.HW);v.onload=function(){var d=y.z$,P=y.HW;J.C!==null&&(J.C.onload=null,J.C=null);d=J.levels[d];d.loaded.add(P);reT(J);var A=d.columns*d.rows;P*=A;d=Math.min(P+A-1,d.n7()-1);P=[P,d];J.publish("l",P[0],P[1])}; return v}; g.wE=function(J,y,v,d){this.level=J;this.W=y;this.loaded=new Set;this.level=J;this.W=y;J=v.split("#");this.width=Math.floor(Number(J[0]));this.height=Math.floor(Number(J[1]));this.frameCount=Math.floor(Number(J[2]));this.columns=Math.floor(Number(J[3]));this.rows=Math.floor(Number(J[4]));this.C=Math.floor(Number(J[5]));this.J=J[6];this.signature=J[7];this.videoLength=d}; Q0=function(J,y){return Math.floor(y/(J.columns*J.rows))}; g.Z_=function(J,y){y>=J.fD()&&J.eF();var v=Q0(J,y),d=J.columns*J.rows,P=y%d;y=P%J.columns;P=Math.floor(P/J.columns);var A=J.eF()+1-d*v;if(A1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; Cjm=function(J,y,v){return(J=J.levels[y])?J.td(v):-1}; Er=function(J,y){var v=J.W.get(y);if(v)return v;v=J.levels.length;for(var d=0;d=y)return J.W.set(y,d),d;J.W.set(y,v-1);return v-1}; y1=function(J,y,v,d){v=v.split("#");v=[v[1],v[2],0,v[3],v[4],-1,v[0],""].join("#");g.wE.call(this,J,y,v,0);this.T=null;this.V=d?2:0}; vh=function(J,y,v,d){JH.call(this,J,0,void 0,y,!(d===void 0||!d));for(J=0;J50&&(y=Xnd.shift())&&Mf.delete(y),y=d),d!==y&&J.jE("ssei","dcpn_"+d+"_"+y+"_"+J.clientPlaybackNonce),y)}; T7=function(J,y){var v=y.raw_watch_next_response;if(!v){var d=y.watch_next_response;d&&(v=JSON.parse(d))}if(v){J.cX=v;var P=J.cX.playerCueRangeSet;P&&g.nF(J,P);var A=J.cX.playerOverlays;if(A){var T=A.playerOverlayRenderer;if(T){var M=T.autonavToggle;M&&(J.autoplaySwitchButtonRenderer=g.R(M,Nem),J.X("web_player_autonav_use_server_provided_state")&&sP(J)&&(J.autonavState=J.autoplaySwitchButtonRenderer.enabled?2:1));var n=T.videoDetails;if(n){var Y=n.embeddedPlayerOverlayVideoDetailsRenderer;var S=n.playerOverlayVideoDetailsRenderer; S&&(S.title&&(y.title=g.nf(S.title)),S.subtitle&&(y.subtitle=g.nf(S.subtitle)))}g.z3(J.qx)&&(J.Bo=!!T.addToMenu);RzU(J,T.shareButton);T.startPosition&&T.endPosition&&(J.progressBarStartPosition=T.startPosition,J.progressBarEndPosition=T.endPosition);var V=T.gatedActionsOverlayRenderer;V&&(J.eR=g.R(V,KMU));var L,t,W,c=g.R((L=J.getWatchNextResponse())==null?void 0:(t=L.playerOverlays)==null?void 0:(W=t.playerOverlayRenderer)==null?void 0:W.infoPanel,zzc);if(c){J.Qh=Number(c==null?void 0:c.durationMs)|| NaN;if(c==null?0:c.infoPanelOverviewViewModel)J.EH=c==null?void 0:c.infoPanelOverviewViewModel;if(c==null?0:c.infoPanelDetailsViewModel)J.Ah=c==null?void 0:c.infoPanelDetailsViewModel}J.showSeekingControls=!!T.showSeekingControls}}var b,B,q=(b=J.getWatchNextResponse())==null?void 0:(B=b.contents)==null?void 0:B.twoColumnWatchNextResults;if(q){var C=q.desktopOverlay&&g.R(q.desktopOverlay,kuR);C&&(C.suppressShareButton&&(J.showShareButton=!1),C.suppressWatchLaterButton&&(J.Bo=!1))}Y&&E42(J,y,Y);var U= v1(0,y.autoplay_count),N=J.getWatchNextResponse(),Jc,E=(Jc=N.contents)==null?void 0:Jc.twoColumnWatchNextResults,T2,Mj,lR,Sx=(T2=N.playerOverlays)==null?void 0:(Mj=T2.playerOverlayRenderer)==null?void 0:(lR=Mj.autoplay)==null?void 0:lR.playerOverlayAutoplayRenderer,vP=tlv(J),mT,hc=(mT=N.contents)==null?void 0:mT.singleColumnWatchNextResults;if(hc){var JO;if(((JO=hc.autoplay)==null?0:JO.autoplay)&&!hc.playlist){var fH=hc.autoplay.autoplay.sets,gV={},UU=new Ur(J.Y()),Zy=null,tO;if(fH){for(var Nb=g.D(fH), vL=Nb.next();!vL.done;vL=Nb.next()){var m=vL.value.autoplayVideoRenderer;if(m&&m.compactVideoRenderer){Zy=m.compactVideoRenderer;break}}if(tO=fH[0].autoplayVideo){var p_=tO.clickTrackingParams;p_&&(gV.itct=p_);gV.autonav="1";gV.playnext=String(U)}}else gV.feature="related-auto";var $y=g.R(tO,g.Y9);if(Zy){UU.videoId=Zy.videoId;var dr=Zy.shortBylineText;dr&&(UU.author=g.nf(dr));var Bq=Zy.title;Bq&&(UU.title=g.nf(Bq))}else $y!=null&&$y.videoId&&(UU.videoId=$y.videoId);UU.sB=gV;J.suggestions=[];J.ye= UU}}if(vP){for(var G=[],yH=g.D(vP),Nh=yH.next();!Nh.done;Nh=yH.next()){var M7=Nh.value,iw=void 0,Nj=null;if(M7.endScreenVideoRenderer){var Zv=M7.endScreenVideoRenderer,Qx=Zv.title;Nj=new Ur(J.Y());Nj.videoId=Zv.videoId;Nj.lengthSeconds=Zv.lengthInSeconds||0;var Ug=Zv.publishedTimeText;Ug&&(Nj.publishedTimeText=g.nf(Ug));var F=Zv.shortBylineText;F&&(Nj.author=g.nf(F));var O=Zv.shortViewCountText;O&&(Nj.shortViewCount=g.nf(O));if(Qx){Nj.title=g.nf(Qx);var e=Qx.accessibility;if(e){var I=e.accessibilityData; I&&I.label&&(Nj.ariaLabel=I.label)}}var H=Zv.navigationEndpoint;if(H){iw=H.clickTrackingParams;var VH=g.R(H,g.Y9),K=g.R(H,g.rD);VH?Nj.Vm=VH:K!=null&&(Nj.watchUrl=K.url)}var Z=Zv.thumbnailOverlays;if(Z)for(var p=g.D(Z),$m=p.next();!$m.done;$m=p.next()){var HP=$m.value.thumbnailOverlayTimeStatusRenderer;if(HP)if(HP.style==="LIVE"){Nj.isLivePlayback=!0;break}else if(HP.style==="UPCOMING"){Nj.isUpcoming=!0;break}}Nj.B=$o(Zv.thumbnail)}else if(M7.endScreenPlaylistRenderer){var n3=M7.endScreenPlaylistRenderer, sn=n3.navigationEndpoint;if(!sn)continue;var qj=g.R(sn,g.Y9);if(!qj)continue;var cP=qj.videoId;Nj=new ph(J.Y());Nj.playlistId=n3.playlistId;Nj.playlistLength=Number(n3.videoCount)||0;Nj.C=cP||null;Nj.videoId=cP;var y6=n3.title;y6&&(Nj.title=g.nf(y6));var F_=n3.shortBylineText;F_&&(Nj.author=g.nf(F_));iw=sn.clickTrackingParams;Nj.B=$o(n3.thumbnail)}Nj&&(iw&&(Nj.sessionData={itct:iw}),G.push(Nj))}J.suggestions=G}if(Sx){J.bF=!!Sx.preferImmediateRedirect;J.AI=J.AI||!!Sx.webShowNewAutonavCountdown;J.sY= J.sY||!!Sx.webShowBigThumbnailEndscreen;if(J.AI||J.sY){var pH=E||null,jx=new Ur(J.Y());jx.videoId=Sx.videoId;var GN=Sx.videoTitle;if(GN){jx.title=g.nf(GN);var rr=GN.accessibility;if(rr){var oC=rr.accessibilityData;oC&&oC.label&&(jx.ariaLabel=oC.label)}}var jX=Sx.byline;jX&&(jx.author=g.nf(jX));var Mh=Sx.publishedTimeText;Mh&&(jx.publishedTimeText=g.nf(Mh));var eX=Sx.shortViewCountText;eX&&(jx.shortViewCount=g.nf(eX));var vo=Sx.thumbnailOverlays;if(vo)for(var As=g.D(vo),RC=As.next();!RC.done;RC=As.next()){var CH= RC.value.thumbnailOverlayTimeStatusRenderer;if(CH)if(CH.style==="LIVE"){jx.isLivePlayback=!0;break}else if(CH.style==="UPCOMING"){jx.isUpcoming=!0;break}else if(CH.style==="DEFAULT"&&CH.text){jx.lengthText=g.nf(CH.text);var BD=CH.text.accessibility;if(BD){var Zr=BD.accessibilityData;Zr&&Zr.label&&(jx.qq=Zr.label||"")}break}}jx.B=$o(Sx.background);var Ot=Sx.nextButton;if(Ot){var is=Ot.buttonRenderer;if(is){var dX=is.navigationEndpoint;if(dX){var Po=g.R(dX,g.Y9);Po&&(jx.Vm=Po)}}}if(Sx.topBadges){var Mc= Sx.topBadges[0];if(Mc){var ba=g.R(Mc,Qo3);ba&&ba.style==="BADGE_STYLE_TYPE_PREMIUM"&&(jx.RBK=!0)}}var IA=Sx.alternativeTitle;IA&&(jx.Iy=g.nf(IA));var wp={autonav:"1",playnext:String(U)};jx.playlistId&&(wp.autoplay="1");if(pH){var pl,vZ,gG,us,c3=(pl=pH.autoplay)==null?void 0:(vZ=pl.autoplay)==null?void 0:(gG=vZ.sets)==null?void 0:(us=gG[0])==null?void 0:us.autoplayVideo;if(c3){var Aq=c3.clickTrackingParams;Aq&&(wp.itct=Aq);var GJ=g.R(c3,g.Y9);GJ&&(jx.nG=GJ)}}else if(Sx){var Tz,lN,MU,nl=(Tz=Sx.nextButton)== null?void 0:(lN=Tz.buttonRenderer)==null?void 0:(MU=lN.navigationEndpoint)==null?void 0:MU.clickTrackingParams;nl&&(wp.itct=nl)}wp.itct||(wp.feature="related-auto");jx.sB=wp;J.suggestions||(J.suggestions=[]);J.ye=jx}Sx.countDownSecs!=null&&(J.hd=Sx.countDownSecs*1E3);Sx.countDownSecsForFullscreen!=null&&(J.SQ=Sx.countDownSecsForFullscreen>=0?Sx.countDownSecsForFullscreen*1E3:-1);J.X("web_autonav_color_transition")&&Sx.watchToWatchTransitionRenderer&&(J.watchToWatchTransitionRenderer=g.R(Sx.watchToWatchTransitionRenderer, ZOv))}var bg=tlv(J);if(bg){var n9,s_,xg,Od=bg==null?void 0:(n9=bg[0])==null?void 0:(s_=n9.endScreenVideoRenderer)==null?void 0:(xg=s_.navigationEndpoint)==null?void 0:xg.clickTrackingParams,oH=g.Ss(J);Od&&oH&&(oH.sessionData={itct:Od})}J.cX.currentVideoThumbnail&&(J.B=$o(J.cX.currentVideoThumbnail));var fl,iN,uN,dR,Cy,DS=(fl=J.cX)==null?void 0:(iN=fl.contents)==null?void 0:(uN=iN.twoColumnWatchNextResults)==null?void 0:(dR=uN.results)==null?void 0:(Cy=dR.results)==null?void 0:Cy.contents;if(DS&&DS[1]){var hJ, PQ,Ho,Fn,Fc=(hJ=DS[1].videoSecondaryInfoRenderer)==null?void 0:(PQ=hJ.owner)==null?void 0:(Ho=PQ.videoOwnerRenderer)==null?void 0:(Fn=Ho.thumbnail)==null?void 0:Fn.thumbnails;Fc&&Fc.length&&(J.profilePicture=Fc[Fc.length-1].url)}var Uv=AX(y),Ao,gJ=(Ao=J.getWatchNextResponse())==null?void 0:Ao.onResponseReceivedEndpoints;if(gJ)for(var TD=g.D(gJ),IH=TD.next();!IH.done;IH=TD.next()){var py=IH.value;g.R(py,V1)&&(J.QW=g.R(py,V1));var T0=g.R(py,wnm),Xk=void 0;if((Xk=T0)==null?0:Xk.entityKeys)J.Uc=T0.entityKeys|| [],T0.visibleOnLoadKeys&&(J.visibleOnLoadKeys=T0.visibleOnLoadKeys)}if(J.X("web_key_moments_markers")){var T9=g.LF.getState().entities,Ma=g.zp("visibility_override","markersVisibilityOverrideEntity");var fs=Ei(T9,"markersVisibilityOverrideEntity",Ma);J.XW=(fs==null?void 0:fs.videoId)===(J.videoId||Uv)&&(fs==null?0:fs.visibilityOverrideMarkersKey)?fs.visibilityOverrideMarkersKey:J.visibleOnLoadKeys;J.visibleOnLoadKeys=[].concat(g.r(J.XW))}}}; sP=function(J){var y;return((y=J.autoplaySwitchButtonRenderer)==null?void 0:y.enabled)!==void 0}; tH=function(J){return!!(J.J&&J.J.videoInfos&&J.J.videoInfos.length)}; g.DL=function(J){var y=J.G;J.X("html5_gapless_unlimit_format_selection")&&Wh(J)&&(y=!1);var v=!!J.C&&J.C.jH,d=J.qx,P=J.iT(),A=a9(J),T=J.GK,M=y,n=J.isOtf();y=J.PP();var Y=J.rj,S=J.getUserAudio51Preference(),V=x9(J),L=OP(J),t=new hFH(d);if(d.SH()||d.X("html5_logging_format_selection"))t.T=!0;t.Ek=A;t.GK=T&&d.B;t.wj=S;g.fX("windows nt 5.1")&&!g.T3&&(t.QL=!0);if(A=P)A=g.Lh(d)?F1U(d):!1;A&&(t.zK=!0);M&&(t.QL=!0,t.ZE=!0);n&&!d.X("html5_otf_prefer_vp9")&&(t.QL=!0);d.playerStyle==="picasaweb"&&(n&&(t.QL= !1),t.Cy=!1);Y&&(t.QL=!0);Us(d.V,fC.CHANNELS)&&(d.X("html5_enable_ac3")&&(t.W=!0),d.X("html5_enable_eac3")&&(t.V=!0),d.X("html5_enable_ac3_gapless")&&(t.If=!0));d.X("html5_block_8k_hfr")&&(t.ZB=!0);t.L=g.Zo(d.experiments,"html5_max_selectable_quality_ordinal");t.G=g.Zo(d.experiments,"html5_min_selectable_quality_ordinal");po&&(t.H$=480);if(v||P)t.Cy=!1;t.XW=!1;t.disableAv1=V;v=Qp(d,t.C,void 0,t.disableAv1);v>0&&v<2160&&(dj()||d.X("html5_format_hybridization"))&&(t.C.supportsChangeType=+dj(),t.Lp= v);v>=2160&&(t.AY=!0);yLv()&&!d.X("disable_av1_setting")&&(t.C.serveVp9OverAv1IfHigherRes=0,t.Lf=!1);t.PP=y;t.WX=g.XD||ZZ()&&!y?!1:!0;t.B=d.X("html5_format_hybridization");t.Ky=d.X("html5_disable_encrypted_vp9_live_non_2k_4k");t.aG=L;gC(J)&&(t.ON=J.X("html5_prefer_language_over_codec"));H0()&&J.playerResponse&&J.playerResponse.playerConfig&&J.playerResponse.playerConfig.webPlayerConfig&&J.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(t.W=!0,t.V=!0);J.G&&J.isAd()&&(J.l0&& (t.K=J.l0),J.nF&&(t.J=J.nF));t.cX=J.isLivePlayback&&J.jz()&&J.qx.X("html5_drm_live_audio_51");t.rj=J.Js;t.J9=!gC(J);return J.QE=t}; x9=function(J){return J.qx.X("html5_disable_av1")||J.X("html5_gapless_shorts_disable_av1")&&Wh(J)?!0:!1}; JB3=function(J){Ge("drm_pb_s",void 0,J.K);J.Vk||J.C&&oz(J.C);var y={};J.C&&(y=LKx(J.XO,g.DL(J),J.qx.V,J.C,function(v){return J.publish("ctmp","fmtflt",v)},!0,new Set)); y=new no(y,J.qx,J.VJ,J.useCobaltWidevine?H0()?ch(J):!1:!1,function(v,d){J.dj(v,d)}); g.X(J,y);J.QA=!1;J.loading=!0;fqU(y,function(v){Ge("drm_pb_f",void 0,J.K);for(var d=g.D(v),P=d.next();!P.done;P=d.next())switch(P=P.value,P.flavor){case "fairplay":P.Vk=J.Vk;P.Zq=J.Zq;P.NT=J.NT;break;case "widevine":P.Qw=J.Qw}J.k_=v;if(J.k_.length>0&&(J.V=J.k_[0],J.qx.SH())){v={};d=g.D(Object.entries(J.V.C));for(P=d.next();!P.done;P=d.next()){var A=g.D(P.value);P=A.next().value;A=A.next().value;var T="unk";(P=P.match(/(.*)codecs="(.*)"/))&&(T=P[2]);v[T]=A}J.dj("drmProbe",v)}J.l9()})}; yBH=function(J,y){if(y.length===0||G7(J))return null;J.qx.V.J&&(zB=!0);var v=J.E8;var d=J.lengthSeconds,P=J.isLivePlayback,A=J.L0,T=J.qx,M=gz3(y);if(P||A){T=T.experiments;d=new $$("",T,!0);d.T=!A;d.jH=!0;d.isManifestless=!0;d.isLive=!A;d.L0=A;y=g.D(y);for(P=y.next();!P.done;P=y.next()){var n=P.value;P=hA(n,v);M=KC(n);M=pL(M.Zy||n.url||"",M.Wv,M.s);var Y=M.get("id");Y&&Y.includes("%7E")&&(d.K=!0);var S=void 0;Y=(S=T)==null?void 0:S.BX("html5_max_known_end_time_rebase");S=Number(n.targetDurationSec|| 5);n=Number(n.maxDvrDurationSec||14400);var V=Number(M.get("mindsq")||M.get("min_sq")||"0"),L=Number(M.get("maxdsq")||M.get("max_sq")||"0")||Infinity;d.oz=d.oz||V;d.W_=d.W_||L;var t=!iU(P.mimeType);M&&Bi(d,new Vp(M,P,{CN:S,Mc:t,hH:n,oz:V,W_:L,BN:300,L0:A,YS:Y}))}v=d}else if(M==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;A=new $$("",T.experiments,!1);A.duration=d||0;T=g.D(y);for(d=T.next();!d.done;d=T.next())d=d.value,y=hA(d,v,A.duration),P=KC(d),(P=pL(P.Zy||d.url||"",P.Wv,P.s))&&(y.streamType==="FORMAT_STREAM_TYPE_OTF"? Bi(A,new LL(P,y,"sq/0")):Bi(A,new jR(P,y,zg(d.initRange),zg(d.indexRange))));A.isOtf=!0;v=A}else{d=d===void 0?0:d;A=new $$("",T.experiments,!1);A.duration=d||0;T=g.D(y);for(d=T.next();!d.done;d=T.next())M=d.value,d=hA(M,v,A.duration),y=zg(M.initRange),P=zg(M.indexRange),Y=KC(M),(M=pL(Y.Zy||M.url||"",Y.Wv,Y.s))&&Bi(A,new jR(M,d,y,P));v=A}A=J.isLivePlayback&&!J.L0&&!J.zK&&!J.isPremiere;J.X("html5_live_head_playable")&&(!bV(J)&&A&&J.dj("missingLiveHeadPlayable",{}),J.qx.zK==="yt"&&(v.Ek=!0));return v}; G7=function(J){return H0()?!ch(J):N5()?!(!J.Vk||!J.X("html5_enable_safari_fairplay")&&Wl()):!1}; ch=function(J){return J.X("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; g.nF=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next())if(v=v.value,v.cueRangeSetIdentifier){var d=void 0;J.C3.set(v.cueRangeSetIdentifier,(d=v.playerCueRanges)!=null?d:[])}}; FV=function(J){return!(!J.C||!J.C.isManifestless)}; js=function(J){return J.H$?J.isLowLatencyLiveStream&&J.C!=null&&ul(J.C)>=5:J.isLowLatencyLiveStream&&J.C!=void 0&&ul(J.C)>=5}; vLT=function(J){return H0()&&ch(J)?!1:G7(J)&&(g.sA(J.qx)?!J.isLivePlayback:J.hlsvp)||!Wl()||J.dN?!0:!1}; AB2=function(J){J.loading=!0;J.vK=!1;if(dG3(J))g.FMU(J.videoId).then(function(d){PHH(J,d)}).then(function(){J.l9()}); else{pt(J.ZE)||g.ev(new g.H1("DASH MPD Origin invalid: ",J.ZE));var y=J.ZE,v=g.Zo(J.qx.experiments,"dash_manifest_version")||4;y=g.al(y,{mpd_version:v});J.isLowLatencyLiveStream&&J.latencyClass!=="NORMAL"||(y=g.al(y,{pacing:0}));m_c(y,J.qx.experiments,J.isLivePlayback).then(function(d){J.tY()||(es(J,d,!0),Ge("mrc",void 0,J.K),J.l9())},function(d){J.tY()||(J.loading=!1,J.publish("dataloaderror",new g.Y6("manifest.net.retryexhausted",{backend:"manifest", rc:d.status},1)))}); Ge("mrs",void 0,J.K)}}; PHH=function(J,y){var v=y.map(function(n){return n.itag}),d; if((d=J.playerResponse)!=null&&d.streamingData){d=[];if(J.X("html5_offline_always_use_local_formats")){v=0;for(var P=g.D(y),A=P.next();!A.done;A=P.next()){A=A.value;var T=Object.assign({},A);T.signatureCipher="";d.push(T);T=g.D(J.playerResponse.streamingData.adaptiveFormats);for(var M=T.next();!M.done;M=T.next())if(M=M.value,A.itag===M.itag&&A.xtags===M.xtags){v+=1;break}}vS&&(S=t.getInfo().audio.numChannels)}S>2&&J.dj("hlschl",{mn:S});var b;((b=J.QE)==null?0:b.T)&&J.dj("hlsfmtaf",{itags:V.join(".")});var B;if(J.X("html5_enable_vp9_fairplay")&&((B=J.V)==null?0:Pl(B)))for(J.dj("drm",{sbdlfbk:1}),S=g.D(J.k_),V=S.next();!V.done;V=S.next())if(V=V.value,d4(V)){J.V=V;break}rC(J,Y)})}return mv()}; sRx=function(J){if(J.isExternallyHostedPodcast&&J.Lj){var y=qf(J.Lj);if(!y[0])return mv();J.Y8B=y[0];return zU6(J.qx,y[0]).then(function(v){rC(J,v)})}return J.Iq&&J.NJ?K1x(J.qx,J.isAd(),J.Iq).then(function(v){rC(J,v)}):mv()}; S$6=function(J){if(J.isExternallyHostedPodcast)return mv();var y=qf(J.Lj,J.qe);if(J.hlsvp){var v=hzH(J.hlsvp,J.clientPlaybackNonce,J.Lf);y.push(v)}return RUc(J.qx,J.isAd(),y,Y$d(J)).then(function(d){rC(J,d)})}; rC=function(J,y){J.h_=y;J.T6(new mD(g.x7(J.h_,function(v){return v.getInfo()})))}; Y$d=function(J){var y={cpn:J.clientPlaybackNonce,c:J.qx.C.c,cver:J.qx.C.cver};J.Dq&&(y.ptk=J.Dq,y.oid=J.I2,y.ptchn=J.b2,y.pltype=J.Qz,J.Gl&&(y.m=J.Gl));return y}; g.$9=function(J){return G7(J)&&J.Vk?(J={},J.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",J):J.T&&J.T.E8||null}; VUT=function(J){var y=o9(J);return y&&y.text?g.nf(y.text):J.paidContentOverlayText}; LV6=function(J){var y=o9(J);return y&&y.durationMs?Cn(y.durationMs):J.paidContentOverlayDurationMs}; o9=function(J){var y,v,d;return J.playerResponse&&J.playerResponse.paidContentOverlay&&J.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.R((y=J.cX)==null?void 0:(v=y.playerOverlays)==null?void 0:(d=v.playerOverlayRenderer)==null?void 0:d.playerDisclosure,tU6)||null}; CF=function(J){var y="";if(J.EZ)return J.EZ;J.isLivePlayback&&(y=J.allowLiveDvr?"dvr":J.isPremiere?"lp":J.zK?"window":"live");J.L0&&(y="post");return y}; g.hH=function(J,y){return typeof J.keywords[y]!=="string"?null:J.keywords[y]}; WVr=function(J){return!!J.KP||!!J.pB||!!J.e3||!!J.FO||J.xb}; g.I9=function(J){return!!(J.ZE||J.Lj||J.Iq||J.hlsvp||J.BE())}; AH=function(J){if(J.X("html5_onesie")&&J.errorCode)return!1;var y=g.cq(J.Cy,"ypc");J.ypcPreview&&(y=!1);return J.ZO()&&!J.loading&&(g.I9(J)||g.cq(J.Cy,"heartbeat")||y)}; qf=function(J,y){J=JN(J);var v={};if(y){y=g.D(y.split(","));for(var d=y.next();!d.done;d=y.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(v[d[1]]={width:d[2],height:d[3]})}y=g.D(J);for(d=y.next();!d.done;d=y.next()){d=d.value;var P=v[d.itag];P&&(d.width=P.width,d.height=P.height)}return J}; RzU=function(J,y){J.showShareButton=!!y;var v,d,P=((v=g.R(y,g.Zc))==null?void 0:v.navigationEndpoint)||((d=g.R(y,g.Zc))==null?void 0:d.command);P&&(J.vz=!!g.R(P,aU3))}; Icc=function(J,y){var v=y.raw_embedded_player_response;if(!v){var d=y.embedded_player_response;d&&(v=JSON.parse(d))}v&&(J.H_=v);if(J.H_){J.embeddedPlayerConfig=J.H_.embeddedPlayerConfig||null;if(v=J.H_.videoFlags)v.playableInEmbed&&(J.allowEmbed=!0),v.isPrivate&&(J.isPrivate=!0),v.userDisplayName&&(y.user_display_name=v.userDisplayName),v.userDisplayImage&&(y.user_display_image=v.userDisplayImage);if(v=J.H_.embedPreview){v=v.thumbnailPreviewRenderer;LMU(J,v.controlBgHtml);if(d=v.defaultThumbnail)J.B= $o(d);J.X("embeds_web_enable_search_button")&&v.searchButton&&(d=g.R(v.searchButton,g.Zc))&&(J.Qi=g.R(d.navigationEndpoint,g.pF));(d=g.R(v==null?void 0:v.videoDetails,xGH))&&E42(J,y,d);d=g.R(v==null?void 0:v.videoDetails,OGR);J.Bo=!!v.addToWatchLaterButton;RzU(J,v.shareButton);if(d==null?0:d.musicVideoType)J.musicVideoType=d.musicVideoType;var P,A,T,M,n;if(d=g.R((P=J.getEmbeddedPlayerResponse())==null?void 0:(A=P.embedPreview)==null?void 0:(T=A.thumbnailPreviewRenderer)==null?void 0:(M=T.playButton)== null?void 0:(n=M.buttonRenderer)==null?void 0:n.navigationEndpoint,g.Y9))wSx(J,d),J.videoId=d.videoId||J.videoId;v.videoDurationSeconds&&(J.lengthSeconds=Cn(v.videoDurationSeconds));v.webPlayerActionsPorting&&Vlx(J,v.webPlayerActionsPorting);if(P=g.R(v==null?void 0:v.playlist,gLP)){J.oi=!0;A=[];T=Number(P.currentIndex);if(P.contents)for(M=0,n=P.contents.length;M0:J.M1?!1:J.qx.Xg||J.qx.vK||!g.un(J.qx)?!0:!1:(J.M1?0:J.ER)&&g.un(J.qx)?!0:!1;J.X("html5_log_detailpage_autoplay")&&z7(J)==="detailpage"&&J.dj("autoplay_info",{autoplay:J.Cr,autonav:J.isAutonav,wasDompaused:J.M1,result:y});return y}; g.ZL=function(J){return J.oauthToken||J.qx.jc}; q$m=function(J){if(J.X("html5_stateful_audio_normalization")){var y=1,v=g.Zo(J.qx.experiments,"html5_default_ad_gain");v&&J.isAd()&&(y=v);var d,P;v=(P=(d=J.W)==null?void 0:d.audio.W)!=null?P:J.LK;if(v==null||isNaN(v))J=B66(J);else{d=(0,g.GC)();J.wf=2;P=d-J.qx.Ah<=J.maxStatefulTimeThresholdSec*1E3;J.applyStatefulNormalization&&P?J.wf=4:P||(J.qx.AB=Infinity,J.qx.Ah=NaN);P=(J.wf===4?g.uX(J.qx.AB,J.minimumLoudnessTargetLkfs,J.loudnessTargetLkfs):J.loudnessTargetLkfs)-v;if(J.wf!==4){var A,T,M,n,Y=((A= J.playerResponse)==null?void 0:(T=A.playerConfig)==null?void 0:(M=T.audioConfig)==null?void 0:(n=M.loudnessNormalizationConfig)==null?void 0:n.statelessLoudnessAdjustmentGain)||0;P+=Y}P=Math.min(P,0);J.preserveStatefulLoudnessTarget&&(J.qx.AB=v+P,J.qx.Ah=d);J=Math.min(1,Math.pow(10,P/20))||y}}else J=B66(J);return J}; B66=function(J){var y=1,v=g.Zo(J.qx.experiments,"html5_default_ad_gain");v&&J.isAd()&&(y=v);if(J.qx.experiments.BX("html5_audio_gain_null_coalescing")){var d,P;v=(P=(d=J.W)==null?void 0:d.audio.J)!=null?P:J.xj;v==0&&J.dj("db0fix",{rldb:J.xj},!0)}else{var A;v=((A=J.W)==null?void 0:A.audio.J)||J.xj}isNaN(v)||(J.wf=1);return Math.min(1,Math.pow(10,-v/20))||y}; a9=function(J){var y=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],v=SD(J.qx)==="TVHTML5_SIMPLY"&&J.qx.C.ctheme==="MUSIC";!J.VE&&(g.rm(J.qx)||g.Yo(J.qx)||v)&&(y.includes(J.musicVideoType)||J.isExternallyHostedPodcast)&&(J.VE=!0);if(y=g.uQ())y=/Starboard\/([0-9]+)/.exec(g.IM()),y=(y?parseInt(y[1],10):NaN)<10;v=J.qx;v=(SD(v)==="TVHTML5_CAST"||SD(v)==="TVHTML5"&&(v.C.cver.startsWith("6.20130725")||v.C.cver.startsWith("6.20130726")))&&J.qx.C.ctheme==="MUSIC";var d;if(d=!J.VE)v||(v= J.qx,v=SD(v)==="TVHTML5"&&v.C.cver.startsWith("7")),d=v;d&&!y&&(y=J.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",v=(J.X("cast_prefer_audio_only_for_atv_and_uploads")||J.X("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&J.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",y||v||J.isExternallyHostedPodcast)&&(J.VE=!0);return J.qx.deviceIsAudioOnly||J.VE&&J.qx.B}; OP=function(J){var y,v,d;return((y=J.playerResponse)==null?void 0:(v=y.playerConfig)==null?void 0:(d=v.compositeVideoConfig)==null?void 0:d.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; rBr=function(J){var y,v,d,P=(y=J.playerResponse)==null?void 0:(v=y.playerConfig)==null?void 0:(d=v.compositeVideoConfig)==null?void 0:d.sourceConfigs,A,T,M;J=(A=J.playerResponse)==null?void 0:(T=A.playerConfig)==null?void 0:(M=T.compositeVideoConfig)==null?void 0:M.defaultActiveSourceVideoId;if(!P||!J)return"";P=g.D(P);for(A=P.next();!A.done;A=P.next())if(A=A.value,A.videoId===J&&A.audioTracks)for(A=g.D(A.audioTracks),T=A.next();!T.done;T=A.next())if(T=T.value,T.isDefaultForSource)return T.id||""; return""}; g.$Gv=function(J){return J.X("html5_enable_sabr_live_captions")&&J.jH()&&gC(J)||OP(J)}; wC=function(J){var y,v,d;return!!((y=J.playerResponse)==null?0:(v=y.playerConfig)==null?0:(d=v.mediaCommonConfig)==null?0:d.splitScreenEligible)}; JQ=function(J){var y;return!((y=J.playerResponse)==null||!y.compositePlayabilityStatus)}; oLd=function(J){return isNaN(J)?0:Math.max((Date.now()-J)/1E3-30,0)}; y7=function(J){return!(!J.vY||!J.qx.B)&&J.BE()}; vp=function(J){return J.Oc&&J.enableServerStitchedDai}; CH6=function(J){return J.Fs&&!J.jc}; gC=function(J){var y=J.X("html5_enable_sabr_on_drive")&&J.qx.zK==="gd";if(J.cA)return J.Fs&&J.dj("fds",{fds:!0},!0),!1;if(J.qx.zK!=="yt"&&!y)return J.Fs&&J.dj("dsvn",{ns:J.qx.zK},!0),!1;if(J.cotn||!J.C||J.C.isOtf&&!J.X("html5_enable_sabr_otf_in_client")||J.J&&!J.J.C||J.r_&&!J.X("html5_enable_sabr_csdai"))return!1;if(J.X("html5_use_sabr_requests_for_debugging"))return!0;J.Fs&&J.dj("esfw",{usbc:J.Fs,hsu:!!J.jc},!0);if(J.Fs&&J.jc)return!0;if(J.X("html5_remove_client_sabr_determination"))return!1;var v= !J.C.jH&&!J.jz();y=v&&VJ&&J.X("html5_enable_sabr_vod_streaming_xhr");v=v&&!VJ&&J.X("html5_enable_sabr_vod_non_streaming_xhr");var d=dx(J),P=J.X("html5_enable_sabr_drm_vod_streaming_xhr")&&VJ&&J.jz()&&!J.C.jH&&(J.drmProduct==="1"?!1:!0);(y=y||v||d||P)&&!J.jc&&J.dj("sabr",{loc:"m"},!0);return y&&!!J.jc}; dx=function(J){var y;if(!(y=VJ&&J.jH()&&J.jz()&&(J.drmProduct==="1"?!1:!0)&&J.X("html5_sabr_live_drm_streaming_xhr"))){y=J.jH()&&!J.jz()&&VJ;var v=J.jH()&&J.latencyClass!=="ULTRALOW"&&!J.isLowLatencyLiveStream&&J.X("html5_sabr_live_normal_latency_streaming_xhr"),d=J.isLowLatencyLiveStream&&J.X("html5_sabr_live_low_latency_streaming_xhr"),P=J.latencyClass==="ULTRALOW"&&J.X("html5_sabr_live_ultra_low_latency_streaming_xhr");y=y&&(v||d||P)}v=y;y=J.enableServerStitchedDai&&v&&J.X("html5_enable_sabr_ssdai_streaming_xhr"); v=!J.enableServerStitchedDai&&v;d=J.jH()&&!VJ&&J.X("html5_enable_sabr_live_non_streaming_xhr");J=VJ&&(J.US()||wC(J)&&J.X("html5_enable_sabr_for_lifa_eligible_streams"));return y||v||d||J}; dG3=function(J){var y;if(y=!!J.cotn)y=J.videoId,y=!!y&&g.Xw(y)===1;return y&&!J.vY}; g.Pp=function(J){if(!J.C||!J.T||!J.W)return!1;var y=J.C.C,v=!!y[J.T.id]&&XK(y[J.T.id].q4.C);y=!!y[J.W.id]&&XK(y[J.W.id].q4.C);return(J.T.itag==="0"||v)&&y}; AQ=function(J){return J.PY?["OK","LIVE_STREAM_OFFLINE"].includes(J.PY.status):!0}; DGT=function(J){return(J=J.qc)&&J.showError?J.showError:!1}; lf=function(J,y){return J.X(y)?!0:(J.fflags||"").includes(y+"=true")}; HOr=function(J,y){y.inlineMetricEnabled&&(J.inlineMetricEnabled=!0);y.playback_progress_0s_url&&(J.FO=new acd(y));if(y=y.video_masthead_ad_quartile_urls)J.pB=y.quartile_0_url,J.mX=y.quartile_25_url,J.Sl=y.quartile_50_url,J.L4=y.quartile_75_url,J.En=y.quartile_100_url,J.e3=y.quartile_0_urls,J.L6=y.quartile_25_urls,J.Gf=y.quartile_50_urls,J.lV=y.quartile_75_urls,J.DH=y.quartile_100_urls}; urH=function(J){var y={};J=g.D(J);for(var v=J.next();!v.done;v=J.next()){v=v.value;var d=v.split("=");d.length===2?y[d[0]]=d[1]:y[v]=!0}return y}; U2j=function(J){if(J){if(xFR(J))return J;J=OT2(J);if(xFR(J,!0))return J}return""}; g.hBT=function(J){return J.captionsLanguagePreference||J.qx.captionsLanguagePreference||g.hH(J,"yt:cc_default_lang")||J.qx.AI}; Mr=function(J){return!(!J.isLivePlayback||!J.hasProgressBarBoundaries())}; g.Ss=function(J){var y;return J.ye||((y=J.suggestions)==null?void 0:y[0])||null}; g.n5=function(J){return J.vR&&(J.X("embeds_enable_pfp_always_unbranded")||J.qx.AQ)}; g.sH=function(J){var y,v;return!!((y=J.embeddedPlayerConfig)==null?0:(v=y.embeddedPlayerFlags)==null?0:v.enableMusicUx)}; IUU=function(J){return J.G||J.X("web_player_media_session_infinity")&&J.isLivePlayback}; Yt=function(J){return J.qx.W&&J.isPrivate}; g.V7=function(J){var y=J.Y(),v=g.SM(y),d=y.ZE;(y.X("embeds_web_enable_iframe_api_send_full_embed_url")||y.X("embeds_web_enable_rcat_validation_in_havs")||y.X("embeds_enable_autoplay_and_visibility_signals"))&&g.z3(y)&&(d&&(v.thirdParty=Object.assign({},v.thirdParty,{embedUrl:d})),ALd(v,J));if(d=J.WX)v.clickTracking={clickTrackingParams:d};else if(g.z3(J.Y())&&g.NP("EVENT_ID"))v.clickTracking={clickTrackingParams:g.NP("EVENT_ID")};else if(y.X("html5_log_missing_itct")){var P;d=new g.H1("Missing ITCT in InnerTubeContext", {isAd:J.isAd(),fvY:(P=y.getWebPlayerContextConfig())==null?void 0:P.contextId});g.jv(d)}P=v.client||{};d="EMBED";var A=z7(J);A==="leanback"?d="WATCH":y.X("gvi_channel_client_screen")&&A==="profilepage"?d="CHANNEL":J.rj?d="LIVE_MONITOR":A==="detailpage"?d="WATCH_FULL_SCREEN":A==="adunit"?d="ADUNIT":A==="sponsorshipsoffer"&&(d="UNKNOWN");P.clientScreen=d;if(y=J.kidsAppInfo)P.kidsAppInfo=JSON.parse(y);(d=J.pQ)&&!y&&(P.kidsAppInfo={contentSettings:{ageUpMode:puH[d]}});if(y=J.Ht)P.unpluggedAppInfo={enableFilterMode:!0}; (d=J.unpluggedFilterModeType)&&!y&&(P.unpluggedAppInfo={filterModeType:UGd[d]});if(y=J.DO)P.unpluggedLocationInfo=y;v.client=P;P=v.request||{};J.gr&&(P.isPrefetch=!0);if(y=J.mdxEnvironment)P.mdxEnvironment=y;if(y=J.mdxControlMode)P.mdxControlMode=fU2[y];v.request=P;P=v.user||{};if(y=J.If)P.credentialTransferTokens=[{token:y,scope:"VIDEO"}];if(y=J.ES)P.delegatePurchases={oauthToken:y},P.kidsParent={oauthToken:y};v.user=P;if(P=J.contextParams)v.activePlayers=[{playerContextParams:P}];if(J=J.clientScreenNonce)v.clientScreenNonce= J;return v}; g.SM=function(J){var y=g.RP(),v=y.client||{};if(J.forcedExperiments){var d=J.forcedExperiments.split(","),P=[];d=g.D(d);for(var A=d.next();!A.done;A=d.next())P.push(Number(A.value));v.experimentIds=P}if(P=J.homeGroupInfo)v.homeGroupInfo=JSON.parse(P);if(P=J.getPlayerType())v.playerType=P;if(P=J.C.ctheme)v.theme=P;if(P=J.livingRoomAppMode)v.tvAppInfo=Object.assign({},v.tvAppInfo,{livingRoomAppMode:P});P=J.deviceYear;J.X("html5_propagate_device_year")&&P&&(v.tvAppInfo=Object.assign({},v.tvAppInfo,{deviceYear:P})); if(P=J.livingRoomPoTokenId)v.tvAppInfo=Object.assign({},v.tvAppInfo,{livingRoomPoTokenId:P});y.client=v;v=y.user||{};J.enableSafetyMode&&(v=Object.assign({},v,{enableSafetyMode:!0}));J.pageId&&(v=Object.assign({},v,{onBehalfOfUser:J.pageId}));y.user=v;v=J.ZE;J.X("embeds_web_enable_iframe_api_send_full_embed_url")||J.X("embeds_web_enable_rcat_validation_in_havs")||J.X("embeds_enable_autoplay_and_visibility_signals")||!v||(y.thirdParty={embedUrl:v});return y}; RB2=function(J,y,v){var d=J.videoId,P=g.V7(J),A=J.Y(),T={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(OO()),referer:document.location.toString(),signatureTimestamp:20265};g.I4();J.isAutonav&&(T.autonav=!0);g.pR(0,141)&&(T.autonavState=g.pR(0,140)?"STATE_OFF":"STATE_ON");T.autoCaptionsDefaultOn=g.pR(0,66);mGP(J)&&(T.autoplay=!0);A.B&&J.cycToken&&(T.cycToken=J.cycToken);A.enablePrivacyFilter&&(T.enablePrivacyFilter=!0);J.isFling&&(T.fling=!0);var M=J.forceAdsUrl;if(M){var n={},Y=[];M= M.split(",");M=g.D(M);for(var S=M.next();!S.done;S=M.next()){S=S.value;var V=S.split("|");V.length!==3||S.includes("=")||(V[0]="breaktype="+V[0],V[1]="offset="+V[1],V[2]="url="+V[2]);S={adtype:"video_ad"};V=g.D(V);for(var L=V.next();!L.done;L=V.next()){var t=g.D(L.value.split("="));L=t.next().value;t=AcP(t);S[L]=t.join("=")}V=S.url;L=S.presetad;t=S.viralresponseurl;var W=Number(S.campaignid);if(S.adtype==="in_display_ad")V&&(n.url=V),L&&(n.presetAd=L),t&&(n.viralAdResponseUrl=t),W&&(n.viralCampaignId= String(W));else if(S.adtype==="video_ad"){var c={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(S.offset)||0)}};if(S=iGH[S.breaktype])c.breakType=S;V&&(c.url=V);L&&(c.presetAd=L);t&&(c.viralAdResponseUrl=t);W&&(c.viralCampaignId=String(W));Y.push(c)}}T.forceAdParameters={videoAds:Y,inDisplayAd:n}}J.isInlinePlaybackNoAd&&(T.isInlinePlaybackNoAd=!0);J.isLivingRoomDeeplink&&(T.isLivingRoomDeeplink=!0);n=J.nI;if(n!=null){n={startWalltime:String(n)};if(Y=J.BY)n.manifestDuration=String(Y||14400); T.liveContext=n}if(J.mutedAutoplay){T.mutedAutoplay=!0;n=A.getWebPlayerContextConfig();var b,B;(n==null?0:(b=n.embedsHostFlags)==null?0:b.allowMutedAutoplayDurationMode)&&(n==null?0:(B=n.embedsHostFlags)==null?0:B.allowMutedAutoplayDurationMode.includes(uPr[J.mutedAutoplayDurationMode]))&&(T.mutedAutoplayDurationMode=uPr[J.mutedAutoplayDurationMode])}if(J.M1?0:J.ER)T.splay=!0;b=J.vnd;b===5&&(T.vnd=b);b={};if(B=J.isMdxPlayback)b.triggeredByMdx=B;if(B=J.UZ)b.skippableAdsSupported=B.split(",").includes("ska"); if(Y=J.eh){B=J.zd;n=[];Y=g.D(TaR(Y));for(M=Y.next();!M.done;M=Y.next()){M=M.value;S=M.platform;M={applicationState:M.tq?"INACTIVE":"ACTIVE",clientFormFactor:HG3[S]||"UNKNOWN_FORM_FACTOR",clientName:MJj[M.Di]||"UNKNOWN_INTERFACE",clientVersion:M.deviceVersion||"",platform:XuH[S]||"UNKNOWN_PLATFORM"};S={};if(B){V=void 0;try{V=JSON.parse(B)}catch(C){g.ev(C)}V&&(S={params:[{key:"ms",value:V.ms}]},V.advertising_id&&(S.advertisingId=V.advertising_id),V.limit_ad_tracking!==void 0&&V.limit_ad_tracking!== null&&(S.limitAdTracking=V.limit_ad_tracking),M.osName=V.os_name,M.userAgent=V.user_agent,M.windowHeightPoints=V.window_height_points,M.windowWidthPoints=V.window_width_points)}n.push({adSignalsInfo:S,remoteClient:M})}b.remoteContexts=n}B=J.sourceContainerPlaylistId;n=J.serializedMdxMetadata;if(B||n)Y={},B&&(Y.mdxPlaybackContainerInfo={sourceContainerPlaylistId:B}),n&&(Y.serializedMdxMetadata=n),b.mdxPlaybackSourceContext=Y;T.mdxContext=b;b=y.width;b>0&&(T.playerWidthPixels=Math.round(b));if(y=y.height)T.playerHeightPixels= Math.round(y);v!==0&&(T.vis=v);if(v=A.widgetReferrer)T.widgetReferrer=v.substring(0,128);g.un(A)&&T&&(T.ancestorOrigins=A.ancestorOrigins);J.defaultActiveSourceVideoId&&(T.compositeVideoContext={defaultActiveSourceVideoId:J.defaultActiveSourceVideoId});if(A=A.getWebPlayerContextConfig())T.encryptedHostFlags=A.encryptedHostFlags;d={videoId:d,context:P,playbackContext:{contentPlaybackContext:T}};if(J.t7){var q;d.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(q=J.t7)==null?void 0:q.reloadPlaybackParams}}J.contentCheckOk&& (d.contentCheckOk=!0);if(q=J.clientPlaybackNonce)d.cpn=q;if(q=J.playerParams)d.params=q;if(q=J.playlistId)d.playlistId=q;J.racyCheckOk&&(d.racyCheckOk=!0);q=J.Y();if(P=q.embedConfig)d.serializedThirdPartyEmbedConfig=P;d.captionParams={};P=g.pR(g.I4(),65);J.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=J.deviceCaptionsOn:g.nh(q)&&(d.captionParams.deviceCaptionsOn=P!=null?!P:!1);J.OO&&(d.captionParams.deviceCaptionsLangPref=J.OO);J.vt.length?d.captionParams.viewerSelectedCaptionLangs=J.vt: g.nh(q)&&(P=g.tx(),P==null?0:P.length)&&(d.captionParams.viewerSelectedCaptionLangs=P);P=J.fetchType==="onesie"&&J.X("html5_onesie_attach_po_token");T=J.fetchType!=="onesie"&&J.X("html5_non_onesie_attach_po_token");if(P||T)P=J.Y(),P.TP&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=P.TP);q.X("fetch_att_independently")&&(d.attestationRequest={omitBotguardData:!0});d.playbackContext||(d.playbackContext={});d.playbackContext.devicePlaybackCapabilities=N6U(J);d.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== !1&&J.dj("noVp9",{});return d}; N6U=function(J){var y=!(J==null?0:J.PP())&&(J==null?void 0:J.jH())&&ZZ(),v;if(!(v=J==null)){v=g.DL(J);J=J.Y().V;var d=gE("243");v=!(d&&$i(v,d,J,!0)===!0)}return{supportsVp9Encoding:!(v||y),supportXhr:VJ}}; zB3=function(J,y){var v,d,P;return g.f(function(A){if(A.T==1)return v={context:g.SM(J.Y()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:J.videoId,cpn:J.clientPlaybackNonce}}]},d=g.kZ(KVH),g.h(A,g.rQ(y,v,d),2);P=A.C;return A.return(P)})}; kkU=function(J,y,v){var d=g.Zo(y.experiments,"bg_vm_reinit_threshold");(!ZD||(0,g.GC)()-ZD>d)&&zB3(J,v).then(function(P){P&&(P=P.botguardData)&&g.Jx(P,y)},function(P){J.tY()||(P=VS(P),J.dj("attf",P.details))})}; L5=function(J,y){g.u.call(this);this.app=J;this.state=y}; Wp=function(J,y,v){J.state.C.hasOwnProperty(y)||tQ(J,y,v);J.state.G[y]=function(){return v.apply(J,g.iR.apply(0,arguments))}; J.state.L.add(y)}; as=function(J,y,v){J.state.C.hasOwnProperty(y)||tQ(J,y,v);J.app.Y().B&&(J.state.B[y]=function(){return v.apply(J,g.iR.apply(0,arguments))},J.state.L.add(y))}; tQ=function(J,y,v){J.state.C[y]=function(){return v.apply(J,g.iR.apply(0,arguments))}}; g.xt=function(J,y,v){return J.state.C[y].apply(J.state.C,g.r(v))}; OH=function(){g.GY.call(this);this.V=new Map}; gx=function(){g.u.apply(this,arguments);this.element=null;this.L=new Set;this.G={};this.B={};this.C={};this.K=new Set;this.J=new OH;this.T=new OH;this.W=new OH;this.V=new OH}; EL6=function(J,y,v){typeof J==="string"&&(J={mediaContentUrl:J,startSeconds:y,suggestedQuality:v});a:{if((y=J.mediaContentUrl)&&(y=/\/([ve]|embed)\/([^#?]+)/.exec(y))&&y[2]){y=y[2];break a}y=null}J.videoId=y;return DF(J)}; DF=function(J,y,v){if(typeof J==="string")return{videoId:J,startSeconds:y,suggestedQuality:v};y={};v=g.D(QR3);for(var d=v.next();!d.done;d=v.next())d=d.value,J[d]&&(y[d]=J[d]);return y}; ZGP=function(J,y,v,d){if(g.AO(J)&&!Array.isArray(J)){y="playlist list listType index startSeconds suggestedQuality".split(" ");v={};for(d=0;d32&&d.push("hfr");y.isHdr()&&d.push("hdr");y.primaries==="bt2020"&&d.push("wcg");v.video_quality_features=d}}if(J=J.getPlaylistId())v.list=J;return v}; jM=function(){cp.apply(this,arguments)}; eM=function(J,y){var v={};if(J.app.Y().Cy){J=g.D(vxR);for(var d=J.next();!d.done;d=J.next())d=d.value,y.hasOwnProperty(d)&&(v[d]=y[d]);if(y=v.qoe_cat)J="",typeof y==="string"&&y.length>0&&(J=y.split(",").filter(function(P){return d3H.includes(P)}).join(",")),v.qoe_cat=J; PYx(v)}else for(J=g.D(APm),d=J.next();!d.done;d=J.next())d=d.value,y.hasOwnProperty(d)&&(v[d]=y[d]);return v}; PYx=function(J){var y=J.raw_player_response;if(!y){var v=J.player_response;v&&(y=JSON.parse(v))}delete J.player_response;delete J.raw_player_response;if(y){J.raw_player_response={streamingData:y.streamingData,playerConfig:y.playerConfig};var d;if((d=y.playbackTracking)==null?0:d.qoeUrl)J.raw_player_response=Object.assign({},J.raw_player_response,{playbackTracking:{qoeUrl:y.playbackTracking.qoeUrl}});y.videoDetails&&(y.videoDetails.videoId||y.videoDetails.lengthSeconds)&&(v={},y.videoDetails.videoId&& (v.videoId=y.videoDetails.videoId),y.videoDetails.lengthSeconds&&(v.lengthSeconds=y.videoDetails.lengthSeconds),J.raw_player_response=Object.assign({},J.raw_player_response,{videoDetails:v}))}}; mx=function(J,y,v){var d=J.app.T4(v);if(!d)return 0;J=d-J.app.getCurrentTime(v);return y-J}; lDR=function(J){var y=y===void 0?5:y;return J?TUx[J]||y:y}; g.Bp=function(){jM.apply(this,arguments)}; MWU=function(J){tQ(J,"getInternalApiInterface",J.getInternalApiInterface);tQ(J,"addEventListener",J.Df);tQ(J,"removeEventListener",J.nZW);tQ(J,"cueVideoByPlayerVars",J.Oi);tQ(J,"loadVideoByPlayerVars",J.Mp);tQ(J,"preloadVideoByPlayerVars",J.H0Y);tQ(J,"getAdState",J.getAdState);tQ(J,"sendAbandonmentPing",J.sendAbandonmentPing);tQ(J,"setLoopRange",J.setLoopRange);tQ(J,"getLoopRange",J.getLoopRange);tQ(J,"setAutonavState",J.setAutonavState);tQ(J,"seekTo",J.pRy);tQ(J,"seekBy",J.kgK);tQ(J,"seekToLiveHead", J.seekToLiveHead);tQ(J,"requestSeekToWallTimeSeconds",J.requestSeekToWallTimeSeconds);tQ(J,"seekToStreamTime",J.seekToStreamTime);tQ(J,"startSeekCsiAction",J.startSeekCsiAction);tQ(J,"getStreamTimeOffset",J.getStreamTimeOffset);tQ(J,"getVideoData",J.TF);tQ(J,"setInlinePreview",J.setInlinePreview);tQ(J,"getAppState",J.getAppState);tQ(J,"updateLastActiveTime",J.updateLastActiveTime);tQ(J,"setBlackout",J.setBlackout);tQ(J,"setUserEngagement",J.setUserEngagement);tQ(J,"updateSubtitlesUserSettings",J.updateSubtitlesUserSettings); tQ(J,"getPresentingPlayerType",J.X_);tQ(J,"canPlayType",J.canPlayType);tQ(J,"updatePlaylist",J.updatePlaylist);tQ(J,"updateVideoData",J.updateVideoData);tQ(J,"updateEnvironmentData",J.updateEnvironmentData);tQ(J,"sendVideoStatsEngageEvent",J.EZk);tQ(J,"productsInVideoVisibilityUpdated",J.productsInVideoVisibilityUpdated);tQ(J,"setSafetyMode",J.setSafetyMode);tQ(J,"isAtLiveHead",function(y){return J.isAtLiveHead(void 0,y)}); tQ(J,"getVideoAspectRatio",J.getVideoAspectRatio);tQ(J,"getPreferredQuality",J.getPreferredQuality);tQ(J,"getPlaybackQualityLabel",J.getPlaybackQualityLabel);tQ(J,"setPlaybackQualityRange",J.HjY);tQ(J,"onAdUxClicked",J.onAdUxClicked);tQ(J,"getFeedbackProductData",J.getFeedbackProductData);tQ(J,"getStoryboardFrame",J.getStoryboardFrame);tQ(J,"getStoryboardFrameIndex",J.getStoryboardFrameIndex);tQ(J,"getStoryboardLevel",J.getStoryboardLevel);tQ(J,"getNumberOfStoryboardLevels",J.getNumberOfStoryboardLevels); tQ(J,"getCaptionWindowContainerId",J.getCaptionWindowContainerId);tQ(J,"getAvailableQualityLabels",J.getAvailableQualityLabels);tQ(J,"addCueRange",J.addCueRange);tQ(J,"addUtcCueRange",J.addUtcCueRange);tQ(J,"showAirplayPicker",J.showAirplayPicker);tQ(J,"dispatchReduxAction",J.dispatchReduxAction);tQ(J,"getPlayerResponse",J.Fj);tQ(J,"getWatchNextResponse",J.oZ);tQ(J,"getHeartbeatResponse",J.Uz);tQ(J,"getCurrentTime",J.N6);tQ(J,"getDuration",J.bL);tQ(J,"getPlayerState",J.getPlayerState);tQ(J,"getPlayerStateObject", J.KI);tQ(J,"getVideoLoadedFraction",J.getVideoLoadedFraction);tQ(J,"getProgressState",J.getProgressState);tQ(J,"getVolume",J.getVolume);tQ(J,"setVolume",J.uW);tQ(J,"isMuted",J.isMuted);tQ(J,"mute",J.mA);tQ(J,"unMute",J.OP);tQ(J,"loadModule",J.loadModule);tQ(J,"unloadModule",J.unloadModule);tQ(J,"getOption",J.Mz);tQ(J,"getOptions",J.getOptions);tQ(J,"setOption",J.setOption);tQ(J,"loadVideoById",J.JJ);tQ(J,"loadVideoByUrl",J.AJ);tQ(J,"playVideo",J.UA);tQ(J,"loadPlaylist",J.loadPlaylist);tQ(J,"nextVideo", J.nextVideo);tQ(J,"previousVideo",J.previousVideo);tQ(J,"playVideoAt",J.playVideoAt);tQ(J,"getDebugText",J.getDebugText);tQ(J,"getWebPlayerContextConfig",J.getWebPlayerContextConfig);tQ(J,"notifyShortsAdSwipeEvent",J.notifyShortsAdSwipeEvent);tQ(J,"getVideoContentRect",J.getVideoContentRect);tQ(J,"setSqueezeback",J.setSqueezeback);tQ(J,"toggleSubtitlesOn",J.toggleSubtitlesOn);tQ(J,"isSubtitlesOn",J.isSubtitlesOn);tQ(J,"reportPlaybackIssue",J.reportPlaybackIssue);tQ(J,"setAutonav",J.setAutonav);tQ(J, "isNotServable",J.isNotServable);tQ(J,"channelSubscribed",J.channelSubscribed);tQ(J,"channelUnsubscribed",J.channelUnsubscribed);tQ(J,"togglePictureInPicture",J.togglePictureInPicture);tQ(J,"supportsGaplessAudio",J.supportsGaplessAudio);tQ(J,"supportsGaplessShorts",J.supportsGaplessShorts);tQ(J,"enqueueVideoByPlayerVars",function(y){return void J.enqueueVideoByPlayerVars(y)}); tQ(J,"clearQueue",J.clearQueue);tQ(J,"getAudioTrack",J.h4);tQ(J,"setAudioTrack",J.SHx);tQ(J,"getAvailableAudioTracks",J.Xj);tQ(J,"getMaxPlaybackQuality",J.getMaxPlaybackQuality);tQ(J,"getUserPlaybackQualityPreference",J.getUserPlaybackQualityPreference);tQ(J,"getSubtitlesUserSettings",J.getSubtitlesUserSettings);tQ(J,"resetSubtitlesUserSettings",J.resetSubtitlesUserSettings);tQ(J,"setMinimized",J.setMinimized);tQ(J,"setOverlayVisibility",J.setOverlayVisibility);tQ(J,"confirmYpcRental",J.confirmYpcRental); tQ(J,"queueNextVideo",J.queueNextVideo);tQ(J,"handleExternalCall",J.handleExternalCall);tQ(J,"logApiCall",J.logApiCall);tQ(J,"isExternalMethodAvailable",J.isExternalMethodAvailable);tQ(J,"setScreenLayer",J.setScreenLayer);tQ(J,"getCurrentPlaylistSequence",J.getCurrentPlaylistSequence);tQ(J,"getPlaylistSequenceForTime",J.getPlaylistSequenceForTime);tQ(J,"shouldSendVisibilityState",J.shouldSendVisibilityState);tQ(J,"syncVolume",J.syncVolume);tQ(J,"highlightSettingsMenuItem",J.highlightSettingsMenuItem); tQ(J,"openSettingsMenuItem",J.openSettingsMenuItem);tQ(J,"getEmbeddedPlayerResponse",J.getEmbeddedPlayerResponse);tQ(J,"getVisibilityState",J.getVisibilityState);tQ(J,"isMutedByMutedAutoplay",J.isMutedByMutedAutoplay);tQ(J,"isMutedByEmbedsMutedAutoplay",J.isMutedByEmbedsMutedAutoplay);tQ(J,"setGlobalCrop",J.setGlobalCrop);tQ(J,"setInternalSize",J.setInternalSize);tQ(J,"setFauxFullscreen",J.setFauxFullscreen);tQ(J,"setAppFullscreen",J.setAppFullscreen)}; rx=function(J,y,v){J=g.qr(J.G4(),y);return v?(v.addOnDisposeCallback(J),null):J}; g.$t=function(J,y,v){return J.app.Y().QE?y:g.yY("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:y,SHORTCUT:v})}; nxj=function(J){J.G4().element.setAttribute("aria-live","polite")}; g.os=function(J,y){g.Bp.call(this,J,y);MWU(this);as(this,"addEventListener",this.rH);as(this,"removeEventListener",this.l8y);as(this,"cueVideoByPlayerVars",this.GT);as(this,"loadVideoByPlayerVars",this.hP);as(this,"preloadVideoByPlayerVars",this.XFy);as(this,"loadVideoById",this.JJ);as(this,"loadVideoByUrl",this.AJ);as(this,"playVideo",this.UA);as(this,"loadPlaylist",this.loadPlaylist);as(this,"nextVideo",this.nextVideo);as(this,"previousVideo",this.previousVideo);as(this,"playVideoAt",this.playVideoAt); as(this,"getVideoData",this.Z7);as(this,"seekBy",this.WLj);as(this,"seekTo",this.tCW);as(this,"showControls",this.showControls);as(this,"hideControls",this.hideControls);as(this,"cancelPlayback",this.cancelPlayback);as(this,"getProgressState",this.getProgressState);as(this,"isInline",this.isInline);as(this,"setInline",this.setInline);as(this,"setLoopVideo",this.setLoopVideo);as(this,"getLoopVideo",this.getLoopVideo);as(this,"getVideoContentRect",this.getVideoContentRect);as(this,"getVideoStats",this.AZ); as(this,"getCurrentTime",this.Re);as(this,"getDuration",this.bL);as(this,"getPlayerState",this.iH);as(this,"getVideoLoadedFraction",this.JZ);as(this,"mute",this.mA);as(this,"unMute",this.OP);as(this,"setVolume",this.uW);as(this,"loadModule",this.loadModule);as(this,"unloadModule",this.unloadModule);as(this,"getOption",this.Mz);as(this,"getOptions",this.getOptions);as(this,"setOption",this.setOption);as(this,"addCueRange",this.addCueRange);as(this,"getDebugText",this.getDebugText);as(this,"getStoryboardFormat", this.getStoryboardFormat);as(this,"toggleFullscreen",this.toggleFullscreen);as(this,"isFullscreen",this.isFullscreen);as(this,"getPlayerSize",this.getPlayerSize);as(this,"toggleSubtitles",this.toggleSubtitles);as(this,"setCenterCrop",this.setCenterCrop);as(this,"setFauxFullscreen",this.setFauxFullscreen);as(this,"setSizeStyle",this.setSizeStyle);as(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);as(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);JP3(this)}; g.C5=function(J){J=J.un();var y=J.nj.get("endscreen");return y&&y.Fh()?!0:J.Qs()}; g.hQ=function(J,y){J.getPresentingPlayerType()===3?J.publish("mdxautoplaycancel"):J.Rf("onAutonavCancelled",y)}; g.p5=function(J){var y=Is(J.un());return J.app.M$&&!J.isFullscreen()||J.getPresentingPlayerType()===3&&y&&y.Nk()&&y.JQ()||!!J.getPlaylist()}; g.UH=function(J,y){g.xt(J,"addEmbedsConversionTrackingParams",[y])}; g.uf=function(J){return(J=g.f5(J.un()))?J.Qc():{}}; g.skU=function(J){J=(J=J.getVideoData())&&J.T;return!!J&&!(!J.audio||!J.video)&&J.mimeType!=="application/x-mpegURL"}; g.Hp=function(J,y,v){J=J.DB().element;var d=X_(J.children,function(P){P=Number(P.getAttribute("data-layer"));return v-P||1}); d<0&&(d=-(d+1));xk(J,y,d);y.setAttribute("data-layer",String(v))}; g.X$=function(J){var y=J.Y();if(!y.DO)return!1;var v=J.getVideoData();if(!v||J.getPresentingPlayerType()===3)return!1;var d=(!v.isLiveDefaultBroadcast||y.X("allow_poltergust_autoplay"))&&!Mr(v);d=v.isLivePlayback&&(!y.X("allow_live_autoplay")||!d);var P=v.isLivePlayback&&y.X("allow_live_autoplay_on_mweb");J=J.getPlaylist();J=!!J&&J.Nk();var A=v.cX&&v.cX.playerOverlays||null;A=!!(A&&A.playerOverlayRenderer&&A.playerOverlayRenderer.autoplay);A=v.vR&&A;return!v.ypcPreview&&(!d||P)&&!g.cq(v.Cy,"ypc")&& !J&&(!g.un(y)||A)}; S8j=function(J,y){J=Y8m(J.app.vO().V);J=g.D(J);for(var v=J.next();!v.done;v=J.next()){v=v.value;var d=v.getAvailableAudioTracks(),P=null;d=g.D(d);for(var A=d.next();!A.done;A=d.next())if(A=A.value,A.getLanguageInfo().getId()===y){P=A;break}P&&v.hG(P,!0)}}; Nr=function(){CR.apply(this,arguments);this.requestHeaders={}}; K5=function(){Rs||(Rs=new Nr);return Rs}; z9=function(J,y){y?J.requestHeaders.Authorization="Bearer "+y:delete J.requestHeaders.Authorization}; g.kt=function(J){g.u.call(this);var y=this;this.lA=J;this.b6={Wg:function(){return y.lA}}}; g.EH=function(J,y,v,d){d=d===void 0?!1:d;g.T_.call(this,y);var P=this;this.S=J;this.AY=d;this.B=new g.gf(this);this.fade=new g.Ex(this,v,!0,void 0,void 0,function(){P.sV()}); g.X(this,this.B);g.X(this,this.fade)}; Q7=function(J){var y=J.S.getRootNode();return J.S.X("web_watch_pip")||J.S.X("web_shorts_pip")?Jb(y):document}; VWR=function(J){J.T&&(document.activeElement&&g.gs(J.element,document.activeElement)&&J.T.focus(),J.T.setAttribute("aria-expanded","false"),J.T=void 0);g.j$(J.B);J.K=void 0}; ZF=function(J,y,v){J.Mo()?J.p8():J.OS(y,v)}; wx=function(J,y,v,d){d=new g.z({j:"div",kB:["ytp-linked-account-popup-button"],TK:d,U:{role:"button",tabindex:"0"}});y=new g.z({j:"div",N:"ytp-linked-account-popup",U:{role:"dialog","aria-modal":"true",tabindex:"-1"},D:[{j:"div",N:"ytp-linked-account-popup-title",TK:y},{j:"div",N:"ytp-linked-account-popup-description",TK:v},{j:"div",N:"ytp-linked-account-popup-buttons",D:[d]}]});g.EH.call(this,J,{j:"div",N:"ytp-linked-account-popup-container",D:[y]},100);var P=this;this.dialog=y;g.X(this,this.dialog); d.listen("click",function(){P.p8()}); g.X(this,d);g.Hp(this.S,this.element,4);this.hide()}; g.yP=function(J,y,v,d){g.T_.call(this,J);this.priority=y;v&&g.J_(this,v);d&&this.D1(d)}; g.vy=function(J,y,v,d){J=J===void 0?{}:J;y=y===void 0?[]:y;v=v===void 0?!1:v;d=d===void 0?!1:d;y.push("ytp-menuitem");var P=J;"role"in P||(P.role="menuitem");v||(P=J,"tabindex"in P||(P.tabindex="0"));J={j:v?"a":"div",kB:y,U:J,D:[{j:"div",N:"ytp-menuitem-icon",TK:"{{icon}}"},{j:"div",N:"ytp-menuitem-label",TK:"{{label}}"},{j:"div",N:"ytp-menuitem-content",TK:"{{content}}"}]};d&&J.D.push({j:"div",N:"ytp-menuitem-secondary-icon",TK:"{{secondaryIcon}}"});return J}; g.J_=function(J,y){J.updateValue("label",y)}; dw=function(J){g.yP.call(this,g.vy({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var y=this;this.S=J;this.T=this.C=!1;this.A9=J.fN();J.createServerVe(this.element,this,!0);this.Z(this.S,"settingsMenuVisibilityChanged",function(v){y.v$(v)}); this.Z(this.S,"videodatachange",this.W);this.listen("click",this.onClick);this.W()}; Py=function(J){return J?g.nf(J):""}; A_=function(J){g.u.call(this);this.api=J}; Td=function(J){A_.call(this,J);var y=this;tQ(J,"setAccountLinkState",function(v){y.setAccountLinkState(v)}); tQ(J,"updateAccountLinkingConfig",function(v){y.updateAccountLinkingConfig(v)}); J.addEventListener("videodatachange",function(v,d){y.onVideoDataChange(d)}); J.addEventListener("settingsMenuInitialized",function(){y.menuItem=new dw(y.api);g.X(y,y.menuItem)})}; LBx=function(J){this.api=J;this.C={}}; l_=function(J,y,v,d){y in J.C||(v=new g.uI(v,d,{id:y,priority:2,namespace:"appad"}),J.api.PF([v],1),J.C[y]=v)}; Mq=function(J){A_.call(this,J);var y=this;this.events=new g.gf(this);g.X(this,this.events);this.C=new LBx(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){y.C.C={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(v){var d=y.C;l_(d,"part2viewed",1,0x8000000000000);l_(d,"engagedview",Math.max(1,v.aG*1E3),0x8000000000000);if(!v.isLivePlayback){var P=v.lengthSeconds*1E3;Wh(v)&&d.api.X("html5_shorts_gapless_ads_duration_fix")&&(P=d.api.getProgressState().seekableEnd*1E3-v.c8);l_(d,"videoplaytime25",P*.25,P);l_(d,"videoplaytime50",P*.5,P);l_(d,"videoplaytime75",P*.75,P);l_(d,"videoplaytime100",P,0x8000000000000);l_(d,"conversionview",P,0x8000000000000); l_(d,"videoplaybackstart",1,P);l_(d,"videoplayback2s",2E3,P);l_(d,"videoplayback10s",1E4,P)}}); this.events.Z(this.api,g.Xz("appad"),this.T);this.events.Z(this.api,g.NA("appad"),this.T)}; x32=function(J,y,v){if(!(v in y))return!1;y=y[v];Array.isArray(y)||(y=[y]);y=g.D(y);for(v=y.next();!v.done;v=y.next()){v=v.value;var d={CPN:J.api.getVideoData().clientPlaybackNonce};v=g.m5(v,d);d=void 0;d=d===void 0?!1:d;(d=hv(Iw(v,tWU),v,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=hv(Iw(v,WBH),v,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=hv(Iw(v,aDx),v,d,"Nielsen OCR URL"));g.$W(v,void 0,d)}return!0}; n8=function(J,y){OYH(J,y).then(function(v){g.$W(y,void 0,void 0,v)})}; sm=function(J,y){y.forEach(function(v){n8(J,v)})}; OYH=function(J,y){return g.Sb(J.api.Y())&&To(y)&&AN(y)?g.xo(J.api.Y(),g.ZL(J.api.getVideoData())).then(function(v){var d;v&&(d={Authorization:"Bearer "+v});return d},void 0):B0()}; gx3=function(J){A_.call(this,J);this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"videoready",function(y){if(J.getPresentingPlayerType()===1){var v,d,P={playerDebugData:{pmlSignal:!!((v=y.getPlayerResponse())==null?0:(d=v.adPlacements)==null?0:d.some(function(A){var T;return A==null?void 0:(T=A.adPlacementRenderer)==null?void 0:T.renderer})), contentCpn:y.clientPlaybackNonce}};g.AW("adsClientStateChange",P)}})}; Yq=function(J){g.z.call(this,{j:"button",kB:["ytp-button","ytp-autonav-toggle"],U:{title:"{{title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},D:[{j:"div",N:"ytp-autonav-toggle-button-container",D:[{j:"div",N:"ytp-autonav-toggle-button",U:{"aria-checked":"true"}}]}]});this.S=J;this.T=[];this.C=!1;this.isChecked=!0;J.createClientVe(this.element,this,113681);this.Z(J,"presentingplayerstatechange",this.iS);this.listen("click",this.onClick);this.S.Y().X("web_player_autonav_toggle_always_listen")&& D3v(this);rx(J,this.element,this);this.iS()}; D3v=function(J){J.T.push(J.Z(J.S,"videodatachange",J.iS));J.T.push(J.Z(J.S,"videoplayerreset",J.iS));J.T.push(J.Z(J.S,"onPlaylistUpdate",J.iS));J.T.push(J.Z(J.S,"autonavchange",J.G2))}; cP2=function(J){J.isChecked=J.isChecked;J.uA("ytp-autonav-toggle-button").setAttribute("aria-checked",String(J.isChecked));var y=J.isChecked?"Reproducci\u00f3n autom\u00e1tica activada":"Reproducci\u00f3n autom\u00e1tica desactivada";J.updateValue("title",y);J.updateValue("label",y);J.S.O3()}; GO2=function(J){return J.S.Y().X("web_player_autonav_use_server_provided_state")&&sP(J.di())}; bYr=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"standardControlsInitialized",function(){var v=new Yq(J);g.X(y,v);J.Tc(v,"RIGHT_CONTROLS_LEFT")})}; Sk=function(J,y){g.yP.call(this,g.vy({role:"menuitemcheckbox","aria-checked":"false"}),y,J,{j:"div",N:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; VP=function(J,y){J.checked=y;J.element.setAttribute("aria-checked",String(J.checked))}; FBx=function(J){var y=!J.Y().nE&&J.getPresentingPlayerType()!==3;return J.isFullscreen()||y}; g.L8=function(J,y,v,d){var P=J.currentTarget;if((v===void 0||!v)&&g.O0(J))return J.preventDefault(),!0;y.pauseVideo();J=P.getAttribute("href");g.pa(J,d,!0);return!1}; g.t_=function(J,y,v){if(Tx(y.Y())&&y.getPresentingPlayerType()!==2){if(g.O0(v))return y.isFullscreen()&&!y.Y().externalFullscreen&&y.toggleFullscreen(),v.preventDefault(),!0}else{var d=g.O0(v);d&&y.pauseVideo();g.pa(J,void 0,!0);d&&(g.U0(J),v.preventDefault())}return!1}; jk6=function(J){J=Wy.includes("es-419")?J.X("delhi_modern_web_player_icons")?tl():{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,U:{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"}}]}:J.X("delhi_modern_web_player_icons")?C$U():{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,U:{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"}}]};J.N="ytp-subtitles-button-icon"; return J}; eOr=function(J){return Wy.includes("es-419")?J?tl():{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:J?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; av=function(){return{j:"div",N:"ytp-spinner-container",D:[{j:"div",N:"ytp-spinner-rotator",D:[{j:"div",N:"ytp-spinner-left",D:[{j:"div",N:"ytp-spinner-circle"}]},{j:"div",N:"ytp-spinner-right",D:[{j:"div",N:"ytp-spinner-circle"}]}]}]}}; xq=function(J){if(document.createRange){var y=document.createRange();y&&(y.selectNodeContents(J),J=window.getSelection())&&(J.removeAllRanges(),J.addRange(y))}}; Dg=function(J){var y=J.X("web_player_use_cinematic_label_2")?"Modo ambiente":"Iluminaci\u00f3n cinematogr\u00e1fica";Sk.call(this,y,g.Om.Xt);var v=this;this.S=J;this.C=!1;this.T=new g.Kx(function(){g.AZ(v.element,"ytp-menuitem-highlighted")},0); this.A9=J.fN();J=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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(J);this.subscribe("select",this.J,this);this.listen(gw,this.W);g.X(this,this.T)}; cy=function(J){A_.call(this,J);var y=this;this.C=!1;J.addEventListener("settingsMenuInitialized",function(){m3U(y)}); J.addEventListener("highlightSettingsMenu",function(v){m3U(y);var d=y.menuItem;v==="menu_item_cinematic_lighting"&&(g.d7(d.element,"ytp-menuitem-highlighted"),g.d7(d.element,"ytp-menuitem-highlight-transition-enabled"),d.T.start())}); tQ(J,"updateCinematicSettings",function(v){y.updateCinematicSettings(v)})}; m3U=function(J){J.menuItem||(J.menuItem=new Dg(J.api),g.X(J,J.menuItem),J.menuItem.Mx(J.C))}; BUr=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"applicationvideodatachange",function(v,d){d=d.clipConfig;v==="dataloaded"&&d&&d.startTimeMs!=null&&d.endTimeMs!=null&&y.api.setLoopRange({startTimeMs:Math.floor(Number(d.startTimeMs)),endTimeMs:Math.floor(Number(d.endTimeMs)),postId:d.postId,type:"clips"})})}; Gd=function(J){A_.call(this,J);this.events=new g.gf(J);g.X(this,this.events);tQ(J,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));tQ(J,"setCreatorEndscreenHideButton",this.C.bind(this))}; b_=function(J,y,v,d){Sk.call(this,"Volumen estable",g.Om.jR);g.d7(this.element,"ytp-drc-menu-item");this.A9=J.fN();this.J=y;this.C=v;this.hasDrcAudioTrack=d;J.addEventListener("videodatachange",this.T.bind(this));J.X("mta_drc_mutual_exclusion_removal")&&this.Z(J,"onPlaybackAudioChange",this.T);y=this.C()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());J=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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(J);this.subscribe("select",this.W,this);VP(this,y);this.A9.Wq(this)}; FY=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);J.X("html5_show_drc_toggle")&&J.addEventListener("settingsMenuInitialized",function(){y.menuItem||(y.menuItem=new b_(y.api,y.setDrcUserPreference.bind(y),y.getDrcUserPreference.bind(y),y.T.bind(y)),g.X(y,y.menuItem))}); tQ(this.api,"setDrcUserPreference",function(d){y.setDrcUserPreference(d)}); tQ(this.api,"getDrcUserPreference",function(){return y.getDrcUserPreference()}); tQ(this.api,"hasDrcAudioTrack",function(){return y.T()}); var v;this.C=(v=g.qW("yt-player-drc-pref"))!=null?v:1;this.updateEnvironmentData()}; jk=function(J){A_.call(this,J);var y=this;this.C={};this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"videodatachange",function(){y.onVideoDataChange()}); this.events.Z(J,g.Xz("embargo"),function(v){y.api.D5(!0);var d,P=(d=y.C[v.id])!=null?d:[];d=g.D(P);for(P=d.next();!P.done;P=d.next()){var A=P.value;y.api.hideControls();y.api.q1("auth",2,"This video isn't available in your current playback area",sy({embargoed:1,id:v.id,idx:v.T,start:v.start}));P=void 0;(A=(P=A.embargo)==null?void 0:P.onTrigger)&&y.api.Rf("innertubeCommand",A)}})}; q8d=function(J,y){var v;return(v=y.onEnter)==null?void 0:v.some(J.T)}; rP6=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;var d=void 0,P=Number((d=v.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,A=void 0;d=P+Number((A=v.duration)==null?void 0:A.seconds);A="embargo_"+P;J.api.addUtcCueRange(A,P,d,"embargo",!1);v.onEnter&&(J.C[A]=v.onEnter.filter(J.T))}}; ek=function(J){A_.call(this,J);var y=this;this.C=[];this.events=new g.gf(J);g.X(this,this.events);tQ(J,"addEmbedsConversionTrackingParams",function(v){y.api.Y().bQ&&y.addEmbedsConversionTrackingParams(v)}); this.events.Z(J,"veClickLogged",function(v){y.api.hasVe(v)&&(v=v.visualElement.getAsJspb(),v=mG(v,2),y.C.push(v))})}; $3R=function(J){A_.call(this,J);tQ(J,"isEmbedsShortsMode",function(){return J.isEmbedsShortsMode()})}; ox6=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"initialvideodatacreated",function(v){N3(X1(),16623);y.C=g.xe();var d=J.Y().Xg&&!v.M1;if(Q1(v)&&d){N3(X1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(v.getWatchNextResponse()){var P,A=(P=v.getWatchNextResponse())==null?void 0:P.trackingParams;A&&KY(A)}if(v.getPlayerResponse()){var T;(v=(T=v.getPlayerResponse())==null?void 0:T.trackingParams)&&KY(v)}}else N3(X1(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),v.getEmbeddedPlayerResponse()&&(T=(A=v.getEmbeddedPlayerResponse())==null?void 0:A.trackingParams)&&KY(T)}); this.events.Z(J,"loadvideo",function(){N3(X1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:y.C})}); this.events.Z(J,"cuevideo",function(){N3(X1(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:y.C})}); this.events.Z(J,"largeplaybuttonclicked",function(v){N3(X1(),27240,v.visualElement)}); this.events.Z(J,"playlistnextbuttonclicked",function(v){N3(X1(),27240,v.visualElement)}); this.events.Z(J,"playlistprevbuttonclicked",function(v){N3(X1(),27240,v.visualElement)}); this.events.Z(J,"playlistautonextvideo",function(){N3(X1(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; my=function(J,y){g.u.call(this);var v=this;this.C=null;this.J=y;y=[];for(var d=0;d<=100;d++)y.push(d/100);y={threshold:y,trackVisibility:!0,delay:1E3};(this.T=window.IntersectionObserver?new IntersectionObserver(function(P){P=P[P.length-1];var A=null;typeof P.isVisible==="undefined"?document.visibilityState==="visible"&&P.isIntersecting&&P.intersectionRatio>0?A=P.intersectionRatio:document.visibilityState==="hidden"?A=0:A=null:A=P.isVisible?P.intersectionRatio:0;A!=null&&(A=Math.max(A,0),A=Math.min(A, 1));v.C=A;typeof v.J==="function"&&v.J(v.C)},y):null)&&this.T.observe(J)}; hO3=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"applicationInitialized",function(){CYc(y)})}; CYc=function(J){var y=J.api.getRootNode(),v,d=J.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((v=y.parentElement)==null?void 0:v.parentElement)||y:y;J.C=new my(d,function(P){P!=null&&(J.api.Y().Iq=P,J.api.Y().Qw="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.X(J,J.C);J.events.Z(J.api,"videoStatsPingCreated",function(P){var A=J.C;A=A.C==null?null:Math.round(A.C*100)/100;P.inview=A!=null?A:void 0;A=J.api.getPlayerSize();if(A.height>0&&A.width>0){A=[Math.round(A.width),Math.round(A.height)];var T=g.MB();T>1&&A.push(T);A=A.join(":")}else A=void 0;P.size=A})}; ID6=function(J){var y;return((y=((J==null?void 0:J.messageRenderers)||[]).find(function(v){return!!v.timeCounterRenderer}))==null?void 0:y.timeCounterRenderer)||null}; By=function(J){g.z.call(this,{j:"div",kB:["ytp-player-content","ytp-iv-player-content"],D:[{j:"div",N:"ytp-free-preview-countdown-timer",D:[{j:"span",TK:"{{label}}"},{j:"span",N:"ytp-free-preview-countdown-timer-separator",TK:"\u2022"},{j:"span",TK:"{{duration}}"}]}]});this.api=J;this.C=null;this.J=this.T=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; U33=function(J,y){J.C||(J.T=y,J.J=(0,g.GC)(),J.C=new g.R8(function(){pR3(J)},null),pR3(J))}; pR3=function(J){var y=Math,v=y.round,d=Math.min((0,g.GC)()-J.J,J.T);y=v.call(y,(J.T-d)/1E3);J.updateValue("duration",Ik({seconds:y}));y<=0&&J.C?J.stopTimer():J.C&&J.C.start()}; fDU=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"basechromeinitialized",function(){y.C=new By(J);g.X(y,y.C);g.Hp(J,y.C.element,4);y.C.hide()})}; qq=function(J){g.z.call(this,{j:"button",kB:["ytp-fullerscreen-edu-button","ytp-button"],D:[{j:"div",kB:["ytp-fullerscreen-edu-text"],TK:"Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"},{j:"div",kB:["ytp-fullerscreen-edu-chevron"],D:[{j:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},D:[{j:"path",U:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],U:{"data-priority":"2"}});this.Ly=J;this.fade=new g.Ex(this,250,void 0,100);this.T=this.C= !1;J.createClientVe(this.element,this,61214);g.X(this,this.fade);this.Z(J,"fullscreentoggled",this.Mx);this.Z(J,"presentingplayerstatechange",this.Mx);this.listen("click",this.onClick);this.Mx()}; rw=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);tQ(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){y.updateFullerscreenEduButtonSubtleModeState(d)}); tQ(this.api,"updateFullerscreenEduButtonVisibility",function(d){y.updateFullerscreenEduButtonVisibility(d)}); var v=J.Y();J.X("external_fullscreen_with_edu")&&v.externalFullscreen&&Tx(v)&&v.controlsType==="1"&&this.events.Z(J,"standardControlsInitialized",function(){y.C=new qq(J);g.X(y,y.C);J.Tc(y.C)})}; iYP=function(J){g.z.call(this,{j:"div",N:"ytp-gated-actions-overlay",D:[{j:"div",N:"ytp-gated-actions-overlay-background",D:[{j:"div",N:"ytp-gated-actions-overlay-background-overlay"}]},{j:"button",kB:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],U:{"aria-label":"Cerrar"},D:[g.Lf()]},{j:"div",N:"ytp-gated-actions-overlay-bar",D:[{j:"div",N:"ytp-gated-actions-overlay-text-container",D:[{j:"div",N:"ytp-gated-actions-overlay-title",TK:"{{title}}"},{j:"div",N:"ytp-gated-actions-overlay-subtitle", TK:"{{subtitle}}"}]},{j:"div",N:"ytp-gated-actions-overlay-button-container"}]}]});var y=this;this.api=J;this.background=this.uA("ytp-gated-actions-overlay-background");this.T=this.uA("ytp-gated-actions-overlay-button-container");this.C=[];this.Z(this.uA("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){y.api.Rf("onCloseMiniplayer")}); this.hide()}; HYR=function(J,y){var v=0;v=0;for(var d={};v P&&(P=M.width,A="url("+M.url+")")}v.background.style.backgroundImage=A;HYR(v,d.actionButtons||[]);v.show()}else v.hide()}); g.Hp(this.api,this.C.element,4)}; $q=function(J){A_.call(this,J);var y=this;as(this.api,"getSphericalProperties",function(){return y.getSphericalProperties()}); as(this.api,"setSphericalProperties",function(){y.setSphericalProperties.apply(y,g.r(g.iR.apply(0,arguments)))}); Wp(this.api,"getSphericalProperties",function(){return y.api.getPresentingPlayerType()===2?{}:y.getSphericalProperties()}); Wp(this.api,"setSphericalProperties",function(){var v=g.iR.apply(0,arguments);y.api.getPresentingPlayerType()!==2&&y.setSphericalProperties.apply(y,g.r(v))})}; ov=function(J){A_.call(this,J);tQ(J,"createClientVe",this.createClientVe.bind(this));tQ(J,"createServerVe",this.createServerVe.bind(this));tQ(J,"destroyVe",this.destroyVe.bind(this));tQ(J,"hasVe",this.hasVe.bind(this));tQ(J,"logClick",this.logClick.bind(this));tQ(J,"logVisibility",this.logVisibility.bind(this));tQ(J,"setTrackingParams",this.setTrackingParams.bind(this))}; C8=function(J,y,v,d){function P(T){var M=!(T.status!==204&&T.status!==200&&!T.response),n;T={succ:""+ +M,rc:T.status,lb:((n=T.response)==null?void 0:n.byteLength)||0,rt:((0,g.GC)()-A).toFixed(),shost:g.s1(J),trigger:y};NUx(T,J);v&&v(T);d&&!M&&d(new g.Y6("pathprobe.net",T))} var A=(0,g.GC)();g.c0(J,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:P,onTimeout:P})}; NUx=function(J,y){var v;((v=window.performance)==null?0:v.getEntriesByName)&&(y=performance.getEntriesByName(y))&&y.length&&(y=y[0],J.pedns=(y.domainLookupEnd-y.startTime).toFixed(),J.pecon=(y.connectEnd-y.domainLookupEnd).toFixed(),J.perqs=(y.requestStart-y.connectEnd).toFixed(),ROv&&(J.perqsa=y.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; KB3=function(J){ROv=J}; h_=function(J,y){this.sS=J;this.policy=y;this.playbackRate=1}; zOU=function(J,y){var v=Math.min(2.5,qe(J.sS));J=Iv(J);return y-v*J}; p8=function(J,y,v,d,P){P=P===void 0?!1:P;if(J.policy.Ku)return Math.ceil(J.policy.Ku*y);J.policy.s2&&(d=Math.abs(d));d/=J.playbackRate;var A=1/oK(J.sS);v=Math.max(.9*(d-3),qe(J.sS)+J.sS.T.C*A)/A*.8/(y+v);v=Math.min(v,d);J.policy.nE>0&&P&&(v=Math.max(v,J.policy.nE));return kOj(J,v,y)}; kOj=function(J,y,v){return Math.ceil(Math.max(Math.max(J.policy.u1,J.policy.uq*v),Math.min(Math.min(J.policy.Ek,31*v),Math.ceil(y*v))))||J.policy.u1}; Exc=function(J,y,v){v=p8(J,y.C.info.FW,v.C.info.FW,0);var d=qe(J.sS)+v/oK(J.sS);return Math.max(d,d+J.policy.Ht-v/y.C.info.FW)}; Iv=function(J){return oK(J.sS,!J.policy.zA,J.policy.iq)}; Um=function(J){return Iv(J)/J.playbackRate}; f8=function(J,y,v){var d=J.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],P=J.policy.playbackStartPolicy.startMinReadaheadPolicy||[];J=Infinity;y=g.D(y&&d.length>0?d:P);for(d=y.next();!d.done;d=y.next())d=d.value,P=d.minReadaheadMs||0,v<(d.minBandwidthBytesPerSec||0)||J>P&&(J=P);return J0&&(this.T=v.vY)}; wR3=function(J,y,v,d,P){if(!d.info.V){if(v.length===0)v.push(d);else{var A;(J=(A=v.pop())==null?void 0:g.OG(A,d))?v.push(J):v.push(d)}return P}var T;(v=(T=v.pop())==null?void 0:g.OG(T,d))||(v=d);if(v.info.T)return J.logger&&J.logger({incompleteSegment:v.info.A_()}),P;d=J.xe(v);P=d.py;d={clipId:d.clipId,formatId:d.formatId,startTimeMs:d.startTimeMs,durationMs:d.FR,zY:P,JA:P};P=Qk2(y,d.startTimeMs);if(A=v=P>=0?y[P]:null){A=d;var M=P;T=v.startTimeMs+v.durationMs;var n=A.startTimeMs+A.durationMs;if(A.startTimeMs- T>J.T)A=!1;else if(ZYd(J,v.formatId,A.formatId))v.durationMs=Math.max(T,n)-v.startTimeMs,v.JA=Math.max(v.JA,A.JA),A=!0;else if(Math.abs(v.startTimeMs-A.startTimeMs)<=J.T)if(v.durationMs>A.durationMs+J.T){var Y=v.formatId,S=v.zY;M=v.JA;v.formatId=A.formatId;v.durationMs=A.durationMs;v.zY=A.zY;v.JA=A.JA;A.formatId=Y;A.startTimeMs=n;A.durationMs=T-n;A.zY=S;A.JA=M;A=!1}else v.formatId=A.formatId,A=!0;else T>A.startTimeMs&&(T>n&&(y.splice(M+1,0,{formatId:v.formatId,startTimeMs:n,durationMs:T-n,zY:A.JA+ 1,JA:v.JA}),J.logger&&J.logger({splitOldStart:(Y=v.startTimeMs)==null?void 0:Y.toFixed(3),splitOldEnd:T==null?void 0:T.toFixed(3),splitNewStart:(S=A.startTimeMs)==null?void 0:S.toFixed(3),splitNewEnd:n==null?void 0:n.toFixed(3)})),v.durationMs=A.startTimeMs-v.startTimeMs,v.JA=A.zY-1),A=!1}A?d=v:(P+=1,y.splice(P,0,d));Y=0;for(S=P+1;S=n+v.T?v=!0:M+v.T=0?J:-J-2}; Jx2=function(J,y){if(J.EN){var v=J.EN.Fo();if(v.length!==0){if(J.J&&y){var d=J.J,P=d.info.W;!zt(v,P)&&d.info.B>0&&(0,g.GC)()-J.L<5E3&&(J.logger&&J.logger({dend:d.info.A_()}),v=$Km(v,P,P+.01))}J.policy.pE&&J.logger&&J.logger({cbri:""+J.C});d=[];for(var A=P=0;P=T){var S=Object.assign({},J.Cf[A]),V=J.mR.J.get(HJ(J.Cf[A].formatId)),L=Math.max(n,T);T=V.index.Q_(L+J.T/ 1E3);n=V.index.getStartTime(T);var t=T+ +(Math.abs(n-L)>J.T/1E3);L=t+J.W;t=V.index.getStartTime(t)*1E3;A!==J.C||y?(S.zY=L,S.startTimeMs=t):(J.logger&&J.logger({pEvict:"1",og:S.startTimeMs,adj:n*1E3}),S.zY=T+J.W,S.startTimeMs=n*1E3);T=void 0;n=((T=J.J)==null?void 0:T.info.duration)||11;A===J.C&&MJ.T/1E3);T=n+J.W;V=V.index.Ks(n)*1E3;S.JA=T;S.durationMs=V-S.startTimeMs;S.zY<=S.JA&&d.push(S)}Y=0&&Rv(J.audioTrack,J.C)>=0&&A?((J.videoTrack.V||J.audioTrack.V)&&J.loader.dj("iterativeSeeking",{status:"done",count:J.seekCount}),J.videoTrack.V=!1,J.audioTrack.V=!1):d&&g.FC(function(){if(J.T||!J.policy.aG)kq(J);else{var T=y.startTime,M=y.duration;if(!J.policy.V){var n=v?J.videoTrack.V:J.audioTrack.V,Y=J.videoTrack.L!==-1&&J.audioTrack.L!==-1,S=J.C>=T&&J.C432E3&&Chv(J.mR);J.J&&(P=J.J,J.J=0);g.FC(function(){J.policy.V||Em(J,P,102)}); J.loader.dj("initManifestlessSync",{st:P,ost:P+J.loader.Vl(),a:J.audioTrack.L,v:J.videoTrack.L});J.W&&(J.W.resolve(P+.1),J.W=null);J.policy.V&&Em(J,P,102)}}}; ww=function(J,y){var v=this;this.oG=J;this.requestNumber=++Vnj;this.C=this.now();this.B=this.K=NaN;this.G=this.C;this.J=this.L8=this.V=0;this.L=this.C;this.YB=this.Cy=this.cX=this.ZE=this.ON=this.wj=this.T=this.W=0;this.zK=this.isActive=!1;this.yl=this.rj=0;this.b6={HbR:function(){return v.HH}}; this.sS=y.sS;this.snapshot=nGT(this.sS);this.policy=this.sS.T;this.Pz=!!y.Pz;this.RM=y.RM;this.Pn=y.Pn||0;this.tA=y.tA||0;y.xu&&(this.If=new DK);var d;this.HH=(d=y.HH)!=null?d:!1;this.Pz||Tcc(this.sS)}; LDP=function(J){J.cX=Math.max(J.cX,J.V-J.ON);J.Cy=Math.max(J.Cy,J.G-J.ZE);J.wj=0}; Jr=function(J,y,v){lW3(J.sS,y);J.If&&(J.If.add(Math.ceil(y)-Math.ceil(J.G)),J.If.add(Math.max(0,Math.ceil(v/1024)-Math.ceil(J.V/1024))));var d=y-J.G,P=v-J.V;J.L8=P;J.YB=Math.max(J.YB,P/(d+.01)*1E3);J.G=y;J.V=v;J.wj&&v>J.wj&&LDP(J)}; yl=function(J,y){J.url=y;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; vF=function(J,y){ww.call(this,J,y);this.aG=this.f8=!1;this.WX=this.AY=Infinity;this.Ek=NaN;this.J9=!1;this.XW=NaN;this.H$=this.Vk=this.GK=0;this.MR=y.MR||1;this.X3=y.X3||this.MR;this.Dp=y.Dp;this.py=y.py;this.y_=y.y_;tnr(this);this.IP(this.C);this.Ky=(this.XW-this.C)/1E3}; WDd=function(J){var y=J.Vk||J.GK;return y?J.snapshot.delay+Math.min(J.tA,(J.B-J.K)/1E3)+y:J.Ky}; dB=function(J,y,v){if(!J.Pz){y=Math.max(y,.01);var d=J.Pn?Math.max(y,v/J.Pn):y,P=J.sS.T.J;P&&(d=y,J.Pn&&(d=Math.max(y,v/J.Pn*P)));eD(J.sS,y,v,d)}}; apR=function(J){return(J.L-J.C)/1E3}; tnr=function(J){J.Ek=J.C+J.snapshot.delay*1E3;J.J9=!1}; PF=function(J,y){if(J.Dp&&J.py!==void 0&&J.y_!==void 0){var v=Math,d=v.min,P=J.AY;var A=J.Dp;var T=J.C;if(x9H(A,J.py))A=y;else{var M=0;A.k6&&(M=.2);A=T+(A.tA+M)*1E3}J.AY=d.call(v,P,A);v=Math;d=v.min;P=J.WX;A=J.Dp;T=J.C;M=OC3(A,J.py,J.y_);M!==2&&(y=M?y:T+A.tA*1E3,A.k6&&(y+=A.tA*1E3));J.WX=d.call(v,P,y);J.AY<=J.C?tnr(J):(J.Ek=J.AY,J.J9=!0)}}; gi3=function(J,y){if(y+1<=J.totalLength){var v=MH(J,y);v=v<128?1:v<192?2:v<224?3:v<240?4:5}else v=0;if(v<1||!(y+v<=J.totalLength))return[-1,y];if(v===1)J=MH(J,y++);else if(v===2)v=MH(J,y++),J=MH(J,y++),J=(v&63)+64*J;else if(v===3){v=MH(J,y++);var d=MH(J,y++);J=MH(J,y++);J=(v&31)+32*(d+256*J)}else if(v===4){v=MH(J,y++);d=MH(J,y++);var P=MH(J,y++);J=MH(J,y++);J=(v&15)+16*(d+256*(P+256*J))}else v=y+1,J.focus(v),AV(J,v,4)?J=pjP(J).getUint32(v-J.J,!0):(d=MH(J,v+2)+256*MH(J,v+3),J=MH(J,v)+256*(MH(J,v+1)+ 256*d)),y+=5;return[J,y]}; Ar=function(J){this.oG=J;this.C=new yA}; TV=function(J,y){this.info=J;this.callback=y;this.state=1;this.gq=this.Hg=!1;this.sR=null}; D9U=function(J){return g.Ob(J.info.Uk,function(y){return y.type===3})}; lJ=function(J,y,v,d){var P=this;d=d===void 0?{}:d;this.policy=y;this.oG=v;this.status=0;this.C=new yA;this.T=0;this.tY=this.W=this.J=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",J);if(d.headers)for(J=d.headers,y=g.D(Object.keys(J)),v=y.next();!v.done;v=y.next())v=v.value,this.xhr.setRequestHeader(v,J[v]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return P.zZ()}; this.xhr.onload=function(){return P.onDone()}; this.xhr.onerror=function(){return P.onError()}; this.xhr.fetch(function(A){P.C.append(A);P.T+=A.length;A=(0,g.GC)();P.oG.yx(A,P.T)},function(){},d.body||null)}; cx3=function(J,y){this.T=(new TextEncoder).encode(J);this.C=(new TextEncoder).encode(y)}; D2P=function(J,y){var v;return g.f(function(d){if(!y)return d.return(y);v=new g.ME(J.T);return d.return(v.encrypt(y,J.C))})}; joc=function(J,y){var v;return g.f(function(d){if(d.T==1){if(!y)return d.return(y);v=new g.ME(J.T);return g.h(d,v.decrypt(y,J.C),2)}return d.return(d.C)})}; bCj=function(J,y){var v=this;this.C=J;this.oG=y;this.loaded=this.status=0;this.error="";J=Ru(this.C.get("range")||"");if(!J)throw Error("bad range");this.range=J;this.T=new yA;GEm(this).then(function(){v.oG.IB()},function(d){v.error=""+d||"unknown_err"; v.oG.IB()})}; GEm=function(J){var y,v,d,P,A,T,M,n,Y,S,V,L,t,W,c;return g.f(function(b){if(b.T==1){J.status=200;y=J.C.get("docid");v=q7(J.C.get("fmtid")||"");d=J.C.get("lmt")||"0";P=+(J.C.get("csz")||0);if(!y||!v||!P)throw Error("Invalid local URL");J.C.get("ck")&&J.C.get("civ")&&(A=new cx3(J.C.get("ck"),J.C.get("civ")));T=J.range;M=Math.floor(T.start/P);n=Math.floor(T.end/P);Y=M}if(b.T!=5)return Y<=n?g.h(b,ezU(y,v,d,Y,A),5):b.Qk(0);S=b.C;if(S===void 0)throw Error("invariant: data is undefined");V=Y*P;L=(Y+1)*P; t=Math.max(0,T.start-V);W=Math.min(T.end+1,L)-(t+V);c=new Uint8Array(S.buffer,t,W);J.T.append(c);J.loaded+=W;J.loaded=400?(J.lastError="net.badstatus",!0):(P===void 0?0:P)?(J.lastError="ump.spsrejectfailure",!0):v||d!==void 0&&d?!1:(J.lastError=y===204?"net.nocontent":"net.connect",!0)}; WF=function(J,y){if(J.policy.As)return!1;var v=y.getResponseHeader("content-type"),d=y.EB();J=!d||d<=J.policy.W9;return(!y.ao()||!v||v.indexOf("text/plain")!==-1)&&J}; oiR=function(J,y){var v="";y=y.yV();y.totalLength<=J.policy.W9&&(v=$9H(J,Tp(y)));return v}; $9H=function(J,y){var v=si(y);return pt(v)?(J.logger.debug(function(){return"Redirecting to "+v}),v):""}; Sz=function(J){return Iu(J.J,HW(J.qA.YH))}; CkR=function(J){var y=J.timing.SS();y.shost=HW(J.qA.YH);return y}; hmT=function(J,y){return(J==null?void 0:J.maxWidth)>(y==null?void 0:y.maxWidth)||(J==null?void 0:J.maxHeight)>(y==null?void 0:y.maxHeight)}; Ipd=function(J,y){for(var v=g.D(y.keys()),d=v.next();!d.done;d=v.next())if(d=y.get(d.value),d.length!==0){g.KH(d,function(M,n){return n.maxFramerate-M.maxFramerate}); for(var P=[d[0]],A=0,T=1;TJ.C||v.push(d)}return v}; aN=function(J,y,v){var d=fpc[J]||[];v.X("html5_shorts_onesie_mismatched_fix")&&(d=iCr[J]||[]);y.push.apply(y,g.r(d));v.X("html5_early_media_for_drm")&&y.push.apply(y,g.r(uKc[J]||[]))}; zmr=function(J,y){var v=g.DL(J),d=J.Y(),P=d.V;d=d.X("html5_shorts_onesie_mismatched_fix");var A=J.Zo();if(d){if(!P.T){if(A&&xB)return xB;if(Ol)return Ol}}else if(Ol&&!P.T)return Ol;var T=[],M=[],n={},Y=gB.concat(HCm);d&&(Y=gB.concat(XWH));J.X("html5_early_media_for_drm")&&(Y=Y.concat(NkT),J.X("allow_vp9_1080p_mq_enc")&&Y.push(RmH));var S=[].concat(g.r(KDv));J.X("html5_iamf_audio_onesie_fmt")&&S.push(["773"]);Y=g.D(Y);for(var V=Y.next();!V.done;V=Y.next()){var L=!1;V=g.D(V.value);for(var t=V.next();!t.done;t= V.next()){t=t.value;var W=gE(t,A&&d);if(W&&W.video&&!($6(W)&&!v.AY&&W.video.qualityOrdinal>v.Lp)){var c=g.Zo(J.Y().experiments,"html5_drm_byterate_soft_cap");c>0&&qx6(W)&&W.FW>c||(L?(T.push(t),aN(t,T,J)):(W=$i(v,W,P),W===!0?(L=!0,T.push(t),aN(t,T,J)):n[t]=W))}}}S=g.D(S);for(Y=S.next();!Y.done;Y=S.next())for(Y=g.D(Y.value),L=Y.next();!L.done;L=Y.next())if(L=L.value,(V=$I3(L))&&V.audio&&(J.X("html5_onesie_51_audio")||!oc(V)&&!Cm(V)))if(V=$i(v,V,P),V===!0){M.push(L);aN(L,M,J);break}else n[L]=V;if(!J.X("html5_enable_audio_quality_setting"))for(J= g.D(["141","774"]),S=J.next();!S.done;S=J.next())S=S.value,M.includes(S)&&(g.bw(M,S),n[S]="blkhqa");v.T&&y("orfmts",n);if(d)return P.T&&(P.T=!1,xB=Ol=void 0),A?xB={video:T,audio:M}:Ol={video:T,audio:M};Ol={video:T,audio:M};P.T=!1;return Ol}; g.Qzv=function(J,y,v){var d=v.V,P=[],A=[],T=v.X("html5_shorts_onesie_mismatched_fix");J=J.Zo();var M=gB.concat(HCm);T&&(M=gB.concat(XWH));v.X("html5_early_media_for_drm")&&(M=M.concat(NkT),v.X("allow_vp9_1080p_mq_enc")&&M.push(RmH));var n=[].concat(g.r(KDv));v.X("html5_iamf_audio_onesie_fmt")&&n.push(["773"]);M=g.D(M);for(var Y=M.next();!Y.done;Y=M.next()){Y=g.D(Y.value);for(var S=Y.next();!S.done;S=Y.next()){S=S.value;var V=gE(S,J&&T);if(V&&V.video){var L=g.Zo(v.experiments,"html5_drm_byterate_soft_cap"); if(!(L>0&&qx6(V)&&V.FW>L)&&$i(y,V,d)===!0){P.push({videoCodec:kEc[eA[S]],maxWidth:V.video.width,maxHeight:V.video.height,maxFramerate:V.video.fps});break}}}}T=g.D(n);for(J=T.next();!J.done;J=T.next())for(J=g.D(J.value),n=J.next();!n.done;n=J.next())if(n=n.value,(M=$I3(n))&&M.audio&&(v.X("html5_onesie_51_audio")||!oc(M)&&!Cm(M))&&$i(y,M,d)===!0){A.push({audioCodec:EiP[eA[n]],numChannels:M.audio.numChannels});break}return{videoFormatCapabilities:P,audioFormatCapabilities:A}}; ykr=function(J){var y={},v=J.lA,d=J.qx,P=v.getVideoData(),A=Yi(0),T=v.getVisibilityState();if(d.X("html5_enable_audio_quality_setting")){var M=g.Zo(d.experiments,"html5_default_audio_quality_setting_lr"),n;y.iR=(n=ZCU[M])!=null?n:0}A&&(y.ph=A,y.lastManualDirection=E82(),A=Ked()||0,A>0&&(A=(d.X("html5_use_date_now_for_local_storage")?Date.now():(0,g.GC)())-A,d.X("html5_use_date_now_for_local_storage")?A>0&&(y.timeSinceLastManualFormatSelectionMs=A):y.timeSinceLastManualFormatSelectionMs=A));A=d.X("html5_use_streamer_bandwidth_for_low_latency_live")&& P.isLowLatencyLiveStream;if(d.schedule.zK&&!A){var Y;A=d.X("html5_disable_bandwidth_cofactors_for_sabr_live")?!((Y=J.K0)==null||!Y.zA):!1;y.zT=oK(d.schedule,!A)}Y=g.Gt.medium;A=Math.floor(Y*16/9);(M=P.Zo())||(P.C&&P.J&&P.J.videoInfos.length!==0?(M=P.J.videoInfos[0],M=!!M.video&&M.video.width 0&&(y.pY.authorizedFormats=J.authorizedFormats);J.sabrLicenseConstraint&&(y.pY.sabrLicenseConstraint=J.sabrLicenseConstraint);if(d.X("html5_onesie_media_capabilities")||d.X("html5_enable_server_format_filter"))y.uB=3;d.X("html5_onesie_audio_only_playback")&&a9(P)&&(y.uB=1);var B;((B=J.K0)==null?0:B.xj)&&J.gg&&(y.uB=y.uB===void 0?7:y.uB|4);S=P.QE?P.QE:g.DL(P);d.X("html5_onesie_media_capabilities")&&(y.mediaCapabilities=g.Qzv(P,S,d));var q;if((q=J.K0)==null?0:Dl(q)){L=d.V;q=[];V=[];t=new Map;W=Array.from(L.C.values()); W=g.D(W);for(c=W.next();!c.done;c=W.next())b=c.value,b.yQ?V.push({audioCodec:EiP[b.PX],numChannels:b.numChannels,spatialCapabilityBitmask:wWH[b.PX]}):(B=kEc[b.PX],c={videoCodec:B,maxWidth:b.maxWidth||0,maxHeight:b.maxHeight||0,maxFramerate:b.maxFramerate||0,is10BitSupported:b.d8||!1},b.maxBitrateBps&&(c.maxBitrateBps=b.maxBitrateBps,T=gE(b.itag),Y=void 0,((Y=T)==null?0:Y.video)&&$i(S,T,L)===!0&&(T=T.FW*8,T>c.maxBitrateBps&&(c.maxBitrateBps=T))),b=B+"_"+b.d8,B=t.get(b)||[],B.push(c),t.set(b,B));q= Ipd(q,t);L={};d.X("html5_ssff_denylist_opus_low")&&(L={itagDenylist:[249,350]});y.mediaCapabilities={videoFormatCapabilities:q,audioFormatCapabilities:V,hdrModeBitmask:3,perPlaybackAttributes:L}}var C;if((C=J.K0)==null?0:C.C){y.QL=S.QL;var U;y.Lp=(U=J.K0)==null?void 0:U.Lp}d.M1&&(y.ey=d.M1);y.F3=J.cG;y.H0=J.H0;y.XG=J.XG;y.w2=J.w2;J.C5&&(y.woj=(0,g.GC)()-J.C5);J.isPrefetch&&d.X("html5_report_prefetch_requests")&&(y.isPrefetch=!0);VJ||(y.lBj=!0);C=qe(d.schedule)*1E3;C>0&&(y.Ei=C);var N;((N=J.K0)==null? 0:N.KP)&&J.VK&&J.VK0?Jc:d.schedule.interruptions[0]||0;var E;if((E=J.K0)==null?0:E.yl)y.In=J.In;d.YB&&(y.audioTrackId=d.YB);JQ(P)&&!y.audioTrackId&&(d.X("html5_fill_default_mosaic_audio_track_id")||(J=rBr(P),y.audioTrackId= J),P==null||P.dj("misstrkchg",{"default":y.audioTrackId}));if(P=eI3())y.detailedNetworkType=Jkd[P]||Jkd.other;d.X("html5_enable_voice_boost")&&(y.ewy=d.cH);return y}; cF=function(J,y,v,d,P,A,T){var M={};y&&(M.u9=y);if(!J)return M;M.playbackCookie=v==null?void 0:v.playbackCookie;P&&(M.m5=P);M.aI=[];M.QY=[];if(T==null?0:T.size)for(y=g.D(T.values()),v=y.next();!v.done;v=y.next())M.QY.push(v.value);if(J.sabrContextUpdates.size>0)for(y=g.D(J.sabrContextUpdates.values()),v=y.next();!v.done;v=y.next())vsH(M,v.value,d);gC(J)&&A&&vsH(M,A,d);J.kt&&(M.YHx=J.kt);d=J.Y().C;M.clientInfo={clientName:dxj[d.c.toUpperCase()]||0};d.cbrand&&(M.clientInfo.deviceMake=d.cbrand);d.cmodel&& (M.clientInfo.deviceModel=d.cmodel);d.cver&&(M.clientInfo.clientVersion=d.cver);d.cos&&(M.clientInfo.osName=d.cos);d.cosver&&(M.clientInfo.osVersion=d.cosver);d=J.Y();d.X("html5_sabr_enable_server_xtag_selection")&&d.AI&&(M.clientInfo.hl=d.AI);J.ue&&(M.ue=J.ue);return M}; vsH=function(J,y,v){var d=y.type||0;(v==null?0:v.has(d))?J.QY.push(y):J.aI.push(d)}; XY=function(J,y,v,d,P,A){var T=A===void 0?{}:A;var M=T.bz===void 0?[]:T.bz;var n=T.tS===void 0?!1:T.tS;var Y=T.sI===void 0?0:T.sI;var S=T.poToken===void 0?"":T.poToken;var V=T.Ur===void 0?void 0:T.Ur;var L=T.Va===void 0?"":T.Va;var t=T.x3===void 0?0:T.x3;var W=T.VH===void 0?new Uint8Array(0):T.VH;var c=T.tX===void 0?!1:T.tX;A=T.cw===void 0?0:T.cw;T=T.u9===void 0?void 0:T.u9;TV.call(this,y,P);var b=this;this.policy=J;this.logger=new g.tA("dash/request");this.ym=this.Mw=0;this.V0=!1;this.Xv=this.uQ= null;this.sX=!1;this.VH=this.x3=null;this.X6=this.Zu=!1;this.dJ=null;this.cw=this.LF=0;this.dA=!1;this.b6={Hq:function(q){b.Hq(q)}, TSk:function(){return b.sR}, RMK:function(q){b.sR=q}, Zuy:function(q){b.Mw=q}, NxA:function(q){b.t_.lastError=q}, pS:function(){return b.xhr}}; this.timing=new vF(this,v);this.tS=n;this.x3=t;this.VH=W;this.qA=g.AA(this.info,this.policy,d);this.qA.set("rn",this.Hn().toString());this.qA.set("rbuf",(Y*1E3).toFixed().toString());this.tS&&this.qA.set("smb","1");this.policy.Ii&&S&&this.qA.set("pot",S);L&&this.qA.set("bbs",L);this.policy.useUmp&&!XK(this.qA.YH)&&(this.Ax=new Ar(this),this.qA.set("ump","1"),this.qA.set("srfvp","1"));if(J=this.policy.JH?this.policy.OO&&!isNaN(this.info.y_)&&this.info.y_>this.policy.pM?!1:!0:!1)y=null,this.policy.L6&& this.policy.jh?y=[1]:c&&(y=[]),y!=null&&(this.policy.xW&&y.push(2),this.qA.set("defsel",y.join(",")));this.t_=new YB(this,this.policy,this.qA,this.info.q4,this.timing,this.logger,d,V);this.bz=M||null;this.gq=Pbx(this);m9R(this.t_);d=void 0;if(this.policy.r_||this.Ax||this.policy.cX)d={method:"POST"},M=(0,g.GV)([120,0]),V={},this.policy.wN&&T&&(T=cF(void 0,T),V.jr=T),this.policy.Aw&&this.VH&&(V.videoPlaybackUstreamerConfig=this.VH),this.policy.cX&&(T=this.info.W)&&Object.assign(V,T),Object.keys(V).length> 0?d.body=g.RX(V,g.lk):d.body=M;if(this.x3&&this.VH){this.qA.set("iwts","1");d={method:"POST"};T={w2:this.x3*1E3};var B;M=(B=this.info.W)==null?void 0:B.Fv;B=g.RX({k8:T,Fv:M||void 0,videoPlaybackUstreamerConfig:this.VH},g.lk);d.body=B}try{this.xhr=Md(this.qA,this.policy.G,this.timing,J,d),this.t_.T.start(),A&&(this.pJ=new g.Kx(this.p_,A,this),this.pJ.start(A+(this.timing.sS.B.Po()||0)*1E3)),this.policy.Uc&&yl(this.timing,this.S1()),this.logger.debug(function(){return"Sent, itag="+b.qA.get("itag")+ " seg="+b.info.Uk[0].py+" range="+b.qA.get("range")+" time="+Math.round(b.info.Uk[0].W)+"-"+Math.round(g.Wq(b.info.Uk).L)+" rtp="+(b.timing.qQ()-Date.now()).toFixed(0)}),g.FC(function(){})}catch(q){Ak3(this,q,!0)}}; Pbx=function(J){if(!(Pi(J.info)&&J.info.HH()&&J.policy.SC&&J.bz)||J.info.q4.J>=2||Yi()>0||!JLU())return!1;var y=J.qA.get("aitags");if(!y)return!1;y=q7(y).split(",");for(var v=[],d=g.D(J.bz),P=d.next();!P.done;P=d.next())P=P.value,g.cq(y,P)&&v.push(P);if(!v.length)return!1;J.qA.set("altitags",g.mS(v.join(",")));return!0}; Ak3=function(J,y,v){v=v===void 0?!1:v;g.jv(y);J.t_.lastError="player.exception";J.errorMessage=y.name+"_"+y.message;v?g.FC(function(){Lg(J.t_)}):Lg(J.t_)}; TyU=function(J,y){J.timing.zK=!0;J.xhr.ao()&&J.timing.Gh();if(J.policy.ES){var v;(v=J.pJ)==null||v.stop()}sl(J.sR,y,!1)}; lI2=function(J,y){J.info=y;if(J.sR){var v=J.sR;y=y.Uk;(y.length!==v.Uk.length||y.length0){y=g.D(y.Uk);for(var v=y.next();!v.done;v=y.next()){var d=void 0;J+=((d=v.value.range)==null?void 0:d.length)||0}return J}if(y.v0.length>0)for(v=g.D(y.v0),d=v.next();!d.done;d=v.next())J+=d.value.xv||0;return J+y.ST}; $B=function(J,y){if(BF){var v=0;J=J.Ms.get(y);if(J==null||!J.BO)return 0;J=g.D(J.BO.values());for(y=J.next();!y.done;y=J.next())v+=y.value.data.totalLength;return v}return((v=J.Ms.get(y))==null?void 0:v.Z8.totalLength)||0}; oN=function(J,y){J=J.Ms.get(y);if(BF){if(J==null||!J.LQ)return!1;y=J.BO.size>0;return J.mf.length>0||y}return!(J==null||!J.LQ)&&!(J==null||!J.Z8.totalLength)}; V7T=function(J,y){var v=J.Ms.get(y),d=S7H(J,y),P=!d&&!!v.bytesReceived;if(BF){var A;if((A=J.mR)==null?0:A.jH){J=g.D(v.BO.values());for(y=J.next();!y.done;y=J.next())if(!y.value.l_)return!1;return P}}else if(A=J.Ff(y),P&&J.C&&A!==void 0)return A;return(P||v.bytesReceived===d)&&v.oV+$B(J,y)===v.bytesReceived}; Ls6=function(J,y,v){J.Ms.set(y,{Z8:new yA,oV:0,bytesReceived:0,ST:0,aP:!1,KA:!1,Ff:!1,yQ:v,GG:[],Uk:[],v0:[],LQ:!1,BO:new Map,bI:new Map,mf:[]});J.logger.debug(function(){return"[initStream] formatId: "+y})}; t7T=function(J,y,v,d){v.Uk.push.apply(v.Uk,g.r(d));if(BF){v.bI.has(y)||v.bI.set(y,[]);var P;(P=v.bI.get(y)).push.apply(P,g.r(d))}else if(v.sR)for(J=g.D(d),y=J.next();!y.done;y=J.next())v.sR.Uk.push(y.value);else{v.sR=new ng(J.K0,[].concat(g.r(v.Uk)));var A;((A=J.K0)==null?0:A.sx)&&g.X(J,v.sR)}}; WsT=function(J,y,v){var d,P=(d=J.mR)==null?void 0:d.J.get(y);if(!P)return[];if(v.dU){var A;return((A=P.OI(0,v.clipId))==null?void 0:A.Uk)||[]}if(P.Gk()){var T=v.startMs,M=v.durationMs;d=1E3;var n;if(((n=J.K0)==null?0:n.C)&&v.timeRange){var Y;T=(Y=v.timeRange.startTicks)!=null?Y:-1;var S;M=(S=v.timeRange.Tz)!=null?S:-1;var V;d=(V=v.timeRange.timescale)!=null?V:-1}if(v.hE<0||v.bX<0||M<0||T<0||v.xv<0||d<0)return rB(J,y),[];J=KS(v.hE,v.xv);y=v.X7||0;return[new ks(3,P,J,"makeSliceInfosMediaBytes",v.bX- 1,T/d,M/d,y,J.length-y,void 0,v.l1,v.clipId)]}if(v.bX<0)return rB(J,y),[];var L;return((L=J.mR)==null?0:L.jH)?(y=P.CN,n=y*P.info.FW,Y=v.X7,((M=J.K0)==null?0:M.II)&&v.timeRange&&!Y&&(T=v.timeRange.startTicks/v.timeRange.timescale),[new ks(3,P,void 0,"makeSliceInfosMediaBytes",v.bX,T,y,Y,n,!0,v.l1,v.clipId)]):[]}; aIP=function(J,y,v){J.mR=y;J.K0=v;y=g.D(J.Ms);for(v=y.next();!v.done;v=y.next()){var d=g.D(v.value);v=d.next().value;d=d.next().value;for(var P=g.D(d.GG),A=P.next();!A.done;A=P.next()){A=A.value;var T=WsT(J,v,A);t7T(J,A.oD,d,T)}}}; Cg=function(J,y,v,d){J.logger.debug(function(){return"[addStreamData] formatId: "+v+",headerId: "+y+" bytes: "+d.totalLength}); (J=J.Ms.get(v))&&!J.KA&&(BF?(J.BO.has(y)||J.BO.set(y,{data:new yA,aU:0,l_:!1}),v9(J.BO.get(y).data,d)):v9(J.Z8,d),J.bytesReceived+=d.totalLength,J.aP=!0)}; qd=function(J,y){J.logger.debug(function(){return"[closeStream] formatId: "+y}); var v=J.Ms.get(y);v&&!v.KA&&(v.KA=!0,v.Xz&&v.Xz(),xxH(J)&&J.W.RR())}; xxH=function(J){J=g.D(J.Ms.values());for(var y=J.next();!y.done;y=J.next())if(!y.value.KA)return!1;return!0}; OSU=function(J){BF=J}; hr=function(J,y,v,d,P,A,T){g.u.call(this);this.policy=J;this.info=y;this.mR=v;this.oG=P;this.logger=new g.tA("sabr");this.Ax=new Ar(this);this.EJ=new jz(this);this.Kj=new ez(this);this.state=1;this.c6=!1;this.w7=0;this.clipId="";this.CT=-1;this.oH=0;this.z0=-1;this.dA=this.U6=!1;this.zp=0;this.KG=!1;this.policy.bS?this.z4=new bJ(this,A):this.z4=new vF(this,A);this.qA=this.policy.yl?y.Kv:gsT(y,this.policy,d);this.qA.set("rn",""+this.Hn());this.qA.set("alr","yes");aIP(this.Kj,v,J);this.t_=new YB(this, this.policy,this.qA,y.q4,this.z4,this.logger,d,T,this.policy.enableServerDrivenRequestCancellation);m9R(this.t_);var M;if((M=this.policy)==null?0:M.sx)g.X(this,this.Kj),g.X(this,this.t_);J=y.T;y={method:"POST",body:J};J&&(this.oH=J.length);try{this.xhr=Md(this.qA,this.policy.G,this.z4,VJ,y),this.policy.Uc&&yl(this.z4,this.S1()),this.t_.T.start()}catch(n){g.ev(n)}}; DxT=function(J){J.policy.gA&&J.ek&&!J.KG?J.KG=!0:J.z4.Gh()}; ckH=function(J,y){var v=-1,d=-1,P=-1,A;if((A=J.Q3)==null?0:A.items)for(J=g.D(J.Q3.items),A=J.next();!A.done;A=J.next())A=A.value,y=M,n=J.mR.isManifestless&&J.policy.Y5,T){var Y;if(((Y=J.C)==null?void 0:Y.wc.event)==="predictStart"&&J.C.pyJ.L&&(J.L=NaN,J.G=NaN);J.C&&J.C.py===y?UxH(J,y,v,J.C,P):J.T===1&&fg(J,5,"noad")}; fI3=function(J,y,v,d,P){d.Fy?fg(J,4,"cue"):(J.L=y,J.G=v,J.dj("sdai",{joinad:J.T,sg:J.L,st:J.G.toFixed(3)}),J.K=Date.now(),fg(J,2,J.T===3?"staftpred":"join"),P.EF(d.wc))}; UxH=function(J,y,v,d,P){if(P&&d){var A=d.wc,T=P.SX(A);A.event==="predictStart"&&(J.Cy=y);J.dj("sdai",{onqevt:A.event,sq:y,mt:v,gab:T,cst:A.startSecs,cueid:J.policy.dN&&(T||A.event==="start")?A.identifier:void 0},!0);if(T)A.event!=="predictStart"?(A.event==="start"&&J.Cy===y-1&&J.dj("sdai",{gabonstart:y}),fI3(J,y,v,d,P)):J.policy.VE?fg(J,3,"predict"):(y+=Math.max(Math.ceil(-A.C/5E3),1),A=Math.floor(v-A.C/1E3),J.policy.T?J.V=A:J.W=y,J.dj("sdai",{onpred:v,estsq:y,estmt:A.toFixed(3)}),iJ(J.loader,A,A, y),J.K=Date.now(),fg(J,3,"predict"),P.EF(d.wc));else if(J.T===1){var M;((M=J.J)==null?0:M.Ao(v))?(iJ(J.loader,v,v,y),fg(J,4,"sk2head")):fg(J,5,"nogab")}else A.event==="predictStart"?J.policy.T&&J.V>0?(v=Math.floor(v-A.C/1E3),J.V!==v&&J.dj("sdai",{updateSt:v,old:J.V}),J.V=v):J.W>0&&(v=y+Math.max(Math.ceil(-A.C/5E3),1),J.W!==v&&(J.dj("sdai",{updateSt:v,old:J.W}),J.W=v)):J.policy.VE&&J.T===3&&fI3(J,y,v,d,P)}else J.dj("sdai",{nulldec:1,sq:y,mt:v.toFixed(3),evt:(d==null?void 0:(A=d.wc)==null?void 0:A.event)|| "none"})}; uf3=function(J,y,v){if(J.policy.AQ&&J.policy.T)return!(J.T===1||J.T===2||!J.policy.VE&&J.T===3&&v>=J.W);if(J.T===1||J.T===2)return!1;if(J.T!==0&&y===J.audioTrack){if(J.policy.T)return iSc(J.videoTrack,v)||iSc(J.videoTrack,v+1);J=uJ(J.videoTrack);if(v>(J?J.py:-1))return!1}return!0}; HF=function(J,y,v){return(v<0||v===J.L)&&!isNaN(J.G)?J.G:y}; Cb3=function(J,y){if(J.C){var v=J.C.wc.WF-(y.startTime+J.B-J.C.wc.startSecs);v<=0||(v=new PJ(J.C.wc.startSecs-(isNaN(J.B)?0:J.B),v,J.C.wc.context,J.C.wc.identifier,"stop",J.C.wc.C+y.duration*1E3),J.dj("cuepointdiscontinuity",{segNum:y.py}),Ul(J,v,y.py))}}; fg=function(J,y,v){J.T!==y&&(J.dj("sdai",{setsst:y,old:J.T,r:v}),J.T=y)}; XE=function(J,y,v,d){(d===void 0?0:d)?fg(J,1,"seek"):y>0&&Math.abs(y-v)>=5&&J.T===4&&fg(J,5,"sk2t")}; HSd=function(J){this.dj=J;this.C="";this.T=new Map}; Nd=function(J,y,v){this.audio=J;this.video=y;this.reason=v}; RN=function(J,y,v){this.C=J;this.reason=y;this.token=v;this.videoId=void 0}; Kg=function(J,y,v){g.u.call(this);this.policy=J;this.W=y;this.dj=v;this.J=new Map;this.V=0;this.L=!1;this.C="";this.T=!1}; zV=function(J,y,v){if(v===void 0?0:v)J.L=!0;++J.V;v=6E4*Math.pow(2,J.V);v=(0,g.GC)()+v;J.J.set(y.info.id,v)}; kB=function(J){for(var y=g.D(J.J.entries()),v=y.next();!v.done;v=y.next()){var d=g.D(v.value);v=d.next().value;d=d.next().value;d<(0,g.GC)()&&J.J.delete(v)}return J.J}; XJc=function(J){return J.L&&kB(J).size>0}; El=function(J,y){J.C!==y&&(J.C=y,J.T=!0)}; Nyv=function(J,y){var v;y&&(v=g.On(J.W.C,function(P){return P.id===y})); if(!v&&(v=g.On(J.W.C,function(P){var A;return!((A=P.N4)==null||!A.isDefault)}),y)){var d; J.dj("iaf",{id:y,sid:(d=v)==null?void 0:d.id})}return v}; Zl=function(J,y,v,d,P,A){var T=this;A=A===void 0?[]:A;this.loader=J;this.AY=y;this.policy=v;this.mR=d;this.L=P;this.YB=A;this.logger=new g.tA("dash/abr");this.C=dC;this.J=this.G=null;this.K=-1;this.WX=!1;this.nextVideo=this.T=null;this.W=[];this.Vk=new Set;this.cX={};this.XW=new G3(1);this.B=0;this.GK=this.Cy=this.zK=!1;this.wj=0;this.ZB=!1;this.If=new Set;this.Ek=!1;this.b6={LV:function(){Ql(T)}}; this.V=new Kg(this.policy,P,function(M,n){T.loader.dj(M,n)})}; EsP=function(J,y,v){wB(J,y);y=Nyv(J.V,v);v||y||(y=R2U(J));y=y||J.L.C[0];J.T=J.mR.C[y.id];Ql(J);J.G=J.T;Ks2(J);z23(J);J.J=J.nextVideo;J.G=J.T;return kg2(J)}; wJR=function(J,y){if(QuH(J,y))return null;if(y.reason==="m"&&y.isLocked())return J.logger.debug(function(){return"User sets constraint to: "+en(y)}),wB(J,y),J.B=J.W.length-1,Ql(J),J0(J),J.Cy=J.Cy||J.J!==J.nextVideo,J.J=J.nextVideo,new Nd(J.T,J.J,y.reason); y.reason==="r"&&(J.K=-1);wB(J,y);J0(J);if(y.reason==="r"&&J.nextVideo===J.J)return new Nd(J.T,J.nextVideo,y.reason);ZS2(J);return null}; JAU=function(J,y,v){J.T=J.mR.C[y];J.G=J.T;return new Nd(J.G,J.J,v?"t":"m")}; yAv=function(J,y){if(y.info.video){if(J.J!==y)return J.J=y,kg2(J)}else J.GK=J.G!==y,J.G=y;return null}; v$6=function(J,y){if(y.C.info.video&&y.V){var v=(y.T+y.J)/y.duration,d=y.C.info.FW;v&&d&&(J.XW.B_(1,v/d),J.policy.J&&v/d>1.5&&J.loader.dj("overshoot",{sq:y.py,br:v,max:d}))}}; yf=function(J,y,v){zV(J.V,y,v===void 0?!1:v);J.K=-1;wB(J,J.C)}; dsH=function(J,y){return new Nd(J.G,J.J,y||J.C.reason)}; ZS2=function(J){if(J.J&&J.nextVideo&&v8(J,J.J.info)J.policy.Lp,M=P<=J.policy.Lp?$6(d):Bz(d);if(!A||T||M)v[P]=d}return v}; wB=function(J,y){J.C=y;var v=J.L.videoInfos;if(!J.C.isLocked()){var d=(0,g.GC)();v=g.eT(v,function(M){if(M.FW>this.policy.FW)return!1;var n=this.mR.C[M.id];return kB(this.V).get(M.id)>d?!1:n.q4.J>4||n.L>4?(this.logger.debug(function(){return"Remove "+Hz(M)+"; 4 load failures"}),!1):this.If.has(+M.itag)?!1:!0},J); XJc(J.V)&&(v=g.eT(v,function(M){return M.video.width<=854&&M.video.height<=480}))}v.length||(v=J.L.videoInfos); var P=v;J.policy.nF&&(P=AAT(J,P,y));P=g.eT(P,y.W,y);if(J.C.isLocked()&&J.V.C){var A=g.On(v,function(M){return M.id===J.V.C}); A?P=[A]:El(J.V,"")}J.policy.nF||(P=AAT(J,P,y));P.length||(P=[v[0]]);P.sort(function(M,n){return v8(J,M)-v8(J,n)}); y={};for(v=1;vy.qU.video.width?(g.GQ(P,v),v--):v8(J,y.RN)*J.policy.B>v8(J,y.qU)&&(g.GQ(P,v-1),v--);var T=P[P.length-1];J.ZB=!!J.J&&!!J.J.info&&J.J.info.PX!==T.PX;J.logger.debug(function(){return"Constraint: "+en(J.C)+", "+P.length+" fmts selectable, max selectable fmt: "+Hz(T)}); J.W=P;J.Vk.clear();y=!1;for(v=0;v=1080&&(y=!0);Tnj(J.policy,T,J.mR.jH)}; AAT=function(J,y,v){var d=v.reason==="m"||v.reason==="s";J.policy.EZ&&dM&&g.tW&&(!d||v.C<1080)&&(y=y.filter(function(Y){return Y.video&&(!Y.T||Y.T.powerEfficient)})); if(y.length>0)if(dj()){var P=Pl2(J,y);y=y.filter(function(Y){return!!Y&&!!Y.video&&Y.PX===P[Y.video.qualityOrdinal].PX})}else{var A,T,M=(A=y[0])==null?void 0:(T=A.video)==null?void 0:T.qualityOrdinal; if(M){v=y.filter(function(Y){return!!Y&&!!Y.video&&Y.video.qualityOrdinal===M}); var n=Pl2(J,v)[M].PX;y=y.filter(function(Y){return!!Y&&!!Y.video&&Y.PX===n})}}return y}; l2H=function(J,y){for(var v=0;v+1d}; Ql=function(J){if(!J.T||!J.policy.W&&!J.T.info.N4){var y=J.L.C;J.T&&(y=y.filter(function(d){return d.audio.C===J.T.info.audio.C}),y.length||(y=J.L.C)); J.T=J.mR.C[y[0].id];if(y.length>1&&!J.policy.GK){if(!J.policy.vz){var v=g.On(y,function(d){return d.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); v&&(J.T=J.mR.C[v.id])}v=!1;if(v=J.policy.h_?!0:J.C.isLocked()?J.C.C<240:l2H(J,J.T))J.T=J.mR.C[g.Wq(y).id]}}}; J0=function(J){if(!J.nextVideo||!J.policy.W)if(J.C.isLocked())J.nextVideo=J.C.C<=360?J.mR.C[J.W[0].id]:J.mR.C[g.Wq(J.W).id],J.logger.debug(function(){return"Select max fmt: "+Hz(J.nextVideo.info)}); else{for(var y=Math.min(J.B,J.W.length-1),v=Um(J.AY),d=v8(J,J.T.info),P=v/J.policy.zK-d;y>0&&!(v8(J,J.W[y])<=P);y--);for(var A=v/J.policy.B-d;y=A);y++);J.nextVideo=J.mR.C[J.W[y].id];J.B!==y&&J.logger.info(function(){return"Adapt to: "+Hz(J.nextVideo.info)+", bandwidth: "+v.toFixed(0)+", bandwidth to downgrade: "+P.toFixed(0)+", bandwidth to upgrade: "+A.toFixed(0)+", constraint: "+en(J.C)}); J.B=y}}; Ks2=function(J){var y=J.policy.zK,v=Um(J.AY),d=v/y-v8(J,J.T.info);y=g.Dy(J.W,function(P){return v8(this,P)A?P=0:d[T]>J.buffered[T]&&(T===A-1?P=2:T===A-2&&d[T+1]>J.buffered[T+1]&&(P=3))}J.C.add(y<<3|(v&&4)|P);y=Math.ceil(J.track.hB()*1E3);J.C.add(y-J.V);J.V=y;if(P===1)for(J.C.add(A),T=y=0;T=2&&J.C.add(d[A- 1]-J.buffered[A-1]);v&&J.C.add(v);J.buffered=d}; Tj=function(J,y,v){var d=this;this.policy=J;this.C=y;this.wj=v;this.W=this.T=0;this.FI=null;this.zK=new Set;this.K=[];this.indexRange=this.initRange=null;this.B=new S1;this.Cy=this.AY=!1;this.b6={nzK:function(){return d.J}, pwf:function(){return d.chunkSize}, Ilk:function(){return d.G}, qTR:function(){return d.L}}; (y=SGv(this))?(this.chunkSize=y.csz,this.J=Math.floor(y.clen/y.csz),this.G=y.ck,this.L=y.civ):(this.chunkSize=J.qe,this.J=0,this.G=g.t4(16),this.L=g.t4(16));this.V=new Uint8Array(this.chunkSize);this.G&&this.L&&(this.crypto=new cx3(this.G,this.L))}; SGv=function(J){if(J.policy.ER&&J.policy.I1)for(var y=g.D(J.policy.ER),v=y.next(),d={};!v.done;d={H2:void 0,KO:void 0},v=y.next())if(v=g.y2(v.value),d.H2=+v.clen,d.KO=+v.csz,d.H2>0&&d.KO>0&&J.policy.W===v.docid&&J.C.info.id===v.fmtid&&J.C.info.lastModified===+v.lmt)return J={},J.clen=d.H2,J.csz=d.KO,J.ck=v.ck,J.civ=v.civ,J}; li=function(J){return!!J.FI&&J.FI.N$()}; tR2=function(J,y){if(!li(J)&&!J.tY()){if(!(J.AY||(J.AY=!0,J.J>0))){var v=My(J);v=zx(J.policy.W,J.C.info,nQ(J),v,J.policy.XW);sT(J,v)}if(y.info.type===1){if(J.FI){Y2(J,Error("Woffle: Expect INIT slices to always start us off"));return}J.initRange=KS(0,y.T.totalLength)}else if(y.info.type===2)J.FI&&J.FI.type===1||Y2(J,Error("Woffle: Index before init")),J.indexRange=KS(J.initRange.end+1,y.T.totalLength);else if(y.info.type===3){if(!J.FI){Y2(J,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(J.FI.type===3&&!ZI(J.FI,y.info)&&(J.K=[],y.info.py!==wy(J.FI)||y.info.T!==0))return;if(y.info.V){v=g.D(J.K);for(var d=v.next();!d.done;d=v.next())VRH(J,d.value);J.K=[]}else{J.K.push(y);J.FI=y.info;return}}else{Y2(J,Error("Woffle: Unexpected slice type"));return}J.FI=y.info;VRH(J,y);LOx(J)}}; VRH=function(J,y){var v=0,d=Tp(y.T);if(J.W=d.length)return;if(v<0)throw Error("Missing data");J.W=J.J;J.T=0}for(P={};v0){var T=d.getUint32(v+28);A+=T*16+4}var M=d.getUint32(v+A-4);try{var n=g$T(y.subarray(v+A,v+A+M));if(n!==null){var Y=n;break a}}catch(S){}}v+=P}Y=null;break a}catch(S){Y=null;break a}Y=void 0}if(Y!=null)for(y=Wk(wG(Y,7,void 0,$3)),y==null||J.Tg||(J.cryptoPeriodIndex=y),y=Wk(wG(Y,10,void 0,$3)),y!=null&&y>0&& !J.Tg&&(J.C=y),Y=TJ(Y,2,m7d,void 0===$7j?2:4),Y=g.D(Y),d=Y.next();!d.done;d=Y.next())y=J.J,v=y.push,d=h3(d.value),d=g.eB(d,4),v.call(y,d)}; cAx=function(J){return isNaN(J.cryptoPeriodIndex)?g.eB(J.initData):""+J.cryptoPeriodIndex}; LQ=function(J,y,v){var d=v===void 0?{}:v;v=d.videoDuration===void 0?0:d.videoDuration;var P=d.cM===void 0?void 0:d.cM;d=d.vA===void 0?!1:d.vA;this.videoId=J;this.status=y;this.videoDuration=v;this.cM=P;this.vA=d}; GB2=function(J,y,v,d,P){this.videoId=J;this.XD=y;this.T=v;this.bytesDownloaded=d;this.C=P}; t0=function(J){this.C=J;this.offset=0}; W8=function(J){if(J.offset>=J.C.totalLength)throw Error();return MH(J.C,J.offset++)}; bLT=function(J,y){y=y===void 0?!1:y;var v=W8(J);if(v===1){y=-1;for(v=0;v<7;v++){var d=W8(J);y===-1&&d!==255&&(y=0);y>-1&&(y=y*256+d)}return y}d=128;for(var P=0;P<6&&d>v;P++)v=v*256+W8(J),d*=128;return y?v:v-d}; FO3=function(J){try{var y=bLT(J,!0),v=bLT(J,!1);return{id:y,size:v}}catch(d){return{id:-1,size:-1}}}; jUx=function(J){for(var y=new t0(J),v=-1,d=0,P=0;!d||!P;){var A=FO3(y),T=A.id;A=A.size;if(T<0)return;if(T===176){if(A!==2)return;d=y.MP()}else if(T===186){if(A!==2)return;P=y.MP()}T===374648427?v=y.MP()+A:T!==408125543&&T!==174&&T!==224&&y.skip(A)}y=lr(J,0,v);v=new DataView(y.buffer);v.setUint16(d,3840);v.setUint16(P,2160);d=new yA([y]);v9(d,J);return d}; eqv=function(J,y,v){var d=this;this.loader=J;this.policy=y;this.V=v;this.logger=new g.tA("dash");this.T=[];this.C=null;this.AY=-1;this.K=0;this.If=NaN;this.zK=0;this.J=NaN;this.B=this.WX=0;this.ZB=-1;this.cX=this.W=this.L=this.wj=null;this.XW=this.GK=NaN;this.G=this.Cy=this.Vk=this.YB=null;this.rj=!1;this.Ek=this.timestampOffset=0;this.b6={xT:function(){return d.T}}; if(this.policy.W){var P=this.V,A=this.policy.W;this.policy.XW&&J.dj("atv",{ap:this.policy.XW});this.G=new Tj(this.policy,P,function(T,M,n){a3(J,new LQ(d.policy.W,2,{cM:new GB2(A,T,P.info,M,n)}))}); this.G.B.promise.then(function(T){d.G=null;T===1?a3(J,new LQ(d.policy.W,T)):d.loader.dj("offlineerr",{status:T.toString()})},function(T){var M=(T.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); T instanceof Su&&!T.C?(d.logger.info(function(){return"Assertion failed: "+M}),d.loader.dj("offlinenwerr",{em:M}),x2(d),a3(J,new LQ(d.policy.W,4))):(d.logger.info(function(){return"Failed to write to disk: "+M}),d.loader.dj("dldbwerr",{em:M}),x2(d),a3(J,new LQ(d.policy.W,4,{vA:!0})))})}}; msP=function(J){return J.T.length?J.T[0]:null}; Bnm=function(J,y){return J.T.some(function(v){return v.info.py===y})}; Clv=function(J,y,v,d){d=d===void 0?0:d;if(J.W){var P=J.W.T+J.W.J;if(v.info.T>0)if(v.info.py===J.W.py&&v.info.T=0&&J.W.py>=0&&!ZI(J.W,v.info))throw new g.H1("improper_continuation",J.W.A_(),v.info.A_());xoT(J.W,v.info)||OT(J,"d")}else if(v.info.T>0)throw new g.H1("continuation_of_null",v.info.A_());J.W=v.info;J.V=v.info.C;if(v.info.T===0){if(J.C)if(!J.loader.isOffline()||J.policy.AB)J.loader.dj("slice_not_fully_processed", {buffered:J.C.info.A_(),push:v.info.A_()});else throw new g.H1("slice_not_fully_processed",J.C.info.A_(),v.info.A_());gM(J);J.WX=d}else{if(J.WX&&d&&J.WX!==d)throw J=new g.H1("lmt_mismatch",v.info.py,J.WX,d),J.level="WARNING",J;!v.info.C.Gk()&&J.L&&(d=v.info,P=J.L.CT,d.G="updateWithEmsg",d.py=P)}if(J.C){d=g.OG(J.C,v);if(!d)throw new g.H1("failed_to_merge",J.C.info.A_(),v.info.A_());J.C=d}else J.C=v;a:{v=g.hT(J.C.info.C.info);if(J.C.info.type!==3){if(!J.C.info.V)break a;J.C.info.type===6?qGx(J,y,J.C): rA2(J,J.C);J.C=null}for(;J.C;){d=J.C.T.totalLength;if(J.AY<=0&&J.K===0){var A=J.C.T,T=-1;P=-1;if(v){for(var M=0;M+80))break;if(V!==408125543)if(V===524531317)M=!0,S>=0&&(P=A.MP()+S,n=!0);else{if(M&&(V===160||V===163)&&(T<0&&(T=Y),n))break;V===163&&(T=Math.max(0,T),P=A.MP()+S);if(V===160){T<0&&(P=T=A.MP()+ S);break}A.skip(S)}}T<0&&(P=-1)}if(T<0)break;J.AY=T;J.K=P-T}if(J.AY>d)break;J.AY?(d=$sd(J,J.AY),d.V&&o$x(J,d),qGx(J,y,d),DX(J,d),J.AY=0):J.K&&(d=$sd(J,J.K<0?Infinity:J.K),J.K-=d.T.totalLength,DX(J,d))}}J.C&&J.C.info.V&&(DX(J,J.C),J.C=null)}; rA2=function(J,y){!y.info.C.Gk()&&y.info.T===0&&(g.hT(y.info.C.info)||y.info.C.info.Tg())&&J8H(y);if(y.info.type===1)try{o$x(J,y),hq6(J,y)}catch(P){g.jv(P);var v=JA(y.info);v.hms="1";J.loader.handleError("fmt.unparseable",v||{},1)}v=y.info.C;v.SM(y);J.G&&tR2(J.G,y);if(v.kR()&&J.policy.C)a:{J=J.loader.mR;y=y.info.clipId;v=g.pm(v.info,J.jH);if(y){var d=HJ({itag:v.itag,lmt:J.jH?0:v.lmt||0,xtags:v.xtags});if(J.ZB[d])break a;J.ZB[d]=y}J.GK.push(v)}}; Mn6=function(J,y,v){if(J.T.length!==0&&(v||J.T.some(function(A){return A.info.W=Gj(T)+M):y=J.getDuration()>=T.getDuration(),y=!y;y&&UsT(v)&&(y=J.wj,c8?(M=Zm6(v),T=1/M,M=Gj(J,M),y=Gj(y)+T-M):y=y.getDuration()- J.getDuration(),y=1+y/v.info.duration,kfU(g.x$(v),y))}else{T=!1;J.L||(J8H(v),v.C&&(J.L=v.C,T=!0,P=v.info,A=v.C.CT,P.G="updateWithEmsg",P.py=A,P=v.C,P.N$&&(A=J.V.index,A.T=!P.N$,A.J="emsg"),P=v.info.C.info,A=g.x$(v),g.hT(P)?WJ(A,1701671783):P.Tg()&&bb([408125543],307544935,A)));a:if((P=ci(v,J.policy.L8))&&wzr(v))M=f2H(J,v),J.B+=M,P-=M,J.zK+=P,J.J=J.policy.ox?J.J+P:NaN;else{if(J.policy.nW){if(A=n=J.loader.x_(g.gn(v),1),J.J>=0&&v.info.type!==6){if(J.policy.ox&&isNaN(J.GK)){g.ev(new g.H1("Missing duration while processing previous chunk", v.info.A_()));J.loader.isOffline()&&!J.policy.AB||iLR(J,v,A);OT(J,"m");break a}d=n-J.J;var Y=d-J.B,S=v.info.py,V=J.cX?J.cX.py:-1,L=J.XW,t=J.GK,W=J.policy.ye&&d>J.policy.ye,c=Math.abs(Y)>10,b=Math.abs(J.J-A)<1E-7;if(Math.abs(Y)>1E-4){J.Ek+=1;var B=(M=J.L)==null?void 0:XIP(M);M={audio:""+ +J.yQ(),sq:S.toFixed(),sliceStart:n,lastSq:V.toFixed(),lastSliceStart:L,lastSliceDuration:t,totalDrift:(d*1E3).toFixed(),segDrift:(Y*1E3).toFixed(),skipRewrite:""+ +(W||c)};if(B==null?0:B.length)M.adCpn=B[0];J.loader.handleError("qoe.avsync", M);J.ZB=S}W||c||b||(A=J.J);M=f2H(J,v,n);P-=M;J.B=d+M}}else A=isNaN(J.J)?v.info.startTime:J.J;iLR(J,v,A)&&(J.zK+=P,J.J=A+P,J.policy.wS&&J.Ek>=J.policy.wS&&(J.Ek=0,J.loader.wU({resetForRewrites:"count"})))}J.cX=v.info;J.GK=D2(v);v.J>=0&&(J.XW=v.J);if(T&&J.L){T=uld(J,!0);yp(v.info,T);J.C&&yp(J.C.info,T);y=g.D(y);for(M=y.next();!M.done;M=y.next())M=M.value,P=void 0,J.policy.V&&M.py!==((P=J.L)==null?void 0:P.CT)||yp(M,T);(v.info.V||J.C&&J.C.info.V)&&v.info.type!==6||(J.Cy=T,J.policy.T?(y=HLU(J.L),J.loader.F7(J.V, T,y)):(y=J.loader,y.mR.isManifestless&&Xic(y,T,null,!!J.V.info.video)),J.policy.TP||Nnc(J))}}hq6(J,v);J.timestampOffset&&E6c(v,J.timestampOffset)}; DX=function(J,y){if(y.info.V){J.YB=y.info;if(J.L){var v=J.L,d=uld(J,!1);v=HLU(v);J.loader.F7(J.V,d,v);J.Cy||J.policy.TP||Nnc(J);J.Cy=null}gM(J)}J.G&&tR2(J.G,y);if(d=J.Mr())if(d=g.OG(d,y,J.policy.SQ,J.policy.mL)){J.T.pop();J.T.push(d);return}J.T.push(y)}; HLU=function(J){if(J.Fy()){var y=J.data["Stitched-Video-Id"]?J.data["Stitched-Video-Id"].split(",").slice(0,-1):[],v=XIP(J),d=[];if(J.data["Stitched-Video-Duration-Us"])for(var P=g.D(J.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),A=P.next();!A.done;A=P.next())d.push((Number(A.value)||0)/1E6);P=[];if(J.data["Stitched-Video-Start-Frame-Index"]){A=g.D(J.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var T=A.next();!T.done;T=A.next())P.push(Number(T.value)||0)}P=[]; if(J.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(A=g.D(J.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),T=A.next();!T.done;T=A.next())P.push((Number(T.value)||0)/1E6);J=new OL3(y,v,d,P,g.Na2(J),g.RSd(J))}else J=null;return J}; gM=function(J){J.C=null;J.AY=-1;J.K=0;J.L=null;J.If=NaN;J.zK=0;J.Cy=null}; OT=function(J,y){y={rst4disc:y,cd:J.B.toFixed(3),sq:J.cX?J.cX.py:-1};J.J=NaN;J.B=0;J.ZB=-1;J.cX=null;J.XW=NaN;J.GK=NaN;J.Vk=null;J.loader.dj("mdstm",y)}; hq6=function(J,y){if(J.isDrm()){if(y.info.C.info.Tg()){var v=new xs(g.x$(y));if(gy(v,[408125543,374648427,174,28032,25152,20533,18402])){var d=Gg(v,!0);v=d!==16?null:ms(v,d)}else v=null;d="webm"}else y.info.K=a2m(g.x$(y)),v=xs6(y.info.K),d="cenc";v&&v.length&&(v=new Vf(v,d),J.policy.cP&&g.hT(y.info.C.info)&&(d=yTm(g.x$(y)))&&(v.T=d),v.Tg=y.info.C.info.Tg(),y.C&&y.C.cryptoPeriodIndex&&(v.cryptoPeriodIndex=y.C.cryptoPeriodIndex),y.C&&y.C.T&&(v.C=y.C.T),J.loader.ZX(v))}}; Nnc=function(J){var y=J.L,v=uTc(y);v&&(v.startSecs+=J.If,J.loader.Qo(J.V,v,y.CT,y.Fy()))}; uld=function(J,y){var v,d=J.L;if(v=uTc(d))v.startSecs+=J.If;return new zE(d.CT,J.If,y?d.CN:J.zK,d.ingestionTime,"sq/"+d.CT,void 0,void 0,y,v)}; iLR=function(J,y,v){if(!ktx(y,v))return y=JA(y.info),y.smst="1",J.loader.handleError("fmt.unparseable",y||{},1),!1;isNaN(J.If)&&(J.If=v);return!0}; f2H=function(J,y,v){var d=0;if(y.info.C.info.Tg()&&!wzr(y))return 0;if(J.wj&&!J.yQ()){var P=0;v&&g.hT(y.info.C.info)?P=v-J.J:y.info.C.info.Tg()&&(P=J.B);var A=y.info.py;v=ci(y,J.policy.L8);var T=J.wj;var M=T.ZB;T=T.B;var n=Math.abs(T-P)>.02;if((A===M||A>M&&A>J.ZB)&&n){d=Math.max(.95,Math.min(1.05,(v-(T-P))/v));if(g.hT(y.info.C.info))kfU(g.x$(y),d);else if(y.info.C.info.Tg()&&(A=P-T,!g.hT(y.info.C.info)&&(y.info.C.info.Tg(),d=new xs(g.x$(y)),M=y.V?d:new xs(new DataView(y.info.C.C.buffer)),ci(y,!0)))){var Y= A*1E3,S=qx(M);M=d.pos;d.pos=0;if(d.C.getUint8(d.pos)===160||ry(d))if(cJ(d,160))if(Gg(d,!0),cJ(d,155)){if(A=d.pos,n=Gg(d,!0),d.pos=A,Y=Y*1E9/S,S=Ff(d),Y=S+Math.max(-S*.7,Math.min(S,Y)),Y=Math.sign(Y)*Math.floor(Math.abs(Y)),!(Math.ceil(Math.log(Y)/Math.log(2)/8)>n)){d.pos=A+1;for(A=n-1;A>=0;A--)d.C.setUint8(d.pos+A,Y&255),Y>>>=8;d.pos=M}}else d.pos=M;else d.pos=M;else d.pos=M}d=ci(y,J.policy.L8);d=v-d}d&&y.info.C.info.Tg()&&J.loader.dj("webmDurationAdjustment",{durationAdjustment:d,videoDrift:P+d, audioDrift:T})}return d}; UsT=function(J){return J.info.C.Gk()&&J.info.py===J.info.C.index.Yj()}; Gj=function(J,y){y=(y=y===void 0?0:y)?Math.round(J.timestampOffset*y)/y:J.timestampOffset;J.V.W&&y&&(y+=J.V.W.C);return y+J.getDuration()}; Rqm=function(J,y){y<0||(J.T.forEach(function(v){E6c(v,y)}),J.timestampOffset=y)}; Hy=function(J,y,v,d,P){TV.call(this,v,P);var A=this;this.policy=J;this.formatId=y;this.Kj=d;this.lastError=null;this.Xz=function(){A.tY()||(A.Kj.Ms.has(A.formatId)?(A.isComplete()||A.C.start(),oN(A.Kj,A.formatId)&&A.K1(2),A.Kj.KA(A.formatId)&&(V7T(A.Kj,A.formatId)?A.Hq(4):(A.lastError="net.closed",A.Hq(5)))):(A.lastError="player.exception",A.Hq(5)))}; this.C=new g.Kx(function(){A.isComplete()||(A.lastError="net.timeout",A.Hq(5))},1E3); this.C.start();sud(this.Kj,this.formatId,this.Xz);g.FC(this.Xz)}; bi=function(J,y,v,d){g.u.call(this);var P=this;this.loader=J;this.policy=y;this.C=v;this.timing=d;this.logger=new g.tA("dash");this.J=[];this.wj=[];this.T=this.EN=null;this.Vk=!1;this.WX=this.Ek=0;this.L=-1;this.AY=!1;this.If=-1;this.cX=null;this.Cy=NaN;this.zK=[];this.b6={d4:function(){return P.W}, FTy:function(){return P.J}, bRk:function(){return P.B}}; this.W=new eqv(J,y,v);this.policy.C&&(this.B=new i_(this.W,this.loader.getManifest(),this.policy,function(A){P.policy.qj&&P.dj("buftl",A)})); this.policy.f8&&(this.K=new P8(this));this.FW=v.info.FW;this.G=this.policy.Cy?!1:v.cN();this.isManifestless=v.cN();this.V=this.G;g.X(this,this.cX)}; Fj=function(J,y,v){v=v===void 0?!1:v;y&&c8&&Rqm(J.W,y.b3());if(!v){var d;(d=J.B)==null||Pkd(d)}J.EN=y;(y=J.B)!=null&&(y.EN=J.EN)}; ju=function(J){var y=J.EN&&J.EN.TO();if(J.policy.jf){if((J=J.B)==null)J=void 0;else{var v;J=(v=J.J)==null?void 0:v.info}return J||null}return y}; KOP=function(J){for(var y={},v=0;v4&&J.wj.shift()}; zqU=function(J,y){if(y.DC()){var v=y.dR();v=g.D(v);for(var d=v.next();!d.done;d=v.next())d=d.value,J.policy.J&&y instanceof Hy&&J.dj("omblss",{s:d.info.A_()}),mr(J,y.info.Uk,d,y.Iv())}}; mr=function(J,y,v,d){d=d===void 0?0:d;isNaN(J.Cy)||(J.dj("aswm",{sq:y[0].py,id:y[0].C.info.itag,xtag:y[0].C.info.C,ep:Date.now()-J.Cy}),J.Cy=NaN);switch(v.info.type){case 1:case 2:kB6(J,v);break;case 4:var P=v.info.C,A=P.vl(v),T;((T=J.T)==null?0:T.type===4)&&F32(v.info,J.T)&&(J.T=P.Lk(J.T).pop());v=g.D(A);for(P=v.next();!P.done;P=v.next())mr(J,y,P.value,d);break;case 3:v.info.C.info.video?(P=J.timing,P.If||(P.If=(0,g.GC)(),g.uh("fvb_r",P.If,P.C))):(P=J.timing,P.L||(P.L=(0,g.GC)(),g.uh("fab_r",P.L, P.C)));Clv(J.W,y,v,d);J.policy.C&&E$3(J);break;case 6:Clv(J.W,y,v,d),J.T=v.info}}; kB6=function(J,y){if(y.info.type===1)if(y.info.C.info.video){var v=J.timing;v.WX||(v.WX=(0,g.GC)(),g.uh("vis_r",v.WX,v.C))}else v=J.timing,v.B||(v.B=(0,g.GC)(),g.uh("ais_r",v.B,v.C));rA2(J.W,y);J=J.loader;J.videoTrack.C.kR()&&J.audioTrack.C.kR()&&J.policy.C&&!J.mR.jH&&(y=J.audioTrack.getDuration(),v=J.videoTrack.getDuration(),Math.abs(y-v)>1&&J.dj("trBug",{af:""+g.pm(J.audioTrack.C.info,!1),vf:""+g.pm(J.videoTrack.C.info,!1),a:""+y,v:""+v}))}; Zg=function(J){return msP(J.W)}; E$3=function(J){J.J.length?J.T=g.Wq(g.Wq(J.J).info.Uk):J.W.T.length?J.T=J.W.Mr().info:J.T=ju(J)}; B8=function(J,y){var v={Cf:[],nT:[]},d;if((J=J.B)==null)J=void 0;else{d93(J,J.Cf,"og");Jx2(J,y);d93(J,J.Cf,"trim");var P=vir(J);y=P.Cf;P=P.Y$;for(var A=[],T=0;T0){var L=Km(V,n);L>=0&&(S=(V.end(L)-n+.1)*1E3)}A.push({formatId:g.pm(M.info.C.info,J.mR.jH), l1:M.info.l1,sequenceNumber:M.info.py+J.W,Yu:Y,lK:M.info.J,dk:S})}J={Cf:y,nT:A}}return(d=J)!=null?d:v}; Rv=function(J,y,v){v=v===void 0?!1:v;if(J.EN){var d=J.EN.Fo(),P=k6(d,y),A=NaN,T=ju(J);T&&(A=k6(d,T.C.index.getStartTime(T.py)));if(P===A&&J.T&&J.T.J&&QUP(qy(J),0))return y}J=ZLr(J,y,v);return J>=0?J:NaN}; zd=function(J,y,v){J.C.kR();var d=ZLr(J,y);if(d>=0)return d;var P;(P=J.B)==null||yx6(P,y,v);d=Math;P=d.min;var A=J.W;if(A.G)if(A=A.G,A.FI&&A.FI.type===3)A=A.FI.startTime;else if(A.J>0){var T=A.C.index;T=g.Hq(T.offsets.subarray(0,T.count),A.J*A.chunkSize);A=A.C.index.getStartTime(T>=0?T:Math.max(0,-T-2))}else A=0;else A=Infinity;y=P.call(d,y,A);J.T=J.policy.Cy?null:J.C.Ry(y).Uk[0];rM(J)&&(J.policy.lc&&(v==null?void 0:v.seekSource)===60||J.EN&&J.EN.abort(),J.policy.YL&&(v=J.B)!=null&&(v.J=void 0)); J.WX=0;return J.T?J.T.startTime:y}; TkU=function(J){J.G=!0;J.V=!0;J.L=-1;zd(J,Infinity)}; $2=function(J){for(var y=0,v=g.D(J.J),d=v.next();!d.done;d=v.next())y+=eQH(d.value.info);return y+=I2P(J.W)}; CQ=function(J,y){y=y===void 0?!1:y;var v=J.loader.getCurrentTime(),d=J.W.Mr(),P=(d==null?void 0:d.info.L)||0;if((d==null?0:d.info.C.cN())&&!d.info.V)if(J.policy.aq)P=d.info.W;else if(J.policy.Cb){var A=d.info;P=A.range?A.L:Math.min(A.startTime+Math.min(A.duration*A.T/A.C.info.FW,A.duration)+(A.range?A.B:Math.min(A.duration,A.duration*A.J/A.C.info.FW)),A.startTime+A.duration)}if(!J.EN)return J.policy.C&&y&&!isNaN(v)&&d?P-v:0;if((A=ju(J))&&o3(A))return A.L;var T=J.EN.Fo(!0);if(y&&d)return A=0,J.policy.C&& (A=Z9(T,P+.02)),A+P-v;y=Z9(T,v);J.policy.Xu&&A&&(d=Km(T,v),T=Km(T,A.W-.02),d===T&&(v=A.L-v,J.policy.J&&v>y+.02&&J.dj("abh",{bh:y,bhtls:v}),y=Math.max(y,v)));return y}; wim=function(J){var y=ju(J);return y?y.L-J.loader.getCurrentTime():0}; JDx=function(J,y){if(J.J.length){if(J.J[0].info.Uk[0].startTime<=y)return;Nq(J)}for(var v=J.W,d=v.T.length-1;d>=0;d--)v.T[d].info.startTime>y&&v.T.pop();E$3(J);J.T&&y=0;T--){var M=P.T[T];M.info.py>=y&&(P.T.pop(),P.J-=ci(M,P.policy.L8),A=M.info)}A&&(P.W=P.T.length>0?P.T[P.T.length-1].info:P.Vk,P.T.length!==0||P.W||OT(P,"r"));P.loader.dj("mdstm",{rollbk:1,itag:A?A.C.info.itag:"",popped:A?A.py:-1,sq:y,lastslc:P.W?P.W.py:-1,lastfraget:P.J.toFixed(3)});if(J.policy.C)return J.T=null,!0;d>v?zd(J,d):J.T=J.C.JW(y-1,!1).Uk[0]}catch(n){return y=VS(n),y.details.reason="rollbkerr", J.loader.handleError(y.errorCode,y.details,y.severity),!1}return!0}; pQ=function(J,y){var v;for(v=0;v0?v||y.py>=J.If:v}; UT=function(J){var y;return rM(J)||o3((y=J.W.Mr())==null?void 0:y.info)}; qy=function(J){var y=[],v=ju(J);v&&y.push(v);y=g.qb(y,J.W.zW());v=g.D(J.J);for(var d=v.next();!d.done;d=v.next()){d=d.value;for(var P=g.D(d.info.Uk),A=P.next(),T={};!A.done;T={Uq:void 0},A=P.next())T.Uq=A.value,d.Hg&&(y=g.eT(y,function(M){return function(n){return!F32(n,M.Uq)}}(T))),(QU(T.Uq)||T.Uq.type===4)&&y.push(T.Uq)}J.T&&!W3P(J.T,g.Wq(y),J.T.C.Gk())&&y.push(J.T); return y}; QUP=function(J,y){if(!J.length)return!1;for(y+=1;y=y){y=A;break a}}y=P}return y<0?NaN:QUP(J,v?y:0)?J[y].startTime:NaN}; fQ=function(J){return!(!J.T||J.T.C===J.C)}; yD3=function(J){return fQ(J)&&J.C.kR()&&J.T.C.info.FWy&&J.L1080&&!J.Gl&&(J.WX=36700160,J.YB=5242880,J.Ek=Math.max(4194304,J.Ek),J.Gl=!0);y.video.qualityOrdinal>2160&&!J.NT&&(J.WX=104857600,J.FW=13107200,J.NT=!0);g.Zo(J.qx.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?y.isEncrypted()&&g.uQ()&&g.fX("samsung")&&(g.fX("kant")||g.fX("muse"))&&(J.FW=g.Zo(J.qx.experiments,"html5_samsung_kant_limit_max_bitrate")):y.isEncrypted()&&g.uQ()&&g.fX("kant")&&(J.FW=1310720);J.xf!==0&&y.isEncrypted()&& (J.FW=J.xf);J.XV!==0&&y.isEncrypted()&&v&&(J.FW=J.XV);y.FW&&(J.iq=Math.max(J.u1,Math.min(J.Ek,5*y.FW)))}; Dl=function(J){return J.C&&J.pR}; Ny=function(J){return J.C&&J.yH&&J.playbackStartPolicy}; R3=function(J,y,v,d){J.yH&&(J.playbackStartPolicy=y,J.L3=v,J.Sq=d)}; Xj=function(J,y,v){v=v===void 0?0:v;return g.Zo(J.qx.experiments,y)||v}; Llm=function(J){var y=J===void 0?{}:J;J=y.jh;var v=y.k6;var d=y.tA;var P=y.Yj;y=y.HE;this.jh=J;this.k6=v;this.tA=d;this.Yj=P;this.HE=y}; x9H=function(J,y){if(y<0)return!0;var v=J.Yj();return y0)return 2;if(y<0)return 1;v=J.Yj();return y(0,g.GC)()?0:1}; zj=function(J,y,v,d,P,A,T,M,n,Y,S,V,L,t){t=t===void 0?null:t;g.u.call(this);var W=this;this.loader=J;this.policy=y;this.videoTrack=v;this.audioTrack=d;this.W=P;this.C=A;this.timing=T;this.V=M;this.schedule=n;this.mR=Y;this.J=S;this.zK=V;this.tX=L;this.VH=t;this.Cy=!1;this.Va="";this.Dp=null;this.y_=NaN;this.AY=!1;this.T=null;this.x3=this.K=NaN;this.cw=this.L=0;this.logger=new g.tA("dash");this.b6={aQ:function(c,b){return W.aQ(c,b)}}; this.policy.XO>0&&(this.Va=g.t4(this.policy.XO));this.policy.Z4&&(this.B=new KQ(this.loader,this.policy,this.schedule),g.X(this,this.B))}; Ood=function(J,y,v){var d=y.T?y.T.C.q4:y.C.q4;var P=J.W,A;(A=!J.policy.MH)||(A=HW(d.C)===HW(d.T));A?d=!1:(P=Iu(P,HW(d.T)),A=6E4*Math.pow(P.W,1.6),(0,g.GC)()=P.W?(P.dj("sdai",{haltrq:A+1,est:P.W}),d=!1):d=P.T!==2;if(!d||!ub(y.T?y.T.C.q4:y.C.q4,J.policy,J.W,J.loader.BQ())||J.loader.isSuspended&&(!Co(J.schedule)||J.loader.fK))return!1;if(J.policy.W&&Kh>=5)return g.zA(J.loader.NI),!1;if(J.mR.isManifestless){if(y.J.length>0&&y.T&&y.T.py===-1||y.J.length>=J.policy.Qe||!J.policy.EO&&y.J.length>0&&!J.policy.G.k6)return!1;if(y.G)return!J.mR.isLive|| !isNaN(J.y_)}if(T4m(y))return J.logger.debug("Pending request with server-selectable format found"),!1;if(!y.T){if(!y.C.kR())return!1;zd(y,J.loader.getCurrentTime())}if(Zg(y)&&(y.Mr()!==Zg(y)||J.loader.isSuspended))return!1;P=(d=J.policy.fM)&&!y.J.length&&CQ(y,!0)=J.policy.kz)return!1;d=y.T;if(!d)return!0;d.type===4&&d.C.kR()&&(y.T=g.Wq(d.C.Lk(d)),d= y.T);if(!d.N$()&&!d.C.TC(d))return!1;A=J.mR.L0||J.mR.W;if(J.mR.isManifestless&&A){A=y.C.index.Yj();var T=v.C.index.Yj();A=Math.min(A,T);if(y.C.index.zO()>0&&A>0&&d.py>=A)return y.If=A,v.If=A,!1}if(d.C.info.audio&&d.type===4||d.N$())return!1;A=!y.V&&!v.V;if(P=!P)P=d.L,P=!!(v.T&&!o3(v.T)&&v.T.LgOd(J,y)?(gOd(J,y),!1):(J=y.EN)&&J.isLocked()?!1:!0}; gOd=function(J,y){var v=J.C;v=v.C?v.C.wc:null;if(J.policy.wj&&v)return v.startSecs+v.WF+15;y=K8(J.loader,y);J.policy.J9>0&&(v=((0,g.GC)()-J.loader.wV)/1E3,y=Math.min(y,J.policy.J9+J.policy.gr*v));y=J.loader.getCurrentTime()+y;return J.policy.Zq&&(v=De2(J.loader)+J.policy.Zq,v=0||y.q4.oS("defrag")==="1"||y.q4.oS("otf")==="1"){y=null;break a}P=KS(0,4096)}P=new vi([new ks(5,d.C,P,"createProbeRequestInfo"+d.G,d.py)],y.T);P.g0=v;P.C=y.C;y=P}y&&ET(J,y)}}; ET=function(J,y){J.loader.PJ(y);var v=eQH(y),d=J.loader.sF();v={sS:J.schedule,MR:v,X3:zOU(J.V,v),HH:E7(y.Uk[0]),Pz:XK(y.q4.C),xu:J.policy.J,RM:function(T,M){J.loader.Xb(T,M)}}; if(J.schedule.T.L){var P,A;v.Pn=(((P=J.videoTrack.C)==null?void 0:P.info.FW)||0)+(((A=J.audioTrack.C)==null?void 0:A.info.FW)||0)}J.Dp&&(v.py=y.Uk[0].py,v.y_=y.y_,v.Dp=J.Dp);d={sI:mod(y,J.loader.getCurrentTime()),bz:J.policy.SC&&Pi(y)&&y.Uk[0].C.info.video?n$3(J.J):void 0,tS:J.policy.wj,poToken:J.loader.FK(),Ur:J.loader.e$(),Va:J.Va,x3:isNaN(J.x3)?null:J.x3,VH:J.VH,tX:J.tX,cw:J.cw,u9:d};return new XY(J.policy,y,v,J.W,function(T,M){try{a:{var n=T.info.Uk[0].C,Y=n.info.video?J.videoTrack:J.audioTrack; if(!(T.state>=2)||T.isComplete()||T.Nj()||!(!J.loader.hY||J.loader.isSuspended||CQ(Y)>3)){var S=aKx(T,J.policy,J.W);S===1&&(J.AY=!0);cDU(J,T,S);if(T.isComplete()||T.tY()&&M<3){if(J.policy.J){var V=T.timing.SS();V.rst=T.state;V.strm=T.xhr.ao();V.cncl=T.xhr&&T.t_.W?1:0;J.loader.dj("rqs",V)}T.V0&&J.loader.dj("sbwe3",{},!0)}if(!J.tY()&&T.state>=2){$x6(J.timing,T,n);var L=J.loader;J.x3&&T.dJ&&L&&(J.x3=NaN,J.loader.lx(T.dJ),J.loader.R1(),J.loader.dj("cabrUtcSeek",{mediaTimeSeconds:T.dJ}));T.MC&&J.x3&&T.MC&& !T.MC.action&&(J.loader.wT(J.x3),J.x3=NaN,J.loader.dj("cabrUtcSeekFallback",{targetUtcTimeSeconds:J.x3}));T.Fd&&J.loader.h8(T.Fd);J.policy.ES&&(J.cw=T.cw);if(T.state===3){pQ(Y,T);Pi(T.info)&&ZX(J,Y,n,!0);if(J.T){var t=T.info.ZQ();t&&J.T.VI(T.info.Uk[0].py,n.info.id,t)}J.loader.j1()}else if(T.isComplete()&&T.info.Uk[0].type===5){if(T.state!==4)T.Rq()&&J.loader.handleError(T.R5(),T.Ke());else{var W=(T.info.Uk[0].C.info.video?J.videoTrack:J.audioTrack).J[0]||null;W&&W instanceof XY&&W.Nj()&&W.Aa()}T.dispose()}else{T.Rq()|| G3d(J,T);var c;((c=T.vN)==null?0:c.itagDenylist)&&J.loader.UW(T.vN.itagDenylist);if(T.state===4)wM(J,T),J.C&&pJ2(J.C,T.info,J.T);else if(J.policy.JH&&T.DC()&&!T.isComplete()&&!wM(J,T)&&!T.Rq())break a;T.Rq()&&(bo6(J,T),isNaN(J.x3)||(J.loader.wT(J.x3),J.x3=NaN));J.policy.H$&&!T.isComplete()?Jj(J.loader):J.loader.j1();var b=xer(T,J.policy,J.W);cDU(J,T,b)}}}}}catch(B){M=J.Cy?1:0,J.Cy=!0,T=SA(M),M=VS(B,M),J.loader.handleError(M.errorCode,M.details,M.severity),T||J.loader.xH()}},d)}; G3d=function(J,y){if(y.gq&&y.state>=2&&y.state!==3){var v=y.xhr.getResponseHeader("X-Response-Itag");if(v){J.logger.debug(function(){return"Applying streamer-selected format "+v}); var d=MR3(J.J,v),P=y.info.J;P&&(P-=d.Tw(),d.J=!0,y.info.Uk[0].C.J=!1,lI2(y,d.OI(P)),y8(J.loader,J.videoTrack,d),lKr(J.videoTrack,d),J.loader.MN(d.info.video.quality),(P=y.Iv())&&d.info.lastModified&&d.info.lastModified!==+P&&pQ(J.videoTrack,y))}else y.gq=!1}}; bo6=function(J,y){var v=y.info.Uk[0].C,d=y.R5();if(XK(v.q4.C)){var P=g.m9(y.ge(),3);J.loader.dj("dldbrerr",{em:P||"none"})}P=y.info.Uk[0].py;var A=HF(J.C,y.info.Uk[0].W,P);d==="net.badstatus"&&(J.L+=1);if(y.canRetry()&&FlR(J.loader)){if(!(y.info.q4.J>=J.policy.M5&&J.T&&y.info.isDecorated()&&d==="net.badstatus"&&J.T.mD(A,P))){P=(v.info.video&&v.q4.J>1||y.Mw===410||y.Mw===500||y.Mw===503)&&!(kB(J.J.V).size>0)&&!XK(v.q4.C);A=y.Ke();var T=v.info.video?J.videoTrack:J.audioTrack;P&&(A.stun="1");J.loader.handleError(d, A);J.tY()||(P&&(J.logger.debug(function(){return"Stunning format "+v.info.id}),yf(J.J,v)),pQ(T,y),J.loader.j1())}}else T=1,J.T&&y.info.isDecorated()&&d==="net.badstatus"&&J.T.mD(A,P)&&(T=0),J.mR.isLive&&y.R5()==="net.badstatus"&&J.L<=J.policy.Kp*2?(oz3(J.mR),J.mR.L0||J.mR.isPremiere?QP(J.loader,0,{jn:"badStatusWorkaround"}):J.mR.W?QP(J.loader,J.mR.wj,{jn:"badStatusWorkaround", x_:!0}):v_(J.loader)):J.loader.handleError(d,y.Ke(),T)}; wM=function(J,y){if(J.policy.useUmp&&y.tY())return!1;try{var v=y.info.Uk[0].C,d=v.info.video?J.videoTrack:J.audioTrack;if(J.mR.isManifestless&&d){J.L=0;d.G&&(y.tY(),y.isComplete()||y.DC(),d.G=!1);y.U$()&&J.loader.YO.B_(1,y.U$());var P=y.zO(),A=y.jt();Ns(J.mR,P,A)}if(y.info.HH()&&!dn(y.info))for(var T=g.D(y.dR()),M=T.next();!M.done;M=T.next())kB6(d,M.value);for(J.loader.getCurrentTime();d.J.length&&d.J[0].state===4;){var n=d.J.shift();zqU(d,n);d.Ek=n.wk()}d.J.length&&zqU(d,d.J[0]);var Y=!!Zg(d);Y&& y instanceof Hy&&(v.info.yQ()?Fs6(J.timing):bST(J.timing));return Y}catch(S){y=y.Ke();y.origin="hrhs";a:{J=J.loader;v=S;if(v instanceof Error){y.msg||(y.msg=""+v.message);y.name||(y.name=""+v.name);if(v instanceof g.H1&&v.args)for(d=g.D(Object.entries(v.args)),P=d.next();!P.done;P=d.next())A=g.D(P.value),P=A.next().value,A=A.next().value,y["arg"+P]=""+A;g.ev(v);if(v.level==="WARNING"){J.lA.wU(y);break a}}J.handleError("fmt.unplayable",y,1)}return!1}}; jKv=function(J){var y=J.videoTrack.C.index;J.Dp=new Llm({jh:J.policy.jh,k6:J.policy.G.k6,tA:y.ZF(),Yj:function(){return y.Yj()}, HE:function(){return y.HE()}})}; ZX=function(J,y,v,d){if(!(v.kR()||v.VF()||v.J||!ub(v.q4,J.policy,J.W,J.loader.BQ())||v.info.PX==="f"||J.policy.C)){if(d){d=J.V;var P=v.info;d=kOj(d,P.video?d.policy.Gj:d.policy.QA,P.FW)}else d=0;d=v.OI(d);J=ET(J,d);dn(d)&&eu(y,J);v.J=!0}}; dL=function(J,y,v,d,P,A,T,M){g.u.call(this);var n=this;this.loader=J;this.K0=y;this.videoTrack=v;this.audioTrack=d;this.mR=P;this.K=A;this.isAudioOnly=T;this.B=M;this.T=dC;this.AY=!1;this.logger=new g.tA("sabr");this.G=this.Cy=this.zK=!1;this.videoInfos=this.L=this.K.videoInfos;this.J=this.wj=this.K.C;this.C=new Kg(y,A,function(Y,S){n.loader.dj(Y,S)}); this.isAudioOnly&&eGR(this,this.mR.C["0"])}; mex=function(J,y){var v=[];y=g.D(y);for(var d=y.next();!d.done;d=y.next())v.push(g.pm(d.value,J.mR.jH));return v}; eGR=function(J,y,v){y!==J.W&&(J.W&&(J.AY=!0),J.W=y,J.Yp(y,J.videoTrack,v))}; $ex=function(J,y){J.logger.debug("setConstraint: "+en(y));Dl(J.K0)&&(J.Cy=y.reason==="m"||y.reason==="l"?!0:!1);y.reason==="m"?y.isLocked()&&B4x(J,y.C):qCr(J,y)?rDP(J,y.T,y.C):J.videoInfos=J.L;J.T=y}; qCr=function(J,y){return J.K0.yh&&y.reason==="b"||J.K0.LK&&y.reason==="l"||J.K0.hd?!1:J.K0.jQ?!0:y.reason==="l"||y.reason==="b"||y.reason==="o"}; oOR=function(J,y){return y.isLocked()&&J.C.T||J.T===void 0?!1:y.equals(J.T)}; Cnj=function(J,y){var v,d=(v=J.W)==null?void 0:v.info.video.qualityOrdinal;return J.AY?!0:J.W?y!==d?!0:!J.C.T||J.K0.Bw&&J.C.C===J.W.info.itag?!1:!0:!1}; B4x=function(J,y){var v=J.C.C;if(v){J.videoInfos=J.L;var d=g.On(J.videoInfos,function(P){return P.id===v}); d&&d.video.qualityOrdinal===y?J.videoInfos=[d]:(d=J.videoInfos.map(function(P){return P.id}),J.loader.dj("sabrpf",{pfid:""+v, vfids:""+d.join(".")}),rDP(J,y,y),El(J.C,""))}else rDP(J,y,y)}; rDP=function(J,y,v){J.videoInfos=J.L;J.videoInfos=g.eT(J.videoInfos,function(d){return d.video.qualityOrdinal>=y&&d.video.qualityOrdinal<=v})}; hGU=function(J,y,v){if(J.B){var d=g.eT(J.J,function(P){return P.id===J.B}); return P_(d,v).includes(y)}d=g.eT(J.J,function(P){var A;return!((A=P.N4)==null||!A.isDefault)}); return d.length>0?P_(d,v).includes(y):P_(J.J,v).includes(y)}; P_=function(J,y){return J.map(function(v){return HJ(g.pm(v,y))})}; IKm=function(J){var y;if((y=J.T)==null?0:y.isLocked())return J.videoInfos;var v=kB(J.C);y=g.eT(J.videoInfos,function(d){return d.FW>J.K0.FW?!1:!v.has(d.id)}); XJc(J.C)&&(y=g.eT(y,function(d){return d.video.width<=854&&d.video.height<=480})); return y}; UeH=function(J,y,v){var d=J.mR,P=J.lA.getVideoData(),A=J.Co,T=ykr({qx:P.Y(),lA:J.lA,cG:J.cG,K0:J.K0,C5:J.C5,VK:J.VK,qL:J.qL,SF:J.SF,Zl:J.Zl,isPrefetch:J.isPrefetch,t$:J.t$,sabrLicenseConstraint:P.sabrLicenseConstraint,w2:J.w2,In:J.In,H0:J.H0,XG:J.XG,gg:!!A,authorizedFormats:P.authorizedFormats}),M=cF(P,J.u9,J.nextRequestPolicy,J.Bg,J.m5,J.y3,J.Mg);v&&y&&(v=M.QY?M.QY.map(function(V){return V.type}):[],y("sabr",{stmctxt:v.join("_"), unsntctxt:M.aI?M.aI.join("_"):""}));y=J.zf;v=J.d1;if(v===void 0&&y===void 0){var n;v=plj(d.jH,(n=J.d$)==null?void 0:n.video);var Y;y=plj(d.jH,(Y=J.d$)==null?void 0:Y.audio)}if(P.VH)var S=P.VH;P={k8:T,nT:J.nT,zf:y,d1:v,Co:A,videoPlaybackUstreamerConfig:S,jr:M};J.Fv&&(P.Fv=J.Fv);P.Cf=J.Cf;P.yF=d.GK;return P}; plj=function(J,y){return y?[g.pm(y.info,J)]:[]}; Aj=function(J,y,v){var d=this;this.requestType=J;this.q4=y;this.oG=v;this.T=null;this.b6={xjk:function(){var P;return(P=d.data)==null?void 0:P.isPrefetch}, m5:function(){var P;return(P=d.data)==null?void 0:P.m5}}}; gsT=function(J,y,v){y=fS(J.q4,fKj(J,y,v),y);J.Kb()&&y.set("probe","1");return y}; fKj=function(J,y,v){J.g0===void 0&&(J.g0=J.q4.g0(y,v));return J.g0}; io3=function(J){var y,v;return((y=J.C)==null?void 0:(v=y.k8)==null?void 0:v.F3)||0}; uA3=function(J){var y,v;return!!((y=J.C)==null?0:(v=y.k8)==null?0:v.w2)}; HoT=function(J){var y={},v=[],d=[];if(!J.data)return y;for(var P=0;P=0&&(y in J.C||(J.C[y]=new N46),J.C[y].zk(v,d))}; EO6=function(J,y,v,d,P){var A=(0,g.GC)(),T=P?P(y):void 0,M;P=(M=T==null?void 0:T.b0)!=null?M:1;if(P!==0){var n;M=(n=T==null?void 0:T.profile)!=null?n:v;k3r(J,M,A-d,P)}return y}; QKR=function(J,y,v,d,P){if(y&&typeof y==="object"){var A=function(T){return EO6(J,T,v,d,P)}; if(GO(y))return y.then(A);if(cR(y))return mB(y,A)}return EO6(J,y,v,d,P)}; Zo6=function(){}; lT=function(J,y){this.C=J;this.cipher=this.C.exports.AES128CTRCipher_create(y.byteOffset)}; ywT=function(J,y){return q3(wl3,function(){var v=this;return function P(){var A,T,M;return f3(P,function(n){switch(n.T){case 1:g.F6(n,2);if(!v.W)throw"wasm.ps.ns";A=J;T=uR;return Dv(n,rU(Jwj(v,y)),4);case 4:M=T(n.C);if(!M)throw"wasm.ps.um";try{return n.return(new WebAssembly.Instance(M,A))}catch(Y){}return Dv(n,rU(WebAssembly.instantiate(M,A)),5);case 5:return n.return(n.C);case 2:g.od(n),g.C3(n,0)}})}()})}; voH=function(J,y){J.C||(J.C=mB(jW(function(){return fetch(y)}),function(v){return v.arrayBuffer()}),BR(J.C,function(v){J.C=void 0; throw"wasm.ps.f: "+v;}))}; Jwj=function(J,y){if(J.T)return J.T;J.T=dB6(J,y);BR(J.T,function(v){J.T=void 0;throw"wasm.ps.c: "+v;}); return J.T}; dB6=function(J,y){return q3(J,function(){var v=this;return function P(){var A,T,M,n,Y,S,V,L,t,W,c,b,B,q;return f3(P,function(C){switch(C.T){case 1:g.F6(C,2);A=[];T=window.ywc;if(!T){C.Qk(4);break}M=T[y];if(!M){C.Qk(4);break}if(M.mod)return C.return(M.mod);if(!M.modP){C.Qk(6);break}g.bR(C,7);n=uR;return Dv(C,rU(M.modP),9);case 9:return C.return(n(C.C));case 7:g.BP(C),A.unshift("pcm");case 6:if(M.bin){v.C=bY(M.bin);C.Qk(4);break}if(!M.binP){C.Qk(4);break}g.bR(C,12);Y=DD;S=bY;V=uR;return Dv(C,rU(M.binP), 14);case 14:v.C=S.call(Y,V(C.C));g.ex(C,4);break;case 12:g.BP(C),v.C=void 0,A.unshift("pfb");case 4:if(!v.C){C.Qk(15);break}g.bR(C,16);L=uR;return Dv(C,rU(v.C),18);case 18:t=L(C.C);if(v.J)try{return C.return(new WebAssembly.Module(t))}catch(U){v.J=!1,A.unshift("f0cs")}W=uR;return Dv(C,rU(WebAssembly.compile(t)),19);case 19:return C.return(W(C.C));case 16:g.BP(C),v.C=void 0,A.unshift("f0ca");case 15:return g.bR(C,20),voH(v,y),c=uR,Dv(C,rU(v.C),22);case 22:b=c(C.C);if(v.J)try{return C.return(new WebAssembly.Module(b))}catch(U){v.J= !1,A.unshift("f1cs")}B=uR;return Dv(C,rU(WebAssembly.compile(b)),23);case 23:return C.return(B(C.C));case 20:q=g.BP(C),v.C=void 0,v.W=!1,A.unshift("f1ca: "+q);case 21:throw"["+A.map(function(U){return'"'+U+'"'}).join(", ")+"]"; case 2:g.od(C),g.C3(C,0)}})}()})}; PBT=function(){}; Awx=function(){var J=this;this.proc_exit=function(){}; this.fd_write=function(y,v,d){if(!J.exports)return 1;y=new Uint32Array(J.exports.memory.buffer,v,d*2);v=[];for(var P=0;P0;n--)v.push(M)}v.length!==T?y.error=!0:(A=v.slice(-A),v.length=P,qrU(y,v,A));break;case 1:qrU(y,pP,bhv);break;case 0:rwd(y, y.C&7);v=uT(y,16);P=uT(y,16);(v^P)!==65535&&(y.error=!0);y.output.set(y.data.subarray(y.T,y.T+v),y.J);y.T+=v;y.J+=v;break;default:y.error=!0}J.J>J.output.length&&(J.output=new Uint8Array(J.J*2),J.J=0,J.T=0,J.W=!1,J.C=0,J.register=0)}J.output.length!==J.J&&(J.output=J.output.subarray(0,J.J));return J.error?new Uint8Array(0):J.output}; qrU=function(J,y,v){y=mB2(y);v=mB2(v);for(var d=J.data,P=J.output,A=J.J,T=J.register,M=J.C,n=J.T;;){if(M<15){if(n>d.length){J.error=!0;break}T|=(d[n+1]<<8)+d[n]<>=7;Y<0;)Y=y[(T&1)-Y],T>>=1;else T>>=Y&15;M-=Y&15;Y>>=4;if(Y<256)P[A++]=Y;else if(J.register=T,J.C=M,J.T=n,Y>256){T=fP[Y];T+=uT(J,U4[Y]);n=BE2(J,v);M=iT[n];M+=uT(J,FkH[n]);if(ooR&&Tv.length&&(J.error=!0);J.register|=(v[d+1]<<8)+v[d]<=0)return rwd(J,v&15),v>>4;for(rwd(J,7);v<0;)v=y[uT(J,1)-v];return v>>4}; uT=function(J,y){for(;J.C=J.data.length)return J.error=!0,0;J.register|=J.data[J.T++]<>=y;J.C-=y;return v}; rwd=function(J,y){J.C-=y;J.register>>=y}; mB2=function(J){for(var y=[],v=g.D(J),d=v.next();!d.done;d=v.next())d=d.value,y[d]||(y[d]=0),y[d]++;var P=y[0]=0;v=[];var A=0;d=0;for(var T=1;T7&&(A+=y[T]);for(P=1;P>n&1;M=A<<4|T;if(T<=7)for(n=1<<7-T;n--;)d[n<>=7;T--;){d[n]||(d[n]=-y,y+=2);var Y=P&1;P>>=1;n=Y-d[n]}d[n]=M}}return d}; hMj=function(J){var y,v,d,P,A,T,M,n;return g.f(function(Y){switch(Y.T){case 1:if(!CBT)throw Error("DecompressionStream is not supported");y=new DecompressionStream("gzip");v=y.writable.getWriter();v.write(J);v.close();d=y.readable.getReader();P=new yA([]);case 2:return g.h(Y,d.read(),5);case 5:A=Y.C;T=A.value;if(M=A.done){Y.Qk(4);break}P.append(T);Y.Qk(2);break;case 4:return n=Tp(P),Y.return(n)}})}; I_U=function(J){FE.call(this,"onesie");this.Ns=J;this.C={};this.W=!0;this.J=null;this.queue=new Gx3(this);this.V={}}; pT6=function(J){var y=J.queue;y.C.length&&y.C[0].isEncrypted&&!y.T&&(y.C.length=0);y=g.D(Object.keys(J.C));for(var v=y.next();!v.done;v=y.next()){v=v.value;var d=J.C[v];if(!d.Jq){var P=J.queue;P.C.push({videoId:d.videoId,formatId:v,isEncrypted:!1});P.T||IL(P)}}}; UB2=function(J,y){var v=y.totalLength,d=!1;switch(J.J){case 0:J.jg(y,J.W).then(function(P){var A=J.Ns;A.I_("oprr");A.playerResponse=P;A.fY||(A.PM=!1);H_(A)},function(P){J.Ns.fail(P)}); break;case 2:J.I_("ormk");y=Tp(y);J.queue.decrypt(y);break;default:d=!0}J.Ns.Hc&&J.Ns.dj("ombup","id.11;pt."+J.J+";len."+v+(d?";ignored.1":""));J.J=null}; f_R=function(J,y){var v,d,P,A,T;return g.f(function(M){switch(M.T){case 1:if(!CBT){M.Qk(2);break}g.bR(M,3);return g.h(M,hMj(y),5);case 5:return v=M.C,M.return(v);case 3:d=g.BP(M),J.Ns.dj("gzerr",{impl:"native",err:""+d});case 2:if(P=J.Ns.Y().GK)try{var n=P.jU(y),Y=P,S=n!=null?n:y,V=S.byteOffset,L=S.byteLength,t=Y.exports.getInflatedSize(V,L);if(t===0)throw Error("wasm_gz: bad input");var W=Y.malloc(t),c=Y.exports.inflateGzip(V,L,W);if(c)throw Y.free(W),Error("wasm_gz: fail"+c);var b=new Uint8Array(Y.exports.memory.buffer, W,t);n&&P.free(n.byteOffset);A=P.ZH(b);return M.return(A)}catch(B){J.Ns.dj("gzerr",{impl:"wasm",err:""+B})}T=g.$Bc(new g.jjR(y));return M.return(T)}})}; ihd=function(J){return new Promise(function(y){setTimeout(y,J)})}; uw3=function(J,y){var v=J.Y();v=J.gr&&v.X("html5_onesie_preload_use_content_owner");var d=J.h3,P=Lo(y.iA.experiments,"debug_bandaid_hostname");if(P)y=W_(y,P);else if((v===void 0?0:v)&&(d==null?0:d.url)&&!y.T){var A=HW(new g.ik(d.url));y=W_(y,A)}else y=(A=y.C.get(0))==null?void 0:A.location.clone();if(y&&J.videoId){A=OC(J.videoId);J=[];if(A)for(A=g.D(A),v=A.next();!v.done;v=A.next())J.push(v.value.toString(16).padStart(2,"0"));y.set("id",J.join(""));return y}}; HhU=function(J,y,v){v=v===void 0?0:v;var d,P;return g.f(function(A){if(A.T==1)return d=[],d.push(y.load()),v>0&&d.push(ihd(v)),g.h(A,Promise.race(d),2);P=uw3(J,y);return A.return(P)})}; XTm=function(J,y,v,d){d=d===void 0?!1:d;J.set("cpn",y.clientPlaybackNonce);J.set("opr","1");var P=y.Y();J.set("por","1");lE()||J.set("onem","1");y.startSeconds>0&&J.set("osts",""+y.startSeconds);d||(P.X("html5_onesie_disable_partial_segments")&&J.set("oses","1"),y=P.X("html5_gapless_onesie_no_media_bytes")&&Wh(y)&&y.gr,v&&!y?(y=v.audio,J.set("pvi",v.video.join(",")),P.X("html5_onesie_disable_audio_bytes")||J.set("pai",y.join(",")),VJ||J.set("osh","1")):(J.set("oad","0"),J.set("ovd","0"),J.set("oaad", "0"),J.set("oavd","0")))}; NEr=function(J,y,v,d,P){P=P===void 0?!1:P;var A="https://youtubei.googleapis.com/youtubei/"+y.aq.innertubeApiVersion+"/player",T=[{name:"Content-Type",value:"application/json"}];d&&T.push({name:"Authorization",value:"Bearer "+d});T.push({name:"User-Agent",value:g.IM()});g.NP("EOM_VISITOR_DATA")?T.push({name:"X-Goog-EOM-Visitor-Id",value:g.NP("EOM_VISITOR_DATA")}):(v=v.visitorData||g.NP("VISITOR_DATA"))&&T.push({name:"X-Goog-Visitor-Id",value:v});(v=g.NP("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&T.push({name:"X-YouTube-Lava-Device-Context", value:v});(y=Lo(y.experiments,"debug_sherlog_username"))&&T.push({name:"X-Youtube-Sherlog-Username",value:y});J=tV(JSON.stringify(J));return{url:A,ND:T,postBody:J,Bij:P,rq:P}}; RM2=function(J,y,v,d,P,A,T){var M=J.iL,n=J.XF;J=J.VKj;var Y=M!==void 0&&n!==void 0,S=d.getVideoData(),V,L=y.C.encryptedClientKey;y=Y?y.iv:void 0;Y=oK(v.schedule,!0);P=P||!!lE()&&Y>1572864;return{innertubeRequest:{fWY:J,J4:M,XF:n,encryptedClientKey:L,iv:y,m1b:!0,z9:!0,Fx:"DecompressionStream"in window||!P,BeR:v.experiments.BX("html5_use_jsonformatter_to_parse_player_response")},k8:ykr({qx:v,lA:d,cG:S.startSeconds*1E3}),onesieUstreamerConfig:A,ue:T,jr:cF(S),reloadPlaybackParams:(V=S.t7)==null?void 0: V.reloadPlaybackParams}}; Kkc=function(J,y,v,d,P,A){var T=g.RX(J,Vb6,J.rq?void 0:v.GK);if(!J.rq){if(v.GK){var M;try{y.T||(y.T=new V8(y.C.C,y.W,y.L));var n=M=y.T.T(T,y.iv);(0,g.GC)();var Y=y.V,S=y.iv,V=Y.jU(y.C.T),L=Y.jU(S),t=new Uint8Array(Y.exports.memory.buffer,Y.malloc(32),32);Y.exports.Sha256Hmac(V.byteOffset,V.byteLength,L.byteOffset,L.byteLength,n.byteOffset,n.byteLength,t.byteOffset);Y.free(V.byteOffset);Y.free(L.byteOffset);var W=Y.ZH(t);var c;var b=(c=v.GK.ZH(M))!=null?c:M;M=void 0}catch(B){M&&v.GK.free(M.byteOffset)}}b|| (b=y.encrypt(T));W||(W=b,(0,g.GC)(),W=PDj(new dZv(y.C.T),W,y.iv))}return RM2(b&&W?{iL:b,XF:W}:{VKj:T},y,v,d,!!J.rq,P,A)}; zMm=function(J,y,v,d,P,A){var T,M,n;return g.f(function(Y){if(Y.T==1)return T=g.RX(J,Vb6),g.h(Y,Lkd(y,T),2);if(Y.T!=3)return M=Y.C,g.h(Y,tcc(y,M),3);n=Y.C;return Y.return(RM2({iL:M,XF:n},y,v,d,!!J.rq,P,A))})}; N$=function(J,y){g.u.call(this);var v=this;this.lA=J;this.playerRequest=y;this.logger=new g.tA("onesie");this.xhr=null;this.state=1;this.KR=new S1;this.oE=!1;this.playerResponse="";this.Ax=new Ar(this);this.Bc=new I_U(this);this.Xh="";this.UF=this.xk=!1;this.xd="";this.enableCompression=this.fY=this.WN=!1;this.m4=[];this.CT=-1;this.IH=0;this.iA=this.lA.Y();this.videoData=this.lA.getVideoData();this.Hc=this.iA.SH();this.i5=this.iA.JB;this.oT=new LP(this.i5.C,this.iA.QM,XlU(this.iA));this.Bv=this.iA.X("html5_onesie_check_timeout"); this.Sm=new g.Kx(this.IF,500,this);this.qS=new g.Kx(this.MD,1E4,this);this.Jp=new g.Kx(function(){if(!v.isComplete()){var d=X3(v);v.fail(new g.Y6("net.timeout",d))}},1E3); this.x4=new g.Kx(this.Dr,2E3,this);this.d5=this.lA.e$();this.PM=this.X("html5_onesie_wait_for_media_availability");g.X(this.videoData,this);g.X(this,this.Sm);g.X(this,this.qS);g.X(this,this.x4);g.X(this,this.oT);J=Wl();VJ&&J&&(this.uh=new Map);this.Iw=new Map;this.Os=new Map;this.sJ=new Map;this.Hs=new Map}; xb=function(J,y){var v;return(v=J.uh)==null?void 0:v.get(y)}; Eoj=function(J,y,v){var d;return g.f(function(P){if(P.T==1)return J.I_("oprd_s"),kx6(J)?g.h(P,Wk3(J.oT,y,v),3):(d=J.oT.decrypt(y,v),P.Qk(2));P.T!=2&&(d=P.C);J.I_("oprd_c");return P.return(d)})}; QjP=function(J){return J.X("html5_onesie_host_probing")||J.Hc?VJ:!1}; H_=function(J){if(!J.playerResponse)return!1;if(J.WN)return!0;var y=J.videoData.X("html5_onesie_audio_only_playback")&&a9(J.videoData);if(J.uh&&J.PM){if(!J.uh.has(J.Xh))return!1;var v=J.uh.get(J.Xh),d;if(d=v){d=!1;for(var P=g.D(v.Ms.keys()),A=P.next();!A.done;A=P.next())if(A=v.Ms.get(A.value))for(var T=g.D(A.v0),M=T.next();!M.done;M=T.next())M.value.xv>0&&(A.yQ?d=!0:y=!0);d=!(y&&d)}if(d)return!1}J.I_("ofr");J.KR.resolve(J.playerResponse);if(!J.Bv){var n;(n=J.Jp)==null||n.start();J.qS.start()}return J.WN= !0}; wTR=function(J){if(J.uh&&!J.X("html5_onesie_media_capabilities")){J.I_("ogsf_s");var y=zmr(J.lA.getVideoData(),function(d,P){J.dj(d,P)}),v=Zh3(J.lA); y.video=U9T(v,y.video);J.I_("ogsf_c");if(y.video.length)return y;J.dj("ombspf","l."+v.T+";u."+v.C+";o."+v.J+";r."+v.reason)}}; kx6=function(J,y){return J.X("html5_onesie_sync_request_encryption")||(y==null?0:y.rq)||g.Sc(J.iA)&&J.X("html5_embed_onesie_use_sync_encryption")?!1:!!lE()}; X3=function(J){if(!J.z4)return{};var y=J.z4.SS(),v;y.d=(v=J.z4.If)==null?void 0:v.a5();y.shost=J.Kv;y.ty="o";return y}; JHr=function(J,y){var v,d;(d=(J=(v=J.uh)==null?void 0:v.get(y))==null)||(y=J.J?!1:J.J=!0,d=!y);return!d}; yHr=function(J,y,v,d,P,A,T,M,n,Y,S){g.u.call(this);var V=this;this.lA=J;this.loader=y;this.policy=v;this.audioTrack=d;this.videoTrack=P;this.mR=A;this.sS=T;this.XW=M;this.J=n;this.timing=Y;this.zK=S;this.C=[];this.V={};this.Vk=this.ZB=!1;this.W=this.Ek=this.K=this.GK=this.Zl=0;this.B=null;this.AY={Cf:[],nT:[]};this.wj={Cf:[],nT:[]};this.G=null;this.L=[];this.b6={djj:function(){return V.C}, Eox:function(){return V.V}, t5x:function(){V.C.length=0}, NdR:function(){return V.videoData.YB}, Xwb:function(){return V.K}, Ouj:function(L){V.K=L}, Bxb:function(L){V.W=L}, v6:function(L){V.G=L}, Yn:function(L){V.L=L}}; this.videoData=this.lA.getVideoData();this.policy.Z4&&(this.cX=new KQ(this.loader,this.policy,this.sS),g.X(this,this.cX))}; PVU=function(J,y){y=y===void 0?!1:y;if(v9m(J)){J.policy.L&&J.loader.dj("sabrcrq",{create:1});var v=new Aj(0,J.mR.B,J);J.policy.Lj>0&&J.W++;y=dfm(J,v,y);J.C.push(y);var d;(d=J.cX)==null||tD3(d,J.mR.B)}}; lL6=function(J,y){var v=AHT(J);if(J.policy.M1){var d=J.AY;var P=J.wj}else d=RL(J,J.audioTrack),P=RL(J,J.videoTrack);var A=[].concat(g.r(d.Cf),g.r(P.Cf));KP(J)&&A.push.apply(A,g.r(J.L));var T=[].concat(g.r(d.nT),g.r(P.nT)),M=J.loader.sF();if(J.policy.bQ&&!J.videoData.isLivePlayback){var n=J.videoData.lengthSeconds*1E3;v>=n&&J.loader.dj("invalidSabrCmt",{cmt:v,vd:n})}var Y,S;n=J.lA;var V=J.mR,L=J.T,t=J.videoData.YB,W=J.policy,c=J.loader.wV,b=De2(J.loader)*1E3,B=(Y=J.If)==null?void 0:Y.qL;Y=(S=J.If)== null?void 0:S.SF;var q;S=Number((q=J.J.W)==null?void 0:q.info.itag)||0;var C;q=Number((C=J.J.V)==null?void 0:C.info.itag)||0;y={lA:n,mR:V,Cf:A,nT:T,cG:v,nextRequestPolicy:L,Bg:t,K0:W,C5:c,VK:b,qL:B,SF:Y,Zl:J.Zl,isPrefetch:y||J.loader.isSuspended,jw:S,Wu:q,u9:M,Mg:J.lA.Ds()};v=J.loader.FK();A=OC(v);v&&(y.m5=A);if(v=J.lA.Gb())y.w2=v*1E3;var U;v=J.J;A=v.zK;if(((U=v.K0)==null?0:Dl(U))&&!A)for(U=g.D(v.J),T=U.next();!T.done;T=U.next())if(T.value.N4){A=!0;break}U=Dl(v.K0)&&!A?[]:mex(v,v.J);y.zf=U;U=J.J; Dl(U.K0)&&!U.Cy?U=[]:(v=IKm(U),v.length===0&&(v=U.L),U=mex(U,v));y.d1=U;y.Co=KP(J)?[J.G]:void 0;J.policy.HP&&(y.H0=TCr(J.loader,J.audioTrack),y.XG=TCr(J.loader,J.videoTrack));if(J.policy.T){U=J.loader.getCurrentTime();d=zh(J,d.Cf,U);P=zh(J,P.Cf,U);P=Math.min(d,P);KP(J)&&(d=zh(J,J.L,U),J.lA.SH()&&d0&&J.C[0].W2()&&(y.y3=J.C[0].sE());return y}; AHT=function(J){var y,v=J.policy.V&&((y=J.loader)==null?void 0:y.Ae());y=J.loader.getCurrentTime()||0;y=Msd(J,y);var d=J.loader.Vl()||0;y+=d;d=iV(J.videoData)||g.fF(J.videoData);var P=0;v?(d&&(P=Number.MAX_SAFE_INTEGER),J.videoData.zK&&(P=Math.ceil(J.videoData.wj*1E3))):P=Math.ceil(y*1E3);return Math.min(Number.MAX_SAFE_INTEGER,P)}; KP=function(J){return J.policy.xj&&!!J.G}; Msd=function(J,y){if(J.loader.isSeeking())return y;var v=J.lA.Pq();if(!v)return y;v=v.DW();if(v.length===0||zt(v,y))return y;if(!ui(J.videoTrack,y)&&!ui(J.audioTrack,y))return J.loader.dj("sundrn",{b:0,lt:y}),y;for(var d=y,P=Infinity,A=0;Ay)){var T=y-v.end(A);T=20)?(J.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),y):d}; zh=function(J,y,v){J=J.loader.Vl()||0;return kb(y,(v+J)*1E3)/1E3+v}; v9m=function(J){if(J.policy.Lj>0){var y=Math.floor((0,g.GC)()/1E4);if(y===J.Ek){if(J.W>=J.policy.Lj){if(J.W===J.policy.Lj){var v={reason:"toomanyrequests"};v.limit=J.W;J.loader.handleError("player.exception",v);J.W+=1}return!1}}else J.Ek=y,J.W=0}if(J.loader.isSuspended&&J.loader.fK)return!1;if(J.Cy&&(0,g.GC)()0&&(!J.policy.K||J.C.length!==1||!J.C[0].W2()))return!1;var d;if(!(y=(d=J.mR.B)==null||!ub(d,J.policy,J.V,J.loader.BQ())||UT(J.audioTrack)&&UT(J.videoTrack))){if(d= J.policy.T){d=!1;if(J.zK.T===2)d=!0;else if(J.zK.T===3){AHT(J);J.loader.Vl();var P=B8(J.audioTrack,J.loader.isSeeking()).Cf;y=B8(J.videoTrack,J.loader.isSeeking()).Cf;var A=J.loader.getCurrentTime()||0;P=zh(J,P,A);y=zh(J,y,A);y=Math.min(P,y);A=J.zK;y>=A.V?(A.dj("sdai",{haltrq:y,est:A.V}),y=!0):y=!1;y&&(d=!0)}d&&J.policy.L&&J.loader.dj("sabrcrq",{waitad:1})}y=d}if(y)return!1;J.policy.M1&&(J.AY=RL(J,J.audioTrack),J.wj=RL(J,J.videoTrack));if(!J.T)return J.policy.L&&J.loader.dj("sabrcrq",{nopolicy:1}), !0;if(J.lA.Gb())return J.policy.L&&J.loader.dj("sabrcrq",{utc:1}),!0;if(J.J.G)return J.policy.L&&J.loader.dj("sabrcrq",{audio:1}),!0;if(!J.T.targetAudioReadaheadMs||!J.T.targetVideoReadaheadMs)return J.policy.L&&J.loader.dj("sabrcrq",{noreadahead:1}),!0;if(J.policy.V&&J.loader.Ae())return J.policy.L&&J.loader.dj("sabrcrq",{seekToHead:1}),!0;d=Math.min(K8(J.loader,J.audioTrack)*1E3,J.T.targetAudioReadaheadMs);y=Math.min(K8(J.loader,J.videoTrack)*1E3,J.T.targetVideoReadaheadMs);var T=Math.min(d,y); A=CQ(J.audioTrack,!0)*1E3;P=CQ(J.videoTrack,!0)*1E3;var M=J.lA.getCurrentTime()*1E3;if(J.policy.M1){var n=kb(J.AY.Cf,M);var Y=kb(J.wj.Cf,M)}else n=A,Y=P;var S=ny||d>=0&&P.zY>d+1)break;v=Math.max(v,P.startTimeMs+P.durationMs);d=Math.max(d,P.JA)}return Math.max(0,v-y)}; dfm=function(J,y,v){var d={sS:J.sS,RM:function(n,Y){J.lA.Xb(n,Y)}, HH:J.policy.cH,xu:J.policy.J};J.sS.T.L&&(d.Pn=(J.videoTrack.C.info.FW||0)+(J.audioTrack.C.info.FW||0));J.policy.uu&&(d.tA=J.audioTrack.C.index.ZF(),d.HH=!1);var P=fKj(y,J.policy,J.V)?2:1;P!==J.K&&(J.K=P,s9d(J));v=lL6(J,v);if(J.policy.K&&J.policy.J&&v.Bg){for(var A=P="",T=g.D(v.Bg),M=T.next();!M.done;M=T.next())M=M.value,J.videoData.sabrContextUpdates.has(M)||J.policy.K&&v.y3&&v.y3.type===M?P+="_"+M:A+="_"+M;J.loader.dj("sabrbldrqs",{ctxts:P,misctxts:A})}!y.setData(v,J.policy,J.V)&&J.policy.K&&J.loader.handleError("player.exception", {reason:"buildsabrrequestdatafailed"},1);d=new hr(J.policy,y,J.mR,J.V,J,d,J.loader.e$());IN(J.timing);J.policy.L&&J.loader.dj("sabrcrq",{rn:d.Hn(),probe:y.Kb()});return d}; Q8=function(J,y){if(y.tY()||J.tY())J.policy.jI||(J.policy.V?E4(J.loader):J.loader.j1());else{if(J.policy.J&&y.isComplete()&&y instanceof hr){var v=J.loader,d=v.dj,P,A,T=Object.assign(y.z4.SS(),{rst:y.state,strm:y.xhr.ao(),d:(P=y.z4.If)==null?void 0:P.a5(),cncl:y.xhr&&y.t_.W?1:0,rqb:y.oH,cwt:y.zp,swt:(A=y.ek)==null?void 0:A.o2});P=Object.assign(HoT(y.info),T);d.call(v,"rqs",P)}if(y.isComplete()&&y.Kb()&&y instanceof hr)J.policy.ON?y.Zw()?(y.dispose(),J.C.length===0?J.loader.j1():(J=J.C[0],J instanceof hr&&J.Nj()&&J.Aa())):y.Rq()&&J.loader.handleError(y.R5(),y.Ke()):(y.dispose(),J.loader.j1());else{if(y.Ni())y instanceof hr&&$x6(J.timing,y),s9d(J),YP3(J);else if(y.Rq())v=J.lA.Gb(),y instanceof hr&&uA3(y.info)&&v&&J.loader.wT(v),y instanceof N$?J.C.pop():(v=1,y.canRetry()&&FlR(J.loader)&&(SP3(J,y),v=0),J.loader.handleError(y.R5(),y.Ke(),v));else{if(J.loader.isSuspended&&!y.isComplete())return;YP3(J)}y.tY()||y instanceof N$||(y.isComplete()?v=xer(y,J.policy,J.V):(v=aKx(y,J.policy,J.V),v===1&&(J.ZB= !0)),v!==0&&(d=new Aj(1,y.info.q4),d.g0=v===2,dfm(J,d)));J.policy.H$&&!y.isComplete()?Jj(J.loader):J.loader.j1()}}}; YP3=function(J){for(;J.C.length&&J.C[0].QD(J.HR());){var y=J.C.shift();Vsd(J,y)}J.C.length&&Vsd(J,J.C[0])}; Vsd=function(J,y){y instanceof hr&&(J.WX=y);var v=new Set(y.HQ(J.HR()));v=g.D(v);for(var d=v.next();!d.done;d=v.next()){var P=d.value;if(!(d=!(y instanceof N$))){d=J.J;var A=d.mR.jH,T=P_(d.videoInfos,A);A=hGU(d,P,A);var M=T.includes(P);!d.K0.zd||A||M||d.loader.dj("sabrcpf",{fid:""+P,vfids:""+T.join("."),said:d.B||""});d=A||T.includes(P)}if(d&&(d=y.zW(P,J.HR()),T=J.policy.xj&&iU(d[0].C.info.mimeType),(!(!T&&J.policy.Js&&d.length>0&&(d[0].C.info.yQ()?CQ(J.audioTrack):CQ(J.videoTrack))>3)||y.isComplete())&& y.DC(P,J.HR())))for(P=y.dR(P,J.HR()),P=g.D(P),A=P.next();!A.done;A=P.next())if(A=A.value,J.policy.J&&y instanceof N$&&J.loader.dj("omblss",{s:A.info.A_()}),T)M=J.timing,M.zK||(M.zK=(0,g.GC)(),g.uh("fcb_r",M.zK,M.C)),M=J,M.videoData.jH()&&M.G&&HJ(M.G)===HJ(g.pm(A.info.C.info,M.mR.jH))&&M.lA.publish("sabrCaptionsDataLoaded",A,M.Yn.bind(M));else{M=A.info.C.info.yQ();var n=A.info.C;if(M){var Y=void 0;var S=J.J,V=(Y=y.u3(J.HR()))==null?void 0:Y.token;S.G&&n!==S.V?Y=!0:(S.G=!1,n!==S.V&&(S.V=n,S.Yp(n,S.audioTrack, V)),Y=!1);if(Y)continue}else Y=void 0,eGR(J.J,n,(Y=y.u3(J.HR()))==null?void 0:Y.token);Y=M?J.audioTrack:J.videoTrack;y instanceof N$&&(Y.G=!1,y instanceof N$&&(M?Fs6(J.timing):bST(J.timing)));try{mr(Y,d,A)}catch(L){A=VS(L),J.loader.handleError(A.errorCode,A.details,A.severity),Y.xH(),J.fu(!1,"pushSlice"),E4(J.loader)}}}}; SP3=function(J,y){J.policy.K?J.C.splice(J.C.indexOf(y)).forEach(function(v){v.dispose()}):(J.C.pop(),y==null||y.dispose())}; Lm3=function(J,y,v){for(var d=[],P=0;P0)for(var y=g.D(J.videoData.sabrContextUpdates.keys()),v=y.next();!v.done;v=y.next()){v=v.value;var d=void 0;((d=J.videoData.sabrContextUpdates.get(v))==null?0:d.sendByDefault)&&J.videoData.YB.add(v)}if(J.policy.K&&J.C.length)for(y=g.D(J.C),v=y.next();!v.done;v=y.next())(v=v.value.sE())&&v.type&&v.sendByDefault&&J.videoData.YB.add(v.type)}; ts3=function(J){J.policy.ZE&&(J.If=void 0,J.Zl=0)}; WmT=function(J,y){if(y.Rq()||y.tY()){var v=J.loader,d=v.dj,P=y.state;J=J.HR();var A,T;if((y=(A=y.uh)==null?void 0:A.get(J))==null)y=void 0;else{A=0;J=y.HQ();for(var M=0;M=y.mediaTime&&g.k(J.lA.getPlayerState(),8)?(y.resolve([y.mediaTime,y.id]),J.C.delete(y.id)):(y.delay.dispose(),y.delay=new g.Kx(function(){g9c(J,y)},(y.mediaTime-v)*1E3/J.lA.getPlaybackRate()),y.delay.start())}; bFH=function(J,y,v,d){var P=this;this.J=J;this.cpn=y;this.lA=v;this.C=d;this.T=new Map;this.V=new Map;this.G=this.B=NaN;this.L=!1;this.JR="";this.isSeeking=!1;this.K=0;this.W=new xfT(v);this.QQ=v.QQ;this.lA.subscribe("SEEK_TO",function(){P.T3()}); this.lA.subscribe("SEEK_COMPLETE",function(){G7x(P)})}; j9d=function(J,y){if(!J.isSeeking&&J.K!==y&&!isNaN(J.B)){J.K=y;var v=J.L?J.G:J.J.Q_(y);(v!==J.G||J.L)&&FmT(J,v,y)}}; FmT=function(J,y,v){var d=J.T.get(y),P=J.J.getStartTime(y),A=J.J.getDuration(y);J.L=!1;J.G=y;var T=P,M;((M=d==null?void 0:d.C)!=null?M:[J.cpn]).forEach(function(n,Y){var S;Y=(S=d==null?void 0:d.T[Y])!=null?S:A;v>=T&&vP?qPj(J,A,J.T.get(A)):A===P&&qPj(J,A,J.T.get(A),d-J.J.getStartTime(A))})}; eRP=function(J,y,v,d){y!==J.JR&&(J.lA.dj("ssevt",{tag:J.C===0?"sstd-cr":J.C===1?"sstd-tm":J.C===2?"sstd-poll":J.C===3?"sstd-poll100":"sstd-unknown",ad:J.cpn!==y,cpn:y,st:v.toFixed(3),late:Math.round(J.isSeeking?0:(d-v)*1E3)}),J.JR=y)}; rHc=function(J){var y=g.D(J.split("."));J=y.next().value;y=y.next().value;return[Number(J),y]}; BCv=function(J,y,v,d){v=y+"."+v;J.V.has(y)?J.V.get(y).push(v):J.V.set(y,[v]);J.C===1&&DfT(J.W,d,v).then(function(P){var A=g.D(P);P=A.next().value;A=A.next().value;A=g.D(rHc(A));A.next();A=A.next().value;eRP(J,A,P,OFd(J.W))}); J.C===0&&(J.QQ.Oq("transitiondetector",v),y=(d+J.lA.Vl())*1E3,J.QQ.PF([new g.uI(y,y+5E3,{id:v,namespace:"transitiondetector",priority:9})]))}; $fc=function(J,y,v,d,P){this.loader=J;this.policy=y;this.schedule=v;this.ym=d;this.K=P;this.zK=NaN;this.T=this.G=this.W=null;this.C=this.V=this.L=this.startTimeSecs=NaN;this.J=!1;this.B=NaN}; o9H=function(J,y,v,d,P,A){return y.jc&&y.QM&&v===3?new $fc(J,y,d,P,A):null}; CVP=function(J,y){if(J.policy.FF){var v=y.info.FW,d=oK(J.schedule);y=y.index.ZF();v=Math.max(1,d/v);J.B=Math.round(Math.max(((v-1)*y+J.policy.Lf)/v,y-J.policy.Qw)*1E3)}}; ph3=function(J,y){var v=Date.now()/1E3,d=v-J.startTimeSecs,P=v-J.L,A=P>=J.policy.s4,T=!1;if(A){var M=0;!isNaN(y)&&y>J.V&&(M=y-J.V,J.V=y);M/P=J.policy.Qw&&!J.J;if(!A&&!v&&hRH(J,y))return NaN;v&&(J.J=!0);a:{d=T;v=(0,g.GC)()/1E3-(J.ym.Po()||0)-J.G.C-J.policy.Lf;A=J.T.startTime;v=A+v;if(d){if(isNaN(y)){Zb(J,NaN,"n",y);A=NaN;break a}d=y-J.policy.Iq;d=A.W&&d<=A.L){d=!0;break a}d=!1}d=!d}if(d)return J.dj("ostmf",{ct:J.getCurrentTime(),a:y.C.info.yQ()}),!1;(J=J.AY)!=null&&(J.Ms.get(v).LQ=!0);return!0}; HFP=function(J){if(!J.mR.jH)return!0;var y=J.lA.getVideoData();if(J.lA.aB())return J.dj("ombpa",{}),!1;var v,d;if(!!((v=J.K)==null?0:(d=v.aR)==null?0:d.M1K)!==J.mR.L0)return J.dj("ombplmm",{}),!1;v=y.J9||y.liveUtcStartSeconds||y.QM;if(J.mR.L0&&v)return J.dj("ombplst",{}),!1;if(J.mR.K)return J.dj("ombab",{}),!1;v=Date.now();return RU(J.mR)&&!isNaN(J.wj)&&v-J.wj>J.policy.TX*1E3?(J.dj("ombttl",{}),!1):J.mR.oz&&J.mR.W||!J.policy.V7&&J.mR.isPremiere||mm(y)!==0&&!J.policy.C||y.X("html5_disable_onesie_media_for_mosaic")&& JQ(y)||y.US()&&!y.X("html5_enable_onesie_media_for_lifa")&&y.isDaiEnabled()&&y.enableServerStitchedDai||y.X("html5_disable_onesie_media_for_lifa_eligible")&&wC(y)?!1:!0}; XhT=function(J,y){var v=y.C,d=J.mR.jH;if(HFP(J))if(J.AY&&J.AY.Ms.has(HJ(g.pm(v.info,d)))){if(d=HJ(g.pm(v.info,d)),uVr(J,y)){var P=new vi(J.AY.zW(d)),A=function(T){try{if(T.Rq())J.handleError(T.R5(),T.Ke()),pQ(y,T),Pi(T.info)&&ZX(J.V,y,v,!0),J.j1();else if(wM(J.V,T)){var M;(M=J.J)==null||pJ2(M,T.info,J.zK);J.j1()}}catch(n){T=VS(n),J.handleError(T.errorCode,T.details,T.severity),J.xH()}}; v.J=!0;dn(P)&&(eu(y,new Hy(J.policy,d,P,J.AY,A)),IN(J.timing))}}else J.dj("ombfmt",{})}; NC3=function(J,y){y=y||J.videoTrack&&J.videoTrack.T&&J.videoTrack.T.startTime||J.getCurrentTime();var v=y8,d=J.videoTrack,P=J.C;y=P.nextVideo&&P.nextVideo.index.Q_(y)||0;P.wj!==y&&(P.cX={},P.wj=y,wB(P,P.C));y=!P.C.isLocked()&&P.K>-1&&(0,g.GC)()-P.Ky.C&&y.reason==="b";d||P||v?(J.lA.wU({reattachOnConstraint:d?"u":P?"drm":"perf",lo:y.T,up:y.C}),J.policy.Bw||(J.W.C.T=!1)):(J.policy.Bw&&(J.W.C.T=!1),E4(J))}}else if(!QuH(J.C,y)&&J.videoTrack){J.logger.debug(function(){return"Setting constraint: r="+y.reason+" u="+y.C}); v=J.C.C;whx(J,wJR(J.C,y));NC3(J);d=y.isLocked()&&y.reason==="m"&&J.C.Cy;P=J.policy.vK&&y.reason==="l"&&fQ(J.videoTrack);v=v.C>y.C&&y.reason==="b";var A=J.C.ZB&&!dj();d||P||v||A?J.lA.wU({reattachOnConstraint:d?"u":P?"drm":A?"codec":"perf"}):E4(J)}}; yQv=function(J,y,v){if((!J.hY||TK(J.hY)&&!J.policy.k_)&&!J.UR.isSeeking()&&(J.policy.C||fQ(y)&&y.C.kR()&&J.C.zK)){var d=J.getCurrentTime()+Exc(J.B,y,v);J.logger.debug(function(){return"Clearing back to "+d.toFixed(3)}); JDx(y,d)}}; whx=function(J,y){y&&(J.logger.debug(function(){return"Logging new format: "+Hz(y.video.info)}),vtd(J.lA,new RN(y.video,y.reason))); if(J.C.GK){var v=dsH(J.C,"a");J.lA.Nq(new RN(v.audio,v.reason))}}; E4=function(J){g.zA(J.ON)}; Jj=function(J){J.policy.H$&&J.policy.JH&&Math.min(wim(J.videoTrack),wim(J.audioTrack))*1E3>J.policy.gN?g.zA(J.H$):J.j1()}; dr3=function(J,y){var v=(0,g.GC)()-y,d=CQ(J.audioTrack,!0)*1E3,P=CQ(J.videoTrack,!0)*1E3;J.logger.debug(function(){return"Appends paused for "+v}); if(J.policy.J&&(J.dj("apdpe",{dur:v.toFixed(),abuf:d.toFixed(),vbuf:P.toFixed()}),Ny(J.policy))){var A=Um(J.B);J.dj("sdps",{ct:y,ah:d.toFixed(),vh:P.toFixed(),mr:f8(J.B,J.nu,A),bw:A.toFixed(),js:J.isSeeking(),re:+J.nu,ps:(J.policy.L3||"").toString(),rn:(J.policy.Sq||"").toString()})}}; Pfm=function(J){if(T4m(J.videoTrack))return J.logger.debug("Pausing appends for server-selectable format"),"ssf";if(J.policy.Vk&&H8(J.videoTrack)&&H8(J.audioTrack))return"updateEnd";if(UT(J.audioTrack)||UT(J.videoTrack)&&J.videoTrack.C.info.PX!=="f")return"";if(J.UR.isSeeking()){var y=J.B;var v=J.videoTrack;var d=J.audioTrack;if(y.policy.C){var P=y.policy.JB;Ny(y.policy)&&(P=f8(y,!1,Um(y)));y=P;v=CQ(d,!0)>=y&&CQ(v,!0)>=y}else v.J.length||d.J.length?(P=v.C.info.FW+d.C.info.FW,P=10*(1-Um(y)/P),y=Math.max(P, y.policy.JB),v=CQ(d,!0)>=y&&CQ(v,!0)>=y):v=!0;if(!v)return"abr";v=J.videoTrack;if(v.J.length>0&&v.W.T.length===1&&msP(v.W).info.B360);d=Ny(J.policy)&&J.policy.t7;if(!J.nu||!d&&v)return"";v=J.policy.TA;Ny(J.policy)&&(v=f8(J.B,J.nu,Um(J.B)));v=vOm(J.videoTrack,J.getCurrentTime(),v)||vOm(J.audioTrack,J.getCurrentTime(), v);return Ny(J.policy)?v?"mbnm":"":(J.videoTrack.J.length>0||J.audioTrack.J.length>0||k2(J.V,J.videoTrack,J.audioTrack)||k2(J.V,J.audioTrack,J.videoTrack))&&v?"nord":""}; AQc=function(J){if(J.G){var y=J.G.j1(J.audioTrack,Ey(J.hY.T.Fo()));y&&J.lA.seekTo(y,{rz:!0,jn:"pollSubsegmentReadahead",x_:!0})}}; SHj=function(J,y,v){if(J.policy.Vk&&H8(y))return!1;if(v.KS())return!0;if(!v.Am())return!1;var d=Zg(y);if(!d||d.info.type===6)return!1;var P;if(J.policy.Dq||((P=J.J)==null?0:uf3(P,y,d.info.py)))J.Ek=0;else return J.UR.isSeeking()&&E4(J),J.Ek=J.Ek||(0,g.GC)(),!1;if(!wL(J,y,v,d.info))return!1;if(J.mR.T&&d.info.T===0){if(P=Tx3(y,v,d)){var A=ju(y);J.dj("initchg",{it:d.info.C.info.id,sr:!!A&&A.C===d.info.C,ty:d.info.type,seg:d.info.py})}A=g.hT(d.info.C.info);J.policy.DO&&A&&!P&&y8U(d)}A=J.G&&!!J.G.W&&y.C.info.audio; P=J.mR.isManifestless||d.V;if(!(J.mR.T&&d.info.T!==0||P&&!A)&&lFH(J,y,v,d))return!0;if(A)return!1;A=K8(J,y);A=J.getCurrentTime()+A;if(d.info.W>A)return J.policy.C&&MMr(J,y),J.policy.e3&&Mn6(y.W,A,!1),!1;ntm(J,y);var T;J.policy.QE&&v===((T=J.hY)==null?void 0:T.C)&&J.rj&&(v.t2()===0?(J.rj=!1,J.policy.QE=!1):J.Ky=v.t2());if(!ssd(J,v,d,y))return!1;J.policy.Vk&&d.info.N$()?(J.lA.Y().SH()&&J.dj("eosl",{ls:d.info.A_()}),d.isLocked=!0):(y.Gy(d),v$6(J.C,d.info),J.logger.debug(function(){return"Appended "+ d.info.A_()+", buffered: "+Rc(v.Fo())})); P&&YHj(J,d.info.C.dZ);return!0}; MMr=function(J,y){y===J.videoTrack?J.Vk=J.Vk||(0,g.GC)():J.WX=J.WX||(0,g.GC)()}; ntm=function(J,y){y===J.videoTrack?J.Vk=0:J.WX=0}; ssd=function(J,y,v,d){var P=J.policy.f8?(0,g.GC)():0,A=v.V&&v.info.C.C||void 0,T=v.T;v.V&&(T=VMR(J,v,T)||T);var M=Tp(T);T=J.policy.f8?(0,g.GC)():0;y=Lxj(J,y,M,v.info,A);(d=d.K)!=null&&(A=v.info,P=T-P,T=(0,g.GC)()-T,!d.T||xoT(d.T,A)&&d.T.py===A.py||d.flush(),d.W+=P,d.J+=T,P=1,!d.T&&A.T&&(P=2),A0(d,P,y),T=Math.ceil(A.T/1024),P===2&&d.C.add(T),d.C.add(Math.ceil((A.T+A.J)/1024)-T),d.T=A);J.cX=0;if(y===0)return J.GK&&(J.logger.debug("Retry succeed, back to normal append logic."),J.GK=!1,J.L8=!1),J.J9= 0,!0;if(y===2||y===5)return tM6(J,"checked",y,v.info),!1;if(y===1){if(!J.GK)return J.logger.debug("QuotaExceeded, retrying."),J.GK=!0,!1;if(!J.L8)return J.L8=!0,J.lA.seekTo(J.getCurrentTime(),{jn:"quotaExceeded",x_:!0}),!1;v.info.OH()?(P=J.policy,P.WX=Math.floor(P.WX*.8),P.AY=Math.floor(P.AY*.8)):(P=J.policy,P.YB=Math.floor(P.YB*.8),P.AY=Math.floor(P.AY*.8));J.policy.C?zV(J.W.C,v.info.C,!1):yf(J.C,v.info.C)}J.lA.wU({reattachOnAppend:y});return!1}; VMR=function(J,y,v){var d;if(d=J.policy.mJ&&J.hY&&!J.hY.B&&!J.lA.HG())y=y.info.C.info,d=y.Tg()&&Bz(y)&&y.video&&y.video.width<3840&&y.video.width>y.video.height;if(d&&(J.hY.B=!0,ac('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return v=jUx(v),J.policy.J&&J.dj("sp4k",{s:!!v}),v}; tM6=function(J,y,v,d){var P="fmt.unplayable",A=1;v===5||v===3?(P="fmt.unparseable",J.policy.C?!d.C.info.video||kB(J.W.C).size>0||zV(J.W.C,d.C,!1):!d.C.info.video||kB(J.C.V).size>0||yf(J.C,d.C)):v===2&&(J.J9<15?(J.J9++,P="html5.invalidstate",A=0):P="fmt.unplayable");d=JA(d);var T;d.mrs=(T=J.hY)==null?void 0:sZ(T);d.origin=y;d.reason=v;J.policy.oL&&(d.trg="appenderr");J.handleError(P,d,A)}; Xic=function(J,y,v,d,P){var A=J.mR;var T=J.policy.C,M=!1,n=-1;for(t in A.C){var Y=iU(A.C[t].info.mimeType)||A.C[t].info.OH();if(d===Y)if(Y=A.C[t].index,Y.zi(y.py)){M=Y;var S=y,V=M.BH(S.py);V&&V.startTime!==S.startTime?(M.segments=[],M.jq(S),M=!0):M=!1;M?n=y.py:!y.pending&&T&&(S=Y.getDuration(y.py),S!==y.duration&&(A.publish("clienttemp","mfldurUpdate",{itag:A.C[t].info.itag,seg:y.py,od:S,nd:y.duration},!1),Y.jq(y),M=!0))}else Y.jq(y),M=!0}n>=0&&(T={},A.publish("clienttemp","resetMflIndex",(T[d?"v": "a"]=n,T),!1));A=M;SsP(J.UR,y,d,A);if(J.policy.Ky&&J.policy.T&&(n=y.wc||null)){var L;T=(L=J.T)==null?void 0:aLT(L).requestNumber;if((L=J.If)!=null){if(L.T.has(n.identifier)){var t=L.T.get(n.identifier);t.event=n.event;t.startTimeSecs=n.startSecs;t.WF=n.WF}else L.T.set(n.identifier,{event:n.event,startTimeSecs:n.startSecs,WF:n.WF,UO:[]});L.J&&T>-1&&Til(J.mR)&&(J.mR.wj=y.startTime+(isNaN(J.timestampOffset)? 0:J.timestampOffset),J.UR.isSeeking()&&J.UR.C5)return J.cX= 0,J.lA.wU({initSegStuck:1,as:d.info.A_()}),!0}else J.cX=0,J.ZE=d;J.policy.Wt&&(v.abort(),(T=y.K)!=null&&(A0(T,4),T.flush()));P=Lxj(J,v,A,n,P);var Y;(Y=y.K)==null||YGm(Y,P,n);if(P!==0)return Wx6(J,P,d),!0;d.info.OH()?mxH(J.timing):Byc(J.timing);J.logger.debug(function(){return"Appended init for "+d.info.C.info.id}); YHj(J,d.info.C.dZ);return v.Bn()}; Tx3=function(J,y,v){if(y.xL()==null){J=ju(J);if(!(y=!J||J.C!==v.info.C)){a:if(J=J.K,v=v.info.K,J.length!==v.length)v=!1;else{for(y=0;y1)return 6;T.cX=new g.Kx(function(){var M=Zg(T);J.tY()||M==null||!M.isLocked?J.lA.Y().SH()&&J.dj("eosl",{delayA:M==null?void 0:M.info.A_()}):aF2(T)?(J.lA.Y().SH()&&J.dj("eosl",{dunlock:M==null?void 0:M.info.A_()}),xr3(J,T===J.audioTrack)):(J.dj("nue",{ls:M.info.A_()}),M.info.zK+=1,J.hY&&J.qC())},1E4,J); J.lA.Y().SH()&&J.dj("eosl",{delayS:d.A_()});T.cX.start()}J.policy.Oa&&(d==null?void 0:d.C)instanceof TB&&d.N$()&&J.dj("poseos",{itag:d.C.info.itag,seg:d.py,lseg:d.C.index.Yj(),es:d.C.index.J});y.appendBuffer(v,d,P)}catch(M){if(M instanceof DOMException){if(M.code===11)return 2;if(M.code===12)return 5;if(M.code===22||M.message.indexOf("Not enough storage")===0)return y=Object.assign({name:"QuotaExceededError",buffered:Rc(y.Fo()).replace(/,/g,"_"),vheap:$2(J.videoTrack),aheap:$2(J.audioTrack),message:g.m9(M.message, 3),track:J.hY?y===J.hY.T?"v":"a":"u"},UfP()),J.handleError("player.exception",y),1;g.jv(M)}return 4}return J.hY.KA()?3:0}; QP=function(J,y,v){J.policy.H5&&Kmv(J,v.jn||"unknown");J.lA.seekTo(y,v)}; YHj=function(J,y){y&&J.lA.ZX(new Vf(y.key,y.type))}; a3=function(J,y){J.lA.rB(y)}; K8=function(J,y){if(J.GK&&!J.nu)return 3;if(J.isSuspended)return 1;var v;if((v=J.hY)==null?0:v.hY&&v.hY.streaming===!1)return 4;v=(y.C.info.audio?J.policy.YB:J.policy.WX)/(y.FW*J.policy.wf);if(J.policy.j3>0&&J.hY&&TK(J.hY)&&(y=y.C.info.video?J.hY.T:J.hY.C)&&!y.Bn()){y=y.Fo();var d=Km(y,J.getCurrentTime());d>=0&&(y=J.getCurrentTime()-y.start(d),v+=Math.max(0,Math.min(y-J.policy.j3,J.policy.V1)))}J.policy.AY>0&&(v=Math.min(v,J.policy.AY));return v}; TCr=function(J,y){return(K8(J,y)+J.policy.mW)*y.FW}; gtH=function(J){J.YB&&!J.isSuspended&&Co(J.schedule)&&(O53(J,J.YB),J.YB="")}; O53=function(J,y){C8(y,"cms",function(v){J.policy.J&&J.dj("pathprobe",v)},function(v){J.lA.handleError(v)})}; DrP=function(J,y){if(J.hY&&J.hY.W&&!J.hY.KA()&&(y.sI=CQ(J.videoTrack),y.T=CQ(J.audioTrack),J.policy.J)){var v=$2(J.videoTrack),d=$2(J.audioTrack),P=Rc(J.hY.T.Fo(),"_",5),A=Rc(J.hY.C.Fo(),"_",5);Object.assign(y.C,{lvq:v,laq:d,lvb:P,lab:A})}y.bandwidthEstimate=Iv(J.B);var T;(T=J.audioTrack.K)==null||T.flush();var M;(M=J.videoTrack.K)==null||M.flush();J.logger.debug(function(){return sy(y.C)})}; cQ6=function(J,y){J.zK=y;J.J&&(J.J.J=y);J.zK.Cn(J.videoTrack.C.info.Tg());J.V.T=J.zK;J.policy.T&&(J.T.B=J.zK)}; jsP=function(J,y){if(J.hY&&J.hY.T){if(J.policy.W4){var v=nO3(J.audioTrack);if(v&&v.yQ()){var d=J.lA;if(d.K3&&(d.K3.C=v,v=d.M4,v.qoe)){v=v.qoe;d=d.K3;var P=g.yo(v.provider);G9U(v,P,d)}}}J.policy.oC&&(v=nO3(J.videoTrack))&&v.OH()&&(d=J.lA,d.Pm&&(d.Pm.C=v,v=d.M4,v.qoe&&b53(v.qoe,d.Pm)));y-=isNaN(J.timestampOffset)?0:J.timestampOffset;J.getCurrentTime()!==y&&J.resume();J.UR.isSeeking()&&J.hY&&!J.hY.KA()&&(d=J.getCurrentTime()<=y&&y=y&&fL3(J,d.startTime,!1)}); return v&&v.startTimeJ.getCurrentTime())return v.start/1E3;return Infinity}; n9U=function(J){if(J.lA.getVideoData().isLivePlayback)return!1;var y=J.lA.Pq();if(!y)return!1;y=y.getDuration();if(J.hY&&J.hY.C&&J.hY.T){var v=J.getCurrentTime(),d=J.hY.C.Fo();J=J.hY.T.Fo();d=d?k6(d,v):v;v=J?k6(J,v):v;v=Math.min(d,v);y=isNaN(v)?!1:v>=y-.01}else y=!1;return y}; Wx6=function(J,y,v){J.policy.mp&&Wh(J.lA.getVideoData())?(J.lA.CY()||tM6(J,"sepInit",y,v.info),rQx(J.lA,"sie")):tM6(J,"sepInit",y,v.info)}; FlR=function(J){return J.lA.BQ()0){var d=v.C.shift();ot3(v,d.info)}v.C.length>0&&(d=v.C[0].time-(0,g.GC)(),v.T.start(Math.max(0,d)))}},0); g.X(this,this.T);y.subscribe("widevine_set_need_key_info",this.W,this)}; ot3=function(J,y){a:{var v=y.cryptoPeriodIndex;if(isNaN(v)&&J.J.size>0)v=!0;else{for(var d=g.D(J.J.values()),P=d.next();!P.done;P=d.next())if(P.value.cryptoPeriodIndex===v){v=!0;break a}v=!1}}J.publish("log_qoe",{wvagt:"reqnews",canskip:v});v||J.publish("rotated_need_key_info_ready",y)}; Cfv=function(){var J={};var y=J.url;var v=J.interval;J=J.retries;this.url=y;this.interval=v;this.retries=J}; hXU=function(J,y){this.statusCode=J;this.message=y;this.T=this.heartbeatParams=this.errorMessage=null;this.C={};this.nextFairplayKeyId=null}; IFU=function(J,y,v){v=v===void 0?"":v;g.u.call(this);this.message=J;this.requestNumber=y;this.timer=v;this.onError=this.onSuccess=null;this.C=new g.$F(5E3,2E4,.2)}; ppT=function(J,y,v){J.onSuccess=y;J.onError=v}; fFj=function(J,y,v,d){var P={timeout:3E4,onSuccess:function(A){if(!J.tY()){Ge("drm_net_r",void 0,J.timer);var T=A.status==="LICENSE_STATUS_OK"?0:9999,M=null;if(A.license)try{M=Bf(A.license)}catch(W){g.jv(W)}if(T!==0||M){M=new hXU(T,M);T!==0&&A.reason&&(M.errorMessage=A.reason);if(A.authorizedFormats){T={};for(var n=[],Y={},S=g.D(A.authorizedFormats),V=S.next();!V.done;V=S.next())if(V=V.value,V.trackType&&V.keyId){var L=UrU[V.trackType];if(L){L==="HD"&&A.isHd720&&(L="HD720");V.isHdr&&(L+="HDR");T[L]|| (n.push(L),T[L]=!0);var t=null;try{t=Bf(V.keyId)}catch(W){g.jv(W)}t&&(Y[g.eB(t,4)]=L)}}M.T=n;M.C=Y}A.nextFairplayKeyId&&(M.nextFairplayKeyId=A.nextFairplayKeyId);A.sabrLicenseConstraint&&(M.sabrLicenseConstraint=Bf(A.sabrLicenseConstraint));A=M}else A=null;if(A)J.onSuccess(A,J.requestNumber);else J.onError(J,"drm.net","t.p;p.i")}}, onError:function(A){if(!J.tY())if(A&&A.error)A=A.error,J.onError(J,"drm.net.badstatus","t.r;p.i;c."+A.code+";s."+A.status,A.code);else J.onError(J,"drm.net.badstatus","t.r;p.i;c.n")}, onTimeout:function(){J.onError(J,"drm.net","rt.req."+J.requestNumber)}}; d&&(P.r9="Bearer "+d);g.RF(v,"player/get_drm_license",y,P)}; HQU=function(J,y,v,d){g.yK.call(this);this.videoData=J;this.iA=y;this.B=v;this.sessionId=d;this.V={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.zK=this.Cy=!1;this.J=null;this.AY=[];this.W=[];this.authorizedFormats=[];this.G=!1;this.C={};this.status="";this.L=NaN;this.T=J.V;this.cryptoPeriodIndex=v.cryptoPeriodIndex;J={};Object.assign(J,this.iA.C);J.cpn=this.videoData.clientPlaybackNonce;this.videoData.If&&(J.vvt=this.videoData.If,this.videoData.mdxEnvironment&&(J.mdx_environment= this.videoData.mdxEnvironment));this.iA.AY&&(J.authuser=this.iA.AY);this.iA.pageId&&(J.pageid=this.iA.pageId);isNaN(this.cryptoPeriodIndex)||(J.cpi=this.cryptoPeriodIndex.toString());var P=(P=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.IM()))?P[1]:"";P==="ATV"&&(J.cdt=P);this.V=J;this.V.session_id=d;this.K=!0;this.T.flavor==="widevine"&&(this.V.hdr="1");this.T.flavor==="playready"&&(y=Number(Lo(y.experiments,"playready_first_play_expiration")),!isNaN(y)&&y>=0&&(this.V.mfpe=""+y),this.K=!1);y="";g.AD(this.T)? Pl(this.T)?(d=v.T)&&(y="https://www.youtube.com/api/drm/fps?ek="+b_d(d)):(y=v.initData.subarray(4),y=new Uint16Array(y.buffer,y.byteOffset,y.byteLength/2),y=String.fromCharCode.apply(null,y).replace("skd://","https://")):y=this.T.T;this.baseUrl=y;this.fairplayKeyId=cV(this.baseUrl,"ek")||"";if(y=cV(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(y);this.AY=v.Tg?[g.eB(v.initData,4)]:v.J;Tc(this,{sessioninit:v.cryptoPeriodIndex});this.status="in"}; Kr2=function(J,y){Tc(J,{createkeysession:1});J.status="gr";Ge("drm_gk_s",void 0,J.videoData.K);J.url=X8m(J);try{J.J=y.createSession(J.B,function(v){Tc(J,{m:v})})}catch(v){y="t.g"; v instanceof DOMException&&(y+=";c."+v.code);J.publish("licenseerror","drm.unavailable",1,y,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}J.J&&(NMx(J.J,function(v,d){R1P(J,v,d)},function(v,d,P){if(!J.tY()){d=void 0; var A=1;g.AD(J.T)&&g.kO(J.iA)&&J.iA.X("html5_enable_safari_fairplay")&&P===1212433232&&(d="ERROR_HDCP",A=J.iA.X("html5_safari_fairplay_ignore_hdcp")?0:A);J.error("drm.keyerror",A,v,d)}},function(){J.tY()||(Tc(J,{onkyadd:1}),J.zK||(J.publish("sessionready"),J.zK=!0))},function(v){J.mT(v)}),g.X(J,J.J))}; X8m=function(J){var y=J.baseUrl;WUP(y)||J.error("drm.net",2,"t.x");if(!cV(y,"fexp")){var v=["23898307","23914062","23916106","23883098"].filter(function(P){return J.iA.experiments.experiments[P]}); v.length>0&&(J.V.fexp=v.join())}v=g.D(Object.keys(J.V));for(var d=v.next();!d.done;d=v.next())d=d.value,y=K4c(y,d,J.V[d]);return y}; R1P=function(J,y,v){if(!J.tY())if(y){Tc(J,{onkmtyp:v});J.status="km";switch(v){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":z13(J,y);return;default:J.publish("ctmp","message_type",{t:v,l:y.byteLength})}J.Cy||(Ge("drm_gk_f",void 0,J.videoData.K),J.Cy=!0,J.publish("newsession",J));if(yJ(J.T)&&(y=kj3(y),!y))return;y=new IFU(y,++J.requestNumber,J.videoData.K);ppT(y,function(d){E2x(J,d)},function(d,P,A){if(!J.tY()){var T=0; d.C.T>=3&&(T=1,P="drm.net.retryexhausted");Tc(J,{onlcsrqerr:P,info:A});J.error(P,T,A);J.shouldRetry(SA(T),d)&&Q3v(J,d)}}); g.X(J,y);ZQ3(J,y)}else J.error("drm.unavailable",1,"km.empty")}; z13=function(J,y){Tc(J,{sdpvrq:1});J.L=Date.now();if(J.T.flavor!=="widevine")J.error("drm.provision",1,"e.flavor;f."+J.T.flavor+";l."+y.byteLength);else{var v={cpn:J.videoData.clientPlaybackNonce};Object.assign(v,J.iA.C);v=g.al("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",v);y={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, y)}),responseType:"arraybuffer"};g.j3(v,y,3,500).then(U8(function(d){d=d.xhr;if(!J.tY()){d=new Uint8Array(d.response);var P=String.fromCharCode.apply(null,d);try{var A=JSON.parse(P)}catch(T){}A&&A.signedResponse?(J.publish("ctmp","drminfo",{provisioning:1}),A=(Date.now()-J.L)/1E3,J.L=NaN,J.publish("ctmp","provs",{et:A.toFixed(3)}),J.J&&J.J.update(d)):(A=A&&A.error&&A.error.message,d="e.parse",A&&(d+=";m."+A),J.error("drm.provision",1,d))}}),U8(function(d){J.tY()||J.error("drm.provision",1,"e."+d.errorCode+ ";c."+(d.xhr&&d.xhr.status))}))}}; lz=function(J){var y;if(y=J.K&&J.J!=null)J=J.J,y=!(!J.C||!J.C.keyStatuses);return y}; ZQ3=function(J,y){J.status="km";Ge("drm_net_s",void 0,J.videoData.K);var v=new g.ND(J.iA.aq),d={context:g.MD(v.config_||g.lo())};d.drmSystem=w8d[J.T.flavor];d.videoId=J.videoData.videoId;d.cpn=J.videoData.clientPlaybackNonce;d.sessionId=J.sessionId;d.licenseRequest=g.eB(y.message);d.drmParams=J.videoData.drmParams;isNaN(J.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=J.cryptoPeriodIndex);var P,A,T=!!((P=J.videoData.T)==null?0:(A=P.video)==null?0:A.isHdr());d.drmVideoFeature=T?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(P=J.iA.C)d.context.client.deviceMake=P.cbrand,d.context.client.deviceModel=P.cmodel,d.context.client.browserName=P.cbr,d.context.client.browserVersion=P.cbrver,d.context.client.osName=P.cos,d.context.client.osVersion=P.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};J.videoData.If&&(d.context.user.credentialTransferTokens=[{token:J.videoData.If,scope:"VIDEO"}]);d.context.request.mdxEnvironment=J.videoData.mdxEnvironment|| d.context.request.mdxEnvironment;J.videoData.ES&&(d.context.user.kidsParent={oauthToken:J.videoData.ES});g.AD(J.T)&&(d.fairplayKeyId=g.eB(Fp6(J.fairplayKeyId)));g.xo(J.iA,g.ZL(J.videoData)).then(function(M){fFj(y,d,v,M);J.status="rs"})}else J.error("drm.net",2,"t.r;ic.0")}; E2x=function(J,y){if(!J.tY())if(Tc(J,{onlcsrsp:1}),J.status="rr",y.statusCode!==0)J.error("drm.auth",1,"t.f;c."+y.statusCode,y.errorMessage||void 0);else{Ge("drm_kr_s",void 0,J.videoData.K);if(y.heartbeatParams&&y.heartbeatParams.url&&J.videoData.X("outertube_streaming_data_always_use_staging_license_service")){var v=J.T.T.match(/(.*)youtube.com/g);v&&(y.heartbeatParams.url=v[0]+y.heartbeatParams.url)}y.heartbeatParams&&J.publish("newlicense",y.heartbeatParams);y.T&&(J.W=y.T,J.videoData.sZ||J.publish("newlicense", new Cfv),J.videoData.sZ=!0,J.G=XI(J.W,function(d){return d.includes("HDR")})); y.C&&(J.iA.X("html5_enable_vp9_fairplay")&&Pl(J.T)?(v=g.eB(Fp6(J.fairplayKeyId),4),J.C[v]={type:y.C[v],status:"unknown"}):J.C=du(y.C,function(d){return{type:d,status:"unknown"}})); d4(J.T)&&(y.message=i02(g.eB(y.message)));J.J&&(Tc(J,{updtks:1}),J.status="ku",J.J.update(y.message).then(function(){Ge("drm_kr_f",void 0,J.videoData.K);lz(J)||(Tc(J,{ksApiUnsup:1}),J.publish("keystatuseschange",J))},function(d){d="msuf.req."+J.requestNumber+";msg."+g.m9(d.message,3); J.error("drm.keyerror",1,d)})); g.AD(J.T)&&J.publish("fairplay_next_need_key_info",J.baseUrl,y.nextFairplayKeyId);J.iA.X("html5_enable_vp9_fairplay")&&Pl(J.T)&&J.publish("qualitychange",Jjm(J.W));y.sabrLicenseConstraint&&J.publish("sabrlicenseconstraint",y.sabrLicenseConstraint)}}; Q3v=function(J,y){var v=y.C.getValue();v=new g.Kx(function(){ZQ3(J,y)},v); g.X(J,v);v.start();g.om(y.C);Tc(J,{rtyrq:1})}; yjH=function(J,y){for(var v=[],d=g.D(Object.keys(J.C)),P=d.next();!P.done;P=d.next())P=P.value,v.push(P+"_"+J.C[P].type+"_"+J.C[P].status);return v.join(y)}; vbc=function(J){var y={};y[J.status]=lz(J)?yjH(J,"."):J.W.join(".");return y}; d$T=function(J,y,v){var d={};d.isHdr=y.includes("HDR");switch(y.replace("HDR","").replace("720","")){case "AUDIO":d.trackType=1;break;case "SD":d.trackType=2;break;case "HD":d.trackType=3;break;case "UHD1":d.trackType=4;break;case "UHD2":d.trackType=5;break;default:d.trackType=0}!d.trackType||v[y]||lz(J)&&!MR(J,y)||(J.authorizedFormats.push(d),v[y]=!0)}; MR=function(J,y){for(var v in J.C)if(J.C[v].status==="usable"&&J.C[v].type===y)return!0;return!1}; PTR=function(J,y){for(var v in J.C)if(J.C[v].type===y)return J.C[v].status}; Tc=function(J,y){var v=v===void 0?!1:v;sy(y);(v||J.iA.SH())&&J.publish("ctmp","drmlog",y)}; Aj3=function(J){var y=J[0];J[0]=J[3];J[3]=y;y=J[1];J[1]=J[2];J[2]=y;y=J[4];J[4]=J[5];J[5]=y;y=J[6];J[6]=J[7];J[7]=y}; Jjm=function(J){return g.cq(J,"UHD2")||g.cq(J,"UHD2HDR")?"highres":g.cq(J,"UHD1")||g.cq(J,"UHD1HDR")?"hd2160":g.cq(J,"HD")||g.cq(J,"HDHDR")?"hd1080":g.cq(J,"HD720")||g.cq(J,"HD720HDR")?"hd720":"large"}; kj3=function(J){for(var y="",v=0;v'.charCodeAt(d);J=J.J.createSession("video/mp4",y,v);return new ni(null,null,null,null,J)}; Vw3=function(J,y){var v=J.L[y.sessionId];!v&&J.W&&(v=J.W,J.W=null,v.sessionId=y.sessionId,J.L[y.sessionId]=v);return v}; sL2=function(J,y){var v=J.subarray(4);v=new Uint16Array(v.buffer,v.byteOffset,v.byteLength/2);v=String.fromCharCode.apply(null,v).match(/ek=([0-9a-f]+)/)[1];for(var d="",P=0;P19.2999?(J=v.Zq,v=v.NT,v>=J&&(v=J* .75),y=(J-v)*.5,v=new PM(y,J,J-y-v,this)):v=null;break a;case "widevine":v=new Aa(y,this,J);break a;default:v=null}if(this.V=v)g.X(this,this.V),this.V.subscribe("rotated_need_key_info_ready",this.B8,this),this.V.subscribe("log_qoe",this.cO,this);ln(this.iA.experiments);this.cO({cks:this.C.getInfo()})}; tw3=function(J){var y=nbR(J.W);y?y.then(U8(function(){abT(J)}),U8(function(v){if(!J.tY()){g.jv(v); var d="t.a";v instanceof DOMException&&(d+=";n."+v.name+";m."+v.message);J.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(J.cO({mdkrdy:1}),J.K=!0); J.zK&&(y=nbR(J.zK))}; OPm=function(J,y,v){J.Ek=!0;v=new Vf(y,v);J.iA.X("html5_eme_loader_sync")&&(J.L.get(y)||J.L.set(y,v));x$P(J,v)}; x$P=function(J,y){if(!J.tY()){J.cO({onInitData:1});if(J.iA.X("html5_eme_loader_sync")&&J.videoData.J&&J.videoData.J.C){var v=J.G.get(y.initData);y=J.L.get(y.initData);if(!v||!y)return;y=v;v=y.initData;J.L.remove(v);J.G.remove(v)}J.cO({initd:y.initData.length,ct:y.contentType});if(J.C.flavor==="widevine")if(J.If&&!J.videoData.isLivePlayback)Sr(J);else{if(!(J.iA.X("vp9_drm_live")&&J.videoData.isLivePlayback&&y.Tg)){J.If=!0;v=y.cryptoPeriodIndex;var d=y.C;DsH(y);y.Tg||(d&&y.C!==d?J.publish("ctmp","cpsmm", {emsg:d,pssh:y.C}):v&&y.cryptoPeriodIndex!==v&&J.publish("ctmp","cpimm",{emsg:v,pssh:y.cryptoPeriodIndex}));J.publish("widevine_set_need_key_info",y)}}else J.B8(y)}}; abT=function(J){if(!J.tY())if(J.iA.X("html5_drm_set_server_cert")||Pl(J.C)){var y=J.W.setServerCertificate();y?y.then(U8(function(v){J.iA.SH()&&J.publish("ctmp","ssc",{success:v})}),U8(function(v){J.publish("ctmp","ssce",{n:v.name, m:v.message})})).then(U8(function(){gbx(J)})):gbx(J)}else gbx(J)}; gbx=function(J){J.tY()||(J.K=!0,J.cO({onmdkrdy:1}),Sr(J))}; D$r=function(J){return J.C.flavor==="widevine"&&J.videoData.X("html5_drm_cpi_license_key")}; Sr=function(J){if(J.Ek&&J.K&&!J.wj){for(;J.J.length;){var y=J.J[0],v=D$r(J)?cAx(y):g.eB(y.initData);if(Pl(J.C)&&!y.T)J.J.shift();else{if(J.T.get(v))if(J.C.flavor!=="fairplay"||Pl(J.C)){J.J.shift();continue}else J.T.delete(v);DsH(y);break}}J.J.length&&J.createSession(J.J[0])}}; cjR=function(J){var y;if(y=g.uQ()){var v;y=!((v=J.W.T)==null||!v.getMetrics)}y&&(y=J.W.getMetrics())&&(y=g.S0(y),J.publish("ctmp","drm",{metrics:y}))}; Ghj=function(){var J=hpT();return!(!J||J==="visible")}; FQ2=function(J){var y=bPT();y&&document.addEventListener(y,J,!1)}; jLH=function(J){var y=bPT();y&&document.removeEventListener(y,J,!1)}; bPT=function(){if(document.visibilityState)var J="visibilitychange";else{if(!document[YD+"VisibilityState"])return"";J=YD+"visibilitychange"}return J}; ehj=function(J){g.u.call(this);var y=this;this.lA=J;this.kN=0;this.L=this.T=this.V=!1;this.W=0;this.qx=this.lA.Y();this.videoData=this.lA.getVideoData();this.J=g.Zo(this.qx.experiments,"html5_delayed_retry_count");this.C=new g.Kx(function(){y.lA.qy()},g.Zo(this.qx.experiments,"html5_delayed_retry_delay_ms")); g.X(this,this.C)}; $$m=function(J,y,v){var d=J.videoData.T,P=J.videoData.W,A=J.qx.X("html5_disable_codec_fallback_for_drm")&&J.videoData.jz();Wh(J.lA.getVideoData())&&J.qx.X("html5_gapless_fallback_on_qoe_restart")&&rQx(J.lA,"pe");if((y==="progressive.net.retryexhausted"||y==="fmt.unplayable"||y==="fmt.decode")&&!J.lA.eW.V&&d&&d.itag==="22")return J.lA.eW.V=!0,J.gi("qoe.restart",{reason:"fmt.unplayable.22"}),J.lA.aL(),!0;var T=!1;if(J.videoData.isExternallyHostedPodcast){if(T=J.videoData.Y8B)v.mimeType=T.type,J.dj("3pp", {url:T.url});v.ns="3pp";J.lA.q1(y,1,"VIDEO_UNAVAILABLE",sy((new g.Y6(y,v,1)).details));return!0}var M=J.kN+3E4<(0,g.GC)()||J.C.isActive();if(J.qx.X("html5_empty_src")&&J.videoData.isAd()&&y==="fmt.unplayable"&&/Empty src/.test(""+v.msg))return v.origin="emptysrc",J.gi("auth",v),!0;M||m$T(J.lA.OY())||(v.nonfg="paused",M=!0,J.lA.pauseVideo());(y==="fmt.decode"||y==="fmt.unplayable")&&(P==null?0:oc(P)||Cm(P))&&(y$H(J.qx.V,P.PX),v.acfallexp=P.PX,T=M=!0);!M&&J.J>0&&(J.C.start(),M=!0,v.delayed="1",--J.J); P=J.lA.loader;M||!((d==null?0:$6(d))||(d==null?0:Bz(d)))||A||(y$H(J.qx.V,d.PX),T=M=!0,v.cfallexp=d.PX);if(!M)return BLP(J,v);A=!1;J.V?J.kN=(0,g.GC)():A=J.V=!0;M=J.videoData;if(M.ZB){M=M.ZB.kT();var n=Date.now()/1E3+1800;M=M6048E5&&Ib3(J,"signature");return!1}; Ib3=function(J,y){try{y={detail:"pr."+y},g.lB(J.qx)&&J.qx.X("html5_reload_by_kabuki_app")?J.lA.q1("qoe.restart",1,void 0,sy(y),"7"):(J.gi("qoe.restart",y),window.location.reload())}catch(v){}}; U$x=function(J,y){var v=J.qx.V;v.G=!1;v.T=!0;J.gi("qoe.restart",{e:y===void 0?"fmt.noneavailable":y,detail:"hdr"});J.lA.qy(!0)}; fbU=function(J,y,v,d,P,A){this.videoData=J;this.C=y;this.reason=v;this.T=d;this.token=P;this.videoId=A}; Vo=function(J,y,v){this.iA=J;this.Py=y;this.lA=v;this.B=this.L=this.C=this.W=this.G=this.T=0;this.V=!1;this.K=g.Zo(this.iA.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.J=new Map}; u3R=function(J,y,v){!J.iA.X("html5_tv_ignore_capable_constraint")&&g.Sb(J.iA)&&(v=v.compose(iPT(J,y)));return v}; HP2=function(J){if(J.lA.OY().isInline())return dC;var y;J.X("html5_exponential_memory_for_sticky")?y=hD(J.iA.mL,"sticky-lifetime")<.5?"auto":FK[Yi()]:y=FK[Yi()];return g.cW("auto",y,!1,"s")}; NL3=function(J,y){var v,d=X_T(J,(v=y.C)==null?void 0:v.videoInfos);v=J.lA.getPlaybackRate();return v>1&&d?(J=Q0T(J.iA.V,y.C.videoInfos,v),new Dp(0,J,!0,"o")):new Dp(0,0,!1,"o")}; X_T=function(J,y){return y&&g.Sb(J.iA)?y.some(function(v){return v.video.fps>32}):!1}; Rh3=function(J,y){if(J.X("html5_disable_ustreamer_constraint_for_sabr")&&gC(y.videoData))return dC;var v=J.lA.KK();J.X("html5_use_video_quality_cap_for_ustreamer_constraint")&&v&&v.gI>0&&bk(y.videoData.gA)&&(J=v.gI,y.videoData.gA=new Dp(0,J,!1,"u"));return y.videoData.gA}; iPT=function(J,y){if(g.Sb(J.iA)&&Us(J.iA.V,fC.HEIGHT))var v=y.C.videoInfos[0].video.qualityOrdinal;else{var d=J.rJ(!!y.C.C);a9(y.videoData)||y7(y.videoData);y=y.C.videoInfos;if(y.length){var P=g.Zo(J.iA.experiments,"html5_override_oversend_fraction")||.85,A=y[0].video;A.projectionType!=="MESH"&&A.projectionType!=="EQUIRECTANGULAR"&&A.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||Ne||(P=.45);J=g.Zo(J.iA.experiments,"html5_viewport_undersend_maximum");for(A=0;A0&&(v=Math.min(v,d));if(d=g.Zo(J.iA.experiments,"html5_max_vertical_resolution")){J=4320;for(P=0;Pd&&(J=Math.min(J,A.video.qualityOrdinal));if(J<4320){for(P=d=0;P32){P=!0;break a}}P=!1}P&&(v=Math.min(v,d));(d=g.Zo(J.iA.experiments,"html5_live_quality_cap"))&&y.videoData.isLivePlayback&&(v=Math.min(v,d));v=zhc(J,y,v);J=g.Zo(J.iA.experiments,"html5_byterate_soft_cap");return new Dp(0,v===4320?0:v,!1,"d",J)}; Ebm=function(J){var y,v,d,P;return g.f(function(A){switch(A.T){case 1:return J.C.C&&typeof((y=navigator.mediaCapabilities)==null?void 0:y.decodingInfo)==="function"?g.h(A,Promise.resolve(),2):A.return(Promise.resolve());case 2:v=g.D(J.C.videoInfos),d=v.next();case 3:if(d.done){A.Qk(0);break}P=d.value;return g.h(A,rlm(P),4);case 4:d=v.next(),A.Qk(3)}})}; ZPH=function(J,y){if(!y.videoData.T||J.X("html5_disable_performance_downgrade"))return!1;Date.now()-J.G>6E4&&(J.T=0);J.T++;J.G=Date.now();if(J.T!==4)return!1;QLc(J,y.videoData.T);return!0}; Jac=function(J,y,v,d){if(!y||!v||!y.videoData.T)return!1;var P=g.Zo(J.iA.experiments,"html5_df_downgrade_thresh"),A=J.X("html5_log_media_perf_info");if(!((0,g.GC)()-J.W<5E3?0:A||P>0))return!1;var T=((0,g.GC)()-J.W)/1E3;J.W=(0,g.GC)();v=v.getVideoPlaybackQuality();if(!v)return!1;var M=v.droppedVideoFrames-J.L,n=v.totalVideoFrames-J.B;J.L=v.droppedVideoFrames;J.B=v.totalVideoFrames;var Y=v.displayCompositedVideoFrames===0?0:v.displayCompositedVideoFrames||-1;A&&J.iA.SH()&&J.lA.dj("ddf",{dr:v.droppedVideoFrames, de:v.totalVideoFrames,comp:Y});if(d)return J.C=0,!1;if((n-M)/T>J.K||!P||g.Sb(J.iA))return!1;J.C=(n>60?M/n:0)>P?J.C+1:0;if(J.C!==3)return!1;QLc(J,y.videoData.T);J.lA.dj("dfd",Object.assign({dr:v.droppedVideoFrames,de:v.totalVideoFrames},w_3()));return!0}; QLc=function(J,y){var v=y.PX,d=y.video.fps,P=y.video.qualityOrdinal-1,A=J.J;y=""+v+(d>49?"p60":d>32?"p48":"");v=EG(v,d,A);P>0&&(v=Math.min(v,P));if(!Li.has(y)&&LC().includes(y)){var T=v;v=Vk();+v[y]>0&&(T=Math.min(+v[y],T));v[y]!==T&&(v[y]=T,g.B1("yt-player-performance-cap",v,2592E3))}else if(Li.has(y)||A==null){a:{T=T===void 0?!0:T;d=LC().slice();if(T){if(d.includes(y))break a;d.push(y)}else{if(!d.includes(y))break a;d.splice(d.indexOf(y),1)}g.B1("yt-player-performance-cap-active-set",d,2592E3)}k$.set(y, v)}else Li.add(y),A==null||A.set(y,v);J.lA.S5()}; yaH=function(J,y){if(!y.C.C)return J.V?new Dp(0,360,!1,"b"):dC;for(var v=!1,d=!1,P=g.D(y.C.videoInfos),A=P.next();!A.done;A=P.next())$6(A.value)?v=!0:d=!0;v=v&&d;d=0;P=g.Zo(J.iA.experiments,"html5_performance_cap_floor");P=J.iA.T?240:P;y=g.D(y.C.videoInfos);for(A=y.next();!A.done;A=y.next()){var T=A.value;if(!v||!$6(T))if(A=EG(T.PX,T.video.fps,J.J),T=T.video.qualityOrdinal,Math.max(A,P)>=T){d=T;break}}return new Dp(0,d,!1,"b")}; vXH=function(J,y){var v=J.lA.OY();return v.isInline()&&!y.hC?new Dp(0,480,!1,"v"):gC(y)?dC:v.isBackground()&&OO()/1E3>60&&!g.Sb(J.iA)?new Dp(0,360,!1,"v"):dC}; dRH=function(J,y,v){if(J.iA.experiments.BX("html5_disable_client_autonav_cap_for_onesie")&&y.fetchType==="onesie"||g.Sb(J.iA)&&(Yi(-1)>=1080||y.osid))return dC;var d=g.Zo(J.iA.experiments,"html5_autonav_quality_cap"),P=g.Zo(J.iA.experiments,"html5_autonav_cap_idle_secs");return d&&y.isAutonav&&OO()/1E3>P?(v&&(d=zhc(J,v,d)),new Dp(0,d,!1,"e")):dC}; zhc=function(J,y,v){if(J.X("html5_optimality_defaults_chooses_next_higher")&&v)for(J=y.C.videoInfos,y=1;y=0||(J.provider.lA.getVisibilityState()===3?J.V=!0:(J.C=g.yo(J.provider),J.delay.start()))}; TI6=function(J){if(!(J.T<0)){var y=g.yo(J.provider),v=y-J.W;J.W=y;J.playerState.state===8?J.playTimeSecs+=v:J.playerState.isBuffering()&&!g.k(J.playerState,16)&&(J.rebufferTimeSecs+=v)}}; lMx=function(J){var y;switch((y=J.iA.playerCanaryStage)==null?void 0:y.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; Mrj=function(J){return window.PressureObserver&&new window.PressureObserver(J)}; nXd=function(J){J=J===void 0?Mrj:J;g.u.call(this);var y=this;try{this.J=J(function(d){y.T=d.at(-1)}); var v;this.W=(v=this.J)==null?void 0:v.observe("cpu",{sampleInterval:2E3}).catch(function(d){d instanceof DOMException&&(y.C=d)})}catch(d){d instanceof DOMException&&(this.C=d)}}; syr=function(J){var y={},v=window.h5vcc;y.hwConcurrency=navigator.hardwareConcurrency;J.C&&(y.cpe=J.C.message);J.T&&(y.cpt=J.T.time,y.cps=J.T.state);if(v==null?0:v.cVal)y.cb2s=v.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),y.cb5s=v.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),y.cb30s=v.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return y}; Yhj=function(J){var y;g.f(function(v){switch(v.T){case 1:return g.bR(v,2),g.h(v,J.W,4);case 4:g.ex(v,3);break;case 2:g.BP(v);case 3:(y=J.J)==null||y.disconnect(),g.G2(v)}})}; VrT=function(J,y){y?Shx.test(J):(J=g.y2(J),Object.keys(J).includes("cpn"))}; trd=function(J,y,v,d,P,A,T){var M={format:"RAW"},n={};if(P0(J)&&AN()){if(T){var Y;((Y=LEr.uaChPolyfill)==null?void 0:Y.state.type)!==2?T=null:(T=LEr.uaChPolyfill.state.data.values,T={"Synth-Sec-CH-UA-Arch":T.architecture,"Synth-Sec-CH-UA-Model":T.model,"Synth-Sec-CH-UA-Platform":T.platform,"Synth-Sec-CH-UA-Platform-Version":T.platformVersion,"Synth-Sec-CH-UA-Full-Version":T.uaFullVersion});n=Object.assign(n,T);M.withCredentials=!0}(T=g.NP("EOM_VISITOR_DATA"))?n["X-Goog-EOM-Visitor-Id"]=T:d?n["X-Goog-Visitor-Id"]= d:g.NP("VISITOR_DATA")&&(n["X-Goog-Visitor-Id"]=g.NP("VISITOR_DATA"));v&&(n["X-Goog-PageId"]=v);(d=y.AY)&&!sr(y)&&(n["X-Goog-AuthUser"]=d);P&&(n.Authorization="Bearer "+P);y.X("enable_datasync_id_header_in_web_vss_pings")&&y.TA&&y.datasyncId&&(n["X-YouTube-DataSync-Id"]=y.datasyncId);T||n["X-Goog-Visitor-Id"]||P||v||d?M.withCredentials=!0:y.X("html5_send_cpn_with_options")&&Shx.test(J)&&(M.withCredentials=!0)}Object.keys(n).length>0&&(M.headers=n);A&&(M.onFinish=A);return Object.keys(M).length>1? M:null}; WEj=function(J,y,v,d,P,A,T,M){AN()&&v.token&&(J=v0(J,{ctt:v.token,cttype:v.vx,mdx_environment:v.mdxEnvironment}));d.X("net_pings_low_priority")&&(y||(y={}),y.priority="low");A||M&&d.X("nwl_skip_retry")?(y==null?y={}:VrT(J,d.X("html5_assert_cpn_with_regex")),T?Hj().sendAndWrite(J,y):Hj().sendThenWrite(J,y,M)):y?(VrT(J,d.X("html5_assert_cpn_with_regex")),A9T(J,y)):g.$W(J,P)}; aMx=function(J){for(var y=[],v=0;v0&&v>0&&!J.T&&J.J<1E7)try{J.W=J.V({sampleInterval:y,maxBufferSize:v});var d;(d=J.W)==null||d.addEventListener("samplebufferfull",function(){return g.f(function(P){if(P.T==1)return g.h(P,J.stop(),2);gXx(J);g.G2(P)})})}catch(P){J.T=OiR(P.message)}}; ay=function(J,y){var v,d;return!!((v=window.h5vcc)==null?0:(d=v.settings)==null?0:d.set(J,y))}; ca3=function(){var J,y,v,d=(J=window.h5vcc)==null?void 0:(y=J.settings)==null?void 0:(v=y.getPersistentSettingAsString)==null?void 0:v.call(y,"cpu_usage_tracker_intervals");if(d!=null){var P;J=(P=JSON.parse(d))!=null?P:[];P=J.filter(function(Y){return Y.type==="total"}).map(function(Y){return Y.seconds}); y=g.D(DRP);for(v=y.next();!v.done;v=y.next())v=v.value,P.indexOf(v)===-1&&J.push({type:"total",seconds:v});var A,T;(A=window.h5vcc)==null||(T=A.settings)==null||T.set("cpu_usage_tracker_intervals_enabled",1);var M,n;(M=window.h5vcc)==null||(n=M.settings)==null||n.set("cpu_usage_tracker_intervals",JSON.stringify(J))}}; Gcd=function(){var J=window.H5vccPlatformService,y="";if(J&&J.has("dev.cobalt.coat.clientloginfo")&&(J=J.open("dev.cobalt.coat.clientloginfo",function(){}))){var v=J.send(new ArrayBuffer(0)); v&&(y=String.fromCharCode.apply(String,g.r(new Uint8Array(v))));J.close()}return y}; g.gI=function(J){g.u.call(this);var y=this;this.provider=J;this.logger=new g.tA("qoe");this.C=new Map;this.sequenceNumber=1;this.Cy=NaN;this.R_="N";this.B=this.wq=this.Qf=this.zK=this.T=0;this.H$=this.WX=this.L=this.Vk="";this.ZE=this.Ek=NaN;this.ON=0;this.ES=-1;this.Lf=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.aG=this.isEmbargoed=this.If=this.isOffline=this.isBuffering=!1;this.xj=[];this.K=null;this.Ky=this.W=this.rj=this.G=!1;this.J=-1;this.ZB=!1;this.h_=new g.Kx(this.Lm,750,this);this.aV= this.adCpn=this.wj=this.contentCpn="";this.adFormat=void 0;this.QM=0;this.YB=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.AI=new Set(["gd","pw"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.J9=!1;this.L8=NaN;this.cX=0;this.yl=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.f8=!1;this.b6={xs:function(d){y.xs(d)}, RrY:function(){return y.V}, fE:function(){return y.contentCpn}, cQW:function(){return y.wj}, reportStats:function(){y.reportStats()}, kWB:function(){return y.C.get("cat")||[]}, oS:function(d){return y.C.get(d)||[]}, QLY:function(){return y.C}, kUY:function(){return 0}, AQY:function(){return{adCpn:y.adCpn,aV:y.aV,adFormat:y.adFormat}}}; this.AY=this.provider.iA.X("html5_qoe_relaxed_reporting");var v=g.Zo(this.provider.iA.experiments,"html5_qoe_proto_mock_length");v&&!xX.length&&(xX=aMx(v));g.X(this,this.h_);try{navigator.getBattery().then(function(d){y.K=d})}catch(d){}g.Oh(this,0,"vps",["N"]); J.iA.SH()&&(this.cX=(0,g.GC)(),this.L8=g.V2(function(){var d=(0,g.GC)(),P=d-y.cX;P>500&&y.dj("vmlock",{diff:P.toFixed()});y.cX=d},250)); this.provider.videoData.s5&&(this.remoteControlMode=bix[this.provider.videoData.s5]||0);this.provider.videoData.eh&&(v=nMU(this.provider.videoData.eh),v==null?0:v.length)&&(this.remoteConnectedDevices=v);J.iA.SH()&&(this.XW=new nXd,g.X(this,this.XW));v=g.Zo(J.iA.experiments,"html5_js_self_profiler_sample_interval_ms");J=g.Zo(J.iA.experiments,"html5_js_self_profiler_max_samples");v>0&&J>0&&(this.GK=new WM(v,J),g.X(this,this.GK))}; DM=function(J,y,v){var d=J.C.get(y);d?d.push(v):J.C.set(y,[v])}; g.Oh=function(J,y,v,d){DM(J,v,y.toFixed(3)+":"+d.join(":"))}; FEP=function(J,y){var v=J.adCpn||J.provider.videoData.clientPlaybackNonce,d=J.provider.getCurrentTime(v);g.Oh(J,y,"cmt",[d.toFixed(3)]);v=d=J.provider.D8(v);if((!J.V||J.provider.iA.X("html5_shorts_gapless_no_gllat")&&Wh(J.provider.videoData)?0:v*1E3>J.V.G$+100)&&J.V){var P=J.V;v=P.isAd;d=d*1E3-P.G$;J.xY=y*1E3-P.QzB-d-P.KSB;P=(0,g.GC)()-d;y=J.xY;d=J.provider.videoData;var A=d.isAd();if(v||A){A=(v?"ad":"video")+"_to_"+(A?"ad":"video");var T={};d.L&&(T.cttAuthInfo={token:d.L,videoId:d.videoId});T.startTime= P-y;Fh(A,T);g.bx({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},A);Ge("pbs",P,A)}else P=J.provider.lA.AR(),P.L!==d.clientPlaybackNonce?(P.V=d.clientPlaybackNonce,P.T=y):d.Zo()||g.ev(new g.H1("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));J.dj("gllat",{l:J.xY.toFixed(),prev_ad:+v});delete J.V}}; cM=function(J,y){y=y===void 0?NaN:y;y=y>=0?y:g.yo(J.provider);var v=J.provider.lA.Gz(),d=v.Yv-(J.Ek||0);d>0&&g.Oh(J,y,"bwm",[d,(v.gt-(J.ZE||0)).toFixed(3)]);isNaN(J.Ek)&&v.Yv&&J.isOffline&&J.xs(!1);J.Ek=v.Yv;J.ZE=v.gt;isNaN(v.bandwidthEstimate)||g.Oh(J,y,"bwe",[v.bandwidthEstimate.toFixed(0)]);J.provider.iA.SH()&&Object.keys(v.C).length!==0&&J.dj("bwinfo",v.C);if(J.provider.iA.SH()||J.provider.iA.X("html5_log_meminfo"))d=UfP(),Object.values(d).some(function(A){return A!==void 0})&&J.dj("meminfo", d); if(J.provider.iA.SH()){var P;(d=(P=J.XW)==null?void 0:syr(P))&&Object.values(d).some(function(A){return A!=null})&&J.dj("cpuinfo",d)}J.GK&&J.dj("jsprof",J.GK.flush()); J.K&&g.Oh(J,y,"bat",[J.K.level,J.K.charging?"1":"0"]);P=J.provider.lA.getVisibilityState();J.ES!==P&&(g.Oh(J,y,"vis",[P]),J.ES=P);FEP(J,y);(P=jy2(J.provider))&&P!==J.ON&&(g.Oh(J,y,"conn",[P]),J.ON=P);e93(J,y,v)}; e93=function(J,y,v){if(!isNaN(v.sI)){var d=v.sI;v.T96E3&&(new g.Kx(J.reportStats,0,J)).start()}}; qhT=function(J){J.provider.videoData.gr&&Gc(J,"prefetch");J.provider.videoData.f8&&J.dj("reload",{r:J.provider.videoData.reloadReason,ct:J.provider.videoData.f8});J.provider.videoData.rj&&Gc(J,"monitor");J.provider.videoData.isLivePlayback&&Gc(J,"live");VJ&&Gc(J,"streaming");J.provider.videoData.s5&&J.dj("ctrl",{mode:J.provider.videoData.s5},!0);if(J.provider.videoData.eh){var y=J.provider.videoData.eh.replace(/,/g,"_");J.dj("ytp",{type:y},!0)}J.provider.videoData.kX&&(y=J.provider.videoData.kX.replace(/,/g, "."),J.dj("ytrexp",{ids:y},!0));y=J.provider.videoData;var v=J.provider.iA.X("enable_white_noise")||J.provider.iA.X("enable_webgl_noop"),d=g.Bh(y)||g.uV(y)||g.Hh(y)||g.XV(y);(v||d)&&(v=(0,g.bz)())&&J.C.set("gpu",[v]);y7(J.provider.videoData)&&g.Oh(J,g.yo(J.provider),"dt",["1"]);J.provider.X("html5_record_is_offline_on_playback_attempt_start")&&y.cotn&&!y7(y)&&J.xs(!0);J.provider.iA.SH()&&(y=(0,g.GC)()-J.provider.iA.VE,J.dj("playerage",{secs:Math.pow(1.6,Math.round(Math.log(y/1E3)/Math.log(1.6))).toFixed()})); J.W=!0;J.Cy=g.V2(function(){J.reportStats()},1E4)}; $Rc=function(J,y,v){var d=g.yo(J.provider);rax(J,d,y,0,v);cM(J,d);BIH(J)}; rax=function(J,y,v,d,P){var A=J.provider.iA.C.cbrver;J.provider.iA.C.cbr==="Chrome"&&/^96[.]/.test(A)&&v==="net.badstatus"&&/rc\.500/.test(P)&&oX6(J,3);J.provider.iA.X("html5_use_ump")&&/b248180278/.test(P)&&oX6(J,4);A=J.provider.getCurrentTime(J.adCpn||J.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";v=[v,d,A.toFixed(3)];d&&(P+=";a6s."+Kr());P&&v.push(CzP(P));g.Oh(J,y,"error",v);J.W=!0}; b53=function(J,y){var v=g.yo(J.provider);if(!J.provider.iA.experiments.BX("html5_refactor_sabr_video_format_selection_logging")||y.C.id!==J.Vk){var d=[y.C.id,y.T,J.Vk,y.reason];y.token&&d.push(y.token);g.Oh(J,v,"vfs",d);J.Vk=y.C.id;d=J.provider.lA.getPlayerSize();if(d.width>0&&d.height>0){d=[Math.round(d.width),Math.round(d.height)];var P=g.MB();P>1&&d.push(P);g.Oh(J,v,"view",d)}J.rj||(J.provider.iA.SH()&&Gc(J,"rqs2"),J.provider.videoData.C&&q9(J.provider.videoData.C)&&J.C.set("preload",["1"]));J.rj= !0;J.W=!0}y.reason==="m"&&++J.QM===100&&oX6(J,2);g.Oh(J,v,"vps",[J.R_]);J.AY||J.reportStats(v)}; h9m=function(J){J.J>=0||(J.provider.iA.SC||J.provider.lA.getVisibilityState()!==3?J.J=g.yo(J.provider):J.ZB=!0)}; G9U=function(J,y,v){if(J.provider.iA.experiments.BX("html5_refactor_sabr_audio_format_selection_logging")){y=v.C;var d=[y.audio&&y.video?y.Sd?y.Sd:"":y.id];y.N4&&y.N4.id&&d.push(y.N4.id);y=d.join(";");y!==J.L&&(d=[y,J.L,v.reason],v.token&&d.push(v.token),g.Oh(J,g.yo(J.provider),"afs",d),J.L=y)}else v.C.id!==J.L&&(d=[v.C.id,J.L,v.reason],v.token&&d.push(v.token),g.Oh(J,y,"afs",d),J.L=v.C.id)}; Gc=function(J,y){DM(J,"cat",y)}; IMm=function(J,y,v,d,P){var A=g.yo(J.provider);y!==1&&y!==3&&y!==5||g.Oh(J,A,"vps",[J.R_]);DM(J,"xvt","t."+A.toFixed(3)+";m."+P.toFixed(3)+";g.2;tt."+y+";np.0;c."+v+";d."+d)}; oX6=function(J,y){J.Ky||(DM(J,"fcnz",""+y),J.Ky=!0)}; CzP=function(J){/[^a-zA-Z0-9;.!_-]/.test(J)&&(J=J.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return J}; pMR=function(J){this.provider=J;this.G=!1;this.C=0;this.W=-1;this.Ww=NaN;this.J=0;this.segments=[];this.L=this.V=0;this.previouslyEnded=!1;this.K=this.provider.lA.getVolume();this.B=this.provider.lA.isMuted()?1:0;this.T=FU(this.provider)}; jr=function(J){J.T.startTime=J.J;J.T.endTime=J.C;var y=!1;J.segments.length&&g.Wq(J.segments).isEmpty()?(J.segments[J.segments.length-1].previouslyEnded&&(J.T.previouslyEnded=!0),J.segments[J.segments.length-1]=J.T,y=!0):J.segments.length&&J.T.isEmpty()||(J.segments.push(J.T),y=!0);y?J.T.endTime===0&&(J.previouslyEnded=!1):J.T.previouslyEnded&&(J.previouslyEnded=!0);J.V+=J.C-J.J;J.T=FU(J.provider);J.T.previouslyEnded=J.previouslyEnded;J.previouslyEnded=!1;J.J=J.C}; fMv=function(J){URP(J);J.L=g.V2(function(){J.update()},100); J.Ww=g.yo(J.provider);J.T=FU(J.provider)}; URP=function(J){g.tN(J.L);J.L=NaN}; iiR=function(J,y,v){v-=J.Ww;return y===J.C&&v>.5}; uUj=function(J,y,v,d){this.iA=y;this.H$=v;this.segments=[];this.experimentIds=[];this.ZB=this.L8=this.isFinal=this.delayThresholdMet=this.yl=this.ES=this.autoplay=this.autonav=!1;this.ON="yt";this.L=[];this.G=this.K=null;this.sendVisitorIdHeader=this.XW=!1;this.B=this.pageId="";this.V=v==="watchtime";this.J=v==="playback";this.wj=v==="atr";this.Bo=v==="engage";this.sendVisitorIdHeader=!1;this.uri=this.wj?"/api/stats/"+v:"//"+y.t7+"/api/stats/"+v;d&&(this.L8=d.fs,d.rtn&&(this.G=d.rtn),this.V?(this.playerState= d.state,d.rti>0&&(this.K=d.rti)):(this.Lj=d.mos,this.ER=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Lf=d.inview),d.size&&(this.ZE=d.size),d.playerwidth&&(this.EH=d.playerwidth),d.playerheight&&(this.QE=d.playerheight));this.QM=g.WL(y.C);this.B=Lo(y.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.B==="all"||this.B==="once")this.f8=g.WL(y.f8);this.SC=y.ZE;this.experimentIds=KCv(y.experiments);this.GK=y.AI;this.ON=y.zK;this.region=y.region; this.userAge=y.userAge;this.rj=y.gr;this.xj=OO();this.sendVisitorIdHeader=y.sendVisitorIdHeader;this.If=y.X("vss_pings_using_networkless")||y.X("kevlar_woffle");this.VE=y.X("vss_final_ping_send_and_write");this.cX=y.X("vss_use_send_and_write");this.pageId=y.pageId;this.M1=y.X("vss_playback_use_send_and_write");y.livingRoomAppMode&&(this.livingRoomAppMode=y.livingRoomAppMode);this.mL=y.W&&y.X("embeds_append_synth_ch_headers");g.un(y)&&(this.Ek=y.wj);g.l$(g.QJ(y))&&this.L.push(1);this.accessToken=g.ZL(J); J.yA[this.H$]?this.W=J.yA[this.H$]:J.yA.playback&&(this.W=J.yA.playback);this.adFormat=J.adFormat;this.adQueryId=J.adQueryId;this.autoplay=mGP(J);this.J&&(this.ES=J.Yo&&z7(J)==="adunit"?!0:!1);this.autonav=J.isAutonav||this.autonav;this.contentVideoId=EP(J);this.clientPlaybackNonce=J.clientPlaybackNonce;this.yl=J.vR;J.L&&(this.Cy=J.L,this.J9=J.A7);J.mdxEnvironment&&(this.mdxEnvironment=J.mdxEnvironment);this.C=J.ON;this.aG=J.aG;J.T&&(this.AI=J.T.itag,J.W&&J.W.itag!==this.AI&&(this.Ky=J.W.itag));J.C&& q9(J.C)&&(this.offlineDownloadUserChoice="1");this.eventLabel=z7(J);this.ZB=J.M1?!1:J.ER;this.DO=J.qK;if(y=CF(J))this.TP=y;this.iN=J.II;this.partnerId=J.partnerId;this.eventId=J.eventId;this.playlistId=J.hg||J.playlistId;this.iq=J.iq;this.s5=J.s5;this.eh=J.eh;this.XV=J.XV;this.subscribed=J.subscribed;this.videoId=J.videoId;this.videoMetadata=J.videoMetadata;this.visitorData=J.visitorData;this.osid=J.osid;this.qB=J.qB;this.referrer=J.referrer;this.jI=J.bk||J.jI;this.YB=J.Gj;this.VN=J.VN;this.userGenderAge= J.userGenderAge;this.oL=J.oL;this.embedsRct=J.embedsRct;this.embedsRctn=J.embedsRctn;g.un(this.iA)&&J.mutedAutoplay&&(J.mutedAutoplayDurationMode===2&&J.limitedPlaybackDurationInSeconds===0&&J.endSeconds===0?this.L.push(7):this.L.push(2));J.isEmbedsShortsMode(new g.Kn(this.EH,this.QE),!!this.playlistId)&&this.L.push(3);g.sH(J)&&this.L.push(4);this.Vk=J.EO;J.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=J.compositeLiveIngestionOffsetToken)}; HiU=function(J,y){var v=J.sendVisitorIdHeader?J.visitorData:void 0;return g.xo(J.iA,J.accessToken).then(function(d){return trd(J.uri,J.iA,J.pageId,v,d,y,J.mL)})}; R93=function(J,y){return function(){J.iA.X("html5_simplify_pings")?(J.C=J.WX,J.h_=y(),J.xj=0,J.send()):HiU(J).then(function(v){var d=XMc(J);d.cmt=d.len;d.lact="0";var P=y().toFixed(3);d.rt=Number(P).toString();d=g.al(J.uri,d);J.iA.X("vss_through_gel_double")&&NIH(d);J.If?(v==null&&(v={}),J.cX?Hj().sendAndWrite(d,v):Hj().sendThenWrite(d,v)):v?g.c0(d,v):g.$W(d)})}}; XMc=function(J){var y={ns:J.ON,el:J.eventLabel,cpn:J.clientPlaybackNonce,ver:2,cmt:J.T(J.C),fmt:J.AI,fs:J.L8?"1":"0",rt:J.T(J.h_),adformat:J.adFormat,content_v:J.contentVideoId,euri:J.SC,lact:J.xj,live:J.TP,cl:(775767749).toString(),mos:J.Lj,state:J.playerState,volume:J.ER};J.subscribed&&(y.subscribed="1");Object.assign(y,J.QM);J.B==="all"?Object.assign(y,J.f8):J.B==="once"&&J.J&&Object.assign(y,J.f8);J.autoplay&&(y.autoplay="1");J.ES&&(y.sautoplay="1");J.yl&&(y.dni="1");!J.V&&J.Ek&&(y.epm=KE6[J.Ek]); J.isFinal&&(y["final"]="1");J.ZB&&(y.splay="1");J.aG&&(y.delay=J.aG);J.GK&&(y.hl=J.GK);J.region&&(y.cr=J.region);J.userGenderAge&&(y.uga=J.userGenderAge);J.userAge!==void 0&&J.rj&&(y.uga=J.rj+J.userAge);J.WX!==void 0&&(y.len=J.T(J.WX));!J.V&&J.experimentIds.length>0&&(y.fexp=J.experimentIds.toString());J.G!==null&&(y.rtn=J.T(J.G));J.jI&&(y.feature=J.jI);J.s5&&(y.ctrl=J.s5);J.eh&&(y.ytr=J.eh);J.Ky&&(y.afmt=J.Ky);J.offlineDownloadUserChoice&&(y.ODUC=J.offlineDownloadUserChoice);J.zK&&(y.lio=J.T(J.zK)); J.V?(y.idpj=J.DO,y.ldpj=J.iN,J.delayThresholdMet&&(y.dtm="1"),J.K!=null&&(y.rti=J.T(J.K)),J.oL&&(y.ald=J.oL),J.compositeLiveIngestionOffsetToken&&(y.clio=J.compositeLiveIngestionOffsetToken)):J.adType!==void 0&&(y.at=J.adType);J.ZE&&(J.J||J.V)&&(y.size=J.ZE);J.J&&J.L.length&&(y.pbstyle=J.L.join(","));J.Lf!=null&&(J.J||J.V)&&(y.inview=J.T(J.Lf));J.V&&(y.volume=er(J,g.x7(J.segments,function(d){return d.volume})),y.st=er(J,g.x7(J.segments,function(d){return d.startTime})),y.et=er(J,g.x7(J.segments,function(d){return d.endTime})), XI(J.segments,function(d){return d.playbackRate!==1})&&(y.rate=er(J,g.x7(J.segments,function(d){return d.playbackRate}))),XI(J.segments,function(d){return d.C!=="-"})&&(y.als=g.x7(J.segments,function(d){return d.C}).join(",")),XI(J.segments,function(d){return d.previouslyEnded})&&(y.pe=g.x7(J.segments,function(d){return""+ +d.previouslyEnded}).join(","))); y.muted=er(J,g.x7(J.segments,function(d){return d.muted?1:0})); XI(J.segments,function(d){return d.visibilityState!==0})&&(y.vis=er(J,g.x7(J.segments,function(d){return d.visibilityState}))); XI(J.segments,function(d){return d.connectionType!==0})&&(y.conn=er(J,g.x7(J.segments,function(d){return d.connectionType}))); XI(J.segments,function(d){return d.T!==0})&&(y.blo=er(J,g.x7(J.segments,function(d){return d.T}))); XI(J.segments,function(d){return!!d.J})&&(y.blo=g.x7(J.segments,function(d){return d.J}).join(",")); XI(J.segments,function(d){return!!d.compositeLiveStatusToken})&&(y.cbs=g.x7(J.segments,function(d){return d.compositeLiveStatusToken}).join(",")); XI(J.segments,function(d){return d.W!=="-"})&&(y.cc=g.x7(J.segments,function(d){return d.W}).join(",")); XI(J.segments,function(d){return d.clipId!=="-"})&&(y.clipid=g.x7(J.segments,function(d){return d.clipId}).join(",")); if(XI(J.segments,function(d){return!!d.audioId})){var v="au"; J.J&&(v="au_d");y[v]=g.x7(J.segments,function(d){return d.audioId}).join(",")}AN()&&J.Cy&&(y.ctt=J.Cy,y.cttype=J.J9,y.mdx_environment=J.mdxEnvironment); J.Bo&&(y.etype=J.AY!==void 0?J.AY:0);J.YB&&(y.uoo=J.YB);J.livingRoomAppMode&&J.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(y.clram=z96[J.livingRoomAppMode]||J.livingRoomAppMode);J.W?kc6(J,y):(y.docid=J.videoId,y.referrer=J.referrer,y.ei=J.eventId,y.of=J.qB,y.osid=J.osid,y.vm=J.videoMetadata,J.adQueryId&&(y.aqi=J.adQueryId),J.autonav&&(y.autonav="1"),J.playlistId&&(y.list=J.playlistId),J.XV&&(y.ssrt="1"),J.VN&&(y.upt=J.VN));J.J&&(J.embedsRct&&(y.rct=J.embedsRct),J.embedsRctn&&(y.rctn= J.embedsRctn),J.compositeLiveIngestionOffsetToken&&(y.clio=J.compositeLiveIngestionOffsetToken));J.Vk&&(y.host_cpn=J.Vk);return y}; kc6=function(J,y){if(y&&J.W){var v=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),P=new Set(["aqi","autonav","list","ssrt","upt"]);J.W.ns==="3pp"&&(y.ns="3pp");for(var A=g.D(Object.keys(J.W)),T=A.next();!T.done;T=A.next())T=T.value,d.has(T)||v.has(T)||P.has(T)&&!J.W[T]||(y[T]=J.W[T])}}; er=function(J,y){return g.x7(y,J.T).join(",")}; NIH=function(J){J.indexOf("watchtime")!==-1&&g.AW("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:J}})}; EX6=function(J,y){J.attestationResponse&&HiU(J).then(function(v){v=v||{};v.method="POST";v.postParams={atr:J.attestationResponse};J.If?J.cX?Hj().sendAndWrite(y,v):Hj().sendThenWrite(y,v):g.c0(y,v)})}; mE=function(J){g.u.call(this);this.provider=J;this.L="paused";this.V=NaN;this.G=[10,10,10,40];this.K=this.B=0;this.Cy=this.wj=this.AY=this.zK=this.J=!1;this.T=this.W=NaN;this.logger=new g.tA("vss");this.C=new pMR(J)}; y16=function(J){if(!J.J){J.provider.videoData.K6===16623&&g.ev(Error("Playback for EmbedPage"));var y=BM(J,"playback");J.G=Qyx(J);fMv(J.C);y.G=qR(J);J.T>0&&(y.C-=J.T);y.send();if(J.provider.videoData.Dq){y=J.provider.iA;var v=J.provider.videoData,d={html5:"1",video_id:v.videoId,cpn:v.clientPlaybackNonce,ei:v.eventId,ptk:v.Dq,oid:v.I2,ptchn:v.b2,pltype:v.Qz,content_v:EP(v)};v.Gl&&Object.assign(d,{m:v.Gl});y=g.al(y.MF+"ptracking",d);ZiR(J,y)}J.provider.videoData.aG||(wMT(J),J1P(J));J.J=!0;J=J.C;J.C= J.D8();J.Ww=g.yo(J.provider);!(J.J===0&&J.C<5)&&J.C-J.J>2&&(J.J=J.C);J.G=!0}}; Qyx=function(J){var y=J.provider.videoData.qK,v=J.provider.videoData.II,d=[10+y,10,10,40+v-y,40],P,A=(P=J.provider.videoData.getPlayerResponse())==null?void 0:P.playbackTracking,T=A==null?void 0:A.videostatsScheduledFlushWalltimeSeconds;P=A==null?void 0:A.videostatsDefaultFlushIntervalSeconds;if(!(T&&T.length>0&&P))return J.logger.info("Missing valid scheduled pings config "+T+" "+P),d;y=[T[0]+y].concat(g.r(T.slice(1).map(function(M,n){return M-T[n]})),[P+v-y, P]);return y.some(function(M){return M<0})?(J.logger.C(347111855,"Neg vss scheduled pings "+T+" "+P),d):y}; qR=function(J,y){y=y===void 0?NaN:y;var v=g.yo(J.provider);y=isNaN(y)?v:y;y=Math.ceil(y);var d=J.G[J.B];J.B+11E3;!(A.length>1)&&A[0].isEmpty()||M||(T.G=qR(J,P));T.send();J.K++}},(P-v)*1E3); return J.W=P}; rI=function(J){g.LX(J.V);J.V=NaN}; vPH=function(J){J.C.update();J=J.C;J.segments.length&&J.C===J.J||jr(J);var y=J.segments;J.segments=[];return y}; BM=function(J,y){var v=PPv(J.provider);Object.assign(v,{state:J.L});y=new uUj(J.provider.videoData,J.provider.iA,y,v);y.C=J.provider.lA.D8();v=J.provider.videoData.clientPlaybackNonce;y.C=J.provider.lA.rL(v);J.provider.videoData.isLivePlayback||(y.WX=J.provider.lA.getDuration(v));J.provider.videoData.C&&(v=J.provider.videoData.C.T4(y.C))&&(y.zK=v-y.C,J.provider.iA.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&OP(J.provider.videoData)&&(y.C+=J.provider.lA.Vl(),y.zK-=J.provider.lA.Vl()));y.h_=g.yo(J.provider); y.segments=[FU(J.provider)];return y}; dX3=function(J,y){var v=BM(J,"watchtime");A1v(J)&&(v.delayThresholdMet=!0,J.AY=!0);if(J.T>0){for(var d=g.D(y),P=d.next();!P.done;P=d.next())P=P.value,P.startTime-=J.T,P.endTime-=J.T;v.C-=J.T}else v.C=J.C.C;v.segments=y;return v}; $X=function(J,y){var v=T9U(J,!isNaN(J.W));y&&(J.W=NaN);return v}; T9U=function(J,y){var v=dX3(J,vPH(J));!isNaN(J.W)&&y&&(v.K=J.W);return v}; A1v=function(J){var y;if(y=J.provider.videoData.isLoaded()&&J.provider.videoData.aG&&J.J&&!J.AY)y=J.C,y=y.V+y.D8()-y.J>=J.provider.videoData.aG;return!!y}; wMT=function(J){J.provider.videoData.youtubeRemarketingUrl&&!J.wj&&(ZiR(J,J.provider.videoData.youtubeRemarketingUrl),J.wj=!0)}; J1P=function(J){J.provider.videoData.googleRemarketingUrl&&!J.Cy&&(ZiR(J,J.provider.videoData.googleRemarketingUrl),J.Cy=!0)}; lhr=function(J){if(!J.tY()&&J.J){J.L="paused";var y=$X(J);y.isFinal=!0;y.send();J.dispose()}}; M_U=function(J,y){if(!J.tY())if(g.k(y.state,2)||g.k(y.state,512)){if(J.L="paused",g.na(y,2)||g.na(y,512))g.na(y,2)&&(J.C.previouslyEnded=!0),J.J&&(rI(J),$X(J).send(),J.W=NaN)}else if(g.k(y.state,8)){J.L="playing";var v=J.J&&isNaN(J.V)?qR(J):NaN;if(!isNaN(v)&&(Mu(y,64)<0||Mu(y,512)<0)){var d=T9U(J,!1);d.G=v;d.send()}g.na(y,16)&&y.state.seekSource===58&&(J.C.previouslyEnded=!0)}else J.L="paused"}; nPx=function(J,y,v){if(!J.zK){v||(v=BM(J,"atr"));v.attestationResponse=y;try{v.send()}catch(d){if(d.message!=="Unknown Error")throw d;}J.zK=!0}}; ZiR=function(J,y){var v=J.provider.iA;g.xo(J.provider.iA,g.ZL(J.provider.videoData)).then(function(d){var P=J.provider.iA.pageId,A=J.provider.iA.sendVisitorIdHeader?J.provider.videoData.visitorData:void 0,T=J.provider.iA.X("vss_pings_using_networkless")||J.provider.iA.X("kevlar_woffle"),M=J.provider.iA.X("allow_skip_networkless");d=trd(y,v,P,A,d);WEj(y,d,{token:J.provider.videoData.L,vx:J.provider.videoData.A7,mdxEnvironment:J.provider.videoData.mdxEnvironment},v,void 0,T&&!M,!1,!0)})}; s_m=function(){this.endTime=this.startTime=-1;this.W="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.T=0;this.compositeLiveStatusToken=this.J=void 0;this.volume=this.connectionType=0;this.muted=!1;this.C=this.clipId="-";this.previouslyEnded=!1}; oy=function(J,y,v){this.videoData=J;this.iA=y;this.lA=v;this.C=void 0}; g.yo=function(J){return YFx(J)()}; YFx=function(J){if(!J.C){var y=g.nH(function(d){var P=(0,g.GC)();d&&P<=631152E6&&(J.lA.dj("ytnerror",{issue:28799967,value:""+P}),P=(new Date).getTime()+2);return P},J.iA.X("html5_validate_yt_now")),v=y(); J.C=function(){return Math.round(y()-v)/1E3}; J.lA.EA()}return J.C}; PPv=function(J){var y=J.lA.Zz()||{};y.fs=J.lA.ID();y.volume=J.lA.getVolume();y.muted=J.lA.isMuted()?1:0;y.mos=y.muted;y.clipid=J.lA.OC();var v;y.playerheight=((v=J.lA.getPlayerSize())==null?void 0:v.height)||0;var d;y.playerwidth=((d=J.lA.getPlayerSize())==null?void 0:d.width)||0;J=J.videoData;v={};J.T&&(v.fmt=J.T.itag,J.W&&(J.H$?J.W.itag!==J.T.itag:J.W.itag!=J.T.itag)&&(v.afmt=J.W.itag));v.ei=J.eventId;v.list=J.playlistId;v.cpn=J.clientPlaybackNonce;J.videoId&&(v.v=J.videoId);J.aq&&(v.infringe=1); (J.M1?0:J.ER)&&(v.splay=1);(d=CF(J))&&(v.live=d);J.Yo&&(v.sautoplay=1);J.Cr&&(v.autoplay=1);J.iq&&(v.sdetail=J.iq);J.partnerId&&(v.partnerid=J.partnerId);J.osid&&(v.osid=J.osid);J.Xu&&(v.cc=g.Jev(J.Xu));return Object.assign(y,v)}; jy2=function(J){var y=eI3();if(y)return SFv[y]||SFv.other;if(g.Sb(J.iA)){J=navigator.userAgent;if(/[Ww]ireless[)]/.test(J))return 3;if(/[Ww]ired[)]/.test(J))return 30}return 0}; FU=function(J){var y=new s_m,v;y.W=((v=PPv(J).cc)==null?void 0:v.toString())||"-";y.playbackRate=J.lA.getPlaybackRate();v=J.lA.getVisibilityState();v!==0&&(y.visibilityState=v);J.iA.Ky&&(y.T=1);y.J=J.videoData.P7;y.compositeLiveStatusToken=J.videoData.compositeLiveStatusToken;v=J.lA.getAudioTrack();v.N4&&v.N4.id&&v.N4.id!=="und"&&(y.audioId=v.N4.id);y.connectionType=jy2(J);y.volume=J.lA.getVolume();y.muted=J.lA.isMuted();y.clipId=J.lA.OC()||"-";y.C=J.videoData.cP||"-";return y}; g.Ci=function(J,y){g.u.call(this);var v=this;this.provider=J;this.J=new Map;this.R_=new g.xz;this.b6={lzK:function(){return v.qoe}, bbX:function(){return v.C}, HRj:function(){return v.T}}; this.provider.videoData.ZO()&&!this.provider.videoData.Iq&&(this.C=new mE(this.provider),this.C.T=0,g.X(this,this.C),this.qoe=new g.gI(this.provider,y),g.X(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.JR=this.provider.videoData.clientPlaybackNonce)&&this.J.set(this.JR,this.C));if(J.iA.playerCanaryState==="canary"||J.iA.playerCanaryState==="holdback")this.T=new ta(this.provider),g.X(this,this.T)}; V_m=function(J){J.T&&Aam(J.T);J.qoe&&h9m(J.qoe)}; Luv=function(J){if(J.qoe){J=J.qoe;for(var y=J.provider.videoData,v=J.provider.iA,d=g.D(v.H5),P=d.next();!P.done;P=d.next())Gc(J,P.value);if(J.provider.X("html5_enable_qoe_cat_list"))for(d=g.D(y.WH),P=d.next();!P.done;P=d.next())Gc(J,P.value);else y.H5&&Gc(J,J.provider.videoData.H5);y.jH()&&(d=y.C,FV(y)&&Gc(J,"manifestless"),d&&ul(d)&&Gc(J,"live-segment-"+ul(d).toFixed(1)));gC(y)?Gc(J,"sabr"):J.d2(mm(y));if(wC(y)||y.US())y.US()&&Gc(J,"ssa"),Gc(J,"lifa");OP(y)&&Gc(J,"cdm");y.gatewayExperimentGroup&& (d=y.gatewayExperimentGroup,d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?d="spkadtrt":d==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(d="spkadctrl"),Gc(J,d));v.zK!=="yt"&&J.C.set("len",[y.lengthSeconds.toFixed(2)]);y.cotn&&!y7(y)&&J.xs(!0);v.SH()&&(y=Gcd())&&J.dj("cblt",{m:y});if(v.X("html5_log_screen_diagonal")){v=J.dj;var A;y=((A=window.H5vccScreen)==null?0:A.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;v.call(J,"cbltdiag",{v:y})}}}; t_6=function(J,y){J.C&&(J=J.C,y===58?J.C.update():J.J&&(rI(J),$X(J).send(),J.W=NaN))}; WuP=function(J,y){if(g.na(y,1024)||g.na(y,512)||g.na(y,4)){if(J.T){var v=J.T;v.T>=0||(v.C=-1,v.delay.stop())}J.qoe&&(v=J.qoe,v.G||(v.J=-1))}if(J.provider.videoData.enableServerStitchedDai&&J.JR){var d;(d=J.J.get(J.JR))==null||M_U(d,y)}else J.C&&M_U(J.C,y);if(J.qoe){d=J.qoe;v=y.state;var P=g.yo(d.provider),A=d.getPlayerState(v),T=v.seekSource||void 0;if(A!==d.R_){d.AY||P= 10&&d.playTimeSecs<=180&&(d.C.set("qoealert",["1"]),d.aG=!0)),A!=="B"||d.R_!=="PL"&&d.R_!=="PB"||(d.isBuffering=!0),d.T=P);d.R_==="PL"&&(A==="B"||A==="S")||d.provider.iA.SH()?cM(d,P):(d.J9||A!=="PL"||(d.J9=!0,e93(d,P,d.provider.lA.Gz())),FEP(d,P));A==="PL"&&g.zA(d.h_);var M=[A];A==="S"&&T&&M.push("ss."+T);g.Oh(d,P,"vps",M);d.R_=A;d.zK=P;d.T=P;d.W=!0}A=v.Zx;g.k(v,128)&&A&&(A.M_=A.M_||"",rax(d,P,A.errorCode,A.GB,A.M_));(g.k(v,2)||g.k(v,128))&&d.reportStats(P);v.isPlaying()&&!d.G&&(d.J>=0&&d.C.set("user_intent", [d.J.toString()]),d.G=!0);BIH(d)}J.T&&(J=J.T,TI6(J),J.playerState=y.state,J.T>=0&&g.na(y,16)&&J.seekCount++,y.state.isError()&&J.send())}; ahm=function(J){J.T&&J.T.send();if(J.qoe){var y=J.qoe;if(y.W){y.R_==="PL"&&(y.R_="N");var v=g.yo(y.provider);g.Oh(y,v,"vps",[y.R_]);y.G||(y.J>=0&&y.C.set("user_intent",[y.J.toString()]),y.G=!0);y.provider.iA.SH()&&y.dj("finalized",{});y.If=!0;y.reportStats(v)}}if(J.provider.videoData.enableServerStitchedDai)for(y=g.D(J.J.values()),v=y.next();!v.done;v=y.next())lhr(v.value);else J.C&&lhr(J.C);J.dispose()}; xXd=function(J,y){J.C&&nPx(J.C,y)}; OZH=function(J){if(!J.C)return null;var y=BM(J.C,"atr");return function(v){J.C&&nPx(J.C,v,y)}}; gPR=function(J,y,v,d){v.adFormat=v.SC;var P=y.lA;y=new mE(new oy(v,y.iA,{getDuration:function(){return v.lengthSeconds}, getCurrentTime:function(){return P.getCurrentTime()}, D8:function(){return P.D8()}, rL:function(){return P.rL()}, Gz:function(){return P.Gz()}, getPlayerSize:function(){return P.getPlayerSize()}, getAudioTrack:function(){return v.getAudioTrack()}, getPlaybackRate:function(){return P.getPlaybackRate()}, Ye:function(){return P.Ye()}, getVisibilityState:function(){return P.getVisibilityState()}, AR:function(){return P.AR()}, Zz:function(){return P.Zz()}, getVolume:function(){return P.getVolume()}, isMuted:function(){return P.isMuted()}, ID:function(){return P.ID()}, OC:function(){return P.OC()}, getProximaLatencyPreference:function(){return P.getProximaLatencyPreference()}, EA:function(){P.EA()}, dj:function(A,T){P.dj(A,T)}, R9:function(){return P.R9()}, Vl:function(){return P.Vl()}})); y.T=d;g.X(J,y);return y}; DXm=function(){this.sI=0;this.J=this.gt=this.Yv=this.T=NaN;this.C={};this.bandwidthEstimate=NaN}; c1d=function(){this.C=g.H6;this.array=[]}; bZU=function(J,y,v){var d=[];for(y=G6m(J,y);yv)break}return d}; Fu3=function(J,y){var v=[];J=g.D(J.array);for(var d=J.next();!d.done&&!(d=d.value,d.contains(y)&&v.push(d),d.start>y);d=J.next());return v}; j_x=function(J){return J.array.slice(G6m(J,0x7ffffffffffff),J.array.length)}; G6m=function(J,y){J=X_(J.array,function(v){return y-v.start||1}); return J<0?-(J+1):J}; eVx=function(J,y){var v=NaN;J=g.D(J.array);for(var d=J.next();!d.done;d=J.next())if(d=d.value,d.contains(y)&&(isNaN(v)||d.endy&&(isNaN(v)||d.startJ.mediaTime+J.V&&y1)J.W=!0;if((P===void 0?0:P)||isNaN(J.T))J.T=y;if(J.C)y!==J.mediaTime&&(J.C=!1);else if(y>0&&J.mediaTime===y){P=1500;if(J.iA.X("html5_buffer_underrun_transition_fix")){P=g.Zo(J.iA.experiments,"html5_min_playback_advance_for_steady_state_secs");var A=g.Zo(J.iA.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");P=P>0&&A>0&&Math.abs(y-J.T)(d||!J.W?P:400)}J.mediaTime=y;J.J=v;return!1}; pex=function(J,y){this.videoData=J;this.C=y}; UXP=function(J,y,v){return y.ly(v).then(function(){return B0(new pex(y,y.J))},function(d){d instanceof Error&&g.ev(d); var P=tT('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),A=ac('audio/mp4; codecs="mp4a.40.2"'),T=P||A,M=y.isLivePlayback&&!g.aK(J.V,!0);d="fmt.noneavailable";M?d="html5.unsupportedlive":T||(d="html5.missingapi");T=M||!T?2:1;P={buildRej:"1",a:y.BE(),d:!!y.ZE,drm:y.jz(),f18:y.Lj.indexOf("itag=18")>=0,c18:P};y.C&&(y.jz()?(P.f142=!!y.C.C["142"],P.f149=!!y.C.C["149"],P.f279=!!y.C.C["279"]):(P.f133=!!y.C.C["133"],P.f140=!!y.C.C["140"],P.f242=!!y.C.C["242"]),P.cAAC=A,P.cAVC=ac('video/mp4; codecs="avc1.42001E"'), P.cVP9=ac('video/webm; codecs="vp9"'));y.V&&(P.drmsys=y.V.keySystem,A=0,y.V.C&&(A=Object.keys(y.V.C).length),P.drmst=A);return new g.Y6(d,P,T)})}; pi=function(J){this.data=window.Float32Array?new Float32Array(J):Array(J);this.T=this.C=J-1}; fhP=function(J){return J.data[J.C]||0}; iZR=function(J){this.V=J;this.J=this.T=0;this.W=new pi(50)}; fi=function(J,y,v){g.yK.call(this);this.videoData=J;this.experiments=y;this.V=v;this.T=[];this.A1=0;this.J=!0;this.W=!1;this.L=0;v=new usT;J.latencyClass==="ULTRALOW"&&(v.L=!1);J.rj?v.J=3:g.fF(J)&&(v.J=2);J.latencyClass==="NORMAL"&&(v.V=!0);v.zK=gC(J)&&y.BX("html5_refactor_decouple_liveness");g.Zo(y,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.Zo(y,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||J.latencyClass!=="LOW"&&J.latencyClass!=="ULTRALOW"||(v.V=!0);var d= g.Zo(y,"html5_liveness_drift_proxima_override");if(mm(J)!==0&&d){v.C=d;var P;((P=J.C)==null?0:s0r(P))&&v.C--}gC(J)&&y.BX("html5_sabr_parse_live_metadata_playback_boundaries")&&(v.Cy=!0);if(g.fX("trident/")||g.fX("edge/"))P=g.Zo(y,"html5_platform_minimum_readahead_seconds")||3,v.W=Math.max(v.W,P);g.Zo(y,"html5_minimum_readahead_seconds")&&(v.W=g.Zo(y,"html5_minimum_readahead_seconds"));g.Zo(y,"html5_maximum_readahead_seconds")&&(v.K=g.Zo(y,"html5_maximum_readahead_seconds"));y.BX("html5_force_adaptive_readahead")&& (v.L=!0);if(P=g.Zo(y,"html5_liveness_drift_chunk_override"))v.C=P;js(J)&&(v.C=(v.C+1)/5,J.latencyClass==="LOW"&&(v.C*=2));!gC(J)||J.latencyClass!=="ULTRALOW"&&J.latencyClass!=="LOW"||(v.B=g.Zo(y,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,v.G=g.Zo(y,"html5_low_latency_max_allowable_liveness_drift_chunks")||10);this.policy=v;this.G=this.policy.J!==1;this.C=Uh(this,HZ6(this,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J))}; XeH=function(J,y){if(y)return y=J.videoData,y=HZ6(J,isNaN(y.liveChunkReadahead)?3:y.liveChunkReadahead,y),Uh(J,y);if(J.T.length){if(Math.min.apply(null,J.T)>1)return Uh(J,J.C-1);if(J.policy.L)return Uh(J,J.C+1)}return J.C}; N9d=function(J,y){if(!J.T.length)return!1;var v=J.C;J.C=XeH(J,y===void 0?!1:y);if(y=v!==J.C)J.T=[],J.A1=0;return y}; iz=function(J,y){return y>=J.x6()-RVT(J)}; KuH=function(J,y,v){y=iz(J,y);v||y?y&&(J.J=!0):J.J=!1;J.G=J.policy.J===2||J.policy.J===3&&J.J}; zVj=function(J,y){y=iz(J,y);J.W!==y&&J.publish("livestatusshift",y);J.W=y}; RVT=function(J){var y=J.policy.C;J.W||(y=Math.max(y-1,0));return y*uz(J)}; HZ6=function(J,y,v){v.rj&&y--;js(v)&&(y=1);if(mm(v)!==0&&(J=g.Zo(J.experiments,"html5_live_chunk_readahead_proxima_override"))){y=J;var d;((d=v.C)==null?0:s0r(d))&&y++}return y}; uz=function(J){return J.videoData.C?ul(J.videoData.C)||5:5}; Uh=function(J,y){y=Math.max(Math.max(1,Math.ceil(J.policy.W/uz(J))),y);return Math.min(Math.min(8,Math.floor(J.policy.K/uz(J))),y)}; usT=function(){this.W=0;this.K=Infinity;this.L=!0;this.T=this.C=2;this.J=1;this.V=!1;this.G=10;this.Cy=!1;this.B=1;this.zK=!1}; NR=function(J){g.u.call(this);this.lA=J;this.C=0;this.T=null;this.L=this.W=0;this.J={};this.iA=this.lA.Y();this.V=new g.Kx(this.j1,1E3,this);this.ZB=HM(this,"html5_seek_timeout_delay_ms");this.AY=HM(this,"html5_long_rebuffer_threshold_ms");this.XW=HM(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.cX=HM(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Ek=HM(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.J9=HM(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.zK=HM(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.Cy=new XU(2E4);this.WX=HM(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.GK=HM(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.Vk=HM(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.If=HM(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.B=HM(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.K=HM(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.YB=HM(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.G=HM(this,"html5_ads_preroll_lock_timeout_delay_ms","html5_ads_preroll_lock_timeout_cfl");this.rj=new XU(g.Zo(this.iA.experiments,"html5_skip_slow_ad_delay_ms")|| 5E3,!this.iA.X("html5_report_slow_ads_as_error"));this.Ky=new XU(g.Zo(this.iA.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.iA.X("html5_skip_slow_buffering_ad"));this.aG=HM(this,"html5_slow_start_timeout_delay_ms");this.wj=HM(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.X(this,this.V)}; HM=function(J,y,v){v=v===void 0?null:v;var d=d===void 0?0:d;return new XU(g.Zo(J.iA.experiments,y)||d,v?J.iA.X(v):!1)}; k6U=function(J,y){J.C=y}; Ry=function(J,y,v,d,P,A,T,M){y.test(v)?(J.gi(P,y,T),y.L||A()):(!y.T||y.W?v=!1:(v=(0,g.GC)(),d?y.C||(y.C=v):y.C=0,A=!d&&v-y.T>3E4,v=y.C&&v-y.C>1E3||A?y.W=!0:!1),v&&(M=Object.assign({},J.P$(y),M),M.wn=T,M.we=P,M.wsuc=d,J.lA.dj("workaroundReport",M),d&&(y.reset(),J.J[P]=!1)))}; XU=function(J,y){this.L=y===void 0?!1:y;this.C=this.T=this.J=this.startTimestamp=0;this.W=!1;this.V=Math.ceil(J/1E3)}; wex=function(J){g.u.call(this);var y=this;this.lA=J;this.B=this.C=this.loader=this.mediaElement=this.playbackData=null;this.J=0;this.V=this.AY=this.W=null;this.If=!1;this.J9=0;this.Cy=!1;this.timestampOffset=0;this.K=!0;this.GK=0;this.XW=this.f8=!1;this.G=0;this.rj=!1;this.wj=0;this.iA=this.lA.Y();this.videoData=this.lA.getVideoData();this.policy=new EPd;this.zK=new NR(this.lA);this.Ky=this.Vk=this.Ek=this.L=this.T=NaN;this.WX=new g.Kx(function(){Q_v(y,!1)},2E3); this.yl=new g.Kx(function(){Ki(y)}); this.ZB=new g.Kx(function(){ZZr(y,{})}); this.aG=NaN;this.cX=new g.Kx(function(){var v=y.iA.mL;v.C+=1E4/36E5;v.C-v.J>1/6&&(Yod(v),v.J=v.C);y.cX.start()},1E4); g.X(this,this.zK);g.X(this,this.WX);g.X(this,this.ZB);g.X(this,this.yl);g.X(this,this.cX)}; vYH=function(J,y){J.playbackData=y;J.videoData.isLivePlayback&&(J.B=new iZR(function(){a:{if(J.playbackData&&J.playbackData.C.C){if(FV(J.videoData)&&J.loader){var d=J.loader.YO.Po()||0;break a}if(J.videoData.C){d=J.videoData.C.If;break a}}d=0}return d}),J.C=new fi(J.videoData,J.iA.experiments,function(){return J.uJ(!0)})); if(zc(J.lA)){var v;(v=J.videoData.t7)!=null&&v.a7||(y=J2U(J),y.YA?(gC(J.videoData)&&J.Lu(y.YA,y.startSeconds),J.J=y.startSeconds):y.startSeconds>0&&J.seekTo(y.startSeconds,{jn:"seektimeline_startPlayback",seekSource:15}));J.K=!1}else y22(J)||(J.J=J.J||J.videoData.startSeconds||0,J.X("html5_sabr_vod_invalid_start_time_fallback")&&!J.videoData.isLivePlayback&&(y=J.lA.videoData.uJ(),J.J>y&&(J.X("html5_sabr_log_invalid_sabr_current_time")&&J.lA.dj("invalidSabrCmtStart",{rt:J.J,mst:y}),J.J=0)))}; PdP=function(J,y){(J.loader=y)?d6r(J,!0):kX(J)}; A2r=function(J,y){g.zA(J.zK.V);J.X("html5_exponential_memory_for_sticky")&&(y.state.isPlaying()?g.zA(J.cX):J.cX.stop());if(J.mediaElement)if(y.oldState.state===8&&Fg(y.state)&&y.state.isBuffering()){y=J.mediaElement.getCurrentTime();var v=J.mediaElement.DW();var d=J.X("manifestless_post_live_ufph")||J.X("manifestless_post_live")?Km(v,Math.max(y-3.5,0)):Km(v,y-3.5);if(d>=0&&y>v.end(d)-1.1&&d+10?(Eh(J.lA,J.getCurrentTime()+J.videoData.limitedPlaybackDurationInSeconds),J.XW=!0):J.videoData.isLivePlayback&&J.videoData.endSeconds>0&&(Eh(J.lA,J.getCurrentTime()+J.videoData.endSeconds),J.XW=!0))}; lCx=function(J,y){var v=J.getCurrentTime(),d=J.isAtLiveHead(v);if(J.B&&d){var P=J.B;if(P.C&&!(v>=P.T&&v50&&P.T.shift())),P=J.C,KuH(P,v,y===void 0?!0:y),zVj(P,v),y&&Q_v(J,!0));d!==J.f8&&(y=J.getCurrentTime()-J.Ky<=500,v=J.J9>=1E3,y||v||(y=J.lA.M4,y.qoe&&(y=y.qoe,v=g.yo(y.provider), g.Oh(y,v,"lh",[d?"1":"0"])),J.f8=d,J.J9++,J.Ky=J.getCurrentTime()))}; Q_v=function(J,y){if(J.C){var v=J.C;var d=J.getCurrentTime(),P=v.x6();var A=v.policy.T;v.W||(A=Math.max(A-1,0));A*=uz(v);d>=P-A||!v.wd()?v=d0&&Le(J.mediaElement)>0&&(J.T=Qo(J,J.T,!1)),y=J.X("html5_pseudogapless_shorts_seek_to_next_start")&&(y==null?void 0:y.seekSource)===60,!J.mediaElement||!L63(J,y))J.yl.start(750);else if(!isNaN(J.T)&&isFinite(J.T)&&(y=J.Vk-(J.T-J.timestampOffset),!(y===0||Math.abs(y)<.005)))if(y=J.mediaElement.getCurrentTime()-J.T,Math.abs(y)<=J.GK||Math.abs(y)<.005)tjx(J);else{if(J.videoData.As)J.videoData.As= !1;else if(!bV(J.videoData)&&J.T>=J.uJ()-.1){J.T=J.uJ();J.W.resolve(J.uJ());J.lA.D_();return}try{var v=J.T-J.timestampOffset;J.mediaElement.seekTo(v);J.zK.C=v;J.Vk=v;J.J=J.T;J.Cy=!1}catch(d){}}}; L63=function(J,y){y=y===void 0?!1:y;if(!J.mediaElement||J.mediaElement.yw()===0||J.mediaElement.hasError())return!1;var v=J.mediaElement.getCurrentTime()>0;return J.videoData.J&&J.videoData.J.C||J.videoData.isLivePlayback||!J.videoData.jz()?J.T>=0&&!y&&(y=J.mediaElement.F2(),y.length||!v)?zt(y,J.T-J.timestampOffset):v:v}; tjx=function(J){J.W&&(J.W.resolve(J.mediaElement.getCurrentTime()),J.zK.T=null)}; S22=function(J,y){J.V&&(J.V.resolve(y),J.lA.Sg(),J.iA.SH()||Vj3(J))&&(y=J.P$(),y["native"]=""+ +J.Cy,y.otgt=""+(J.T+J.timestampOffset),J.lA.dj("seekEnd",y));kX(J)}; kX=function(J){J.T=NaN;J.L=NaN;J.Vk=NaN;J.W=null;J.AY=null;J.V=null;J.If=!1;J.Cy=!1;J.GK=0;J.WX.stop();J.ZB.stop()}; aCH=function(J,y){var v=J.mediaElement,d=y.type;switch(d){case "seeking":var P=v.getCurrentTime()+J.timestampOffset;if(!J.W||J.Cy&&P!==J.T){J.W=new S1;J.W.then(function(T){S22(J,T)},function(){kX(J)}); if(J.videoData.isAd()){var A;dtv({adCpn:J.videoData.clientPlaybackNonce,contentCpn:(A=J.videoData.EO)!=null?A:""},y.C)}J.Vk=P;k6U(J.zK,v.getCurrentTime());J.seekTo(P,{seekSource:104,jn:"seektimeline_mediaElementEvent"});J.Cy=!0}break;case "seeked":tjx(J);break;case "loadedmetadata":zc(J.lA)||W63(J);Ki(J);break;case "progress":Ki(J);break;case "pause":J.G=J.getCurrentTime()}J.G&&((d==="play"||d==="playing"||d==="timeupdate"||d==="progress")&&J.getCurrentTime()-J.G>10&&(J.X("html5_sky_skip_pause_jump")? J.lA.dj("skipPauseJump",{evt:d,cmt:J.getCurrentTime(),lpt:J.G}):J.seekTo(J.G,{jn:"pauseJump"})),d!=="pause"&&d!=="play"&&d!=="playing"&&d!=="progress"&&(J.G=0))}; x6U=function(J){return(iV(J.videoData)||!!J.videoData.liveUtcStartSeconds)&&(!!J.videoData.liveUtcStartSeconds||y22(J))&&!!J.videoData.C}; y22=function(J){return!!J.videoData.startSeconds&&isFinite(J.videoData.startSeconds)&&J.videoData.startSeconds>1E9}; J2U=function(J){var y=0,v=NaN,d="";if(!J.K)return{startSeconds:y,YA:v,source:d};J.videoData.zK?y=J.videoData.wj:bV(J.videoData)&&(y=Infinity);if(g.fF(J.videoData))return{startSeconds:y,YA:v,source:d};J.videoData.startSeconds?(d="ss",y=J.videoData.startSeconds):J.videoData.QM&&(d="stss",y=J.videoData.QM);J.videoData.liveUtcStartSeconds&&(v=J.videoData.liveUtcStartSeconds);if(isFinite(y)&&(y>J.uJ()||yJ.uJ()||v 0?(d.onesie="0",J.handleError(new g.Y6("html5.missingapi",d)),!1):!0}; e5d=function(J){var y=K5();z9(y,J);return g.H4(y,rh3())}; b12=function(J,y){var v,d,P,A,T,M,n,Y,S,V,L,t,W,c,b,B,q,C,U,N,Jc,E,T2,Mj,lR,Sx;return g.f(function(vP){if(vP.T==1)return y.fetchType="onesie",v=RB2(y,J.getPlayerSize(),J.getVisibilityState()),d=new N$(J,v),g.h(vP,d.fetch(),2);P=vP.C;A={player_response:P};y.loading=!1;T=J.mQ.b7;if(d.uh){M=g.D(d.uh.entries());for(n=M.next();!n.done;n=M.next())Y=n.value,S=g.D(Y),V=S.next().value,L=S.next().value,t=V,W=L,T.C.set(t,W,180),t===y.videoId&&(c=W.HQ(),y.W4=c);T.ML=d}b=g.D(d.Iw.entries());for(B=b.next();!B.done;B= b.next())q=B.value,C=g.D(q),U=C.next().value,N=C.next().value,Jc=U,E=N,T.T.set(Jc,E,180);g.lV(y,A,!0);if(y.loading||AH(y))return vP.return(Promise.resolve());T.C.removeAll();T.T.removeAll();y.W4=[];T2={};Mj="onesie.response";lR=0;y.errorCode?(Mj="auth",T2.ec=y.errorCode,T2.ed=y.errorDetail,T2.es=y.Nc||"",lR=2):(T2.successButUnplayable="1",T2.disposed=""+ +y.tY(),T2.afmts=""+ +/adaptiveFormats/.test(P),T2.cpn=y.clientPlaybackNonce);Sx=new g.Y6(Mj,T2,lR);return vP.return(Promise.reject(Sx))})}; c2x=function(J,y){var v,d,P,A,T,M,n,Y,S,V,L;return g.f(function(t){switch(t.T){case 1:v=y.isAd(),d=!v,P=v?1:3,A=0;case 2:if(!(A0)){t.Qk(5);break}return g.h(t,IJ(5E3),6);case 6:T=new g.H1("Retrying OnePlatform request",{attempt:A}),g.ev(T);case 5:return g.bR(t,7),g.h(t,m6U(J,y),9);case 9:return t.return();case 7:M=g.BP(t);n=VS(M);Y=n.errorCode;S=J.Y();V=S.X("html5_use_network_error_code_enums")?401:"401";d&&Y==="manifest.net.badstatus"&&n.details.rc===V&&(d=!1,A===P-1&&(P+= 1));if(A===P-1)return L=BAx(v,n.details),L.details.backend="op",L.details.originec=Y,t.return(Promise.reject(L));if(Y==="auth"||Y==="manifest.net.retryexhausted")return t.return(Promise.reject(n));J.handleError(n);if(SA(n.severity)){t.Qk(4);break}case 3:A++;t.Qk(2);break;case 4:return t.return(Promise.reject(BAx(v,{backend:"op"})))}})}; m6U=function(J,y){function v(Mj){Mj.readyState===2&&J.I_("ps_c")} var d,P,A,T,M,n,Y,S,V,L,t,W,c,b,B,q,C,U,N,Jc,E,T2;return g.f(function(Mj){switch(Mj.T){case 1:y.fetchType="gp";d=J.Y();P=g.xo(d,g.ZL(y));if(!P.C){A=P.getValue();Mj.Qk(2);break}return g.h(Mj,P.C,3);case 3:A=Mj.C;case 2:return T=A,M=e5d(T),n=RB2(y,J.getPlayerSize(),J.getVisibilityState()),Y=g.kZ(q2d),S=g.ZL(y),V=(0,g.GC)(),L=!1,t="empty",W=0,J.I_("psns"),c={zZ:v},g.h(Mj,g.rQ(M,n,Y,void 0,c),4);case 4:b=Mj.C;J.I_("psnr");if(y.tY())return Mj.return();b?"error"in b&&b.error?(L=!0,t="esf:"+b.error.message, W=b.error.code):b.errorMetadata&&(L=!0,t="its",W=b.errorMetadata.status):L=!0;if(L)return B=0,q=((0,g.GC)()-V).toFixed(),C={},C=d.X("html5_use_network_error_code_enums")?{backend:"op",rc:W,rt:q,reason:t,has_kpt:y.ES?"1":"0",has_mdx_env:y.mdxEnvironment?"1":"0",has_omit_key_flag:g.NP("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:S?"1":"0",has_vvt:y.If?"1":"0",is_mdx:y.isMdxPlayback?"1":"0",mdx_ctrl:y.s5||"",token_eq:S===g.ZL(y)?"1":"0"}:{backend:"op", rc:""+W,rt:q,reason:t,has_kpt:y.ES?"1":"0",has_mdx_env:y.mdxEnvironment?"1":"0",has_omit_key_flag:g.NP("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:d.pageId?"1":"0",has_token:S?"1":"0",has_vvt:y.If?"1":"0",is_mdx:y.isMdxPlayback?"1":"0",mdx_ctrl:y.s5||"",token_eq:S===g.ZL(y)?"1":"0"},U="manifest.net.connect",W===429?(U="auth",B=2):W>200&&(U="manifest.net.badstatus",W===400&&(B=2)),Mj.return(Promise.reject(new g.Y6(U,C,B)));y.loading=!1;g.lV(y,{raw_player_response:b},!0); N=b;g.z3(y.Y())&&N&&N.trackingParams&&KY(N.trackingParams);if(y.errorCode)return Jc={ec:y.errorCode,ed:y.errorDetail,es:y.Nc||""},Mj.return(Promise.reject(new g.Y6("auth",Jc,2)));if(!y.loading&&!AH(y))return E=y.isAd()?"auth":"manifest.net.retryexhausted",T2=y.isAd()?2:1,Mj.return(Promise.reject(new g.Y6(E,{successButUnplayable:"1",hasMedia:g.I9(y)?"1":"0"},T2)));g.G2(Mj)}})}; D6R=function(J,y,v){function d(W){W=VS(W);if(SA(W.severity))return Promise.reject(W);J.handleError(W);return!1} function P(){return!0} var A,T,M,n,Y,S,V,L,t;return g.f(function(W){switch(W.T){case 1:var c=J.Y();J.getPlayerSize();J.getVisibilityState();J.isFullscreen();if(y.partnerId===38&&c.playerStyle==="books")c=y.videoId.indexOf(":"),c=g.al("//play.google.com/books/volumes/"+y.videoId.slice(0,c)+"/content/media",{aid:y.videoId.slice(c+1),sig:y.mY});else if(y.partnerId===30&&c.playerStyle==="docs")c=g.al("https://docs.google.com/get_video_info",{docid:y.videoId,authuser:y.h5,authkey:y.YG,eurl:c.ZE});else if(y.partnerId===33&&c.playerStyle=== "google-live")c=g.al("//google-liveplayer.appspot.com/get_video_info",{key:y.videoId});else throw Error("getVideoInfoUrl for invalid namespace: "+c.zK);A=c;M=(T=y.isAd())?1:3;n=0;case 2:if(!(n0)){W.Qk(5);break}return g.h(W,IJ(5E3),6);case 6:S={playerretry:n,playerretrysrc:v},T||(S.recover="embedded"),Y=dh(A,S);case 5:return g.h(W,r2R(y,Y).then(P,d),7);case 7:if(V=W.C)return W.return();n++;W.Qk(2);break;case 4:L=T?"auth":"manifest.net.retryexhausted";t=T?2:1;if(!T&&Math.random()< 1E-4)try{g.ev(new g.H1("b/152131571",btoa(A)))}catch(b){}return W.return(Promise.reject(new g.Y6(L,{backend:"gvi"},t)))}})}; r2R=function(J,y){function v(b){return d(b.xhr)} function d(b){if(!J.tY()){b=b?b.status:-1;var B=0,q=((0,g.GC)()-S).toFixed();q=P.X("html5_use_network_error_code_enums")?{backend:"gvi",rc:b,rt:q}:{backend:"gvi",rc:""+b,rt:q};var C="manifest.net.connect";b===429?(C="auth",B=2):b>200&&(C="manifest.net.badstatus",b===400&&(B=2));return Promise.reject(new g.Y6(C,q,B))}} var P,A,T,M,n,Y,S,V,L,t,W,c;return g.f(function(b){if(b.T==1){J.fetchType="gvi";P=J.Y();var B={};J.zd&&(B.ytrext=J.zd);(M=g.Vx(B)?void 0:B)?(A={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:M},T=dh(y,{action_display_post:1})):(A={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},T=y);n={};P.sendVisitorIdHeader&&J.visitorData&&(n["X-Goog-Visitor-Id"]=J.visitorData);(Y=Lo(P.experiments,"debug_sherlog_username"))&&(n["X-Youtube-Sherlog-Username"]=Y);Object.keys(n).length> 0&&(A.headers=n);S=(0,g.GC)();return g.h(b,mO(Fq,T,A).then(void 0,v),2)}V=b.C;if(!V||!V.responseText)return b.return(d(V));J.loading=!1;L=wN(V.responseText);g.lV(J,L,!0);if(J.errorCode)return t={ec:J.errorCode,ed:J.errorDetail,es:J.Nc||""},b.return(Promise.reject(new g.Y6("auth",t,2)));if(!J.loading&&!AH(J))return W=J.isAd()?"auth":"manifest.net.retryexhausted",c=J.isAd()?2:1,b.return(Promise.reject(new g.Y6(W,{successButUnplayable:"1"},c)));g.G2(b)})}; BAx=function(J,y){return new g.Y6(J?"auth":"manifest.net.retryexhausted",y,J?2:1)}; ve=function(J,y,v){v=v===void 0?!1:v;var d,P,A,T;g.f(function(M){if(M.T==1){d=J.Y();if(v&&(!g.Sc(d)||z7(y)!=="embedded")||y.uS||z7(y)!=="adunit"&&(g.Sb(d)||y0(d)||g.rm(d)||g.Yo(d)||g.kO(d)||SD(d)==="WEB_CREATOR"))return M.return();P=g.xo(d,g.ZL(y));return P.C?g.h(M,P.C,3):(A=P.getValue(),M.Qk(2))}M.T!=2&&(A=M.C);T=A;return M.return($66(J,y,T))})}; $66=function(J,y,v){var d,P,A,T,M;return g.f(function(n){if(n.T==1){g.bR(n,2);d=e5d(v);var Y=y.Y();g.I4();var S={context:g.V7(y),videoId:y.videoId,racyCheckOk:y.racyCheckOk,contentCheckOk:y.contentCheckOk,autonavState:"STATE_NONE"};z7(y)==="adunit"&&(S.isAdPlayback=!0);Y.embedConfig&&(S.serializedThirdPartyEmbedConfig=Y.embedConfig);Y.kz&&(S.showContentOwnerOnly=!0);y.Lx&&(S.showShortsOnly=!0);g.pR(0,141)&&(S.autonavState=g.pR(0,140)?"STATE_OFF":"STATE_ON");if(g.nh(Y)){var V=g.pR(0,65);V=V!=null? !V:!1;var L=!!g.qW("yt-player-sticky-caption");S.captionsRequested=V&&L}var t;if(Y=(t=Y.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags)S.playbackContext={encryptedHostFlags:Y};P=S;A=g.kZ(oY3);J.I_("wn_s");return g.h(n,g.rQ(d,P,A),4)}if(n.T!=2)return T=n.C,J.I_("wn_r"),!T||"error"in T&&T.error||(M=T,g.z3(y.Y())&&M.trackingParams&&KY(M.trackingParams),g.lV(y,{raw_watch_next_response:T},!1)),g.ex(n,0);g.BP(n);g.G2(n)})}; CdH=function(J){J.I_("vir");J.I_("ps_s");md("vir",void 0,"video_to_ad");var y=jav(J);y.then(function(){J.I_("virc");md("virc",void 0,"video_to_ad");J.I_("ps_r");md("ps_r",void 0,"video_to_ad")},function(){J.I_("virc"); md("virc",void 0,"video_to_ad")}); return y}; g.A1=function(J,y,v,d,P,A,T,M,n,Y){n=n===void 0?new g.Ph(J):n;Y=Y===void 0?!0:Y;g.yK.call(this);var S=this;this.iA=J;this.playerType=y;this.Ql=v;this.Py=d;this.getVisibilityState=A;this.visibility=T;this.mQ=M;this.videoData=n;this.JT=Y;this.logger=new g.tA("VideoPlayer");this.e1=null;this.AE=new YX;this.xz=null;this.dY=!0;this.hY=this.loader=null;this.hQ=[];this.pu=new yi;this.Gg=this.Qa=null;this.jo=new yi;this.bO=null;this.IE=this.aM=!1;this.kQ=NaN;this.RX=!1;this.playerState=new g.xz;this.jk=[]; this.Pv=new g.gf;this.EY=new ehj(this);this.mediaElement=null;this.yK=new g.Kx(this.TpK,15E3,this);this.OU=this.MX=!1;this.KU=NaN;this.Fa=!1;this.JU=0;this.aC=!1;this.lE=NaN;this.Eo=new ZM(new Map([["bufferhealth",function(){return TAv(S.Sn)}], ["bandwidth",function(){return S.Bs()}], ["networkactivity",function(){return S.iA.schedule.AY}], ["livelatency",function(){return S.isAtLiveHead()&&S.isPlaying()?h5H(S):NaN}], ["rawlivelatency",function(){return h5H(S)}]])); this.kN=0;this.loop=!1;this.playbackRate=1;this.Yk=0;this.Sn=new wex(this);this.iP=!1;this.W1=[];this.qd=this.BC=0;this.fl=this.Kc=!1;this.gt=this.Yv=0;this.UL=new g.Kx(this.wh,0,this);this.z7=!1;this.Rk=null;this.AYA=[this.Pv,this.UL,this.yK,this.Eo];this.Pm=this.K3=null;this.ih=function(){var V=S.M4;V.provider.iA.SC||V.provider.lA.getVisibilityState()===3||(V.provider.iA.SC=!0);V.SU();if(V.T){var L=V.T;L.V&&L.C<0&&L.provider.lA.getVisibilityState()!==3&&Aam(L)}V.qoe&&(V=V.qoe,V.ZB&&V.J<0&&V.provider.iA.SC&& h9m(V),V.W&&cM(V));S.loader&&d9(S);S.iA.OT&&!S.videoData.backgroundable&&S.mediaElement&&!S.Fz()&&(S.isBackground()&&S.mediaElement.bV()?(S.dj("bgmobile",{suspend:1}),S.r0(!0,!0)):S.isBackground()||Pe(S)&&S.dj("bgmobile",{resume:1}))}; this.b6={mT:function(V){S.mT(V)}, vvY:function(V){S.e1=V}, YTb:function(){return S.M4}, xi:function(){return S.hY}, QDR:function(){return S.gG}, wwR:function(){return S.AU}, Txy:function(){}, Y:function(){return S.iA}, Pq:function(){return S.mediaElement}, JbA:function(V){S.MV(V)}, sLK:function(){return S.Py}}; this.logger.debug(function(){return"creating, type "+y}); this.X$=new IhT(this.iA);this.eW=new Vo(this.iA,this.Py,this);this.QQ=new g.ha(this,function(V,L){V!==g.Xz("endcr")||g.k(S.playerState,32)||S.D_();P(V,L,S.playerType);if(V===g.Xz("transitiondetector")&&(V=S.loader)!=null&&(V=V.aG)!=null){var t=g.D(rHc(L.id));t.next();t=t.next().value;eRP(V,t,L.start/1E3-V.lA.Vl(),OFd(V.W))}}); g.X(this,this.QQ);g.X(this,this.Sn);IC6(this,n);this.videoData.subscribe("dataupdated",this.JIK,this);this.videoData.subscribe("dataloaded",this.LO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.dj,this);this.videoData.subscribe("ctmpstr",this.jE,this);!this.M4||this.M4.tY();this.M4=new g.Ci(new oy(this.videoData,this.iA,this));FQ2(this.ih);this.visibility.subscribe("visibilitystatechange",this.ih);this.gG=new g.Kx(this.iW,g.Zo(this.iA.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.AU=new g.Kx(this.iW,g.Zo(this.iA.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.qV=new g.QT(this.ulf,350,this);g.X(this,this.qV)}; IC6=function(J,y){if(J.playerType===2||J.iA.P7)y.NJ=!0;var v=Pjx(y.SC,y.Aw,J.iA.W,J.iA.B);v&&(y.adFormat=v);J.playerType===2&&(y.Cr=!0);if(J.isFullscreen()||J.iA.W)v=g.qW("yt-player-autonavstate"),y.autonavState=v||(J.iA.W?2:J.videoData.autonavState);y.endSeconds&&y.endSeconds>y.startSeconds&&Eh(J,y.endSeconds)}; pm6=function(J){var y=J.videoData;CdH(J).then(void 0,function(v){J.videoData!==y||y.tY()||(v=VS(v),v.errorCode==="auth"&&J.videoData.errorDetail?J.q1(v.errorCode,2,unescape(J.videoData.errorReason),sy(v.details),J.videoData.errorDetail,J.videoData.Nc||void 0):J.handleError(v))})}; i1c=function(J){if(!g.k(J.playerState,128))if(J.videoData.isLoaded(),J.logger.debug("finished loading playback data"),J.hQ=g.rV(J.videoData.Cy),g.I9(J.videoData)){J.Ql.tick("bpd_s");T6(J).then(function(){J.Ql.tick("bpd_c");if(!J.tY()){J.aM&&(J.i6(Dq(Dq(J.playerState,512),1)),Pe(J));var d=J.videoData;d.endSeconds&&d.endSeconds>d.startSeconds&&Eh(J,d.endSeconds);J.pu.finished=!0;lP(J,"dataloaded");J.jo.Th()&&U6d(J);PzT(J.eW,J.Gg)}}); J.X("html5_log_media_perf_info")&&J.dj("loudness",{v:J.videoData.xj.toFixed(3)},!0);var y,v=(y=J.mediaElement)==null?void 0:y.sN();if(v&&"disablePictureInPicture"in v&&J.iA.QA)try{v.disablePictureInPicture=J.iA.sY&&!J.videoData.backgroundable}catch(d){g.ev(d)}fCU(J)}else lP(J,"dataloaded")}; T6=function(J){MX(J);J.Gg=null;var y=UXP(J.iA,J.videoData,J.Fz());J.Qa=y;J.Qa.then(function(v){uxd(J,v)},function(v){J.tY()||(v=VS(v),J.visibility.isBackground()?(nZ(J,"vp_none_avail"),J.Qa=null,J.pu.reset()):(J.pu.finished=!0,J.q1(v.errorCode,v.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",sy(v.details))))}); return y}; uxd=function(J,y){if(!J.tY()&&!y.videoData.tY()){J.logger.debug("finished building playback data");J.Gg=y;vYH(J.Sn,J.Gg);if(J.videoData.isLivePlayback){var v=H1d(J.mQ.b7,J.videoData.videoId)||J.loader&&!isNaN(J.loader.wj);v=J.X("html5_onesie_live")&&v;zc(J)||J.videoData.J9>0&&!FV(J.videoData)||v||J.seekTo(J.uJ(),{jn:"videoplayer_playbackData",seekSource:18})}if(J.videoData.J.C){if(CH6(J.videoData)){J.X("html5_sabr_report_missing_url_as_error_terminal")?J.q1("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR", sy({missabrurl:1})):J.handleError(new g.Y6("fmt.missing",{missabrurl:"1"},2));return}J.loader?g.ev(Error("Duplicated Loader")):(v=g.Zo(J.iA.experiments,"html5_onesie_defer_content_loader_ms"))&&J.aB()&&H1d(J.mQ.b7,J.videoData.q7)?g.S3(function(){J.tY()||J.loader||Xm3(J)},v):Xm3(J)}else!J.videoData.J.C&&y7(J.videoData)&&J.rB(new LQ(J.videoData.videoId||"",4)); J.dS();Ebm(y).then(function(){var d={};J.S5(d);J.iA.SH()&&J.X("html5_log_media_perf_info")&&J.dj("av1Info",d);d9(J)})}}; U6d=function(J){J.tY();J.logger.debug("try finish readying playback");if(J.jo.finished)J.logger.debug("already finished readying");else if(J.pu.finished)if(g.k(J.playerState,128))J.logger.debug("cannot finish readying because of error");else if(J.hQ.length)J.logger.debug(function(){return"cannot finish readying because of pending preroll: "+J.hQ}); else if(J.QQ.started||B92(J.QQ),J.Zp())J.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{J.loader&&(J.IE=osc(J.loader.timing));J.jo.finished||(J.jo.finished=!0);var y=J.X("html5_onesie_live")&&J.loader&&!isNaN(J.loader.wj);!J.videoData.isLivePlayback||J.videoData.J9>0&&!FV(J.videoData)||y||zc(J)||(J.logger.debug("seek to head for live"),J.seekTo(Infinity,{jn:"videoplayer_readying",seekSource:18}),J.isBackground()&&(J.OU=!0));Luv(J.M4);J.logger.debug("finished readying playback"); J.publish("playbackready");jq("pl_c",J.Ql.timerName)||(J.Ql.tick("pl_c"),md("pl_c",void 0,"video_to_ad"));jq("pbr",J.Ql.timerName)||(J.Ql.tick("pbr"),md("pbr",void 0,"video_to_ad"))}else J.logger.debug("playback data not loaded")}; Eh=function(J,y){J.xz&&NAm(J);J.xz=new g.uI(y*1E3,0x7ffffffffffff);J.xz.namespace="endcr";J.addCueRange(J.xz)}; NAm=function(J){J.removeCueRange(J.xz);J.xz=null}; R5H=function(J,y,v,d,P){var A=J.M4,T=J.videoData;T.T=v;var M=g.sF(J);v=new fbU(T,v,y,M?M.itag:"",d);J.iA.experiments.BX("html5_refactor_sabr_video_format_selection_logging")?(v.videoId=P,J.Pm=v):A.qoe&&b53(A.qoe,v);P=J.eW;P.T=0;P.C=0;J.publish("internalvideoformatchange",T,y==="m")}; g.sF=function(J){var y=YP(J);return bk(y)||!J.Gg?null:g.On(J.Gg.C.videoInfos,function(v){return y.W(v)})}; YP=function(J){if(J.Gg){var y=J.eW;var v=J.Gg;J=J.Xf();var d=HP2(y);if(bk(d)){if(d=iPT(y,v).compose(KQm(y,v)).compose(khT(y,v)).compose(vXH(y,v.videoData)).compose(dRH(y,v.videoData,v)).compose(yaH(y,v)).compose(NL3(y,v)),bk(J)||y.X("html5_apply_pbr_cap_for_drm"))d=d.compose(Rh3(y,v))}else y.X("html5_perf_cap_override_sticky")&&(d=d.compose(yaH(y,v))),y.X("html5_ustreamer_cap_override_sticky")&&(d=d.compose(Rh3(y,v)));d=d.compose(NL3(y,v));y=v.videoData.YL.compose(d).compose(v.videoData.HP).compose(J)}else y= dC;return y}; Zh3=function(J){var y=J.eW;J=J.videoData;var v=vXH(y,J);y.X("html5_disable_client_autonav_cap_for_onesie")||v.compose(dRH(y,J));return v}; d9=function(J){if(J.videoData.J&&J.videoData.J.C){var y=YP(J);J.loader&&JQv(J.loader,y)}}; K66=function(J){var y;return!!(J.X("html5_native_audio_track_switching")&&g.tW&&((y=J.videoData.T)==null?0:Ic(y)))}; z5m=function(J){if(!K66(J))return!1;var y;J=(y=J.mediaElement)==null?void 0:y.audioTracks();return!!(J&&J.length>1)}; EYv=function(J){var y=kyx(J);if(y)return J.videoData.getAvailableAudioTracks().find(function(v){return v.N4.getName()===y})}; kyx=function(J){var y;if(J=(y=J.mediaElement)==null?void 0:y.audioTracks())for(y=0;y0&&(y.ER=v.Ku));y.vK=v.JB;y.Lp=Qp(d,{},v.J||void 0,x9(v));y.XW=a9(v)&&(g.rm(d)||g.Yo(d));gC(v)&&(y.V=!0,y.Cb=d.X("html5_estimate_live_partial_slice_duration"),y.QM=!0,d.X("html5_sabr_report_partial_segment_estimated_duration")&& (y.FO=!0),y.C=!0,y.yb=d.X("html5_sabr_enable_live_clock_offset"),y.t7=d.X("html5_disable_client_resume_policy_for_sabr"),y.XZ=d.X("html5_trigger_loader_when_idle_network"),y.Oc=d.X("html5_sabr_parse_live_metadata_playback_boundaries"),y.WH=d.X("html5_consume_onesie_next_request_policy_for_sabr"),y.KP=d.X("html5_sabr_report_next_ad_break_time"),y.qj=d.X("html5_log_high_res_buffer_timeline")&&d.SH(),y.e3=d.X("html5_remove_stuck_slices_beyond_max_buffer_limits"),y.jf=d.X("html5_gapless_sabr_btl_last_slice")&& Wh(v),y.YL=d.X("html5_reset_last_appended_slice_on_seek")&&Wh(v),FV(v)?(y.PY=!0,y.j6=d.X("html5_estimate_partial_segment_duration"),y.cH=d.X("html5_disable_variability_tracker_for_live"),y.ZB=!0,d.X("html5_simplified_backup_timeout_sabr_live")&&(y.qk=!0,y.Bo=y.l0)):y.ON=d.X("html5_probe_request_on_sabr_request_progress"),y.Ro=d.X("html5_serve_start_seconds_seek_for_post_live_sabr"),y.iN=d.X("html5_flush_index_on_updated_timestamp_offset"),y.K=gC(v),y.aq=d.X("html5_ignore_partial_segment_from_live_readahead"), d.X("html5_include_partial_segment_for_jumbo_ll")&&js(v)&&(y.aq=!1),y.Oa=d.X("html5_use_non_active_broadcast_for_post_live"),y.If=d.X("html5_use_centralized_player_time"),y.Ny=d.X("html5_consume_onesie_sabr_seek"),y.Cy=d.X("html5_enable_sabr_seek_loader_refactor"),y.II=d.X("html5_update_segment_start_time_from_media_header"),v.enableServerStitchedDai&&(y.T=!0,y.Er=d.X("html5_reset_server_stitch_state_for_non_sabr_seek"),y.Dq=d.X("html5_remove_ssdai_append_pause")&&!v.US(),y.EH=d.X("html5_ssdai_log_ssevt_in_loader")|| d.X("html5_ssdai_log_ssevt_in_loader_200ms")||d.X("html5_ssdai_log_ssevt_in_loader_timers")||d.X("html5_ssdai_log_ssevt_in_loader_cuerange"),d.X("html5_ssdai_log_ssevt_in_loader_timers")?y.rj=1:d.X("html5_ssdai_log_ssevt_in_loader_200ms")?y.rj=3:d.X("html5_ssdai_log_ssevt_in_loader_cuerange")&&(y.rj=0)),y.OT=d.SH()||v.US());y.xj=g.$Gv(v);Us(d.V,fC.BITRATE)&&(y.FW=NaN);if(M=g.Zo(d.experiments,"html5_request_size_max_kb"))y.Ek=M*1024;d.V.J?y.Fs="; "+fC.EXPERIMENTAL.name+"=allowed":d.X("html5_enable_cobalt_tunnel_mode")&& g.uQ()&&(M=fC.TUNNELMODE,y.Fs="; "+M.name+"="+M.valid);v=v.serverPlaybackStartConfig;(v==null?0:v.enable)&&(v==null?0:v.playbackStartPolicy)&&(y.yH=!0,R3(y,v.playbackStartPolicy,2));v=QaR(J);J.AE.removeAll();a:{M=J.mQ.b7;if(d=J.videoData.videoId)if(P=M.C.get(d)){M.C.remove(d);M=P;break a}M=void 0}J.loader=new g.Ja(J,J.iA.schedule,y,J.videoData.C,J.videoData.J,YP(J),v,J.videoData.enableServerStitchedDai,M,J.videoData.K);y=J.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&J.videoData.isLivePlayback&& J.aB()?!0:J.aM&&g.Sb(J.iA)&&J.videoData.isLivePlayback;J.loader.initialize(J.getCurrentTime(),YP(J),y);J.videoData.probeUrl&&(J.loader.YB=J.videoData.probeUrl);if(J.hQ.length||J.aM)J.videoData.cotn||S_(J,!1);PdP(J.Sn,J.loader);J.Rk&&(cQ6(J.loader,new g.vM(J.Rk)),J.dj("sdai",{sdl:1}));g.Pp(J.videoData)&&(J=J.loader,J.policy.Kp=J.policy.vt)}; MX=function(J){J.loader&&(J.loader.dispose(),J.loader=null,PdP(J.Sn,null));J.q$()?Z1H(J):J.GW()}; Z1H=function(J){if(J.hY)if(J.logger.debug("release media source"),J.EC(),J.hY.V)try{J.iA.SH()&&J.dj("rms",{l:"vprms",sr:J.q$(),rs:sZ(J.hY)});J.hY.clear();var y;(y=J.mediaElement)!=null&&(y.T=J.hY);J.hY=null}catch(v){y=new g.H1("Error while clearing Media Source in VideoPlayer: "+v.name+", "+v.message),y=VS(y),J.handleError(y),J.GW()}else J.GW()}; wmr=function(J,y){y=y===void 0?!1:y;if(J.hY)return J.hY.J;J.logger.debug("update media source");a:{y=y===void 0?!1:y;try{g.uQ()&&J.videoData.iT()&&u9x(J.mediaElement);var v=J.mediaElement.xi(J.FV(),J.Ps())}catch(P){if($$m(J.EY,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",P);J.q1("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}J.vy(v,!1,!1,y)}var d;return((d=J.xi())==null?void 0:d.J)||null}; JY2=function(J,y){y=y===void 0?!1:y;if(J.loader){J.videoData.enableServerStitchedDai&&qHv(J.loader);var v=J.getCurrentTime()-J.Vl();J.loader.seek(v,{gT:y}).TY(function(){})}else Xm3(J)}; vlr=function(J,y,v,d){v=v===void 0?!1:v;d=d===void 0?!1:d;if(J.hY&&(!y||J.hY===y)){J.logger.debug("media source opened");var P=J.getDuration();!P&&FV(J.videoData)&&(P=25200);if(J.hY.isView){var A=P;J.logger.debug(function(){return"Set media source duration to "+A+", video duration "+P}); A>J.hY.getDuration()&&yYv(J,A)}else yYv(J,P);Q92(J.loader,J.hY,v,d);J.publish("mediasourceattached")}}; yYv=function(J,y){if(J.hY){J.hY.i8(y);var v;(v=J.loader)!=null&&v.policy.If&&(v.L=y)}}; vtd=function(J,y){R5H(J,y.reason,y.C.info,y.token,y.videoId)}; lP=function(J,y){J.publish("internalvideodatachange",y===void 0?"dataupdated":y,J.videoData)}; d1m=function(J){for(var y=g.D("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),v=y.next();!v.done;v=y.next())J.Pv.Z(J.mediaElement,v.value,J.MV,J);J.iA.yA&&J.mediaElement.V4()&&(J.Pv.Z(J.mediaElement,"webkitplaybacktargetavailabilitychanged",J.IBx,J),J.Pv.Z(J.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",J.QfB,J))}; AYR=function(J){g.tN(J.kQ);PCm(J)||(J.kQ=g.V2(function(){return PCm(J)},100))}; PCm=function(J){var y=J.mediaElement;y&&J.MX&&!J.videoData.AY&&!jq("vfp",J.Ql.timerName)&&y.yw()>=2&&!y.isEnded()&&QS(y.DW())&&J.Ql.tick("vfp");return(y=J.mediaElement)&&!J.videoData.AY&&y.getDuration()>0&&(y.isPaused()&&y.yw()>=2&&QS(y.DW())&&(jq("pbp",J.Ql.timerName)||J.Ql.tick("pbp"),!J.videoData.u1||J.RX||y.isSeeking()||(J.RX=!0,J.publish("onPlaybackPauseAtStart"))),y=y.getCurrentTime(),Iy(J.X$,y))?(J.YN(),!0):!1}; lO3=function(J){J.M4.Xz();if(bV(J.videoData)&&Date.now()>J.Yk+6283){if(!(!J.isAtLiveHead()||J.videoData.C&&UG(J.videoData.C))){var y=J.M4;if(y.qoe){y=y.qoe;var v=y.provider.lA.Gz(),d=g.yo(y.provider);e93(y,d,v);v=v.J;isNaN(v)||g.Oh(y,d,"e2el",[v.toFixed(3)])}}J.X("html5_alc_live_log_rawlat")?(y=J.videoData,y=g.sA(y.Y())?!0:g.lB(y.Y())?y.drmProduct==="6":!1):y=g.sA(J.iA);d=J.X("html5_always_log_rawlat");(y||d)&&J.dj("rawlat",{l:J1(J.Eo,"rawlivelatency").toFixed(3)});J.Yk=Date.now()}J.videoData.T&& Ic(J.videoData.T)&&(y=J.Ue())&&y.videoHeight!==J.qd&&(J.qd=y.videoHeight,R5H(J,"a",T_d(J,J.videoData.ZB)))}; T_d=function(J,y){if(y.C.video.quality==="auto"&&Ic(y.getInfo())&&J.videoData.h_)for(var v=g.D(J.videoData.h_),d=v.next();!d.done;d=v.next())if(d=d.value,d.getHeight()===J.qd&&d.C.video.quality!=="auto")return d.getInfo();return y.getInfo()}; h5H=function(J){if(!bV(J.videoData))return NaN;var y=0;J.loader&&J.videoData.C&&(y=FV(J.videoData)?J.loader.YO.Po()||0:J.videoData.C.If);return(0,g.GC)()/1E3-J.T4()-y}; nlv=function(J){J.mediaElement&&J.mediaElement.Fz()&&(J.lE=(0,g.GC)());J.iA.wS?g.S3(function(){MEU(J)},0):MEU(J)}; MEU=function(J){var y;if((y=J.hY)==null||!y.Ol()){if(J.mediaElement)try{J.bO=J.mediaElement.playVideo()}catch(d){nZ(J,"err."+d)}if(J.bO){var v=J.bO;v.then(void 0,function(d){J.logger.debug(function(){return"playMediaElement failed: "+d}); if(!g.k(J.playerState,4)&&!g.k(J.playerState,256)&&J.bO===v)if(d&&d.name==="AbortError"&&d.message&&d.message.includes("load"))J.logger.debug(function(){return"ignore play media element failure: "+d.message}); else{var P="promise";d&&d.name&&(P+=";m."+d.name);nZ(J,P);J.iP=!0;J.videoData.M1=!0}})}}}; nZ=function(J,y){g.k(J.playerState,128)||(J.i6(GK(J.playerState,1028,9)),J.dj("dompaused",{r:y}),J.publish("onAutoplayBlocked"))}; Pe=function(J,y){y=y===void 0?!1:y;if(!J.mediaElement||!J.videoData.J)return!1;var v=y;v=v===void 0?!1:v;var d=null;var P;if((P=J.videoData.J)==null?0:P.C){d=wmr(J,v);var A;(A=J.loader)==null||A.resume()}else MX(J),J.videoData.ZB&&(d=J.videoData.ZB.nQ());P=J.mediaElement.bV();v=!1;P&&P.equals(d)||(stR(J,d),v=!0);g.k(J.playerState,2)||(d=J.Sn,y=y===void 0?!1:y,d.V||!(d.J>0)||d.mediaElement&&d.mediaElement.getCurrentTime()>0||(y={jn:"seektimeline_resumeTime",gT:y},d.videoData.AY||(y.seekSource=15), d.seekTo(d.J,y)));a:{y=v;if(gC(J.videoData)){if(!J.videoData.jz())break a}else if(!g.$9(J.videoData))break a;if(J.mediaElement)if((d=J.videoData.V)&&J.mediaElement.V4()){P=J.mediaElement.sN();if(J.e1)if(P!==J.e1.element)Vi(J);else if(y&&d.flavor==="fairplay"&&!H0())Vi(J);else break a;if(J.X("html5_report_error_for_unsupported_tvos_widevine")&&H0()&&d.flavor==="widevine")y=J.X("html5_log_fmt_unplaybable_trigger")?"trg.unspttvoswidevine":"drm.unspttvoswidevine",J.q1("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK", y);else{J.e1=new WQv(P,J.videoData,J.iA);J.e1.subscribe("licenseerror",J.PS,J);J.e1.subscribe("qualitychange",J.d4W,J);J.e1.subscribe("heartbeatparams",J.J3,J);J.e1.subscribe("keystatuseschange",J.mT,J);J.e1.subscribe("ctmp",J.dj,J);y=g.D(J.AE.keys);for(d=y.next();!d.done;d=y.next())d=J.AE.get(d.value),J.e1.ZX(d);J.X("html5_eme_loader_sync")||J.AE.removeAll()}}else y=J.X("html5_log_fmt_unplaybable_trigger")?"trg.updatedrm":"drm.1",J.q1("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",y)}return v}; stR=function(J,y){J.Ql.tick("vta");md("vta",void 0,"video_to_ad");J.getCurrentTime()>0&&MjP(J.Sn,J.getCurrentTime());J.mediaElement.activate(y);J.hY&&Zu(4);!J.videoData.AY&&J.playerState.isOrWillBePlaying()&&J.yK.start();if(K66(J)){var v;if(y=(v=J.mediaElement)==null?void 0:v.audioTracks())y.onchange=function(){J.publish("internalaudioformatchange",J.videoData,!0)}}}; Vi=function(J){J.e1&&(J.e1.dispose(),J.e1=null)}; YMR=function(J){var y=y===void 0?!1:y;J.logger.debug("reattachVideoSource");J.mediaElement&&(J.hY?(Vi(J),J.GW(),wmr(J,y)):(J.videoData.ZB&&J.videoData.ZB.ZL(),J.mediaElement.stopVideo()),J.playVideo())}; SMT=function(J,y){J.iA.X("html5_log_rebuffer_reason")&&(y={r:y,lact:OO()},J.mediaElement&&(y.bh=t8(J.mediaElement)),J.dj("bufreason",y))}; VEm=function(J,y){if(J.iA.SH()&&J.mediaElement){var v=J.mediaElement.P$();v.omt=(J.mediaElement.getCurrentTime()+J.Vl()).toFixed(3);v.ps=J.playerState.state.toString(16);v.rt=(g.yo(J.M4.provider)*1E3).toFixed();v.e=y;J.W1[J.BC++%5]=v}try{if(y==="timeupdate"||y==="progress")return}catch(d){}J.logger.debug(function(){return"video element event "+y})}; LRm=function(J){if(J.iA.SH()){J.W1.sort(function(d,P){return+d.rt-+P.rt}); for(var y=g.D(J.W1),v=y.next();!v.done;v=y.next())v=v.value,J.dj("vpe",Object.assign({t:v.rt},v));J.W1=[];J.BC=0}}; tER=function(J){if(g.fX("cobalt")&&g.fX("nintendo switch")){var y=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;J.dj("nxdock",{d:y})}}; S_=function(J,y){var v;(v=J.loader)==null||RRr(v,y)}; fCU=function(J){lf(J.videoData,"html5_set_debugging_opt_in")&&(J=g.I4(),g.pR(0,183)||(fR(183,!0),J.save()))}; rQx=function(J,y){J.mQ.bv()||(J.dj("sgap",{f:y}),J.mQ.clearQueue(!1,y==="pe"))}; zc=function(J){return J.X("html5_disable_video_player_initiated_seeks")&&gC(J.videoData)}; WRR=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);tQ(this.api,"isLifaAdPlaying",function(){return y.api.isLifaAdPlaying()}); this.events.Z(J,"serverstitchedvideochange",function(){var v;(v=y.api.getVideoData())!=null&&v.US()&&(y.api.isLifaAdPlaying()?(y.playbackRate=y.api.getPlaybackRate(),y.api.setPlaybackRate(1)):y.api.setPlaybackRate(y.playbackRate))}); this.playbackRate=1}; LZ=function(J){Sk.call(this,"En bucle",g.Om.lm);this.S=J;var y=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:rXd();this.setIcon(y);this.subscribe("select",this.T,this);J.createClientVe(this.element,this,28661);this.Z(J,"settingsMenuVisibilityChanged",this.C);this.listen("click",this.logClick);this.Z(J,"onLoopChange",this.onLoopChange);VP(this,J.getLoopVideo());J.fN().Wq(this)}; aOv=function(J){A_.call(this,J);var y=this;J.addEventListener("settingsMenuInitialized",function(){y.menuItem||(y.menuItem=new LZ(y.api),g.X(y,y.menuItem))}); J.addEventListener("videodatachange",function(v,d){v=y.api.getPresentingPlayerType()===2;var P;(P=y.menuItem)==null||P.eH(!d.isLivePlayback&&!v)})}; x1x=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);tQ(this.api,"seekToChapterWithAnimation",function(v){y.seekToChapterWithAnimation(v)}); tQ(this.api,"seekToTimeWithAnimation",function(v,d){y.seekToTimeWithAnimation(v,d)}); tQ(this.api,"renderChapterSeekingAnimation",function(v,d,P){y.api.renderChapterSeekingAnimation(v,d,P)}); tQ(this.api,"setMacroMarkers",function(v){y.setMacroMarkers(J,v)}); tQ(this.api,"changeMarkerVisibility",function(v,d,P){y.changeMarkerVisibility(v,d,P)}); tQ(this.api,"isSameMarkerTypeVisible",function(v){return y.isSameMarkerTypeVisible(v)})}; OEr=function(J,y,v){var d=J.api.getCurrentTime()*1E30&&P>0&&(v.width+=P,g.Ni(y.element,"width",v.width+"px")));J.size=v}}; g.qX=function(J,y){var v=J.C[J.C.length-1];v!==y&&(J.C.push(y),RDH(J,v,y))}; g.r9=function(J){if(!(J.C.length<=1)){var y=J.C.pop(),v=J.C[0];J.C=[v];RDH(J,y,v,!0)}}; RDH=function(J,y,v,d){KRd(J);y&&(y.unsubscribe("size-change",J.gy,J),y.unsubscribe("back",J.Jv,J));v.subscribe("size-change",J.gy,J);v.subscribe("back",J.Jv,J);if(J.zI){g.d7(v.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");v.yk(J.element);v.focus();J.element.scrollLeft=0;J.element.scrollTop=0;var P=J.size;N_6(J);g.yG(J.element,P);J.L=new g.Kx(function(){zDP(J,y,v,d)},20,J); J.L.start()}else v.yk(J.element),y&&y.detach()}; zDP=function(J,y,v,d){J.L.dispose();J.L=null;g.d7(J.element,"ytp-popup-animating");d?(g.d7(y.element,"ytp-panel-animate-forward"),g.AZ(v.element,"ytp-panel-animate-back")):(g.d7(y.element,"ytp-panel-animate-back"),g.AZ(v.element,"ytp-panel-animate-forward"));g.yG(J.element,J.size);J.G=new g.Kx(function(){g.AZ(J.element,"ytp-popup-animating");y.detach();g.TY(y.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);J.G.dispose();J.G=null},250,J); J.G.start()}; KRd=function(J){J.L&&g.kv(J.L);J.G&&g.kv(J.G)}; $P=function(J){g.Be.call(this,J,"ytp-shopping-product-menu");this.zg=new g.e_(this.S);g.X(this,this.zg);this.hide();g.qX(this,this.zg);g.Hp(this.S,this.element,4)}; Elc=function(J,y,v){var d,P=y==null?void 0:(d=y.text)==null?void 0:d.simpleText;P&&(v=k1c(J,v,P,y==null?void 0:y.icon,y==null?void 0:y.secondaryIcon),y.navigationEndpoint&&v.listen("click",function(){J.S.Rf("innertubeCommand",y.navigationEndpoint);J.hide()},J))}; Qt2=function(J,y,v){var d,P=y==null?void 0:(d=y.text)==null?void 0:d.simpleText;P&&k1c(J,v,P,y==null?void 0:y.icon).listen("click",function(){var A;(y==null?void 0:(A=y.icon)==null?void 0:A.iconType)==="HIDE"?J.S.publish("featuredproductdismissed"):y.serviceEndpoint&&J.S.Rf("innertubeCommand",y.serviceEndpoint);J.hide()},J)}; k1c=function(J,y,v,d,P){y=new g.yP(g.vy({},[],!1,!!P),y,v);P&&y.updateValue("secondaryIcon",ZEv(P));y.setIcon(ZEv(d));g.X(J,y);J.zg.Wq(y,!0);return y}; ZEv=function(J){if(!J)return null;switch(J.iconType){case "ACCOUNT_CIRCLE":return{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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 xWj();case "HIDE":return{j:"svg",U:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"g",D:[{j:"path",U:{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 Ox()}}; o_=function(J){Fs.call(this,J,!1,!0);this.isCounterfactual=this.T=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.B=!0;this.overflowButton=new g.z({j:"button",kB:["ytp-featured-product-overflow-icon","ytp-button"],U:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.z({j:"img",N:"ytp-suggested-action-badge-img",U:{src:"{{url}}"}}); this.thumbnailImage.hide();g.X(this,this.thumbnailImage);this.thumbnailIcon=new g.z({j:"div",N:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.X(this,this.thumbnailIcon);this.banner=new g.z({j:"a",N:"ytp-suggested-action-container",D:[this.thumbnailImage,this.thumbnailIcon,{j:"div",N:"ytp-suggested-action-details",D:[{j:"text",N:"ytp-suggested-action-title",TK:"{{title}}"},{j:"text",N:"ytp-suggested-action-subtitle",TK:"{{subtitle}}"},{j:"text",N:"ytp-suggested-action-metadata-text", TK:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.X(this,this.banner);this.banner.yk(this.J.element);this.Z(this.S,"videodatachange",this.onVideoDataChange);this.Z(this.S,g.Xz("suggested_action_view_model"),this.rYj);this.Z(this.S,g.NA("suggested_action_view_model"),this.FRx);this.Z(this.overflowButton.element,"click",this.qY);this.Z(J,"featuredproductdismissed",this.Ed);this.S.createServerVe(this.banner.element,this.banner,!0)}; w7r=function(J){J.isInitialized&&(J.enabled=J.isVisible,J.Cy=J.isVisible,bP(J),J.Jh(),J.thumbnailImage.eH(J.isVisible),J.shouldHideDismissButton||J.dismissButton.eH(J.isVisible),J.shouldShowOverflowButton&&J.overflowButton.eH(J.isVisible))}; CZ=function(){o_.apply(this,arguments)}; JKH=function(J){A_.call(this,J);this.C=new CZ(this.api);g.X(this,this.C);g.Hp(this.api,this.C.element,4)}; h1=function(J){A_.call(this,J);var y=this;this.C=!0;var v=new g.gf(J);g.X(this,v);v.Z(J,"internalaudioformatchange",function(d,P){yKd(y,d,P)}); v.Z(J,"videoplayerreset",function(){vrT(y)}); v.Z(J,"videodatachange",function(d,P){y.onVideoDataChange(d,P)})}; yKd=function(J,y,v){if(v){var d="";dnT(J,y)&&(d=y,J.api.Y().YB=y);if(d&&Pud(J,d)){S8j(J.api,d);var P;mB(Or(J.api.Y(),(P=J.api.getVideoData())==null?void 0:g.ZL(P)),function(A){AKr(J,d,A)})}}}; vrT=function(J){var y;if((y=WW())==null?0:y.size){var v;mB(Or(J.api.Y(),(v=J.api.getVideoData())==null?void 0:g.ZL(v)),function(d){(d=TdH(d))&&Pud(J,d)&&(J.api.Y().YB=d)})}}; AKr=function(J,y,v){TdH(v)!==y&&(lBr([{settingItemId:I_(v),settingOptionValue:{stringValue:y}}]),mB(J.X1(),function(d){W_d(d,I_(v),{stringValue:y})}))}; ML2=function(J,y){BR(mB(mB(J.X1(),function(v){return L_j(v,[I_(y)])}),function(v){if(v){v=g.D(v); for(var d=v.next();!d.done;d=v.next()){var P=d.value;d=P.key;P=P.value;d&&P&&(lBr([{settingItemId:d,settingOptionValue:P}]),vrT(J))}}}),function(){J.C=!0})}; dnT=function(J,y){J=J.api.getAvailableAudioTracks();J=g.D(J);for(var v=J.next();!v.done;v=J.next())if(v=v.value,v.getLanguageInfo().getId()===y)return v;return null}; TdH=function(J){J=I_(J);var y=WW();J=y?y.get(J):void 0;return J&&J.stringValue?J.stringValue:""}; I_=function(J){var y=(484).toString();J&&(y=(483).toString());return y}; Pud=function(J,y){var v;return y.split(".")[0]!==""&&((v=J.api.getVideoData())==null?void 0:!JQ(v))}; lBr=function(J){var y=WW();y||(y=new Map);J=g.D(J);for(var v=J.next();!v.done;v=J.next())v=v.value,y.set(v.settingItemId,v.settingOptionValue);y=JSON.stringify(Object.fromEntries(y));g.B1("yt-player-user-settings",y,2592E3)}; g.pZ=function(J,y,v,d,P,A,T){g.yP.call(this,g.vy({"aria-haspopup":"true"}),y,J);this.A9=d;this.B=!1;this.J=null;this.options={};this.T=new g.e_(v,void 0,J,P,A,T);g.X(this,this.T);this.listen("keydown",this.IK);this.listen("click",this.open)}; nrd=function(J){if(J.J){var y=J.options[J.J];y.element.getAttribute("aria-checked");y.element.setAttribute("aria-checked","false");J.J=null}}; sDc=function(J,y){g.pZ.call(this,"Temporizador de apagado",g.Om.SLEEP_TIMER,J,y);this.S=J;this.K={};this.L=this.YP("Off");this.G=this.C="";J.X("web_settings_menu_icons")&&(y=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(y)); this.W=new g.z({j:"div",kB:["ytp-menuitem-label-wrapper"],D:[{j:"div",TK:"Fin del video"},{j:"div",kB:["ytp-menuitem-sublabel"],TK:"{{content}}"}]});g.X(this,this.W);this.listen("click",this.onClick);this.Z(J,"videodatachange",this.onVideoDataChange);this.Z(J,"presentingplayerstatechange",this.Mx);this.Z(J,"settingsMenuVisibilityChanged",this.Q2);J.createClientVe(this.element,this,218889);this.Mx();this.S.Rf("onSleepTimerFeatureAvailable")}; Y9T=function(J){var y="Off 10 15 20 30 45 60".split(" "),v;((v=J.S.getVideoData())==null?0:v.isLivePlayback)||y.push("End of video");v=J.S.getPlaylist();var d;v&&((d=v.listId)==null?void 0:d.type)!=="RD"&&y.push("End of playlist");J.Wn(g.x7(y,J.YP));J.K=g.Qq(y,J.YP,J);y=J.YP("End of video");J.options[y]&&g.J_(J.options[y],J.W)}; S92=function(J,y){var v=J.K[y],d=v==="End of video"||v==="End of playlist";v==="Off"&&(J.C="");J.S.getPlayerState()!==0&&J.S.getPlayerState()!==5||!d?(J.L=y,g.pZ.prototype.AO.call(J,y),J.CL(y),J.S.Rf("onSleepTimerSettingsChanged",v)):J.S.Rf("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"El video ya finaliz\u00f3"}}}}})}; UF=function(J){A_.call(this,J);var y=this;J.addEventListener("settingsMenuInitialized",function(){y.menuItem||(y.menuItem=new sDc(y.api,y.api.fN()),g.X(y,y.menuItem))}); J.addEventListener("openSettingsMenuItem",function(v){if(v==="menu_item_sleep_timer"){if(!y.menuItem){var d;(d=y.api.fN())==null||d.OS()}y.menuItem.open()}}); tQ(J,"resetSleepTimerMenuSettings",function(){y.resetSleepTimerMenuSettings()}); tQ(J,"setSleepTimerTimeLeft",function(v){y.setSleepTimerTimeLeft(v)}); tQ(J,"setVideoTimeLeft",function(v){y.setVideoTimeLeft(v)})}; VL3=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"onSnackbarMessage",function(v){switch(v){case 1:v=y.api.getPlayerStateObject(),v.isBuffering()&&(y.api.X("html5_disable_snackbar_message_checking_on_seeking_to_play")||g.k(v,8)&&g.k(v,16))&&y.api.Rf("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"\u00bfEl video se interrumpe?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT", text:{runs:[{text:"Descubre los motivos"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}}, durationHintMs:5E3,popupType:"TOAST"}})}})}; g.iP=function(J,y,v,d,P){y=y===void 0?!1:y;d=d===void 0?!1:d;P=P===void 0?!1:P;g.yK.call(this);this.K=P;this.G=!1;this.W=new b$(this);this.V=this.L=null;this.J=this.T=!1;g.X(this,this.W);this.target=J;this.C=y;this.B=v||J;this.G=d;y&&(g.s3&&this.target.setAttribute("draggable","true"),P||(this.target.style.touchAction="none"));fZ(this)}; uP=function(J){g.j$(J.W,!J.C)}; fZ=function(J){J.V=null;J.L=null;J.Z(He("over"),J.LU);J.Z("touchstart",J.hK);J.C&&J.Z(He("down"),J.CAK)}; LfR=function(J,y){for(var v=0;vP.start&&v>=5;c+=B}L=c.substr(0,4)+" "+c.substr(4,4)+" "+c.substr(8,4)+" "+(c.substr(12,4)+" "+c.substr(16,4))}else L="";T={video_id_and_cpn:String(y.videoId)+" / "+L,codecs:"",dims_and_frames:"",bandwidth_kbps:T.toFixed(0)+" Kbps",buffer_health_seconds:n.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:Y?"":"display:none",drm:Y,debug_info:v,extra_debug_info:"",bandwidth_style:V,network_activity_style:V,network_activity_bytes:M.toFixed(0)+" KB",shader_info:S,shader_info_style:S?"":"display:none",playback_categories:""};M=d.clientWidth+"x"+d.clientHeight+(P>1?"*"+P.toFixed(2):"");n="-";A.totalVideoFrames&&(n=(A.droppedVideoFrames||0)+" dropped of "+A.totalVideoFrames);T.dims_and_frames=M+" / "+n;J=J.getVolume();M=q$m(y);var C;if((C=y.W)==null?0:C.audio.T)C= "VB";else{var U;C=((U=y.W)==null?0:U.audio.C)?"DRC":Math.round(J*M)+"%"}U=Math.round(J)+"% / "+C;C=y.xj.toFixed(1);isFinite(Number(C))&&(U+=" (content loudness "+C+"dB)");T.volume=U;T.resolution=d.videoWidth+"x"+d.videoHeight;if(d=y.T){if(U=d.video)C=U.fps,C>1&&(T.resolution+="@"+C),(C=A.vC)&&C.video&&(T.resolution+=" / "+C.video.width+"x"+C.video.height,C.video.fps>1&&(T.resolution+="@"+C.video.fps)),T.codecs=grd(d),!y.W||d.audio&&d.video?d.Sd&&(T.codecs+=" / "+d.Sd+"A"):T.codecs+=" / "+grd(y.W), U.C||U.primaries?(C=U.C||"unknown",C==="smpte2084"?C+=" (PQ)":C==="arib-std-b67"&&(C+=" (HLG)"),T.color=C+" / "+(U.primaries||"unknown"),T.color_style=""):T.color_style="display:none";if(d.debugInfo)for(T.fmt_debug_info="",d=g.D(d.debugInfo),U=d.next();!U.done;U=d.next())U=U.value,T.fmt_debug_info+=U.label+":"+U.text+" ";T.fmt_debug_info_style=T.fmt_debug_info&&T.fmt_debug_info.length>0?"":"display:none"}d=y.isLivePlayback;U=y.L0;T.live_mode_style=d||U?"":"display:none";T.live_latency_style=d?"": "display:none";if(U)T.live_mode="Post-Live"+(FV(y)?" Manifestless":"");else if(d){U=A.n_;T.live_latency_secs=U.toFixed(2)+"s";d=FV(y)?"Manifestless, ":"";y.zK&&(d+="Windowed, ");C="Uncertain";if(U>=0&&U<120)if(y.latencyClass&&y.latencyClass!=="UNKNOWN")switch(y.latencyClass){case "NORMAL":C="Optimized for Normal Latency";break;case "LOW":C="Optimized for Low Latency";break;case "ULTRALOW":C="Optimized for Ultra Low Latency";break;default:C="Unknown Latency Setting"}else C=y.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";d+=C;(U=A.U1)&&(d+=", seq "+U.sequence);T.live_mode=d}!A.isGapless||Wh(y)&&A.bv||(T.playback_categories+="Gapless ");T.playback_categories_style=T.playback_categories?"":"display:none";T.bandwidth_samples=A.TQ;T.network_activity_samples=A.XP;T.live_latency_samples=A.C_;T.buffer_health_samples=A.A1;A=g.Pp(y);if(y.cotn||A)T.cotn_and_local_media=(y.cotn?y.cotn:"null")+" / "+A;T.cotn_and_local_media_style=T.cotn_and_local_media?"":"display:none"; lf(y,"web_player_release_debug")?(T.release_name=l[36],T.release_style=""):T.release_style="display:none";T.debug_info&&t.length>0&&T.debug_info.length+t.length<=60?T.debug_info+=" "+t:T.extra_debug_info=t;T.extra_debug_info_style=T.extra_debug_info&&T.extra_debug_info.length>0?"":"display:none";return T}; grd=function(J){var y=/codecs="([^"]*)"/.exec(J.mimeType);return y&&y[1]?y[1]+" ("+J.itag+")":J.itag}; EF=function(J,y,v,d,P){g.z.call(this,{j:"div",N:"ytp-horizonchart"});this.G=y;this.sampleCount=v;this.W=d;this.L=P;this.index=0;this.heightPx=-1;this.J=this.T=null;this.C=Math.round(J/v);this.element.style.width=this.C*this.sampleCount+"px";this.element.style.height=this.G+"em"}; Qi=function(J,y){if(J.heightPx===-1){var v=null;try{v=g.Lj("CANVAS"),J.T=v.getContext("2d")}catch(M){}if(J.T){var d=J.C*J.sampleCount;J.J=v;J.J.width=d;J.J.style.width=d+"px";J.element.appendChild(J.J)}else for(J.sampleCount=Math.floor(J.sampleCount/4),J.C*=4,v=0;v1?2:1,J.J.height=J.heightPx*v,J.J.style.height= J.heightPx+"px",J.T.scale(1,v)));y=g.D(y);for(d=y.next();!d.done;d=y.next()){v=J;var P=J.index,A=d.value;for(d=0;d+20&&g.ag(y.T.element);d.classList.add("ytp-timely-actions-overlay");y.T.element.appendChild(d)}); g.X(this,this.T);this.X("web_player_overlay_positioned_layout")?this.events.Z(J,"basechromeinitialized",function(){y.api.SW(y.T.element,4,!0);y.T.element.setAttribute("data-overlay-order","10")}):g.Hp(this.api,this.T.element,4)}; IBj=function(J){J.timelyActions&&(J.W=J.timelyActions.reduce(function(y,v){if(v.cueRangeId===void 0)return y;y[v.cueRangeId]=0;return y},{}))}; vm=function(J,y){if(J.timelyActions){J=g.D(J.timelyActions);for(var v=J.next();!v.done;v=J.next())if(v=v.value,v.cueRangeId===y)return v}}; pwd=function(J,y){if((J=vm(J,y))&&J.onCueRangeExit)return r5(J.onCueRangeExit)}; yM=function(J){if(J.C!==void 0){var y=(y=vm(J,J.C))&&y.onCueRangeEnter?r5(y.onCueRangeEnter):void 0;var v=vm(J,J.C);a:if(v&&v.additionalTrigger){var d=g.D(v.additionalTrigger);for(var P=d.next();!P.done;P=d.next())if(P=P.value,P.type){var A=void 0,T=void 0;if((A=J.AY[P.type])==null?0:A((T=P.args)!=null?T:{})){d=!0;break a}}d=!1}else d=!0;y&&d&&(J.api.Rf("innertubeCommand",y),J.setTimeout(v),J.W[J.C]!==void 0&&J.W[J.C]++,J.K=!0)}}; $n2=function(J,y){return J.J===void 0?!1:y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(y.seekLengthMilliseconds)===5E3?J.J===72:y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(y.seekLengthMilliseconds)===1E4?J.J===74:y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(y.seekLengthMilliseconds)===5E3?J.J===71:y.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(y.seekLengthMilliseconds)===1E4?J.J===73:!1}; orr=function(J){if(J=J.getWatchNextResponse()){var y,v;J=(y=J.playerOverlays)==null?void 0:(v=y.playerOverlayRenderer)==null?void 0:v.timelyActionsOverlayViewModel;y=g.R(J,Un6);if(y!=null&&y.timelyActions)return y==null?void 0:y.timelyActions.map(function(d){return g.R(d,fBx)}).filter(function(d){return!!d})}}; iq3=function(J){A_.call(this,J);var y=this;Wp(this.api,"getPlaybackRate",function(){return y.api.getPlaybackRate()}); Wp(this.api,"setPlaybackRate",function(v){typeof v==="number"&&y.api.setPlaybackRate(v)})}; dA=function(J,y,v,d){Sk.call(this,"VOICE_BOOST",g.Om.ME);this.C=!1;this.S=J;this.A9=J.fN();this.W=y;this.J=v;this.hasVoiceBoostAudioTrack=d;this.Z(J,"videodatachange",this.T);this.setIcon(j4P());this.subscribe("select",this.L,this);this.T()}; Pm=function(J){A_.call(this,J);var y=this;this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"settingsMenuInitialized",function(){uu2(y)}); tQ(this.api,"getVoiceBoostUserPreference",function(){return y.getVoiceBoostUserPreference()}); tQ(this.api,"setVoiceBoostUserPreference",function(d){y.setVoiceBoostUserPreference(d)}); tQ(this.api,"hasVoiceBoostAudioTrack",function(){return y.hasVoiceBoostAudioTrack()}); var v;this.C=(v=vMT())!=null?v:0;this.updateEnvironmentData()}; uu2=function(J){J.menuItem||(J.menuItem=new dA(J.api,function(y){J.setVoiceBoostUserPreference(y)},function(){return J.getVoiceBoostUserPreference()},function(){return J.hasVoiceBoostAudioTrack()}),g.X(J,J.menuItem))}; Hq6=function(J){J=J.S1();if(!J)return!1;J=g.y2(J).exp||"";return J.includes("xpv")||J.includes("xpe")}; Xwx=function(J){J=g.D(g.A2(J,!0));for(var y=J.next();!y.done;y=J.next())if(Hq6(y.value))return!0;return!1}; NdT=function(J,y){J=g.D(g.A2(J,!0));for(var v=J.next();!v.done;v=J.next())if(v=v.value,Hq6(v)){var d={potc:"1",pot:y};v.url&&(v.url=v0(v.url,d))}}; RWr=function(J){return g.f(function(y){if(y.T==1)return g.bR(y,2),g.h(y,J,4);if(y.T!=2)return g.ex(y,0);g.BP(y);g.G2(y)})}; ld=function(J){A_.call(this,J);var y=this;this.useLivingRoomPoToken=!1;this.V=new g.Y5;this.C=!1;this.Ql=null;this.B=!1;this.W=null;this.L=!1;var v=J.Y().getWebPlayerContextConfig();this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"spsumpreject",function(d,P,A){y.L=P;d&&y.B&&!y.W&&(y.X("html5_generate_content_po_token")&&A?y.JC(A):y.X("html5_generate_session_po_token")&&Kf3(y));y.W||y.api.dj("stp",{s:+y.B,b:+y.L})}); this.events.Z(J,"poTokenVideoBindingChange",function(d){y.JC(d)}); this.useLivingRoomPoToken=!(v==null||!v.useLivingRoomPoToken);J.addEventListener("csiinitialized",function(){y.Ql=J.AR();var d=(y.X("html5_generate_session_po_token")||y.X("html5_generate_content_po_token"))&&!y.useLivingRoomPoToken;try{if(y.X("html5_use_shared_owl_instance"))zWv(y);else if(d){y.Ql.Tr("pot_isc");var P=g.Zo(y.api.Y().experiments,"html5_webpo_kaios_defer_timeout_ms");P?(y.J=pB(),g.S3(function(){Ty(y)},P)):y.X("html5_webpo_idle_priority_job")?(y.J=pB(),g.zW(g.EK(),function(){Ty(y)})): Ty(y)}}catch(A){A instanceof Error&&g.ev(A)}}); J.addEventListener("trackListLoaded",this.GN.bind(this));J.Kl(this)}; kb3=function(J){var y=Lo(J.experiments,"html5_web_po_request_key");return y?y:g.Sb(J)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Erc=function(J){var y=new PMH,v={},d=(v["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",v);return new a2(y,J,function(){return d})}; QDT=function(J){return new x5(J)}; M6=function(J,y){J.X("html5_webpo_bge_ctmp")&&J.api.dj(y,{hwpo:!!J.T,hwpor:J.C})}; zWv=function(J){var y,v;g.f(function(d){if(d.T==1)return M6(J,"swpo_i"),J.J=pB(),n1(J),g.h(d,Zz(),2);if(d.T!=3)return y=d.C,M6(J,"swpo_co"),g.h(d,CNR(y),3);v=d.C;J.X("html5_web_po_token_disable_caching")||v.Dc(150);J.T=v;M6(J,"swpo_cc");RWr(v.M9()).then(function(){J.C=!0;J.V.resolve();M6(J,"swpo_re")}); g.S3(function(){Ty(J);M6(J,"swpo_si")},0); g.G2(d)})}; J6r=function(J){var y=J.api.Y(),v=Erc(kb3(y)),d=v.S2.bind(v);v.S2=function(M){var n;return g.f(function(Y){if(Y.T==1)return g.h(Y,d(M),2);n=Y.C;J.api.dj("itr",{});return Y.return(n)})}; try{var P=QDT({ML:v,Xq:{maxAttempts:5},D0:{ip:"CLEn",disable:y.experiments.BX("html5_web_po_disable_remote_logging")||ZqT.includes(g.s1(y.MF)||""),kU:RF3(y.experiments),tG:y.experiments.BX("wpo_gel_strz")?function(M){var n=wwT.get(M);n||(n=new VOr(M),n=new g.pb(n),wwT.set(M,n));return n}:void 0, iyx:J.X("wpo_dis_lfdms")?0:1E3},eYx:g.ev});var A=new h9({U8:P,ML:v,onError:g.ev});RWr(A.M9()).then(function(){J.C=!0;J.V.resolve()}); J.X("html5_web_po_token_disable_caching")||A.Dc(150);g.X(J,P);g.X(J,A);J.T=A}catch(M){g.ev(M);var T;(T=P)==null||T.dispose()}}; Ty=function(J){var y=J.api.Y();J.Ql.Tr("pot_ist");J.T||J6r(J);J.X("html5_bandaid_attach_content_po_token")||(J.X("html5_generate_session_po_token")&&(n1(J),Kf3(J)),y=g.Zo(y.experiments,"html5_session_po_token_interval_time_ms")||0,y>0&&(J.G=g.V2(function(){n1(J)},y)),J.B=!0)}; n1=function(J){var y,v,d,P;g.f(function(A){if(!J.X("html5_generate_session_po_token")||J.useLivingRoomPoToken)return A.return();y=J.api.Y();v=g.NP("EOM_VISITOR_DATA")||g.NP("VISITOR_DATA");d=y.TA?y.datasyncId:v;P=Lo(y.experiments,"html5_mock_content_binding_for_session_token")||y.livingRoomPoTokenId||d;y.TP=s2(J,P);g.G2(A)})}; s2=function(J,y){if(!J.T){if(J.J)try{return J.J(y)}catch(A){g.ev(A)}return""}try{J.Ql.Tr(J.C?"pot_cms":"pot_csms");var v={hJ:!0,xl:!0,XK:y};J.X("html5_web_po_token_disable_caching")||(v.wO={wG:y,Dk:!0,T7:!0});var d=J.T.Gq(v);J.Ql.Tr(J.C?"pot_cmf":"pot_csmf");if(J.C){var P;(P=J.W)==null||P.resolve();J.W=null;J.L&&(J.L=!1,J.api.app.Ok().pU(!1))}return d}catch(A){return g.ev(A),""}}; Kf3=function(J){J.T&&(J.W=new S1,J.V.promise.then(function(){J.Ql.Tr("pot_if");n1(J)}))}; g.YY=function(J,y,v){g.lq(J.element,"ytp-suggestion-set",!!y.videoId);var d=y.playlistId;v=y.wC(v?v:"mqdefault.jpg");var P=null,A=null;y instanceof Ur&&(y.lengthText?(P=y.lengthText||null,A=y.qq||null):y.lengthSeconds&&(P=g.xZ(y.lengthSeconds),A=g.xZ(y.lengthSeconds,!0)));var T=!!d;d=T&&Ij(d).type==="RD";var M=y instanceof Ur?y.isLivePlayback:null,n=y instanceof Ur?y.isUpcoming:null,Y=y.author,S=y.shortViewCount,V=y.publishedTimeText,L=[],t=[];Y&&L.push(Y);S&&(L.push(S),t.push(S));V&&t.push(V);v= {title:y.title,author:Y,author_and_views:L.join(" \u2022 "),aria_label:y.ariaLabel||g.yY("Ver $TITLE",{TITLE:y.title}),duration:P,timestamp:A,url:y.GJ(),is_live:M,is_upcoming:n,is_list:T,is_mix:d,background:v?"background-image: url("+v+")":"",views_and_publish_time:t.join(" \u2022 "),autoplayAlternativeHeader:y.Iy};y instanceof ph&&(v.playlist_length=y.playlistLength);J.update(v)}; g.Sj=function(J){var y=J.Y(),v=g.Wz||g.UC?{style:"will-change: opacity"}:void 0,d=y.W,P=["ytp-modern-videowall-still"];y.T&&P.push("ytp-videowall-show-text");g.z.call(this,{j:"a",kB:P,U:{href:"{{url}}",target:d?y.K:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},D:[{j:"div",N:"ytp-modern-videowall-still-image",U:{style:"{{background}}"},D:[{j:"span",N:"ytp-modern-videowall-still-info-duration",TK:"{{duration}}"}]},{j:"span",N:"ytp-modern-videowall-still-info", U:{"aria-hidden":"true"},D:[{j:"span",N:"ytp-modern-videowall-still-info-bg",D:[{j:"span",N:"ytp-modern-videowall-still-info-content",U:v,D:[{j:"span",N:"ytp-modern-videowall-still-info-title",TK:"{{title}}"},{j:"span",N:"ytp-modern-videowall-still-info-author",TK:"{{author_and_views}}"},{j:"span",N:"ytp-modern-videowall-still-info-live",TK:"En vivo"}]}]}]},{j:"span",kB:["ytp-modern-videowall-still-listlabel-regular","ytp-modern-videowall-still-listlabel"],U:{"aria-hidden":"true"},D:[{j:"span",N:"ytp-modern-videowall-still-listlabel-icon"}, "Playlist",{j:"span",N:"ytp-modern-videowall-still-listlabel-length",D:[" (",{j:"span",TK:"{{playlist_length}}"},")"]}]},{j:"span",kB:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],U:{"aria-hidden":"true"},D:[{j:"span",N:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{j:"span",N:"ytp-modern-videowall-still-listlabel-length",TK:" (50+)"}]}]});this.suggestion=null;this.T=d;this.api=J;this.C=new g.gf(this);g.X(this,this.C);this.listen("click",this.onClick); this.listen("keypress",this.onKeyPress);this.C.Z(J,"videodatachange",this.onVideoDataChange);J.createServerVe(this.element,this);this.onVideoDataChange()}; g.y6P=function(J,y){if(J.suggestion!==y){J.suggestion=y;var v=J.api.Y();g.YY(J,y,"hqdefault.jpg");if(g.un(v)&&!J.api.X("web_player_log_click_before_generating_ve_conversion_params")){v=y.GJ();var d={};g.xt(J.api,"addEmbedsConversionTrackingParams",[d]);v=g.al(v,d);J.updateValue("url",v)}(y=(y=y.sessionData)&&y.itct)&&J.api.setTrackingParams(J.element,y)}}; VM=function(J,y){g.z.call(this,{j:"div",kB:["ytp-fullscreen-grid"],D:[{j:"div",N:"ytp-fullscreen-grid-hover-overlay",U:{title:"{{title}}","aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid"}},{j:"div",kB:["ytp-fullscreen-grid-content","ytp-fullscreen-grid-stills-container"]}]});this.player=J;this.stills=[];this.videoData=null;this.currentState=0;this.W=this.element.querySelector(".ytp-fullscreen-grid-stills-container");this.C= new g.gf(this);g.X(this,this.C);this.T=y;if(J=this.element.querySelector(".ytp-fullscreen-grid-hover-overlay"))this.Z(J,"click",this.J),rx(this.player,J,this);if(J=this.player.getVideoData(1))this.videoData=J;this.C.Z(this.player,"videodatachange",this.onVideoDataChange)}; Wm=function(J){A_.call(this,J);var y=this;this.C=this.T=0;this.L=null;this.W=0;var v=new g.gf(J);g.X(this,v);this.K=this.api.X("web_player_imax_theater_mode");this.J=this.api.X("web_player_enable_fullscreen_grid_components");v.Z(J,"fullscreentoggled",function(){L1(y)}); v.Z(J,"videodatachange",function(){if(y.J){var d=y.api.getVideoData(1);y.videoData!==d&&y.T===2&&t2(y,1);y.videoData=d}},this); v.Z(J,"sizestylechange",function(){y.J&&L1(y)}); tQ(this.api,"setFullscreenQuickActions",function(d){y.setFullscreenQuickActions(d)}); tQ(this.api,"setPlayerOverlayVideoDetailsRenderer",function(d){y.setPlayerOverlayVideoDetailsRenderer(d)}); this.J&&vS3(this,v,J)}; vS3=function(J,y,v){y.Z(v,"keyboardserviceglobalkeydown",function(d,P){J.J&&d.keyCode===86&&!d.repeat&&J.T!==0&&(P&&(P.Gn=!0),dlP(J))}); y.Z(J.api.getRootNode(),"wheel",function(d){var P;if(J.J&&(P=J.V)!=null&&P.element&&J.T!==0)if(g.d7(J.api.getRootNode(),"ytp-grid-scrolling"),J.W===0&&(J.W=window.innerHeight),J.T===1)d.preventDefault(),d.stopPropagation(),J.W!==0&&(J.C+=d.deltaY/J.W,J.C=Math.min(Math.max(J.C,0),.85),J.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+J.C.toString()),PA3(J,Math.abs(J.C)>=.85));else if(J.T===2){P=d.deltaY<0;var A,T=((A=J.V)==null?void 0:A.element.scrollTop)===0;P&&T?(d.preventDefault(), d.stopPropagation(),J.W!==0&&(J.C+=d.deltaY/J.W,J.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+J.C.toString()),PA3(J,Math.abs(J.C)>=.85))):J.C!==0&&(J.C=0,J.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0"))}}); y.Z(v,"standardControlsInitialized",function(){if(!J.V){J.V=new VM(J.api,J.B.bind(J));g.X(J,J.V);var d=J.api.getRootNode().querySelector(".ytp-chrome-bottom");d&&d.parentNode&&d.parentNode.insertBefore(J.V.element,d.nextSibling)}}); A6H(J,J.T)}; PA3=function(J,y){J.L&&clearTimeout(J.L);y?TqP(J):J.L=window.setTimeout(function(){TqP(J)},150)}; TqP=function(J){J.L&&(clearTimeout(J.L),J.L=null);J.W=0;J.J&&J.T!==0&&(Math.abs(J.C)>=.15&&dlP(J),J.C=0,J.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+J.C.toString()),g.AZ(J.api.getRootNode(),"ytp-grid-scrolling"))}; dlP=function(J){J.J&&(J.T===1?t2(J,2):t2(J,1))}; L1=function(J){var y=J.api.isFullscreen()||J.K&&J.api.Rr();J.G&&g.dp(J.G,y);J.playerOverlayVideoDetailsRenderer&&g.dp(J.playerOverlayVideoDetailsRenderer,y);J.J&&(y?J.T!==2&&t2(J,1):t2(J,0))}; t2=function(J,y){J.T=y;var v;(v=J.V)==null||v.Hq(y);J.C=0;J.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+J.C.toString());A6H(J,y)}; A6H=function(J,y){J=J.api.getRootNode();g.lq(J,"ytp-fullscreen-grid-peaking",y===1);g.lq(J,"ytp-fullscreen-grid-active",y===2)}; lt2=function(J){A_.call(this,J);var y=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.gf(J);g.X(this,this.events);this.events.Z(J,"heartbeatRequest",function(v){if(y.freePreviewUsageDetails.length||y.freePreviewWatchedDuration!==null)v.heartbeatRequestParams||(v.heartbeatRequestParams={}),v.heartbeatRequestParams.unpluggedParams||(v.heartbeatRequestParams.unpluggedParams={}),y.freePreviewUsageDetails.length>0?v.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= y.freePreviewUsageDetails:v.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+y.freePreviewWatchedDuration}}); tQ(J,"setFreePreviewWatchedDuration",function(v){y.freePreviewWatchedDuration=v}); tQ(J,"setFreePreviewUsageDetails",function(v){y.freePreviewUsageDetails=v})}; aa=function(J){g.u.call(this);this.features=[];var y=this.C,v=new ov(J),d=new Td(J),P=new xP(J),A=new ld(J);var T=g.sA(J.Y())?void 0:new jk(J);var M=new a_(J),n=new bqx(J),Y=new iq3(J),S=new $q(J);var V=g.sA(J.Y())?new lt2(J):void 0;var L=J.X("html5_enable_ssap")?new OqR(J):void 0;var t;var W=(t=J.Y().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new cy(J):void 0;t=new rw(J);var c=J.X("enable_courses_player_overlay_purchase")?new XRT(J):void 0;var b=g.nh(J.Y())?new fDU(J):void 0; var B=new ek(J);var q=J.Y().W?new ox6(J):void 0;var C=g.un(J.Y())?new $3R(J):void 0;var U=J.X("web_player_move_autonav_toggle")&&J.Y().DO?new bYr(J):void 0;var N=g.nh(J.Y())?new x1x(J):void 0;var Jc=J.X("web_enable_speedmaster")&&g.nh(J.Y())?new R_(J):void 0;var E=J.Y().zA?void 0:new rKr(J);var T2=J.X("report_pml_debug_signal")?new gx3(J):void 0;var Mj=new rYr(J),lR=new ce(J);var Sx=g.rm(J.Y())?new udP(J):void 0;var vP=navigator.mediaSession&&window.MediaMetadata&&J.Y().Dv?new t1(J):void 0;var mT= J.X("html5_enable_drc")&&!J.Y().L?new FY(J):void 0;var hc=new Mq(J);var JO=g.nh(J.Y())?new JKH(J):void 0;var fH=J.X("html5_enable_d6de4")?new OF(J):void 0;var gV=g.nh(J.Y())&&J.X("web_sleep_timer")?new UF(J):void 0;var UU=g.un(J.Y())?new hO3(J):void 0;var Zy=new h1(J),tO=new BUr(J),Nb=new WRR(J);var vL=J.X("enable_sabr_snackbar_message")?new VL3(J):void 0;var m=J.X("web_enable_timely_actions")?new hW2(J):void 0;var p_=new Gd(J);var $y=g.nh(J.Y())?new Wm(J):void 0;var dr=J.X("html5_enable_voice_boost")? new Pm(J):void 0;J=J.X("web_player_loop_settings_menu")&&J.Y().ox?new aOv(J):void 0;y.call(this,v,d,P,A,T,M,n,Y,S,V,L,W,t,c,b,B,q,C,U,N,Jc,E,T2,Mj,lR,Sx,void 0,vP,mT,hc,void 0,JO,fH,gV,UU,void 0,Zy,tO,Nb,void 0,vL,m,p_,$y,dr,void 0,J,void 0)}; MyR=function(){this.T=this.C=NaN}; nSr=function(J,y){this.iA=J;this.timerName="";this.J=!1;this.T=NaN;this.W=new MyR;this.C=y||null;this.J=!1}; sBR=function(J,y,v){var d=g.z3(y.qx)&&!y.qx.L;if(y.qx.u1&&(XA(y.qx)||y.qx.If==="shortspage"||tw(y.qx)||d)&&!J.J){J.J=!0;J.L=y.clientPlaybackNonce;g.NP("TIMING_ACTION")||Xa("TIMING_ACTION",J.iA.csiPageType);J.iA.csiServiceName&&Xa("CSI_SERVICE_NAME",J.iA.csiServiceName);if(J.C){d=J.C.AR();for(var P=g.D(Object.keys(d)),A=P.next();!A.done;A=P.next())A=A.value,Ge(A,d[A],J.timerName);d=g.kV(Rd2)(J.C.j9);g.bx(d,J.timerName);d=J.C;d.C={};d.j9={}}g.bx({playerInfo:{visibilityState:g.kV(NS3)()},playerType:"LATENCY_PLAYER_HTML5"}, J.timerName);J.V!==y.clientPlaybackNonce||Number.isNaN(J.T)||(jq("_start",J.timerName)?v=g.kV(xu)("_start",J.timerName)+J.T:g.ev(new g.H1("attempted to log gapless pbs before CSI timeline started",{cpn:y.clientPlaybackNonce})));v&&!jq("pbs",J.timerName)&&xY(J,v)}}; xY=function(J,y,v){Ge("pbs",y!=null?y:(0,g.GC)(),v!=null?v:J.timerName)}; O2=function(J){vWv();yp2();J.timerName=""}; YJ2=function(J){if(J.C){var y=J.C;y.C={};y.j9={}}J.J=!1;J.V=void 0;J.T=NaN}; SJP=function(J,y){g.yK.call(this);this.qx=J;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.C=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.T=0;if(J=y.session_data)this.sessionData=Q4(J,"&");this.index=Math.max(0,Number(y.index)||0);this.loop=!!y.loop;this.startSeconds=Number(y.startSeconds)||0;this.title=y.playlist_title||"";this.description=y.playlist_description||"";this.author= y.author||y.playlist_author||"";y.video_id&&(this.items[this.index]=y);if(J=y.api)typeof J==="string"&&J.length===16?y.list="PL"+J:y.playlist=J;if(J=y.list)switch(y.listType){case "user_uploads":this.listId=new hw("UU","PLAYER_"+J);break;default:var v=y.playlist_length;v&&(this.length=Number(v)||0);this.listId=Ij(J);if(J=y.video)this.items=J.slice(0),this.loaded=!0}else if(y.playlist){J=y.playlist.toString().split(",");this.index>0&&(this.items=[]);J=g.D(J);for(v=J.next();!v.done;v=J.next())(v=v.value)&& this.items.push({video_id:v});this.length=this.items.length;if(J=y.video)this.items=J.slice(0),this.loaded=!0}this.setShuffle(!!y.shuffle);if(J=y.suggestedQuality)this.quality=J;this.B=rE(y,"playlist_");this.J=(y=y.thumbnail_ids)?y.split(","):[]}; Vyx=function(J){return!!(J.playlist||J.list||J.api)}; LgU=function(J){var y=J.index+1;return y>=J.length?0:y}; tym=function(J){var y=J.index-1;return y<0?J.length-1:y}; g.gA=function(J,y,v,d){y=y!==void 0?y:J.index;y=J.items&&y in J.items?J.items[J.order[y]]:null;var P=null;y&&(v&&(y.autoplay="1"),d&&(y.autonav="1"),P=new g.Ph(J.qx,y),g.X(J,P),P.oi=!0,P.startSeconds=J.startSeconds||P.clipStart||0,J.listId&&(P.playlistId=J.listId.toString()));return P}; Wgm=function(J,y){J.index=g.uX(y,0,J.length-1);J.startSeconds=0}; at3=function(J,y){if(y.video&&y.video.length){J.title=y.title||"";J.description=y.description;J.views=y.views;J.likes=y.likes;J.dislikes=y.dislikes;J.author=y.author||"";var v=y.loop;v&&(J.loop=v);v=g.gA(J);J.items=[];for(var d=g.D(y.video),P=d.next();!P.done;P=d.next())if(P=P.value)P.video_id=P.encrypted_id,J.items.push(P);J.length=J.items.length;(y=y.index)?J.index=y:J.findIndex(v);J.setShuffle(!1);J.loaded=!0;J.T++;J.C&&J.C()}}; gSU=function(J,y){var v,d,P,A,T,M,n;return g.f(function(Y){if(Y.T==1){v=g.H4();var S=J.Y(),V={context:g.V7(J),playbackContext:{contentPlaybackContext:{ancestorOrigins:S.ancestorOrigins}}},L=S.getWebPlayerContextConfig();if(L==null?0:L.encryptedHostFlags)V.playbackContext.contentPlaybackContext.encryptedHostFlags=L.encryptedHostFlags;if(L==null?0:L.hideInfo)V.playerParams={showinfo:!1};S=S.embedConfig;L=y.docid||y.video_id||y.videoId||y.id;if(!L){L=y.raw_embedded_player_response;if(!L){var t=y.embedded_player_response; t&&(L=JSON.parse(t))}if(L){var W,c,b,B,q,C;L=((C=g.R((W=L)==null?void 0:(c=W.embedPreview)==null?void 0:(b=c.thumbnailPreviewRenderer)==null?void 0:(B=b.playButton)==null?void 0:(q=B.buttonRenderer)==null?void 0:q.navigationEndpoint,g.Y9))==null?void 0:C.videoId)||null}else L=null}W=(W=L)?W:void 0;c=J.playlistId?J.playlistId:y.list;b=y.listType;if(c){var U;b==="user_uploads"?U={username:c}:U={playlistId:c};xl3(S,W,y,U);V.playlistRequest=U}else y.playlist?(U={templistVideoIds:y.playlist.toString().split(",")}, xl3(S,W,y,U),V.playlistRequest=U):W&&(U={videoId:W},S&&(U.serializedThirdPartyEmbedConfig=S),V.singleVideoRequest=U);d=V;P=g.kZ(Owr);g.bR(Y,2);return g.h(Y,g.rQ(v,d,P),4)}if(Y.T!=2)return A=Y.C,T=J.Y(),y.raw_embedded_player_response=A,T.wj=TW(y,g.un(T)),T.J=T.wj==="EMBEDDED_PLAYER_MODE_PFL",A&&(M=A,M.trackingParams&&KY(M.trackingParams)),Y.return(new g.Ph(T,y));n=g.BP(Y);n instanceof Error||(n=Error("b259802748"));g.jv(n);return Y.return(J)})}; xl3=function(J,y,v,d){v.index&&(d.playlistIndex=String(Number(v.index)+1));d.videoId=y?y:"";J&&(d.serializedThirdPartyEmbedConfig=J)}; g.cm=function(J,y){DC.get(J);DC.set(J,y)}; g.Gy=function(J){g.yK.call(this);this.loaded=!1;this.player=J}; Dlx=function(){this.T=[];this.C=[]}; g.A2=function(J,y){return y?J.C.concat(J.T):J.C}; g.bd=function(J,y){switch(y.kind){case "asr":c6P(y,J.T);break;default:c6P(y,J.C)}}; c6P=function(J,y){g.On(y,function(v){return J.equals(v)})||y.push(J)}; g.Fx=function(J){g.u.call(this);this.Ly=J;this.T=new Dlx;this.W=null;this.V=[];this.B=[]}; g.jj=function(J,y,v){g.Fx.call(this,J);this.videoData=y;this.audioTrack=v;this.C=null;this.J=!1;this.V=y.jS;this.B=y.MK;this.J=g.k9(y)}; g.GFd=function(J,y){var v;return J.Y().X("safari_live_drm_captions_fix")&&((v=J.getVideoData())==null?0:v.jz())?!1:g.sA(J.Y())&&!y.isManifestless}; g.ej=function(J,y){return iU(J.info.mimeType)?y?J.info.itag===y:!0:!1}; g.bwd=function(J,y){if(J.C!=null&&g.GFd(y,J.C)&&J.C.C.rawcc!=null)return!0;if(!J.jH())return!1;y=!!J.C&&J.C.isManifestless&&Object.values(J.C.C).some(function(v){return g.ej(v,"386")}); J=!!J.C&&!J.C.isManifestless&&g.YZv(J.C);return y||J}; g.m6=function(J,y,v,d,P,A){g.Fx.call(this,J);this.videoId=v;this.EX=P;this.eventId=A;this.L={};this.C=null;J=d||g.y2(y).hl||"";J=J.split("_").join("-");this.J=v0(y,{hl:J})}; Fg2=function(J,y){g.u.call(this);var v=this;this.S=J;this.W=y;this.j9={};this.C={};this.T=null;this.J=new Set;this.V=new g.gf(this);this.b6={gzY:function(){return v.W}}; this.L=this.S.X("web_player_defer_modules");this.nj=new Map;g.X(this,this.V);this.V.Z(J,"videodatachange",this.onVideoDataChange)}; jBc=function(J,y){J.T=y}; g.Bm=function(J){return J.nj.get("captions")}; oS6=function(J,y){switch(y){case "ad":return e$R(J);case "annotations_module":return J.S.isEmbedsShortsMode()?J=!1:(y=J.S,J=y.Y(),y=y.getVideoData(),J=J.J||y.I4||J.controlsType==="3"?!1:J.WX.isEmpty()&&J.playerStyle!=="annotation-editor"&&J.playerStyle!=="live-dashboard"?!!y.Ek||!!g.R9(y)||!!g.KF(y):!0),J;case "asmjs":return mlj(J);case "creatorendscreen":return Bqr(J);case "embed":return g.un(J.S.Y());case "endscreen":return g.qJm(J);case "heartbeat":return J.Tn();case "kids":return y0(J.S.Y()); case "remote":return J.S.Y().Kp;case "miniplayer":return J.S.Y().showMiniplayerUiWhenMinimized;case "offline":return J.S.Y().yH;case "captions":return r6U(J);case "unplugged":return g.kO(J.S.Y());case "ux":return J.S.Y().XW;case "webgl":return $lH(J);case "ypc":return J.Qs();case "ypc_clickwrap":return J=J.S.getVideoData(),J.TP&&!J.bS;case "yto":return!!J.S.getVideoData().Cy.includes("yto");default:return g.jv(Error("Module descriptor "+y+" does not match")),!1}}; q6=function(J,y,v,d,P){var A;v=v===void 0?!1:v;d=d===void 0?!1:d;var T=J.nj.get(y);if(!T||d)if(P||(P=function(){q6(J,y,v,d)}),A||(A=function(){J.S.CA(y)}),T=T||CA2(J,y,oS6(J,y),P,A))J.nj.set(y,T),T.create(),J.S.publish("modulecreated",y),v&&J.S.cR("onApiChange")}; Itj=function(J){var y=y===void 0?!1:y;var v,d,P,A,T;return g.f(function(M){if(M.T==1)return(v=J.nj.get("asmjs"))&&!y?M.return(v):(d=DC.get("asmjs"))!=null?(P=d,M.Qk(2)):g.h(M,new Promise(function(n,Y){h$T(J,"asmjs",function(){var S=DC.get("asmjs");S?n(S):Y("cannot load module asmjs")},Y)}),3); M.T!=2&&(P=M.C);A=P;if(!A)return M.return(Promise.reject("cannot load module asmjs"));T=new A(J.S);J.nj.set("asmjs",T);T.create();return M.return(T)})}; ftP=function(J){psr(J)&&J.Uw();Uld(J)&&(q6(J,"captions",!0),q6(J,"endscreen"),J.pK(),q6(J,"creatorendscreen",!0))}; Uld=function(J){var y=J.S.getVideoData(),v=J.L&&!y.isInlinePlaybackNoAd;J.S.X("html5_defer_modules_on_ads_only")&&!y.isAd()&&(v=!1);return v}; psr=function(J){J=J.S.getVideoData();var y;if(y=J.X("web_player_defer_ad")){if(g.cq(J.Cy,"ad")||WVr(J)||J.enableServerStitchedDai)J=!1;else{y=J.playerResponse;J=J.startSeconds;var v=y==null?void 0:y.adPlacements;if(y=v){y=Number.MAX_VALUE;v=g.D(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value.adPlacementRenderer){var P=void 0,A=(P=d.config)==null?void 0:P.adPlacementConfig;P=void 0;if(((P=A)==null?void 0:P.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var T=P=void 0;A=Number((P=A)==null?void 0:(T= P.adTimeOffset)==null?void 0:T.offsetStartMilliseconds)||0;T=P=void 0;d=Number(((P=d.renderer)==null?void 0:(T=P.adBreakServiceRenderer)==null?void 0:T.prefetchMilliseconds)||0);d=A-d;d=11;J=J.api.Y().G&&U2;return!(!y&&!J)}; QM=function(J,y){return!J.api.isInline()&&!ls3(J,c1(y))&&g.O0(y)}; T1P=function(J){J.SK.Up();if(J.MW&&J.Y1)J.Y1=!1;else if(!J.api.Y().Ek&&!J.H9()){var y=J.api.getPlayerStateObject();g.k(y,2)&&g.C5(J.api)||J.w1(y);!J.api.Y().aG||y.isCued()||g.k(y,1024)?J.B7():J.SL.isActive()?(J.OE(),J.SL.stop()):J.SL.start()}}; n_H=function(J,y){var v;if((v=J.api.getVideoData())==null?0:v.mutedAutoplay){var d,P;if((d=y.target)==null?0:(P=d.className)==null?0:P.includes("ytp-info-panel"))return!1}return g.O0(y)&&J.api.isMutedByMutedAutoplay()?(J.api.unMute(),J.api.getPresentingPlayerType()===2&&J.api.playVideo(),y=J.api.getPlayerStateObject(),!g.k(y,4)||g.k(y,8)||g.k(y,2)||J.B7(),!0):!1}; snd=function(J,y,v){J.api.isFullscreen()?v<1-y&&J.api.toggleFullscreen():v>1+y&&J.api.toggleFullscreen()}; Adx=function(J){var y=iQ()&&pX()>=67&&!J.api.Y().G;J=J.api.Y().disableOrganicUi;return!g.fX("tizen")&&!po&&!y&&!J}; g.ZC=function(J){g.z.call(this,{j:"div",D:[{j:"div",N:"ytp-bezel-text-wrapper",D:[{j:"div",N:"ytp-bezel-text",TK:"{{title}}"}]},{j:"div",N:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},D:[{j:"div",N:"ytp-bezel-icon",TK:"{{icon}}"}]}]});this.S=J;this.T=new g.Kx(this.show,10,this);J=this.S.X("delhi_modern_web_player")?1E3:500;this.C=new g.Kx(this.hide,J,this);g.X(this,this.T);g.X(this,this.C);this.hide()}; JY=function(J,y,v){if(y<=0){v=F9();y="silenciado";var d=0}else v=v?{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,U:{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"}}]}:{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,U:{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"}}]},d=Math.floor(y),y=d+"volumen";wA(J,v,y,d+"%")}; YBj=function(J,y){y=y?{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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"}}]}:aux();var v=J.S.getPlaybackRate(),d=g.yY("La velocidad es de $RATE",{RATE:String(v)});wA(J,y,d,v+"x")}; SBm=function(J,y){y=y?"Subt\u00edtulos activados":"Subt\u00edtulos desactivados";wA(J,jk6(J.S),y)}; wA=function(J,y,v,d){d=d===void 0?"":d;J.updateValue("label",v===void 0?"":v);J.updateValue("icon",y);g.Ew(J.C);J.T.start();J.updateValue("title",d);g.lq(J.element,"ytp-bezel-text-hide",!d)}; VCm=function(J,y){g.z.call(this,{j:"button",kB:["ytp-button","ytp-cards-button"],U:{"aria-label":"Mostrar tarjetas","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.un(J.Y()))},D:[{j:"span",N:"ytp-cards-button-icon-default",D:[{j:"div",N:"ytp-cards-button-icon",D:[J.Y().X("player_new_info_card_format")?gDR():{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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"}}]}]}, {j:"div",N:"ytp-cards-button-title",TK:"Informaci\u00f3n"}]},{j:"span",N:"ytp-cards-button-icon-shopping",D:[{j:"div",N:"ytp-cards-button-icon",D:[{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",N:"ytp-svg-shadow",U:{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"}},{j:"path",N:"ytp-svg-fill",U:{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"}},{j:"path",N:"ytp-svg-shadow-fill",U:{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"}}]}]},{j:"div", N:"ytp-cards-button-title",TK:"Shopping"}]}]});this.S=J;this.T=y;this.C=null;this.fade=new g.Ex(this,250,!0,100);g.X(this,this.fade);g.lq(this.T,"ytp-show-cards-title",g.un(J.Y()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.uI(!0)}; Lc3=function(J,y){g.z.call(this,{j:"div",N:"ytp-cards-teaser",D:[{j:"div",N:"ytp-cards-teaser-box"},{j:"div",N:"ytp-cards-teaser-text",D:J.Y().X("player_new_info_card_format")?[{j:"button",N:"ytp-cards-teaser-info-icon",U:{"aria-label":"Mostrar tarjetas","aria-haspopup":"true"},D:[gDR()]},{j:"img",N:"ytp-cards-teaser-channel-avatar",U:{alt:"","aria-hidden":"true"}},{j:"span",N:"ytp-cards-teaser-label",TK:"{{text}}"},{j:"button",N:"ytp-cards-teaser-close-button",U:{"aria-label":"Cerrar"},D:[g.Lf()]}]: [{j:"span",N:"ytp-cards-teaser-label",TK:"{{text}}"}]}]});var v=this;this.S=J;this.o5=y;this.fade=new g.Ex(this,250,!1,250);this.C=null;this.G=new g.Kx(this.QGX,300,this);this.L=new g.Kx(this.IEY,2E3,this);this.W=[];this.T=null;this.B=new g.Kx(function(){v.element.style.margin="0"},250); this.onClickCommand=this.J=null;g.X(this,this.fade);g.X(this,this.G);g.X(this,this.L);g.X(this,this.B);J.Y().X("player_new_info_card_format")?(g.d7(J.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.uA("ytp-cards-teaser-close-button"),"click",this.tN),this.Z(this.uA("ytp-cards-teaser-info-icon"),"click",this.fn),this.Z(this.uA("ytp-cards-teaser-label"),"click",this.fn)):this.listen("click",this.fn);this.Z(y.element,"mouseover",this.Pl);this.Z(y.element,"mouseout",this.D2);this.Z(J,"cardsteasershow", this.FQK);this.Z(J,"cardsteaserhide",this.p8);this.Z(J,"cardstatechange",this.rF);this.Z(J,"presentingplayerstatechange",this.rF);this.Z(J,"appresize",this.xx);this.Z(J,"onShowControls",this.xx);this.Z(J,"onHideControls",this.yv);this.listen("mouseenter",this.cT)}; tC6=function(J){g.z.call(this,{j:"button",kB:[yu.BUTTON,yu.TITLE_NOTIFICATIONS],U:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},D:[{j:"div",N:yu.TITLE_NOTIFICATIONS_ON,U:{title:"Dejar de recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},D:[g.xH()]},{j:"div",N:yu.TITLE_NOTIFICATIONS_OFF,U:{title:"Recibir notificaciones sobre todos los videos nuevos","aria-label":"Notificaciones de la suscripci\u00f3n"},D:[{j:"svg",U:{fill:"#fff",height:"24px", viewBox:"0 0 24 24",width:"24px"},D:[{j:"path",U:{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=J;this.C=!1;J.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Recibir notificaciones sobre todos los videos nuevos")}; Wcr=function(J,y){J.C=y;J.element.classList.toggle(yu.NOTIFICATIONS_ENABLED,J.C);var v=J.api.getVideoData();v?(y=y?v.V1:v.LM)?(J=J.api.X1())?qJ(J,y):g.jv(Error("No innertube service available when updating notification preferences.")):g.jv(Error("No update preferences command available.")):g.jv(Error("No video data when updating notification preferences."))}; xMx=function(J,y,v){var d=d===void 0?800:d;var P=P===void 0?600:P;var A=document.location.protocol;J=Ns2(A+"//"+J+"/signin?context=popup","feature",y,"next",A+"//"+location.hostname+"/post_login");asP(J,v,d,P)}; asP=function(J,y,v,d){v=v===void 0?800:v;d=d===void 0?600:d;if(J=g.WD(window,J,"loginPopup","width="+v+",height="+d+",resizable=yes,scrollbars=yes"))Wo6(function(){y()}),J.moveTo((screen.width-v)/2,(screen.height-d)/2)}; g.v7=function(J,y,v,d,P,A,T,M,n,Y,S,V){J=J.charAt(0)+J.substring(1).toLowerCase();v=v.charAt(0)+v.substring(1).toLowerCase();if(y==="0"||y==="-1")y=null;if(d==="0"||d==="-1")d=null;var L=S.Y(),t=L.userDisplayName&&g.z3(L);g.z.call(this,{j:"div",kB:["ytp-button","ytp-sb"],D:[{j:"div",N:"ytp-sb-subscribe",U:t?{title:g.yY("Suscribirse como $USER_NAME",{USER_NAME:L.userDisplayName}),"aria-label":"Suscribirse al canal","data-tooltip-image":WT(L),"data-tooltip-opaque":String(g.un(L)),tabindex:"0",role:"button"}: {"aria-label":"Suscribirse al canal"},D:[{j:"div",N:"ytp-sb-text",D:[{j:"div",N:"ytp-sb-icon"},J]},y?{j:"div",N:"ytp-sb-count",TK:y}:""]},{j:"div",N:"ytp-sb-unsubscribe",U:t?{title:g.yY("Suscrito como $USER_NAME",{USER_NAME:L.userDisplayName}),"aria-label":"Anular la suscripci\u00f3n al canal","data-tooltip-image":WT(L),"data-tooltip-opaque":String(g.un(L)),tabindex:"0",role:"button"}:{"aria-label":"Anular la suscripci\u00f3n al canal"},D:[{j:"div",N:"ytp-sb-text",D:[{j:"div",N:"ytp-sb-icon"},v]}, d?{j:"div",N:"ytp-sb-count",TK:d}:""]}],U:{"aria-live":"polite"}});var W=this;this.channelId=T;this.S=S;this.J=V;var c=this.uA("ytp-sb-subscribe"),b=this.uA("ytp-sb-unsubscribe");A&&g.d7(this.element,"ytp-sb-classic");if(P){M?this.C():this.T();var B=function(){if(L.AY){var C=W.channelId;if(n||Y){var U={c:C};var N;g.Qv.isInitialized()&&(N=iAU(U));U=N||"";if(N=S.getVideoData())if(N=N.subscribeCommand){var Jc=S.X1();Jc?(qJ(Jc,N,{botguardResponse:U,feature:n}),S.Rf("SUBSCRIBE",C)):g.jv(Error("No innertube service available when updating subscriptions."))}else g.jv(Error("No subscribe command in videoData.")); else g.jv(Error("No video data available when updating subscription."))}b.focus();b.removeAttribute("aria-hidden");c.setAttribute("aria-hidden","true")}else xMx(g.PT(W.S.Y()),"sb_button",W.W)},q=function(){var C=W.channelId; if(n||Y){var U=S.getVideoData();qJ(S.X1(),U.unsubscribeCommand,{feature:n});S.Rf("UNSUBSCRIBE",C)}c.focus();c.removeAttribute("aria-hidden");b.setAttribute("aria-hidden","true")}; this.Z(c,"click",B);this.Z(b,"click",q);this.Z(c,"keypress",function(C){C.keyCode===13&&B(C)}); this.Z(b,"keypress",function(C){C.keyCode===13&&q(C)}); this.Z(S,"SUBSCRIBE",this.C);this.Z(S,"UNSUBSCRIBE",this.T);this.J&&t&&(nxj(S),rx(S,c,this),rx(S,b,this))}else g.d7(c,"ytp-sb-disabled"),g.d7(b,"ytp-sb-disabled")}; DMr=function(J){g.z.call(this,{j:"div",N:"ytp-title-channel",D:[{j:"div",N:"ytp-title-beacon"},{j:"a",N:"ytp-title-channel-logo",U:{href:"{{channelLink}}",target:J.Y().K,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{j:"div",N:"ytp-title-expanded-overlay",U:{"aria-hidden":"{{flyoutUnfocusable}}"},D:[{j:"div",N:"ytp-title-expanded-heading",D:[{j:"div",N:"ytp-title-expanded-title",D:[{j:"a",TK:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:J.Y().K,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{j:"div",N:"ytp-title-expanded-subtitle",TK:"{{expandedSubtitle}}",U:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var y=this;this.api=J;this.channel=this.uA("ytp-title-channel");this.T=this.uA("ytp-title-channel-logo");this.channelName=this.uA("ytp-title-expanded-title");this.L=this.uA("ytp-title-expanded-overlay");this.J=this.C=this.subscribeButton=null;this.W=!1;J.createClientVe(this.T,this,36925);J.createClientVe(this.channelName,this, 37220);g.un(this.api.Y())&&OJm(this);this.Z(J,"videodatachange",this.Mx);this.Z(J,"videoplayerreset",this.Mx);this.Z(this.channelName,"click",function(v){y.api.logClick(y.channelName);g.WD(window,g_6(y));v.preventDefault()}); this.Z(this.T,"click",this.Mbb);this.Mx()}; cdR=function(J){if(!J.api.Y().L8){var y=J.api.getVideoData(),v=new g.v7("Suscribirse",null,"Suscrito/a",null,!0,!1,y.uC,y.subscribed,"channel_avatar",null,J.api,!0);J.api.createServerVe(v.element,J);var d;J.api.setTrackingParams(v.element,((d=y.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);J.Z(v.element,"click",function(){J.api.logClick(v.element)}); J.subscribeButton=v;g.X(J,J.subscribeButton);J.subscribeButton.yk(J.L);J.subscribeButton.hide();var P=new tC6(J.api);J.C=P;g.X(J,P);P.yk(J.L);P.hide();J.Z(J.api,"SUBSCRIBE",function(){y.qk&&(P.show(),J.api.logVisibility(P.element,!0))}); J.Z(J.api,"UNSUBSCRIBE",function(){y.qk&&(P.hide(),J.api.logVisibility(P.element,!1),Wcr(P,!1))})}}; OJm=function(J){var y=J.api.Y();cdR(J);J.updateValue("flyoutUnfocusable","true");J.updateValue("channelTitleFocusable","-1");J.updateValue("shouldHideExpandedTitleForA11y","true");J.updateValue("shouldHideExpandedSubtitleForA11y","true");y.T||y.Vk||(J.Z(J.channel,"mouseenter",J.j2),J.Z(J.channel,"mouseleave",J.Xc),J.Z(J.channel,"focusin",J.j2),J.Z(J.channel,"focusout",function(v){J.channel.contains(v.relatedTarget)||J.Xc()})); J.J=new g.Kx(function(){J.isExpanded()&&(J.api.logVisibility(J.channelName,!1),J.subscribeButton&&(J.subscribeButton.hide(),J.api.logVisibility(J.subscribeButton.element,!1)),J.C&&(J.C.hide(),J.api.logVisibility(J.C.element,!1)),J.channel.classList.remove("ytp-title-expanded"),J.channel.classList.add("ytp-title-show-collapsed"))},500); g.X(J,J.J);J.Z(J.channel,Grv,function(){bJH(J)}); J.Z(J.api,"onHideControls",J.EU);J.Z(J.api,"appresize",J.EU);J.Z(J.api,"fullscreentoggled",J.EU)}; bJH=function(J){J.channel.classList.remove("ytp-title-show-collapsed");J.channel.classList.remove("ytp-title-show-expanded")}; Fc2=function(J){var y=J.api.getPlayerSize();return g.un(J.api.Y())&&y.width>=524}; g_6=function(J){var y=J.api.Y(),v=J.api.getVideoData(),d=g.aj(y)+v.Ky;g.sH(v)&&(d="https://music.youtube.com"+v.Ky);if(!g.un(y))return d;y={};g.xt(J.api,"addEmbedsConversionTrackingParams",[y]);return g.al(d,y)}; d_=function(J){var y=g.vy({"aria-haspopup":"true"});g.yP.call(this,y,J);this.listen("keydown",this.C)}; P7=function(J,y){J.element.setAttribute("aria-haspopup",String(y))}; jnr=function(J,y){g.z.call(this,{j:"div",N:"ytp-user-info-panel",U:{"aria-label":"Informaci\u00f3n del usuario"},D:J.Y().AY&&!J.X("embeds_web_always_enable_signed_out_state")?[{j:"div",N:"ytp-user-info-panel-icon",TK:"{{icon}}"},{j:"div",N:"ytp-user-info-panel-content",D:[{j:"div",N:"ytp-user-info-panel-info",U:{tabIndex:"{{userInfoFocusable}}",role:"text"},TK:"{{watchingAsUsername}}"},{j:"div",N:"ytp-user-info-panel-info",U:{tabIndex:"{{userInfoFocusable2}}",role:"text"},TK:"{{watchingAsEmail}}"}]}]: [{j:"div",N:"ytp-user-info-panel-icon",TK:"{{icon}}"},{j:"div",N:"ytp-user-info-panel-content",D:[{j:"div",D:[{j:"text",U:{tabIndex:"{{userInfoFocusable}}"},TK:"Saliste de la cuenta"}]},{j:"div",N:"ytp-user-info-panel-login",D:[{j:"a",U:{tabIndex:"{{userInfoFocusable2}}",role:"button"},TK:J.Y().L8?"":"Acceder a YouTube"}]}]}]});this.Ly=J;this.C=y;J.Y().AY||J.Y().L8||this.Z(this.uA("ytp-user-info-panel-login"),"click",this.mM);this.closeButton=new g.z({j:"button",kB:["ytp-collapse","ytp-button"],U:{title:"Cerrar"}, D:[g.b7()]});this.closeButton.yk(this.element);g.X(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.ED);this.Mx()}; B1m=function(J,y,v){g.e_.call(this,J);this.A9=y;this.f0=v;this.getVideoUrl=new d_(6);this.Ki=new d_(5);this.U2=new d_(4);this.P$=new d_(3);this.RT=new g.yP(g.vy({href:"{{href}}",target:this.S.Y().K},void 0,!0),2,"Solucionar problema de reproducci\u00f3n");this.showVideoInfo=new g.yP(g.vy(),1,"Estad\u00edsticas");this.pw=new g.T_({j:"div",kB:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:"false",tabindex:"1"},TK:"{{text}}"});this.MO=new j_(this.S,this.pw);this.Ug=this.nJ=null;g.un(this.S.Y())&& (this.closeButton=new g.z({j:"button",kB:["ytp-collapse","ytp-button"],U:{title:"Cerrar"},D:[g.b7()]}),g.X(this,this.closeButton),this.closeButton.yk(this.element),this.closeButton.listen("click",this.Wa,this));g.un(this.S.Y())&&(this.Tk=new g.yP(g.vy(),8,"Cuenta"),g.X(this,this.Tk),this.Wq(this.Tk,!0),this.Tk.listen("click",this.Rgb,this),J.createClientVe(this.Tk.element,this.Tk,137682));this.S.Y().ox&&(this.UY=new Sk("En bucle",7),g.X(this,this.UY),this.Wq(this.UY,!0),this.UY.listen("click",this.gDA, this),J.createClientVe(this.UY.element,this.UY,28661));g.X(this,this.getVideoUrl);this.Wq(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.lEK,this);J.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.X(this,this.Ki);this.Wq(this.Ki,!0);this.Ki.listen("click",this.zWB,this);J.createClientVe(this.Ki.element,this.Ki,28660);g.X(this,this.U2);this.Wq(this.U2,!0);this.U2.listen("click",this.i8b,this);J.createClientVe(this.U2.element,this.U2,28658);g.X(this,this.P$);this.Wq(this.P$, !0);this.P$.listen("click",this.nDk,this);g.X(this,this.RT);this.Wq(this.RT,!0);this.RT.listen("click",this.pqy,this);g.X(this,this.showVideoInfo);this.Wq(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.BnB,this);g.X(this,this.pw);this.pw.listen("click",this.vBB,this);g.X(this,this.MO);y=document.queryCommandSupported&&document.queryCommandSupported("copy");z33("Chromium")>=43&&(y=!0);z33("Firefox")<=40&&(y=!1);y&&(this.nJ=new g.z({j:"textarea",N:"ytp-html5-clipboard",U:{readonly:"", tabindex:"-1"}}),g.X(this,this.nJ),this.nJ.yk(this.element));var d;(d=this.Tk)==null||d.setIcon(FNR());var P;(P=this.UY)==null||P.setIcon(rXd());this.P$.setIcon({j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{"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.RT.setIcon(xWj());this.showVideoInfo.setIcon(ORx());this.Z(J,"onLoopChange",this.onLoopChange);this.Z(J,"videodatachange",this.onVideoDataChange);e4U(this);mMc(this,this.S.getVideoData())}; AY=function(J,y){var v=!1;if(J.nJ){var d=J.nJ.element;d.value=y;d.select();try{v=document.execCommand("copy")}catch(P){}}v?J.A9.p8():(J.pw.D1(y,"text"),g.qX(J.A9,J.MO),xq(J.pw.element),J.nJ&&(J.nJ=null,e4U(J)));return v}; mMc=function(J,y){var v=J.S.Y(),d=J.S.getPresentingPlayerType()===2,P=!d||y.isListed;P=!v.Cy&&!!y.videoId&&P;v.playerStyle!=="play"?v="https://support.google.com/youtube/?p=report_playback":(v={contact_type:"playbackissue",html5:1,ei:y.eventId,v:y.videoId,p:"movies_playback"},y.T&&(v.fmt=y.T.itag),y.clientPlaybackNonce&&(v.cpn=y.clientPlaybackNonce),y.partnerId&&(v.partnerid=y.partnerId),v=g.al("//support.google.com/googleplay/",v));J.U2.eH(P&&y.allowEmbed);J.getVideoUrl.eH(P);J.Ki.eH(P&&!y.isLivePlayback); J.RT.D1(v,"href");var A;(A=J.UY)==null||A.eH(!y.isLivePlayback&&!d);var T;(T=J.Tk)==null||T.eH(!d)}; e4U=function(J){var y=!!J.nJ;g.J_(J.P$,y?"Copiar informaci\u00f3n de depuraci\u00f3n":"Obtener la informaci\u00f3n de depuraci\u00f3n");P7(J.P$,!y);g.J_(J.U2,y?"Copiar c\u00f3digo de inserci\u00f3n":"Obtener el c\u00f3digo de inserci\u00f3n");P7(J.U2,!y);g.J_(J.getVideoUrl,y?"Copiar URL del video":"Obtener la URL del video");P7(J.getVideoUrl,!y);g.J_(J.Ki,y?"Copiar URL del video en el momento actual":"Obtener la URL del video en el momento actual");P7(J.Ki,!y);J.U2.setIcon(y?t$2():null);J.getVideoUrl.setIcon(y? WC():null);J.Ki.setIcon(y?WC():null)}; qBc=function(J){return g.un(J.S.Y())?J.Tk:J.UY}; $M2=function(J,y){g.Be.call(this,J);this.f0=y;this.W=new g.gf(this);this.zK=new g.Kx(this.CJY,1E3,this);this.Cy=this.J=null;g.X(this,this.W);g.X(this,this.zK);y=this.S.Y();J.createClientVe(this.element,this,28656);g.d7(this.element,"ytp-contextmenu");this.S.Y().experiments.BX("delhi_modern_web_player")&&g.nh(y)&&g.d7(this.element,"ytp-delhi-modern-contextmenu");rdr(this);this.hide()}; rdr=function(J){g.j$(J.W);var y=J.S.Y();y.playerStyle==="gvn"||y.T||y.Vk||(y=J.S.DB(),J.W.Z(y,"contextmenu",J.Hyb),J.W.Z(y,"touchstart",J.onTouchStart,null,!0),J.W.Z(y,"touchmove",J.Lt,null,!0),J.W.Z(y,"touchend",J.Lt,null,!0))}; o_6=function(J){J.S.isFullscreen()?g.Hp(J.S,J.element,10):J.yk(Q7(J).body)}; T1=function(J,y,v){v=v===void 0?240:v;g.z.call(this,{j:"button",kB:["ytp-button","ytp-copylink-button"],U:{title:"{{title-attr}}","data-tooltip-opaque":String(g.un(J.Y()))},D:[{j:"div",N:"ytp-copylink-icon",TK:"{{icon}}"},{j:"div",N:"ytp-copylink-title",TK:"Copiar v\u00ednculo",U:{"aria-hidden":"true"}}]});this.api=J;this.C=y;this.T=v;this.visible=!1;this.tooltip=this.C.G4();y=J.Y();this.tooltip.element.setAttribute("aria-live","polite");g.lq(this.element,"ytp-show-copylink-title",g.un(y));J.createClientVe(this.element, this,86570);this.listen("click",this.onClick);this.Z(J,"videodatachange",this.Mx);this.Z(J,"videoplayerreset",this.Mx);this.Z(J,"appresize",this.Mx);this.Mx();this.addOnDisposeCallback(g.qr(this.tooltip,this.element))}; CtH=function(J){var y=J.api.Y(),v=J.api.getVideoData(),d=J.api.DB().getPlayerSize().width;y=y.J;return!!v.videoId&&d>=J.T&&v.vz&&!g.n5(v)&&!J.api.isEmbedsShortsMode()&&!y}; h4H=function(J){J.updateValue("icon",YH());if(J.api.Y().T)J.tooltip.ys(J.element,"Se copi\u00f3 el v\u00ednculo en el portapapeles");else{J.updateValue("title-attr","Se copi\u00f3 el v\u00ednculo en el portapapeles");J.tooltip.O3();J.tooltip.ys(J.element);var y=J.listen("mouseleave",function(){J.y8(y);J.Mx();J.tooltip.j0()})}}; Isr=function(J,y){return g.f(function(v){if(v.T==1)return g.bR(v,2),g.h(v,navigator.clipboard.writeText(y),4);if(v.T!=2)return v.return(!0);g.BP(v);var d=v.return,P=!1,A=g.Lj("TEXTAREA");A.value=y;A.setAttribute("readonly","");var T=J.api.getRootNode();T.appendChild(A);if(HN){var M=window.getSelection();M.removeAllRanges();var n=document.createRange();n.selectNodeContents(A);M.addRange(n);A.setSelectionRange(0,y.length)}else A.select();try{P=document.execCommand("copy")}catch(Y){}T.removeChild(A); return d.call(v,P)})}; pEd=function(J){g.z.call(this,{j:"div",N:"ytp-doubletap-ui-legacy",D:[{j:"div",N:"ytp-doubletap-fast-forward-ve"},{j:"div",N:"ytp-doubletap-rewind-ve"},{j:"div",N:"ytp-doubletap-static-circle",D:[{j:"div",N:"ytp-doubletap-ripple"}]},{j:"div",N:"ytp-doubletap-overlay-a11y"},{j:"div",N:"ytp-doubletap-seek-info-container",D:[{j:"div",N:"ytp-doubletap-arrows-container",D:[{j:"span",N:"ytp-doubletap-base-arrow"},{j:"span",N:"ytp-doubletap-base-arrow"},{j:"span",N:"ytp-doubletap-base-arrow"}]},{j:"div", N:"ytp-doubletap-tooltip",D:[{j:"div",N:"ytp-seek-icon-text-container",D:[{j:"div",N:"ytp-seek-icon",TK:"{{seekIcon}}"},{j:"div",N:"ytp-chapter-seek-text-legacy",TK:"{{seekText}}"}]},{j:"div",N:"ytp-doubletap-tooltip-label",TK:"{{seekTime}}"}]}]}]});this.S=J;this.W=new g.Kx(this.show,10,this);this.T=new g.Kx(this.hide,700,this);this.G=this.J=0;this.zK=this.L=!1;this.C=this.uA("ytp-doubletap-static-circle");g.X(this,this.W);g.X(this,this.T);this.hide();this.B=this.uA("ytp-doubletap-fast-forward-ve"); this.K=this.uA("ytp-doubletap-rewind-ve");this.S.createClientVe(this.B,this,28240);this.S.createClientVe(this.K,this,28239);this.S.logVisibility(this.B,!0);this.S.logVisibility(this.K,!0);this.L=J.X("web_show_cumulative_seek_time");this.zK=J.X("web_center_static_circles")}; UMU=function(J,y){y=g.yY("$TOTAL_SEEK_TIME\u00a0segundos",{TOTAL_SEEK_TIME:y.toString()});J.updateValue("seekTime",y)}; fsU=function(J){Fs.call(this,J,!1,!0);this.wj=[];this.L8=[];this.element.setAttribute("data-overlay-order","9");this.B=!0;this.badge.element.classList.add("ytp-featured-product");this.If=new g.z({j:"div",N:"ytp-featured-product-open-in-new"});g.X(this,this.If);this.countdownTimer=new g.z({j:"text",N:"ytp-featured-product-countdown",TK:"{{content}}"});this.countdownTimer.hide();g.X(this,this.countdownTimer);this.T=new g.z({j:"div",N:"ytp-featured-product-trending",D:[{j:"div",N:"ytp-featured-product-trending-icon"}, {j:"text",N:"ytp-featured-product-trending-text",TK:"{{trendingOffer}}"}]});this.T.hide();g.X(this,this.T);this.overflowButton=new g.z({j:"button",kB:["ytp-featured-product-overflow-icon","ytp-button"],U:{"aria-haspopup":"true"}});this.overflowButton.hide();g.X(this,this.overflowButton);this.G=new g.z({j:"text",N:"ytp-featured-product-exclusive-countdown",TK:"{{content}}",U:{id:"exclusiveCountdown","aria-hidden":"true"}});this.G.hide();g.X(this,this.G);this.L=new g.z({j:"div",N:"ytp-featured-product-exclusive-container", U:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},D:[{j:"div",N:"ytp-featured-product-exclusive-badge-container",D:[{j:"div",N:"ytp-featured-product-exclusive-badge",D:[{j:"text",N:"ytp-featured-product-exclusive-badge-text",TK:"{{exclusive}}",U:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.G]});this.L.hide();g.X(this,this.L);this.banner=new g.z({j:"a",N:"ytp-featured-product-container",D:[{j:"div",N:"ytp-featured-product-thumbnail",D:[{j:"img",U:{src:"{{thumbnail}}"}},this.If]},{j:"div", N:"ytp-featured-product-details",D:[{j:"text",N:"ytp-featured-product-title",TK:"{{title}}"},this.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",N:"ytp-featured-product-price-container",U:{"aria-label":"{{priceA11yText}}"},D:[{j:"text",N:"ytp-featured-product-price-when-promotion-text-enabled",TK:"{{price}}",U:{"aria-hidden":"true"}},{j:"text",N:"ytp-featured-product-promotion-text",TK:"{{promotionText}}",U:{"aria-hidden":"true"}}]}:{j:"div",U:{"aria-label":"{{priceA11yText}}"}, D:[{j:"text",N:"ytp-featured-product-price",TK:"{{price}}",U:{"aria-hidden":"true"}},{j:"text",N:"ytp-featured-product-sales-original-price",TK:"{{salesOriginalPrice}}",U:{"aria-hidden":"true"}},{j:"text",N:"ytp-featured-product-price-drop-reference-price",TK:"{{priceDropReferencePrice}}",U:{"aria-hidden":"true"}}]},this.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{j:"div",N:"ytp-featured-product-when-promotion-text-enabled",D:[{j:"text",N:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", TK:"{{affiliateDisclaimer}}"},this.T,{j:"text",N:"ytp-featured-product-vendor-when-promotion-text-enabled",TK:"{{vendor}}"}]}:{j:"div",D:[{j:"text",N:"ytp-featured-product-affiliate-disclaimer",TK:"{{affiliateDisclaimer}}"},this.S.X("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.L:null,this.T,{j:"text",N:"ytp-featured-product-vendor",TK:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.X(this,this.banner);this.banner.yk(this.J.element);this.Z(this.S,g.Xz("featured_product"), this.VCB);this.Z(this.S,g.NA("featured_product"),this.G3);this.Z(this.S,"videodatachange",this.onVideoDataChange);this.Z(this.overflowButton.element,"click",this.LX);this.Z(J,"featuredproductdismissed",this.Ed)}; iJd=function(J){var y,v;J=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:v.itemData;var d,P,A;return(J==null||!J.affiliateDisclaimer)&&(J==null?0:(d=J.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(J==null?0:(P=J.exclusivesData)==null?0:P.expirationTimestampMs)&&(J==null?0:(A=J.exclusivesData)==null?0:A.exclusiveOfferCountdownText)?!0:!1}; HJP=function(J){var y,v,d,P,A=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:(d=v.itemData)==null?void 0:(P=d.exclusivesData)==null?void 0:P.expirationTimestampMs;y=(Number(A)-Date.now())/1E3;if(y>0){if(y<604800){var T,M,n,Y;v=(T=J.C)==null?void 0:(M=T.bannerData)==null?void 0:(n=M.itemData)==null?void 0:(Y=n.exclusivesData)==null?void 0:Y.exclusiveOfferCountdownText;if(v!==void 0)for(T=Date.now(),M=g.D(v),n=M.next();!n.done;n=M.next())if(n=n.value,n!==void 0&&n.text!==void 0&&(Y=Number(n.textDisplayStartTimestampMs), !isNaN(Y)&&T>=Y)){n.insertCountdown?(y=n.text.replace(/\$0/,String(Ik({seconds:y}))),J.G.D1(y)):J.G.D1(n.text);J.G.show();break}}var S,V,L,t;J.L.update({exclusive:(S=J.C)==null?void 0:(V=S.bannerData)==null?void 0:(L=V.itemData)==null?void 0:(t=L.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});J.L.show();lC(J);var W;(W=J.H$)==null||W.start()}else u82(J)}; u82=function(J){var y;(y=J.H$)==null||y.stop();J.G.hide();J.L.hide();M1(J)}; XE2=function(J){var y,v,d=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:v.itemData;return J.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null}; N12=function(J){var y,v,d=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:v.itemData,P,A;if(!(d!=null&&d.priceReplacementText||J.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(P=d.dealsData)==null?0:(A=P.sales)==null?0:A.originalPrice)){var T,M;return d==null?void 0:(T=d.dealsData)==null?void 0:(M=T.sales)==null?void 0:M.originalPrice}return null}; R4j=function(J){var y,v,d=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:v.itemData,P,A,T,M;if(!((d==null?0:d.priceReplacementText)||J.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(P=d.dealsData)==null?0:(A=P.sales)==null?0:A.originalPrice))&&(d==null?0:(T=d.dealsData)==null?0:(M=T.priceDrop)==null?0:M.referencePrice)){var n,Y;return d==null?void 0:(n=d.dealsData)==null?void 0:(Y=n.priceDrop)==null?void 0:Y.referencePrice}return null}; Kc6=function(J){var y,v,d=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:v.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&J.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var P;return(d==null?void 0:d.price)+" "+(d==null?void 0:(P=d.promotionText)==null?void 0:P.content)}var A,T;if(d==null?0:(A=d.dealsData)==null?0:(T=A.sales)==null?0:T.originalPrice){var M,n;return d==null?void 0:(M=d.dealsData)== null?void 0:(n=M.sales)==null?void 0:n.salesPriceAccessibilityLabel}var Y,S;if(d==null?0:(Y=d.dealsData)==null?0:(S=Y.priceDrop)==null?0:S.referencePrice){var V,L;return(d==null?void 0:d.price)+" "+(d==null?void 0:(V=d.dealsData)==null?void 0:(L=V.priceDrop)==null?void 0:L.referencePrice)}return d==null?void 0:d.price}; z4U=function(J){if(J.S.X("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var y,v,d;return J.T.zI?null:(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:(d=v.itemData)==null?void 0:d.vendorName}var P,A,T,M,n,Y;return J.T.zI||J.L.zI||((P=J.C)==null?0:(A=P.bannerData)==null?0:(T=A.itemData)==null?0:T.affiliateDisclaimer)?null:(M=J.C)==null?void 0:(n=M.bannerData)==null?void 0:(Y=n.itemData)==null?void 0:Y.vendorName}; E_x=function(J,y){nE(J);if(y){var v=g.LF.getState().entities;v=Ei(v,"featuredProductsEntity",y);if(v!=null&&v.productsData){y=[];v=g.D(v.productsData);for(var d=v.next();!d.done;d=v.next()){d=d.value;var P=void 0;if((P=d)!=null&&P.identifier&&d.featuredSegments){J.wj.push(d);var A=void 0;P=g.D((A=d)==null?void 0:A.featuredSegments);for(A=P.next();!A.done;A=P.next()){var T=A.value;A=krP(T.startTimeSec);A!==void 0&&(T=krP(T.endTimeSec),y.push(new g.uI(A*1E3,T===void 0?0x7ffffffffffff:T*1E3,{id:d.identifier, namespace:"featured_product"})))}}}J.S.PF(y)}}}; M1=function(J){if(J.trendingOfferEntityKey){var y=g.LF.getState().entities;if(y=Ei(y,"trendingOfferEntity",J.trendingOfferEntityKey)){var v,d,P;y.encodedSkuId!==((v=J.C)==null?void 0:(d=v.bannerData)==null?void 0:(P=d.itemData)==null?void 0:P.encodedOfferSkuId)?lC(J):(J.T.update({trendingOffer:y.shortLabel+" \u2022 "+y.countLabel}),J.T.show(),J.banner.update({vendor:z4U(J)}))}else lC(J)}else lC(J)}; lC=function(J){J.T.hide();J.banner.update({vendor:z4U(J)})}; nE=function(J){J.wj=[];J.G3();J.S.tI("featured_product")}; Qn6=function(J){var y,v,d,P,A=(y=J.C)==null?void 0:(v=y.bannerData)==null?void 0:(d=v.itemData)==null?void 0:(P=d.hiddenProductOptions)==null?void 0:P.dropTimestampMs;y=(Number(A)-Date.now())/1E3;J.countdownTimer.D1(Ik({seconds:y}));if(y>0){var T;(T=J.yl)==null||T.start()}}; ZJj=function(J){var y;(y=J.yl)==null||y.stop();J.countdownTimer.hide()}; krP=function(J){if(J!==void 0&&J.trim()!==""&&(J=Math.trunc(Number(J.trim())),!(isNaN(J)||J<0)))return J}; dpH=function(J,y,v){g.z.call(this,{j:"div",kB:["ytp-info-panel-action-item"],D:[{j:"div",N:"ytp-info-panel-action-item-disclaimer",TK:"{{disclaimer}}"},{j:"a",kB:["ytp-info-panel-action-item-button","ytp-button"],U:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},D:[{j:"div",N:"ytp-info-panel-action-item-icon",TK:"{{icon}}"},{j:"div",N:"ytp-info-panel-action-item-label",TK:"{{label}}"}]}]});this.S=J;this.C=v;this.disclaimer=this.uA("ytp-info-panel-action-item-disclaimer");this.button= this.uA("ytp-info-panel-action-item-button");this.ZO=!1;this.S.createServerVe(this.element,this,!0);this.listen("click",this.onClick);J="";v=g.R(y==null?void 0:y.onTap,Bg);var d=g.R(v,g.rD);this.ZO=!1;d?(J=d.url||"",J.startsWith("//")&&(J="https:"+J),this.ZO=!0,g.Yp(this.button,g.nn(J))):(d=g.R(v,wE3))&&!this.C?((J=d.phoneNumbers)&&J.length>0?(J="sms:"+J[0],d.messageText&&(J+="?&body="+encodeURI(d.messageText))):J="",this.ZO=!0,g.Yp(this.button,g.nn(J,[J7j]))):(v=g.R(v,y7c))&&!this.C&&(J=v.phoneNumber? "tel:"+v.phoneNumber:"",this.ZO=!0,g.Yp(this.button,g.nn(J,[vh2])));var P;if(v=(P=y.disclaimerText)==null?void 0:P.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var A;this.update({label:(A=y.bodyText)==null?void 0:A.content,icon:Ox(),disclaimer:v})}else{this.disclaimer.style.display="none";var T;this.update({label:(T=y.bodyText)==null?void 0:T.content,icon:Ox()})}this.S.setTrackingParams(this.element,y.trackingParams||null);this.ZO&&(this.T={externalLinkData:{url:J}})}; P3v=function(J,y){var v=vC();g.EH.call(this,J,{j:"div",N:"ytp-info-panel-detail-skrim",D:[{j:"div",N:"ytp-info-panel-detail",U:{role:"dialog",id:v},D:[{j:"div",N:"ytp-info-panel-detail-header",D:[{j:"div",N:"ytp-info-panel-detail-title",TK:"{{title}}"},{j:"button",kB:["ytp-info-panel-detail-close","ytp-button"],U:{"aria-label":"Cerrar"},D:[g.Lf()]}]},{j:"div",N:"ytp-info-panel-detail-body",TK:"{{body}}"},{j:"div",N:"ytp-info-panel-detail-items"}]}]},250);this.C=y;this.items=this.uA("ytp-info-panel-detail-items"); this.J=new g.gf(this);this.itemData=[];this.W=v;this.Z(this.uA("ytp-info-panel-detail-close"),"click",this.p8);this.Z(this.uA("ytp-info-panel-detail-skrim"),"click",this.p8);this.Z(this.uA("ytp-info-panel-detail"),"click",function(d){d.stopPropagation()}); g.X(this,this.J);this.S.createServerVe(this.element,this,!0);this.Z(J,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",J.getVideoData());this.hide()}; A7R=function(J,y){J=g.D(J.itemData);for(var v=J.next();!v.done;v=J.next())v=v.value,v.S.logVisibility(v.element,y)}; MY3=function(J,y){g.z.call(this,{j:"div",N:"ytp-info-panel-preview",U:{"aria-live":"assertive","aria-atomic":"true","aria-owns":y.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.un(J.Y()))},D:[{j:"div",N:"ytp-info-panel-preview-text",TK:"{{text}}"},{j:"div",N:"ytp-info-panel-preview-chevron",TK:"{{chevron}}"}]});var v=this;this.S=J;this.R_=this.C=this.videoId=null;this.J=this.showControls=this.T=!1;this.Z(this.element,"click",function(){J.logClick(v.element);J.H9();ZF(y)}); this.fade=new g.Ex(this,250,!1,100);g.X(this,this.fade);this.S.createServerVe(this.element,this,!0);this.Z(J,"videodatachange",this.onVideoDataChange);this.Z(J,"presentingplayerstatechange",this.MY);this.Z(this.S,"paidcontentoverlayvisibilitychange",this.K_);this.Z(this.S,"infopaneldetailvisibilitychange",this.K_);var d=J.getVideoData()||{};Ttc(d)&&l3m(this,d);this.Z(J,"onShowControls",this.V2);this.Z(J,"onHideControls",this.fX)}; l3m=function(J,y){if(!y.TP||!J.S.Zp()){var v=y.Qh||1E4,d=Ttc(y);J.C?y.videoId&&y.videoId!==J.videoId&&(g.Ew(J.C),J.videoId=y.videoId,d?(nhx(J,v,y),J.OS()):(J.p8(),J.C.dispose(),J.C=null)):d&&(y.videoId&&(J.videoId=y.videoId),nhx(J,v,y),J.OS())}}; Ttc=function(J){var y,v,d,P;return!!((y=J.EH)==null?0:(v=y.title)==null?0:v.content)||!!((d=J.EH)==null?0:(P=d.bodyText)==null?0:P.content)}; nhx=function(J,y,v){J.C&&J.C.dispose();J.C=new g.Kx(J.vZY,y,J);g.X(J,J.C);var d;y=((d=v.EH)==null?void 0:d.trackingParams)||null;J.S.setTrackingParams(J.element,y);var P;var A,T;if(v==null?0:(A=v.EH)==null?0:(T=A.title)==null?0:T.content){var M;d=(P=v.EH)==null?void 0:(M=P.title)==null?void 0:M.content;var n,Y;if((n=v.EH)==null?0:(Y=n.bodyText)==null?0:Y.content)d+=" \u2022 ";P=d}else P="";var S,V;v=((S=v.EH)==null?void 0:(V=S.bodyText)==null?void 0:V.content)||"";J.update({text:P+v,chevron:g.VK()})}; sir=function(J,y){J.C&&(g.k(y,8)?(J.T=!0,J.OS(),J.C.start()):(g.k(y,2)||g.k(y,64))&&J.videoId&&(J.videoId=null))}; sM=function(J){var y=null;try{y=J.toLocaleString("es-419",{style:"percent"})}catch(v){y=J.toLocaleString(void 0,{style:"percent"})}return y}; Yl=function(J,y){var v=0;J=g.D(J);for(var d=J.next();!(d.done||d.value.startTime>y);d=J.next())v++;return v===0?v:v-1}; YDP=function(J,y){for(var v=0,d=g.D(J),P=d.next();!P.done;P=d.next()){P=P.value;if(y=P.timeRangeStartMillis&&y0?y[0]:null;var v=g.Mi("ytp-chrome-bottom"),d=g.Mi("ytp-ad-module");J.W=!(v==null||!v.contains(y));J.B=!(d==null||!d.contains(y));J.K=!(y==null||!y.hasAttribute("data-tooltip-target-fixed"));return y}; mpH=function(J,y,v){if(!J.L){if(y){J.tooltipRenderer=y;y=J.tooltipRenderer.text;var d=!1,P;(y==null?0:(P=y.runs)==null?0:P.length)&&y.runs[0].text&&(J.update({title:y.runs[0].text.toString()}),d=!0);g.dp(J.title,d);y=J.tooltipRenderer.detailsText;P=!1;var A;if((y==null?0:(A=y.runs)==null?0:A.length)&&y.runs[0].text){d=y.runs[0].text.toString();A=d.indexOf("$TARGET_ICON");if(A>-1)if(J.tooltipRenderer.targetId){y=[];d=d.split("$TARGET_ICON");var T=new g.dD({j:"span",N:"ytp-promotooltip-details-icon", D:[jix[J.tooltipRenderer.targetId]]});g.X(J,T);for(var M=[],n=g.D(d),Y=n.next();!Y.done;Y=n.next())Y=new g.dD({j:"span",N:"ytp-promotooltip-details-component",TK:Y.value}),g.X(J,Y),M.push(Y);d.length===2?(y.push(M[0].element),y.push(T.element),y.push(M[1].element)):d.length===1&&(A===0?(y.push(T.element),y.push(M[0].element)):(y.push(M[0].element),y.push(T.element)));A=y.length?y:null}else A=null;else A=d;if(A){if(typeof A!=="string")for(g.ag(J.details),P=g.D(A),A=P.next();!A.done;A=P.next())J.details.appendChild(A.value); else J.update({details:A});P=!0}}g.dp(J.details,P);P=J.tooltipRenderer.acceptButton;A=!1;var S,V,L;((S=g.R(P,g.Zc))==null?0:(V=S.text)==null?0:(L=V.runs)==null?0:L.length)&&g.R(P,g.Zc).text.runs[0].text&&(J.update({acceptButtonText:g.R(P,g.Zc).text.runs[0].text.toString()}),A=!0);g.dp(J.acceptButton,A);S=J.tooltipRenderer.dismissButton;V=!1;var t,W,c;((t=g.R(S,g.Zc))==null?0:(W=t.text)==null?0:(c=W.runs)==null?0:c.length)&&g.R(S,g.Zc).text.runs[0].text&&(J.update({dismissButtonText:g.R(S,g.Zc).text.runs[0].text.toString()}), V=!0);g.dp(J.dismissButton,V)}v&&(J.J=v);J.C=FIv(J);J.G=!1;J.S.Y().X("web_player_hide_nitrate_promo_tooltip")||J.eH(!0);ew3(J);J.zI&&!J.zK&&(J.zK=!0,J.b6.Tf(0));J.T&&J.S.logVisibility(J.element,J.zI)}}; xl=function(J){J.eH(!1);J.T&&J.S.logVisibility(J.element,J.zI)}; Btj=function(J){var y,v,d,P=((y=g.R(J.acceptButton,g.Zc))==null?void 0:(v=y.text)==null?void 0:(d=v.runs)==null?void 0:d.length)&&!!g.R(J.acceptButton,g.Zc).text.runs[0].text,A,T,M;y=((A=g.R(J.dismissButton,g.Zc))==null?void 0:(T=A.text)==null?void 0:(M=T.runs)==null?void 0:M.length)&&!!g.R(J.dismissButton,g.Zc).text.runs[0].text;return P||y}; ew3=function(J){var y;if(!(y=!J.C)){y=J.C;var v=window.getComputedStyle(y);y=v.display==="none"||v.visibility==="hidden"||y.getAttribute("aria-hidden")==="true"}if(y||J.S.isMinimized())J.eH(!1);else if(y=g.vf(J.C),y.width&&y.height){J.S.rA(J.element,J.C);var d=J.S.DB().getPlayerSize().height;v=g.vf(J.uA("ytp-promotooltip-container")).height;J.W?J.element.style.top=d-v-y.height-12+"px":J.K||(d=J.S.vn().height-v-y.height-12,J.element.style.top=d+"px");d=J.uA("ytp-promotooltip-pointer");var P=g.J3(J.C, J.S.getRootNode()),A=Number(J.element.style.left.replace(/[^\d\.]/g,""));J=J.S.isFullscreen()?18:12;d.style.left=P.x-A+y.width/2-J+"px";d.style.top=v+"px"}else J.eH(!1)}; OM=function(J){g.z.call(this,{j:"button",kB:["ytp-replay-button","ytp-button"],U:{title:"Volver a reproducir"},D:[g.cC()]});this.S=J;this.Z(J,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Hq(J.getPlayerStateObject());rx(this.S,this.element,this)}; g_=function(J,y){y=y===void 0?240:y;g.z.call(this,{j:"button",kB:["ytp-button","ytp-search-button"],U:{title:"Buscar","data-tooltip-opaque":String(g.un(J.Y()))},D:[{j:"div",N:"ytp-search-icon",TK:"{{icon}}"},{j:"div",N:"ytp-search-title",TK:"Buscar"}]});this.api=J;this.T=y;this.visible=!1;this.updateValue("icon",{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},D:[{j:"path",N:"ytp-svg-fill",U:{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"}}]}); J.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.C();this.Z(J,"appresize",this.C);this.Z(J,"videodatachange",this.C);rx(J,this.element,this)}; DO=function(J){g.z.call(this,{j:"div",N:"ytp-seek-overlay",D:[{j:"div",kB:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],D:[{j:"div",kB:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],D:[{j:"svg",U:{viewBox:"0 0 22 32",width:"22",height:"32"},D:[{j:"path",U:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]},{j:"div",N:"ytp-seek-overlay-duration",TK:"{{durationBack}}"}]},{j:"div",kB:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-forward"], D:[{j:"div",N:"ytp-seek-overlay-duration",TK:"{{durationForward}}"},{j:"div",kB:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],D:[{j:"svg",U:{viewBox:"0 0 22 32",width:"22",height:"32"},D:[{j:"path",U:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4",fill:"none"}}]}]}]},{j:"div",N:"ytp-seek-overlay-message",D:[{j:"div",N:"ytp-seek-overlay-message-icon",TK:"{{icon}}"},{j:"div",N:"ytp-seek-overlay-message-text",TK:"{{text}}"}]}]});var y=this;this.S=J;this.G=0;this.C="hidden"; this.zK=0;this.B=this.uA("ytp-seek-overlay-animation-back");this.K=this.uA("ytp-seek-overlay-animation-forward");this.Cy=this.uA("ytp-seek-overlay-message");this.L=new g.Kx(function(){qDT(y)},g.Zo(this.S.Y().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.X(this,this.L);this.S.createClientVe(this.K,this,28240);this.S.createClientVe(this.B,this,28239);this.S.logVisibility(this.K,!0);this.S.logVisibility(this.B,!0);this.hide()}; r76=function(J,y){J.T=J.J.animate([{offset:0,opacity:y,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:1}],{duration:200,fill:"forwards"});J.T.addEventListener("finish",function(){J.T=void 0;J.L.start();J.C="lingering"})}; $pR=function(J,y,v){v=v===void 0?!1:v;var d=[];d.push({offset:0,transform:"translateX("+(J.W===-1?30:-30)+"px)",opacity:v?"0":"1"});v&&d.push({offset:.5,opacity:"1"});d.push({offset:1,transform:"translateX(0)"});v=y.animate(d,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});y.querySelector("path").animate([{offset:0,d:J.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'},{offset:1,d:J.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'}],{duration:333, easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});return v}; oh2=function(J){if((0,g.GC)()-J.zK>=(g.Zo(J.S.Y().experiments,"web_player_seek_overlay_additional_arrow_threshold")||200)){var y=J.J.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);y.classList.add("ytp-seek-overlay-arrow-additional");y.classList.remove("ytp-seek-overlay-arrow-persistent");J.J.appendChild(y);$pR(J,y,!0).addEventListener("finish",function(){y.remove()})}}; qDT=function(J,y,v){v=v===void 0?!0:v;J.T=J.J.animate([{offset:0,opacity:y===void 0?1:y},{offset:1,opacity:0}],{duration:200,fill:"forwards",easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"});v&&(J.T.addEventListener("finish",function(){J.T=void 0;C3r(J);J.hide()}),J.C="fading-out")}; hwU=function(J){var y=Number(getComputedStyle(J.J).opacity),v;(v=J.T)==null||v.cancel();J.T=void 0;return y}; C3r=function(J){J.G=0;J.C="hidden";J.W=void 0;J.J=void 0;J.zK=0;J.L.stop();J.T=void 0}; I3r=function(J,y,v){J.updateValue("text",y);if(v){a:{switch(v){case "PREMIUM_STANDALONE":y=mWH();break a;case "PREMIUM_STANDALONE_CAIRO":y=B3R();break a}y=void 0}J.updateValue("icon",y)}y=g.D(J.Cy.getAnimations());for(v=y.next();!v.done;v=y.next())v.value.cancel();J.Cy.animate([{opacity:0,offset:0},{offset:.3,opacity:1},{offset:.7,opacity:1},{offset:1,opacity:0}],{duration:1400}).addEventListener("finish",function(){J.updateValue("text","");J.updateValue("icon","")})}; c7=function(J,y,v,d){d=d===void 0?240:d;g.z.call(this,{j:"button",kB:["ytp-button","ytp-share-button"],U:{title:"Compartir","aria-haspopup":"true","aria-owns":v.element.id,"data-tooltip-opaque":String(g.un(J.Y()))},D:[{j:"div",N:"ytp-share-icon",TK:"{{icon}}"},{j:"div",N:"ytp-share-title",TK:"Compartir"}]});this.api=J;this.C=y;this.T=v;this.J=d;this.visible=!1;this.tooltip=this.C.G4();J.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.Z(J,"videodatachange",this.Mx);this.Z(J, "videoplayerreset",this.Mx);this.Z(J,"appresize",this.Mx);this.Z(J,"presentingplayerstatechange",this.Mx);this.Mx();this.addOnDisposeCallback(g.qr(this.tooltip,this.element))}; p5U=function(J){var y=J.api.Y(),v=J.api.getVideoData(),d=g.un(y)&&g.p5(J.api)&&g.k(J.api.getPlayerStateObject(),128);y=y.J||y.disableSharing&&J.api.getPresentingPlayerType()!==2||!v.showShareButton||v.vz||d||g.n5(v)||!1;d=J.api.DB().getPlayerSize().width;return!!v.videoId&&d>=J.J&&!y}; UpP=function(J,y){y.name!=="InvalidStateError"&&y.name!=="AbortError"&&(y.name==="NotAllowedError"?(J.C.H9(),ZF(J.T,J.element,!1)):g.jv(y))}; i26=function(J,y){var v=vC(),d=J.Y();v={j:"div",N:"ytp-share-panel",U:{id:vC(),role:"dialog","aria-labelledby":v},D:[{j:"div",N:"ytp-share-panel-inner-content",D:[{j:"div",N:"ytp-share-panel-title",U:{id:v},TK:"Compartir"},{j:"a",kB:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:d.K,title:"Compartir v\u00ednculo","aria-label":"{{shareLinkWithUrl}}"},TK:"{{linkText}}"},{j:"label",N:"ytp-share-panel-include-playlist",D:[{j:"input",N:"ytp-share-panel-include-playlist-checkbox", U:{type:"checkbox",checked:"true"}},"Incluir playlist"]},{j:"div",N:"ytp-share-panel-loading-spinner",D:[av()]},{j:"div",N:"ytp-share-panel-service-buttons",TK:"{{buttons}}"},{j:"div",N:"ytp-share-panel-error",TK:"Error al recuperar la informaci\u00f3n de uso compartido. Vuelve a intentarlo m\u00e1s tarde."}]},{j:"button",kB:["ytp-share-panel-close","ytp-button"],U:{title:"Cerrar"},D:[g.Lf()]}]};g.EH.call(this,J,v,250);var P=this;this.moreButton=null;this.api=J;this.tooltip=y.G4();this.J=[];this.L= this.uA("ytp-share-panel-inner-content");this.closeButton=this.uA("ytp-share-panel-close");this.Z(this.closeButton,"click",this.p8);this.addOnDisposeCallback(g.qr(this.tooltip,this.closeButton));this.W=this.uA("ytp-share-panel-include-playlist-checkbox");this.Z(this.W,"click",this.Mx);this.C=this.uA("ytp-share-panel-link");this.addOnDisposeCallback(g.qr(this.tooltip,this.C));this.api.createClientVe(this.C,this,164503);this.Z(this.C,"click",function(A){A.preventDefault();P.api.logClick(P.C);var T= P.api.getVideoUrl(!0,!0,!1,!1);T=f3U(P,T);g.t_(T,P.api,A)&&P.api.Rf("SHARE_CLICKED")}); this.listen("click",this.OD);this.Z(J,"videoplayerreset",this.hide);this.Z(J,"fullscreentoggled",this.onFullscreenToggled);this.Z(J,"onLoopRangeChange",this.Gx);this.hide()}; X56=function(J,y){uJr(J);for(var v=y.links||y.shareTargets,d=0,P={},A=0;A0&&!Jc&&!U?(C.length===2&&(C=["noreferrer"]),g.WD(t,c,L,C[0]),t=waT()):(b=q.join(","),pn()&&t.navigator&&t.navigator.standalone&&L&&L!="_self"?(b=g.Lj("A"),g.Yp(b,c),b.target=L,B&&(b.rel="noreferrer"),((W=W.attributionsrc)||W==="")&&b.setAttribute("attributionsrc",W),W=document.createEvent("MouseEvent"), W.initMouseEvent("click",!0,!0,t,1),b.dispatchEvent(W),t=waT()):B?(t=g.WD(t,"",L,b),W=g.Ag(c),t&&(t.opener=null,W===""&&(W="javascript:''"),W='',W=Ln(W),(c=t.document)&&c.write&&(c.write(tg(W)),c.close()))):((t=g.WD(t,c,L,b))&&W.noopener&&(t.opener=null),t&&W.noreferrer&&(t.opener=null)));t&&(t.opener||(t.opener=window),t.focus());V.preventDefault()}}}(P)); P.KT.addOnDisposeCallback(g.qr(J.tooltip,P.KT.element));M==="Facebook"?J.api.createClientVe(P.KT.element,P.KT,164504):M==="Twitter"&&J.api.createClientVe(P.KT.element,P.KT,164505);J.Z(P.KT.element,"click",function(S){return function(){J.api.logClick(S.KT.element)}}(P)); J.api.logVisibility(P.KT.element,!0);J.J.push(P.KT);d++}}var n=y.more||y.moreLink,Y=new g.z({j:"a",kB:["ytp-share-panel-service-button","ytp-button"],D:[{j:"span",N:"ytp-share-panel-service-button-more",D:[{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},D:[{j:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{j:"path",U:{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"}}]}]}],U:{href:n,target:"_blank",title:"M\u00e1s"}});Y.listen("click",function(S){var V=n;J.api.logClick(J.moreButton.element);V=f3U(J,V);g.t_(V,J.api,S)&&J.api.Rf("SHARE_CLICKED")}); Y.addOnDisposeCallback(g.qr(J.tooltip,Y.element));J.api.createClientVe(Y.element,Y,164506);J.Z(Y.element,"click",function(){J.api.logClick(Y.element)}); J.api.logVisibility(Y.element,!0);J.J.push(Y);J.moreButton=Y;J.updateValue("buttons",J.J)}; f3U=function(J,y){var v={};g.un(J.api.Y())&&(g.xt(J.api,"addEmbedsConversionTrackingParams",[v]),y=g.al(y,v));return y}; uJr=function(J){for(var y=g.D(J.J),v=y.next();!v.done;v=y.next())v=v.value,v.detach(),g.dJ(v);J.J=[]}; G1=function(J){return J===void 0||J.startSec===void 0||J.endSec===void 0?!1:!0}; Nt3=function(J,y){J.startSec+=y;J.endSec+=y}; KIv=function(J){Fs.call(this,J);this.T=this.C=this.isContentForward=this.G=!1;this.element.setAttribute("data-overlay-order","8");Rwj(this);this.Z(this.S,"changeProductsInVideoVisibility",this.zgB);this.Z(this.S,"videodatachange",this.onVideoDataChange)}; zw3=function(J){J.L&&J.cX.element.removeChild(J.L.element);J.L=void 0}; Eh3=function(J,y){return y.map(function(v){var d,P;if((v=(d=g.R(v,kZH))==null?void 0:(P=d.thumbnail)==null?void 0:P.thumbnails)&&v.length!==0)return v[0].url}).filter(function(v){return v!==void 0}).map(function(v){v=new g.z({j:"img", N:"ytp-suggested-action-product-thumbnail",U:{alt:"",src:v}});g.X(J,v);return v})}; Qim=function(J,y){J.isContentForward=y;g.lq(J.badge.element,"ytp-suggested-action-badge-content-forward",y)}; bC=function(J){var y=J.isContentForward&&!J.I0();g.lq(J.badge.element,"ytp-suggested-action-badge-preview-collapsed",y&&J.C);g.lq(J.badge.element,"ytp-suggested-action-badge-preview-expanded",y&&J.T)}; Fd=function(J,y,v){return new g.uI(J*1E3,y*1E3,{priority:9,namespace:v})}; Z2U=function(J){J.S.tI("shopping_overlay_visible");J.S.tI("shopping_overlay_preview_collapsed");J.S.tI("shopping_overlay_preview_expanded");J.S.tI("shopping_overlay_expanded")}; Rwj=function(J){J.Z(J.S,g.Xz("shopping_overlay_visible"),function(){J.ih(!0)}); J.Z(J.S,g.NA("shopping_overlay_visible"),function(){J.ih(!1)}); J.Z(J.S,g.Xz("shopping_overlay_expanded"),function(){J.Cy=!0;bP(J)}); J.Z(J.S,g.NA("shopping_overlay_expanded"),function(){J.Cy=!1;bP(J)}); J.Z(J.S,g.Xz("shopping_overlay_preview_collapsed"),function(){J.C=!0;bC(J)}); J.Z(J.S,g.NA("shopping_overlay_preview_collapsed"),function(){J.C=!1;bC(J)}); J.Z(J.S,g.Xz("shopping_overlay_preview_expanded"),function(){J.T=!0;bC(J)}); J.Z(J.S,g.NA("shopping_overlay_preview_expanded"),function(){J.T=!1;bC(J)})}; yMT=function(J){g.z.call(this,{j:"div",N:"ytp-shorts-title-channel",D:[{j:"a",N:"ytp-shorts-title-channel-logo",U:{href:"{{channelLink}}",target:J.Y().K,"aria-label":"{{channelLogoLabel}}"}},{j:"div",N:"ytp-shorts-title-expanded-heading",D:[{j:"div",N:"ytp-shorts-title-expanded-title",D:[{j:"a",TK:"{{expandedTitle}}",U:{href:"{{channelTitleLink}}",target:J.Y().K,tabIndex:"0"}}]}]}]});var y=this;this.api=J;this.C=this.uA("ytp-shorts-title-channel-logo");this.channelName=this.uA("ytp-shorts-title-expanded-title"); this.subscribeButton=null;J.createClientVe(this.C,this,36925);this.Z(this.C,"click",function(v){y.api.logClick(y.C);g.WD(window,w5T(y));v.preventDefault()}); J.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(v){y.api.logClick(y.channelName);g.WD(window,w5T(y));v.preventDefault()}); JMm(this);this.Z(J,"videodatachange",this.Mx);this.Z(J,"videoplayerreset",this.Mx);this.Mx()}; JMm=function(J){if(!J.api.Y().L8){var y=J.api.getVideoData(),v=new g.v7("Suscribirse",null,"Suscrito/a",null,!0,!1,y.uC,y.subscribed,"channel_avatar",null,J.api,!0);J.api.createServerVe(v.element,J);var d;J.api.setTrackingParams(v.element,((d=y.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);J.Z(v.element,"click",function(){J.api.logClick(v.element)}); J.subscribeButton=v;g.X(J,J.subscribeButton);J.subscribeButton.yk(J.element)}}; w5T=function(J){var y=J.api.Y(),v=J.api.getVideoData();v=g.aj(y)+v.Ky;if(!g.un(y))return v;y={};g.xt(J.api,"addEmbedsConversionTrackingParams",[y]);return g.al(v,y)}; jE=function(J){g.EH.call(this,J,{j:"button",kB:["ytp-skip-intro-button","ytp-popup","ytp-button"],D:[{j:"div",N:"ytp-skip-intro-button-text",TK:"Omitir introducci\u00f3n"}]},100);var y=this;this.J=!1;this.C=new g.Kx(function(){y.hide()},5E3); this.mL=this.Ny=NaN;g.X(this,this.C);this.G=function(){y.show()}; this.L=function(){y.hide()}; this.W=function(){var v=y.S.getCurrentTime();v>y.Ny/1E3&&v0?{j:"svg",U:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{j:"path",kB:["ytp-circle-arrow","ytp-svg-fill"],U:{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"}}, {j:"text",kB:["ytp-jump-button-text","ytp-svg-fill"],U:{x:"7.05",y:"15.05"}}]}:{j:"svg",U:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},D:[{j:"path",kB:["ytp-circle-arrow","ytp-svg-fill"],U:{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"}}, {j:"text",kB:["ytp-jump-button-text","ytp-svg-fill"],U:{x:"6.5",y:"15"}}]}]});var v=this;this.S=J;this.C=y;this.T=new g.Kx(function(){v.J?(v.J=!1,v.T.start()):v.element.classList.remove("ytp-jump-spin","backwards")},250); this.J=!1;(y=y>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var d=g.yY(y?"Avanzar $SECONDS segundos (\u2192)":"Retroceder $SECONDS segundos (\u2190)",{SECONDS:Math.abs(this.C).toString()});this.update({title:d,"data-title-no-tooltip":d,"aria-keyshortcuts":y?"\u2192":"\u2190"});this.W=this.element.querySelector(".ytp-jump-button-text");this.W.textContent=Math.abs(this.C).toString();this.listen("click",this.onClick,this);rx(J,this.element,this)}; nCU=function(J,y){y?J.element.classList.add("ytp-jump-button-enabled"):J.element.classList.remove("ytp-jump-button-enabled");J.S.logVisibility(J.element,y);J.S.O3()}; ot=function(J,y){mR.call(this,J,y,"timedMarkerCueRange","Ver momentos clave");this.Z(J,g.NA("timedMarkerCueRange"),this.cq);this.Z(J,"updatemarkervisibility",this.updateVideoData)}; sW2=function(J){var y,v=(y=J.S.getVideoData())==null?void 0:y.XW;if(v)for(J=J.W.GK,v=g.D(v),y=v.next();!y.done;y=v.next())if(y=J[y.value]){var d=void 0,P=void 0,A=void 0;if(((d=y.onTap)==null?void 0:(P=d.innertubeCommand)==null?void 0:(A=P.changeEngagementPanelVisibilityAction)==null?void 0:A.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return y}}; CE=function(J){var y=J.X("web_enable_pip_on_miniplayer");g.z.call(this,{j:"button",kB:["ytp-miniplayer-button","ytp-button"],U:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},D:["{{icon}}"]});this.S=J;this.visible=!1;this.listen("click",this.onClick);this.Z(J,"fullscreentoggled",this.Mx);this.updateValue("title",g.$t(J,"Reproductor en miniatura","i"));this.update({"data-title-no-tooltip":"Reproductor en miniatura", icon:this.S.X("delhi_modern_web_player_icons")?{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}:y?{j:"svg",U:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},D:[{j:"g",U:{transform:"translate(96, -96) scale(0.8)"},D:[{j:"path",l6:!0,U:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:eJ6()});rx(J,this.element,this);J.createClientVe(this.element,this,62946);this.Mx()}; hY=function(J,y,v,d,P,A){A=A===void 0?!1:A;var T={j:"div",kB:["ytp-input-slider-section"],D:[{j:"input",N:"ytp-input-slider",U:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};P&&T.D.unshift(P);A&&T.kB.push("ytp-vertical-slider");g.z.call(this,T);this.W=J;this.L=y;this.B=v;this.initialValue=d;this.header=P;this.T=this.uA("ytp-input-slider");this.C=d?d:J;this.init();this.Z(this.T,"input",this.J);this.Z(this.T,"keydown", this.G)}; It=function(J,y){J.C=y;J.updateValue("slidervalue",J.C);J.T.valueAsNumber=J.C;YRU(J,y)}; YRU=function(J,y){J.T.style.setProperty("--yt-slider-shape-gradient-percent",(y-J.W)/(J.L-J.W)*100+"%")}; pE=function(J){var y=J.isMuted()?0:J.getVolume();hY.call(this,0,100,1,y,void 0,!0);this.S=J;this.zK=Ig(this.AY,10,this);this.K=!1;this.Z(J,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.Cy)}; SR3=function(J,y){g.z.call(this,{j:"div",U:{tabindex:"0",title:"Volumen","data-tooltip-offset-y":"-120"},kB:["ytp-volume-popover"]});var v=this;this.isVisible=!1;this.tooltip=y.G4();this.T=new pE(J);g.X(this,this.T);this.T.yk(this.element);this.C=new g.Kx(function(){UM(v,!1)},300); this.listen("mouseenter",function(){v.C.stop()}); this.listen("mouseleave",function(){v.C.start()}); this.listen("focus",function(){v.C.stop()}); this.Z(this.T.T,"focus",function(){v.C.stop()}); this.listen("focusout",function(){v.C.start();v.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.qr(y.G4(),this.element));g.X(this,this.C)}; UM=function(J,y){J.element.classList.toggle("ytp-volume-popover-hovering",y);J.isVisible=y}; fE=function(J,y,v){v=v===void 0?!1:v;var d=J.Y().cX?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}"}:{"aria-disabled":"true","aria-haspopup":"true"};d=J.X("delhi_modern_web_player")?{j:"div",N:"ytp-mute-button",D:[{j:"button",U:d,kB:["ytp-volume-icon","ytp-button"],TK:"{{icon}}"}]}:{j:"button",kB:["ytp-mute-button","ytp-button"],U:d,D:[{j:"div",N:"ytp-volume-icon",TK:"{{icon}}"}]}; g.z.call(this,d);this.S=J;this.WX=v;this.T=null;this.G=this.AY=this.K=this.B=NaN;this.If=this.zK=null;this.L=[];this.W=[];this.visible=!1;this.J=this.C=this.Cy=null;J.X("delhi_modern_web_player")&&this.update({"data-priority":4});v=this.S.Y();this.updateValue("icon",F9());this.tooltip=y.G4();this.updateValue("dataTooltipOffsetY",0);this.J=g.Mi("ytp-volume-icon",this.element);d=this.S.X("delhi_modern_web_player_icons")?{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",kB:["ytp-svg-fill", "ytp-svg-volume-animation-speaker"],U:{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"}},{j:"path",N:"ytp-svg-volume-animation-small-ripple",U:{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"}},{j:"path",N:"ytp-svg-volume-animation-big-ripple",U:{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"}}]}:{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"defs",D:[{j:"clipPath",U:{id:"ytp-svg-volume-animation-mask"},D:[{j:"path",U:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{j:"path",U:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{j:"path",N:"ytp-svg-volume-animation-mover",U:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{j:"clipPath",U:{id:"ytp-svg-volume-animation-slash-mask"},D:[{j:"path",N:"ytp-svg-volume-animation-mover", U:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{j:"path",l6:!0,kB:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],U:{"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"}},{j:"path",l6:!0,kB:["ytp-svg-fill","ytp-svg-volume-animation-hider"],U:{"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.T=new g.dD(d);g.X(this,this.T);this.zK=this.T.uA("ytp-svg-volume-animation-speaker");this.If=this.zK.getAttribute("d");this.L=g.TN("ytp-svg-volume-animation-mover",this.T.element);this.S.X("delhi_modern_web_player_icons");this.W=g.TN("ytp-svg-volume-animation-hider",this.T.element);this.S.X("delhi_modern_web_player_icons");this.cX=new w9;g.X(this,this.cX);this.wj=new w9;g.X(this,this.wj);this.Z(J,"appresize",this.Fn);this.Z(J,"onVolumeChange",this.onVolumeChange);J.X("delhi_modern_web_player")? this.listen("click",this.gmB):this.listen("click",this.kd);v.cX?(J.X("delhi_modern_web_player")&&(this.C=new SR3(J,y),this.C.yk(this.element),g.X(this,this.C),this.Z(this.J,"mouseover",this.rM),this.Z(this.J,"focus",this.rM),this.Z(this.J,"mouseout",this.yD),this.Z(this.J,"blur",this.yD)),v=J.X("delhi_modern_web_player")?this.J:this.element,this.addOnDisposeCallback(g.qr(y.G4(),v))):VNP(this);this.message=null;J.createClientVe(this.element,this,28662);this.Fn(J.DB().getPlayerSize());this.setVolume(J.getVolume(), J.isMuted())}; Lzj=function(J,y){if(J.S.Y().cX){var v=g.$t(J.S,"Silenciar","m"),d=g.$t(J.S,"Activar sonido","m");J.updateValue("title",y?d:v);J.update({"data-title-no-tooltip":y?"Activar sonido":"Silenciar"});J.tooltip.O3()}}; aPc=function(J,y){J.B=y;var v=J.If;J.S.X("delhi_modern_web_player_icons")?J.T.uA("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(y+") translate(-22,-12)")):y&&(v+=mn6(tNH,Wz2,y));J.zK.setAttribute("d",v)}; xvx=function(J,y){var v;y===1?v=J.S.X("delhi_modern_web_player_icons")?{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:F9():v=J.T;J.AY=y;if(J.S.X("delhi_modern_web_player_icons"))J.T.uA("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-y+") translate(-18,-12)")),J.T.uA("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(J.B-y+") translate(-22, -12)"));else{for(var d=20*y,P=0;P=3&&J.S.getPresentingPlayerType()!==2}; bNx=function(J){var y=Is(J.S.un());return y?J.C?y.Nk():y.JQ():!1}; Dvc=function(J){var y={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},v=J.playlist!=null&&J.playlist.Nk();v=g.p5(J.S)&&(!J.C||v);var d=J.C&&g.X$(J.S),P=bNx(J),A=J.C&&J.S.getPresentingPlayerType()===5,T=g.$t(J.S,"Siguiente","SHIFT+n"),M=g.$t(J.S,"Anterior","SHIFT+p");if(A)y.title="Iniciar video";else if(J.J)y.title="Volver a reproducir";else if(v){var n=null;J.playlist&&(n=g.gA(J.playlist,J.C?LgU(J.playlist):tym(J.playlist)));if(n){if(n.videoId){var Y= J.playlist.listId;y.url=J.S.Y().getVideoUrl(n.videoId,Y?Y.toString():void 0)}y.text=n.title;y.duration=n.lengthText?n.lengthText:n.lengthSeconds?g.xZ(n.lengthSeconds):null;y.preview=n.wC("mqdefault.jpg")}J.C?(y.title=T,y["data-title-no-tooltip"]="Siguiente",y["aria-keyshortcuts"]="SHIFT+n"):(y.title=M,y["data-title-no-tooltip"]="Anterior",y["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(M=(n=J.videoData)==null?void 0:g.Ss(n))y.url=M.GJ(),y.text=M.title,y.duration=M.lengthText?M.lengthText:M.lengthSeconds? g.xZ(M.lengthSeconds):null,y.preview=M.wC("mqdefault.jpg");y.title=T;y["data-title-no-tooltip"]="Siguiente";y["aria-keyshortcuts"]="SHIFT+n"}y.disabled=!d&&!v&&!P&&!A;J.update(y);J.G=!!y.url;d||v||J.J||P||A?J.T||(J.T=g.qr(J.tooltip,J.element),J.L=J.listen("click",J.onClick,J)):J.T&&(J.T(),J.T=null,J.y8(J.L),J.L=null);J.tooltip.O3();g.lq(J.element,"ytp-playlist-ui",J.C&&(v||J.S.X("web_hide_next_button")))}; gCc=function(J,y){return J?y?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}:ax():y?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:qKU()}; jWT=function(J,y){g.z.call(this,{j:"div",N:"ytp-fine-scrubbing",D:[{j:"div",N:"ytp-fine-scrubbing-draggable",D:[{j:"div",N:"ytp-fine-scrubbing-thumbnails",U:{tabindex:"0",role:"slider",type:"range","aria-label":"Haz clic en el panel o despl\u00e1zate por \u00e9l para usar la b\u00fasqueda precisa.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{j:"div",U:{"aria-hidden":"true"},N:"ytp-fine-scrubbing-cursor"},{j:"div", N:"ytp-fine-scrubbing-seek-time",U:{"aria-hidden":"true"},TK:"{{seekTime}}"},{j:"div",N:"ytp-fine-scrubbing-play",D:[J.X("delhi_modern_web_player_icons")?De():gD()],U:{title:"Reproducir desde este momento",role:"button"}},{j:"div",N:"ytp-fine-scrubbing-dismiss",D:[g.Lf()],U:{title:"Salir de la b\u00fasqueda precisa",role:"button"}}]});var v=this;this.api=J;this.L=this.uA("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.uA("ytp-fine-scrubbing-dismiss");this.AY=this.uA("ytp-fine-scrubbing-draggable"); this.playButton=this.uA("ytp-fine-scrubbing-play");this.thumbnails=[];this.T=[];this.WX=this.C=0;this.cX=void 0;this.zK=NaN;this.Ek=this.K=this.J=this.B=0;this.W=[];this.interval=this.frameCount=0;this.G=160;this.scale=1;this.Vk=0;this.isEnabled=this.If=!1;Fzr(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.qr(y,this.dismissButton));this.addOnDisposeCallback(g.qr(y,this.playButton));this.wj=new g.iP(this.AY,!0);this.wj.subscribe("dragstart",this.OL,this);this.wj.subscribe("dragmove",this.vL, this);this.wj.subscribe("dragend",this.ZM,this);this.Z(J,"SEEK_COMPLETE",this.BT);J.X("web_fix_fine_scrubbing_false_play")&&this.Z(J,"rootnodemousedown",function(d){v.Cy=d}); this.L.addEventListener("keydown",function(){}); g.X(this,this.wj);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.L,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; Fzr=function(J,y){var v=g.xZ(y),d=g.yY("Saltar a: $PROGRESS",{PROGRESS:g.xZ(y,!0)});J.update({ariamin:0,ariamax:Math.floor(J.api.getDuration()),arianow:Math.floor(y),arianowtext:d,seekTime:v})}; e_U=function(J){J.zK=NaN;J.K=0;J.B=J.J}; qRr=function(J){var y=J.api.Id();if(y){var v=90*J.scale,d=Er(y,160*J.scale);if(y=y.levels[d]){J.G=y.width;if(!J.W.length){d=[];for(var P=Q0(y,y.eF()),A=y.columns*y.rows,T=y.frameCount,M=0;M<=P;M++)for(var n=TJ.W.length;)d= void 0,(d=J.thumbnails.pop())==null||d.dispose();for(;J.thumbnails.lengthv.length;)d=void 0,(d=J.T.pop())==null||d.dispose(); for(;J.T.length-v?-y/v*J.interval*.5:-(y+v/2)/v*J.interval}; rMv=function(J){return-((J.L.offsetWidth||(J.frameCount-1)*J.G*J.scale)-J.C/2)}; mvH=function(){g.z.call(this,{j:"div",N:"ytp-fine-scrubbing-thumbnail"})}; BWH=function(){g.z.call(this,{j:"div",N:"ytp-fine-scrubbing-chapter-title",D:[{j:"div",N:"ytp-fine-scrubbing-chapter-title-content",TK:"{{chapterTitle}}"}]})}; oCm=function(J){g.z.call(this,{j:"div",N:"ytp-heat-map-chapter",D:[{j:"svg",N:"ytp-heat-map-svg",U:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},D:[{j:"defs",D:[{j:"clipPath",U:{id:"{{id}}"},D:[{j:"path",N:"ytp-heat-map-path",U:{d:"",fill:"white"}}]},{j:"linearGradient",U:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},D:[{j:"stop",U:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{j:"stop",U:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{j:"rect",N:"ytp-heat-map-graph",U:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",N:"ytp-heat-map-hover",U:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{j:"rect",N:"ytp-heat-map-play",U:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{j:"path",N:"ytp-modern-heat-map",U:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=J;this.B=this.uA("ytp-heat-map-svg");this.L=this.uA("ytp-heat-map-path");this.W=this.uA("ytp-heat-map-graph");this.G=this.uA("ytp-heat-map-play");this.C=this.uA("ytp-heat-map-hover");this.J=this.uA("ytp-modern-heat-map");this.ZO=!1;this.T=60;J=""+g.lw(this);this.update({id:J});J="url(#"+J+")";this.W.setAttribute("clip-path",J);this.G.setAttribute("clip-path",J);this.C.setAttribute("clip-path", J)}; CWc=function(J,y){y>0&&(J.T=y,J.B.style.height=J.T+"px")}; Xd=function(){g.z.call(this,{j:"div",N:"ytp-chapter-hover-container",D:[{j:"div",N:"ytp-progress-bar-padding"},{j:"div",N:"ytp-progress-list",D:[{j:"div",kB:["ytp-play-progress","ytp-swatch-background-color"]},{j:"div",N:"ytp-progress-linear-live-buffer"},{j:"div",N:"ytp-load-progress"},{j:"div",N:"ytp-hover-progress"},{j:"div",N:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.T=this.uA("ytp-progress-list");this.L=this.uA("ytp-progress-linear-live-buffer"); this.W=this.uA("ytp-ad-progress-list");this.G=this.uA("ytp-load-progress");this.B=this.uA("ytp-play-progress");this.J=this.uA("ytp-hover-progress");this.C=this.uA("ytp-chapter-hover-container")}; N1=function(J,y){g.Ni(J.C,"width",y)}; h_R=function(J,y){g.Ni(J.C,"margin-right",y+"px")}; IPm=function(){this.T=this.position=this.J=this.C=this.W=this.width=NaN}; pXr=function(){g.z.call(this,{j:"div",N:"ytp-timed-marker"});this.C=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; g.KE=function(J,y){g.T_.call(this,{j:"div",N:"ytp-progress-bar-container",U:{"aria-disabled":"true"},D:[{j:"div",kB:["ytp-heat-map-container"],D:[{j:"div",N:"ytp-heat-map-edu"}]},{j:"div",kB:["ytp-progress-bar"],U:{tabindex:"0",role:"slider","aria-label":"Control deslizante de b\u00fasqueda","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},D:[{j:"div",N:"ytp-chapters-container"},{j:"div",N:"ytp-timed-markers-container"}, {j:"div",N:"ytp-clip-start-exclude"},{j:"div",N:"ytp-clip-end-exclude"},{j:"div",N:"ytp-scrubber-container",D:[{j:"div",kB:["ytp-scrubber-button","ytp-swatch-background-color"],D:[{j:"div",N:"ytp-scrubber-pull-indicator"},{j:"img",kB:["ytp-decorated-scrubber-button"]}]}]}]},{j:"div",kB:["ytp-fine-scrubbing-container"],D:[{j:"div",N:"ytp-fine-scrubbing-edu"}]},{j:"div",N:"ytp-bound-time-left",TK:"{{boundTimeLeft}}"},{j:"div",N:"ytp-bound-time-right",TK:"{{boundTimeRight}}"},{j:"div",N:"ytp-clip-start", U:{title:"{{clipstarttitle}}"},TK:"{{clipstarticon}}"},{j:"div",N:"ytp-clip-end",U:{title:"{{clipendtitle}}"},TK:"{{clipendicon}}"}]});this.api=J;this.ER=!1;this.SC=this.H5=this.XW=this.L=this.yH=0;this.Bo=null;this.mL=!1;this.Vk={};this.ON={};this.clipEnd=Infinity;this.L8=this.uA("ytp-clip-end");this.xj=new g.iP(this.L8,!0);this.h_=this.uA("ytp-clip-end-exclude");this.AI=this.uA("ytp-clip-start-exclude");this.clipStart=0;this.H$=this.uA("ytp-clip-start");this.QM=new g.iP(this.H$,!0);this.zK=this.aG= 0;this.progressBar=this.uA("ytp-progress-bar");this.yl={};this.GK={};this.YB=this.uA("ytp-chapters-container");this.gr=this.uA("ytp-timed-markers-container");this.C=[];this.G=[];this.M1={};this.Xg=null;this.If=-1;this.J9=this.cX=0;this.QE=this.B=null;this.Lj=this.uA("ytp-scrubber-button");this.AY=this.uA("ytp-decorated-scrubber-button");this.jc=this.uA("ytp-scrubber-container");this.Ky=new g.N7;this.ES=0;this.vK=new IPm;this.J=new eg(0,0);this.wp=null;this.K=this.TP=!1;this.Ny=null;this.Cy=this.uA("ytp-heat-map-container"); this.iN=this.uA("ytp-heat-map-edu");this.W=[];this.heatMarkersDecorations=[];this.rj=this.uA("ytp-fine-scrubbing-container");this.DO=this.uA("ytp-fine-scrubbing-edu");this.T=void 0;this.WX=this.EH=this.Ek=!1;this.tooltip=y.G4();this.addOnDisposeCallback(g.qr(this.tooltip,this.L8));g.X(this,this.xj);this.xj.subscribe("hoverstart",this.PW,this);this.xj.subscribe("hoverend",this.DA,this);this.Z(this.L8,"click",this.GE);this.addOnDisposeCallback(g.qr(this.tooltip,this.H$));g.X(this,this.QM);this.QM.subscribe("hoverstart", this.PW,this);this.QM.subscribe("hoverend",this.DA,this);this.Z(this.H$,"click",this.GE);Uvm(this);this.Z(J,"resize",this.UN);this.Z(J,"presentingplayerstatechange",this.mu);this.Z(J,"videodatachange",this.GA);this.Z(J,"videoplayerreset",this.E0);this.Z(J,"cuerangesadded",this.vRk);this.Z(J,"cuerangesremoved",this.zBy);this.Z(J,"onLoopRangeChange",this.KZ);this.Z(J,"innertubeCommand",this.onClickCommand);this.Z(J,"onRetroModeChanged",this.c_X);this.Z(J,g.Xz("timedMarkerCueRange"),this.i0K);this.Z(J, "updatemarkervisibility",this.FE);this.Z(J,"serverstitchedvideochange",this.OAk);this.updateVideoData(J.getVideoData(),!0);this.KZ(J.getLoopRange());Rt(this)&&!this.T&&(this.T=new jWT(this.api,this.tooltip),J=g.ws(this.element).x||0,this.T.UN(J,this.L),this.T.yk(this.rj),g.X(this,this.T),this.Z(this.T.dismissButton,"click",this.hf),this.Z(this.T.playButton,"click",this.Ls),this.Z(this.T.element,"dblclick",this.Ls));this.api.createClientVe(this.Cy,this,139609,!0);this.api.createClientVe(this.iN,this, 140127,!0);this.api.createClientVe(this.DO,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; Uvm=function(J){if(J.C.length===0){var y=new Xd;J.C.push(y);g.X(J,y);y.yk(J.YB,0)}for(;J.C.length>1;)J.C.pop().dispose();N1(J.C[0],"100%");J.C[0].startTime=0;J.C[0].title=""}; fP3=function(J){var y=y===void 0?NaN:y;var v=new oCm(J.api);J.W.push(v);g.X(J,v);v.yk(J.Cy);y>=0&&(v.element.style.width=y+"px")}; iNR=function(J){for(;J.G.length;)J.G.pop().dispose()}; HNP=function(J){var y,v,d,P,A;return(A=g.R((P=g.R((y=J.getWatchNextResponse())==null?void 0:(v=y.playerOverlays)==null?void 0:(d=v.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,fh))==null?void 0:P.playerBar,u2P))==null?void 0:A.chapters}; XX6=function(J){for(var y=J.C,v=[],d=0;d=T&&c<=S&&A.push(L)}n>0&&(J.Cy.style.height=n+"px");T=J.W[d];S=A;L=P;W=n;c=d===0;c=c===void 0?!1:c;CWc(T,W);V=S;t=T.T;c=c===void 0?!1:c;var b=1E3/V.length,B=[];B.push({x:0,y:100});for(var q=0;q0&&(v=A[A.length-1])}g.z1(J);M=[];y=g.D(y.heatMarkersDecorations||[]);for(P=y.next();!P.done;P=y.next())if(P=g.R(P.value,QW3))n=P.label,d=v=Y=void 0,M.push({visibleTimeRangeStartMillis:(Y=P.visibleTimeRangeStartMillis)!=null?Y:-1,visibleTimeRangeEndMillis:(v=P.visibleTimeRangeEndMillis)!=null?v:-1,decorationTimeMillis:(d=P.decorationTimeMillis)!=null?d:NaN,label:n?g.nf(n):""});J.heatMarkersDecorations=M}}; Kzd=function(J,y){J.G.push(y);g.X(J,y);y.yk(J.gr,J.gr.children.length)}; z_3=function(J,y){y=g.D(y);for(var v=y.next();!v.done;v=y.next()){v=v.value;var d=kl(J,v.timeRangeStartMillis/(J.J.C*1E3),EM(J)),P=J.api.X("delhi_modern_web_player")?.667:.6;g.Ni(v.element,"transform","translateX("+d+"px) scaleX("+P+")")}}; NW6=function(J,y){var v=0,d=!1;y=g.D(y);for(var P=y.next();!P.done;P=y.next()){P=P.value;if(g.R(P,wX3)){P=g.R(P,wX3);var A={startTime:NaN,title:null,onActiveCommand:void 0},T=P.title;A.title=T?g.nf(T):"";T=P.timeRangeStartMillis;T!=null&&(A.startTime=T);A.onActiveCommand=P.onActiveCommand;P=A;v===0&&P.startTime!==0&&(J.C[v].startTime=0,J.C[v].title="",J.C[v].onActiveCommand=P.onActiveCommand,v++,d=!0);J.C.length<=v&&(A=new Xd,J.C.push(A),g.X(J,A),A.yk(J.YB,J.YB.children.length));J.C[v].startTime= P.startTime;J.C[v].title=P.title?P.title:"";J.C[v].onActiveCommand=P.onActiveCommand;J.C[v].index=d?v-1:v}v++}for(;v=0;d--)if(J.C[d].width>0){h_R(J.C[d],0);var P=Math.floor(J.C[d].width);J.C[d].width=P;N1(J.C[d],P+"px");break}J.C[v].width=0;N1(J.C[v],"0")}else v===J.C.length-1?(d=Math.floor(J.C[v].width+y),J.C[v].width=d,N1(J.C[v],d+"px")):(y=J.C[v].width+y,d=Math.round(y),y-=d,J.C[v].width=d,N1(J.C[v],d+"px"));v=0;if(J.W.length===J.C.length)for(y=0;y< J.W.length;y++)d=J.C[y].width,J.W[y].element.style.width=d+"px",J.W[y].element.style.left=v+"px",v+=d+ZO(J);J.api.X("delhi_modern_web_player")&&(J.C.length===1?J.C[0].T.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(J.C[0].T.classList.remove("ytp-progress-bar-end"),J.C[0].T.classList.add("ytp-progress-bar-start"),J.C[J.C.length-1].T.classList.add("ytp-progress-bar-end")))}; JGR=function(J,y){var v=0,d=!1,P=J.C.length,A=J.J.C*1E3;A===0&&(A=J.api.getProgressState().seekableEnd*1E3);if(A>0&&J.L>0){for(var T=J.L-ZO(J)*J.cX,M=J.J9===0?3:T*J.J9,n=g.D(J.C),Y=n.next();!Y.done;Y=n.next())Y.value.width=0;for(;v1);Y=(A===0?0:n/A*T)+J.C[v].width;if(Y>M)J.C[v].width=Y;else{J.C[v].width=0;var S=J,V=v,L=S.C[V-1];L!==void 0&&L.width>0? L.width+=Y:VJ.J9&&(J.J9=n/A),d=!0)}v++}}return d}; Qu=function(J){if(J.L){var y=J.api.getProgressState(),v=J.api.getVideoData();if(!(v&&v.enableServerStitchedDai&&v.Oc)||isFinite(y.current)){var d;if(((d=J.api.getVideoData())==null?0:Mr(d))&&y.airingStart&&y.airingEnd)var P=w_(J,y.airingStart,y.airingEnd);else if(J.api.getPresentingPlayerType()===2){var A,T,M;P=(v=(P=J.api.getVideoData())==null?void 0:(A=P.getPlayerResponse())==null?void 0:(T=A.playerConfig)==null?void 0:(M=T.webPlayerConfig)==null?void 0:M.skippableAdProgressBarDuration)?w_(J,y.seekableStart, v/1E3):w_(J,y.seekableStart,y.seekableEnd)}else P=w_(J,y.seekableStart,y.seekableEnd);A=mP(P,y.loaded,0);y=mP(P,y.current,0);T=J.J.T!==P.T||J.J.C!==P.C;J.J=P;JK(J,y,A);T&&yGd(J);vAH(J)}}}; w_=function(J,y,v){return dOH(J)?new eg(Math.max(y,J.wp.startTimeMs/1E3),Math.min(v,J.wp.endTimeMs/1E3)):new eg(y,v)}; AG6=function(J,y){var v,d,P;y=g.R((v=y.getWatchNextResponse())==null?void 0:(d=v.playerOverlays)==null?void 0:(P=d.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,fh);if(y==null?0:y.progressColor)for(v=0;v1){v=ya(J,y.J,!0);for(var d=0,P=0;P0&&(d+=J.C[P].width,d+=ZO(J));v=(J.C[v].startTime+(y.J-d)/J.C[v].width*((v===J.C.length-1?J.J.C*1E3:J.C[v+1].startTime)-J.C[v].startTime))/1E3||0}return v}; dd=function(J,y,v,d,P){y=y<0?0:Math.floor(Math.min(y,J.api.getDuration())*1E3);v=v<0?0:Math.floor(Math.min(v,J.api.getDuration())*1E3);J=J.progressBar.visualElement;d={seekData:{startMediaTimeMs:y,endMediaTimeMs:v,seekSource:d}};(y=g.xe())&&g.kV(NF)(void 0,y,J,P,d,void 0)}; l4H=function(J,y,v){if(v>=J.C.length)return!1;var d=J.L-ZO(J)*J.cX;return Math.abs(y-J.C[v].startTime/1E3)/J.J.C*d<4}; yGd=function(J){J.Lj.style.removeProperty("height");for(var y=g.D(Object.keys(J.Vk)),v=y.next();!v.done;v=y.next())Mij(J,v.value);Pw(J);JK(J,J.zK,J.aG)}; EM=function(J){var y=J.Ky.x;y=g.uX(y,0,J.L);J.vK.update(y,J.L);return J.vK}; Tb=function(J){return(J.K?135:90)-AK(J)}; AK=function(J){var y=48,v=J.api.Y();J.api.X("delhi_modern_web_player")?y=J.K&&J.api.getPlayerSize().width>528?96:72:J.K?y=54:g.un(v)&&!v.T&&(y=40);return y}; JK=function(J,y,v){J.zK=y;J.aG=v;var d=EM(J),P=J.J.C,A=sO3(J.J,J.zK),T=g.yY("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.xZ(A,!0),DURATION:g.xZ(P,!0)}),M=Yl(J.C,A*1E3);M=J.C[M].title;J.update({ariamin:Math.floor(J.J.T),ariamax:Math.floor(P),arianow:Math.floor(A),arianowtext:M?M+" "+T:T});P=J.clipStart;A=J.clipEnd;J.wp&&J.api.getPresentingPlayerType()!==2&&(P=J.wp.startTimeMs/1E3,A=J.wp.endTimeMs/1E3);P=mP(J.J,P,0);M=mP(J.J,A,1);T=J.api.getVideoData();A=g.uX(y,P,M);v=(T==null?0:g.Pp(T))?1:g.uX(v, P,M);y=kl(J,y,d);g.Ni(J.jc,"transform","translateX("+y+"px)");J.api.X("delhi_modern_web_player")&&J.api.X("delhi_modern_web_player_cutout")&&nAR(J,y);lu(J,d,P,A,"PLAY_PROGRESS");(T==null?0:Mr(T))?(y=J.api.getProgressState().seekableEnd)&&lu(J,d,A,mP(J.J,y),"LIVE_BUFFER"):lu(J,d,P,v,"LOAD_PROGRESS");if(J.api.X("web_player_heat_map_played_bar")){var n;(n=J.W[0])!=null&&n.G.setAttribute("width",(A*100).toFixed(2)+"%")}}; nAR=function(J,y){J.api.getPresentingPlayerType()!==1?J.YB.style.removeProperty("clip-path"):(y||(y=kl(J,J.zK,EM(J))),J.YB.style.clipPath='path("'+(J.mL?sfm(J,8,y,J.K?50:36,0,6):sfm(J,4,y,J.K?34:24,2,3))+'")')}; sfm=function(J,y,v,d,P,A){var T=v-d/2;v+=d/2;y+=P;return"M 0 "+P+" L 0 "+(y+" L ")+(T+" "+y+" C ")+(T+A+" "+y+" "+(T+A)+" "+P+" "+T+" "+P+" L 0 ")+(P+" M ")+(v+" "+P+" L ")+(J.L+" "+P+" L ")+(J.L+" "+y+" L ")+(v+" "+y+" C ")+(v-A+" "+y+" "+(v-A)+" "+P+" "+v+" "+P)}; lu=function(J,y,v,d,P){var A=J.C.length,T=y.C-J.cX*ZO(J),M=v*T;v=ya(J,M);var n=d*T;T=ya(J,n);P==="HOVER_PROGRESS"&&(T=ya(J,y.C*d,!0),n=y.C*d-Ycv(J,y.C*d)*ZO(J));d=Math.max(M-Sc3(J,v),0);for(M=v;M=J.C.length)return J.L;for(var v=0,d=0;d0||J.h_.clientWidth>0?(A=y.clientWidth/v,J=-1*J.AI.clientWidth/v):(A/=v,J=-1*J.C[P].element.offsetLeft/v),g.Ni(y,"background-size",A+"px"),g.Ni(y,"background-position-x",J+"px"))}; Mn=function(J,y,v,d,P){P||J.api.Y().T?y.style.width=v+"px":g.Ni(y,"transform","scalex("+(d?v/d:0)+")")}; ya=function(J,y,v){var d=0;(v===void 0?0:v)&&(y-=Ycv(J,y)*ZO(J));v=g.D(J.C);for(var P=v.next();!P.done;P=v.next()){P=P.value;if(y>P.width)y-=P.width;else break;d++}return d===J.C.length?d-1:d}; kl=function(J,y,v){var d=y*J.J.C*1E3;for(var P=-1,A=g.D(J.C),T=A.next();!T.done;T=A.next())T=T.value,d>T.startTime&&T.width>0&&P++;d=P<0?0:P;P=v.C-ZO(J)*J.cX;return y*P+ZO(J)*d+v.W}; Ycv=function(J,y){for(var v=J.C.length,d=0,P=g.D(J.C),A=P.next();!A.done;A=P.next())if(A=A.value,A.width!==0)if(y>A.width)y-=A.width,y-=ZO(J),d++;else break;return d===v?v-1:d}; g.tiT=function(J,y,v,d){var P=J.L!==v,A=J.K!==d;J.yH=y;J.L=v;J.K=d;Rt(J)&&(y=J.T)!=null&&(y.scale=d?1.5:1);yGd(J);J.C.length===1&&(J.C[0].width=v||0);P&&g.z1(J);J.T&&A&&Rt(J)&&(J.T.isEnabled&&(v=J.K?135:90,d=v-AK(J),J.rj.style.height=v+"px",g.Ni(J.Cy,"transform","translateY("+-d+"px)"),g.Ni(J.progressBar,"transform","translateY("+-d+"px)")),qRr(J.T))}; Pw=function(J){var y=!!J.wp&&J.api.getPresentingPlayerType()!==2,v=J.clipStart,d=J.clipEnd,P=!0,A=!0;y&&J.wp?(v=J.wp.startTimeMs/1E3,d=J.wp.endTimeMs/1E3):(P=v>J.J.T,A=J.J.C>0&&dJ.zK);g.lq(J.Lj,"ytp-scrubber-button-hover",v===d&&J.C.length>1);if(J.api.X("web_player_heat_map_played_bar")){var A;(A=J.W[0])!=null&&A.C.setAttribute("width",(y.T*100).toFixed(2)+"%")}}}; Mij=function(J,y){var v=J.Vk[y];y=J.ON[y];var d=EM(J),P=mP(J.J,v.start/1E3,0),A=cm2(v,J.K)/d.width;var T=mP(J.J,v.end/1E3,1);A!==Number.POSITIVE_INFINITY&&(P=g.uX(P,0,T-A));T=Math.min(T,P+A);v.color&&(y.style.background=v.color);v=P;y.style.left=Math.max(v*d.C+d.W,0)+"px";Mn(J,y,g.uX((T-v)*d.C+d.W,0,d.width),d.width,!0)}; Wwv=function(J,y){var v=y.getId();J.Vk[v]===y&&(g.O3(J.ON[v]),delete J.Vk[v],delete J.ON[v])}; Rt=function(J){var y=g.nh(J.api.Y())&&(J.api.X("web_shorts_pip")||J.api.X("web_watch_pip")),v;return!((v=J.api.getVideoData())==null?0:v.isLivePlayback)&&!J.api.isMinimized()&&!J.api.isInline()&&(!J.api.KL()||!y)}; nq=function(J){J.T&&(J.T.disable(),J.XW=0,J.Cy.style.removeProperty("transform"),J.progressBar.style.removeProperty("transform"),J.rj.style.removeProperty("height"),J.element.parentElement&&J.element.parentElement.style.removeProperty("height"))}; a4H=function(J,y){var v=y/Tb(J)*AK(J);g.Ni(J.progressBar,"transform","translateY("+-y+"px)");g.Ni(J.Cy,"transform","translateY("+-y+"px)");g.Ni(J.rj,"transform","translateY("+v+"px)");J.rj.style.height=y+v+"px";J.element.parentElement&&(J.element.parentElement.style.height=AK(J)-v+"px")}; xOc=function(J,y){y?J.B||(J.element.removeAttribute("aria-disabled"),J.B=new g.iP(J.progressBar,!0),J.api.X("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&J.B.subscribe("hoverstart",J.a1b,J),J.B.subscribe("hovermove",J.Tnx,J),J.B.subscribe("hoverend",J.dsk,J),J.B.subscribe("dragstart",J.C6b,J),J.B.subscribe("dragmove",J.gjB,J),J.B.subscribe("dragend",J.J_B,J),J.api&&J.api.X("delhi_modern_web_player")&&J.api.X("delhi_modern_web_player_cutout")&&(J.QE=new g.iP(J.progressBar, !0),J.QE.subscribe("hoverstart",function(){J.mL=!0;nAR(J)},J),J.QE.subscribe("hoverend",function(){J.mL=!1; nAR(J)},J)),J.Ny=J.listen("keydown",J.Yh)):J.B&&(J.element.setAttribute("aria-disabled","true"),J.y8(J.Ny),J.B.cancel(),J.B.dispose(),J.B=null)}; ZO=function(J){return J.api.X("delhi_modern_web_player")?4:J.K?3:2}; dOH=function(J){var y;return!((y=J.wp)==null||!y.postId)&&J.api.getPresentingPlayerType()!==2}; s9=function(J,y){g.z.call(this,{j:"button",kB:["ytp-remote-button","ytp-button"],U:{title:"Reproducir en el televisor","aria-haspopup":"true","data-priority":"10"},TK:"{{icon}}"});this.S=J;this.A9=y;this.C=null;this.Z(J,"onMdxReceiversChange",this.Mx);this.Z(J,"presentingplayerstatechange",this.Mx);this.Z(J,"appresize",this.Mx);J.createClientVe(this.element,this,139118);this.Mx();this.listen("click",this.T,this);rx(J,this.element,this)}; Yr=function(J,y){g.z.call(this,{j:"button",kB:["ytp-button","ytp-settings-button"],U:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":vC(),title:"Configuraci\u00f3n","data-tooltip-target-id":"ytp-settings-button"},D:[J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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.G_()]});this.S=J;this.A9=y;this.T=!0;this.listen("click",this.J);this.Z(J,"onPlaybackQualityChange",this.updateBadge);this.Z(J,"videodatachange",this.updateBadge);this.Z(J,"webglsettingschanged",this.updateBadge);this.Z(J,"appresize",this.C);rx(J,this.element,this);this.S.createClientVe(this.element,this,28663);this.updateBadge();this.C(J.DB().getPlayerSize())}; OK3=function(J,y){J.T=!!y;J.C(J.S.DB().getPlayerSize())}; SL=function(J,y){Sk.call(this,"Anotaciones",g.Om.jV);this.S=J;this.A9=y;this.C=!1;J.X("web_settings_menu_icons")&&(y=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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(y));this.Z(J,"videodatachange",this.Mx);this.Z(J,"onApiChange",this.Mx);this.subscribe("select",this.onSelect,this);this.Mx()}; Va=function(J,y){g.pZ.call(this,"Pista de audio",g.Om.AUDIO,J,y);this.S=J;this.tracks={};g.d7(this.element,"ytp-audio-menu-item");this.countLabel=new g.z({j:"div",D:[{j:"span",TK:"Pista de audio"},{j:"span",N:"ytp-menuitem-label-count",TK:"{{content}}"}]});J.X("web_settings_menu_icons")&&(y=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:j4P(),this.setIcon(y));g.X(this,this.countLabel);g.J_(this,this.countLabel);this.Z(J,"videodatachange",this.Mx);this.Z(J,"onPlaybackAudioChange",this.Mx);this.Mx()}; Lq=function(J,y){Sk.call(this,"Reproducci\u00f3n autom\u00e1tica",g.Om.fC);this.S=J;this.A9=y;this.C=!1;this.J=[];this.Z(J,"presentingplayerstatechange",this.T);this.subscribe("select",this.onSelect,this);J.createClientVe(this.element,this,113682);this.T()}; gAj=function(J,y){g.yP.call(this,g.vy({"aria-haspopup":"false"}),0,"M\u00e1s opciones");this.S=J;this.A9=y;this.Z(this.element,"click",this.onClick);this.A9.Wq(this)}; DOj=function(J,y){var v;g.nh(J.Y())&&(v={j:"div",N:"ytp-panel-footer-content",D:[{j:"span",TK:"Ajusta la calidad de descarga en la "},{j:"a",N:"ytp-panel-footer-content-link",TK:"Configuraci\u00f3n",U:{href:"/account_downloads"}}]});g.pZ.call(this,"Calidad",g.Om.QB,J,y,void 0,void 0,v);this.S=J;this.AY={};this.K={};this.W={};this.wj=new Set;this.C=this.L=!1;this.G="unknown";this.zK="";this.Cy=new g.f0;g.X(this,this.Cy);this.L=this.S.X("web_player_use_new_api_for_quality_pullback");this.C=this.S.X("web_player_enable_premium_hbr_playback_cap"); J.X("web_settings_menu_icons")&&(y=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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(y));g.d7(this.T.element,"ytp-quality-menu");this.Z(J,"videodatachange",this.lS);this.Z(J,"videoplayerreset",this.lS);this.Z(J,"onPlaybackQualityChange",this.nx);this.lS();J.createClientVe(this.element,this,137721)}; G$H=function(J,y,v){var d=J.AY[y],P=g.Gt[y];return cG3(J,d?d.qualityLabel:P?P+"p":"Autom\u00e1tica",y,v)}; bKP=function(J,y,v,d,P){var A=(y=J.C?J.W[y]:J.K[y])&&y.quality,T=y&&y.qualityLabel;T=T?T:"Autom\u00e1tica";d&&(T="("+T);J=cG3(J,T,A||"",P);d&&J.D.push(")");(d=(d=y&&y.paygatedQualityDetails)&&d.paygatedIndicatorText)&&v&&J.D.push({j:"div",N:"ytp-premium-label",TK:d});return J}; cG3=function(J,y,v,d){y={j:"span",kB:d,D:[y]};var P;d="ytp-swatch-color";if(J.L||J.C)d="ytp-swatch-color-white";v==="highres"?P="8K":v==="hd2880"?P="5K":v==="hd2160"?P="4K":v.indexOf("hd")===0&&v!=="hd720"&&(P="HD");P&&(y.D.push(" "),y.D.push({j:"sup",N:d,TK:P}));return y}; tK=function(J){hY.call(this,J.getAvailablePlaybackRates()[0],J.getAvailablePlaybackRates()[J.getAvailablePlaybackRates().length-1],.05,J.getPlaybackRate(),{j:"div",N:"ytp-speedslider-indicator-container",D:[{j:"div",N:"ytp-speedslider-badge"},{j:"p",N:"ytp-speedslider-text"}]});this.S=J;this.zK=Ig(this.AY,50,this);g.d7(this.T,"ytp-speedslider");this.K=this.uA("ytp-speedslider-text");this.Cy=this.uA("ytp-speedslider-badge");Fwx(this);this.Z(this.T,"change",this.wj)}; Fwx=function(J){J.K.textContent=J.C.toFixed(2)+"x";var y=J.C>2&&J.S.X("enable_web_premium_varispeed");J.Cy.classList.toggle("ytp-speedslider-premium-badge",y);J.Cy.setAttribute("aria-label",y?"Premium":"")}; Ww=function(J,y,v,d,P,A,T){g.z.call(this,{j:"div",N:"ytp-slider-section",U:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},D:[{j:"div",N:"ytp-slider",D:[{j:"div",N:"ytp-slider-handle"}]}]});this.B=J;this.K=y;this.T=v;this.J=d;this.zK=P;this.If=A;this.range=this.J-this.T;this.cX=this.uA("ytp-slider-section");this.W=this.uA("ytp-slider");this.Cy=this.uA("ytp-slider-handle");this.G=new g.iP(this.W, !0);this.C=T?T:v;g.X(this,this.G);this.G.subscribe("dragmove",this.DM,this);this.Z(this.element,"keydown",this.PT);this.Z(this.element,"wheel",this.UD);this.init()}; aD=function(J){Ww.call(this,.05,.05,J.getAvailablePlaybackRates()[0],J.getAvailablePlaybackRates()[J.getAvailablePlaybackRates().length-1],150,20,J.getPlaybackRate());this.S=J;this.L=g.Lj("P");this.wj=Ig(this.AY,50,this);g.d7(this.W,"ytp-speedslider");g.d7(this.L,"ytp-speedslider-text");J=this.L;var y=this.W;y.parentNode&&y.parentNode.insertBefore(J,y.nextSibling);jfU(this);this.Z(this.S,"onPlaybackRateChange",this.updateValues)}; jfU=function(J){J.L.textContent=eH6(J,J.C)+"x"}; eH6=function(J,y){J=Number(g.uX(y,J.T,J.J).toFixed(2));y=Math.floor((J+.001)*100%5+2E-15);var v=J;y!==0&&(v=J-y*.01);return Number(v.toFixed(2))}; mO3=function(J){g.T_.call(this,{j:"div",N:"ytp-speedslider-component"});J.X("web_settings_use_input_slider")?this.C=new tK(J):this.C=new aD(J);g.X(this,this.C);this.element.appendChild(this.C.element)}; Bo3=function(J){var y=new mO3(J);j_.call(this,J,y,"Personalizada");g.X(this,y)}; qcx=function(J,y){var v=new Bo3(J);g.pZ.call(this,"Velocidad de reproducci\u00f3n",g.Om.Wr,J,y,xr(J)?void 0:"Personalizada",xr(J)?void 0:function(){g.qX(y,v)}); var d=this;this.W=!1;g.X(this,v);this.G=new tK(J);g.X(this,this.G);if(J.X("web_settings_menu_icons")){var P=J.X("delhi_modern_web_player_icons")?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{d:"M9.80 1.22C8.59 1.46 7.44 1.91 6.38 2.54L5.93 2.82L5.85 2.88C5.66 3.04 5.53 3.26 5.49 3.51C5.45 3.75 5.51 4.00 5.65 4.21C5.78 4.41 5.99 4.56 6.23 4.62C6.47 4.69 6.72 4.66 6.94 4.54L7.03 4.49L7.40 4.26C8.27 3.74 9.21 3.38 10.20 3.18C10.46 3.12 10.69 2.97 10.84 2.75C10.98 2.53 11.04 2.26 10.98 2.00C10.93 1.74 10.77 1.51 10.55 1.36C10.33 1.22 10.06 1.16 9.80 1.22M13.02 2.00C12.99 2.13 12.99 2.26 13.02 2.39C13.04 2.52 13.09 2.64 13.16 2.75C13.24 2.86 13.33 2.95 13.44 3.03C13.55 3.10 13.67 3.15 13.80 3.18L14.20 1.22C14.07 1.19 13.94 1.19 13.81 1.22C13.68 1.24 13.56 1.29 13.45 1.36C13.34 1.44 13.24 1.53 13.17 1.64C13.09 1.75 13.04 1.87 13.02 2.00ZM14.20 1.22L14.00 2.20L13.80 3.18C15.77 3.58 17.54 4.63 18.85 6.15C20.15 7.68 20.90 9.60 20.99 11.61L21.00 12.00C21.00 14.07 20.28 16.08 18.96 17.69C17.65 19.30 15.82 20.40 13.79 20.82L13.99 21.8L14.19 22.78C16.59 22.29 18.77 21.01 20.36 19.14C21.96 17.27 22.88 14.93 22.99 12.47L23.00 12.00C23.00 9.46 22.12 7.00 20.52 5.04C18.91 3.08 16.68 1.73 14.20 1.22ZM2.88 5.85L2.82 5.93L2.54 6.38C1.91 7.44 1.46 8.59 1.22 9.80C1.19 9.93 1.19 10.06 1.21 10.19C1.24 10.32 1.29 10.44 1.36 10.55C1.51 10.77 1.74 10.93 2 10.98C2.25 11.04 2.53 10.98 2.75 10.84C2.97 10.69 3.12 10.46 3.18 10.20C3.38 9.21 3.74 8.27 4.26 7.40L4.49 7.03L4.54 6.95C4.65 6.73 4.68 6.47 4.62 6.23C4.56 5.99 4.41 5.78 4.20 5.65C4.00 5.51 3.75 5.46 3.50 5.49C3.26 5.53 3.03 5.66 2.88 5.85ZM17 12.00L9 7.2V16.8L17 12.00ZM2 13.01C1.87 13.04 1.74 13.09 1.64 13.16C1.53 13.23 1.43 13.33 1.36 13.44C1.29 13.55 1.24 13.67 1.21 13.80C1.19 13.93 1.19 14.06 1.22 14.19C1.46 15.40 1.91 16.55 2.54 17.61L2.82 18.06L2.88 18.14C3.03 18.33 3.26 18.46 3.50 18.50C3.75 18.53 4.00 18.48 4.20 18.34C4.41 18.21 4.56 18.00 4.62 17.76C4.68 17.52 4.65 17.27 4.54 17.05L4.49 16.96L4.26 16.59C3.74 15.72 3.38 14.78 3.18 13.79C3.15 13.66 3.10 13.54 3.02 13.43C2.95 13.32 2.86 13.23 2.75 13.15C2.64 13.08 2.51 13.03 2.39 13.01C2.26 12.98 2.12 12.98 2 13.01ZM5.65 19.79C5.51 19.99 5.46 20.24 5.49 20.49C5.53 20.73 5.66 20.95 5.85 21.11L5.93 21.17L6.38 21.45C7.44 22.08 8.59 22.53 9.80 22.77C10.06 22.83 10.33 22.77 10.55 22.63C10.77 22.48 10.93 22.25 10.98 21.99C11.03 21.73 10.98 21.46 10.84 21.24C10.69 21.02 10.46 20.87 10.20 20.81C9.21 20.61 8.27 20.25 7.40 19.73L7.03 19.50L6.94 19.45C6.72 19.34 6.47 19.31 6.23 19.37C5.99 19.43 5.78 19.58 5.65 19.79ZM14.19 22.78L13.79 20.82C13.66 20.84 13.54 20.89 13.43 20.97C13.32 21.04 13.23 21.13 13.15 21.24C13.08 21.35 13.03 21.48 13.01 21.60C12.98 21.73 12.98 21.87 13.01 22C13.04 22.12 13.09 22.25 13.16 22.35C13.23 22.46 13.33 22.56 13.44 22.63C13.55 22.70 13.67 22.75 13.80 22.78C13.93 22.80 14.06 22.80 14.19 22.78Z", fill:"white"}}]}:{j:"svg",U:{height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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(P)}this.S=J;this.W=!1;this.zK=null;xr(J)?(this.C=g.yY("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.S.getPlaybackRate().toString()}),this.L=this.S.getPlaybackRate()):this.L=this.C=null;this.K=this.S.getAvailablePlaybackRates();this.Z(J,"presentingplayerstatechange",this.Mx);var A;((A=this.S.getVideoData())==null?0:A.US())&&this.Z(J,"serverstitchedvideochange",this.Mx);this.Z(this.G.T,"change",function(){d.W=!0;d.Mx()}); this.Mx()}; rGm=function(J,y){var v=O9(y);J.C&&(J.W||y===J.L)?(J.CL(J.C),J.D1(y.toString())):J.CL(v)}; oA3=function(J){J.Wn(J.K.map(O9));J.C=null;J.L=null;var y=J.S.getPlaybackRate();xr(J.S)&&$OP(J,y);!J.K.includes(y)||J.W?J.CL(J.C):J.CL(O9(y))}; $OP=function(J,y){J.L=y;J.C=g.yY("Personalizada ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:y.toString()});y=J.K.map(O9);y.unshift(J.C);J.Wn(y)}; O9=function(J){return J.toString()}; xr=function(J){return J.X("web_settings_menu_surface_custom_playback")}; C82=function(J){return J.X("web_settings_menu_surface_custom_playback")&&J.X("web_settings_use_input_slider")}; I4T=function(J,y,v,d){var P=new g.e_(y,void 0,"Anulaci\u00f3n de video");g.pZ.call(this,d.text||"",J,y,v,"Anulaci\u00f3n de video",function(){g.qX(v,P)}); var A=this;g.d7(this.element,"ytp-subtitles-options-menu-item");this.setting=d.option.toString();J=d.options;this.settings=g.Qq(J,this.lk,this);this.L=P;g.X(this,this.L);y=new g.yP({j:"div",N:"ytp-menuitemtitle",TK:"Permitir un estilo de subt\u00edtulos diferente si as\u00ed lo especifica el video."},0);g.X(this,y);this.L.Wq(y,!0);this.W=new g.yP({j:"div",N:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},D:[{j:"div",N:"ytp-menuitem-label",TK:"S\u00ed"}]},-1);g.X(this,this.W);this.L.Wq(this.W, !0);this.Z(this.W.element,"click",function(){hHT(A,!0)}); this.C=new g.yP({j:"div",N:"ytp-menuitem",U:{role:"menuitemradio",tabindex:"0"},D:[{j:"div",N:"ytp-menuitem-label",TK:"No"}]},-2);g.X(this,this.C);this.L.Wq(this.C,!0);this.Z(this.C.element,"click",function(){hHT(A,!1)}); this.Wn(g.x7(J,this.lk))}; hHT=function(J,y){J.publish("settingChange",J.setting+"Override",!y);J.A9.Jv()}; gd=function(J,y){g.e_.call(this,J,void 0,"Opciones");var v=this;this.kJ={};for(var d=0;d=0);if(!(y<0||y===J.W)){J.W=y;y=243*J.scale;var v=141*J.scale,d=qj6(J.T,J.W,y);PWv(J.bg,d,y,v,!0);J.Cy.start()}}; SuR=function(J){var y=J.C;J.type===3&&J.AY.stop();J.api.removeEventListener("appresize",J.zK);J.B||y.setAttribute("title",J.J);J.J="";J.C=null;J.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});J.wrapper.style.width=""}; LYm=function(J){g.z.call(this,{j:"button",kB:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.un(J.Y()))},D:[{j:"div",N:"ytp-watch-later-icon",TK:"{{icon}}"},{j:"div",N:"ytp-watch-later-title",TK:"Ver m\u00e1s tarde"}]});this.S=J;this.icon=null;this.visible=this.isRequestPending=this.C=!1;nxj(J);J.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.Z(J,"videoplayerreset",this.onReset);this.Z(J, "appresize",this.CQ);this.Z(J,"videodatachange",this.CQ);this.Z(J,"presentingplayerstatechange",this.CQ);this.CQ();J=this.S.Y();var y=g.qW("yt-player-watch-later-pending");J.W&&y?(w63(),VHR(this)):this.Mx(2);g.lq(this.element,"ytp-show-watch-later-title",g.un(J));rx(this.S,this.element,this)}; tH6=function(J){var y=J.S.getPlayerSize(),v=J.S.Y(),d=J.S.getVideoData(),P=g.un(v)&&g.p5(J.S)&&g.k(J.S.getPlayerStateObject(),128),A=v.J;return v.Bo&&y.width>=240&&!d.isAd()&&d.Bo&&!P&&!g.n5(d)&&!J.S.isEmbedsShortsMode()&&!A}; WY6=function(J,y){xMx(g.PT(J.S.Y()),"wl_button",function(){w63({videoId:y});window.location.reload()})}; VHR=function(J){if(!J.isRequestPending){J.isRequestPending=!0;J.Mx(3);var y=J.S.getVideoData();y=J.C?y.removeFromWatchLaterCommand:y.addToWatchLaterCommand;var v=J.S.X1(),d=J.C?function(){J.C=!1;J.isRequestPending=!1;J.Mx(2);J.S.Y().B&&J.S.Rf("WATCH_LATER_VIDEO_REMOVED")}:function(){J.C=!0; J.isRequestPending=!1;J.Mx(1);J.S.Y().T&&J.S.ys(J.element);J.S.Y().B&&J.S.Rf("WATCH_LATER_VIDEO_ADDED")}; qJ(v,y).then(d,function(){J.isRequestPending=!1;J.Mx(4,"Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.");J.S.Y().B&&J.S.Rf("WATCH_LATER_ERROR","Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.")})}}; aj3=function(J,y){if(y!==J.icon){switch(y){case 3:var v=av();break;case 1:v=YH();break;case 2:v={j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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:v={j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path", l6:!0,U:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}J.updateValue("icon",v);J.icon=y}}; xCR=function(){g.kY.apply(this,arguments);this.Yb=(this.eS=g.un(this.api.Y()))&&(this.api.Y().T||Q2()||kU());this.fO=48;this.V5=69;this.F$=this.H_=null;this.jX=[];this.La=this.fL=this.Vp=this.mP=this.f0=null;this.vv=[];this.contextMenu=this.Nw=this.overflowButton=this.tR=this.o5=this.searchButton=this.copyLinkButton=this.shareButton=this.Mv=this.JO=this.title=this.channelAvatar=this.PB=this.tooltip=null;this.uf=!1;this.Eq=this.u_=this.bB=this.ke=null;this.IOk=this.V$=this.B2=!1}; O6R=function(J){var y=J.api.Y(),v=g.k(J.api.getPlayerStateObject(),128);return y.W&&v&&!J.api.isFullscreen()}; gam=function(J){if(J.lj()&&!J.api.isEmbedsShortsMode()&&J.tR){var y=J.api.X("web_player_hide_overflow_button_if_empty_menu");!J.Mv||y&&!tH6(J.Mv)||ghP(J.tR,J.Mv);!J.shareButton||y&&!p5U(J.shareButton)||ghP(J.tR,J.shareButton);!J.copyLinkButton||y&&!CtH(J.copyLinkButton)||ghP(J.tR,J.copyLinkButton)}else{y=J.api.Y().getWebPlayerContextConfig();if(J.tR){for(var v=J.tR,d=g.D(v.actionButtons),P=d.next();!P.done;P=d.next())P.value.detach();v.actionButtons=[]}J.searchButton&&!g.gs(J.JO.element,J.searchButton.element)&& J.searchButton.yk(J.JO.element);!J.Mv||(y==null?0:y.hideTopWatchNextButton)||g.gs(J.JO.element,J.Mv.element)||J.Mv.yk(J.JO.element);!J.shareButton||(y==null?0:y.hideTopShareButton)||g.gs(J.JO.element,J.shareButton.element)||J.shareButton.yk(J.JO.element);J.copyLinkButton&&!g.gs(J.JO.element,J.copyLinkButton.element)&&J.copyLinkButton.yk(J.JO.element)}}; DC6=function(J,y,v){y=v?y.lastElementChild:y.firstElementChild;for(var d=null;y;){if(zN(y,"display")!=="none"&&y.getAttribute("aria-hidden")!=="true"){var P=void 0;y.tabIndex>=0?P=y:P=DC6(J,y,v);P&&(d?v?P.tabIndex>d.tabIndex&&(d=P):P.tabIndexd/1E3+1)return{msg:"in-the-past"};if(A.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=y.Pq())&&d.isView()&&(d=d.mediaElement);if(d&&d.NL().length>12&&g.$9(P))return{msg:"played-ranges"};if(!P.J)return null;if(!T)return{msg:"no-pvd-formats"};if(!P.J.C||!T.C)return{msg:"non-dash"};d=T.videoInfos[0];var M=P.J.videoInfos[0];J.zK&&Wh(A)&&(d=y.FV(), M=v.FV());if(!d||!M)return{msg:"no-video-info"};if(J.L&&($6(d)||$6(M)))return{msg:"av1"};y=J.W&&A.Zo()&&dj();if(M.containerType!==d.containerType)if(y)A.dj("sgap",{ierr:"container"});else return{msg:"container"};if(J.V&&!y&&(M.PX!==d.PX||M.PX===""||d.PX===""))return{msg:"codec"};if(J.G&&M.video&&d.video&&Math.abs(M.video.width/M.video.height-d.video.width/d.video.height)>.01)return{msg:"ratio"};if(g.$9(A)&&g.$9(P))return{msg:"content-protection"};T=T.C[0];P=P.J.C[0];v=T.audio;var n=P.audio;if(v.sampleRate!== n.sampleRate&&!g.Wz)if(y)A.dj("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:T.itag,cr:v.sampleRate,ni:P.itag,nr:n.sampleRate};return(v.numChannels||2)!==(n.numChannels||2)?{msg:"channel-count"}:J.B&&A.Zo()&&d.video.fps!==M.video.fps?{msg:"fps"}:null}; FYd=function(J,y,v){var d=J.getVideoData(),P=y.getVideoData();if(!d.Y().supportsGaplessShorts())return{nq:"env"};if(v.K?d.Cr&&!d.isAd()||P.Cr&&!P.isAd():v.T?d.Cr&&!d.isAd()||P.Cr:v.J?P.Cr&&!P.isAd()||d.Cr:d.Cr||P.Cr)return{nq:"autoplay"};if(d.endSeconds>0)return{nq:"endcr"};if(!d.G)return{nq:"client"};if(!J.bv())return{nq:"no-empty"};J=b6P(v,J,y,Infinity);return J!=null?{nq:J.msg}:null}; ID=function(J){g.u.call(this);this.app=J;this.V=this.W=this.T=this.C=null;this.J=1;this.events=new g.gf(this);this.events.Z(this.app.Ly,g.NA("gaplessshortslooprange"),this.B);g.X(this,this.events)}; jrm=function(){this.C=this.G=this.J=this.T=this.K=this.L=this.zK=this.B=this.V=this.W=!1}; eAP=function(J){var y=new jrm;y.W=J.X("h5_gapless_support_types_diff");y.B=J.X("h5_gapless_error_on_fps_diff");y.zK=J.X("html5_gapless_use_format_info_fix");y.L=J.X("html5_gapless_disable_on_av1")&&!J.X("html5_gapless_enable_on_av1");y.V=J.X("html5_gapless_check_codec_diff_strictly");y.K=J.X("html5_gapless_on_ad_autoplay");y.G=J.X("html5_gapless_disable_diff_aspect_radio");y.T=J.X("html5_gapless_ad_autoplay_on_ad_to_video_only");y.C=J.X("html5_pseudogapless_shorts_seek_to_next_start");y.J=J.X("html5_gapless_ad_autoplay_on_video_to_ad_only"); return y}; g.pq=function(J,y,v,d){d=d===void 0?!1:d;VV.call(this);this.mediaElement=J;this.start=y;this.end=v;this.C=d}; mCj=function(J,y,v,d,P,A){A=A===void 0?0:A;g.u.call(this);var T=this;this.policy=J;this.C=y;this.T=v;this.mQ=P;this.V=A;this.W=this.J=null;this.currentVideoDuration=this.L=-1;this.G=!1;this.KR=new S1;this.J7=d-y.Vl()*1E3;this.KR.then(void 0,function(){}); this.timeout=new g.Kx(function(){T.dC("timeout")},1E4); g.X(this,this.timeout);this.B=isFinite(d)||this.mQ.Y().experiments.BX("html5_pseudogapless_shorts")&&Wh(y.getVideoData());this.status={status:0,error:null}}; quH=function(J){var y,v,d,P,A,T,M,n,Y;return g.f(function(S){if(S.T==1){if(J.tY())return S.return(Promise.reject(Error(J.status.error||"disposed")));J.timeout.start();return g.h(S,J.KR,2)}y=J.C.Pq();if(y.isEnded())return J.dC("ended_in_finishTransition"),S.return(Promise.reject(Error(J.status.error||"")));if(!J.W||!TK(J.W))return J.dC("next_mse_closed"),S.return(Promise.reject(Error(J.status.error||"")));if(J.T.xi()!==J.W)return J.dC("next_mse_mismatch"),S.return(Promise.reject(Error(J.status.error|| "")));v=U9(J);d=v.f5;P=v.OQ;A=v.vW;J.C.Eh(!1,!0);T=B8j(y,d,A,!J.T.getVideoData().isAd());J.T.setMediaElement(T);(M=J.C.Nm())&&J.T.rT(M.Qf,M.wq);J.B&&(J.T.seekTo(J.T.getCurrentTime()+.001,{rz:!0,Oo:3,jn:"gapless_pseudo"}),T.play(),B0());n=y.P$();n.cpn=J.C.getVideoData().clientPlaybackNonce;n.st=""+d;n.et=""+A;J.T.dj("gapless",n);J.C.dj("gaplessTo",{cpn:J.T.getVideoData().clientPlaybackNonce});Y=J.C.getPlayerType()===J.T.getPlayerType();J.C.MS(P,!0,!1,Y,J.T.getVideoData().clientPlaybackNonce);J.T.MS(J.T.getCurrentTime(), !0,!0,Y,J.C.getVideoData().clientPlaybackNonce);J.T.Cv();g.FC(function(){!J.T.getVideoData().AY&&J.T.getPlayerState().isOrWillBePlaying()&&J.T.YN()}); fq(J,6);J.dispose();return S.return(Promise.resolve())})}; C2v=function(J){if(J.T.getVideoData().J){var y=J.mQ.Y().X("html5_gapless_suspend_next_loader")&&J.V===1;J.T.vy(J.W,y,rzU(J));fq(J,3);$Cc(J);var v=oa3(J);y=v.aW;v=v.N8;y.subscribe("updateend",J.KW,J);v.subscribe("updateend",J.KW,J);J.KW(y);J.KW(v)}}; $Cc=function(J){J.C.unsubscribe("internalvideodatachange",J.h7,J);J.T.unsubscribe("internalvideodatachange",J.h7,J);J.mQ.Y().X("html5_gapless_use_format_info_fix")&&(J.C.unsubscribe("internalvideoformatchange",J.h7,J),J.T.unsubscribe("internalvideoformatchange",J.h7,J));J.C.unsubscribe("mediasourceattached",J.h7,J);J.T.unsubscribe("statechange",J.d9,J)}; B8j=function(J,y,v,d){J=J.isView()?J.mediaElement:J;return new g.pq(J,y,v,d)}; fq=function(J,y){y<=J.status.status||(J.status={status:y,error:null},y===5&&J.KR.resolve())}; rzU=function(J){return J.mQ.Y().X("html5_gapless_no_clear_buffer_timeline")&&J.V===1&&gC(J.C.getVideoData())}; U9=function(J){var y=J.C.Pq();y=y.isView()?y.start:0;var v=J.C.getVideoData().isLivePlayback?Infinity:J.C.HO(!0);v=Math.min(J.J7/1E3,v)+y;var d=J.B?100:0;J=v-J.T.D8()+d;return{GQ:y,f5:J,OQ:v,vW:Infinity}}; oa3=function(J){return{aW:J.J.C.C0,N8:J.J.T.C0}}; iu=function(J){g.u.call(this);var y=this;this.app=J;this.L=this.T=this.C=null;this.B=!1;this.J=this.W=null;this.V=eAP(this.app.Y());this.G=function(){g.FC(function(){hAj(y)})}}; Ijc=function(J,y,v,d,P){d=d===void 0?0:d;P=P===void 0?0:P;J.bv()||uu(J);J.W=new S1;J.C=y;var A=v,T=P===0;T=T===void 0?!0:T;var M=J.app.Ok(),n=M.getVideoData().isLivePlayback?Infinity:M.HO(!0)*1E3;A>n&&(A=n-200,J.B=!0);T&&M.getCurrentTime()>=A/1E3?J.G():(J.T=M,T&&(T=A,A=J.T,J.app.Ly.addEventListener(g.Xz("vqueued"),J.G),T=isFinite(T)||T/1E3>A.getDuration()?T:0x8000000000000,J.L=new g.uI(T,0x8000000000000,{namespace:"vqueued"}),A.addCueRange(J.L)));T=d/=1E3;A=y.getVideoData().C;d&&A&&J.T&&(M=d,n=0, y.getVideoData().isLivePlayback&&(T=Math.min(v/1E3,J.T.HO(!0)),n=Math.max(0,T-J.T.getCurrentTime()),M=Math.min(d,y.HO()+n)),T=r83(A,M)||d,T!==d&&J.C.dj("qvaln",{st:d,at:T,rm:n,ct:M}));y=T;d=J.C;d.getVideoData().gr=!0;d.getVideoData().G=!0;d.ZY(!0);A={};J.T&&(A=J.T.hB(),T=J.T.getVideoData().clientPlaybackNonce,A={crt:(A*1E3).toFixed(),cpn:T});d.dj("queued",A);y!==0&&d.seekTo(y+.01,{rz:!0,Oo:3,jn:"videoqueuer_queued"});J.J=new mCj(J.V,J.app.Ok(),J.C,v,J.app,P);v=J.J;v.status.status!==Infinity&&(fq(v, 1),v.C.subscribe("internalvideodatachange",v.h7,v),v.T.subscribe("internalvideodatachange",v.h7,v),v.mQ.Y().X("html5_gapless_use_format_info_fix")&&(v.C.subscribe("internalvideoformatchange",v.h7,v),v.T.subscribe("internalvideoformatchange",v.h7,v)),v.C.subscribe("mediasourceattached",v.h7,v),v.T.subscribe("statechange",v.d9,v),v.C.subscribe("newelementrequired",v.Ct,v),v.h7());return J.W}; hAj=function(J){var y,v,d,P,A,T,M;g.f(function(n){switch(n.T){case 1:if(J.tY()||!J.W||!J.C)return n.return();J.B&&J.app.Ok().D_(!0,!1);y=null;if(!J.J){n.Qk(2);break}g.bR(n,3);return g.h(n,quH(J.J),5);case 5:g.ex(n,2);break;case 3:y=v=g.BP(n);case 2:if(!J.C)return n.return();pKr.Jl("vqsp",function(){J.app.v7(J.C)}); if(!J.C)return n.return();d=J.C.Pq();J.app.Y().X("html5_gapless_seek_on_negative_time")&&d&&d.getCurrentTime()<-.01&&J.C.seekTo(0);pKr.Jl("vqpv",function(){J.app.playVideo()}); y&&(J.C?(P=y?y.message:"forced",(A=J.T)==null||A.dj("gapfulfbk",{r:P}),J.C.f7(P)):(T=J.T)==null||T.dj("gapsp",{}));M=J.W;uu(J);M&&M.resolve();return n.return(Promise.resolve())}})}; uu=function(J,y){y=y===void 0?!1:y;if(J.T){if(J.L){var v=J.T;J.app.Ly.removeEventListener(g.Xz("vqueued"),J.G);v.removeCueRange(J.L)}J.T=null;J.L=null}J.J&&(J.J.status.status!==6&&(v=J.J,v.status.status!==Infinity&&v.V!==1&&v.dC("Canceled")),J.J=null);J.W=null;J.C&&!y&&J.C!==J.app.TI()&&J.C!==J.app.Ok()&&J.C.dispose();J.C&&y&&J.C.GW();J.C=null;J.B=!1}; UC3=function(J){var y;return((y=J.J)==null?void 0:y.currentVideoDuration)||-1}; fj6=function(J,y,v){if(J.bv())return"qie";if(J.C==null||J.C.tY()||J.C.getVideoData()==null)return"qpd";if(y.videoId!==J.C.HR())return"vinm";if(UC3(J)<=0)return"ivd";if(v!==1)return"upt";if((v=J.J)==null)J=void 0;else if(v.getStatus().status!==5)J="niss";else if(b6P(v.policy,v.C,v.T,v.J7)!=null)J="pge";else{y=oa3(v);J=y.aW;var d=y.N8;y=g.Zo(v.mQ.Y().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var P=v.L+y;v.mQ.Y().experiments.BX("html5_pseudogapless_shorts")&&(P=U9(v).f5+y);v=zt(d.Fo(), P);J=zt(J.Fo(),P);J=!(y>0)||v&&J?null:"neb"}return J!=null?J:null}; i66=function(){g.yK.call(this);var J=this;this.fullscreen=0;this.W=this.J=this.pictureInPicture=this.C=this.T=this.inline=!1;this.V=function(){J.ih()}; FQ2(this.V);this.L=this.getVisibilityState(this.Fz(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.KL(),this.jG(),this.MI(),this.Rr())}; m$T=function(J){return!(J.isMinimized()||J.isInline()||J.isBackground()||J.KL()||J.jG()||J.MI()||J.Rr())}; g.Hw=function(J){g.u.call(this);this.iA=J;this.videoData=this.playerState=null}; RD=function(J,y){g.u.call(this);var v=this;this.data=[];this.J=J||NaN;this.T=y||null;this.C=new g.Kx(function(){Xu(v);Nn(v)}); g.X(this,this.C)}; Y8m=function(J){Xu(J);return J.data.map(function(y){return y.value})}; Xu=function(J){var y=(0,g.GC)();J.data.forEach(function(v){v.expire0));(d=g.Zo(y, "html5_cobalt_audio_write_ahead_ms"))&&ay("Media.AudioWriteDurationLocal",d);(d=v("html5_cobalt_enable_decode_to_texture"))&&ay("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);J.SH()&&ca3();Error.stackTraceLimit=50;var P=g.Zo(y,"html5_idle_rate_limit_ms");P&&Object.defineProperty(window,"requestIdleCallback",{value:function(A){return window.setTimeout(A,P)}}); wdv(J.V);OSU(v("html5_use_ump_request_slicer"));KB3(v("html5_record_now"));v("html5_disable_streaming_xhr")&&(VJ=!1);v("html5_byterate_constraints")&&(GE=!0);v("html5_use_non_active_broadcast_for_post_live")&&(sG=!0);v("html5_enable_encrypted_av1")&&(rf=!0);kI3(g.Zo(J.experiments,"html5_sticky_duration_mos"))}; zAm=function(J,y){return J.slice(y.length).replace(/_[a-z]/g,function(v){return v.toUpperCase().replace("_","")}).replace("Dot",".")}; kiU=function(J){var y={},v=Object.keys(J.experiments.flags);v=g.D(v);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.startsWith("cobalt_h5vcc"))if(d.startsWith("cobalt_h5vcc_string")){var P=zAm(d,"cobalt_h5vcc_string");d=Lo(J.experiments,d);P&&d&&(y[P]=ay(P,d))}else d.startsWith("cobalt_h5vcc")&&(P=zAm(d,"cobalt_h5vcc"),d=g.Zo(J.experiments,d),P&&d&&(y[P]=ay(P,d)));return y}; Ea3=function(J,y,v,d){d=d===void 0?0:d;g.kt.call(this,v.Wg());this.Rk=J;this.videoData=y;this.duration=d;this.endTime=this.startTime=0}; Qr6=function(J){this.end=this.start=J}; g.Qa=function(){this.C=new Map;this.J=new Map;this.T=new Map}; Z6H=function(){this.T=[];this.C=new Map;this.W=new Map;this.J=new Map}; g.ZB=function(J,y,v,d){g.u.call(this);var P=this;this.api=J;this.iA=y;this.playback=v;this.app=d;this.wj=new g.Qa;this.J=new Map;this.V=[];this.C=new Z6H;this.Vk=new Map;this.Ek=null;this.f8=NaN;this.aG=this.yl=null;this.J9=new g.Kx(function(){wKH(P,P.f8,P.yl||void 0)}); this.events=new g.gf(this);this.rj=15E3;this.Cy=new g.Kx(function(){P.AY=!0;P.playback.H1(P.rj);JU3(P);if(P.playback.getVideoData().US()){var A;P.eb({togab:(A=P.zK)==null?void 0:A.identifier})}P.DZ(!1)},this.rj); this.AY=!1;this.G=new Map;this.XW=[];this.zK=null;this.Ky=new Set;this.If=[];this.L8=[];this.Lf=[];this.ZE=[];this.T=void 0;this.xo=0;this.WX=!0;this.L=!1;this.cX=[];this.ZB=new Set;this.h_=new Set;this.ES=new Set;this.O2=0;this.GK=new Set;this.ON=0;this.LT=this.H$=!1;this.bJ=this.W="";this.B=null;this.logger=new g.tA("dai");this.b6={goW:function(){return P.J}, t7R:function(){return P.V}, sDY:function(){return P.C.C}, IzK:function(){return P.W}, DvY:function(A){P.onCueRangeEnter(P.J.get(A))}, iRX:function(A){P.onCueRangeExit(P.J.get(A))}, MoY:function(A,T){P.J.set(A,T)}, xnk:function(A){P.bJ=A}, Vw:function(){return P.Vw()}, ooA:function(A){return P.C.J.get(A)}, quk:function(){return P.B}, udX:function(){return P.C.T}}; this.playback.getPlayerType();this.playback.AX(this);this.YB=this.iA.SH();g.X(this,this.J9);g.X(this,this.events);g.X(this,this.Cy);this.events.Z(this.api,g.Xz("serverstitchedcuerange"),this.onCueRangeEnter);this.events.Z(this.api,g.NA("serverstitchedcuerange"),this.onCueRangeExit);E9(this.app.vO(),this.playback,!1)}; AUm=function(J,y,v,d,P,A,T,M,n){if(J.iA.X("html5_ignore_ads_after_noadresponse")&&n&&J.Ky.has(n))wd(J,{reason:"addafternoad",cueid:n});else{n=yU2(J,A,A+P);J.AY&&J.eb({adaftto:1});v||J.eb({missadcon:1,enter:A,len:P,aid:M});J.K&&!J.K.Zn&&(J.K.Zn=M);J.LT&&J.eb({adfbk:1,enter:A,len:P,aid:M});var Y=J.playback;T=T===void 0?A+P:T;A===T&&!P&&J.iA.X("html5_allow_zero_duration_ads_on_timeline")&&J.eb({attl0d:1});A>T&&wd(J,{reason:"enterTime_greater_than_return",Xr:A,JI:T});var S=Y.Fl()*1E3;AY&&wd(J,{reason:"parent_return_greater_than_content_duration",JI:T,ovy:Y});Y=null;S=g.Hq(J.C.T,{JI:A},function(V,L){return V.JI-L.JI}); S>=0&&(Y=J.C.T[S],Y.JI>A&&vTP(J,y.video_id||"",A,T,Y));if(n&&Y)for(S=0;S.5&&J.eb({ttdtb:1,delta:T,cpn:P.cpn,enter:y.adCpn,exit:v.adCpn,seek:d,skip:A});J.api.X("html5_ssdai_enable_media_end_cue_range")&&(!d&&!A&&v.isAd&&v.adCpn?J.api.DY(v.adCpn):(d||A)&&J.eb({mecr:0,seek:d,skip:A}));if(y.isAd&&v.isAd){P=!!A;if(y.adCpn&&v.adCpn){var M=J.C.C.get(y.adCpn);var n=J.C.C.get(v.adCpn)}P?J.eb({igtransskip:1,enter:y.adCpn,exit:v.adCpn,seek:d,skip:A}):dq(J,n,M,v.HK,y.HK,d,P)}else if(!y.isAd&&v.isAd){J.bJ= P.cpn;J.lX(P.cpn,P.Xr/1E3);J.api.publish("serverstitchedvideochange");M=yE(J,"a2c");J.eb(M);J.O2=0;if(M=v.mS)J.xo=M.end,liP(J,M.id,M.end);var Y;v.adCpn&&(Y=J.C.C.get(v.adCpn));Y&&J.playback.BU(Y,P,v.HK,y.HK,d,!!A)}else if(y.isAd&&!v.isAd){var S;y.adCpn&&(S=J.C.C.get(y.adCpn));S&&(J.xo=0,J.bJ=S.cpn,J.lX(S.cpn,S.Xr/1E3),vs(J,S),Y=yE(J,"c2a",S),J.eb(Y),J.O2=1,J.playback.BU(P,S,v.HK,y.HK,d,!!A))}}; A6=function(J,y,v){v=v===void 0?0:v;var d=g.Hq(J.C.T,{Xr:(y+v)*1E3},function(M,n){return M.Xr-n.Xr}); d=d<0?(d+2)*-1:d;if(d>=0)for(var P=y*1E3,A=d;A<=d+1&&A=T.Xr-v*1E3&&P<=T.JI+v*1E3)return{mH:T,cU:y}}return{mH:void 0,cU:y}}; nTU=function(J,y){var v="";(y=MIR(J,y))&&(v=y.getId());return v?J.C.C.get(v):void 0}; MIR=function(J,y){if(J.bJ){var v=J.J.get(J.bJ);if(v&&v.start-200<=y&&v.end+200>=y)return v}J=g.D(J.J.values());for(v=J.next();!v.done;v=J.next())if(v=v.value,v.start<=y&&v.end>=y)return v}; wKH=function(J,y,v){var d=J.aG||J.app.Ok().getPlayerState();TF(J,!0);J.playback.seekTo(y,v);J=J.app.Ok();y=J.getPlayerState();d.isOrWillBePlaying()&&!y.isOrWillBePlaying()?J.playVideo():d.isPaused()&&!y.isPaused()&&J.pauseVideo()}; TF=function(J,y){J.f8=NaN;J.yl=null;J.J9.stop();J.Ek&&y&&J.Ek.xP();J.aG=null;J.Ek=null}; Y5P=function(J){var y=y===void 0?-1:y;var v=v===void 0?Infinity:v;for(var d=[],P=g.D(J.C.T),A=P.next();!A.done;A=P.next())A=A.value,(A.Xrv)&&d.push(A);J.C.T=d;d=g.D(J.J.values());for(P=d.next();!P.done;P=d.next())P=P.value,P.start>=y&&P.end<=v&&(J.playback.removeCueRange(P),J.J.delete(P.getId()),J.eb({rmAdCR:1}));d=A6(J,y/1E3);y=d.mH;d=d.cU;if(y&&(d=d*1E3-y.Xr,sZR(J,y,d,y.Xr+d),d=J.J.get(y.cpn))){P=g.D(J.V);for(A=P.next();!A.done;A=P.next())A=A.value,A.start===d.end?A.start=y.Xr+y.durationMs: A.end===d.start&&(A.end=y.Xr);d.start=y.Xr;d.end=y.Xr+y.durationMs}if(y=A6(J,v/1E3).mH){var T;d="playback_timelinePlaybackId_"+y.Xl+"_video_id_"+((T=y.videoData)==null?void 0:T.videoId)+"_durationMs_"+y.durationMs+"_enterTimeMs_"+y.Xr+"_parentReturnTimeMs_"+y.JI;J.Ox("Invalid_clearEndTimeMs_"+v+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; S5m=function(J){J.wj.clearAll();J.J.clear();J.V=[];J.C.clear();J.G.clear();J.XW=[];J.zK=null;J.Ky.clear();J.If=[];J.L8=[];J.Lf=[];J.ZE=[];J.cX=[];J.ZB.clear();J.h_.clear();J.ES.clear();J.GK.clear();J.AY=!1;J.T=void 0;J.xo=0;J.WX=!0;J.L=!1;J.O2=0;J.ON=0;J.H$=!1;J.LT=!1;J.W="";uH3(J.app.vO());E9(J.app.vO(),J.playback,!1);J.Vk.clear();J.Cy.isActive()&&J6(J)}; sZR=function(J,y,v,d){y.durationMs=v;y.JI=d;(d=J.Vk.get(y.cpn))?d.i8(v/1E3):J.eb({nop_d:y.cpn})}; Ljx=function(J,y,v,d,P,A){if(!J.LT)if(g.VIH(J,v))J.eb({gdu:"undec",seg:v,itag:P});else if(y=lA(J,y,v,d,A),!(J.playback.getVideoData().US()&&(y==null?0:y.L1)))return y}; lA=function(J,y,v,d,P){var A=J.G.get(v);if(!A){if(A=tI3(J,y))return A;y=J.Kw(v-1,d!=null?d:2);if(P)return J.eb({misscue:P,sq:v,type:d,prevsstate:y==null?void 0:y.Cw,prevrecord:J.G.has(v-1)}),J.G.get(v-1);if((y==null?void 0:y.Cw)===2)return J.eb({adnf:1,sq:v,type:d,prevrecord:J.G.has(v-1)}),J.G.get(v-1)}return A}; tI3=function(J,y){y+=J.O5();if(J.playback.getVideoData().US())a:{var v=1;v=v===void 0?0:v;var d=y*1E3;J=g.D(J.C.T);for(var P=J.next();!P.done;P=J.next()){P=P.value;var A=P.Li?P.Li*1E3:P.Xr;if(d>=P.Xr-v*1E3&&d<=A+P.durationMs+v*1E3){d={mH:P,cU:y};break a}}d={mH:void 0,cU:y}}else d=A6(J,y),((v=d)==null?0:v.mH)||(d=A6(J,y,1));var T;return(T=d)==null?void 0:T.mH}; WjP=function(J,y){y=y===void 0?"":y;var v=OC(y)||void 0;if(!y||!v){var d;J.eb({adcfg:(d=y)==null?void 0:d.length,dcfg:v==null?void 0:v.length})}return v}; ai3=function(J){if(J.cX.length)for(var y=g.D(J.cX),v=y.next();!v.done;v=y.next())J.onCueRangeExit(v.value);y=g.D(J.J.values());for(v=y.next();!v.done;v=y.next())J.playback.removeCueRange(v.value);y=g.D(J.V);for(v=y.next();!v.done;v=y.next())J.playback.removeCueRange(v.value);J.J.clear();J.V=[];J.wj.clearAll();J.T||(J.WX=!0)}; dq=function(J,y,v,d,P,A,T){if(y&&v){J.bJ=v.cpn;J.lX(v.cpn,v.Xr/1E3);vs(J,v);var M=yE(J,"a2a",v);J.eb(M);J.O2++;J.playback.BU(y,v,d||0,P||0,!!A,!!T)}else J.eb({misspbkonadtrans:1,enter:(v==null?void 0:v.cpn)||"",exit:(y==null?void 0:y.cpn)||"",seek:A,skip:T})}; OW3=function(J,y,v,d){if(d)for(d=0;dv){var A=P.end;P.end=y;xL3(J,v,A)}else if(P.start>=y&&P.startv)P.start=v;else if(P.end>y&&P.end<=v&&P.start=y&&P.end<=v){J.playback.removeCueRange(P);if(J.cX.includes(P))J.onCueRangeExit(P);J.V.splice(d,1);continue}d++}else xL3(J,y,v)}; xL3=function(J,y,v){y=TTr(y,v);v=!0;g.ky(J.V,y,function(T,M){return T.start-M.start}); for(var d=0;d0){var P=J.V[d],A=J.V[d-1];if(Math.round(A.end/1E3)>=Math.round(P.start/1E3)){A.end=P.end;P!==y?J.playback.removeCueRange(P):v=!1;J.V.splice(d,1);continue}}d++}if(v)for(J.playback.addCueRange(y),y=J.playback.v9("serverstitchedcuerange",36E5),y=g.D(y),v=y.next();!v.done;v=y.next())J.J.delete(v.value.getId())}; Ml=function(J,y,v){if(v===void 0||!v){v=g.D(J.XW);for(var d=v.next();!d.done;d=v.next()){d=d.value;if(y>=d.start&&y<=d.end)return;if(y===d.end+1){d.end+=1;return}}J.XW.push(new Qr6(y))}}; g.VIH=function(J,y){J=g.D(J.XW);for(var v=J.next();!v.done;v=J.next())if(v=v.value,y>=v.start&&y<=v.end)return!0;return!1}; nw=function(J,y,v){var d;if(d=J.playback.getVideoData().US()||J.iA.X("html5_ssdai_extent_last_unfinished_ad_cue_range"))d=(d=J.C.C.get(y))&&d.E5?(J=J.C.J.get(d==null?void 0:d.E5))&&J.slice(-1)[0].cpn===y:!1;return d&&v===2?1E3:0}; vTP=function(J,y,v,d,P){var A;y={reason:"overlapping_playbacks",aYA:y,Xr:v,JI:d,KEW:P.Xl,noj:((A=P.videoData)==null?void 0:A.videoId)||"",rMB:P.durationMs,e9y:P.Xr,FEX:P.JI};wd(J,y)}; wd=function(J,y,v){J.playback.XH(y,v)}; gTd=function(J,y){var v=[];J=J.C.J.get(y);if(!J)return[];J=g.D(J);for(y=J.next();!y.done;y=J.next())y=y.value,y.cpn&&v.push(y.cpn);return v}; DL2=function(J,y,v){var d=0;J=J.C.J.get(v);if(!J)return-1;J=g.D(J);for(v=J.next();!v.done;v=J.next()){if(v.value.cpn===y)return d;d++}return-1}; cU2=function(J,y){var v=0;J=J.C.J.get(y);if(!J)return 0;J=g.D(J);for(y=J.next();!y.done;y=J.next())y=y.value,y.durationMs!==0&&y.JI!==y.Xr&&v++;return v}; GUv=function(J,y,v){var d=!1;if(v&&(v=J.C.J.get(v))){v=g.D(v);for(var P=v.next();!P.done;P=v.next())P=P.value,P.durationMs!==0&&P.JI!==P.Xr&&(P=P.cpn,y===P&&(d=!0),d&&!J.h_.has(P)&&(J.eb({decoratedAd:P}),J.h_.add(P)))}}; JU3=function(J){J.YB&&J.eb({adf:"0_"+((new Date).getTime()/1E3-J.ON)+"_isTimeout_"+J.AY})}; yU2=function(J,y,v){if(J.If.length)for(var d=g.D(J.If),P=d.next(),A={};!P.done;A={j$:void 0},P=d.next()){A.j$=P.value;P=A.j$.startSecs*1E3;var T=A.j$.WF*1E3+P;if(y>P&&yP&&v0?J:0}else J.Vw().videoData.ON=J.playback.getCurrentTime()}; rUR=function(J,y,v,d){g.u.call(this);var P=this;this.api=J;this.iA=y;this.C=v;this.app=d;this.V=new Map;this.T=[];this.J=this.G=null;this.zK=NaN;this.L=this.W=this.K=null;this.B=new g.Kx(function(){q5v(P,P.zK,P.K||void 0)}); this.Cy=[];this.AY=new g.Kx(function(){var A=P.Cy.pop();if(A){var T=A.Xl,M=A.playerVars;A=A.playerType;M&&(M.prefer_gapless=!0,P.api.preloadVideoByPlayerVars(M,A,NaN,"",T),P.Cy.length&&g.zA(P.AY,4500))}}); this.events=new g.gf(this);this.b6={WTW:function(){return P.T}}; this.C.getPlayerType();g.X(this,this.B);g.X(this,this.AY);g.X(this,this.events);this.events.Z(this.api,g.Xz("childplayback"),this.onCueRangeEnter);this.events.Z(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.Z(this.api,"presentingplayerstatechange",this.TJ)}; hfd=function(J,y,v,d,P,A){var T=y.cpn,M=y.docid||y.video_id||y.videoId||y.id,n=J.C;A=A===void 0?P+d:A;if(P>A)return YS(J,"enterAfterReturn enterTimeMs="+P+" is greater than parentReturnTimeMs="+A.toFixed(3),T,M),"";var Y=n.Fl()*1E3;if(PY)return n="returnAfterDuration parentReturnTimeMs="+A.toFixed(3)+" is greater than parentDurationMs="+Y+". And timestampOffset in seconds is "+ n.Vl(),YS(J,n,T,M),"";Y=null;for(var S=g.D(J.T),V=S.next();!V.done;V=S.next()){V=V.value;if(P>=V.Xr&&PV.Xr)return YS(J,"overlappingReturn",T,M),"";if(A===V.Xr)return YS(J,"outOfOrder",T,M),"";P===V.JI&&(Y=V)}T="cs_childplayback_"+$Ld++;M={mS:Sy(d,!0),J7:Infinity,target:null};var L={Xl:T,playerVars:y,playerType:v,durationMs:d,Xr:P,JI:A,fF:M};J.T=J.T.concat(L).sort(function(c,b){return c.Xr-b.Xr}); Y?oTH(J,Y,{mS:Sy(Y.durationMs,!0),J7:Y.fF.J7,target:L}):(y={mS:Sy(P,!1),J7:P,target:L},J.V.set(y.mS,y),n.addCueRange(y.mS));y=!0;if(J.C===J.app.Ok()&&(n=n.getCurrentTime()*1E3,n>=L.Xr&&ny)break;if(A>y)return{mH:d,cU:y-P};v=A-d.JI/1E3}return{mH:null,cU:y-v}}; q5v=function(J,y,v){v=v===void 0?{}:v;var d=J.L||J.app.Ok().getPlayerState();t6(J,!0);y=isFinite(y)?y:J.C.x6();var P=fiR(J,y);y=P.cU;var A=(P=P.mH)&&!VE(J,P)||!P&&J.C!==J.app.Ok(),T=y*1E3;T=J.J&&J.J.start<=T&&T<=J.J.end;!A&&T||Lw(J);P?CZ6(J,P,y,v,d):iWT(J,y,v,d)}; iWT=function(J,y,v,d){var P=J.C;P!==J.app.Ok()&&J.app.JG();P.seekTo(y,Object.assign({},{jn:"application_timelinemanager"},v));um3(J,d)}; CZ6=function(J,y,v,d,P){var A=VE(J,y);if(!A){y.playerVars.prefer_gapless=!0;J.iA.X("html5_enable_ssap_entity_id")&&(y.playerVars.cached_load=!0);var T=new g.Ph(J.iA,y.playerVars);T.Xl=y.Xl;J.api.IM(T,y.playerType)}T=J.app.Ok();A||T.addCueRange(y.fF.mS);T.seekTo(v,Object.assign({},{jn:"application_timelinemanager"},d));um3(J,P)}; um3=function(J,y){J=J.app.Ok();var v=J.getPlayerState();y.isOrWillBePlaying()&&!v.isOrWillBePlaying()?J.playVideo():y.isPaused()&&!v.isPaused()&&J.pauseVideo()}; t6=function(J,y){J.zK=NaN;J.K=null;J.B.stop();J.W&&y&&J.W.xP();J.L=null;J.W=null}; VE=function(J,y){J=J.app.Ok();return!!J&&J.getVideoData().Xl===y.Xl}; HW3=function(J){var y=J.T.find(function(P){return VE(J,P)}); if(y){var v=J.app.Ok();Lw(J);var d=new g.xz(8);y=ULm(J,y)/1E3;iWT(J,y,{},d);v.dj("forceParentTransition",{childPlayback:1});J.C.dj("forceParentTransition",{parentPlayback:1})}}; NT3=function(J,y,v){y=y===void 0?-1:y;v=v===void 0?Infinity:v;for(var d=y,P=v,A=g.D(J.V),T=A.next();!T.done;T=A.next()){var M=g.D(T.value);T=M.next().value;M=M.next().value;M.J7>=d&&M.target&&M.target.JI<=P&&(J.C.removeCueRange(T),J.V.delete(T))}d=y;P=v;A=[];T=g.D(J.T);for(M=T.next();!M.done;M=T.next())if(M=M.value,M.Xr>=d&&M.JI<=P){var n=J;n.G===M&&Lw(n);VE(n,M)&&n.app.JG()}else A.push(M);J.T=A;d=fiR(J,y/1E3);y=d.mH;d=d.cU;y&&(d*=1E3,XY6(J,y,d,y.JI===y.Xr+y.durationMs?y.Xr+d:y.JI));(y=fiR(J,v/1E3).mH)&& YS(J,"Invalid clearEndTimeMs="+v+" that falls during playback={timelinePlaybackId="+(y.Xl+" video_id="+y.playerVars.video_id+" durationMs="+y.durationMs+" enterTimeMs="+y.Xr+" parentReturnTimeMs="+y.JI+"}.Child playbacks can only have duration updated not their start."))}; XY6=function(J,y,v,d){y.durationMs=v;y.JI=d;d={mS:Sy(v,!0),J7:v,target:null};oTH(J,y,d);VE(J,y)&&J.app.Ok().getCurrentTime()*1E3>v&&(y=ULm(J,y)/1E3,v=J.app.Ok().getPlayerState(),iWT(J,y,{},v))}; YS=function(J,y,v,d){J.C.dj("timelineerror",{e:y,cpn:v?v:void 0,videoId:d?d:void 0})}; Kjj=function(J){J&&J!=="web"&&Rfd.includes(J)}; Ws=function(){g.u.call(this);this.C=new RD(5,null);g.X(this,this.C);this.T=new RD(15,null);g.X(this,this.T)}; H1d=function(J,y){return y?!!J.C.get(y):!1}; zfc=function(J,y){J.dataset.version=y}; QZ6=function(J){g.z.call(this,{j:"div",kB:["html5-video-player"],U:{tabindex:J.Y().disableOrganicUi?"":"-1",id:J.webPlayerContextConfig.rootElementId},D:[{j:"div",N:g.az.VIDEO_CONTAINER,U:{"data-layer":"0"}}]});var y=this;this.app=J;this.kL=this.uA(g.az.VIDEO_CONTAINER);this.IJ=new g.ua(0,0,0,0);this.K8=null;this.Sk=new g.ua(0,0,0,0);this.jM=this.HD=this.hj=NaN;this.HA=this.tp=this.Kq=this.bP=!1;this.Zc=NaN;this.Aj=!1;this.MB=null;this.a8=function(){y.element.focus({preventScroll:!0})}; this.d_=function(){y.app.Ly.publish("playerUnderlayVisibilityChange","visible");y.K8.classList.remove(g.az.VIDEO_CONTAINER_TRANSITIONING);y.K8.removeEventListener(gw,y.d_);y.K8.removeEventListener("transitioncancel",y.d_)}; this.Sp=this.yL=!1;var v=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(A,T,M){v.apply(y.element,[A,T,M])}; this.removeEventListener=function(A,T,M){d.apply(y.element,[A,T,M])}; var P=J.Y();P.transparentBackground&&this.oy("ytp-transparent");P.controlsType==="0"&&this.oy("ytp-hide-controls");g.d7(this.element,"ytp-exp-bottom-control-flexbox");g.d7(this.element,"ytp-modern-caption");P.X("enable_new_paid_product_placement")&&!g.Sc(P)&&g.d7(this.element,"ytp-exp-ppp-update");P.X("html5_enable_ssap")&&g.d7(this.element,"ytp-ssap");g.d7(this.element,"ytp-livebadge-color");if(P.X("delhi_modern_web_player"))switch(g.d7(this.element,"ytp-delhi-modern"),P.X("delhi_modern_web_player_icons")&& g.d7(this.element,"ytp-delhi-modern-icons"),Lo(P.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.d7(this.element,"ytp-delhi-modern-with-luminosity");break;case "difference":g.d7(this.element,"ytp-delhi-modern-with-difference");break;case "exclusion":g.d7(this.element,"ytp-delhi-modern-with-exclusion")}zfc(this.element,kUc(J));this.Zi=!1;this.yG=new g.Kn(NaN,NaN);ETH(this);this.Z(J.Ly,"onMutedAutoplayChange",this.onMutedAutoplayChange)}; ETH=function(J){function y(){J.K8&&aB(J);xS(J)!==J.Aj&&J.resize()} function v(T,M){J.GA(T,M)} function d(T){T.getVideoData()&&J.updateVideoData(T.getVideoData())} function P(){J.Sk=new g.ua(0,0,0,0);J.IJ=new g.ua(0,0,0,0)} var A=J.app.Ly;A.addEventListener("initializingmode",P);A.addEventListener("videoplayerreset",d);A.addEventListener("videodatachange",v);A.addEventListener("presentingplayerstatechange",y);J.addOnDisposeCallback(function(){A.removeEventListener("initializingmode",P);A.removeEventListener("videoplayerreset",d);A.removeEventListener("videodatachange",v);A.removeEventListener("presentingplayerstatechange",y)})}; wYP=function(J){var y=J.app.Ok();if(y=y?y.getVideoData():null){if(g.uV(y)||g.Hh(y)||g.XV(y))return 16/9;if(tH(y)&&y.J.C)return J=y.J.videoInfos[0].video,ZWT(J.width,J.height)}return(J=J.K8)?ZWT(J.videoWidth,J.videoHeight):16/9}; J52=function(J,y,v,d){var P=v,A=ZWT(y.width,y.height);J.bP?P=vA?{width:y.width,height:y.width/P,aspectRatio:P}:PP?J.width=J.height*v:vn;if(xS(J)){var Y=wYP(J);var S=isNaN(Y)||g.XD||dM&&g.tW||n;HN&&!g.iX(601)?Y=P.aspectRatio:S=S||A.controlsType==="3";S?n?(S=A.X("place_shrunken_video_on_left_of_player")?16:J.getPlayerSize().width-y.width-16,Y=Math.max((J.getPlayerSize().height-y.height)/2,0),S=new g.ua(S,Y,y.width, y.height),J.K8.style.setProperty("border-radius","12px")):S=new g.ua(0,0,y.width,y.height):(v=P.aspectRatio/Y,S=new g.ua((y.width-P.width/v)/2,(y.height-P.height)/2,P.width/v,P.height),v===1&&g.tW&&(Y=S.width-y.height*Y,Y>0&&(S.width+=Y,S.height+=Y)));g.lq(J.element,"ytp-fit-cover-video",Math.max(S.width-P.width,S.height-P.height)<1);if(M||J.Zi)J.K8.style.display="";J.Aj=!0}else{S=-y.height;HN?S*=window.devicePixelRatio:g.V0&&(S-=window.screen.height);S=new g.ua(0,S,y.width,y.height);if(M||J.Zi)J.K8.style.display= "none";J.Aj=!1}HZ(J.Sk,S)||(J.Sk=S,g.kO(A)?(J.K8.style.setProperty("width",S.width+"px","important"),J.K8.style.setProperty("height",S.height+"px","important")):g.yG(J.K8,S.getSize()),d=new g.N7(S.left,S.top),g.Q6(J.K8,Math.round(d.x),Math.round(d.y)),d=!0);y=new g.ua((y.width-P.width)/2,(y.height-P.height)/2,P.width,P.height);HZ(J.IJ,y)||(J.IJ=y,d=!0);g.Ni(J.K8,"transform",v===1?"":"scaleX("+v+")");T&&n!==J.tp&&(n&&(J.K8.addEventListener(gw,J.d_),J.K8.addEventListener("transitioncancel",J.d_),J.K8.classList.add(g.az.VIDEO_CONTAINER_TRANSITIONING)), J.tp=n,J.app.Ly.publish("playerUnderlayVisibilityChange",J.tp?"transitioning":"hidden"));return d}; dY3=function(J){J.yL=!J.yL;J.Sp=!0;J.element.classList.toggle("ytp-retro-player",J.yL);J.resize();J.Sp=!1;J.app.Ly.Rf("onRetroModeChanged",J.yL)}; Pmx=function(){this.csn=g.xe();this.clientPlaybackNonce=null;this.elements=new Set;this.J=new Set;this.C=new Set;this.T=new Set}; A5R=function(J){if(J.csn!==g.xe())if(J.csn==="UNDEFINED_CSN")J.csn=g.xe();else{var y=g.xe(),v=g.a5();if(y&&v){J.csn=y;for(var d=g.D(J.elements),P=d.next();!P.done;P=d.next())(P=P.value.visualElement)&&P.isClientVe()&&y&&v&&(g.a7("combine_ve_grafts")?Rk(X1(),P,v):g.kV(g.fT)(void 0,y,v,P))}if(y)for(J=g.D(J.C),v=J.next();!v.done;v=J.next())(v=v.value.visualElement)&&v.isClientVe()&&g.ke(y,v)}}; g.OJ=function(J,y,v,d){g.u.call(this);var P=this;this.logger=new g.tA("App");this.eG=this.M$=!1;this.fv={};this.Vf=[];this.fH=!1;this.eM=null;this.intentionalPlayback=!1;this.al=!0;this.Jt=!1;this.W0=this.Pi=this.Q$=null;this.uK=!0;this.mediaElement=this.wp=null;this.Nd=NaN;this.IT=!1;this.vF=this.oI=this.Ym=this.screenLayer=this.playlist=null;this.RP=[];this.Eb=0;this.b6={vO:function(){return P.Q8}, ozY:function(){return P.Ym}, ofR:function(){}}; this.logger.debug("constructor begin");if(!v)throw Error("b/179532961");this.ZR=(y==null?void 0:y.args)||{};this.webPlayerContextConfig=v;Air();y=this.ZR;this.iA=new vT(y,v,v.canaryState,d,this);g.X(this,this.iA);KYR(this.iA);v=kiU(this.iA);this.iA.SH()&&this.g7("h5vcc",v);this.iA.experiments.BX("jspb_serialize_with_worker")&&f5R();this.iA.experiments.BX("gzip_gel_with_worker")&&rZ6();this.iA.T&&!TYc&&(window.addEventListener(IK?"touchstart":"click",Gi3,{capture:!0,passive:!0}),TYc=!0);this.X("html5_onesie")&& (this.Ur=new tj(this.iA),g.X(this,this.Ur));this.B6=JX(XA(this.iA)&&!0,y.enablesizebutton);this.Jj=JX(!1,y.player_wide);this.visibility=new i66;g.X(this,this.visibility);this.X("web_log_theater_mode_visibility")&&this.Y2(JX(!1,y.player_wide));this.M$=JX(!1,y.external_list);this.events=new g.gf(this);g.X(this,this.events);this.X("start_client_gcf")&&(Ga(e9(),{b9:Pj,dI:yZ6()}),this.tT=e9().resolve(Pj),Pq6(this.tT));this.Z0k=new OH;g.X(this,this.Z0k);this.P9=new Pmx;v=new gx;this.Ly=new g.os(this,v); g.X(this,this.Ly);this.template=new QZ6(this);g.X(this,this.template);this.appState=1;this.Za=lwP(this);g.X(this,v);v={};this.Te=(v.internalvideodatachange=this.jfk,v.playbackready=this.kKA,v.playbackstarted=this.WRA,v.statechange=this.pXj,v);this.t4=new aa(this.Ly);this.xm=Mex(this);v=this.iA.L;!1!==v&&this.g7("badps",{hbp:v,hostname:window.location.hostname,ps:this.iA.playerStyle});this.Ql=new nSr(this.iA,this.xm);this.Ly.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||mlj(this.xm))&& n0R(this);v=10;g.Sb(this.iA)&&(v=3);sr(this.iA)&&(v=g.Zo(this.iA.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Q8=new g.zb(this.Ly,v);v=sSU(this);this.Q8.z6(v);YX3(this);v={};this.F5=(v.airplayactivechange=this.m4X,v.airplayavailabilitychange=this.SNA,v.beginseeking=this.VHA,v.sabrCaptionsDataLoaded=this.U4A,v.endseeking=this.hWK,v.internalAbandon=this.H8j,v.internalaudioformatchange=this.LZK,v.internalvideodatachange=this.KZk,v.internalvideoformatchange=this.iff,v.liveviewshift=this.X$B, v.playbackstalledatstart=this.FZB,v.progresssync=this.Bpy,v.onAbnormalityDetected=this.EDk,v.onSnackbarMessage=this.eWk,v.onLoadProgress=this.vDB,v.SEEK_COMPLETE=this.D4Y,v.SEEK_TO=this.PnB,v.onVideoProgress=this.l1B,v.onLoadedMetadata=this.O8Y,v.onAutoplayBlocked=this.fER,v.onPlaybackPauseAtStart=this.Npk,v.playbackready=this.Z8B,v.statechange=this.oX,v.newelementrequired=this.ul,v.heartbeatparams=this.x4k,v.videoelementevent=this.njB,v.drmoutputrestricted=this.MHX,v.signatureexpired=this.r9R,v.nonfatalerror= this.GIf,v.reloadplayer=this.YNX,v);this.yS=new g.gf(this);g.X(this,this.yS);this.b7=new Ws;g.X(this,this.b7);this.E$=this.BG=-1;this.Uf=new g.Kx(this.template.resize,16,this.template);g.X(this,this.Uf);this.Rk=new rUR(this.Ly,this.iA,this.TI(),this);this.WO=new iu(this);g.X(this,this.WO);this.r3=new ID(this);g.X(this,this.r3);Kjj(this.iA.C.c);this.events.Z(this.Ly,g.Xz("appapi"),this.wXY);this.events.Z(this.Ly,g.NA("appapi"),this.yYB);this.events.Z(this.Ly,g.Xz("appprogressboundary"),this.A_j);this.events.Z(this.Ly, g.NA("applooprange"),this.FH);this.events.Z(this.Ly,"presentingplayerstatechange",this.TJ);this.events.Z(this.Ly,"resize",this.jkW);this.template.yk(PZ(document,J));this.events.Z(this.Ly,"offlineslatestatechange",this.kIy);this.events.Z(this.Ly,"sabrCaptionsTrackChanged",this.xsW);this.events.Z(this.Ly,"sabrCaptionsBufferedRangesUpdated",this.hgR);this.xm.S.Y().yH&&q6(this.xm,"offline");this.iA.XW&&g.cm("ux",g.Cq);J=g.Zo(this.iA.experiments,"html5_defer_fetch_att_ms");this.P8=new g.Kx(this.PJY,J, this);g.X(this,this.P8);this.di().ZO()&&(g.$D()&&this.di().Cy.push("remote"),SXU(this));this.Ql.tick("fs");VeU(this);this.iA.XW&&q6(this.xm,"ux",!0);g.un(this.xm.S.Y())&&q6(this.xm,"embed");this.X("web_player_sentinel_is_uniplayer")||g.ev(new g.H1("Player experiment flags missing","web_player_sentinel_is_uniplayer"));J=this.X("web_player_sentinel_yt_experiments_sync");v=g.a7("web_player_sentinel_yt_experiments_sync");J!==v&&g.ev(new g.H1("b/195699950",{yt:J,player:v}));this.Bj=Lix(this);if(J=g.Zo(this.iA.experiments, "html5_block_pip_safari_delay"))this.G0=new g.Kx(this.qO,J,this),g.X(this,this.G0);q5=this.iA.ON;this.Ly.publish("applicationInitialized");this.logger.debug("constructor end")}; Lix=function(J){function y(v){v.stack&&v.stack.indexOf("player")!==-1&&J.Ok().R6(v)} mU.subscribe("handleError",y);Ks.push(y);return function(){mU.unsubscribe("handleError",y);var v=Ks.indexOf(y);v!==-1&&Ks.splice(v,1)}}; sSU=function(J){var y=new g.Ph(J.iA,J.ZR);J.Ly.publish("initialvideodatacreated",y);return gq(J,1,y,!1)}; YX3=function(J){var y=J.TI();y.setPlaybackRate(J.iA.W?1:teP(J,Number(g.qW("yt-player-playback-rate"))||1));y.df(J.Te,J);y.Uv()}; Mex=function(J){var y="",v=kUc(J);v.indexOf("//")===0&&(v=J.iA.protocol+":"+v);var d=v.lastIndexOf("/base.js");d!==-1&&(y=v.substring(0,d+1));if(v=Error().stack)if(v=v.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))v=v[1],v.includes(y)||g.ev(Error("Player module URL mismatch: "+(v+" vs "+y+".")));y=new Fg2(J.Ly,y);v={};jBc(y,(v.destroyed=function(){J.onApiChange()},v)); return y}; lwP=function(J){if(J.iA.storeUserVolume){J=g.qW("yt-player-volume")||{};var y=J.volume;J={volume:isNaN(y)?100:g.uX(Math.floor(y),0,100),muted:!!J.muted}}else J={volume:100,muted:J.iA.mute};return J}; Dt=function(J){J.mediaElement=J.iA.deviceIsAudioOnly?new g.kP(g.Lj("AUDIO")):hK.pop()||new g.kP(g.Lj("VIDEO"));g.X(J,J.mediaElement);J.Ok().setMediaElement(J.mediaElement);try{J.iA.ES?(J.oI&&J.events.y8(J.oI),J.oI=J.events.Z(J.mediaElement,"volumechange",J.qNX)):(J.mediaElement.Ov(J.Za.muted),J.mediaElement.setVolume(J.Za.volume/100))}catch(P){J.dC("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(P&&typeof P==="object"&&"message"in P&&typeof P.message==="string"&&P.message.replace(/[;:,]/g, "_")));return}g.j$(J.yS);WiP(J);var y=J.template,v=J.mediaElement.sN();y.K8=v;y.HA=!1;y.K8.parentNode||xk(y.kL,y.K8,0);y.Sk=new g.ua(0,0,0,0);v0v(y);aB(y);v=y.K8;g.d7(v,"video-stream");g.d7(v,g.az.MAIN_VIDEO);var d=y.app.Y();d.nE&&v.setAttribute("data-no-fullscreen","true");d.X("html5_local_playsinline")?"playsInline"in Lm()&&(v.playsInline=!0):d.wf&&(v.setAttribute("webkit-playsinline",""),v.setAttribute("playsinline",""));d.Qe&&y.K8&&y.Z(v,"click",v.play,v);try{J.mediaElement.activate()}catch(P){J.dC("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(P&&typeof P==="object"&&"message"in P&&typeof P.message==="string"&&P.message.replace(/[;:,]/g,"_")))}}; xY2=function(J){if(!awT(J)){var y=J.TI().Pq();y&&(y=y.Is(),y instanceof Promise&&y.catch(function(){})); cs(J,j1(J.getPlayerStateObject()))}}; WiP=function(J){var y=J.mediaElement;x6()?J.yS.Z(y,"webkitpresentationmodechanged",J.XqB):window.document.pictureInPictureEnabled&&(J.yS.Z(y,"enterpictureinpicture",function(){J.PU(!0)}),J.yS.Z(y,"leavepictureinpicture",function(){J.PU(!1)})); KX&&(J.yS.Z(y,"webkitbeginfullscreen",function(){J.a$(3)}),J.yS.Z(y,"webkitendfullscreen",function(){J.a$(0)}))}; O7v=function(J,y){var v=y.getPlayerType(),d=J.Q8.J[v]||null;y!==J.TI()&&y!==d&&(d==null||d.dispose(),J.Q8.J[v]=y)}; g06=function(J,y){y=y===void 0?!0:y;J.logger.debug("start clear presenting player");var v;if(v=J.vF){v=J.vF;var d=J.mediaElement;v=!!d&&d===v.mediaElement}v&&(J.Eh(),Dt(J));v=J.Ok();v.Eh(!y);v.qT(J.F5,J);v.getPlayerType()!==1&&v.dispose();y=J.Q8;y.T=y.C;kr(y);J.logger.debug("finish clear presenting player")}; g.DYr=function(J,y,v,d){var P=J.Ql;y===2&&(P=new nSr(J.iA));return new g.A1(J.iA,y,P,J.template,function(A,T,M){J.Ly.publish(A,T,M)},function(){return J.Ly.getVisibilityState()},J.visibility,J,v,d)}; gq=function(J,y,v,d,P){J=g.DYr(J,y,v,P);J=new g.kt(J);d&&J.Uv();return J}; GF=function(J,y){return J.eC(y)?J.TI():y}; bA=function(J,y){var v=J.Ok();return y===J.TI()&&J.eC(y)&&J.eC(v)?v:y}; b7j=function(J){J.logger.debug("start application playback");if(J.TI().getPlayerState().isError())J.logger.debug("start application playback done, player in error state");else{var y=FO(J);J.di().isLoaded();y&&J.UT(6);c5P(J);psr(J.xm)||GM3(J)}}; GM3=function(J){if(!FO(J)){var y=$Y(J.xm);y&&!y.created&&e$R(J.xm)&&(J.logger.debug("reload ad module"),y.create())}}; c5P=function(J){J.logger.debug("start presenter playback");var y=J.getVideoData(),v=J.xm;psr(v)||v.Uw();!l_P&&v.S.X("html5_allow_asmjs")&&Xsj(v);q6(v,"embed");q6(v,"kids");q6(v,"remote");q6(v,"miniplayer");q6(v,"offline");q6(v,"unplugged");q6(v,"ypc",!1,!0);q6(v,"ypc_clickwrap",!1,!0);q6(v,"yto",!1,!0);q6(v,"webgl",!1,!0);Uld(v)||(q6(v,"captions",!0),q6(v,"endscreen"),v.pK(),q6(v,"creatorendscreen",!0));v.h$();J.Ly.publish("videoready",y)}; jy=function(J){J=J.di();J.ZO();return Q1(J)}; VeU=function(J){J.logger.debug("start prepare initial playback");J.a9();var y=J.ZR;Dt(J);J.events.Z(window,"resize",J.tnj);var v=J.di();J.Ly.cR("onVolumeChange",J.Za);if(y&&Vyx(y)){var d=Tx(J.iA);d&&!J.M$&&(y.fetch=0);var P=g.un(J.iA);P&&!J.M$&&(y.fetch=0);ey(J,y);g.un(J.iA)&&J.Ql.tick("ep_pr_s");if(!d||J.M$)if(P&&!J.M$)FiH(J);else if(!v.ZO())J.playlist.onReady(function(){mg(J)})}J.v7(J.TI(),!1,!0); g.k(J.TI().getPlayerState(),128)||(y=jxT(!J.iA.deviceIsAudioOnly),y==="fmt.noneavailable"?J.dC("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):y==="html5.missingapi"?J.dC(y,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):v&&v.ZO()&&jy(J)&&(J.iA.Xg||J.iA.vK)?Bs(J):v.pM?J.Ly.mutedAutoplay({durationMode:v.mutedAutoplayDurationMode}):g.qW("yt-player-playback-on-reload")?(g.AW("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!J.iA.AY}),g.B1("yt-player-playback-on-reload",!1), Bs(J)):tw(J.iA)||jSP(J),g.nh(J.iA)||SD(J.iA)==="MWEB"?(g.zW(g.EK(),function(){ql(J)}),g.zW(g.EK(),function(){FWP()})):(ql(J),FWP()),J.logger.debug("finish prepare initial playback"))}; ql=function(J){if(!J.X("use_rta_for_player"))if(J.X("fetch_att_independently"))g.zA(J.P8);else{var y=J.getVideoData().botguardData;y&&g.Jx(y,J.iA,J.getVideoData().Lb||"")}}; jSP=function(J){J.logger.debug("start initialize to CUED mode");J.Ly.publish("initializingmode");J.UT(2);J.X("embeds_web_enable_defer_loading_remote_js")&&g.Sc(J.iA)?g.zW(g.EK(),function(){q6(J.xm,"remote")}):q6(J.xm,"remote"); q6(J.xm,"miniplayer");J.logger.debug("initialized to CUED mode")}; Bs=function(J){J.logger.debug("start initialize application playback");var y=J.TI();if(g.k(y.getPlayerState(),128))return!1;y=y.getVideoData();jy(J)&&J.iA.vK&&(hK.length&&J.eG?(rq(J,{muted:!1,volume:J.Za.volume},!1),$S(J,!1)):hK.length||J.Za.muted||(rq(J,{muted:!0,volume:J.Za.volume},!1),$S(J,!0)));jy(J)&&g.un(J.iA)&&y.mutedAutoplay&&(rq(J,{muted:!0,volume:J.Za.volume},!1),$S(J,!0));y.V6&&rq(J,{muted:!0,volume:J.Za.volume},!1);e72(J,1,y,!1);var v=J.TI();J.Ly.publish("initializingmode");J.v7(v);J.UT(3); var d;if(!(d=!J.iA.WH)){if(d=J.vF){d=J.vF;var P=J.mediaElement;d=!!P&&P===d.mediaElement}d=d&&J.fH}d&&(J.Eh(),Dt(J),v.setMediaElement(J.mediaElement));v.eE();if(g.k(v.getPlayerState(),128))return!1;y.u1||cs(J,3);return J.fH=!0}; FO=function(J){J=Is(J.xm);return!!J&&J.loaded}; mYU=function(J,y){if(!J.wp)return!1;var v=J.wp.startTimeMs*.001-1,d=J.wp.endTimeMs*.001;J.wp.type==="repeatChapter"&&d--;return Math.abs(y-v)<=1E-6||Math.abs(y-d)<=1E-6||y>=v&&y<=d}; BYj=function(J){var y=J.Ok();Wh(y.getVideoData())&&!y.nU()&&(y=oB(J)*1E3-J.getVideoData().c8,J.X("html5_gapless_new_slr")?(J=J.r3,Cw(J.app,"gaplessshortslooprange"),y=new g.uI(0,y,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(J=J.app.Ok())&&J.addCueRange(y)):J.setLoopRange({startTimeMs:0,endTimeMs:y,type:"shortsLoop"}))}; qXT=function(J){var y=J.TI();if(!(g.k(y.getPlayerState(),64)&&J.di().isLivePlayback&&J.wp.startTimeMs<5E3)){if(J.wp.type==="repeatChapter"){var v,d=(v=yPH(J.un()))==null?void 0:v.hv(),P;v=(P=J.getVideoData())==null?void 0:P.Xg;d instanceof g.kY&&v&&(P=v[Yl(v,J.wp.startTimeMs)],d.renderChapterSeekingAnimation(0,P.title));isNaN(Number(J.wp.loopCount))?J.wp.loopCount=0:J.wp.loopCount++;J.wp.loopCount===1&&J.Ly.Rf("innertubeCommand",J.getVideoData().Dd)}d={jn:"application_loopRangeStart"};if(J.wp.type=== "clips"||J.wp.type==="shortsLoop")d.seekSource=58;y.seekTo(J.wp.startTimeMs*.001,d)}}; teP=function(J,y){var v=J.Ly.getAvailablePlaybackRates();y=Number(y.toFixed(2));J=v[0];v=v[v.length-1];y<=J?y=J:y>=v?y=v:(J=Math.floor(y*100+.001)%5,y=J===0?y:Math.floor((y-J*.01)*100+.001)/100);return y}; oB=function(J,y){y=J.MA({playerType:y});if(!y)return J.Q8.C.HO();y=GF(J,y);return h6(J,y.HO(),y)}; h6=function(J,y,v){if(J.eC(v)&&(v=v.getVideoData(),!IB(J))){J=J.Rk;for(var d=g.D(J.T),P=d.next();!P.done;P=d.next())if(P=P.value,v.Xl===P.Xl){y+=P.Xr/1E3;break}d=y;J=g.D(J.T);for(P=J.next();!P.done;P=J.next()){P=P.value;if(v.Xl===P.Xl)break;var A=P.Xr/1E3;if(A1&&(P=!1);if(!J.IT||P!==y){v=v.lock(P?"portrait":"landscape");if(v!=null)v["catch"](function(){}); J.IT=!0}}else J.IT&&(J.IT=!1,v.unlock())}; Hs=function(J,y,v){J.Ly.publish(y,v);var d=g.Sb(J.iA)||g.kO(J.iA)||g.rm(J.iA);if(v&&d){switch(y){case "cuerangemarkersupdated":var P="onCueRangeMarkersUpdated";break;case "cuerangesadded":P="onCueRangesAdded";break;case "cuerangesremoved":P="onCueRangesRemoved"}P&&J.Ly.Rf(P,v.map(function(A){return{getId:function(){return this.id}, end:A.end,id:A.getId(),namespace:A.namespace==="ad"?"ad":"",start:A.start,style:A.style,visible:A.visible}}))}}; XO=function(J,y,v,d,P,A){v=v===void 0?!0:v;var T=J.MA({playerType:P});if(!T||(T.getPlayerType()!==2||J.eC(T))&&!g.fF(T.getVideoData())){var M=J.Q8.pL;M?M.seekTo(y,{CM:!v,Uo:d,jn:"application",seekSource:A}):(T&&T===J.TI()&&J.wp&&!mYU(J,y)&&J.setLoopRange(null),J.seekTo(y,v,d,P,A))}}; KiH=function(J,y,v,d){v&&(J.Eh(),Dt(J));v=J.Ok();v.v1(y);var P=J.getVideoData(),A={};A.video_id=P.videoId;A.adformat=P.adFormat;P.isLivePlayback||(A.start=v.getCurrentTime(),A.resume="1");P.isLivePlayback&&FV(P)&&g.sA(J.iA)&&(A.live_utc_start=v.T4(),A.resume="1");P.If&&(A.vvt=P.If);P.L&&(A.vss_credentials_token=P.L,A.vss_credentials_token_type=P.A7);P.oauthToken&&(A.oauth_token=P.oauthToken);A.autoplay=1;A.reload_count=P.f8+1;A.reload_reason=y;P.Gj&&(A.unplugged_partner_opt_out=P.Gj);P.nE&&(A.ypc_is_premiere_trailer= P.nE);P.playerParams&&(A.player_params=P.playerParams);J.loadVideoByPlayerVars(A,void 0,!0,void 0,void 0,d);y==="signature"&&J.Ym&&GM3(J)}; z7x=function(J,y){J.di().autonavState=y;g.B1("yt-player-autonavstate",y);J.Ly.publish("autonavchange",y)}; kM3=function(J){var y=J.getVideoData().aq,v=J.iA.Ky,d=J.isInline()&&!J.getVideoData().nK,P=J.mediaElement;y||v||d?P.T0():(P.u5(),rq(J,J.Za))}; pw=function(J){var y=$Y(J.un());y&&y.created&&(J.logger.debug("reset ad module"),y.destroy())}; IB=function(J){return J.getVideoData().enableServerStitchedDai&&!!J.Ym}; E06=function(J,y){y.bounds=J.getBoundingClientRect();for(var v=g.D(["display","opacity","visibility","zIndex"]),d=v.next();!d.done;d=v.next())d=d.value,y[d]=zN(J,d);y.hidden=!!J.hidden}; kUc=function(J){var y=J.webPlayerContextConfig.trustedJsUrl;return y?D5(y).toString():J.webPlayerContextConfig.jsUrl}; QSR=function(J,y){var v=J.MA({playerType:1});if(v){if(v.getVideoData().clientPlaybackNonce===y)return v;if((J=J.WO.C)&&J.getVideoData().clientPlaybackNonce===y)return J}return null}; n0R=function(J){function y(d){return mB(Nqd(J.xm),function(P){return P.lU(d)})} J.Ql.tick("wasm_s");J.iA.QM=Mcd(J.webPlayerContextConfig.wasmModuleUrl,mlj(J.xm)?y:void 0,J.g7.bind(J));var v;(v=J.iA.QM)==null||mB(v,function(d){J.iA.GK=d;J.Ql.tick(d.C?"wasm_fa":"wasm_fw")},function(){J.iA.QM=void 0; J.Ql.tick("wasm_ferr")})}; Z7x=function(J){return J.name==="TypeError"&&J.stack.includes("/s/player/")&&pX()<=105}; wbT=function(J){return J.isTimeout?"NO_BID":"ERR_BID"}; JE2=function(){var J=null;qYT().then(function(y){return J=y},function(y){return J=wbT(y)}); return J}; yEm=function(){var J=IJ(1E3,"NO_BID");return g.$1(KJR([qYT(),J]).TY(wbT),function(){J.cancel()})}; Nl=function(J){return J.DO?g.pR(g.I4(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; RB=function(J){this.player=J;this.J=this.C=1}; Pyd=function(J,y,v,d,P,A){y.client||(y.client={});J.player.Y().X("h5_remove_url_for_get_ad_break")||(y.client.originalUrl=v);var T=P0(v),M=g.s1(v)?!1:!0;(T||M)&&typeof Intl!=="undefined"&&(y.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);M=g.s1(v)?!1:!0;if(T||M||d!==""){var n={};v=Z5(nX(d)).split("&");var Y=new Map;v.forEach(function(S){S=S.split("=");S.length>1&&Y.set(S[0].toString(),decodeURIComponent(S[1].toString()))}); Y.has("bid")&&(n.bid=Y.get("bid"));n.params=[];vcT.forEach(function(S){Y.has(S)&&(S={key:S,value:Y.get(S)},n.params.push(S))}); d46(J,n);y.adSignalsInfo=n}y.client.unpluggedAppInfo||(y.client.unpluggedAppInfo={});y.client.unpluggedAppInfo.enableFilterMode=!1;v=P.C.cosver;v!=null&&v!=="cosver"&&(y.client.osVersion=v);v=P.C.cplatform;v!=null&&v!=="cplatform"&&v!==""&&(y.client.platform=v);v=P.C.cmodel;v!=null&&v!=="cmodel"&&(y.client.deviceModel=v);v=P.C.cplayer;v!=null&&v!=="cplayer"&&(y.client.playerType=v);v=P.C.cbrand;v!=null&&v!=="cbrand"&&(y.client.deviceMake=v);y.user||(y.user={});y.user.lockedSafetyMode=!1;(P.X("embeds_web_enable_iframe_api_send_full_embed_url")|| P.X("embeds_enable_autoplay_and_visibility_signals"))&&g.z3(P)&&ALd(y,A,J.player.getPlayerState(1))}; l$x=function(J,y){var v=!1;if(y==="")return v;y.split(",").forEach(function(d){var P={},A={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},T="ACTIVE";d[0]==="!"&&(d=d.substring(1),T="INACTIVE");d=d.split("-");d.length<3||(d[0]in AEj&&(A.clientName=AEj[d[0]]),d[1]in Tzr&&(A.platform=Tzr[d[1]]),A.applicationState=T,A.clientVersion=d.length>2?d[2]:"",P.remoteClient=A,J.remoteContexts?J.remoteContexts.push(P):J.remoteContexts=[P],v=!0)}); return v}; ncH=function(J){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in M2T))return!1;J=J.split(RegExp("[:&]"));var y=M2T.FLAG_AUTO_CAPTIONS_DEFAULT_ON,v="f"+(1+Math.floor(y/31)).toString();y=1<=2?T[1]:"";var M=Y6m.test(y),n=S6x.exec(y);n=n!=null&&n.length>=2?n[1]:"";var Y=V2R.exec(y);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var S=LZ2.exec(y);S=S!=null&&S.length>=2?S[1]:"0";var V=w4(J.player.Y().MF),L=J.player.getVideoData(1),t=g.RP(L.WX,!0),W="BISCOTTI_ID"in v?v.BISCOTTI_ID:"";Pyd(J,t,y,W.toString(),J.player.Y(), L);L={splay:!1,lactMilliseconds:v.LACT.toString(),playerHeightPixels:Math.trunc(v.P_H),playerWidthPixels:Math.trunc(v.P_W),vis:Math.trunc(v.VIS),signatureTimestamp:20265,autonavState:Nl(J.player.Y())};d&&(d={},l$x(d,v.YT_REMOTE)&&(L.mdxContext=d));if(d=t26.includes(V)?void 0:g.o7("PREF")){for(var c=d.split(RegExp("[:&]")),b=0,B=c.length;b1&&q[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}L.autoCaptionsDefaultOn= ncH(d)}y=WZ3.exec(y);(y=y!=null&&y.length>=2?y[1]:"")&&n&&(t.user.credentialTransferTokens=[{token:y,scope:"VIDEO"}]);y={contentPlaybackContext:L};T={adBlock:Math.trunc(v.AD_BLOCK),params:T,breakIndex:Y,breakPositionMs:S,clientPlaybackNonce:v.CPN,topLevelDomain:V,isProxyAdTagRequest:M,context:t,adSignalsInfoString:Z5(nX(W.toString())),overridePlaybackContext:y};P!==void 0&&(T.cueProcessedMs=Math.round(P).toString());n&&(T.videoId=n);v.LIVE_TARGETING_CONTEXT&&(T.liveTargetingParams=v.LIVE_TARGETING_CONTEXT); v.AD_BREAK_LENGTH&&(T.breakLengthMs=Math.trunc(v.AD_BREAK_LENGTH*1E3).toString());A&&(T.driftFromHeadMs=A.toString());T.currentMediaTimeMs=Math.round(J.player.getCurrentTime(1)*1E3);(J=J.player.getGetAdBreakContext())&&(T.getAdBreakContext=J);return T}; x4H=function(){RB.apply(this,arguments)}; OvH=function(J,y,v,d,P){var A=v.tf;var T=v.mS;var M=J.player.Y().Fs,n=0;v.cueProcessedMs&&T&&!A&&(v=T.end-T.start,v>0&&(n=Math.floor(v/1E3)));var Y={AD_BLOCK:P,AD_BREAK_LENGTH:A?A.WF:n,AUTONAV_STATE:Nl(J.player.Y()),CA_TYPE:"image",CPN:J.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:J.player.Mk()*1E3,LACT:OO(),LIVE_INDEX:A?J.J++:1,LIVE_TARGETING_CONTEXT:A&&A.context?A.context:"",MIDROLL_POS:T?Math.round(T.start/1E3):0,MIDROLL_POS_MS:T?Math.round(T.start):0,VIS:J.player.getVisibilityState(), P_H:J.player.DB().QH().height,P_W:J.player.DB().QH().width,YT_REMOTE:M?M.join(","):""},S=M5(lQ);Object.keys(S).forEach(function(V){S[V]!=null&&(Y[V.toUpperCase()]=S[V].toString())}); d!==""&&(Y.BISCOTTI_ID=d);d={};To(y)&&(d.sts="20265",(J=J.player.Y().forcedExperiments)&&(d.forced_experiments=J));return dh(g.m5(y,Y),d)}; gc3=function(J,y){var v=J.player.Y(),d,P=(d=J.player.getVideoData(1))==null?void 0:d.oauthToken;return g.xo(v,P).then(function(A){if(A&&AN()){var T=K5();z9(T,A)}return g.rQ(J.player.X1(T),y,"/youtubei/v1/player/ad_break").then(function(M){return M})})}; D4c=function(J){this.jb=J}; cEr=function(J){this.S=J}; G56=function(J){this.jb=J}; FZv=function(J){g.u.call(this);this.C=J;this.Ph=bvH(this)}; bvH=function(J){var y=new jTT(J.C.Bq);g.X(J,y);J=[new D4c(J.C.jb),new cEr(J.C.S),new G56(J.C.jb),new ap(J.C.Yi,J.C.sj),new Op,new cA(J.C.zP,J.C.m8,J.C.jb),new xI,new WA];J=g.D(J);for(var v=J.next();!v.done;v=J.next())enc(y,v.value);J=g.D(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(v=J.next();!v.done;v=J.next())gv(y,v.value,function(){}); return y}; Kw=function(J){var y=J.Sb,v=J.gj;J=J.lN;var d=new Nvv,P={P_:new bfR(y.get(),v),gj:v};return{mZ:new O8(v,J,y,P),context:P,U3:d}}; zF=function(J,y,v,d,P){g.u.call(this);this.T=y;this.bA=v;this.Sb=d;this.O8=P;this.listeners=[];var A=new b$(this);g.X(this,A);A.Z(J,"internalAbandon",this.Cnx);this.addOnDisposeCallback(function(){g.j$(A)})}; kS=function(J){this.S=J;this.adVideoId=this.C=this.videoId=this.adCpn=this.contentCpn=null;this.V=!0;this.T=this.J=!1;this.adFormat=null;this.W="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; jQ2=function(J){J.contentCpn=null;J.adCpn=null;J.videoId=null;J.adVideoId=null;J.adFormat=null;J.W="AD_PLACEMENT_KIND_UNKNOWN";J.actionType="unknown_type";J.J=!1;J.T=!1}; e0d=function(J,y){J=g.D(y);for(y=J.next();!y.done;y=J.next())if((y=y.value.renderer)&&(y.instreamVideoAdRenderer||y.linearAdSequenceRenderer||y.sandwichedLinearAdRenderer||y.instreamSurveyAdRenderer)){Ge("ad_i");g.bx({isMonetized:!0});break}}; m4P=function(J){var y;(y=J.S.getVideoData(1))!=null&&y.AY&&(J.T=!1,y={},J.C&&J.videoId&&(y.cttAuthInfo={token:J.C,videoId:J.videoId}),Fh("video_to_ad",y))}; Tv=function(J){J.T=!1;var y={};J.C&&J.videoId&&(y.cttAuthInfo={token:J.C,videoId:J.videoId});Fh("ad_to_video",y);Bzc(J)}; Bzc=function(J){if(J.J)if(J.W==="AD_PLACEMENT_KIND_START"&&J.actionType==="video_to_ad")gQ("video_to_ad");else{var y={adBreakType:I0(J.W),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:J.videoStreamType};J.actionType==="ad_to_video"?(J.contentCpn&&(y.targetCpn=J.contentCpn),J.videoId&&(y.targetVideoId=J.videoId)):(J.adCpn&&(y.targetCpn=J.adCpn),J.adVideoId&&(y.targetVideoId=J.adVideoId));J.adFormat&&(y.adType=J.adFormat);J.contentCpn&& (y.clientPlaybackNonce=J.contentCpn);J.videoId&&(y.videoId=J.videoId);J.adCpn&&(y.adClientPlaybackNonce=J.adCpn);J.adVideoId&&(y.adVideoId=J.adVideoId);g.bx(y,J.actionType);J.S.Y().experiments.BX("html5_ads_csi_qoes")&&(y=J.S.hB(J.actionType==="ad_to_video"?1:2),y=(0,g.GC)()-1E3*y,eq("qoes",y,J.actionType))}}; EJ=function(J){g.u.call(this);this.S=J;this.C=new Map;this.T=new b$(this);g.X(this,this.T);this.T.Z(this.S,g.Xz("ad"),this.onCueRangeEnter,this);this.T.Z(this.S,g.NA("ad"),this.onCueRangeExit,this)}; q6R=function(J,y,v,d,P,A){g.uI.call(this,y,v,{id:J,namespace:"ad",priority:P,visible:d,associatedClipId:A})}; QE=function(J){this.S=J}; rET=function(J,y){J.S.cueVideoByPlayerVars(y,2)}; Zt=function(J){this.S=J}; wq=function(J){this.S=J;g.Zo(this.S.Y().experiments,"tv_pacf_logging_sample_rate")}; $4j=function(J){return ow(J,"html5_ssap_play_cached_preroll")}; Mo=function(J,y){y=y===void 0?!1:y;return J.S.Y().X("html5_ssap_force_ads_ctmp")?!0:(y||J.S.Y().SH())&&J.S.Y().X("html5_ssap_pacf_qoe_ctmp")}; Jd=function(J){var y;return(y=J.S.getVideoData(1)==null?void 0:!1)!=null?y:!1}; ow=function(J,y){return J.S.Y().X(y)}; ocx=function(J){return J.S.Y().X("substitute_ad_cpn_macro_in_ssdai")}; pG=function(J){var y,v,d;return((y=J.S.getVideoData(1).getPlayerResponse())==null?void 0:(v=y.playerConfig)==null?void 0:(d=v.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1}; hsU=function(J){return J.S.Y().X("html5_enable_vod_slar_with_notify_pacf")}; CyP=function(J){return J.S.Y().X("html5_recognize_predict_start_cue_point")}; Wu=function(J){return J.S.Y().experiments.BX("enable_desktop_player_underlay")}; h0P=function(J){return J.S.Y().experiments.BX("html5_load_empty_player_in_media_break_sub_lra")}; kz=function(J){return J.S.Y().experiments.BX("html5_load_ads_instead_of_cue")}; EZ=function(J){return J.S.Y().experiments.BX("html5_preload_ads")}; I$U=function(J){return J.S.Y().experiments.BX("should_ignore_cuepoints_during_lifa_preroll")}; Vv=function(J){return J.S.Y().experiments.BX("enable_ads_control_flow_deterministic_id_generation")}; pvj=function(J){return J.S.Y().experiments.BX("enable_desktop_discovery_video_abandon_pings")||g.lB(J.S.Y())}; U4R=function(J){return J.S.Y().experiments.BX("enable_progres_commands_lr_feeds")}; U$=function(J){return J.S.Y().experiments.BX("html5_cuepoint_identifier_logging")}; HrH=function(J){J=J.S.getVideoData(1);return!!J&&J.X("html5_preload_first_vod_video_ad")&&!J.isDaiEnabled()&&!J.isLivePlayback}; f$r=function(J){return J.S.Y().experiments.BX("html5_ssdai_enable_media_end_cue_range")}; ivv=function(J){switch(J){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}}; uyj=function(){g.yK.call(this);var J=this;this.C={};this.addOnDisposeCallback(function(){for(var y=g.D(Object.keys(J.C)),v=y.next();!v.done;v=y.next())delete J.C[v.value]})}; yC=function(){if(Hvv===null){Hvv=new uyj;Dr(Ky).T="b";var J=Dr(Ky),y=fy(J)=="h"||fy(J)=="b",v=!(dO(),!1);y&&v&&(J.V=!0,J.L=new SfH)}return Hvv}; Xv3=function(J,y,v){J.C[y]=v}; Nzr=function(J){switch(J){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}}; vE=function(J,y,v){this.bA=J;this.S=y;this.gj=v;this.T=new Set;this.C=new Map;yC().subscribe("adactiveviewmeasurable",this.XL,this);yC().subscribe("adfullyviewableaudiblehalfdurationimpression",this.HB,this);yC().subscribe("adviewableimpression",this.vB,this);yC().subscribe("adaudioaudible",this.hw,this);yC().subscribe("adaudiomeasurable",this.x9,this)}; PE=function(J,y,v){var d=v.u0,P=v.er,A=v.listener,T=v.XY;v=v.Ti===void 0?!1:v.Ti;if(J.C.has(y))TS("Unexpected registration of layout in LidarApi");else{if(T){if(J.T.has(T))return;J.T.add(T)}J.C.set(y,A);FF(dO().Ik,"fmd",1);cqR(Dr(Ky),d);var M=v?y:void 0;Xv3(yC(),y,{nS:function(){if(!P)return{};var n=J.S.getPresentingPlayerType(!0),Y;return(Y=J.S.getVideoData(n))!=null&&Y.isAd()?{currentTime:J.bA.get().getCurrentTimeSec(n,!1,M),duration:P,isPlaying:d1(J.bA.get(),n).isPlaying(),isVpaid:!1,isYouTube:!0, volume:J.bA.get().isMuted()?0:J.bA.get().getVolume()/100}:{}}})}}; Ad=function(J,y){J.C.has(y)?(J.C.delete(y),delete yC().C[y]):TS("Unexpected unregistration of layout in LidarApi")}; R0j=function(J,y){if(J.S.isLifaAdPlaying()){var v=J.S.vn(!0,!0);J.y4(y,v.width*.5*1.1,v.height*.25*1.1,v.width*.5*.9,v.height*.5*.9)}}; k5P=function(J,y,v){var d={};KZU(J,d,y,v);z0j(d);d.LACT=Tr(function(){return OO().toString()}); d.VIS=Tr(function(){return J.getVisibilityState().toString()}); d.SDKV="h.3.0";d.VOL=Tr(function(){return J.isMuted()?"0":Math.round(J.getVolume()).toString()}); d.VED="";return d}; Ec3=function(J,y){var v={};if(y||!J||!J.kind)return v;if(J.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||J.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!J.adTimeOffset||!J.adTimeOffset.offsetStartMilliseconds)return g.jv(Error("malformed AdPlacementConfig")),v;v.MIDROLL_POS=Tr(rs(Math.round(Cn(J.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else v.MIDROLL_POS=Tr(rs("0"));return v}; Tr=function(J){return{toString:function(){return J()}}}; QQc=function(J,y,v){function d(M,n){(n=v[n])&&(A[M]=n)} function P(M,n){(n=v[n])&&(A[M]=T(n))} if(!v||g.Vx(v))return J;var A=Object.assign({},J),T=y?encodeURIComponent:function(M){return M}; P("DV_VIEWABILITY","doubleVerifyViewability");P("IAS_VIEWABILITY","integralAdsViewability");P("MOAT_INIT","moatInit");P("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return A}; KZU=function(J,y,v,d){y.CPN=Tr(function(){var P;(P=J.getVideoData(1))?P=P.clientPlaybackNonce:(g.ev(Error("Video data is null.")),P=null);return P}); y.AD_MT=Tr(function(){if(d!=null)var P=d;else{var A=v;J.Y().X("html5_ssap_use_cpn_to_get_time")||(A=void 0);if(J.Y().X("enable_h5_shorts_ad_fill_ad_mt_macro")||J.Y().X("enable_desktop_discovery_pings_ad_mt_macro")||g.lB(J.Y())){var T=J.getPresentingPlayerType(!0),M;P=((M=J.getVideoData(T))==null?0:M.isAd())?Zv6(J,T,A):0}else P=Zv6(J,2,A)}return wv6(P)}); y.MT=Tr(function(){return wv6(J.getCurrentTime(1,!1))}); y.P_H=Tr(function(){return J.DB().QH().height.toString()}); y.P_W=Tr(function(){return J.DB().QH().width.toString()}); y.PV_H=Tr(function(){return J.DB().getVideoContentRect().height.toString()}); y.PV_W=Tr(function(){return J.DB().getVideoContentRect().width.toString()})}; wv6=function(J){return Math.round(Math.max(0,J*1E3)).toString()}; z0j=function(J){J.CONN=Tr(rs("0"));J.WT=Tr(function(){return Date.now().toString()})}; Zv6=function(J,y,v){return v!==void 0?J.getCurrentTime(y,!1,v):J.getCurrentTime(y,!1)}; Jf2=function(){}; yf3=function(J,y,v,d,P){var A,T,M,n,Y,S,V,L,t,W,c,b,B;g.f(function(q){switch(q.T){case 1:A=!!y.scrubReferrer;T=g.m5(y.baseUrl,QQc(v,A,d));M={};if(!y.headers){q.Qk(2);break}n=J.W();if(!n.C){Y=n.getValue();q.Qk(3);break}return g.h(q,n.C,4);case 4:Y=q.C;case 3:S=Y;V=g.D(y.headers);for(L=V.next();!L.done;L=V.next())switch(t=L.value,t.headerType){case "VISITOR_ID":g.NP("VISITOR_DATA")&&(M["X-Goog-Visitor-Id"]=g.NP("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.NP("EOM_VISITOR_DATA")&&(M["X-Goog-EOM-Visitor-Id"]= g.NP("EOM_VISITOR_DATA"));break;case "USER_AUTH":S&&(M.Authorization="Bearer "+S);break;case "PLUS_PAGE_ID":(W=J.V())&&(M["X-Goog-PageId"]=W);break;case "AUTH_USER":c=J.C();!S&&c&&(M["X-Goog-AuthUser"]=c);break;case "DATASYNC_ID":if(b=void 0,(b=J.J())==null?0:b.BX("enable_datasync_id_header_in_web_vss_pings"))B=J.T(),P0(T)&&g.NP("LOGGED_IN")&&B&&(M["X-YouTube-DataSync-Id"]=B)}"X-Goog-EOM-Visitor-Id"in M&&"X-Goog-Visitor-Id"in M&&delete M["X-Goog-Visitor-Id"];case 2:g.$W(T,void 0,A,Object.keys(M).length!== 0?M:void 0,"",!0,P),g.G2(q)}})}; vw3=function(J,y,v,d,P){this.W=J;this.V=y;this.C=v;this.T=d;this.J=P}; dQP=function(J,y){this.C=J;this.gj=y}; lt=function(J,y,v,d,P,A,T){var M=M===void 0?new vw3(function(){var n=J.Y(),Y=J.getVideoData(1);return g.xo(n,Y?g.ZL(Y):"")},function(){return J.Y().pageId},function(){return J.Y().AY},function(){var n; return(n=J.Y().datasyncId)!=null?n:""},function(){return J.Y().experiments}):M; this.S=J;this.T=y;this.gp=v;this.Sb=d;this.mZ=P;this.gj=A;this.U3=T;this.W=M;this.Vs=null;this.C=new Map;this.J=new dQP(M,this.gj)}; AfT=function(J,y,v,d,P){var A=KG(J.T.get(),v);A?(v=VY(J,P6T(A),A,void 0,void 0,d),y.hasOwnProperty("baseUrl")?J.W.send(y,v):J.J.send(y,v,{},P)):TS("Trying to ping from an unknown layout",void 0,void 0,{layoutId:v})}; oe3=function(J,y,v,d,P,A){d=d===void 0?[]:d;var T=KG(J.T.get(),y);if(T){var M=J.gp.get().ez(y,v),n=VY(J,P6T(T),T,P,A);d.forEach(function(Y,S){Y.baseUrl&&(J.J.send(Y.baseUrl,n,M,Y.attributionSrcMode),Y.serializedAdPingMetadata&&J.mZ.Ty("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,T,new SVv(Y,S),void 0,void 0,T.adLayoutLoggingData))})}else TS("Trying to track from an unknown layout.",void 0,void 0,{layoutId:y, trackingType:v})}; Tf=function(J,y){J.S.sendVideoStatsEngageEvent(y,void 0,2)}; Lz=function(J,y){g.AW("adsClientStateChange",y)}; T2r=function(J,y){J.C.has(y.DQ())?TS("Trying to register an existing AdErrorInfoSupplier."):J.C.set(y.DQ(),y)}; lH6=function(J,y){J.C.delete(y.DQ())||TS("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; aq=function(J,y,v){typeof v==="string"?J.S.getVideoData(1).jE(y,v):J.S.getVideoData(1).dj(y,v)}; P6T=function(J){var y=Nz(J.clientMetadata,"metadata_type_ad_placement_config");J=Nz(J.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:y,jZ:J}}; VY=function(J,y,v,d,P,A){var T=v?Mfj(J):{},M=v?nwr(J,v.layoutId):{},n=s1r(J),Y,S=P!=null?P:(Y=$z(J.Sb.get(),2))==null?void 0:Y.clientPlaybackNonce;P=void 0;if(v){var V;if((V=J.U3.C.get(v.layoutId))==null?0:V.Ti)P=v.layoutId}V={};J=Object.assign({},k5P(J.S,P,d),Ec3(y.adPlacementConfig,(v==null?void 0:v.renderingContent)!==void 0),M,T,n,(V.FINAL=Tr(function(){return"1"}),V.AD_CPN=Tr(function(){return S||""}),V)); (v==null?void 0:v.renderingContent)!==void 0||(J.SLOT_POS=Tr(function(){return(y.jZ||0).toString()})); v={};A=Object.assign({},J,A);J=g.D(Object.values(YWd));for(d=J.next();!d.done;d=J.next())d=d.value,T=A[d],T!=null&&T.toString()!=null&&(v[d]=T.toString());return v}; Mfj=function(J){var y={},v,d=(v=J.Vs)==null?void 0:v.QR/1E3;d!=null&&(y.SURVEY_ELAPSED_MS=Tr(function(){return Math.round(d*1E3).toString()})); y.SURVEY_LOCAL_TIME_EPOCH_S=Tr(function(){return Math.round(Date.now()/1E3).toString()}); return y}; nwr=function(J,y){J=J.C.get(y);if(!J)return{};J=J.N9();if(!J)return{};y={};return y.YT_ERROR_CODE=J.F6.toString(),y.ERRORCODE=J.Dm.toString(),y.ERROR_MSG=J.errorMessage,y}; s1r=function(J){var y={},v=J.S.getVideoData(1);y.ASR=Tr(function(){var d;return(d=v==null?void 0:v.Qe)!=null?d:null}); y.EI=Tr(function(){var d;return(d=v==null?void 0:v.eventId)!=null?d:null}); return y}; MM=function(J,y,v){g.u.call(this);this.S=J;this.le=y;this.gj=v;this.listeners=[];this.WD=null;this.nO=new Map;y=new g.gf(this);g.X(this,y);y.Z(J,"videodatachange",this.TiB);y.Z(J,"serverstitchedvideochange",this.GuX);this.cE=$z(this)}; $z=function(J,y){var v=J.S.getVideoData(y);return v?J.ly(v,y||J.S.getPresentingPlayerType(!0)):null}; SW6=function(J,y,v){var d=J.ly(y,v);J.cE=d;J.listeners.forEach(function(P){P.K5(d)})}; Vfc=function(J){switch(J){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}}; nJ=function(J,y,v){g.u.call(this);this.S=J;this.Sb=y;this.gj=v;this.listeners=[];this.rN=[];this.C=function(){TS("Called 'doUnlockPreroll' before it's initialized.")}; y=new b$(this);v=new g.gf(this);g.X(this,v);g.X(this,y);y.Z(J,"progresssync",this.ojk);y.Z(J,"presentingplayerstatechange",this.RWj);y.Z(J,"fullscreentoggled",this.onFullscreenToggled);y.Z(J,"onVolumeChange",this.onVolumeChange);y.Z(J,"minimized",this.E3);y.Z(J,"overlayvisibilitychange",this.Do);y.Z(J,"shortsadswipe",this.ra);y.Z(J,"resize",this.UN);v.Z(J,g.Xz("appad"),this.Y6)}; sB=function(J){Jd(J.gj.get())||J.C()}; Lh3=function(J,y){J.rN=J.rN.filter(function(v){return v!==y})}; Y_=function(J,y,v){return J.getCurrentTimeSec(y,v)}; SC=function(J,y){var v;y=(v=J.Sb.get().nO.get(y))!=null?v:null;if(y===null)return TS("Expected ad video start time on playback timeline"),0;J=J.S.getCurrentTime(2,!0);return J0){var A=y.end.toString();P.forEach(function(T){(T=T.config&&T.config.adPlacementConfig)&&T.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&T.adTimeOffset&&T.adTimeOffset.offsetEndMilliseconds==="-1"&&T.adTimeOffset.offsetEndMilliseconds!==A&&(T.adTimeOffset.offsetEndMilliseconds=A)}); d.map(function(T){return g.R(T,yF)}).forEach(function(T){var M; (T=T==null?void 0:(M=T.slotEntryTrigger)==null?void 0:M.mediaTimeRangeTrigger)&&T.offsetEndMilliseconds==="-1"&&(T.offsetEndMilliseconds=A)})}return{zb:P, adSlots:d,nM:!1,ssdaiAdsConfig:J.ssdaiAdsConfig}}; an=function(J){g.u.call(this);this.S=J;this.listeners=[];this.C=new b$(this);g.X(this,this.C);this.C.Z(this.S,"aduxclicked",this.onAdUxClicked);this.C.Z(this.S,"aduxmouseover",this.Ub);this.C.Z(this.S,"aduxmouseout",this.Yy);this.C.Z(this.S,"muteadaccepted",this.qkj)}; OMH=function(J,y,v){y=g.x7(y,function(d){return new uMP(d,v,d.id)}); J.S.Rf("onAdUxUpdate",y)}; x_=function(J,y){J=g.D(J.listeners);for(var v=J.next();!v.done;v=J.next())y(v.value)}; OB=function(J,y){this.T=J;this.J=y===void 0?!1:y;this.C={}}; gwx=function(J,y){var v=J.startSecs+J.WF;v=v<=0?null:v;if(v===null)return null;switch(J.event){case "start":case "continue":case "stop":break;case "predictStart":if(y)break;return null;default:return null}y=Math.max(J.startSecs,0);return{Ha:new g7(y,v),dg:new PJ(y,v-y,J.context,J.identifier,J.event,J.C)}}; DQ3=function(){this.C=[]}; q02=function(J,y,v){var d=g.Hq(J.C,y);if(d>=0)return y;y=-d-1;return y>=J.C.length||J.C[y]>v?null:J.C[y]}; g1=function(J,y,v){g.u.call(this);this.S=J;this.gj=y;this.jb=v;this.listeners=[];this.W=!1;this.lG=[];this.C=null;this.V=new OB(this,CyP(y.get()));this.J=new DQ3;this.T=null}; cfd=function(J,y){J.lG.push(y);for(var v=!1,d=g.D(J.listeners),P=d.next();!P.done;P=d.next())v=P.value.WI(y)||v;J.W=v;U$(J.gj.get())&&aq(J.jb.get(),"onci","cpi."+y.identifier+";cpe."+y.event+";cps."+y.startSecs+";cbi."+v)}; bMr=function(J,y){Lz(J.jb.get(),{cuepointTrigger:{event:Gwx(y.event),cuepointId:y.identifier,totalCueDurationMs:y.WF*1E3,playheadTimeMs:y.C,cueStartTimeMs:y.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:J.S.getVideoData(1).clientPlaybackNonce}})}; Gwx=function(J){switch(J){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 SP(J,"Unexpected cuepoint event")}}; Ds=function(J){this.S=J}; cE=function(J){this.S=J}; Fhj=function(J){switch(J){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:SP(J,"unknown transitionReason")}}; Gr=function(){g.u.apply(this,arguments)}; j1c=function(J){this.S=J}; eZ3=function(J,y,v,d,P){g.u.call(this);var A=this,T=jb(function(){return new SW(A.gj)}); g.X(this,T);var M=jb(function(){return new LY(T,A.gj)}); g.X(this,M);var n=jb(function(){return new NG}); g.X(this,n);var Y=jb(function(){return new Hu(J)}); g.X(this,Y);var S=jb(function(){return new tP(T,M,A.gj)}); g.X(this,S);var V=jb(function(){return new gU}); g.X(this,V);this.nf=jb(function(){return new an(y)}); g.X(this,this.nf);this.W$=jb(function(){return new m7(P)}); g.X(this,this.W$);this.qs=jb(function(){return new kS(y)}); g.X(this,this.qs);this.Tu=jb(function(){return new EJ(y)}); g.X(this,this.Tu);this.J_=jb(function(){return new QE(y)}); g.X(this,this.J_);this.Bq=jb(function(){return new Zt(y)}); g.X(this,this.Bq);this.gj=jb(function(){return new wq(y)}); g.X(this,this.gj);var L=jb(function(){return new WE(d)}); g.X(this,L);var t=jb(function(){return new wH(A.gj)}); g.X(this,t);this.hA=jb(function(){return new Ds(y)}); g.X(this,this.hA);this.uX=jb(function(){return new rF}); g.X(this,this.uX);this.Sb=jb(function(){return new MM(y,V,A.gj)}); g.X(this,this.Sb);var W=Kw({Sb:this.Sb,gj:this.gj,lN:t}),c=W.context,b=W.U3;this.mZ=W.mZ;this.O8=jb(function(){return new g1(y,A.gj,A.jb)}); g.X(this,this.O8);this.dn=jb(function(){return new cE(y)}); g.X(this,this.dn);this.bA=jb(function(){return new nJ(y,A.Sb,A.gj)}); g.X(this,this.bA);this.pA=jb(function(){return new Gr}); g.X(this,this.pA);W=jb(function(){return new oR(T,S,M,A.gj,t,"SLOT_TYPE_ABOVE_FEED",A.bA,A.pN,A.N1)}); g.X(this,W);this.Rz=jb(function(){return new $8(A.gj)}); this.gp=jb(function(){return new vE(A.bA,y,A.gj)}); g.X(this,this.gp);this.jb=jb(function(){return new lt(y,n,A.gp,A.Sb,A.mZ,A.gj,b)}); g.X(this,this.jb);this.Yg=new iH(fG,bt,function(q,C,U,N){return tB(M.get(),q,C,U,N)},Y,S,M,t,this.gj,this.Sb); g.X(this,this.Yg);this.s8=new uH(Y,W,v,this.gj,J,this.Sb,this.bA,this.qs);g.X(this,this.s8);var B=new zF(y,this.s8,this.bA,this.Sb,this.O8);this.LA=jb(function(){return B}); this.Or=B;this.pN=new IR(Y,S,this.LA,this.O8,this.bA,this.gj,this.jb,this.dn);g.X(this,this.pN);this.ZW=new XP(Y,S,this.Tu,this.LA,c);g.X(this,this.ZW);this.wi=new JB(this.gj,Y,S,W,this.Sb,this.ZW,v,this.J_);g.X(this,this.wi);this.QI=jb(function(){return new Qb(L,M,t,A.gj,A.jb,A.bA,A.dn)}); g.X(this,this.QI);this.Ar=jb(function(){return new Zd}); g.X(this,this.Ar);this.uj=new ZU(J,this.nf,this.gj);g.X(this,this.uj);this.GI=new w6(J);g.X(this,this.GI);this.bq=new JP(J);g.X(this,this.bq);this.Gr=new vR(J,this.LA,c);g.X(this,this.Gr);this.BR=new dU(J,this.Tu,this.bA,this.Sb,c);g.X(this,this.BR);this.wA=new PR(J,this.Sb);g.X(this,this.wA);this.N1=new lY(J,this.O8,this.bA,this.jb,this.LA);g.X(this,this.N1);this.sH=new AP(J);g.X(this,this.sH);this.cF=new Yx(J);g.X(this,this.cF);this.Rx=new TO(J);g.X(this,this.Rx);this.LW=new s8(J);g.X(this,this.LW); this.cF=new Yx(J);g.X(this,this.cF);this.dc=jb(function(){return new zk}); g.X(this,this.dc);this.Ux=jb(function(){return new kL(A.bA)}); g.X(this,this.Ux);this.O6=jb(function(){return new Jld(A.nf,A.jb,J,n,A.gp)}); g.X(this,this.O6);this.Ix=jb(function(){return new Ib(A.wi,Y,T)}); g.X(this,this.Ix);this.Ex=jb(function(){return new f4(A.gj,A.jb,A.sH,A.gp)}); g.X(this,this.Ex);this.B5=jb(function(){return new Fi(J,A.cF,A.sH,A.Sb,A.dn,A.bA,A.pA,A.jb,V,A.O8,A.gp,A.Rz,A.J_,A.Tu,A.qs,A.Bq,A.W$,A.hA,A.gj,n,c,b)}); g.X(this,this.B5);this.DN=jb(function(){return new LtU(A.bA,A.jb,A.W$,A.gj,A.gp,A.Sb)}); g.X(this,this.DN);this.i7=jb(function(){return new yIr(A.nf,A.bA,A.jb,n,A.gp,A.bq,A.LW,A.W$,A.gj,v)}); g.X(this,this.i7);this.YI=jb(function(){return new ylc(A.nf,A.jb,n)}); g.X(this,this.YI);this.PL=new td(J,this.uX,T);g.X(this,this.PL);this.hO={JE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wi],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.s8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZW]]),hW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QI],["SLOT_TYPE_ABOVE_FEED",this.Ar],["SLOT_TYPE_FORECASTING",this.Ar], ["SLOT_TYPE_IN_PLAYER",this.Ar],["SLOT_TYPE_PLAYER_BYTES",this.Ar],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ar],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ar],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ar]]),gf:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uj],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.uj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.GI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.GI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.GI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.GI],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.GI],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.GI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.bq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gr],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.BR],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.BR],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.BR],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.BR],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.BR],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.BR],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.BR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wA],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sH],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.Gr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rx],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.LW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.N1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.N1],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.N1],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.N1],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.N1]]),nP:new Map([["SLOT_TYPE_ABOVE_FEED",this.dc], ["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.Ux],["SLOT_TYPE_PLAYER_UNDERLAY",this.dc],["SLOT_TYPE_PLAYBACK_TRACKING",this.dc],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.dc]]),oM:new Map([["SLOT_TYPE_ABOVE_FEED",this.O6],["SLOT_TYPE_AD_BREAK_REQUEST",this.Ix],["SLOT_TYPE_FORECASTING",this.Ex],["SLOT_TYPE_PLAYER_BYTES",this.B5],["SLOT_TYPE_PLAYBACK_TRACKING",this.DN],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.DN],["SLOT_TYPE_IN_PLAYER",this.i7],["SLOT_TYPE_PLAYER_UNDERLAY",this.YI]])};this.listeners=[n.get()];this.OM={wi:this.wi,m8:this.gj.get(),vX:this.W$.get(),oJ:this.bA.get(),s8:this.s8,PE:T.get(),j8:this.uX.get(),sj:this.uj,Yi:n.get(),zP:this.Sb.get()}}; mQT=function(J,y,v,d,P){g.u.call(this);var A=this,T=jb(function(){return new SW(A.gj)}); g.X(this,T);var M=jb(function(){return new LY(T,A.gj)}); g.X(this,M);var n=jb(function(){return new NG}); g.X(this,n);var Y=jb(function(){return new Hu(J)}); g.X(this,Y);var S=jb(function(){return new tP(T,M,A.gj)}); g.X(this,S);var V=jb(function(){return new gU}); g.X(this,V);this.nf=jb(function(){return new an(y)}); g.X(this,this.nf);this.W$=jb(function(){return new m7(P)}); g.X(this,this.W$);this.qs=jb(function(){return new kS(y)}); g.X(this,this.qs);this.Tu=jb(function(){return new EJ(y)}); g.X(this,this.Tu);this.J_=jb(function(){return new QE(y)}); g.X(this,this.J_);this.Bq=jb(function(){return new Zt(y)}); g.X(this,this.Bq);this.gj=jb(function(){return new wq(y)}); g.X(this,this.gj);var L=jb(function(){return new WE(d)}); g.X(this,L);var t=jb(function(){return new wH(A.gj)}); g.X(this,t);var W=jb(function(){return new oR(T,S,M,A.gj,t,null,null,A.pN,A.N1)}); g.X(this,W);this.hA=jb(function(){return new Ds(y)}); g.X(this,this.hA);this.uX=jb(function(){return new rF}); g.X(this,this.uX);this.Sb=jb(function(){return new MM(y,V,A.gj)}); g.X(this,this.Sb);var c=Kw({Sb:this.Sb,gj:this.gj,lN:t}),b=c.context,B=c.U3;this.mZ=c.mZ;this.O8=jb(function(){return new g1(y,A.gj,A.jb)}); this.bA=jb(function(){return new nJ(y,A.Sb,A.gj)}); g.X(this,this.bA);this.pA=jb(function(){return new Gr}); g.X(this,this.pA);this.gp=jb(function(){return new vE(A.bA,y,A.gj)}); g.X(this,this.gp);this.jb=jb(function(){return new lt(y,n,A.gp,A.Sb,A.mZ,A.gj,B)}); g.X(this,this.jb);this.Rz=jb(function(){return new $8(A.gj)}); g.X(this,this.Rz);this.Yg=new iH(fG,bt,function(C,U,N,Jc){return tB(M.get(),C,U,N,Jc)},Y,S,M,t,this.gj,this.Sb); g.X(this,this.Yg);this.s8=new uH(Y,W,v,this.gj,J,this.Sb,this.bA,this.qs);g.X(this,this.s8);var q=new zF(y,this.s8,this.bA,this.Sb,this.O8);this.LA=jb(function(){return q}); this.Or=q;this.pN=new IR(Y,S,this.LA,this.O8,this.bA,this.gj,this.jb);g.X(this,this.pN);this.ZW=new XP(Y,S,this.Tu,this.LA,b);g.X(this,this.ZW);this.wi=new JB(this.gj,Y,S,W,this.Sb,this.ZW,v,this.J_);g.X(this,this.wi);this.QI=jb(function(){return new Qb(L,M,t,A.gj,A.jb,A.bA)}); g.X(this,this.QI);this.Ar=jb(function(){return new Zd}); g.X(this,this.Ar);this.uj=new ZU(J,this.nf,this.gj);g.X(this,this.uj);this.GI=new w6(J);g.X(this,this.GI);this.bq=new JP(J);g.X(this,this.bq);this.Gr=new vR(J,this.LA,b);g.X(this,this.Gr);this.BR=new dU(J,this.Tu,this.bA,this.Sb,b);g.X(this,this.BR);this.sH=new AP(J);g.X(this,this.sH);this.Rx=new TO(J);g.X(this,this.Rx);this.LW=new s8(J);g.X(this,this.LW);this.dn=jb(function(){return new cE(y)}); g.X(this,this.dn);this.cF=new Yx(J);g.X(this,this.cF);this.N1=new lY(J,this.O8,this.bA,this.jb,this.LA);g.X(this,this.N1);this.dc=jb(function(){return new zk}); g.X(this,this.dc);this.Ux=jb(function(){return new kL(A.bA)}); g.X(this,this.Ux);this.Ix=jb(function(){return new Ib(A.wi,Y,T)}); g.X(this,this.Ix);this.Ex=jb(function(){return new f4(A.gj,A.jb,A.sH,A.gp)}); g.X(this,this.Ex);this.i7=jb(function(){return new vu3(A.nf,A.bA,A.jb,n,A.gp,A.bq,A.LW,A.W$,A.gj,v)}); g.X(this,this.i7);this.B5=jb(function(){return new jo(J,A.cF,A.sH,A.jb,A.gp,A.Rz,A.J_,A.Sb,A.bA,A.pA,A.Tu,A.qs,A.Bq,A.W$,A.hA,A.gj,A.dn,b,B)}); g.X(this,this.B5);this.PL=new td(J,this.uX,T);g.X(this,this.PL);this.hO={JE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wi],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.s8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZW]]),hW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QI],["SLOT_TYPE_FORECASTING",this.Ar],["SLOT_TYPE_IN_PLAYER",this.Ar], ["SLOT_TYPE_PLAYER_BYTES",this.Ar]]),gf:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.GI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.GI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.GI], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.GI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.bq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.BR],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.BR],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.BR],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sH],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rx],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.LW],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.N1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.N1],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.N1],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.N1],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.N1]]),nP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.Ux]]), oM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ix],["SLOT_TYPE_FORECASTING",this.Ex],["SLOT_TYPE_IN_PLAYER",this.i7],["SLOT_TYPE_PLAYER_BYTES",this.B5]])};this.listeners=[n.get()];this.OM={wi:this.wi,m8:this.gj.get(),vX:this.W$.get(),oJ:this.bA.get(),s8:this.s8,PE:T.get(),j8:this.uX.get(),sj:this.uj,Yi:n.get(),zP:this.Sb.get()}}; B2H=function(J,y,v,d,P){g.u.call(this);var A=this,T=jb(function(){return new SW(A.gj)}); g.X(this,T);var M=jb(function(){return new LY(T,A.gj)}); g.X(this,M);var n=jb(function(){return new NG}); g.X(this,n);var Y=jb(function(){return new Hu(J)}); g.X(this,Y);var S=jb(function(){return new tP(T,M,A.gj)}); g.X(this,S);var V=jb(function(){return new gU}); g.X(this,V);this.nf=jb(function(){return new an(y)}); g.X(this,this.nf);this.W$=jb(function(){return new m7(P)}); g.X(this,this.W$);this.qs=jb(function(){return new kS(y)}); g.X(this,this.qs);this.Tu=jb(function(){return new EJ(y)}); g.X(this,this.Tu);this.J_=jb(function(){return new QE(y)}); g.X(this,this.J_);this.Bq=jb(function(){return new Zt(y)}); g.X(this,this.Bq);this.gj=jb(function(){return new wq(y)}); g.X(this,this.gj);var L=jb(function(){return new WE(d)}); g.X(this,L);var t=jb(function(){return new wH(A.gj)}); g.X(this,t);var W=jb(function(){return new oR(T,S,M,A.gj,t,null,null,null,null)}); g.X(this,W);this.hA=jb(function(){return new Ds(y)}); g.X(this,this.hA);this.Sb=jb(function(){return new MM(y,V,A.gj)}); g.X(this,this.Sb);var c=Kw({Sb:this.Sb,gj:this.gj,lN:t}),b=c.context,B=c.U3;this.mZ=c.mZ;this.bA=jb(function(){return new nJ(y,A.Sb,A.gj)}); g.X(this,this.bA);this.pA=jb(function(){return new Gr}); g.X(this,this.pA);this.gp=jb(function(){return new vE(A.bA,y,A.gj)}); g.X(this,this.gp);this.jb=jb(function(){return new lt(y,n,A.gp,A.Sb,A.mZ,A.gj,B)}); g.X(this,this.jb);this.Rz=jb(function(){return new $8(A.gj)}); g.X(this,this.Rz);this.Yg=new iH(fG,bt,function(C,U,N,Jc){return tB(M.get(),C,U,N,Jc)},Y,S,M,t,this.gj,this.Sb); g.X(this,this.Yg);this.s8=new uH(Y,W,v,this.gj,J,this.Sb,this.bA,this.qs);g.X(this,this.s8);var q=new zF(y,this.s8,this.bA,this.Sb);this.LA=jb(function(){return q}); this.Or=q;this.ZW=new XP(Y,S,this.Tu,this.LA,b);g.X(this,this.ZW);this.wi=new JB(this.gj,Y,S,W,this.Sb,this.ZW,v,this.J_);g.X(this,this.wi);this.QI=jb(function(){return new Qb(L,M,t,A.gj,A.jb,A.bA)}); g.X(this,this.QI);this.Ar=jb(function(){return new Zd}); g.X(this,this.Ar);this.uj=new ZU(J,this.nf,this.gj);g.X(this,this.uj);this.GI=new w6(J);g.X(this,this.GI);this.Gr=new vR(J,this.LA,b);g.X(this,this.Gr);this.BR=new dU(J,this.Tu,this.bA,this.Sb,b);g.X(this,this.BR);this.sH=new AP(J);g.X(this,this.sH);this.Rx=new TO(J);g.X(this,this.Rx);this.dn=jb(function(){return new cE(y)}); g.X(this,this.dn);this.cF=new Yx(J);g.X(this,this.cF);this.dc=jb(function(){return new zk}); g.X(this,this.dc);this.Ux=jb(function(){return new kL(A.bA)}); g.X(this,this.Ux);this.Ix=jb(function(){return new Ib(A.wi,Y,T)}); g.X(this,this.Ix);this.Ex=jb(function(){return new f4(A.gj,A.jb,A.sH,A.gp)}); g.X(this,this.Ex);this.Gp=jb(function(){return new VV6(A.nf,A.bA,A.jb,n,v,A.gj)}); g.X(this,this.Gp);this.B5=jb(function(){return new jo(J,A.cF,A.sH,A.jb,A.gp,A.Rz,A.J_,A.Sb,A.bA,A.pA,A.Tu,A.qs,A.Bq,A.W$,A.hA,A.gj,A.dn,b,B)}); g.X(this,this.B5);this.hO={JE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.s8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZW]]),hW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QI],["SLOT_TYPE_FORECASTING",this.Ar],["SLOT_TYPE_IN_PLAYER",this.Ar],["SLOT_TYPE_PLAYER_BYTES",this.Ar]]),gf:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.GI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.GI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.GI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.GI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.BR],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.BR],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sH],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cF]]),nP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_ABOVE_FEED",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.Ux]]),oM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ix],["SLOT_TYPE_FORECASTING",this.Ex],["SLOT_TYPE_IN_PLAYER", this.Gp],["SLOT_TYPE_PLAYER_BYTES",this.B5]])};this.listeners=[n.get()];this.OM={wi:this.wi,m8:this.gj.get(),vX:this.W$.get(),oJ:this.bA.get(),s8:this.s8,PE:T.get(),j8:null,sj:this.uj,Yi:n.get(),zP:this.Sb.get()}}; qWx=function(J,y,v,d,P){g.u.call(this);var A=this,T=jb(function(){return new SW(A.gj)}); g.X(this,T);var M=jb(function(){return new LY(T,A.gj)}); g.X(this,M);var n=jb(function(){return new NG}); g.X(this,n);var Y=jb(function(){return new Hu(J)}); g.X(this,Y);var S=jb(function(){return new tP(T,M,A.gj)}); g.X(this,S);var V=jb(function(){return new gU}); g.X(this,V);this.E2=jb(function(){return new j1c(y)}); g.X(this,this.E2);this.nf=jb(function(){return new an(y)}); g.X(this,this.nf);this.W$=jb(function(){return new m7(P)}); g.X(this,this.W$);this.qs=jb(function(){return new kS(y)}); g.X(this,this.qs);this.Tu=jb(function(){return new EJ(y)}); g.X(this,this.Tu);this.J_=jb(function(){return new QE(y)}); g.X(this,this.J_);this.Bq=jb(function(){return new Zt(y)}); g.X(this,this.Bq);this.gj=jb(function(){return new wq(y)}); g.X(this,this.gj);var L=jb(function(){return new WE(d)}); g.X(this,L);var t=jb(function(){return new wH(A.gj)}); g.X(this,t);var W=jb(function(){return new oR(T,S,M,A.gj,t,null,null,null,null)}); g.X(this,W);this.hA=jb(function(){return new Ds(y)}); g.X(this,this.hA);this.Sb=jb(function(){return new MM(y,V,A.gj)}); g.X(this,this.Sb);var c=Kw({Sb:this.Sb,gj:this.gj,lN:t}),b=c.context,B=c.U3;this.mZ=c.mZ;this.bA=jb(function(){return new nJ(y,A.Sb,A.gj)}); g.X(this,this.bA);this.pA=jb(function(){return new Gr}); g.X(this,this.pA);this.gp=jb(function(){return new vE(A.bA,y,A.gj)}); g.X(this,this.gp);this.jb=jb(function(){return new lt(y,n,A.gp,A.Sb,A.mZ,A.gj,B)}); g.X(this,this.jb);this.Rz=jb(function(){return new $8(A.gj)}); g.X(this,this.Rz);this.Yg=new iH(u03,bt,function(C,U,N,Jc){return Yec(M.get(),C,U,N,Jc)},Y,S,M,t,this.gj,this.Sb); g.X(this,this.Yg);this.s8=new uH(Y,W,v,this.gj,J,this.Sb,this.bA,this.qs);g.X(this,this.s8);var q=new zF(y,this.s8,this.bA,this.Sb);this.LA=jb(function(){return q}); this.Or=q;this.ZW=new XP(Y,S,this.Tu,this.LA,b);g.X(this,this.ZW);this.wi=new JB(this.gj,Y,S,W,this.Sb,this.ZW,v,this.J_);g.X(this,this.wi);this.QI=jb(function(){return new Qb(L,M,t,A.gj,A.jb,A.bA)}); g.X(this,this.QI);this.Ar=jb(function(){return new Zd}); g.X(this,this.Ar);this.uj=new ZU(J,this.nf,this.gj);g.X(this,this.uj);this.GI=new w6(J);g.X(this,this.GI);this.Gr=new vR(J,this.LA,b);g.X(this,this.Gr);this.BR=new dU(J,this.Tu,this.bA,this.Sb,b);g.X(this,this.BR);this.sH=new AP(J);g.X(this,this.sH);this.Rx=new TO(J);g.X(this,this.Rx);this.dn=jb(function(){return new cE(y)}); g.X(this,this.dn);this.cF=new Yx(J);g.X(this,this.cF);this.dc=jb(function(){return new zk}); g.X(this,this.dc);this.Ux=jb(function(){return new kL(A.bA)}); g.X(this,this.Ux);this.Ix=jb(function(){return new Ib(A.wi,Y,T)}); g.X(this,this.Ix);this.Ex=jb(function(){return new f4(A.gj,A.jb,A.sH,A.gp)}); g.X(this,this.Ex);this.B5=jb(function(){return new jo(J,A.cF,A.sH,A.jb,A.gp,A.Rz,A.J_,A.Sb,A.bA,A.pA,A.Tu,A.qs,A.Bq,A.W$,A.hA,A.gj,A.dn,b,B)}); g.X(this,this.B5);this.o7=jb(function(){return new PxT(A.nf,A.bA,A.jb,n,A.E2,v,A.Sb)}); g.X(this,this.o7);this.hO={JE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wi],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.s8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZW]]),hW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QI],["SLOT_TYPE_FORECASTING",this.Ar],["SLOT_TYPE_IN_PLAYER",this.Ar],["SLOT_TYPE_PLAYER_BYTES",this.Ar]]),gf:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.uj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.GI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.GI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.GI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.GI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.BR],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.BR],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sH],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cF]]),nP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.Ux]]),oM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ix],["SLOT_TYPE_FORECASTING",this.Ex],["SLOT_TYPE_IN_PLAYER",this.o7],["SLOT_TYPE_PLAYER_BYTES", this.B5]])};this.listeners=[n.get()];this.OM={wi:this.wi,m8:this.gj.get(),vX:this.W$.get(),oJ:this.bA.get(),s8:this.s8,PE:T.get(),j8:null,sj:this.uj,Yi:n.get(),zP:this.Sb.get()}}; rfR=function(J,y,v,d,P){g.u.call(this);var A=this,T=jb(function(){return new SW(A.gj)}); g.X(this,T);var M=jb(function(){return new LY(T,A.gj)}); g.X(this,M);var n=jb(function(){return new NG}); g.X(this,n);var Y=jb(function(){return new Hu(J)}); g.X(this,Y);var S=jb(function(){return new tP(T,M,A.gj)}); g.X(this,S);var V=jb(function(){return new gU}); g.X(this,V);this.E2=jb(function(){return new j1c(y)}); g.X(this,this.E2);this.nf=jb(function(){return new an(y)}); g.X(this,this.nf);this.W$=jb(function(){return new m7(P)}); g.X(this,this.W$);this.qs=jb(function(){return new kS(y)}); g.X(this,this.qs);this.Tu=jb(function(){return new EJ(y)}); g.X(this,this.Tu);this.J_=jb(function(){return new QE(y)}); g.X(this,this.J_);this.Bq=jb(function(){return new Zt(y)}); g.X(this,this.Bq);this.gj=jb(function(){return new wq(y)}); g.X(this,this.gj);var L=jb(function(){return new WE(d)}); g.X(this,L);var t=jb(function(){return new wH(A.gj)}); g.X(this,t);this.hA=jb(function(){return new Ds(y)}); g.X(this,this.hA);this.Sb=jb(function(){return new MM(y,V,A.gj)}); g.X(this,this.Sb);var W=Kw({Sb:this.Sb,gj:this.gj,lN:t}),c=W.context,b=W.U3;this.mZ=W.mZ;this.O8=jb(function(){return new g1(y,A.gj,A.jb)}); g.X(this,this.O8);this.dn=jb(function(){return new cE(y)}); g.X(this,this.dn);this.bA=jb(function(){return new nJ(y,A.Sb,A.gj)}); g.X(this,this.bA);this.pA=jb(function(){return new Gr}); g.X(this,this.pA);W=jb(function(){return new oR(T,S,M,A.gj,t,null,A.bA,A.pN,A.N1,3)}); g.X(this,W);this.Rz=jb(function(){return new $8(A.gj)}); this.gp=jb(function(){return new vE(A.bA,y,A.gj)}); g.X(this,this.gp);this.jb=jb(function(){return new lt(y,n,A.gp,A.Sb,A.mZ,A.gj,b)}); g.X(this,this.jb);this.s8=new uH(Y,W,v,this.gj,J,this.Sb,this.bA,this.qs);g.X(this,this.s8);var B=new zF(y,this.s8,this.bA,this.Sb,this.O8);this.LA=jb(function(){return B}); this.Or=B;this.Yg=new iH(Hpc,bt,function(q,C,U,N){return Yec(M.get(),q,C,U,N)},Y,S,M,t,this.gj,this.Sb); g.X(this,this.Yg);this.pN=new IR(Y,S,this.LA,this.O8,this.bA,this.gj,this.jb,this.dn);g.X(this,this.pN);this.ZW=new XP(Y,S,this.Tu,this.LA,c);g.X(this,this.ZW);this.wi=new JB(this.gj,Y,S,W,this.Sb,this.ZW,v,this.J_);g.X(this,this.wi);this.QI=jb(function(){return new Qb(L,M,t,A.gj,A.jb,A.bA,A.dn)}); g.X(this,this.QI);this.Ar=jb(function(){return new Zd}); g.X(this,this.Ar);this.uj=new ZU(J,this.nf,this.gj);g.X(this,this.uj);this.GI=new w6(J);g.X(this,this.GI);this.Gr=new vR(J,this.LA,c);g.X(this,this.Gr);this.BR=new dU(J,this.Tu,this.bA,this.Sb,c);g.X(this,this.BR);this.wA=new PR(J,this.Sb);g.X(this,this.wA);this.N1=new lY(J,this.O8,this.bA,this.jb,this.LA);g.X(this,this.N1);this.sH=new AP(J);g.X(this,this.sH);this.Rx=new TO(J);g.X(this,this.Rx);this.cF=new Yx(J);g.X(this,this.cF);this.dc=jb(function(){return new zk}); g.X(this,this.dc);this.Ux=jb(function(){return new kL(A.bA)}); g.X(this,this.Ux);this.Ix=jb(function(){return new Ib(A.wi,Y,T)}); g.X(this,this.Ix);this.Ex=jb(function(){return new f4(A.gj,A.jb,A.sH,A.gp)}); g.X(this,this.Ex);this.B5=jb(function(){return new Fi(J,A.cF,A.sH,A.Sb,A.dn,A.bA,A.pA,A.jb,V,A.O8,A.gp,A.Rz,A.J_,A.Tu,A.qs,A.Bq,A.W$,A.hA,A.gj,n,c,b)}); g.X(this,this.B5);this.i7=jb(function(){return new AI3(A.nf,A.bA,A.jb,n,A.E2,v,A.gj,A.Sb)}); g.X(this,this.i7);this.hO={JE:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.wi],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.pN],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Yg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.s8],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.ZW]]),hW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.QI],["SLOT_TYPE_FORECASTING",this.Ar],["SLOT_TYPE_IN_PLAYER",this.Ar],["SLOT_TYPE_PLAYER_BYTES",this.Ar]]),gf:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.uj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.GI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.GI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.GI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.GI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.GI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Gr],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.BR],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.BR],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.wA],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.wA],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.sH],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Gr],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Rx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.cF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.N1],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.N1],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.N1],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.N1],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.N1]]),nP:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.dc],["SLOT_TYPE_FORECASTING",this.dc],["SLOT_TYPE_IN_PLAYER",this.dc],["SLOT_TYPE_PLAYER_BYTES",this.Ux]]),oM:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ix],["SLOT_TYPE_FORECASTING",this.Ex],["SLOT_TYPE_PLAYER_BYTES",this.B5],["SLOT_TYPE_IN_PLAYER",this.i7]])};this.listeners=[n.get()]; this.OM={wi:this.wi,m8:this.gj.get(),vX:this.W$.get(),oJ:this.bA.get(),s8:this.s8,PE:T.get(),j8:null,sj:this.uj,Yi:n.get(),zP:this.Sb.get()}}; owH=function(J,y,v,d){function P(){return A.T} g.u.call(this);var A=this;J.Y().experiments.BX("html5_dispose_of_manager_before_dependency")?(this.C=$QR(P,J,y,v,d),this.T=(new eb(this.C)).J(),g.X(this,this.T),g.X(this,this.C)):(this.C=$QR(P,J,y,v,d),g.X(this,this.C),this.T=(new eb(this.C)).J(),g.X(this,this.T))}; F8=function(J){return J.C.OM}; $QR=function(J,y,v,d,P){try{var A=y.Y();if(g.nh(A))var T=new eZ3(J,y,v,d,P);else if(g.Sc(A))T=new mQT(J,y,v,d,P);else if(y0(A))T=new B2H(J,y,v,d,P);else if(g.rm(A))T=new qWx(J,y,v,d,P);else if(g.kO(A))T=new rfR(J,y,v,d,P);else throw new TypeError("Unknown web interface");return T}catch(M){return T=y.Y(),TS("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:T.C.cplatform,interface:T.C.c,fzf:T.C.cver,LaA:T.C.ctheme,SuA:T.C.cplayer,buk:T.playerStyle}),new aHx(J,y,v,d,P)}}; C6x=function(J){Ux.call(this,J)}; hZr=function(J,y,v,d,P){Kf.call(this,J,{j:"div",N:"ytp-ad-timed-pie-countdown-container",D:[{j:"svg",N:"ytp-ad-timed-pie-countdown",U:{viewBox:"0 0 20 20"},D:[{j:"circle",N:"ytp-ad-timed-pie-countdown-background",U:{r:"10",cx:"10",cy:"10"}},{j:"circle",N:"ytp-ad-timed-pie-countdown-inner",U:{r:"5",cx:"10",cy:"10"}},{j:"circle",N:"ytp-ad-timed-pie-countdown-outer",U:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",y,v,d,P);this.W=this.uA("ytp-ad-timed-pie-countdown-container");this.J=this.uA("ytp-ad-timed-pie-countdown-inner"); this.L=this.uA("ytp-ad-timed-pie-countdown-outer");this.T=Math.ceil(2*Math.PI*5);this.hide()}; IHc=function(J,y,v,d,P,A){l7.call(this,J,{j:"div",N:"ytp-ad-action-interstitial",U:{tabindex:"0"},D:[{j:"div",N:"ytp-ad-action-interstitial-background-container"},{j:"div",N:"ytp-ad-action-interstitial-slot",D:[{j:"div",N:"ytp-ad-action-interstitial-instream-info"},{j:"div",N:"ytp-ad-action-interstitial-card",D:[{j:"div",N:"ytp-ad-action-interstitial-image-container"},{j:"div",N:"ytp-ad-action-interstitial-headline-container"},{j:"div",N:"ytp-ad-action-interstitial-description-container"},{j:"div", N:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",y,v,d);this.oW=P;this.qW=A;this.navigationEndpoint=this.C=this.skipButton=this.T=this.actionButton=null;this.Ek=this.uA("ytp-ad-action-interstitial-instream-info");this.WX=this.uA("ytp-ad-action-interstitial-image-container");this.K=new Cf(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,"ytp-ad-action-interstitial-image");g.X(this,this.K);this.K.yk(this.WX);this.If=this.uA("ytp-ad-action-interstitial-headline-container"); this.L=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,"ytp-ad-action-interstitial-headline");g.X(this,this.L);this.L.yk(this.If);this.Cy=this.uA("ytp-ad-action-interstitial-description-container");this.J=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,"ytp-ad-action-interstitial-description");g.X(this,this.J);this.J.yk(this.Cy);this.YB=this.uA("ytp-ad-action-interstitial-background-container");this.Vk=new Cf(this.api,this.layoutId,this.interactionLoggingClientData, this.vX,"ytp-ad-action-interstitial-background",!0);g.X(this,this.Vk);this.Vk.yk(this.YB);this.XW=this.uA("ytp-ad-action-interstitial-action-button-container");this.slot=this.uA("ytp-ad-action-interstitial-slot");this.xZ=this.uA("ytp-ad-action-interstitial-card");this.W=new b$;g.X(this,this.W);this.hide()}; pHr=function(J){var y=g.Mi("html5-video-player");y&&g.lq(y,"ytp-ad-display-override",J)}; u53=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-overlay-slot",D:[{j:"div",N:"ytp-ad-overlay-container"}]},"invideo-overlay",y,v,d);this.K=[];this.YB=this.If=this.W=this.XW=this.Ek=null;this.Vk=!1;this.L=null;this.Cy=0;J=this.uA("ytp-ad-overlay-container");this.WX=new yh(J,45E3,6E3,.3,.4);g.X(this,this.WX);this.J=UQj(this);g.X(this,this.J);this.J.yk(J);this.T=fH2(this);g.X(this,this.T);this.T.yk(J);this.C=iMR(this);g.X(this,this.C);this.C.yk(J);this.hide()}; UQj=function(J){var y=new g.T_({j:"div",N:"ytp-ad-text-overlay",D:[{j:"div",N:"ytp-ad-overlay-ad-info-button-container"},{j:"div",N:"ytp-ad-overlay-close-container",D:[{j:"button",N:"ytp-ad-overlay-close-button",D:[jV(HM3)]}]},{j:"div",N:"ytp-ad-overlay-title",TK:"{{title}}"},{j:"div",N:"ytp-ad-overlay-desc",TK:"{{description}}"},{j:"div",kB:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],TK:"{{displayUrl}}"}]});J.Z(y.uA("ytp-ad-overlay-title"),"click",function(v){jC(J,y.element,v)}); J.Z(y.uA("ytp-ad-overlay-link"),"click",function(v){jC(J,y.element,v)}); J.Z(y.uA("ytp-ad-overlay-close-container"),"click",J.zs);y.hide();return y}; fH2=function(J){var y=new g.T_({j:"div",kB:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],D:[{j:"div",N:"ytp-ad-overlay-ad-info-button-container"},{j:"div",N:"ytp-ad-overlay-close-container",D:[{j:"button",N:"ytp-ad-overlay-close-button",D:[jV(HM3)]}]},{j:"div",N:"ytp-ad-overlay-text-image",D:[{j:"img",U:{src:"{{imageUrl}}"}}]},{j:"div",N:"ytp-ad-overlay-title",TK:"{{title}}"},{j:"div",N:"ytp-ad-overlay-desc",TK:"{{description}}"},{j:"div",kB:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], TK:"{{displayUrl}}"}]});J.Z(y.uA("ytp-ad-overlay-title"),"click",function(v){jC(J,y.element,v)}); J.Z(y.uA("ytp-ad-overlay-link"),"click",function(v){jC(J,y.element,v)}); J.Z(y.uA("ytp-ad-overlay-close-container"),"click",J.zs);J.Z(y.uA("ytp-ad-overlay-text-image"),"click",J.KQB);y.hide();return y}; iMR=function(J){var y=new g.T_({j:"div",N:"ytp-ad-image-overlay",D:[{j:"div",N:"ytp-ad-overlay-ad-info-button-container"},{j:"div",N:"ytp-ad-overlay-close-container",D:[{j:"button",N:"ytp-ad-overlay-close-button",D:[jV(HM3)]}]},{j:"div",N:"ytp-ad-overlay-image",D:[{j:"img",U:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});J.Z(y.uA("ytp-ad-overlay-image"),"click",function(v){jC(J,y.element,v)}); J.Z(y.uA("ytp-ad-overlay-close-container"),"click",J.zs);y.hide();return y}; XHU=function(J,y){if(y){var v=g.R(y,Ej)||null;v==null?g.jv(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(y=g.Mi("video-ads ytp-ad-module")||null,y==null?g.jv(Error("Could not locate the root ads container element to attach the ad info dialog.")):(J.If=new g.T_({j:"div",N:"ytp-ad-overlay-ad-info-dialog-container"}),g.X(J,J.If),J.If.yk(y),y=new X9(J.api,J.layoutId,J.interactionLoggingClientData,J.vX,J.If.element,!1),g.X(J,y),y.init(w5("ad-info-hover-text-button"),v,J.macros), J.L?(y.yk(J.L,0),y.subscribe("f",J.oBj,J),y.subscribe("e",J.bD,J),J.Z(J.L,"click",J.sfB),J.Z(g.Mi("ytp-ad-button",y.element),"click",function(){var d;if(g.R((d=g.R(v.button,g.Zc))==null?void 0:d.serviceEndpoint,ZRR))J.Vk=J.api.getPlayerState(1)===2,J.api.pauseVideo();else J.api.onAdUxClicked("ad-info-hover-text-button",J.layoutId)}),J.YB=y):g.jv(Error("Ad info button container within overlay ad was not present."))))}else g.ev(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; RZ6=function(J,y){if(N2T(J,eC)||J.api.isMinimized())return!1;var v=MK(y.title),d=MK(y.description);if(g.qh(v)||g.qh(d))return!1;J.createServerVe(J.J.element,y.trackingParams||null);J.J.updateValue("title",MK(y.title));J.J.updateValue("description",MK(y.description));J.J.updateValue("displayUrl",MK(y.displayUrl));y.navigationEndpoint&&g.hO(J.K,y.navigationEndpoint);J.J.show();J.WX.start();J.logVisibility(J.J.element,!0);J.Z(J.J.element,"mouseover",function(){J.Cy++}); return!0}; Khm=function(J,y){if(N2T(J,eC)||J.api.isMinimized())return!1;var v=MK(y.title),d=MK(y.description);if(g.qh(v)||g.qh(d))return!1;J.createServerVe(J.T.element,y.trackingParams||null);J.T.updateValue("title",MK(y.title));J.T.updateValue("description",MK(y.description));J.T.updateValue("displayUrl",MK(y.displayUrl));J.T.updateValue("imageUrl",nDH(y.image));y.navigationEndpoint&&g.hO(J.K,y.navigationEndpoint);J.XW=y.imageNavigationEndpoint||null;J.T.show();J.WX.start();J.logVisibility(J.T.element,!0); J.Z(J.T.element,"mouseover",function(){J.Cy++}); return!0}; zZH=function(J,y){if(J.api.isMinimized())return!1;var v=s43(y.image),d=v;v.width0?(y=new Bc(J.api,J.C), y.yk(J.playerOverlay),g.X(J,y)):(J=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(y)),g.jv(J))}}else g.jv(Error("addCommonComponents() needs to be called before starting countdown."))}; Acq=function(J){function y(v){return{toString:function(){return v()}}} J.macros.SURVEY_LOCAL_TIME_EPOCH_S=y(function(){var v=new Date;return(Math.round(v.valueOf()/1E3)+-1*v.getTimezoneOffset()*60).toString()}); J.macros.SURVEY_ELAPSED_MS=y(function(){return(Date.now()-J.J).toString()})}; Trn=function(J,y,v,d,P){r1.call(this,J,y,v,d,"survey-question-multi-select");this.Cy=P;this.noneOfTheAbove=null;this.submitEndpoints=[];this.L=null;this.hide()}; lvn=function(J,y,v){J.noneOfTheAbove=new JcQ(J.api,J.layoutId,J.interactionLoggingClientData,J.vX);J.noneOfTheAbove.yk(J.answers);J.noneOfTheAbove.init(w5("survey-none-of-the-above"),y,v)}; nm_=function(J){J.T.forEach(function(y){y.C.toggleButton(!1)}); Mx0(J,!0)}; Mx0=function(J,y){var v=J.W;J=sdO(J);y=y===void 0?!1:y;v.C&&(J?v.C.hide():v.C.show(),y&&v.C instanceof Sg&&!v.C.W&&lmx(v.C,!1));v.T&&(J?v.T.show():v.T.hide())}; sdO=function(J){return J.T.some(function(y){return y.C.isToggled()})||J.noneOfTheAbove.button.isToggled()}; $_=function(J,y,v,d,P){r1.call(this,J,y,v,d,"survey-question-single-select",function(T){A.api.Y().X("supports_multi_step_on_desktop")&&P([T])}); var A=this;this.hide()}; on=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-survey",D:[{j:"div",N:"ytp-ad-survey-questions"}]},"survey",y,v,d);this.questions=[];this.T=[];this.conditioningRules=[];this.C=0;this.L=this.uA("ytp-ad-survey-questions");this.api.Y().X("fix_survey_color_contrast_on_destop")&&this.uA("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Y().X("web_enable_speedmaster")&&this.uA("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; VxQ=function(J,y){var v=J.T[y],d;(d=J.J)==null||d.dispose();g.R(v,zu)?YUq(J,g.R(v,zu),J.macros):g.R(v,KO)&&SUC(J,g.R(v,KO),J.macros);J.C=y}; YUq=function(J,y,v){var d=new $_(J.api,J.layoutId,J.interactionLoggingClientData,J.vX,J.W.bind(J));d.yk(J.L);d.init(w5("survey-question-single-select"),y,v);J.api.Y().X("supports_multi_step_on_desktop")?J.J=d:J.questions.push(d);g.X(J,d)}; SUC=function(J,y,v){var d=new Trn(J.api,J.layoutId,J.interactionLoggingClientData,J.vX,J.W.bind(J));d.yk(J.L);d.init(w5("survey-question-multi-select"),y,v);J.api.Y().X("supports_multi_step_on_desktop")?J.J=d:J.questions.push(d);g.X(J,d)}; CJ=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-survey-interstitial",D:[{j:"div",N:"ytp-ad-survey-interstitial-contents",D:[{j:"div",N:"ytp-ad-survey-interstitial-logo",D:[{j:"div",N:"ytp-ad-survey-interstitial-logo-image"}]},{j:"div",N:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",y,v,d);this.C=this.actionButton=null;this.interstitial=this.uA("ytp-ad-survey-interstitial");this.T=this.uA("ytp-ad-survey-interstitial-contents");this.text=this.uA("ytp-ad-survey-interstitial-text"); this.logoImage=this.uA("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Ex(this,500,!1,300);g.X(this,this.transition)}; LTQ=function(J,y){y=y&&ox(y)||"";if(g.qh(y))g.ev(Error("Found ThumbnailDetails without valid image URL"));else{var v=J.style;J=J.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=J;J=UmR(d.style);v.cssText=[J,'background-image:url("'+y+'");'].join("")}}; txq=function(J){var y=g.Mi("html5-video-player");y&&g.lq(y,"ytp-ad-display-override",J)}; hd=function(J,y,v,d,P,A){A=A===void 0?0:A;Kf.call(this,J,{j:"div",N:"ytp-preview-ad",D:[{j:"div",N:"ytp-preview-ad__text"}]},"preview-ad",y,v,d,P);var T=this;this.Cy=A;this.T=0;this.W=-1;this.J=this.uA("ytp-preview-ad__text");switch(this.Cy){case 1:this.J.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Ex(this,400,!1,100,function(){T.hide()}); g.X(this,this.transition);this.hide()}; In=function(J,y,v,d){l7.call(this,J,{j:"img",N:"ytp-ad-avatar"},"ad-avatar",y,v,d);this.hide()}; WT_=function(J){switch(J.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}}; pJ=function(J,y,v,d,P,A){P=P===void 0?!1:P;A=A===void 0?!1:A;l7.call(this,J,{j:"button",N:"ytp-ad-button-vm"},"ad-button",y,v,d);this.buttonText=this.buttonIcon=null;this.hide();this.C=P;this.T=A}; avq=function(J,y,v,d,P){Kf.call(this,J,{j:"div",kB:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],D:[{j:"div",N:"ytp-ad-avatar-lockup-card__avatar_and_text_container",D:[{j:"div",N:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",y,v,d,P);this.startMilliseconds=0;this.adAvatar=new In(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.adAvatar);xk(this.element,this.adAvatar.element,0);this.headline=new GS(this.api,this.layoutId, this.interactionLoggingClientData,this.vX);g.X(this,this.headline);this.headline.yk(this.uA("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.description);this.description.yk(this.uA("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new pJ(this.api, this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.adButton);this.adButton.yk(this.element);this.hide()}; UB=function(J,y,v,d){l7.call(this,J,{j:"button",N:"ytp-skip-ad-button",D:[{j:"div",N:"ytp-skip-ad-button__text"}]},"skip-button",y,v,d);var P=this;this.T=!1;this.W=this.uA("ytp-skip-ad-button__text");this.transition=new g.Ex(this,500,!1,100,function(){P.hide()}); g.X(this,this.transition);this.C=new yh(this.element,15E3,5E3,.5,.5,!0);g.X(this,this.C);this.hide()}; xjq=function(J,y,v,d,P){Kf.call(this,J,{j:"div",N:"ytp-skip-ad"},"skip-ad",y,v,d,P);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.J=new UB(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.J);this.J.yk(this.element);this.hide()}; fJ=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-visit-advertiser-link"},"visit-advertiser-link",y,v,d);this.hide()}; ut=function(J,y,v,d,P){l7.call(this,J,{j:"div",N:"ytp-ad-player-overlay-layout",D:[{j:"div",N:"ytp-ad-player-overlay-layout__player-card-container"},{j:"div",N:"ytp-ad-player-overlay-layout__ad-info-container"},{j:"div",N:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{j:"div",N:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",y,v,d);this.T=P;this.If=this.uA("ytp-ad-player-overlay-layout__player-card-container");this.C=this.uA("ytp-ad-player-overlay-layout__ad-info-container"); this.K=this.uA("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Cy=this.uA("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; O3u=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-grid-card-text",D:[{j:"div",N:"ytp-ad-grid-card-text__metadata",D:[{j:"div",N:"ytp-ad-grid-card-text__metadata__headline"},{j:"div",N:"ytp-ad-grid-card-text__metadata__description",D:[{j:"div",N:"ytp-ad-grid-card-text__metadata__description__line"},{j:"div",N:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{j:"div",N:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",y,v,d);this.headline=new GS(this.api,this.layoutId,this.interactionLoggingClientData, this.vX);g.X(this,this.headline);this.headline.yk(this.uA("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new pJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0);g.X(this,this.moreInfoButton);this.moreInfoButton.yk(this.uA("ytp-ad-grid-card-text__button"))}; HE=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",y,v,d);this.C=[]}; X8=function(J,y,v,d,P,A,T){Kf.call(this,J,A,T,y,v,d,P);this.playerProgressOffsetMs=0;this.T=!1}; gmy=function(J){var y=g.Mi("html5-video-player");y&&g.lq(y,"ytp-ad-display-override",J)}; Djy=function(J,y,v,d,P){X8.call(this,J,y,v,d,P,{j:"div",N:"ytp-display-underlay-text-grid-cards",D:[{j:"div",N:"ytp-display-underlay-text-grid-cards__content_container",D:[{j:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header",D:[{j:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{j:"div",N:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{j:"div",N:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {j:"div",N:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new HE(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.adGridCardCollection);this.adGridCardCollection.yk(this.uA("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new pJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.adButton);this.adButton.yk(this.uA("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.J=this.uA("ytp-display-underlay-text-grid-cards__content_container");this.W=this.uA("ytp-display-underlay-text-grid-cards__content_container__header")}; NM=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-ad-details-line"},"ad-details-line",y,v,d);this.C=[];this.hide()}; Rn=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-image-background",D:[{j:"img",N:"ytp-image-background-image"}]},"image-background",y,v,d);this.hide()}; ccq=function(J,y,v,d,P){Kf.call(this,J,{j:"svg",N:"ytp-timed-pie-countdown",U:{viewBox:"0 0 20 20"},D:[{j:"circle",N:"ytp-timed-pie-countdown__background",U:{r:"10",cx:"10",cy:"10"}},{j:"circle",N:"ytp-timed-pie-countdown__inner",U:{r:"5",cx:"10",cy:"10"}},{j:"circle",N:"ytp-timed-pie-countdown__outer",U:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",y,v,d,P);this.J=this.uA("ytp-timed-pie-countdown__inner");this.T=Math.ceil(2*Math.PI*5);this.hide()}; KJ=function(J,y,v,d){l7.call(this,J,{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout",U:{tabindex:"0"},D:[{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content",D:[{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",D:[{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{j:"div",N:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",y,v,d);this.T=null;this.W=this.uA("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.J=new b$;g.X(this,this.J);this.hide()}; G2y=function(J){var y=g.Mi("html5-video-player");y&&g.lq(y,"ytp-ad-display-override",J)}; b3u=function(J){if(!J.adAvatar||!g.R(J.adAvatar,zr))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!J.headline)return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!J.adBadge||!g.R(J.adBadge,k_))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!J.adButton||!g.R(J.adButton,EB))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!J.adInfoRenderer|| !g.R(J.adInfoRenderer,Ej))return g.jv(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;J=J.durationMilliseconds||0;return typeof J!=="number"||J<=0?(g.jv(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+J)),!1):!0}; QC=function(J,y){y=y===void 0?2:y;g.yK.call(this);this.api=J;this.C=null;this.lJ=new b$(this);g.X(this,this.lJ);this.T=MOj;this.lJ.Z(this.api,"presentingplayerstatechange",this.rX);this.C=this.lJ.Z(this.api,"progresssync",this.cq);this.VL=y;this.VL===1&&this.cq()}; Zs=function(J,y,v){Ux.call(this,J);this.api=J;this.vX=y;this.components={};J=new g.z({j:"div",kB:["video-ads","ytp-ad-module"]});g.X(this,J);po&&g.d7(J.element,"ytp-ads-tiny-mode");this.W=new YR(J.element);g.X(this,this.W);g.Hp(this.api,J.element,4);Wu(v)&&(v=new g.z({j:"div",kB:["ytp-ad-underlay"]}),g.X(this,v),this.T=new YR(v.element),g.X(this,this.T),g.Hp(this.api,v.element,0));g.X(this,Iud())}; FTH=function(J,y){J=g.L_(J.components,y.id,null);J==null&&g.ev(Error("Component not found for element id: "+y.id));return J||null}; jdw=function(J){g.Gy.call(this,J);var y=this;this.T=null;this.created=!1;this.J=J.Y().X("h5_use_refactored_get_ad_break")?new x4H(this.player):new RB(this.player);this.W=function(){if(y.T!=null)return y.T;var d=new FZv({sj:F8(y.C).sj,zP:F8(y.C).zP,S:y.player,m8:F8(y.C).m8,jb:y.C.C.jb,Yi:F8(y.C).Yi,Bq:y.C.C.Bq});y.T=d.Ph;return y.T}; this.C=new owH(this.player,this,this.J,this.W);g.X(this,this.C);var v=J.Y();!Y8(v)||g.kO(v)||y0(v)||(g.X(this,new Zs(J,F8(this.C).vX,F8(this.C).m8)),g.X(this,new C6x(J)))}; e3V=function(J){J.created!==J.loaded&&TS("Created and loaded are out of sync")}; qUw=function(J){g.Gy.prototype.load.call(J);var y=F8(J.C).m8;try{J.player.getRootNode().classList.add("ad-created")}catch(n){TS(n instanceof Error?n:String(n))}var v=J.player.getVideoData(1),d=v&&v.videoId||"",P=v&&v.getPlayerResponse()||{},A=(P&&P.adPlacements||[]).map(function(n){return n.adPlacementRenderer}),T=((P==null?void 0:P.adSlots)||[]).map(function(n){return g.R(n,yF)}); P=P.playerConfig&&P.playerConfig.daiConfig&&P.playerConfig.daiConfig.enableDai||!1;v&&v.jH();A=mjH(A,T,y,F8(J.C).PE);T=v&&v.clientPlaybackNonce||"";v=v&&v.Zv||!1;if(Mo(y,!0)&&v){var M;y={};(M=J.player.getVideoData())==null||M.dj("p_cpb",(y.cc=T,y))}M=1E3*J.player.getDuration(1);Br_(J);J.C.C.Or.U5(T,M,v,A.q_,A.Rt,A.q_,P,d)}; Br_=function(J){var y,v;if(v=(y=J.player.getVideoData(1))==null||!y.Zv)y=J.player.Y(),v=Y8(y)&&!g.sA(y)&&y.playerStyle==="desktop-polymer";v&&(J=J.player.getInternalApi(),J.addEventListener("updateKevlarOrC3Companion",amr),J.addEventListener("updateEngagementPanelAction",xt3),J.addEventListener("changeEngagementPanelVisibility",OU6),window.addEventListener("yt-navigate-start",Dtd))}; w1=function(J,y){y===J.gO&&(J.gO=void 0)}; rcy=function(J){var y=F8(J.C).s8,v=y.W().qD("SLOT_TYPE_PLAYER_BYTES",1);y=$z(y.Sb.get(),1).clientPlaybackNonce;var d=!1;v=g.D(v);for(var P=v.next();!P.done;P=v.next()){P=P.value;var A=P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.slotEntryTrigger instanceof iv?P.slotEntryTrigger.oo:void 0;A&&A===y&&(d&&TS("More than 1 preroll playerBytes slot detected",P),d=!0)}d||sB(F8(J.C).oJ)}; $jq=function(J){if(Jd(F8(J.C).m8))return!0;var y="";J=g.D(F8(J.C).Yi.Ir.keys());for(var v=J.next();!v.done;v=J.next()){v=v.value;if(v.slotType==="SLOT_TYPE_PLAYER_BYTES"&&v.HX==="core")return!0;y+=v.slotType+" "}Math.random()<.01&&TS("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:y});return!1}; omu=function(J){J=g.D(F8(J.C).Yi.Ir.values());for(var y=J.next();!y.done;y=J.next())if(y.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; fRm=function(J,y,v,d,P,A){v=v===void 0?[]:v;d=d===void 0?"":d;P=P===void 0?"":P;var T=F8(J.C).m8,M=J.player.getVideoData(1);M&&M.getPlayerResponse();M&&M.jH();v=mjH(y,v,T,F8(J.C).PE);NQc(F8(J.C).wi,d,v.q_,v.Rt,y,P,A)}; mjH=function(J,y,v,d){y={q_:[],Rt:y};J=g.D(J);for(var P=J.next();!P.done;P=J.next())if((P=P.value)&&P.renderer!=null){var A=P.renderer;if(!v.S.Y().X("html5_enable_vod_lasr_with_notify_pacf")){var T=void 0,M=void 0,n=void 0,Y=void 0,S=d;g.R((Y=A.sandwichedLinearAdRenderer)==null?void 0:Y.adVideoStart,$L)?(T=g.R((n=A.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,$L),T=loH(T,S),g.$e(A.sandwichedLinearAdRenderer.adVideoStart,$L,T)):g.R((M=A.linearAdSequenceRenderer)==null?void 0:M.adStart,$L)&& (n=g.R((T=A.linearAdSequenceRenderer)==null?void 0:T.adStart,$L),T=loH(n,S),g.$e(A.linearAdSequenceRenderer.adStart,$L,T))}y.q_.push(P)}return y}; g.J7=function(J){if(typeof DOMParser!="undefined")return eP(new DOMParser,o1H(J),"application/xml");throw Error("Your browser does not support loading xml documents");}; g.yZ=function(J){g.u.call(this);this.callback=J;this.C=new xK(0,0,.4,0,.2,1,1,1);this.delay=new g.R8(this.next,window,this);g.X(this,this.delay)}; g.CRO=function(J){var y=J.Y();return y.h_&&!y.J&&g.un(y)?J.isEmbedsShortsMode()?(J=J.vn(),Math.min(J.width,J.height)>=315):!J.lj():!1}; g.v5=function(J){g.z.call(this,{j:"div",N:"ytp-more-videos-view",U:{tabIndex:"-1"}});var y=this;this.api=J;this.T=!0;this.J=new g.gf(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.B=this.W=this.scrollPosition=0;this.title=new g.z({j:"h2",N:"ytp-related-title",TK:"{{title}}"});this.previous=new g.z({j:"button",kB:["ytp-button","ytp-previous"],U:{"aria-label":"Mostrar videos sugeridos anteriores"},D:[g.SV()]});this.G=new g.yZ(function(v){y.suggestions.element.scrollLeft= -v}); this.next=new g.z({j:"button",kB:["ytp-button","ytp-next"],U:{"aria-label":"Mostrar m\u00e1s videos sugeridos"},D:[g.VK()]});g.X(this,this.J);this.L=J.Y().W;g.X(this,this.title);this.title.yk(this.element);this.suggestions=new g.z({j:"div",N:"ytp-suggestions"});g.X(this,this.suggestions);this.suggestions.yk(this.element);g.X(this,this.previous);this.previous.yk(this.element);this.previous.listen("click",this.Ft,this);g.X(this,this.G);h3q(this);g.X(this,this.next);this.next.yk(this.element);this.next.listen("click", this.eV,this);this.J.Z(this.api,"appresize",this.UN);this.J.Z(this.api,"fullscreentoggled",this.GH);this.J.Z(this.api,"videodatachange",this.onVideoDataChange);this.UN(this.api.DB().getPlayerSize());this.onVideoDataChange()}; h3q=function(J){for(var y={g5:0};y.g5<16;y={g5:y.g5},++y.g5){var v=new g.z({j:"a",N:"ytp-suggestion-link",U:{href:"{{link}}",target:J.api.Y().K,"aria-label":"{{aria_label}}"},D:[{j:"div",N:"ytp-suggestion-image"},{j:"div",N:"ytp-suggestion-overlay",U:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},D:[{j:"div",N:"ytp-suggestion-title",TK:"{{title}}"},{j:"div",N:"ytp-suggestion-author",TK:"{{author_and_views}}"},{j:"div",U:{"data-is-live":"{{is_live}}"},N:"ytp-suggestion-duration", TK:"{{duration}}"}]}]});g.X(J,v);var d=v.uA("ytp-suggestion-link");g.Ni(d,"transitionDelay",y.g5/20+"s");J.J.Z(d,"click",function(P){return function(A){var T=P.g5;if(J.T){var M=J.suggestionData[T],n=M.sessionData;J.L&&J.api.X("web_player_log_click_before_generating_ve_conversion_params")?(J.api.logClick(J.C[T].element),T=M.GJ(),M={},g.UH(J.api,M),T=g.al(T,M),g.t_(T,J.api,A)):g.L8(A,J.api,J.L,n||void 0)&&J.api.u8(M.videoId,n,M.playlistId)}else A.preventDefault(),document.activeElement.blur()}}(y)); v.yk(J.suggestions.element);J.C.push(v);J.api.createServerVe(v.element,v)}}; Iv_=function(J){if(J.api.Y().X("web_player_log_click_before_generating_ve_conversion_params"))for(var y=Math.floor(-J.scrollPosition/(J.W+8)),v=Math.min(y+J.columns,J.suggestionData.length)-1;y<=v;y++)J.api.logVisibility(J.C[y].element,!0)}; g.dt=function(J){var y=J.api.WK()?32:16;y=J.B/2+y;J.next.element.style.bottom=y+"px";J.previous.element.style.bottom=y+"px";y=J.scrollPosition;var v=J.containerWidth-J.suggestionData.length*(J.W+8);g.lq(J.element,"ytp-scroll-min",y>=0);g.lq(J.element,"ytp-scroll-max",y<=v)}; Ujn=function(J){for(var y=J.suggestionData.length,v=0;v>>0)+"_",P=0;return y}); L3("Symbol.iterator",function(J){if(J)return J;J=Symbol("Symbol.iterator");for(var y="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),v=0;v0&&v>0;)if(d[--v]!=y[--P])return!1;return P<=0}}); L3("Array.prototype.find",function(J){return J?J:function(y,v){return SUd(this,y,v).UP}}); L3("Array.prototype.entries",function(J){return J?J:function(){return Rd(this,function(y,v){return[y,v]})}}); L3("Array.prototype.keys",function(J){return J?J:function(){return Rd(this,function(y){return y})}}); L3("String.prototype.startsWith",function(J){return J?J:function(y,v){var d=X6(this,y,"startsWith");y+="";var P=d.length,A=y.length;v=Math.max(0,Math.min(v|0,d.length));for(var T=0;T=A}}); L3("Number.isFinite",function(J){return J?J:function(y){return typeof y!=="number"?!1:!isNaN(y)&&y!==Infinity&&y!==-Infinity}}); L3("String.prototype.repeat",function(J){return J?J:function(y){var v=X6(this,null,"repeat");if(y<0||y>1342177279)throw new RangeError("Invalid count value");y|=0;for(var d="";y;)if(y&1&&(d+=v),y>>>=1)v+=v;return d}}); L3("Object.entries",function(J){return J?J:function(y){var v=[],d;for(d in y)ad(y,d)&&v.push([d,y[d]]);return v}}); L3("Array.from",function(J){return J?J:function(y,v,d){v=v!=null?v:function(M){return M}; var P=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&y[Symbol.iterator];if(typeof A=="function"){y=A.call(y);for(var T=0;!(A=y.next()).done;)P.push(v.call(d,A.value,T++))}else for(A=y.length,T=0;T>>0;if(y===0)return 32;var v=0;(y&4294901760)===0&&(y<<=16,v+=16);(y&4278190080)===0&&(y<<=8,v+=8);(y&4026531840)===0&&(y<<=4,v+=4);(y&3221225472)===0&&(y<<=2,v+=2);(y&2147483648)===0&&v++;return v}}); L3("Number.isNaN",function(J){return J?J:function(y){return typeof y==="number"&&isNaN(y)}}); L3("Array.prototype.values",function(J){return J?J:function(){return Rd(this,function(y,v){return v})}}); L3("Array.prototype.fill",function(J){return J?J:function(y,v,d){var P=this.length||0;v<0&&(v=Math.max(0,P+v));if(d==null||d>P)d=P;d=Number(d);d<0&&(d=Math.max(0,P+d));for(v=Number(v||0);v0&&v?v.repeat(Math.ceil(y/v.length)).substring(0,y):"")+d}}); L3("Array.prototype.findIndex",function(J){return J?J:function(y,v){return SUd(this,y,v).TR}}); L3("Promise.prototype.finally",function(J){return J?J:function(y){return this.then(function(v){return Promise.resolve(y()).then(function(){return v})},function(v){return Promise.resolve(y()).then(function(){throw v; })})}}); L3("Math.imul",function(J){return J?J:function(y,v){y=Number(y);v=Number(v);var d=y&65535,P=v&65535;return d*P+((y>>>16&65535)*P+d*(v>>>16&65535)<<16>>>0)|0}}); L3("Math.sign",function(J){return J?J:function(y){y=Number(y);return y===0||isNaN(y)?y:y>0?1:-1}}); L3("WeakSet",function(J){function y(v){this.C=new WeakMap;if(v){v=g.D(v);for(var d;!(d=v.next()).done;)this.add(d.value)}} if(function(){if(!J||!Object.seal)return!1;try{var v=Object.seal({}),d=Object.seal({}),P=new J([v]);if(!P.has(v)||P.has(d))return!1;P.delete(v);P.add(d);return!P.has(v)&&P.has(d)}catch(A){return!1}}())return J; y.prototype.add=function(v){this.C.set(v,!0);return this}; y.prototype.has=function(v){return this.C.has(v)}; y.prototype.delete=function(v){return this.C.delete(v)}; return y}); L3("AggregateError",function(J){function y(v,d){d=Error(d);"stack"in d&&(this.stack=d.stack);this.errors=v;this.message=d.message} if(J)return J;g.x(y,Error);y.prototype.name="AggregateError";return y}); L3("Array.prototype.copyWithin",function(J){function y(v){v=Number(v);return v===Infinity||v===-Infinity?v:v|0} return J?J:function(v,d,P){var A=this.length;v=y(v);d=y(d);P=P===void 0?A:y(P);v=v<0?Math.max(A+v,0):Math.min(v,A);d=d<0?Math.max(A+d,0):Math.min(d,A);P=P<0?Math.max(A+P,0):Math.min(P,A);if(vd;)--P in this?this[--v]=this[P]:delete this[--v];return this}}); L3("Int8Array.prototype.copyWithin",z2);L3("Uint8Array.prototype.copyWithin",z2);L3("Uint8ClampedArray.prototype.copyWithin",z2);L3("Int16Array.prototype.copyWithin",z2);L3("Uint16Array.prototype.copyWithin",z2);L3("Int32Array.prototype.copyWithin",z2);L3("Uint32Array.prototype.copyWithin",z2);L3("Float32Array.prototype.copyWithin",z2);L3("Float64Array.prototype.copyWithin",z2);L3("Array.prototype.at",function(J){return J?J:km}); L3("Int8Array.prototype.at",EU);L3("Uint8Array.prototype.at",EU);L3("Uint8ClampedArray.prototype.at",EU);L3("Int16Array.prototype.at",EU);L3("Uint16Array.prototype.at",EU);L3("Int32Array.prototype.at",EU);L3("Uint32Array.prototype.at",EU);L3("Float32Array.prototype.at",EU);L3("Float64Array.prototype.at",EU);L3("String.prototype.at",function(J){return J?J:km}); L3("Array.prototype.findLastIndex",function(J){return J?J:function(y,v){return Vx2(this,y,v).TR}}); L3("Int8Array.prototype.findLastIndex",QH);L3("Uint8Array.prototype.findLastIndex",QH);L3("Uint8ClampedArray.prototype.findLastIndex",QH);L3("Int16Array.prototype.findLastIndex",QH);L3("Uint16Array.prototype.findLastIndex",QH);L3("Int32Array.prototype.findLastIndex",QH);L3("Uint32Array.prototype.findLastIndex",QH);L3("Float32Array.prototype.findLastIndex",QH);L3("Float64Array.prototype.findLastIndex",QH);L3("Number.parseInt",function(J){return J||parseInt});var Na,TQ,txH;Na=Na||{};g.wr=this||self;TQ="closure_uid_"+(Math.random()*1E9>>>0);txH=0;g.Vq(LH,Error);LH.prototype.name="CustomError";var $bP;var ccP,gp,XI;ccP=Array.prototype.indexOf?function(J,y){return Array.prototype.indexOf.call(J,y,void 0)}:function(J,y){if(typeof J==="string")return typeof y!=="string"||y.length!=1?-1:J.indexOf(y,0); for(var v=0;v=0;v--)if(v in J&&J[v]===y)return v;return-1}; g.En=Array.prototype.forEach?function(J,y,v){Array.prototype.forEach.call(J,y,v)}:function(J,y,v){for(var d=J.length,P=typeof J==="string"?J.split(""):J,A=0;A=.3:this.VM>=.5};var mp={hak:0,kJx:1},Bs3={NONE:0,T0b:1,m$R:2};var Iv6="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");Og.prototype.getValue=function(){return this.T}; g.x(gu,Og);gu.prototype.J=function(J){this.T===null&&g.YN(this.W,J)&&(this.T=J)}; g.x(DE,Og);DE.prototype.J=function(J){this.T===null&&typeof J==="number"&&(this.T=J)}; g.x(cL,Og);cL.prototype.J=function(J){this.T===null&&typeof J==="string"&&(this.T=J)};Gn.prototype.disable=function(){this.T=!1}; Gn.prototype.enable=function(){this.T=!0}; Gn.prototype.isEnabled=function(){return this.T}; Gn.prototype.reset=function(){this.C={};this.T=!0;this.J={}};var Rl=document,qi=window;var KTb=dV(1,!0),f_=dV(610401301,!1);dV(899588437,!1);var z3H=dV(772657768,!1),k2n=dV(513659523,!1),Emw=dV(568333945,!1),H2r=dV(1331761403,!1);dV(651175828,!1);dV(722764542,!1);dV(748402145,!1);dV(748402146,!1);dV(555019702,!1);dV(333098724,!1);dV(2147483644,!1);dV(2147483645,!1);dV(2147483646,KTb);dV(2147483647,!0);var i0=!!g.vq("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var oM=String.prototype.trim?function(J){return J.trim()}:function(J){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(J)[1]},lym=/&/g,MXT=//g,sC6=/"/g,Yn3=/'/g,SnH=/\x00/g,TV6=/[\x00&<>"']/;var u0,Qd0=g.wr.navigator;u0=Qd0?Qd0.userAgentData||null:null;var k2U=globalThis.trustedTypes,ZE;Jg.prototype.toString=function(){return this.C+""};PD.prototype.toString=function(){return this.C}; var Z3c=new PD("about:invalid#zClosurez");var vh2=lX("tel"),J7j=lX("sms"),QdT=[lX("data"),lX("http"),lX("https"),lX("mailto"),lX("ftp"),new T8(function(J){return/^[^:]*([/?#]|$)/.test(J)})],wPv=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Vt.prototype.toString=function(){return this.C+""};xp.prototype.toString=function(){return this.C+""};G8.prototype.toString=function(){return this.C};var FN={};g.Z3O=String.prototype.repeat?function(J,y){return J.repeat(y)}:function(J,y){return Array(y+1).join(J)};fn[" "]=function(){};var Rg,dM,NYm,wPy,JOn,yOq,IK,po,vyu;g.UC=K_();g.YK=H3d();g.XD=XF("Edge");g.V0=g.XD||g.YK;Rg=XF("Gecko")&&!($N(g.IM(),"WebKit")&&!XF("Edge"))&&!(XF("Trident")||XF("MSIE"))&&!XF("Edge");g.s3=$N(g.IM(),"WebKit")&&!XF("Edge");dM=US();NYm=xbH();g.EL=ayP();wPy=IV();JOn=XF("iPad");yOq=XF("iPod");IK=pn();po=$N(g.IM(),"KaiOS"); a:{var db0="",Pww=function(){var J=g.IM();if(Rg)return/rv:([^\);]+)(\)|;)/.exec(J);if(g.XD)return/Edge\/([\d\.]+)/.exec(J);if(g.YK)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(J);if(g.s3)return/WebKit\/(\S+)/.exec(J);if(g.UC)return/(?:Version)[ \/]?(\S+)/.exec(J)}(); Pww&&(db0=Pww?Pww[1]:"");if(g.YK){var P5,AOu=g.wr.document;P5=AOu?AOu.documentMode:void 0;if(P5!=null&&P5>parseFloat(db0)){vyu=String(P5);break a}}vyu=db0}var cOU=vyu,gyv={};var KX,zo;g.T3=zn();KX=IV()||XF("iPod");zo=XF("iPad");g.fo=Nr6();g.Wz=kN();g.tW=Eg()&&!pn();var odP=!g.YK&&!Eg();g.a=g.N7.prototype;g.a.clone=function(){return new g.N7(this.x,this.y)}; g.a.equals=function(J){return J instanceof g.N7&&RV(this,J)}; g.a.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.a.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.a.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.a.scale=function(J,y){this.x*=J;this.y*=typeof y==="number"?y:J;return this};g.a=g.Kn.prototype;g.a.clone=function(){return new g.Kn(this.width,this.height)}; g.a.aspectRatio=function(){return this.width/this.height}; g.a.isEmpty=function(){return!kp(this)}; g.a.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.a.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.a.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.a.scale=function(J,y){this.width*=J;this.height*=typeof y==="number"?y:J;return this};Qt.prototype.toString=function(){return this.C}; var ES={};new Qt(ES,"");var F03=/^[a-z][a-z\d-]*$/i,jC6="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),mb3="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),qnc=["action","formaction","href"];var oy6={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.a=w0.prototype;g.a.sN=function(J){return PZ(this.C,J)}; g.a.getElementsByTagName=function(J,y){return(y||this.C).getElementsByTagName(String(J))}; g.a.uA=function(J){return g.Mi(J,this.C)}; g.a.setProperties=nj;g.a.createElement=function(J){return SZ(this.C,J)}; g.a.appendChild=g.WZ;g.a.append=function(J,y){pq3(Jb(J),J,arguments,1)}; g.a.canHaveChildren=function(J){if(J.nodeType!=1)return!1;switch(J.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.a.removeNode=g.O3;g.a.getChildren=function(J){return J.children!=void 0?J.children:Array.prototype.filter.call(J.childNodes,function(y){return y.nodeType==1})}; g.a.contains=g.gs;eZ.prototype.now=function(){return 0}; eZ.prototype.T=function(){return 0}; eZ.prototype.J=function(){return 0}; eZ.prototype.C=function(){return 0};g.x(BZ,eZ);BZ.prototype.now=function(){return m4()&&qi.performance.now?qi.performance.now():eZ.prototype.now.call(this)}; BZ.prototype.T=function(){return m4()&&qi.performance.memory?qi.performance.memory.totalJSHeapSize||0:eZ.prototype.T.call(this)}; BZ.prototype.J=function(){return m4()&&qi.performance.memory?qi.performance.memory.usedJSHeapSize||0:eZ.prototype.J.call(this)}; BZ.prototype.C=function(){return m4()&&qi.performance.memory?qi.performance.memory.jsHeapSizeLimit||0:eZ.prototype.C.call(this)};var rnU=function(){if(!g.wr.addEventListener||!Object.defineProperty)return!1;var J=!1,y=Object.defineProperty({},"passive",{get:function(){J=!0}}); try{var v=function(){}; g.wr.addEventListener("test",v,y);g.wr.removeEventListener("test",v,y)}catch(d){}return J}();var Grv=u_3("AnimationEnd"),gw=u_3("TransitionEnd");g.a=pj.prototype;g.a.getHeight=function(){return this.bottom-this.top}; g.a.clone=function(){return new pj(this.top,this.right,this.bottom,this.left)}; g.a.contains=function(J){return this&&J?J instanceof pj?J.left>=this.left&&J.right<=this.right&&J.top>=this.top&&J.bottom<=this.bottom:J.x>=this.left&&J.x<=this.right&&J.y>=this.top&&J.y<=this.bottom:!1}; g.a.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.a.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.a.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.a.scale=function(J,y){y=typeof y==="number"?y:J;this.left*=J;this.right*=J;this.top*=y;this.bottom*=y;return this};g.a=g.ua.prototype;g.a.clone=function(){return new g.ua(this.left,this.top,this.width,this.height)}; g.a.contains=function(J){return J instanceof g.N7?J.x>=this.left&&J.x<=this.left+this.width&&J.y>=this.top&&J.y<=this.top+this.height:this.left<=J.left&&this.left+this.width>=J.left+J.width&&this.top<=J.top&&this.top+this.height>=J.top+J.height}; g.a.getSize=function(){return new g.Kn(this.width,this.height)}; g.a.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.a.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.a.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.a.scale=function(J,y){y=typeof y==="number"?y:J;this.left*=J;this.width*=J;this.top*=y;this.height*=y;return this};var Xqm={};var Eym=og(function(){var J=!1;try{var y=Object.defineProperty({},"passive",{get:function(){J=!0}}); g.wr.addEventListener("test",null,y)}catch(v){}return J});QCj.prototype.isVisible=function(){return Ts(Rl)===1};var RbR=lO(function(J){return typeof J==="number"}),Nud=lO(function(J){return typeof J==="string"}),Kpc=lO(function(J){return typeof J==="boolean"}),GO=lO(function(J){return J!=null&&typeof J==="object"&&typeof J.then==="function"}),Dzv=lO(function(J){return typeof J==="function"}),TV_=lO(function(J){return!!J&&(typeof J==="object"||typeof J==="function")});var wqR={yOX:"allow-forms",brY:"allow-modals",krX:"allow-orientation-lock",W0B:"allow-pointer-lock",pKj:"allow-popups",j5x:"allow-popups-to-escape-sandbox",tzy:"allow-presentation",cOk:"allow-same-origin",E3y:"allow-scripts",myY:"allow-top-navigation",S3B:"allow-top-navigation-by-user-activation"},dhP=og(function(){return JsH()});var lE2=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");L9.prototype.S1=function(J,y,v){J=J+"//"+y+v;var d=YgH(this)-v.length;if(d<0)return"";this.C.sort(function(Y,S){return Y-S}); v=null;y="";for(var P=0;P=n.length){d-=n.length;J+=n;y=this.J;break}v=v==null?A:v}}d="";v!=null&&(d=""+y+"trn="+v);return J+d};cf.prototype.setInterval=function(J,y){return qi.setInterval(J,y)}; cf.prototype.clearInterval=function(J){qi.clearInterval(J)}; cf.prototype.setTimeout=function(J,y){return qi.setTimeout(J,y)}; cf.prototype.clearTimeout=function(J){qi.clearTimeout(J)};var YQ=void 0,ys,Re6=typeof TextDecoder!=="undefined",csr,DhR=typeof String.prototype.isWellFormed==="function",gNr=typeof TextEncoder!=="undefined";var ebr={},qc=null,mhU=Rg||g.s3||typeof g.wr.btoa=="function";var UhH=typeof Uint8Array!=="undefined",oNj=!g.YK&&typeof btoa==="function",C0R=/[-_.]/g,rsU={"-":"+",_:"/",".":"="},$7={};rp.prototype.isEmpty=function(){return this.C==null}; rp.prototype.sizeBytes=function(){var J=C9(this);return J?J.length:0}; var pLH;var fET=void 0;var f9=typeof Symbol==="function"&&typeof Symbol()==="symbol",lyy=Ub("jas",void 0,!0),aE=Ub(void 0,"1oa"),$d=Ub(void 0,Symbol()),MX0=Ub(void 0,"0ub"),tPx=Ub(void 0,"0ubs"),W4x=Ub(void 0,"0ubsb"),bnm=Ub(void 0,"0actk"),Bk=Ub("m_m","FaY",!0),x73=Ub(void 0,"vps"),nyn=Ub();Math.max.apply(Math,g.r(Object.values({mof:1,EgK:2,chY:4,kAj:8,o_W:16,oiA:32,faY:64,GJx:128,tWk:256,Gkx:512,E6Y:1024,NaK:2048,sqb:4096})));var uFm={zx:{value:0,configurable:!0,writable:!0,enumerable:!1}},i_2=Object.defineProperties,iO=f9?lyy:"zx",dg,sC_=[];Hf(sC_,7);dg=Object.freeze(sC_);var qw={},Nc={},$7j=Object.freeze({}),zs={};var Eb=typeof g.wr.BigInt==="function"&&typeof g.wr.BigInt(0)==="bigint";var Ut=lO(function(J){return Eb?J>=Ynu&&J<=Snq:J[0]==="-"?zbr(J,VXy):zbr(J,L0O)}),VXy=Number.MIN_SAFE_INTEGER.toString(),Ynu=Eb?BigInt(Number.MIN_SAFE_INTEGER):void 0,L0O=Number.MAX_SAFE_INTEGER.toString(),Snq=Eb?BigInt(Number.MAX_SAFE_INTEGER):void 0;var inU=typeof Uint8Array.prototype.slice==="function",JC=0,y5=0,aGv;var xd=typeof BigInt==="function"?BigInt.asIntN:void 0,npm=typeof BigInt==="function"?BigInt.asUintN:void 0,bs=Number.isSafeInteger,Sd=Number.isFinite,F7=Math.trunc,wLx=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var On3={};var tXX={oZW:!0};var II;var gpU,D7j;var hed=QG(0),$3={};ug.prototype.init=function(J,y,v,d){var P=d===void 0?{}:d;d=P.Dn===void 0?!1:P.Dn;P=P.hX===void 0?!1:P.hX;this.Dn=d;this.hX=P;J&&(J=ig(J,this.hX),this.T=J.buffer,this.V=J.C,this.W=y||0,this.J=v!==void 0?this.W+v:this.T.length,this.C=this.W)}; ug.prototype.free=function(){this.clear();Ef.length<100&&Ef.push(this)}; ug.prototype.clear=function(){this.T=null;this.V=!1;this.C=this.J=this.W=0;this.Dn=!1}; ug.prototype.reset=function(){this.C=this.W}; var Ef=[];QI.prototype.free=function(){this.C.clear();this.T=this.W=-1;ZV.length<100&&ZV.push(this)}; QI.prototype.reset=function(){this.C.reset();this.J=this.C.C;this.T=this.W=-1}; var ZV=[];var zeR,Ep3;tq.prototype.length=function(){return this.C.length}; tq.prototype.end=function(){var J=this.C;this.C=[];return J};var bN=co(),W0y=co(),ayq=co(),xbq=co(),OHn=co(),gyy=co(),Dbq=co(),cOn=co(),GQQ=co(),bHO=co();Gz.prototype.toJSON=function(){return Hk(this)}; Gz.prototype.a5=function(J){return JSON.stringify(Hk(this,J))}; Gz.prototype.clone=function(){var J=this.n8,y=J[iO]|0;return KI(this,J,y)?zH(this,J,!0):new this.constructor(RI(J,y,!1))}; Gz.prototype[Bk]=qw;Gz.prototype.toString=function(){return this.n8.toString()};var Ts3=jt(function(J,y,v,d,P){if(J.T!==2)return!1;Jq(J,x3(y,d,v),P);return!0},AbT),lGU=jt(function(J,y,v,d,P){if(J.T!==2)return!1; Jq(J,x3(y,d,v),P);return!0},AbT),U_=Symbol(),rX=Symbol(),Cl=Symbol(),VZc=Symbol(),sgU=Symbol(),et,mF;var F0u=RA(function(J,y,v){if(J.T!==1)return!1;zz(y,v,zJ(J.C));return!0},E_,cOn),jC_=RA(function(J,y,v){if(J.T!==1)return!1; J=zJ(J.C);zz(y,v,J===0?void 0:J);return!0},E_,cOn),euy=RA(function(J,y,v,d){if(J.T!==1)return!1; ty(y,v,d,zJ(J.C));return!0},E_,cOn),mbu=RA(function(J,y,v){if(J.T!==0)return!1; zz(y,v,Xc(J.C));return!0},Qs,gyy),BVX=RA(function(J,y,v){if(J.T!==0)return!1; J=Xc(J.C);zz(y,v,J===0?void 0:J);return!0},Qs,gyy),qnO=RA(function(J,y,v,d){if(J.T!==0)return!1; ty(y,v,d,Xc(J.C));return!0},Qs,gyy),rO_=RA(function(J,y,v){if(J.T!==0)return!1; zz(y,v,NV(J.C));return!0},ZA,xbq),$bq=RA(function(J,y,v){if(J.T!==0)return!1; J=NV(J.C);zz(y,v,J===0?void 0:J);return!0},ZA,xbq),oy_=RA(function(J,y,v,d){if(J.T!==0)return!1; ty(y,v,d,NV(J.C));return!0},ZA,xbq),CwX=RA(function(J,y,v){if(J.T!==1)return!1; zz(y,v,Kd(J.C));return!0},function(J,y,v){vkU(J,v,sVP(y))},Dbq),hun=Kl(function(J,y,v){if(J.T!==1&&J.T!==2)return!1; y=sf(y,y[iO]|0,v);if(J.T==2)for(v=NV(J.C)>>>0,v=J.C.C+v;J.C.C>>0);return!0},function(J,y,v){y=Wk(y); y!=null&&y!=null&&(gX(J,v,0),aA(J.C,y))},OHn),HHQ=RA(function(J,y,v){if(J.T!==0)return!1; zz(y,v,NV(J.C));return!0},function(J,y,v){y=tC(y); y!=null&&(y=parseInt(y,10),gX(J,v,0),Znj(J.C,y))},bHO);cbP.prototype.register=function(){fn(this)};g.x(yQ,Gz);yQ.prototype.J=GN6([0,jC_,BVX,-2,$bq]);var q3P={NvB:1,VB:2,apA:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};$iR.prototype.Cl=function(J){if(typeof J==="string"&&J.length!=0){var y=this.Ik;if(y.T){J=J.split("&");for(var v=J.length-1;v>=0;v--){var d=J[v].split("="),P=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(P=y.C[P])&&P.J(d)}}}};var sD=null;var l5=g.wr.performance,Xqy=!!(l5&&l5.mark&&l5.measure&&l5.clearMarks),An=og(function(){var J;if(J=Xqy){var y=y===void 0?window:y;if(sD===null){sD="";try{J="";try{J=y.top.location.hash}catch(d){J=y.location.hash}if(J){var v=J.match(/\bdeid=([\d,]+)/);sD=v?v[1]:""}}catch(d){}}y=sD;J=!!y.indexOf&&y.indexOf("1337")>=0}return J}); TG.prototype.disable=function(){this.C=!1;this.events!==this.T.google_js_reporting_queue&&(An()&&g.En(this.events,UiU),this.events.length=0)}; TG.prototype.start=function(J,y){if(!this.C)return null;var v=IGU()||haU();J=new pZU(J,y,v);y="goog_"+J.label+"_"+J.uniqueId+"_start";l5&&An()&&l5.mark(y);return J}; TG.prototype.end=function(J){if(this.C&&typeof J.value==="number"){var y=IGU()||haU();J.duration=y-J.value;y="goog_"+J.label+"_"+J.uniqueId+"_end";l5&&An()&&l5.mark(y);!this.C||this.events.length>2048||this.events.push(J)}};var fGT=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),gO=/#|$/,RaT=/[?&]($|#)/;zac.prototype.Sa=function(J,y,v,d,P){P=P||this.Cg;try{var A=new L9;A.C.push(1);A.T[1]=t3("context",J);y.error&&y.meta&&y.id||(y=new mJ(BV(y)));if(y.msg){var T=y.msg.substring(0,512);A.C.push(2);A.T[2]=t3("msg",T)}var M=y.meta||{};if(this.ze)try{this.ze(M)}catch(t){}if(d)try{d(M)}catch(t){}d=[M];A.C.push(3);A.T[3]=d;var n=nNm();if(n.T){var Y=n.T.url||"";A.C.push(4);A.T[4]=t3("top",Y)}var S={url:n.C.url||""};if(n.C.url){var V=g.nV(n.C.url);var L=MN(V[1],null,V[3],V[4])}else L="";Y=[S,{url:L}];A.C.push(5); A.T[5]=Y;okm(this.C,P,A,v)}catch(t){try{okm(this.C,P,{context:"ecmserr",rctx:J,msg:BV(t),url:n&&n.C.url},v)}catch(W){}}return this.QT}; g.x(mJ,Cax);var FI,ea,b5=new TG;FI=new function(){var J="https:";qi&&qi.location&&qi.location.protocol==="http:"&&(J="http:");this.T=J;this.C=.01}; ea=new zac;qi&&qi.document&&(qi.document.readyState=="complete"?Ek3():b5.C&&A3(qi,"load",function(){Ek3()}));var wZd=Date.now(),Il=-1,CV=-1,M6x,pV=-1,hn=!1;U1.prototype.equals=function(J,y){return!!J&&(!(y===void 0?0:y)||this.volume==J.volume)&&this.J==J.J&&fj(this.C,J.C)&&!0};fV.prototype.sN=function(){return this.G}; fV.prototype.equals=function(J,y){return this.W.equals(J.W,y===void 0?!1:y)&&this.G==J.G&&fj(this.J,J.J)&&fj(this.L,J.L)&&this.C==J.C&&this.V==J.V&&this.T==J.T&&this.B==J.B};var NVy={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},R$={t5:"start",Bh:"firstquartile",dH:"midpoint",Em:"thirdquartile",COMPLETE:"complete",ERROR:"error",C2:"metric",PAUSE:"pause",wH:"resume",yB:"skip",f2:"viewable_impression",J5:"mute",SR:"unmute",Ya:"fullscreen",R7:"exitfullscreen",xa:"bufferstart",M3:"bufferfinish",U7:"fully_viewable_audible_half_duration_impression",zv:"measurable_impression",Wh:"abandon",Zg:"engagedview",Dg:"impression",O7:"creativeview",im:"loaded", YYj:"progress",CLOSE:"close",Shb:"collapse",EiX:"overlay_resize",mkW:"overlay_unmeasurable_impression",SYk:"overlay_unviewable_impression",fpY:"overlay_viewable_immediate_impression",L8B:"overlay_viewable_end_of_session_impression",G_:"custom_metric_viewable",mC:"audio_audible",LC:"audio_measurable",SV:"audio_impression"},Ol3="start firstquartile midpoint thirdquartile resume loaded".split(" "),gQU=["start","firstquartile","midpoint","thirdquartile"],sEP=["abandon"],S8={UNKNOWN:-1,t5:0,Bh:1,dH:2, Em:3,COMPLETE:4,C2:5,PAUSE:6,wH:7,yB:8,f2:9,J5:10,SR:11,Ya:12,R7:13,U7:14,zv:15,Wh:16,Zg:17,Dg:18,O7:19,im:20,G_:21,xa:22,M3:23,SV:27,LC:28,mC:29};var y3r={g3b:"addEventListener",Lnx:"getMaxSize",foY:"getScreenSize",VWA:"getState",MWk:"getVersion",iTA:"removeEventListener",Sxx:"isViewable"};MBU.prototype.update=function(J){J&&J.document&&(this.G=i5(!1,J,this.isMobileDevice),this.C=i5(!0,J,this.isMobileDevice),sev(this,J),n7T(this,J))};zG.prototype.cancel=function(){Gs().clearTimeout(this.C);this.C=null}; zG.prototype.schedule=function(){var J=this,y=Gs(),v=dO().C.C;this.C=y.setTimeout(vV(v,rO(143,function(){J.T++;J.J.sample()})),J3c())};g.a=kn.prototype;g.a.Pt=function(){return!1}; g.a.initialize=function(){return this.isInitialized=!0}; g.a.Bd=function(){return this.C.If}; g.a.DF=function(){return this.C.zK}; g.a.fail=function(J,y){if(!this.zK||(y===void 0?0:y))this.zK=!0,this.If=J,this.B=0,this.C!=this||QQ(this)}; g.a.getName=function(){return this.C.Ek}; g.a.vQ=function(){return this.C.tF()}; g.a.tF=function(){return{}}; g.a.RL=function(){return this.C.B}; g.a.pZ=function(){var J=NN();J.C=i5(!0,this.J,J.isMobileDevice)}; g.a.ji=function(){n7T(NN(),this.J)}; g.a.Nz=function(){return this.W.C}; g.a.sample=function(){}; g.a.isActive=function(){return this.C.L}; g.a.lr=function(J){var y=this.C;this.C=J.RL()>=this.B?J:this;y!==this.C?(this.L=this.C.L,QQ(this)):this.L!==this.C.L&&(this.L=this.C.L,QQ(this))}; g.a.rO=function(J){if(J.T===this.C){var y=!this.W.equals(J,this.K);this.W=J;y&&VBH(this)}}; g.a.RD=function(){return this.K}; g.a.dispose=function(){this.wj=!0}; g.a.tY=function(){return this.wj};g.a=ZS.prototype;g.a.observe=function(){return!0}; g.a.unobserve=function(){}; g.a.y4=function(J){this.V=J}; g.a.dispose=function(){if(!this.tY()){var J=this.T;g.bw(J.V,this);J.K&&this.RD()&&Sbv(J);this.unobserve();this.AY=!0}}; g.a.tY=function(){return this.AY}; g.a.vQ=function(){return this.T.vQ()}; g.a.RL=function(){return this.T.RL()}; g.a.Bd=function(){return this.T.Bd()}; g.a.DF=function(){return this.T.DF()}; g.a.lr=function(){}; g.a.rO=function(){this.yZ()}; g.a.RD=function(){return this.wj};g.a=wO.prototype;g.a.RL=function(){return this.C.RL()}; g.a.Bd=function(){return this.C.Bd()}; g.a.DF=function(){return this.C.DF()}; g.a.create=function(J,y,v){var d=null;this.C&&(d=this.Q6(J,y,v),E1(this.C,d));return d}; g.a.EG=function(){return this.eQ()}; g.a.eQ=function(){return!1}; g.a.init=function(J){return this.C.initialize()?(E1(this.C,this),this.W=J,!0):!1}; g.a.lr=function(J){J.RL()==0&&this.W(J.Bd(),this)}; g.a.rO=function(){}; g.a.RD=function(){return!1}; g.a.dispose=function(){this.V=!0}; g.a.tY=function(){return this.V}; g.a.vQ=function(){return{}};Ju.prototype.add=function(J,y,v){++this.J;J=new tBr(J,y,v);this.C.push(new tBr(J.T,J.C,J.J+this.J/4096));this.T=!0;return this};xwm.prototype.toString=function(){var J="//pagead2.googlesyndication.com//pagead/gen_204",y=v2(this.C);y.length>0&&(J+="?"+y);return J};g.u.prototype.Bw=!1;g.u.prototype.tY=function(){return this.Bw}; g.u.prototype.dispose=function(){this.Bw||(this.Bw=!0,this.JY())}; g.u.prototype[Symbol.dispose]=function(){this.dispose()}; g.u.prototype.addOnDisposeCallback=function(J,y){this.Bw?y!==void 0?J.call(y):J():(this.Z4||(this.Z4=[]),y&&(J=J.bind(y)),this.Z4.push(J))}; g.u.prototype.JY=function(){if(this.Z4)for(;this.Z4.length;)this.Z4.shift()()};Au.prototype.update=function(J,y,v){J&&(this.C+=y,this.T+=y,this.W+=y,this.J=Math.max(this.J,this.W));if(v===void 0?!J:v)this.W=0};var GH3=[1,.75,.5,.3,0];TR.prototype.update=function(J,y,v,d,P,A){A=A===void 0?!0:A;y=P?Math.min(J,y):y;for(P=0;P0&&y>=T;T=!(J>0&&J>=T)||v;this.C[P].update(A&&M,d,!A||T)}};ST.prototype.update=function(J,y,v,d){this.G=this.G!=-1?Math.min(this.G,y.VM):y.VM;this.Cy=Math.max(this.Cy,y.VM);this.AY=this.AY!=-1?Math.min(this.AY,y.KN):y.KN;this.If=Math.max(this.If,y.KN);this.rj.update(y.KN,v.KN,y.C,J,d);this.WX+=J;y.VM===0&&(this.Ek+=J);this.T.update(y.VM,v.VM,y.C,J,d);v=d||v.i_!=y.i_?v.isVisible()&&y.isVisible():v.isVisible();y=!y.isVisible()||y.C;this.GK.update(v,J,y)}; ST.prototype.zy=function(){return this.GK.J>=this.YB};if(Rl&&Rl.URL){var RuH=Rl.URL,K0V;if(K0V=!!RuH){var zuw;a:{if(RuH){var kQn=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var Yh=kQn.exec(decodeURIComponent(RuH));if(Yh){zuw=Yh[1]&&Yh[1].length>1?Yh[1].substring(1):"true";break a}}catch(J){}}zuw=""}K0V=zuw.length>0}ea.QT=!K0V};var Eyy=new pj(0,0,0,0);var rCT=new pj(0,0,0,0);g.x(a$,g.u);g.a=a$.prototype; g.a.JY=function(){if(this.W5.C){if(this.WE.GL){var J=this.W5.C;typeof J.removeEventListener==="function"&&J.removeEventListener("mouseover",this.WE.GL,Pf());this.WE.GL=null}this.WE.Ob&&(J=this.W5.C,typeof J.removeEventListener==="function"&&J.removeEventListener("mouseout",this.WE.Ob,Pf()),this.WE.Ob=null)}this.po&&this.po.dispose();this.hI&&this.hI.dispose();delete this.wB;delete this.LY;delete this.Du;delete this.W5.QS;delete this.W5.C;delete this.WE;delete this.po;delete this.hI;delete this.Ik; g.u.prototype.JY.call(this)}; g.a.GC=function(){return this.hI?this.hI.C:this.position}; g.a.Cl=function(J){dO().Cl(J)}; g.a.RD=function(){return!1}; g.a.uo=function(){return new ST}; g.a.Xs=function(){return this.wB}; g.a.Lg=function(J){return hrm(this,J,1E4)}; g.a.Mx=function(J,y,v,d,P,A,T){this.l7||(this.JD&&(J=this.Q5(J,v,P,T),d=d&&this.kH.VM>=(this.i_()?.3:.5),this.Kn(A,J,d),this.Ww=y,J.VM>0&&-1===this.yX&&(this.yX=y),this.cj==-1&&this.zy()&&(this.cj=y),this.cD==-2&&(this.cD=tu(this.GC())?J.VM:-1),this.kH=J),this.LY(this))}; g.a.Kn=function(J,y,v){this.Xs().update(J,y,this.kH,v)}; g.a.Jn=function(){return new wV}; g.a.Q5=function(J,y,v,d){v=this.Jn();v.C=y;y=Gs().T;y=Ts(Rl)===0?-1:y.isVisible()?0:1;v.T=y;v.VM=this.Ge(J);v.i_=this.i_();v.KN=d;return v}; g.a.Ge=function(J){return this.opacity===0&&j4(this.Ik,"opac")===1?0:J}; g.a.i_=function(){return!1}; g.a.Qp=function(){return this.uU||this.qp}; g.a.LU=function(){ol()}; g.a.r5=function(){ol()}; g.a.CR=function(){return 0}; g.a.zy=function(){return this.wB.zy()}; g.a.BJ=function(){var J=this.JD;J=(this.hasCompleted||this.tY())&&!J;var y=dO().T!==2||this.pox;return this.l7||y&&J?2:this.zy()?4:3}; g.a.PG=function(){return 0};g.c2.prototype.next=function(){return g.SY}; g.SY={done:!0,value:void 0};g.c2.prototype.yq=function(){return this};g.x(u73,wV);var VZ=Xk2([void 0,1,2,3,4,8,16]),L2=Xk2([void 0,4,8,16]),QCb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:jT("p0",L2),p1:jT("p1",L2),p2:jT("p2",L2),p3:jT("p3",L2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:F4("mtos1",[0,2,4],!1,L2),mtos2:F4("mtos2",[0,2,4],!1,L2),mtos3:F4("mtos3",[0,2,4],!1,L2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:jT("a0",L2),a1:jT("a1",L2),a2:jT("a2",L2),a3:jT("a3",L2),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:jT("c0",L2),c1:jT("c1",L2),c2:jT("c2",L2),c3:jT("c3",L2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:jT("qmtos",VZ),qnc:jT("qnc",VZ),qmv:jT("qmv",VZ),qnv:jT("qnv",VZ), 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:jT("ss0",L2),ss1:jT("ss1",L2),ss2:jT("ss2",L2),ss3:jT("ss3",L2),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"},ZHQ=Object.assign({},QCb,{avid:rs("audio"),avas:"avas",vs:"vs"}),wqw={atos:"atos",avt:F4("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(J,y){return function(v){return v[J]===void 0&&y!==void 0?y:v[J]}}("ss",0), t:"t"};q0.prototype.getValue=function(){return this.T}; q0.prototype.update=function(J,y){J>=32||(this.C&1<=.5;HV(y.volume)&&(this.W=this.W!=-1?Math.min(this.W,y.volume):y.volume,this.L=Math.max(this.L,y.volume));A&&(this.wj+=J,this.K+=P?J:0);this.C.update(y.VM,v.VM,y.C,J,d,P);this.J.update(!0,J);this.V.update(P,J);this.zK.update(v.fullscreen,J);this.Ky.update(P&&!A,J);J=Math.floor(y.mediaTime/1E3);this.cX.update(J,y.isVisible());this.XW.update(J,y.VM>=1);this.ZB.update(J, bK(y))}};Edc.prototype.T=function(J){this.J||(this.C(J)?(J=lA3(this.K,this.W,J),this.V|=J,J=J==0):J=!1,this.J=J)};g.x(o$,Edc);o$.prototype.C=function(){return!0}; o$.prototype.L=function(){return!1}; o$.prototype.getId=function(){var J=this,y=S4(R$,function(v){return v==J.W}); return S8[y].toString()}; o$.prototype.toString=function(){var J="";this.L()&&(J+="c");this.J&&(J+="s");this.V>0&&(J+=":"+this.V);return this.getId()+J};g.x(hu,o$);hu.prototype.T=function(J,y){y=y===void 0?null:y;y!=null&&this.G.push(y);o$.prototype.T.call(this,J)};g.x(I$,QIT);I$.prototype.T=function(){return null}; I$.prototype.J=function(){return[]};g.x(pD,ZS);g.a=pD.prototype;g.a.bf=function(){if(this.element){var J=this.element,y=this.T.C.J;try{try{var v=A3H(J.getBoundingClientRect())}catch(Y){v=new pj(0,0,0,0)}var d=v.right-v.left,P=v.bottom-v.top,A=K0r(J,y),T=A.x,M=A.y;var n=new pj(Math.round(M),Math.round(T+d),Math.round(M+P),Math.round(T))}catch(Y){n=Eyy.clone()}this.J=n;this.C=L9R(this,this.J)}}; g.a.uP=function(){this.L=this.T.W.C}; g.a.Xw=function(J){var y=j4(this.Ik,"od")==1;return qt2(J,this.L,this.element,y)}; g.a.sQ=function(){this.timestamp=ol()}; g.a.yZ=function(){this.sQ();this.bf();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var J=this.element;var y=new g.Kn(J.videoWidth,J.videoHeight);J=this.C;var v=U3(J),d=J.getHeight(),P=y.width;y=y.height;P<=0||y<=0||v<=0||d<=0||(P/=y,y=v/d,J=J.clone(),P>y?(v/=P,d=(d-v)/2,d>0&&(d=J.top+d,J.top=Math.round(d),J.bottom=Math.round(d+v))):(d*=P,v=Math.round((v-d)/2),v>0&&(v=J.left+v,J.left=Math.round(v),J.right=Math.round(v+d))));this.C=J}this.uP(); J=this.C;v=this.L;J=J.left<=v.right&&v.left<=J.right&&J.top<=v.bottom&&v.top<=J.bottom?new pj(Math.max(J.top,v.top),Math.min(J.right,v.right),Math.min(J.bottom,v.bottom),Math.max(J.left,v.left)):new pj(0,0,0,0);v=J.top>=J.bottom||J.left>=J.right?new pj(0,0,0,0):J;J=this.T.W;y=P=d=0;if((this.C.bottom-this.C.top)*(this.C.right-this.C.left)>0)if(this.Xw(v))v=new pj(0,0,0,0);else{d=NN().W;y=new pj(0,d.height,d.width,0);var A;d=W2(v,(A=this.V)!=null?A:this.C);P=W2(v,NN().C);y=W2(v,y)}A=v.top>=v.bottom|| v.left>=v.right?new pj(0,0,0,0):ia(v,-this.C.left,-this.C.top);KV()||(P=d=0);this.K=new fV(J,this.element,this.C,A,d,P,this.timestamp,y)}; g.a.getName=function(){return this.T.getName()};var Jsq=new pj(0,0,0,0);g.x(Ud,pD);g.a=Ud.prototype;g.a.observe=function(){this.W();return!0}; g.a.rO=function(){pD.prototype.yZ.call(this)}; g.a.sQ=function(){}; g.a.bf=function(){}; g.a.yZ=function(){this.W();pD.prototype.yZ.call(this)}; g.a.lr=function(J){J=J.isActive();J!==this.B&&(J?this.W():(NN().C=new pj(0,0,0,0),this.C=new pj(0,0,0,0),this.L=new pj(0,0,0,0),this.timestamp=-1));this.B=J};var t7={},lVU=(t7.firstquartile=0,t7.midpoint=1,t7.thirdquartile=2,t7.complete=3,t7);g.x(iK,a$);g.a=iK.prototype;g.a.RD=function(){return!0}; g.a.JM=function(){return this.GY==2}; g.a.Lg=function(J){return hrm(this,J,Math.max(1E4,this.J/3))}; g.a.Mx=function(J,y,v,d,P,A,T){var M=this,n=this.G(this)||{};g.xN(n,P);this.J=n.duration||this.J;this.K=n.isVpaid||this.K;this.Ek=n.isYouTube||this.Ek;Gs();this.rj=!1;P=wk3(this,y);ZIP(this)===1&&(A=P);a$.prototype.Mx.call(this,J,y,v,d,n,A,T);this.Jb&&this.Jb.J&&g.En(this.L,function(Y){Y.T(M)})}; g.a.Kn=function(J,y,v){a$.prototype.Kn.call(this,J,y,v);X4(this).update(J,y,this.kH,v);this.YB=bK(this.kH)&&bK(y);this.If==-1&&this.XW&&(this.If=this.Xs().J.C);this.YR.J=0;J=this.zy();y.isVisible()&&B2(this.YR,"vs");J&&B2(this.YR,"vw");HV(y.volume)&&B2(this.YR,"am");bK(y)?B2(this.YR,"a"):B2(this.YR,"mut");this.Ig&&B2(this.YR,"f");y.T!=-1&&(B2(this.YR,"bm"),y.T==1&&(B2(this.YR,"b"),bK(y)&&B2(this.YR,"umutb")));bK(y)&&y.isVisible()&&B2(this.YR,"avs");this.YB&&J&&B2(this.YR,"avw");y.VM>0&&B2(this.YR, "pv");N0(this,this.Xs().J.C,!0)&&B2(this.YR,"gdr");sd(this.Xs().T,1)>=2E3&&B2(this.YR,"pmx");this.rj&&B2(this.YR,"tvoff")}; g.a.uo=function(){return new rJ}; g.a.Xs=function(){return this.wB}; g.a.Jn=function(){return new u73}; g.a.Q5=function(J,y,v,d){J=a$.prototype.Q5.call(this,J,y,v,d===void 0?-1:d);J.fullscreen=this.Ig;J.paused=this.JM();J.volume=v.volume;HV(J.volume)||(this.aG++,y=this.kH,HV(y.volume)&&(J.volume=y.volume));v=v.currentTime;J.mediaTime=v!==void 0&&v>=0?v:-1;return J}; g.a.Ge=function(J){return NN(),this.Ig?1:a$.prototype.Ge.call(this,J)}; g.a.CR=function(){return 1}; g.a.getDuration=function(){return this.J}; g.a.BJ=function(){return this.l7?2:yyR(this)?5:this.zy()?4:3}; g.a.PG=function(){return this.Ky?this.Xs().V.J>=2E3?4:3:2}; g.a.y4=function(J){this.hI&&this.hI.y4(J)};var ysw=g.Yy();xVc.prototype.reset=function(){this.C=[];this.T=[]}; var QN=Dr(xVc);g.x(JJ,wO);g.a=JJ.prototype;g.a.getName=function(){return(this.T?this.T:this.C).getName()}; g.a.vQ=function(){return(this.T?this.T:this.C).vQ()}; g.a.RL=function(){return(this.T?this.T:this.C).RL()}; g.a.init=function(J){var y=!1;(0,g.En)(this.J,function(v){v.initialize()&&(y=!0)}); y&&(this.W=J,E1(this.C,this));return y}; g.a.dispose=function(){(0,g.En)(this.J,function(J){J.dispose()}); wO.prototype.dispose.call(this)}; g.a.EG=function(){return XI(this.J,function(J){return J.Pt()})}; g.a.eQ=function(){return XI(this.J,function(J){return J.Pt()})}; g.a.Q6=function(J,y,v){return new pD(J,this.C,y,v)}; g.a.rO=function(J){this.T=J.T};var e8U={threshold:[0,.3,.5,.75,1]};g.x(yc,pD);g.a=yc.prototype;g.a.observe=function(){var J=this;this.Cy||(this.Cy=ol());if(Zj6(298,function(){return mVT(J)}))return!0; this.T.fail("msf");return!1}; g.a.unobserve=function(){if(this.W&&this.element)try{this.W.unobserve(this.element),this.B?(this.B.unobserve(this.element),this.B=null):this.G&&(this.G.disconnect(),this.G=null)}catch(J){}}; g.a.yZ=function(){var J=vt(this);J.length>0&&d$(this,J);pD.prototype.yZ.call(this)}; g.a.bf=function(){}; g.a.Xw=function(){return!1}; g.a.uP=function(){}; g.a.vQ=function(){var J={};return Object.assign(this.T.vQ(),(J.niot_obs=this.Cy,J.niot_cbk=this.zK,J))}; g.a.getName=function(){return"nio"};g.x(Pt,wO);Pt.prototype.getName=function(){return"nio"}; Pt.prototype.eQ=function(){return!NN().T&&this.C.C.J.IntersectionObserver!=null}; Pt.prototype.Q6=function(J,y,v){return new yc(J,this.C,y,v)};g.x(AJ,kn);AJ.prototype.Nz=function(){return NN().C}; AJ.prototype.Pt=function(){var J=qfT();this.B!==J&&(this.C!=this&&J>this.C.B&&(this.C=this,QQ(this)),this.B=J);return J==2};TT.prototype.sample=function(){ny(this,Z8(),!1)}; TT.prototype.W=function(){var J=KV(),y=ol();J?(hn||(Il=y,g.En(QN.C,function(v){var d=v.Xs();d.Vk=$g(d,y,v.GY!=1)})),hn=!0):(this.G=h83(this,y),hn=!1,M6x=y,g.En(QN.C,function(v){v.JD&&(v.Xs().B=y)})); ny(this,Z8(),!J)}; var lc=Dr(TT);var p33=null,$E="",r$=!1;var id3=fV3().Yf,YE=fV3().Uj;var X3T={Wnk:"visible",F0Y:"audible",RJf:"time",BRx:"timetype"},NgU={visible:function(J){return/^(100|[0-9]{1,2})$/.test(J)}, audible:function(J){return J=="0"||J=="1"}, timetype:function(J){return J=="mtos"||J=="tos"}, time:function(J){return/^(100|[0-9]{1,2})%$/.test(J)||/^([0-9])+ms$/.test(J)}}; HdR.prototype.setTime=function(J,y,v){y=="ms"?(this.J=J,this.W=-1):(this.J=-1,this.W=J);this.V=v===void 0?"tos":v;return this};g.x(tJ,o$);tJ.prototype.getId=function(){return this.G}; tJ.prototype.L=function(){return!0}; tJ.prototype.C=function(J){var y=J.Xs(),v=J.getDuration();return XI(this.B,function(d){if(d.C!=void 0)var P=KG3(d,y);else b:{switch(d.V){case "mtos":P=d.T?y.V.J:y.J.C;break b;case "tos":P=d.T?y.V.C:y.J.C;break b}P=0}P==0?d=!1:(d=d.J!=-1?d.J:v!==void 0&&v>0?d.W*v:-1,d=d!=-1&&P>=d);return d})};g.x(Wt,Rrc);Wt.prototype.C=function(J){var y=new NGU;y.C=mA(J,QCb);y.T=mA(J,wqw);return y};g.x(aH,o$);aH.prototype.C=function(J){return yyR(J)};g.x(xE,QIT);g.x(OE,o$);OE.prototype.C=function(J){return J.Xs().zy()};g.x(g$,hu);g$.prototype.C=function(J){var y=g.cq(this.G,j4(dO().Ik,"ovms"));return!J.l7&&(J.GY!=0||y)};g.x(Dz,xE);Dz.prototype.T=function(){return new g$(this.C)}; Dz.prototype.J=function(){return[new OE("viewable_impression",this.C),new aH(this.C)]};g.x(ct,Ud);ct.prototype.W=function(){var J=g.vq("ima.admob.getViewability"),y=j4(this.Ik,"queryid");typeof J==="function"&&y&&J(y)}; ct.prototype.getName=function(){return"gsv"};g.x(GT,wO);GT.prototype.getName=function(){return"gsv"}; GT.prototype.eQ=function(){var J=NN();dO();return J.T&&!1}; GT.prototype.Q6=function(J,y,v){return new ct(this.C,y,v)};g.x(bc,Ud);bc.prototype.W=function(){var J=this,y=g.vq("ima.bridge.getNativeViewability"),v=j4(this.Ik,"queryid");typeof y==="function"&&v&&y(v,function(d){g.Vx(d)&&J.G++;var P=d.opt_nativeViewVisibleBounds||{},A=d.opt_nativeViewHidden;J.C=Tp2(d.opt_nativeViewBounds||{});var T=J.T.W;T.C=A?Jsq.clone():Tp2(P);J.timestamp=d.opt_nativeTime||-1;NN().C=T.C;d=d.opt_nativeVolume;d!==void 0&&(T.volume=d)})}; bc.prototype.getName=function(){return"nis"};g.x(FZ,wO);FZ.prototype.getName=function(){return"nis"}; FZ.prototype.eQ=function(){var J=NN();dO();return J.T&&!1}; FZ.prototype.Q6=function(J,y,v){return new bc(this.C,y,v)};g.x(j8,kn);g.a=j8.prototype;g.a.Pt=function(){return this.T.oB!=null}; g.a.tF=function(){var J={};this.cX&&(J.mraid=this.cX);this.AY&&(J.mlc=1);J.mtop=this.T.U1x;this.G&&(J.mse=this.G);this.WX&&(J.msc=1);J.mcp=this.T.compatibility;return J}; g.a.Ud=function(J){var y=g.iR.apply(1,arguments);try{return this.T.oB[J].apply(this.T.oB,y)}catch(v){$n(538,v,.01,function(d){d.method=J})}}; g.a.initialize=function(){var J=this;if(this.isInitialized)return!this.DF();this.isInitialized=!0;if(this.T.compatibility===2)return this.G="ng",this.fail("w"),!1;if(this.T.compatibility===1)return this.G="mm",this.fail("w"),!1;NN().B=!0;this.J.document.readyState&&this.J.document.readyState=="complete"?QEU(this):LD(this.J,"load",function(){Gs().setTimeout(rO(292,function(){return QEU(J)}),100)},292); return!0}; g.a.pZ=function(){var J=NN(),y=vQd(this,"getMaxSize");J.C=new pj(0,y.width,y.height,0)}; g.a.ji=function(){NN().W=vQd(this,"getScreenSize")}; g.a.dispose=function(){w3j(this);kn.prototype.dispose.call(this)};var eax=new function(J,y){this.key=J;this.defaultValue=y===void 0?!1:y;this.valueType="boolean"}("45378663");g.a=m$.prototype;g.a.S9=function(J){D8(J,!1);cyP(J)}; g.a.p7=function(){}; g.a.vM=function(J,y,v,d){var P=this;J=new iK(qi,J,v?y:-1,7,this.rG(),this.xM());J.Av=d;pPH(J.Ik);FF(J.Ik,"queryid",J.Av);J.Cl("");Uw2(J,function(){return P.Kg.apply(P,g.r(g.iR.apply(0,arguments)))},function(){return P.xE.apply(P,g.r(g.iR.apply(0,arguments)))}); (d=Dr(wJ).C)&&Csd(J,d);this.J&&(J.y4(this.J),this.J=null);J.W5.QS&&Dr(ryd);return J}; g.a.lr=function(J){switch(J.RL()){case 0:if(J=Dr(wJ).C)J=J.C,g.bw(J.V,this),J.K&&this.RD()&&Sbv(J);qT();break;case 2:MT()}}; g.a.rO=function(){}; g.a.RD=function(){return!1}; g.a.xE=function(J,y){J.l7=!0;switch(J.CR()){case 1:Mtv(J,y);break;case 2:this.qt(J)}}; g.a.YE=function(J){var y=J.G(J);y&&(y=y.volume,J.Ky=HV(y)&&y>0);PgR(J,0);return KD(J,"start",KV())}; g.a.Ta=function(J,y,v){ny(lc,[J],!KV());return this.aD(J,y,v)}; g.a.aD=function(J,y,v){return KD(J,v,KV())}; g.a.GF=function(J){return uc(J,"firstquartile",1)}; g.a.Zd=function(J){J.XW=!0;return uc(J,"midpoint",2)}; g.a.U0=function(J){return uc(J,"thirdquartile",3)}; g.a.Hf=function(J){var y=uc(J,"complete",4);uK(J);return y}; g.a.Xm=function(J){J.GY=3;return KD(J,"error",KV())}; g.a.bM=function(J,y,v){y=KV();if(J.JM()&&!y){var d=J.Xs(),P=ol();d.B=P}ny(lc,[J],!y);J.JM()&&(J.GY=1);return KD(J,v,y)}; g.a.Bf=function(J,y){y=this.Ta(J,y||{},"skip");uK(J);return y}; g.a.N7=function(J,y){D8(J,!0);return this.Ta(J,y||{},"fullscreen")}; g.a.O0=function(J,y){D8(J,!1);return this.Ta(J,y||{},"exitfullscreen")}; g.a.ZN=function(J,y,v){y=J.Xs();var d=ol();y.Vk=$g(y,d,J.GY!=1);ny(lc,[J],!KV());J.GY==1&&(J.GY=2);return KD(J,v,KV())}; g.a.RZ=function(J){ny(lc,[J],!KV());return J.T()}; g.a.hn=function(J){ny(lc,[J],!KV());this.Ak(J);uK(J);return J.T()}; g.a.Kg=function(){}; g.a.qt=function(){}; g.a.Ak=function(){}; g.a.Si=function(){}; g.a.Fc=function(){}; g.a.xM=function(){this.C||(this.C=this.Fc());return this.C==null?new I$:new Dz(this.C)}; g.a.rG=function(){return new Wt};g.x(Ht,o$);Ht.prototype.C=function(J){return J.PG()==4};g.x(XZ,hu);XZ.prototype.C=function(J){J=J.PG();return J==3||J==4};g.x(NT,xE);NT.prototype.T=function(){return new XZ(this.C)}; NT.prototype.J=function(){return[new Ht(this.C)]};g.x(RH,Rrc);RH.prototype.C=function(J){J&&(J.e===28&&(J=Object.assign({},J,{avas:3})),J.vs===4||J.vs===5)&&(J=Object.assign({},J,{vs:3}));var y=new NGU;y.C=mA(J,ZHQ);y.T=mA(J,wqw);return y};S_P.prototype.T=function(){return g.vq(this.C)};g.x(Ky,m$);g.a=Ky.prototype;g.a.p7=function(J,y){var v=this,d=Dr(wJ);if(d.C!=null)switch(d.C.getName()){case "nis":var P=WFT(this,J,y);break;case "gsv":P=ttU(this,J,y);break;case "exc":P=aAU(this,J)}P||(y.opt_overlayAdElement?P=void 0:y.opt_adElement&&(P=sAv(this,J,y.opt_adElement,y.opt_osdId)));P&&P.CR()==1&&(P.G==g.$k&&(P.G=function(A){return v.Si(A)}),LFj(this,P,y)); return P}; g.a.Si=function(J){J.T=0;J.wj=0;if(J.W=="h"||J.W=="n"){dO();J.ZB&&(dO(),fy(this)!="h"&&fy(this));var y=g.vq("ima.common.getVideoMetadata");if(typeof y==="function")try{var v=y(J.Av)}catch(P){J.T|=4}else J.T|=2}else if(J.W=="b")if(y=g.vq("ytads.bulleit.getVideoMetadata"),typeof y==="function")try{v=y(J.Av)}catch(P){J.T|=4}else J.T|=2;else if(J.W=="ml")if(y=g.vq("ima.common.getVideoMetadata"),typeof y==="function")try{v=y(J.Av)}catch(P){J.T|=4}else J.T|=2;else J.T|=1;J.T||(v===void 0?J.T|=8:v===null? J.T|=16:g.Vx(v)?J.T|=32:v.errorCode!=null&&(J.wj=v.errorCode,J.T|=64));v==null&&(v={});y=v;J.B=0;for(var d in NVy)y[d]==null&&(J.B|=NVy[d]);Y_r(y,"currentTime");Y_r(y,"duration");HV(v.volume)&&HV()&&(v.volume*=NaN);return v}; g.a.Fc=function(){dO();fy(this)!="h"&&fy(this);var J=xUH(this);return J!=null?new S_P(J):null}; g.a.qt=function(J){!J.C&&J.l7&&ic(this,J,"overlay_unmeasurable_impression")&&(J.C=!0)}; g.a.Ak=function(J){J.RH&&(J.zy()?ic(this,J,"overlay_viewable_end_of_session_impression"):ic(this,J,"overlay_unviewable_impression"),J.RH=!1)}; g.a.Kg=function(){}; g.a.vM=function(J,y,v,d){if(miv()){var P=j4(dO().Ik,"mm"),A={};(P=(A[PV.E7]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",A[PV.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",A)[P])&&cqR(this,P);this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&$n(1044,Error())}J=m$.prototype.vM.call(this,J,y,v,d);this.V&&(y=this.L,J.V==null&&(J.V=new fkU),y.C[J.Av]=J.V,J.V.V=ysw);return J}; g.a.S9=function(J){J&&J.CR()==1&&this.V&&delete this.L.C[J.Av];return m$.prototype.S9.call(this,J)}; g.a.xM=function(){this.C||(this.C=this.Fc());return this.C==null?new I$:this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new NT(this.C):new Dz(this.C)}; g.a.rG=function(){return this.W==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new RH:new Wt}; g.a.y4=function(J,y,v,d,P){y=new pj(v,y+d,v+P,y);(J=Ed(QN,J))?J.y4(y):this.J=y}; var vNH=qN(193,blP,void 0,nQU);g.yq("Goog_AdSense_Lidar_sendVastEvent",vNH);var dhq=rO(194,function(J,y){y=y===void 0?{}:y;J=DUc(Dr(Ky),J,y);return Gz6(J)}); g.yq("Goog_AdSense_Lidar_getViewability",dhq);var P0H=qN(195,function(){return aEU()}); g.yq("Goog_AdSense_Lidar_getUrlSignalsArray",P0H);var AsX=rO(196,function(){return JSON.stringify(aEU())}); g.yq("Goog_AdSense_Lidar_getUrlSignalsList",AsX);var ejU=WP(["//ep2.adtrafficquality.google/sodar/",""]),mUU=WP(["//tpc.googlesyndication.com/sodar/",""]);g.x(EE,Error);g.x(w$,g.u);w$.prototype.M9=function(){return this.wpc.f()}; w$.prototype.Dc=function(J){this.wpc.c(J)}; w$.prototype.WU=function(J){return this.wpc.m($U3(J))}; w$.prototype.Gq=function(J){return this.wpc.mws($U3(J))}; g.x(Qc,g.u);Qc.prototype.snapshot=function(J){return this.U8.s(Object.assign({},J.XK&&{c:J.XK},J.IW&&{s:J.IW},J.yT!==void 0&&{p:J.yT}))}; Qc.prototype.Ip=function(J){this.U8.e(J)}; Qc.prototype.sP=function(){return this.U8.l()};var UU2;g.x(yB,g.u);yB.prototype.share=function(){if(this.tY())throw Error("E:AD");this.W++;return this}; yB.prototype.dispose=function(){--this.W||g.u.prototype.dispose.call(this)}; UU2=Symbol.dispose;fA3.prototype.zk=function(J,y){this.C.zk("/client_streamz/bg/frs",J,y)}; ilc.prototype.zk=function(J,y,v,d,P,A){this.C.zk("/client_streamz/bg/wrl",J,y,v,d,P,A)}; uv3.prototype.XI=function(J,y){this.C.Qq("/client_streamz/bg/ec",J,y)}; Hld.prototype.zk=function(J,y,v){this.C.zk("/client_streamz/bg/el",J,y,v)}; Xo2.prototype.XI=function(J,y){this.C.Qq("/client_streamz/bg/cec",J,y)}; NX6.prototype.XI=function(J,y){this.C.Qq("/client_streamz/bg/po/csc",J,y)}; Rjx.prototype.XI=function(J,y){this.C.Qq("/client_streamz/bg/po/ctav",J,y)}; KFr.prototype.XI=function(J,y){this.C.Qq("/client_streamz/bg/po/cwsc",J,y)};g.x(zjv,Gz);g.x(Pa,Gz);var YF=[1,2,3];var Tuy=[0,YF,fyX,oy_,pqH];var lEQ=[0,TZ,[0,F0u,mbu]];g.x(At,Gz);var sz=[1,2,3];var M40=[0,sz,qnO,euy,Mp,lEQ];g.x(TL,Gz);var nNy=[0,TZ,Tuy,M40];var sMy=[0,A7];g.x(lM,Gz);var Ygq=[0,A7,-1,Iyn];var Sgy=[0,A7,-1,rO_,Iyn];g.x(Mm,Gz);var Sq3=[1,2,3];var V4b=[0,Sq3,Mp,Ygq,Mp,Sgy,Mp,sMy];g.x(nk,Gz);nk.prototype.Ou=function(){var J=TJ(this,3,ed,3,!0);K9(J);return J[void 0]};nk.prototype.J=GN6([0,A7,V4b,Ub0,TZ,nNy,CwX,hun]);g.x(EQ3,Gz);g.a=SS.prototype;g.a.isEnabled=function(){if(!g.wr.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{xN:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.a.set=function(J,y,v){var d=!1;if(typeof v==="object"){var P=v.yrW;d=v.secure||!1;var A=v.domain||void 0;var T=v.path||void 0;var M=v.xN}if(/[;=\s]/.test(J))throw Error('Invalid cookie name "'+J+'"');if(/[;\r\n]/.test(y))throw Error('Invalid cookie value "'+y+'"');M===void 0&&(M=-1);v=A?";domain="+A:"";T=T?";path="+T:"";d=d?";secure":"";M=M<0?"":M==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+M*1E3)).toUTCString();this.C.cookie=J+"="+y+v+T+M+d+(P!=null?";samesite="+ P:"")}; g.a.get=function(J,y){for(var v=J+"=",d=(this.C.cookie||"").split(";"),P=0,A;P=0;y--)this.remove(J[y])}; var rh=new SS(typeof document=="undefined"?null:document);Lk.prototype.compress=function(J){var y,v,d,P;return g.f(function(A){switch(A.T){case 1:return y=new CompressionStream("gzip"),v=(new Response(y.readable)).arrayBuffer(),d=y.writable.getWriter(),g.h(A,d.write((new TextEncoder).encode(J)),2);case 2:return g.h(A,d.close(),3);case 3:return P=Uint8Array,g.h(A,v,4);case 4:return A.return(new P(A.C))}})}; Lk.prototype.isSupported=function(J){return J<1024?!1:typeof CompressionStream!=="undefined"};g.x(tt,Gz);Wa.prototype.setInterval=function(J){this.intervalMs=J;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; Wa.prototype.start=function(){var J=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){J.tick()},this.intervalMs),this.T=this.C())}; Wa.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; Wa.prototype.tick=function(){var J=this;if(this.enabled){var y=Math.max(this.C()-this.T,0);y0?v:void 0));v=yI(v,4,LI(P>0?P:void 0));v=yI(v,5,LI(A>0?A:void 0));P=v.n8;A=P[iO]|0;v=Re(v,A)?v:KI(v,P,A)?zH(v,P):new v.constructor(RI(P,A,!0));DV(T,Oz,10,v)}T=this.C.clone();v=Date.now().toString();T=yI(T,4,GH(v));J=j6(T,eS,3,J.slice());d&&(T=new am,d=yI(T,13,LI(d)),T=new xF, d=DV(T,am,2,d),T=new jS,d=DV(T,xF,1,d),d=pd(d,2,9),DV(J,jS,18,d));y&&Cd(J,14,y);return J};g.$F.prototype.T=0;g.$F.prototype.reset=function(){this.C=this.J=this.W;this.T=0}; g.$F.prototype.getValue=function(){return this.J};g.x(wX,Gz);var Lpq=Jn(wX);g.x(DiR,Gz);var W5;W5=new cbP;g.x(Im,g.u);g.a=Im.prototype;g.a.JY=function(){ht(this);this.T.stop();this.cX.stop();g.u.prototype.JY.call(this)}; g.a.dispatch=function(J){if(J instanceof eS)this.log(J);else try{var y=new eS,v=J.a5();var d=hy(y,8,v);this.log(d)}catch(P){pk(this,4,1)}}; g.a.log=function(J){pk(this,2,1);if(this.WX){J=J.clone();var y=this.GK++;J=Cd(J,21,y);this.componentId&&hy(J,26,this.componentId);y=J;var v=wG(y,1);var d=d===void 0?!1:d;var P=typeof v;d=v==null?v:P==="bigint"?String(xd(64,v)):V5(v)?P==="string"?aI(v):d?Dk(v):ck(v):void 0;d==null&&(d=Date.now(),d=Number.isFinite(d)?d.toString():"0",yI(y,1,GH(d)));d=wG(y,15);d!=null&&(typeof d==="bigint"?Ut(d)?d=Number(d):(d=xd(64,d),d=Ut(d)?Number(d):String(d)):d=V5(d)?typeof d==="number"?ck(d):aI(d):void 0);d!=null|| Cd(y,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(d=this.experimentIds.clone(),DV(y,tt,16,d));pk(this,1,1);y=this.C.length-1E3+1;y>0&&(this.C.splice(0,y),this.W+=y,pk(this,3,y));this.C.push(J);this.lB||this.T.enabled||this.T.start()}}; g.a.flush=function(J,y){var v=this;if(this.C.length===0)J&&J();else if(this.If&&this.zK)this.J.T=3,gnP(this);else{var d=Date.now();if(this.Vk>d&&this.wj0&&(v.wj=Date.now(),v.Vk=v.wj+L);L=SX($d);var c;f9&&L&&((c=t.n8[L])==null?void 0:c[175237375])!=null&&p9(MX0,3);a:{var b=b===void 0?!1:b;if(SX(nyn)&&SX($d)&&void 0===nyn){c=t.n8;L=c[$d];if(!L)break a;if(L=L.V3)try{L(c,175237375,tXX);break a}catch(B){Fp(B)}}b&&(b=t.n8, (c=SX($d))&&c in b&&(b=b[c])&&delete b[175237375])}b=W5.C?W5.T(t,W5.C,175237375,W5.J):W5.T(t,175237375,null,W5.J);if(b=b===null?void 0:b)b=mG(b,1,-1),b!==-1&&(v.V=new g.$F(b<1?1:b,3E5,.1),v.T.setInterval(v.V.getValue()))}}J&&J();v.L=0},S=function(L,t){var W=gg(A,eS,3); var c=Number(INT(A,14));g.om(v.V);v.T.setInterval(v.V.getValue());L===401&&T&&(v.Ek=T);c&&(v.W+=c);t===void 0&&(t=v.isRetryable(L));t&&(v.C=W.concat(v.C),v.lB||v.T.enabled||v.T.start());pk(v,7,1);y&&y("net-send-failed",L);++v.L},V=function(){v.network&&v.network.send(n,Y,S)}; M?M.then(function(L){pk(v,5,P);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=L;n.aF=2;V()},function(){pk(v,6,P); V()}):V()}}}}; g.a.isRetryable=function(J){return 500<=J&&J<600||J===401||J===0};Uz.prototype.send=function(J,y,v){var d=this,P,A,T,M,n,Y,S,V,L,t;return g.f(function(W){switch(W.T){case 1:return A=(P=d.xr?new AbortController:void 0)?setTimeout(function(){P.abort()},J.timeoutMillis):void 0,g.bR(W,2,3),T=Object.assign({},{method:J.requestType, headers:Object.assign({},J.requestHeaders)},J.body&&{body:J.body},J.withCredentials&&{credentials:"include"},{signal:J.timeoutMillis&&P?P.signal:null}),g.h(W,fetch(J.url,T),5);case 5:M=W.C;if(M.status!==200){(n=v)==null||n(M.status);W.Qk(3);break}if((Y=y)==null){W.Qk(7);break}return g.h(W,M.text(),8);case 8:Y(W.C);case 7:case 3:g.od(W);clearTimeout(A);g.C3(W,0);break;case 2:S=g.BP(W);switch((V=S)==null?void 0:V.name){case "AbortError":(L=v)==null||L(408);break;default:(t=v)==null||t(400)}W.Qk(3)}})}; Uz.prototype.WA=function(){return 4};g.x(fk,g.u);fk.prototype.BV=function(){this.V=!0;return this}; fk.prototype.build=function(){this.network||(this.network=new Uz);var J=new Im({logSource:this.logSource,X2:this.X2?this.X2:lSc,sessionIndex:this.sessionIndex,NeB:this.Ee,iY:this.W,lB:!1,BV:this.V,zQ:this.zQ,network:this.network});g.X(this,J);if(this.T){var y=this.T,v=rK(J.J);hy(v,7,y)}J.G=new Lk;this.componentId&&(J.componentId=this.componentId);this.FL&&(J.FL=this.FL);this.pageId&&(J.pageId=this.pageId);this.C&&((v=this.C)?(J.experimentIds||(J.experimentIds=new tt),y=J.experimentIds,v=v.a5(),hy(y, 4,v)):J.experimentIds&&yI(J.experimentIds,4));this.J&&(J.If=J.zK);tad(J.J);this.network.g1&&this.network.g1(this.logSource);this.network.OjY&&this.network.OjY(J);return J};g.x(iM,g.u);iM.prototype.flush=function(J){J=J||[];if(J.length){for(var y=new EQ3,v=[],d=0;d-1?(y=J[T],v||(y.Jm=!1)):(y=new mNr(y,this.src,A,!!d,P),y.Jm=v,J.push(y));return y}; g.a.remove=function(J,y,v,d){J=J.toString();if(!(J in this.listeners))return!1;var P=this.listeners[J];y=QB(P,y,v,d);return y>-1?(zL(P[y]),g.GQ(P,y),P.length==0&&(delete this.listeners[J],this.C--),!0):!1}; g.a.removeAll=function(J){J=J&&J.toString();var y=0,v;for(v in this.listeners)if(!J||v==J){for(var d=this.listeners[v],P=0;P-1?J[P]:null}; g.a.hasListener=function(J,y){var v=J!==void 0,d=v?J.toString():"",P=y!==void 0;return g.PL(this.listeners,function(A){for(var T=0;T>>0);g.Vq(g.Y1,g.u);g.Y1.prototype[jl3]=!0;g.a=g.Y1.prototype;g.a.addEventListener=function(J,y,v,d){g.wK(this,J,y,v,d)}; g.a.removeEventListener=function(J,y,v,d){ho2(this,J,y,v,d)}; g.a.dispatchEvent=function(J){var y=this.OA;if(y){var v=[];for(var d=1;y;y=y.OA)v.push(y),++d}y=this.vr;d=J.type||J;if(typeof J==="string")J=new g.Nm(J,y);else if(J instanceof g.Nm)J.target=J.target||y;else{var P=J;J=new g.Nm(d,y);g.xN(J,P)}P=!0;var A;if(v)for(A=v.length-1;!J.T&&A>=0;A--){var T=J.currentTarget=v[A];P=SQ(T,d,!0,J)&&P}J.T||(T=J.currentTarget=y,P=SQ(T,d,!0,J)&&P,J.T||(P=SQ(T,d,!1,J)&&P));if(v)for(A=0;!J.T&&A0){this.T--;var J=this.C;this.C=J.next;J.next=null}else J=this.J();return J};var to;aJ.prototype.add=function(J,y){var v=uI6.get();v.set(J,y);this.T?this.T.next=v:this.C=v;this.T=v}; aJ.prototype.remove=function(){var J=null;this.C&&(J=this.C,this.C=this.C.next,this.C||(this.T=null),J.next=null);return J}; var uI6=new Ve(function(){return new x1},function(J){return J.reset()}); x1.prototype.set=function(J,y){this.C=J;this.scope=y;this.next=null}; x1.prototype.reset=function(){this.next=this.scope=this.C=null};var Ok,gR=!1,fSv=new aJ;HVR.prototype.reset=function(){this.context=this.T=this.J=this.C=null;this.W=!1}; var XVv=new Ve(function(){return new HVR},function(J){J.reset()}); g.eQ.prototype.then=function(J,y,v){return wVP(this,Lb(typeof J==="function"?J:null),Lb(typeof y==="function"?y:null),v)}; g.eQ.prototype.$goog_Thenable=!0;g.a=g.eQ.prototype;g.a.finally=function(J){var y=this;J=Lb(J);return new Promise(function(v,d){zox(y,function(P){J();v(P)},function(P){J(); d(P)})})}; g.a.TY=function(J,y){return wVP(this,null,Lb(J),y)}; g.a.catch=g.eQ.prototype.TY;g.a.cancel=function(J){if(this.C==0){var y=new oJ(J);g.FC(function(){kG6(this,y)},this)}}; g.a.SRy=function(J){this.C=0;jQ(this,2,J)}; g.a.LlB=function(J){this.C=0;jQ(this,3,J)}; g.a.bZ=function(){for(var J;J=Enm(this);)QlU(this,J,this.C,this.G);this.L=!1}; var d02=Fp;g.Vq(oJ,LH);oJ.prototype.name="cancel";g.Vq(g.Cb,g.Y1);g.a=g.Cb.prototype;g.a.enabled=!1;g.a.Gu=null;g.a.setInterval=function(J){this.F1=J;this.Gu&&this.enabled?(this.stop(),this.start()):this.Gu&&this.stop()}; g.a.IWB=function(){if(this.enabled){var J=g.Yy()-this.rY;J>0&&J0&&(this.getStatus(),this.L=setTimeout(this.zt.bind(this), this.zK)),this.getStatus(),this.K=!0,this.C.send(J),this.K=!1}catch(T){this.getStatus(),x0d(this,T)}}; g.a.zt=function(){typeof Na!="undefined"&&this.C&&(this.W="Timed out after "+this.zK+"ms, aborting",this.T=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.a.abort=function(J){this.C&&this.J&&(this.getStatus(),this.J=!1,this.V=!0,this.C.abort(),this.V=!1,this.T=J||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),XC(this))}; g.a.JY=function(){this.C&&(this.J&&(this.J=!1,this.V=!0,this.C.abort(),this.V=!1),XC(this,!0));g.HQ.au.JY.call(this)}; g.a.IX=function(){this.tY()||(this.AY||this.K||this.V?ODR(this):this.I1Y())}; g.a.I1Y=function(){ODR(this)}; g.a.isActive=function(){return!!this.C}; g.a.isComplete=function(){return g.RJ(this)==4}; g.a.getStatus=function(){try{return g.RJ(this)>2?this.C.status:-1}catch(J){return-1}}; g.a.getResponseHeader=function(J){if(this.C&&this.isComplete())return J=this.C.getResponseHeader(J),J===null?void 0:J}; g.a.getLastError=function(){return typeof this.W==="string"?this.W:String(this.W)};Qe.prototype.send=function(J,y,v){y=y===void 0?function(){}:y; v=v===void 0?function(){}:v; WA2(J.url,function(d){d=d.target;Kb(d)?y(g.zD(d)):v(d.getStatus())},J.requestType,J.body,J.requestHeaders,J.timeoutMillis,J.withCredentials)}; Qe.prototype.WA=function(){return 1};wR.prototype.done=function(){this.logger.k9(this.event,ZJ()-this.startTime)}; g.x(J9,yB);g.x(vG,J9);g.a=vG.prototype;g.a.LB=function(){}; g.a.tQ=function(){}; g.a.k9=function(){}; g.a.Ox=function(){}; g.a.So=function(){}; g.a.fB=function(J,y,v,d){return d}; g.a.uE=function(){}; g.a.T1=function(){}; g.a.AL=function(){}; g.a.NW=function(){}; g.x(dP,J9);g.a=dP.prototype;g.a.update=function(J){this.logger.dispose();this.logger=J}; g.a.tQ=function(J){this.logger.tQ(J)}; g.a.k9=function(J,y){this.logger.k9(J,y)}; g.a.Ox=function(J){this.logger.Ox(J)}; g.a.So=function(){this.logger.So()}; g.a.fB=function(J,y,v,d){return this.logger.fB(J,y,v,d)}; g.a.uE=function(J){this.logger.uE(J)}; g.a.T1=function(J){this.logger.T1(J)}; g.a.AL=function(J){this.logger.AL(J)}; g.a.NW=function(J){this.logger.NW(J)}; g.a.LB=function(J){this.logger.LB(J)}; g.x(PG,g.u);g.x(A9,J9);g.a=A9.prototype;g.a.LB=function(J){this.metrics.PNb.zk(J,this.ip)}; g.a.tQ=function(J){this.metrics.eventCount.XI(J,this.ip)}; g.a.k9=function(J,y){this.metrics.yd.zk(y,J,this.ip)}; g.a.Ox=function(J){this.metrics.errorCount.XI(J,this.ip)}; g.a.fB=function(J,y,v,d){function P(M){if(!A.tY()){var n=ZJ()-T;A.metrics.FlA.zk(n,J,v,M,y,A.ip)}} var A=this,T=ZJ();d.then(function(){return void P(0)},function(M){return void P(M instanceof Uk?M.code:-1)}); return d}; g.a.uE=function(J){this.metrics.n3B.XI(J,this.ip)}; g.a.T1=function(J){this.metrics.TT.XI(J,this.ip)}; g.a.AL=function(J){this.metrics.KlY.XI(J,this.ip)}; g.x(Tl,A9);Tl.prototype.NW=function(J){var y=this;J=J.slice();g.KH(J);g.zQ(J,this.T)||(this.C.dispose(),this.J&&this.service.dispose(),this.service=this.options.tG("49",this.options.QG.concat(J)),this.C=new PG(function(){return void y.service.kS()},this.options.JL),this.metrics=cuR(this.service),this.T=J)}; Tl.prototype.So=function(){bDd(this.C)};g.x(l1,Gz);g.x(Mk,Gz);g.x(nB,Gz);var p2H=Jn(nB),j$R=function(J){return lO(function(y){return y instanceof J&&!Re(y)})}(nB); nB.messageId="bfkj";g.x(Jt,Gz);g.x(sY,Gz);var eT6=Jn(sY);g.x(Sh,g.u);Sh.prototype.snapshot=function(J){if(this.tY())throw Error("Already disposed");this.logger.tQ("n");var y=this.logger.share();return this.J.then(function(v){var d=v.K2;return new Promise(function(P){var A=new wR(y,"n");d(function(T){A.done();y.LB(T.length);y.So();y.dispose();P(T)},[J.XK, J.IW,J.u2,J.yT])})})}; Sh.prototype.kc=function(J){var y=this;if(this.tY())throw Error("Already disposed");this.logger.tQ("n");var v=ym(this.logger,function(){return y.W([J.XK,J.IW,J.u2,J.yT])},"n"); this.logger.LB(v.length);this.logger.So();return v}; Sh.prototype.Ip=function(J){this.J.then(function(y){var v;(v=y.k4B)==null||v(J)})}; Sh.prototype.sP=function(){return this.logger.share()};g.x(t9,Gz);g.x(WG,Gz);a2.prototype.S2=function(J){return u42(this,J,new vG,0)};g.x(x5,g.u);x5.prototype.snapshot=function(J){var y=this;return g.f(function(v){switch(v.T){case 1:if(y.tY())throw Error("Already disposed");if(y.T||y.G){v.Qk(2);break}return g.h(v,y.V.promise,2);case 2:if(!y.T){v.Qk(4);break}return g.h(v,y.T.snapshot(J),5);case 5:return v.return(v.C);case 4:throw y.G;}})}; x5.prototype.Ip=function(J){var y,v;(y=this.T)==null||(v=y.Ip)==null||v.call(y,J)}; x5.prototype.handleError=function(J){if(!this.tY()){this.G=J;this.V.resolve();var y,v;(v=(y=this.options).eYx)==null||v.call(y,J)}}; x5.prototype.sP=function(){return this.logger.share()}; var NJc={rIB:432E5,wF:3E5,t6:10,Sy:1E4,cZ:3E4,fh:3E4,ZjW:6E4,Ie:1E3,q6:6E4,Qd:6E5,wW:.25,sz:2,maxAttempts:10};var aEn,JJv=(aEn=Math.imul)!=null?aEn:function(J,y){return J*y|0},cG=[196, 200,224,18];Gl.prototype.a5=function(){return String(this.C)+","+this.T.join()}; Gl.prototype.BK=function(J,y){var v=void 0;if(this.T[this.C]!==J){var d=this.T.indexOf(J);d!==-1?(this.T.splice(d,1),d0;)y[v++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(J%62),J=Math.floor(J/62);return y.join("")}};var V8T;g.x(FX,g.u);FX.prototype.Gq=function(J,y){var v=this.WU(J);y==null||y(v);return ym(this.logger,function(){return g.eB(v,2)},this.T)}; V8T=Symbol.dispose;g.x(me,FX);me.prototype.WU=function(J,y){var v=this;this.logger.tQ(this.C);++this.V>=this.L&&this.J.resolve();var d=J();J=ym(this.logger,function(){return v.W(d)},"C"); if(J===void 0)throw new EE(17,"YNJ:Undefined");if(!(J instanceof Uint8Array))throw new EE(18,"ODM:Invalid");y==null||y(J);return J}; g.x(BG,FX);BG.prototype.WU=function(){return this.W}; g.x(qk,FX);qk.prototype.WU=function(){var J=this;return ym(this.logger,function(){return Bf(J.W)},"d")}; qk.prototype.Gq=function(){return this.W}; g.x(rP,FX);rP.prototype.WU=function(){if(this.W)return this.W;this.W=L$m(this,function(J){return"_"+SEU(J)}); return L$m(this,function(J){return J})}; g.x(o2,FX);o2.prototype.WU=function(){var J=Math.floor(Date.now()/1E3),y=[Math.random()*255,Math.random()*255],v=y.concat([this.W&255,this.clientState],[J>>24&255,J>>16&255,J>>8&255,J&255]);J=new Uint8Array(2+v.length);J[0]=34;J[1]=v.length;J.set(v,2);v=J.subarray(2);for(var d=y=y.length;d150))try{this.cache=new lz2(J,this.logger)}catch(y){this.reportError(new EE(22,"GBJ:init",y))}}; g.a.reportError=function(J){this.logger.Ox(J.code);this.onError(J);return J}; var azd=function(J){return lO(function(y){if(!TV_(y))return!1;for(var v=g.D(Object.entries(J)),d=v.next();!d.done;d=v.next()){var P=g.D(d.value);d=P.next().value;P=P.next().value;if(!(d in y)){if(P.hLX===!0)continue;return!1}if(!P(y[d]))return!1}return!0})}({U8:function(J){return lO(function(y){return y instanceof J})}(x5)},"");var QJU=(new Date).getTime();g.x(UY,Gz);var xhQ=Jn(UY);jHc.prototype.getMetadata=function(){return this.metadata};fB.prototype.getMetadata=function(){return this.metadata}; fB.prototype.getStatus=function(){return this.status};i1.prototype.G=function(J,y){y=y===void 0?{}:y;return new jHc(J,this,y)}; i1.prototype.getName=function(){return this.name};var O_V=new i1("/google.internal.waa.v1.Waa/Create",t9,UY,function(J){return J.a5()},xhQ);g.x(u1,Gz);var f8d=new i1("/google.internal.waa.v1.Waa/GenerateIT",WG,u1,function(J){return J.a5()},Jn(u1));var vF3=new Set(["SAPISIDHASH","APISIDHASH"]);g.x(HG,Gz);HG.prototype.getValue=function(){var J=wG(this,2);if(Array.isArray(J)||J instanceof Gz)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return MV(this,2)};g.x(XX,Gz);XX.prototype.getMessage=function(){return qV(this,2)}; var $T2=Jn(XX);Nk.prototype.qn=function(J,y){J=="data"?this.J.push(y):J=="metadata"?this.V.push(y):J=="status"?this.L.push(y):J=="end"?this.W.push(y):J=="error"&&this.T.push(y);return this}; Nk.prototype.removeListener=function(J,y){J=="data"?EY(this.J,y):J=="metadata"?EY(this.V,y):J=="status"?EY(this.L,y):J=="end"?EY(this.W,y):J=="error"&&EY(this.T,y);return this}; Nk.prototype.cancel=function(){this.C.abort()}; Nk.prototype.cancel=Nk.prototype.cancel;Nk.prototype.removeListener=Nk.prototype.removeListener;Nk.prototype.on=Nk.prototype.qn;g.x(mTd,Error);g.Vq(g.Qm,LAP);g.Qm.prototype.C=function(){var J=new Z7(this.W,this.J);this.T&&J.setCredentialsMode(this.T);return J}; g.Qm.prototype.setCredentialsMode=function(J){this.T=J}; g.Vq(Z7,g.Y1);g.a=Z7.prototype;g.a.open=function(J,y){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Cy=J;this.zK=y;this.readyState=1;wP(this)}; g.a.send=function(J){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.B.signal.aborted)throw this.abort(),Error("Request was aborted.");this.C=!0;var y={headers:this.K,method:this.Cy,credentials:this.V,cache:void 0,signal:this.B.signal};J&&(y.body=J);(this.AY||g.wr).fetch(new Request(this.zK,y)).then(this.M7.bind(this),this.Vc.bind(this))}; g.a.abort=function(){this.response=this.responseText="";this.K=new Headers;this.status=0;this.B.abort();this.J&&this.J.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.C&&this.readyState!=4&&(this.C=!1,Ji(this));this.readyState=0}; g.a.M7=function(J){if(this.C&&(this.W=J,this.T||(this.status=this.W.status,this.statusText=this.W.statusText,this.T=J.headers,this.readyState=2,wP(this)),this.C&&(this.readyState=3,wP(this),this.C)))if(this.responseType==="arraybuffer")J.arrayBuffer().then(this.fm.bind(this),this.Vc.bind(this));else if(typeof g.wr.ReadableStream!=="undefined"&&"body"in J){this.J=J.body.getReader();if(this.L){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.G=new TextDecoder;oEc(this)}else J.text().then(this.VP.bind(this),this.Vc.bind(this))}; g.a.Wf=function(J){if(this.C){if(this.L&&J.value)this.response.push(J.value);else if(!this.L){var y=J.value?J.value:new Uint8Array(0);if(y=this.G.decode(y,{stream:!J.done}))this.response=this.responseText+=y}J.done?Ji(this):wP(this);this.readyState==3&&oEc(this)}}; g.a.VP=function(J){this.C&&(this.response=this.responseText=J,Ji(this))}; g.a.fm=function(J){this.C&&(this.response=J,Ji(this))}; g.a.Vc=function(){this.C&&Ji(this)}; g.a.setRequestHeader=function(J,y){this.K.append(J,y)}; g.a.getResponseHeader=function(J){return this.T?this.T.get(J.toLowerCase())||"":""}; g.a.getAllResponseHeaders=function(){if(!this.T)return"";for(var J=[],y=this.T.entries(),v=y.next();!v.done;)v=v.value,J.push(v[0]+": "+v[1]),v=y.next();return J.join("\r\n")}; g.a.setCredentialsMode=function(J){this.V=J}; Object.defineProperty(Z7.prototype,"withCredentials",{get:function(){return this.V==="include"}, set:function(J){this.setCredentialsMode(J?"include":"same-origin")}});g.vr.prototype.toString=function(){var J=[],y=this.V;y&&J.push(nx(y,gNV,!0),":");var v=this.C;if(v||y=="file")J.push("//"),(y=this.B)&&J.push(nx(y,gNV,!0),"@"),J.push(g.mS(v).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),v=this.J,v!=null&&J.push(":",String(v));if(v=this.T)this.C&&v.charAt(0)!="/"&&J.push("/"),J.push(nx(v,v.charAt(0)=="/"?Dhw:csV,!0));(v=this.W.toString())&&J.push("?",v);(v=this.L)&&J.push("#",nx(v,Gnn));return J.join("")}; g.vr.prototype.resolve=function(J){var y=this.clone(),v=!!J.V;v?g.di(y,J.V):v=!!J.B;v?y.B=J.B:v=!!J.C;v?g.Pr(y,J.C):v=J.J!=null;var d=J.T;if(v)g.Ai(y,J.J);else if(v=!!J.T){if(d.charAt(0)!="/")if(this.C&&!this.T)d="/"+d;else{var P=y.T.lastIndexOf("/");P!=-1&&(d=y.T.slice(0,P+1)+d)}P=d;if(P==".."||P==".")d="";else if(g.ru(P,"./")||g.ru(P,"/.")){d=BL(P,"/");P=P.split("/");for(var A=[],T=0;T1||A.length==1&&A[0]!="")&&A.pop(), d&&T==P.length&&A.push("")):(A.push(M),d=!0)}d=A.join("/")}else d=P}v?y.T=d:v=J.W.toString()!=="";v?TA(y,J.W.clone()):v=!!J.L;v&&(y.L=J.L);return y}; g.vr.prototype.clone=function(){return new g.vr(this)}; var gNV=/[#\/\?@]/g,csV=/[#\?:]/g,Dhw=/[#\?]/g,ptm=/[#\?@]/g,Gnn=/#/g;g.a=M8.prototype;g.a.add=function(J,y){VT(this);this.J=null;J=Lx(this,J);var v=this.C.get(J);v||this.C.set(J,v=[]);v.push(y);this.T=this.T+1;return this}; g.a.remove=function(J){VT(this);J=Lx(this,J);return this.C.has(J)?(this.J=null,this.T=this.T-this.C.get(J).length,this.C.delete(J)):!1}; g.a.clear=function(){this.C=this.J=null;this.T=0}; g.a.isEmpty=function(){VT(this);return this.T==0}; g.a.forEach=function(J,y){VT(this);this.C.forEach(function(v,d){v.forEach(function(P){J.call(y,P,d,this)},this)},this)}; g.a.iQ=function(){VT(this);for(var J=Array.from(this.C.values()),y=Array.from(this.C.keys()),v=[],d=0;d0?String(J[0]):y}; g.a.toString=function(){if(this.J)return this.J;if(!this.C)return"";for(var J=[],y=Array.from(this.C.keys()),v=0;v>>3;A.J!=1&&A.J!=2&&A.J!=15&&xv(A,T,M,"unexpected tag");A.C=1;A.T=0;A.W=0} function v(n){A.W++;A.W==5&&n&240&&xv(A,T,M,"message length too long");A.T|=(n&127)<<(A.W-1)*7;n&128||(A.C=2,A.B=0,typeof Uint8Array!=="undefined"?A.V=new Uint8Array(A.T):A.V=Array(A.T),A.T==0&&P())} function d(n){A.V[A.B++]=n;A.B==A.T&&P()} function P(){if(A.J<15){var n={};n[A.J]=A.V;A.G.push(n)}A.C=0} for(var A=this,T=J instanceof Array?J:new Uint8Array(J),M=0;M0?J:null};Ow.prototype.isInputValid=function(){return this.C===null}; Ow.prototype.ge=function(){return this.C}; Ow.prototype.NH=function(){return!1}; Ow.prototype.parse=function(J){this.C!==null&&Rix(this,J,"stream already broken");var y=null;try{var v=this.J;v.J||N$U(v,J,"stream already broken");v.C+=J;var d=Math.floor(v.C.length/4);if(d==0)var P=null;else{try{var A=qgU(v.C.slice(0,d*4))}catch(T){N$U(v,v.C,T.message)}v.T+=d*4;v.C=v.C.slice(d*4);P=A}y=P===null?null:this.W.parse(P)}catch(T){Rix(this,J,T.message)}this.T+=J.length;return y};var Fp_={INIT:0,kO:1,Zt:2,nw:3,wy:4,Q1:5,STRING:6,Gs:7,Jg:8,E6:9,mV:10,Sv:11,kq:12,Wb:13,jl:14,t0:15,qh:16,It:17,QJ:18,ob:19,Nu:20};g.a=Dn.prototype;g.a.isInputValid=function(){return this.V!=3}; g.a.ge=function(){return this.K}; g.a.done=function(){return this.V===2}; g.a.NH=function(){return!1}; g.a.parse=function(J){function y(){for(;L0;)if(W=J[L++], A.B===4?A.B=0:A.B++,!W)break a;if(W==='"'&&!A.G){A.C=d();break}if(W==="\\"&&!A.G&&(A.G=!0,W=J[L++],!W))break;if(A.G)if(A.G=!1,W==="u"&&(A.B=1),W=J[L++])continue;else break;M.lastIndex=L;W=M.exec(J);if(!W){L=J.length+1;break}L=W.index+1;W=J[W.index];if(!W)break}A.J+=L-c;continue;case n.E6:if(!W)continue;W==="r"?A.C=n.mV:cr(A,J,L);continue;case n.mV:if(!W)continue;W==="u"?A.C=n.Sv:cr(A,J,L);continue;case n.Sv:if(!W)continue;W==="e"?A.C=d():cr(A,J,L);continue;case n.kq:if(!W)continue;W==="a"?A.C=n.Wb: cr(A,J,L);continue;case n.Wb:if(!W)continue;W==="l"?A.C=n.jl:cr(A,J,L);continue;case n.jl:if(!W)continue;W==="s"?A.C=n.t0:cr(A,J,L);continue;case n.t0:if(!W)continue;W==="e"?A.C=d():cr(A,J,L);continue;case n.qh:if(!W)continue;W==="u"?A.C=n.It:cr(A,J,L);continue;case n.It:if(!W)continue;W==="l"?A.C=n.QJ:cr(A,J,L);continue;case n.QJ:if(!W)continue;W==="l"?A.C=d():cr(A,J,L);continue;case n.ob:W==="."?A.C=n.Nu:cr(A,J,L);continue;case n.Nu:if("0123456789.eE+-".indexOf(W)!==-1)continue;else L--,A.J--,A.C= d();continue;default:cr(A,J,L)}}} function d(){var W=T.pop();return W!=null?W:n.kO} function P(W){A.T>1||(W||(W=V===-1?A.W+J.substring(S,L):J.substring(V,L)),A.zK?A.L.push(W):A.L.push(JSON.parse(W)),V=L)} for(var A=this,T=A.Cy,M=A.AY,n=Fp_,Y=J.length,S=0,V=-1,L=0;L0?(t=A.L,A.L=[],t):null}return null};GA.prototype.isInputValid=function(){return this.V===null}; GA.prototype.ge=function(){return this.V}; GA.prototype.NH=function(){return!1}; GA.prototype.parse=function(J){function y(n){A.T=6;A.V="The stream is broken @"+A.C+"/"+T+". Error: "+n+". With input:\n";throw Error(A.V);} function v(){A.J=new Dn({QBj:!0,Ba:!0})} function d(n){if(n)for(var Y=0;Y1)&&y("extra status: "+n);A.L=!0;var Y={};Y[2]=n[0];A.W.push(Y)}} for(var A=this,T=0;T0?(J=A.W,A.W=[],J):null};bp.prototype.pS=function(){return this.C}; bp.prototype.getStatus=function(){return this.V}; bp.prototype.zK=function(J){J=J.target;try{if(J==this.C)a:{var y=g.RJ(this.C),v=this.C.T,d=this.C.getStatus(),P=g.zD(this.C);J=[];if(g.k1(this.C)instanceof Array){var A=g.k1(this.C);A.length>0&&A[0]instanceof Uint8Array&&(this.K=!0,J=A)}if(!(y<3||y==3&&!P&&J.length==0))if(d=d==200||d==206,y==4&&(v==8?Fe(this,7):v==7?Fe(this,8):d||Fe(this,3)),this.T||(this.T=K$H(this.C),this.T==null&&Fe(this,5)),this.V>2)j5(this);else{if(J.length>this.J){var T=J.length;v=[];try{if(this.T.NH())for(var M=0;Mthis.J){M=P.slice(this.J);this.J=P.length;try{var Y=this.T.parse(M);Y!=null&&this.W&&this.W(Y)}catch(S){Fe(this,5);j5(this);break a}}y==4?(P.length!= 0||this.K?Fe(this,2):Fe(this,4),j5(this)):Fe(this,1)}}}catch(S){Fe(this,6),j5(this)}};g.a=zid.prototype;g.a.qn=function(J,y){var v=this.T[J];v||(v=[],this.T[J]=v);v.push(y);return this}; g.a.addListener=function(J,y){this.qn(J,y);return this}; g.a.removeListener=function(J,y){var v=this.T[J];v&&g.bw(v,y);(J=this.C[J])&&g.bw(J,y);return this}; g.a.once=function(J,y){var v=this.C[J];v||(v=[],this.C[J]=v);v.push(y);return this}; g.a.GKy=function(J){var y=this.T.data;y&&kT2(J,y);(y=this.C.data)&&kT2(J,y);this.C.data=[]}; g.a.r_k=function(){switch(this.J.getStatus()){case 1:e5(this,"readable");break;case 5:case 6:case 4:case 7:case 3:e5(this,"error");break;case 8:e5(this,"close");break;case 2:e5(this,"end")}};EEP.prototype.serverStreaming=function(J,y,v,d){var P=this,A=J.substring(0,J.length-d.name.length);return dm6(function(T){var M=T.L_,n=T.getMetadata(),Y=wt2(P,!1);n=JtH(P,n,Y,A+M.getName());var S=yt6(Y,M.T,!0);T=M.C(T.q8);Y.send(n,"POST",T);return S},this.gF).call(this,d.G(y,v))};PMH.prototype.create=function(J,y,v){var d=this.C,P=this.T+"/$rpc/google.internal.waa.v1.Waa/Create";y=y||{};v=v===void 0?{}:v;return iDT(d,P,J,y,O_V,v)};var At3="://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(" "),TKU=/\bocr\b/;var MS3=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;Object.assign({},{attributes:{},handleError:function(J){throw J;}},{Heb:!0, vfy:!0,Oex:!1,GiY:k2n,NUb:Emw,Zek:!1,wzj:!1,XzW:!0,BUj:z3H,xvb:!1,drY:!1,GUB:!1});var q8=null,$v=!1,gFv=1,aaR=Symbol("SIGNAL"),ai={version:0,vzA:0,Mj:!1,c_:void 0,jx:void 0,Xd:void 0,L5:0,v5:void 0,QK:void 0,S4:!1,LG:!1,kind:"unknown",iM:function(){return!1}, lM:function(){}, fG:function(){}, LEj:function(){}};var xh=Symbol("UNSET"),OD=Symbol("COMPUTING"),gt=Symbol("ERRORED");Object.assign({},ai,{value:xh,Mj:!0,error:null,qf:Br,kind:"computed",iM:function(J){return J.value===xh||J.value===OD}, lM:function(J){if(J.value===OD)throw Error("");var y=J.value;J.value=OD;var v=Yzj(J),d=!1;try{var P=J.jy();ri(null);d=y!==xh&&y!==gt&&P!==gt&&J.qf(y,P)}catch(A){P=gt,J.error=A}finally{Sz3(J,v)}d?J.value=y:(J.value=P,J.version++)}});var WX6=Object.assign({},ai,{qf:Br,value:void 0,kind:"signal"});Object.assign({},ai,{value:xh,Mj:!0,error:null,qf:Br,kind:"linkedSignal",iM:function(J){return J.value===xh||J.value===OD}, lM:function(J){if(J.value===OD)throw Error("");var y=J.value;J.value=OD;var v=Yzj(J);try{var d=J.source();var P=J.jy(d,y===xh||y===gt?void 0:{source:J.eBy,value:y});J.eBy=d}catch(A){P=gt,J.error=A}finally{Sz3(J,v)}y!==xh&&P!==gt&&J.qf(y,P)?J.value=y:(J.value=P,J.version++)}});Object.assign({},ai,{LG:!0,S4:!1,fG:function(J){J.schedule!==null&&J.schedule(J.toX)}, p9A:!1,jBY:function(){}});g.x(I8,g.Y1);I8.prototype.dispose=function(){window.removeEventListener("offline",this.J);window.removeEventListener("online",this.J);this.gU.yI(this.V);delete I8.instance}; I8.prototype.tO=function(){return this.C}; I8.prototype.j1=function(){var J=this;this.V=this.gU.Rd(function(){var y;return g.f(function(v){if(v.T==1)return J.C?((y=window.navigator)==null?0:y.onLine)?v.Qk(3):g.h(v,hi(J),3):g.h(v,hi(J),3);J.j1();g.G2(v)})},3E4)};Uw.prototype.set=function(J,y){y=y===void 0?!0:y;0<=J&&J<52&&Number.isInteger(J)&&this.data[J]!==y&&(this.data[J]=y,this.C=-1)}; Uw.prototype.get=function(J){return!!this.data[J]};var Hr;g.Vq(g.R8,g.u);g.a=g.R8.prototype;g.a.start=function(){this.stop();this.W=!1;var J=bkc(this),y=FXm(this);J&&!y&&this.T.mozRequestAnimationFrame?(this.C=g.wK(this.T,"MozBeforePaint",this.J),this.T.mozRequestAnimationFrame(null),this.W=!0):this.C=J&&y?J.call(this.T,this.J):this.T.setTimeout(HH2(this.J),20)}; g.a.stop=function(){if(this.isActive()){var J=bkc(this),y=FXm(this);J&&!y&&this.T.mozRequestAnimationFrame?le(this.C):J&&y?y.call(this.T,this.C):this.T.clearTimeout(this.C)}this.C=null}; g.a.isActive=function(){return this.C!=null}; g.a.CX=function(){this.W&&this.C&&le(this.C);this.C=null;this.L.call(this.V,g.Yy())}; g.a.JY=function(){this.stop();g.R8.au.JY.call(this)};g.Vq(g.Kx,g.u);g.a=g.Kx.prototype;g.a.Fu=0;g.a.JY=function(){g.Kx.au.JY.call(this);this.stop();delete this.C;delete this.T}; g.a.start=function(J){this.stop();this.Fu=g.ho(this.J,J!==void 0?J:this.F1)}; g.a.stop=function(){this.isActive()&&g.wr.clearTimeout(this.Fu);this.Fu=0}; g.a.isActive=function(){return this.Fu!=0}; g.a.fZ=function(){this.Fu=0;this.C&&this.C.call(this.T)};g.x(g.QT,g.u);g.a=g.QT.prototype;g.a.wb=function(J){this.J=arguments;this.Gu||this.T?this.C=!0:Zn(this)}; g.a.stop=function(){this.Gu&&(g.wr.clearTimeout(this.Gu),this.Gu=null,this.C=!1,this.J=null)}; g.a.pause=function(){this.T++}; g.a.resume=function(){this.T--;this.T||!this.C||this.Gu||(this.C=!1,Zn(this))}; g.a.JY=function(){g.u.prototype.JY.call(this);this.stop()};g.wi.prototype[Symbol.iterator]=function(){return this}; g.wi.prototype.next=function(){var J=this.C.next();return{value:J.done?void 0:this.T.call(void 0,J.value),done:J.done}};g.Vq(g.MS,g.Y1);g.a=g.MS.prototype;g.a.isPlaying=function(){return this.C==1}; g.a.isPaused=function(){return this.C==-1}; g.a.OW=function(){this.GS("begin")}; g.a.Ih=function(){this.GS("end")}; g.a.onFinish=function(){this.GS("finish")}; g.a.onStop=function(){this.GS("stop")}; g.a.GS=function(J){this.dispatchEvent(J)};var jM_=og(function(){var J=g.Lj("DIV"),y=g.s3?"-webkit":Rg?"-moz":null,v="transition:opacity 1s linear;";y&&(v+=y+"-transition:opacity 1s linear;");y=BVx({style:v});if(J.nodeType===1&&/^(script|style)$/i.test(J.tagName))throw Error("");J.innerHTML=tg(y);return g.Kj(J.firstChild,"transition")!=""});g.Vq(n$,g.MS);g.a=n$.prototype;g.a.play=function(){if(this.isPlaying())return!1;this.OW();this.GS("play");this.startTime=g.Yy();this.C=1;if(jM_())return g.Ni(this.T,this.L),this.J=g.ho(this.S8x,void 0,this),!0;this.cL(!1);return!1}; g.a.S8x=function(){g.vf(this.T);mmx(this.T,this.G);g.Ni(this.T,this.W);this.J=g.ho((0,g.Mb)(this.cL,this,!1),this.V*1E3)}; g.a.stop=function(){this.isPlaying()&&this.cL(!0)}; g.a.cL=function(J){g.Ni(this.T,"transition","");g.wr.clearTimeout(this.J);g.Ni(this.T,this.W);this.endTime=g.Yy();this.C=0;if(J)this.onStop();else this.onFinish();this.Ih()}; g.a.JY=function(){this.stop();n$.au.JY.call(this)}; g.a.pause=function(){};var qz6={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};sa("Element","attributes")||sa("Node","attributes");sa("Element","innerHTML")||sa("HTMLElement","innerHTML");sa("Node","nodeName");sa("Node","nodeType");sa("Node","parentNode");sa("Node","childNodes");sa("HTMLElement","style")||sa("Element","style");sa("HTMLStyleElement","sheet");var Iam=$mv("getPropertyValue"),pa3=$mv("setProperty");sa("Element","namespaceURI")||sa("Node","namespaceURI");var hPH={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var uWr,pPq,ikP,fac,Hkd;uWr=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]");pPq=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.ebV=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.Sp=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]");ikP=/^http:\/\/.*/;g.mhn=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");fac=/\s+/;Hkd=/[\d\u06f0-\u06f9]/;L$.prototype.yq=function(){return new tZ(this.T())}; L$.prototype[Symbol.iterator]=function(){return new WB(this.T())}; L$.prototype.C=function(){return new WB(this.T())}; g.x(tZ,g.c2);tZ.prototype.next=function(){return this.T.next()}; tZ.prototype[Symbol.iterator]=function(){return new WB(this.T)}; tZ.prototype.C=function(){return new WB(this.T)}; g.x(WB,L$);WB.prototype.next=function(){return this.J.next()};xK.prototype.clone=function(){return new xK(this.C,this.G,this.J,this.V,this.W,this.L,this.T,this.B)}; xK.prototype.equals=function(J){return this.C==J.C&&this.G==J.G&&this.J==J.J&&this.V==J.V&&this.W==J.W&&this.L==J.L&&this.T==J.T&&this.B==J.B};g7.prototype.clone=function(){return new g7(this.start,this.end)};(function(){if(NYm){var J=/Windows NT ([0-9.]+)/;return(J=J.exec(g.IM()))?J[1]:"0"}return dM?(J=/1[0|1][_.][0-9_.]+/,(J=J.exec(g.IM()))?J[0].replace(/_/g,"."):"10"):g.EL?(J=/Android\s+([^\);]+)(\)|;)/,(J=J.exec(g.IM()))?J[1]:""):wPy||JOn||yOq?(J=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(J=J.exec(g.IM()))?J[1].replace(/_/g,"."):""):""})();var NKR=function(){if(g.T3)return Df(/Firefox\/([0-9.]+)/);if(g.YK||g.XD||g.UC)return cOU;if(g.Wz){if(pn()||US()){var J=Df(/CriOS\/([0-9.]+)/);if(J)return J}return Df(/Chrome\/([0-9.]+)/)}if(g.tW&&!pn())return Df(/Version\/([0-9.]+)/);if(KX||zo){if(J=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.IM()))return J[1]+"."+J[2]}else if(g.fo)return(J=Df(/Android\s+([0-9.]+)/))?J:Df(/Version\/([0-9.]+)/);return""}();g.Vq(g.GY,g.u);g.a=g.GY.prototype;g.a.subscribe=function(J,y,v){var d=this.T[J];d||(d=this.T[J]=[]);var P=this.L;this.C[P]=J;this.C[P+1]=y;this.C[P+2]=v;this.L=P+3;d.push(P);return P}; g.a.unsubscribe=function(J,y,v){if(J=this.T[J]){var d=this.C;if(J=J.find(function(P){return d[P+1]==y&&d[P+2]==v}))return this.Fg(J)}return!1}; g.a.Fg=function(J){var y=this.C[J];if(y){var v=this.T[y];this.W!=0?(this.J.push(J),this.C[J+1]=function(){}):(v&&g.bw(v,J),delete this.C[J],delete this.C[J+1],delete this.C[J+2])}return!!y}; g.a.publish=function(J,y){var v=this.T[J];if(v){var d=Array(arguments.length-1),P=arguments.length,A;for(A=1;A0&&this.W==0)for(;v=this.J.pop();)this.Fg(v)}}return A!=0}return!1}; g.a.clear=function(J){if(J){var y=this.T[J];y&&(y.forEach(this.Fg,this),delete this.T[J])}else this.C.length=0,this.T={}}; g.a.JY=function(){g.GY.au.JY.call(this);this.clear();this.J.length=0};g.bq.prototype.set=function(J,y){y===void 0?this.C.remove(J):this.C.set(J,g.fb(y))}; g.bq.prototype.get=function(J){try{var y=this.C.get(J)}catch(v){return}if(y!==null)try{return JSON.parse(y)}catch(v){throw"Storage: Invalid value was encountered";}}; g.bq.prototype.remove=function(J){this.C.remove(J)};g.Vq(FG,g.bq);FG.prototype.set=function(J,y){FG.au.set.call(this,J,zPx(y))}; FG.prototype.T=function(J){J=FG.au.get.call(this,J);if(J===void 0||J instanceof Object)return J;throw"Storage: Invalid value was encountered";}; FG.prototype.get=function(J){if(J=this.T(J)){if(J=J.data,J===void 0)throw"Storage: Invalid value was encountered";}else J=void 0;return J};g.Vq(jp,FG);jp.prototype.set=function(J,y,v){if(y=zPx(y)){if(v){if(v=v.length)return g.SY;var P=v.key(y++);if(J)return g.GR(P);P=v.getItem(P);if(typeof P!=="string")throw"Storage mechanism: Invalid value was encountered";return g.GR(P)}; return d}; g.a.clear=function(){qS(this);this.C.clear()}; g.a.key=function(J){qS(this);return this.C.key(J)};g.Vq(r7,BB);g.Vq(Qm3,BB);g.Vq($K,m8);$K.prototype.set=function(J,y){this.T.set(this.C+J,y)}; $K.prototype.get=function(J){return this.T.get(this.C+J)}; $K.prototype.remove=function(J){this.T.remove(this.C+J)}; $K.prototype.yq=function(J){var y=this.T[Symbol.iterator](),v=this,d=new g.c2;d.next=function(){var P=y.next();if(P.done)return P;for(P=P.value;P.slice(0,v.C.length)!=v.C;){P=y.next();if(P.done)return P;P=P.value}return g.GR(J?P.slice(v.C.length):v.T.get(P))}; return d};C$.prototype.getValue=function(){return this.T}; C$.prototype.clone=function(){return new C$(this.C,this.T)};g.a=hZ.prototype;g.a.BK=function(J,y){var v=this.C;v.push(new C$(J,y));J=v.length-1;y=this.C;for(v=y[J];J>0;){var d=J-1>>1;if(y[d].C>v.C)y[J]=y[d],J=d;else break}y[J]=v}; g.a.remove=function(){var J=this.C,y=J.length,v=J[0];if(!(y<=0)){if(y==1)J.length=0;else{J[0]=J.pop();J=0;y=this.C;for(var d=y.length,P=y[J];J>1;){var A=J*2+1,T=J*2+2;A=TP.C)break;y[J]=y[A];J=A}y[J]=P}return v.getValue()}}; g.a.hx=function(){for(var J=this.C,y=[],v=J.length,d=0;d>>16&65535|0;for(var A;v!==0;){A=v>2E3?2E3:v;v-=A;do P=P+y[d++]|0,J=J+P|0;while(--A);P%=65521;J%=65521}return P|J<<16|0};for(var Sm={},D3,oNb=[],c5=0;c5<256;c5++){D3=c5;for(var C0w=0;C0w<8;C0w++)D3=D3&1?3988292384^D3>>>1:D3>>>1;oNb[c5]=D3}Sm=function(J,y,v,d){v=d+v;for(J^=-1;d>>8^oNb[(J^y[d])&255];return J^-1};var y4={};y4={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 zY=[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],Qg=[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],coP=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],YkT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],AR=Array(576);f$(AR);var Tq=Array(60);f$(Tq);var Ea=Array(512);f$(Ea);var K$=Array(256);f$(K$);var kK=Array(29);f$(kK);var Zf=Array(30);f$(Zf);var Obv,g1v,Dar,xac=!1;var aG;aG=[new W$(0,0,0,0,function(J,y){var v=65535;for(v>J.Ul-5&&(v=J.Ul-5);;){if(J.B$<=1){V4(J);if(J.B$===0&&y===0)return 1;if(J.B$===0)break}J.IG+=J.B$;J.B$=0;var d=J.cn+v;if(J.IG===0||J.IG>=d)if(J.B$=J.IG-d,J.IG=d,lS(J,!1),J.Xo.ri===0)return 1;if(J.IG-J.cn>=J.jW-262&&(lS(J,!1),J.Xo.ri===0))return 1}J.BK=0;if(y===4)return lS(J,!0),J.Xo.ri===0?3:4;J.IG>J.cn&&lS(J,!1);return 1}), new W$(4,4,8,4,Ls),new W$(4,5,16,8,Ls),new W$(4,6,32,32,Ls),new W$(4,4,16,16,tR),new W$(8,16,32,32,tR),new W$(8,16,128,128,tR),new W$(8,32,128,256,tR),new W$(32,128,258,1024,tR),new W$(32,258,258,4096,tR)];var aJU={};aJU=function(){this.input=null;this.fW=this.fp=this.Mq=0;this.output=null;this.Nb=this.ri=this.F4=0;this.msg="";this.state=null;this.Cs=2;this.yM=0};var GD2=Object.prototype.toString; xV.prototype.push=function(J,y){var v=this.Xo,d=this.options.chunkSize;if(this.ended)return!1;var P=y===~~y?y:y===!0?4:0;typeof J==="string"?v.input=Jov(J):GD2.call(J)==="[object ArrayBuffer]"?v.input=new Uint8Array(J):v.input=J;v.Mq=0;v.fp=v.input.length;do{v.ri===0&&(v.output=new Ua.N5(d),v.F4=0,v.ri=d);J=WaU(v,P);if(J!==1&&J!==0)return this.Ih(J),this.ended=!0,!1;if(v.ri===0||v.fp===0&&(P===4||P===2))if(this.options.to==="string"){var A=Ua.qb(v.output,v.F4);y=A;A=A.length;if(A<65537&&(y.subarray&& $h_||!y.subarray))y=String.fromCharCode.apply(null,Ua.qb(y,A));else{for(var T="",M=0;M0||v.ri===0)&&J!==1);if(P===4)return(v=this.Xo)&&v.state?(d=v.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?J=v$(v,-2):(v.state=null,J=d===113?v$(v,-3):0)):J=-2,this.Ih(J),this.ended=!0,J===0;P===2&&(this.Ih(0),v.ri=0);return!0}; xV.prototype.Ih=function(J){J===0&&(this.result=this.options.to==="string"?this.chunks.join(""):Ua.uL(this.chunks));this.chunks=[];this.err=J;this.msg=this.Xo.msg};var gN="@@redux/INIT"+Ov(),BRj="@@redux/REPLACE"+Ov();var qkr=typeof Symbol==="function"&&Symbol.observable||"@@observable";var hbq=[0,iHO,-3,n2];g.x(Cex,Gz);var g$T=function(){var J=[0,HHQ,u_H,A7,iHO,A7,-1,n2,iHO,n2,-1,HHQ,n2,u_H,TZ,hbq,A7,-1,n2];return function(y,v){var d={hX:!0};v&&Object.assign(d,v);y=XDj(y,void 0,void 0,d);try{var P=new Cex,A=P.n8;oA(J)(A,y);var T=P}finally{y.free()}return T}}();var hLP=1681352142;var ZRR=new g.Gq("adInfoDialogEndpoint");var Bb6=new g.Gq("adPingingEndpoint");var Qx3=new g.Gq("crossDeviceProgressCommand");var Wn=new g.Gq("actionCompanionAdRenderer");var zf=new g.Gq("adActionInterstitialRenderer");var IEu=new g.Gq("adDurationRemainingRenderer");var Ej=new g.Gq("adHoverTextButtonRenderer");var EDH=new g.Gq("adInfoDialogRenderer");var $L=new g.Gq("adMessageRenderer");var Q9=new g.Gq("adPreviewRenderer");var x4=new g.Gq("adsEngagementPanelRenderer");var br3=new g.Gq("dismissablePanelTextPortraitImageRenderer");var cIH=new g.Gq("adsEngagementPanelSectionListViewModel");var pLq=new g.Gq("flyoutCtaRenderer");var ao=new g.Gq("imageCompanionAdRenderer");var Rb=new g.Gq("instreamAdPlayerOverlayRenderer");var djV=new g.Gq("instreamSurveyAdBackgroundImageRenderer");var k4=new g.Gq("instreamSurveyAdPlayerOverlayRenderer");var Io=new g.Gq("instreamSurveyAdRenderer"),zu=new g.Gq("instreamSurveyAdSingleSelectQuestionRenderer"),KO=new g.Gq("instreamSurveyAdMultiSelectQuestionRenderer"),GZ=new g.Gq("instreamSurveyAdAnswerRenderer"),Uhq=new g.Gq("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var CO=new g.Gq("instreamVideoAdRenderer");var fE0=new g.Gq("textOverlayAdContentRenderer"),i_Q=new g.Gq("enhancedTextOverlayAdContentRenderer"),uFy=new g.Gq("imageOverlayAdContentRenderer");var K4=new g.Gq("playerOverlayLayoutRenderer");var kM=new g.Gq("videoInterstitialButtonedCenteredLayoutRenderer");var BQU=new g.Gq("aboveFeedAdLayoutRenderer");var qVP=new g.Gq("belowPlayerAdLayoutRenderer");var mJ2=new g.Gq("inPlayerAdLayoutRenderer");var fO=new g.Gq("playerBytesAdLayoutRenderer");var Ro=new g.Gq("playerBytesSequenceItemAdLayoutRenderer");var N2=new g.Gq("playerUnderlayAdLayoutRenderer");var he=new g.Gq("adIntroRenderer");var $4=new g.Gq("playerBytesSequentialLayoutRenderer");var njv=new g.Gq("slidingTextPlayerOverlayRenderer");var pO=new g.Gq("surveyTextInterstitialRenderer");var ij=new g.Gq("videoAdTrackingRenderer");var OrR=new g.Gq("videoInterstitialCenteredLayoutViewModel");var H_X=new g.Gq("simpleAdBadgeRenderer");var cS=new g.Gq("skipAdRenderer"),XL0=new g.Gq("skipButtonRenderer");var yF=new g.Gq("adSlotRenderer");var Hn=new g.Gq("squeezebackPlayerSidePanelRenderer");var NuC=new g.Gq("timedPieCountdownRenderer");var zr=new g.Gq("adAvatarViewModel");var k_=new g.Gq("adBadgeViewModel");var EB=new g.Gq("adButtonViewModel");var Rbw=new g.Gq("adDetailsLineViewModel");var KpO=new g.Gq("adDisclosureBannerViewModel");var zbV=new g.Gq("adPodIndexViewModel");var knV=new g.Gq("imageBackgroundViewModel");var ENw=new g.Gq("adGridCardCollectionViewModel");var QMX=new g.Gq("adGridCardTextViewModel");var Z_C=new g.Gq("adPreviewViewModel");var wLX=new g.Gq("playerAdAvatarLockupCardButtonedViewModel");var Jgn=new g.Gq("skipAdButtonViewModel");var ygn=new g.Gq("skipAdViewModel");var vpq=new g.Gq("timedPieCountdownViewModel");var d7w=new g.Gq("visitAdvertiserLinkViewModel");var Oj=new g.Gq("bannerImageLayoutViewModel");var ge=new g.Gq("topBannerImageTextIconButtonedLayoutViewModel");var mM=new g.Gq("adsEngagementPanelLayoutViewModel");var Xr=new g.Gq("displayUnderlayTextGridCardsLayoutViewModel");g.pF=new g.Gq("browseEndpoint");var PXn=new g.Gq("confirmDialogEndpoint");var CuU=new g.Gq("commandContext");var SLH=new g.Gq("rawColdConfigGroup");var YLH=new g.Gq("rawHotConfigGroup");g.YZ=new g.Gq("commandExecutorCommand");g.x(pQH,Gz);var gGr={sij:0,E_b:1,v_B:32,BfB:61,FoA:67,DcB:103,UcY:86,XHk:42,OiA:60,S2K:62,Rzk:73,NfY:76,P8k:88,r7W:90,Kob:99,xcK:98,ezk:100,ZiA:102,nfA:41,iex:69,lvk:70,z9W:71,qYR:2,Ipf:27,ANDROID:3,VzR:54,MzY:14,RtW:91,htY:55,xyf:24,Hrk:20,XKB:18,OrA:21,GrB:104,Y3f:30,Pjb:29,rOW:28,WoW:101,etB:34,BCB:36,v3Y:38,IOS:5,ggB:15,bNb:92,Ahk:40,ogB:25,sxj:17,qxW:19,I5B:64,QxY:66,w5R:26,W1Y:22,p5k:33,jxR:68,thY:35,yhY:53,kYk:37,uJj:39,KHR:7,n_k:57,iiA:43,zzY:59,l4k:93,DyY:74,C8K:75,a4k:85,dcy:65,J7x:80,g_W:8,eJW:10, uKY:58,A7A:63,Tff:72,UyK:23,dvx:11,TUb:13,cRK:12,FHk:16,Hik:56,Y2R:31,ABK:77,h_A:84,GSk:87,HpY:89,x$X:94,e2A:95};g.x(bS,Gz);bS.prototype.G9=function(){return qV(this,3)}; bS.prototype.DD=function(){return qV(this,5)}; bS.prototype.H7=function(J){return hy(this,5,J)};g.x(Fa,Gz);g.x(Ua6,Gz);g.x(jm,Gz);g.a=jm.prototype;g.a.getDeviceId=function(){return qV(this,6)}; g.a.RV=function(J){var y=TJ(this,9,tC,3,!0);K9(y,J);return y[J]}; g.a.getPlayerType=function(){return rg(this,36)}; g.a.setHomeGroupInfo=function(J){return DV(this,Ua6,81,J)}; g.a.clearLocationPlayabilityToken=function(){return yI(this,89)};g.x(em,Gz);em.prototype.getValue=function(){return qV(this,W3(this,nUU,2))}; var nUU=[2,3,4,5,6];g.x(mo,Gz);mo.prototype.setTrackingParams=function(J){return yI(this,1,H_x(J,!1))};g.x(B$,Gz);g.x(qP,Gz);qP.prototype.RV=function(J){var y=TJ(this,5,Wk,3,!0);K9(y,J);return y[J]};g.x(rN,Gz);rN.prototype.getToken=function(){return oE(this,2)}; rN.prototype.setToken=function(J){return hy(this,2,J)};g.x($V,Gz);$V.prototype.setSafetyMode=function(J){return pd(this,5,J)};g.x(oG,Gz);oG.prototype.JS=function(J){return DV(this,jm,1,J)};var we=new g.Gq("thumbnailLandscapePortraitRenderer");g.AgC=new g.Gq("changeEngagementPanelVisibilityAction");var jOc=new g.Gq("continuationCommand");g.T0X=new g.Gq("openPopupAction");g.b3=new g.Gq("webCommandMetadata");var Qo3=new g.Gq("metadataBadgeRenderer");var Fq3=new g.Gq("signalServiceEndpoint");var Bg=new g.Gq("innertubeCommand");var nJc=new g.Gq("loggingDirectives");var Gl3={JvX:"EMBEDDED_PLAYER_MODE_UNKNOWN",aob:"EMBEDDED_PLAYER_MODE_DEFAULT",TaA:"EMBEDDED_PLAYER_MODE_PFP",d$R:"EMBEDDED_PLAYER_MODE_PFL"};var Gkj=new g.Gq("channelThumbnailEndpoint");var cBj=new g.Gq("embeddedPlayerErrorMessageRenderer");var xGH=new g.Gq("embeddedPlayerOverlayVideoDetailsRenderer"),bGd=new g.Gq("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),FVx=new g.Gq("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var zzc=new g.Gq("embedsInfoPanelRenderer");var lNw=new g.Gq("feedbackEndpoint");var MPn=new g.Gq("callToActionButtonViewModel");var npy=new g.Gq("interactionLoggingCommandMetadata");var xSx={hzk:"WEB_DISPLAY_MODE_UNKNOWN",LoR:"WEB_DISPLAY_MODE_BROWSER",VIk:"WEB_DISPLAY_MODE_MINIMAL_UI",MIA:"WEB_DISPLAY_MODE_STANDALONE",f4B:"WEB_DISPLAY_MODE_FULLSCREEN"};g.x(Cs,Gz);Cs.prototype.getPlayerType=function(){return rg(this,7)}; Cs.prototype.HR=function(){return qV(this,19)}; Cs.prototype.setVideoId=function(J){return hy(this,19,J)};g.x(hR,Gz);g.x(IG,Gz);g.x(ps,Gz); var sVq=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var YSQ=new g.Gq("loggingContext");g.x(iS,Gz);g.x(uS,Gz);uS.prototype.HR=function(){return oE(this,W3(this,d5,1))}; uS.prototype.setVideoId=function(J){return Ld(this,1,d5,jd(J))}; uS.prototype.getPlaylistId=function(){return oE(this,W3(this,d5,2))}; var d5=[1,2];g.x(fJx,Gz);var V1=new g.Gq("changeKeyedMarkersVisibilityCommand");var SS_=new g.Gq("changeMarkersVisibilityCommand");var wnm=new g.Gq("loadMarkersCommand");var VPX=new g.Gq("suggestedActionDataViewModel");var fBx=new g.Gq("timelyActionViewModel");var Un6=new g.Gq("timelyActionsOverlayViewModel");var kZH=new g.Gq("productListItemRenderer");var LSy=new g.Gq("shoppingOverlayRenderer");var OGR=new g.Gq("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var tPX=new g.Gq("adFeedbackEndpoint");var WSC=new g.Gq("menuEndpoint");var y7c=new g.Gq("phoneDialerEndpoint");var wE3=new g.Gq("sendSmsEndpoint");var aU3=new g.Gq("copyTextEndpoint");var aNq=new g.Gq("shareEndpoint"),x7H=new g.Gq("shareEntityEndpoint"),OnH=new g.Gq("shareEntityServiceEndpoint"),gpn=new g.Gq("webPlayerShareEntityServiceEndpoint");g.rD=new g.Gq("urlEndpoint");g.Y9=new g.Gq("watchEndpoint");var D7b=new g.Gq("watchPlaylistEndpoint");g.cg_=new g.Gq("offlineOrchestrationActionCommand");var eD2=new g.Gq("compositeVideoOverlayRenderer");var G8_=new g.Gq("miniplayerRenderer");var tU6=new g.Gq("paidContentOverlayRenderer");var bny=new g.Gq("playerMutedAutoplayOverlayRenderer"),FSy=new g.Gq("playerMutedAutoplayEndScreenRenderer");var n43=new g.Gq("unserializedPlayerResponse"),jVy=new g.Gq("unserializedPlayerResponse");var eeC=new g.Gq("playlistEditEndpoint");var FJ;g.Zc=new g.Gq("buttonRenderer");FJ=new g.Gq("toggleButtonRenderer");var DJU=new g.Gq("counterfactualRenderer");var m7C=new g.Gq("resolveUrlCommandMetadata");var B0q=new g.Gq("modifyChannelNotificationPreferenceEndpoint");var mZ2=new g.Gq("pingingEndpoint");var qSn=new g.Gq("unsubscribeEndpoint");g.UP=new g.Gq("subscribeButtonRenderer");var rgX=new g.Gq("subscribeEndpoint");var u1r=new g.Gq("buttonViewModel");var Gem=new g.Gq("qrCodeRenderer");var c$3={N0R:"LIVING_ROOM_APP_MODE_UNSPECIFIED",vgk:"LIVING_ROOM_APP_MODE_MAIN",X5W:"LIVING_ROOM_APP_MODE_KIDS",ONb:"LIVING_ROOM_APP_MODE_MUSIC",GYB:"LIVING_ROOM_APP_MODE_UNPLUGGED",HNX:"LIVING_ROOM_APP_MODE_GAMING"};var Nem=new g.Gq("autoplaySwitchButtonRenderer");var fh,u2P,WMP,wX3;fh=new g.Gq("decoratedPlayerBarRenderer");u2P=new g.Gq("chapteredPlayerBarRenderer");WMP=new g.Gq("multiMarkersPlayerBarRenderer");wX3=new g.Gq("chapterRenderer");g.R_3=new g.Gq("markerRenderer");var P8U=new g.Gq("decoratedPlayheadRenderer");var kuR=new g.Gq("desktopOverlayConfigRenderer");var FdP=new g.Gq("engagementPanelSectionListRenderer");var KMU=new g.Gq("gatedActionsOverlayViewModel");var ECR=new g.Gq("heatMarkerRenderer");var kXP=new g.Gq("heatmapRenderer");var ZOv=new g.Gq("watchToWatchTransitionRenderer");var gLP=new g.Gq("playlistPanelRenderer");var $7b=new g.Gq("productUpsellSuggestedActionViewModel");var opX=new g.Gq("suggestedActionTimeRangeTrigger"),CX_=new g.Gq("suggestedActionsRenderer"),heC=new g.Gq("suggestedActionRenderer");var QW3=new g.Gq("timedMarkerDecorationRenderer");var I0x=new g.Gq("cipher");var so2=new g.Gq("playerVars");var IN0=new g.Gq("playerVars");var jY=g.wr.window,pDq,U70,H$=(jY==null?void 0:(pDq=jY.yt)==null?void 0:pDq.config_)||(jY==null?void 0:(U70=jY.ytcfg)==null?void 0:U70.data_)||{};g.yq("yt.config_",H$);var Ks=[];var E1H=/^[\w.]*$/,RL3={q:!0,search_query:!0},NRv=String(Q4);var lQ=new function(){var J=window.document;this.C=window;this.T=J}; g.yq("yt.ads_.signals_.getAdSignalsString",function(J){return Z5(nX(J))});g.Yy();var Zb6="XMLHttpRequest"in g.wr?function(){return new XMLHttpRequest}:null;var fNy="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.r(fNy);var v5j={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"},Vhx="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.r(fNy)),n5H=!1,TPx=DZ;g.x(bQ,LH);e3.prototype.then=function(J,y,v){return this.C?this.C.then(J,y,v):this.J===1&&J?(J=J.call(v,this.T))&&typeof J.then==="function"?J:B0(J):this.J===2&&y?(J=y.call(v,this.T))&&typeof J.then==="function"?J:mv(J):this}; e3.prototype.getValue=function(){return this.T}; e3.prototype.$goog_Thenable=!0;var q5=!1;var HN=KX||zo;var DkP=/^([0-9\.]+):([0-9\.]+)$/;g.x(nR,LH);nR.prototype.name="BiscottiError";g.x(MW,LH);MW.prototype.name="BiscottiMissingError";var FeR={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},sK=null;var vy3=WP(["data-"]),C1P={};var inn=0,YD=g.s3?"webkit":Rg?"moz":g.YK?"ms":g.UC?"o":"",uNQ=g.vq("ytDomDomGetNextId")||function(){return++inn}; g.yq("ytDomDomGetNextId",uNQ);var Ukr={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};a4.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; a4.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; a4.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var xD=g.wr.ytEventsEventsListeners||{};g.yq("ytEventsEventsListeners",xD);var uX2=g.wr.ytEventsEventsCounter||{count:0};g.yq("ytEventsEventsCounter",uX2);var Rpx=og(function(){var J=!1;try{var y=Object.defineProperty({},"passive",{get:function(){J=!0}}); window.addEventListener("test",null,y)}catch(v){}return J}),HBU=og(function(){var J=!1; try{var y=Object.defineProperty({},"capture",{get:function(){J=!0}}); window.addEventListener("test",null,y)}catch(v){}return J});var eY;eY=window;g.GC=eY.ytcsi&&eY.ytcsi.now?eY.ytcsi.now:eY.performance&&eY.performance.timing&&eY.performance.now&&eY.performance.timing.navigationStart?function(){return eY.performance.timing.navigationStart+eY.performance.now()}:function(){return(new Date).getTime()};g.Vq(GW,g.u);GW.prototype.K=function(J){J.C===void 0&&f7R(J);var y=J.C;J.T===void 0&&f7R(J);this.C=new g.N7(y,J.T)}; GW.prototype.GC=function(){return this.C||new g.N7}; GW.prototype.zK=function(){if(this.C){var J=(0,g.GC)();if(this.W!=0){var y=this.L,v=this.C,d=y.x-v.x;y=y.y-v.y;d=Math.sqrt(d*d+y*y)/(J-this.W);this.T[this.J]=Math.abs((d-this.V)/this.V)>.5?1:0;for(v=y=0;v<4;v++)y+=this.T[v]||0;y>=3&&this.G();this.V=d}this.W=J;this.L=this.C;this.J=(this.J+1)%4}}; GW.prototype.JY=function(){g.tN(this.B);g.g3(this.Cy)};g.x(b$,g.u);b$.prototype.Z=function(J,y,v,d,P){v=g.kV((0,g.Mb)(v,d||this.J9));v={target:J,name:y,callback:v};var A;P&&Rpx()&&(A={passive:!0});J.addEventListener(y,v.callback,A);this.G.push(v);return v}; b$.prototype.y8=function(J){for(var y=0;y=N.VA)||b.C.version>=Jc||b.C.objectStoreNames.contains(U)||q.push(U)}n=q;if(n.length===0){c.Qk(5);break}Y=Object.keys(v.options.oh); S=M.objectStoreNames();if(v.Vv.options.version+1)throw L.close(),v.J=!1,$8R(v,t);return c.return(L);case 8:throw y(), V instanceof Error&&!g.a7("ytidb_async_stack_killswitch")&&(V.stack=V.stack+"\n"+T.substring(T.indexOf("\n")+1)),WN(V,v.name,"",(W=v.options.version)!=null?W:-1);}})} function y(){v.C===d&&(v.C=void 0)} var v=this;if(!this.J)throw $8R(this);if(this.C)return this.C;var d,P={blocking:function(A){A.close()}, closed:y,oRy:y,upgrade:this.options.upgrade};return this.C=d=J()};var i9=new Uq("YtIdbMeta",{oh:{databases:{VA:1}},upgrade:function(J,y){y(1)&&g.FD(J,"databases",{keyPath:"actualName"})}});var RO,Nt=new function(){}(new function(){});new g.Y5;g.x(kJ,Uq);kJ.prototype.T=function(J,y,v){v=v===void 0?{}:v;return(this.options.shared?ued:ixr)(J,y,Object.assign({},v))}; kJ.prototype.delete=function(J){J=J===void 0?{}:J;return(this.options.shared?Rlc:Hxr)(this.name,J)};var QV_={},zlr=g.Eq("ytGcfConfig",{oh:(QV_.coldConfigStore={VA:1},QV_.hotConfigStore={VA:1},QV_),shared:!1,upgrade:function(J,y){y(1)&&(g.rS(g.FD(J,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.rS(g.FD(J,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.x(Zm,g.u);Zm.prototype.JY=function(){for(var J=g.D(this.T),y=J.next();!y.done;y=J.next()){var v=this.C;y=v.indexOf(y.value);y>=0&&v.splice(y,1)}this.T.length=0;g.u.prototype.JY.call(this)};Pj.prototype.H7=function(J){this.hotHashData=J;g.yq("yt.gcf.config.hotHashData",this.hotHashData||null)};var Znb=typeof TextEncoder!=="undefined"?new TextEncoder:null,Ifx=Znb?function(J){return Znb.encode(J)}:function(J){J=g.jB(J); for(var y=new Uint8Array(J.length),v=0;v=y?!1:!0}; g.a.P1=function(){var J=this;if(!eK(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Y3.fg("QUEUED",this.YZ).then(function(y){y&&!J.B1(y,J.aH)?J.gU.Rd(function(){return g.f(function(v){if(v.T==1)return y.id===void 0?v.Qk(2):g.h(v,J.Y3.mG(y.id,J.YZ),2);J.P1();g.G2(v)})}):J.cK.tO()&&J.iG()})};var qD;var t3d={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136, mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167, kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387, transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189, ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258, ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221, accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245, musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270, yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296, notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478, tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340, iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361, mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380, mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400, clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420, mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16, mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443, cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468, miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490, shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515, adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var Jbw={},yRv=g.Eq("ServiceWorkerLogsDatabase",{oh:(Jbw.SWHealthLog={VA:1},Jbw),shared:!0,upgrade:function(J,y){y(1)&&g.rS(g.FD(J,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var oF={},l5x=0;var C0;IF.prototype.requestComplete=function(J,y){y&&(this.T=!0);J=this.removeParams(J);this.C.get(J)||this.C.set(J,y)}; IF.prototype.isEndpointCFR=function(J){J=this.removeParams(J);return(J=this.C.get(J))?!1:J===!1&&this.T?!0:null}; IF.prototype.removeParams=function(J){return J.split("?")[0]}; IF.prototype.removeParams=IF.prototype.removeParams;IF.prototype.isEndpointCFR=IF.prototype.isEndpointCFR;IF.prototype.requestComplete=IF.prototype.requestComplete;IF.getInstance=p0;g.x(UI,g.Y1);g.a=UI.prototype;g.a.tO=function(){return this.C.tO()}; g.a.fU=function(J){this.C.C=J}; g.a.s0=function(){var J=window.navigator.onLine;return J===void 0?!0:J}; g.a.CI=function(){this.T=!0}; g.a.listen=function(J,y){return this.C.listen(J,y)}; g.a.lW=function(J){J=hi(this.C,J);J.then(function(y){g.a7("use_cfr_monitor")&&p0().requestComplete("generate_204",y)}); return J}; UI.prototype.sendNetworkCheckRequest=UI.prototype.lW;UI.prototype.listen=UI.prototype.listen;UI.prototype.enableErrorFlushing=UI.prototype.CI;UI.prototype.getWindowStatus=UI.prototype.s0;UI.prototype.networkStatusHint=UI.prototype.fU;UI.prototype.isNetworkAvailable=UI.prototype.tO;UI.getInstance=sGc;g.x(g.f0,g.Y1);g.f0.prototype.tO=function(){var J=g.vq("yt.networkStatusManager.instance.isNetworkAvailable");return J?J.bind(this.T)():!0}; g.f0.prototype.fU=function(J){var y=g.vq("yt.networkStatusManager.instance.networkStatusHint").bind(this.T);y&&y(J)}; g.f0.prototype.lW=function(J){var y=this,v;return g.f(function(d){v=g.vq("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(y.T);return g.a7("skip_network_check_if_cfr")&&p0().isEndpointCFR("generate_204")?d.return(new Promise(function(P){var A;y.fU(((A=window.navigator)==null?void 0:A.onLine)||!0);P(y.tO())})):v?d.return(v(J)):d.return(!0)})};var io;g.x(uo,mW);uo.prototype.writeThenSend=function(J,y){y||(y={});y=XL(J,y);g.NW()||(this.C=!1);mW.prototype.writeThenSend.call(this,J,y)}; uo.prototype.sendThenWrite=function(J,y,v){y||(y={});y=XL(J,y);g.NW()||(this.C=!1);mW.prototype.sendThenWrite.call(this,J,y,v)}; uo.prototype.sendAndWrite=function(J,y){y||(y={});y=XL(J,y);g.NW()||(this.C=!1);mW.prototype.sendAndWrite.call(this,J,y)}; uo.prototype.awaitInitialization=function(){return this.J.promise};var tm3=g.wr.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.yq("ytNetworklessLoggingInitializationOptions",tm3);g.ND.prototype.isReady=function(){!this.config_&&Yax()&&(this.config_=g.lo());return!!this.config_};var ybn,z0,EI;ybn=g.wr.ytPubsubPubsubInstance||new g.GY;z0=g.wr.ytPubsubPubsubSubscribedKeys||{};EI=g.wr.ytPubsubPubsubTopicToKeys||{};g.kW=g.wr.ytPubsubPubsubIsSynchronous||{};g.GY.prototype.subscribe=g.GY.prototype.subscribe;g.GY.prototype.unsubscribeByKey=g.GY.prototype.Fg;g.GY.prototype.publish=g.GY.prototype.publish;g.GY.prototype.clear=g.GY.prototype.clear;g.yq("ytPubsubPubsubInstance",ybn);g.yq("ytPubsubPubsubTopicToKeys",EI);g.yq("ytPubsubPubsubIsSynchronous",g.kW); g.yq("ytPubsubPubsubSubscribedKeys",z0);var DPv={};g.x(sO,g.u);sO.prototype.append=function(J){if(!this.T)throw Error("This does not support the append operation");J=J.sN();this.sN().appendChild(J)}; g.x(YR,sO);YR.prototype.sN=function(){return this.C};g.x(S9,g.u);S9.prototype.onTouchStart=function(J){this.G=!0;this.T=J.touches.length;this.C.isActive()&&(this.C.stop(),this.V=!0);J=J.touches;this.L=bs3(this,J)||J.length!=1;var y=J.item(0);this.L||!y?this.K=this.B=Infinity:(this.B=y.clientX,this.K=y.clientY);for(y=this.J.length=0;y=0)}if(y||J&&Math.pow(J.clientX-this.B,2)+Math.pow(J.clientY-this.K,2)>25)this.W=!0}; S9.prototype.onTouchEnd=function(J){var y=J.changedTouches;y&&this.G&&this.T==1&&!this.W&&!this.V&&!this.L&&bs3(this,y)&&(this.zK=J,this.C.start());this.T=J.touches.length;this.T===0&&(this.W=this.G=!1,this.J.length=0);this.V=!1};var Vw=Date.now().toString();var xR={};var bD=Symbol("injectionDeps");gb.prototype.toString=function(){return"InjectionToken("+this.name+")"}; eyH.prototype.resolve=function(J){return J instanceof Dx?FQ(this,J.key,[],!0):FQ(this,J,[])};var j9;var m_=window;var $R=g.a7("web_enable_lifecycle_monitoring")&&BU()!==0,CSH=g.a7("web_enable_lifecycle_monitoring");rRc.prototype.cancel=function(){for(var J=g.D(this.C),y=J.next();!y.done;y=J.next())y=y.value,y.jobId===void 0||y.Lv||this.scheduler.yI(y.jobId),y.Lv=!0;this.T.resolve()};g.a=oT.prototype;g.a.install=function(J){this.plugins.push(J);return this}; g.a.uninstall=function(){var J=this;g.iR.apply(0,arguments).forEach(function(y){y=J.plugins.indexOf(y);y>-1&&J.plugins.splice(y,1)})}; g.a.transition=function(J,y){var v=this;$R&&BN2(this.state);var d=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(T){return T===v.state&&A.to===J}):A.from===v.state&&A.to===J}); if(d){this.T&&($Pr(this.T),this.T=void 0);hyc(this,J,y);this.state=J;$R&&qZ(this.state);d=d.action.bind(this);var P=this.plugins.filter(function(A){return A[J]}).map(function(A){return A[J]}); d(oVm(this,P),y)}else throw Error("no transition specified from "+this.state+" to "+J);}; g.a.I8k=function(J){var y=g.iR.apply(1,arguments);g.EK();for(var v=g.D(J),d=v.next(),P={};!d.done;P={E9:void 0},d=v.next())P.E9=d.value,Ppv(function(A){return function(){h4(A.E9.name);pc(function(){return A.E9.callback.apply(A.E9,g.r(y))}); IT(A.E9.name)}}(P))}; g.a.qHB=function(J){var y=g.iR.apply(1,arguments),v,d,P,A;return g.f(function(T){T.T==1&&(g.EK(),v=g.D(J),d=v.next(),P={});if(T.T!=3){if(d.done)return T.Qk(0);P.q0=d.value;P.eq=void 0;A=function(M){return function(){h4(M.q0.name);var n=pc(function(){return M.q0.callback.apply(M.q0,g.r(y))}); GO(n)?M.eq=g.a7("web_lifecycle_error_handling_killswitch")?n.then(function(){IT(M.q0.name)}):n.then(function(){IT(M.q0.name)},function(Y){qvd(Y); IT(M.q0.name)}):IT(M.q0.name)}}(P); Ppv(A);return P.eq?g.h(T,P.eq,3):T.Qk(3)}P={q0:void 0,eq:void 0};d=v.next();return T.Qk(2)})}; g.a.XC=function(J){var y=g.iR.apply(1,arguments),v=this,d=J.map(function(P){return{uT:function(){h4(P.name);pc(function(){return P.callback.apply(P,g.r(y))}); IT(P.name)}, priority:Cc(v,P)}}); d.length&&(this.T=new rRc(d))}; g.sU.Object.defineProperties(oT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var fc;g.x(UO,oT);UO.prototype.V=function(J,y){var v=this;this.C=g.zW(0,function(){v.currentState==="application_navigating"&&v.transition("none")},5E3); J(y==null?void 0:y.event)}; UO.prototype.L=function(J,y){this.C&&(g.px.yI(this.C),this.C=null);J(y==null?void 0:y.event)};var Ye=[];g.yq("yt.logging.transport.getScrapedGelPayloads",function(){return Ye});iD.prototype.storePayload=function(J,y){J=uD(J);this.store[J]?this.store[J].push(y):(this.T={},this.store[J]=[y]);this.C++;g.a7("more_accurate_gel_parser")&&(y=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(y));return J}; iD.prototype.smartExtractMatchingEntries=function(J){if(!J.keys.length)return[];for(var y=XQ(this,J.keys.splice(0,1)[0]),v=[],d=0;d=0){d=!1;break a}}d=!0}d&&(y=r5(y))&&this.iI(y)}}; g.a.z8=function(J){return J}; g.a.onTouchStart=function(J){this.AY.onTouchStart(J)}; g.a.onTouchMove=function(J){this.AY.onTouchMove(J)}; g.a.onTouchEnd=function(J){if(this.AY)this.AY.onTouchEnd(J)}; g.a.iI=function(J){this.layoutId?this.vX.executeCommand(J,this.layoutId):(J=new g.H1("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.jv(J))}; g.a.createServerVe=function(J,y){this.api.createServerVe(J,this);this.api.setTrackingParams(J,y)}; g.a.logVisibility=function(J,y){this.api.hasVe(J)&&this.api.logVisibility(J,y,this.interactionLoggingClientData)}; g.a.JY=function(){this.clear(null);this.y8(this.rj);for(var J=g.D(this.wj),y=J.next();!y.done;y=J.next())this.y8(y.value);g.T_.prototype.JY.call(this)};g.x(eV,l7); eV.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);this.C=y;if(y.text==null&&y.icon==null)g.ev(Error("ButtonRenderer did not have text or an icon set."));else{switch(y.style||null){case "STYLE_UNKNOWN":J="ytp-ad-button-link";break;default:J=null}J!=null&&g.d7(this.element,J);y.text!=null&&(J=g.nf(y.text),g.qh(J)||(this.element.setAttribute("aria-label",J),this.J=new g.T_({j:"span",N:"ytp-ad-button-text",TK:J}),g.X(this,this.J),this.J.yk(this.element)));y.accessibilityData&&y.accessibilityData.accessibilityData&& y.accessibilityData.accessibilityData.label&&!g.qh(y.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",y.accessibilityData.accessibilityData.label);y.icon!=null&&(y=jV(y.icon,this.W),y!=null&&(this.T=new g.T_({j:"span",N:"ytp-ad-button-icon",D:[y]}),g.X(this,this.T)),this.L?xk(this.element,this.T.element,0):this.T.yk(this.element))}}; eV.prototype.clear=function(){this.hide()}; eV.prototype.onClick=function(J){l7.prototype.onClick.call(this,J);J=g.D(hJ3(this));for(var y=J.next();!y.done;y=J.next())y=y.value,this.layoutId?this.vX.executeCommand(y,this.layoutId):g.jv(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(mt,g.u);mt.prototype.JY=function(){this.T&&g.g3(this.T);this.C.clear();BC=null;g.u.prototype.JY.call(this)}; mt.prototype.register=function(J,y){y&&this.C.set(J,y)}; var BC=null;g.x($H,l7); $H.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);J=y.hoverText||null;y=y.button&&g.R(y.button,g.Zc)||null;y==null?g.jv(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new eV(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,void 0,void 0,void 0,void 0,this.J),g.X(this,this.button),this.button.init(w5("button"),y,this.macros),J&&this.button.element.setAttribute("aria-label",g.nf(J)),this.button.yk(this.element),this.K&&!g.vB(this.button.element, "ytp-ad-clickable")&&g.d7(this.button.element,"ytp-ad-clickable"),this.J&&g.d7(this.button.element,"ytp-ad-hover-text-button--clean-player"),J&&(this.T=new g.T_({j:"div",N:"ytp-ad-hover-text-container"}),this.L&&(y=new g.T_({j:"div",N:"ytp-ad-hover-text-callout"}),y.yk(this.T.element),g.X(this,y)),g.X(this,this.T),this.T.yk(this.element),y=qK(J),xk(this.T.element,y,0)),this.show())}; $H.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();l7.prototype.hide.call(this)}; $H.prototype.show=function(){this.button&&this.button.show();l7.prototype.show.call(this)};g.x(Cf,l7); Cf.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);v=(J=y.thumbnail)&&ox(J)||"";g.qh(v)?Math.random()<.01&&g.ev(Error("Found AdImage without valid image URL")):(this.C?g.Ni(this.element,"backgroundImage","url("+v+")"):nj(this.element,{src:v}),nj(this.element,{alt:J&&J.accessibility&&J.accessibility.label||""}),y&&y.adRendererCommands&&y.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; Cf.prototype.clear=function(){this.hide()};g.x(hl,l7);g.a=hl.prototype;g.a.hide=function(){l7.prototype.hide.call(this);this.J&&this.J.focus()}; g.a.show=function(){this.J=document.activeElement;l7.prototype.show.call(this);this.W.focus()}; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);this.T=y;y.dialogMessages||y.title!=null?y.confirmLabel==null?g.jv(Error("ConfirmDialogRenderer.confirmLabel was not set.")):y.cancelLabel==null?g.jv(Error("ConfirmDialogRenderer.cancelLabel was not set.")):fum(this,y):g.jv(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.a.clear=function(){g.j$(this.C);this.hide()}; g.a.PD=function(){this.hide()}; g.a.EL=function(){var J=this.T.cancelEndpoint;J&&(this.layoutId?this.vX.executeCommand(J,this.layoutId):g.jv(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.a.rV=function(){var J=this.T.confirmNavigationEndpoint||this.T.confirmEndpoint;J&&(this.layoutId?this.vX.executeCommand(J,this.layoutId):g.jv(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(Ix,l7);g.a=Ix.prototype; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);this.J=y;if(y.defaultText==null&&y.defaultIcon==null)g.jv(Error("ToggleButtonRenderer must have either text or icon set."));else if(y.defaultIcon==null&&y.toggledIcon!=null)g.jv(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(y.style){switch(y.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":J="ytp-ad-toggle-button-default-style";break;default:J=null}J!=null&&g.d7(this.W,J)}J={};y.defaultText? (v=g.nf(y.defaultText),g.qh(v)||(J.buttonText=v,this.api.Y().experiments.BX("a11y_h5_associate_survey_question")||this.C.setAttribute("aria-label",v),this.api.Y().experiments.BX("fix_h5_toggle_button_a11y")&&this.T.setAttribute("aria-label",v))):g.dp(this.If,!1);y.defaultTooltip&&(J.tooltipText=y.defaultTooltip,this.C.hasAttribute("aria-label")||this.T.setAttribute("aria-label",y.defaultTooltip));y.defaultIcon?(v=jV(y.defaultIcon),this.updateValue("untoggledIconTemplateSpec",v),y.toggledIcon?(this.Cy= !0,v=jV(y.toggledIcon),this.updateValue("toggledIconTemplateSpec",v)):(g.dp(this.K,!0),g.dp(this.L,!1)),g.dp(this.C,!1)):g.dp(this.T,!1);g.Vx(J)||this.update(J);y.isToggled&&(g.d7(this.W,"ytp-ad-toggle-button-toggled"),this.toggleButton(y.isToggled));pf(this);this.Z(this.element,"change",this.Vy);this.show()}}; g.a.onClick=function(J){this.wj.length>0&&(this.toggleButton(!this.isToggled()),this.Vy());l7.prototype.onClick.call(this,J)}; g.a.Vy=function(){g.lq(this.W,"ytp-ad-toggle-button-toggled",this.isToggled());for(var J=g.D(iRP(this,this.isToggled())),y=J.next();!y.done;y=J.next())y=y.value,this.layoutId?this.vX.executeCommand(y,this.layoutId):g.jv(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);pf(this)}; g.a.clear=function(){this.hide()}; g.a.toggleButton=function(J){g.lq(this.W,"ytp-ad-toggle-button-toggled",J);this.C.checked=J;pf(this)}; g.a.isToggled=function(){return this.C.checked};g.x(Ux,b$);Ux.prototype.V=function(J){if(Array.isArray(J)){J=g.D(J);for(var y=J.next();!y.done;y=J.next())y=y.value,y instanceof uMP&&this.J(y)}};g.x(ff,l7);g.a=ff.prototype;g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);y.reasons?y.confirmLabel==null?g.jv(Error("AdFeedbackRenderer.confirmLabel was not set.")):(y.cancelLabel==null&&g.ev(Error("AdFeedbackRenderer.cancelLabel was not set.")),y.title==null&&g.ev(Error("AdFeedbackRenderer.title was not set.")),RJd(this,y)):g.jv(Error("AdFeedbackRenderer.reasons were not set."))}; g.a.clear=function(){Du(this.L);Du(this.K);this.W.length=0;this.hide()}; g.a.hide=function(){this.C&&this.C.hide();this.T&&this.T.hide();l7.prototype.hide.call(this);this.J&&this.J.focus()}; g.a.show=function(){this.C&&this.C.show();this.T&&this.T.show();this.J=document.activeElement;l7.prototype.show.call(this);this.L.focus()}; g.a.eZ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.a.dAW=function(){this.hide()}; i7.prototype.sN=function(){return this.C.element}; i7.prototype.getCommand=function(){return this.T}; i7.prototype.isChecked=function(){return this.J.checked};g.x(u7,hl);u7.prototype.PD=function(J){hl.prototype.PD.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; u7.prototype.EL=function(J){hl.prototype.EL.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; u7.prototype.rV=function(J){hl.prototype.rV.call(this,J);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.x(HC,l7);g.a=HC.prototype; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);this.L=y;if(y.dialogMessage==null&&y.title==null)g.jv(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{y.confirmLabel==null&&g.ev(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(J=y.closeOverlayRenderer&&g.R(y.closeOverlayRenderer,g.Zc)||null)this.C=new eV(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.X(this,this.C),this.C.init(w5("button"),J,this.macros),this.C.yk(this.element);y.title&&(J=g.nf(y.title),this.updateValue("title",J));if(y.adReasons)for(J=y.adReasons,v=0;v=this.WX?(this.Cy.hide(),this.Vk=!0,this.publish("i")):this.J&&this.J.isTemplated()&&(J=Math.max(0,Math.ceil((this.WX-J)/1E3)),J!=this.XW&&(Rx(this.J,{TIME_REMAINING:String(J)}),this.XW=J)))}};g.x(wD,Kf);g.a=wD.prototype; g.a.init=function(J,y,v){Kf.prototype.init.call(this,J,y,v);if(y.image&&y.image.thumbnail)if(y.headline)if(y.description)if((J=y.actionButton&&g.R(y.actionButton,g.Zc))&&J.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(y.image&&y.image.thumbnail){var P=y.image.thumbnail.thumbnails;P!=null&&P.length>0&&g.qh(g.$p(P[0].url))&&(P[0].url=d.profilePicture)}else g.ev(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.J.init(w5("ad-image"),y.image,v);this.L.init(w5("ad-text"), y.headline,v);this.W.init(w5("ad-text"),y.description,v);this.T.init(w5("button"),J,v);v=N8(this.T.element);Xe(this.T.element,v+" This link opens in new tab");this.Cy=J.navigationEndpoint;this.api.SG()||this.show();this.api.Y().X("enable_larger_flyout_cta_on_desktop")&&(this.uA("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.uA("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.uA("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), this.uA("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.uA("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.uA("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.uA("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); this.api.addEventListener("playerUnderlayVisibilityChange",this.hc.bind(this));this.If=y.startMs||0;z_(this)}else g.jv(Error("FlyoutCtaRenderer has no valid action button."));else g.jv(Error("FlyoutCtaRenderer has no description AdText."));else g.jv(Error("FlyoutCtaRenderer has no headline AdText."));else g.ev(Error("FlyoutCtaRenderer has no image."))}; g.a.onClick=function(J){Kf.prototype.onClick.call(this,J);this.api.pauseVideo();!g.gs(this.T.element,J.target)&&this.Cy&&(this.layoutId?this.vX.executeCommand(this.Cy,this.layoutId):g.jv(Error("Missing layoutId for flyout cta.")))}; g.a.lC=function(){if(this.C){var J=this.C.getProgressState();(J&&J.current||this.WX)&&1E3*J.current>=this.If&&(kH(this),g.AZ(this.element,"ytp-flyout-cta-inactive"),this.T.element.removeAttribute("tabIndex"))}}; g.a.Pc=function(){this.clear()}; g.a.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.hc.bind(this))}; g.a.show=function(){this.T&&this.T.show();Kf.prototype.show.call(this)}; g.a.hide=function(){this.T&&this.T.hide();Kf.prototype.hide.call(this)}; g.a.hc=function(J){J=="hidden"?this.show():this.hide()};g.x(JF,l7);g.a=JF.prototype; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);this.C=y;if(this.C.rectangle)for(J=this.C.likeButton&&g.R(this.C.likeButton,FJ),y=this.C.dislikeButton&&g.R(this.C.dislikeButton,FJ),this.J.init(w5("toggle-button"),J,v),this.T.init(w5("toggle-button"),y,v),this.Z(this.element,"change",this.xC),this.W.show(100),this.show(),v=g.D(this.C&&this.C.impressionCommands||[]),J=v.next();!J.done;J=v.next())J=J.value,this.layoutId?this.vX.executeCommand(J,this.layoutId):g.jv(Error("Missing layoutId for instream user sentiment."))}; g.a.clear=function(){this.hide()}; g.a.hide=function(){this.J.hide();this.T.hide();l7.prototype.hide.call(this)}; g.a.show=function(){this.J.show();this.T.show();l7.prototype.show.call(this)}; g.a.xC=function(){ePj(this.element,"ytp-ad-instream-user-sentiment-selected");this.C.postMessageAction&&this.api.Rf("onYtShowToast",this.C.postMessageAction);this.W.hide()}; g.a.onClick=function(J){this.wj.length>0&&this.xC();l7.prototype.onClick.call(this,J)};g.x(yh,g.u);g.a=yh.prototype;g.a.JY=function(){this.reset();g.u.prototype.JY.call(this)}; g.a.reset=function(){g.j$(this.W);this.L=!1;this.C&&this.C.stop();this.V.stop();this.J&&(this.J=!1,this.G.play())}; g.a.start=function(){this.reset();this.W.Z(this.T,"mouseover",this.Xn,this);this.W.Z(this.T,"mouseout",this.Hl,this);this.zK&&(this.W.Z(this.T,"focusin",this.Xn,this),this.W.Z(this.T,"focusout",this.Hl,this));this.C?this.C.start():(this.L=this.J=!0,g.Ni(this.T,{opacity:this.K}))}; g.a.Xn=function(){this.J&&(this.J=!1,this.G.play());this.V.stop();this.C&&this.C.stop()}; g.a.Hl=function(){this.L?this.V.start():this.C&&this.C.start()}; g.a.FB=function(){this.J||(this.J=!0,this.B.play(),this.L=!0)};var P9x=[new vc("b.f_",!1,0),new vc("j.s_",!1,2),new vc("r.s_",!1,4),new vc("e.h_",!1,6),new vc("i.s_",!0,8),new vc("s.t_",!1,10),new vc("p.h_",!1,12),new vc("s.i_",!1,14),new vc("f.i_",!1,16),new vc("a.b_",!1,18),new vc("a.o_",!1),new vc("g.o_",!1,22),new vc("p.i_",!1,24),new vc("p.m_",!1),new vc("n.k_",!0,20),new vc("i.f_",!1),new vc("a.s_",!0),new vc("m.c_",!1),new vc("n.h_",!1,26),new vc("o.p_",!1),new vc("m.p_",!0,28),new vc("o.a_",!1),new vc("d.p_",!1),new vc("e.i_",!1)].reduce(function(J,y){J[y.T]= y;return J},{});g.x(s0,Kf);g.a=s0.prototype; g.a.init=function(J,y,v){Kf.prototype.init.call(this,J,y,v);this.Cy=y;(this.If=TSU(this))&&g.ev(Error("hasAdControlInClickCommands_ is true."));if(!y||g.Vx(y))g.jv(Error("SkipButtonRenderer was not specified or empty."));else if(!y.message||g.Vx(y.message))g.jv(Error("SkipButtonRenderer.message was not specified or empty."));else if(J=this.L?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},y=jV(J),y==null?g.jv(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+J.iconType+".")): (this.api.Y().X("disable_touch_events_on_skip_button")&&(y.U=Object.assign({},y.U,{"aria-hidden":"true",Tdk:"false"})),this.J=new g.T_({j:"button",kB:[this.L?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],D:[{j:"span",N:this.L?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",D:[y]}]}),g.X(this,this.J),this.J.yk(this.W.element),this.T=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,"ytp-ad-skip-button-text"),this.L&&this.T.element.classList.add("ytp-ad-skip-button-text-centered"), this.T.init(w5("ad-text"),this.Cy.message,v),g.X(this,this.T),xk(this.J.element,this.T.element,0)),!this.api.Y().X("disable_touch_events_on_skip_button")){var d=d===void 0?null:d;v=this.api.Y();!(this.wj.length>0)&&v.T&&(po?0:"ontouchstart"in document.documentElement&&(ZH2()||sb()))&&(this.y8(this.rj),d&&this.y8(d),this.wj=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.a.clear=function(){this.WX.reset();this.hide()}; g.a.hide=function(){this.W.hide();this.T&&this.T.hide();kH(this);Kf.prototype.hide.call(this)}; g.a.onClick=function(J){if(this.J!=null){if(J){var y=J||window.event;y.returnValue=!1;y.preventDefault&&y.preventDefault()}var v;if(vJd(J,{contentCpn:((v=this.api.getVideoData(1))==null?void 0:v.clientPlaybackNonce)||""})===0)this.api.Rf("onAbnormalityDetected");else if(Kf.prototype.onClick.call(this,J),this.publish("j"),this.api.Rf("onAdSkip"),this.Vk||!this.If)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.a.z8=function(J){if(!this.Vk)return this.If&&TS("SkipButton click commands not pruned while ALC exist"),J;var y,v=(y=g.R(J,g.YZ))==null?void 0:y.commands;if(!v)return J;J=[];for(y=0;y=this.L&&lmx(this,!0)};g.x(Vh,eV);Vh.prototype.init=function(J,y,v){eV.prototype.init.call(this,J,y,v);J=!1;y.text!=null&&(J=g.nf(y.text),J=!g.qh(J));J?y.navigationEndpoint==null?g.ev(Error("No visit advertiser clickthrough provided in renderer,")):y.style!=="STYLE_UNKNOWN"?g.ev(Error("Button style was not a link-style type in renderer,")):this.show():g.ev(Error("No visit advertiser text was present in the renderer."))};g.x(La,l7); La.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);J=y.text;g.qh(MK(J))?g.ev(Error("SimpleAdBadgeRenderer has invalid or empty text")):(J&&J.text&&(y=J.text,this.J&&!this.T&&(y=this.api.Y(),y=J.text+" "+(y&&y.T?"\u2022":"\u00b7")),y={text:y,isTemplated:J.isTemplated},J.style&&(y.style=J.style),J.targetId&&(y.targetId=J.targetId),J=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),J.init(w5("simple-ad-badge"),y,v),J.yk(this.element),g.X(this,J)),this.show())}; La.prototype.clear=function(){this.hide()};g.x(tF,Jl);g.x(Wc,g.yK);g.a=Wc.prototype;g.a.e9=function(){return this.durationMs}; g.a.stop=function(){this.C&&this.lJ.y8(this.C)}; g.a.cq=function(J){this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:J.current};this.publish("h")}; g.a.getProgressState=function(){return this.T}; g.a.aK=function(J){g.na(J,2)&&this.publish("g")};g.x(aP,g.yK);g.a=aP.prototype;g.a.e9=function(){return this.durationMs}; g.a.start=function(){this.C||(this.C=!0,this.timer.start())}; g.a.stop=function(){this.C&&(this.C=!1,this.timer.stop())}; g.a.cq=function(){this.QR+=100;var J=!1;this.QR>this.durationMs&&(this.QR=this.durationMs,this.timer.stop(),J=!0);this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.QR/1E3};this.publish("h");J&&this.publish("g")}; g.a.getProgressState=function(){return this.T};g.x(gm,Kf);g.a=gm.prototype;g.a.init=function(J,y,v){Kf.prototype.init.call(this,J,y,v);var d;if(y==null?0:(d=y.templatedCountdown)==null?0:d.templatedAdText){J=y.templatedCountdown.templatedAdText;if(!J.isTemplated){g.ev(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.T=new NK(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);this.T.init(w5("ad-text"),J,{});this.T.yk(this.element);g.X(this,this.T)}this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){kH(this);Kf.prototype.hide.call(this)}; g.a.Pc=function(){this.hide()}; g.a.lC=function(){if(this.C!=null){var J=this.C.getProgressState();if(J!=null&&J.current!=null&&this.T){var y=this.C instanceof Wc?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:J.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.C instanceof aP?J.seekableEnd:this.api.getDuration(2,!1);J=J.current;var v,d,P=((v=this.api.getVideoData())==null?0:(d=v.US)==null?0:d.call(v))?Math.max(y-J,0):y-J;Rx(this.T,{FORMATTED_AD_DURATION_REMAINING:String(g.xZ(P)), TIME_REMAINING:String(Math.ceil(P))})}}}; g.a.show=function(){z_(this);Kf.prototype.show.call(this)};g.x(DQ,NK);DQ.prototype.onClick=function(J){NK.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType)};g.x(GS,l7);GS.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(J=y.content){g.DG(this.element,J);var v,d;y=((v=y.interaction)==null?void 0:(d=v.accessibility)==null?void 0:d.label)||J;this.element.setAttribute("aria-label",y)}else g.jv(Error("AdSimpleAttributedString does not have text content"))}; GS.prototype.clear=function(){this.hide()}; GS.prototype.onClick=function(J){l7.prototype.onClick.call(this,J)};g.x(bL,l7); bL.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});(J=y.label)&&J.content&&!g.qh(J.content)?(this.adBadgeText.init(w5("ad-simple-attributed-string"),new cc(J)),(y=y.adPodIndex)&&y.content&&!g.qh(y.content)&&(this.C=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),this.C.yk(this.element),g.X(this,this.C),this.C.element.classList.add("ytp-ad-badge__pod-index"),this.C.init(w5("ad-simple-attributed-string"),new cc(y))),this.element.classList.add(this.T?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.jv(Error("No label is returned in AdBadgeViewModel."))}; bL.prototype.show=function(){this.adBadgeText.show();var J;(J=this.C)==null||J.show();l7.prototype.show.call(this)}; bL.prototype.hide=function(){this.adBadgeText.hide();var J;(J=this.C)==null||J.hide();l7.prototype.hide.call(this)};g.x(FS,l7);FS.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});(J=y.adPodIndex)&&J.content&&!g.qh(J.content)&&(this.C=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),this.C.yk(this.element),g.X(this,this.C),this.C.init(w5("ad-simple-attributed-string"),new cc(J)),y.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()}; FS.prototype.show=function(){var J;(J=this.C)==null||J.show();l7.prototype.show.call(this)}; FS.prototype.hide=function(){var J;(J=this.C)==null||J.hide();l7.prototype.hide.call(this)};g.x(jg,l7); jg.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(y!=null&&y.text){var v;if(((v=y.text)==null?0:v.content)&&!g.qh(y.text.content)){this.C=new g.T_({j:"div",N:"ytp-ad-disclosure-banner__text",TK:y.text.content});g.X(this,this.C);this.C.yk(this.element);var d,P;J=((d=y.interaction)==null?void 0:(P=d.accessibility)==null?void 0:P.label)||y.text.content;this.element.setAttribute("aria-label",J);var A;if((A=y.interaction)==null?0:A.onTap)this.T=new g.T_({j:"div",N:"ytp-ad-disclosure-banner__chevron",D:[g.VK()]}), g.X(this,this.T),this.T.yk(this.element);this.show()}}else g.jv(Error("No banner text found in AdDisclosureBanner."))}; jg.prototype.clear=function(){this.hide()};g.x(Bc,g.T_);Bc.prototype.cq=function(){var J=this.T.getProgressState(),y=J.seekableEnd;this.api.getPresentingPlayerType()===2&&(y=this.J?this.J/1E3:J.seekableEnd);this.progressBar.style.width=mP(new eg(J.seekableStart,y),J.current,0)*100+"%"}; Bc.prototype.onStateChange=function(){g.kO(this.api.Y())||(this.api.getPresentingPlayerType()===2?this.C===-1&&(this.show(),this.C=this.T.subscribe("h",this.cq,this),this.cq()):this.C!==-1&&(this.hide(),this.T.Fg(this.C),this.C=-1))};g.x(qu,l7); qu.prototype.init=function(J,y,v,d){l7.prototype.init.call(this,J,y,v);if(y.skipOrPreviewRenderer){if(J=g.R(y.skipOrPreviewRenderer,cS))v=new Sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T,this.K),v.yk(this.Ek),v.init(w5("skip-button"),J,this.macros),g.X(this,v);if(J=g.R(y.skipOrPreviewRenderer,cS))var P=J.skipOffsetMilliseconds}y.brandInteractionRenderer&&(J=y.brandInteractionRenderer.brandInteractionRenderer,v=new JF(this.api,this.layoutId,this.interactionLoggingClientData,this.vX), v.yk(this.If),v.init(w5("instream-user-sentiment"),J,this.macros),g.X(this,v));if(J=g.R(y,pLq))if(J=g.R(J,pLq))v=new wD(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T,!!y.showWithoutLinkedMediaLayout),g.X(this,v),v.yk(this.L),v.init(w5("flyout-cta"),J,this.macros);d=d&&d.videoAdDurationSeconds;y.adBadgeRenderer&&(v=y.adBadgeRenderer,J=g.R(v,k_),J!=null?(v=new bL(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!1),g.X(this,v),v.yk(this.C),v.init(w5("ad-badge"), J,this.macros),this.J=v.element):(J=v.simpleAdBadgeRenderer,J==null&&(J={text:{text:"Anuncio",isTemplated:!1}}),v=new La(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0),g.X(this,v),v.yk(this.C),v.init(w5("simple-ad-badge"),J,this.macros)));y.adPodIndex&&(J=g.R(y.adPodIndex,zbV),J!=null&&(v=new FS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,v),v.yk(this.C),v.init(w5("ad-pod-index"),J)));y.adDurationRemaining&&!y.showWithoutLinkedMediaLayout&&(J=y.adDurationRemaining.adDurationRemainingRenderer, J==null&&(J={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new gm(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T,d,!1),g.X(this,d),d.yk(this.C),d.init(w5("ad-duration-remaining"),J,this.macros));y.adInfoRenderer&&(d=g.R(y.adInfoRenderer,Ej))&&(J=new X9(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.element,void 0,!1),g.X(this,J),this.J!==null?this.C.insertBefore(J.element,this.J.nextSibling):J.yk(this.C), J.init(w5("ad-info-hover-text-button"),d,this.macros));y.visitAdvertiserRenderer&&(J=g.R(y.visitAdvertiserRenderer,g.Zc))&&(v=YqH(this)&&this.W?this.W:this.C)&&(d=new Vh(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,d),d.yk(v),d.init(w5("visit-advertiser"),J,this.macros),fx(d.element),J=N8(d.element),Xe(d.element,J+" This link opens in new tab"));!(d=this.api.Y())||g.Ko(d)||g.un(d)||d.controlsType!="3"&&!d.disableOrganicUi||(P=new Bc(this.api,this.T,P,!1),P.yk(this.WX), g.X(this,P));y.adDisclosureBannerRenderer&&(y=g.R(y.adDisclosureBannerRenderer,KpO))&&(P=new jg(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),P.yk(this.Cy),P.init(w5("ad-disclosure-banner"),y),g.X(this,P));this.api.Y().X("enable_updated_html5_player_focus_style")&&g.d7(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; qu.prototype.clear=function(){this.hide()};g.oP.prototype.flush=function(J,y){J=J===void 0?[]:J;y=y===void 0?!1:y;if(g.a7("enable_client_streamz_web")){J=g.D(J);for(var v=J.next();!v.done;v=J.next())v=wor(v.value),this.C&&DV(v,Mm,2,this.C),v={serializedIncrementBatch:g.eB(v.J())},g.AW("streamzIncremented",v,{sendIsolatedPayload:y})}}; g.x(VOr,g.oP);var wwT=new Map;Ca.prototype.set=function(J,y,v){v=v!==void 0?Date.now()+v:void 0;this.C.set(J,y,v)}; Ca.prototype.get=function(J){return this.C.get(J)}; Ca.prototype.remove=function(J){this.C.remove(J)};var tOP=null;var fa=null,iL=null,uL=null,gJv=null;g.yq("yt.www.ads.eventcache.getLastCompanionData",function(){return fa}); g.yq("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.yq("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return iL}); g.yq("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return uL}); g.yq("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return gJv});var cWH=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Hc.prototype.handleResponse=function(J,y){if(!y)throw Error("request needs to be passed into ConsistencyService");var v,d;y=((v=y.qr.context)==null?void 0:(d=v.request)==null?void 0:d.consistencyTokenJars)||[];var P;(J=(P=J.responseContext)==null?void 0:P.consistencyTokenJar)&&this.replace(y,J)}; Hc.prototype.replace=function(J,y){J=g.D(J);for(var v=J.next();!v.done;v=J.next())delete this.C[v.value.encryptedTokenJarContents];bUx(this,y)};var TsH=window.location.hostname.split(".").slice(-2).join("."),oi;Nu.getInstance=function(){oi=g.vq("yt.clientLocationService.instance");oi||(oi=new Nu,g.yq("yt.clientLocationService.instance",oi));return oi}; g.a=Nu.prototype; g.a.setLocationOnInnerTubeContext=function(J){J.client||(J.client={});if(this.C)J.client.locationInfo||(J.client.locationInfo={}),J.client.locationInfo.latitudeE7=Math.floor(this.C.coords.latitude*1E7),J.client.locationInfo.longitudeE7=Math.floor(this.C.coords.longitude*1E7),J.client.locationInfo.horizontalAccuracyMeters=Math.round(this.C.coords.accuracy),J.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.J||this.locationPlayabilityToken)J.client.locationPlayabilityToken=this.J|| this.locationPlayabilityToken}; g.a.handleResponse=function(J){var y;J=(y=J.responseContext)==null?void 0:y.locationPlayabilityToken;J!==void 0&&(this.locationPlayabilityToken=J,this.C=void 0,g.NP("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=XS(this))&&this.localStorage.set("yt-location-playability-token",J,15552E3):g.$U("YT_CL",JSON.stringify({loctok:J}),15552E3,TsH,!0))}; g.a.clearLocationPlayabilityToken=function(J){J==="TVHTML5"?(this.localStorage=XS(this))&&this.localStorage.remove("yt-location-playability-token"):g.CX("YT_CL");this.J=void 0;this.T!==-1&&(clearTimeout(this.T),this.T=-1)}; g.a.getCurrentPositionFromGeolocation=function(){var J=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var y=!1,v=1E4;g.NP("INNERTUBE_CLIENT_NAME")==="MWEB"&&(y=!0,v=15E3);return new Promise(function(d,P){navigator.geolocation.getCurrentPosition(function(A){J.C=A;d(A)},function(A){P(A)},{enableHighAccuracy:y, maximumAge:0,timeout:v})})}; g.a.createUnpluggedLocationInfo=function(J){var y={};J=J.coords;if(J==null?0:J.latitude)y.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)y.longitudeE7=Math.floor(J.longitude*1E7);if(J==null?0:J.accuracy)y.locationRadiusMeters=Math.round(J.accuracy);return y}; g.a.createLocationInfo=function(J){var y={};J=J.coords;if(J==null?0:J.latitude)y.latitudeE7=Math.floor(J.latitude*1E7);if(J==null?0:J.longitude)y.longitudeE7=Math.floor(J.longitude*1E7);return y};g.a=BSv.prototype;g.a.contains=function(J){return Object.prototype.hasOwnProperty.call(this.C,J)}; g.a.get=function(J){if(this.contains(J))return this.C[J]}; g.a.set=function(J,y){this.C[J]=y}; g.a.iQ=function(){return Object.keys(this.C)}; g.a.remove=function(J){delete this.C[J]};Ka.prototype.getModuleId=function(J){return J.serviceId.getModuleId()}; Ka.prototype.get=function(J){a:{var y=this.mappings.get(J.toString());switch(y.type){case "mapping":J=y.value;break a;case "factory":y=y.value();this.mappings.set(J.toString(),{type:"mapping",value:y});J=y;break a;default:J=SP(y)}}return J}; Ka.prototype.registerService=function(J,y){this.mappings.set(J.toString(),{type:"mapping",value:y});return J}; new Ka;var C2={},qqP=(C2.WEB_UNPLUGGED="^unplugged/",C2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",C2.WEB_UNPLUGGED_OPS="^unplugged/",C2.WEB_UNPLUGGED_PUBLIC="^unplugged/",C2.WEB_CREATOR="^creator/",C2.WEB_KIDS="^kids/",C2.WEB_EXPERIMENTS="^experiments/",C2.WEB_MUSIC="^music/",C2.WEB_REMIX="^music/",C2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",C2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",C2);E0.prototype.V=function(J,y,v){y=y===void 0?{}:y;v=v===void 0?n0:v;var d={context:g.RP(J.clickTrackingParams,!1,this.W)};var P=this.T(J);if(P){this.C(d,P,y);var A;y=g.kZ(this.J());(P=(A=g.R(J.commandMetadata,g.b3))==null?void 0:A.apiUrl)&&(y=P);A=Wev(hN(y));J=Object.assign({},{command:J},void 0);d={input:A,YJ:I7(A),qr:d,config:J};d.config.Tb?d.config.Tb.identity=v:d.config.Tb={identity:v};return d}v=new g.H1("Error: Failed to create Request from Command.",J);g.jv(v)}; g.sU.Object.defineProperties(E0.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.x(Qh,E0);g.x(ZQ,Qh);ZQ.prototype.V=function(){return{input:"/getDatasyncIdsEndpoint",YJ:I7("/getDatasyncIdsEndpoint","GET"),qr:{}}}; ZQ.prototype.J=function(){return[]}; ZQ.prototype.T=function(){}; ZQ.prototype.C=function(){};var lGn={},sF3=(lGn.GET_DATASYNC_IDS=zS(ZQ),lGn);var h7={},MZy=(h7["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",h7["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",h7["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",h7["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",h7["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",h7["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",h7["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", h7["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",h7["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",h7["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",h7["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",h7["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",h7["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",h7["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",h7["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", h7["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",h7["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",h7["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",h7["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",h7["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",h7["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",h7["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", h7["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",h7.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",h7["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",h7["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",h7["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",h7["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",h7["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",h7["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", h7["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",h7["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",h7["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",h7["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",h7["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",h7["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",h7["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",h7["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",h7["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",h7["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",h7.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",h7["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",h7["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",h7["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",h7["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",h7["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",h7["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",h7["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",h7["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",h7["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",h7["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",h7["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",h7["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",h7["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",h7["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",h7["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",h7["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",h7["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",h7["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",h7["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",h7["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",h7["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", h7["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",h7["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",h7["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",h7["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",h7["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",h7["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",h7["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",h7["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",h7["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", h7["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",h7["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",h7["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",h7["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",h7["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",h7["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",h7["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",h7["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", h7),Ii={},pN3=(Ii.auto_search="LATENCY_ACTION_AUTO_SEARCH",Ii.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Ii.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Ii.app_startup="LATENCY_ACTION_APP_STARTUP",Ii.browse="LATENCY_ACTION_BROWSE",Ii.cast_splash="LATENCY_ACTION_CAST_SPLASH",Ii.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Ii.channels="LATENCY_ACTION_CHANNELS",Ii.chips="LATENCY_ACTION_CHIPS",Ii.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Ii.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", Ii.editor="LATENCY_ACTION_EDITOR",Ii.embed="LATENCY_ACTION_EMBED",Ii.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Ii.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Ii.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Ii.explore="LATENCY_ACTION_EXPLORE",Ii.favorites="LATENCY_ACTION_FAVORITES",Ii.home="LATENCY_ACTION_HOME",Ii.inboarding="LATENCY_ACTION_INBOARDING",Ii.landing="LATENCY_ACTION_LANDING",Ii.library="LATENCY_ACTION_LIBRARY",Ii.live= "LATENCY_ACTION_LIVE",Ii.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Ii.management="LATENCY_ACTION_MANAGEMENT",Ii.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Ii.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Ii.onboarding="LATENCY_ACTION_ONBOARDING",Ii.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Ii.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Ii.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Ii.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", Ii.prebuffer="LATENCY_ACTION_PREBUFFER",Ii.prefetch="LATENCY_ACTION_PREFETCH",Ii.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Ii.profile_switcher="LATENCY_ACTION_LOGIN",Ii.projects="LATENCY_ACTION_PROJECTS",Ii.reel_watch="LATENCY_ACTION_REEL_WATCH",Ii.results="LATENCY_ACTION_RESULTS",Ii.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Ii.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Ii.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Ii.review="LATENCY_ACTION_REVIEW",Ii.search_overview_answer= "LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Ii.search_ui="LATENCY_ACTION_SEARCH_UI",Ii.search_suggest="LATENCY_ACTION_SUGGEST",Ii.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Ii.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Ii.seek="LATENCY_ACTION_PLAYER_SEEK",Ii.settings="LATENCY_ACTION_SETTINGS",Ii.store="LATENCY_ACTION_STORE",Ii.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Ii.tenx="LATENCY_ACTION_TENX",Ii.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Ii.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", Ii.watch="LATENCY_ACTION_WATCH",Ii.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Ii["watch,watch7"]="LATENCY_ACTION_WATCH",Ii["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Ii["watch,watch7ad"]="LATENCY_ACTION_WATCH",Ii["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Ii.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Ii.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Ii.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Ii.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Ii.networkless_performance= "LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Ii.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Ii.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Ii.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Ii);Object.assign(pN3,MZy);g.x(lx,sI);var ZUr=new YW("aft-recorded",lx);var nkV=g.wr.ytLoggingGelSequenceIdObj_||{};g.yq("ytLoggingGelSequenceIdObj_",nkV);var sV=g.wr.ytLoggingLatencyUsageStats_||{};g.yq("ytLoggingLatencyUsageStats_",sV);MJ.prototype.tick=function(J,y,v,d){Yu(this,"tick_"+J+"_"+y)||g.AW("latencyActionTicked",{tickName:J,clientActionNonce:y},{timestamp:v,cttAuthInfo:d})}; MJ.prototype.info=function(J,y,v){var d=Object.keys(J).join("");Yu(this,"info_"+d+"_"+y)||(J=Object.assign({},J),J.clientActionNonce=y,g.AW("latencyActionInfo",J,{cttAuthInfo:v}))}; MJ.prototype.jspbInfo=function(J,y,v){for(var d="",P=0;P=P.length?(y.append(P),J-=P.length):J?(y.append(new Uint8Array(P.buffer,P.byteOffset,J)),v.append(new Uint8Array(P.buffer,P.byteOffset+J,P.length-J)),J=0):v.append(P);return{h2:y,Jx:v}}; yA.prototype.isFocused=function(J){return J>=this.J&&J=64&&(this.L.set(J.subarray(0,64-this.T),this.T),y=64-this.T,this.T=0,J4r(this,this.L,0));for(;y+64<=v;y+=64)J4r(this,J,y);y=this.start&&(J=2&&v.ssdaiAdsConfig&&TS("Unexpected ad placement renderers length",J.slot,null,{length:d.length});var P;((P=v.adSlots)==null?0:P.some(function(A){var T,M;return((T=g.R(A,yF))==null?void 0:(M=T.adSlotMetadata)==null?void 0:M.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||d.some(function(A){var T,M,n,Y; return!!((T=A.renderer)==null?0:(M=T.linearAdSequenceRenderer)==null?0:(n=M.linearAds)==null?0:n.length)||!((Y=A.renderer)==null||!Y.instreamVideoAdRenderer)})||GmH(J)})}; Rw.prototype.pO=function(){MvT(this.C)};Kt.prototype.wZ=function(){var J=this;lY6(this.T,function(){var y=Nz(J.slot.clientMetadata,"metadata_type_ad_break_request_data");return y.cueProcessedMs?J.C.get().fetch({zM:y.getAdBreakUrl,l5:new g.uI(y.c7,y.tb),cueProcessedMs:y.cueProcessedMs}):J.C.get().fetch({zM:y.getAdBreakUrl,l5:new g.uI(y.c7,y.tb)})})}; Kt.prototype.pO=function(){MvT(this.T)};zI.prototype.wZ=function(){var J=this.slot.clientMetadata,y,v=(y=this.slot.fulfilledLayout)!=null?y:Nz(J,"metadata_type_fulfilled_layout");icr(this.callback,this.slot,v)}; zI.prototype.pO=function(){P6(this.callback,this.slot,new Q("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")};EA.prototype.build=function(J,y){return y.fulfilledLayout||k8(y,{a_:["metadata_type_fulfilled_layout"]})?new zI(J,y):this.J(J,y)};g.x(Qb,EA); Qb.prototype.J=function(J,y){if(k8(y,{a_:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Rw(J,y,this.C,this.T,this.lN,this.gj,this.jb,this.bA,this.dn);if(k8(y,{a_:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Kt(J,y,this.C,this.T,this.lN,this.gj);throw new Q("Unsupported slot with type: "+y.slotType+" and client metadata: "+Rh(y.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.x(Zd,EA);Zd.prototype.J=function(J,y){throw new Q("Unsupported slot with type: "+y.slotType+" and client metadata: "+Rh(y.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.a=bTU.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){}; g.a.release=function(){}; g.a.startRendering=function(J){if(J.layoutId!==this.layout.layoutId)this.callback.nA(this.slot,J,new Hx("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 y=Nz(J.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.YD(this.slot,J),uh6(this.J, this.slot,y)):TS("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,J)}}; g.a.iJ=function(J,y){J.layoutId!==this.layout.layoutId?this.callback.nA(this.slot,J,new Hx("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.u6(this.slot,J,y),j5j(this),ev3(this))};g.x(da,g.yK);g.a=da.prototype;g.a.h9=function(){return this.T.slot}; g.a.xB=function(){return this.T.layout}; g.a.init=function(){this.J.get().addListener(this)}; g.a.release=function(){this.J.get().removeListener(this);this.dispose()}; g.a.LS=function(){}; g.a.mz=function(){}; g.a.EE=function(){}; g.a.SB=function(){}; g.a.startRendering=function(J){var y=this;vI(this.T,J,function(){return void y.w3()})}; g.a.w3=function(){this.J.get().w3(this.C)}; g.a.iJ=function(J,y){var v=this;vI(this.T,J,function(){var d=v.J.get();OMH(d,v.C,3);v.C=[];v.callback.u6(v.slot,J,y)})}; g.a.JY=function(){this.J.tY()||this.J.get().removeListener(this);g.yK.prototype.JY.call(this)}; g.sU.Object.defineProperties(da.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.T.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.T.layout}}});YM.prototype.ez=function(J,y){y=y===void 0?!1:y;var v=(this.J.get(J)||[]).concat();if(y=y&&rm3(J)){var d=this.J.get(y);d&&v.push.apply(v,g.r(d))}L4(this,J,v);this.C.add(J);y&&this.C.add(y)}; YM.prototype.xD=function(J,y){y=y===void 0?!1:y;if(!this.C.has(J)){var v=y&&rm3(J);v&&(y=!this.C.has(v));this.ez(J,y)}};g.x(CFP,Jl);g.x(OQ,da);g.a=OQ.prototype;g.a.AA=function(J,y){l4("ads-engagement-panel-layout",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),g.R(this.xB().renderingContent,mM),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(y,v,d,P,A){return new CFP(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};g.x(IYc,Jl);g.x(D0,da);g.a=D0.prototype;g.a.AA=function(J,y){l4("banner-image",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),g.R(this.xB().renderingContent,Oj),this.callback,"metadata_type_banner_image_layout_view_model",function(y,v,d,P,A){return new IYc(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};g.x(cI,Jl);g.x(Gf,da);g.a=Gf.prototype;g.a.AA=function(J,y){l4("action-companion",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),g.R(this.xB().renderingContent,Wn),this.callback,"metadata_type_action_companion_ad_renderer",function(y,v,d,P,A){return new cI(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){y.layoutId===this.layout.layoutId?this.Nx.xD("impression"):this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};g.x(fY6,Jl);g.x(b4,da);g.a=b4.prototype;g.a.AA=function(J,y){l4("image-companion",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),g.R(this.xB().renderingContent,ao),this.callback,"metadata_type_image_companion_ad_renderer",function(y,v,d,P,A){return new fY6(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){y.layoutId===this.layout.layoutId?this.Nx.xD("impression"):this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};g.x(utm,Jl);g.x(FT,da);g.a=FT.prototype;g.a.AA=function(J,y){l4("shopping-companion",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(y,v,d,P,A){return new utm(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){y.layoutId===this.layout.layoutId?this.Nx.xD("impression"):this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};g.x(eJ,da);g.a=eJ.prototype;g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(y,v,d,P,A){return new cI(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(){}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)}; g.a.AA=function(){};g.a=zvm.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){this.bA.get().addListener(this);this.bA.get().rN.push(this);var J=Nz(this.layout.clientMetadata,"metadata_type_video_length_seconds"),y=Nz(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Mg(this.layout.C8)&&PE(this.gp.get(),this.layout.layoutId,{u0:y,er:J,listener:this})}; g.a.release=function(){this.bA.get().removeListener(this);Lh3(this.bA.get(),this);Mg(this.layout.C8)&&Ad(this.gp.get(),this.layout.layoutId)}; g.a.startRendering=function(J){this.callback.YD(this.slot,J)}; g.a.iJ=function(J,y){pvj(this.gj.get())&&!this.C&&(this.Nx.xD("abandon"),this.C=!0);this.callback.u6(this.slot,J,y)}; g.a.Y6=function(J){switch(J.id){case "part2viewed":this.Nx.xD("start");this.Nx.xD("impression");break;case "videoplaytime25":this.Nx.xD("first_quartile");break;case "videoplaytime50":this.Nx.xD("midpoint");break;case "videoplaytime75":this.Nx.xD("third_quartile");break;case "videoplaytime100":pvj(this.gj.get())?this.C||(this.Nx.xD("complete"),this.C=!0):this.Nx.xD("complete");xM(this.Nx)&&WI(this.Nx,Infinity,!0);U4R(this.gj.get())&&jJ(this.T,Infinity,!0);break;case "engagedview":xM(this.Nx)||this.Nx.xD("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:TS("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.a.onVolumeChange=function(){}; g.a.zJ=function(){}; g.a.E3=function(){}; g.a.Do=function(){}; g.a.onFullscreenToggled=function(){}; g.a.Ho=function(){}; g.a.v_=function(){}; g.a.ea=function(J){U4R(this.gj.get())&&jJ(this.T,J*1E3,!1);xM(this.Nx)&&WI(this.Nx,J*1E3,!1)}; g.a.ra=function(){}; g.a.XL=function(){this.Nx.xD("active_view_measurable")}; g.a.vB=function(){this.Nx.xD("active_view_viewable")}; g.a.HB=function(){this.Nx.xD("active_view_fully_viewable_audible_half_duration")}; g.a.x9=function(){this.Nx.xD("audio_measurable")}; g.a.hw=function(){this.Nx.xD("audio_audible")};g.x(mK,da);g.a=mK.prototype;g.a.init=function(){da.prototype.init.call(this);var J=Nz(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),y={adsClientData:this.layout.c$};this.C.push(new tF(J,this.layout.layoutId,Nz(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),y,!0))}; g.a.ET=function(){this.W||this.bA.get().resumeVideo(1)}; g.a.startRendering=function(J){da.prototype.startRendering.call(this,J);VC(this.bA.get(),"ad-showing");this.callback.YD(this.slot,J);this.V.gO=this}; g.a.iJ=function(J,y){da.prototype.iJ.call(this,J,y);LJ(this.bA.get(),"ad-showing");w1(this.V,this)}; g.a.AA=function(J){switch(J){case "ad-info-icon-button":(this.W=this.bA.get().JM(1))||this.bA.get().pauseVideo();break;case "visit-advertiser":this.bA.get().pauseVideo()}}; g.a.JY=function(){da.prototype.JY.call(this)};g.x(BI,Jl);g.x(qg,da);g.a=qg.prototype;g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(y,v,d,P,A){return new BI(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(){}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)}; g.a.AA=function(){};g.x(ra,Jl);g.x($M,da);$M.prototype.init=function(){da.prototype.init.call(this);this.C.push(new ra(g.R(this.layout.renderingContent,Xr),this.layout.layoutId,{adsClientData:this.layout.c$}))}; $M.prototype.AA=function(){RR(this.W.get(),this.V)&&Tf(this.jb.get(),3)}; $M.prototype.startRendering=function(J){da.prototype.startRendering.call(this,J);this.callback.YD(this.slot,J)}; $M.prototype.JY=function(){da.prototype.JY.call(this)};g.x(ob,Jl);g.x(C4,da);C4.prototype.init=function(){da.prototype.init.call(this);var J=g.R(this.layout.renderingContent,zf)||Nz(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),y=PI(this.Nx);this.C.push(new ob(J,y,this.layout.layoutId,{adsClientData:this.layout.c$},!0,!0))}; C4.prototype.startRendering=function(J){da.prototype.startRendering.call(this,J);this.callback.YD(this.slot,J)}; C4.prototype.AA=function(J,y){if(y===this.layout.layoutId)switch(J){case "skip-button":var v;(J=(v=Nz(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&J.gQ(this.h9(),this.layout)}}; C4.prototype.JY=function(){da.prototype.JY.call(this)};Ib.prototype.build=function(J,y,v,d){if(hL(d,{a_:["metadata_type_ad_break_response_data"],BF:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new bTU(J,v,d,this.T,this.J,this.C);throw new Hx("Unsupported layout with type: "+d.layoutType+" and client metadata: "+Rh(d.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.x(Q5r,Jl);g.x(p4,da);g.a=p4.prototype;g.a.AA=function(J,y){l4("ads-engagement-panel",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),g.R(this.xB().renderingContent,x4),this.callback,"metadata_type_ads_engagement_panel_renderer",function(y,v,d,P,A){return new Q5r(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){y.layoutId===this.layout.layoutId?this.Nx.xD("impression"):this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};g.x(UQ,da);g.a=UQ.prototype;g.a.AA=function(J,y){l4("top-banner-image-text-icon-buttoned",J,this.L.get().Ir,this.jb.get(),this.W,this.V,this.h9(),this.xB(),y)}; g.a.startRendering=function(J){AL(this.Nx,this.h9(),this.xB(),g.R(this.xB().renderingContent,ge),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(y,v,d,P,A){return new BI(y,v,d,P,A)},this.C); da.prototype.startRendering.call(this,J)}; g.a.YD=function(J,y){this.V===y.layoutId&&(this.W===null?this.W=this.jb.get().I5():TS("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.JY=function(){v6(this.Fr(),this);da.prototype.JY.call(this)};Jld.prototype.build=function(J,y,v,d){if(hL(d,ZTx())||g.R(d.renderingContent,x4)!==void 0)return new p4(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,UF6())||g.R(d.renderingContent,Wn)!==void 0)return new Gf(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,iTR())||g.R(d.renderingContent,ao)!==void 0)return new b4(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,HTP()))return new FT(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,KUd()))return new eJ(J,v,d,this.nf,this.jb,this.Fr, this.gp,this.C);if(hL(d,pgd())||g.R(d.renderingContent,Oj)!==void 0)return new D0(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,wg3())||g.R(d.renderingContent,ge)!==void 0)return new UQ(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,kmH()))return new qg(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);if(hL(d,hvr())||g.R(d.renderingContent,mM)!==void 0)return new OQ(J,v,d,this.nf,this.jb,this.Fr,this.gp,this.C);throw new Hx("Unsupported layout with type: "+d.layoutType+" and client metadata: "+ Rh(d.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};ylc.prototype.build=function(J,y,v,d){if(hL(d,{a_:["metadata_type_linked_player_bytes_layout_id"],BF:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new $M(J,v,d,this.nf,this.jb,this.C);throw new Hx("Unsupported layout with type: "+d.layoutType+" and client metadata: "+Rh(d.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.a=vH2.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){}; g.a.release=function(){}; g.a.startRendering=function(J){J.layoutId!==this.layout.layoutId?this.callback.nA(this.slot,J,new Hx("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.YD(this.slot,J),this.Nx.xD("impression"),lv(this.Oh,J,"normal"))}; g.a.iJ=function(J,y){J.layoutId!==this.layout.layoutId?this.callback.nA(this.slot,J,new Hx("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.u6(this.slot,J,y)};g.a=P7U.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){}; g.a.release=function(){}; g.a.startRendering=function(J){J.layoutId!==this.layout.layoutId?this.callback.nA(this.slot,J,new Hx("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.YD(this.slot,J),this.Nx.xD("impression"),lv(this.Oh,J,"normal"))}; g.a.iJ=function(J,y){J.layoutId!==this.layout.layoutId?this.callback.nA(this.slot,J,new Hx("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.u6(this.slot,J,y)};f4.prototype.build=function(J,y,v,d){if(!this.gj.get().S.Y().X("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(hL(d,dK2()))return new vH2(J,v,d,this.jb,this.Oh)}else if(hL(d,{a_:[],BF:["LAYOUT_TYPE_FORECASTING"]}))return new P7U(J,v,d,this.jb,this.Oh);throw new Hx("Unsupported layout with type: "+d.layoutType+" and client metadata: "+Rh(d.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.x(leT,Jl);g.x(i4,da);g.a=i4.prototype;g.a.init=function(){da.prototype.init.call(this);var J=g.R(this.layout.renderingContent,K4)||Nz(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),y={adsClientData:this.layout.c$};this.C.push(new leT(J,Nz(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,y))}; g.a.ET=function(){this.W||this.bA.get().resumeVideo(2)}; g.a.startRendering=function(J){da.prototype.startRendering.call(this,J);this.callback.YD(this.slot,J);this.V.gO=this}; g.a.iJ=function(J,y){da.prototype.iJ.call(this,J,y);w1(this.V,this)}; g.a.AA=function(J,y){if(!ow(this.gj.get(),"stop_handling_click_for_non_rendering_overlay_layout")||y===this.layout.layoutId){if(RR(this.L.get(),this.G))switch(J){case "visit-advertiser-link":Tf(this.jb.get(),3)}switch(J){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.bA.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.bA.get().JM(2))||this.bA.get().pauseVideo();break; case "visit-advertiser-link":this.bA.get().pauseVideo();MV6(this).Z3();break;case "skip-button":if(J=MV6(this),this.layout.renderingContent&&!fA(this.layout.clientMetadata,"metadata_type_dai")||!J||!J.DR){var v;(J=(v=Nz(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&J.gQ(this.h9(),this.layout)}else TS("Requesting to skip by LegacyPlayerBytes when components enabled"),J.BB(this.h9(),this.layout)}}}; g.a.JY=function(){da.prototype.JY.call(this)};g.x(u4,da);g.a=u4.prototype;g.a.init=function(){da.prototype.init.call(this);var J=g.R(this.layout.renderingContent,Rb)||Nz(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),y={adsClientData:this.layout.c$},v;(v=!!this.layout.renderingContent)||(v=HI(this),v=!(v&&v.DR));this.C.push(new tF(J,this.layout.layoutId,Nz(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),y,v))}; g.a.ET=function(){this.W||this.bA.get().resumeVideo(2)}; g.a.startRendering=function(J){da.prototype.startRendering.call(this,J);this.callback.YD(this.slot,J);this.V.gO=this}; g.a.iJ=function(J,y){da.prototype.iJ.call(this,J,y);w1(this.V,this)}; g.a.AA=function(J,y){if(!this.gj||!ow(this.gj.get(),"stop_handling_click_for_non_rendering_overlay_layout")||y===this.layout.layoutId){if(RR(this.L.get(),this.G))switch(J){case "visit-advertiser":Tf(this.jb.get(),3)}switch(J){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.W||this.bA.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.W=this.bA.get().JM(2))||this.bA.get().pauseVideo();break; case "visit-advertiser":this.bA.get().pauseVideo();HI(this).Z3();break;case "skip-button":if(J=HI(this),this.layout.renderingContent&&!fA(this.layout.clientMetadata,"metadata_type_dai")||!J||!J.DR){var v;(J=(v=Nz(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&J.gQ(this.h9(),this.layout)}else TS("Requesting to skip by LegacyPlayerBytes"),J.BB(this.h9(),this.layout)}}}; g.a.JY=function(){da.prototype.JY.call(this)};g.x(sxr,Jl);g.x(XT,da);g.a=XT.prototype;g.a.startRendering=function(J){var y=this;vI(this.T,J,function(){y.C.push(new sxr(Nz(y.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),J.layoutId,J.c$));y.w3();y.callback.YD(y.slot,J);g.k(d1(y.bA.get(),1),512)&&y.callback.nA(y.h9(),y.xB(),new Hx("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.a.v_=function(){}; g.a.Ho=function(J){if(J.state.isError()){var y;this.callback.nA(this.h9(),this.xB(),new Hx("A player error happened during adNotify",{playerErrorCode:(y=J.state.Zx)==null?void 0:y.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.a.onFullscreenToggled=function(){}; g.a.E3=function(){}; g.a.Do=function(){}; g.a.zJ=function(){}; g.a.onVolumeChange=function(){}; g.a.Y6=function(){}; g.a.ra=function(){}; g.a.AA=function(){};g.x(Sxj,Jl);g.x(Ng,da);Ng.prototype.init=function(){da.prototype.init.call(this);var J=g.R(this.layout.renderingContent,kM),y=PI(this.Nx);this.C.push(new Sxj(J,y,this.layout.layoutId,{adsClientData:this.layout.c$}))}; Ng.prototype.startRendering=function(J){da.prototype.startRendering.call(this,J);this.callback.YD(this.slot,J)}; Ng.prototype.AA=function(J,y){if(y===this.layout.layoutId)switch(J){case "skip-button":var v;(J=(v=Nz(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:v.current)&&J.gQ(this.h9(),this.layout)}}; Ng.prototype.JY=function(){da.prototype.JY.call(this)};VV6.prototype.build=function(J,y,v,d){if(J=EQ(J,v,d,this.nf,this.bA,this.jb,this.T,this.C,this.gj))return J;throw new Hx("Unsupported layout with type: "+d.layoutType+" and client metadata: "+Rh(d.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.a=wa.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){this.bA.get().addListener(this);this.bA.get().rN.push(this);if(this.layout.renderingContent){var J=this.Sb.get();J=$z(J,1).ZG/1E3}else J=Nz(this.layout.clientMetadata,"metadata_type_video_length_seconds");var y=g.R(this.layout.renderingContent,ij),v=y?n4(y.pings):Nz(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");y=y?qNP(y.pings):Nz(this.layout.clientMetadata,"metadata_type_active_view_identifier");Mg(this.layout.C8)&&PE(this.gp.get(),this.layout.layoutId, {u0:v,er:J,listener:this,XY:y})}; g.a.release=function(){this.bA.get().removeListener(this);Lh3(this.bA.get(),this);Mg(this.layout.C8)&&Ad(this.gp.get(),this.layout.layoutId)}; g.a.startRendering=function(J){this.callback.YD(this.slot,J)}; g.a.iJ=function(J,y){JT(this,"abandon");this.callback.u6(this.slot,J,y)}; g.a.Y6=function(J){switch(J.id){case "part2viewed":this.Nx.xD("start");this.Nx.xD("impression");break;case "videoplaytime25":this.Nx.xD("first_quartile");break;case "videoplaytime50":this.Nx.xD("midpoint");break;case "videoplaytime75":this.Nx.xD("third_quartile");break;case "videoplaytime100":JT(this,"complete");xM(this.Nx)&&WI(this.Nx,Infinity,!0);break;case "engagedview":xM(this.Nx)||this.Nx.xD("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:TS("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.a.onVolumeChange=function(){}; g.a.zJ=function(){}; g.a.E3=function(){}; g.a.Do=function(){}; g.a.onFullscreenToggled=function(){}; g.a.Ho=function(J){this.C||(g.na(J,4)&&!g.na(J,2)?tL(this.Nx,"pause"):Mu(J,4)<0&&!(Mu(J,2)<0)&&tL(this.Nx,"resume"))}; g.a.v_=function(){}; g.a.ea=function(J){xM(this.Nx)&&WI(this.Nx,J*1E3,!1)}; g.a.ra=function(){JT(this,"swipe")}; g.a.XL=function(){this.Nx.xD("active_view_measurable")}; g.a.vB=function(){this.Nx.xD("active_view_viewable")}; g.a.HB=function(){this.Nx.xD("active_view_fully_viewable_audible_half_duration")}; g.a.x9=function(){this.Nx.xD("audio_measurable")}; g.a.hw=function(){this.Nx.xD("audio_audible")};LtU.prototype.build=function(J,y,v,d){if(v.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.R(d.renderingContent,ij)!==void 0)return new wa(J,v,d,this.bA,this.jb,this.gj,this.gp,this.Sb);y=["metadata_type_ad_placement_config"];for(var P=g.D(SJ()),A=P.next();!A.done;A=P.next())y.push(A.value);if(hL(d,{a_:y,BF:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return v.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new wa(J,v,d,this.bA,this.jb,this.gj,this.gp,this.Sb):new zvm(J,v,d,this.bA,this.jb, this.W$,this.gj,this.gp);throw new Hx("Unsupported layout with type: "+d.layoutType+" and client metadata: "+Rh(d.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var Pz={contentCpn:"",B3:new Map};bfR.prototype.eb=function(J,y){var v={};y=Object.assign({},y,(v.cc=this.zP.fE(),v));this.zP.S.dj(J,y)};var eaX,u3; eaX={L0Y:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",K0j:"AUTHENTICATION_MALFORMED",nHA:"AUTHENTICATION_MISSING",zaY:"BAD_REQUEST",u1j:"CAST_SESSION_DEVICE_MISMATCHED",oHX:"CAST_SESSION_VIDEO_MISMATCHED",sdY:"CAST_TOKEN_EXPIRED",qhR:"CAST_TOKEN_FAILED",IaB:"CAST_TOKEN_MALFORMED",QdR:"CGI_PARAMS_MALFORMED",w_Y:"CGI_PARAMS_MISSING",RaR:"DEVICE_FALLBACK",srB:"GENERIC_WITH_LINK_AND_CPN",q5B:"ERROR_HDCP",IoK:"LICENSE",wOX:"VIDEO_UNAVAILABLE",jrB:"FORMAT_UNAVAILABLE",S5B:"GEO_FAILURE", U$b:"HTML5_AUDIO_RENDERER_ERROR",D$j:"GENERIC_WITHOUT_LINK",PpB:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",rvW:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",e_k:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",FnX:"HTML5_SPS_UMP_STATUS_REJECTED",Jhj:"INVALID_DRM_MESSAGE",DkX:"PURCHASE_NOT_FOUND",Puf:"PURCHASE_REFUNDED",lCb:"RENTAL_EXPIRED",g$R:"RETRYABLE_ERROR",wcf:"SERVER_ERROR",mPB:"SIGNATURE_EXPIRED",xPB:"STOPPED_BY_ANOTHER_PLAYBACK",HTX:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",XcY:"STREAMING_NOT_ALLOWED", v$W:"STREAM_LICENSE_NOT_FOUND",UPX:"TOO_MANY_REQUESTS",DPB:"TOO_MANY_REQUESTS_WITH_LINK",PCB:"TOO_MANY_STREAMS_PER_ENTITLEMENT",rxB:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",y7Y:"VIDEO_FORBIDDEN",bib:"VIDEO_NOT_FOUND",JRB:"BROWSER_OR_EXTENSION_ERROR"};u3={}; g.Xx=(u3.ALREADY_PINNED_ON_A_DEVICE="Este video ya se descarg\u00f3 en la cantidad m\u00e1xima de dispositivos permitidos por el propietario de los derechos de autor. Antes de que puedas reproducir el video en este dispositivo, debes desvincularlo de cualquier otro.",u3.DEVICE_FALLBACK="Este video no est\u00e1 disponible en este dispositivo.",u3.GENERIC_WITH_LINK_AND_CPN="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde (ID de reproducci\u00f3n: $CPN). $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", u3.LICENSE="Se produjo un error de licencia con este video.",u3.VIDEO_UNAVAILABLE="Video no disponible",u3.FORMAT_UNAVAILABLE="Este video no est\u00e1 disponible en la calidad seleccionada. Vuelve a intentarlo.",u3.GEO_FAILURE="Este video no est\u00e1 disponible en tu pa\u00eds.",u3.HTML5_AUDIO_RENDERER_ERROR="Se produjo un error en el procesador de audio. Reinicia tu computadora.",u3.GENERIC_WITHOUT_LINK="Se produjo un error. Vuelve a intentarlo m\u00e1s tarde.",u3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK= "No se admite este formato de video.",u3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="En este momento, tu navegador no reconoce ninguno de los formatos de video disponibles. $BEGIN_LINKHaz clic aqu\u00ed para ver las preguntas frecuentes sobre el video HTML5.$END_LINK",u3.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="No puedes reproducir este video en tu navegador. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",u3.HTML5_SPS_UMP_STATUS_REJECTED="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK", u3.INVALID_DRM_MESSAGE="El mensaje espec\u00edfico para el sistema DRM no es v\u00e1lido.",u3.PURCHASE_NOT_FOUND="Este es un video pagado.",u3.PURCHASE_REFUNDED="La compra de este video se reembols\u00f3.",u3.RENTAL_EXPIRED="El per\u00edodo de alquiler de este video termin\u00f3.",u3.CAST_SESSION_DEVICE_MISMATCHED="El dispositivo en la sesi\u00f3n de transmisi\u00f3n no coincide con el dispositivo solicitado.",u3.CAST_SESSION_VIDEO_MISMATCHED="El video en la sesi\u00f3n de transmisi\u00f3n no coincide con el video solicitado.", u3.CAST_TOKEN_FAILED="La sesi\u00f3n de transmisi\u00f3n no est\u00e1 disponible. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",u3.CAST_TOKEN_EXPIRED="La sesi\u00f3n de transmisi\u00f3n termin\u00f3. Actualiza la p\u00e1gina.",u3.CAST_TOKEN_MALFORMED="Sesi\u00f3n de transmisi\u00f3n no v\u00e1lida. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde.",u3.SERVER_ERROR="Se produjo un error interno en el servidor. Vuelve a intentarlo m\u00e1s tarde.",u3.STOPPED_BY_ANOTHER_PLAYBACK= "Tu cuenta est\u00e1 reproduciendo este video en otra ubicaci\u00f3n. Vuelve a cargar la p\u00e1gina para continuar mirando.",u3.STREAM_LICENSE_NOT_FOUND="Se interrumpi\u00f3 la reproducci\u00f3n del video. Vuelve a intentarlo.",u3.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Utilizaste demasiadas direcciones IP o dispositivos durante las \u00faltimas 24 horas.",u3.STREAMING_NOT_ALLOWED="No se puede reproducir el video porque est\u00e1 vinculado con otro dispositivo.",u3.RETRYABLE_ERROR="Se produjo un error temporal en el servidor. Vuelve a intentarlo m\u00e1s tarde.", u3.TOO_MANY_REQUESTS="Accede para mirar el video.",u3.TOO_MANY_REQUESTS_WITH_LINK="Haz $BEGIN_LINKclic aqu\u00ed$END_LINK para mirar este video en YouTube.",u3.TOO_MANY_STREAMS_PER_USER="Se detuvo la reproducci\u00f3n porque se est\u00e1n reproduciendo demasiados videos que pertenecen a la misma cuenta.",u3.TOO_MANY_STREAMS_PER_ENTITLEMENT="Se detuvo la reproducci\u00f3n porque este video se est\u00e1 reproduciendo en demasiados dispositivos.",u3.UNSUPPORTED_DEVICE="La reproducci\u00f3n no es compatible con este dispositivo.", u3.VIDEO_FORBIDDEN="El acceso a este video est\u00e1 prohibido.",u3.VIDEO_NOT_FOUND="No se puede encontrar este video.",u3.BROWSER_OR_EXTENSION_ERROR="Se produjo un error. Actualiza la p\u00e1gina o vuelve a intentarlo m\u00e1s tarde. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK",u3);var miy;var BsH=g.IM(),q3q=BsH.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!q3q||q3q.length<2)miy=void 0;else{var rbb=BsH.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);miy=rbb&&rbb.length===6?Number(rbb[5].replace("_",".")):0}var E2=miy,U2=E2>=0;g.x(g.gf,b$);g.gf.prototype.Z=function(J,y,v,d,P){return b$.prototype.Z.call(this,J,y,v,d,P)};var H5={},CL=(H5.FAIRPLAY="fairplay",H5.PLAYREADY="playready",H5.WIDEVINE="widevine",H5.CLEARKEY=null,H5.FLASHACCESS=null,H5.UNKNOWN=null,H5.WIDEVINE_CLASSIC=null,H5);D9.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var XJ={},fC=(XJ.WIDTH={name:"width",video:!0,valid:640,vc:99999},XJ.HEIGHT={name:"height",video:!0,valid:360,vc:99999},XJ.FRAMERATE={name:"framerate",video:!0,valid:30,vc:9999},XJ.BITRATE={name:"bitrate",video:!0,valid:3E5,vc:2E9},XJ.EOTF={name:"eotf",video:!0,valid:"bt709",vc:"catavision"},XJ.CHANNELS={name:"channels",video:!1,valid:2,vc:99},XJ.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",vc:"invalidformat"},XJ.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", vc:"nope"},XJ.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",vc:"av99.0.05M.08"},XJ.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",vc:"invalid"},XJ.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",vc:"false"},XJ);var $iw=["h","H"],oky=["9","("],CaX=["9h","(h"],han=["8","*"],IGn=["a","A"],pZn=["o","O"],Uin=["m","M"],fG0=["mac3","MAC3"],ijC=["meac3","MEAC3"],Np={},IqH=(Np.h=$iw,Np.H=$iw,Np["9"]=oky,Np["("]=oky,Np["9h"]=CaX,Np["(h"]=CaX,Np["8"]=han,Np["*"]=han,Np.a=IGn,Np.A=IGn,Np.o=pZn,Np.O=pZn,Np.m=Uin,Np.M=Uin,Np.mac3=fG0,Np.MAC3=fG0,Np.meac3=ijC,Np.MEAC3=ijC,Np),unX=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),cLj=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var w={},eA=(w["0"]="f",w["160"]="h",w["133"]="h",w["134"]="h",w["135"]="h",w["136"]="h",w["137"]="h",w["264"]="h",w["266"]="h",w["138"]="h",w["298"]="h",w["299"]="h",w["304"]="h",w["305"]="h",w["214"]="h",w["216"]="h",w["374"]="h",w["375"]="h",w["140"]="a",w["141"]="a",w["327"]="sa",w["258"]="m",w["380"]="mac3",w["328"]="meac3",w["161"]="H",w["142"]="H",w["143"]="H",w["144"]="H",w["222"]="H",w["223"]="H",w["145"]="H",w["224"]="H",w["225"]="H",w["146"]="H",w["226"]="H",w["227"]="H",w["147"]="H",w["384"]= "H",w["376"]="H",w["385"]="H",w["377"]="H",w["149"]="A",w["261"]="M",w["381"]="MAC3",w["329"]="MEAC3",w["598"]="9",w["278"]="9",w["242"]="9",w["243"]="9",w["244"]="9",w["775"]="9",w["776"]="9",w["777"]="9",w["778"]="9",w["779"]="9",w["780"]="9",w["781"]="9",w["782"]="9",w["783"]="9",w["247"]="9",w["248"]="9",w["353"]="9",w["355"]="9",w["356"]="9",w["271"]="9",w["577"]="9",w["313"]="9",w["579"]="9",w["272"]="9",w["302"]="9",w["303"]="9",w["407"]="9",w["408"]="9",w["308"]="9",w["315"]="9",w["330"]= "9h",w["331"]="9h",w["332"]="9h",w["333"]="9h",w["334"]="9h",w["335"]="9h",w["336"]="9h",w["337"]="9h",w["338"]="so",w["600"]="o",w["250"]="o",w["251"]="o",w["774"]="o",w["194"]="*",w["195"]="*",w["220"]="*",w["221"]="*",w["196"]="*",w["197"]="*",w["279"]="(",w["280"]="(",w["317"]="(",w["318"]="(",w["273"]="(",w["274"]="(",w["357"]="(",w["358"]="(",w["275"]="(",w["359"]="(",w["360"]="(",w["276"]="(",w["583"]="(",w["584"]="(",w["314"]="(",w["585"]="(",w["561"]="(",w["277"]="(",w["361"]="(h",w["362"]= "(h",w["363"]="(h",w["364"]="(h",w["365"]="(h",w["366"]="(h",w["591"]="(h",w["592"]="(h",w["367"]="(h",w["586"]="(h",w["587"]="(h",w["368"]="(h",w["588"]="(h",w["562"]="(h",w["409"]="(",w["410"]="(",w["411"]="(",w["412"]="(",w["557"]="(",w["558"]="(",w["394"]="1",w["395"]="1",w["396"]="1",w["397"]="1",w["398"]="1",w["399"]="1",w["720"]="1",w["721"]="1",w["400"]="1",w["401"]="1",w["571"]="1",w["402"]="1",w["694"]="1h",w["695"]="1h",w["696"]="1h",w["697"]="1h",w["698"]="1h",w["699"]="1h",w["700"]="1h", w["701"]="1h",w["702"]="1h",w["703"]="1h",w["386"]="3",w["387"]="w",w["406"]="6",w["787"]="1",w["788"]="1",w["548"]="1e",w["549"]="1e",w["550"]="1e",w["551"]="1e",w["809"]="1e",w["810"]="1e",w["552"]="1e",w["811"]="1e",w["812"]="1e",w["553"]="1e",w["813"]="1e",w["814"]="1e",w["554"]="1e",w["815"]="1e",w["816"]="1e",w["555"]="1e",w["817"]="1e",w["818"]="1e",w["572"]="1e",w["556"]="1e",w["645"]="(",w["646"]="(",w["647"]="(",w["648"]="(",w["649"]="(",w["650"]="(",w["651"]="(",w["652"]="(",w["653"]="(", w["654"]="(",w["655"]="(",w["656"]="(",w["657"]="(",w["658"]="(",w["659"]="(",w["660"]="(",w["661"]="(",w["662"]="(",w["663"]="(",w["664"]="(",w["665"]="(",w["666"]="(",w["667"]="(",w["668"]="(",w["669"]="(",w["670"]="(",w["671"]="(",w["672"]="(",w["673"]="(",w["674"]="(h",w["675"]="(h",w["676"]="(h",w["677"]="(h",w["678"]="(h",w["679"]="(h",w["680"]="(h",w["681"]="(h",w["682"]="(h",w["683"]="(h",w["684"]="(h",w["685"]="(h",w["686"]="(h",w["687"]="(h",w["688"]="A",w["689"]="A",w["690"]="A",w["691"]= "MEAC3",w["773"]="i",w["806"]="I",w["805"]="I",w["829"]="9",w["830"]="9",w["831"]="9",w["832"]="9",w["833"]="9",w["834"]="9",w["835"]="9",w["836"]="9",w["892"]="9",w["893"]="9",w["837"]="9",w["838"]="9",w["839"]="9",w["840"]="9",w["841"]="(",w["842"]="(",w["843"]="(",w["844"]="(",w["845"]="(",w["846"]="(",w["847"]="(",w["848"]="(",w["894"]="(",w["895"]="(",w["849"]="(",w["850"]="(",w["851"]="(",w["852"]="(",w["865"]="9",w["866"]="9",w["867"]="9",w["868"]="9",w["869"]="9",w["870"]="9",w["871"]="9", w["872"]="9",w["896"]="9",w["897"]="9",w["873"]="9",w["874"]="9",w["875"]="9",w["876"]="9",w["877"]="(",w["878"]="(",w["879"]="(",w["880"]="(",w["881"]="(",w["882"]="(",w["883"]="(",w["884"]="(",w["898"]="(",w["899"]="(",w["885"]="(",w["886"]="(",w["887"]="(",w["888"]="(",w);var Ri={},aqm=(Ri.STEREO_LAYOUT_UNKNOWN=0,Ri.STEREO_LAYOUT_LEFT_RIGHT=1,Ri.STEREO_LAYOUT_TOP_BOTTOM=2,Ri);var K2,FK;K2={};g.Gt=(K2.auto=0,K2.tiny=144,K2.light=144,K2.small=240,K2.medium=360,K2.large=480,K2.hd720=720,K2.hd1080=1080,K2.hd1440=1440,K2.hd2160=2160,K2.hd2880=2880,K2.highres=4320,K2);FK={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Fk="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");bU.prototype.isHdr=function(){return this.C==="smpte2084"||this.C==="arib-std-b67"};m3.prototype.Tg=function(){return this.containerType===2}; m3.prototype.isEncrypted=function(){return!!this.E8}; m3.prototype.yQ=function(){return!!this.audio}; m3.prototype.OH=function(){return!!this.video}; var rf=!1;g.x(J8,g.yK);g.a=J8.prototype;g.a.appendBuffer=function(J,y,v){if(this.C0.p9()!==this.appendWindowStart+this.start||this.C0.Db()!==this.appendWindowEnd+this.start||this.C0.Vl()!==this.timestampOffset+this.start)this.C0.supports(1),this.C0.Bp(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.C0.kf(this.timestampOffset+this.start);this.C0.appendBuffer(J,y,v)}; g.a.abort=function(){this.C0.abort()}; g.a.remove=function(J,y){this.C0.remove(J+this.start,y+this.start)}; g.a.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.a.clear=function(){this.C0.clear()}; g.a.Bp=function(J,y){this.appendWindowStart=J;this.appendWindowEnd=y}; g.a.b3=function(){return this.timestampOffset+this.start}; g.a.p9=function(){return this.appendWindowStart}; g.a.Db=function(){return this.appendWindowEnd}; g.a.kf=function(J){this.timestampOffset=J}; g.a.Vl=function(){return this.timestampOffset}; g.a.Fo=function(J){J=this.C0.Fo(J===void 0?!1:J);return wf(J,this.start,this.end)}; g.a.Bn=function(){return this.C0.Bn()}; g.a.t2=function(){return this.C0.t2()}; g.a.Ol=function(){return this.C0.Ol()}; g.a.KS=function(){return this.C0.KS()}; g.a.IV=function(){this.C0.IV()}; g.a.TH=function(J){return this.C0.TH(J)}; g.a.xL=function(){return this.C0.xL()}; g.a.aS=function(){return this.C0.aS()}; g.a.Px=function(J,y,v){this.C0.Px(J,y,v)}; g.a.rl=function(J,y,v){this.C0.rl(J,y,v)}; g.a.DU=function(J,y){return this.C0.DU(J,y)}; g.a.supports=function(J){return this.C0.supports(J)}; g.a.TO=function(){return this.C0.TO()}; g.a.isView=function(){return!0}; g.a.Am=function(){return this.C0.Am()?this.isActive:!1}; g.a.isLocked=function(){return this.n3&&!this.isActive}; g.a.P$=function(J){J=this.C0.P$(J);J.vw=this.start+"-"+this.end;return J}; g.a.dw=function(){return this.C0.dw()}; g.a.VG=function(){return this.C0.VG()}; g.a.ov=function(){return this.C0.ov()}; g.a.JY=function(){this.C0.qT(this.aE);g.yK.prototype.JY.call(this)};var c8=!1;g.x(vd,g.yK);g.a=vd.prototype;g.a.appendBuffer=function(J,y,v){this.GX=!1;v&&(this.w8=v);if(J.length){var d;((d=this.EN)==null?0:d.appendBuffer)?this.EN.appendBuffer(J):this.EN?this.EN.append(J):this.My&&this.My.webkitSourceAppend(this.id,J)}y&&(y.isEncrypted()&&(this.IQ=this.w8),y.type===3&&(this.FI=y),this.Q9.push(y.A_()),this.Q9.length>4&&this.Q9.shift());this.fk&&(this.fk.length>=2||J.length>1048576?delete this.fk:this.fk.push(J))}; g.a.abort=function(){try{this.EN?this.EN.abort():this.My&&this.My.webkitSourceAbort(this.id)}catch(y){if(RAT){var J=new g.H1("Error while abort the source buffer: "+y.name+", "+y.message);g.jv(J)}}this.w8=this.FI=null}; g.a.remove=function(J,y,v){this.GX=!1;var d;if((d=this.EN)==null?0:d.remove)v&&v({b:Rc(this.Fo()),s:J,e:y}),this.EN.remove(J,y)}; g.a.removeAll=function(){this.remove(this.p9(),this.Db())}; g.a.clear=function(){this.Ol()||(this.abort(),this.removeAll(),this.IQ=this.w8=this.FI=null,this.appendWindowStart=this.timestampOffset=0,this.y5=No([],[]),this.GX=!1,this.fk=yV?[]:void 0,this.wJ=!0)}; g.a.p9=function(){if(c8&&this.OH)return this.appendWindowStart;var J;return((J=this.EN)==null?void 0:J.appendWindowStart)||0}; g.a.Db=function(){var J;return((J=this.EN)==null?void 0:J.appendWindowEnd)||0}; g.a.Bp=function(J,y){this.EN&&(c8&&this.OH?(this.appendWindowStart=J,this.EN.appendWindowEnd=y):J>this.p9()?(this.EN.appendWindowEnd=y,this.EN.appendWindowStart=J):(this.EN.appendWindowStart=J,this.EN.appendWindowEnd=y))}; g.a.b3=function(){return this.timestampOffset}; g.a.kf=function(J){c8?this.timestampOffset=J:this.supports(1)&&(this.EN.timestampOffset=J)}; g.a.Vl=function(){return c8?this.timestampOffset:this.supports(1)?this.EN.timestampOffset:0}; g.a.Fo=function(J){if(J===void 0?0:J)return this.GX||this.Bn()||(this.y5=this.Fo(!1),this.GX=!0),this.y5;try{return this.EN?this.EN.buffered:this.My?this.My.webkitSourceBuffered(this.id):No([0],[Infinity])}catch(y){return No([],[])}}; g.a.Bn=function(){var J;return((J=this.EN)==null?void 0:J.updating)||!1}; g.a.Ol=function(){return this.wJ}; g.a.KS=function(){return!this.wJ&&this.Bn()}; g.a.IV=function(){this.wJ=!1}; g.a.TH=function(J){var y=J==null?void 0:J.PX;J=J==null?void 0:J.containerType;return!y&&!J||y===this.PX&&J===this.containerType}; g.a.xL=function(){return this.w8}; g.a.aS=function(){return this.IQ}; g.a.DU=function(J,y){return this.containerType!==J||this.PX!==y}; g.a.Px=function(J,y,v){if(this.containerType!==J||v&&this.DU(J,v))this.supports(4),dj()&&this.EN.changeType(y),v&&(this.PX=v);this.containerType=J}; g.a.rl=function(J,y,v){this.containerType&&this.DU(J,y)&&dj()&&this.EN.changeType(v);this.containerType=J;this.PX=y}; g.a.TO=function(){return this.FI}; g.a.isView=function(){return!1}; g.a.supports=function(J){switch(J){case 1:var y;return((y=this.EN)==null?void 0:y.timestampOffset)!==void 0;case 0:var v;return!((v=this.EN)==null||!v.appendBuffer);case 2:var d;return!((d=this.EN)==null||!d.remove);case 3:var P,A;return!!(((P=this.EN)==null?0:P.addEventListener)&&((A=this.EN)==null?0:A.removeEventListener));case 4:return!(!this.EN||!this.EN.changeType);default:return!1}}; g.a.Am=function(){return!this.Bn()}; g.a.isLocked=function(){return!1}; g.a.P$=function(J){J.to=this.Vl();J.up=this.Bn();var y,v=((y=this.EN)==null?void 0:y.appendWindowStart)||0,d;y=((d=this.EN)==null?void 0:d.appendWindowEnd)||Infinity;J.aw=v.toFixed(3)+"-"+y.toFixed(3);return J}; g.a.t2=function(){var J;return((J=this.EN)==null?void 0:J.writeHead)||0}; g.a.dw=function(){for(var J={},y=0;y=7&&Ft6(this,function(){g.S3(function(){HfR(J,J.getCurrentTime(),0)},500)}); return y}; g.a.seekTo=function(J){this.yw()>0&&(U2&&E2<4&&(J=Math.max(.1,J)),this.setCurrentTime(J))}; g.a.r0=function(){if(!this.T&&this.hY)if(this.hY.V)try{var J;M_(this,{l:"mer",sr:(J=this.lA)==null?void 0:J.q$(),rs:sZ(this.hY)});this.hY.clear();this.T=this.hY;this.hY=void 0}catch(y){J=new g.H1("Error while clearing Media Source in MediaElement: "+y.name+", "+y.message),g.jv(J),this.stopVideo()}else this.stopVideo()}; g.a.stopVideo=function(){var J=this;if(!this.T){var y;(y=this.hY)==null||fe2(y);if(H63){if(!this.J){var v=new S1;v.then(void 0,function(){}); this.J=v;XKm&&this.pause();g.S3(function(){J.J===v&&(Wd(J),v.resolve())},200)}}else Wd(this)}}; g.a.LN=function(){var J=this.DW();return QS(J)&&this.getDuration()?k6(J,this.getCurrentTime()):0}; g.a.vE=function(){var J=this.getDuration();return J===Infinity?1:J?this.LN()/J:0}; g.a.P$=function(){try{var J=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Rc(this.NL(),",",3),vbu:Rc(this.DW()),vbs:Rc(this.F2()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.yw(),vns:""+this.A2(),vec:""+this.R5(),vemsg:this.ge(),vvol:""+this.getVolume(),vdom:""+ +this.nY(),vsrc:""+ +!!this.qF(),vw:""+J.width,vh:""+J.height}}catch(y){return{}}}; g.a.hasError=function(){return this.R5()>0}; g.a.addEventListener=function(J,y){this.W.listen(J,y,!1,this);this.q9(J)}; g.a.removeEventListener=function(J,y){this.W.y8(J,y,!1,this)}; g.a.dispatchEvent=function(J){if(this.J&&J.type==="pause")return!1;if(N8P){var y,v=((y=J.C)==null?void 0:y.timeStamp)||Infinity;y=v>performance.now()?v-Date.now()+performance.now():v;v=this.T||this.hY;if((v==null?0:v.Ol())||y<=((v==null?void 0:v.L)||0)){var d;M_(this,{l:"mede",sr:(d=this.lA)==null?void 0:d.q$(),et:J.type});return!1}if(this.OF)return M_(this,{l:"medes",et:J.type}),v&&J.type==="seeking"&&(v.L=performance.now(),this.OF=!1),!1}return this.W.dispatchEvent(J)}; g.a.u5=function(){this.L=!1}; g.a.T0=function(){this.L=!0;this.Ov(!0)}; g.a.pG=function(){this.L&&!this.gw()&&this.Ov(!0)}; g.a.equals=function(J){return!!J&&J.sN()===this.sN()}; g.a.JY=function(){this.G&&this.removeEventListener("volumechange",this.pG);H63&&Wd(this);g.u.prototype.JY.call(this)}; var H63=!1,XKm=!1,N8P=!1,RI3=!1;g.a=g.xz.prototype;g.a.isPaused=function(){return g.k(this,4)}; g.a.isPlaying=function(){return g.k(this,8)&&!g.k(this,512)&&!g.k(this,64)&&!g.k(this,2)}; g.a.isOrWillBePlaying=function(){return g.k(this,8)&&!g.k(this,2)&&!g.k(this,1024)}; g.a.isCued=function(){return g.k(this,64)&&!g.k(this,8)&&!g.k(this,4)}; g.a.isBuffering=function(){return g.k(this,1)&&!g.k(this,2)}; g.a.isError=function(){return g.k(this,128)}; g.a.isSuspended=function(){return g.k(this,512)}; g.a.CJ=function(){return g.k(this,64)&&g.k(this,4)}; g.a.toString=function(){return"PSt."+this.state.toString(16)}; var zZ={},kh=(zZ.BUFFERING="buffering-mode",zZ.CUED="cued-mode",zZ.ENDED="ended-mode",zZ.PAUSED="paused-mode",zZ.PLAYING="playing-mode",zZ.SEEKING="seeking-mode",zZ.UNSTARTED="unstarted-mode",zZ);g.x(mC,g.u);g.a=mC.prototype;g.a.D4=function(){return this.J}; g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){var J=Nz(this.layout.clientMetadata,"metadata_type_video_length_seconds"),y=Nz(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Mg(this.layout.C8)&&PE(this.gp.get(),this.layout.layoutId,{u0:y,er:J,listener:this,Ti:this.Iz()});T2r(this.jb.get(),this);J=this.U3;y=this.layout.layoutId;var v={Ti:this.Iz()};J.C.set(y,v);this.GO()}; g.a.w5=function(){}; g.a.release=function(){Mg(this.layout.C8)&&Ad(this.gp.get(),this.layout.layoutId);lH6(this.jb.get(),this);this.U3.C.delete(this.layout.layoutId);this.Tj()}; g.a.W7=function(){}; g.a.Vx=function(){}; g.a.startRendering=function(J){lU(Bd(this));if(q_(this,J)){var y=this.C;Mo(y.params.P_.gj.get(),!0)&&G_r(y,"p_sr",{});rj(this);this.jF(J);this.Iz()||this.iy(!1)}}; g.a.YD=function(J,y){if(y.layoutId===this.layout.layoutId){this.DE="rendering";this.T=this.bA.get().isMuted()||this.bA.get().getVolume()===0;this.xD("impression");this.xD("start");if(this.bA.get().isMuted()){pe(this,"mute");var v;J=((v=e1(this))==null?void 0:v.muteCommands)||[];B6(this.W$.get(),J,this.layout.layoutId)}if(this.bA.get().isFullscreen()){this.ez("fullscreen");var d;v=((d=e1(this))==null?void 0:d.fullscreenCommands)||[];B6(this.W$.get(),v,this.layout.layoutId)}this.Iz()||(d=this.qs.get(), d.J&&!d.T&&(d.V=!1,d.T=!0,d.actionType!=="ad_to_video"&&(md("pbs",void 0,d.actionType),g.a7("finalize_all_timelines")&&dD2(d.actionType))));this.rR(1);this.uD(y);var P;y=((P=e1(this))==null?void 0:P.impressionCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.xp=function(J,y,v){this.G={F6:3,Dm:J==="load_timeout"?402:400,errorMessage:y.message};this.xD("error");var d;J=((d=e1(this))==null?void 0:d.errorCommands)||[];B6(this.W$.get(),J,this.layout.layoutId);this.Iz()||this.cz.nA(this.slot,this.layout,y,v)}; g.a.xI=function(){if(this.DE==="rendering"){pe(this,"pause");var J,y=((J=e1(this))==null?void 0:J.pauseCommands)||[];B6(this.W$.get(),y,this.layout.layoutId);this.rR(2)}}; g.a.Hj=function(){if(this.DE==="rendering"){pe(this,"resume");var J,y=((J=e1(this))==null?void 0:J.resumeCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.VY=function(J,y){y=y===void 0?!1:y;if(this.DE==="rendering"){var v={currentTimeSec:J,flush:y};nm(this.C,"p_ip",v);WI(this.Nx,J*1E3,y);this.T||WI(this.Nx,J*1E3,y===void 0?!1:y);var d=this.UC();if(d){d/=1E3;if(J>=d*.25||y)this.xD("first_quartile"),nm(this.C,"p_fq",v);if(J>=d*.5||y)this.xD("midpoint"),nm(this.C,"p_sq",v);if(J>=d*.75||y)this.xD("third_quartile"),nm(this.C,"p_tq",v);this.gj.get().S.Y().experiments.BX("enable_progress_command_flush_on_kabuki")?jJ(this.W,J*1E3,y):jJ(this.W,J*1E3,ZfU(this)? y:!1)}}}; g.a.fE=function(){var J;return((J=$z(this.Sb.get(),1))==null?void 0:J.clientPlaybackNonce)||""}; g.a.xF=function(J,y){J.layoutId!==this.layout.layoutId?this.cz.nA(this.slot,J,new Hx("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"):y()}; g.a.u6=function(J,y,v){if(y.layoutId===this.layout.layoutId)switch(this.DE="not_rendering",this.layoutExitReason=void 0,this.Iz()||(J=v!=="normal"||this.position+1===this.L)&&this.iy(J),this.h6(v),this.rR(0),v){case "abandoned":if(ab(this.Nx,"impression")){var d,P=((d=e1(this))==null?void 0:d.abandonCommands)||[];B6(this.W$.get(),P,this.layout.layoutId)}break;case "normal":d=((P=e1(this))==null?void 0:P.completeCommands)||[];B6(this.W$.get(),d,this.layout.layoutId);break;case "skipped":var A;d=((A= e1(this))==null?void 0:A.skipCommands)||[];B6(this.W$.get(),d,this.layout.layoutId)}}; g.a.DQ=function(){return this.layout.layoutId}; g.a.N9=function(){return this.G}; g.a.XL=function(){if(this.DE==="rendering"){this.Nx.xD("active_view_measurable");var J,y=((J=e1(this))==null?void 0:J.activeViewMeasurableCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.HB=function(){if(this.DE==="rendering"){this.Nx.xD("active_view_fully_viewable_audible_half_duration");var J,y=((J=e1(this))==null?void 0:J.activeViewFullyViewableAudibleHalfDurationCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.vB=function(){if(this.DE==="rendering"){this.Nx.xD("active_view_viewable");var J,y=((J=e1(this))==null?void 0:J.activeViewViewableCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.hw=function(){if(this.DE==="rendering"){this.Nx.xD("audio_audible");var J,y=((J=e1(this))==null?void 0:J.activeViewAudioAudibleCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.x9=function(){if(this.DE==="rendering"){this.Nx.xD("audio_measurable");var J,y=((J=e1(this))==null?void 0:J.activeViewAudioMeasurableCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}}; g.a.iy=function(J){this.qs.get().iy(Nz(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,J,this.position,this.L,!1)}; g.a.onFullscreenToggled=function(J){if(this.DE==="rendering")if(J){this.ez("fullscreen");var y,v=((y=e1(this))==null?void 0:y.fullscreenCommands)||[];B6(this.W$.get(),v,this.layout.layoutId)}else this.ez("end_fullscreen"),y=((v=e1(this))==null?void 0:v.endFullscreenCommands)||[],B6(this.W$.get(),y,this.layout.layoutId)}; g.a.onVolumeChange=function(){if(this.DE==="rendering")if(this.bA.get().isMuted()){pe(this,"mute");var J,y=((J=e1(this))==null?void 0:J.muteCommands)||[];B6(this.W$.get(),y,this.layout.layoutId)}else pe(this,"unmute"),J=((y=e1(this))==null?void 0:y.unmuteCommands)||[],B6(this.W$.get(),J,this.layout.layoutId)}; g.a.E3=function(){}; g.a.Do=function(){}; g.a.zJ=function(){}; g.a.Y6=function(){}; g.a.ra=function(){}; g.a.ez=function(J){this.Nx.ez(J,!this.T)}; g.a.xD=function(J){this.Nx.xD(J,!this.T)}; g.a.Iz=function(){var J=Nz(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(TS("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.gj.get().Iz(J)};g.x(Hd,mC);g.a=Hd.prototype;g.a.GO=function(){}; g.a.Tj=function(){var J=this.jb.get();J.Vs===this&&(J.Vs=null);this.timer.stop()}; g.a.W7=function(){this.timer.stop();mC.prototype.xI.call(this)}; g.a.Vx=function(){N_(this);mC.prototype.Hj.call(this)}; g.a.UC=function(){return Nz(this.xB().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.a.iJ=function(J,y){var v=this;this.xF(J,function(){v.DE!=="rendering_stop_requested"&&(v.DE="rendering_stop_requested",v.layoutExitReason=y,o0(v,y),v.timer.stop())})}; g.a.cq=function(){var J=Date.now(),y=J-this.bT;this.bT=J;this.QR+=y;this.QR>=this.UC()?this.D7():(this.VY(this.QR/1E3),Xg(this,this.QR))}; g.a.h6=function(){}; g.a.v_=function(){}; g.x(R0,Hd);g.a=R0.prototype;g.a.Ho=function(J){if(this.DE!=="not_rendering"){J=Ce(this,J);var y=this.bA.get().getPresentingPlayerType()===2;this.DE==="rendering_start_requested"?y&&QY(J)&&this.WG():y?g.na(J,2)?TS("Receive player ended event during MediaBreak",this.h9(),this.xB()):h8(this,J):this.ir()}}; g.a.jF=function(){EH6(this);WhP(this.bA.get());this.jb.get().Vs=this;jq("pbp")||jq("pbs")||md("pbp");jq("pbp","watch")||jq("pbs","watch")||md("pbp",void 0,"watch");this.WG()}; g.a.uD=function(J){this.qs.get();var y=Nz(J.clientMetadata,"metadata_type_ad_placement_config").kind,v=this.position===0;J=Nz(J.clientMetadata,"metadata_type_linked_in_player_layout_type");J={adBreakType:I0(y),adType:nZ6(J)};var d=void 0;v?y!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";Ge("ad_mbs",void 0,d);g.bx(J,d);N_(this)}; g.a.ir=function(){this.Dy()}; g.a.D7=function(){JFP(this);this.Dy()}; g.x(Ke,Hd);g.a=Ke.prototype;g.a.Ho=function(J){this.DE!=="not_rendering"&&(J=Ce(this,J),h8(this,J))}; g.a.jF=function(){TS("Not used in SSAP")}; g.a.uD=function(){N_(this)}; g.a.ir=function(){TS("Not used in SSAP")}; g.a.D7=function(){JFP(this);this.cz.SE(this.h9(),this.xB(),"normal")}; g.x(zK,Ke);zK.prototype.iJ=function(J,y){var v=this;this.xF(J,function(){vz(v.J,y)&&(v.DE="rendering_stop_requested",v.layoutExitReason=y,o0(v,y),v.timer.stop())})}; zK.prototype.startRendering=function(J){lU(Bd(this));q_(this,J)&&(rj(this),this.jb.get().Vs=this)};g.x(QV,mC);g.a=QV.prototype;g.a.ir=function(){this.Dy()}; g.a.Ho=function(J){if(this.DE!=="not_rendering"){J=Ce(this,J);var y=this.bA.get().getPresentingPlayerType()===2;this.DE==="rendering_start_requested"?y&&QY(J)&&this.WG():!y||g.na(J,2)?this.Dy():h8(this,J)}}; g.a.GO=function(){Nz(this.xB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Nz(this.xB().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.a.Tj=function(){Nz(this.xB().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.s3){var J=this.context.P_,y=this.s3,v=this.xB().layoutId;if(Mo(J.gj.get(),!0)){var d={};J.eb("mccru",(d.cid=y,d.p_ac=v,d))}this.Tu.get().removeCueRange(this.s3)}this.s3=void 0;var P;(P=this.bE)==null||P.dispose();this.UM&&this.UM.dispose()}; g.a.jF=function(J){var y=kz(this.gj.get()),v=EZ(this.gj.get());if(y&&v&&!this.Iz()){v=Nz(J.clientMetadata,"metadata_type_preload_player_vars");var d=this.gj.get();d=g.Zo(d.S.Y().experiments,"html5_preload_wait_time_secs");v&&this.UM&&this.UM.start(d*1E3)}duR(this,J);EH6(this);y?(v=this.J_.get(),J=Nz(J.clientMetadata,"metadata_type_player_vars"),v.S.loadVideoByPlayerVars(J,!1,2)):rET(this.J_.get(),Nz(J.clientMetadata,"metadata_type_player_vars"));var P;(P=this.bE)==null||P.start();y||this.J_.get().S.playVideo(2)}; g.a.uD=function(){var J;(J=this.bE)==null||J.stop();this.tj();(this.adCpn=k_c(this))||TS("Media layout confirmed started, but ad CPN not set.");this.Bq.get().vU("onAdStart",this.adCpn);this.Zk=Date.now()}; g.a.UC=function(){var J;return(J=$z(this.Sb.get(),2))==null?void 0:J.ZG}; g.a.Z3=function(){this.Nx.ez("clickthrough")}; g.a.iJ=function(J,y){var v=this;this.xF(J,function(){if(v.DE!=="rendering_stop_requested"){v.DE="rendering_stop_requested";v.layoutExitReason=y;o0(v,y);var d;(d=v.bE)==null||d.stop();v.UM&&v.UM.stop();PLr(v)}})}; g.a.onCueRangeEnter=function(J){if(J!==this.s3)TS("Received CueRangeEnter signal for unknown layout.",this.h9(),this.xB(),{cueRangeId:J});else{var y=this.context.P_,v=this.xB().layoutId;if(Mo(y.gj.get(),!0)){var d={};y.eb("mccre",(d.cid=J,d.p_ac=v,d))}this.Tu.get().removeCueRange(this.s3);this.s3=void 0;ow(this.context.gj.get(),"html5_ssap_flush_at_stop_rendering")&&this.Iz()||(J=Nz(this.xB().clientMetadata,"metadata_type_video_length_seconds"),this.VY(J,!0),this.xD("complete"))}}; g.a.h6=function(J){J!=="abandoned"&&this.Bq.get().vU("onAdComplete");this.Bq.get().vU("onAdEnd",this.adCpn)}; g.a.tj=function(){this.s3="adcompletioncuerange:"+this.xB().layoutId;this.Tu.get().addCueRange(this.s3,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var J=this.context.P_,y=this.s3,v=this.xB().layoutId;if(Mo(J.gj.get(),!0)){var d={};J.eb("mccr",(d.cid=y,d.p_ac=v,d))}}; g.a.onCueRangeExit=function(){}; g.a.v_=function(J){this.DE==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&J>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.bA.get().Dl(!0),this.VY(J))}; g.a.VY=function(J,y){mC.prototype.VY.call(this,J,y===void 0?!1:y);y=Date.now()-this.Zk;var v=J*1E3,d={contentCpn:this.fE(),adCpn:k_c(this)};if(J-this.Bi>=5){var P=y=2||(this.Z1.iJ(this.layout,y),J=ow(this.params.context.gj.get(),"html5_ssap_pass_transition_reason")&&y==="abandoned",this.BA()&&!J&&(ow(this.params.context.gj.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(y)||TS("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:y})),this.dn.get().finishSegmentByCpn(this.layout.layoutId, $z(this.Sb.get(),1).clientPlaybackNonce,fe(y,this.params.context.gj))),this.bA.get().removeListener(this),this.eX()&&df(this.Z1.D4())&&this.Rh.u6(this.slot,this.layout,this.Z1.D4().C))}; g.a.FG=function(J,y,v){DKH({cpn:J,zP:this.Sb.get(),lY:!0});this.xB().layoutId!==J||ow(this.params.context.gj.get(),"html5_ssap_pass_transition_reason")&&v===5||(this.Z1.D4().currentState<2&&(J=ih(v,this.params.context.gj),J==="error"?this.Rh.nA(this.slot,this.layout,new Hx("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:v},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):lv(this.sH, this.layout,J)),ow(this.params.context.gj.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Rh.u6(this.slot,this.layout,this.Z1.D4().C))};g.x(vS,g.u);g.a=vS.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.K5=function(){}; g.a.UH=function(){return this.rC[this.fQ]}; g.a.Sf=function(){return this.fQ}; g.a.W7=function(J,y){var v=this.UH();y.layoutId!==PS(v,J,y)?TS("pauseLayout for a PlayerBytes layout that is not currently active",J,y):v.W7()}; g.a.Vx=function(J,y){var v=this.UH();y.layoutId!==PS(v,J,y)?TS("resumeLayout for a PlayerBytes layout that is not currently active",J,y):v.Vx()}; g.a.BB=function(J,y){var v=this.UH();LPP(this,J,y);tg6(v,J,y)&&this.RU(v.h9(),v.xB(),"skipped")}; g.a.gQ=function(J,y){var v=this.UH();WPd(this);aQT(v,J,y)&&(J=xuj(this,v,J,y),J!==void 0&&(this.Iz()?TS("Should not happen. Should delete"):gZr(this,v.h9(),v.xB(),J)))}; g.a.cC=function(J,y){var v=Object.assign({},dc(this),{layoutId:y.layoutId}),d=v.layoutId,P=v.lY;if(v.Ti){var A={};Tt(v.zP,"wrse",(A.ec=d,A.is=P,A.ctp=AT(d),A))}Vb(this.tM,J,y)}; g.a.YD=function(J,y){var v;(v=this.UH())==null||v.YD(J,y)}; g.a.u6=function(J,y,v){y.layoutId===this.xB().layoutId&&(this.eU=!1,v6(this.Fr(),this));var d;(d=this.UH())==null||d.u6(J,y,v)}; g.a.v_=function(J){var y;(y=this.UH())==null||y.v_(J)}; g.a.L7=function(J,y,v){this.Sf()===-1&&(this.callback.YD(this.slot,this.layout),this.fQ++);var d=this.UH();d?(d.xp(J,y,v),this.Iz()&&this.callback.nA(this.slot,this.layout,y,v)):TS("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Sf()),layoutId:this.xB().layoutId})}; g.a.onFullscreenToggled=function(J){var y;(y=this.UH())==null||y.onFullscreenToggled(J)}; g.a.E3=function(J){var y;(y=this.UH())==null||y.E3(J)}; g.a.zJ=function(J){var y;(y=this.UH())==null||y.zJ(J)}; g.a.onVolumeChange=function(){var J;(J=this.UH())==null||J.onVolumeChange()}; g.a.NU=function(J,y,v){Lt(this.tM,J,y,v)}; g.a.ju=function(J){J.startRendering(J.xB())}; g.a.init=function(){var J=Nz(this.xB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=this);if(this.rC.length<1)throw new Q("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.rC.length)});if(J=Nz(this.xB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))J.current=this;J=g.D(this.rC);for(var y=J.next();!y.done;y=J.next())y=y.value,y.init(),uQ6(this.tM,this.slot,y.xB()),Hc3(this.tM,this.slot,y.xB()); if(this.Iz())for(this.Sb.get().addListener(this),tV3(Vgj(this),this.Sb.get()),J=Vgj(this),J=g.D(J),y=J.next();!y.done;y=J.next())this.CO(y.value)}; g.a.CO=function(J){var y=Nz(J.clientMetadata,"metadata_type_player_vars");y?(J.layoutType!=="LAYOUT_TYPE_MEDIA"&&TS("Non-video ad contains playerVars",this.slot,J),this.J_.get().addPlayerResponseForAssociation({playerVars:y})):(J=sPm(J),this.J_.get().addPlayerResponseForAssociation({Xx:J}))}; g.a.release=function(){var J=Nz(this.xB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=null);if(J=Nz(this.xB().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))J.current=null;J=g.D(this.rC);for(var y=J.next();!y.done;y=J.next())y=y.value,XUT(this.tM,this.slot,y.xB()),y.release();this.Iz()&&(this.Sb.get().removeListener(this),Wtr())}; g.a.xF=function(J){return J.layoutId!==this.xB().layoutId?(this.callback.nA(this.h9(),J,new Hx("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.xB().layoutId+("and LayoutType: "+this.xB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.a.YW=function(){this.bA.get().addListener(this);yb(this.Fr(),this)}; g.a.Ho=function(J){if(J.state.isError()){var y,v;this.L7((y=J.state.Zx)==null?void 0:y.errorCode,new Hx("There was a player error during this media layout.",{playerErrorCode:(v=J.state.Zx)==null?void 0:v.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(y=this.UH())&&y.Ho(J)}; g.a.Iz=function(){var J=Nz(this.h9().clientMetadata,"metadata_type_eligible_for_ssap");return J===void 0?(TS("Expected SSAP eligibility in PlayerBytes slots",this.h9(),this.xB()),!1):this.gj.get().Iz(J)}; g.a.Do=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.Y6=function(){}; g.a.ra=function(){}; g.x(MI,vS);g.a=MI.prototype;g.a.Se=function(J,y,v){this.RU(J,y,v)}; g.a.E1=function(J,y){this.RU(J,y,"error")}; g.a.RU=function(J,y,v){var d=this;Oa3(this,J,y,v,function(){A$(d,d.Sf()+1)})}; g.a.startRendering=function(J){this.xF(J)&&(this.YW(),m4P(this.qs.get()),h0P(this.gj.get())||WhP(this.bA.get()),this.Sf()===-1&&A$(this,this.Sf()+1))}; g.a.iJ=function(J,y){var v=this;this.eU=!0;this.Sf()===this.rC.length?this.callback.u6(this.slot,this.layout,y):(J=this.UH(),J.iJ(J.xB(),y),this.jT=function(){v.callback.u6(v.slot,v.layout,y)}); this.bA.get().S.JG();rET(this.J_.get(),{});J=d1(this.bA.get(),1);J.isPaused()&&!g.k(J,2)&&this.bA.get().playVideo();this.bA.get().removeListener(this);this.eU&&Du6(this)}; g.a.FG=function(){}; g.a.e8=function(){}; g.a.SE=function(){}; g.x(nz,vS);g.a=nz.prototype;g.a.Se=function(J,y,v){J=Object.assign({},dc(this),{layoutId:y.layoutId,layoutExitReason:v});y=J.layoutId;v=J.layoutExitReason;var d={};Tt(J.zP,"prse",(d.xc=y,d.ler=v,d.ctp=AT(y),d))}; g.a.E1=function(){TS("onSubLayoutError in SSAP")}; g.a.RU=function(){TS("exitSubLayoutAndPlayNext in SSAP")}; g.a.UH=function(){return this.yE}; g.a.Sf=function(){var J=this;return this.rC.findIndex(function(y){var v;return y.xB().layoutId===((v=J.yE)==null?void 0:v.xB().layoutId)})}; g.a.ju=function(J){AF(this.yE===void 0,"replacing another adapter");this.yE=J;J.startRendering(J.xB())}; g.a.NU=function(J,y,v){Lt(this.tM,J,y,v);var d;AF(y.layoutId===((d=this.yE)==null?void 0:d.xB().layoutId),"currentAdapter does not match exiting layout",{slot:J?"slot: "+J.slotType:"",subLayout:Pc(y)})&&(this.yE=void 0)}; g.a.release=function(){vS.prototype.release.call(this);AF(this.yE===void 0,"currentAdapter is still active during release");this.yE=void 0}; g.a.BA=function(){return this.bA.get().getPresentingPlayerType()===2}; g.a.iJ=function(J,y){function v(){so(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(y)||TS("Composite stopRendering: Unexpected layout exit reason",this.slot,J,{layoutExitReason:y}))} function d(){this.yE&&YG(this,this.yE,y);if(this.BA()&&(!so(this)||y!=="abandoned")){v.call(this);var A;var T=((A=this.Sb.get().S.getVideoData())==null?void 0:A.clientPlaybackNonce)||"";A=$z(this.Sb.get(),1).clientPlaybackNonce;this.dn.get().finishSegmentByCpn(T,A,fe(y,this.gj))}cFP(this,y)} function P(){if(this.yE){var A=this.yE;A.D4().currentState<2&&A.iJ(A.xB(),y);A=so(this)&&y==="abandoned";this.BA()&&!A&&(v.call(this),this.dn.get().finishSegmentByCpn(this.yE.xB().layoutId,$z(this.Sb.get(),1).clientPlaybackNonce,fe(y,this.gj)))}} AF(J.layoutId===this.xB().layoutId,"StopRendering for wrong layout")&&vz(this.pF.T,y)&&(this.eX()?d.call(this):P.call(this))}; g.a.u6=function(J,y,v){vS.prototype.u6.call(this,J,y,v);y.layoutId===this.xB().layoutId&&this.bA.get().removeListener(this)}; g.a.fE=function(){return $z(this.Sb.get(),1).clientPlaybackNonce}; g.a.FG=function(J,y,v){DKH(Object.assign({},dc(this),{cpn:J}));if(!so(this)||v!==5)if(this.eX()){if(this.yE&&this.yE.xB().layoutId!==y){var d=this.yE.xB().layoutId;d!==J&&TS("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:d,exitingCpn:J,enteringCpn:y});J=ih(v,this.gj);YG(this,this.yE,J)}else this.yE&&TS("onClipExited: active layout is entering again");y===this.fE()&&baT(this,v)}else{if(this.yE&&this.yE.xB().layoutId===J)GSU(this,this.yE,v);else{var P;TS("Exiting cpn does not match active cpn", this.slot,(d=this.yE)==null?void 0:d.xB(),{exitingCpn:J,transitionReason:v,activeCpn:(P=this.yE)==null?void 0:P.xB().layoutId})}y===this.fE()&&(this.yE!==void 0&&(TS("active adapter is not properly exited",this.slot,this.layout,{activeLayout:Pc(this.yE.xB())}),GSU(this,this.yE,v)),baT(this,v),cFP(this,this.pF.T.C))}}; g.a.eX=function(){return ow(this.gj.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.a.startRendering=function(J){this.xF(J)&&(J=this.pF,AF(J.C===1,"tickStartRendering: state is not initial"),J.C=2,this.YW())}; g.a.e8=function(J){gH3(Object.assign({},dc(this),{cpn:J}));var y=this.rC.find(function(v){return v.xB().layoutId===J}); y?(this.pF.C!==2&&(THv(this.cF,this.slot.slotId),AF(this.pF.C===2,"Expect started"),this.callback.YD(this.slot,this.layout)),this.ju(y),Vb(this.tM,this.slot,y.xB())):FPP(this,J)}; g.a.BB=function(J,y){LPP(this,J,y);var v=this.UH();v?tg6(v,J,y)&&jPd(this,"skipped"):ek3(this,"onSkipRequested")}; g.a.gQ=function(J,y){var v;a:{if(v=this.UH()){if(WPd(this),aQT(v,J,y)&&(J=xuj(this,v,J,y),J!==void 0)){v={Hr:v,AAR:this.rC[J]};break a}}else ek3(this,"SkipWithAdPodSkip");v=void 0}if(J=v)v=J.Hr,y=J.AAR,J=v.xB().layoutId,this.eX()?YG(this,v,"skipped"):v.iJ(v.xB(),"skipped"),v=y.xB().layoutId,this.dn.get().finishSegmentByCpn(J,v,fe("skipped",this.gj))}; g.a.cC=function(){TS("Not used in html5_ssap_fix_layout_exit")}; g.a.Ho=function(J){var y;(y=this.UH())==null||y.Ho(J)}; g.a.L7=function(){TS("Not used in html5_ssap_fix_layout_exit")}; g.a.SE=function(J,y,v){var d;if(((d=this.UH())==null?void 0:d.xB().layoutId)!==y.layoutId)return void TS("requestToExitSubLayout: wrong layout");jPd(this,v)};g.x(So,g.u);g.a=So.prototype;g.a.h9=function(){return this.Z1.h9()}; g.a.xB=function(){return this.Z1.xB()}; g.a.init=function(){var J=Nz(this.xB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=this);this.GO()}; g.a.GO=function(){this.Z1.init()}; g.a.release=function(){var J=Nz(this.xB().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");J&&(J.current=null);this.Tj()}; g.a.Tj=function(){this.Z1.release()}; g.a.W7=function(){this.Z1.W7()}; g.a.Vx=function(){this.Z1.Vx()}; g.a.BB=function(J,y){TS("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.h9(),this.xB(),{requestingSlot:J,requestingLayout:y})}; g.a.startRendering=function(J){J.layoutId!==this.xB().layoutId?this.callback.nA(this.h9(),J,new Hx("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.xB().layoutId+("and LayoutType: "+this.xB().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.bA.get().addListener(this),yb(this.Fr(),this),m4P(this.qs.get()),h0P(this.gj.get())||WhP(this.bA.get()),this.Z1.startRendering(J))}; g.a.iJ=function(J,y){this.eU=!0;this.Z1.iJ(J,y);this.bA.get().S.JG();rET(this.J_.get(),{});J=d1(this.bA.get(),1);J.isPaused()&&!g.k(J,2)&&this.bA.get().playVideo();this.bA.get().removeListener(this);this.eU&&this.Z1.ir()}; g.a.YD=function(J,y){this.Z1.YD(J,y)}; g.a.u6=function(J,y,v){y.layoutId===this.xB().layoutId&&(this.eU=!1,v6(this.Fr(),this));this.Z1.u6(J,y,v);y.layoutId===this.xB().layoutId&&Tv(this.qs.get())}; g.a.v_=function(J){this.Z1.v_(J)}; g.a.Ho=function(J){if(J.state.isError()){var y,v;this.L7((y=J.state.Zx)==null?void 0:y.errorCode,new Hx("There was a player error during this media layout.",{playerErrorCode:(v=J.state.Zx)==null?void 0:v.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Z1.Ho(J)}; g.a.L7=function(J,y,v){this.Z1.xp(J,y,v)}; g.a.onFullscreenToggled=function(J){this.Z1.onFullscreenToggled(J)}; g.a.E3=function(J){this.Z1.E3(J)}; g.a.zJ=function(J){this.Z1.zJ(J)}; g.a.onVolumeChange=function(){this.Z1.onVolumeChange()}; g.a.Do=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.Y6=function(){}; g.a.ra=function(){};g.a=V_.prototype;g.a.h9=function(){return this.slot}; g.a.xB=function(){return this.layout}; g.a.init=function(){this.O8.get().addListener(this);this.bA.get().addListener(this);var J=Nz(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var y=Nz(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.W){var v=this.O8.get().lG.slice(-1)[0];v!==void 0&&(J=v.startSecs*1E3,y=(v.startSecs+v.WF)*1E3)}this.w5(J,y);var d;v=(d=this.Sb.get().cE)==null?void 0:d.clientPlaybackNonce;d=this.layout.c$.adClientDataEntry;Lz(this.jb.get(),{daiStateTrigger:{filledAdsDurationMs:y-J,contentCpn:v, adClientData:d}});var P=this.O8.get();P=q02(P.J,J,y);P!==null&&(Lz(this.jb.get(),{daiStateTrigger:{filledAdsDurationMs:P-J,contentCpn:v,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:d}}),this.dn.get().qR(P,y))}; g.a.release=function(){this.Tj();this.O8.get().removeListener(this);this.bA.get().removeListener(this)}; g.a.startRendering=function(){this.jF();this.callback.YD(this.slot,this.layout)}; g.a.iJ=function(J,y){this.dF(y);this.driftRecoveryMs!==null&&(t$(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(rF3(this)-Nz(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.bA.get().S.Mk()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.u6(this.slot,this.layout,y)}; g.a.WI=function(){return!1}; g.a.F8=function(J){var y=Nz(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),v=Nz(this.layout.clientMetadata,"metadata_type_layout_exit_ms");J*=1E3;if(y<=J&&J0&&tv(this.C(),y)}; g.a.V_=function(J){this.V.delete(J.slotId);for(var y=[],v=g.D(this.kD.values()),d=v.next();!d.done;d=v.next()){d=d.value;var P=d.trigger;P instanceof Y4&&P.triggeringSlotId===J.slotId&&y.push(d)}y.length>0&&tv(this.C(),y)}; g.a.m0=function(J){for(var y=[],v=g.D(this.kD.values()),d=v.next();!d.done;d=v.next()){d=d.value;var P=d.trigger;P instanceof y9&&P.slotType===J.slotType&&P.C!==J.slotId&&y.push(d)}y.length>0&&tv(this.C(),y)}; g.a.WR=function(J){this.J.add(J.slotId);for(var y=[],v=g.D(this.kD.values()),d=v.next();!d.done;d=v.next())d=d.value,d.trigger instanceof Tu&&J.slotId===d.trigger.triggeringSlotId&&y.push(d);y.length>0&&tv(this.C(),y)}; g.a.pj=function(J){this.J.delete(J.slotId);this.W.add(J.slotId);for(var y=[],v=g.D(this.kD.values()),d=v.next();!d.done;d=v.next())if(d=d.value,d.trigger instanceof lj)J.slotId===d.trigger.triggeringSlotId&&y.push(d);else if(d.trigger instanceof Xi){var P=d.trigger;J.slotId===P.slotId&&this.T.has(P.triggeringLayoutId)&&y.push(d)}y.length>0&&tv(this.C(),y)}; g.a.Sz=function(J){for(var y=[],v=g.D(this.kD.values()),d=v.next();!d.done;d=v.next())d=d.value,d.trigger instanceof M2&&J.slotId===d.trigger.triggeringSlotId&&y.push(d);y.length>0&&tv(this.C(),y)}; g.a.Lr=function(J){for(var y=[],v=g.D(this.kD.values()),d=v.next();!d.done;d=v.next())d=d.value,d.trigger instanceof nO&&J.slotId===d.trigger.triggeringSlotId&&y.push(d);y.length>0&&tv(this.C(),y)}; g.a.zr=function(J,y){this.L.add(y.layoutId)}; g.a.ou=function(J,y){this.L.delete(y.layoutId)}; g.a.YD=function(J,y){this.T.add(y.layoutId);for(var v=[],d=g.D(this.kD.values()),P=d.next();!P.done;P=d.next())if(P=P.value,P.trigger instanceof NI)y.layoutId===P.trigger.triggeringLayoutId&&v.push(P);else if(P.trigger instanceof Je){var A=P.trigger;J.slotType===A.slotType&&y.layoutType===A.layoutType&&y.layoutId!==A.C&&v.push(P)}else P.trigger instanceof Xi&&(A=P.trigger,y.layoutId===A.triggeringLayoutId&&this.W.has(A.slotId)&&v.push(P));v.length>0&&tv(this.C(),v)}; g.a.u6=function(J,y,v){this.T.delete(y.layoutId);J=[];for(var d=g.D(this.kD.values()),P=d.next();!P.done;P=d.next())if(P=P.value,P.trigger instanceof Kz&&y.layoutId===P.trigger.triggeringLayoutId&&J.push(P),P.trigger instanceof Rq){var A=P.trigger;y.layoutId===A.triggeringLayoutId&&A.C.includes(v)&&J.push(P)}J.length>0&&tv(this.C(),J)}; g.a.xR=function(){}; g.a.U5=function(){this.W.clear()}; g.a.R$=function(){};g.x(JP,g.u);JP.prototype.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(y instanceof uv))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in CloseRequestedTriggerAdapter");this.kD.set(y.triggerId,new LO(J,y,v,d))}; JP.prototype.CE=function(J){this.kD.delete(J.triggerId)};g.x(vR,g.u);vR.prototype.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(y instanceof iv||y instanceof de))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.kD.set(y.triggerId,new LO(J,y,v,d))}; vR.prototype.CE=function(J){this.kD.delete(J.triggerId)}; vR.prototype.U5=function(J){for(var y=[],v=y.push,d=v.apply,P=[],A=g.D(this.kD.values()),T=A.next();!T.done;T=A.next())T=T.value,T.trigger instanceof iv&&T.trigger.oo===J&&P.push(T);d.call(v,y,g.r(P));v=y.push;d=v.apply;P=[];A=g.D(this.kD.values());for(T=A.next();!T.done;T=A.next())T=T.value,T.trigger instanceof de&&T.trigger.C!==J&&P.push(T);d.call(v,y,g.r(P));y.length&&tv(this.C(),y)}; vR.prototype.R$=function(J){for(var y=[],v=y.push,d=v.apply,P=[],A=g.D(this.kD.values()),T=A.next();!T.done;T=A.next()){T=T.value;var M=T.trigger;M instanceof de&&M.C===J&&P.push(T)}d.call(v,y,g.r(P));y.length&&tv(this.C(),y)};g.x(dU,g.u);g.a=dU.prototype;g.a.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");var P="adtriggercuerange:"+y.triggerId;if(y instanceof ZW)EIU(this,J,y,v,d,P,y.C.start,y.C.end,y.oo,y.visible);else if(y instanceof HS)EIU(this,J,y,v,d,P,0x7ffffffffffff,0x8000000000000,y.oo,y.visible);else throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in CueRangeTriggerAdapter");}; g.a.CE=function(J){var y=this.kD.get(J.triggerId);y&&this.Tu.get().removeCueRange(y.cueRangeId);this.kD.delete(J.triggerId)}; g.a.onCueRangeEnter=function(J){var y=Qpx(this,J);if(y&&(y=this.kD.get(y)))if(g.k(d1(this.bA.get()),32))this.C.add(y.cueRangeId);else{var v=y==null?void 0:y.v3.trigger;if(v instanceof ZW||v instanceof HS){if(Mo(this.context.gj.get())){var d=y.v3.slot,P=y.v3.layout,A={};this.context.P_.eb("cre",(A.ca=y.v3.category,A.tt=v.triggerType,A.st=d.slotType,A.lt=P==null?void 0:P.layoutType,A.cid=J,A))}tv(this.T(),[y.v3])}}}; g.a.onCueRangeExit=function(J){(J=Qpx(this,J))&&(J=this.kD.get(J))&&this.C.delete(J.cueRangeId)}; g.a.Ho=function(J){if(Mu(J,16)<0){J=g.D(this.C);for(var y=J.next();!y.done;y=J.next())this.onCueRangeEnter(y.value,!0);this.C.clear()}}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.YD=function(){}; g.a.u6=function(){}; g.a.xR=function(){}; g.a.v_=function(){}; g.a.onFullscreenToggled=function(){}; g.a.E3=function(){}; g.a.Do=function(){}; g.a.zJ=function(){}; g.a.onVolumeChange=function(){}; g.a.Y6=function(){}; g.a.ra=function(){};g.x(PR,g.u);g.a=PR.prototype; g.a.P5=function(J,y,v,d){if(this.T.has(y.triggerId)||this.J.has(y.triggerId))throw new Q("Tried to re-register the trigger.");J=new LO(J,y,v,d);if(J.trigger instanceof Q_)this.T.set(J.trigger.triggerId,J);else if(J.trigger instanceof zv)this.J.set(J.trigger.triggerId,J);else throw new Q("Incorrect TriggerType: Tried to register trigger of type "+J.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.T.has(J.trigger.triggerId)&&J.slot.slotId===this.C&&tv(this.W(),[J])}; g.a.CE=function(J){this.T.delete(J.triggerId);this.J.delete(J.triggerId)}; g.a.K5=function(J){J=J.slotId;if(this.C!==J){var y=[];this.C!=null&&y.push.apply(y,g.r(Zp3(this.J,this.C)));J!=null&&y.push.apply(y,g.r(Zp3(this.T,J)));this.C=J;y.length&&tv(this.W(),y)}}; g.a.FG=function(){}; g.a.e8=function(){};g.x(AP,g.u);g.a=AP.prototype;g.a.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(y instanceof vn))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.kD.set(y.triggerId,new LO(J,y,v,d))}; g.a.CE=function(J){this.kD.delete(J.triggerId)}; g.a.YD=function(){}; g.a.u6=function(){}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){};g.x(TO,g.u);g.a=TO.prototype;g.a.xR=function(J,y){for(var v=[],d=g.D(this.kD.values()),P=d.next();!P.done;P=d.next()){P=P.value;var A=P.trigger;A.opportunityType===J&&(A.associatedSlotId&&A.associatedSlotId!==y||v.push(P))}v.length&&tv(this.C(),v)}; g.a.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(y instanceof T5H))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in OpportunityEventTriggerAdapter");this.kD.set(y.triggerId,new LO(J,y,v,d))}; g.a.CE=function(J){this.kD.delete(J.triggerId)}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.YD=function(){}; g.a.u6=function(){};g.x(lY,g.u);g.a=lY.prototype;g.a.P5=function(J,y,v,d){J=new LO(J,y,v,d);if(y instanceof kG||y instanceof wc||y instanceof Eo||y instanceof Pn||y instanceof TQ3){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");this.kD.set(y.triggerId,J)}else throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in PrefetchTriggerAdapter");}; g.a.CE=function(J){this.kD.delete(J.triggerId)}; g.a.OR=function(J){var y=J.slotFulfillmentTriggers.find(function(v){return v instanceof kG}); y&&(M3(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",y.breakDurationMs,new Set([J.slotId]),!0),aq(this.jb.get(),"ads_css","sid."+J.slotId+";bd."+y.breakDurationMs))}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.YD=function(){}; g.a.u6=function(){}; g.a.xR=function(){}; g.a.WI=function(J){var y=this;if(!this.C)return TS("Unexpected cue break before fetch instructions are available"),!1;this.T&&this.T.stop();this.V&&g.zA(this.V);var v=vf3(this,J);if(!v){var d=Jhr(this),P=this.G!==void 0&&Date.now()<=this.G+1E4;aq(this.jb.get(),"ads_ncfs","cid."+J.identifier+";cd."+J.WF.toFixed(3)+";ccs."+P+";cfa."+this.W+";bdc."+d.length+";"+d.slice(0,6).map(function(A){return";bd."+A}).join("")); return!1}(new g.Kx(function(){var A=v.trigger,T=v.slot;M3(y,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",A.breakDurationMs,new Set,!0);M3(y,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",A.breakDurationMs,new Set,!1);for(var M=0,n=g.D(y.kD.values()),Y=n.next();!Y.done;Y=n.next()){Y=Y.value;var S=Y.trigger;Y.slot.slotId===T.slotId&&(y.kD.delete(S.triggerId),M++)}aq(y.jb.get(),"ads_csf","sid."+T.slotId+";bd."+A.breakDurationMs+";dt."+M)},10)).start(); return!0}; g.a.F8=function(){}; g.a.U5=function(J){var y=this;this.W=!1;this.G=Date.now();if(this.C&&this.C.contentCpn!==J)TS("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:J,fetchInstructionsCpn:this.C.contentCpn}),nY(this);else{this.J=new g.Kx(function(){if(y.W)delete y.J;else{var d=y.bA.get().getGetAdBreakContext(),P;if(Number(d==null?void 0:(P=d.livePlaybackPosition)==null?void 0:P.utcTimeMillis)>0)delete y.J,yhc(y);else{var A;(A=y.J)==null||A.start()}}},200); var v;(v=this.J)==null||v.start()}}; g.a.R$=function(J){this.C&&this.C.contentCpn!==J&&TS("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:J,fetchInstructionsCpn:this.C.contentCpn},!0);nY(this)}; g.a.z5=function(J){var y=this;if(this.C)TS("Unexpected multiple fetch instructions for the current content");else{this.C=J;J=PGR(J);this.T=new g.Kx(function(){yhc(y)},J?J:6E5); this.T.start();this.V=new g.Kx(function(){y.C&&(y.T&&(y.T.stop(),y.T.start()),wAj(y,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},dzc(this.C)); J=this.bA.get().getCurrentTimeSec(1,!1);for(var v=g.D(this.O8.get().lG),d=v.next();!d.done;d=v.next())d=d.value,aq(this.jb.get(),"nocache","ct."+Date.now()+";cmt."+J+";d."+d.WF.toFixed(3)+";tw."+(d.startSecs-J)+";cid."+d.identifier+";")}}; g.a.JY=function(){g.u.prototype.JY.call(this);nY(this)};g.x(s8,g.u);g.a=s8.prototype;g.a.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(y instanceof V9))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.kD.set(y.triggerId,new LO(J,y,v,d));J=this.C.has(y.triggeringLayoutId)?this.C.get(y.triggeringLayoutId):new Set;J.add(y);this.C.set(y.triggeringLayoutId,J)}; g.a.CE=function(J){this.kD.delete(J.triggerId);if(!(J instanceof V9))throw new Q("Incorrect TriggerType: Tried to unregister trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var y=this.T.get(J.triggerId);y&&(y.dispose(),this.T.delete(J.triggerId));if(y=this.C.get(J.triggeringLayoutId))y.delete(J),y.size===0&&this.C.delete(J.triggeringLayoutId)}; g.a.OR=function(){}; g.a.V_=function(){}; g.a.m0=function(){}; g.a.WR=function(){}; g.a.pj=function(){}; g.a.Sz=function(){}; g.a.Lr=function(){}; g.a.zr=function(){}; g.a.ou=function(){}; g.a.xR=function(){}; g.a.YD=function(J,y){var v=this;if(this.C.has(y.layoutId)){J=this.C.get(y.layoutId);J=g.D(J);var d=J.next();for(y={};!d.done;y={xA:void 0},d=J.next())y.xA=d.value,d=new g.Kx(function(P){return function(){var A=v.kD.get(P.xA.triggerId);tv(v.J(),[A])}}(y),y.xA.durationMs),d.start(),this.T.set(y.xA.triggerId,d)}}; g.a.u6=function(){};g.x(Yx,g.u);Yx.prototype.P5=function(J,y,v,d){if(this.kD.has(y.triggerId))throw new Q("Tried to register duplicate trigger for slot.");if(!(y instanceof Uo))throw new Q("Incorrect TriggerType: Tried to register trigger of type "+y.triggerType+" in VideoTransitionTriggerAdapter.");this.kD.set(y.triggerId,new LO(J,y,v,d))}; Yx.prototype.CE=function(J){this.kD.delete(J.triggerId)};tP.prototype.dT=function(J){return J.kind==="AD_PLACEMENT_KIND_START"};g.x(xx,g.u);g.a=xx.prototype;g.a.logEvent=function(J){this.Ty(J)}; g.a.qo=function(J,y,v){this.Ty(J,void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,void 0,v)}; g.a.zN=function(J,y,v,d){this.Ty(J,void 0,void 0,void 0,y,v?v:void 0,void 0,void 0,y.adSlotLoggingData,v?v.adLayoutLoggingData:void 0,void 0,d)}; g.a.LD=function(J,y,v,d){ow(this.gj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"trigger:",v,"slot:",y,"layout:",d);Ee(this.C.get())&&this.Ty(J,void 0,void 0,void 0,y,d?d:void 0,void 0,v,y.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)}; g.a.WP=function(J,y,v,d,P){this.Ty(J,y,v,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P)}; g.a.wR=function(J,y,v,d){this.Ty("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,v,d,void 0,void 0,v.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:J,errorMessage:y})}; g.a.Ty=function(J,y,v,d,P,A,T,M,n,Y,S,V){var L=this;V=V===void 0?0:V;ow(this.gj.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+J,"slot:",P,"layout:",A,"ping:",T,"Opportunity:",{opportunityType:y,associatedSlotId:v,iFb:d,C0A:M,adSlotLoggingData:n,adLayoutLoggingData:Y});try{var t=function(){if(!L.gj.get().S.Y().X("html5_disable_client_tmp_logs")&&J!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){J||TS("Empty PACF event type",P,A);var W=Ee(L.C.get()),c={eventType:J,eventOrder:++L.eventCount},b={}; P&&(b.slotData=kf(W,P));A&&(b.layoutData=Ixm(W,A));T&&(b.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:T.C.serializedAdPingMetadata,pingIndex:T.index});M&&(b.triggerData=z4(M.trigger,M.category));y&&(b.opportunityData=pUH(W,y,v,d));W={organicPlaybackContext:{contentCpn:$z(L.Sb.get(),1).clientPlaybackNonce}};W.organicPlaybackContext.isLivePlayback=$z(L.Sb.get(),1).jH;var B;W.organicPlaybackContext.isMdxPlayback=(B=$z(L.Sb.get(),1))==null?void 0:B.isMdxPlayback; var q;if((q=$z(L.Sb.get(),1))==null?0:q.daiEnabled)W.organicPlaybackContext.isDaiContent=!0;var C;if(B=(C=$z(L.Sb.get(),2))==null?void 0:C.clientPlaybackNonce)W.adVideoPlaybackContext={adVideoCpn:B};W&&(b.externalContext=W);c.adClientData=b;n&&(c.serializedSlotAdServingData=n.serializedSlotAdServingDataEntry);Y&&(c.serializedAdServingData=Y.serializedAdServingDataEntry);S&&(c.errorInfo=S);g.AW("adsClientStateChange",{adsClientEvent:c})}}; V&&V>0?g.zW(g.EK(),function(){return t()},V):t()}catch(W){ow(this.gj.get(),"html5_log_pacf_logging_errors")&&g.zW(g.EK(),function(){TS(W instanceof Error?W:String(W),P,A,{pacf_message:"exception during pacf logging"})})}};var XZw=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.x(O8,xx);g.a=O8.prototype; g.a.qo=function(J,y,v){xx.prototype.qo.call(this,J,y,v);Mo(this.gj.get())&&(v={},this.context.P_.eb("pacf",(v.et=J,v.st=y.slotType,v.si=y.slotId,v)))}; g.a.zN=function(J,y,v,d){var P=XZw.has(J);xx.prototype.zN.call(this,J,y,v,d);Mo(this.gj.get(),P)&&(d={},this.context.P_.eb("pacf",(d.et=J,d.st=y.slotType,d.si=y.slotId,d.lt=v==null?void 0:v.layoutType,d.li=v==null?void 0:v.layoutId,d.p_ac=v==null?void 0:v.layoutId,d)))}; g.a.WP=function(J,y,v,d,P){xx.prototype.WP.call(this,J,y,v,d,P);Mo(this.gj.get())&&(v={},this.context.P_.eb("pacf",(v.et=J,v.ot=y,v.ss=d==null?void 0:d.length,v)))}; g.a.LD=function(J,y,v,d){xx.prototype.LD.call(this,J,y,v,d);if(Mo(this.gj.get())){var P={};this.context.P_.eb("pacf",(P.et=J,P.tt=v.trigger.triggerType,P.tc=v.category,P.st=y.slotType,P.si=y.slotId,P.lt=d==null?void 0:d.layoutType,P.li=d==null?void 0:d.layoutId,P.p_ac=d==null?void 0:d.layoutId,P))}}; g.a.wR=function(J,y,v,d){xx.prototype.wR.call(this,J,y,v,d);if(Mo(this.gj.get(),!0)){var P={};this.context.P_.eb("perror",(P.ert=J,P.erm=y,P.st=v.slotType,P.si=v.slotId,P.lt=d==null?void 0:d.layoutType,P.li=d==null?void 0:d.layoutId,P.p_ac=d==null?void 0:d.layoutId,P))}}; g.a.Ty=function(J,y,v,d,P,A,T,M,n,Y,S){var V=this.gj.get();g.Sb(V.S.Y())?(V=this.gj.get(),V=g.Zo(V.S.Y().experiments,"H5_async_logging_delay_ms")):V=void 0;xx.prototype.Ty.call(this,J,y,v,d,P,A,T,M,n,Y,S,V)};gU.prototype.clear=function(){this.C.clear()};DD.prototype.state=function(){return this.C==="fulfilled"?{state:"fulfilled",value:this.result}:this.C==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; DD.prototype.W=function(J){GO(J)||cR(J)?mB(bY(J),this.W.bind(this),this.reject.bind(this)):(this.C="fulfilled",this.result=J,eW(this))}; DD.prototype.reject=function(J){this.C="rejected";this.error=J;eW(this)}; var cR=lO(function(J){return TV_(J)?J instanceof DD:!1});Object.freeze({uyx:function(J){var y=CY(J);return mB(ok(y,function(v){return y[v].C==="rejected"}),function(v){return Number.isNaN(v)?y.map(function(d){return d.state().value}):y[v]})}, o8A:function(J){var y=CY(J);return mB(ok(y),function(){return y.map(function(v){return v.state()})})}, syj:function(J){var y=CY(J);return mB(ok(y,function(v){return y[v].C==="fulfilled"}),function(v){return Number.isNaN(v)?F1(new AggregateError(y.map(function(d){return d.state().reason}))):y[v].state().value})}, qex:function(J){var y=CY(J);return mB(ok(y,function(){return!0}),function(v){return y[v]})}});var hP=window.gfX||"es-419";fY.prototype.JS=function(J){this.client=J}; fY.prototype.C=function(){this.clear();this.csn=g.xe()}; fY.prototype.clear=function(){this.J.clear();this.T.clear();this.W.clear();this.csn=null};uY.prototype.JS=function(J){g.kV(iY().JS).bind(iY())(J)}; uY.prototype.clear=function(){g.kV(iY().clear).bind(iY())()};g.a=HR.prototype;g.a.JS=function(J){this.client=J}; g.a.HV=function(J,y){var v=this;y=y===void 0?{}:y;g.kV(function(){var d,P,A,T=((d=g.R(J==null?void 0:J.commandMetadata,g.b3))==null?void 0:d.rootVe)||((P=g.R(J==null?void 0:J.commandMetadata,npy))==null?void 0:(A=P.screenVisualElement)==null?void 0:A.uiType);if(T){d=g.R(J==null?void 0:J.commandMetadata,m7C);if(d==null?0:d.parentTrackingParams){var M=g.tm(d.parentTrackingParams);if(d.parentCsn)var n=d.parentCsn}else y.clickedVisualElement?M=y.clickedVisualElement:J.clickTrackingParams&&(M=g.tm(J.clickTrackingParams)); a:{d=g.R(J,g.Y9);P=g.R(J,D7b);if(d){if(P=G4T(d,"VIDEO")){d={token:P,videoId:d.videoId};break a}}else if(P&&(d=G4T(P,"PLAYLIST"))){d={token:d,playlistId:P.playlistId};break a}d=void 0}y=Object.assign({},{cttAuthInfo:d,parentCsn:n},y);if(g.a7("expectation_logging")){var Y;y.loggingExpectations=((Y=g.R(J==null?void 0:J.commandMetadata,npy))==null?void 0:Y.loggingExpectations)||void 0}N3(v,T,M,y)}else g.ev(new g.H1("Error: Trying to create a new screen without a rootVeType",J))})()}; g.a.clickCommand=function(J,y,v){J=J.clickTrackingParams;v=v===void 0?0:v;J?(v=g.xe(v===void 0?0:v))?(R5(this.client,v,g.tm(J),y),y=!0):y=!1:y=!1;return y}; g.a.stateChanged=function(J,y,v){this.visualElementStateChanged(g.tm(J),y,v===void 0?0:v)}; g.a.visualElementStateChanged=function(J,y,v){v=v===void 0?0:v;v===0&&this.T.has(v)?this.B.push([J,y]):BH6(this,J,y,v)};kx.prototype.fetch=function(J,y,v){var d=this,P=$zm(J,y,v);return new Promise(function(A,T){function M(){if(v==null?0:v.Xk)try{var Y=d.handleResponse(J,P.status,P.response,v);A(Y)}catch(S){T(S)}else A(d.handleResponse(J,P.status,P.response,v))} P.onerror=M;P.onload=M;var n;P.send((n=y.body)!=null?n:null)})}; kx.prototype.handleResponse=function(J,y,v,d){v=v.replace(")]}'","");try{var P=JSON.parse(v)}catch(A){g.ev(new g.H1("JSON parsing failed after XHR fetch",J,y,v));if((d==null?0:d.Xk)&&v)throw new g.fr(1,"JSON parsing failed after XHR fetch");P={}}y!==200&&(g.ev(new g.H1("XHR API fetch failed",J,y,v)),P=Object.assign({},P,{errorMetadata:{status:y}}));return P};E8.getInstance=function(){var J=g.vq("ytglobal.storage_");J||(J=new E8,g.yq("ytglobal.storage_",J));return J}; E8.prototype.estimate=function(){var J,y,v;return g.f(function(d){J=navigator;return((y=J.storage)==null?0:y.estimate)?d.return(J.storage.estimate()):((v=J.webkitTemporaryStorage)==null?0:v.queryUsageAndQuota)?d.return(ofT()):d.return()})}; g.yq("ytglobal.storageClass_",E8);dS.prototype.Ox=function(J){this.handleError(J)}; dS.prototype.logEvent=function(J,y){switch(J){case "IDB_DATA_CORRUPTED":g.a7("idb_data_corrupted_killswitch")||this.C("idbDataCorrupted",y);break;case "IDB_UNEXPECTEDLY_CLOSED":this.C("idbUnexpectedlyClosed",y);break;case "IS_SUPPORTED_COMPLETED":g.a7("idb_is_supported_completed_killswitch")||this.C("idbIsSupportedCompleted",y);break;case "QUOTA_EXCEEDED":hc2(this,y);break;case "TRANSACTION_ENDED":this.J&&Math.random()<=.1&&this.C("idbTransactionEnded",y);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":J= Object.assign({},y,{hasWindowUnloaded:this.T}),this.C("idbTransactionAborted",J)}};var ED={},g4H=g.Eq("yt-player-local-media",{oh:(ED.index={VA:2},ED.media={VA:2},ED.captions={VA:5},ED),shared:!1,upgrade:function(J,y){y(2)&&(g.FD(J,"index"),g.FD(J,"media"));y(5)&&g.FD(J,"captions");y(6)&&(jO(J,"metadata"),jO(J,"playerdata"))}, version:5});var NsQ={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},QZ;a:{var Z3=g.IM();Z3=Z3.toLowerCase();if(g.ru(Z3,"android")){var Ra0=Z3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ra0){var K4O=parseFloat(Ra0[1]);if(K4O<100){QZ=K4O;break a}}var zaO=Z3.match("("+Object.keys(NsQ).join("|")+")");QZ=zaO?NsQ[zaO[0]]:0}else QZ=void 0}var RK=QZ,Ne=RK>=0;var LEr=window;var Io2=og(function(){var J,y;return(y=(J=window).matchMedia)==null?void 0:y.call(J,"(prefers-reduced-motion: reduce)").matches});var ZD;g.Qv=new tS;ZD=0;var VJ=Xx3()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.XD?!0:!1;var yk={SZ:function(J,y){J[l[20]](0,y)}, sq:function(J,y){var v=J[0];J[0]=J[y%J[l[2]]];J[y%J[l[2]]]=v}, NY:function(J){J[l[39]]()}};var aWr={Q5j:"adunit",ZLj:"detailpage",lok:"editpage",CpY:"embedded",Mhf:"leanback",ZEB:"previewpage",Bvy:"profilepage",L2:"unplugged",OEj:"playlistoverview",hJy:"sponsorshipsoffer",j$A:"shortspage",v6R:"handlesclaiming",ngW:"immersivelivepage",vHK:"creatormusic",iNA:"immersivelivepreviewpage",AOY:"admintoolyurt",pcj:"shortsaudiopivot",VcB:"consumption"};var zE2=2592E3;var wt,kNq,Bw;wt={};g.az=(wt.STOP_EVENT_PROPAGATION="html5-stop-propagation",wt.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",wt.IV_DRAWER_OPEN="ytp-iv-drawer-open",wt.MAIN_VIDEO="html5-main-video",wt.VIDEO_CONTAINER="html5-video-container",wt.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",wt.HOUSE_BRAND="house-brand",wt);kNq={};Bw=(kNq.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",kNq.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",kNq);var dgU={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var l06={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},MJj={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"},bix={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var fc3={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.gk.prototype.getLanguageInfo=function(){return this.N4}; g.gk.prototype.getXtags=function(){if(!this.xtags){var J=this.id.split(";");J.length>1&&(this.xtags=J[1])}return this.xtags}; g.gk.prototype.toString=function(){return this.N4.name}; g.gk.prototype.getLanguageInfo=g.gk.prototype.getLanguageInfo;Dp.prototype.equals=function(J){return this.T===J.T&&this.C===J.C&&this.J===J.J&&this.reason===J.reason&&(!GE||this.FW===J.FW)}; Dp.prototype.isLocked=function(){return this.J&&!!this.T&&this.T===this.C}; Dp.prototype.compose=function(J){if(J.J&&bk(J))return dC;if(J.J||bk(this))return J;if(this.J||bk(J))return this;var y=this.T&&J.T?Math.max(this.T,J.T):this.T||J.T,v=this.C&&J.C?Math.min(this.C,J.C):this.C||J.C;y=Math.min(y,v);var d=0;GE&&(d=this.FW!==0&&J.FW!==0?Math.min(this.FW,J.FW):this.FW===0?J.FW:this.FW);return GE&&y===this.T&&v===this.C&&d===this.FW||!GE&&y===this.T&&v===this.C?this:GE?new Dp(y,v,!1,v===this.C&&d===this.FW?this.reason:J.reason,d):new Dp(y,v,!1,v===this.C?this.reason:J.reason)}; Dp.prototype.W=function(J){return!J.video||GE&&this.FW!==0&&this.FW=0}; g.a.Oe=function(){var J=this.segments[this.segments.length-1];return J?J.endTime:NaN}; g.a.Fl=function(){return this.segments[0].startTime}; g.a.Pd=function(){return this.segments.length}; g.a.MP=function(){return 0}; g.a.Q_=function(J){return(J=this.h1(J))?J.py:-1}; g.a.IS=function(J){return(J=this.BH(J))?J.sourceURL:""}; g.a.getStartTime=function(J){return(J=this.BH(J))?J.startTime:0}; g.a.Ks=function(J){return this.getStartTime(J)+this.getDuration(J)}; g.a.yc=PP(1);g.a.isLoaded=function(){return this.segments.length>0}; g.a.BH=function(J){if(this.C&&this.C.py===J)return this.C;J=g.Hq(this.segments,new zE(J,0,0,0,""),function(y,v){return y.py-v.py}); return this.C=J>=0?this.segments[J]:null}; g.a.h1=function(J){if(this.C&&this.C.startTime<=J&&J=0?this.segments[J]:this.segments[Math.max(0,-J-2)]}; g.a.append=function(J){if(J.length)if(J=g.rV(J),this.segments.length){var y=this.segments.length?g.Wq(this.segments).endTime:0,v=J[0].py-this.Yj();v>1&&G2v(this.segments);for(v=v>0?0:-v+1;vJ.py&&this.index.PH()<=J.py+1}; g.a.update=function(J,y,v){this.index.append(J);pIm(this.index,v);J=this.index;J.T=y;J.J="update"}; g.a.kR=function(){return this.VF()?!0:Xf.prototype.kR.call(this)}; g.a.JW=function(J,y){var v=this.index.IS(J),d=this.index.getStartTime(J),P=this.index.getDuration(J),A;y?P=A=0:A=this.info.FW>0?this.info.FW*P:1E3;return new vi([new ks(3,this,void 0,"liveCreateRequestInfoForSegment",J,d,P,0,A,!y)],v)}; g.a.Tw=function(){return this.VF()?0:this.initRange.length}; g.a.Yd=function(){return!1};nL.prototype.update=function(J){var y=void 0;this.T&&(y=this.T);var v=new nL,d=Array.from(J.getElementsByTagName("S"));if(d.length){var P=+ll(J,"timescale")||1,A=(+d[0].getAttribute("t")||0)/P,T=+ll(J,"startNumber")||0;v.W=A;var M=y?y.startSecs+y.WF:0,n=Date.parse(rTH(ll(J,"yt:segmentIngestTime")))/1E3;v.V=J.parentElement.tagName==="SegmentTemplate";v.V&&(v.G=ll(J,"media"));J=y?T-y.py:1;v.L=J>0?0:-J+1;J=g.D(d);for(d=J.next();!d.done;d=J.next()){d=d.value;for(var Y=+d.getAttribute("d")/P,S=(+d.getAttribute("yt:sid")|| 0)/P,V=+d.getAttribute("r")||0,L=0;L<=V;L++)if(y&&T<=y.py)T++;else{var t=new Bfm(T,M,Y,n+S,A);v.C.push(t);var W=d;var c=P,b=t.startSecs;t=W.getAttribute("yt:cuepointTimeOffset");var B=W.getAttribute("yt:cuepointDuration");if(t&&B){t=Number(t);b=-t/c+b;c=Number(B)/c;B=W.getAttribute("yt:cuepointContext")||null;var q=W.getAttribute("yt:cuepointIdentifier")||"";W=W.getAttribute("yt:cuepointEvent")||"";W=new PJ(b,c,B,q,Qgb[W]||"unknown",t)}else W=null;W&&v.J.push(W);T++;M+=Y;A+=Y;n+=Y+S}}v.C.length&& (v.T=g.Wq(v.C))}this.L=v.L;this.T=v.T||this.T;g.hO(this.C,v.C);g.hO(this.J,v.J);this.V=v.V;this.G=v.G;this.W===-1&&(this.W=v.getStreamTimeOffset())}; nL.prototype.getStreamTimeOffset=function(){return this.W===-1?0:this.W};g.x(Y$,g.ki);g.a=Y$.prototype;g.a.ZF=function(){return this.tA}; g.a.zi=function(J,y){J=SR(this,J);return J>=0&&(y||!this.segments[J].pending)}; g.a.PH=function(){return this.Mc?this.segments.length?this.h1(this.Fl()).py:-1:g.ki.prototype.PH.call(this)}; g.a.Fl=function(){if(this.L0)return 0;if(!this.Mc)return g.ki.prototype.Fl.call(this);if(!this.segments.length)return 0;var J=Math.max(g.Wq(this.segments).endTime-this.hH,0);return this.oz>0&&this.h1(J).py0)return this.Xv/1E3;if(!this.segments.length)return g.ki.prototype.Oe.call(this);var J=this.Yj();if(!this.Mc||J<=this.segments[this.segments.length-1].py)J=this.segments[this.segments.length-1];else{var y=this.segments[this.segments.length-1];J=new zE(J,Math.max(0,y.startTime-(y.py-J)*this.tA),this.tA,0,"sq/"+J,void 0,void 0,!0)}return this.L0?Math.min(this.hH,J.endTime):J.endTime}; g.a.Pd=function(){return this.Mc?this.segments.length?this.Yj()-this.PH()+1:0:g.ki.prototype.Pd.call(this)}; g.a.Yj=function(){var J=Math.min(this.W_,Math.max(g.ki.prototype.Yj.call(this),this.uQ)),y=this.hH*1E3;y=this.Xv>0&&this.Xv0&&this.uQ>0&&!y&&(y=this.h1(this.hH))&&(J=Math.min(y.py-1,J));return J}; g.a.HE=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.a.jq=function(J){var y=SR(this,J.py);if(y>=0)this.segments[y]=J;else if(this.segments.splice(-(y+1),0,J),this.BN&&J.py%(300/this.tA)===0){var v=this.segments[0].py,d=Math.floor(this.BN/this.tA);J=J.py-d;y=-(y+1)-d;y>0&&J>v&&(this.segments=this.segments.slice(y))}}; g.a.zO=function(){return this.uQ}; g.a.uw=function(J){return sG?!this.T&&J>=0&&this.Yj()<=J:g.ki.prototype.uw.call(this,J)}; g.a.h1=function(J){if(!this.Mc)return g.ki.prototype.h1.call(this,J);if(!this.segments.length)return null;var y=this.segments[this.segments.length-1];if(J=y.endTime)y=y.py+Math.floor((J-y.endTime)/this.tA+1);else{y=X_(this.segments,function(d){return J=d.endTime?1:0}); if(y>=0)return this.segments[y];var v=-(y+1);y=this.segments[v-1];v=this.segments[v];y=Math.floor((J-y.endTime)/((v.startTime-y.endTime)/(v.py-y.py-1))+1)+y.py}return this.BH(y)}; g.a.BH=function(J){if(!this.Mc)return g.ki.prototype.BH.call(this,J);if(!this.segments.length)return null;var y=SR(this,J);if(y>=0)return this.segments[y];var v=-(y+1);y=this.tA;if(v===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].py-J)*y);else v===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(J-d.py-1)*y):(d=this.segments[v-1],y=this.segments[v],y=(y.startTime-d.endTime)/(y.py-d.py-1),d=d.endTime+(J-d.py-1)*y);return new zE(J,d,y,0,"sq/"+J,void 0,void 0, !0)}; var sG=!1;g.x(Vp,TB);g.a=Vp.prototype;g.a.cN=function(){return!0}; g.a.kR=function(){return!0}; g.a.TC=function(J){return this.zH()&&J.J&&!J.V||!J.C.index.uw(J.py)}; g.a.OI=function(){}; g.a.Ry=function(J,y){return typeof J!=="number"||isFinite(J)?TB.prototype.Ry.call(this,J,y===void 0?!1:y):new vi([new ks(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.CN,void 0,this.CN*this.info.FW)],"")}; g.a.JW=function(J,y){var v=v===void 0?!1:v;if(this.index.zi(J))return TB.prototype.JW.call(this,J,y);var d=this.index.getStartTime(J),P=Math.round(this.CN*this.info.FW),A=this.CN;y&&(A=P=0);return new vi([new ks(v?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",J,d,A,void 0,P,!y)],J>=0?"sq/"+J:"")};g.x(LL,Xf);g.a=LL.prototype;g.a.Gk=function(){return!1}; g.a.zH=function(){return!1}; g.a.cN=function(){return!1}; g.a.OI=function(){return new vi([new ks(1,this,void 0,"otfInit")],this.V)}; g.a.Pe=function(){return null}; g.a.KM=function(J){this.TC(J);return f9c(this,wy(J),!1)}; g.a.Ry=function(J,y){y=y===void 0?!1:y;J=this.index.Q_(J);y&&(J=Math.min(this.index.Yj(),J+1));return f9c(this,J,!0)}; g.a.SM=function(J){J.info.type===1&&(this.C||(this.C=lr(J.T)),J.C&&J.C.uri==="http://youtube.com/streaming/otf/durations/112015"&&imr(this,J.C))}; g.a.TC=function(J){return J.J===0?!0:this.index.Yj()>J.py&&this.index.PH()<=J.py+1}; g.a.Tw=function(){return 0}; g.a.Yd=function(){return!1};g.tA.prototype.info=function(){}; g.tA.prototype.debug=function(){}; g.tA.prototype.C=function(J){Wi.apply(null,[5,this.tag,J].concat(g.r(g.iR.apply(1,arguments))))}; var Xz6=new Map,K3x=new Map,Nfc=new function(){var J=this;this.C=new Map;this.b6={yQB:function(){return J.C}}};g.a=g.bl.prototype;g.a.zi=function(J){return J<=this.Yj()}; g.a.MP=function(J){return this.offsets[J]}; g.a.getStartTime=function(J){return this.startTicks[J]/this.C}; g.a.Ks=function(J){return this.getStartTime(J)+this.getDuration(J)}; g.a.yc=PP(0);g.a.T4=function(){return NaN}; g.a.getDuration=function(J){J=this.yU(J);return J>=0?J/this.C:-1}; g.a.yU=function(J){return J+1=0}; g.a.Oe=function(){return this.T?this.startTicks[this.count]/this.C:NaN}; g.a.Fl=function(){return 0}; g.a.Pd=function(){return this.count}; g.a.IS=function(){return""}; g.a.Q_=function(J){J=g.Hq(this.startTicks.subarray(0,this.count),J*this.C);return J>=0?J:Math.max(0,-J-2)}; g.a.isLoaded=function(){return this.Yj()>=0}; g.a.EV=function(J,y){if(J>=this.Yj())return 0;var v=0;for(y=this.getStartTime(J)+y;Jthis.getStartTime(J);J++)v=Math.max(v,vzR(this,J)/this.getDuration(J));return v}; g.a.resize=function(J){J+=2;var y=this.offsets;this.offsets=new Float64Array(J+1);var v=this.startTicks;this.startTicks=new Float64Array(J+1);for(J=0;J0&&J&&(v=v.range.end+1,J=Math.min(J,this.info.contentLength-v),J>0&&d.push(new ks(4,this,KS(v,J),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,y)));return new vi(d)}; g.a.SM=function(J){if(J.info.type===1){if(this.C)return;this.C=lr(J.T)}else if(J.info.type===2){if(this.V||this.index.Yj()>=0)return;if(g.hT(this.info)){var y=this.index,v=g.x$(J);J=J.info.range.start;var d=g.Mx(v,0,1936286840);v=QbU(d);y.C=v.timescale;var P=v.K$;y.offsets[0]=v.Sj+J+d.size;y.startTicks[0]=P;y.T=!0;J=v.Su.length;for(d=0;d0&&J===A[0].by)for(J=0;J=y+v)break}P.length||(J=new g.H1("b189619593",""+J,""+y,""+v),g.jv(J));return new vi(P)}; g.a.vl=function(J){for(var y=this.Lk(J.info),v=J.info.range.start+J.info.T,d=[],P=0;P=this.index.MP(v+1);)v++;return this.OB(v,y,J.J).Uk}; g.a.TC=function(J){J.N$();return this.kR()?!0:J.range.end+1this.info.contentLength&&(y=new Nx(y.start,this.info.contentLength-1)),new vi([new ks(4,J.C,y,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J.clipId)]);J.type===4&&(J=this.Lk(J),J=J[J.length-1]);var v=0,d=J.range.start+J.T+J.J;J.type===3&&(J.N$(),v=J.py,d===J.range.end+1&&(v+=1));return this.OB(v,d,y)}; g.a.KM=function(){return null}; g.a.Ry=function(J,y){y=y===void 0?!1:y;J=this.index.Q_(J);y&&(J=Math.min(this.index.Yj(),J+1));return this.OB(J,this.index.MP(J),0,void 0)}; g.a.Gk=function(){return!0}; g.a.zH=function(){return!0}; g.a.cN=function(){return!1}; g.a.Tw=function(){return this.indexRange.length+this.initRange.length}; g.a.Yd=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var yr={},x_d=(yr.COLOR_PRIMARIES_BT709="bt709",yr.COLOR_PRIMARIES_BT2020="bt2020",yr.COLOR_PRIMARIES_UNKNOWN=null,yr.COLOR_PRIMARIES_UNSPECIFIED=null,yr),vX={},PhH=(vX.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",vX.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",vX.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",vX.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",vX.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,vX.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,vX);g.eR.prototype.getName=function(){return this.name}; g.eR.prototype.getId=function(){return this.id}; g.eR.prototype.getIsDefault=function(){return this.isDefault}; g.eR.prototype.toString=function(){return this.name}; g.eR.prototype.getName=g.eR.prototype.getName;g.eR.prototype.getId=g.eR.prototype.getId;g.eR.prototype.getIsDefault=g.eR.prototype.getIsDefault;var M12=/action_display_post/;var nz2,qs,rn;g.x($$,g.yK);g.a=$$.prototype;g.a.isLoading=function(){return this.state===1}; g.a.Rq=function(){return this.state===3}; g.a.Q_B=function(J){var y=J.getElementsByTagName("Representation");if(J.getElementsByTagName("SegmentList").length>0||J.getElementsByTagName("SegmentTemplate").length>0){this.jH=this.T=!0;this.timeline||(this.timeline=new o6U);pz6(this.timeline,J);this.publish("refresh");for(J=0;J=0?S=Ru(L):V=V+"?range="+L}n.call(M,new zE(Y.py,Y.startSecs,Y.WF,Y.C,V,S,Y.T))}d=P}v.update(d,this.isLive,this.Vk)}Uoj(this.timeline);return!0}this.duration=qyH(ll(J,"mediaPresentationDuration")); a:{for(J=0;J0))return this.uJ()-J}}J=this.C;for(var y in J){var v=J[y].index;if(v.isLoaded()&&!iU(J[y].info.mimeType))return v.Fl()}return 0}; g.a.getStreamTimeOffset=function(){return this.G}; g.a.T4=function(J){for(var y in this.C){var v=this.C[y].index;if(v.isLoaded()){var d=v.Q_(J),P=v.T4(d);if(P)return P+J-v.getStartTime(d)}}return NaN}; var KL=null,Zj_,zB=!((Zj_=navigator.mediaCapabilities)==null||!Zj_.decodingInfo),ber={commentary:1,alternate:2,dub:3,main:4};var Li=new Set,k$=new Map;Z2.prototype.clone=function(J){return new Z2(this.flavor,J,this.T,this.experiments)}; Z2.prototype.P$=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; Z2.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 wZC={},Me=(wZC.playready=["com.youtube.playready","com.microsoft.playready"],wZC.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],wZC),dW={},w8d=(dW.widevine="DRM_SYSTEM_WIDEVINE",dW.fairplay="DRM_SYSTEM_FAIRPLAY",dW.playready="DRM_SYSTEM_PLAYREADY",dW),PX={},J3O=(PX.widevine=1,PX.fairplay=2,PX.playready=3,PX);var YO;g.x(no,g.u); no.prototype.initialize=function(J,y){for(var v=this,d=g.D(Object.keys(J)),P=d.next();!P.done;P=d.next()){P=g.D(J[P.value]);for(var A=P.next();!A.done;A=P.next())if(A=A.value,A.E8)for(var T=g.D(Object.keys(A.E8)),M=T.next();!M.done;M=T.next()){var n=M.value;M=n;n=Me[n];!n&&this.X("html5_enable_vp9_fairplay")&&M==="fairplay"&&(n=["com.youtube.fairplay.sbdl"]);if(n){n=g.D(n);for(var Y=n.next();!Y.done;Y=n.next())Y=Y.value,this.J[Y]=this.J[Y]||new Z2(M,Y,A.E8[M],this.qx.experiments),this.C[M]=this.C[M]|| {},this.C[M][A.mimeType]=!0}}}H0()&&(this.J["com.youtube.fairplay"]=new Z2("fairplay","com.youtube.fairplay","",this.qx.experiments),this.X("html5_enable_vp9_fairplay")||(this.C.fairplay=this.C.fairplay||{},this.C.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.C.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.T=pdU(y,this.useCobaltWidevine,this.X("html5_enable_safari_fairplay")&&!0,this.X("html5_enable_vp9_fairplay")).filter(function(S){return!!v.J[S]})}; no.prototype.X=function(J){return this.qx.experiments.BX(J)};var y3V={"":"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"};Xdm.prototype.X=function(J){return this.experiments.BX(J)};var Ozc={RED:"red",CXW:"white"};Nj3.prototype.BX=function(J){J=this.flags[J];JSON.stringify(J);return J==="true"};var zFc=Promise.resolve(),ZeU=window.queueMicrotask?window.queueMicrotask.bind(window):kKR;tD.prototype.canPlayType=function(J,y){J=J.canPlayType?J.canPlayType(y):!1;HN?J=J||v7X[y]:RK===2.2?J=J||dcH[y]:iQ()&&(J=J||POH[y]);return!!J}; tD.prototype.isTypeSupported=function(J){return this.K?window.cast.receiver.platform.canDisplayType(J):ac(J)}; var dcH={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},POH={"application/x-mpegURL":"maybe"},v7X={"application/x-mpegURL":"maybe"};g.x(xO,g.yK);xO.prototype.add=function(J,y){if(!this.items[J]&&(y.oU||y.Ew||y.VX)){var v=this.items,d=y;Object.isFrozen&&!Object.isFrozen(y)&&(d=Object.create(y),Object.freeze(d));v[J]=d;this.publish("vast_info_card_add",J)}}; xO.prototype.remove=function(J){var y=this.get(J);delete this.items[J];return y}; xO.prototype.get=function(J){return this.items[J]||null}; xO.prototype.isEmpty=function(){return g.Vx(this.items)};var g4;DK.prototype.add=function(J){if(this.pos+20>this.data.length){var y=new Uint8Array(this.data.length*2);y.set(this.data);this.data=y}for(;J>31;)this.data[this.pos++]=g4[(J&31)+32],J>>=5;this.data[this.pos++]=g4[J|0]}; DK.prototype.a5=function(){return g.S0(this.data.subarray(0,this.pos))}; DK.prototype.reset=function(){this.pos=0};G3.prototype.B_=function(J,y){var v=Math.pow(this.alpha,J);this.C=y*(1-v)+v*this.C;this.T+=J}; G3.prototype.Po=function(){return this.C/(1-Math.pow(this.alpha,this.T))};bn.prototype.B_=function(J,y){for(var v=0;v<10;v++){var d=this.C[v],P=d+(v===0?J:0),A=1*Math.pow(2,v);if(P<=A)break;d=Math.min(1,(P-A*.5)/d);for(P=0;P<16;P++)A=this.values[v*16+P]*d,this.values[(v+1)*16+P]+=A,this.C[v+1]+=A,this.values[v*16+P]-=A,this.C[v]-=A}d=v=0;P=8192;y>8192&&(v=Math.ceil(Math.log(y/8192)/Math.log(2)),d=8192*Math.pow(2,v-1),P=d*2);v+2>16?this.values[15]+=J:(y=(y-d)/(P-d),this.values[v]+=J*(1-y),this.values[v+1]+=J*y);this.C[0]+=J}; bn.prototype.Po=function(){var J=J===void 0?this.T:J;var y=y===void 0?.02:y;var v=v===void 0?.98:v;for(var d=this.J,P=0;P<16;P++)d[P]=this.values[P];P=this.C[0];for(var A=1;A<11;A++){var T=this.C[A];if(T===0)break;for(var M=Math.min(1,(J-P)/T),n=0;n<16;n++)d[n]+=this.values[A*16+n]*M;P+=T*M;if(M<1)break}for(A=J=T=0;A<16;A++){M=T+d[A]/P;J+=Math.max(0,Math.min(M,v)-Math.max(T,y))*(A>0?8192*Math.pow(2,A-1):0);if(M>v)break;T=M}return J/(v-y)};FA.prototype.B_=function(J,y){J=Math.min(this.C,Math.max(1,Math.round(J*this.resolution)));J+this.T>=this.C&&(this.J=!0);for(;J--;)this.values[this.T]=y,this.T=(this.T+1)%this.C;this.Mj=!0}; FA.prototype.percentile=function(J){var y=this;if(!this.J&&this.T===0)return 0;this.Mj&&(g.KH(this.V,function(v,d){return y.values[v]-y.values[d]}),this.Mj=!1); return this.values[this.V[Math.round(J*((this.J?this.C:this.T)-1))]]||0}; FA.prototype.Po=function(){return this.L?(this.percentile(this.W-this.L)+this.percentile(this.W)+this.percentile(this.W+this.L))/3:this.percentile(this.W)};g.x(jD,g.u);jD.prototype.GK=function(){var J;(J=this.Ek)==null||J.start();if(Co(this)&&this.policy.B){var y;(y=this.mQ)==null||y.t8()}};sqx.prototype.X=function(J){return this.experiments.BX(J)};g.x(SoT,g.u);var xIP="blogger ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),bz3={NCy:"caoe",ZrR:"capsv",dFk:"cbrand",Trk:"cbr",gHy:"cbrver",bLR:"cchip",EHW:"ccappver",mFj:"ccrv",pOx:"cfrmver",z2Y:"c",doK:"cver",a5j:"ctheme",C1X:"cplayer",Cuk:"cmodel",gH:"cnetwork",cBx:"cos",OS_VERSION:"cosver",hjy:"cplatform",aCk:"crqyear"};g.x(vT,g.u);g.a=vT.prototype;g.a.X=function(J){return this.experiments.BX(J)}; g.a.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.a.getVideoUrl=function(J,y,v,d,P,A,T){y={list:y};v&&(P?y.time_continue=v:y.t=v);v=T?"music.youtube.com":g.PT(this);P=v==="www.youtube.com";!A&&d&&P?A="https://youtu.be/"+J:g.kO(this)?(A="https://"+v+"/fire",y.v=J):(A&&P?(A=this.protocol+"://"+v+"/shorts/"+J,d&&(y.feature="share")):(A=this.protocol+"://"+v+"/watch",y.v=J),HN&&(J=ibx())&&(y.ebc=J));return g.al(A,y)}; g.a.getVideoEmbedCode=function(J,y,v,d){y="https://"+g.PT(this)+"/embed/"+y;d&&(y=g.al(y,{list:d}));d=v.width;v=v.height;y=r0(y);J=r0(J!=null?J:"YouTube video player");return'')}; g.a.supportsGaplessAudio=function(){return g.Wz&&!HN&&pX()>=74||g.T3&&g.iX(68)?!0:!1}; g.a.supportsGaplessShorts=function(){return!this.X("html5_enable_short_gapless")||this.Vk||g.tW?!1:!0}; g.a.getPlayerType=function(){return this.C.cplayer}; g.a.SH=function(){return this.Lj}; var mI2=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Gvx=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],jqP=[19];var AM={},r$R=(AM["140"]={numChannels:2},AM["141"]={numChannels:2},AM["251"]={audioSampleRate:48E3,numChannels:2},AM["774"]={audioSampleRate:48E3,numChannels:2},AM["380"]={numChannels:6},AM["328"]={numChannels:6},AM["773"]={},AM),TX={},Bcv=(TX["1"]='video/mp4; codecs="av01.0.08M.08"',TX["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',TX["1e"]='video/mp4; codecs="av01.0.08M.08"',TX["9"]='video/webm; codecs="vp9"',TX["("]='video/webm; codecs="vp9"',TX["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', TX.h='video/mp4; codecs="avc1.64001e"',TX.H='video/mp4; codecs="avc1.64001e"',TX.o='audio/webm; codecs="opus"',TX.a='audio/mp4; codecs="mp4a.40.2"',TX.ah='audio/mp4; codecs="mp4a.40.2"',TX.mac3='audio/mp4; codecs="ac-3"; channels=6',TX.meac3='audio/mp4; codecs="ec-3"; channels=6',TX.i='audio/mp4; codecs="iamf.001.001.Opus"',TX),lW={},qom=(lW["337"]={width:3840,height:2160,bitrate:3E7,fps:30},lW["336"]={width:2560,height:1440,bitrate:15E6,fps:30},lW["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, lW["702"]={width:7680,height:4320,bitrate:4E7,fps:60},lW["701"]={width:3840,height:2160,bitrate:2E7,fps:60},lW["700"]={width:2560,height:1440,bitrate:1E7,fps:60},lW["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},lW["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},lW["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},lW["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, lW["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},lW["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},lW["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},lW["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},lW["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},lW["315"]={width:3840,height:2160,bitrate:2E7,fps:60},lW["308"]={width:2560, height:1440,bitrate:1E7,fps:60},lW["303"]={width:1920,height:1080,bitrate:5E6,fps:60},lW["302"]={width:1280,height:720,bitrate:25E5,fps:60},lW["299"]={width:1920,height:1080,bitrate:75E5,fps:60},lW["298"]={width:1280,height:720,bitrate:35E5,fps:60},lW["571"]={width:7680,height:4320,bitrate:3E7,fps:60},lW["401"]={width:3840,height:2160,bitrate:15E6,fps:60},lW["400"]={width:2560,height:1440,bitrate:75E5,fps:60},lW["399"]={width:1920,height:1080,bitrate:2E6,fps:60},lW["398"]={width:1280,height:720,bitrate:1E6, fps:60},lW["397"]={width:854,height:480,bitrate:4E5,fps:30},lW["396"]={width:640,height:360,bitrate:25E4,fps:30},lW["787"]={width:1080,height:608,bitrate:2E5,fps:30},lW["788"]={width:1080,height:608,bitrate:4E5,fps:30},lW["572"]={width:7680,height:4320,bitrate:3E7,fps:60},lW["555"]={width:3840,height:2160,bitrate:15E6,fps:60},lW["554"]={width:2560,height:1440,bitrate:75E5,fps:60},lW["553"]={width:1920,height:1080,bitrate:2E6,fps:60},lW["552"]={width:1280,height:720,bitrate:1E6,fps:60},lW["551"]={width:854, height:480,bitrate:4E5,fps:30},lW["550"]={width:640,height:360,bitrate:25E4,fps:30},lW["313"]={width:3840,height:2160,bitrate:8E6,fps:30},lW["271"]={width:2560,height:1440,bitrate:4E6,fps:30},lW["248"]={width:1920,height:1080,bitrate:2E6,fps:30},lW["247"]={width:1280,height:720,bitrate:15E5,fps:30},lW["244"]={width:854,height:480,bitrate:52E4,fps:30},lW["243"]={width:640,height:360,bitrate:28E4,fps:30},lW["137"]={width:1920,height:1080,bitrate:4E6,fps:30},lW["136"]={width:1280,height:720,bitrate:3E6, fps:30},lW["135"]={width:854,height:480,bitrate:1E6,fps:30},lW["385"]={width:1920,height:1080,bitrate:6503313,fps:60},lW["376"]={width:1280,height:720,bitrate:5706960,fps:60},lW["384"]={width:1280,height:720,bitrate:3660979,fps:60},lW["225"]={width:1280,height:720,bitrate:5805E3,fps:30},lW["224"]={width:1280,height:720,bitrate:453E4,fps:30},lW["145"]={width:1280,height:720,bitrate:2682052,fps:30},lW);g.a=D_.prototype;g.a.getInfo=function(){return this.C}; g.a.nQ=function(){return null}; g.a.kT=function(){var J=this.nQ();return J?(J=g.y2(J.q4),Number(J.expire)):NaN}; g.a.ZL=function(){}; g.a.getHeight=function(){return this.C.video.height};hUj.prototype.build=function(){UIP(this);var J=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],y={};a:if(this.C)var v=this.C;else{v="";for(var d=g.D(this.J),P=d.next();!P.done;P=d.next())if(P=P.value,P.N4){if(P.N4.getIsDefault()){v=P.N4.getId();break a}v||(v=P.N4.getId())}}d=g.D(this.J);for(P=d.next();!P.done;P=d.next())if(P=P.value,this.L||!P.N4||P.N4.getId()===v)y[P.itag]||(y[P.itag]=[]),y[P.itag].push(P);v=g.D(this.T);for(d=v.next();!d.done;d=v.next())if(d=d.value,P=y[d.C]){P=g.D(P);for(var A=P.next();!A.done;A= P.next()){var T=J,M=T.push;A=A.value;var n="#EXT-X-MEDIA:TYPE=AUDIO,",Y="YES",S="audio";if(A.N4){S=A.N4;var V=S.getId().split(".")[0];V&&(n+='LANGUAGE="'+V+'",');(this.C?this.C===S.getId():S.getIsDefault())||(Y="NO");S=S.getName()}V="";d!==null&&(V=d.itag.toString());V=Gx(this,A.url,V);n=n+('NAME="'+S+'",DEFAULT='+(Y+',AUTOSELECT=YES,GROUP-ID="'))+(pST(A,d)+'",URI="'+(V+'"'));M.call(T,n)}}v=g.D(this.V);for(d=v.next();!d.done;d=v.next())d=d.value,P=A3q,d=(T=d.N4)?'#EXT-X-MEDIA:URI="'+Gx(this,d.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+P+'",LANGUAGE="'+T.getId()+'",NAME="'+T.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&J.push(d);v=this.V.length>0?A3q:void 0;d=g.D(this.T);for(P=d.next();!P.done;P=d.next())P=P.value,M=y[P.C],T=void 0,((T=M)==null?void 0:T.length)>0&&(T=P,M=M[0],M="#EXT-X-STREAM-INF:BANDWIDTH="+(T.bitrate+M.bitrate)+',CODECS="'+(T.codecs+","+M.codecs+'",RESOLUTION=')+(T.width+"x"+T.height+',AUDIO="')+(pST(M,T)+'",')+(v?'SUBTITLES="'+v+'",':"")+"CLOSED-CAPTIONS=NONE",T.fps>1&&(M+= ",FRAME-RATE="+T.fps),T.uG&&(M+=",VIDEO-RANGE="+T.uG),J.push(M),J.push(Gx(this,P.url,"")));return J.join("\n")}; var A3q="text";g.x(bB,D_);bB.prototype.kT=function(){return this.expiration}; bB.prototype.nQ=function(){if(!this.q4||this.q4.tY()){var J=this.T.build();J="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(J);this.q4=new Pd(J)}return this.q4};g.x(Fw,D_);Fw.prototype.nQ=function(){return new Pd(this.T.S1())}; Fw.prototype.ZL=function(){this.T=Rz(this.T)};g.x(jc,D_);jc.prototype.nQ=function(){return new Pd(this.T)};var Mv={},kv3=(Mv.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Mv.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Mv.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Mv.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",Mv);g.a=g.ec.prototype;g.a.getId=function(){return this.id}; g.a.getName=function(){return this.name}; g.a.isServable=function(){return this.C}; g.a.S1=function(){return this.url}; g.a.getXtags=function(){return this.xtags}; g.a.toString=function(){return this.languageCode+": "+g.mk(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.a.equals=function(J){return J?this.toString()===J.toString():!1}; g.a.ZO=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var yec={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},v4R={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},d26=/^(\d*)_((\d*)_?(\d*))$/;var Ae3={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Te2={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var nN={},TpQ=(nN.ALWAYS=1,nN.BY_REQUEST=3,nN.UNKNOWN=void 0,nN),sR={},lry=(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 hgT; hgT=function(J){for(var y=Object.keys(J),v={},d=0;dd-y?-1:J}; g.a.eF=function(){return this.T.Yj()}; g.a.fD=function(){return this.T.PH()}; g.a.OG=function(J){this.T=J};g.x(vh,JH);vh.prototype.T=function(J,y){return JH.prototype.T.call(this,"$N|"+J,y)}; vh.prototype.V=function(J,y,v){return new y1(J,y,v,this.isLive)};var Xnd=[],Mf=new Set;g.x(g.Ph,g.yK);g.a=g.Ph.prototype; g.a.setData=function(J){J=J||{};var y=J.errordetail;y!=null&&(this.errorDetail=y);var v=J.errorcode;v!=null?this.errorCode=v:J.status==="fail"&&(this.errorCode="auth");var d=J.reason;d!=null&&(this.errorReason=d);var P=J.subreason;P!=null&&(this.Nc=P);this.X("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=J.cpn||(this.qx.SH()?"r"+g.t4(15):g.t4(16)));this.rj=JX(this.qx.rj,J.livemonitor);Icc(this,J);var A=J.raw_player_response;if(A)this.mp=A;else{var T=J.player_response; T&&(A=JSON.parse(T))}if(this.X("html5_enable_ssap_entity_id")){var M=J.cached_load;M&&(this.Zv=JX(this.Zv,M));if(!this.clientPlaybackNonce){var n=J.cpn;n?(this.jE("ssei","shdc"),this.clientPlaybackNonce=n):this.clientPlaybackNonce=this.qx.SH()?"r"+g.t4(15):g.t4(16)}}A&&(this.playerResponse=A);if(this.playerResponse){var Y=this.playerResponse.annotations;if(Y)for(var S=g.D(Y),V=S.next();!V.done;V=S.next()){var L=V.value.playerAnnotationsUrlsRenderer;if(L){L.adsOnly&&(this.wS=!0);var t=L.loadPolicy; t&&(this.annotationsLoadPolicy=TpQ[t]);var W=L.invideoUrl;W&&(this.Ek=ft(W));break}}var c=this.playerResponse.attestation;c&&Ml6(this,c);var b=this.playerResponse.cotn;b&&(this.cotn=b);var B=this.playerResponse.heartbeatParams;if(B){this.FF=!0;var q=B.heartbeatToken;q&&(this.drmSessionId=B.drmSessionId||"",this.heartbeatToken=q,this.n5=Number(B.intervalMilliseconds),this.a6=Number(B.maxRetries),this.kp=!!B.softFailOnError,this.VV=!!B.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=B.heartbeatServerData; var C;this.ox=!((C=B.heartbeatAttestationConfig)==null||!C.requiresAttestation)}var U=this.playerResponse.messages;U&&Sjx(this,U);var N=this.playerResponse.overlay;if(N){var Jc=N.playerControlsOverlayRenderer;if(Jc)if(LMU(this,Jc.controlBgHtml),Jc.mutedAutoplay){var E=g.R(Jc.mutedAutoplay,bny);if(E&&E.endScreen){var T2=g.R(E.endScreen,FSy);T2&&T2.text&&(this.wX=g.nf(T2.text))}}else this.mutedAutoplay=!1}var Mj=this.playerResponse.playabilityStatus;if(Mj){var lR=Mj.backgroundability;lR&&lR.backgroundabilityRenderer.backgroundable&& (this.backgroundable=!0);var Sx,vP;if((Sx=Mj.offlineability)==null?0:(vP=Sx.offlineabilityRenderer)==null?0:vP.offlineable)this.offlineable=!0;var mT=Mj.contextParams;mT&&(this.contextParams=mT);var hc=Mj.pictureInPicture;hc&&hc.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);Mj.playableInEmbed&&(this.allowEmbed=!0);var JO=Mj.ypcClickwrap;if(JO){var fH=JO.playerLegacyDesktopYpcClickwrapRenderer,gV=JO.ypcRentalActivationRenderer;if(fH)this.AQ=fH.durationMessage||"",this.TP=!0;else if(gV){var UU= gV.durationMessage;this.AQ=UU?g.nf(UU):"";this.TP=!0}}var Zy=Mj.errorScreen;if(Zy){if(Zy.playerLegacyDesktopYpcTrailerRenderer){var tO=Zy.playerLegacyDesktopYpcTrailerRenderer;this.Cb=tO.trailerVideoId||"";var Nb=Zy.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var vL=Nb&&Nb.ypcTrailerRenderer}else if(Zy.playerLegacyDesktopYpcOfferRenderer)tO=Zy.playerLegacyDesktopYpcOfferRenderer;else if(Zy.ypcTrailerRenderer){vL=Zy.ypcTrailerRenderer;var m=vL.fullVideoMessage;this.yb=m?g.nf(m):"";var p_,$y;this.Cb= ((p_=g.R(vL,jVy))==null?void 0:($y=p_.videoDetails)==null?void 0:$y.videoId)||""}tO&&(this.bQ=tO.itemTitle||"",tO.itemUrl&&(this.mJ=tO.itemUrl),tO.itemBuyUrl&&(this.nW=tO.itemBuyUrl),this.lc=tO.itemThumbnail||"",this.XZ=tO.offerHeadline||"",this.pR=tO.offerDescription||"",this.pE=tO.offerId||"",this.M5=tO.offerButtonText||"",this.TX=tO.offerButtonFormattedText||null,this.OT=tO.overlayDurationMsec||NaN,this.yb=tO.fullVideoMessage||"",this.Kp=!0);if(vL){var dr=g.R(vL,jVy);if(dr)this.jf={raw_player_response:dr}; else{var Bq=g.R(vL,IN0);this.jf=Bq?wN(Bq):null}this.Kp=!0}}}var G=this.playerResponse.playbackTracking;if(G){var yH=J,Nh=oj(G.googleRemarketingUrl);Nh&&(this.googleRemarketingUrl=Nh);var M7=oj(G.youtubeRemarketingUrl);M7&&(this.youtubeRemarketingUrl=M7);var iw={},Nj=oj(G.ptrackingUrl);if(Nj){var Zv=Ch(Nj),Qx=Zv.oid;Qx&&(this.I2=Qx);var Ug=Zv.pltype;Ug&&(this.Qz=Ug);var F=Zv.ptchn;F&&(this.b2=F);var O=Zv.ptk;O&&(this.Dq=encodeURIComponent(O));var e=Zv.m;e&&(this.Gl=e)}var I=oj(G.qoeUrl);if(I){for(var H= g.y2(I),VH=g.D(Object.keys(H)),K=VH.next();!K.done;K=VH.next()){var Z=K.value,p=H[Z];H[Z]=Array.isArray(p)?p.join(","):p}this.xW=H;var $m=H.cat;$m&&(this.X("html5_enable_qoe_cat_list")?this.WH=this.WH.concat($m.split(",")):this.H5=$m);var HP=H.live;HP&&(this.EZ=HP);var n3=H.drm_product;n3&&(this.drmProduct=n3)}var sn=oj(G.videostatsPlaybackUrl);if(sn){var qj=Ch(sn),cP=qj.adformat;if(cP){yH.adformat=cP;var y6=this.Y(),F_=Pjx(cP,this.Aw,y6.W,y6.B);F_&&(this.adFormat=F_)}var pH=qj.aqi;pH&&(yH.ad_query_id= pH);var jx=qj.autoplay;jx&&(this.Cr=jx=="1",this.Yo=jx=="1");var GN=qj.autonav;GN&&(this.isAutonav=GN=="1");var rr=qj.delay;rr&&(this.aG=Cn(rr));var oC=qj.ei;oC&&(this.eventId=oC);if(qj.adcontext||cP)this.Cr=!0;var jX=qj.feature;jX&&(this.jI=jX);var Mh=qj.list;Mh&&(this.playlistId=Mh);var eX=qj.of;eX&&(this.qB=eX);var vo=qj.osid;vo&&(this.osid=vo);var As=qj.referrer;As&&(this.referrer=As);var RC=qj.sdetail;RC&&(this.iq=RC);var CH=qj.ssrt;CH&&(this.XV=CH=="1");var BD=qj.subscribed;BD&&(this.subscribed= BD=="1");var Zr=qj.uga;Zr&&(this.userGenderAge=Zr);var Ot=qj.upt;Ot&&(this.VN=Ot);var is=qj.vm;is&&(this.videoMetadata=is);iw.playback=qj}var dX=oj(G.videostatsWatchtimeUrl);if(dX){var Po=Ch(dX),Mc=Po.ald;Mc&&(this.oL=Mc);iw.watchtime=Po}var ba=oj(G.atrUrl);if(ba){var IA=Ch(ba);iw.atr=IA}var wp=oj(G.engageUrl);if(wp){var pl=Ch(wp);iw.engage=pl}this.yA=iw;if(G.promotedPlaybackTracking){var vZ=G.promotedPlaybackTracking;vZ.startUrls&&(this.e3=vZ.startUrls);vZ.firstQuartileUrls&&(this.L6=vZ.firstQuartileUrls); vZ.secondQuartileUrls&&(this.Gf=vZ.secondQuartileUrls);vZ.thirdQuartileUrls&&(this.lV=vZ.thirdQuartileUrls);vZ.completeUrls&&(this.DH=vZ.completeUrls);vZ.engagedViewUrls&&(vZ.engagedViewUrls.length>1&&g.ev(new g.H1("There are more than one engaged_view_urls.")),this.KP=vZ.engagedViewUrls[0])}}var gG=this.playerResponse.playerCueRanges;gG&&gG.length>0&&(this.cueRanges=gG);var us=this.playerResponse.playerCueRangeSet;us&&g.nF(this,us);a:{var c3=this.playerResponse.adPlacements;if(c3)for(var Aq=g.D(c3), GJ=Aq.next();!GJ.done;GJ=Aq.next()){var Tz=void 0,lN=void 0,MU=(Tz=GJ.value.adPlacementRenderer)==null?void 0:(lN=Tz.renderer)==null?void 0:lN.videoAdTrackingRenderer;if(MU){var nl=MU;break a}}nl=null}var bg=nl;G&&G.promotedPlaybackTracking&&bg&&g.ev(new g.H1("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var n9;if(!(n9=bg))a:{for(var s_=g.D(this.playerResponse.adSlots||[]),xg=s_.next();!xg.done;xg=s_.next()){var Od=g.R(xg.value,yF);if(Od===void 0||!rIv(Od))break; var oH=void 0,fl=(oH=Od.fulfillmentContent)==null?void 0:oH.fulfilledLayout,iN=g.R(fl,Ro);if(iN&&uj(iN)){n9=!0;break a}}n9=!1}n9&&(this.xb=!0);var uN=this.playerResponse.playerAds;if(uN)for(var dR=J,Cy=g.D(uN),DS=Cy.next();!DS.done;DS=Cy.next()){var hJ=DS.value;if(hJ){var PQ=hJ.playerLegacyDesktopWatchAdsRenderer;if(PQ){var Ho=PQ.playerAdParams;if(Ho){Ho.autoplay=="1"&&(this.Yo=this.Cr=!0);this.Qe=Ho.encodedAdSafetyReason||null;Ho.showContentThumbnail!==void 0&&(this.uu=!!Ho.showContentThumbnail); dR.enabled_engage_types=Ho.enabledEngageTypes;break}}}}var Fn=this.playerResponse.playerConfig;if(Fn){var Fc=Fn.manifestlessWindowedLiveConfig;if(Fc){var Uv=Number(Fc.minDvrSequence),Ao=Number(Fc.maxDvrSequence),gJ=Number(Fc.minDvrMediaTimeMs),TD=Number(Fc.maxDvrMediaTimeMs),IH=Number(Fc.startWalltimeMs);Uv&&(this.oz=Uv);gJ&&(this.wj=gJ/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&gC(this)&&(this.cH=gJ/1E3));Ao&&(this.W_=Ao);TD&&(this.yl=TD/1E3,this.X("html5_sabr_parse_live_metadata_playback_boundaries")&& gC(this)&&(this.sx=TD/1E3));IH&&(this.L8=IH/1E3);(Uv||gJ)&&(Ao||TD)&&(this.allowLiveDvr=this.isLivePlayback=this.zK=!0,this.L0=!1)}var py=Fn.daiConfig;if(py){if(py.enableDai){this.eC=!0;var T0=py.enableServerStitchedDai;T0&&(this.enableServerStitchedDai=T0);var Xk=py.enablePreroll;Xk&&(this.Oc=Xk)}var T9;if(py.daiType==="DAI_TYPE_SS_DISABLED"||((T9=py.debugInfo)==null?0:T9.isDisabledUnpluggedChannel))this.yh=!0;py.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.r_=!0)}var Ma=Fn.audioConfig;if(Ma){var fs= Ma.loudnessDb;fs!=null&&(this.xj=fs);var i56=Ma.trackAbsoluteLoudnessLkfs;i56!=null&&(this.LK=i56);var u$r=Ma.loudnessTargetLkfs;u$r!=null&&(this.loudnessTargetLkfs=u$r);Ma.audioMuted&&(this.aq=!0);Ma.muteOnStart&&(this.V6=!0);var Dc=Ma.loudnessNormalizationConfig;if(Dc){Dc.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);Dc.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var H5R=Dc.minimumLoudnessTargetLkfs;H5R!=null&&(this.minimumLoudnessTargetLkfs=H5R); var Xp6=Dc.maxStatefulTimeThresholdSec;Xp6!=null&&(this.maxStatefulTimeThresholdSec=Xp6)}Ma.playAudioOnly&&(this.VE=!0)}var arR=Fn.playbackEndConfig;if(arR){var NxR=arR.endSeconds,RXr=arR.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(NxR&&(this.endSeconds=NxR),RXr&&(this.limitedPlaybackDurationInSeconds=RXr))}var O4=Fn.fairPlayConfig;if(O4){var Kxx=O4.certificate;Kxx&&(this.Vk=OC(Kxx));var zX6=Number(O4.keyRotationPeriodMs);zX6>0&&(this.Zq=zX6);var k9c=Number(O4.keyPrefetchMarginMs);k9c>0&& (this.NT=k9c)}var Cu=Fn.playbackStartConfig;if(Cu){this.b8=Number(Cu.startSeconds);var EtH=Cu.liveUtcStartSeconds,QsT=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;EtH&&!QsT&&(this.liveUtcStartSeconds=Number(EtH));var xc2=Cu.startPosition;if(xc2){var Z5d=xc2.utcTimeMillis;Z5d&&!QsT&&(this.liveUtcStartSeconds=Number(Z5d)*.001);var wpv=xc2.streamTimeMillis;wpv&&(this.QM=Number(wpv)*.001)}this.progressBarStartPosition=Cu.progressBarStartPosition;this.progressBarEndPosition=Cu.progressBarEndPosition}else{var O9H= Fn.skippableSegmentsConfig;if(O9H){var J_m=O9H.introSkipDurationMs;J_m&&(this.Ii=Number(J_m)/1E3);var y_r=O9H.outroSkipDurationMs;y_r&&(this.oC=Number(y_r)/1E3)}}var g7R=Fn.skippableIntroConfig;if(g7R){var vq3=Number(g7R.startMs),dq3=Number(g7R.endMs);isNaN(vq3)||isNaN(dq3)||(this.Ny=vq3,this.mL=dq3)}var P_c=Fn.streamSelectionConfig;P_c&&(this.Lf=Number(P_c.maxBitrate));var A_r=Fn.vrConfig;A_r&&(this.EM=A_r.partialSpherical=="1");var cn=Fn.webDrmConfig;if(cn){cn.skipWidevine&&(this.VJ=!0);var Twj= cn.widevineServiceCert;Twj&&(this.Qw=OC(Twj));cn.useCobaltWidevine&&(this.useCobaltWidevine=!0);cn.startWithNoQualityConstraint&&(this.JB=!0)}var ip=Fn.mediaCommonConfig;if(ip){var gL=ip.dynamicReadaheadConfig;if(gL){this.maxReadAheadMediaTimeMs=gL.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=gL.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=gL.readAheadGrowthRateMs||NaN;var lg2,Mk3=ip==null?void 0:(lg2=ip.mediaUstreamerRequestConfig)==null?void 0:lg2.videoPlaybackUstreamerConfig; Mk3&&(this.VH=OC(Mk3));var Dcv=ip==null?void 0:ip.sabrContextUpdates;if(Dcv&&Dcv.length>0)for(var nq3=g.D(Dcv),c36=nq3.next();!c36.done;c36=nq3.next()){var db=c36.value;if(db.type&&db.value){var I5y={type:db.type,scope:db.scope,value:OC(db.value)||void 0,sendByDefault:db.sendByDefault};this.sabrContextUpdates.set(db.type,I5y)}}}var svm=ip.serverPlaybackStartConfig;svm&&(this.serverPlaybackStartConfig=svm);ip.useServerDrivenAbr&&(this.Fs=!0);var Ymd=ip.requestPipeliningConfig;Ymd&&(this.requestPipeliningConfig= Ymd)}var Sm3=Fn.inlinePlaybackConfig;Sm3&&(this.nK=!!Sm3.showAudioControls);var Db=Fn.embeddedPlayerConfig;if(Db){this.embeddedPlayerConfig=Db;var Gsx=Db.embeddedPlayerMode;if(Gsx){var VkU=this.Y();VkU.wj=Gsx;VkU.J=Gsx==="EMBEDDED_PLAYER_MODE_PFL"}var Lyc=Db.permissions;Lyc&&(this.allowImaMonetization=!!Lyc.allowImaMonetization)}var c_=Fn.webPlayerConfig;c_&&(c_.gatewayExperimentGroup&&(this.gatewayExperimentGroup=c_.gatewayExperimentGroup),c_.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var up= this.playerResponse.streamingData;if(up){var b9m=up.formats;if(b9m){for(var Gu=[],tkv=g.D(b9m),F9x=tkv.next();!F9x.done;F9x=tkv.next()){var jeR=F9x.value;Gu.push(jeR.itag+"/"+jeR.width+"x"+jeR.height)}this.qe=Gu.join(",");Gu=[];for(var WyH=g.D(b9m),eYj=WyH.next();!eYj.done;eYj=WyH.next()){var bj=eYj.value,Fr={itag:bj.itag,type:bj.mimeType,quality:bj.quality},agm=bj.url;agm&&(Fr.url=agm);var Gh=KC(bj),p$X=Gh.Zy,UPq=Gh.Wv,f5w=Gh.s;Gh.To&&(Fr.url=p$X,Fr.sp=UPq,Fr.s=f5w);Gu.push(g.WV(Fr))}this.Lj=Gu.join(",")}var mcr= up.hlsFormats;if(mcr&&!this.X("safari_live_drm_captions_fix")){var xqc=Fn||null,bT={};if(xqc){var Bp3=xqc.audioPairingConfig;if(Bp3&&Bp3.pairs)for(var O83=g.D(Bp3.pairs),qbd=O83.next();!qbd.done;qbd=O83.next()){var gqP=qbd.value,r3P=gqP.videoItag;bT[r3P]||(bT[r3P]=[]);bT[r3P].push(gqP.audioItag)}}for(var Dqd={},c_P=g.D(mcr),$cR=c_P.next();!$cR.done;$cR=c_P.next()){var GdP=$cR.value;Dqd[GdP.itag]=GdP.bitrate}for(var b82=[],Fy6=g.D(mcr),o76=Fy6.next();!o76.done;o76=Fy6.next()){var kQ=o76.value,DJ={itag:kQ.itag, type:kQ.mimeType,url:kQ.url,bitrate:kQ.bitrate,width:kQ.width,height:kQ.height,fps:kQ.fps},F3=kQ.audioTrack;if(F3){var jv3=F3.displayName;jv3&&(DJ.name=jv3,DJ.audio_track_id=F3.id,F3.audioIsDefault&&(DJ.is_default="1"))}if(kQ.drmFamilies){for(var e6j=[],mqm=g.D(kQ.drmFamilies),COH=mqm.next();!COH.done;COH=mqm.next())e6j.push(CL[COH.value]);DJ.drm_families=e6j.join(",")}var jw=bT[kQ.itag];if(jw&&jw.length){DJ.audio_itag=jw.join(",");var Bwd=Dqd[jw[0]];Bwd&&(DJ.bitrate+=Bwd)}var qmH=A8x(kQ);qmH&&(DJ.eotf= qmH);kQ.audioChannels&&(DJ.audio_channels=kQ.audioChannels);b82.push(g.WV(DJ))}this.hlsFormats=b82.join(",")}var hYP=up.licenseInfos;if(hYP&&hYP.length>0){for(var r_H={},$qx=g.D(hYP),Ir2=$qx.next();!Ir2.done;Ir2=$qx.next()){var oqv=Ir2.value,C_v=oqv.drmFamily,h6R=oqv.url;C_v&&h6R&&(r_H[CL[C_v]]=h6R)}this.E8=r_H}var Igv=up.drmParams;Igv&&(this.drmParams=Igv);var py3=up.dashManifestUrl;py3&&(this.ZE=g.al(py3,{cpn:this.clientPlaybackNonce}));var Uqc=up.hlsManifestUrl;Uqc&&(this.hlsvp=Uqc);var fgP=up.probeUrl; fgP&&(this.probeUrl=ft(g.al(fgP,{cpn:this.clientPlaybackNonce})));var i8x=up.serverAbrStreamingUrl;i8x&&(this.jc=new g.ik(i8x,!0))}var uYR=this.playerResponse.trackingParams;uYR&&(this.WX=uYR);var cD=this.playerResponse.videoDetails;if(cD){var cQ=J,pfd=cD.videoId;pfd&&(this.videoId=pfd,cQ.video_id||(cQ.video_id=pfd));var Ucc=cD.title;Ucc&&(this.title=Ucc,cQ.title||(cQ.title=Ucc));var frd=cD.lengthSeconds;frd&&(this.lengthSeconds=Number(frd),cQ.length_seconds||(cQ.length_seconds=frd));var H8r=cD.keywords; H8r&&(this.keywords=urH(H8r));var i9R=cD.channelId;i9R&&(this.uC=i9R,cQ.ucid||(cQ.ucid=i9R));var Xyx=cD.viewCount;Xyx&&(this.rawViewCount=Number(Xyx));var upm=cD.author;upm&&(this.author=upm,cQ.author||(cQ.author=upm));var NwH=cD.shortDescription;NwH&&(this.shortDescription=NwH);var R6R=cD.isCrawlable;R6R&&(this.isListed=R6R);var Kyr=cD.musicVideoType;Kyr&&(this.musicVideoType=Kyr);var H9d=cD.isLive;H9d!=null&&(this.isLivePlayback=H9d);if(H9d||cD.isUpcoming)this.isPremiere=!cD.isLiveContent;var z6U= cD.thumbnail;z6U&&(this.B=$o(z6U));var kdx=cD.isExternallyHostedPodcast;kdx&&(this.isExternallyHostedPodcast=kdx);var XfT=cD.viewerLivestreamJoinPosition;if(XfT==null?0:XfT.utcTimeMillis)this.Er=Cn(XfT.utcTimeMillis);var Eq6=Fn||null,NpH=J;cD.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);cD.isUpcoming&&(this.isUpcoming=!0);if(cD.isPostLiveDvr){this.L0=!0;var Qvc=cD.latencyClass;Qvc&&(this.latencyClass=lry[Qvc]||"UNKNOWN");cD.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var RYU= !1;this.rj?(this.allowLiveDvr=Wl()?!0:zo&&E2<5?!1:!0,this.isLivePlayback=!0):cD.isLive?(NpH.livestream="1",this.allowLiveDvr=cD.isLiveDvrEnabled?Wl()?!0:zo&&E2<5?!1:!0:!1,this.partnerId=27,RYU=!0):cD.isUpcoming&&(RYU=!0);if(cD.isLive||this.rj){cD.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var Z8v=cD.latencyClass;Z8v&&(this.latencyClass=lry[Z8v]||"UNKNOWN");var wy6=cD.liveChunkReadahead;wy6&&(this.liveChunkReadahead=wy6);var hV=Eq6&&Eq6.livePlayerConfig;if(hV){hV.hasSubfragmentedFmp4&& (this.hasSubfragmentedFmp4=!0);hV.hasSubfragmentedWebm&&(this.P4=!0);hV.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var JrU=hV.liveExperimentalContentId;JrU&&(this.liveExperimentalContentId=Number(JrU));var yr6=hV.isLiveHeadPlayable;this.X("html5_live_head_playable")&&yr6!=null&&(this.isLiveHeadPlayable=yr6)}}RYU&&(this.isLivePlayback=!0,NpH.adformat&&NpH.adformat.split("_")[1]!=="8"||this.Cy.push("heartbeat"))}var vBm=cD.isPrivate;vBm!==void 0&&(this.isPrivate=JX(this.isPrivate, vBm))}if(Mj){var ddT=cD||null,PJ3=!1,IX=Mj.errorScreen;PJ3=IX&&(IX.playerLegacyDesktopYpcOfferRenderer||IX.playerLegacyDesktopYpcTrailerRenderer||IX.ypcTrailerRenderer)?!0:ddT&&ddT.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(Mj.status);if(!PJ3){this.errorCode=EGd(Mj.errorCode)||"auth";var ew=IX&&IX.playerErrorMessageRenderer;if(ew){this.playerErrorMessageRenderer=ew;var Ar2=ew.reason;Ar2&&(this.errorReason=g.nf(Ar2));var K9r=ew.subreason;K9r&&(this.Nc=g.nf(K9r),this.Ro=K9r)}else this.errorReason= Mj.reason||null;var zYc=Mj.status;if(zYc==="LOGIN_REQUIRED")this.errorDetail="1";else if(zYc==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(zYc==="AGE_CHECK_REQUIRED"){var TBR=Mj.errorScreen,llr=TBR&&TBR.playerKavRenderer;this.errorDetail=llr&&llr.kavUrl?"4":"3"}else this.errorDetail=Mj.isBlockedInRestrictedMode?"5":"0"}}var Mzc=this.playerResponse.interstitialPods;Mzc&&YjP(this,Mzc);this.Ek&&this.eventId&&(this.Ek=dh(this.Ek,{ei:this.eventId}));var ksj=this.playerResponse.captions;if(ksj&& ksj.playerCaptionsTracklistRenderer)a:{var GD=ksj.playerCaptionsTracklistRenderer;this.captionTracks=[];if(GD.captionTracks)for(var nBd=g.D(GD.captionTracks),E7d=nBd.next();!E7d.done;E7d=nBd.next()){var be=E7d.value,sNP=U2j(be.baseUrl);if(!sNP)break a;var Qej={is_translateable:!!be.isTranslatable,languageCode:be.languageCode,languageName:be.name&&g.nf(be.name),url:sNP,vss_id:be.vssId,kind:be.kind};Qej.name=be.trackName;Qej.displayName=be.name&&g.nf(be.name);this.captionTracks.push(new g.ec(Qej))}this.fM= GD.audioTracks||[];this.Xa=GD.defaultAudioTrackIndex||0;this.jS=[];if(GD.translationLanguages)for(var YlU=g.D(GD.translationLanguages),Z9T=YlU.next();!Z9T.done;Z9T=YlU.next()){var pu=Z9T.value,PU={};PU.languageCode=pu.languageCode;PU.languageName=g.nf(pu.languageName);if(pu.translationSourceTrackIndices){PU.translationSourceTrackIndices=[];for(var Sl3=g.D(pu.translationSourceTrackIndices),wfm=Sl3.next();!wfm.done;wfm=Sl3.next())PU.translationSourceTrackIndices.push(wfm.value)}if(pu.excludeAudioTrackIndices){PU.excludeAudioTrackIndices= [];for(var VzT=g.D(pu.excludeAudioTrackIndices),JC6=VzT.next();!JC6.done;JC6=VzT.next())PU.excludeAudioTrackIndices.push(JC6.value)}this.jS.push(PU)}this.MK=[];if(GD.defaultTranslationSourceTrackIndices)for(var LbU=g.D(GD.defaultTranslationSourceTrackIndices),yC6=LbU.next();!yC6.done;yC6=LbU.next())this.MK.push(yC6.value);this.W9=!!GD.contribute&&!!GD.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.b8=Number(this.clipConfig.startTimeMs)* .001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&Vlx(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var tz3;this.compositeLiveIngestionOffsetToken=(tz3=this.playerResponse.playbackTracking)==null?void 0:tz3.compositeLiveIngestionOffsetToken;var Wb3;this.compositeLiveStatusToken=(Wb3=this.playerResponse.playbackTracking)==null?void 0: Wb3.compositeLiveStatusToken;this.X("html5_fill_default_mosaic_audio_track_id")&&JQ(this)&&(this.qx.YB=rBr(this))}T7(this,J);J.queue_info&&(this.queueInfo=J.queue_info);var alR=J.hlsdvr;alR!=null&&(this.allowLiveDvr=Number(alR)===1?Wl()?!0:zo&&E2<5?!1:!0:!1);this.adQueryId=J.ad_query_id||null;this.Qe||(this.Qe=J.encoded_ad_safety_reason||null);this.aq=JX(this.aq,J.infringe||J.muted);this.YG=J.authkey;this.h5=J.authuser;this.mutedAutoplay=JX(this.mutedAutoplay,J&&J.playmuted);this.mutedAutoplayDurationMode= v1(this.mutedAutoplayDurationMode,J&&J.muted_autoplay_duration_mode);this.pM=JX(this.pM,J&&J.mutedautoplay);var mQ=J.length_seconds;mQ&&(this.lengthSeconds=typeof mQ==="string"?Cn(mQ):mQ);if(this.isAd()||this.oi||!g.l$(g.QJ(this.qx)))this.endSeconds=v1(this.endSeconds,this.oC||J.end||J.endSeconds);else{var isq=g.QJ(this.qx),B_=this.lengthSeconds;switch(isq){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":B_>30?this.limitedPlaybackDurationInSeconds=30:B_<30&&B_>10&&(this.limitedPlaybackDurationInSeconds= 10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=B_*.2}}this.WX=d3(this.WX,J.itct);this.W3=JX(this.W3,J.is_live_destination);this.isLivePlayback=JX(this.isLivePlayback,J.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.jH();J.isUpcoming&&(this.isUpcoming=JX(this.isUpcoming,J.isUpcoming));this.L0=JX(this.L0,J.post_live_playback);this.zK&&(this.L0=!1);this.isMdxPlayback=JX(this.isMdxPlayback,J.mdx);var q$=J.mdx_control_mode; q$&&(this.mdxControlMode=typeof q$==="number"?q$:Cn(q$));this.isInlinePlaybackNoAd=JX(this.isInlinePlaybackNoAd,J.is_inline_playback_no_ad);this.f8=v1(this.f8,J.reload_count);this.reloadReason=d3(this.reloadReason,J.reload_reason);this.uu=JX(this.uu,J.show_content_thumbnail);this.cycToken=J.cyc||null;var xd6=rE(J);Object.keys(xd6).length>0&&(this.B=xd6);this.If=d3(this.If,J.vvt);this.mdxEnvironment=d3(this.mdxEnvironment,J.mdx_environment);J.source_container_playlist_id&&(this.sourceContainerPlaylistId= J.source_container_playlist_id);J.serialized_mdx_metadata&&(this.serializedMdxMetadata=J.serialized_mdx_metadata);this.mY=J.osig;this.eventId||(this.eventId=J.eventid);this.osid||(this.osid=J.osid);this.playlistId=d3(this.playlistId,J.list);J.index&&(this.playlistIndex=this.playlistIndex===void 0?v1(0,J.index):v1(this.playlistIndex,J.index));this.TV=J.pyv_view_beacon_url;this.s6=J.pyv_quartile25_beacon_url;this.w9=J.pyv_quartile50_beacon_url;this.yJ=J.pyv_quartile75_beacon_url;this.Ag=J.pyv_quartile100_beacon_url; var Ogm=J.session_data;!this.bk&&Ogm&&(this.bk=Q4(Ogm,"&").feature);this.isFling=v1(this.isFling?1:0,J.is_fling)===1;this.vnd=v1(this.vnd,J.vnd);this.forceAdsUrl=d3(this.forceAdsUrl,J.force_ads_url);this.s5=d3(this.s5,J.ctrl);this.eh=d3(this.eh,J.ytr);this.UZ=J.ytrcc;this.kX=J.ytrexp;this.zd=J.ytrext;this.SC=d3(this.SC,J.adformat);this.Aw=d3(this.Aw,J.attrib);this.slotPosition=v1(this.slotPosition,J.slot_pos);this.breakType=J.break_type;this.XV=JX(this.XV,J.ssrt);this.videoId=AX(J)||this.videoId; this.L=d3(this.L,J.vss_credentials_token);this.A7=d3(this.A7,J.vss_credentials_token_type);this.VE=JX(this.VE,J.audio_only);this.GK=JX(this.GK,J.aac_high);this.Oa=JX(this.Oa,J.prefer_low_quality_audio);this.hC=JX(this.hC,J.uncap_inline_quality);this.X("html5_enable_qoe_cat_list")?J.qoe_cat&&(this.WH=this.WH.concat(J.qoe_cat.split(","))):this.H5=d3(this.H5,J.qoe_cat);this.vY=JX(this.vY,J.download_media);var gBr=J.prefer_gapless;this.G=gBr!=null?JX(this.G,gBr):this.G?this.G:this.qx.preferGapless&&this.qx.supportsGaplessShorts(); MFR(this.playerResponse)&&this.Cy.push("ad");var DdT=J.adaptive_fmts;DdT&&(this.adaptiveFormats=DdT,this.dj("adpfmts",{},!0));var cr6=J.allow_embed;cr6&&(this.allowEmbed=Number(cr6)===1);var GVj=J.backgroundable;GVj&&(this.backgroundable=Number(GVj)===1);var bgj=J.autonav;bgj&&(this.isAutonav=Number(bgj)===1);var Fb2=J.autoplay;Fb2&&(this.Cr=this.Yo=Number(Fb2)===1);var jNH=J.iv_load_policy;jNH&&(this.annotationsLoadPolicy=yn(this.annotationsLoadPolicy,jNH,ZK));var etm=J.cc_lang_pref;etm&&(this.captionsLanguagePreference= d3(etm,this.captionsLanguagePreference));var mdU=J.cc_load_policy;mdU&&(this.s4=yn(this.s4,mdU,ZK));var BB3;this.deviceCaptionsOn=(BB3=J.device_captions_on)!=null?BB3:void 0;var ql6;this.OO=(ql6=J.device_captions_lang_pref)!=null?ql6:"";var rrP;this.vt=(rrP=J.viewer_selected_caption_langs)!=null?rrP:[];if(!this.X("html5_enable_ssap_entity_id")){var $dm=J.cached_load;$dm&&(this.Zv=JX(this.Zv,$dm))}if(J.dash==="0"||J.dash===0||J.dash===!1)this.dN=!0;var oBr=J.dashmpd;oBr&&(this.ZE=g.al(oBr,{cpn:this.clientPlaybackNonce})); var CJc=J.delay;CJc&&(this.aG=Cn(CJc));var vd2=this.oC||J.end;if(this.H$?vd2!=null:vd2!=void 0)this.clipEnd=v1(this.clipEnd,vd2);var htc=J.fmt_list;htc&&(this.qe=htc);J.heartbeat_preroll&&this.Cy.push("heartbeat");this.qK=-Math.floor(Math.random()*10);this.II=-Math.floor(Math.random()*40);var IlH=J.is_listed;IlH&&(this.isListed=JX(this.isListed,IlH));var pFc=J.is_private;pFc&&(this.isPrivate=JX(this.isPrivate,pFc));var Udd=J.is_dni;Udd&&(this.vR=JX(this.vR,Udd));var flH=J.dni_color;flH&&(this.rU= d3(this.rU,flH));var ig3=J.pipable;ig3&&(this.pipable=JX(this.pipable,ig3));this.Mh=(this.L3=this.pipable&&this.qx.W9)&&!this.qx.showMiniplayerButton;var uEU=J.paid_content_overlay_duration_ms;uEU&&(this.paidContentOverlayDurationMs=Cn(uEU));var HgP=J.paid_content_overlay_text;HgP&&(this.paidContentOverlayText=HgP);var XF3=J.url_encoded_fmt_stream_map;XF3&&(this.Lj=XF3);var NB6=J.hls_formats;NB6&&(this.hlsFormats=NB6);var Rt6=J.hlsvp;Rt6&&(this.hlsvp=Rt6);var rL=J.live_start_walltime;rL&&(this.nI= typeof rL==="number"?rL:Cn(rL));var $b=J.live_manifest_duration;$b&&(this.BY=typeof $b==="number"?$b:Cn($b));var KbU=J.player_params;KbU&&(this.playerParams=KbU);var ztR=J.partnerid;ztR&&(this.partnerId=v1(this.partnerId,ztR));var kV6=J.probe_url;kV6&&(this.probeUrl=ft(g.al(kV6,{cpn:this.clientPlaybackNonce})));var dw3=J.pyv_billable_url;dw3&&LUr(dw3)&&(this.KP=dw3);var Ps3=J.pyv_conv_url;Ps3&&LUr(Ps3)&&(this.g9=Ps3);HOr(this,J);this.startSeconds>0?this.X("html5_log_start_seconds_inconsistency")&& this.startSeconds!==(this.b8||this.Ii||J.start||J.startSeconds)&&this.dj("lss",{css:this.startSeconds,pcss:this.b8,iss:this.Ii,ps:J.start||void 0,pss:J.startSeconds||void 0}):this.J9=this.startSeconds=v1(this.startSeconds,this.b8||this.Ii||J.start||J.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var EBd=J.live_utc_start;if(EBd!=null)this.liveUtcStartSeconds=Number(EBd);else{var ACx=this.startSeconds;ACx&&isFinite(ACx)&&ACx>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&& this.liveUtcStartSeconds>0)){var QNd=J.utc_start_millis;QNd&&(this.liveUtcStartSeconds=Number(QNd)*.001)}var Zg3=J.stream_time_start_millis;Zg3&&(this.QM=Number(Zg3)*.001);var TG6=this.Ii||J.start;(this.H$?TG6==null||Number(J.resume)===1:TG6==void 0||J.resume=="1")||this.isLivePlayback||(this.clipStart=v1(this.clipStart,TG6));var wFP=J.url_encoded_third_party_media;wFP&&(this.Iq=JN(wFP));var lkm=J.ypc_offer_button_formatted_text;if(lkm){var J0d=JSON.parse(lkm);this.TX=J0d!=null?J0d:null;this.H8=lkm}var y06= J.ypc_offer_button_text;y06&&(this.M5=y06);var v2d=J.ypc_offer_description;v2d&&(this.pR=v2d);var dyj=J.ypc_offer_headline;dyj&&(this.XZ=dyj);var Piv=J.ypc_full_video_message;Piv&&(this.yb=Piv);var A0H=J.ypc_offer_id;A0H&&(this.pE=A0H);var TMd=J.ypc_buy_url;TMd&&(this.nW=TMd);var lXr=J.ypc_item_thumbnail;lXr&&(this.lc=lXr);var Mud=J.ypc_item_title;Mud&&(this.bQ=Mud);var n2U=J.ypc_item_url;n2U&&(this.mJ=n2U);var s33=J.ypc_vid;s33&&(this.Cb=s33);J.ypc_overlay_timeout&&(this.OT=Number(J.ypc_overlay_timeout)); var YTx=J.ypc_trailer_player_vars;YTx&&(this.jf=wN(YTx));var STr=J.ypc_original_itct;STr&&(this.szR=STr);this.uC=d3(this.uC,J.ucid);this.uq=J.storyboard_spec||null;this.Y5=J.live_storyboard_spec||null;this.s7=J.iv_endscreen_url||null;this.Kp=JX(this.Kp,J.ypc_module);this.TP=JX(this.TP,J.ypc_clickwrap_module);this.Kp&&this.Cy.push("ypc");this.TP&&this.Cy.push("ypc_clickwrap");this.yz={video_id:J.video_id,eventid:J.eventid,cbrand:J.cbrand,cbr:J.cbr,cbrver:J.cbrver,c:J.c,cver:J.cver,ctheme:J.ctheme, cplayer:J.cplayer,cmodel:J.cmodel,cnetwork:J.cnetwork,cos:J.cos,cosver:J.cosver,cplatform:J.cplatform,user_age:J.user_age,user_display_image:J.user_display_image,user_display_name:J.user_display_name,user_gender:J.user_gender,csi_page_type:J.csi_page_type,csi_service_name:J.csi_service_name,enablecsi:J.enablecsi,enabled_engage_types:J.enabled_engage_types};pnR(this,J);var Vu2=J.cotn;Vu2&&(this.cotn=Vu2);if(vLT(this))G7(this)&&(this.isLivePlayback&&this.ZE&&(this.vK=!0),this.Vk&&(this.QA=!0));else if(dG3(this))this.vK= !0;else{var Lrv,tuv,Wr6=((Lrv=this.playerResponse)==null?void 0:(tuv=Lrv.streamingData)==null?void 0:tuv.adaptiveFormats)||[];if(Wr6.length>0)var jl=yBH(this,Wr6);else{var aXd=this.adaptiveFormats;if(aXd&&!G7(this)){this.qx.V.J&&(zB=!0);var Ui=qf(aXd),MdH=this.E8,xyd=this.lengthSeconds,uaX=this.isLivePlayback,el=this.L0,fu=this.qx,Hs_=Oej(Ui);if(uaX||el){var OQd=fu==null?void 0:fu.experiments,CD=new $$("",OQd,!0);CD.jH=!0;CD.isManifestless=!0;CD.T=!el;CD.isLive=!el;CD.L0=el;for(var g2H=g.D(Ui),nd3= g2H.next();!nd3.done;nd3=g2H.next()){var ir=nd3.value,Dyc=IU(ir,MdH),A4=pL(ir.url,ir.sp,ir.s),c02=A4.get("id");c02&&c02.includes("%7E")&&(CD.K=!0);var Gjv=void 0,X$y=(Gjv=OQd)==null?void 0:Gjv.BX("html5_max_known_end_time_rebase"),NNn=Number(ir.target_duration_sec)||5,RyO=Number(ir.max_dvr_duration_sec)||14400,bQj=Number(A4.get("mindsq")||A4.get("min_sq")||"0"),Fr3=Number(A4.get("maxdsq")||A4.get("max_sq")||"0")||Infinity;CD.oz=CD.oz||bQj;CD.W_=CD.W_||Fr3;var KoX=!iU(Dyc.mimeType);A4&&Bi(CD,new Vp(A4, Dyc,{CN:NNn,Mc:KoX,hH:RyO,oz:bQj,W_:Fr3,BN:300,L0:el,YS:X$y}))}var j3r=CD}else{if(Hs_==="FORMAT_STREAM_TYPE_OTF"){var oL=xyd;oL=oL===void 0?0:oL;var ur=new $$("",fu==null?void 0:fu.experiments,!1);ur.duration=oL||0;for(var e1d=g.D(Ui),sI3=e1d.next();!sI3.done;sI3=e1d.next()){var H9=sI3.value,Ytr=IU(H9,MdH,ur.duration),St3=pL(H9.url,H9.sp,H9.s);if(St3)if(Ytr.streamType==="FORMAT_STREAM_TYPE_OTF")Bi(ur,new LL(St3,Ytr,"sq/0"));else{var zyy=Ru(H9.init),kqu=Ru(H9.index);Bi(ur,new jR(St3,Ytr,zyy,kqu))}}ur.isOtf= !0;var my3=ur}else{var CP=xyd;CP=CP===void 0?0:CP;var hj=new $$("",fu==null?void 0:fu.experiments,!1);hj.duration=CP||0;for(var BMP=g.D(Ui),Vd3=BMP.next();!Vd3.done;Vd3=BMP.next()){var Xb=Vd3.value,EVQ=IU(Xb,MdH,hj.duration),QGq=Ru(Xb.init),ZsV=Ru(Xb.index),qTT=pL(Xb.url,Xb.sp,Xb.s);qTT&&Bi(hj,new jR(qTT,EVQ,QGq,ZsV))}my3=hj}j3r=my3}var r0m=j3r;if(Ui.length>0){var $yT=Ui[0];if(this.Y().playerStyle==="hangouts-meet"&&$yT.url){var w$Q=g.y2($yT.url);this.Dv=this.Dv||Number(w$Q.expire)}}var JNw=this.isLivePlayback&& !this.L0&&!this.zK&&!this.isPremiere;this.X("html5_live_head_playable")&&(!bV(this)&&JNw&&this.dj("missingLiveHeadPlayable",{}),this.qx.zK==="yt"&&(r0m.Ek=!0));jl=r0m}else jl=null;this.dj("pafmts",{isManifestFilled:!!jl})}if(jl){es(this,jl);var o2H=!0}else o2H=!1;o2H?this.enableServerStitchedDai=this.enableServerStitchedDai&&FV(this):this.ZE&&(this.qx.zK==="yt"&&this.jH()&&this.X("drm_manifestless_unplugged")&&this.X("html5_deprecate_manifestful_fallback")?this.dj("deprecateMflFallback",{}):this.vK= !0)}var L23=J.adpings;L23&&(this.qj=L23?wN(L23):null);var Ci2=J.feature;Ci2&&(this.jI=Ci2);var h1R=J.referrer;h1R&&(this.referrer=h1R);this.clientScreenNonce=d3(this.clientScreenNonce,J.csn);this.K6=v1(this.K6,J.root_ve_type);this.pQ=v1(this.pQ,J.kids_age_up_mode);this.H$||J.kids_app_info==void 0||(this.kidsAppInfo=J.kids_app_info);this.H$&&J.kids_app_info!=null&&(this.kidsAppInfo=J.kids_app_info);this.Ht=JX(this.Ht,J.upg_content_filter_mode);this.unpluggedFilterModeType=v1(this.unpluggedFilterModeType, J.unplugged_filter_mode_type);var IXv=J.unplugged_location_info;IXv&&(this.DO=IXv);var p8U=J.unplugged_partner_opt_out;p8U&&(this.Gj=d3("",p8U));this.uS=JX(this.uS,J.disable_watch_next);this.wN=d3(this.wN,J.internal_ip_override);this.bS=!!J.is_yto_interstitial;(this.interstitials.length||this.bS)&&this.Cy.push("yto");var Uy2=J.ZC;Uy2&&(this.ZC=Uy2);this.K=d3(this.K,J.csi_timer);J.watchUrl&&(this.watchUrl=J.watchUrl);var Ta=J.watch_endpoint;this.X("html5_attach_watch_endpoint_ustreamer_config")&&Ta&& wSx(this,Ta);if(Ta==null?0:Ta.ustreamerConfig)this.ue=OC(Ta.ustreamerConfig);var fXm,iQm,ujR=Ta==null?void 0:(fXm=Ta.loggingContext)==null?void 0:(iQm=fXm.qoeLoggingContext)==null?void 0:iQm.serializedContextData;ujR&&(this.j_b=ujR);g.un(this.qx)&&this.qx.pE&&(this.embedsRct=d3(this.embedsRct,J.rct),this.embedsRctn=d3(this.embedsRctn,J.rctn));this.u1=this.u1||!!J.pause_at_start;J.default_active_source_video_id&&(this.defaultActiveSourceVideoId=J.default_active_source_video_id)}; g.a.Y=function(){return this.qx}; g.a.X=function(J){return this.qx.X(J)}; g.a.ij=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.a.hasSupportedAudio51Tracks=function(){var J;return!((J=this.QE)==null||!J.YB)}; g.a.getUserAudio51Preference=function(){var J=1;sr(this.qx)&&this.X("html5_ytv_surround_toggle_default_off")?J=0:g.lB(this.qx)&&this.isLivePlayback&&this.jz()&&(J=0);var y;return(y=g.qW("yt-player-audio51"))!=null?y:J}; g.a.nt=function(){this.tY()||(this.C.T||this.C.unsubscribe("refresh",this.nt,this),this.kM(-1))}; g.a.kM=function(J){if(!this.isLivePlayback||!this.V||this.V.flavor!=="fairplay"){var y=D_U(this.C,this.j6);if(y.length>0){for(var v=g.D(y),d=v.next();!d.done;d=v.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Fl()),this.X("html5_cuepoint_identifier_logging")&&d.event==="start"&&this.dj("cuepoint",{pubCue:d.identifier,segNum:J});this.publish("cuepointupdated",y,J);this.j6+=y.length;if(FV(this)&&this.qx.SH())for(y=g.D(y),v=y.next();!v.done;v=y.next())v=v.value,this.dj("cuepoint",{segNum:J,event:v.event, startSecs:v.startSecs,id:v.identifier.slice(-16)}),v.event==="start"&&(v=v.startSecs,this.Wt.start=this.ON,this.Wt.end=v+3)}}}; g.a.l9=function(){this.tY()||(this.loading=!1,this.publish("dataloaded"))}; g.a.jz=function(){return this.kz!==void 0?this.kz:this.kz=!!this.E8||!!this.C&&oz(this.C)}; g.a.ly=function(J){var y=this;if(this.tY())return mv();this.h_=this.ZB=this.J=null;lf(this,"html5_high_res_logging_always")&&(this.qx.Lj=!0);return lUr(this,J).then(void 0,function(){return nLc(y,J)}).then(void 0,function(){return sRx(y)}).then(void 0,function(){return S$6(y)})}; g.a.T6=function(J){this.J=J;MUj(this,this.J.getAvailableAudioTracks());if(this.J){J=g.D(this.J.videoInfos);for(var y=J.next();!y.done;y=J.next()){y=y.value;var v=y.containerType;v!==0&&(this.j3[v]=y.id)}}J=this.getAvailableAudioTracks();J=J.concat(this.TA);for(y=0;y0?this.J.getAvailableAudioTracks():this.AB||[]:[]}; g.a.getAudioTrack=function(){var J=this;if(this.W&&!Ic(this.W)){var y=g.On(this.getAvailableAudioTracks(),function(P){return P.id===J.W.id}),v; if(!y&&((v=this.W.N4)==null?0:v.id)){var d=this.W.N4.id;y=g.On(this.getAvailableAudioTracks(),function(P){return P.N4.id===d}); this.dj("nat",{id:this.W.id,track:!!y})}return y||this.TA}if(this.AB){if(!this.xf)for(y=g.D(this.AB),v=y.next();!v.done;v=y.next())if(v=v.value,v.N4.getIsDefault()){this.xf=v;break}return this.xf||this.TA}return this.TA}; g.a.getPlayerResponse=function(){return this.playerResponse}; g.a.getWatchNextResponse=function(){return this.cX}; g.a.getHeartbeatResponse=function(){return this.I1}; g.a.GJ=function(){return this.watchUrl?this.watchUrl:this.qx.getVideoUrl(this.videoId)}; g.a.iT=function(){return!!this.C&&(SZU(this.C)||V1x(this.C)||LCU(this.C))}; g.a.getEmbeddedPlayerResponse=function(){return this.H_}; g.a.Zo=function(){return(this.eventLabel||this.qx.If)==="shortspage"}; g.a.isAd=function(){return!!this.adFormat}; g.a.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.a.US=function(){var J,y,v;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((J=this.playerResponse)==null?0:(y=J.playerConfig)==null?0:(v=y.daiConfig)==null?0:v.ssaEnabledPlayback)}; g.a.Tn=function(){return this.FF}; g.a.Qs=function(){return this.Kp||this.nE}; g.a.PP=function(){return lf(this,"html5_samsung_vp9_live")}; g.a.dj=function(J,y,v){this.publish("ctmp",J,y,v)}; g.a.jE=function(J,y,v){this.publish("ctmpstr",J,y,v)}; g.a.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.a.getGetAdBreakContext=function(J,y){J=J===void 0?NaN:J;y=y===void 0?NaN:y;var v={isSabr:gC(this)},d,P=(d=this.getHeartbeatResponse())==null?void 0:d.adBreakHeartbeatParams;P&&(v.adBreakHeartbeatParams=P);if(this.X("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.C&&!isNaN(J)&&!isNaN(y)){y=J-y;for(var A in this.C.C)if(d=this.C.C[A],d.info.OH()||d.info.yQ())if(d=d.index,d.isLoaded()){A=d.Q_(y);d=d.T4(A)+y-d.getStartTime(A);this.dj("gabc",{t:J.toFixed(3),mt:y.toFixed(3),sg:A,igt:d.toFixed(3)}); v.livePlaybackPosition={utcTimeMillis:""+(d*1E3).toFixed(0)};break}}return v}; g.a.isEmbedsShortsMode=function(J,y){if(!g.un(this.qx)||(this.qx.wj||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||y)return!1;var v,d;return!!(((v=this.embeddedPlayerConfig)==null?0:(d=v.embeddedPlayerFlags)==null?0:d.isShortsExperienceEligible)&&J.width<=J.height)}; g.a.JY=function(){g.yK.prototype.JY.call(this);this.qj=null;delete this.AT;delete this.accountLinkingConfig;delete this.C;this.J=this.I1=this.playerResponse=this.cX=null;this.Lj=this.adaptiveFormats="";delete this.botguardData;this.XW=this.suggestions=this.ye=null;this.sabrContextUpdates.clear()};var HG3={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},XuH={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},iGH={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},puH={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"},fU2={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},UGd={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"},uPr={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.x(L5,g.u);g.a=L5.prototype;g.a.handleExternalCall=function(J,y,v){var d=this.state.G[J],P=this.state.B[J],A=d;if(P)if(v&&Iw(v,jg_))A=P;else if(!d)throw Error('API call from an untrusted origin: "'+v+'"');this.logApiCall(J,v);if(A){v=!1;d=g.D(y);for(P=d.next();!P.done;P=d.next())if(String(P.value).includes("javascript:")){v=!0;break}v&&g.ev(Error('Dangerous call to "'+J+'" with ['+y+"]."));return A.apply(this,y)}throw Error('Unknown API method: "'+J+'".');}; g.a.logApiCall=function(J,y,v){var d=this.app.Y();d.XV&&!this.state.K.has(J)&&(this.state.K.add(J),g.AW("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:J,origin:y||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.wj,errorCode:v}))}; g.a.publish=function(J){var y=g.iR.apply(1,arguments);this.state.J.publish.apply(this.state.J,[J].concat(g.r(y)));if(J==="videodatachange"||J==="resize"||J==="cardstatechange")this.state.T.publish.apply(this.state.T,[J].concat(g.r(y))),this.state.W.publish.apply(this.state.W,[J].concat(g.r(y)))}; g.a.Rf=function(J){var y=g.iR.apply(1,arguments);this.state.J.publish.apply(this.state.J,[J].concat(g.r(y)));this.state.T.publish.apply(this.state.T,[J].concat(g.r(y)))}; g.a.Kf=function(J){var y=g.iR.apply(1,arguments);this.state.J.publish.apply(this.state.J,[J].concat(g.r(y)));this.state.T.publish.apply(this.state.T,[J].concat(g.r(y)));this.state.W.publish.apply(this.state.W,[J].concat(g.r(y)))}; g.a.cR=function(J){var y=g.iR.apply(1,arguments);this.state.J.publish.apply(this.state.J,[J].concat(g.r(y)));this.state.T.publish.apply(this.state.T,[J].concat(g.r(y)));this.state.W.publish.apply(this.state.W,[J].concat(g.r(y)));this.state.V.publish.apply(this.state.V,[J].concat(g.r(y)))}; g.a.X=function(J){return this.app.Y().X(J)}; g.a.JY=function(){if(this.state.element){var J=this.state.element,y;for(y in this.state.C)this.state.C.hasOwnProperty(y)&&(J[y]=null);this.state.element=null}g.u.prototype.JY.call(this)};g.x(OH,g.GY);OH.prototype.publish=function(J){var y=g.iR.apply(1,arguments);if(this.V.has(J))return this.V.get(J).push(y),!0;var v=!1;try{for(y=[y],this.V.set(J,y);y.length;)v=g.GY.prototype.publish.call.apply(g.GY.prototype.publish,[this,J].concat(g.r(y.shift())))}finally{this.V.delete(J)}return v};g.x(gx,g.u);gx.prototype.JY=function(){this.V.dispose();this.W.dispose();this.T.dispose();this.J.dispose();this.K=this.C=this.B=this.G=this.L=void 0};var QR3=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.x(cp,L5);g.a=cp.prototype;g.a.getApiInterface=function(){return Array.from(this.state.L)}; g.a.Pr=function(J,y){this.state.V.subscribe(J,y)}; g.a.ijf=function(J,y){this.state.V.unsubscribe(J,y)}; g.a.getPlayerState=function(J){return r5R(this.app,J)}; g.a.nm=function(){return r5R(this.app)}; g.a.jzX=function(J,y,v){F$(this)&&(iA(this.app,!0,1),XO(this.app,J,y,v,1))}; g.a.getCurrentTime=function(J,y,v){var d=this.getPlayerState(J);if(this.app.getAppState()===2&&d===5){var P;return((P=this.app.getVideoData())==null?void 0:P.startSeconds)||0}return this.X("web_player_max_seekable_on_ended")&&d===0?oB(this.app,J):J?this.app.getCurrentTime(J,y,v):this.app.getCurrentTime(J)}; g.a.ZD=function(){return this.app.getCurrentTime(1)}; g.a.PZ=function(){var J=this.app.T4(1);return isNaN(J)?this.getCurrentTime(1):J}; g.a.YU=function(){return this.app.getDuration(1)}; g.a.uW=function(J,y){J=g.uX(Math.floor(J),0,100);isFinite(J)&&rq(this.app,{volume:J,muted:this.isMuted()},y)}; g.a.NcY=function(J){this.uW(J,!1)}; g.a.mA=function(J){rq(this.app,{muted:!0,volume:this.getVolume()},J)}; g.a.dxx=function(){this.mA(!1)}; g.a.OP=function(J){bf(this.app)&&!this.X("embeds_enable_emc3ds_muted_autoplay")||rq(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},J)}; g.a.mwj=function(){bf(this.app)&&this.X("embeds_enable_emc3ds_muted_autoplay")||this.OP(!1)}; g.a.getPlayerMode=function(){var J={};this.app.getVideoData().vR&&(J.pfp={enableIma:g.n5(this.app.getVideoData())&&this.app.di().allowImaMonetization,autoplay:Q1(this.app.di()),mutedAutoplay:this.app.di().mutedAutoplay});return J}; g.a.UA=function(){var J=this.app.getPresentingPlayerType();if(J===2&&!this.app.eC()){var y=$Y(this.app.un());if(!($jq(y)||g.un(this.app.Y())&&g.k(this.app.Ok().getPlayerState(),1024))||omu(y))return}(y=this.app.vO().pL)?y.playVideo():this.app.playVideo(J)}; g.a.mAR=function(){iA(this.app,!0,1);this.UA()}; g.a.pauseVideo=function(J){var y=this.app.getPresentingPlayerType();if(y!==2||this.app.eC()||$jq($Y(this.app.un()))){var v=this.app.vO().pL;v?v.pauseVideo():this.app.pauseVideo(y,J)}}; g.a.zwY=function(){var J=this.app,y=!1;J.iA.H$&&(J.Ly.publish("pageTransition"),y=!0);J.stopVideo(y)}; g.a.clearVideo=function(){}; g.a.getAvailablePlaybackRates=function(){var J=this.app.Y();return J.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(J.W?J.ancestorOrigins[0]:window.location.origin)||J.vz?vkn:J.supportsVarispeedExtendedFeatures?diX:J.X("web_remix_allow_up_to_3x_playback_rate")&&g.rm(J)?Paw:$h:[1]}; g.a.getPlaybackQuality=function(J){return(J=this.app.bN(J))?J.getPlaybackQuality():"unknown"}; g.a.x1b=function(){}; g.a.getAvailableQualityLevels=function(J){return(J=this.app.bN(J))?(J=g.x7(J.Y_(),function(y){return y.quality}),J.length&&(J[0]==="auto"&&J.shift(),J=J.concat(["auto"])),J):[]}; g.a.vZ=function(){return this.getAvailableQualityLevels(1)}; g.a.aZ=function(){return this.Rw()}; g.a.dh=function(){return 1}; g.a.getVideoLoadedFraction=function(J){return this.app.getVideoLoadedFraction(J)}; g.a.Rw=function(){return this.getVideoLoadedFraction()}; g.a.gh=function(){return 0}; g.a.getSize=function(){var J=this.app.DB().getPlayerSize();return{width:J.width,height:J.height}}; g.a.setSize=function(){this.app.DB().resize()}; g.a.loadVideoById=function(J,y,v,d){if(!J)return!1;J=DF(J,y,v);return this.app.loadVideoByPlayerVars(J,d)}; g.a.Vi=function(J,y,v){J=this.loadVideoById(J,y,v,1);iA(this.app,J,1)}; g.a.cueVideoById=function(J,y,v,d){J=DF(J,y,v);this.app.cueVideoByPlayerVars(J,d)}; g.a.va=function(J,y,v){this.cueVideoById(J,y,v,1)}; g.a.loadVideoByUrl=function(J,y,v,d){J=EL6(J,y,v);return this.app.loadVideoByPlayerVars(J,d)}; g.a.x0=function(J,y,v){J=this.loadVideoByUrl(J,y,v,1);iA(this.app,J,1)}; g.a.cueVideoByUrl=function(J,y,v,d){J=EL6(J,y,v);this.app.cueVideoByPlayerVars(J,d)}; g.a.Ng=function(J,y,v){this.cueVideoByUrl(J,y,v,1)}; g.a.uH=function(){var J=this.app.Y();if(J.Cy)return"";var y=this.app.di(),v=void 0;y.isLivePlayback||(v=Math.floor(this.app.getCurrentTime(1)));return J.getVideoUrl(y.videoId,this.getPlaylistId()||void 0,v)}; g.a.BZ=function(){return this.app.getDebugText()}; g.a.getVideoEmbedCode=function(){var J=this.app.Y();if(J.Cy)return"";var y=this.app.di();return J.getVideoEmbedCode(y.isPrivate?"":y.title,this.app.di().videoId,this.app.DB().getPlayerSize(),this.getPlaylistId()||void 0)}; g.a.Um=function(J,y,v){return fwH(this.app,J,y,v)}; g.a.removeCueRange=function(J){return this.app.Oq(J)}; g.a.loadPlaylist=function(J,y,v,d){this.app.loadPlaylist(J,y,v,d)}; g.a.Lh=function(J,y,v,d){this.loadPlaylist(J,y,v,d);iA(this.app,!0,1)}; g.a.cuePlaylist=function(J,y,v,d){this.app.cuePlaylist(J,y,v,d)}; g.a.nextVideo=function(J,y){this.app.nextVideo(J,y)}; g.a.Tjf=function(){this.nextVideo();iA(this.app,!0,1)}; g.a.previousVideo=function(J){this.app.previousVideo(J)}; g.a.O0Y=function(){this.previousVideo();iA(this.app,!0,1)}; g.a.playVideoAt=function(J){this.app.playVideoAt(J)}; g.a.EmA=function(J){this.playVideoAt(J);iA(this.app,!0,1)}; g.a.setShuffle=function(J){var y=this.app.getPlaylist();y&&y.setShuffle(J)}; g.a.setLoop=function(J){var y=this.app.getPlaylist();y&&(y.loop=J)}; g.a.lH=function(){var J=this.app.getPlaylist();if(!J)return null;for(var y=[],v=0;v=400)if(J=this.di(),this.S.Y().X("client_respect_autoplay_switch_button_renderer"))J=!!J.autoplaySwitchButtonRenderer;else{var y,v,d,P;J=!!((y=J.getWatchNextResponse())==null?0:(v=y.contents)==null?0:(d=v.twoColumnWatchNextResults)==null?0:(P=d.autoplay)==null?0:P.autoplay)!==!1}if(J)this.C||(this.C=!0,this.eH(this.C),this.S.Y().X("web_player_autonav_toggle_always_listen")||D3v(this), y=this.di(),this.G2(y.autonavState),this.S.logVisibility(this.element,this.C));else if(this.C=!1,this.eH(this.C),!this.S.Y().X("web_player_autonav_toggle_always_listen"))for(this.S.Y().X("web_player_autonav_toggle_always_listen"),y=g.D(this.T),v=y.next();!v.done;v=y.next())this.y8(v.value)}; g.a.G2=function(J){GO2(this)?this.isChecked=J!==1:((J=J!==1)||(g.I4(),J=g.a7("web_autonav_allow_off_by_default")&&!g.pR(0,141)&&g.NP("AUTONAV_OFF_BY_DEFAULT")?!1:!g.pR(0,140)),this.isChecked=J);cP2(this)}; g.a.onClick=function(){this.isChecked=!this.isChecked;this.S.Rp(this.isChecked?2:1);cP2(this);if(GO2(this)){var J=this.di().autoplaySwitchButtonRenderer;this.isChecked&&(J==null?0:J.onEnabledCommand)?this.S.Rf("innertubeCommand",J.onEnabledCommand):!this.isChecked&&(J==null?0:J.onDisabledCommand)&&this.S.Rf("innertubeCommand",J.onDisabledCommand)}this.S.logClick(this.element)}; g.a.getValue=function(){return this.isChecked}; g.a.di=function(){return this.S.getVideoData(1)};g.x(bYr,A_);g.x(Sk,g.yP);Sk.prototype.onClick=function(){this.enabled&&(VP(this,!this.checked),this.publish("select",this.checked))}; Sk.prototype.getValue=function(){return this.checked}; Sk.prototype.setEnabled=function(J){(this.enabled=J)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Wy=["en-CA","en","es-MX","fr-CA"];g.x(Dg,Sk);Dg.prototype.Mx=function(J){J?this.C||(this.A9.Wq(this),this.C=!0):this.C&&(this.A9.GP(this),this.C=!1);this.C&&VP(this,pxj())}; Dg.prototype.W=function(){g.AZ(this.element,"ytp-menuitem-highlight-transition-enabled")}; Dg.prototype.J=function(J){var y=pxj();J!==y&&(y=g.I4(),fR(190,J),fR(192,!0),y.save(),this.S.Rf("cinematicSettingsToggleChange",J))}; Dg.prototype.JY=function(){this.C&&this.A9.GP(this);Sk.prototype.JY.call(this)};g.x(cy,A_);cy.prototype.updateCinematicSettings=function(J){this.C=J;var y;(y=this.menuItem)==null||y.Mx(J);this.api.publish("onCinematicSettingsVisibilityChange",J)};g.x(BUr,A_);g.x(Gd,A_);Gd.prototype.setCreatorEndscreenVisibility=function(J){var y;(y=Ia(this.api.un()))==null||y.eH(J)}; Gd.prototype.C=function(J){function y(d){d==="creatorendscreen"&&(d=Ia(v.api.un()))&&d.MCK(v.hideButton)} var v=this;this.hideButton=J;this.events.Z(this.api,"modulecreated",y);y("creatorendscreen")};g.x(b_,Sk);b_.prototype.W=function(J){this.J(J?1:0)}; b_.prototype.T=function(){var J=this.hasDrcAudioTrack(),y=this.C()===1&&J;VP(this,y);this.setEnabled(J)}; b_.prototype.JY=function(){this.A9.GP(this);Sk.prototype.JY.call(this)};g.x(FY,A_);FY.prototype.getDrcUserPreference=function(){return this.C}; FY.prototype.setDrcUserPreference=function(J){g.B1("yt-player-drc-pref",J,31536E3);J!==this.C&&(this.C=J,this.updateEnvironmentData(),this.T()&&this.api.aL())}; FY.prototype.updateEnvironmentData=function(){this.api.Y().M1=this.C===1}; FY.prototype.T=function(){var J,y,v=(J=this.api.getVideoData())==null?void 0:(y=J.J)==null?void 0:y.C;if(!v)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.X("mta_drc_mutual_exclusion_removal")){var d,P,A=(d=this.api.Hd())==null?void 0:(P=d.N4)==null?void 0:P.id;return XI(v,function(T){var M;return T.audio.C&&((M=T.N4)==null?void 0:M.id)===A})}return XI(v,function(T){var M; return((M=T.audio)==null?void 0:M.C)===!0})};g.x(jk,A_);jk.prototype.onVideoDataChange=function(){var J=this,y=this.api.getVideoData();this.api.tI("embargo",1);var v=y==null?void 0:y.C3.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(v==null?0:v.length)?rP6(this,v.filter(function(d){return q8d(J,d)})):(y==null?0:y.cueRanges)&&rP6(this,y.cueRanges.filter(function(d){return q8d(J,d)}))}; jk.prototype.T=function(J){return J.embargo!==void 0}; jk.prototype.JY=function(){A_.prototype.JY.call(this);this.C={}};g.x(ek,A_); ek.prototype.addEmbedsConversionTrackingParams=function(J){var y=this.api.Y(),v=y.widgetReferrer,d=y.ZE,P=this.C,A="",T=y.getWebPlayerContextConfig();T&&(A=T.embedsIframeOriginParam||"");v.length>0&&(J.embeds_widget_referrer=v);d.length>0&&(J.embeds_referring_euri=d);y.W&&A.length>0&&(J.embeds_referring_origin=A);T&&T.embedsFeature&&(J.feature=T.embedsFeature);P.length>0&&(y.X("embeds_web_enable_lite_experiment_control_arm_logging")?P.unshift(28572):g.l$(g.QJ(y))&&P.unshift(159628),y=P.join(","),y= g.uQ()?y:g.m9(y,4),J.source_ve_path=y);this.C.length=0};g.x($3R,A_);g.x(ox6,A_);g.x(my,g.u);my.prototype.JY=function(){g.u.prototype.JY.call(this);this.C=null;this.T&&this.T.disconnect()};g.x(hO3,A_);g.x(By,g.z);By.prototype.show=function(){g.z.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; By.prototype.stopTimer=function(){this.C&&(this.C.dispose(),this.C=null)}; By.prototype.onVideoDataChange=function(J){var y,v,d=(y=this.api.getVideoData())==null?void 0:(v=y.getPlayerResponse())==null?void 0:v.playabilityStatus;d&&(y=ID6(d),g.k(this.api.getPlayerStateObject(),128)||J==="dataloaderror"||!y?(this.T=0,this.stopTimer(),this.hide()):(J=(y.remainingTimeSecs||0)*1E3,J>0&&(this.show(),this.updateValue("label",pY(y.label)),U33(this,J))))}; By.prototype.JY=function(){this.stopTimer();g.z.prototype.JY.call(this)};g.x(fDU,A_);g.x(qq,g.z);qq.prototype.onClick=function(){this.Ly.logClick(this.element);this.Ly.Rf("onFullerscreenEduClicked")}; qq.prototype.Mx=function(){this.Ly.isFullscreen()?this.C?this.fade.hide():this.fade.show():this.hide();this.Ly.logVisibility(this.element,this.Ly.isFullscreen()&&!this.C)};g.x(rw,A_);rw.prototype.updateFullerscreenEduButtonSubtleModeState=function(J){var y;(y=this.C)!=null&&(g.lq(y.element,"ytp-fullerscreen-edu-button-subtle",J),J&&!y.T&&(y.element.setAttribute("title","Despl\u00e1zate hacia abajo para obtener m\u00e1s informaci\u00f3n"),rx(y.Ly,y.element,y),y.T=!0))}; rw.prototype.updateFullerscreenEduButtonVisibility=function(J){var y;(y=this.C)!=null&&(y.C=J,y.Mx())};g.x(iYP,g.z);g.x(XRT,A_);g.x($q,A_);$q.prototype.getSphericalProperties=function(){var J=g.f5(this.api.un());return J?J.getSphericalProperties():{}}; $q.prototype.setSphericalProperties=function(J){if(J){var y=g.f5(this.api.un());y&&y.setSphericalProperties(J,!0)}};g.x(ov,A_);g.a=ov.prototype;g.a.createClientVe=function(J,y,v,d){this.api.createClientVe(J,y,v,d===void 0?!1:d)}; g.a.createServerVe=function(J,y,v){this.api.createServerVe(J,y,v===void 0?!1:v)}; g.a.setTrackingParams=function(J,y){this.api.setTrackingParams(J,y)}; g.a.logClick=function(J,y){this.api.logClick(J,y)}; g.a.logVisibility=function(J,y,v){this.api.logVisibility(J,y,v)}; g.a.hasVe=function(J){return this.api.hasVe(J)}; g.a.destroyVe=function(J){this.api.destroyVe(J)};var ROv=!1;h_.prototype.setPlaybackRate=function(J){this.playbackRate=Math.max(1,J)}; h_.prototype.getPlaybackRate=function(){return this.playbackRate};i_.prototype.xe=function(J){var y=g.pm(J.info.C.info,this.mR.jH),v=J.info.py+this.W,d=J.info.startTime*1E3;if(this.policy.ZB)try{d=this.policy.ZB?g.gn(J)*1E3:J.info.startTime*1E3}catch(T){Math.random()>.99&&this.logger&&(d=lr(J.T).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:J.info.A_(),encodedDataView:g.eB(d,4)})),d=J.info.startTime*1E3}var P=J.info.clipId,A=this.policy.ZB?g.Qc2(J)*1E3:J.info.duration*1E3;this.policy.ZB&&(d<0||A<0)&&(this.logger&&(this.logger({missingSegInfo:J.info.A_(), startTimeMs:d,durationMs:A}),this.policy.qc||(d<0&&(d=J.info.startTime*1E3),A<0&&(A=J.info.duration*1E3))),this.policy.qc&&(d<0&&(d=J.info.startTime*1E3),A<0&&(A=J.info.duration*1E3)));return{formatId:y,py:v,startTimeMs:d,clipId:P,FR:A}}; i_.prototype.kf=function(J){this.timestampOffset=J};u_.prototype.seek=function(J,y){J!==this.C&&(this.seekCount=0);this.C=J;var v=this.videoTrack.T,d=this.audioTrack.T,P=this.audioTrack.EN,A=szT(this,this.videoTrack,J,this.videoTrack.EN,y);y=szT(this,this.audioTrack,this.policy.QM?J:A,P,y);J=Math.max(J,A,y);this.V=!0;this.mR.isManifestless&&(Axx(this,this.videoTrack,v),Axx(this,this.audioTrack,d));return J}; u_.prototype.isSeeking=function(){return this.V}; u_.prototype.lx=function(J){this.J=J}; var ni3=2/24;var Vnj=0;g.a=ww.prototype;g.a.HU=function(){this.K=this.now();lW3(this.sS,this.K);this.oG.HU()}; g.a.yx=function(J,y){var v=this.policy.T?(0,g.GC)():0;Jr(this,J,y);J-this.L<10&&this.T>0||this.x5(J,y);this.oG.yx(J,y);this.policy.T&&(J=(0,g.GC)()-v,this.yl+=J,this.rj=Math.max(J,this.rj))}; g.a.x5=function(J,y){var v=(J-this.L)/1E3,d=y-this.J;this.Pz||(r4(this.sS,v,d),this.RM(v,d));this.L=J;this.J=y}; g.a.IB=function(){this.wj&&LDP(this);this.oG.IB()}; g.a.Qx=function(J){this.wj||(this.wj=this.V-this.L8+J,this.ON=this.V,this.ZE=this.G)}; g.a.Gh=function(J,y){J=J===void 0?this.G:J;y=y===void 0?this.V:y;this.T>0||(this.B=J,this.T=y,this.zK=this.isActive=!0)}; g.a.J2=function(){return this.tA||2}; g.a.T8=function(){}; g.a.SS=function(){var J,y={rn:this.requestNumber,rt:(this.G-this.C).toFixed(),lb:this.V,stall:(1E3*this.W).toFixed(),ht:(this.K-this.C).toFixed(),elt:(this.B-this.C).toFixed(),elb:this.T,d:(J=this.If)==null?void 0:J.a5()};this.url&&NUx(y,this.url);this.policy.T&&(y.mph=this.rj.toFixed(),y.tph=this.yl.toFixed());y.ulb=this.cX;y.ult=this.Cy;return y}; g.a.now=function(){return(0,g.GC)()}; g.a.deactivate=function(){this.isActive&&(this.isActive=!1)};g.x(vF,ww);g.a=vF.prototype;g.a.SS=function(){var J=ww.prototype.SS.call(this);J.pb=this.MR;J.pt=(1E3*this.Ky).toFixed();J.se=this.H$;return J}; g.a.e5=function(){var J=this.oG;this.ZB||(this.ZB=J.e5?J.e5():1);return this.ZB}; g.a.TL=function(){return this.Dp?this.e5()!==1:!1}; g.a.RQ=function(J,y,v){if(!this.f8){this.f8=!0;if(!this.Pz){Jr(this,J,y);this.x5(J,y);var d=this.e5();this.H$=v;if(!this.Pz)if(d===2){d=J-this.B0)||dB(this,d,y),this.T>0&&Bl(this.sS,y,this.W));J=(J-this.C)/ 1E3||.01;this.policy.B&&!(this.T>0)||ml(this.sS,J,this.J,WDd(this),this.HH)}this.deactivate()}}; g.a.VS=function(J,y,v){v&&(this.ZB=2);J<0&&this.tA&&(J=this.tA);y?this.GK+=J:this.Vk+=J}; g.a.J2=function(){return this.Vk||this.GK||ww.prototype.J2.call(this)}; g.a.x5=function(J,y){var v=(J-this.L)/1E3,d=y-this.J,P=this.e5();this.isActive?P===1&&((d>0||this.policy.V)&&(v>.2||d<1024)?(this.W+=v,d>0&&v>.2&&dB(this,this.Pn?v:.05,d),this.aG=!0):d>0&&(dB(this,v,d),this.aG=!0)):y&&y>=this.policy.C&&this.Gh(J,y);ww.prototype.x5.call(this,J,y)}; g.a.HS=function(J){if(!this.Pz){Jr(this,J,this.V);var y=(J-this.C)/1E3;this.e5()!==2&&this.T>0&&(this.W+=(J-this.L)/1E3,Bl(this.sS,this.J,this.W));ml(this.sS,y,this.J,WDd(this),this.HH,!0);J=(J-this.L)/1E3;r4(this.sS,J,0);this.RM(J,0)}}; g.a.Gh=function(J,y){J=J===void 0?this.G:J;y=y===void 0?this.V:y;if(!(this.T>0)&&(ww.prototype.Gh.call(this,J,y),this.e5()===1)){y=(this.K-this.C)/1E3;var v=(J-this.K)/1E3;this.Dp&&PF(this,this.now());this.J9||this.Pz||(this.tA&&(v=Math.max(0,v-this.tA)),J=this.sS,J.B.B_(1,y),J.If.B_(1,v))}}; g.a.HJ=function(){this.Dp&&PF(this,this.now());return this.Ek}; g.a.CU=function(){var J;if(J=this.J>this.X3)J=(J=this.J)?J>=this.policy.C:!1;return J}; g.a.qQ=function(){return this.XW}; g.a.IP=function(J){J=J===void 0?this.now():J;if(this.Dp){PF(this,J);if(this.ZB?this.TL():this.AY!==this.WX){var y=this.WX;if(J0?v+J:v+Math.max(J,y)}; g.a.FN=function(){return this.now()-this.B}; g.a.An=function(){return(this.J-this.T)*1E3/this.FN()||0}; g.a.vJ=function(){return this.B};Ar.prototype.feed=function(J){v9(this.C,J);this.j1()}; Ar.prototype.j1=function(){if(this.W){if(!this.C.totalLength)return;var J=this.C.split(this.J-this.T),y=J.h2;J=J.Jx;if(!this.oG.Qx(this.W,y,this.T,this.J))return;this.T+=y.totalLength;this.C=J;this.T===this.J&&(this.W=this.J=this.T=void 0)}for(;;){var v=0;J=g.D(gi3(this.C,v));y=J.next().value;v=J.next().value;v=g.D(gi3(this.C,v));J=v.next().value;v=v.next().value;if(y<0||J<0)break;if(!(v+J<=this.C.totalLength)){if(!(this.oG.Qx&&v+1<=this.C.totalLength))break;v=this.C.split(v).Jx;this.oG.Qx(y,v,0, J)&&(this.W=y,this.T=v.totalLength,this.J=J,this.C=new yA([]));break}J=this.C.split(v).Jx.split(J);v=J.Jx;this.oG.TZ(y,J.h2);this.C=v}}; Ar.prototype.dispose=function(){this.C=new yA};g.a=TV.prototype;g.a.U$=function(){return 0}; g.a.zO=function(){return null}; g.a.jt=function(){return null}; g.a.Th=function(){return this.state>=1}; g.a.isComplete=function(){return this.state>=3}; g.a.Rq=function(){return this.state===5}; g.a.onStateChange=function(){}; g.a.Hq=function(J){var y=this.state;this.state=J;this.onStateChange(y);this.callback&&this.callback(this,y)}; g.a.K1=function(J){J&&this.state=this.xhr.HEADERS_RECEIVED}; g.a.getResponseHeader=function(J){try{return this.xhr.getResponseHeader(J)}catch(y){return""}}; g.a.EB=function(){return+this.getResponseHeader("content-length")}; g.a.Vq=function(){return this.T}; g.a.zj=function(){return this.status>=200&&this.status<300&&!!this.T}; g.a.rS=function(){return this.C.totalLength>0}; g.a.We=function(){var J=this.C;this.C=new yA;return J}; g.a.yV=function(){return this.C}; g.a.abort=function(){this.tY=!0;this.xhr.abort()}; g.a.ao=function(){return!0}; g.a.hp=function(){return this.J}; g.a.ge=function(){return""};g.a=bCj.prototype;g.a.getResponseHeader=function(J){return J==="content-type"?this.C.get("type"):""}; g.a.abort=function(){}; g.a.eA=function(){return!0}; g.a.EB=function(){return this.range.length}; g.a.Vq=function(){return this.loaded}; g.a.zj=function(){return!!this.loaded}; g.a.rS=function(){return!!this.T.totalLength}; g.a.We=function(){var J=this.T;this.T=new yA;return J}; g.a.yV=function(){return this.T}; g.a.ao=function(){return!0}; g.a.hp=function(){return!!this.error}; g.a.ge=function(){return this.error};g.a=jzP.prototype;g.a.start=function(J){var y={credentials:"include",cache:"no-store"};Object.assign(y,this.G);this.W&&(y.signal=this.W.signal);J=new Request(J,y);fetch(J).then(this.K,this.onError).then(void 0,PN)}; g.a.onDone=function(){this.tY()||this.oG.IB()}; g.a.getResponseHeader=function(J){return this.responseHeaders?this.responseHeaders.get(J):null}; g.a.eA=function(){return!!this.responseHeaders}; g.a.Vq=function(){return this.T}; g.a.EB=function(){return+this.getResponseHeader("content-length")}; g.a.zj=function(){return this.status>=200&&this.status<300&&!!this.T}; g.a.rS=function(){return!!this.C.totalLength}; g.a.We=function(){var J=this.C;this.C=new yA;return J}; g.a.yV=function(){return this.C}; g.a.tY=function(){return this.V}; g.a.abort=function(){this.J&&this.J.cancel().catch(function(){}); this.W&&this.W.abort();this.V=!0}; g.a.ao=function(){return!0}; g.a.hp=function(){return this.L}; g.a.ge=function(){return this.errorMessage};g.a=emT.prototype;g.a.onDone=function(){if(!this.tY){this.status=this.xhr.status;try{this.response=this.xhr.response,this.T=this.response.byteLength}catch(J){}this.C=!0;this.oG.IB()}}; g.a.zZ=function(){this.xhr.readyState===2&&this.oG.HU()}; g.a.Xz=function(J){this.tY||(this.status=this.xhr.status,this.C||(this.T=J.loaded),this.oG.yx((0,g.GC)(),J.loaded))}; g.a.eA=function(){return this.xhr.readyState>=2}; g.a.getResponseHeader=function(J){try{return this.xhr.getResponseHeader(J)}catch(y){return g.ev(Error("Could not read XHR header "+J)),""}}; g.a.EB=function(){return+this.getResponseHeader("content-length")}; g.a.Vq=function(){return this.T}; g.a.zj=function(){return this.status>=200&&this.status<300&&this.C&&!!this.T}; g.a.rS=function(){return this.C&&!!this.response&&!!this.response.byteLength}; g.a.We=function(){var J=this.response;this.response=void 0;return new yA([new Uint8Array(J)])}; g.a.yV=function(){return new yA([new Uint8Array(this.response)])}; g.a.abort=function(){this.tY=!0;this.xhr.abort()}; g.a.ao=function(){return!1}; g.a.hp=function(){return!1}; g.a.ge=function(){return""};g.x(ng,g.u);ng.prototype.dR=function(){if(!this.Z8.length)return[];var J=this.Z8;this.Z8=[];this.J=g.Wq(J).info;return J}; ng.prototype.wQ=function(){return this.Z8}; ng.prototype.JY=function(){g.u.prototype.JY.call(this);this.C=null;this.Z8.length=0;this.Uk.length=0;this.J=null};g.x(YB,g.u);g.a=YB.prototype; g.a.d1B=function(){if(!this.tY()){var J=(0,g.GC)(),y=!1;if(this.policy.qk){J=J-(this.timing.T>0?this.timing.B:this.timing.C)-this.timing.J2()*1E3;var v=hk(Sz(this),!1);J>=2E3*v?y=!0:J>=this.policy.l0*v&&(this.C=this.policy.Ah)}else if(this.timing.T>0){if(this.V){this.policy.ON&&(this.C=0);return}var d=this.timing.qQ();this.timing.IP();var P=this.timing.qQ();P-d>=this.policy.Bo*.8?(this.C++,this.logger.debug(function(){return"Mispredicted by "+(P-d).toFixed(0)}),y=this.C>=5):this.C=0}else{var A=J- this.timing.HJ(); this.policy.Ah&&A>0&&(this.C+=1);y=hk(Sz(this),!1)*this.policy.kt;(y=A>y*1E3)&&this.logger.debug(function(){return"Elbow late by "+A.toFixed(3)})}this.C>0&&this.oG.fS(); y?this.Aa():this.T.start()}}; g.a.Aa=function(){this.W=!0;this.oG.zc();this.lastError="net.timeout";Lg(this)}; g.a.canRetry=function(J){var y=Sz(this);J=J?this.policy.M5:this.policy.Kp;return y.timedOut0&&(y=MH(y.C,0),J.ubyte=y,v===1&&y===0&&(J.b248180278=!0))}this.Mw&&(J.rc=this.policy.oi?this.Mw:this.Mw.toString());this.policy.ES&&this.jN&&(J.tr=this.jN);J.itag=this.info.Uk[0].C.info.itag;J.ml=""+ +this.info.Uk[0].C.kR();J.sq=""+this.info.Uk[0].py;this.qA&&(J.ifi=""+ +N9(this.info.q4.T));this.Mw!==410&&this.Mw!==500&&this.Mw!==503||(J.fmt_unav="true");var d;(v=this.errorMessage||((d=this.xhr)==null?void 0: d.ge()))&&(J.msg=v);this.tS&&(J.smb="1");this.info.isDecorated()&&(J.sdai="1");return J}; g.a.wk=function(){return apR(this.timing)}; g.a.ge=function(){return this.xhr.ge()||""}; g.a.CU=function(){return this.isComplete()||this.timing.CU()}; g.a.yx=function(){!this.tY()&&this.xhr&&(this.Mw=this.xhr.status,this.policy.jS&&this.sR&&this.x$(!1),this.DC()?this.K1(2):!this.sX&&this.CU()&&(this.K1(),this.sX=!0))}; g.a.HU=function(){if(!this.tY()&&this.xhr){if(!this.ym&&this.xhr.eA()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var J=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.ym=((0,g.GC)()-J)/1E3}this.xhr.eA()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.xb&&!JLU()&&g.B1("yt-player-headers-readable",!0,2592E3);J=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var y=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),v;(v=this.pJ)==null||v.stop();this.uQ=J||this.uQ; this.Xv=y||this.Xv}}; g.a.IB=function(){var J=this.xhr;if(!this.tY()&&J){this.Mw=J.status;J=this.xV(J);if(this.policy.ES){var y;(y=this.pJ)==null||y.stop()}J===5?Lg(this.t_):this.Hq(J);this.t_.T.stop()}}; g.a.xV=function(J){var y=this;M73(this);if(tr(this.t_,this.xhr.status,this.LF?this.timing.zK||this.X6:this.xhr.zj(),!1,this.dA))return 5;var v="";WF(this.t_,this.xhr)&&(v=oiR(this.t_,this.xhr));if(v)return CS(Sz(this.t_)),this.info.VI(this.qA,v),3;v=J.Vq();if(this.Ax){this.x$(!0);M73(this);if(tr(this.t_,this.xhr.status,this.timing.zK||this.X6,!1,this.dA))return 5;if(!this.Zu){if(this.X6)return CS(Sz(this.t_)),3;this.t_.lastError="net.closed";return 5}}else{if(tr(this.t_,this.xhr.status,this.xhr.zj(), !1,this.dA))return 5;var d=this.info.J;if(d&&d!==v||J.hp())return this.t_.lastError="net.closed",5;this.x$(!0)}d=D9U(this)?J.getResponseHeader("X-Bandwidth-Est"):0;if(J=D9U(this)?J.getResponseHeader("X-Bandwidth-Est3"):0)this.V0=!0,this.policy.V6&&(d=J);rxm(this.t_,v,d?Number(d):0,this.info.Uk[0].type===5);this.logger.debug(function(){var P=y.timing;return"Succeeded, rtpd="+(P.Ky*1E3+P.C-Date.now()).toFixed(0)}); return 4}; g.a.canRetry=function(){this.tY();var J=this.info.isDecorated();return this.t_.canRetry(J)}; g.a.onStateChange=function(){this.isComplete()&&(this.policy.P7?this.zc():this.timing.deactivate())}; g.a.Aa=function(){this.t_.Aa()}; g.a.fS=function(){this.callback&&this.callback(this,this.state)}; g.a.Nj=function(){return this.t_.Nj()}; g.a.dispose=function(){TV.prototype.dispose.call(this);this.t_.dispose();var J;(J=this.pJ)==null||J.dispose();this.policy.P7||this.zc()}; g.a.zc=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.a.dR=function(){if(!this.wQ().length)return[];this.Hg=!0;return this.sR.dR()}; g.a.DC=function(){if(this.state<1)return!1;if(this.sR&&this.sR.Z8.length)return!0;var J;return((J=this.xhr)==null?0:J.rS())?!0:!1}; g.a.wQ=function(){this.x$(!1);return this.sR?this.sR.wQ():[]}; g.a.x$=function(J){try{if(J||this.xhr.eA()&&this.xhr.rS()&&!WF(this.t_,this.xhr)&&!this.gq)this.sR||(this.sR=new ng(this.policy,this.info.Uk)),this.xhr.rS()&&(this.Ax?this.Ax.feed(this.xhr.We()):sl(this.sR,this.xhr.We(),J&&!this.xhr.rS()))}catch(y){this.Ax?Ak3(this,y):g.ev(y)}}; g.a.TZ=function(J,y){switch(J){case 21:J=y.split(1).Jx;TyU(this,J);break;case 22:this.Zu=!0;sl(this.sR,new yA([]),!0);break;case 43:if(J=c9(new W9(y),1))this.info.VI(this.qA,J),this.X6=!0;break;case 45:y=nC(new W9(y));J=y.X0;y=y.vp;J&&y&&(this.dJ=J/y);break;case 44:this.MC=uzR(new W9(y));var v,d,P;!this.timing.zK&&((v=this.MC)==null?void 0:v.action)===4&&((d=this.MC)==null?0:(P=d.j_)==null?0:P.LF)&&(this.LF=this.MC.j_.LF);break;case 53:this.policy.ES&&(J=UA6(new W9(y)).cw)&&(this.pJ||(this.cw=J,this.pJ= new g.Kx(this.p_,J,this)),this.pJ.start());break;case 60:this.vN=M9(new W9(y));break;case 58:if(J=W7x(new W9(y)))this.Fd=J,J.Fd===3&&(this.dA=!0)}}; g.a.Qx=function(J,y,v,d){v||this.timing.Qx(d);if(J!==21)return!1;if(J=this.policy.jS)if(J*=this.info.Uk[0].C.info.FW,y.totalLength+v!==d&&y.totalLength0)return!1;if(!this.xhr.eA())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Ax)var J=!this.info.J;else this.xhr.EB()?J=!1:(J=this.xhr.getResponseHeader("content-type"),J=J==="audio/mp4"||J==="video/mp4"||J==="video/webm");if(!J)return!1;if(isNaN(this.info.y_)){J=this.xhr.getResponseHeader("x-head-seqnum");var y=this.timing.policy.G?1:0;if(!J)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); else if(Number(J)>this.info.Uk[0].py+y)return!1}return!0}; g.a.Iv=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.a.zO=function(){this.xhr&&(this.uQ=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.uQ}; g.a.jt=function(){this.xhr&&(this.Xv=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Xv}; g.a.R5=function(){return this.t_.R5()}; g.a.p_=function(){if(!this.tY()&&this.xhr){this.jN="heartbeat";var J=this.t_;J.C+=2;this.fS()}};g.x(bJ,ww);g.a=bJ.prototype;g.a.x5=function(J,y){var v=(J-this.L)/1E3,d=y-this.J;this.T>0?d>0&&(this.AY&&(v>.2||d<1024?(this.W+=v,v>.2&&ns2(this,.05,d)):ns2(this,v,d)),this.WX&&(this.Ek+=d,this.Vk+=v)):y>this.policy.C&&this.Gh(J,y);ww.prototype.x5.call(this,J,y)}; g.a.RQ=function(J,y){Jr(this,J,y);this.x5(J,y);this.AY&&(y=this.J*this.snapshot.stall+this.J/this.snapshot.byterate,this.T>0&&Bl(this.sS,this.Ek,this.W),J=(J-this.C)/1E3||.01,this.policy.B&&!(this.T>0)||ml(this.sS,J,this.J,y,!1))}; g.a.HS=function(J){Jr(this,J,this.V);var y=(J-this.L)/1E3;r4(this.sS,y,0);this.RM(y,0);!this.AY&&this.T>0||(y=this.J*this.snapshot.stall+this.J/this.snapshot.byterate,this.T>0&&(this.W+=(J-this.L)/1E3,Bl(this.sS,this.Ek,this.W)),ml(this.sS,((J-this.C)/1E3||.01)*this.policy.zK,this.J,y,!1,!0))}; g.a.Au=function(J){J=J.Ij||2147483647;(J&2)!==2&&(this.WX=!1);(J&1)===1&&(this.AY=!0)}; g.a.n6=function(J){J=J.Ij||2147483647;(J&2)===2&&(this.WX=!1);(J&1)===1&&(this.AY=!1)}; g.a.vJ=function(){return this.B}; g.a.FN=function(){var J=this.WX?this.now()-this.L:0;return Math.max(this.Vk*1E3+J,1)}; g.a.An=function(){return this.Ek*1E3/this.FN()}; g.a.Gh=function(J,y){J=J===void 0?this.G:J;y=y===void 0?this.V:y;this.T>0||(ww.prototype.Gh.call(this,J,y),y=this.sS,J=(J-this.K)/1E3,y.B.B_(1,(this.K-this.C)/1E3),y.If.B_(1,J))}; g.a.T8=function(J){this.GK=J}; g.a.SS=function(){var J=ww.prototype.SS.call(this);J.rbw=this.An();J.rbe=+this.WX;J.gbe=+this.AY;J.ackt=(this.GK-this.C).toFixed();return J}; g.a.IP=function(){}; g.a.qQ=function(){return NaN}; g.a.HJ=function(){return this.C+this.snapshot.delay*1E3};FE.prototype.TZ=function(J,y){switch(J){case 20:J=new W9(y);J={oD:Oi(J,1),videoId:c9(J,2),itag:Oi(J,3),lmt:Oi(J,4),xtags:c9(J,5),hE:Oi(J,6),dU:gZ(J,8),bX:Oi(J,9),M5x:Oi(J,10),startMs:Oi(J,11),durationMs:Oi(J,12),xv:Oi(J,14),timeRange:Gp(J,15,ZA6),l1:Oi(J,16),X7:Oi(J,17),clipId:c9(J,1E3)};this.I8(J);break;case 21:this.sA(y,!1);break;case 22:this.S7(y);break;case 31:J=j0(y,qA3);this.LJ(J);break;case 52:J=j0(y,fd2);this.Ck(J);break;default:this.lD(J,y)}}; FE.prototype.I8=function(){}; FE.prototype.lD=function(){};g.x(jz,FE);g.a=jz.prototype; g.a.lD=function(J,y){switch(J){case 35:this.LR(y);break;case 44:this.aT(y);break;case 43:this.mN(y);break;case 53:this.t3(y);break;case 55:J=new W9(y);Gp(J,1,X63);Gp(J,2,K7j);break;case 56:this.z3();break;case 57:this.Rl(y);break;case 42:this.d6(y);break;case 45:this.fR(y);break;case 59:this.C6(y);break;case 51:this.Ju(y);break;case 49:this.Au(y);break;case 50:this.n6(y);break;case 47:this.dQ(y);break;case 58:this.h8(y);break;case 61:this.oG.z4.T8((0,g.GC)());break;case 66:this.wx(y);break;case 46:this.iz(y); break;case 67:this.onSnackbarMessage(y)}}; g.a.Ju=function(J){J=new W9(J);J={fYW:Fb(J,1,TE),LrB:Fb(J,2,TE)};this.oG.Ju(J)}; g.a.C6=function(J){var y=new W9(J);J=br(y,1);var v=br(y,2);y=br(y,3);this.oG.C6(J,v,y)}; g.a.fR=function(J){J=nC(new W9(J));this.oG.fR(J)}; g.a.dQ=function(J){J=j0(J,o8R);this.oG.dQ(J)}; g.a.d6=function(J){J=new W9(J);J={videoId:c9(J,1),formatId:Gp(J,2,TE),endTimeMs:Oi(J,3),UvB:Oi(J,4),mimeType:c9(J,5),LH:Gp(J,6,btT),indexRange:Gp(J,7,btT),XD:Gp(J,8,F7j)};this.oG.d6(J)}; g.a.Rl=function(J){J=K7j(new W9(J));this.oG.Rl(J)}; g.a.z3=function(){this.oG.z3()}; g.a.LR=function(J){J=rv6(new W9(J));this.oG.LR(J)}; g.a.t3=function(J){J=UA6(new W9(J));this.oG.t3(J)}; g.a.aT=function(J){J=uzR(new W9(J));this.oG.aT(J)}; g.a.mN=function(J){J={redirectUrl:c9(new W9(J),1)};this.oG.mN(J)}; g.a.sA=function(J){var y=MH(J,0);if(J.totalLength!==1){J=J.split(1).Jx;var v=this.T[y]||null;v&&Cg(this.oG.Kj,y,v,J)}}; g.a.S7=function(J){J=MH(J,0);var y=this.T[J]||null;y&&this.oG.S7(J,y)}; g.a.Ck=function(J){this.oG.Ck(J)}; g.a.I8=function(J){var y=J.oD,v=J.dU,d=J.hE,P=J.X7,A=J.l1,T=J.bX,M=J.startMs,n=J.durationMs,Y=J.timeRange,S=J.xv,V=J.clipId,L=HJ(J);J=unX.has(eA[""+J.itag]);this.T[y]=L;this.oG.VS(L,J,{oD:y,dU:!!v,hE:d!=null?d:-1,bX:T!=null?T:-1,startMs:M!=null?M:-1,durationMs:n!=null?n:-1,xv:S,X7:P,l1:A,clipId:V,timeRange:Y})}; g.a.Au=function(J){J={Ij:Oi(new W9(J),1)};this.oG.Au(J)}; g.a.n6=function(J){J={Ij:Oi(new W9(J),1)};this.oG.n6(J)}; g.a.LJ=function(J){this.oG.LJ(J)}; g.a.h8=function(J){J=W7x(new W9(J));this.oG.h8(J)}; g.a.wx=function(J){J={CB:Gp(new W9(J),1,Idm)};this.oG.wx(J)}; g.a.onSnackbarMessage=function(J){J=Oi(new W9(J),1);this.oG.onSnackbarMessage(J)}; g.a.iz=function(J){J=new W9(J);J={reloadPlaybackParams:Gp(J,1,tbP),a7:gZ(J,2)};this.oG.iz(J)};g.x(ez,g.u);g.a=ez.prototype;g.a.HQ=function(){return Array.from(this.Ms.keys())}; g.a.Gy=function(J){J=this.Ms.get(J);var y=J.Z8;J.oV+=y.totalLength;J.Z8=new yA;return y}; g.a.KA=function(J){return this.Ms.get(J).KA}; g.a.Ff=function(J){return this.Ms.get(J).Ff}; g.a.VS=function(J,y,v,d){this.Ms.get(J)||Ls6(this,J,y);y=this.Ms.get(J);if(this.mR){J=WsT(this,J,v);if(d)for(var P=g.D(J),A=P.next();!A.done;A=P.next()){A=A.value;var T=d;A.Cy=T;A.startTime+=T;A.W+=T;A.L+=T}t7T(this,v.oD,y,J)}else v.dU?y.ST=v.xv:y.v0.push(v),y.GG.push(v)}; g.a.zW=function(J){var y;return((y=this.Ms.get(J))==null?void 0:y.Uk)||[]}; g.a.K1=function(){for(var J=g.D(this.Ms.values()),y=J.next();!y.done;y=J.next())y=y.value,y.aP&&(y.Xz&&y.Xz(),y.aP=!1)}; g.a.S7=function(J,y){this.logger.debug(function(){return"[onMediaEnd] formatId: "+y}); var v=this.Ms.get(y);BF?v&&!v.KA&&(v.BO.get(J)?v.BO.get(J).l_=!0:v.BO.set(J,{data:new yA,aU:0,l_:!0}),v.Ff=!0):v&&!v.Ff&&(v.Ff=!0)}; g.a.dR=function(J){if(BF){var y=this.Ms.get(J);if(y)for(var v=g.D(y.BO),d=v.next();!d.done;d=v.next()){var P=g.D(d.value);d=P.next().value;P=P.next().value;var A=y.bI.get(d);if(E7(A[0])){if(!P.l_)continue;var T=P.data,M=0,n=[];A=g.D(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var S=Y.J,V=dZ(T,M,S);M+=S;n.push(new aU(Y,V))}y.mf.push.apply(y.mf,g.r(n))}else if(P.data.totalLength>0||!A[0].range&&P.l_)T=void 0,M=A[0],n=P.aU,A=P.data,M.range||(T=P.l_),T=new aU(bm6(M,M.T+n,A.totalLength,T),A),P.aU+= T.info.J,y.mf.push(T);y.BO.get(d).data=new yA;P.l_&&y.BO.delete(d)}J=this.Ms.get(J);if(!J)return[];y=J.mf;J.mf=[];v=g.D(y);for(d=v.next();!d.done;d=v.next())J.oV+=d.value.info.J;return y||[]}v=(y=this.Ms.get(J))==null?void 0:y.sR;if(!v)return[];this.x$(J,v);return v.dR()}; g.a.DC=function(J){if(BF)return oN(this,J);var y,v,d;return!!((v=(y=this.Ms.get(J))==null?void 0:y.sR)==null?0:(d=v.wQ())==null?0:d.length)||oN(this,J)}; g.a.x$=function(J,y){for(;oN(this,J);){var v=this.Gy(J);var d=J;d=this.Ms.get(d).KA&&!$B(this,d);sl(y,v,d&&V7T(this,J))}}; g.a.JY=function(){g.u.prototype.JY.call(this);for(var J=g.D(this.Ms.keys()),y=J.next();!y.done;y=J.next())qd(this,y.value);var v;if((v=this.K0)==null?0:v.sx)for(J=g.D(this.Ms.values()),y=J.next();!y.done;y=J.next())y=y.value,y.BO.clear(),y.bI.clear(),y.mf.length=0,y.Uk.length=0,y.GG.length=0,y.v0.length=0;this.Ms.clear()}; var BF=!1;g.x(hr,g.u);g.a=hr.prototype;g.a.yx=function(){!this.tY()&&this.xhr&&(this.x$(!1),Q8(this.oG,this))}; g.a.HU=function(){}; g.a.IB=function(){if(!this.tY()&&this.xhr){var J=this.xV();J===5?Lg(this.t_):this.Hq(J);this.t_.T.stop();var y;(y=this.BM)==null||y.stop()}}; g.a.xV=function(){var J="";WF(this.t_,this.xhr)&&(J=oiR(this.t_,this.xhr));if(J)return this.info.q4.VI(this.qA,J),3;this.x$(!0);if(tr(this.t_,this.xhr.status,this.xhr.zj(),this.info.Kb(),this.dA))return 5;if(this.c6)return 3;rxm(this.t_,this.xhr.Vq(),0,this.Kb());this.policy.ZE&&ts3(this.oG);return 4}; g.a.x$=function(J){var y=this.xhr;if((J||!WF(this.t_,this.xhr))&&y.rS()){J=y.We();var v=J.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+v}); this.Ax.feed(J)}}; g.a.TZ=function(J,y){this.xhr.ao()&&J===21&&DxT(this);this.EJ.TZ(J,y)}; g.a.Qx=function(J,y,v,d){v||(this.z4.Qx(d),this.policy.gA&&J===21&&DxT(this));if(J!==21)return!1;this.z4.zK=!0;J=y.totalLength;v||(this.z0=MH(y,0),y=y.split(1).Jx);var P=this.policy.LM,A=this.EJ.T[this.z0],T=this.mR.J.get(A);if(P&&T&&(P*=T.info.FW,J+v!==d&&J0){this.policy.qk&&this.t_.T.stop();J=this.z4.FN();y=this.z4.An();var v=ckH(this,J);if(!(y>v.jd||v.vD>0&&this.info.e2()>v.vD)){this.w7=(0,g.GC)();var d;(d=this.BM)==null||d.stop();this.policy.ZE&&(d=this.oG,J={qL:Math.round(y*J/1E3),SF:J},d.policy.ZE&&(d.If=J,d.Zl++));this.Aa()}}}}; g.a.Aa=function(){this.t_.Aa()}; g.a.aT=function(J){this.oG.aT(J,this.Hn())}; g.a.mN=function(J){this.c6=!0;this.info.q4.VI(this.qA,J.redirectUrl)}; g.a.Au=function(J){this.z4 instanceof bJ&&this.z4.Au(J)}; g.a.n6=function(J){this.z4 instanceof bJ&&this.z4.n6(J)}; g.a.d6=function(J){var y=J.formatId,v=HJ({itag:y.itag,lmt:y.lmt,xtags:y.xtags}),d,P,A=new Nx(((d=J.LH)==null?void 0:d.first)||0,((P=J.LH)==null?void 0:P.RE)||0),T,M;d=new Nx(((T=J.indexRange)==null?void 0:T.first)||0,((M=J.indexRange)==null?void 0:M.RE)||0);this.mR.J.get(v)||(v=J.XD||{},v.mimeType=J.mimeType,v.itag=y.itag,v.lastModified=""+(y.lmt||0),v.xtags=y.xtags,J=this.mR,y=pL(""),v=hA(v,null),Bi(J,new jR(y,v,A,d)))}; g.a.fR=function(J){this.oG.fR(J,this.Hn())}; g.a.onSnackbarMessage=function(J){if(this.policy.W3)this.oG.onSnackbarMessage(J)}; g.a.LJ=function(J){this.ek=J;this.zp=(0,g.GC)();this.oG.LJ(J)}; g.a.C6=function(J,y,v){this.oG.C6(J,y,v)}; g.a.Rl=function(J){J.scope===2&&(this.Hp=J);this.oG.Rl(J)}; g.a.z3=function(){this.U6=!0;this.oG.z3()}; g.a.Ju=function(J){this.policy.pR&&this.oG.Ju(J)}; g.a.dQ=function(J){this.oG.dQ(J,this.Hn())}; g.a.h8=function(J){J.Fd===3&&(this.dA=!0);this.oG.h8(J)}; g.a.wx=function(J){this.oG.wx(J)}; g.a.iz=function(J){this.oG.iz(J)}; g.a.canRetry=function(){this.tY();return this.t_.canRetry(!1)}; g.a.dispose=function(){if(!this.tY()){g.u.prototype.dispose.call(this);this.t_.dispose();var J;(J=this.BM)==null||J.dispose();this.Hq(-1);this.zc()}}; g.a.Hq=function(J){this.state=J;Q8(this.oG,this)}; g.a.Kb=function(){return this.info.Kb()}; g.a.W2=function(){return this.U6}; g.a.sE=function(){return this.Hp}; g.a.VS=function(J,y,v){v.clipId&&(this.clipId=v.clipId);this.policy.T&&!y&&(this.CT=v.bX);this.Kj.VS(J,y,v,0);if(this.policy.uu&&this.ek&&this.z4 instanceof vF){var d=this.ek.rZ;this.z4.VS(v.durationMs/1E3,y,d>0&&v.bX+1>=d)}this.Kj.Ms.get(J).LQ=!0}; g.a.S7=function(J,y){this.Kj.S7(J,y)}; g.a.Ck=function(J){this.requestIdentifier=J}; g.a.dR=function(J){return this.Kj.dR(J)}; g.a.zW=function(J){return this.Kj.zW(J)}; g.a.DC=function(J){return this.Kj.DC(J)}; g.a.HQ=function(){return this.Kj.HQ()}; g.a.e5=function(){return 1}; g.a.Hn=function(){return this.z4.requestNumber}; g.a.u3=function(){return this.requestIdentifier}; g.a.S1=function(){return this.qA.S1()}; g.a.RR=function(){this.zc()}; g.a.zc=function(){this.z4.deactivate();var J;(J=this.xhr)==null||J.abort()}; g.a.isComplete=function(){return this.state>=3}; g.a.Ni=function(){return this.state===3}; g.a.Rq=function(){return this.state===5}; g.a.Zw=function(){return this.state===4}; g.a.QD=function(){return this.isComplete()}; g.a.Th=function(){return this.state>=1}; g.a.Nj=function(){return this.policy.ON?this.t_.Nj():0}; g.a.fS=function(){this.policy.ON&&Q8(this.oG,this)}; g.a.OV=function(){return io3(this.info)}; g.a.R5=function(){return this.t_.R5()}; g.a.Ke=function(){var J=CkR(this.t_);Object.assign(J,HoT(this.info));J.req="sabr";J.rn=this.Hn();var y;if((y=this.xhr)==null?0:y.status)J.rc=this.policy.oi?this.xhr.status:this.xhr.status.toString();var v;(y=(v=this.xhr)==null?void 0:v.ge())&&(J.msg=y);this.w7&&(v=ckH(this,this.w7-this.z4.vJ()),J.letm=v.k0,J.mrbps=v.jd,J.mram=v.vD);return J};Gg3.prototype.tick=function(J,y){this.ticks[J]=y?window.performance.timing.navigationStart+y:(0,g.GC)()};g.x(pg,g.yK);g.a=pg.prototype; g.a.F7=function(J,y,v,d){if(this.policy.AQ&&this.policy.T){var P=J.wc||null;P?(UxH(this,J.py,HF(this,J.startTime,J.py),{wc:P,py:J.py,Fy:!!y,OH:v},this.J),d&&this.J&&this.J.M0(J.py,J.startTime,this.T,(y==null?void 0:y.C)||[],(y==null?void 0:y.T)||[],(y==null?void 0:y.W)||[],v,(y==null?void 0:y.Cw)||0,(y==null?void 0:y.J)||void 0)):this.T===1&&fg(this,5,"noad")}else{var A=!1;this.policy.T&&(A=v?this.wj===J.py:this.AY===J.py);if(this.J&&d&&!A){d=[];A=[];var T=[],M=void 0,n=0;y&&(d=y.C,A=y.T,T=y.W,M= y.J,n=y.Cw,this.dj("sdai",{sq:J.py,ssvicpns:d.join("."),ssvid:A.join(".")}));this.policy.T&&(v?this.wj=J.py:this.AY=J.py);this.J.M0(J.py,J.startTime,this.T,d,A,T,v,n,M)}this.policy.T?v&&(this.T===1&&fg(this,5,"noad"),J.py!==((P=this.C)==null?void 0:P.py)&&(h2T(this,J,y,v),isNaN(J.startTime)||II2(this,J.py,HF(this,J.startTime,J.py),!!y,this.J))):v&&h2T(this,J,y)}}; g.a.Qo=function(J,y,v){var d=this.videoTrack.C.index.Yj()<=y;this.C={wc:J,py:y,Fy:v};d&&Ul(this,J,y)}; g.a.Rn=function(){this.J&&this.J.Rn()}; g.a.dj=function(J,y,v){(J!=="sdai"||this.policy.OT||(v===void 0?0:v))&&this.loader.dj(J,y)}; g.a.zS=function(J,y){var v=this.videoTrack.C.index.Q_(J);if(v>=0){var d;var P=((d=y.Rk.Kw(v,2))==null?void 0:d.Ld)||"";if(this.policy.T||P)return y.rd(J,v),iJ(this.loader,J,J,v),this.dj("sdai",{cmskpad:1,t:J.toFixed(3),sq:v}),!0}this.dj("sdai",{cmskpad:0,t:J.toFixed(3),sq:v});return!1};g.a=HSd.prototype;g.a.Op=function(J,y,v){J=J||this.C;if(this.T.has(J)){if(J=this.T.get(J))J.Dt=y,J.UO.push(v)}else y={Dt:y,UO:[],startTimeSecs:0,WF:0},y.UO.push(v),this.T.set(J,y)}; g.a.Qu=function(J,y){J!==void 0&&this.R3(J);if(this.C&&(J=this.T.get(this.C),J!=null&&J.Dt)){var v={lq:J.UO,aj:OC(J.Dt||"")||void 0,cuepointId:this.C};J.bx&&(v.Wm=J.bx);y&&(v.TM=Cn(y.split(";")[0]),v.J0=y.split(";")[1]||"");return v}}; g.a.rd=function(J,y){this.R3(J);var v=this.T.get(this.C);v?(this.dj("ssskipad",{cid:this.C,sn:y,mt:J.toFixed(3)}),v.bx=y):this.dj("ssskipadfail",{cid:this.C,sn:y,mt:J.toFixed(3)})}; g.a.rQ=function(){for(var J=g.D(this.T.values()),y=J.next();!y.done;y=J.next())y.value.bx=NaN}; g.a.R3=function(J,y){y&&(this.J=y);if(this.C&&(y=this.T.get(this.C))&&y.startTimeSecs<=J&&J<=y.startTimeSecs+y.WF)return;this.C="";y=g.D(this.T.entries());for(var v=y.next();!v.done;v=y.next()){var d=g.D(v.value);v=d.next().value;d=d.next().value;var P=void 0,A=void 0,T=void 0;if(((P=d)==null?void 0:P.startTimeSecs)<=J&&J<=((A=d)==null?void 0:A.startTimeSecs)+((T=d)==null?void 0:T.WF)){this.C=v;break}}};g.x(Kg,g.u);Kg.prototype.S5=function(J,y,v){v=v===void 0?{}:v;this.policy.Lp=Qp(J,v,this.W,y===void 0?!1:y)};Zl.prototype.UW=function(J){var y=this;if(this.policy.Qh){var v=new Set(J);v.size===this.If.size&&[].concat(g.r(v)).every(function(d){return y.If.has(d)})||(this.loader.dj("lwnmow",{itagDenylist:[].concat(g.r(J)).join(",")}),this.loader.uc(!!v.size),this.K=-1,this.If=v,wB(this,this.C),this.Ek=!0)}}; Zl.prototype.S5=function(J,y,v){v=v===void 0?{}:v;var d=this.policy.Lp;this.V.S5(J,y===void 0?!1:y,v);if(d!==this.policy.Lp){wB(this,this.C);J0(this);var P,A;d>this.policy.Lp&&((P=this.J)==null?0:$6(P.info))&&((A=this.nextVideo)==null||!$6(A.info))&&(this.zK=!0)}};P8.prototype.kf=function(J){this.timestampOffset=J;this.flush()}; P8.prototype.flush=function(){if(this.C.pos>0){var J={a:this.track.yQ(),u:this.C.a5(),pd:Math.round(this.W),ad:Math.round(this.J)},y=this.T;if(y){var v=y.C.info;J.itag=v.itag;v.C&&(J.xtags=v.C);J.sq=y.py;J.st=y.startTime;J.sd=y.duration;this.track.policy.C3&&(J.si=y.A_());y.V&&(J.esl=y.T+y.J);y.N$()&&(J.eos=1)}isNaN(this.timestampOffset)||(J.to=this.timestampOffset);var d;if(y=(d=this.track.EN)==null?void 0:d.P$({})){for(var P in y)this.L[P]!==y[P]&&(J["sb_"+P]=y[P]);this.L=y}this.track.dj("sbu", J);this.C.reset();this.buffered=[];this.V=this.J=this.W=0;this.timestampOffset=this.T=void 0}};Tj.prototype.dispose=function(){this.Cy=!0}; Tj.prototype.tY=function(){return this.Cy}; g.x(Su,Error);t0.prototype.skip=function(J){this.offset+=J}; t0.prototype.MP=function(){return this.offset};g.a=eqv.prototype;g.a.xT=function(){return this.T}; g.a.Mr=function(){return this.T.length?this.T[this.T.length-1]:null}; g.a.xH=function(){this.T=[];gM(this);x2(this)}; g.a.Gy=function(J){this.Vk=this.T.shift().info;J.info.equals(this.Vk)}; g.a.zW=function(){return g.x7(this.T,function(J){return J.info})}; g.a.yQ=function(){return!!this.V.info.audio}; g.a.isDrm=function(){return!!this.V.info.E8}; g.a.getDuration=function(){return this.V.index.Oe()};g.x(Hy,TV);g.a=Hy.prototype;g.a.onStateChange=function(){this.tY()&&(rB(this.Kj,this.formatId),this.C.dispose())}; g.a.Ke=function(){var J=S7H(this.Kj,this.formatId),y;var v=((y=this.Kj.Ms.get(this.formatId))==null?void 0:y.bytesReceived)||0;var d;y=((d=this.Kj.Ms.get(this.formatId))==null?void 0:d.oV)||0;return{expected:J,received:v,bytesShifted:y,sliceLength:$B(this.Kj,this.formatId),isAnyMediaEndReceived:this.Kj.Ff(this.formatId)}}; g.a.wk=function(){return 0}; g.a.CU=function(){return!0}; g.a.dR=function(){return this.Kj.dR(this.formatId)}; g.a.wQ=function(){return[]}; g.a.DC=function(){return this.Kj.DC(this.formatId)}; g.a.R5=function(){return this.lastError}; g.a.Nj=function(){return 0};g.x(bi,g.u);g.a=bi.prototype;g.a.yQ=function(){return!!this.C.info.audio}; g.a.Mr=function(){return this.W.Mr()}; g.a.Gy=function(J){this.W.Gy(J);var y;(y=this.B)!=null&&(y.V.add(J.info.py),y.C=wR3(y,y.Cf,y.Y$,J,y.C),y.J=J,y.L=(0,g.GC)());this.FW=Math.max(this.FW,J.info.C.info.FW||0)}; g.a.getDuration=function(){return this.C.index.Oe()}; g.a.xH=function(){Nq(this);this.W.xH()}; g.a.d4=function(){return this.W}; g.a.isRequestPending=function(J){return this.J.length?J===this.J[this.J.length-1].info.Uk[0].py:!1}; g.a.kf=function(J){var y;(y=this.B)==null||y.kf(J);var v;(v=this.K)==null||v.kf(J)}; g.a.dj=function(J,y){this.loader.dj(J,y)}; g.a.hB=function(){return this.loader.hB()}; g.a.dispose=function(){var J;(J=this.K)==null||J.flush();g.u.prototype.dispose.call(this)};g.x(KQ,g.u);KQ.prototype.J=function(){this.T++>15||(this.C=!this.C,new Wl3(this.loader,this.policy,this.sS,this.q4,this.C),this.delay.start())}; g.a=Wl3.prototype;g.a.HU=function(){}; g.a.yx=function(){}; g.a.IB=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Vq()===this.size)this.loader.dj("rqs",this.getInfo());else{var J="net.connect";this.xhr.status>200?J="net.badstatus":this.xhr.eA()&&(J="net.closed");this.onError(J)}}; g.a.onError=function(J){var y=this;this.loader.handleError(J,this.getInfo());C8("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(v){y.loader.dj("pathprobe",v)},function(v){y.loader.handleError(v.errorCode,v.details)})}; g.a.getInfo=function(){var J=this.timing.SS();J.shost=HW(this.location.YH);J.pb=this.size;return J};g.x(zj,g.u); zj.prototype.G=function(J,y){if(J.G){this.mR.isLive?(J=this.mR.oz&&this.mR.W?J.C.JW(this.mR.oz,!1):J.C.Ry(Infinity),J.y_=this.y_):J=J.C.JW(0,!1);if(this.zK){var v=this.zK;J.y_===0&&(J.V=v.B)}else J.V=this.K;return J}v=J.T;if(!v.C.kR())return v.C.Gk()?(J=p8(this.V,J.C.info.FW,y.C.info.FW,0),J=v.C.Pe(v,J)):J=v.C.KM(v),J;var d=v.L-this.loader.getCurrentTime(),P=!v.range||v.J===0&&v.T===0?0:v.range.length-(v.T+v.J),A=v.C;this.aQ(J,d)&&P===0&&(this.mR.isManifestless?A=J.C:(A=v.startTime+Fxv,v.J&&(A+=v.duration), zd(J,A),v=J.T,A=v.C));A.Gk()?(P=this.J,y=p8(this.V,A.info.FW,y.C.info.FW,d,P.W.length>0&&P.B===0&&this.loader.nu),d=fQ(J),J=v.C.Pe(v,y),(y=J.J)&&J.Uk.length>1&&(d||J.q4.J||J.Uk[0].C!==v.C?J=v.C.Pe(v,J.Uk[0].J):(d=J.Uk[J.Uk.length-1],A=d.J/y,!d.V&&A<.4&&(J=v.C.Pe(v,y-d.J))))):(v.py<0&&(y=JA(v),y.pr=""+J.J.length,this.loader.isSeeking()&&(y.sk="1"),y.snss=v.G,this.loader.dj("nosq",y)),J=A.KM(v));if(this.policy.wj)for(v=g.D(J.Uk),y=v.next();!y.done;y=v.next())y.value.type=6;return J}; zj.prototype.aQ=function(J,y){if(!fQ(J)||!J.C.kR())return!1;var v=this.J.Ek||yD3(J)||y<=this.policy.bG||this.J.zK;this.logger.debug(function(){return"ready to adapt: "+v+", upgrade pending: "+yD3(J)+", health: "+y}); return v}; zj.prototype.JY=function(){g.u.prototype.JY.call(this)}; var Fxv=2/24;g.x(dL,g.u);dL.prototype.Yp=function(J,y,v){var d;var P=((d=this.T)==null?void 0:d.reason)==="m"?"m":this.T&&qCr(this,this.T)?this.T.reason:"a";this.loader.Yp(new RN(J,P,v));y8(this.loader,y,J,!0)}; dL.prototype.LV=function(J,y){for(var v=g.D(this.wj),d=v.next();!d.done;d=v.next())if(d.value.id===J)return this.V=this.mR.C[J],Dl(this.K0)&&(this.zK=!0),J=new RN(this.V,y?"t":"m"),y&&(this.G=!0),J;this.J=[];return null}; dL.prototype.S5=function(J,y,v){v=v===void 0?{}:v;this.C.S5(J,y===void 0?!1:y,v)};Aj.prototype.setData=function(J,y,v){var d=this;v=v===void 0?{}:v;if(y==null?0:y.yl)this.Kv=gsT(this,y,v),J.In=this.q4.In();if(this.Kb())return!0;this.data=J;this.C=UeH(J,function(P,A){var T;(T=d.oG)==null||T.eb(P,A)},y==null?void 0:y.J); if(!this.C)return!1;this.T=g.RX(this.C,g8x);return!0}; Aj.prototype.Kb=function(){return this.requestType===1}; Aj.prototype.e2=function(){var J;return((J=this.oG)==null?void 0:J.e2())||0}; Aj.prototype.isDecorated=function(){var J;return!((J=this.data)==null||!J.Fv)};N46.prototype.zk=function(J,y){y=y===void 0?1:y;this.b0+=y;this.T+=J;J/=y;for(var v=0;v0)d+="."+Th[P].toFixed(0)+"_"+v.C[P].toFixed(0);else break;v=d}v&&(J[y]=v)}this.C=new RGx;return J}; g.a.toString=function(){return""};g.a=Zo6.prototype;g.a.isActive=function(){return!1}; g.a.zq=function(){}; g.a.ib=function(){}; g.a.Vt=function(){}; g.a.Jl=function(J,y){y()}; g.a.ow=function(){return{}}; g.a.toString=function(){return""};var MBn=new Zo6,n70=!!+RG("html5_enable_profiler"),sey=!!+RG("html5_onesie_enable_profiler"),OR=n70||sey?new zGP:MBn,pKr=n70?OR:MBn,nP=sey?OR:MBn;lT.prototype.encrypt=function(J){this.C.exports.AES128CTRCipher_encrypt(this.cipher,J.byteOffset,J.byteLength);return J}; lT.prototype.tY=function(){return this.cipher===0}; lT.prototype.dispose=function(){this.C.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};PBT.prototype.emscripten_notify_memory_growth=function(){};g.a=M$.prototype;g.a.malloc=function(J){return this.exports.malloc(J)}; g.a.free=function(J){this.exports.free(J)}; g.a.realloc=function(J,y){return this.exports.realloc(J,y)}; g.a.jU=function(J){if(J.buffer!==this.exports.memory.buffer){var y=this.malloc(J.byteLength);y=new Uint8Array(this.exports.memory.buffer,y,J.byteLength);y.set(J);return y}}; g.a.ZH=function(J){if(J.buffer===this.exports.memory.buffer){var y=J.slice();this.free(J.byteOffset);return y}}; var wl3=new function(){this.J=this.W="WebAssembly"in window},l_P="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); nP.zq(M$,{jU:function(J){return{profile:"copyj2w",b0:J===void 0?0:Math.ceil(J.byteLength/16)}}, ZH:function(J){return{profile:"copyw2j",b0:J===void 0?0:Math.ceil(J.byteLength/16)}}});s4.prototype.encrypt=function(J,y){return bY(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:y},this.key,J).catch(function(v){return Promise.reject(v.name+": "+v.message)}).then(function(v){return new Uint8Array(v)}))}; s4.prototype.tY=function(){return this.C}; s4.prototype.dispose=function(){this.C=!0}; Yb.prototype.encrypt=function(J,y){return bY(this.T(J,y))}; Yb.prototype.T=function(J,y){PA(this.J,y);return this.J.encrypt(J)}; Yb.prototype.tY=function(){return this.C}; Yb.prototype.dispose=function(){this.C=!0}; Sw.prototype.encrypt=function(J,y){return bY(this.T(J,y))}; Sw.prototype.T=function(J,y){y=this.J.jU(y);var v=this.C;v.C.exports.AES128CTRCipher_setCounter(v.cipher,y.byteOffset);this.J.free(y.byteOffset);y=this.J.jU(J);this.C.encrypt(y!=null?y:J);return y?this.J.ZH(y):J}; Sw.prototype.tY=function(){return this.C.tY()}; Sw.prototype.dispose=function(){this.C.dispose()}; nP.zq(s4,{encrypt:nor("oan2")});nP.zq(Yb,{encrypt:nor("oap")});nP.zq(Sw,{encrypt:nor("oalw")});V8.prototype.encrypt=function(J,y){var v=this,d=F1("");J.length<=this.iV&&this.C&&!this.V&&(d=BR(d,function(){return v.C?v.C.encrypt(J,y):F1("wasm unavailable")})); J.length<=this.s9&&(this.C&&this.V&&(d=BR(d,function(){return v.C?v.C.encrypt(J,y):F1("wasm unavailable")})),d=BR(d,function(){return SrT(v,J,y)})); return BR(BR(d,function(){return Vcv(v,J,y)}),function(){return SrT(v,J,y)})}; V8.prototype.T=function(J,y){if(this.C)return this.C.T(J,y);this.J||(this.J=new Yb(this.key));return this.J.T(J,y)}; V8.prototype.tY=function(){return this.L}; V8.prototype.dispose=function(){this.L=!0;var J;(J=this.W)==null||mB(J,g.dJ);g.dJ(this.C);g.dJ(this.J)};LP.prototype.encrypt=function(J){(0,g.GC)();return(new g.np(this.C.C)).encrypt(J,this.iv)}; LP.prototype.decrypt=function(J,y){(0,g.GC)();return(new g.np(this.C.C)).decrypt(J,y)}; LP.prototype.tY=function(){return this.J}; LP.prototype.dispose=function(){this.J=!0;g.dJ(this.T)};g.x(tj,g.u);tj.prototype.J=function(J,y){if(y){y=y instanceof g.ik?y:W_(this,y);var v;((v=this.C.get(J))==null?void 0:HW(v.location))!==HW(y)&&this.C.set(J,new cwP(y,J))}else this.C.delete(J)}; tj.prototype.load=function(){var J=this,y,v,d,P,A,T,M,n,Y,S;return g.f(function(V){switch(V.T){case 1:y=J.C.get(0);g.bR(V,2);var L;if(L=y&&!J.T)L=HW(y.location),L=J.T===Vl(L);if(L){V.Qk(4);break}return g.h(V,go6(J,J.T?2:0),5);case 5:if(v=V.C)J.J(0,v),N9(v)&&J.J(1,Rz(v));case 4:g.ex(V,3);break;case 2:d=g.BP(V);g.ev(d);if(!J.T){V.Qk(3);break}J.T=!1;return g.h(V,J.load(),7);case 7:return V.return();case 3:if(!J.iA.experiments.BX("html5_onesie_probe_ec_hosts")){V.Qk(0);break}g.bR(V,9);P=J;A=P.J;T=3;return g.h(V, go6(J,1),11);case 11:return A.call(P,T,V.C),M=J,n=M.J,Y=4,g.h(V,go6(J,2),12);case 12:n.call(M,Y,V.C);g.ex(V,0);break;case 9:S=g.BP(V),g.ev(S),g.G2(V)}})}; tj.prototype.G=function(){var J=this,y,v;return g.f(function(d){g.zA(J.B);y=g.Zo(J.iA.experiments,"html5_onesie_prewarm_max_lact_ms");if(OO()>=y)return d.return();(v=J.C.get(0))&&Ohr(J,v);g.G2(d)})}; var a_H={Rjb:0,ICW:1,F8b:2,Q$B:3,NrW:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Gx3.prototype.decrypt=function(J){var y=this,v,d,P,A,T,M;return g.f(function(n){switch(n.T){case 1:if(y.C.length&&!y.C[0].isEncrypted)return n.return();y.T=!0;y.Bc.I_("omd_s");v=new Uint8Array(16);lE()?d=new g.ME(J):P=new g.np(J);case 2:if(!y.C.length||!y.C[0].isEncrypted){n.Qk(4);break}A=y.C.shift();if(!d){T=P.decrypt(Tp(A.buffer),v);n.Qk(5);break}return g.h(n,d.decrypt(Tp(A.buffer),v),6);case 6:T=n.C;case 5:M=T;for(var Y=0;Y=4)){var y=X3(this),v=this.xhr;y.rc=v.status;J&&(y.ab=!0);if(v.ge()){var d="onesie.net";y.msg=v.ge()}else v.status>=400?d="onesie.net.badstatus":v.zj()?this.oE||(d="onesie.response.noplayerresponse"):d=v.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.fail(new g.Y6(d,y)):(this.I_("or_fs"),this.z4.RQ((0,g.GC)(),v.Vq(),0),this.Hq(4),this.Hc&&this.dj("rqs",y));this.Hc&&this.dj("ombre", "ok."+ +!d);this.PM=!1;H_(this);pT6(this.Bc);if(!this.Bv){this.qS.stop();var P;(P=this.Jp)==null||P.stop()}var A;if(J=(A=this.d5)==null?void 0:DBj(A))for(A=0;A1E3){var J;(J=this.z4)==null||J.HS((0,g.GC)());J=X3(this);if(this.iA.SH()&&this.xhr instanceof lJ){var y=this.xhr;J.xrs=y.xhr.readyState;J.xpb=y.C.totalLength;J.xdc=y.W}this.fail(new g.Y6("net.timeout",J))}}else(0,g.GC)()-this.z4.C>1E4&&((y=this.z4)==null||y.HS((0,g.GC)()),this.MD());this.isComplete()||this.Sm.start()}}; g.a.MD=function(){this.logger.info("Onesie request timed out");this.PM=!1;if(!H_(this)){var J=X3(this);J.timeout="1";this.fail(new g.Y6("onesie.request",J))}}; g.a.fail=function(J){var y=this;J=VS(J);this.WN?this.lA.gi(J):(this.KR.reject(J),this.WN=!0);pT6(this.Bc);this.Bv||this.qS.stop();this.I_("or_fe");var v,d;(v=this.d5)==null||(d=DBj(v))==null||d.forEach(function(P){y.dj("pathprobe",P)}); this.Hq(5);this.dispose()}; g.a.isComplete=function(){return this.state>=3}; g.a.Zw=function(){return this.state===4}; g.a.QD=function(J){var y,v;return this.isComplete()||!!((y=this.uh)==null?0:(v=y.get(J))==null?0:v.C)}; g.a.Ni=function(){return!1}; g.a.Rq=function(){return this.state===5}; g.a.notifySubscribers=function(J){for(var y=0;y102400&&!this.xk&&(this.I_("or100k"),this.xk=!0);if(J.rS()){var y=J.We(),v=y.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+v}); this.Hc&&this.dj("ombrss","len."+v);this.Ax.feed(y)}if(this.uh)for(var d=g.D(this.uh.keys()),P=d.next();!P.done;P=d.next()){var A=P.value;J=void 0;(J=this.uh.get(A))==null||J.K1();this.notifySubscribers(A)}}catch(T){this.fail(T)}}; g.a.Hn=function(){return this.z4.requestNumber}; g.a.u3=function(J){return this.sJ.get(J)};g.x(yHr,g.u);g.a=yHr.prototype;g.a.fu=function(J,y){this.Cy=void 0;ts3(this);Lm3(this,J,y)}; g.a.zL=function(J){if(this.C.length===0)return!1;var y=this.C[0];return y instanceof N$?J===this.loader.getCurrentTime()*1E3:!(y instanceof hr&&uA3(y.info))&&Math.abs(y.OV()-J)<50}; g.a.LR=function(J){this.T=J;this.Cy=(0,g.GC)()+(J.backoffTimeMs||0)}; g.a.aT=function(J,y){if(J.action===void 0){var v=this.lA.Gb();v!==void 0&&this.loader.wT(v)}else if(J.action!==0||!this.Vk)if(J.action===0&&this.policy.o1&&(J.action=2),J.f6==="sabr.malformed_config"&&this.policy.sY>0&&this.GK++0&&(J.action=2),v={},v.reason=J.f6,v.action=J.action,v.rn=y,J.action){case 1:this.policy.T&&this.B&&this.B.mD(void 0, void 0,v);break;case 0:this.Vk=!0;this.videoData.US()&&this.policy.T&&this.B&&this.B.mD(void 0,void 0,v,!1);this.loader.Jo(v);break;case 2:Qq3(J.f6)!=="sabr.config"&&delete v.reason;this.loader.handleError(Qq3(J.f6),v,1);break;case 3:this.policy.yl&&((J=this.mR.B)!=null&&(J.B=!0),this.loader.handleError("sabr.hostfallback",v))}}; g.a.Rl=function(J){J&&(this.loader.dj("sabrctxt",{onsbrctxt:J.type,scp:J.scope,dflt:J.sendByDefault}),J.type&&J.sendByDefault&&this.videoData.YB.add(J.type),J.scope!==2&&(J.type&&this.videoData.sabrContextUpdates.set(J.type,J),this.lA.Rl(J)))}; g.a.z3=function(){}; g.a.fR=function(J,y){if(J.X0!==void 0&&J.vp){var v=J.X0/J.vp;this.audioTrack.G=!1;this.videoTrack.G=!1;if(this.policy.Cy||this.policy.Ny||this.policy.jI)this.loader.UR.T=!1;var d=this.loader.x_(v,1);this.policy.Ky&&this.policy.T&&this.loader.R3(d,y);this.lA.getCurrentTime()!==v&&(y={jn:"sabr_seek",gT:!0,wl:!0},J.seekSource&&(y.seekSource=J.seekSource),QP(this.loader,v+.1,y))}}; g.a.onSnackbarMessage=function(J){this.lA.publish("onSnackbarMessage",J)}; g.a.LJ=function(J){J.rZ&&J.C1&&Ns(this.mR,J.rZ,J.C1);this.policy.Oc&&(J.VC&&J.MG&&(this.mR.cH=J.VC/J.MG),J.wu&&J.yC&&(this.mR.sx=J.wu/J.yC));iV(this.videoData)&&!this.videoData.zK&&J.C1&&this.loader.x_(J.C1,1E3);J.dB!=null&&this.lA.d2(J.dB);this.policy.yb&&J.o2&&(J=((0,g.GC)()-J.o2)/1E3,this.loader.YO.B_(1,J))}; g.a.h8=function(J){this.loader.h8(J)}; g.a.f1=function(J){return this.videoData.YB.has(J)}; g.a.C6=function(J,y,v){this.policy.J&&this.loader.dj("sabrctxtplc",{start:J?J.join("_"):"",stop:y?y.join("_"):"",discard:v?v.join("_"):""});if(J){J=g.D(J);for(var d=J.next();!d.done;d=J.next())this.videoData.YB.add(d.value)}if(y)for(y=g.D(y),J=y.next();!J.done;J=y.next())J=J.value,this.videoData.YB.has(J)&&this.videoData.YB.delete(J);if(v)for(v=g.D(v),y=v.next();!y.done;y=v.next())if(y=y.value,this.videoData.sabrContextUpdates.has(y)&&(this.videoData.sabrContextUpdates.delete(y),y===3&&(this.videoData.kt= "")),this.policy.K&&this.C.length)for(J=g.D(this.C),d=J.next();!d.done;d=J.next())if(d=d.value,!(d instanceof N$)){var P=void 0;((P=d.Hp)==null?void 0:P.type)===y&&(d.Hp=void 0)}}; g.a.Ju=function(){}; g.a.v6=function(J){this.G=J}; g.a.Yn=function(J){this.L=J}; g.a.dQ=function(J,y){R3(this.policy,J,4,y)}; g.a.wx=function(J){if(J==null?0:J.CB)if(J=J.CB.qz){J=g.D(J);for(var y=J.next();!y.done;y=J.next())if(y=y.value,y.formatId){var v=this.mR.J.get(HJ(y.formatId));v&&v.info&&(v.info.debugInfo=y.debugInfo)}}}; g.a.iz=function(J){this.lA.publish("reloadplayer",J)}; g.a.HR=function(){return this.lA.HR()||""}; g.a.e2=function(){var J=CQ(this.audioTrack,!0)*1E3,y=CQ(this.videoTrack,!0)*1E3;return Math.min(J,y)}; g.a.eb=function(J,y){this.loader.dj(J,y)}; g.a.PJ=function(J){whx(this.loader,yAv(this.XW,J))}; g.a.JY=function(){g.u.prototype.JY.call(this);this.T=void 0;Lm3(this,!0,"i");this.C=[]};bFH.prototype.T3=function(){this.isSeeking=!0;this.C===1&&cHH(this.W);this.C===0&&this.QQ.tI("transitiondetector");this.L=!1};$fc.prototype.j1=function(J,y){if(this.W)return ph3(this,y);if(y=Zg(J)){var v=y.C;v&&v.J&&v.C&&(J=J.J.length?J.J[0]:null)&&J.state>=2&&!J.Rq()&&J.info.y_===0&&(this.W=J,this.G=v,this.T=y.info,this.L=this.startTimeSecs=Date.now()/1E3,this.V=this.T.startTime)}return NaN}; $fc.prototype.clear=function(){this.T=this.G=this.W=null;this.C=this.V=this.L=this.startTimeSecs=NaN;this.J=!1};g.x(g.Ja,g.u);g.a=g.Ja.prototype;g.a.initialize=function(J,y,v){this.logger.debug(function(){return"Initialized, t="+J}); J=J||0;this.policy.C||(y=dsH(this.C),vtd(this.lA,new RN(y.video,y.reason)),this.lA.Nq(new RN(y.audio,y.reason)));this.policy.C&&Qf(this);this.mR.isManifestless&&jKv(this.V);this.G&&CVP(this.G,this.videoTrack.C);y=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.mR.isManifestless;this.policy.Ro&&(d=d||this.mR.L0);this.policy.If||(this.currentTime=d?J:y);this.policy.Cy&&this.seek(this.getCurrentTime(),{}).TY(function(){}); if(this.policy.C){var P;((P=this.K)==null?0:JHr(P,this.HR()||""))&&HFP(this)&&uVr(this,this.videoTrack)&&uVr(this,this.audioTrack)&&(WmT(this.T,this.K),this.policy.V&&iFx(this))}else this.AY&&(XhT(this,this.videoTrack),XhT(this,this.audioTrack),Y7j(this.AY),delete this.AY);v?(RRr(this,!1),g.zA(this.NI)):(v=this.getCurrentTime()===0,ZX(this.V,this.videoTrack,this.videoTrack.C,v),ZX(this.V,this.audioTrack,this.audioTrack.C,v),this.policy.C&&PVU(this.T,!0),this.policy.Cy||this.seek(this.getCurrentTime(), {}).TY(function(){}),this.timing.tick("gv")); (this.mR.oz||this.mR.W_||this.mR.wj||this.mR.yl||this.mR.L8)&&this.lA.HM(this.mR)}; g.a.resume=function(){if(this.isSuspended||this.nu){this.logger.debug("Resumed.");this.fK=this.nu=this.isSuspended=!1;try{this.j1()}catch(J){g.jv(J)}}}; g.a.nU=function(){return!this.policy.AI}; g.a.EC=function(J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;this.logger.debug("detaching media source");E92(this);this.lA.q$()&&(this.L=NaN);J?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.cX&&this.dj("loader",{setsmb:1}),this.policy.wj=!0,this.xH()):(RRr(this,!1),y||this.xH())}; g.a.setAudioTrack=function(J,y,v){v=v===void 0?!1:v;if(!this.tY()){var d=!isNaN(y);v&&d&&(this.audioTrack.Cy=Date.now(),this.policy.QE&&(this.rj=!0));if(this.policy.C){var P=this.W.LV(J.id,d);this.logger.debug(function(){return"Logging new audio format: "+P.C.info.id}); this.lA.Nq(P)}else{var A=JAU(this.C,J.id,d);this.logger.debug(function(){return"Logging new audio format: "+A.audio.info.id}); this.lA.Nq(new RN(A.audio,A.reason))}d?(this.policy.H5&&(this.yl=Date.now()),v=this.audioTrack.C.index.Q_(y),this.dj("setAudio",{id:J.id,cmt:y,sq:v}),v>=0&&(J=this.policy.pQ?v+1:v,this.policy.C&&this.fu(!0,"mosaic"),h0(this.audioTrack,J,NaN,NaN),!this.policy.iN&&this.mR.isLive&&Xl(this.mR,J,!1))):this.lA.wU()}}; g.a.setPlaybackRate=function(J){J!==this.B.getPlaybackRate()&&this.B.setPlaybackRate(J)}; g.a.RJ=function(J){var y=this.T.G;this.T.v6(J);this.dj("scfidc",{curr:HJ(y),"new":HJ(J)});J&&HJ(J)!==HJ(y)&&(this.fu(!0,"caption change"),this.j1())}; g.a.Z$=function(J){this.T.Yn(J)}; g.a.Yp=function(J){var y=J.C.info.yQ();this.logger.debug(function(){return"New "+(y?"audio":"video")+" format from SABR: "+Hz(J.C.info)}); y?this.lA.Nq(J):vtd(this.lA,J)}; g.a.PJ=function(J){QU(J.Uk[J.Uk.length-1])&&whx(this,yAv(this.C,J.Uk[0].C))}; g.a.FK=function(){return this.lA.FK()}; g.a.sF=function(){return this.lA.sF()}; g.a.h8=function(J){this.lA.Y().SH()&&this.dj("sps",{status:J.Fd||""});if(J.Fd===1)this.lA.videoData.bG=0;else if(J.Fd===2||J.Fd===3){var y=!1;if(J.Fd===3){y=this.lA.BQ();var v;this.h_=(v=J.FSB)!=null?v:Infinity;this.lA.videoData.bG=y+1;(y=FlR(this))&&this.pU(!0)}this.lA.Lq(!0,y)}}; g.a.e$=function(){return this.lA.e$()}; g.a.uv=function(){return this.lA.uv()}; g.a.MN=function(J){this.lA.MN(J)}; g.a.V1b=function(){var J,y=(J=this.lA.Pq())==null?void 0:J.getCurrentTime();y?this.lA.dj("rms",{cta:y}):g.zA(this.ES)}; g.a.j1=function(){ZF3(this);if(this.hY&&TK(this.hY)&&!this.hY.Bn()&&(!this.policy.If||isFinite(this.getCurrentTime()))){var J=ju(this.videoTrack);J=this.policy.DH&&J&&J.N$();this.mR.isManifestless&&this.mR.W&&fL(this.mR)?(this.L=fL(this.mR),this.hY.i8(this.L)):RU(this.mR)&&!J?isNaN(this.L)?(this.L=this.getCurrentTime()+3600,this.hY.i8(this.L)):this.L<=this.getCurrentTime()+1800&&(this.L=Math.max(this.L+1800,this.getCurrentTime()+3600),this.hY.i8(this.L)):this.hY.isView||(J=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.L)||this.L!==J)&&J>0&&(this.hY.i8(J),this.L=J))}if(!this.tY())if(UG(this.mR)&&this.mR.Rq()){var y=this.mR;this.handleError("manifest.net.retryexhausted",y.XW?{rc:y.Mw}:{rc:y.Mw.toString()},1)}else if(this.policy.C)a:{try{YP3(this.T);this.mR.isManifestless&&this.policy.V&&kq(this.UR);var v;((v=this.hY)==null?0:ne(v))&&this.qC();PVU(this.T)}catch(T){g.ev(T);y=T;if(y.message.includes("changeType")){this.dj("ctype",{exp:y.name,msg:y.message,s:y.stack});break a}this.handleError("fmt.unplayable", {exp:y.name,msg:y.message,s:y.stack},1)}gtH(this);g.zA(this.XW)}else if(!this.mR.T||!Pnv(this.videoTrack)&&!Pnv(this.audioTrack)||(this.videoTrack.V||this.audioTrack.V)&&this.policy.aG?v=!1:(this.xH(),this.lA.seekTo(Infinity,{jn:"checkLoaderTracksSync",x_:!0}),v=!0),!v){ZF3(this);this.mR.isManifestless&&(ADd(this.videoTrack),ADd(this.audioTrack),kq(this.UR),(v=Zg(this.videoTrack))&&v.C&&(v=v.C.J&&!this.policy.jh,this.dj(v===this.policy.G.k6?"strm":"strmbug",{strm:v,sfmp4:this.policy.G.k6,dfs:this.policy.jh}, !0)));if(this.hY)this.qC();else if(this.policy.W){var d;v=!1;if(this.policy.xt){var P;J=g.D([this.videoTrack,this.audioTrack]);for(P=J.next();!P.done;P=J.next()){var A=P.value;for(P=Zg(A);P&&A.Mr()!==ju(A);P=Zg(A))A.Gy(P);v=v||!!P}}else(y=Zg(this.videoTrack))&&this.videoTrack.Gy(y),(d=Zg(this.audioTrack))&&this.audioTrack.Gy(d);rM(this.videoTrack)&&rM(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(y||d||v)&&E4(this)}NC3(this);ZX(this.V,this.videoTrack,this.videoTrack.C, !1);ZX(this.V,this.audioTrack,this.audioTrack.C,!1);this.policy.sZ||yQv(this,this.videoTrack,this.audioTrack);Ood(this.V,this.videoTrack,this.audioTrack);Ood(this.V,this.audioTrack,this.videoTrack);gtH(this);this.G&&(y=this.G,y.W?(d=y.L+y.policy.s4,y.J||(d=Math.min(d,y.startTimeSecs+y.policy.Qw)),y=Math.max(0,d*1E3-Date.now())):y=NaN,isNaN(y)||g.zA(this.xj,y));g.zA(this.XW)}}; g.a.Jo=function(J){this.lA.Jo(J)}; g.a.qC=function(){var J=this;if(this.hY){var y=this.hY.C,v=this.hY.T;mrH(this,this.audioTrack);mrH(this,this.videoTrack);var d=Pfm(this);if(d){if(this.policy.JH){if(!y.xL()){var P=Zg(this.audioTrack);if(P){if(!wL(this,this.audioTrack,y,P.info))return;lFH(this,this.audioTrack,y,P)}}if(!v.xL()&&(P=Zg(this.videoTrack))){if(!wL(this,this.videoTrack,v,P.info))return;lFH(this,this.videoTrack,v,P)}}this.Cy||(this.Cy=(0,g.GC)(),this.logger.debug(function(){return"Appends pause start "+J.Cy+" reason "+d}), this.policy.J&&this.dj("apdps",{r:d}))}else if(this.Cy&&(dr3(this,this.Cy),this.Cy=0),AQc(this),P=!1,SHj(this,this.videoTrack,v)&&(P=!0,juT(this.timing),q72(this.timing)),this.hY&&!this.hY.KA()&&(SHj(this,this.audioTrack,y)&&(P=!0,e2R(this.timing),rkH(this.timing)),!this.tY()&&this.hY))!this.policy.AI&&rM(this.videoTrack)&&rM(this.audioTrack)&&TK(this.hY)&&!this.hY.Bn()&&(v=!1,v=ju(this.audioTrack).C,v=v===this.mR.C[v.info.id])&&(this.logger.debug("Setting EOS"),pC2(this.hY),Mo3(this.schedule)),P&& !this.hY.isAsync()&&E4(this)}}; g.a.JN=function(J){var y,v=J===((y=this.hY)==null?void 0:y.C)?this.audioTrack:this.videoTrack,d;if((d=Zg(v))==null?0:d.isLocked){if(this.lA.Y().SH()){var P;this.dj("eosl",{ounlock:(P=Zg(v))==null?void 0:P.info.A_()})}var A;xr3(this,J===((A=this.hY)==null?void 0:A.C))}var T;if(this.policy.QE&&J===((T=this.hY)==null?void 0:T.C)&&this.Ky){y=this.Ky-this.getCurrentTime();var M;this.lA.dj("asl",{l:y,xtag:(M=ju(this.audioTrack))==null?void 0:M.C.info.C});this.rj=!1;this.Ky=0}J.Ol()&&J.Fo().length===0&& (J.IV(),this.hY&&!this.hY.Ol()&&(this.lA.Y().SH()&&this.lA.dj("rms",{ld:"seek"}),this.hY.L=performance.now(),this.lA.xw(),this.lA.Y().SH()&&g.zA(this.ES)));var n;(n=v.K)!=null&&A0(n,0);this.policy.H$?Jj(this):this.j1()}; g.a.byX=function(J){if(this.hY){var y=ju(J===this.hY.C?this.audioTrack:this.videoTrack);if(J=J.ov())for(var v=0;v 5&&J.zK.shift();y=y.py;var M;if((M=this.lA.getVideoData())==null?0:M.enableServerStitchedDai)M=sKc(this.audioTrack,y),v=sKc(this.videoTrack,y),M!==0&&v!==0&&M!==v&&this.handleError("ssdai.avsync",{sq:y,a:M,v:v},0)}}; g.a.Qo=function(J,y,v,d){J.info.video&&this.J.Qo(y,v,d)}; g.a.UW=function(J){this.C.UW(J)}; g.a.Rs=PP(12);g.a.oF=function(){if(g.k(this.lA.getPlayerState(),8)){var J,y,v=(y=(J=this.lA.Pq())==null?void 0:J.getCurrentTime())!=null?y:this.lA.getCurrentTime(),d;(d=this.aG)==null||j9d(d,v)}var P;(P=this.f8)==null||g.zA(P)}; g.a.Ae=function(){return this.videoTrack.G||this.audioTrack.G}; g.a.seek=function(J,y){if(this.tY())return qa();if(this.Ae())return qa("seeking to head");if(this.policy.Cy&&!isFinite(J))return lpm(this.UR),g.BQ(Infinity);ZF3(this);Qf(this);this.policy.C||NC3(this,J);this.hY&&this.hY.C&&this.hY.T&&!this.lA.getVideoData().f3&&(this.hY.C.isLocked()||this.hY.T.isLocked())&&this.lA.wU({reattachOnLockedBuffer:1,vsb:""+this.hY.T.isLocked(),asb:""+this.hY.C.isLocked()});var v=this.getCurrentTime(),d=this.UR.seek(J,y);this.policy.If||(this.currentTime=d);XE(this.J,J,v, this.policy.Er&&!y.gT);E4(this);return g.BQ(d)}; g.a.zL=function(J){return this.policy.C&&this.T.zL(J)}; g.a.f1=function(J){return this.T.f1(J)}; g.a.fu=function(J,y){this.T.fu(J,y)}; g.a.getCurrentTime=function(){if(this.policy.If){var J=this.Vl()||0;return this.lA.getCurrentTime(!0)-J}return this.currentTime}; g.a.Ps=function(){return this.audioTrack.C.info}; g.a.FV=function(){return this.videoTrack.C.info}; g.a.Gc=function(){return this.audioTrack.C.info.PX}; g.a.NR=function(){return this.videoTrack.C.info.PX}; g.a.JY=function(){try{this.EC(),Nq(this.audioTrack),Nq(this.videoTrack),ii(this.audioTrack),ii(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.u.prototype.JY.call(this)}catch(J){g.jv(J)}}; g.a.handleError=function(J,y,v){v=v===void 0?0:v;var d=SA(v);J==="fmt.unplayable"&&this.mR.isLive&&(this.policy.JH=!1,Hi(this.mR));y=new g.Y6(J,y,v);g.lw(this);sy(y.details);this.lA.handleError(y);J!=="html5.invalidstate"&&y.errorCode!=="fmt.unplayable"&&J!=="fmt.unparseable"&&d&&this.dispose()}; g.a.P$=function(){var J=ju(this.audioTrack),y=ju(this.videoTrack);J={lct:this.getCurrentTime().toFixed(3),lsk:this.UR.isSeeking(),lmf:this.C.C.isLocked(),lbw:$O(this.schedule).toFixed(3),lhd:qe(this.schedule).toFixed(3),lst:((this.schedule.G.Po()||0)*1E9).toFixed(3),laa:J?J.A_():"",lva:y?y.A_():"",lar:this.audioTrack.T?this.audioTrack.T.A_():"",lvr:this.videoTrack.T?this.videoTrack.T.A_():"",laq:""+$2(this.audioTrack),lvq:""+$2(this.videoTrack)};this.hY&&!this.hY.KA()&&this.hY.C&&this.hY.T&&(J.lab= Rc(this.hY.C.Fo()),J.lvb=Rc(this.hY.T.Fo()));this.Cy&&(J.lapt=((0,g.GC)()-this.Cy).toFixed(0),J.lapr=Pfm(this));this.WX&&(J.lapmabht=((0,g.GC)()-this.WX).toFixed(0),J.lapmabh=K8(this,this.audioTrack).toFixed(0));this.Vk&&(J.lapmvbht=((0,g.GC)()-this.Vk).toFixed(0),J.lapmvbh=K8(this,this.videoTrack).toFixed(0));this.Ek&&(J.lapsdai=((0,g.GC)()-this.Ek).toFixed(0));return J}; g.a.xH=function(){try{this.policy.C&&this.T.fu(!1,"pending"),this.audioTrack.xH(),this.videoTrack.xH()}catch(J){g.jv(J)}this.policy.W=""}; g.a.Bs=function(){return Iv(this.B)}; g.a.dj=function(J,y,v){this.lA.dj(J,y,v===void 0?!1:v)}; g.a.HR=function(){return this.lA.HR()}; g.a.x_=function(J,y){J/=y;isNaN(this.timestampOffset)&&Bxx(this,J-Math.min(J,this.policy.tC));return(J-this.timestampOffset)*y}; g.a.Vl=function(){return this.timestampOffset}; g.a.isSeeking=function(){return this.UR.isSeeking()}; g.a.Rn=function(){this.J.Rn()}; g.a.S5=function(J,y,v){y=y===void 0?!1:y;v=v===void 0?{}:v;this.policy.C?this.W.S5(J,y,v):this.C.S5(J,y,v)}; g.a.zS=function(J,y){if(this.zK&&this.J.zS(J,this.zK)){if(this.policy.Ky&&this.policy.T){var v=this.videoTrack.C.index.Q_(J),d;(d=this.If)==null||d.rd(J,v)}Bxx(this,this.timestampOffset-y);E4(this);this.policy.T&&(Hi(this.mR),ii(this.audioTrack),ii(this.videoTrack),this.xH());return!0}y=this.videoTrack.C.index.Q_(J);this.handleError("ad.skipfailed",{dec:!!this.zK,t:J.toFixed(3),sq:y});return!1}; g.a.getManifest=function(){return this.mR}; g.a.isOffline=function(){return!!this.lA.getVideoData().cotn}; g.a.Xb=function(J,y){this.lA.Xb(J,y)}; g.a.Lu=function(J){if(this.policy.C)this.T.fu(!0,"utc"),this.j1();else{var y=this.lA.getVideoData().VH;if(y){var v=this.V;v.x3=J;v.VH=y;v_(this)}}}; g.a.wT=function(J){this.videoTrack.G=!1;this.audioTrack.G=!1;this.UR.T=!1;this.lA.wT(J)}; g.a.lx=function(J){this.UR.lx(J-this.Vl())}; g.a.R1=function(){this.lA.R1()}; g.a.pU=function(J){J!==this.policy.Xg&&((this.policy.Xg=J)||this.j1())}; g.a.tE=function(J,y){var v=this.audioTrack.EN,d=this.videoTrack.EN;v&&d&&(v.remove(J,y),d.remove(J,y))}; g.a.wU=function(J){this.lA.wU(J)}; g.a.uc=function(J){this.lA.uc(J)}; g.a.Op=function(J,y,v){var d;(d=this.If)==null||d.Op(J,y,v)}; g.a.R3=function(J,y){var v;(v=this.If)==null||v.R3(J,y)}; g.a.Qu=function(J){var y;return(y=this.If)==null?void 0:y.Qu(void 0,J)}; g.a.BQ=function(){return this.lA.BQ()}; g.a.aJ=function(){Hi(this.mR);this.xH()};g.a=g.vM.prototype;g.a.ZQ=function(J,y,v,d,P,A){return this.Rk.ZQ(J,y,v,d,P,A)}; g.a.jB=function(J,y,v,d,P,A){return this.Rk.jB(J,y,v,d,P,A)}; g.a.w4=function(J){return this.Rk.w4(J)}; g.a.EF=function(J){this.Rk.EF(J)}; g.a.mD=function(J,y,v,d){return this.Rk.mD(J,y,v,d)}; g.a.Rn=function(){this.Rk.Rn()}; g.a.rd=function(J,y){this.Rk.rd(J,y)}; g.a.rQ=function(){this.Rk.rQ()}; g.a.m7=PP(56);g.a.VI=function(J,y,v){this.Rk.VI(J,y,v)}; g.a.Io=PP(59);g.a.M0=function(J,y,v,d,P,A,T,M,n){this.Rk.M0(J,y,v,d,P,A,T,M,n)}; g.a.Cn=function(J){this.Rk.Cn(J)}; g.a.SX=function(J){return this.Rk.SX(J)}; g.a.Ao=function(J){return this.Rk.Ao(J)};g.x(dI,g.yK);g.x(PM,dI);PM.prototype.L=function(J,y){if(J&&y){var v=Number(cV(J,"cpi"))*1+1;isNaN(v)||v<=0||vthis.J&&(this.J=v,g.Vx(this.C)||(this.C={},this.W.stop(),this.T.stop())),this.C[y]=J,g.zA(this.T))}}; PM.prototype.V=function(){for(var J=g.D(Object.keys(this.C)),y=J.next();!y.done;y=J.next()){var v=y.value;y=this.publish;for(var d=this.J,P=g.nV(this.C[v]),A=[],T=g.D(P[6].split("&")),M=T.next();!M.done;M=T.next())M=M.value,M.indexOf("cpi=")===0?A.push("cpi="+d.toString()):M.indexOf("ek=")===0?A.push("ek="+g.mS(v)):A.push(M);P[6]="?"+A.join("&");v="skd://"+P.slice(2).join("");P=v.length*2;d=new Uint8Array(P+4);d[0]=P%256;d[1]=(P-d[0])/256;for(P=0;P0)for(var v=g.D(this.C),d=v.next();!d.done;d=v.next())if(y===d.value.info.cryptoPeriodIndex){y=!0;break a}y=!1}if(!y){y=(0,g.GC)();a:{v=J.cryptoPeriodIndex;if(!isNaN(v)){d=g.D(this.J.values());for(var P=d.next();!P.done;P=d.next())if(Math.abs(P.value.cryptoPeriodIndex-v)<=1){v=!0;break a}}v=!1}v?(v=J.C,v=Math.max(0,Math.random()*((isNaN(v)?120:v)-30))*1E3):v=0;this.publish("log_qoe",{wvagt:"delay."+v,cpi:J.cryptoPeriodIndex,reqlen:this.C.length}); v<=0?ot3(this,J):(this.C.push({time:y+v,info:J}),g.zA(this.T,v))}}; Aa.prototype.JY=function(){this.C=[];dI.prototype.JY.call(this)};var gW={},UrU=(gW.DRM_TRACK_TYPE_AUDIO="AUDIO",gW.DRM_TRACK_TYPE_SD="SD",gW.DRM_TRACK_TYPE_HD="HD",gW.DRM_TRACK_TYPE_UHD1="UHD1",gW);g.x(IFU,g.u);g.x(HQU,g.yK);g.a=HQU.prototype;g.a.mT=function(J){var y=this;if(!(this.tY()||J.size<=0)){var v={};J.forEach(function(d,P){var A=yJ(y.T)?P:d;P=new Uint8Array(yJ(y.T)?d:P);yJ(y.T)&&Aj3(P);d=g.eB(P,4);Aj3(P);P=g.eB(P,4);y.C[d]?y.C[d].status=A:y.C[P]?y.C[P].status=A:y.C[d]={type:"",status:A};d$T(y,y.C[d].type,v)}); yjH(this,",");Tc(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.a.error=function(J,y,v,d){this.tY()||(this.publish("licenseerror",J,y,v,d),J==="drm.provision"&&(J=(Date.now()-this.L)/1E3,this.L=NaN,this.publish("ctmp","provf",{et:J.toFixed(3)})));SA(y)&&this.dispose()}; g.a.shouldRetry=function(J,y){return!J&&this.requestNumber===y.requestNumber}; g.a.JY=function(){this.C={};g.yK.prototype.JY.call(this)}; g.a.P$=function(){var J={ctype:this.B.contentType||"",length:this.B.initData.length,requestedKeyIds:this.AY,cryptoPeriodIndex:this.cryptoPeriodIndex};this.J&&(J.keyStatuses=this.C);return J}; g.a.getInfo=function(){var J=this.W.join();if(lz(this)){var y=new Set,v;for(v in this.C)this.C[v].status!=="usable"&&y.add(this.C[v].type);J+="/UKS."+Array.from(y)}return J+="/"+this.cryptoPeriodIndex}; g.a.S1=function(){return this.url};g.x(ni,g.u);g.a=ni.prototype;g.a.gE=function(J){if(this.V){var y=J.messageType||"license-request";this.V(new Uint8Array(J.message),y)}}; g.a.mT=function(){this.G&&this.G(this.C.keyStatuses)}; g.a.onClosed=function(){this.tY()||g.fX("xboxone")&&this.J&&this.J("closedShouldNotRetry")}; g.a.Ay=function(J){this.V&&this.V(J.message,"license-request")}; g.a.gK=function(J){if(this.J){if(this.T){var y=this.T.error.code;J=this.T.error.systemCode}else y=J.errorCode,J=J.systemCode;this.J("t.prefixedKeyError;c."+y+";sc."+J,y,J)}}; g.a.Jy=function(){this.L&&this.L()}; g.a.update=function(J){var y=this;if(this.C)return this.C.update(J).then(null,U8(function(v){lbT(y,"t.update",v)})); this.T?this.T.update(J):this.element.addKey?this.element.addKey(this.B.keySystem,J,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.B.keySystem,J,this.initData,this.sessionId);return B0()}; g.a.JY=function(){this.C&&(this.K?this.C.close().catch(g.ev):this.C.close());this.element=null;g.u.prototype.JY.call(this)};g.x(sh,g.u);g.a=sh.prototype;g.a.setServerCertificate=function(){return this.T.setServerCertificate?this.C.flavor==="widevine"&&this.C.Qw?this.T.setServerCertificate(this.C.Qw):Pl(this.C)&&this.C.Vk?this.T.setServerCertificate(this.C.Vk):null:null}; g.a.createSession=function(J,y){var v=J.initData;if(this.C.keySystemAccess){y&&y("createsession");var d=this.T.createSession();d4(this.C)?v=sL2(v,this.C.Vk):Pl(this.C)&&(v=$r3(v)||new Uint8Array(0));y&&y("genreq");J=d.generateRequest(J.contentType,v);var P=new ni(null,null,null,d,null,this.G);J.then(function(){y&&y("genreqsuccess")},U8(function(T){lbT(P,"t.generateRequest",T)})); return P}if(JD(this.C))return S4d(this,v);if(vl(this.C))return Y4d(this,v);if((d=this.element)==null?0:d.generateKeyRequest)this.element.generateKeyRequest(this.C.keySystem,v);else{var A;(A=this.element)==null||A.webkitGenerateKeyRequest(this.C.keySystem,v)}return this.W=new ni(this.element,this.C,v,null,null,this.G)}; g.a.oK=function(J){var y=Vw3(this,J);y&&y.Ay(J)}; g.a.u4=function(J){var y=Vw3(this,J);y&&y.gK(J)}; g.a.AN=function(J){var y=Vw3(this,J);y&&y.Jy(J)}; g.a.getMetrics=function(){if(this.T&&this.T.getMetrics)try{var J=this.T.getMetrics()}catch(y){}return J}; g.a.JY=function(){this.J=this.T=null;var J;(J=this.W)==null||J.dispose();J=g.D(Object.values(this.L));for(var y=J.next();!y.done;y=J.next())y.value.dispose();this.L={};g.u.prototype.JY.call(this);delete this.element};g.a=YX.prototype;g.a.get=function(J){J=this.findIndex(J);return J!==-1?this.values[J]:null}; g.a.remove=function(J){J=this.findIndex(J);J!==-1&&(this.keys.splice(J,1),this.values.splice(J,1))}; g.a.removeAll=function(){this.keys=[];this.values=[]}; g.a.set=function(J,y){var v=this.findIndex(J);v!==-1?this.values[v]=y:(this.keys.push(J),this.values.push(y))}; g.a.findIndex=function(J){return g.Dy(this.keys,function(y){return g.zQ(J,y)})};g.x(WQv,g.yK);g.a=WQv.prototype;g.a.PAY=function(J){this.cO({onecpt:1});J.initData&&OPm(this,new Uint8Array(J.initData),J.initDataType)}; g.a.y9y=function(J){this.cO({onndky:1});OPm(this,J.initData,J.contentType)}; g.a.ZX=function(J){this.cO({onneedkeyinfo:1});this.iA.X("html5_eme_loader_sync")&&(this.G.get(J.initData)||this.G.set(J.initData,J));x$P(this,J)}; g.a.B8=function(J){this.J.push(J);Sr(this)}; g.a.createSession=function(J){var y=D$r(this)?cAx(J):g.eB(J.initData);this.T.get(y);this.wj=!0;J=new HQU(this.videoData,this.iA,J,this.drmSessionId);this.T.set(y,J);J.subscribe("ctmp",this.Us,this);J.subscribe("keystatuseschange",this.mT,this);J.subscribe("licenseerror",this.PS,this);J.subscribe("newlicense",this.aX,this);J.subscribe("newsession",this.dK,this);J.subscribe("sessionready",this.WC,this);J.subscribe("fairplay_next_need_key_info",this.il,this);this.iA.X("html5_enable_vp9_fairplay")&&J.subscribe("qualitychange", this.lF,this);J.subscribe("sabrlicenseconstraint",this.HfA,this);Kr2(J,this.W)}; g.a.aX=function(J){this.tY()||(this.cO({onnelcswhb:1}),J&&!this.heartbeatParams&&(this.heartbeatParams=J,this.publish("heartbeatparams",J)))}; g.a.dK=function(){this.tY()||(this.cO({newlcssn:1}),this.J.shift(),this.wj=!1,Sr(this))}; g.a.WC=function(){if(JD(this.C)&&(this.cO({onsnrdy:1}),this.WX--,this.WX===0)){var J=this.zK,y,v;(y=J.element)==null||(v=y.msSetMediaKeys)==null||v.call(y,J.J)}}; g.a.mT=function(J){if(!this.tY()){!this.cX&&this.videoData.X("html5_log_drm_metrics_on_key_statuses")&&(cjR(this),this.cX=!0);this.cO({onksch:1});var y=this.lF;if(!lz(J)&&g.XD&&J.T.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var v="large";else{v=[];var d=!0;if(lz(J))for(var P=g.D(Object.keys(J.C)),A=P.next();!A.done;A=P.next())A=A.value,J.C[A].status==="usable"&&v.push(J.C[A].type),J.C[A].status!=="unknown"&&(d=!1);if(!lz(J)||d)v=J.W;v=Jjm(v)}y.call(this,v);if(!lz(J))for(y= {},v=g.D(J.W),d=v.next();!d.done;d=v.next())d$T(J,d.value,y);this.videoData.authorizedFormats=J.authorizedFormats;this.publish("keystatuseschange",J)}}; g.a.Us=function(J,y){this.tY()||this.publish("ctmp",J,y)}; g.a.il=function(J,y){this.tY()||this.publish("fairplay_next_need_key_info",J,y)}; g.a.PS=function(J,y,v,d){this.tY()||(this.videoData.X("html5_log_drm_metrics_on_error")&&cjR(this),this.publish("licenseerror",J,y,v,d))}; g.a.Xf=function(){return this.B}; g.a.lF=function(J){var y=g.cW("auto",J,!1,"l");if(this.videoData.JB){if(this.B.equals(y))return}else if(sbr(this.B,J))return;this.B=y;this.publish("qualitychange");this.cO({updtlq:J})}; g.a.HfA=function(J){this.videoData.sabrLicenseConstraint=J}; g.a.JY=function(){this.C.keySystemAccess&&this.element&&(this.AY?this.element.setMediaKeys(null).catch(g.ev):this.element.setMediaKeys(null));this.element=null;this.J=[];for(var J=g.D(this.T.values()),y=J.next();!y.done;y=J.next())y=y.value,y.unsubscribe("ctmp",this.Us,this),y.unsubscribe("keystatuseschange",this.mT,this),y.unsubscribe("licenseerror",this.PS,this),y.unsubscribe("newlicense",this.aX,this),y.unsubscribe("newsession",this.dK,this),y.unsubscribe("sessionready",this.WC,this),y.unsubscribe("fairplay_next_need_key_info", this.il,this),this.iA.X("html5_enable_vp9_fairplay")&&y.unsubscribe("qualitychange",this.lF,this),y.dispose();this.T.clear();this.L.removeAll();this.G.removeAll();this.heartbeatParams=null;g.yK.prototype.JY.call(this)}; g.a.P$=function(){for(var J={systemInfo:this.C.P$(),sessions:[]},y=g.D(this.T.values()),v=y.next();!v.done;v=y.next())J.sessions.push(v.value.P$());return J}; g.a.getInfo=function(){return this.T.size<=0?"no session":""+this.T.values().next().value.getInfo()+(this.V?"/KR":"")}; g.a.cO=function(J,y){y=y===void 0?!1:y;this.tY()||(sy(J),(this.iA.SH()||y)&&this.publish("ctmp","drmlog",J))};g.x(ehj,g.u);g.a=ehj.prototype;g.a.HG=function(){return!!this.kN}; g.a.Jw=function(){return this.T}; g.a.handleError=function(J){var y=this;obR(this,J);if((J.errorCode!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&J.errorCode!=="fmt.unparseable"||!$$m(this,J.errorCode,J.details))&&!p_r(this,J)){if(this.qx.zK!=="yt"&&hh2(this,J)&&this.videoData.Dv&&(0,g.GC)()/1E3>this.videoData.Dv&&this.qx.zK==="hm"){var v=Object.assign({e:J.errorCode},J.details);v.stalesigexp="1";v.expire=this.videoData.Dv;v.init=this.videoData.wI/1E3;v.now=(0,g.GC)()/1E3;v.systelapsed=((0,g.GC)()-this.videoData.wI)/1E3; J=new g.Y6(J.errorCode,v,2);this.lA.q1(J.errorCode,2,"SIGNATURE_EXPIRED",sy(J.details))}if(SA(J.severity)){var d;v=(d=this.lA.loader)==null?void 0:d.C.C;if(this.qx.X("html5_use_network_error_code_enums"))if(CTU(J)&&v&&v.isLocked())var P="FORMAT_UNAVAILABLE";else if(this.qx.L||J.errorCode!=="auth"||J.details.rc!==429)J.errorCode==="ump.spsrejectfailure"&&(P="HTML5_SPS_UMP_STATUS_REJECTED");else{P="TOO_MANY_REQUESTS";var A="6"}else CTU(J)&&v&&v.isLocked()?P="FORMAT_UNAVAILABLE":this.qx.L||J.errorCode!== "auth"||J.details.rc!=="429"?J.errorCode==="ump.spsrejectfailure"&&(P="HTML5_SPS_UMP_STATUS_REJECTED"):(P="TOO_MANY_REQUESTS",A="6");this.lA.q1(J.errorCode,J.severity,P,sy(J.details),A)}else this.lA.publish("nonfatalerror",J),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.gi(J.errorCode,J.details),d&&J.errorCode==="manifest.net.connect"&&(J="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.GC)(),C8(J,"manifest",function(T){y.L=!0;y.dj("pathprobe",T)}, function(T){y.gi(T.errorCode,T.details)}))}}; g.a.dj=function(J,y){this.lA.M4.dj(J,y)}; g.a.gi=function(J,y){y=sy(y);this.lA.M4.gi(J,y)};Vo.prototype.Zs=function(J){var y=HP2(this);if(!J)return{NV:dC,Rm:dC,UJ:dC,gX:dC,lL:dC,P6:dC,a4:y};var v=dC;if(bk(y)||this.X("html5_perf_cap_override_sticky"))v=yaH(this,J);return{NV:v,Rm:khT(this,J),UJ:KQm(this,J),gX:vXH(this,J.videoData),lL:dRH(this,J.videoData,J),P6:NL3(this,J),a4:y}}; Vo.prototype.rJ=function(J){var y;g.Ko(this.iA)&&(y=window.screen&&window.screen.width?new g.Kn(window.screen.width,window.screen.height):null);y||(y=this.iA.jI?this.iA.jI.clone():this.Py.QH());(KX||dM||J)&&y.scale(g.MB());return y}; Vo.prototype.X=function(J){return this.iA.X(J)};g.x(ta,g.u);ta.prototype.onError=function(J){if(J!=="player.fatalexception"||this.provider.X("html5_exception_to_health"))J==="sabr.fallback"&&(this.encounteredSabrFallback=!0),J.match(Yby)?this.networkErrorCount++:this.nonNetworkErrorCount++}; ta.prototype.send=function(){if(!(this.J||this.C<0)){TI6(this);var J=g.yo(this.provider)-this.C,y="PLAYER_PLAYBACK_STATE_UNKNOWN",v=this.playerState.Zx;this.playerState.isError()?y=v&&v.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.k(this.playerState,2)?y="PLAYER_PLAYBACK_STATE_ENDED":g.k(this.playerState,64)?y="PLAYER_PLAYBACK_STATE_UNSTARTED":g.k(this.playerState,16)||g.k(this.playerState,32)?y="PLAYER_PLAYBACK_STATE_SEEKING":g.k(this.playerState,1)&&g.k(this.playerState, 4)?y="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.k(this.playerState,1)?y="PLAYER_PLAYBACK_STATE_BUFFERING":g.k(this.playerState,4)?y="PLAYER_PLAYBACK_STATE_PAUSED":g.k(this.playerState,8)&&(y="PLAYER_PLAYBACK_STATE_PLAYING");v=y3V[CF(this.provider.videoData)];a:switch(this.provider.iA.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var P=lMx(this.provider), A=this.T<0?J:this.T-this.C;J=this.provider.iA.VE+36E5<(0,g.GC)();y={started:this.T>=0,stateAtSend:y,joinLatencySecs:A,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:P,isAd:this.provider.videoData.isAd(),liveMode:v,hasDrm:!!g.$9(this.provider.videoData),isGapless:this.provider.videoData.G,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:gC(this.provider.videoData)};J||g.AW("html5PlayerHealthEvent",y);this.J=!0;this.dispose()}}; ta.prototype.JY=function(){this.J||this.send();window.removeEventListener("error",this.i9);window.removeEventListener("unhandledrejection",this.i9);g.u.prototype.JY.call(this)}; var Yby=/\bnet\b/;g.x(nXd,g.u);nXd.prototype.JY=function(){Yhj(this);g.u.prototype.JY.call(this)};var Shx=/[?&]cpn=/;g.x(WM,g.u);WM.prototype.flush=function(){var J={};this.T&&(J.pe=this.T);this.C.length>0&&(J.pt=this.C.join("."));this.C=[];return J}; WM.prototype.stop=function(){var J=this,y,v,d;return g.f(function(P){if(P.T==1)return g.bR(P,2),g.h(P,(y=J.W)==null?void 0:y.stop(),4);if(P.T!=2)return(v=P.C)&&J.logTrace(v),g.ex(P,0);d=g.BP(P);J.T=OiR(d.message);g.G2(P)})}; WM.prototype.logTrace=function(J){this.encoder.reset();this.encoder.add(1);this.encoder.add(J.resources.length);for(var y=g.D(J.resources),v=y.next();!v.done;v=y.next()){v=v.value.replace("https://www.youtube.com/s/","");this.encoder.add(v.length);for(var d=0;d=0?J:g.yo(this.provider),this.AY?Sby.has(this.R_)&&(this.C.size||(this.R_==="PL"?J>=this.T+30:J<=this.zK+30||J>=this.T+1200&&J<=this.zK+86400))&&(g.Oh(this,J,"vps",[this.R_]),this.T=J):["PL","B","S"].indexOf(this.R_)>-1&&(this.C.size||J>=this.T+30)&&(g.Oh(this,J,"vps",[this.R_]),this.T=J),this.C.size)){this.sequenceNumber===7E3&&g.ev(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){cM(this,J);var y=this.provider.lA.R9(); y=g.D(y);for(var v=y.next();!v.done;v=y.next())v=v.value,this.dj(v.key,v.value);y=J;v=this.provider.lA.Ye();var d=v.droppedVideoFrames||0,P=v.totalVideoFrames||0,A=d-this.Qf,T=P&&!this.wq;d>v.totalVideoFrames||A>5E3?$Rc(this,"html5.badframedropcount","df."+d+";tf."+v.totalVideoFrames):(A>0||T)&&g.Oh(this,y,"df",[A]);this.Qf=d;this.wq=P;this.B>0&&(g.Oh(this,J,"glf",[this.B]),this.B=0);OR.isActive()&&(J=OR.ow(),Object.keys(J).length>0&&this.dj("profile",J));this.yl&&Gc(this,"lwnmow");this.provider.iA.SH()&& this.provider.X("html5_record_now")&&this.dj("now",{wt:(0,g.GC)()});J={};this.provider.videoData.T&&(J.fmt=this.provider.videoData.T.itag,(y=this.provider.videoData.W)&&y.itag!==J.fmt&&(J.afmt=y.itag));J.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(J.adcpn=this.adCpn);this.aV&&(J.addocid=this.aV);this.contentCpn&&(J.ccpn=this.contentCpn);this.wj&&(J.cdocid=this.wj);this.provider.videoData.cotn&&(J.cotn=this.provider.videoData.cotn);J.el=z7(this.provider.videoData);J.content_v=EP(this.provider.videoData); J.ns=this.provider.iA.zK;J.fexp=KCv(this.provider.iA.experiments).toString();J.cl=(775767749).toString();(y=this.provider.videoData.adFormat||this.adFormat)&&(J.adformat=y);(y=CF(this.provider.videoData))&&(J.live=y);this.provider.videoData.jz()&&(J.drm=1,this.provider.videoData.V&&(J.drm_system=J3O[this.provider.videoData.V.flavor]||0),this.provider.videoData.drmProduct&&(J.drm_product=this.provider.videoData.drmProduct));AN()&&this.provider.videoData.L&&(J.ctt=this.provider.videoData.L,J.cttype= this.provider.videoData.A7,this.provider.videoData.mdxEnvironment&&(J.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(J.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.o0&&(J.dai_fallback="1")):this.provider.videoData.Xl?J.dai="cs":this.provider.videoData.yh&&(J.dai="disabled");J.seq=this.sequenceNumber++;if(this.provider.videoData.xW){if(y=this.provider.videoData.xW,J&&y)for(y.ns==="3pp"&&(J.ns="3pp"),this.AI.has(y.ns)&& Gc(this,"hbps"),y.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=y.shbpslc),this.provider.iA.experiments.BX("html5_use_server_qoe_el_value")&&this.YB.delete("el"),v=g.D(Object.keys(y)),d=v.next();!d.done;d=v.next())d=d.value,this.YB.has(d)||(J[d]=y[d])}else J.event="streamingstats",J.docid=this.provider.videoData.videoId,J.ei=this.provider.videoData.eventId;this.isEmbargoed&&(J.embargoed="1");Object.assign(J,this.provider.iA.C);if(y=J.seq)y={cpn:this.provider.videoData.clientPlaybackNonce, sequenceNumber:+y,serializedWatchEndpointLoggingContext:this.provider.videoData.j_b},this.serializedHouseBrandPlayerServiceLoggingContext&&(y.serializedHouseBrandPlayerServiceLoggingContext=Bf(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(y.playerResponseCpn=this.provider.videoData.playerResponseCpn),xX.length&&(y.decoderInfo=xX),this.remoteControlMode&&(y.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(y.remoteConnectedDevices= this.remoteConnectedDevices),y=g.RX(y,GId),y=g.eB(y,4),this.C.set("qclc",[y]);J=g.al("//"+this.provider.iA.t7+"/api/stats/qoe",J);v=y="";d=g.D(this.C.entries());for(P=d.next();!P.done;P=d.next())A=g.D(P.value),P=A.next().value,A=A.next().value,T=void 0,(T=A)!=null&&T.join&&(P="&"+P+"="+A.join(","),P.length>100?v+=P:y+=P);mRr(this,J+y,v.replace(/ /g,"%20"))}this.C.clear()}}; g.a.uc=function(J){this.yl=J}; g.a.H6=function(){if(this.provider.videoData.V){var J=this.provider.videoData.V;Gc(this,"eme-"+(J.keySystemAccess?"final":JD(J)?"ms":d4(J)?"ytfp":vl(J)?"safarifp":"nonfinal"))}}; g.a.FS=PP(53);g.a.D5=function(J){this.isEmbargoed=J}; g.a.Dx=PP(30);g.a.PK=PP(36);g.a.onPlaybackRateChange=function(J){var y=g.yo(this.provider);J&&J!==this.Lf&&(g.Oh(this,y,"rate",[J]),this.Lf=J);this.AY||this.reportStats(y)}; g.a.Cp=PP(24);g.a.getPlayerState=function(J){if(g.k(J,128))return"ER";if(g.k(J,2048))return"B";if(g.k(J,512))return"SU";if(g.k(J,16)||g.k(J,32))return"S";if(J.isOrWillBePlaying()&&g.k(J,64))return"B";var y=VBq[j1(J)];g.Sb(this.provider.iA)&&y==="B"&&this.provider.lA.getVisibilityState()===3&&(y="SU");y==="B"&&g.k(J,4)&&(y="PB");return y}; g.a.JY=function(){g.u.prototype.JY.call(this);g.tN(this.Cy);g.tN(this.L8)}; g.a.xs=function(J){this.isOffline=J;g.Oh(this,g.yo(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.a.dj=function(J,y,v){var d=this.xj.indexOf(J)!==-1;d||this.xj.push(J);if(!v||!d){var P=typeof y!=="string"?sy(y):y;P=CzP(P);if(!v&&!/^t[.]/.test(P)){var A=g.yo(this.provider)*1E3;P="t."+A.toFixed()+";"+P}DM(this,"ctmp",J+":"+P);this.logger.debug(function(){return"ctmp "+J+" "+P}); BIH(this);return A}}; g.a.Z_=function(J,y,v){this.V={QzB:Number(this.dj("glrem",{nst:J.toFixed(),rem:y.toFixed(),ca:+v})),G$:J,KSB:y,isAd:v}}; g.a.Ep=function(J,y,v){g.Oh(this,g.yo(this.provider),"ad_playback",[J,y,v])}; g.a.N0=function(J,y){var v=g.yo(this.provider)*1E3;DM(this,"daism","t."+v.toFixed(0)+";smw."+(J*1E3).toFixed(0)+";smo."+(y*1E3).toFixed(0))}; g.a.resume=function(){var J=this;isNaN(this.Cy)?qhT(this):this.Cy=g.V2(function(){J.reportStats()},1E4)}; var DP={},VBq=(DP[5]="N",DP[-1]="N",DP[3]="B",DP[0]="EN",DP[2]="PA",DP[1]="PL",DP[-1E3]="ER",DP[1E3]="N",DP),Sby=new Set(["PL","B","S"]),xX=[];pMR.prototype.update=function(){if(this.G){var J=this.D8()||0,y=g.yo(this.provider);J>=this.provider.lA.getDuration()-.1&&(this.previouslyEnded=!0);if(J!==this.C||iiR(this,J,y)){var v;if(!(v=Jy-this.Ww+2||iiR(this,J,y))){v=this.provider.lA.getVolume();var d=v!==this.K,P=this.provider.lA.isMuted()?1:0;P!==this.B?(this.B=P,v=!0):(!d||this.W>=0||(this.K=v,this.W=y),v=y-this.W,this.W>=0&&v>2?(this.W=-1,v=!0):v=!1)}v&&(jr(this),this.J=J);this.Ww=y;this.C=J}}}; pMR.prototype.D8=function(){var J=this.provider.lA.D8();return this.provider.iA.X("html5_disable_live_dvr_shrink_for_cdm_vss")&&OP(this.provider.videoData)?J+this.provider.lA.Vl():J};uUj.prototype.send=function(J){var y=this;if(!this.XW){var v=XMc(this),d=g.al(this.uri,v);this.iA.X("vss_through_gel_double")&&NIH(d);this.wj&&!this.iA.X("html5_simplify_pings")?EX6(this,d):HiU(this,J).then(function(P){y.wj&&(P=P||{},P.method="POST",P.postParams={atr:y.attestationResponse});WEj(d,P,{token:y.Cy,vx:y.J9,mdxEnvironment:y.mdxEnvironment},y.iA,J,y.If,y.isFinal&&y.VE||y.cX||y.J&&y.M1)}); this.XW=!0}}; uUj.prototype.T=function(J){J===void 0&&(J=NaN);return Number(J.toFixed(3)).toString()}; var cX={},z96=(cX.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,cX.LIVING_ROOM_APP_MODE_MAIN=1,cX.LIVING_ROOM_APP_MODE_KIDS=2,cX.LIVING_ROOM_APP_MODE_MUSIC=3,cX.LIVING_ROOM_APP_MODE_UNPLUGGED=4,cX.LIVING_ROOM_APP_MODE_GAMING=5,cX),GX={},KE6=(GX.EMBEDDED_PLAYER_MODE_UNKNOWN=0,GX.EMBEDDED_PLAYER_MODE_DEFAULT=1,GX.EMBEDDED_PLAYER_MODE_PFP=2,GX.EMBEDDED_PLAYER_MODE_PFL=3,GX);g.x(mE,g.u);mE.prototype.Xz=function(){this.C.update();A1v(this)&&(wMT(this),J1P(this))}; mE.prototype.JY=function(){g.u.prototype.JY.call(this);rI(this);URP(this.C)}; mE.prototype.P$=function(){return XMc(BM(this,"playback"))}; mE.prototype.I5=function(J){var y=BM(this,"engage");y.AY=J;return R93(y,YFx(this.provider))};s_m.prototype.isEmpty=function(){return this.endTime===this.startTime};oy.prototype.X=function(J){return this.iA.X(J)}; oy.prototype.getCurrentTime=function(){return this.lA.getCurrentTime()}; oy.prototype.D8=function(){return this.lA.D8()}; var SFv={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.x(g.Ci,g.u);g.a=g.Ci.prototype;g.a.Xz=function(){if(this.provider.videoData.enableServerStitchedDai&&this.JR){var J;(J=this.J.get(this.JR))==null||J.Xz()}else this.C&&this.C.Xz()}; g.a.D5=function(J){this.qoe&&this.qoe.D5(J)}; g.a.Dx=PP(29);g.a.PK=PP(35);g.a.N0=function(J,y){this.qoe&&this.qoe.N0(J,y)}; g.a.SU=function(){if(this.provider.videoData.enableServerStitchedDai&&this.JR){var J;(J=this.J.get(this.JR))!=null&&jr(J.C)}else this.C&&jr(this.C.C)}; g.a.gi=function(J,y){this.qoe&&$Rc(this.qoe,J,y);if(this.T)this.T.onError(J)}; g.a.onPlaybackRateChange=function(J){if(this.qoe)this.qoe.onPlaybackRateChange(J);this.C&&jr(this.C.C)}; g.a.FS=PP(52);g.a.dj=function(J,y,v){this.qoe&&this.qoe.dj(J,y,v)}; g.a.Z_=function(J,y,v){this.qoe&&this.qoe.Z_(J,y,v)}; g.a.d2=function(J){var y;(y=this.qoe)==null||y.d2(J)}; g.a.HM=function(J){var y;(y=this.qoe)==null||y.HM(J)}; g.a.uc=function(J){this.qoe&&this.qoe.uc(J)}; g.a.Ep=function(J,y,v){this.qoe&&this.qoe.Ep(J,y,v)}; g.a.Cp=PP(23);g.a.Mf=function(){if(this.qoe)return this.qoe.Mf()}; g.a.P$=function(){if(this.provider.videoData.enableServerStitchedDai&&this.JR){var J,y;return(y=(J=this.J.get(this.JR))==null?void 0:J.P$())!=null?y:{}}return this.C?this.C.P$():{}}; g.a.Nm=function(){var J;return(J=this.qoe)==null?void 0:J.Nm()}; g.a.rT=function(J,y){var v;(v=this.qoe)==null||v.rT(J,y)}; g.a.I5=function(J){return this.C?this.C.I5(J):function(){}}; g.a.getVideoData=function(){return this.provider.videoData}; g.a.resume=function(){this.qoe&&this.qoe.resume()};g.x(g.ha,g.u);g.a=g.ha.prototype;g.a.PF=function(J,y){this.sync();y&&this.C.array.length>=2E3&&this.v9("captions",1E4);y=this.C;if(J.length>1&&J.length>y.array.length)y.array=y.array.concat(J),y.array.sort(y.C);else{J=g.D(J);for(var v=J.next();!v.done;v=J.next())v=v.value,!y.array.length||y.C(v,y.array[y.array.length-1])>0?y.array.push(v):g.ky(y.array,v,y.C)}this.J=NaN;this.sync()}; g.a.FJ=function(J){J.length>1E4&&g.ev(new g.H1("Over 10k cueRanges removal occurs with a sample: ",J[0]));if(!this.tY()){var y=new Set(J);this.T=this.T.filter(function(v){return!y.has(v)}); mX2(this.C,y);this.sync()}}; g.a.Oq=function(J,y){if(!this.tY()){var v=this.uv().find(function(d){return d.id===y&&d.namespace===J}); v&&this.FJ([v])}}; g.a.v9=function(J,y){var v=(isNaN(this.J)?oPH(this):this.J)-y;y=this.uv().filter(function(d){return d.namespace===J&&d.endthis.C,A=g.k(v,8)&&g.k(v,16),T=this.lA.OY().isBackground()||v.isSuspended();Ry(this,this.ZB,A&&!T,P,"qoe.slowseek",function(){},"timeout"); var M=isFinite(this.C);M=A&&M&&NDT(y,this.C);var n=!d||Math.abs(d-this.C)>10,Y=this.iA.X("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),S=d===0&&this.T&&[11,10].includes(this.T);Ry(this,this.XW,M&&n&&!T&&(!Y||!S),P,"qoe.slowseek",function(){y.seekTo(J.C)},"set_cmt"); n=M&&zt(y.DW(),this.C);var V=this.lA.loader;M=!V||V.nU();var L=function(){y.seekTo(J.C+.001)}; Ry(this,this.cX,n&&M&&!T,P,"qoe.slowseek",L,"jiggle_cmt");M=function(){return J.lA.qy()}; Ry(this,this.Ek,n&&!T,P,"qoe.slowseek",M,"new_elem");S=Fg(v);n=v.isBuffering();var t=y.DW(),W=Km(t,d),c=W>=0&&t.end(W)>d+5,b=S&&n&&c;Y=this.lA.getVideoData();Ry(this,this.WX,d<.002&&this.C<.002&&A&&g.Sb(this.iA)&&g.k9(Y)&&!T,P,"qoe.slowseek",M,"slow_seek_shorts");Ry(this,this.K,Y.Zo()&&A&&!T&&!Y.AY,P,"qoe.slowseek",M,"slow_seek_gapless_shorts");Ry(this,this.zK,b&&!T,S&&!n,"qoe.longrebuffer",L,"jiggle_cmt");Ry(this,this.Cy,b&&!T,S&&!n,"qoe.longrebuffer",M,"new_elem_nnr");if(V){var B=V.getCurrentTime(); A=y.NL();A=oHP(A,B);A=!V.isSeeking()&&d===A;Ry(this,this.J9,S&&n&&A&&!T,S&&!n&&!A,"qoe.longrebuffer",function(){y.seekTo(B)},"seek_to_loader")}A={}; L=Km(t,Math.max(d-3.5,0));b=L>=0&&d>t.end(L)-1.1;var q=L>=0&&L+1=0&&b&&q<11;A.close2edge=b;A.gapsize=q;A.buflen=t.length;this.T&&(A.seekSour=this.T);Ry(this,this.AY,S&&n&&!T,S&&!n,"qoe.longrebuffer",function(){},"timeout",A); A=v.isSuspended();A=this.lA.aB()&&!A;Ry(this,this.G,A,!A,"qoe.start15s",function(){J.lA.CA("ad")},"ads_preroll_timeout"); A=this.iA.experiments.BX("html5_use_playback_rate_in_skip_slow_ad")?this.lA.getPlaybackRate()*1E3:1E3;W=d-this.W5;Ry(this,this.GK,g.k9(Y)&&V,S&&!n,"qoe.longrebuffer",function(){J.lA.wU()},"reset_media_source"); Ry(this,this.Vk,g.k9(Y)&&V,S&&!n,"qoe.longrebuffer",M,"reset_media_element");this.W===0&&(this.L=d);V=n&&this.C===0&&d>1&&d===this.L;Ry(this,this.If,g.k9(Y)&&V,S&&!n,"qoe.slowseek",function(){y.seekTo(0)},"reseek_after_time_jump"); T=v.isOrWillBePlaying()&&!T;c=this.lA.HO()-d<6&&!c&&this.lA.Fk();Ry(this,this.B,Y.Zo()&&T&&n&&c,S&&!n,"qoe.longrebuffer",function(){J.lA.qy(!1,!0)},"handoff_end_long_buffer_reload"); T=this.T===104||this.lA.z7;v=Wh(Y)&&Y.isAd()&&!Y.AY&&T&&(n||g.k(v,8)&&g.k(v,16));Ry(this,this.YB,v,P,"qoe.start15s",M,"gapless_ad_slow_start");this.W=d;this.V.start()}}; NR.prototype.gi=function(J,y,v){y=this.P$(y);y.wn=v;y.wdup=this.J[J]?"1":"0";this.lA.gi(new g.Y6(J,y));this.J[J]=!0}; NR.prototype.P$=function(J){J=Object.assign(this.lA.P$(!0),J.P$());this.C&&(J.stt=this.C.toFixed(3));this.lA.getVideoData().isLivePlayback&&(J.ct=this.lA.getCurrentTime().toFixed(3),J.to=this.lA.Vl().toFixed(3));delete J.uga;delete J.euri;delete J.referrer;delete J.fexp;delete J.vm;return J}; XU.prototype.reset=function(){this.C=this.T=this.J=this.startTimestamp=0;this.W=!1}; XU.prototype.test=function(J){if(!this.V||this.T)return!1;if(!J)return this.reset(),!1;J=(0,g.GC)();if(!this.startTimestamp)this.startTimestamp=J,this.J=0;else if(this.J>=this.V)return this.T=J,!0;this.J+=1;return!1}; XU.prototype.P$=function(){var J={},y=(0,g.GC)();this.startTimestamp&&(J.wsd=(y-this.startTimestamp).toFixed());this.T&&(J.wtd=(y-this.T).toFixed());this.C&&(J.wssd=(y-this.C).toFixed());return J};g.x(wex,g.u);g.a=wex.prototype;g.a.setMediaElement=function(J){(this.mediaElement=J)?(this.mediaElement&&(this.V||this.J||!this.mediaElement.jp()||this.seekTo(.01,{jn:"seektimeline_setupMediaElement"})),Ki(this)):kX(this)}; g.a.getCurrentTime=function(J){J=J===void 0?!1:J;if(zc(this.lA)){if(this.X("html5_use_centralized_player_time")&&!J&&!isNaN(this.L))return this.L;if(!isNaN(this.T))return this.T}else{if(this.X("html5_use_centralized_player_time")&&!J&&!isNaN(this.L)&&isFinite(this.L))return this.L;if(!isNaN(this.T)&&isFinite(this.T))return this.T}return this.mediaElement&&L63(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.J||0}; g.a.Gb=function(){return this.YB}; g.a.D8=function(){return this.getCurrentTime()-this.Vl()}; g.a.x6=function(){return this.C?this.C.x6():Infinity}; g.a.isAtLiveHead=function(J){if(!this.C)return!1;J===void 0&&(J=this.getCurrentTime());return iz(this.C,J)}; g.a.wd=function(){return!!this.C&&this.C.wd()}; g.a.seekTo=function(J,y){var v=y===void 0?{}:y;y=v.CM===void 0?!1:v.CM;var d=v.Uo===void 0?0:v.Uo;var P=v.rz===void 0?!1:v.rz;var A=v.Oo===void 0?0:v.Oo;var T=v.jn===void 0?"":v.jn;var M=v.seekSource===void 0?void 0:v.seekSource;var n=v.x_===void 0?!1:v.x_;var Y=v.gT===void 0?!1:v.gT;v=v.wl===void 0?!1:v.wl;n&&(J+=this.Vl());gC(this.videoData)&&M===29&&(this.YB=void 0);n=J=this.uJ())||!g.fF(this.videoData),c||(b={st:b,mst:this.uJ()},this.C&&this.X("html5_high_res_seek_logging")&&(b.ht=this.C.x6(),b.adft=RVT(this.C)),this.lA.dj("seeknotallowed",b)),b=c));if(!b)return this.W&&(this.W=null,Y2T(this)),g.BQ(this.getCurrentTime());b=.005;Y&&this.X("html5_sabr_seek_no_shift_tolerance")&&(b=0);if(Math.abs(J-this.T)<=b&&this.If)return this.V;T&&(b=J,(this.iA.SH()||this.X("html5_log_seek_reasons"))&& this.lA.dj("seekreason",{reason:T,tgt:b}));M&&(this.zK.T=M);this.If&&kX(this);this.V||(this.V=new S1);J&&!isFinite(J)&&d6r(this,!1);(T=v||n)||(T=J,T=!(this.videoData.isLivePlayback&&this.videoData.J&&!this.videoData.J.C&&!(this.mediaElement&&this.mediaElement.yw()>0&&Le(this.mediaElement)>0)||FV(this.videoData)&&this.Fl()===this.uJ(!1)?0:isFinite(T)||!FV(this.videoData)));T||(J=Qo(this,J,P));J&&!isFinite(J)&&d6r(this,!1);this.X("html5_use_centralized_player_time")?this.L=J:this.T=this.J=J;this.GK= A;this.G=0;this.C&&(P=this.C,A=J,KuH(P,A,!1),zVj(P,A));P=this.lA;A=J;T={CM:y,seekSource:M};P.Sn.J=A;v=P.X$;v.mediaTime=A;v.C=!0;T.CM&&P.Fe(T);T=A>P.videoData.endSeconds&&A>P.videoData.limitedPlaybackDurationInSeconds;P.xz&&T&&isFinite(A)&&NAm(P);Ay.start&&NAm(this.lA);return this.V}; g.a.uJ=function(J){if(!this.videoData.isLivePlayback)return this.lA.videoData.uJ();var y;return Mr(this.videoData)&&((y=this.mediaElement)==null?0:y.isPaused())&&this.videoData.C?(J=this.getCurrentTime(),oLd(this.T4(J)*1E3)+J):this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&gC(this.videoData)&&this.videoData.C?J?this.videoData.C.Cy||0:this.videoData.C.sx||0:FV(this.videoData)&&this.videoData.zK&&this.videoData.C?this.videoData.C.uJ()+this.timestampOffset:this.videoData.J&&this.videoData.J.C? !J&&this.C?this.C.x6():this.lA.videoData.uJ()+this.timestampOffset:this.mediaElement?H0()?oLd(this.mediaElement.kW().getTime()):Le(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.a.Fl=function(){if(this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&gC(this.videoData)){var J;return((J=this.videoData.C)==null?void 0:J.cH)||0}J=this.videoData?this.videoData.Fl()+this.timestampOffset:this.timestampOffset;if(Mr(this.videoData)&&this.videoData.C){var y,v=Number((y=this.videoData.progressBarStartPosition)==null?void 0:y.utcTimeMillis)/1E3;y=this.getCurrentTime();y=this.T4(y)-y;if(!isNaN(v)&&!isNaN(y))return Math.max(J,v-y)}return J}; g.a.xw=function(){this.V||this.seekTo(this.J,{jn:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.a.Ae=function(){return this.If&&!isFinite(this.T)}; g.a.JY=function(){PdP(this,null);this.zK.dispose();g.u.prototype.JY.call(this)}; g.a.P$=function(){var J={};this.loader&&Object.assign(J,this.loader.P$());this.mediaElement&&Object.assign(J,this.mediaElement.P$());return J}; g.a.Vo=function(J){this.timestampOffset=J}; g.a.getStreamTimeOffset=function(){return FV(this.videoData)?0:this.videoData.C?this.videoData.C.getStreamTimeOffset():0}; g.a.Vl=function(){return this.timestampOffset}; g.a.T4=function(J){return this.videoData&&this.videoData.C?this.videoData.C.T4(J-this.timestampOffset):NaN}; g.a.vE=function(){if(!this.mediaElement)return 0;if(iV(this.videoData)){var J=this.mediaElement,y=J.DW();J=(QS(y)&&J.getDuration()?y.end(y.length-1):0)+this.timestampOffset-this.Fl();y=this.uJ()-this.Fl();return Math.max(0,Math.min(1,J/y))}return this.mediaElement.vE()}; g.a.Nq=function(J){this.B&&(this.B.C=J)}; g.a.Lu=function(J,y){this.lA.dj("requestUtcSeek",{time:J});gC(this.videoData)&&(this.YB=J);var v;(v=this.loader)==null||v.Lu(J);y&&(this.wj=y)}; g.a.wT=function(J){gC(this.videoData)&&(this.YB=void 0);if(this.wj)this.lA.dj("utcSeekingFallback",{source:"streamTime",timeSeconds:this.wj}),this.lA.seekTo(this.wj,{jn:"utcSeekingFallback_streamTime"}),this.wj=0;else{var y=this.getCurrentTime();isNaN(y)||(J=this.T4(y)-J,y-=J,this.lA.dj("utcSeekingFallback",{source:"estimate",timeSeconds:y}),this.lA.seekTo(y,{jn:"utcSeekingFallback_estimate"}))}}; g.a.R1=function(){this.wj=0}; g.a.X=function(J){return this.iA&&this.iA.X(J)};g.x(ZM,g.u);ZM.prototype.start=function(){this.T.start()}; ZM.prototype.stop=function(){this.T.stop()}; ZM.prototype.clear=function(){for(var J=g.D(this.C.values()),y=J.next();!y.done;y=J.next())y.value.clear()}; ZM.prototype.sample=function(){for(var J=g.D(this.J),y=J.next();!y.done;y=J.next()){var v=g.D(y.value);y=v.next().value;v=v.next().value;this.C.has(y)||this.C.set(y,new gYP(L9w.has(y)));this.C.get(y).update(v())}this.T.start()}; var L9w=new Set(["networkactivity"]);gYP.prototype.update=function(J){this.T?(this.buffer.add(J-this.C||0),this.C=J):this.buffer.add(J)}; gYP.prototype.clear=function(){this.buffer.clear();this.C=0};yi.prototype.Th=function(){return this.started}; yi.prototype.start=function(){this.started=!0}; yi.prototype.reset=function(){this.finished=this.started=!1};var F66=!1;g.x(g.A1,g.yK);g.a=g.A1.prototype;g.a.JY=function(){this.logger.debug("dispose");g.tN(this.kQ);jLH(this.ih);this.visibility.unsubscribe("visibilitystatechange",this.ih);ahm(this.M4);g.dJ(this.M4);MX(this);g.px.yI(this.KU);this.Eh();this.Gg=null;g.dJ(this.videoData);g.dJ(this.EY);g.dJ(this.gG);g.dJ(this.AU);g.P2(this.AYA);this.xz=null;g.yK.prototype.JY.call(this)}; g.a.Ep=function(J,y,v,d,P){if(this.iA.X("html5_log_ad_playback_docid")){var A=this.M4;if(A.qoe){A=A.qoe;var T=this.iA.zK||"yt";g.Oh(A,g.yo(A.provider),"ad_playback",[J,y,v,P,T])}}else this.M4.Ep(J,y,v);this.X("html5_log_media_perf_info")&&this.dj("adloudness",{ld:d.toFixed(3),cpn:J})}; g.a.Gc=function(){var J;return(J=this.loader)==null?void 0:J.Gc()}; g.a.NR=function(){var J;return(J=this.loader)==null?void 0:J.NR()}; g.a.FV=function(){var J;return(J=this.loader)==null?void 0:J.FV()}; g.a.Ps=function(){var J;return(J=this.loader)==null?void 0:J.Ps()}; g.a.jz=function(){return this.videoData.jz()}; g.a.q$=function(){return this.X("html5_not_reset_media_source")&&!this.jz()&&!this.videoData.isLivePlayback&&g.k9(this.videoData)&&!this.iA.supportsGaplessShorts()}; g.a.Uv=function(){this.videoData.G&&(this.videoData.nF=this.videoData.nF||this.mQ.Ok().Gc(),this.videoData.l0=this.videoData.l0||this.mQ.Ok().NR());if(DGT(this.videoData)||!AQ(this.videoData)){var J=this.videoData.errorDetail;this.q1(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),J,J,this.videoData.Nc||void 0)}this.X("html5_generate_content_po_token")&&this.JC();this.X("html5_enable_d6de4")&&this.NZ()}; g.a.getVideoData=function(){return this.videoData}; g.a.Y=function(){return this.iA}; g.a.Zs=function(){return this.eW.Zs(this.Gg)}; g.a.OY=function(){return this.visibility}; g.a.Ue=function(){return this.mediaElement&&this.mediaElement.V4()?this.mediaElement.sN():null}; g.a.Pq=function(){return this.mediaElement}; g.a.yN=function(){if(this.X("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.Y().L&&this.Y().houseBrandUserStatus&&this.dj("hbut",{status:this.Y().houseBrandUserStatus},!0);if(this.videoData.ZO())return!0;this.q1("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.a.ZY=function(J){(J=J===void 0?!1:J)||V_m(this.M4);this.aM=J;!this.yN()||this.pu.Th()?g.Sb(this.iA)&&this.videoData.isLivePlayback&&this.pu.Th()&&!this.pu.finished&&!this.aM&&this.LO():(this.pu.start(),J=this.M4,g.yo(J.provider),J.qoe&&qhT(J.qoe),this.LO())}; g.a.LO=function(){if(this.videoData.isLoaded()){var J=this.EY;g.Zo(J.qx.experiments,"html5_player_min_build_cl")>0&&g.Zo(J.qx.experiments,"html5_player_min_build_cl")>775767749&&Ib3(J,"oldplayer");i1c(this)}else this.videoData.vK||this.videoData.QA?this.aM&&g.Sb(this.iA)&&this.videoData.isLivePlayback||(this.videoData.vK?AB2(this.videoData):(J=this.M4,J.qoe&&(J=J.qoe,Gc(J,"protected"),J.provider.videoData.V?J.H6():J.provider.videoData.subscribe("dataloaded",J.H6,J)),JB3(this.videoData))):!this.videoData.loading&& this.JT&&pm6(this)}; g.a.AX=function(J){this.Rk=J;this.loader&&(cQ6(this.loader,new g.vM(J)),this.dj("sdai",{sdsstm:1}))}; g.a.Op=function(J,y,v){var d;(d=this.loader)==null||d.Op(J,y,v)}; g.a.rf=PP(8);g.a.isFullscreen=function(){return this.visibility.isFullscreen()}; g.a.isBackground=function(){return this.visibility.isBackground()}; g.a.aL=function(){var J=this;this.logger.debug("Updating for format change");T6(this).then(function(){return Pe(J)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.a.eE=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.ZY();this.yN()&&!g.k(this.playerState,128)&&(this.jo.Th()||(this.jo.start(),this.videoData.u1?this.i6(Dq(this.playerState,4)):this.i6(Dq(Dq(this.playerState,8),1))),U6d(this))}; g.a.g8=function(){return this.pu.finished}; g.a.sendAbandonmentPing=function(){g.k(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.iW(!0),ahm(this.M4),g.dJ(this.M4),g.px.yI(this.KU))}; g.a.D_=function(J,y){J=J===void 0?!0:J;(y===void 0||y)&&this.mediaElement&&this.mediaElement.pause();this.i6(J?new g.xz(14):new g.xz)}; g.a.Fi=function(){this.M4.SU()}; g.a.q1=function(J,y,v,d,P,A){this.logger.debug(function(){return"set player error: ec="+J+", detail="+P}); var T,M;g.YN(eaX,v)?T=v:v?M=v:T="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+Kr());if(J==="auth"||J==="drm.auth"||J==="heartbeat.stop")v&&(d+=";r."+v.replaceAll(" ","_")),A&&(d+="sr."+A.replaceAll(" ","_"));y={errorCode:J,errorDetail:P,errorMessage:M||g.Xx[T]||"",wL:T,Nc:A||"",M_:d,GB:y,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=J;lP(this,"dataloaderror");this.i6(gj(this.playerState,128,y));g.px.yI(this.KU);MX(this);this.r0()}; g.a.CA=function(J){this.hQ=this.hQ.filter(function(y){return J!==y}); this.logger.debug(function(){return"set preroll ready for "+J}); this.jo.Th()&&U6d(this)}; g.a.Zp=function(){var J;(J=!!this.hQ.length)||(J=this.QQ.C.array[0],J=!!J&&J.start<=-0x8000000000000);return J}; g.a.wd=function(){return this.Sn.wd()}; g.a.isPlaying=function(){return this.playerState.isPlaying()}; g.a.CJ=function(){return this.playerState.CJ()&&this.videoData.u1}; g.a.getPlayerState=function(){return this.playerState}; g.a.RJ=function(J){var y;(y=this.loader)==null||y.RJ(J)}; g.a.Z$=function(J){var y;(y=this.loader)==null||y.Z$(J)}; g.a.getPlayerType=function(){return this.playerType}; g.a.getPreferredQuality=function(){if(this.Gg){var J=this.Gg;J=J.videoData.YL.compose(J.videoData.HP);J=jn(J)}else J="auto";return J}; g.a.lQ=PP(16);g.a.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.a.setMediaElement=function(J){this.logger.debug("set media element");if(this.mediaElement&&J.sN()===this.mediaElement.sN()&&(J.isView()||this.mediaElement.isView())){if(J.isView()||!this.mediaElement.isView())this.Ev(),this.mediaElement=J,this.mediaElement.lA=this,d1m(this),this.Sn.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Eh();if(!this.playerState.isError()){var y=cd(this.playerState,512);g.k(y,8)&&!g.k(y,2)&&(y=Dq(y,1));J.isView()&&(y=cd(y,64));this.i6(y)}this.mediaElement= J;this.mediaElement.lA=this;!g.Sb(this.iA)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);d1m(this);this.Sn.setMediaElement(this.mediaElement);this.X("html5_prewarm_media_source")&&!this.EY.HG()&&ifd(this.mediaElement)}}; g.a.Eh=function(J,y,v){J=J===void 0?!1:J;y=y===void 0?!1:y;v=v===void 0?!1:v;this.logger.debug("remove media element");if(this.mediaElement){var d=this.getCurrentTime();d>0&&(this.Sn.J=d);this.Sn.setMediaElement(null);!J&&this.q$()?Z1H(this):this.GW(v);this.loader&&(E4(this.loader),S_(this,y));this.yK.stop();if(this.mediaElement&&(!this.jo.Th()&&!this.aB()||this.playerState.isError()||g.k(this.playerState,2)||this.i6(Dq(this.playerState,512)),this.mediaElement)){this.Ev();if(J||!this.mediaElement.isView())this.Ql.Ja("mesv_s"), this.mediaElement.stopVideo(),Vi(this);this.mediaElement=this.mediaElement.lA=null}}}; g.a.playVideo=function(J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;var v=this,d,P,A,T,M,n,Y;return g.f(function(S){if(S.T==1){v.logger.debug("start play video");var V=window.google_image_requests;V&&V.length>10&&(window.google_image_requests=V.slice(-10));if(g.k(v.playerState,128))return S.return();if(v.EY.Jw())return v.publish("signatureexpired"),S.return();v.mediaElement&&V_m(v.M4);v.eE();(g.k(v.playerState,64)||J)&&v.i6(Dq(v.playerState,8));return v.jo.finished&&v.mediaElement?v.Gg||!v.Qa?S.Qk(2): g.h(S,v.Qa,3):S.return()}if(S.T!=2&&g.k(v.playerState,128))return S.return();if(!v.videoData.J)return v.videoData.isLivePlayback&&!g.aK(v.iA.V,!0)?(d="html5.unsupportedlive",P=2):(d=v.videoData.jz()?"fmt.unplayable":"fmt.noneavailable",P=1),g.ev(Error("selectableFormats")),A=v.X("html5_log_fmt_unplaybable_trigger")?"trg.selectableFormats":"selectableFormats.1",v.q1(d,P,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",A),S.return();if(v.Fz()&&v.videoData.J.C)return v.logger.debug("rebuild playbackData for airplay"), S.return(T6(v));if(zc(v))V=v.Sn,bV(V.videoData)&&!V.isAtLiveHead(V.getCurrentTime())&&V.wd()&&V.lA.seekTo(Infinity,{jn:"seektimeline_peggedToLive",seekSource:34});else if(bV(v.videoData)&&(T=v.getCurrentTime()T;if(!M||!T){A&&M&&(d=Math.max(d,A));var n;A=X_T(y,(n=P.C)==null?void 0:n.videoInfos);n=y.lA.getPlaybackRate();n>1&&A&&(n=Q0T(y.iA.V,P.C.videoInfos,n),J.C!==0&&n< J.C&&y.lA.setPlaybackRate(1));var Y,S;J=((Y=P.videoData.T)==null?void 0:(S=Y.video)==null?void 0:S.qualityOrdinal)||0;g.B1("yt-player-quality",{quality:d,previousQuality:J},31104E3);y.iA.schedule.policy.W=Yi()>=480;if(y.X("html5_exponential_memory_for_sticky")){Y=y.iA.mL;S=1;var V=V===void 0?!1:V;VoT(Y,"sticky-lifetime");Y.values["sticky-lifetime"]&&Y.B9["sticky-lifetime"]||(Y.values["sticky-lifetime"]=0,Y.B9["sticky-lifetime"]=0);V&&hD(Y,"sticky-lifetime")>.0625&&(S=Y.B9["sticky-lifetime"]*2);Y.values["sticky-lifetime"]+= 1*Math.pow(2,Y.C/S);Y.B9["sticky-lifetime"]=S;Y.W.start()}if(y.X("html5_perf_cap_override_sticky")){V=y.J;Y=y.X("html5_perserve_av1_perf_cap");Y=Y===void 0?!1:Y;if(Y===void 0?0:Y){S=Vk();J=g.D(Object.keys(S));for(y=J.next();!y.done;y=J.next())y=y.value,y.indexOf("1")!==0&&delete S[y];g.B1("yt-player-performance-cap",S,2592E3)}else g.r3("yt-player-performance-cap");ZtP(Y);if(Y){Y=g.D(k$.keys());for(S=Y.next();!S.done;S=Y.next())S=S.value,S.startsWith("1")||k$.delete(S);Y=g.D(Li.values());for(S=Y.next();!S.done;S= Y.next())S=S.value,S.startsWith("1")||Li.delete(S);Y=g.D(V.keys());for(S=Y.next();!S.done;S=Y.next())S=S.value,S.startsWith("1")||V.delete(S)}else k$.clear(),Li.clear(),V.clear()}}}this.loader&&(V=this.loader,v=v||"",V.policy.C?El(V.W.C,v):El(V.C.V,v));this.dS()}; g.a.getUserPlaybackQualityPreference=function(){return this.videoData.J&&!this.videoData.J.C?jn(this.videoData.YL):FK[Yi()]}; g.a.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.a.setUserAudio51Preference=function(J,y){this.getUserAudio51Preference()!==J&&(this.dj("toggle51",{pref:J}),g.B1("yt-player-audio51",J,y?31536E3:2592E3),this.aL())}; g.a.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.a.setProximaLatencyPreference=function(J){var y=this.getProximaLatencyPreference();this.dj("proxima",{pref:J});g.B1("yt-player-proxima-pref",J,31536E3);y!==J&&(J=this.Sn,J.rj=!0,J.lA.seekTo(Infinity,{jn:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.a.getProximaLatencyPreference=function(){var J;return(J=Sn())!=null?J:0}; g.a.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.a.JC=function(){this.videoData.videoId?this.mQ.JC(this.videoData):this.dj("povid",{})}; g.a.NZ=function(){this.videoData.videoId?this.mQ.NZ(this.videoData):this.dj("piavid",{})}; g.a.dS=function(){if(!this.tY()&&!g.k(this.playerState,128)&&this.videoData.J){if(this.videoData.J.C)d9(this);else{var J=YP(this),y=this.videoData;a:{var v=this.videoData.h_;if(J.C){for(var d=g.D(v),P=d.next();!P.done;P=d.next()){P=P.value;var A=P.getInfo(),T=g.Gt[A.video.quality];if((!J.J||A.video.quality!=="auto")&&T<=J.C){v=P;break a}}v=v[v.length-1]}else v=v[0]}y.ZB=v;R5H(this,J.reason,T_d(this,this.videoData.ZB))}if(this.X("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Sn.K= !1,this.playVideo()}}; g.a.hG=function(J,y){if(this.tY()||g.k(this.playerState,128))return!1;var v,d=!((v=this.videoData.J)==null||!v.C);v=d&&y?this.getCurrentTime()-this.Vl():NaN;if(this.iA.experiments.BX("html5_record_audio_format_intent")){var P=this.M4;if(P.qoe){P=P.qoe;var A=[J.N4.id,isNaN(v)?"m":"t"];g.Oh(P,g.yo(P.provider),"afi",A)}}if(d)return y&&(d=TAv(this.Sn),this.dj("aswh",{id:J.id,xtags:J.xtags,bh:d.toFixed(3)})),this.loader.setAudioTrack(J,v,y),!0;if(z5m(this)){a:{y=this.mediaElement.audioTracks();for(d=0;d< y.length;++d)if(v=y[d],v.label===J.N4.getName()){if(v.enabled){y=!1;break a}y=v.enabled=!0;break a}y=void 0}y&&this.dj("hlsaudio",{id:J.id})}else{a:if(y=this.videoData,y.W&&!Ic(y.W)||J===y.xf||!y.h_||y.h_.length<=0)y=!1;else{d=g.D(y.h_);for(v=d.next();!v.done;v=d.next()){v=v.value;if(!(v instanceof bB)){y=!1;break a}P=J.N4.getId();v.T&&(IWv(v.T,P),v.q4=null)}y.xf=J;y=!0}y&&Pe(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.dj("hlsaudio",{id:J.id}))}return!0}; g.a.getAvailableAudioTracks=function(){return this.videoData.getAvailableAudioTracks()}; g.a.getAudioTrack=function(){if(z5m(this)){var J=EYv(this);if(J)return J}return this.videoData.getAudioTrack()}; g.a.Hd=function(){return this.videoData.W}; g.a.t8=function(){if(this.videoData.X("html5_trigger_loader_when_idle_network")&&!this.videoData.jH()&&gC(this.videoData)){var J;(J=this.loader)!=null&&J.j1()}}; g.a.hL=function(){if(Wh(this.videoData)&&this.videoData.X("html5_gapless_append_early")){var J;(J=this.loader)!=null&&J.j1()}}; g.a.onPlayerRequestSent=function(J){this.mQ.onPlayerRequestSent(J)}; g.a.EC=function(J){J=J===void 0?!1:J;if(this.loader){var y=this.loader,v=y.EC;var d=this.videoData;d=d.X("html5_ssdai_use_post_for_media")&&d.enableServerStitchedDai?!1:FV(d)&&d.eC&&!d.isAd();v.call(y,d,J)}}; g.a.GW=function(J){J=J===void 0?!1:J;this.hY&&(this.logger.debug("remove media source"),fe2(this.hY),this.EC(J),this.hY.dispose(),this.hY=null)}; g.a.xi=function(){return this.hY}; g.a.vy=function(J,y,v,d){function P(T){try{vlr(A,T,y,v)}catch(M){g.ev(M),T={msi:"1",ename:M&&typeof M==="object"&&"name"in M?String(M.name):void 0},A.X("html5_log_fmt_unplaybable_trigger")&&(T.trg="setmediasrc"),A.handleError(new g.Y6("fmt.unplayable",T,1))}} var A=this;y=y===void 0?!1:y;v=v===void 0?!1:v;JY2(this,d===void 0?!1:d);this.hY=J;this.q$()&&sZ(this.hY)==="open"?P(this.hY):hIR(this.hY,P)}; g.a.ZX=function(J){this.logger.debug("onNeedKeyInfo");this.AE.set(J.initData,J);this.e1&&(this.e1.ZX(J),this.X("html5_eme_loader_sync")||this.AE.remove(J.initData))}; g.a.MN=function(J){this.videoData.gA=g.cW("auto",J,!1,"u");d9(this)}; g.a.Nq=function(J){var y=J.reason,v=J.C.info,d=J.token,P=J.videoId,A=this.M4,T=this.videoData;if(v!==T.W){var M=!T.W;T.W=v;y!=="m"&&y!=="t"&&(y=M?"i":"a");var n=y==="m"||y==="t";this.iA.experiments.BX("html5_refactor_sabr_audio_format_selection_logging")?this.K3=new fbU(T,v,y,"",d,P):(y=new fbU(T,v,y,"",d),A.qoe&&(A=A.qoe,v=g.yo(A.provider),G9U(A,v,y)));this.publish("internalaudioformatchange",T,!M&&n)}this.Sn.Nq(J.C.index)}; g.a.rB=function(J){this.publish("localmediachange",J)}; g.a.S5=function(J){J=J===void 0?{}:J;var y;(y=this.loader)==null||y.S5(this.iA,x9(this.videoData),J)}; g.a.Jw=function(){return this.EY.Jw()}; g.a.v1=function(J){this.gi(new g.Y6("staleconfig",{reason:J}))}; g.a.handleError=function(J){this.EY.handleError(J)}; g.a.HG=function(){return this.EY.HG()}; g.a.wT=function(J){this.Sn.wT(J)}; g.a.qy=function(J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;var v=this,d,P,A;return g.f(function(T){if(T.T==1){v.loader&&v.loader.Rn();v.loader&&v.loader.tY()&&MX(v);if(v.X("html5_enable_vp9_fairplay")&&v.jz()&&(d=v.videoData.C)!=null)for(var M in d.C)d.C.hasOwnProperty(M)&&(d.C[M].C=null,d.C[M].J=!1);v.i6(Dq(v.playerState,2048));v.publish("newelementrequired");return J?g.h(T,T6(v),2):T.Qk(2)}v.videoData.jH()&&((P=v.loader)==null?0:P.wj)&&!zc(v)&&((A=v.isAtLiveHead())&&bV(v.videoData)?v.seekTo(Infinity, {jn:"videoPlayer_getNewElement"}):v.videoData.L0&&v.loader&&(M=v.loader,M.mR.jH&&(M.mR.L0||M.mR.W||M.mR.isPremiere?(M.seek(0,{jn:"loader_resetSqless"}),M.videoTrack.G=!0,M.audioTrack.G=!0,M.videoTrack.V=!0,M.audioTrack.V=!0):RU(M.mR)&&v_(M))));y&&v.seekTo(0,{seekSource:105});g.k(v.playerState,8)&&v.playVideo();g.G2(T)})}; g.a.Ze=function(J){this.dj("hgte",{ne:+J});this.videoData.G=!1;J&&this.qy();this.loader&&k7r(this.loader)}; g.a.f7=function(J){this.dj("newelem",{r:J});this.qy()}; g.a.pauseVideo=function(J){J=J===void 0?!1:J;if((g.k(this.playerState,64)||g.k(this.playerState,2))&&!J)if(g.k(this.playerState,8))this.i6(GK(this.playerState,4,8));else if(this.CJ())Pe(this);else return;g.k(this.playerState,128)||(J?this.i6(Dq(this.playerState,256)):this.i6(GK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.fF(this.videoData)&&this.loader&&S_(this,!1)}; g.a.stopVideo=function(){this.pauseVideo();this.loader&&(S_(this,!1),this.loader.xH())}; g.a.r0=function(J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;if(this.q$()&&y){var v;(v=this.mediaElement)==null||v.r0()}else{var d;(d=this.mediaElement)==null||d.stopVideo()}Vi(this);MX(this);g.k(this.playerState,128)||(J?this.i6(cd(cd(Dq(this.playerState,4),8),16)):this.i6(gj(this.playerState)));this.videoData.videoId&&this.iA.WX.remove(this.videoData.videoId)}; g.a.seekTo=function(J,y){y=y===void 0?{}:y;this.logger.debug(function(){return"SeekTo "+J+", "+JSON.stringify(y)}); g.k(this.playerState,2)&&Pe(this);y.PeY&&this.i6(Dq(this.playerState,2048));y.seekSource!==58&&y.seekSource!==60||!this.X("html5_update_vss_during_gapless_seeking")||t_6(this.M4,y.seekSource);this.Sn.seekTo(J,y);this.QQ.sync()}; g.a.Fe=function(J){this.Ql.W.T=(0,g.GC)();g.k(this.playerState,32)||(this.i6(Dq(this.playerState,32,J==null?void 0:J.seekSource)),g.k(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.cq()}; g.a.xP=function(J){J=J==null?void 0:J.seekSource;g.k(this.playerState,32)?(this.i6(GK(this.playerState,16,32,J)),this.publish("endseeking")):g.k(this.playerState,2)||this.i6(Dq(this.playerState,16,J));J=this.Ql.W;var y=this.videoData,v=this.playerState.isPaused();if(y.clientPlaybackNonce&&!isNaN(J.C)){if(Math.random()<.01){v=v?"pbp":"pbs";var d={startTime:J.C};y.L&&(d.cttAuthInfo={token:y.L,videoId:y.videoId});Fh("seek",d);g.bx({clientPlaybackNonce:y.clientPlaybackNonce},"seek");isNaN(J.T)||Ge("pl_ss", J.T,"seek");Ge(v,(0,g.GC)(),"seek")}J.reset()}}; g.a.T3=function(J){this.xP(J)}; g.a.Sg=function(){this.publish("SEEK_COMPLETE")}; g.a.Rl=function(J){var y=this.mQ,v=this.videoData.clientPlaybackNonce,d=this.playerType;if(J.scope===4){var P=J.type;if(P){var A=y.TI(),T=A.getVideoData().clientPlaybackNonce;d===1&&(T=v);if(d=QSR(y,T)){if(v=d.getVideoData())J.writePolicy===2&&v.sabrContextUpdates.has(P)||(J.sendByDefault&&v.YB.add(P),v.sabrContextUpdates.set(P,J)),y.X("html5_enable_t1_enf_on_sabr")&&(J=P===5,P=MFR(v.playerResponse),J?(J=P?1:0,dm(J,"m.p_",{}),Xa("MBSTAT",J)):J=1,J===0&&y.Ly.Rf("onAbnormalityDetected"))}else A.dj("scuset", {ncpf:"1",ccpn:T,crcpn:v})}else g.ev(Error("b/380308491: contextUpdateType is undefined"))}}; g.a.Ds=function(){if(this.playerType===2)return this.mQ.Ds("")}; g.a.getCurrentTime=function(J){return this.Sn.getCurrentTime(J===void 0?!1:J)}; g.a.Gb=function(){return this.Sn.Gb()}; g.a.D8=function(){return this.Sn.D8()}; g.a.rL=function(){return this.D8()}; g.a.x6=function(){return this.Sn.x6()}; g.a.getPlaylistSequenceForTime=function(J){return this.videoData.getPlaylistSequenceForTime(J-this.Vl())}; g.a.LN=function(){var J=NaN;this.mediaElement&&(J=this.mediaElement.LN());return J>=0?J:this.getCurrentTime()}; g.a.T4=function(){var J;return((J=this.videoData.C)==null?0:J.T4)?this.videoData.C.T4(this.getCurrentTime()-this.Vl()):this.mediaElement&&(J=this.mediaElement.kW())&&(J=J.getTime(),!isNaN(J))?J/1E3+this.getCurrentTime():NaN}; g.a.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Vl():this.uJ()?this.uJ():0}; g.a.Gz=function(){var J=new DXm;if(this.loader){var y=this.iA.schedule,v=this.iA.SH();v=v===void 0?!1:v;J.Yv=y.AY;J.gt=y.Vk;J.bandwidthEstimate=oK(y);if(v){v=(y.B.Po()*1E3).toFixed();var d=(y.If.Po()*1E3).toFixed(),P=qe(y).toFixed(2),A=((y.G.Po()||0)*1E9).toFixed(2),T=y.J.Po().toFixed(0),M=y.cX.Po().toFixed(0),n=y.K.percentile(.5).toFixed(2),Y=y.K.percentile(.92).toFixed(2),S=y.K.percentile(.96).toFixed(2),V=y.K.percentile(.98).toFixed(2);y.C?y.C.reset():y.C=new DK;y.C.add(y.wj);y.C.add(y.interruptions.length); for(var L=0,t=y.interruptions.length-1;t>=0;t--){var W=y.interruptions[t];y.C.add(W-L);L=W}L=0;for(t=y.W.length-1;t>=0;t--){W=y.W[t];var c=W.stamp/36E5;y.C.add(c-L);L=c;y.C.add(W.net/1E3);y.C.add(W.max)}y=y.C.a5();J.C={ttr:v,ttm:d,d:P,st:A,bw:T,abw:M,v50:n,v92:Y,v96:S,v98:V,"int":y}}DrP(this.loader,J)}else this.mediaElement&&(J.sI=t8(this.mediaElement));J.Yv=this.Yv;J.gt=this.gt;J.J=this.isAtLiveHead()&&this.isPlaying()?h5H(this):NaN;return J}; g.a.Xb=function(J,y){this.gt+=J;this.Yv+=y}; g.a.vE=function(){return this.mediaElement?g.fF(this.videoData)?1:iV(this.videoData)?this.isAtLiveHead()||this.wd()?1:this.Sn.vE():this.mediaElement.vE():0}; g.a.n1=function(){var J=this.Eo,y=J1(J,"bandwidth"),v=J1(J,"bufferhealth"),d=J1(J,"livelatency"),P=J1(J,"networkactivity"),A=wI(J,"bandwidth"),T=wI(J,"bufferhealth"),M=wI(J,"livelatency");J=wI(J,"networkactivity");var n=this.Ye(),Y=n.droppedVideoFrames;n=n.totalVideoFrames;var S=this.getCurrentTime();if(this.e1){var V="IT/"+(this.e1.C.getInfo()+"/"+jn(this.Xf()));V+="/"+this.e1.getInfo()}else V="";var L=this.isGapless(),t=this.bv(),W=this.Mf(),c=g.sF(this),b=this.getPlayerState(),B=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var q=0;var C="";if(this.Rk){if(this.Rk.LT){C="D,";break a}q=this.Rk.O2;C=this.Rk.bJ.substring(0,4)}q>0?(q="AD"+q+", ",C&&(q+=C+", "),C=q):C=""}return{TQ:A,A1:T,currentTime:S,dZ:V,droppedVideoFrames:Y,isGapless:L,bv:t,xY:W,eT:y,Fw:v,n_:d,iK:P,C_:M,XP:J,vC:c,playerState:b,U1:B,Wj:C,totalVideoFrames:n}}; g.a.P$=function(J){var y={};if(J===void 0?0:J){Object.assign(y,this.M4.P$());this.mediaElement&&(Object.assign(y,this.mediaElement.P$()),J=this.Ye(),y.dvf=J.droppedVideoFrames,y.tvf=J.totalVideoFrames);this.loader&&Object.assign(y,this.loader.P$());this.e1&&(y.drm=JSON.stringify(this.e1.P$()));y.state=this.playerState.state.toString(16);g.k(this.playerState,128)&&(y.debug_error=JSON.stringify(this.playerState.Zx));this.Zp()&&(y.prerolls=this.hQ.join(","));this.videoData.Lf&&(y.ismb=this.videoData.Lf); this.videoData.latencyClass!=="UNKNOWN"&&(y.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(y.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)y.is_mosaic=1;this.videoData.cotn&&(y.is_offline=1,y.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(y.playerResponseCpn=this.videoData.playerResponseCpn);this.mQ.isOrchestrationLeader()&&(y.leader=1);this.videoData.isLivePlayback&& (this.videoData.C&&ul(this.videoData.C)&&(y.segduration=ul(this.videoData.C)),J=this.Sn,y.lat=J.B?fhP(J.B.W):0,y.liveutcstart=this.videoData.liveUtcStartSeconds);y.relative_loudness=this.videoData.xj.toFixed(3);if(J=g.sF(this))y.optimal_format=J.video.qualityLabel;y.user_qual=Yi();y.release_version=l[36]}y.debug_videoId=this.videoData.videoId;return y}; g.a.addCueRange=function(J){this.qm([J])}; g.a.removeCueRange=function(J){this.QQ.FJ([J])}; g.a.KB=function(){this.QQ.sync()}; g.a.v9=function(J,y){return this.QQ.v9(J,y)}; g.a.qm=function(J,y){this.QQ.PF(J,y)}; g.a.AG=function(J){this.QQ.FJ(J)}; g.a.uv=function(){return this.QQ.uv()||[]}; g.a.C7=function(){return this.aC}; g.a.Fz=function(){return this.visibility.Fz()}; g.a.Wz=function(){this.mediaElement&&this.mediaElement.Wz()}; g.a.JIK=function(){lP(this)}; g.a.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.a.Ev=function(){g.j$(this.Pv)}; g.a.ulf=function(){this.cq();this.publish("onLoadProgress",this.vE())}; g.a.MV=function(J){var y=J.target.qF();if(this.mediaElement&&this.mediaElement.qF()&&this.mediaElement.qF()===y){VEm(this,J.type);switch(J.type){case "error":var v=a0(this.mediaElement)||"",d=this.mediaElement.ge();if(v==="capability.changed"){this.X("html5_restart_on_capability_change")?(this.dj("capchg",{msg:d}),this.qy(!0)):T6(this);return}if(this.mediaElement.hasError()&&(d={msg:d},this.X("html5_log_fmt_unplaybable_trigger")&&(d.trg="elementevt"),$$m(this.EY,v,d)))return;if(this.isBackground()&& this.mediaElement.R5()===4){this.r0();nZ(this,"unplayable");return}break;case "durationchange":v=this.mediaElement.getDuration();isFinite(v)&&(!this.hY||v>0)&&v!==1&&this.i8(v);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());B92(this.QQ);this.M4.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":tER(this);this.publish("onLoadedMetadata");AYR(this);v=this.T4();this.videoData.Er&&(this.videoData.Er=v);break;case "loadstart":AYR(this); break;case "progress":case "suspend":this.qV.wb();break;case "playing":this.Ql.Ja("plev");this.OU&&!zc(this)&&(this.OU=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{jn:"videoplayer_onPlaying"})));break;case "timeupdate":v=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.yw()===0;if(v&&(!this.MX||d))return;this.MX=this.MX||!!this.mediaElement.getCurrentTime();PCm(this);this.cq();if(!this.mediaElement||this.mediaElement.qF()!== y)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.NL().length>0&&this.mediaElement.DW().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.X("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.yw()>2||!this.mediaElement.isSeeking()&&zt(this.mediaElement.DW(),this.mediaElement.getCurrentTime()))&&(v=this.mediaElement.P$(),v.bh=t8(this.mediaElement).toFixed(3), this.dj("uwe",v));break;case "resize":tER(this);this.videoData.T&&this.videoData.T.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.iP&&g.k(this.playerState,8)&&!g.k(this.playerState,1024)&&this.getCurrentTime()===0&&g.tW){nZ(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.qF()===y){aCH(this.Sn,J);this.publish("videoelementevent",J);y=this.playerState;var P=this.X$,A=this.mediaElement;v=this.iA.experiments; d=this.videoData.clientPlaybackNonce;if(!g.k(y,128)){var T=y.state;A=A?A:J.target;var M=A.getCurrentTime();if(!g.k(y,64)||J.type!=="ended"&&J.type!=="pause"){var n=A.getDuration();n=A.isEnded()||M>1&&Math.abs(M-n)<1.1;var Y=J.type==="pause"&&A.isEnded();M=J.type==="ended"||J.type==="waiting"||J.type==="timeupdate"&&!g.k(y,4)&&!Iy(P,M);if(Y||n&&M)A.A2()>0&&A.qF()&&(T=14);else switch(J.type){case "error":a0(A)&&(T|=128);break;case "pause":g.k(y,256)?(T^=256)||(T=64):g.k(y,32)||g.k(y,2)||g.k(y,4)||(T= 4,g.k(y,1)&&g.k(y,8)&&(T|=1));break;case "playing":M=T;T=(T|8)&-1093;M&4?(T|=1,OZ(P,A,!0)):Iy(P,A.getCurrentTime())&&(T&=-2);g.k(y,1)&&OZ(P,A)&&(T|=1);break;case "seeking":T|=16;g.k(y,8)&&(T|=1);T&=-3;break;case "seeked":T&=-17;OZ(P,A,!0);break;case "waiting":g.k(y,2)||(T|=1);OZ(P,A);break;case "timeupdate":M=g.k(y,16),n=g.k(y,4),(g.k(y,8)||M)&&!n&&Iy(P,A.getCurrentTime())&&(T=8),OZ(P,A)&&(T|=1)}}P=T;T=null;P&128&&(T=J.target,A=a0(T),M=1,A?(A==="capability.changed"&&(M=2),n="GENERIC_WITHOUT_LINK", Y=T.P$(),Y.mediaElem="1",v.BX("html5_log_fmt_unplaybable_trigger")&&(Y.trg="melem"),/AUDIO_RENDERER/.test(T.ge())&&(n="HTML5_AUDIO_RENDERER_ERROR"),T={errorCode:A,errorMessage:g.Xx[n]||"",wL:n,M_:sy(Y),GB:M,cpn:y.Zx?y.Zx.cpn:""}):T=null,T&&(T.cpn=d));y=gj(y,P,T)}!g.k(this.playerState,1)&&g.k(y,1)&&SMT(this,"evt"+J.type);this.i6(y)}}}; g.a.IBx=function(J){J=J.C.availability==="available";J!==this.aC&&(this.aC=J,this.publish("airplayavailabilitychange"))}; g.a.QfB=function(){var J=(0,g.GC)(),y=this.mediaElement.Fz();this.dj("airplay",{ia:y});!y&&!isNaN(this.lE)&&J-this.lE<2E3||(this.lE=J,y!==this.Fz()&&(J=this.visibility,J.C!==y&&(J.C=y,J.ih()),this.dj("airplay",{rbld:y}),this.aL()),this.publish("airplayactivechange"))}; g.a.DZ=function(J){if(this.loader){var y=this.loader,v=y.J,d=y.getCurrentTime(),P=Date.now()-v.K;v.K=NaN;v.dj("sdai",{adfetchdone:J,d:P});J&&!isNaN(v.G)&&v.T!==3&&iJ(v.loader,d,v.G,v.L);v.policy.T?v.V=NaN:v.W=NaN;fg(v,4,v.T===3?"adfps":"adf");E4(y)}}; g.a.YN=function(){g.tN(this.kQ);this.yK.stop();this.videoData.AY=!0;this.iA.xf=!0;this.iA.yl=0;var J=this.EY;if(J.videoData.T){var y=J.qx.V,v=J.videoData.T.PX;y.W.has(v)&&(y.W.delete(v),y.T=!0)}J.C.stop();this.Ne();g.k(this.playerState,8)&&this.i6(cd(this.playerState,65));this.aM=!1;J=this.M4;J.C&&y16(J.C);J.T&&(J=J.T,y=g.yo(J.provider),J.C<0&&(J.C=y,J.delay.start()),J.T=y,J.W=y);g.zA(this.gG);this.publish("playbackstarted");(J=g.vq("yt.scheduler.instance.clearPriorityThreshold"))?J():Zu(0)}; g.a.Ne=function(){var J=this.mQ.di(),y={},v={};!jq("pbs",this.Ql.timerName)&&Sq.measure&&Sq.getEntriesByName&&(Sq.getEntriesByName("mark_nr")[0]?Po6("mark_nr"):Po6());J.videoId&&(y.videoId=J.videoId);J.clientPlaybackNonce&&!this.X("web_player_early_cpn")&&(y.clientPlaybackNonce=J.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(v.isPausedOnLoad=!0);v.itag=J.T?Number(J.T.itag):-1;J.gr&&(v.preloadType=String(this.IE?2:1));y.liveStreamMode=y3V[CF(J)];y.playerInfo=v;this.Ql.infoGel(y); if(this.loader){J=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(J.J&&(y=window.performance.getEntriesByName(J.J),y.length&&(y=y[0],J.tick("vri",y.fetchStart),J.tick("vdns",y.domainLookupEnd),J.tick("vreq",y.requestStart),J.tick("vrc",y.responseEnd))),J.T&&(y=window.performance.getEntriesByName(J.T),y.length&&(y=y[0],J.tick("ari",y.fetchStart),J.tick("adns",y.domainLookupEnd),J.tick("areq",y.requestStart),J.tick("arc",y.responseEnd))));J=J.ticks;for(var d in J)J.hasOwnProperty(d)&& this.Ql.tick(d,J[d])}}; g.a.cq=function(J){var y=this;J=J===void 0?!1:J;if(this.mediaElement&&this.videoData){lCx(this.Sn,this.isPlaying());var v=this.getCurrentTime();!this.loader||g.k(this.playerState,4)&&g.fF(this.videoData)||g.k(this.playerState,32)&&gC(this.videoData)||jsP(this.loader,v);v>5&&(this.Sn.J=v);var d=g.Qn();d?g.px.yI(this.KU):g.LX(this.KU);var P=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!P||Mr(this.videoData))&&!g.k(this.playerState,128)){var A=function(){if(y.mediaElement&&!g.k(y.playerState, 128)){y.iA.SH()&&VEm(y,"pfx");var T=y.getCurrentTime();y.X("html5_buffer_underrun_transition_fix")&&(T-=y.Vl());var M=t8(y.mediaElement),n=g.k(y.playerState,8),Y=Iy(y.X$,T),S=KtR(y.X$,T,(0,g.GC)(),M);n&&Y?y.i6(cd(y.playerState,1)):n&&S?(n=y.getDuration(),Y=bV(y.videoData),n&&Math.abs(n-T)<1.1?(y.dj("setended",{ct:T,bh:M,dur:n,live:Y}),y.mediaElement.eI()?(y.logger.debug("seek to 0 because of looping"),y.seekTo(0,{jn:"videoplayer_loop",seekSource:37})):y.D_()):(y.playerState.isBuffering()||SMT(y,"progress_fix"), y.i6(Dq(y.playerState,1)))):(n&&!Y&&!S&&T>0&&(n=(Date.now()-y.kN)/1E3,Y=y.getDuration(),T>Y-1&&y.dj("misspg",{t:T.toFixed(2),d:Y.toFixed(2),r:n.toFixed(2),bh:M.toFixed(2)})),y.playerState.isPaused()&&y.playerState.isBuffering()&&t8(y.mediaElement)>5&&y.i6(cd(y.playerState,1)));y.cq()}}; this.mediaElement.NL().length===0?this.KU=d?g.px.Rd(A,100):g.S3(A,100):this.KU=d?g.px.Rd(A,500):g.S3(A,500)}this.videoData.ON=v;!J&&this.isPlaying()&&lO3(this);Jac(this.eW,this.Gg,this.Pq(),this.isBackground())&&d9(this);this.publish("progresssync",J);P&&Mr(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.a.wh=function(){this.q1("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.a.Mf=function(){return this.M4.Mf()}; g.a.Bs=function(){return this.loader?this.loader.Bs():oK(this.iA.schedule,!0)}; g.a.i6=function(J){if(!g.bh(this.playerState,J)){this.logger.debug(function(){return"Setting state "+J.toString()}); var y=new g.lL(J,this.playerState);this.playerState=J;LRm(this);var v=!this.jk.length;this.jk.push(y);var d=this.mediaElement&&this.mediaElement.isSeeking();g.na(y,1)&&this.loader&&Kmv(this.loader);d=y.oldState.state===8&&!d;g.na(y,1)&&d&&g.k(this.playerState,8)&&!g.k(this.playerState,64)&&this.loader&&(zRm(this.loader),this.mediaElement&&t8(this.mediaElement)>=5&&ZPH(this.eW,this.Gg)&&d9(this));(d=g.Zo(this.iA.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.k(J,1)&&(g.k(J,8)||g.k(J, 16))?this.UL.start(d):this.UL.stop();(Mu(y,8)<0||g.na(y,1024))&&this.yK.stop();!g.na(y,8)||this.videoData.AY||g.k(y.state,1024)||this.yK.start();g.k(y.state,8)&&Mu(y,16)<0&&!g.k(y.state,32)&&!g.k(y.state,2)&&this.playVideo();g.k(y.state,2)&&iV(this.videoData)&&(this.i8(this.getCurrentTime()),this.cq(!0));g.na(y,2)&&(this.iW(!0),this.iA.SH()&&this.X("html5_sabr_parse_live_metadata_playback_boundaries")&&gC(this.videoData)&&this.videoData.C&&(d={minst:""+this.videoData.C.cH,cminst:""+(this.videoData.C.Fl()+ this.Vl()),maxst:""+this.videoData.C.sx,hts:""+this.videoData.C.Cy,cmaxst:""+(this.videoData.C.uJ()+this.Vl())},this.dj("sabrSeekableBoundaries",d)));g.na(y,128)&&this.r0();this.videoData.C&&this.videoData.isLivePlayback&&!this.Kc&&(Mu(y,8)<0?Bjx(this.videoData.C):g.na(y,8)&&this.videoData.C.resume());A2r(this.Sn,y);WuP(this.M4,y);if(v&&!this.tY())try{for(var P=g.D(this.jk),A=P.next();!A.done;A=P.next()){var T=A.value;qFj(this.QQ,T);this.publish("statechange",T)}}finally{this.jk.length=0}}}; g.a.EA=function(){this.Ql.tick("qoes")}; g.a.xw=function(){this.Sn.xw()}; g.a.PS=function(J,y,v,d){a:{var P=this.EY;d=d===void 0?"LICENSE":d;v=v.substring(0,256);var A=SA(y);J==="drm.keyerror"&&this.e1&&this.e1.T.keys.length>1&&P.W<96&&(J="drm.sessionlimitexhausted",A=!1);var T=P.qx.experiments.BX("html5_retry_on_drm_unavailable"),M=P.qx.experiments.BX("html5_retry_on_drm_key_error"),n=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(T&&J==="drm.unavailable"||M&&J==="drm.keyerror"&&!v.match(n))P.gi("qoe.restart",{retryOnDrmError:1,e:J,detail:v}),P.lA.qy(!0);else{if(A)if(P.videoData.T&& P.videoData.T.video.isHdr())U$x(P,J);else{if(P.lA.q1(J,y,d,v),BLP(P,{detail:v}))break a}else P.gi(J,{detail:v});J==="drm.sessionlimitexhausted"&&(P.dj("retrydrm",{sessionLimitExhausted:1}),P.W++,YMR(P.lA))}}}; g.a.d4W=function(){var J=this,y=g.Zo(this.iA.experiments,"html5_license_constraint_delay"),v=ZZ();y&&v?(y=new g.Kx(function(){J.dS();lP(J)},y),g.X(this,y),y.start()):(this.dS(),lP(this))}; g.a.J3=function(J){this.publish("heartbeatparams",J)}; g.a.mT=function(J){this.dj("keystatuses",vbc(J));var y="auto",v=!1;this.videoData.T&&(y=this.videoData.T.video.quality,v=this.videoData.T.video.isHdr());a:{switch(y){case "highres":case "hd2880":y="UHD2";break;case "hd2160":case "hd1440":y="UHD1";break;case "hd1080":case "hd720":y="HD";break;case "large":case "medium":case "small":case "light":case "tiny":y="SD";break;default:y="";break a}v&&(y+="HDR")}y=lz(J)?MR(J,y):J.W.includes(y);if(this.X("html5_enable_vp9_fairplay")){if(v)if(J.G){var d;if((d= this.e1)==null?0:Pl(d.C))if((v=this.e1)==null)v=0;else{for(var P=d=void 0,A=g.D(v.T.values()),T=A.next();!T.done;T=A.next())T=T.value,d||(d=PTR(T,"SD")),P||(P=PTR(T,"AUDIO"));v.cO({sd:d,audio:P});v=d==="output-restricted"||P==="output-restricted"}else v=!y;if(v){this.dj("drm",{dshdr:1});U$x(this.EY);return}}else{this.videoData.Js||(this.videoData.Js=!0,this.dj("drm",{dphdr:1}),this.qy(!0));return}var M;if((M=this.e1)==null?0:Pl(M.C))return}else if(M=J.G&&y,v&&!M){U$x(this.EY);return}y||MR(J,"AUDIO")&& MR(J,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),J=vbc(J),this.fl?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.X("html5_report_fatal_drm_restricted_error_killswitch")||this.q1("drm.keyerror",2,void 0,"info."+J)):(this.fl=!0,this.gi(new g.Y6("qoe.restart",Object.assign({},{retrydrm:1},J))),d9(this),YMR(this)))}; g.a.TpK=function(){if(!this.videoData.AY&&this.mediaElement&&!this.isBackground()){var J="0";this.mediaElement.yw()>0&&t8(this.mediaElement)>=5&&this.videoData.J&&this.videoData.J.C&&(this.i6(Dq(this.playerState,1)),SMT(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),J="1");LRm(this);var y=this.videoData.J;J={restartmsg:J,mfmt:!tH(this.videoData),mdrm:!(!(y&&y.videoInfos&&y.videoInfos.length&&y.videoInfos[0].E8)||this.e1),mfmtinfo:!this.videoData.T,prerolls:this.Zp()?this.hQ.join(","): "0"};if(this.e1){y=this.e1;if(y.T.size<=0){var v="ns;";y.K||(v+="nr;");y=v+="ql."+y.J.length}else y=vbc(y.T.values().next().value),y=sy(y);J.drmp=y}var d;Object.assign(J,((d=this.loader)==null?void 0:d.P$())||{});var P;Object.assign(J,((P=this.mediaElement)==null?void 0:P.P$())||{});this.M4.gi("qoe.start15s",sy(J));this.publish("loadsofttimeout")}}; g.a.i8=function(J){this.videoData.lengthSeconds!==J&&(this.videoData.lengthSeconds=J,lP(this))}; g.a.iW=function(J,y){var v=this;J=J===void 0?!1:J;if(!this.Fa)if(jq("att_s","player_att")||md("att_s",void 0,"player_att"),this.X("use_rta_for_player"))(function(){var P,A,T,M;return g.f(function(n){switch(n.T){case 1:if(!(P=J)){n.Qk(2);break}return g.h(n,g.$Dv(),3);case 3:P=!n.C;case 2:if(P)return n.return();g.bR(n,4);A=OZH(v.M4);if(!A)throw Error();T={};return g.h(n,g.rp3((T.cpn=v.videoData.clientPlaybackNonce,T.encryptedVideoId=v.videoData.videoId||"",T),3E4),6);case 6:M=n.C;if(v.Fa)throw Error(); if(!M.challenge)throw g.ev(Error("Not sending attestation ping; no attestation challenge string")),Error();v.Fa=!0;var Y=[M.challenge];M.error?Y.push("r1c="+M.error):M.webResponse&&Y.push("r1a="+M.webResponse);var S;((S=M.adblockReporting)==null?void 0:S.reportingStatus)!==void 0&&Y.push("r6a="+M.adblockReporting.reportingStatus);var V;((V=M.adblockReporting)==null?void 0:V.broadSpectrumDetectionResult)!==void 0&&Y.push("r6b="+M.adblockReporting.broadSpectrumDetectionResult);A(Y.join("&"));md("att_f", void 0,"player_att");g.ex(n,0);break;case 4:g.BP(n),md("att_e",void 0,"player_att"),g.G2(n)}})})().then(function(){y==null||y()}); else{var d=new g.uoP(this.videoData);if("c1a"in d.El&&!g.Qv.isInitialized()){md("att_wb",void 0,"player_att");this.JU===2&&Math.random()<.01&&g.ev(Error("Botguard not available after 2 attempts"));if(J)return;if(this.JU<5){g.zA(this.AU);this.JU++;return}}(d=g.HA3(d))?(md("att_f",void 0,"player_att"),xXd(this.M4,d),this.Fa=!0):md("att_e",void 0,"player_att")}}; g.a.HO=function(J){J=J===void 0?!1:J;return bV(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.wd()||g.fF(this.videoData))?this.getCurrentTime():this.uJ(J)}; g.a.GU=function(){return this.Fl()}; g.a.uJ=function(J){return this.Sn.uJ(J===void 0?!1:J)}; g.a.Fl=function(){return this.Sn.Fl()}; g.a.Vl=function(){return this.Sn?this.Sn.Vl():0}; g.a.getStreamTimeOffset=function(){return this.Sn?this.Sn.getStreamTimeOffset():0}; g.a.O5=function(){var J=0;this.iA.X("web_player_ss_media_time_offset")&&(J=this.getStreamTimeOffset()===0?this.Vl():this.getStreamTimeOffset());return J}; g.a.setPlaybackRate=function(J){var y;this.playbackRate!==J&&X_T(this.eW,(y=this.videoData.J)==null?void 0:y.videoInfos)&&(this.playbackRate=J,d9(this));this.playbackRate=J;this.mediaElement&&this.mediaElement.setPlaybackRate(J)}; g.a.getPlaybackRate=function(){return this.playbackRate}; g.a.getPlaybackQuality=function(){var J="unknown";if(this.videoData.T&&(J=this.videoData.T.video.quality,J==="auto"&&this.mediaElement)){var y=this.Ue();y&&y.videoHeight>0&&(J=cz(y.videoWidth,y.videoHeight))}return J}; g.a.isHdr=function(){return!!(this.videoData.T&&this.videoData.T.video&&this.videoData.T.video.isHdr())}; g.a.sendVideoStatsEngageEvent=function(J,y){var v=this.M4;v.C?(v=BM(v.C,"engage"),v.AY=J,v.send(y)):y&&y()}; g.a.I5=function(J){return this.M4.I5(J)}; g.a.isAtLiveHead=function(J,y){y=y===void 0?!1:y;return bV(this.videoData)&&(this.dY||y)?this.Sn.isAtLiveHead(J):!1}; g.a.Mk=function(){var J=this.uJ(),y=this.getCurrentTime(),v;(v=!bV(this.videoData))||(v=this.Sn,v=!(v.C&&v.C.J));return v||this.wd()||isNaN(J)||isNaN(y)?0:Math.max(0,J-y)}; g.a.R0=function(J){(this.dY=J)||this.yK.stop();this.videoData.C&&(J?this.videoData.C.resume():Bjx(this.videoData.C));if(this.loader){var y=this.videoData.X("html5_disable_preload_for_ssdai_with_preroll")&&this.aB()&&this.videoData.isLivePlayback;J&&!y?this.loader.resume():S_(this,!0)}g.k(this.playerState,2)||J?g.k(this.playerState,512)&&J&&this.i6(cd(this.playerState,512)):this.i6(Dq(this.playerState,512));y=this.M4;y.qoe&&(y=y.qoe,g.Oh(y,g.yo(y.provider),"stream",[J?"A":"I"]))}; g.a.R6=function(J){this.M4.gi("player.exception",sy({n:J.name,m:J.message}))}; g.a.Cp=PP(22);g.a.FS=PP(51);g.a.D5=function(J){this.M4.D5(J)}; g.a.d2=function(J){this.M4.d2(J)}; g.a.uc=function(J){this.M4.uc(J)}; g.a.Dx=PP(28);g.a.PK=PP(34);g.a.HM=function(J){this.M4.HM(J)}; g.a.o6=function(){this.dj("hidden",{},!0)}; g.a.Ye=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.a.nU=function(){return this.loader?this.loader.nU():!0}; g.a.setLoop=function(J){this.loop=J;this.mediaElement&&!g.Sb(this.iA)&&this.mediaElement.setLoop(J)}; g.a.eI=function(){return this.mediaElement&&!g.Sb(this.iA)?this.mediaElement.eI():this.loop}; g.a.Vo=function(J){this.dj("timestamp",{o:J.toString()});this.Sn.Vo(J)}; g.a.I_=function(J){this.Ql.tick(J)}; g.a.Tr=function(J){return this.Ql.Tr(J)}; g.a.Ja=function(J){this.Ql.Ja(J)}; g.a.dj=function(J,y,v){this.M4.dj(J,y,v===void 0?!1:v)}; g.a.jE=function(J,y,v){this.M4.dj(J,y,v===void 0?!1:v)}; g.a.gi=function(J){this.M4.gi(J.errorCode,sy(J.details));J=J.errorCode;if(this.videoData.isLivePlayback&&(J==="qoe.longrebuffer"||J==="qoe.slowseek")||J==="qoe.restart"){J=this.loader?KOP(this.loader.videoTrack):{};var y,v;this.dj("lasoe",Object.assign(this.loader?KOP(this.loader.audioTrack):{},(y=this.hY)==null?void 0:(v=y.C)==null?void 0:v.dw()));var d,P;this.dj("lvsoe",Object.assign(J,(d=this.hY)==null?void 0:(P=d.T)==null?void 0:P.dw()))}}; g.a.Z_=function(J,y,v){this.M4.Z_(J,y,v)}; g.a.BU=function(J,y,v,d,P,A,T,M){var n;if((n=this.videoData.C)!=null&&n.isLive){var Y=y.playerType===2?y:J,S=J.videoData.videoId,V=y.videoData.videoId;if(S&&V){n=this.M4;if(n.qoe){var L=n.qoe,t=J.cpn,W=y.cpn,c=Y.videoData.SC,b=L.provider.videoData.clientPlaybackNonce,B=L.provider.videoData.videoId,q=W!==b&&V!==B;b=t!==b&&S!==B;L.reportStats();L.adCpn&&L.adCpn!==t||(L.adCpn=b?t:"",L.aV=b?S:"",L.adFormat=b?c:void 0,IMm(L,A?4:P?2:0,W,V,d),L.reportStats(),L.adCpn=q?W:"",L.aV=q?V:"",L.adFormat=q?c:void 0, IMm(L,A?5:P?3:1,t,S,v),L.reportStats())}v=J.cpn;if(n.J.has(v)){if(P=n.J.get(v),$X(P,!0).send(),rI(P),v!==n.provider.videoData.clientPlaybackNonce){lhr(P);var C;(C=n.C)==null||vPH(C);n.J.delete(v)}}else n.JR=n.provider.videoData.clientPlaybackNonce,n.JR&&n.C&&(n.J.set(n.JR,n.C),$X(n.C).send(),rI(n.C));C=y.cpn;Y=Y.videoData;d-=this.O5();if(n.J.has(C)){d=n.J.get(C);var U=d.J&&isNaN(d.V)?qR(d):NaN;d=T9U(d,!1);isNaN(U)||(d.G=U);d.send()}else d=gPR(n,n.provider,Y,d),n.J.set(C,d),M_U(d,new g.lL(Dq(new g.xz, 8),new g.xz)),y16(d),(U=n.C)==null||rI(U);n.JR=C;if(this.X("html5_unify_csi_server_stitched_transition_logging")){if(n=this.Ql,U=y.cpn,d=this.videoData.clientPlaybackNonce,y=y.videoData,J=(J.cpn===d?"video":"ad")+"_to_"+(U===d?"video":"ad"),J!=="video_to_ad"){d=J==="ad_to_video"?void 0:y;Y=d==null?void 0:d.Xx;C={};if(y==null?0:y.L)C.cttAuthInfo={token:y.L,videoId:y.videoId};T&&(C.startTime=T);Fh(J,C);var N,Jc,E;T={targetVideoId:(N=y==null?void 0:y.videoId)!=null?N:"empty_video",targetCpn:U,adVideoId:(Jc= d==null?void 0:d.videoId)!=null?Jc:"empty_video",adClientPlaybackNonce:(E=Y==null?void 0:Y.cpn)!=null?E:d==null?void 0:d.clientPlaybackNonce};Y&&(T.adBreakType=Y.adBreakType,T.adType=Y.adType);g.bx(T,J);xY(n,M,J)}}else N=this.Ql,E=this.videoData.clientPlaybackNonce,Jc=y.videoData,E=(J.cpn===E?"video":"ad")+"_to_"+(y.cpn===E?"video":"ad"),J={},Jc.L&&(J.cttAuthInfo={token:Jc.L,videoId:Jc.videoId}),T&&(J.startTime=T),Fh(E,J),g.bx({targetVideoId:Jc.videoId,targetCpn:y.cpn,isSsdai:!0},E),N.iA.X("html5_enable_ssdai_transition_with_only_enter_cuerange")? T||xY(N,M,E):xY(N,M,E)}}else this.logger.C(360717806,"SSTEvent for nonSS")}; g.a.R9=function(){var J=this.mQ,y=J.RP;J.RP=[];return y}; g.a.Jo=function(J){this.videoData.cA=!0;this.gi(new g.Y6("sabr.fallback",J));this.qy(!0)}; g.a.Vg=function(J,y){this.videoData.o0=!0;if(y===void 0||y)this.gi(new g.Y6("qoe.restart",J)),this.qy(!0);this.videoData.US()&&this.X("html5_reload_caption_on_ssdai_fallback")&&this.mQ.g2()}; g.a.H1=function(J){this.dj("sdai",{aftimeout:J});this.gi(new g.Y6("ad.fetchtimeout",{timeout:J}))}; g.a.XH=function(J,y){this.dj("timelineerror",J);J=new g.Y6("dai.timelineerror",J);y?this.q1("dai.timelineerror",1,"RETRYABLE_ERROR",sy(J.details)):this.gi(J)}; g.a.hB=function(){return g.yo(this.M4.provider)}; g.a.getPlayerSize=function(){return this.Py.getPlayerSize()}; g.a.QH=function(){return this.Py.QH()}; g.a.AR=function(){return this.Ql}; g.a.Zz=function(){return this.mQ.Zz()}; g.a.getVolume=function(){return this.mQ.getVolume()}; g.a.ID=function(){return this.mQ.ID()}; g.a.isMuted=function(){return this.mQ.isMuted()}; g.a.OC=function(){return this.mQ.OC()}; g.a.d3=function(){this.Kc=!0}; g.a.X=function(J){return this.iA.X(J)}; g.a.MS=function(J,y,v,d,P){this.dj("xvt",{m:J,g:y?1:0,tt:v?1:0,np:d?1:0,c:P})}; g.a.D3=function(){var J;(J=this.loader)==null||J.resume()}; g.a.aB=function(){return g.cq(this.hQ,"ad")}; g.a.zS=function(){var J=this.getCurrentTime(),y=J-this.Vl();var v=this.mediaElement?Ey(this.mediaElement.DW()):0;v=Math.floor(Math.max(v-y,0))+100;var d;return((d=this.loader)==null?0:d.zS(y,v))?(this.dj("sdai",{skipad:1,ct:y.toFixed(3),adj:v.toFixed(3)}),gC(this.videoData)&&this.loader.seek(y+v,{seekSource:89,jn:"videoplayer_skipServerStitchedAd"}),O1c(this.Sn,J),!0):!1}; g.a.SH=function(){return this.iA.SH()}; g.a.FK=function(){if(this.X("html5_generate_content_po_token"))return this.videoData.vP||"";this.mQ.n4();return this.iA.TP||""}; g.a.sF=function(){if(this.videoData.videoId)return this.videoData.xt}; g.a.HR=function(){return this.videoData.videoId}; g.a.e$=function(){return this.mQ.Ur}; g.a.mj=function(){return this.aM}; g.a.Fk=function(){return this.mQ.Fk()}; g.a.Lu=function(J,y,v){this.X("html5_report_seek_source_for_utc_seeks")&&this.i6(Dq(this.playerState,16,v));this.Sn.Lu(J,y)}; g.a.R1=function(){this.Sn.R1()}; g.a.Lq=function(J,y){var v=this.X("html5_generate_content_po_token")?this.videoData:void 0;this.mQ.Lq(J,y,v)}; g.a.tE=function(J,y){var v;(v=this.loader)==null||v.tE(J,y)}; g.a.sC=function(){var J=this.xi();return!!J&&J.sC()}; g.a.rT=function(J,y){this.M4.rT(J,y)}; g.a.Nm=function(){return this.M4.Nm()}; g.a.BQ=function(){return this.videoData.bG}; g.a.bv=function(){return this.mQ.bv()}; g.a.CY=function(){return this.mQ.CY(this)}; g.a.Cv=function(){this.z7=!0}; g.a.pU=function(J){var y;(y=this.loader)==null||y.pU(J)}; g.a.aJ=function(){var J;(J=this.loader)==null||J.aJ()};g.x(WRR,A_);g.x(LZ,Sk);LZ.prototype.C=function(J){J&&VP(this,this.S.getLoopVideo());this.S.logVisibility(this.element,J)}; LZ.prototype.logClick=function(){this.S.logClick(this.element)}; LZ.prototype.onLoopChange=function(J){VP(this,J)}; LZ.prototype.T=function(J){this.S.setLoopVideo(J)};g.x(aOv,A_);g.x(x1x,A_);g.a=x1x.prototype;g.a.seekToChapterWithAnimation=function(J){var y=this;if(g.G9(this.api)&&!(J<0)){var v=this.api.getVideoData(),d=v.Xg;if(d&&J=0)return;y=~y;g.Un(this.items,y,0,J);xk(this.menuItems.element,J.element,y)}J.subscribe("size-change",this.w6,this);this.menuItems.publish("size-change")}; g.a.GP=function(J){J.unsubscribe("size-change",this.w6,this);this.tY()||(g.bw(this.items,J),this.menuItems.element.removeChild(J.element),this.menuItems.publish("size-change"))}; g.a.w6=function(){this.menuItems.publish("size-change")}; g.a.focus=function(){for(var J=0,y=0;y1&&g.r9(this)}; g.a.gy=function(){KRd(this);this.zI&&(N_6(this),g.yG(this.element,this.size))}; g.a.Jv=function(){var J=this.C.pop();RDH(this,J,this.C[this.C.length-1],!0)}; g.a.sD=function(J){if(!J.defaultPrevented)switch(J.keyCode){case 27:this.p8();J.preventDefault();break;case 37:this.C.length>1&&this.Jv();J.preventDefault();break;case 39:J.preventDefault()}}; g.a.focus=function(){this.C.length&&this.C[this.C.length-1].focus()}; g.a.JY=function(){g.EH.prototype.JY.call(this);this.L&&this.L.dispose();this.G&&this.G.dispose()};g.x($P,g.Be);$P.prototype.open=function(J,y){this.initialize(J.items)&&this.OS(y,!!y)}; $P.prototype.initialize=function(J){g.mu(this.zg);if(J===void 0||J.length===0)return!1;var y=J.length;J=g.D(J);for(var v=J.next();!v.done;v=J.next())this.Wq(v.value,y--);return!0}; $P.prototype.Wq=function(J,y){J.menuNavigationItemRenderer?Elc(this,J.menuNavigationItemRenderer,y):J.menuServiceItemRenderer&&Qt2(this,J.menuServiceItemRenderer,y)};g.x(o_,Fs);g.a=o_.prototype;g.a.P0=function(J){J.target!==this.dismissButton.element&&J.target!==this.overflowButton.element&&(this.cB(),this.onClickCommand&&this.S.Rf("innertubeCommand",this.onClickCommand))}; g.a.Ed=function(){this.enabled=!1;this.K.hide()}; g.a.KJ=function(){return!!this.C&&this.enabled}; g.a.onVideoDataChange=function(J,y){this.M8(y);if(this.C){this.xK();a:if(!this.isCounterfactual){var v,d,P;this.banner.update({title:(v=this.C)==null?void 0:v.title,subtitle:(d=this.C)==null?void 0:d.subtitle,metadata:(P=this.C)==null?void 0:P.metadataText});var A;this.onClickCommand=g.R((A=this.C)==null?void 0:A.onTap,Bg);var T;if(J=g.R((T=this.C)==null?void 0:T.onOverflow,Bg))this.G=g.R(J,WSC);var M;if((M=this.C)==null?0:M.thumbnailImage){var n,Y;T=((n=this.C)==null?void 0:(Y=n.thumbnailImage)== null?void 0:Y.sources)||[];if(T.length===0)break a;this.thumbnailImage.update({url:T[0].url})}else{var S;if((S=this.C)==null?0:S.thumbnailIconName){var V;this.thumbnailIcon.update({icon:(V=this.C)==null?void 0:V.thumbnailIconName})}}var L;this.shouldShowOverflowButton=!((L=this.C)==null||!L.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.C)==null||!t.shouldHideDismissButton)}var W;this.banner.element.setAttribute("aria-label",((W=this.C)==null?void 0:W.a11yLabel)||"");var c; this.GK=(c=this.C)==null?void 0:c.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;w7r(this)}}; g.a.rYj=function(){this.isVisible=!0;w7r(this)}; g.a.FRx=function(){this.isVisible=!1;w7r(this)}; g.a.Q7=function(){Fs.prototype.Q7.call(this);this.T&&this.S.logVisibility(this.banner.element,this.isVisible)}; g.a.cB=function(){Fs.prototype.cB.call(this,!1);this.T&&this.S.logClick(this.banner.element)}; g.a.qY=function(J){this.L||(this.L=new $P(this.S),g.X(this,this.L));var y,v;if((y=this.G)==null?0:(v=y.menu)==null?0:v.menuRenderer)this.L.open(this.G.menu.menuRenderer,J.target),J.preventDefault()}; g.a.M8=function(){}; g.a.xK=function(){}; g.a.JY=function(){this.S.tI("suggested_action_view_model");Fs.prototype.JY.call(this)};g.x(CZ,o_); CZ.prototype.M8=function(J){var y,v,d;this.productUpsellSuggestedActionViewModel=g.R((y=J.getWatchNextResponse())==null?void 0:(v=y.playerOverlays)==null?void 0:(d=v.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,$7b);var P;if((P=this.productUpsellSuggestedActionViewModel)==null?0:P.content){var A;this.C=g.R((A=this.productUpsellSuggestedActionViewModel)==null?void 0:A.content,VPX)}var T,M;if(this.T=!!((T=this.productUpsellSuggestedActionViewModel)==null?0:(M=T.loggingDirectives)==null? 0:M.trackingParams)){var n,Y;this.S.setTrackingParams(this.banner.element,((n=this.productUpsellSuggestedActionViewModel)==null?void 0:(Y=n.loggingDirectives)==null?void 0:Y.trackingParams)||null)}var S;this.isCounterfactual=!((S=this.productUpsellSuggestedActionViewModel)==null||!S.isCounterfactualServing)}; CZ.prototype.xK=function(){var J=[],y,v=g.D(((y=this.productUpsellSuggestedActionViewModel)==null?void 0:y.ranges)||[]);for(y=v.next();!y.done;y=v.next()){var d=y.value;d&&(y=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(y)||isNaN(d)||J.push(new g.uI(y,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.PF(J)};g.x(JKH,A_);g.x(h1,A_);h1.prototype.onVideoDataChange=function(J,y){var v=this;if(!JQ(y)&&(J==="newdata"&&vrT(this),this.C&&J==="dataloaded")){this.C=!1;var d;BR(mB(Or(this.api.Y(),(d=this.api.getVideoData())==null?void 0:g.ZL(d)),function(P){ML2(v,P)}),function(){v.C=!0})}}; h1.prototype.X1=function(){var J=this;if(g.Sb(this.api.Y())){var y,v=g.xo(this.api.Y(),(y=this.api.getVideoData())==null?void 0:g.ZL(y));return mB(bY(v),function(d){var P=K5();z9(P,d);return J.api.X1(P)})}return bY(this.api.X1())};g.x(g.pZ,g.yP);g.a=g.pZ.prototype;g.a.open=function(){g.qX(this.A9,this.T)}; g.a.CL=function(J){nrd(this);var y=this.options[J];y&&(y.element.setAttribute("aria-checked","true"),this.D1(this.bu(J)),this.J=J)}; g.a.Wn=function(J){g.mu(this.T);for(var y={},v=!1,d=0;d=0?this.C.playbackRate:1}catch(J){return 1}}; g.a.setPlaybackRate=function(J){this.getPlaybackRate()!==J&&(this.C.playbackRate=J);return J}; g.a.eI=function(){return this.C.loop}; g.a.setLoop=function(J){this.C.loop=J}; g.a.canPlayType=function(J,y){return this.C.canPlayType(J,y)}; g.a.isPaused=function(){return this.C.paused}; g.a.isSeeking=function(){return this.C.seeking}; g.a.isEnded=function(){return this.C.ended}; g.a.gw=function(){return this.C.muted}; g.a.Ov=function(J){Oy();this.C.muted=J}; g.a.NL=function(){return this.C.played||No([],[])}; g.a.DW=function(){try{var J=this.C.buffered}catch(y){}return J||No([],[])}; g.a.F2=function(){return this.C.seekable||No([],[])}; g.a.kW=function(){var J=this.C;return J.getStartDate?J.getStartDate():null}; g.a.getCurrentTime=function(){return this.C.currentTime}; g.a.setCurrentTime=function(J){this.C.currentTime=J}; g.a.getDuration=function(){return this.C.duration}; g.a.load=function(){var J=this.C.playbackRate;try{this.C.load()}catch(y){}this.C.playbackRate=J}; g.a.pause=function(){this.C.pause()}; g.a.play=function(){var J=this.C.play();if(!J||!J.then)return null;J.then(void 0,function(){}); return J}; g.a.yw=function(){return this.C.readyState}; g.a.A2=function(){return this.C.networkState}; g.a.R5=function(){return this.C.error?this.C.error.code:null}; g.a.ge=function(){return this.C.error?this.C.error.message:""}; g.a.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.C instanceof window.HTMLVideoElement&&this.C.getVideoPlaybackQuality)return this.C.getVideoPlaybackQuality();if(this.C){var J=this.C,y=J.webkitDroppedFrameCount;if(J=J.webkitDecodedFrameCount)return{droppedVideoFrames:y||0,totalVideoFrames:J}}return{}}; g.a.Fz=function(){return!!this.C.webkitCurrentPlaybackTargetIsWireless}; g.a.Wz=function(){return!!this.C.webkitShowPlaybackTargetPicker()}; g.a.togglePictureInPicture=function(){var J=this.C,y=window.document;window.document.pictureInPictureEnabled?this.C!==y.pictureInPictureElement?J.requestPictureInPicture():y.exitPictureInPicture():x6()&&J.webkitSetPresentationMode(J.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.a.GC=function(){var J=this.C;return new g.N7(J.offsetLeft,J.offsetTop)}; g.a.getSize=function(){return g.vf(this.C)}; g.a.setSize=function(J){g.yG(this.C,J)}; g.a.getVolume=function(){return this.C.volume}; g.a.setVolume=function(J){Oy();this.C.volume=J}; g.a.q9=function(J){this.V[J]||(this.C.addEventListener(J,this.listener),this.V[J]=this.listener)}; g.a.setAttribute=function(J,y){this.C.setAttribute(J,y)}; g.a.removeAttribute=function(J){this.C.removeAttribute(J)}; g.a.hasAttribute=function(J){return this.C.hasAttribute(J)}; g.a.Me=PP(61);g.a.Sr=PP(63);g.a.Lo=PP(65);g.a.Qm=PP(67);g.a.Is=function(){return W1(this.C)}; g.a.oy=function(J){g.d7(this.C,J)}; g.a.Nf=function(J){return g.Kj(this.C,J)}; g.a.nY=function(){return g.gs(document.body,this.C)}; g.a.audioTracks=function(){var J=this.C;if("audioTracks"in J)return J.audioTracks}; g.a.JY=function(){for(var J=g.D(Object.keys(this.V)),y=J.next();!y.done;y=J.next())y=y.value,this.C.removeEventListener(y,this.V[y]);VV.prototype.JY.call(this)}; g.a.DL=function(J){this.C.disableRemotePlayback=J};g.x(EF,g.z);g.x(Zh,g.z);Zh.prototype.show=function(){g.z.prototype.show.call(this);this.Mx();this.Ly.X("html5_enable_moving_s4n_window")&&g.Sb(this.Ly.Y())&&this.B()}; Zh.prototype.hide=function(){g.z.prototype.hide.call(this);this.delay.stop();this.W.stop()}; Zh.prototype.Mx=function(){var J=(0,g.GC)(),y=Dn3(this.Ly);Qi(this.C,y.bandwidth_samples);Qi(this.G,y.network_activity_samples);Qi(this.J,y.live_latency_samples);Qi(this.T,y.buffer_health_samples);var v={};y=g.D(Object.entries(y));for(var d=y.next();!d.done;d=y.next()){var P=g.D(d.value);d=P.next().value;P=P.next().value;this.K[d]!==P&&(v[d]=" "+String(P));this.K[d]=P}this.update(v);J=(0,g.GC)()-J>25?5E3:500;this.delay.start(J)}; Zh.prototype.B=function(){this.L?(this.position+=1,this.position>15&&(this.L=!1)):(--this.position,this.position<=0&&(this.L=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.W.start(2E4)};g.x(bqx,A_);g.x(w9,g.u);w9.prototype.C=function(){var J=(0,g.GC)()-this.startTime;J=Jthis.W[J])&&(this.C=J,yM(this))}; g.a.onCueRangeExit=function(J){var y=pwd(this,J);y&&this.C===J&&this.api.Rf("innertubeCommand",y);this.clearTimeout();this.C=void 0}; g.a.onTimeout=function(J){this.C!==void 0&&(J==null?void 0:J.cueRangeId)===this.C&&(this.K=!1,(J=pwd(this,this.C))&&this.api.Rf("innertubeCommand",J))}; g.a.T3=function(J){this.J=J}; g.a.Sg=function(){yM(this);this.J=void 0}; g.a.setTimeout=function(J){var y=this,v=Number(J==null?void 0:J.maxVisibleDurationMilliseconds);v&&(this.clearTimeout(),this.zK=setTimeout(function(){y.onTimeout(J)},v))}; g.a.clearTimeout=function(){this.zK&&clearTimeout(this.zK);this.zK=void 0;this.K=!1}; g.a.JY=function(){this.timelyActions=this.J=this.C=this.videoId=void 0;this.W={};this.FJ();this.clearTimeout();A_.prototype.JY.call(this)};g.x(iq3,A_);g.x(dA,Sk);dA.prototype.L=function(J){this.W(J?2:1)}; dA.prototype.T=function(){var J=this.S.getPresentingPlayerType();J===2||J===3?(this.C=!1,this.A9.GP(this)):this.C||(J=this.hasVoiceBoostAudioTrack(),this.setEnabled(J),J=this.J()===2&&J,VP(this,J),this.A9.Wq(this),this.C=!0)}; dA.prototype.JY=function(){this.A9.GP(this);Sk.prototype.JY.call(this)};g.x(Pm,A_);Pm.prototype.getVoiceBoostUserPreference=function(){return this.C}; Pm.prototype.setVoiceBoostUserPreference=function(J){this.api.dj("vb_set",{pref:J});g.B1("yt-player-voice-boost",J);J!==this.C&&(this.C=J,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.aL())}; Pm.prototype.hasVoiceBoostAudioTrack=function(){var J,y,v=(J=this.api.getVideoData())==null?void 0:(y=J.J)==null?void 0:y.C;return v?XI(v,function(d){var P;return((P=d.audio)==null?void 0:P.T)===!0}):!1}; Pm.prototype.updateEnvironmentData=function(){this.api.Y().cH=this.C};var ZqT=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.x(ld,A_);ld.prototype.JY=function(){this.G&&(g.tN(this.G),this.G=void 0);A_.prototype.JY.call(this)}; ld.prototype.n4=function(){(this.T?!this.C:this.J)&&n1(this)}; ld.prototype.GN=function(J,y,v){var d=this;if(Xwx(J)){var P=v||"";if(this.C)y=s2(this,P),NdT(J,y);else{var A=new g.Y5;y.push(A.promise);this.V.promise.then(function(){var T=s2(d,P);NdT(J,T);A.resolve()})}}}; ld.prototype.JC=function(J){var y=this;if(this.T||this.J)J.vP=s2(this,J.videoId),this.C||(this.W=new S1,this.V.promise.then(function(){y.Ql.Tr("pot_if");J.vP=s2(y,J.videoId)}))};g.x(g.Sj,g.z);g.Sj.prototype.select=function(){this.api.u8(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.Vm||void 0)&&this.api.logClick(this.element)}; g.Sj.prototype.onClick=function(J){if(g.un(this.api.Y())&&this.api.X("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var y=this.suggestion.GJ(),v={};g.UH(this.api,v);y=g.al(y,v);g.t_(y,this.api,J)}else g.L8(J,this.api,this.T,this.suggestion.sessionData||void 0)&&this.select()}; g.Sj.prototype.onKeyPress=function(J){switch(J.keyCode){case 13:case 32:J.defaultPrevented||(this.select(),J.preventDefault())}}; g.Sj.prototype.onVideoDataChange=function(){var J=this.api.getVideoData(),y=this.api.Y();this.T=J.vR?!1:y.W};g.x(VM,g.z);VM.prototype.JY=function(){this.hide();g.j$(this.C);g.P2(this.stills);this.stills.length=0;g.z.prototype.JY.call(this)}; VM.prototype.J=function(J){this.T&&this.T(J)}; VM.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var J,y,v,d,P;var A=(((J=this.videoData)==null?0:(y=J.suggestions)==null?0:y.length)?(v=this.videoData)==null?void 0:v.suggestions:((d=this.videoData)==null?0:g.Ss(d))?[(P=this.videoData)==null?void 0:g.Ss(P)]:[]).slice(0,12);J=this.W;g.ag(J);if(A.length)for(this.stills.length>A.length&&g.P2(this.stills.splice(A.length)),this.stills.length=A.length,y=0;y=0;J--)this.features[J].dispose();this.features.length=0;g.u.prototype.JY.call(this)};MyR.prototype.reset=function(){this.C=this.T=NaN};g.a=nSr.prototype;g.a.reset=function(){gQ(this.timerName)}; g.a.tick=function(J,y){Ge(J,y,this.timerName)}; g.a.Tr=function(J){return eq(J,void 0,this.timerName)}; g.a.Ja=function(J){g.uh(J,void 0,this.timerName)}; g.a.infoGel=function(J){g.bx(J,this.timerName)};g.x(SJP,g.yK);g.a=SJP.prototype;g.a.Nk=function(J){return this.loop||!!J||this.index+1=0}; g.a.setShuffle=function(J){this.shuffle=J;J=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var y=0;y0)||p1(this,1,!0)}; g.a.YC=function(){this.L=!0;this.C.y8(this.V);this.V=this.C.Z(document,"mouseup",this.kh)}; g.a.kh=function(){this.L=!1;p1(this,8,!1);this.C.y8(this.V);this.V=this.C.Z(this.target,"mousedown",this.YC)}; g.a.UG=function(J){if(J=(J=J.changedTouches)&&J[0])this.wj=J.identifier,this.C.y8(this.B),this.B=this.C.Z(this.target,"touchend",this.pX,void 0,!0),p1(this,1024,!0)}; g.a.pX=function(J){if(J=J.changedTouches)for(var y=0;y1280||P>720)if(y=d.wC("maxresdefault.jpg"))break;if(A>640||P>480)if(y=d.wC("maxresdefault.jpg"))break;if(A>320||P>180)if(y=d.wC("sddefault.jpg")||d.wC("hqdefault.jpg")||d.wC("mqdefault.jpg"))break;if(y=d.wC("default.jpg"))break}g.Sc(J)&&(J=new Image,J.addEventListener("load", function(){nWm()}),J.src=y?y:"",this.api.AR().tick("ftr")); this.W.style.backgroundImage=y?"url("+y+")":""};g.x(g.ud,g.z);g.ud.prototype.resize=function(){}; g.ud.prototype.T=function(J){var y=this;this.J=!1;Zw2(this);var v=J.wL,d=this.api.Y();v!=="GENERIC_WITHOUT_LINK"||d.L?v==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.D1(N6(this,"TOO_MANY_REQUESTS_WITH_LINK",d.GJ(),void 0,void 0,void 0,!1))):v!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.L?this.api.Y().X("html5_enable_bandaid_error_screen")&&v==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.L?(d=d.hostLanguage,J="//support.google.com/youtube?p=videoError",d&&(J=g.al(J,{hl:d})),this.D1(N6(this,"HTML5_SPS_UMP_STATUS_REJECTED", J))):this.api.Y().X("enable_adb_handling_in_sabr")&&v==="BROWSER_OR_EXTENSION_ERROR"&&!d.L?(d=d.hostLanguage,J="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(J=g.al(J,{hl:d})),this.D1(N6(this,"BROWSER_OR_EXTENSION_ERROR",J))):this.D1(g.Hm(J.errorMessage)):this.D1(N6(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(J=d.hostLanguage,v="//support.google.com/youtube/?p=player_error1",J&&(v=g.al(v, {hl:J})),this.D1(N6(this,"GENERIC_WITH_LINK_AND_CPN",v,!0)),d.H$&&!d.W&&QBr(this,function(A){if(g.L8(A,y.api,!Tx(y.api.Y()))){A={as3:!1,html5:!0,player:!0,cpn:y.api.getVideoData().clientPlaybackNonce};var T=y.api;T.Kf("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:A});T.isFullscreen()&&T.toggleFullscreen()}})); if(this.J){var P=this.uA("ytp-error-link");P&&(this.api.createClientVe(P,this,216104),this.api.logVisibility(P,!0),QBr(this,function(){y.api.logClick(P)}))}}; var ESH=/([^<>]+)<\/a>/;g.x(wsc,g.z);wsc.prototype.SW=function(J,y,v){v=v===void 0?!1:v;switch(y){case 1:Ra(this,J,this.J,v);break;case 2:Ra(this,J,this.W,v);break;case 3:Ra(this,J,this.C,v);break;case 4:Ra(this,J,this.T,v)}};g.x(Jd2,g.z);g.a=Jd2.prototype;g.a.onClick=function(J){this.innertubeCommand?(this.S.Rf("innertubeCommand",this.innertubeCommand),J.preventDefault()):g.L8(J,this.S,!0);this.S.logClick(this.element)}; g.a.onVideoDataChange=function(J,y){v_v(this,y);this.R_&&dM3(this,this.R_)}; g.a.jO=function(J){var y=this.S.getVideoData();this.videoId!==y.videoId&&v_v(this,y);this.C&&dM3(this,J.state);this.R_=J.state}; g.a.OS=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)}; g.a.p8=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.x(K1,g.z);K1.prototype.hide=function(){this.C.stop();this.message.style.display="none";g.z.prototype.hide.call(this)}; K1.prototype.onStateChange=function(J){this.Hq(J.state)}; K1.prototype.Hq=function(J){if(g.k(J,128)||this.api.mj())var y=!1;else{var v;y=this.api.X("web_watch_enable_multiview_manager")&&((v=this.api.getVideoData())==null?0:JQ(v))?!1:g.k(J,16)||g.k(J,1)?!0:!1}y?this.C.start():this.hide()}; K1.prototype.T=function(){this.message.style.display="block"};g.x(zy,g.EH);zy.prototype.onMutedAutoplayChange=function(J){this.J&&(J?(PtT(this),this.OS()):(this.C&&this.logClick(),this.p8()))}; zy.prototype.TJ=function(J){this.api.isMutedByMutedAutoplay()&&g.na(J,2)&&this.p8()}; zy.prototype.onClick=function(){this.api.unMute();this.logClick()}; zy.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.x(g.kY,g.gf);g.a=g.kY.prototype;g.a.init=function(){var J=this.api,y=J.getPlayerStateObject();this.NQ=J.getPlayerSize();this.i6(y);this.TU();this.UN();this.api.publish("basechromeinitialized",this);this.yu()&&this.api.publish("standardControlsInitialized")}; g.a.onVideoDataChange=function(J,y){var v=this.y9!==y.videoId;if(v||J==="newdata")J=this.api,J.isFullscreen()||(this.NQ=J.getPlayerSize());v&&(this.y9=y.videoId,v=this.SK,v.If=3E3,p1(v,512,!0),this.TU());this.api.X("web_render_jump_buttons")&&y.showSeekingControls&&(this.YK=572)}; g.a.c9Y=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.a.D$=function(){var J=this.api.w0()&&this.api.Nv(),y=this.api.PA();return this.B2||J||this.vg||y}; g.a.Q4=function(){var J=!this.D$();g.lq(this.api.getRootNode(),"ytp-menu-shown",!J)}; g.a.uy=function(J){try{if(!g.gs(this.api.getRootNode(),J))return!1}catch(y){return!1}for(;J&&!fyx(J);)J=J===this.api.getRootNode()?null:J.parentElement||null;return!!J}; g.a.nk=function(J){var y=this.api.getRootNode();g.lq(y,"ytp-autohide",J);g.lq(y,"ytp-autohide-active",!0);this.Kx.start(J?250:100);J&&(this.MW=!1,g.AZ(y,"ytp-touch-mode"));this.Y1=!J;this.api.Ca(!J);this.api.X("delhi_modern_web_player")&&this.api.publish("autohideupdate",J)}; g.a.DP=function(){var J=this.api.getRootNode();g.lq(J,"ytp-autohide-active",!1)}; g.a.MnW=function(){this.Z9=!0}; g.a.Vnx=function(J){if(this.api.Y().X("player_doubletap_to_seek")||this.api.Y().G)this.Z9=!1,this.RW&&this.y8(this.RW),this.U9===0&&QM(this,J)?(this.OE(),this.MM.start(),this.RW=this.Z(this.api.DB(),"touchmove",this.MnW,void 0,!0)):this.MM.stop();MC2(this)&&QM(this,J)&&!this.api.Y().G&&T1P(this);var y=this.D9.Mo();if(!g.un(this.api.Y())&&IK&&n_H(this,J))y&&J.preventDefault();else if(this.MW=!0,g.d7(this.api.getRootNode(),"ytp-touch-mode"),this.SK.Up(),this.api.Y().X("player_doubletap_to_seek")||this.api.Y().G)if(y= this.api.getPlayerStateObject(),!(!this.api.ij()||g.k(y,2)&&g.C5(this.api)||g.k(y,64))){y=Date.now()-this.Dw;this.U9+=1;if(y<=350){this.C9=!0;y=this.api.getPlayerSize().width/3;var v=this.api.getRootNode().getBoundingClientRect(),d=J.targetTouches[0].clientX-v.left;v=J.targetTouches[0].clientY-v.top;var P=(this.U9-1)*10;d>0&&dy*2&&d=650,d=J.width<528;this.SK.resize();g.lq(y,"ytp-fullscreen",this.api.isFullscreen());g.lq(y,"ytp-large-width-mode",v);this.api.X("delhi_modern_web_player")?g.lq(y,"ytp-xsmall-width-mode",d):g.lq(y,"ytp-small-mode",this.lj());g.lq(y,"ytp-tiny-mode",this.eB());g.lq(y,"ytp-big-mode",this.WK());this.fA&&this.fA.resize(J)}; g.a.TJ=function(J){this.i6(J.state);this.TU()}; g.a.GZ=PP(3);g.a.zw=function(){var J=!!this.y9&&!this.api.kZ()&&!this.vI,y=this.api.getPresentingPlayerType()===2,v=this.api.Y();return y?(y=$Y(this.api.un()),J&&(y&&y.player?J=(J=y.player.getVideoData(2))?J.isListed&&!g.sA(y.player.Y()):!1:(TS("showInfoBarDuringAd: this is null"),J=!1)),J):J&&(v.b8||this.api.isFullscreen()||v.zA)}; g.a.TU=function(){var J=this.zw();this.Ce!==J&&(this.Ce=J,g.lq(this.api.getRootNode(),"ytp-hide-info-bar",!J))}; g.a.i6=function(J){var y=J.isCued()||this.api.Zp()&&this.api.getPresentingPlayerType()!==3;y!==this.isCued&&(this.isCued=y,this.Bx&&this.y8(this.Bx),this.Bx=this.Z(this.api.DB(),"touchstart",this.Vnx,void 0,y));var v=this.SK,d=J.isPlaying()&&!g.k(J,32)||this.api.Je();p1(v,128,!d);v=this.SK;d=this.api.getPresentingPlayerType()===3;p1(v,256,d);v=this.api.getRootNode();g.k(J,2)?d=[kh.ENDED]:(d=[],g.k(J,8)?d.push(kh.PLAYING):g.k(J,4)&&d.push(kh.PAUSED),g.k(J,1)&&!g.k(J,32)&&d.push(kh.BUFFERING),g.k(J, 32)&&d.push(kh.SEEKING),g.k(J,64)&&d.push(kh.UNSTARTED));g.zQ(this.Yx,d)||(g.TY(v,this.Yx),this.Yx=d,g.PB(v,d));d=this.api.Y();var P=g.k(J,2);a:{var A=this.api.Y();var T=A.controlsType;switch(T){case "2":case "0":A=!1;break a}A=T==="3"&&!g.k(J,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:omu($Y(this.api.un())))||this.api.PA()||g.un(A)&&this.api.getPresentingPlayerType()===2?!1:!0}g.lq(v,"ytp-hide-controls",!A);g.lq(v,"ytp-native-controls",d.controlsType==="3"&&!y&&!P&&!this.vg);g.k(J, 128)&&!g.un(d)?(this.fA||(this.fA=new g.ud(this.api),g.X(this,this.fA),g.Hp(this.api,this.fA.element,4)),this.fA.T(J.Zx),this.fA.show()):this.fA&&(this.fA.dispose(),this.fA=null)}; g.a.H9=function(){return this.api.w0()&&this.api.Nv()?(this.api.Xe(!1,!1),!0):this.api.kZ()?(g.hQ(this.api,!0),!0):!1}; g.a.onMutedAutoplayChange=function(J){this.vg=J;this.Q4()}; g.a.WK=function(){return!1}; g.a.lj=function(){return!this.WK()&&(this.api.getPlayerSize().width=0&&y.left>=0&&y.bottom>y.top&&y.right>y.left?y:null;y=this.size;J=J.clone();y=y.clone();d&&(T=y,P=5,(P&65)==65&&(J.x=d.right)&&(P&=-2),(P&132)==132&&(J.y=d.bottom)&&(P&=-5),J.xd.right&&(T.width=Math.min(d.right-J.x,A+T.width-d.left),T.width=Math.max(T.width,0))),J.x+T.width>d.right&&P&1&&(J.x=Math.max(d.right-T.width,d.left)),J.yd.bottom&&(T.height=Math.min(d.bottom-J.y,A+T.height-d.top),T.height=Math.max(T.height,0))),J.y+T.height>d.bottom&&P&4&&(J.y=Math.max(d.bottom-T.height,d.top)));d=new g.ua(0,0,0,0);d.left=J.x;d.top=J.y;d.width= y.width;d.height=y.height;g.Q6(this.element,new g.N7(d.left,d.top));g.j$(this.W);this.W.Z(Q7(this),"contextmenu",this.Bjb);this.W.Z(this.S,"fullscreentoggled",this.onFullscreenToggled);this.W.Z(this.S,"pageTransition",this.SO)}; g.a.Bjb=function(J){if(!J.defaultPrevented){var y=c1(J);g.gs(this.element,y)||this.p8();this.S.Y().disableNativeContextMenu&&J.preventDefault()}}; g.a.onFullscreenToggled=function(){this.p8();o_6(this)}; g.a.SO=function(){this.p8()};g.x(T1,g.z);T1.prototype.onClick=function(){var J=this,y,v,d,P;return g.f(function(A){if(A.T==1)return y=J.api.Y(),v=J.api.getVideoData(),d=J.api.getPlaylistId(),P=y.getVideoUrl(v.videoId,d,void 0,!0),g.h(A,Isr(J,P),2);A.C&&h4H(J);J.api.logClick(J.element);g.G2(A)})}; T1.prototype.Mx=function(){this.updateValue("icon",{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copiar v\u00ednculo");this.visible=CtH(this);g.lq(this.element,"ytp-copylink-button-visible", this.visible);this.eH(this.visible);this.tooltip.O3();this.api.logVisibility(this.element,this.visible&&this.V)}; T1.prototype.v$=function(J){g.z.prototype.v$.call(this,J);this.api.logVisibility(this.element,this.visible&&J)}; T1.prototype.JY=function(){g.z.prototype.JY.call(this);g.AZ(this.element,"ytp-copylink-button-visible")};g.x(pEd,g.z);g.a=pEd.prototype;g.a.show=function(){g.z.prototype.show.call(this);g.zA(this.T)}; g.a.hide=function(){this.W.stop();this.J=0;this.uA("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.AZ(this.element,"ytp-chapter-seek");g.AZ(this.element,"ytp-time-seeking");g.z.prototype.hide.call(this)}; g.a.m$=function(J,y,v,d){this.J=J===this.G?this.J+d:d;this.G=J;var P=J===-1?this.K:this.B;P&&this.S.logClick(P);this.L?this.T.stop():g.Ew(this.T);this.W.start();this.element.setAttribute("data-side",J===-1?"back":"forward");var A=3*this.S.DB().getPlayerSize().height;P=this.S.DB().getPlayerSize();P=P.width/3-3*P.height;this.C.style.width=A+"px";this.C.style.height=A+"px";J===1?(this.C.style.left="",this.C.style.right=P+"px"):J===-1&&(this.C.style.right="",this.C.style.left=P+"px");var T=A*2.5;A=T/ 2;var M=this.uA("ytp-doubletap-ripple");M.style.width=T+"px";M.style.height=T+"px";J===1?(J=this.S.DB().getPlayerSize().width-y+Math.abs(P),M.style.left="",M.style.right=J-A+"px"):J===-1&&(J=Math.abs(P)+y,M.style.right="",M.style.left=J-A+"px");M.style.top="calc((33% + "+Math.round(v)+"px) - "+A+"px)";if(v=this.uA("ytp-doubletap-ripple"))v.classList.remove("ytp-doubletap-ripple"),v.classList.add("ytp-doubletap-ripple");UMU(this,this.L?this.J:d)}; g.a.Nr=function(J,y,v){if(v=v===void 0?null:v){var d=J===-1?this.K.visualElement:this.B.visualElement;v={seekData:v};var P=g.xe();P&&g.kV(NF)(void 0,P,d,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",v,void 0)}this.J=J===this.G?this.J+y:y;this.G=J;d=this.S.DB().getPlayerSize();this.L?this.T.stop():g.Ew(this.T);this.W.start();this.element.setAttribute("data-side",J===-1?"back":"forward");g.d7(this.element,"ytp-time-seeking");this.C.style.width="110px";this.C.style.height="110px";v=d.width*.1-15;J=== 1?this.zK?(this.C.style.right=v+"px",this.C.style.left=""):(this.C.style.right="",this.C.style.left=d.width*.8-30+"px"):J===-1&&(this.zK?(this.C.style.right="",this.C.style.left=v+"px"):(this.C.style.right="",this.C.style.left=d.width*.1-15+"px"));this.C.style.top=d.height*.5+15+"px";UMU(this,this.L?this.J:y)}; g.a.ZU=function(J,y,v){v=v===void 0?null:v;g.Ew(this.T);this.W.start();switch(J){case -1:J="back";break;case 1:J="forward";break;default:J=""}this.element.setAttribute("data-side",J);this.C.style.width="0";this.C.style.height="0";g.d7(this.element,"ytp-chapter-seek");this.updateValue("seekText",y);this.updateValue("seekTime","");y=this.uA("ytp-seek-icon");if(v){a:if(v){switch(v){case "PREMIUM_STANDALONE":v=mWH();break a;case "PREMIUM_STANDALONE_CAIRO":v=B3R();break a}v=void 0}else v=null;this.updateValue("seekIcon", v);y.style.display="inline-block"}else y.style.display="none"};g.x(fsU,Fs);g.a=fsU.prototype;g.a.LX=function(J){this.WX||(this.WX=new $P(this.S),g.X(this,this.WX));var y,v;if((y=this.aG)==null?0:(v=y.menu)==null?0:v.menuRenderer)this.WX.open(this.aG.menu.menuRenderer,J.target),J.preventDefault()}; g.a.KJ=function(){return!!this.C}; g.a.I0=function(){return!!this.C}; g.a.P0=function(J){J.target===this.overflowButton.element?J.preventDefault():(this.ZE&&this.S.Rf("innertubeCommand",this.ZE),this.cB(!1))}; g.a.Ed=function(){this.cB(!0);var J,y;((J=this.C)==null?0:(y=J.bannerData)==null?0:y.dismissedStatusKey)&&this.L8.push(this.C.bannerData.dismissedStatusKey);this.G3()}; g.a.N2=function(){this.G3();nE(this)}; g.a.VCB=function(J){var y=this,v;if(J.id!==((v=this.C)==null?void 0:v.identifier)){this.G3();v=g.D(this.wj);for(var d=v.next();!d.done;d=v.next()){var P=d.value,A=void 0,T=void 0;if((d=(A=P)==null?void 0:(T=A.bannerData)==null?void 0:T.itemData)&&P.identifier===J.id){T=A=void 0;var M=((A=P)==null?void 0:(T=A.bannerData)==null?void 0:T.dismissedStatusKey)||"";if(this.L8.includes(M))return;this.C=P;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.W=!0, this.S.setTrackingParams(this.badge.element,d.trackingParams));this.show();this.K.show();bP(this);this.If.eH(!d.stayInApp);ZJj(this);u82(this);M1(this);this.ZE=g.R(d.onTapCommand,Bg);if(P=g.R(d.menuOnTap,Bg))this.aG=g.R(P,WSC);P=void 0;this.banner.update({thumbnail:(P=(d.thumbnailSources||[])[0])==null?void 0:P.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:N12(this),priceDropReferencePrice:R4j(this),promotionText:XE2(this),priceA11yText:Kc6(this), affiliateDisclaimer:d.affiliateDisclaimer,vendor:z4U(this)});M=T=A=P=void 0;((P=d)==null?0:(A=P.hiddenProductOptions)==null?0:A.showDropCountdown)&&((T=d)==null?0:(M=T.hiddenProductOptions)==null?0:M.dropTimestampMs)&&(this.yl=new g.Kx(function(){Qn6(y)},1E3),this.If.hide(),this.countdownTimer.show(),Qn6(this)); this.S.X("web_player_enable_featured_product_banner_exclusives_on_desktop")&&iJd(this)&&(this.H$=new g.Kx(function(){HJP(y)},1E3),HJP(this))}}this.S.getRootNode()&&g.d7(this.S.getRootNode(),"ytp-featured-product-shown")}}; g.a.G3=function(){this.C&&(this.C=void 0,this.Jh(),this.S.getRootNode()&&g.AZ(this.S.getRootNode(),"ytp-featured-product-shown"))}; g.a.onVideoDataChange=function(J,y){var v=this;J==="dataloaded"&&nE(this);var d,P,A;J=g.R((d=y.getWatchNextResponse())==null?void 0:(P=d.playerOverlays)==null?void 0:(A=P.playerOverlayRenderer)==null?void 0:A.productsInVideoOverlayRenderer,LSy);this.overflowButton.show();this.dismissButton.hide();var T=J==null?void 0:J.featuredProductsEntityKey;this.trendingOfferEntityKey=J==null?void 0:J.trendingOfferEntityKey;this.wj.length||(E_x(this,T),M1(this));var M;(M=this.Lf)==null||M.call(this);this.Lf=g.LF.subscribe(function(){E_x(v, T);M1(v)})}; g.a.JY=function(){nE(this);ZJj(this);u82(this);Fs.prototype.JY.call(this)};g.x(dpH,g.z);dpH.prototype.onClick=function(){this.S.logClick(this.element,this.T)};g.x(P3v,g.EH);g.a=P3v.prototype;g.a.show=function(){g.EH.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);A7R(this,!0)}; g.a.hide=function(){g.EH.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);A7R(this,!1)}; g.a.getId=function(){return this.W}; g.a.nR=function(){return this.itemData.length}; g.a.onVideoDataChange=function(J,y){if(y){var v,d,P,A;this.update({title:((v=y.Ah)==null?void 0:(d=v.title)==null?void 0:d.content)||"",body:((P=y.Ah)==null?void 0:(A=P.bodyText)==null?void 0:A.content)||""});var T;J=((T=y.Ah)==null?void 0:T.trackingParams)||null;this.S.setTrackingParams(this.element,J);T=g.D(this.itemData);for(J=T.next();!J.done;J=T.next())J.value.dispose();this.itemData=[];var M;if((M=y.Ah)==null?0:M.ctaButtons)for(y=g.D(y.Ah.ctaButtons),M=y.next();!M.done;M=y.next())if(M=g.R(M.value, MPn))M=new dpH(this.S,M,this.C),M.ZO&&(this.itemData.push(M),M.yk(this.items))}}; g.a.JY=function(){this.hide();g.EH.prototype.JY.call(this)};g.x(MY3,g.z);g.a=MY3.prototype;g.a.onVideoDataChange=function(J,y){l3m(this,y);this.R_&&sir(this,this.R_)}; g.a.MY=function(J){var y=this.S.getVideoData();this.videoId!==y.videoId&&l3m(this,y);sir(this,J.state);this.R_=J.state}; g.a.K_=function(J){(this.J=J)?this.hide():this.C&&this.show()}; g.a.V2=function(){this.T||this.OS();this.showControls=!0}; g.a.fX=function(){this.T||this.p8();this.showControls=!1}; g.a.OS=function(){var J,y=(J=this.S)==null?void 0:J.getPlayerSize();J=y.width<380;var v;y=y.height<(((v=this.S)==null?0:v.isEmbedsShortsMode())?400:280);var d,P;(((d=this.S)==null?0:d.getPlayerStateObject().isCued())||((P=this.S)==null?0:g.k(P.getPlayerStateObject(),1024)))&&J&&y||!this.C||this.J||(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}; g.a.p8=function(){this.C&&!this.J&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))}; g.a.vZY=function(){this.T=!1;this.showControls||this.p8()};var xcQ={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(xcQ).reduce(function(J,y){J[xcQ[y]]=y;return J},{}); var O9q={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(O9q).reduce(function(J,y){J[O9q[y]]=y;return J},{}); var g7w={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(g7w).reduce(function(J,y){J[g7w[y]]=y;return J},{});var Dcy,c3_;Dcy=[{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"}];c3_=[{option:0,text:sM(0)},{option:.25,text:sM(.25)},{option:.5,text:sM(.5)},{option:.75,text:sM(.75)},{option:1,text:sM(1)}]; g.LE=[{option:"fontFamily",text:"Familia de fuente",options:[{option:1,text:"Serif monoespaciada"},{option:2,text:"Serif proporcional"},{option:3,text:"Sans-Serif monoespaciada"},{option:4,text:"Sans-Serif proporcional"},{option:5,text:"Informal"},{option:6,text:"Cursiva"},{option:7,text:"Versalitas"}]},{option:"color",text:"Color de fuente",options:Dcy},{option:"fontSizeIncrement",text:"Tama\u00f1o de fuente",options:[{option:-2,text:sM(.5)},{option:-1,text:sM(.75)},{option:0,text:sM(1)},{option:1, text:sM(1.5)},{option:2,text:sM(2)},{option:3,text:sM(3)},{option:4,text:sM(4)}]},{option:"background",text:"Color de fondo",options:Dcy},{option:"backgroundOpacity",text:"Opacidad de fondo",options:c3_},{option:"windowColor",text:"Color de la ventana",options:Dcy},{option:"windowOpacity",text:"Opacidad de la ventana",options:c3_},{option:"charEdgeStyle",text:"Estilo de borde de los caracteres",options:[{option:0,text:"Ninguno"},{option:4,text:"Sombra paralela"},{option:1,text:"En relieve"},{option:2, text:"Hundido"},{option:3,text:"Contorno"}]},{option:"textOpacity",text:"Opacidad de fuente",options:[{option:.25,text:sM(.25)},{option:.5,text:sM(.5)},{option:.75,text:sM(.75)},{option:1,text:sM(1)}]}];var GsX=[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.x(WI3,g.gf);g.a=WI3.prototype; g.a.nH=function(J){J.repeat||(this.J.eJ=!1);var y=!1,v=J.keyCode,d=c1(J),P=!J.altKey&&!J.ctrlKey&&!J.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||GsX.includes(v)),A=!1,T=!1,M=this.api.Y();J.defaultPrevented?(P=!1,T=!0):M.QE&&!this.api.isMutedByEmbedsMutedAutoplay()&&(P=!1);if(v===9)y=!0;else{if(d)switch(v){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")y=!0,P=!1;else if(P){var n=d.getAttribute("role");!n||n!=="option"&&n!=="button"&&n.indexOf("menuitem")!==0|| (y=!0,d.click(),A=!0)}break;case 37:case 39:case 36:case 35:y=d.getAttribute("role")==="slider";break;case 38:case 40:n=d.getAttribute("role"),d=v===38?d.previousSibling:d.nextSibling,n==="slider"?y=!0:P&&(n==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),A=y=!0):n&&n.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),A=y=!0))}if(P&&!A)switch(v){case 38:A=Math.min(this.api.getVolume()+5,100);JY(this.f0,A,!1);this.api.setVolume(A); T=A=!0;break;case 40:A=Math.max(this.api.getVolume()-5,0);JY(this.f0,A,!0);this.api.setVolume(A);T=A=!0;break;case 36:this.api.ij()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),T=A=!0);break;case 35:this.api.ij()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),T=A=!0)}}y&&SE(this,!0);(y||T)&&this.SK.Up();(A||P&&this.handleGlobalKeyDown(v,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code,J.repeat))&&J.preventDefault();M.B&&(J={keyCode:J.keyCode, altKey:J.altKey,ctrlKey:J.ctrlKey,metaKey:J.metaKey,shiftKey:J.shiftKey,handled:J.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.cR("onKeyPress",J))}; g.a.zo=function(J){var y=J.keyCode;(!this.api.X("web_player_spacebar_control_bugfix")||this.api.X("web_player_spacebar_control_bugfix")&&!this.J.K7)&&this.handleGlobalKeyUp(y,J.shiftKey,J.ctrlKey,J.altKey,J.metaKey,J.key,J.code)&&J.preventDefault()}; g.a.handleGlobalKeyUp=function(J,y,v,d,P,A,T){this.api.publish("keyboardserviceglobalkeyup",{keyCode:J,shiftKey:y,ctrlKey:v,altKey:d,metaKey:P,key:A,code:T});y=!1;if(this.J.eJ)return y;(A=g.f5(this.api.un()))&&(A=A.Nn)&&A.zI&&(A.F_(J),y=!0);switch(J){case 9:SE(this,!0);y=!0;break;case 32:if(this.api.X("web_speedmaster_spacebar_control")&&(!this.api.X("web_player_spacebar_control_bugfix")&&!this.J.K7||this.api.X("web_player_spacebar_control_bugfix"))&&!this.api.Y().QE){var M,n;J=(M=this.progressBar)== null?void 0:(n=M.T)==null?void 0:n.isEnabled;y=this.B7(J)}break;case 39:(dM?d:v)&&!P&&this.api.ij()&&this.api.X("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),M=(M=this.api.getVideoData())?M.Xg:[],n=SDT(M,this.api.getCurrentTime()*1E3),n!==-1&&this.C!=null&&(this.C.ZU(1,M[n].title),this.api.seekTo(M[n].startTime/1E3,void 0,void 0,void 0,52),y=!0))}return y}; g.a.handleGlobalKeyDown=function(J,y,v,d,P,A,T,M){M||(this.J.eJ=!1);var n=!1,Y=this.api.Y();if(Y.QE&&!this.api.isMutedByEmbedsMutedAutoplay())return n;var S=g.f5(this.api.un());if(S&&(S=S.Nn)&&S.zI)switch(J){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:n=S.rk(J)}Y.L||n||(n=A||String.fromCharCode(J).toLowerCase(),this.T+=n,"awesome".indexOf(this.T)===0||this.api.X("web_player_rtr_ctrls")&&"bday".indexOf(this.T)===0?(n=!0,4===this.T.length&&this.T==="bday"&&this.api.X("web_player_rtr_ctrls")&& (dY3(this.V),this.SK.Up()),7===this.T.length&&this.T==="awesome"&&ePj(this.api.getRootNode(),"ytp-color-party")):(this.T=n,n="awesome".indexOf(this.T)===0||"bday".indexOf(this.T)===0));if(!n&&(!this.api.isMutedByEmbedsMutedAutoplay()||GsX.includes(J))){var V=this.api.getVideoData(),L,t;S=(L=this.progressBar)==null?void 0:(t=L.T)==null?void 0:t.isEnabled;L=V?V.Xg:[];t=dM?d:v;switch(J){case 80:y&&!Y.Ek&&(wA(this.f0,qKU(),"Anterior"),this.api.previousVideo(),n=!0);break;case 78:y&&!Y.Ek&&(wA(this.f0, ax(),"Siguiente"),this.api.nextVideo(),n=!0);break;case 74:this.api.ij()&&(this.api.startSeekCsiAction(),this.C?this.api.X("enable_key_press_seek_logging")?(n=Vu(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.C.Nr(-1,10,n)):this.C.Nr(-1,10):wA(this.f0,{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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),n=!0);break;case 76:this.api.ij()&&(this.api.startSeekCsiAction(),this.C?this.api.X("enable_key_press_seek_logging")?(n=Vu(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.C.Nr(1,10,n)):this.C.Nr(1,10):wA(this.f0,{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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),n=!0);break;case 37:this.api.ij()&&(this.api.startSeekCsiAction(),t?(t=VYR(L,this.api.getCurrentTime()*1E3),t!==-1&&this.C!=null&&(this.C.ZU(-1,L[t].title),this.api.seekTo(L[t].startTime/1E3,void 0,void 0,void 0,53),n=!0)):(this.C?this.api.X("enable_key_press_seek_logging")?(n=Vu(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),this.C.Nr(-1,5,n)):this.C.Nr(-1,5):wA(this.f0,{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36", width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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),n=!0));break;case 39:this.api.ij()&&(this.api.startSeekCsiAction(),t?this.api.X("web_enable_keyboard_shortcut_for_timely_actions")||(t=SDT(L,this.api.getCurrentTime()*1E3),t!==-1&&this.C!=null&&(this.C.ZU(1,L[t].title),this.api.seekTo(L[t].startTime/1E3,void 0,void 0,void 0,52),n=!0)):(this.C!=null?this.api.X("enable_key_press_seek_logging")?(n=Vu(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.C.Nr(1,5,n)):this.C.Nr(1, 5):wA(this.f0,{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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),n=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),JY(this.f0,this.api.getVolume(),!1)):(this.api.mute(),JY(this.f0,0,!0));n=!0;break;case 32:n=this.api.X("web_speedmaster_spacebar_control")?!this.api.Y().Ek:this.B7(S);break;case 75:n=this.B7(S);break;case 190:y?Y.enableSpeedOptions&&xpU(this)&&(n=this.api.getPlaybackRate(),this.api.setPlaybackRate(n+.25,!0),YBj(this.f0,!1),n=!0):this.api.ij()&&(this.step(1),n=!0);break;case 188:y? Y.enableSpeedOptions&&xpU(this)&&(n=this.api.getPlaybackRate(),this.api.setPlaybackRate(n-.25,!0),YBj(this.f0,!0),n=!0):this.api.ij()&&(this.step(-1),n=!0);break;case 70:FBx(this.api)&&(this.api.toggleFullscreen().catch(function(){}),n=!0); break;case 27:S?(this.progressBar.hf(),n=!0):this.L()&&(n=!0)}if(Y.controlsType!=="3")switch(J){case 67:g.Bm(this.api.un())&&(Y=this.api.getOption("captions","track"),this.api.toggleSubtitles(),SBm(this.f0,!Y||Y&&!Y.displayName),n=!0);break;case 79:tY(this,"textOpacity");break;case 87:tY(this,"windowOpacity");break;case 187:case 61:tY(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:tY(this,"fontSizeIncrement",!0,!0)}var W;y||v||d||(J>=48&&J<=57?W=J-48:J>=96&&J<=105&&(W=J-96));W!=null&&this.api.ij()&& (this.api.startSeekCsiAction(),Y=this.api.getProgressState(),this.api.seekTo(W/10*(Y.seekableEnd-Y.seekableStart)+Y.seekableStart,void 0,void 0,void 0,81),n=!0);n&&this.SK.Up()}this.J.Gn=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:J,shiftKey:y,ctrlKey:v,altKey:d,metaKey:P,key:A,code:T,repeat:M},this.J);this.J.Gn&&(n=!0);return n}; g.a.step=function(J){this.api.ij();if(this.api.getPlayerStateObject().isPaused()){var y=this.api.getVideoData().T;y&&(y=y.video)&&this.api.seekBy(J/(y.fps||30),void 0,void 0,J>0?77:78)}}; g.a.B7=function(J){if(!this.api.Y().Ek){var y;var v,d=(y=this.api.getVideoData())==null?void 0:(v=y.getPlayerResponse())==null?void 0:v.playabilityStatus;if(d){var P;y=((P=g.R(d.miniplayer,G8_))==null?void 0:P.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else y=!1;y&&this.api.Rf("onExpandMiniplayer");J?this.progressBar.Ls():(J=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.f0.w1(J),J?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.a.JY=function(){g.Ew(this.W);g.gf.prototype.JY.call(this)};g.x(W7,g.z);W7.prototype.Mx=function(){var J=this.S.Y(),y=J.J||this.S.X("web_player_hide_overflow_button_if_empty_menu")&&this.tR.isEmpty();J=g.un(J)&&g.p5(this.S)&&g.k(this.S.getPlayerStateObject(),128);var v=this.S.getPlayerSize();this.visible=this.S.lj()&&!J&&v.width>=240&&!g.n5(this.S.getVideoData())&&!y&&!this.S.isEmbedsShortsMode();g.lq(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.S.O3();this.S.logVisibility(this.element,this.visible&&this.V)}; W7.prototype.v$=function(J){g.z.prototype.v$.call(this,J);this.S.logVisibility(this.element,this.visible&&J)}; W7.prototype.JY=function(){g.z.prototype.JY.call(this);g.AZ(this.element,"ytp-overflow-button-visible")};g.x(O23,g.EH);g.a=O23.prototype;g.a.hN=function(J){J=c1(J);g.gs(this.element,J)&&(g.gs(this.C,J)||g.gs(this.closeButton,J)||ZF(this))}; g.a.p8=function(){g.EH.prototype.p8.call(this);this.S.j0(this.element)}; g.a.show=function(){this.zI&&this.S.publish("OVERFLOW_PANEL_OPENED");g.EH.prototype.show.call(this);this.element.setAttribute("aria-modal","true");Dp2(this,!0)}; g.a.hide=function(){g.EH.prototype.hide.call(this);this.element.removeAttribute("aria-modal");Dp2(this,!1)}; g.a.onFullscreenToggled=function(J){!J&&this.Mo()&&ZF(this)}; g.a.isEmpty=function(){return this.actionButtons.length===0}; g.a.focus=function(){for(var J=g.D(this.actionButtons),y=J.next();!y.done;y=J.next())if(y=y.value,y.zI){y.focus();break}};g.x(c7r,g.z);c7r.prototype.onClick=function(J){g.L8(J,this.api)&&this.api.playVideoAt(this.index)};g.x(GZR,g.EH);g.a=GZR.prototype;g.a.show=function(){g.EH.prototype.show.call(this);this.C.Z(this.api,"videodatachange",this.HL);this.C.Z(this.api,"onPlaylistUpdate",this.HL);this.HL()}; g.a.hide=function(){g.EH.prototype.hide.call(this);g.j$(this.C);this.updatePlaylist(null)}; g.a.HL=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Y().J&&(this.uA("ytp-playlist-menu-title-name").removeAttribute("href"),this.J&&(this.y8(this.J),this.J=null))}; g.a.YQ=function(){var J=this.playlist,y=J.author,v=y?"de $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(J.index+1),PLAYLIST_LENGTH:String(J.length)};y&&(d.AUTHOR=y);this.update({title:J.title,subtitle:g.yY(v,d),playlisturl:this.api.getVideoUrl(!0)});y=J.T;if(y===this.W)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[J.index];else{v=g.D(this.playlistData);for(d=v.next();!d.done;d=v.next())d.value.dispose(); v=J.length;this.playlistData=[];for(d=0;d=this.T&&!J.J&&!y.isAd()&&!this.api.isEmbedsShortsMode()}else J=!1;this.visible=J;this.eH(this.visible);g.lq(this.element,"ytp-search-button-visible",this.visible);g.lq(this.element,"ytp-show-search-title",!this.api.lj());this.api.logVisibility(this.element,this.visible&&this.V)}; g_.prototype.v$=function(J){g.z.prototype.v$.call(this,J);this.api.logVisibility(this.element,this.visible&&J)};g.x(DO,g.z); DO.prototype.trigger=function(J,y,v,d){this.show();if(this.W&&J!==this.W){var P=1;this.T&&(P=hwU(this));qDT(this,P,!1);C3r(this)}this.W=J;this.J=this.W===-1?this.B:this.K;J="";y?(this.G+=y,J=g.xZ(this.G)):this.G=0;this.updateValue(this.W===-1?"durationBack":"durationForward",J);if(this.C==="hidden"||this.C==="fading-out")y=0,this.C==="fading-out"&&(y=hwU(this),oh2(this)),r76(this,y),this.C!=="fading-out"&&$pR(this,this.J.querySelector(".ytp-seek-overlay-arrow-persistent")),this.C="fading-in";else if(this.C=== "fading-in"||this.C==="lingering")y=this.J.querySelector(".ytp-seek-overlay-duration"),J=g.Zo(this.S.Y().experiments,"web_player_seek_overlay_duration_bump_scale")||.95,y.animate([{offset:0,transform:"scale(1)"},{offset:.5,transform:"scale("+J+")"},{offset:1,transform:"scale(1)"}],{duration:200,easing:"cubic-bezier(0, 1, 0.1, 1)"}),oh2(this),this.C==="lingering"&&(this.L.stop(),this.L.start());this.zK=(0,g.GC)();v&&I3r(this,v,d)}; DO.prototype.m$=function(J,y,v,d){this.trigger(J,d)}; DO.prototype.Nr=function(J,y,v){this.trigger(J,y);v&&(J=J===-1?this.K.visualElement:this.B.visualElement,v={seekData:v},(y=g.xe())&&g.kV(NF)(void 0,y,J,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",v,void 0))}; DO.prototype.ZU=function(J,y,v){this.trigger(J,void 0,y,v)};g.x(c7,g.z);c7.prototype.onClick=function(){var J=this,y=this.api.Y(),v=this.api.getVideoData(this.api.getPresentingPlayerType()),d=this.api.getPlaylistId();y=this.api.X("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):y.getVideoUrl(v.videoId,d,void 0,!0);if(navigator.share)try{var P=navigator.share({title:v.title,url:y});P instanceof Promise&&P.catch(function(A){UpP(J,A)})}catch(A){A instanceof Error&&UpP(this,A)}else this.C.H9(),ZF(this.T,this.element,!1); this.api.logClick(this.element)}; c7.prototype.Mx=function(){var J=this.api.Y(),y=this.api.isEmbedsShortsMode();g.lq(this.element,"ytp-show-share-title",g.un(J)&&!y);this.C.WK()&&y?(J=(this.api.DB().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ni(this.element,"right",J+"px")):y&&g.Ni(this.element,"right","0px");this.updateValue("icon",{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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=p5U(this);g.lq(this.element,"ytp-share-button-visible",this.visible);this.eH(this.visible);this.tooltip.O3();this.api.logVisibility(this.element,p5U(this)&&this.V)}; c7.prototype.v$=function(J){g.z.prototype.v$.call(this,J);this.api.logVisibility(this.element,this.visible&&J)}; c7.prototype.JY=function(){g.z.prototype.JY.call(this);g.AZ(this.element,"ytp-share-button-visible")};g.x(i26,g.EH);g.a=i26.prototype;g.a.OD=function(J){J=c1(J);g.gs(this.L,J)||g.gs(this.closeButton,J)||ZF(this)}; g.a.p8=function(){g.EH.prototype.p8.call(this);this.tooltip.j0(this.element);this.api.logVisibility(this.C,!1);for(var J=g.D(this.J),y=J.next();!y.done;y=J.next())y=y.value,this.api.hasVe(y.element)&&this.api.logVisibility(y.element,!1)}; g.a.show=function(){var J=this.zI;g.EH.prototype.show.call(this);this.Mx();J||this.api.Rf("onSharePanelOpened")}; g.a.Gx=function(){this.zI&&this.Mx()}; g.a.Mx=function(){var J=this;g.d7(this.element,"ytp-share-panel-loading");g.AZ(this.element,"ytp-share-panel-fail");var y=this.api.getVideoData(),v=this.api.getPlaylistId()&&this.W.checked;y.getSharePanelCommand&&qJ(this.api.X1(),y.getSharePanelCommand,{includeListId:v}).then(function(d){J.tY()||(g.AZ(J.element,"ytp-share-panel-loading"),X56(J,d))}); y=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",y);this.updateValue("linkText",y);this.updateValue("shareLinkWithUrl",g.yY("Compartir v\u00ednculo $URL",{URL:y}));xq(this.C);this.api.logVisibility(this.C,!0)}; g.a.onFullscreenToggled=function(J){!J&&this.Mo()&&ZF(this)}; g.a.focus=function(){this.C.focus()}; g.a.JY=function(){g.EH.prototype.JY.call(this);uJr(this)};g.x(KIv,Fs);g.a=KIv.prototype;g.a.JY=function(){Z2U(this);Fs.prototype.JY.call(this)}; g.a.P0=function(J){J.target!==this.dismissButton.element&&(this.cB(!1),this.S.Rf("innertubeCommand",this.onClickCommand))}; g.a.Ed=function(){this.ZB=!0;this.cB(!0);this.Jh()}; g.a.zgB=function(J){this.G=J;this.Jh()}; g.a.onVideoDataChange=function(J,y){if(J=!!y.videoId&&this.videoId!==y.videoId)this.videoId=y.videoId,this.ZB=!1,this.AY=!0,this.B=this.Cy=!1,Z2U(this),Qim(this,!1),this.T=this.C=!1,bC(this),zw3(this);if(J||!y.videoId)this.zK=this.W=!1;var v,d;if(y==null?0:(v=y.getPlayerResponse())==null?0:(d=v.videoDetails)==null?0:d.isLiveContent)this.ih(!1);else{var P,A,T;y=g.R((P=y.getWatchNextResponse())==null?void 0:(A=P.playerOverlays)==null?void 0:(T=A.playerOverlayRenderer)==null?void 0:T.productsInVideoOverlayRenderer, LSy);this.G=this.enabled=!1;if(y){if(P=y==null?void 0:y.featuredProductsEntityKey){A=g.LF.getState().entities;var M;if((M=Ei(A,"featuredProductsEntity",P))==null?0:M.productsData){this.ih(!1);return}}this.enabled=!0;if(!this.W){var n;M=(n=y.badgeInteractionLogging)==null?void 0:n.trackingParams;(this.W=!!M)&&this.S.setTrackingParams(this.badge.element,M||null)}if(!this.zK){var Y;if(this.zK=!((Y=y.dismissButton)==null||!Y.trackingParams)){var S;this.S.setTrackingParams(this.dismissButton.element,((S= y.dismissButton)==null?void 0:S.trackingParams)||null)}}y.isContentForward&&(n=y.productsData,Qim(this,!0),zw3(this),n=Eh3(this,n),Y=[],n.length>0&&Y.push(n[0]),n.length>1&&(S=new g.z({j:"div",N:"ytp-suggested-action-more-products-icon"}),g.X(this,S),Y.push(S),Y.push.apply(Y,g.r(n.slice(1)))),this.L=new g.z({j:"div",D:Y,N:"ytp-suggested-action-content-forward-container"}),g.X(this,this.L),this.cX.element.append(this.L.element));this.text=g.nf(y.text);var V;if(n=(V=y.dismissButton)==null?void 0:V.a11yLabel)this.GK= g.nf(n);this.onClickCommand=y.onClickCommand;this.timing=y.timing;this.PF()}HEH(this);bP(this);this.Jh()}}; g.a.KJ=function(){return!this.G&&this.enabled&&!this.ZB&&!this.S.lj()&&!this.J9&&(this.B||this.AY)}; g.a.ZV=function(J){Fs.prototype.ZV.call(this,J);if(this.C||this.T)this.timing&&G1(this.timing.preview)&&(this.C=!1,bC(this),this.T=!1,bC(this),this.S.tI("shopping_overlay_preview_collapsed"),this.S.tI("shopping_overlay_preview_expanded"),J=Fd(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),G1(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.tI("shopping_overlay_expanded"),J.end=this.timing.expanded.endSec*1E3),this.S.PF([J])), this.Cy=!0,bP(this);bC(this)}; g.a.ih=function(J){(this.B=J)?(G6(this),bP(this,!1)):(Z2U(this),this.Ek.start());this.Jh()}; g.a.PF=function(J){var y=this.timing;J=(J===void 0?0:J)+this.S.getCurrentTime();var v=[],d=y.visible,P=y.preview;y=y.expanded;G1(d)&&(Nt3(d,J),v.push(Fd(d.startSec,d.endSec,"shopping_overlay_visible")));G1(P)&&(Nt3(P,J),d=P.startSec+1,v.push(Fd(P.startSec,d,"shopping_overlay_preview_collapsed")),v.push(Fd(d,P.endSec,"shopping_overlay_preview_expanded")));G1(y)&&(Nt3(y,J),v.push(Fd(y.startSec,y.endSec,"shopping_overlay_expanded")));this.S.PF(v)}; g.a.Jh=function(){Fs.prototype.Jh.call(this);this.S.getRootNode()&&g.lq(this.S.getRootNode(),"ytp-shopping-pill-shown",this.KJ())};g.x(yMT,g.z); yMT.prototype.Mx=function(){var J=this.api.Y();this.eH(g.un(J)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.zI);var y=this.api.getVideoData(),v=!1;this.api.getPresentingPlayerType()===2?v=!!y.videoId&&!!y.isListed&&!!y.author&&!!y.Ky&&!!y.profilePicture:g.un(J)&&(v=!!y.videoId&&!!y.Ky&&!!y.profilePicture&&!g.n5(y)&&!J.J&&!(J.G&&this.api.getPlayerSize().width<200));var d=y.profilePicture;J=g.un(J)?y.expandedTitle:y.author;d=d===void 0? "":d;J=J===void 0?"":J;v?(this.T!==d&&(this.C.style.backgroundImage="url("+d+")",this.T=d),this.updateValue("channelLogoLabel",g.yY("Foto o imagen de $CHANNEL_NAME",{CHANNEL_NAME:J})),g.d7(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.AZ(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.C,v&&this.V);this.api.logVisibility(this.channelName,v&&this.V);this.subscribeButton&&(this.subscribeButton.channelId=y.uC);this.updateValue("expandedTitle",y.expandedTitle)};g.x(jE,g.EH);jE.prototype.show=function(){g.EH.prototype.show.call(this);this.C.start()}; jE.prototype.hide=function(){g.EH.prototype.hide.call(this);this.C.stop()}; jE.prototype.GA=function(J,y){J==="dataloaded"&&((this.Ny=y.Ny,this.mL=y.mL,isNaN(this.Ny)||isNaN(this.mL))?this.J&&(this.S.tI("intro"),this.S.removeEventListener(g.Xz("intro"),this.G),this.S.removeEventListener(g.NA("intro"),this.L),this.S.removeEventListener("onShowControls",this.W),this.hide(),this.J=!1):(this.S.addEventListener(g.Xz("intro"),this.G),this.S.addEventListener(g.NA("intro"),this.L),this.S.addEventListener("onShowControls",this.W),J=new g.uI(this.Ny,this.mL,{priority:9,namespace:"intro"}), this.S.PF([J]),this.J=!0))};g.x(eE,g.z);eE.prototype.onClick=function(){this.S.Wz()}; eE.prototype.Mx=function(){var J=!0;g.un(this.S.Y())&&(J=J&&this.S.DB().getPlayerSize().width>=480);this.eH(J);J=this.updateValue;var y=this.S.X("delhi_modern_web_player_icons"),v=y?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,U:{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"}}]};y=y?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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"}}]};J.call(this,"icon",this.S.Fz()?v:y)};g.x(dvj,g.z);dvj.prototype.JY=function(){this.C=null;g.z.prototype.JY.call(this)};g.x(mR,g.z);mR.prototype.onClick=function(){this.S.Rf("innertubeCommand",this.T)}; mR.prototype.K=function(){if(this.S.X("delhi_modern_web_player")){var J=this.S.getPlayerSize();J.width&&(this.element.style.maxWidth=J.width*.25+"px")}}; mR.prototype.Cy=function(J){J!==this.G&&(this.update({title:J,ariaLabel:J}),this.G=J);J?this.show():this.hide()}; mR.prototype.zK=function(){this.C.disabled=this.T==null;g.lq(this.C,"ytp-chapter-container-disabled",this.C.disabled);this.cq()};g.x(B7,mR);B7.prototype.onClickCommand=function(J){g.R(J,V1)&&this.cq()}; B7.prototype.updateVideoData=function(J,y){var v,d,P;J=g.R((v=y.getWatchNextResponse())==null?void 0:(d=v.playerOverlays)==null?void 0:(P=d.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,fh);v=g.R(J==null?void 0:J.playerBarActionButton,g.Zc);if(this.S.X("web_player_updated_entrypoint")){this.B=pY(v==null?void 0:v.text);var A;d=(A=v==null?void 0:v.tooltip)!=null?A:"Ver cap\u00edtulo";this.L.setAttribute("title",d)}this.T=v==null?void 0:v.command;mR.prototype.zK.call(this)}; B7.prototype.cq=function(){var J=this.B,y=this.W.C,v,d=((v=this.S.getLoopRange())==null?void 0:v.type)==="clips";if(y.length>1&&!d){J=this.S.getProgressState().current*1E3;v=Yl(y,J);J=y[v].title||"Cap\u00edtulos";if(v!==this.currentIndex||this.J)this.S.Rf("innertubeCommand",y[v].onActiveCommand),this.currentIndex=v;this.J=!1}else this.J=!0;mR.prototype.Cy.call(this,J)};g.x(q1,g.T_);q1.prototype.T=function(){var J;(J=this.element.parentElement)==null||J.classList.contains("ytp-right-controls-left");(this.C=!this.C)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; q1.prototype.isExpanded=function(){return this.C};g.x(r_,g.z);r_.prototype.J=function(J){g.k(J.state,32)?AMR(this,this.api.Id()):this.zI&&(g.k(J.state,16)||g.k(J.state,1))||this.fade.hide()}; r_.prototype.Xz=function(){var J=this.api.getPlayerStateObject();(g.k(J,32)||g.k(J,16))&&TWm(this)}; r_.prototype.W=function(){this.frameIndex=NaN;TWm(this)}; r_.prototype.hide=function(){this.C&&AMR(this,null);g.z.prototype.hide.call(this)};g.x(lPd,g.z);g.a=lPd.prototype;g.a.onClick=function(){var J=this;if(this.S.Y().aG||this.S.Y().G){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(y){J.UB(y)})}catch(y){this.UB(y)}}else ZF(this.message,this.element,!0)}; g.a.UB=function(J){String(J).includes("fullscreen error")?g.ev(J):g.jv(J);this.T5()}; g.a.T5=function(){this.disable();this.message.OS(this.element,!0)}; g.a.GH=function(){tX()===this.S.getRootNode()?this.J.start():(this.J.stop(),this.message&&this.message.hide())}; g.a.qg=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var J=window.screen.width*.9,y=window.screen.height*.9,v=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(v>d!==J>y){var P=v;v=d;d=P}J>v&&y>d&&this.T5()}}; g.a.disable=function(){var J=this;if(!this.message){var y=(S$(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"La opci\u00f3n de pantalla completa no est\u00e1 disponible. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK":"Tu navegador no es compatible con la opci\u00f3n de pantalla completa. $BEGIN_LINKM\u00e1s informaci\u00f3n$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.EH(this.S,{j:"div",kB:["ytp-popup","ytp-generic-popup"], U:{role:"alert",tabindex:"0"},D:[y[0],{j:"a",U:{href:"https://support.google.com/youtube/answer/6276924",target:this.S.Y().K},TK:y[2]},y[4]]},100,!0);this.message.hide();g.X(this,this.message);this.message.subscribe("show",function(v){J.T.AD(J.message,v)}); g.Hp(this.S,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.C)();this.C=null}}; g.a.Mx=function(){var J=FBx(this.S),y=this.S.Y().G&&this.S.getPlayerSize().width<250;this.eH(J&&!y);var v;((v=this.S.Y())==null?0:v.X("embeds_use_parent_visibility_in_ve_logging"))?this.S.logVisibility(this.element,this.zI&&this.V):this.S.logVisibility(this.element,this.zI)}; g.a.a$=function(J){if(J){var y=g.$t(this.S,"Salir de pantalla completa","f");this.update({"data-title-no-tooltip":"Salir de pantalla completa"});document.activeElement===this.element&&this.S.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(v){g.ev(v)})}else y=g.$t(this.S,"Pantalla completa","f"),this.update({"data-title-no-tooltip":"Pantalla completa"}); J=MNj(this,J);y=this.message?null:y;this.update({title:y,icon:J});this.T.G4().O3()}; g.a.JY=function(){this.message||((0,this.C)(),this.C=null);g.z.prototype.JY.call(this)}; g.a.v$=function(J){g.z.prototype.v$.call(this,J);var y;((y=this.S.Y())==null?0:y.X("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.zI&&J)};g.x($l,g.z);$l.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.C,!0);var J=this.C>0?1:-1,y=Math.abs(this.C),v=this.S.hv().mP;v&&v.Nr(J,y);this.T.isActive()?this.J=!0:(J=["ytp-jump-spin"],this.C<0&&J.push("backwards"),this.element.classList.add.apply(this.element.classList,g.r(J)),g.zA(this.T))};g.x(ot,mR);ot.prototype.onClickCommand=function(J){g.R(J,SS_)&&this.cq()}; ot.prototype.updateVideoData=function(){var J,y;this.T=(J=sW2(this))==null?void 0:(y=J.onTap)==null?void 0:y.innertubeCommand;mR.prototype.zK.call(this)}; ot.prototype.cq=function(){var J="",y=this.W.G,v,d=(v=sW2(this))==null?void 0:v.headerTitle;v=d?g.nf(d):"";var P;d=((P=this.S.getLoopRange())==null?void 0:P.type)==="clips";y.length>1&&!d&&(J=this.S.getProgressState().current*1E3,P=YDP(y,J),J=P!=null?y[P].title:v,P!=null&&P!==this.currentIndex&&(this.S.Rf("innertubeCommand",y[P].onActiveCommand),this.currentIndex=P));mR.prototype.Cy.call(this,J)};g.x(CE,g.z);CE.prototype.onClick=function(){this.S.Rf("onCollapseMiniplayer");this.S.logClick(this.element)}; CE.prototype.Mx=function(){this.visible=!this.S.isFullscreen();this.eH(this.visible);this.S.logVisibility(this.element,this.visible&&this.V)}; CE.prototype.v$=function(J){g.z.prototype.v$.call(this,J);this.S.logVisibility(this.element,this.visible&&J)};g.x(hY,g.z);hY.prototype.init=function(){this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.L);this.updateValue("stepvalue",this.B);this.updateValue("slidervalue",this.C);YRU(this,this.C)}; hY.prototype.J=function(){It(this,Number(this.T.value));this.T.focus()}; hY.prototype.G=function(J){if(!J.defaultPrevented){switch(J.code){case "ArrowDown":J=-this.B;break;case "ArrowUp":J=this.B;break;default:return}It(this,Math.min(this.L,Math.max(Number((this.C+J).toFixed(2)),this.W)))}};g.x(pE,hY);pE.prototype.onVolumeChange=function(J){if(this.K)this.K=!1;else{var y=J.volume;y===0||J.muted?It(this,0):It(this,y)}}; pE.prototype.J=function(){hY.prototype.J.call(this);this.zK(this.C)}; pE.prototype.Cy=function(J){var y=-J.deltaY;y=J.deltaMode===WheelEvent.DOM_DELTA_LINE||J.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.uX(this.C+y,0,100):g.uX(this.C+g.uX(y/10,-10,10),0,100);y===0?It(this,0):It(this,y);this.zK(y);J.preventDefault();J.stopPropagation()}; pE.prototype.AY=function(J,y){this.K=!0;J===0||y?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(J))};g.x(SR3,g.z);g.x(fE,g.z);g.a=fE.prototype;g.a.rM=function(){if(!this.S.xg()){this.updateValue("dataTooltipOffsetY",-120);var J;(J=this.C)!=null&&UM(J,!0);var y;(y=this.C)!=null&&y.C.stop()}}; g.a.yD=function(){var J;(J=this.C)!=null&&J.C.start()}; g.a.Fn=function(J){this.visible=J.width>=300||this.WX;this.eH(this.visible);this.S.logVisibility(this.element,this.visible&&this.V)}; g.a.kd=function(){this.S.Y().cX?this.S.isMuted()?this.S.unMute():this.S.mute():ZF(this.message,this.element,!0);this.S.logClick(this.element)}; g.a.gmB=function(J){if(this.S.Y().cX&&this.C)if(J.target===this.J){var y;if(!this.S.xg()||((y=this.C)==null?0:y.isVisible))this.kd();else{var v;(v=this.C)!=null&&UM(v,!0)}}else{var d;(d=this.C)!=null&&UM(d,!0)}else this.kd()}; g.a.onVolumeChange=function(J){this.setVolume(J.volume,J.muted)}; g.a.setVolume=function(J,y){var v=this,d=y?0:J/100;J=d===0?1:J>50?1:0;if(this.K!==J){var P=this.B;isNaN(P)?aPc(this,J):eWU(this.cX,function(T){aPc(v,P+(v.K-P)*T)},250); this.K=J}d=d===0?1:0;if(this.G!==d){var A=this.AY;isNaN(A)?xvx(this,d):eWU(this.wj,function(T){xvx(v,A+(v.G-A)*T)},250); this.G=d}Lzj(this,y)}; g.a.v$=function(J){g.z.prototype.v$.call(this,J);this.S.logVisibility(this.element,this.visible&&J)}; var tNH=["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"],Wz2=["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.x(g.iC,g.z);g.a=g.iC.prototype;g.a.onStateChange=function(J){this.Hq(J.state);var y;((y=this.S.Y())==null?0:y.X("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.zI&&this.V)}; g.a.Hq=function(J){var y=g.fF(this.S.getVideoData()),v=!1;J.isOrWillBePlaying()?J=y?4:2:g.k(J,2)?(J=3,v=y):J=1;this.element.disabled=v;if(this.C!==J){y=null;switch(J){case 2:y=g.$t(this.S,"Pausa","k");this.update({"data-title-no-tooltip":"Pausa"});break;case 3:y="Volver a reproducir";this.update({"data-title-no-tooltip":"Volver a reproducir"});break;case 1:y=g.$t(this.S,"Reproducir","k");this.update({"data-title-no-tooltip":"Reproducir"});break;case 4:y="Detener la reproducci\u00f3n en vivo",this.update({"data-title-no-tooltip":"Detener la reproducci\u00f3n en vivo"})}J=== 3?this.update({title:y,icon:ONx(this,J)}):(this.update({title:y}),(y=ONx(this,J))&&this.C&&this.C!==3?Bd3(this.transition,this.element,y):this.updateValue("icon",y));this.tooltip.O3();this.C=J}}; g.a.onVideoDataChange=function(){g.lq(this.element,"ytp-play-button-playlist",g.p5(this.S))}; g.a.B7=function(J){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var y={},v;if((v=this.S.getVideoData())==null?0:v.L)y.cttAuthInfo={token:this.S.getVideoData().L,videoId:this.S.getVideoData().videoId};Fh("direct_playback",y);this.S.AR().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(J==null?void 0:J.type)==="click"&&this.element.blur()}; g.a.v$=function(J){g.z.prototype.v$.call(this,J);var y;((y=this.S.Y())==null?0:y.X("embeds_use_parent_visibility_in_ve_logging"))&&this.S.logVisibility(this.element,this.zI&&J)};g.x(g.uC,g.z);g.a=g.uC.prototype;g.a.onVideoDataChange=function(){cMv(this);this.W&&(this.y8(this.W),this.W=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.W=this.Z(this.S,"progresssync",this.Gt);this.J=GXx(this);Dvc(this);this.XM(this.S.DB().getPlayerSize())}; g.a.XM=function(J){J=J===void 0?this.S.DB().getPlayerSize():J;var y,v=((y=this.S.getLoopRange())==null?void 0:y.type)==="clips";J=(g.p5(this.S)||this.C&&g.X$(this.S)&&!this.S.X("web_hide_next_button")||bNx(this))&&!v&&(this.C||J.width>=400);this.eH(J);this.S.logVisibility(this.element,J)}; g.a.onClick=function(J){this.S.logClick(this.element);var y=!0;this.G?y=g.L8(J,this.S):J.preventDefault();y&&(this.C&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.C?(O2(this.S.AR()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.J?this.S.seekTo(0):(O2(this.S.AR()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))}; g.a.Gt=function(){var J=GXx(this);J!==this.J&&(this.J=J,Dvc(this))}; g.a.JY=function(){this.T&&(this.T(),this.T=null);cMv(this);g.z.prototype.JY.call(this)};g.x(jWT,g.z);g.a=jWT.prototype;g.a.RK=function(J){this.OL(J.pageX);this.vL(J.pageX+J.deltaX);e_U(this)}; g.a.OL=function(J){this.zK=J-this.WX}; g.a.vL=function(J){J-=this.WX;!isNaN(this.zK)&&this.thumbnails.length>0&&(this.K=J-this.zK,this.thumbnails.length>0&&this.K!==0&&(this.J=this.B+this.K,J=$vv(this,this.J),this.J<=this.C/2&&this.J>=rMv(this)?(this.api.seekTo(J,!1,void 0,void 0,25),g.Ni(this.AY,"transform","translateX("+(this.J-this.C/2)+"px)"),Fzr(this,J)):this.J=this.B))}; g.a.ZM=function(){this.Cy&&(this.Cy.qI=!0);var J=(0,g.GC)()-this.Vk<300;if(Math.abs(this.K)<5&&!J){this.Vk=(0,g.GC)();J=this.zK+this.K;var y=this.C/2-J;this.OL(J);this.vL(J+y);e_U(this);this.api.logClick(this.L)}e_U(this)}; g.a.BT=function(){H7(this,this.api.getCurrentTime())}; g.a.play=function(J){this.api.seekTo($vv(this,this.J),void 0,void 0,void 0,26);this.api.playVideo();J&&this.api.logClick(this.playButton)}; g.a.onExit=function(J){this.api.seekTo(this.Ek,void 0,void 0,void 0,63);this.api.playVideo();J&&this.api.logClick(this.dismissButton)}; g.a.UN=function(J,y){this.WX=J;this.C=y;H7(this,this.api.getCurrentTime())}; g.a.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ek=this.api.getCurrentTime(),Fzr(this,this.Ek),g.lq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.cX=this.Z(this.element,"wheel",this.RK),this.logVisibility(this.isEnabled))}; g.a.disable=function(){this.isEnabled=!1;this.hide();g.lq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.cX&&this.y8(this.cX);this.logVisibility(this.isEnabled)}; g.a.reset=function(){this.disable();this.W=[];this.If=!1}; g.a.logVisibility=function(J){this.api.logVisibility(this.element,J);this.api.logVisibility(this.L,J);this.api.logVisibility(this.dismissButton,J);this.api.logVisibility(this.playButton,J)}; g.a.JY=function(){for(;this.T.length;){var J=void 0;(J=this.T.pop())==null||J.dispose()}g.z.prototype.JY.call(this)}; g.x(mvH,g.z);g.x(BWH,g.z);g.x(oCm,g.z);g.x(Xd,g.z);Xd.prototype.sN=function(J){return J==="PLAY_PROGRESS"?this.B:J==="LOAD_PROGRESS"?this.G:J==="LIVE_BUFFER"?this.L:this.J};IPm.prototype.update=function(J,y,v,d){v=v===void 0?0:v;this.width=y;this.W=v;this.C=y-v-(d===void 0?0:d);this.position=g.uX(J,v,v+this.C);this.J=this.position-v;this.T=this.J/this.C};g.x(pXr,g.z);g.x(g.KE,g.T_);g.a=g.KE.prototype; g.a.FE=function(){var J=!1,y=this.api.getVideoData();if(!y)return J;this.api.tI("timedMarkerCueRange");iNR(this);for(var v=g.D(y.XW),d=v.next();!d.done;d=v.next()){d=d.value;var P=void 0,A=(P=this.GK[d])==null?void 0:P.markerType;P=void 0;var T=(P=this.GK[d])==null?void 0:P.markers;if(!T)break;if(A==="MARKER_TYPE_TIMESTAMPS"){J=g.D(T);for(A=J.next();!A.done;A=J.next()){P=A.value;A=new pXr;T=void 0;A.title=((T=P.title)==null?void 0:T.simpleText)||"";A.timeRangeStartMillis=Number(P.startMillis);A.C= Number(P.durationMillis);var M=T=void 0;A.onActiveCommand=(M=(T=P.onActive)==null?void 0:T.innertubeCommand)!=null?M:void 0;Kzd(this,A)}z_3(this,this.G);J=this.G;A=this.M1;P=[];T=null;for(M=0;Mn&&(T.end=n);n=LId(n,n+S);P.push(n);T=n;A[n.id]=J[M].onActiveCommand}}this.api.PF(P);this.Xg=this.GK[d];J=!0}else if(A==="MARKER_TYPE_HEATMAP"){d=this.GK[d];S=Y=P=n=M=T=void 0;if(d&& d.markers){A=(P=(S=d.markersMetadata)==null?void 0:(Y=S.heatmapMetadata)==null?void 0:Y.minHeightDp)!=null?P:0;P=(T=(n=d.markersMetadata)==null?void 0:(M=n.heatmapMetadata)==null?void 0:M.maxHeightDp)!=null?T:60;T=this.C.length;M=null;for(n=0;n=S&&W<=V&&Y.push(t)}P>0&&(this.Cy.style.height= P+"px");S=this.W[n];V=Y;t=A;var c=P,b=n===0;b=b===void 0?!1:b;CWc(S,c);L=V;W=S.T;b=b===void 0?!1:b;var B=1E3/L.length,q=[];q.push({x:0,y:100});for(var C=0;C0&&(M=Y[Y.length-1])}g.z1(this)}P=void 0;A=[];if(d=(P=d.markersDecoration)==null?void 0:P.timedMarkerDecorations)for(d=g.D(d),P=d.next();!P.done;P=d.next())P=P.value,n=M=T=void 0,A.push({visibleTimeRangeStartMillis:(T=P.visibleTimeRangeStartMillis)!=null?T:-1,visibleTimeRangeEndMillis:(M=P.visibleTimeRangeEndMillis)!=null?M:-1,decorationTimeMillis:(n=P.decorationTimeMillis)!= null?n:NaN,label:P.label?g.nf(P.label):""});d=A;this.heatMarkersDecorations=d}}y.Sq=this.G;g.lq(this.element,"ytp-timed-markers-enabled",J);return J}; g.a.UN=function(){g.z1(this);Qu(this);z_3(this,this.G);if(this.T){var J=g.ws(this.element).x||0;this.T.UN(J,this.L)}}; g.a.c_X=function(){var J=this.api.getVideoData();J&&AG6(this,J)}; g.a.onClickCommand=function(J){if(J=g.R(J,V1)){var y=J.key;J.isVisible&&y&&ZNx(this,y)}}; g.a.i0K=function(J){this.api.Rf("innertubeCommand",this.M1[J.id])}; g.a.cq=function(){Qu(this);var J=this.api.getCurrentTime();(Jthis.clipEnd)&&this.GE()}; g.a.Yh=function(J){if(!J.defaultPrevented){var y=!1;switch(J.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);y=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);y=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);y=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);y=!0;break;case 38:this.api.X("enable_key_press_seek_logging")&&dd(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);y=!0;break;case 40:this.api.X("enable_key_press_seek_logging")&&dd(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),y=!0}y&&J.preventDefault()}}; g.a.GA=function(J,y){this.updateVideoData(y,J==="newdata")}; g.a.E0=function(){this.GA("newdata",this.api.getVideoData())}; g.a.updateVideoData=function(J,y){y=y===void 0?!1:y;var v=!!J&&J.ZO();v&&(Mr(J)||dOH(this)?this.TP=!1:this.TP=J.allowLiveDvr,g.lq(this.api.getRootNode(),"ytp-enable-live-buffer",!(J==null||!Mr(J))),AG6(this,J));xOc(this,this.api.ij());if(y){if(v){y=J.clipEnd;this.clipStart=J.clipStart;this.clipEnd=y;Pw(this);for(JK(this,this.zK,this.aG);this.W.length>0;)this.W.pop().dispose();this.heatMarkersDecorations=[];this.yl={};var d;(d=this.T)==null||d.reset();nq(this);g.lq(this.api.getRootNode(),"ytp-fine-scrubbing-exp", Rt(this))}else this.GE();this.wr()}if(J){var P;d=((P=this.wp)==null?void 0:P.type)==="clips";if(P=!J.isLivePlayback){P=this.api.getVideoData();y=g.iB(P);v=HNP(P);var A;P=y!=null||v!=null&&v.length>0||((A=P.Uc)==null?void 0:A.length)>0}if(P&&!d){A=this.api.getVideoData();d=g.iB(A);P=!1;if(d==null?0:d.markersMap){P=this.api.getVideoData();var T;P.HY=((T=d.visibleOnLoad)==null?void 0:T.key)||P.HY;T=g.D(d.markersMap);for(d=T.next();!d.done;d=T.next())d=d.value,d.key&&d.value&&(this.yl[d.key]=d.value, d.value.onChapterRepeat&&(P.Dd=d.value.onChapterRepeat));P.HY!=null&&ZNx(this,P.HY);P=!0}var M;if(((M=A.Uc)==null?void 0:M.length)>0){M=g.LF.getState().entities;T=g.D(A.Uc);for(d=T.next();!d.done;d=T.next()){d=d.value;v=void 0;y=(v=Ei(M,"macroMarkersListEntity",d))==null?void 0:v.markersList;var n=v=void 0;if(((v=y)==null?void 0:v.markerType)==="MARKER_TYPE_TIMESTAMPS"||((n=y)==null?void 0:n.markerType)==="MARKER_TYPE_HEATMAP")this.GK[d]=y}P=this.FE()||P}!P&&(M=HNP(A))&&(NW6(this,M),A.Xg=this.C,XX6(this)); Toc(this,null);J.QW&&this.W.length===0&&(J=J.QW,M=J.key,J.isVisible&&M&&ZNx(this,M))}else Uvm(this),iNR(this)}Qu(this)}; g.a.mu=function(J){this.B&&!g.k(J.state,32)&&this.api.getPresentingPlayerType()!==3&&this.B.cancel();var y;((y=this.T)==null?0:y.isEnabled)&&g.k(J.state,8)&&this.api.pauseVideo();J=this.api.getPresentingPlayerType()===2||!this.api.ij()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.lq(this.Lj,"ytp-hide-scrubber-button",J)}; g.a.KZ=function(J){var y=!!this.wp!==!!J,v=this.wp;this.wp=J;Toc(this,v);(J==null?void 0:J.type)!=="clips"&&J||(J?(this.updateValue("clipstarticon",cXd()),this.updateValue("clipendicon",cXd()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",LNd()),this.updateValue("clipendicon",V$H()),this.updateValue("clipstarttitle","Mirar video completo"),this.updateValue("clipendtitle","Mirar video completo")),y&&(this.updateVideoData(this.api.getVideoData(), !0),g.z1(this)),Pw(this));JK(this,this.zK,this.aG)}; g.a.a1b=function(){this.api.publish("progressBarHoverStart")}; g.a.Tnx=function(J,y,v){var d=g.ws(this.element),P=EM(this).C,A=v?v.getAttribute("data-tooltip"):void 0,T=v?v.getAttribute("data-position"):void 0,M=v?v.getAttribute("data-offset-y"):void 0;M=M?Number(M):0;T&&(J=mP(this.J,Number(v.getAttribute("data-position")),0)*P+g.ws(this.progressBar).x);this.Ky.x=J-d.x;this.Ky.y=y-d.y;J=EM(this);v=vw(this,J);y=0;var n;if((n=this.api.getVideoData())==null?0:Mr(n))(n=this.api.getProgressState().seekableEnd)&&v>n&&(v=n,J.position=mP(this.J,n)*EM(this).C),y=this.J.T; dOH(this)&&(y=this.J.T);n=A||g.xZ(this.TP?v-this.J.C:v-y);y=J.position+this.yH;v-=this.api.Vl();var Y;if((Y=this.T)==null||!Y.isEnabled)if(this.api.Id()){if(this.C.length>1){Y=ya(this,this.Ky.x,!0);if(!this.wp)for(d=0;d1)for(d=0;d0)for(Y=this.Ky.x,d=g.D(this.G),P=d.next();!P.done;P=d.next())P=P.value,T=kl(this,P.timeRangeStartMillis/ (this.J.C*1E3),EM(this)),g.lq(P.element,"ytp-timed-marker-hover",T<=Y&&T+6>=Y);d=this.tooltip.scale;Y=this.api.X("delhi_modern_web_player")?67:45;M=(isNaN(M)?0:M)-Y*d;this.api.X("web_key_moments_markers")?this.Xg?(Y=YDP(this.G,v*1E3),Y=Y!=null?this.G[Y].title:""):(Y=Yl(this.C,v*1E3),Y=this.C[Y].title):(Y=Yl(this.C,v*1E3),Y=this.C[Y].title);Y||(M+=16*d);this.tooltip.scale===.6&&(g.nh(this.api.Y())?(M=this.api.DB().getPlayerSize().height-225,d=this.api.X("delhi_modern_web_player")?70:110,M=Y?M+d:M+ d+16):M=Y?110:126);d=Yl(this.C,v*1E3);this.If=l4H(this,v,d)?d:l4H(this,v,d+1)?d+1:-1;g.lq(this.api.getRootNode(),"ytp-progress-bar-snap",this.If!==-1&&this.C.length>1);d=!1;P=g.D(this.heatMarkersDecorations);for(T=P.next();!T.done;T=P.next()){T=T.value;var S=v*1E3;S>=T.visibleTimeRangeStartMillis&&S<=T.visibleTimeRangeEndMillis&&(Y=T.label,n=g.xZ(T.decorationTimeMillis/1E3),d=!0)}this.EH!==d&&(this.EH=d,this.api.logVisibility(this.iN,this.EH));g.lq(this.api.getRootNode(),"ytp-progress-bar-decoration", d);d=160*this.tooltip.scale*2;P=Y.length*(this.K?8.55:5.7);P=P<=d?P:d;T=P<160*this.tooltip.scale;d=3;!T&&P/2>J.position&&(d=1);!T&&P/2>this.L-J.position&&(d=2);this.api.Y().G&&(M-=10);this.W.length&&this.W[0].ZO&&(M-=14*(this.K?2:1),this.Ek||(this.Ek=!0,this.api.logVisibility(this.Cy,this.Ek)));var V;if(Rt(this)&&(((V=this.T)==null?0:V.isEnabled)||this.XW>0)){var L;M-=((L=this.T)==null?0:L.isEnabled)?Tb(this):this.XW}V=void 0;Rt(this)&&!this.api.X("web_player_hide_fine_scrubbing_edu")&&(V="Arrastra hacia arriba para realizar una b\u00fasqueda m\u00e1s precisa", this.WX||(this.WX=!0,this.api.logVisibility(this.DO,this.WX)));this.tooltip.yp(y,v,n,!!A,M,Y,d,V)}else this.tooltip.yp(y,v,n,!!A,M);g.d7(this.api.getRootNode(),"ytp-progress-bar-hover");vAH(this)}; g.a.dsk=function(){this.wr();g.AZ(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ek&&(this.Ek=!1,this.api.logVisibility(this.Cy,this.Ek));this.WX&&(this.WX=!1,this.api.logVisibility(this.DO,this.WX));this.api.X("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.a.C6b=function(J,y){var v=g.ws(this.element);this.ES=J-v.x;Rt(this)&&this.T&&(this.T.If?H7(this.T,this.api.getCurrentTime()):qRr(this.T),this.T.show(),g.lq(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.T.isEnabled));this.Bo&&(this.Bo.dispose(),this.Bo=null);this.H5=y;this.SC=this.api.getCurrentTime();this.C.length>1&&this.If!==-1?this.api.seekTo(this.C[this.If].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(vw(this,EM(this)),!1,void 0,void 0,7);g.d7(this.element,"ytp-drag");(this.ER= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.a.J_B=function(){if(Rt(this)&&this.T){var J=Tb(this);this.XW>=J*.5?(this.T.enable(),H7(this.T,this.api.getCurrentTime()),a4H(this,J)):nq(this)}if(g.k(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var y;if((y=this.T)==null?0:y.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.C.length>1&&this.If!==-1)this.api.X("html5_enable_progress_bar_slide_seek_logging")&&dd(this,this.SC,this.C[this.If].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.C[this.If].startTime/1E3,void 0,void 0,void 0,7);else{J=vw(this,EM(this));this.api.X("html5_enable_progress_bar_slide_seek_logging")&&dd(this,this.SC,J,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(J,void 0,void 0,void 0,7);y=g.D(this.heatMarkersDecorations);for(var v=y.next();!v.done;v=y.next())v=v.value,J*1E3>=v.visibleTimeRangeStartMillis&&J*1E3<=v.visibleTimeRangeEndMillis&& this.api.logClick(this.iN)}g.AZ(this.element,"ytp-drag");this.wj&&(this.AY.src=this.wj);this.ER&&!g.k(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.a.gjB=function(J,y){var v=this,d=EM(this),P=vw(this,d);this.api.DB().yL||(d.position>this.ES+2?this.ZE&&(this.AY.src=this.ZE):d.position1);this.eH(J&&this.S.DB().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.zI);var y=1;J&&this.isActive()&&(y=2);if(this.C!==y){this.C=y;J=this.S.X("delhi_modern_web_player_icons");switch(y){case 1:this.updateValue("icon",J?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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"}}]}:{j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},D:[{j:"path",l6:!0,U:{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", J?{j:"svg",U:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},D:[{j:"path",U:{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.YKH())}g.lq(this.element,"ytp-remote-button-active",this.isActive())}}; s9.prototype.T=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var J=this.A9,y=this.element;if(J.Mo())J.p8();else{J.initialize();a:{var v=g.D(J.zg.items);for(var d=v.next();!d.done;d=v.next())if(d=d.value,d.priority===1){v=d;break a}v=null}v&&(v.open(),J.OS(y));J.OS(y)}}this.S.logClick(this.element)};g.x(Yr,g.z);Yr.prototype.C=function(J){var y=this.S.Y(),v=400;this.S.X("web_player_small_hbp_settings_menu")&&y.L?v=300:y.G&&(v=200);J=this.T&&J.width>=v;this.eH(J);this.S.X("embeds_use_parent_visibility_in_ve_logging")?this.S.logVisibility(this.element,J&&this.V):this.S.logVisibility(this.element,J)}; Yr.prototype.J=function(){if(this.A9.zI)this.A9.p8();else{var J=g.Bm(this.S.un());J&&!J.loaded&&(J.TN("tracklist",{includeAsr:!0}).length||J.load());this.S.logClick(this.element);this.A9.OS(this.element)}}; Yr.prototype.updateBadge=function(){var J=this.S.isHdr(),y=this.S.getPresentingPlayerType(),v=y!==2&&y!==3,d=g.uf(this.S),P=v&&!!g.f5(this.S.un());y=P&&d.displayMode===1;d=P&&d.displayMode===2;v=(P=y||d)||!v?null:this.S.getPlaybackQuality();g.lq(this.element,"ytp-hdr-quality-badge",J);g.lq(this.element,"ytp-hd-quality-badge",!J&&(v==="hd1080"||v==="hd1440"));g.lq(this.element,"ytp-4k-quality-badge",!J&&v==="hd2160");g.lq(this.element,"ytp-5k-quality-badge",!J&&v==="hd2880");g.lq(this.element,"ytp-8k-quality-badge", !J&&v==="highres");g.lq(this.element,"ytp-3d-badge-grey",!J&&P&&y);g.lq(this.element,"ytp-3d-badge",!J&&P&&d)};g.x(SL,Sk);SL.prototype.isLoaded=function(){var J=g.h2(this.S.un());return J!==void 0&&J.loaded}; SL.prototype.Mx=function(){g.h2(this.S.un())!==void 0&&this.S.getPresentingPlayerType()!==3?this.C||(this.A9.Wq(this),this.C=!0):this.C&&(this.A9.GP(this),this.C=!1);VP(this,this.isLoaded())}; SL.prototype.onSelect=function(J){this.isLoaded();J?this.S.loadModule("annotations_module"):this.S.unloadModule("annotations_module");this.S.publish("annotationvisibility",J)}; SL.prototype.JY=function(){this.C&&this.A9.GP(this);Sk.prototype.JY.call(this)};g.x(Va,g.pZ);Va.prototype.Mx=function(){var J=this.S.getAvailableAudioTracks();J.length>1?(this.Wn(g.x7(J,this.C)),this.tracks=g.Qq(J,this.C,this),this.countLabel.D1(J.length?" ("+J.length+")":""),this.publish("size-change"),this.CL(this.C(this.S.getAudioTrack())),this.enable(!0)):this.enable(!1)}; Va.prototype.AO=function(J){g.pZ.prototype.AO.call(this,J);this.S.setAudioTrack(this.tracks[J]);this.A9.Jv()}; Va.prototype.C=function(J){return J.toString()};g.x(Lq,Sk); Lq.prototype.T=function(){var J=this.S.getPresentingPlayerType();if(J!==2&&J!==3&&g.X$(this.S))this.C||(this.A9.Wq(this),this.C=!0,this.J.push(this.Z(this.S,"videodatachange",this.T)),this.J.push(this.Z(this.S,"videoplayerreset",this.T)),this.J.push(this.Z(this.S,"onPlaylistUpdate",this.T)),this.J.push(this.Z(this.S,"autonavchange",this.W)),J=this.S.getVideoData(),this.W(J.autonavState),this.S.logVisibility(this.element,this.C));else if(this.C){this.A9.GP(this);this.C=!1;J=g.D(this.J);for(var y=J.next();!y.done;y= J.next())this.y8(y.value)}}; Lq.prototype.W=function(J){VP(this,J!==1)}; Lq.prototype.onSelect=function(J){this.S.Rp(J?2:1);this.C&&(this.S.logVisibility(this.element,this.C),this.S.logClick(this.element))}; Lq.prototype.JY=function(){this.C&&this.A9.GP(this);Sk.prototype.JY.call(this)};g.x(gAj,g.yP);gAj.prototype.onClick=function(J){J.preventDefault();var y,v;(y=g.G9(this.S))==null||(v=y.fN())==null||v.p8();var d,P;(d=g.G9(this.S))==null||(P=d.QU())==null||P.OS(J.target)};g.x(DOj,g.pZ);g.a=DOj.prototype; g.a.lS=function(){var J=this.S.getPresentingPlayerType();if(J!==2&&J!==3){this.AY=this.S.Y_();var y=this.S.getAvailableQualityLevels();if(this.C){this.W={};J=g.xt(this.S,"getAvailableQualityData",[]);J=g.D(J);for(var v=J.next();!v.done;v=J.next())v=v.value,this.W[v.qualityLabel]=v;J=Object.keys(this.W);y[y.length-1]==="auto"&&J.push("auto");this.wj=new Set(y)}else if(this.L){v=g.xt(this.S,"getAvailableQualityData",[]);J=[];v=g.D(v);for(var d=v.next();!d.done;d=v.next())d=d.value,this.K[d.quality]= d,d.quality&&J.push(d.quality);y[y.length-1]==="auto"&&J.push("auto")}else J=y;g.skU(this.S)&&this.S.BE()&&J.unshift("missing-qualities");y=this.S.app.Ok();v=y.getVideoData();if(!v.T||!v.T.video||v.T.video.qualityOrdinal<1080||v.V7)y=!1;else{d=/^qsa/.test(v.clientPlaybackNonce);var P="r";v.T.id.indexOf(";")>=0&&(d=/^[a-p]/.test(v.clientPlaybackNonce),P="x");d?(y.dj("iqss",{trigger:P},!0),y=!0):y=!1}y&&J.unshift("inline-survey");this.Wn(J);y=this.S.getVideoData().cotn?!0:!1;v=this.Cy.tO();v=!g.nh(this.S.Y())|| !(y===void 0?0:y)||!(v===void 0||v);y=this.T;v=v===void 0?!1:v;y.gY&&g.lq(y.uA("ytp-panel-footer"),"ytp-panel-hide-footer",v===void 0?!1:v);if(J.length){this.nx();this.enable(!0);return}}this.enable(!1)}; g.a.nx=function(){if(this.C){var J=this.S.getPreferredQuality();this.wj.has(J)&&(this.G=this.S.getPlaybackQuality(),this.zK=this.S.getPlaybackQualityLabel(),J==="auto"?(this.CL(J),this.D1(this.bu(J))):this.CL(this.zK))}else J=this.S.getPreferredQuality(),this.options[J]&&(this.G=this.S.getPlaybackQuality(),this.CL(J),J==="auto"&&this.D1(this.bu(J)))}; g.a.AO=function(J){if(J!=="missing-qualities"){g.pZ.prototype.AO.call(this,J);var y=this.C?this.W[J]:this.K[J];var v=y==null?void 0:y.quality,d=y==null?void 0:y.formatId,P=y==null?void 0:y.paygatedQualityDetails;y=P==null?void 0:P.endpoint;if(P){var A;P=(A=this.options[J])==null?void 0:A.element;this.S.logClick(P)}if(this.C){var T,M;if((T=g.R(y,g.T0X))==null?0:(M=T.popup)==null?0:M.notificationActionRenderer)this.S.Rf("innertubeCommand",y);else if(y){this.S.Rf("innertubeCommand",y);return}d?this.S.setPlaybackQuality(v, d):this.S.setPlaybackQuality(v)}else{if(this.L){var n,Y;if((n=g.R(y,g.T0X))==null?0:(Y=n.popup)==null?0:Y.notificationActionRenderer)this.S.Rf("innertubeCommand",y);else if(y){this.S.Rf("innertubeCommand",y);return}}this.S.setPlaybackQuality(J)}this.A9.p8();this.lS()}}; g.a.open=function(){for(var J=g.D(Object.values(this.options)),y=J.next();!y.done;y=J.next()){y=y.value;var v=void 0;this.S.hasVe((v=y)==null?void 0:v.element)&&(v=void 0,this.S.logVisibility((v=y)==null?void 0:v.element,!0))}g.pZ.prototype.open.call(this);this.S.logClick(this.element)}; g.a.ud=function(J,y,v){var d=this;if(J==="missing-qualities")return new g.yP({j:"a",kB:["ytp-menuitem"],U:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.Y().K,tabindex:"0",role:"menuitemradio"},D:[{j:"div",kB:["ytp-menuitem-label"],TK:"{{label}}"}]},y,this.bu(J));if(J!=="inline-survey"){var P,A=(P=this.C?this.W[J]:this.K[J])==null?void 0:P.paygatedQualityDetails;P=A==null?void 0:A.veType;A=A==null?void 0:A.trackingParams;y=g.pZ.prototype.ud.call(this,J,y,v);A?(this.S.createServerVe(y.element, this,!0),this.S.setTrackingParams(y.element,A)):P&&this.S.createClientVe(y.element,this,P,!0);return y}J=[{j:"span",TK:"\u00bfSe ve bien?"}];v=g.D([!0,!1]);A=v.next();for(P={};!A.done;P={Z6:void 0},A=v.next())P.Z6=A.value,A=new g.z({j:"span",N:"ytp-menuitem-inline-survey-response",D:[P.Z6?DW2():WNx()],U:{tabindex:"0",role:"button"}}),A.listen("click",function(T){return function(){var M=d.S.app.Ok();M.dj("iqsr",{tu:T.Z6});M.getVideoData().V7=!0;d.A9.p8();d.lS()}}(P)),J.push(A); return new g.yP({j:"div",N:"ytp-menuitem",U:{"aria-disabled":"true"},D:[{j:"div",kB:["ytp-menuitem-label"],D:J}]},y)}; g.a.bu=function(J,y){y=y===void 0?!1:y;if(J==="missing-qualities")return{j:"div",TK:"\u00bfFaltan opciones?"};if(J==="inline-survey")return"";var v=this.L||this.C?[bKP(this,J,y,!1)]:[G$H(this,J)];var d=this.S.getPreferredQuality();y||d!=="auto"||J!=="auto"||(v.push(" "),this.C?v.push(bKP(this,this.zK,y,!0,["ytp-menu-label-secondary"])):this.L?v.push(bKP(this,this.G,y,!0,["ytp-menu-label-secondary"])):v.push(G$H(this,this.G,["ytp-menu-label-secondary"])));return{j:"div",D:v}};g.x(tK,hY);tK.prototype.J=function(){hY.prototype.J.call(this);this.K&&Fwx(this)}; tK.prototype.wj=function(){this.zK()}; tK.prototype.AY=function(){this.S.setPlaybackRate(this.C,!0)}; tK.prototype.G=function(J){hY.prototype.G.call(this,J);this.zK();Fwx(this);J.preventDefault()};g.x(Ww,g.z);g.a=Ww.prototype;g.a.init=function(){this.kF(this.C);this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.J)}; g.a.PT=function(J){if(!J.defaultPrevented){switch(J.keyCode){case 37:case 40:var y=-this.B;break;case 39:case 38:y=this.B;break;default:return}this.kF(this.C+y);J.preventDefault()}}; g.a.UD=function(J){var y=this.C;y+=(J.deltaX||-J.deltaY)<0?-this.K:this.K;this.kF(y);J.preventDefault()}; g.a.DM=function(J){J=(J-g.ws(this.W).x)/this.zK*this.range+this.T;this.kF(J)}; g.a.kF=function(J,y){y=y===void 0?"":y;J=g.uX(J,this.T,this.J);y===""&&(y=J.toString());this.updateValue("valuenow",J);this.updateValue("valuetext",y);this.Cy.style.left=(J-this.T)/this.range*(this.zK-this.If)+"px";this.C=J}; g.a.focus=function(){this.cX.focus()};g.x(aD,Ww);aD.prototype.AY=function(){this.S.setPlaybackRate(this.C,!0)}; aD.prototype.kF=function(J){Ww.prototype.kF.call(this,J,eH6(this,J).toString());this.L&&(jfU(this),this.wj())}; aD.prototype.updateValues=function(){var J=this.S.getPlaybackRate();eH6(this,this.C)!==J&&(this.kF(J),jfU(this))};g.x(mO3,g.T_);mO3.prototype.focus=function(){this.C.focus()};g.x(Bo3,j_);g.x(qcx,g.pZ);g.a=qcx.prototype;g.a.bu=function(J){return J==="1"?"Normal":J.toLocaleString()}; g.a.Mx=function(){var J,y=(J=this.S.getVideoData())==null?void 0:J.US();J=this.S.getPresentingPlayerType(y);this.enable(J!==2&&J!==3);oA3(this)}; g.a.Wn=function(J){g.pZ.prototype.Wn.call(this,J);this.G&&this.G.T.focus()}; g.a.FZ=function(J){g.pZ.prototype.FZ.call(this,J);J?(this.zK=this.Z(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),oA3(this),rGm(this,this.S.getPlaybackRate())):(this.y8(this.zK),this.zK=null)}; g.a.onPlaybackRateChange=function(J){var y=this.S.getPlaybackRate();!this.W&&this.K.includes(y)||$OP(this,y);rGm(this,J)}; g.a.ud=function(J,y,v){return J===this.C&&C82(this.S)?g.pZ.prototype.ud.call(this,J,y,v,{j:"div",N:"ytp-speed-slider-menu-footer",D:[this.G]}):g.pZ.prototype.ud.call(this,J,y,v)}; g.a.AO=function(J){g.pZ.prototype.AO.call(this,J);J===this.C?this.S.setPlaybackRate(this.L,!0):this.S.setPlaybackRate(Number(J),!0);C82(this.S)&&J===this.C||this.A9.Jv()}; g.a.VO=function(J){var y=J===this.C;this.W=!1;y&&xr(this.S)&&!C82(this.S)?(J=new Bo3(this.S),g.qX(this.A9,J)):g.pZ.prototype.VO.call(this,J)};g.x(I4T,g.pZ);g.a=I4T.prototype;g.a.CL=function(J){g.pZ.prototype.CL.call(this,J)}; g.a.lk=function(J){return J.option.toString()}; g.a.getOption=function(J){return this.settings[J]}; g.a.bu=function(J){return this.getOption(J).text||""}; g.a.AO=function(J){g.pZ.prototype.AO.call(this,J);this.publish("settingChange",this.setting,this.settings[J].option)};g.x(gd,g.e_);gd.prototype.LL=function(J){for(var y=g.D(Object.keys(J)),v=y.next();!v.done;v=y.next()){var d=v.value;if(v=this.kJ[d]){var P=J[d].toString();d=!!J[d+"Override"];v.options[P]&&(v.CL(P),v.W.element.setAttribute("aria-checked",String(!d)),v.C.element.setAttribute("aria-checked",String(d)))}}}; gd.prototype.Z5=function(J,y){this.publish("settingChange",J,y)};g.x(DB,g.pZ);DB.prototype.C=function(J){return J.languageCode}; DB.prototype.bu=function(J){return this.languages[J].languageName||""}; DB.prototype.AO=function(J){this.publish("select",J);this.S.logClick(this.element);g.r9(this.A9)};g.x(f4m,g.pZ);g.a=f4m.prototype;g.a.zX=function(J){return g.Vx(J)?"__off__":J.displayName}; g.a.bu=function(J){return J==="__off__"?"Desactivados":J==="__translate__"?"Traducci\u00f3n autom\u00e1tica":J==="__contribute__"?"Agregar subt\u00edtulos":J==="__correction__"?"Sugerir correcci\u00f3n de subt\u00edtulos":(J==="__off__"?{}:this.tracks[J]).displayName}; g.a.AO=function(J){if(J==="__translate__")this.C.open();else if(J==="__contribute__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var y=g.wU(this.S.Y(),this.S.getVideoData());g.U0(y)}else if(J==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var v=iKx(this);cw(this,v);g.pZ.prototype.AO.call(this,this.zX(v));var d,P;v=(y=this.S.getVideoData().getPlayerResponse())==null?void 0:(d=y.captions)==null?void 0:(P=d.playerCaptionsTracklistRenderer)== null?void 0:P.openTranscriptCommand;this.S.Rf("innertubeCommand",v);this.A9.Jv();this.W&&this.S.logClick(this.W)}else{if(J==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();y=iKx(this);cw(this,y);g.pZ.prototype.AO.call(this,this.zX(y));var A,T;y=(v=this.S.getVideoData().getPlayerResponse())==null?void 0:(A=v.captions)==null?void 0:(T=A.playerCaptionsTracklistRenderer)==null?void 0:T.openTranscriptCommand;this.S.Rf("innertubeCommand",y)}else this.S.logClick(this.element), cw(this,J==="__off__"?{}:this.tracks[J]),g.pZ.prototype.AO.call(this,J);this.A9.Jv()}}; g.a.Mx=function(){var J=this.S.getOptions();J=J&&J.indexOf("captions")!==-1;var y=this.S.getVideoData(),v=y&&y.W9,d,P=!((d=this.S.getVideoData())==null||!g.Pp(d));d={};if(J||v){var A;if(J){var T=this.S.getOption("captions","track");d=this.S.getOption("captions","tracklist",{includeAsr:!0});var M=P?[]:this.S.getOption("captions","translationLanguages");this.tracks=g.Qq(d,this.zX,this);P=g.x7(d,this.zX);var n,Y;iKx(this)&&((A=y.getPlayerResponse())==null?0:(n=A.captions)==null?0:(Y=n.playerCaptionsTracklistRenderer)== null?0:Y.openTranscriptCommand)&&P.push("__correction__");if(M.length&&!g.Vx(T)){if((A=T.translationLanguage)&&A.languageName){var S=A.languageName;A=M.findIndex(function(V){return V.languageName===S}); qUR(M,A)}pOj(this.C,M);P.push("__translate__")}A=this.zX(T)}else this.tracks={},P=[],A="__off__";P.unshift("__off__");this.tracks.__off__={};v&&P.unshift("__contribute__");this.tracks[A]||(this.tracks[A]=T,P.push(A));this.Wn(P);this.CL(A);T&&T.translationLanguage?this.C.CL(this.C.C(T.translationLanguage)):nrd(this.C);J&&this.L.LL(this.S.getSubtitlesUserSettings());this.countLabel.D1(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.S.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.a.rE=function(J){var y=this.S.getOption("captions","track");y=g.WL(y);y.translationLanguage=this.C.languages[J];cw(this,y)}; g.a.Z5=function(J,y){if(J==="reset")this.S.resetSubtitlesUserSettings();else{var v={};v[J]=y;this.S.updateSubtitlesUserSettings(v)}UOc(this,!0);this.G.start();this.L.LL(this.S.getSubtitlesUserSettings())}; g.a.Zfk=function(J){J||g.Ew(this.G)}; g.a.JY=function(){g.Ew(this.G);g.pZ.prototype.JY.call(this)}; g.a.open=function(){g.pZ.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.S.createClientVe(this.W,this,167341),this.S.logVisibility(this.W,!0))};g.x(uRr,g.Be);g.a=uRr.prototype; g.a.initialize=function(){if(!this.isInitialized){var J=this.S.Y();this.isInitialized=!0;try{this.TG=new DOj(this.S,this)}catch(v){g.ev(Error("QualityMenuItem creation failed"))}g.X(this,this.TG);var y=new f4m(this.S,this);g.X(this,y);J.J||(y=new SL(this.S,this),g.X(this,y));J.enableSpeedOptions&&(y=new qcx(this.S,this),g.X(this,y));(g.un(J)||J.L)&&(J.T||J.Vk)&&(y=new gAj(this.S,this),g.X(this,y));J.DO&&!J.X("web_player_move_autonav_toggle")&&(J=new Lq(this.S,this),g.X(this,J));J=new Va(this.S,this); g.X(this,J);this.S.publish("settingsMenuInitialized");OK3(this.settingsButton,this.zg.nR())}}; g.a.Wq=function(J){this.initialize();this.zg.Wq(J);OK3(this.settingsButton,this.zg.nR())}; g.a.GP=function(J){this.zI&&this.zg.nR()<=1&&this.hide();this.zg.GP(J);OK3(this.settingsButton,this.zg.nR())}; g.a.OS=function(J){this.initialize();this.zg.nR()>0&&g.Be.prototype.OS.call(this,J)}; g.a.p8=function(){this.sf?this.sf=!1:g.Be.prototype.p8.call(this)}; g.a.show=function(){g.Be.prototype.show.call(this);g.d7(this.S.getRootNode(),"ytp-settings-shown")}; g.a.hide=function(){g.Be.prototype.hide.call(this);g.AZ(this.S.getRootNode(),"ytp-settings-shown")}; g.a.ih=function(J){this.S.logVisibility(this.element,J);this.S.publish("settingsMenuVisibilityChanged",J)};g.x(Nod,g.z);g.a=Nod.prototype;g.a.onClick=function(){if(Gb(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var J=!1,y=g.pR(g.I4(),65);g.nh(this.S.Y())&&y!=null&&(J=!y);J&&this.S.Y().X("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}}; g.a.z8B=function(J){var y,v;(y=g.G9(this.S))==null||(v=y.fN())==null||v.OS(J)}; g.a.isEnabled=function(){var J=this.S.getOption("captions","track");return!(!J||!J.displayName)}; g.a.Mx=function(){var J=Gb(this),y=300;this.S.Y().G&&(y=480);this.S.X("delhi_modern_web_player_icons")&&this.updateValue("icon",XO2(this));if(this.S.Y().L){this.updateValue("title",g.$t(this.S,"Subt\u00edtulos","c"));this.update({"data-title-no-tooltip":"Subt\u00edtulos"});var v=J}else{if(J)(v=this.uA("ytp-subtitles-button-icon"))==null||v.setAttribute("fill-opacity","1"),this.updateValue("title",g.$t(this.S,"Subt\u00edtulos","c")),this.update({"data-title-no-tooltip":"Subt\u00edtulos"});else{if(this.S.X("delhi_modern_web_player_icons")){var d; (d=this.uA("ytp-subtitles-button-icon"))==null||d.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var P;(P=this.uA("ytp-subtitles-button-icon"))==null||P.setAttribute("fill-opacity","0.3")}this.updateValue("title","Subt\u00edtulos no disponibles");this.update({"data-title-no-tooltip":"Subt\u00edtulos no disponibles"})}v=!0}this.tooltip.O3();v=v&&this.S.DB().getPlayerSize().width>=y;this.eH(v);this.S.X("embeds_use_parent_visibility_in_ve_logging")?this.S.logVisibility(this.element, v&&this.V):this.S.logVisibility(this.element,v);J?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.a.v$=function(J){g.z.prototype.v$.call(this,J);this.S.Y().X("embeds_use_parent_visibility_in_ve_logging")&&this.S.logVisibility(this.element,this.zI&&J)};g.x(g.bu,g.z);g.a=g.bu.prototype;g.a.canShowCountdown=function(){return!jL(this)&&!Fu(this)}; g.a.cq=function(){var J=this.api.DB().getPlayerSize().width,y=this.K;this.api.Y().G&&(y=400);y=J>=y&&(!Fu(this)||!g.k(this.api.getPlayerStateObject(),64));this.eH(y);g.lq(this.element,"ytp-time-display-allow-autohide",y&&J<400);J=this.api.getProgressState();if(y){var v=this.api.getPresentingPlayerType();y=this.api.getCurrentTime(v,!1);this.T&&(y-=J.airingStart);jL(this)&&(y-=this.wp.startTimeMs/1E3);this.canShowCountdown()&&this.J&&(y-=this.api.getDuration(v,!1));var d=g.xZ(y);this.W!==d&&(this.updateValue("currenttime", d),this.W=d);v=jL(this)?(this.wp.endTimeMs-this.wp.startTimeMs)/1E3:this.api.getDuration(v,!1);d=g.xZ(v);this.L!==d&&(this.updateValue("duration",d),this.L=d,y&&(y=g.yY("$PLAY_PROGRESS de $DURATION",{PLAY_PROGRESS:g.xZ(y,!0),DURATION:g.xZ(v,!0)}),this.updateValue("timeDisplayAriaLabel",y)))}RHc(this,J.isAtLiveHead);KwU(this,this.api.getLoopRange())}; g.a.onLoopRangeChange=function(J){var y=this.wp!==J;this.wp=J;y&&(this.cq(),zHc(this))}; g.a.AIY=function(){this.api.setLoopRange(null)}; g.a.OyX=function(){this.J=!this.J;this.cq()}; g.a.onVideoDataChange=function(J,y,v){this.updateVideoData((this.api.Y().X("enable_topsoil_wta_for_halftime")||this.api.Y().X("enable_topsoil_wta_for_halftime_live_infra"))&&v===2?this.api.getVideoData(1):y);this.cq();zHc(this)}; g.a.updateVideoData=function(J){this.Tq=J.isLivePlayback&&!J.rj;this.T=Mr(J);this.isPremiere=J.isPremiere;g.lq(this.element,"ytp-live",Fu(this));this.api.X("delhi_modern_web_player")&&this.uA("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.a.onClick=function(J){J.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.a.JY=function(){this.C&&this.C();g.z.prototype.JY.call(this)};g.x(EAd,g.z);g.a=EAd.prototype;g.a.GH=function(){var J=this.api.WK();this.J!==J&&(this.J=J,k$2(this,this.api.getVolume(),this.api.isMuted()))}; g.a.zV=function(J){this.eH(J.width>=350)}; g.a.KX=function(J){if(!J.defaultPrevented){var y=J.keyCode,v=null;y===37?v=this.volume-5:y===39?v=this.volume+5:y===36?v=0:y===35&&(v=100);v!==null&&(v=g.uX(v,0,100),v===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(v)),J.preventDefault())}}; g.a.eO=function(J){var y=J.deltaX||-J.deltaY;J.deltaMode?this.api.setVolume(this.volume+(y<0?-10:10)):this.api.setVolume(this.volume+g.uX(y/10,-10,10));J.preventDefault()}; g.a.UsR=function(){eL(this,this.C,!0,this.T,this.api.xg());this.K=this.volume;this.api.isMuted()&&this.api.unMute()}; g.a.FQ=function(J){var y=this.J?78:52,v=this.J?18:12;J-=g.ws(this.B).x;this.api.setVolume(g.uX((J-v/2)/(y-v),0,1)*100)}; g.a.YSK=function(){eL(this,this.C,!1,this.T,this.api.xg());this.volume===0&&(this.api.mute(),this.api.setVolume(this.K))}; g.a.onVolumeChange=function(J){k$2(this,J.volume,J.muted)}; g.a.WV=function(){eL(this,this.C,this.isDragging,this.T,this.api.xg())}; g.a.JY=function(){g.z.prototype.JY.call(this);g.AZ(this.G,"ytp-volume-slider-active")};g.x(mf,g.z); mf.prototype.onVideoDataChange=function(){var J=this.api.Y();this.UN();this.visible=!!this.api.getVideoData().videoId&&!g.n5(this.api.getVideoData(1));this.eH(this.visible);this.api.logVisibility(this.element,this.visible&&this.V);if(this.visible){var y=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",y)}J.J&&(this.C&&(this.y8(this.C),this.C=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.d7(this.element,"no-link")); y=this.api.Y();J=this.api.getVideoData();var v="";y.J||(y=g.PT(y),y.indexOf("www.")===0&&(y=y.substring(4)),v=g.sH(J)?"Mirar en YouTube Music":y==="youtube.com"?"Mirar en YouTube":g.yY("Mirar en $WEBSITE",{WEBSITE:y}));this.updateValue("title",v)}; mf.prototype.onClick=function(J){this.api.X("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var y=this.api.Y(),v=this.api.getVideoUrl(!g.O0(J),!1,!0,!0);if(g.un(y)){var d={};g.un(y)&&g.xt(this.api,"addEmbedsConversionTrackingParams",[d]);v=g.al(v,d)}g.t_(v,this.api,J);this.api.X("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; mf.prototype.UN=function(){var J={j:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},D:[{j:"path",l6:!0,N:"ytp-svg-fill",U:{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 "}}]}, y=28666,v=this.api.getVideoData();this.api.isEmbedsShortsMode()?J={j:"svg",U:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},D:[{j:"path",U:{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.sH(v)&&(J={j:"svg",U:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},D:[{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}},{j:"path",U:{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"}}]},y=216163);g.sH(v)?g.d7(this.element,"ytp-youtube-music-button"):g.AZ(this.element,"ytp-youtube-music-button");J.U=Object.assign({},J.U,{"aria-hidden":"true"});this.updateValue("logoSvg",J);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,y,!0)}; mf.prototype.v$=function(J){g.z.prototype.v$.call(this,J);this.api.logVisibility(this.element,this.visible&&J)};g.x(wOP,g.gf);g.a=wOP.prototype;g.a.Xz=function(){if(this.S.X("web_player_max_seekable_on_ended")||!g.k(this.S.getPlayerStateObject(),2))this.progressBar.cq(),this.cX.cq()}; g.a.nk=function(){this.iF();this.SK.T?this.Xz():this.progressBar.wr()}; g.a.n2=function(){this.Xz();this.K.start()}; g.a.iF=function(){var J;if(J=!this.S.Y().T){J=this.progressBar;var y=2*g.MB()*J.L,v=J.J;J=(v.C-v.T)*1E3/J.api.getPlaybackRate()/y<300}J=J&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;y=!J;this.SK.T||(J=y=!1);y?this.AY||(this.AY=this.Z(this.S,"progresssync",this.Xz)):this.AY&&(this.y8(this.AY),this.AY=null);J?this.K.isActive()||this.K.start():this.K.stop()}; g.a.UN=function(){var J=this.S.WK(),y=this.S.DB().getPlayerSize(),v=this.S.DB().yL,d=yz2(this),P=vam(this),A=Math.max(y.width-d*2,100);if(this.aG!==y.width||this.Ky!==J||this.S.X("web_player_rtr_ctrls")&&this.W0!==v)this.aG=y.width,this.Ky=J,this.W0=v,this.T.element.style.width=P+"px",this.T.element.style.left=d+"px",g.tiT(this.progressBar,d,P,J),this.S.G4().Cx=P;v=this.W;A=Math.min(570*(J?1.5:1),A);J=Math.min(413*(J?1.5:1),Math.round((y.height-dCd(this))*.82));v.maxWidth=A;v.maxHeight=J;v.gy();this.iF(); this.S.Y().X("html5_player_dynamic_bottom_gradient")&&vCT(this.rj,y.height)}; g.a.onVideoDataChange=function(){var J=this.S.getVideoData();this.GK.style.background=J.vR?J.rU:"";this.Cy&&nCU(this.Cy,J.showSeekingControls);this.zK&&nCU(this.zK,J.showSeekingControls)}; g.a.sN=function(){return this.T.element};g.x(P23,Fs);g.a=P23.prototype;g.a.P0=function(J){J.target!==this.dismissButton.element&&(this.onClickCommand&&this.S.Rf("innertubeCommand",this.onClickCommand),this.Ed())}; g.a.Ed=function(){this.enabled=!1;this.K.hide()}; g.a.onVideoDataChange=function(J,y){J==="dataloaded"&&AzT(this);J=[];var v,d,P,A;if(y=(A=g.R((v=y.getWatchNextResponse())==null?void 0:(d=v.playerOverlays)==null?void 0:(P=d.playerOverlayRenderer)==null?void 0:P.suggestedActionsRenderer,CX_))==null?void 0:A.suggestedActions)for(v=g.D(y),d=v.next();!d.done;d=v.next())(d=g.R(d.value,heC))&&g.R(d.trigger,opX)&&J.push(d);if(J.length!==0){v=[];J=g.D(J);for(d=J.next();!d.done;d=J.next())if(d=d.value,P=g.R(d.trigger,opX))A=(A=d.title)?g.nf(A):"View Chapters", y=P.timeRangeStartMillis,P=P.timeRangeEndMillis,y!=null&&P!=null&&d.tapCommand&&(v.push(new g.uI(y,P,{priority:9,namespace:"suggested_action_button_visible",id:A})),this.suggestedActions[A]=d.tapCommand);this.S.PF(v)}}; g.a.KJ=function(){return this.enabled}; g.a.ih=function(){this.enabled?this.Ek.start():G6(this);this.Jh()}; g.a.JY=function(){AzT(this);Fs.prototype.JY.call(this)};var eN={},rd=(eN.CHANNEL_NAME="ytp-title-channel-name",eN.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",eN.LINK="ytp-title-link",eN.SESSIONLINK="yt-uix-sessionlink",eN.SUBTEXT="ytp-title-subtext",eN.TEXT="ytp-title-text",eN.TITLE="ytp-title",eN);g.x($r,g.z);$r.prototype.onClick=function(J){this.api.logClick(this.element);var y=this.api.Y(),v=this.api.getVideoUrl(!g.O0(J),!1,!0);g.un(y)&&(y={},g.xt(this.api,"addEmbedsConversionTrackingParams",[y]),v=g.al(v,y));g.t_(v,this.api,J)}; $r.prototype.Mx=function(){var J=this.api.getVideoData(),y=this.api.Y();this.updateValue("title",J.title);var v={j:"a",N:rd.CHANNEL_NAME,U:{href:"{{channelLink}}",target:"_blank"},TK:"{{channelName}}"};this.api.Y().J&&(v={j:"span",N:rd.CHANNEL_NAME,TK:"{{channelName}}",U:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",v);T86(this);this.api.getPresentingPlayerType()===2&&(v=this.api.getVideoData(),v.videoId&&v.isListed&&v.author&&v.Ky&&v.profilePicture?(this.updateValue("channelLink", v.Ky),this.updateValue("channelName",v.author),this.updateValue("channelTitleFocusable","0")):T86(this));v=y.externalFullscreen||!this.api.isFullscreen()&&y.zA;g.lq(this.link,rd.FULLERSCREEN_LINK,v);y.Cy||!J.videoId||v||g.n5(J)||y.J?this.C&&(this.updateValue("url",null),this.y8(this.C),this.C=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.C||(this.C=this.Z(this.link,"click",this.onClick)));y.J&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.un(y)?J.expandedTitle: J.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.oD,g.z);g.a=g.oD.prototype;g.a.setEnabled=function(J){if(this.type!=null)if(J)switch(this.type){case 3:case 2:naH(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.G=J}; g.a.yp=function(J,y,v,d,P,A,T,M){if(!this.wj||this.env.G){this.type===3&&this.wr();this.type!==1&&(g.yg(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.G&&this.fade.show(),this.T&&this.T.dispose(),(this.T=this.api.Id())&&this.T.subscribe("l",this.ll,this));if(M){var n=g.vf(this.bg).height||141;this.If.style.bottom=n+2+"px"}else this.If.style.display="none";this.env.X("delhi_modern_web_player")?(this.update({pillTimeStamp:v,pillTitle:A!=null?A:"",eduText:M!=null?M:""}),g.d7(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:v,title:A!=null?A:"",eduText:M!=null?M:""}),g.lq(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!A));this.api.isInline()&&g.d7(this.bottomText,"ytp-modern-tooltip-text");g.lq(this.element,"ytp-text-detail",!!d);v=-1;this.T&&(v=Er(this.T,243*this.scale),this.env.X("web_l3_storyboard")&&this.T.levels.length===4&&(v=this.T.levels.length-1),v=Cjm(this.T,v,y));Yu6(this,v);if(T)switch(y=g.vf(this.element).width,T){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=y+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=y/2+"px",this.title.style.textAlign="center"}srm(this,!!d,J,P)}}; g.a.Gw=function(){this.type===1&&this.wr()}; g.a.ys=function(J,y){if(this.type)if(this.type===3)this.wr();else return;lj6(this,J,3,y)}; g.a.O3=function(){this.C&&!this.B&&this.C.hasAttribute("title")&&(this.J=this.C.getAttribute("title")||"",this.C.removeAttribute("title"),this.G&&naH(this))}; g.a.ll=function(J,y){J<=this.W&&this.W<=y&&(J=this.W,this.W=NaN,Yu6(this,J))}; g.a.Sw=function(){$2c(this.T,this.W,243*this.scale)}; g.a.wr=function(){switch(this.type){case 2:var J=this.C;J.removeEventListener("mouseout",this.K);J.addEventListener("mouseover",this.L);J.removeEventListener("blur",this.K);J.addEventListener("focus",this.L);SuR(this);break;case 3:SuR(this);break;case 1:this.T&&(this.T.unsubscribe("l",this.ll,this),this.T=null),this.api.removeEventListener("videoready",this.zK),this.Cy.stop()}this.type=null;this.G&&this.fade.hide()}; g.a.j0=function(){if(this.C)for(var J=0;J=0;y--)if(this.jX[y]===J){this.jX.splice(y,1);break}p1(this.SK,64,this.jX.length>0)}; g.a.D$=function(){this.api.w0()&&this.api.Nv();return!!this.F$||O6R(this)||g.kY.prototype.D$.call(this)}; g.a.Q4=function(){var J=!this.D$(),y=J&&this.api.w0()&&!g.k(this.api.getPlayerStateObject(),2)&&!g.n5(this.api.getVideoData())&&!this.api.Y().J&&!this.api.isEmbedsShortsMode(),v=this.eS&&g.p5(this.api)&&g.k(this.api.getPlayerStateObject(),128);J||v?(this.La.show(),this.Vp.show()):(this.La.hide(),this.Vp.hide(),this.api.j0(this.fL.element));y?this.o5.OS():this.o5.p8();this.Nw&&Jzd(this.Nw,this.IOk||!J);this.api.X("web_player_hide_overflow_button_if_empty_menu")&&gam(this);g.kY.prototype.Q4.call(this)}; g.a.rA=function(J,y,v,d,P){J.style.left="";J.style.top="";J.style.bottom="";var A=g.vf(J),T=d||this.Nw&&g.gs(this.Nw.sN(),y),M=d=null;v!=null&&T||(d=g.vf(y),M=g.J3(y,this.api.getRootNode()),v==null&&(v=M.x+d.width/2));v-=A.width/2;T?(y=this.Nw,d=yz2(y),M=vam(y),T=this.api.DB().getPlayerSize().height,v=g.uX(v,d,d+M-A.width),A=T-dCd(y)-A.height):g.gs(this.fL.element,y)?(y=this.api.DB().getPlayerSize().width,v=g.uX(v,12,y-A.width-12),A=this.WK()?this.V5:this.fO,this.api.Y().playerStyle==="gvn"&&(A+= 20),this.eS&&(A-=this.WK()?26:18)):(y=this.api.DB().getPlayerSize(),v=g.uX(v,12,y.width-A.width-12),A=M.y>(y.height-d.height)/2?M.y-A.height-12:M.y+d.height+12);J.style.top=A+(P||0)+"px";J.style.left=v+"px"}; g.a.nk=function(J){J&&(this.api.j0(this.fL.element),this.Nw&&this.api.j0(this.Nw.sN()));this.Yb&&(g.lq(this.contextMenu.element,"ytp-autohide",J),g.lq(this.contextMenu.element,"ytp-autohide-active",!0));g.kY.prototype.nk.call(this,J)}; g.a.DP=function(){g.kY.prototype.DP.call(this);this.Yb&&(g.lq(this.contextMenu.element,"ytp-autohide-active",!1),this.Yb&&(this.contextMenu.hide(),this.tR&&this.tR.hide()))}; g.a.vn=function(J,y){var v=this.api.DB().getPlayerSize();v=new g.ua(0,0,v.width,v.height);if(J||this.SK.T&&!this.D$()){if(this.api.Y().b8||y)J=this.WK()?this.V5:this.fO,v.top+=J,v.height-=J;this.Nw&&(v.height-=dCd(this.Nw))}return v}; g.a.GH=function(J){var y=this.api.getRootNode();J?y.parentElement?(y.setAttribute("aria-label","Reproductor de video de YouTube en pantalla completa"),this.api.Y().externalFullscreen||(y.parentElement.insertBefore(this.ke.element,y),y.parentElement.insertBefore(this.bB.element,y.nextSibling))):g.jv(Error("Player not in DOM.")):(y.setAttribute("aria-label","Reproductor de video de YouTube"),this.ke.detach(),this.bB.detach());this.UN();this.TU()}; g.a.WK=function(){var J=this.api.Y();return this.api.isFullscreen()&&!J.G||!1}; g.a.showControls=function(J){this.B2=!J;this.Q4()}; g.a.UN=function(){var J=this.WK();this.tooltip.scale=J?1.5:1;this.contextMenu&&g.lq(this.contextMenu.element,"ytp-big-mode",J);this.Q4();this.api.X("web_player_hide_overflow_button_if_empty_menu")||gam(this);this.TU();var y=this.api.isEmbedsShortsMode();y&&J?(J=(this.api.DB().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Ni(this.fL.element,"padding-left",J+"px"),g.Ni(this.fL.element,"padding-right",J+"px")):y&&(g.Ni(this.fL.element,"padding-left",""),g.Ni(this.fL.element,"padding-right", ""));g.kY.prototype.UN.call(this)}; g.a.zw=function(){if(O6R(this)&&!g.p5(this.api))return!1;var J=this.api.getVideoData();return!g.un(this.api.Y())||this.api.getPresentingPlayerType()===2||!this.H_||((J=this.H_||J.H_)?(J=J.embedPreview)?(J=J.thumbnailPreviewRenderer,J=J.videoDetails&&g.R(J.videoDetails,xGH)||null):J=null:J=null,J&&J.collapsedRenderer&&J.expandedRenderer)?g.kY.prototype.zw.call(this):!1}; g.a.TU=function(){g.kY.prototype.TU.call(this);this.api.logVisibility(this.title.element,!!this.Ce);this.PB&&this.PB.v$(!!this.Ce);this.channelAvatar.v$(!!this.Ce);this.overflowButton&&this.overflowButton.v$(this.lj()&&!!this.Ce);this.shareButton&&this.shareButton.v$(!this.lj()&&!!this.Ce);this.Mv&&this.Mv.v$(!this.lj()&&!!this.Ce);this.searchButton&&this.searchButton.v$(!this.lj()&&!!this.Ce);this.copyLinkButton&&this.copyLinkButton.v$(!this.lj()&&!!this.Ce);if(!this.Ce){this.api.j0(this.fL.element); for(var J=0;J5&&y.dj("glrs",{cmt:v});y.seekTo(0,{seekSource:58});y.dj("glrre",{cmt:v})}}; ID.prototype.JY=function(){this.C=null;g.u.prototype.JY.call(this)};g.x(g.pq,VV);g.a=g.pq.prototype;g.a.isView=function(){return!0}; g.a.jp=function(){var J=this.mediaElement.getCurrentTime();if(J1;zt(J.Fo(),d-.01)&&!P&&(fq(this,4),v.isActive=!1,v.n3=v.n3||v.isActive,(this.V===1?this.C:this.T).dj("sbh",{}),y.isActive=!0,y.n3=y.n3||y.isActive,this.V!==0&&(this.C.getVideoData().f3=!0));J=this.W.T;if(this.W.C.isActive&&J.isActive&&(fq(this,5),this.V!==0)){J=this.T.FV();v=this.C.FV(); this.C.dj("sbs",{citag:v==null?void 0:v.itag,nitag:J==null?void 0:J.itag});this.T.dj("gitags",{pitag:v==null?void 0:v.itag,citag:J==null?void 0:J.itag});var A;(A=this.T)==null||A.hL()}}}; g.a.Ct=function(){this.Fk()&&this.dC("player-reload-after-handoff")}; g.a.dC=function(J,y){y=y===void 0?{}:y;if(!this.tY()&&this.status.status!==6){var v=this.status.status>=4&&J!=="player-reload-after-handoff";this.status={status:Infinity,error:J};if(this.C&&this.T){var d=this.T.getVideoData().clientPlaybackNonce;this.C.gi(new g.Y6("dai.transitionfailure",Object.assign(y,{cpn:d,transitionTimeMs:this.J7,msg:J})));this.C.Ze(v)}this.KR.reject(J);this.dispose()}}; g.a.Fk=function(){return this.status.status>=4&&this.status.status<6}; g.a.JY=function(){$Cc(this);this.C.unsubscribe("newelementrequired",this.Ct,this);if(this.J){var J=this.J.T;this.J.C.C0.unsubscribe("updateend",this.KW,this);J.C0.unsubscribe("updateend",this.KW,this)}g.u.prototype.JY.call(this)}; g.a.d9=function(J){g.na(J,128)&&this.dC("player-error-event")};g.x(iu,g.u);iu.prototype.clearQueue=function(J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;this.W&&this.W.reject("Queue cleared");this.app.Y().X("html5_gapless_fallback_on_qoe_restart_v2")||y&&this.T&&this.T.Ze(!1);uu(this,J)}; iu.prototype.bv=function(){return!this.C}; iu.prototype.Fk=function(){var J;return((J=this.J)==null?void 0:J.Fk())||!1}; iu.prototype.JY=function(){uu(this);g.u.prototype.JY.call(this)};g.x(i66,g.yK);g.a=i66.prototype;g.a.getVisibilityState=function(J,y,v,d,P,A,T,M){return J?4:Ghj()?3:y?2:v?1:d?5:P?7:A?8:T?9:M?10:0}; g.a.a$=function(J){this.fullscreen!==J&&(this.fullscreen=J,this.ih())}; g.a.setMinimized=function(J){this.T!==J&&(this.T=J,this.ih())}; g.a.setInline=function(J){this.inline!==J&&(this.inline=J,this.ih())}; g.a.PU=function(J){this.pictureInPicture!==J&&(this.pictureInPicture=J,this.ih())}; g.a.setSqueezeback=function(J){this.J!==J&&(this.J=J,this.ih())}; g.a.Y2=function(J){this.W!==J&&(this.W=J,this.ih())}; g.a.Fz=function(){return this.C}; g.a.ID=function(){return this.fullscreen!==0}; g.a.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.a.f9=function(){return this.fullscreen}; g.a.isMinimized=function(){return this.T}; g.a.isInline=function(){return this.inline}; g.a.isBackground=function(){return Ghj()}; g.a.KL=function(){return this.pictureInPicture}; g.a.jG=function(){return!1}; g.a.MI=function(){return this.J}; g.a.Rr=function(){return this.W}; g.a.ih=function(){this.publish("visibilitychange");var J=this.getVisibilityState(this.Fz(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.KL(),this.jG(),this.MI(),this.Rr());J!==this.L&&this.publish("visibilitystatechange");this.L=J}; g.a.JY=function(){jLH(this.V);g.yK.prototype.JY.call(this)};g.x(g.Hw,g.u);g.a=g.Hw.prototype;g.a.JY=function(){this.videoData=this.playerState=null;g.u.prototype.JY.call(this)}; g.a.addCueRange=function(){}; g.a.qm=function(){}; g.a.Ne=function(){}; g.a.sC=function(){return!1}; g.a.yN=function(){return!1}; g.a.Vj=function(){return!1}; g.a.SU=function(){}; g.a.Vg=function(){}; g.a.v9=function(){return[]}; g.a.xP=function(){}; g.a.getAudioTrack=function(){return this.getVideoData().TA}; g.a.Hd=function(){return null}; g.a.getAvailableAudioTracks=function(){return[]}; g.a.Y_=function(){return[]}; g.a.Xy=function(){return[]}; g.a.Sh=function(){return""}; g.a.uv=function(){return[]}; g.a.Gc=function(){}; g.a.D8=function(){return 0}; g.a.getCurrentTime=function(){return 0}; g.a.NR=function(){}; g.a.FV=function(){}; g.a.P$=function(){return{}}; g.a.getDuration=function(){return 0}; g.a.x6=function(){return 0}; g.a.T4=function(){return 0}; g.a.C7=function(){return!1}; g.a.Mk=function(){return 0}; g.a.LN=function(){return 0}; g.a.rf=PP(7);g.a.hB=function(){return 0}; g.a.eI=function(){return!1}; g.a.HO=function(){return 0}; g.a.Pq=function(){return null}; g.a.xi=function(){return null}; g.a.Fl=function(){return 0}; g.a.GU=function(){return 0}; g.a.qy=function(){return g.f(function(J){g.G2(J)})}; g.a.lQ=PP(15);g.a.getPlaybackQuality=function(){return"auto"}; g.a.getPlaybackRate=function(){return 1}; g.a.getPlayerState=function(){this.playerState||(this.playerState=new g.xz);return this.playerState}; g.a.getPlayerType=function(){return 0}; g.a.getPlaylistSequenceForTime=function(){return null}; g.a.I5=function(){return function(){}}; g.a.FK=function(){return""}; g.a.getPreferredQuality=function(){return"unknown"}; g.a.Nm=function(){}; g.a.getProximaLatencyPreference=function(){return 0}; g.a.ww=function(){return dC}; g.a.Id=function(){return null}; g.a.getStoryboardFormat=function(){return null}; g.a.getStreamTimeOffset=function(){return 0}; g.a.O5=function(){return 0}; g.a.Vl=function(){return 0}; g.a.n1=function(){return{TQ:[],A1:[],currentTime:0,dZ:"",droppedVideoFrames:0,isGapless:!1,bv:!0,xY:0,eT:0,Fw:0,n_:0,iK:0,C_:[],XP:[],vC:null,playerState:this.getPlayerState(),U1:null,Wj:"",totalVideoFrames:0}}; g.a.getUserAudio51Preference=function(){return 0}; g.a.getUserPlaybackQualityPreference=function(){return""}; g.a.getVideoData=function(){this.videoData||(this.videoData=new g.Ph(this.iA),g.X(this,this.videoData));return this.videoData}; g.a.Wg=function(){return null}; g.a.Ue=function(){return null}; g.a.HR=function(){}; g.a.getVideoLoadedFraction=function(){return 0}; g.a.DZ=function(){}; g.a.handleError=function(){}; g.a.Ze=function(){}; g.a.f7=function(){}; g.a.TW=PP(40);g.a.Zp=function(){return!1}; g.a.hasSupportedAudio51Tracks=function(){return!1}; g.a.aB=function(){return!1}; g.a.Fz=function(){return!1}; g.a.isAtLiveHead=function(){return!1}; g.a.nU=function(){return!0}; g.a.isGapless=function(){return!1}; g.a.isHdr=function(){return!1}; g.a.CJ=function(){return!1}; g.a.g8=function(){return!1}; g.a.mj=function(){return!1}; g.a.isProximaLatencyEligible=function(){return!1}; g.a.bv=function(){return!0}; g.a.f1=function(){return!1}; g.a.Jw=function(){return!1}; g.a.o6=function(){}; g.a.pU=function(){}; g.a.hL=function(){}; g.a.t8=function(){}; g.a.YN=function(){}; g.a.KB=function(){}; g.a.R6=function(){}; g.a.FS=PP(50);g.a.Cp=PP(21);g.a.aJ=function(){}; g.a.Cv=function(){}; g.a.pauseVideo=function(){}; g.a.playVideo=function(){return g.f(function(J){return J.return()})}; g.a.Ep=function(){}; g.a.Dx=PP(27);g.a.PK=PP(33);g.a.MS=function(){}; g.a.dj=function(){}; g.a.D5=function(){}; g.a.N0=function(){}; g.a.Z_=function(){}; g.a.gi=function(){}; g.a.H1=function(){}; g.a.XH=function(){}; g.a.BU=function(){}; g.a.Jk=function(){}; g.a.v1=function(){}; g.a.r0=function(){}; g.a.tE=function(){}; g.a.removeCueRange=function(){}; g.a.AG=function(){}; g.a.tI=function(){return[]}; g.a.GW=function(){}; g.a.Eh=function(){}; g.a.Ev=function(){}; g.a.Q0=function(){}; g.a.D3=function(){}; g.a.Lu=function(){}; g.a.seekTo=function(){}; g.a.sendAbandonmentPing=function(){}; g.a.sendVideoStatsEngageEvent=function(){}; g.a.D_=function(){}; g.a.setLoop=function(){}; g.a.d3=function(){}; g.a.setMediaElement=function(){}; g.a.vy=function(){}; g.a.setPlaybackRate=function(){}; g.a.q1=function(){}; g.a.rT=function(){}; g.a.CA=function(){}; g.a.setProximaLatencyPreference=function(){}; g.a.Z$=function(){}; g.a.RJ=function(){}; g.a.Op=function(){}; g.a.Uv=function(){}; g.a.AX=function(){}; g.a.setUserAudio51Preference=function(){}; g.a.o3=function(){}; g.a.q$=function(){return!1}; g.a.Wz=function(){}; g.a.zS=function(){return!1}; g.a.ZY=function(){}; g.a.eE=function(){}; g.a.Fe=function(){}; g.a.stopVideo=function(){}; g.a.subscribe=function(){return NaN}; g.a.df=function(){}; g.a.togglePictureInPicture=function(){}; g.a.DY=function(){return 0}; g.a.unsubscribe=function(){return!1}; g.a.qT=function(){}; g.a.hG=function(){return!1}; g.a.dS=function(){}; g.a.R0=function(){}; g.a.aL=function(){};g.x(RD,g.u);g.a=RD.prototype;g.a.get=function(J){Xu(this);var y=this.data.find(function(v){return v.key===J}); return y?y.value:null}; g.a.set=function(J,y,v){this.remove(J,!0);Xu(this);J={key:J,value:y,expire:Infinity};v&&isFinite(v)&&(v*=1E3,J.expire=(0,g.GC)()+v);for(this.data.push(J);this.data.length>this.J;)(v=this.data.shift())&&Kq(this,v,!0);Nn(this)}; g.a.remove=function(J,y){y=y===void 0?!1:y;var v=this.data.find(function(d){return d.key===J}); v&&(Kq(this,v,y),g.m0(this.data,function(d){return d.key===J}),Nn(this))}; g.a.removeAll=function(J){if(J=J===void 0?!1:J)for(var y=g.D(this.data),v=y.next();!v.done;v=y.next())Kq(this,v.value,J);this.data=[];Nn(this)}; g.a.JY=function(){var J=this;g.u.prototype.JY.call(this);this.data.forEach(function(y){Kq(J,y,!0)}); this.data=[]};g.x(g.zb,g.u);g.a=g.zb.prototype;g.a.JY=function(){for(var J=g.D(Object.values(this.J)),y=J.next();!y.done;y=J.next())y.value.dispose();uH3(this);this.C.dispose();g.u.prototype.JY.call(this)}; g.a.bN=function(J){return J?J===1?this.B:this.T.getVideoData().enableServerStitchedDai&&J===2?this.T.getVideoData().Oc?this.J[2]||this.T:this.T:this.J[J]||null:this.T}; g.a.MA=function(J){var y=J.cpn;J=J.playerType;if(y)a:{J=g.D(Object.values(this.J));for(var v=J.next();!v.done;v=J.next())if(v=v.value,v.Sh()===y){y=v;break a}y=this.L[y]||null}else y=J?this.bN(J):this.T;return y}; g.a.TI=function(){return this.B}; g.a.z6=function(J){this.B=J}; g.a.Ok=function(){return this.T}; g.a.v7=function(J){this.T=J;kr(this)}; g.a.AS=PP(46);g.a.NS=PP(48);g.x(Ea3,g.kt);g.a=Ea3.prototype;g.a.PV=function(){}; g.a.Sh=function(){return this.videoData.clientPlaybackNonce}; g.a.getVideoData=function(){if(g.kt.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state"))var J=this.videoData;else{var y=this.Rk;var v=g.kt.prototype.getCurrentTime.call(this);if(y.LT)y=void 0;else{var d=void 0;y.bJ&&(d=y.C.C.get(y.bJ));if(!d){d=nTU(y,v*1E3);var P,A=(P=d)==null?void 0:P.cpn;y.bJ?A&&y.bJ!==A&&y.eb({cpcnm:A+"_"+y.bJ,cmt:v.toFixed(3)}):y.eb({cpcna:A,cmt:v.toFixed(3)})}y=(J=d)==null?void 0:J.videoData}J=y||g.kt.prototype.getVideoData.call(this)}return J}; g.a.getCurrentTime=function(J){var y=g.kt.prototype.getCurrentTime.call(this);g.kt.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state")?this.endTime===0?J||(y-=this.startTime):J&&(y=this.endTime-this.startTime):(J?J=this.Rk.xo/1E3||y:(J=y,J=(y=MIR(this.Rk,J*1E3))?J-y.start/1E3:J),y=J);return y}; g.a.getDuration=function(){if(g.kt.prototype.getVideoData.call(this).X("html5_huli_ssdai_use_playback_state"))var J=this.duration;else{J=this.Rk;var y=g.kt.prototype.getCurrentTime.call(this);J=(J=nTU(J,y*1E3))?J.durationMs/1E3:0}return J}; g.a.i8=function(J){this.duration=J};g.Qa.prototype.Kw=function(J,y){if(y===1)return this.C.get(J);if(y===2)return this.J.get(J);if(y===3)return this.T.get(J)}; g.Qa.prototype.Io=PP(58);g.Qa.prototype.M0=function(J,y,v,d){v={Ld:d,Cw:v};y?this.J.set(J,v):this.C.set(J,v)}; g.Qa.prototype.clearAll=function(){this.C.clear();this.J.clear();this.T.clear()}; Z6H.prototype.clear=function(){this.T=[];this.C.clear();this.W.clear();this.J.clear()}; g.x(g.ZB,g.u);g.a=g.ZB.prototype;g.a.sU=function(J){var y=J.Li?J.Li*1E3:J.Xr,v=this.J.get(J.cpn);v&&this.playback.removeCueRange(v);this.J.delete(J.cpn);this.C.C.delete(J.cpn);v=this.C.T.indexOf(J);v>=0&&this.C.T.splice(v,1);v=[];for(var d=g.D(this.V),P=d.next();!P.done;P=d.next())P=P.value,P.end<=y?this.playback.removeCueRange(P):v.push(P);this.V=v;xL3(this,0,y+J.durationMs)}; g.a.onCueRangeEnter=function(J){this.cX.push(J);var y=J.getId();this.eb({oncueEnter:1,cpn:y,start:J.start,end:J.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.D8()||0).toFixed(3)});var v=y==="";this.GK.add(J.T);var d=this.C.C.get(y);if(v){var P;if(this.playback.getVideoData().US()&&((P=this.T)==null?0:P.NE)&&this.W){this.O2=0;this.T=void 0;this.B&&(this.events.y8(this.B),this.B=null);this.W="";this.WX=!0;return}}else if(this.eb({enterAdCueRange:1}),this.playback.getVideoData().US()&& (d==null?0:d.L1))return;if(this.WX&&!this.T)this.WX=!1,!v&&d&&(v=this.playback.getCurrentTime(),Ps(this,{mS:J,isAd:!0,Qb:!0,HK:v,adCpn:y},{isAd:!1,Qb:!1,HK:v}),this.bJ=d.cpn,this.lX(d.cpn,v),vs(this,d),J=yE(this,"midab",d),this.eb(J),this.O2=1),this.L=!1;else if(this.T){if(this.T.Qb)this.eb({a_pair_of_same_transition_occurs_enter:1,acpn:this.T.adCpn,transitionTime:this.T.HK,cpn:y,currentTime:this.playback.getCurrentTime()}),d=this.playback.getCurrentTime(),J={mS:J,isAd:!v,Qb:!0,HK:d,adCpn:y},y={mS:this.T.mS, isAd:this.T.isAd,Qb:!1,HK:d,adCpn:this.T.adCpn},this.T.mS&&this.GK.delete(this.T.mS.T),Ps(this,J,y);else{if(this.T.mS===J){this.eb({same_cue_range_pair_enter:1,acpn:this.T.adCpn,transitionTime:this.T.HK,cpn:y,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:J.start,cueRangeEndTime:J.end});this.T=void 0;return}if(this.T.adCpn===y){y&&this.eb({dchtsc:y});this.T=void 0;return}J={mS:J,isAd:!v,Qb:!0,HK:this.playback.getCurrentTime(),adCpn:y};Ps(this,J,this.T)}this.T=void 0;this.L=!1}else this.T= {mS:J,isAd:!v,Qb:!0,HK:this.playback.getCurrentTime(),adCpn:y}}; g.a.lX=function(J,y){if(J===this.playback.Sh())E9(this.app.vO(),this.playback,!1);else{var v=this.Vk.get(J);v?(v.endTime=0,v.startTime=y,E9(this.app.vO(),v,!0)):this.eb({nop_s:J})}}; g.a.onCueRangeExit=function(J){var y=J.getId();this.eb({oncueExit:1,cpn:y,start:J.start,end:J.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.D8()||0).toFixed(3)});var v=y==="",d=this.C.C.get(y);if(this.playback.getVideoData().US()&&!v&&d){if(d.L1)return;d.L1=!0;this.G.clear();if(this.iA.X("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.sC()){var P=d.Xr;this.playback.tE(P/1E3,(P+d.durationMs)/1E3)}else this.playback.dj("lifa",{remove:0})}if(this.GK.has(J.T))if(this.GK.delete(J.T), this.cX=this.cX.filter(function(A){return A!==J}),this.WX&&(this.L=this.WX=!1,this.eb({cref:1})),this.T){if(this.T.Qb){if(this.T.mS===J){this.eb({same_cue_range_pair_exit:1, acpn:this.T.adCpn,transitionTime:this.T.HK,cpn:y,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:J.start,cueRangeEndTime:J.end});this.T=void 0;return}if(this.T.adCpn===y){y&&this.eb({dchtsc:y});this.T=void 0;return}y={mS:J,isAd:!v,Qb:!1,HK:this.playback.getCurrentTime(),adCpn:y};Ps(this,this.T,y)}else if(this.eb({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.T.adCpn,transitionTime:this.T.HK,upcomingCpn:y,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), this.T.adCpn===y)return;this.T=void 0;this.L=!1}else this.T={mS:J,isAd:!v,Qb:!1,HK:this.playback.getCurrentTime(),adCpn:y};else this.eb({ignore_single_exit:1})}; g.a.Vw=function(){return{cpn:this.playback.Sh(),durationMs:0,Xr:0,playerType:1,JI:0,videoData:this.playback.getVideoData(),errorCount:0}}; g.a.kY=function(){if(this.LT)return!1;var J=void 0;this.bJ&&(J=this.C.C.get(this.bJ));return this.playback.getVideoData().US()?!!J&&!J.L1:!!J}; g.a.seekTo=function(J,y,v,d){J=J===void 0?0:J;y=y===void 0?{}:y;v=v===void 0?!1:v;d=d===void 0?null:d;if(this.playback.getVideoData().US()&&J<=this.xo/1E3)this.playback.pauseVideo(),this.xo=0,this.L=!0,this.playback.qy(),this.playback.seekTo(J),this.playback.playVideo();else if(this.L=!0,v)wKH(this,J,y);else{v=this.app.Ok();var P=v===this.Ek?this.aG:null;TF(this,!1);this.f8=J;this.yl=y;d!=null&&this.J9.start(d);v&&(this.aG=P||v.getPlayerState(),v.Fe(y),this.Ek=v)}}; g.a.JY=function(){TF(this,!1);Y5P(this);S5m(this);g.u.prototype.JY.call(this)}; g.a.Cn=function(J){this.H$=J;this.eb({swebm:J})}; g.a.VI=function(J,y,v){if(v&&y){var d=this.G.get(J);if(d){d.locations||(d.locations=new Map);var P=Number(y.split(";")[0]);v=new g.ik(v);this.eb({hdlredir:1,itag:y,seg:J,hostport:HW(v)});d.locations.set(P,v)}}}; g.a.jB=function(J,y,v,d,P,A){var T=d===3,M=Ljx(this,J,y,d,v,A);if(!M){Ml(this,y,T);var n=g.VIH(this,y)?"undec":"ncp";this.eb({gvprp:n,mt:J,seg:y,tt:d,itag:v,ce:A});return null}T||this.G.set(y,M);A=M.E5;var Y;d=((Y=this.Kw(y-1,d,P))==null?void 0:Y.Ld)||"";d===""&&this.eb({eds:1});Y=WjP(this,M.ssdaiAdsConfig);P=this.playback.getVideoData();var S;T=((S=P.T)==null?void 0:S.containerType)||0;S=P.j3[T];M=M.e7&&y>=M.e7?M.e7:void 0;S={lq:A?gTd(this,A):[],aj:Y,Ld:d,Wm:M,TM:Cn(S.split(";")[0]),J0:S.split(";")[1]|| ""};M={Fv:S};this.YB&&(J={gvprpro:"v",sq:y,mt:J.toFixed(3),itag:v,acpns:((n=S.lq)==null?void 0:n.join("_"))||"none",abid:A},this.eb(J));return M}; g.a.w4=function(J){a:{if(!this.LT){var y=tI3(this,J);if(!(this.playback.getVideoData().US()&&(y==null?0:y.L1)))break a}y=void 0}var v=y;if(!v)return this.eb({gvprp:"ncp",mt:J}),null;y=v.E5;var d=WjP(this,v.ssdaiAdsConfig);v=v.e7&&v.kA&&J>=v.kA?v.e7:void 0;var P=this.playback.getVideoData(),A,T=((A=P.T)==null?void 0:A.containerType)||0;A=P.j3[T];A={lq:y?gTd(this,y):[],aj:d,Wm:v,TM:Cn(A.split(";")[0]),J0:A.split(";")[1]||""};var M;J={gvprpro:"v",mt:J.toFixed(3),acpns:((M=A.lq)==null?void 0:M.join("_"))|| "none",abid:y};this.eb(J);return A}; g.a.ZQ=function(J,y,v,d,P,A){var T=Number(v.split(";")[0]),M=d===3;J=Ljx(this,J,y,d,v,A);this.eb({gdu:1,seg:y,itag:T,pb:""+!!J});if(!J)return Ml(this,y,M),null;J.locations||(J.locations=new Map);if(!J.locations.has(T)){var n,Y;A=(n=J.videoData.getPlayerResponse())==null?void 0:(Y=n.streamingData)==null?void 0:Y.adaptiveFormats;if(!A)return this.eb({gdu:"noadpfmts",seg:y,itag:T}),Ml(this,y,M),null;n=A.find(function(L){return L.itag===T}); if(!n||!n.url){var S=J.videoData.videoId;J=[];var V=g.D(A);for(d=V.next();!d.done;d=V.next())J.push(d.value.itag);this.eb({gdu:"nofmt",seg:y,vid:S,itag:T,fullitag:v,itags:J.join(",")});Ml(this,y,M);return null}J.locations.set(T,new g.ik(n.url,!0))}A=J.locations.get(T);if(!A)return this.eb({gdu:"nourl",seg:y,itag:T}),Ml(this,y,M),null;A=new $s(A);this.H$&&(A.get("dvc")?this.eb({dvc:A.get("dvc")||""}):A.set("dvc","webm"));(d=(V=this.Kw(y-1,d,P))==null?void 0:V.Ld)&&A.set("daistate",d);J.e7&&y>=J.e7&& A.set("skipsq",""+J.e7);(V=this.playback.getVideoData().clientPlaybackNonce)&&A.set("cpn",V);V=[];J.E5&&(V=gTd(this,J.E5),V.length>0&&A.set("acpns",V.join(",")));M||this.G.set(y,J);M=null;M=A.get("aids");d=A.S1();(d==null?void 0:d.length)>2048&&this.eb({urltoolong:1,sq:y,itag:T,len:d.length});this.YB&&(d&&(A=J.cpn,P=J.E5,GUv(this,A,P),P&&!this.ES.has(P)&&(A=DL2(this,A,P),n=cU2(this,P),this.eb({iofa:A}),this.eb({noawnzd:n-A}),this.eb({acpns:V.join("."),aids:(S=M)==null?void 0:S.replace(/,/g,".")}), this.ES.add(P))),this.eb({gdu:"v",seg:y,itag:v,ast:J.Xr.toFixed(3),alen:J.durationMs.toFixed(3),acpn:J.cpn,avid:J.videoData.videoId}));return d}; g.a.rd=function(J,y,v){v=v===void 0?!1:v;var d=lA(this,J,y);if(d){var P=void 0,A=d.E5;if(A){this.eb({skipadonsq:y,sts:v,abid:A,acpn:d.cpn,avid:d.videoData.videoId});v=this.C.J.get(A);if(!v)return;v=g.D(v);for(A=v.next();!A.done;A=v.next())A=A.value,A.e7=y,A.kA=J,A.Xr>d.Xr&&(P=A)}this.W=d.cpn;ai3(this);J=this.playback.getCurrentTime();dq(this,d,P,J,J,!1,!0)}}; g.a.rQ=function(){for(var J=g.D(this.C.T),y=J.next();!y.done;y=J.next())y=y.value,y.e7=NaN,y.kA=NaN;ai3(this);this.eb({rsac:"resetSkipAd",sac:this.W});this.W=""}; g.a.Kw=function(J,y,v){return this.wj.Kw(J,y,v)}; g.a.Io=PP(57); g.a.M0=function(J,y,v,d,P,A,T,M,n){d.length>0&&this.eb({onssinfo:1,sq:J,start:y.toFixed(3),cpns:d.join(","),ds:P.join(","),isVideo:T?1:0});n&&this.wj.M0(J,T,M,n);if(T){if(d.length&&P.length)for(this.W&&this.W===d[0]&&this.eb({skipfail:1,sq:J,acpn:this.W}),J=y+this.O5(),T=0;T0&&(this.O2=0,this.bJ="",this.api.publish("serverstitchedvideochange"));this.playback.Vg(v,d);return!0}; g.a.Rn=function(){this.eb({rstdaist:1});this.wj.clearAll()}; g.a.fJ=function(J){var y;if(J!==((y=this.zK)==null?void 0:y.identifier))this.eb({ignorenoad:J});else{this.Ky.add(J);this.eb({noadrcv:J});var v;((v=this.zK)==null?void 0:v.identifier)===J&&J6(this)}}; g.a.SX=function(J){if(this.LT)return this.eb({dai_disabled:J.event}),!1;if(this.playback.getVideoData().US()&&(this.iA.X("html5_lifa_no_gab_on_predict_start")&&J.event==="predictStart"||J.event==="continue"||J.event==="stop"))return!1;var y=$Y(this.api.un());if(y=y?y.SX(J):!1)this.K={xG:J.identifier,RO:J.startSecs};else if(this.K&&this.K.xG===J.identifier&&J.startSecs>this.K.RO+1){this.eb({cueStChg:J.identifier,oldSt:this.K.RO.toFixed(3),newSt:J.startSecs.toFixed(3),abid:this.K.Zn});if(this.K.Zn){var v= J.startSecs-this.K.RO,d=this.C.J.get(this.K.Zn);if(d){d=g.D(d);for(var P=d.next();!P.done;P=d.next())P=P.value,P.Xr>=0&&(P.Xr+=v*1E3,this.iA.X("html5_ssdai_update_timeline_on_start_time_change")&&(P.JI+=v*1E3),this.eb({newApEt:P.Xr,newApPrt:P.JI,acpn:P.cpn}))}}this.K.RO=J.startSecs}return y}; g.a.Ao=function(J){return this.LT?!1:!!tI3(this,J)}; g.a.bW=function(J){var y=this;if(this.iA.X("html5_lifa_ignore_multiple_skips")&&this.B)return this.eb({ufs_ad:this.W,ufs_cur:this.bJ,ufs_cont:this.Vw().cpn}),!1;this.playback.pauseVideo();var v=this.playback.getCurrentTime(),d=this.iA.X("html5_lifa_reset_segment_index_on_skip"),P=d?v+this.playback.O5():v,A=this.C.C.get(this.bJ),T=this.J.get(this.bJ);if(A){this.W=this.bJ;this.L=!1;A.L1=!0;v=this.playback.getCurrentTime();this.T={mS:T,isAd:!0,Qb:!1,HK:v,adCpn:this.bJ,NE:A,n8B:J};this.playback.BU(A, this.Vw(),v,this.playback.getCurrentTime(),!1,!0,J,(0,g.GC)());d&&this.playback.aJ();if(T==null?0:T.start)this.xo=v*1E3-T.start,liP(this,T.id,v);this.G.clear();this.playback.qy();J=this.Vw();this.bJ=J.cpn;this.lX(J.cpn,v);this.api.publish("serverstitchedvideochange");this.playback.seekTo(P,{seekSource:89,jn:"lifa_skip"});this.playback.playVideo();this.B||(this.B=this.events.Z(this.api,"progresssync",function(){y.sU(A)})); return!0}this.eb({skipFail:v},!0);return!1}; g.a.eb=function(J,y){((y===void 0?0:y)||this.YB||this.playback.getVideoData().US())&&this.playback.dj("sdai",J)}; var dLc=0;g.x(bWP,g.ZB);g.a=bWP.prototype;g.a.onCueRangeEnter=function(J){var y=J.getId();this.playback.dj("sdai",{oncueEnter:1,cpn:y,start:J.start,end:J.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.D8()||0).toFixed(3)});var v=this.C.C.get(y);this.playback.dj("sdai",{enterAdCueRange:1});var d=this.bJ||this.Vw().cpn,P;d=(P=this.C.C.get(d))!=null?P:this.Vw();v&&(P=this.playback.getCurrentTime(),v={Ws:d,I9:v,Qt:P},efc(this,y,J.start/1E3,P),jZH(this,v))}; g.a.onCueRangeExit=function(J){for(var y=this.playback.getCurrentTime()*1E3,v=J.getId(),d=g.D(this.J.values()),P=d.next();!P.done;P=d.next())if(P=P.value,P.getId()!==v&&y>=P.start&&y<=P.end)return;if(v=this.C.C.get(v))y=this.playback.getCurrentTime(),v={Ws:v,I9:this.Vw(),Qt:y},efc(this,this.playback.Sh(),J.end/1E3,y),jZH(this,v)}; g.a.seekTo=function(J,y,v,d){J=J===void 0?0:J;y=y===void 0?{}:y;v=v===void 0?!1:v;d=d===void 0?null:d;sJ(this,this.bJ);this.playback.getVideoData().US()&&J<=this.xj?(this.playback.pauseVideo(),this.xj=this.xo=0,mLm(this,J)):g.ZB.prototype.seekTo.call(this,J,y,v,d)}; g.a.rd=function(J,y,v){v=v===void 0?!1:v;var d=lA(this,J,y);if(d){var P=void 0,A=d.E5;if(A){this.playback.dj("sdai",{skipadonsq:y,sts:v,abid:A,acpn:d.cpn,avid:d.videoData.videoId});v=this.C.J.get(A);if(!v)return;v=g.D(v);for(A=v.next();!A.done;A=v.next())A=A.value,A.e7=y,A.kA=J,A.Xr>d.Xr&&(P=A)}sJ(this,this.bJ);this.W=d.cpn;ai3(this);J=this.playback.getCurrentTime();dq(this,d,P,J,J,!1,!0);this.W="";this.L=!1}}; g.a.M0=function(J,y,v,d,P,A,T,M,n){d.length>0&&this.playback.dj("sdai",{onssinfo:1,sq:J,start:y.toFixed(3),cpns:d.join(","),ds:P.join(","),isVideo:T?1:0});n&&this.wj.M0(J,T,M,n);if(T){if(d.length&&P.length)for(this.W&&this.W===d[0]&&this.playback.dj("sdai",{skipfail:1,sq:J,acpn:this.W}),J=y+this.O5(),v=0;v=0&&this.C.T.splice(J,1)};g.x(rUR,g.u);g.a=rUR.prototype;g.a.onCueRangeEnter=function(J){if(this.C===this.app.Ok()){var y=this.V.get(J);y?pYP(this,y.target,y.J7,J):this.gi("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:J.toString()})}else if(y=this.T.find(function(P){return P.fF.mS===J})){var v=y.fF,d=v.target; v=v.J7;d?pYP(this,d,v,J):Ii2(this,y.JI,v,J)}}; g.a.onQueuedVideoLoaded=function(){var J=this.G;Lw(this);if(J){if(!VE(this,J)){var y=this.app.Ok();this.gi("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:y==null?void 0:y.getVideoData().clientPlaybackNonce,ccpn:""+J.playerVars.cpn})}this.app.Ok().addCueRange(J.fF.mS)}}; g.a.seekTo=function(J,y,v,d){J=J===void 0?0:J;y=y===void 0?{}:y;d=d===void 0?null:d;if(v===void 0?0:v)q5v(this,J,y);else{v=this.app.Ok()||null;var P=v===this.W?this.L:null;t6(this,!1);this.zK=J;this.K=y;d!=null&&this.B.start(d);v&&(this.L=P||v.getPlayerState(),v.Fe(),this.W=v)}}; g.a.TJ=function(J){g.na(J,128)&&HW3(this)}; g.a.isManifestless=function(){return FV(this.C.getVideoData())}; g.a.JY=function(){t6(this,!1);NT3(this);g.u.prototype.JY.call(this)}; g.a.gi=function(J,y){this.C.gi(new g.Y6(J,y))}; var $Ld=0;var Rfd="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.x(Ws,g.u);Ws.prototype.KK=function(J){if(J)return this.T.get(J)}; Ws.prototype.JY=function(){this.C.removeAll();this.T.removeAll();g.u.prototype.JY.call(this)};g.b9y=og(function(){var J=window.AudioContext||window.webkitAudioContext;try{return new J}catch(y){return y.name}});g.x(QZ6,g.z);g.a=QZ6.prototype;g.a.oy=function(){g.PB(this.element,g.iR.apply(0,arguments))}; g.a.Eh=function(){this.K8&&(this.K8.removeEventListener("focus",this.a8),g.O3(this.K8),this.K8=null)}; g.a.a9=function(){this.tY();var J=this.app.Y();J.WH||this.oy("tag-pool-enabled");J.L&&this.oy(g.az.HOUSE_BRAND);J.playerStyle==="gvn"&&(this.oy("ytp-gvn"),this.element.style.backgroundColor="transparent");J.H$&&(this.Zc=g.QD("yt-dom-content-change",this.resize,this));J.X("html5_screen_orientation_resize")?window.screen&&window.screen.orientation?this.Z(window.screen.orientation,"change",this.resize,this):this.Z(window,"orientationchange",this.resize,this):this.Z(window,"orientationchange",this.resize, this);this.Z(window,"resize",this.resize,this)}; g.a.Ca=function(J){g.Ko(this.app.Y());this.HA=!J;aB(this)}; g.a.resize=function(){if(this.K8){var J=this.QH();if(!J.isEmpty()){var y=!g.z8(J,this.IJ.getSize()),v=v0v(this);y&&(this.IJ.width=J.width,this.IJ.height=J.height);J=this.app.Y();(v||y||this.Sp||J.H$)&&this.app.Ly.publish("resize",this.getPlayerSize())}}}; g.a.GA=function(J,y){this.updateVideoData(y)}; g.a.updateVideoData=function(J){if(this.K8){var y=this.app.Y();HN&&(this.K8.setAttribute("x-webkit-airplay","allow"),J.title?this.K8.setAttribute("title",J.title):this.K8.removeAttribute("title"));this.K8.setAttribute("controlslist","nodownload");y.jS&&J.videoId&&(this.K8.poster=J.wC("default.jpg"))}y=g.hH(J,"yt:bgcolor");this.kL.style.backgroundColor=y?y:"";this.hj=P1(g.hH(J,"yt:stretch"));this.HD=P1(g.hH(J,"yt:crop"),!0);g.lq(this.element,"ytp-dni",J.vR);this.resize()}; g.a.setGlobalCrop=function(J){this.jM=P1(J,!0);this.resize()}; g.a.setCenterCrop=function(J){this.bP=J;this.resize()}; g.a.a$=function(){}; g.a.getPlayerSize=function(){var J=this.app.Y(),y=this.app.Ly.isFullscreen(),v=J.externalFullscreen&&g.un(J);if(y&&iQ()&&!v)return new g.Kn(window.outerWidth,window.outerHeight);v=!isNaN(this.yG.width)&&!isNaN(this.yG.height);var d=this.app.Y().X("kevlar_player_enable_squeezeback_fullscreen_sizing");if(y&&!v&&d)return new g.Kn(this.element.clientWidth,this.element.clientHeight);if(y||J.pR){if(window.matchMedia){J="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.MB&&this.MB.media=== J||(this.MB=window.matchMedia(J));var P=this.MB&&this.MB.matches}if(P)return new g.Kn(window.innerWidth,window.innerHeight)}else if(v)return this.yG.clone();return new g.Kn(this.element.clientWidth,this.element.clientHeight)}; g.a.QH=function(){var J=this.app.Y().X("enable_desktop_player_underlay"),y=this.getPlayerSize(),v=g.Zo(this.app.Y().experiments,"player_underlay_min_player_width");return J&&this.Kq&&y.width>v?(J=g.Zo(this.app.Y().experiments,"player_underlay_video_width_fraction"),new g.Kn(Math.min(y.height*this.getVideoAspectRatio(),y.width*J),Math.min(y.height,y.width*J/this.getVideoAspectRatio()))):y}; g.a.getVideoAspectRatio=function(){return isNaN(this.hj)?wYP(this):this.hj}; g.a.getVideoContentRect=function(J){var y=this.QH();J=J52(this,y,this.getVideoAspectRatio(),J);return new g.ua((y.width-J.width)/2,(y.height-J.height)/2,J.width,J.height)}; g.a.Dl=function(J){this.Kq=J;this.resize()}; g.a.SG=function(){return this.tp}; g.a.onMutedAutoplayChange=function(){aB(this)}; g.a.setInternalSize=function(J){g.z8(this.yG,J)||(this.yG=J,this.resize())}; g.a.JY=function(){this.Zc&&g.Z6(this.Zc);this.Eh();g.z.prototype.JY.call(this)};g.a=Pmx.prototype;g.a.click=function(J,y){this.elements.has(J);this.C.has(J);var v=g.xe();v&&J.visualElement&&g.ZY(v,J.visualElement,y)}; g.a.createClientVe=function(J,y,v,d){var P=this;d=d===void 0?!1:d;this.elements.has(J);this.elements.add(J);v=x5r(v);J.visualElement=v;var A=g.xe(),T=g.a5();A&&T&&(g.a7("combine_ve_grafts")?Rk(X1(),v,T):g.kV(g.fT)(void 0,A,T,v));y.addOnDisposeCallback(function(){P.elements.has(J)&&P.destroyVe(J)}); d&&this.T.add(J)}; g.a.createServerVe=function(J,y,v){var d=this;v=v===void 0?!1:v;this.elements.has(J);this.elements.add(J);y.addOnDisposeCallback(function(){d.destroyVe(J)}); v&&this.T.add(J)}; g.a.destroyVe=function(J){this.elements.has(J);this.elements.delete(J);this.J.delete(J);this.C.delete(J);this.T.delete(J)}; g.a.HV=function(J,y){this.clientPlaybackNonce!==y&&(this.clientPlaybackNonce=y,N3(X1(),J),A5R(this))}; g.a.setTrackingParams=function(J,y){this.elements.has(J);y&&(J.visualElement=g.tm(y))}; g.a.eH=function(J,y,v){this.elements.has(J);y?this.C.add(J):this.C.delete(J);var d=g.xe(),P=J.visualElement;this.T.has(J)?d&&P&&(y?g.EN(d,[P]):g.QL(d,[P])):y&&!this.J.has(J)&&(d&&P&&g.ke(d,P,void 0,v),this.J.add(J))}; g.a.hasVe=function(J){return this.elements.has(J)};g.x(g.OJ,g.u);g.OJ.create=function(J,y,v,d){try{var P=typeof J==="string"?J:"player"+g.lw(J),A=mz[P];if(A){try{A.dispose()}catch(M){g.jv(M)}mz[P]=null}var T=new g.OJ(J,y,v,d);T.addOnDisposeCallback(function(){mz[P]=null;T.Bj&&T.Bj()}); return mz[P]=T}catch(M){throw g.jv(M),(M&&M instanceof Error?M:Error(String(M))).stack;}}; g.a=g.OJ.prototype;g.a.OY=function(){return this.visibility}; g.a.z6=function(J){var y=this.TI();if(J!==y){J.getVideoData().autonavState=y.getVideoData().autonavState;y.qT(this.Te,this);var v=y.getPlaybackRate();y.dispose();this.Q8.z6(J);J.setPlaybackRate(v);J.df(this.Te,this);SXU(this)}}; g.a.X1=function(){this.eM||(this.eM=g.H4(K5(),rh3()));return this.eM}; g.a.Eh=function(J){if(this.mediaElement){this.oI&&(this.events.y8(this.oI),this.oI=null);g.j$(this.yS);this.Ok().Eh(!0,!1,J);this.template.Eh();try{this.X("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.N_()}catch(y){g.ev(y)}this.mediaElement=null}}; g.a.v7=function(J,y,v){v=v===void 0?!1:v;if(J!==this.Ok()){this.logger.debug(function(){return"start set presenting player, type "+J.getPlayerType()+", vid "+J.getVideoData().videoId}); var d=null;v||(v=this.Ok(),d=v.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),rA(this.xm,3),Hs(this,"cuerangesremoved",v.uv()),this.WO&&!J.isGapless()&&v.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),v=J.q$()&&v.q$(),this.Ql.Ja("iv_s"),g06(this,v));J.getPlayerType()===1&&this.z6(J);O7v(this,J);this.Q8.v7(J);this.mediaElement&&J.setMediaElement(this.mediaElement);J.df(this.F5,this);J.Jw()?KiH(this,"setPresenting",!1):(this.GA("newdata",J,J.getVideoData()), d&&!g.bh(d,J.getPlayerState())&&this.oX(new g.lL(J.getPlayerState(),d)),y=y&&J.getPlayerType()===1,J.g8()&&!y&&this.GA("dataloaded",J,J.getVideoData()),(y=(y=J.getVideoData().T)&&y.video)&&this.Ly.cR("onPlaybackQualityChange",y.quality),Hs(this,"cuerangesadded",J.uv()),y=J.getPlayerState(),g.k(y,2)?xY2(this):g.k(y,8)?J.playVideo():J.CJ()&&J.pauseVideo(),y=this.TI(),J.getPlayerType()===2&&(J.getVideoData().EO=y.getVideoData().clientPlaybackNonce),J.getPlayerType()!==2||this.eC()||(d=J.getVideoData(), y.Ep(d.clientPlaybackNonce,d.SC||"",d.breakType||0,d.xj,d.videoId||"")),this.logger.debug("finish set presenting player"))}}; g.a.JG=function(){if(this.TI()!==this.Ok()){var J=this.Ok();this.logger.debug(function(){return"release presenting player, type "+J.getPlayerType()+", vid "+J.getVideoData().videoId}); this.v7(this.TI())}}; g.a.vO=function(){return this.Q8}; g.a.MA=function(J){return this.Q8.MA(J)}; g.a.bN=function(J){return this.Q8.bN(J)}; g.a.TI=function(){return this.Q8.TI()}; g.a.Ok=function(){return this.Q8.Ok()}; g.a.e6=PP(44);g.a.kKA=function(){FO(this)||(this.logger.debug("application playback ready"),this.UT(5))}; g.a.Z8B=function(){if(!FO(this)){this.logger.debug("playback ready");H7H(this);var J=this.Ok(),y=J.getPlayerState();J.CJ()?this.pauseVideo():y.isOrWillBePlaying()&&this.playVideo()}}; g.a.canPlayType=function(J){return tT(J)}; g.a.Y=function(){return this.iA}; g.a.getVideoData=function(){return this.Ok().getVideoData()}; g.a.Rs=PP(11);g.a.di=function(){return this.TI().getVideoData()}; g.a.getVideoLoadedFraction=function(J){return(J=this.MA({playerType:J}))?J.getVideoLoadedFraction():this.Q8.C.getVideoLoadedFraction()}; g.a.DB=function(){return this.template}; g.a.un=function(){return this.xm}; g.a.AR=function(){return this.Ql}; g.a.NC=function(J){var y=this.MA({playerType:1});y&&y.D_(J)}; g.a.Zz=function(){var J=this.xm.Zz();this.Ly.publish("videoStatsPingCreated",J);return J}; g.a.getVolume=function(){return Math.round(this.Ly.getVolume())}; g.a.isMuted=function(){return this.Ly.isMuted()}; g.a.OC=function(){if(this.TI()===this.Ok()&&this.wp)return this.wp.postId}; g.a.PJY=function(){var J=this;this.X("use_rta_for_player")||(g.Sb(this.iA)?g.xo(this.iA,g.ZL(this.getVideoData())).then(function(y){z9(K5(),y);kkU(J.getVideoData(),J.iA,J.X1())}):kkU(this.getVideoData(),this.iA,this.X1()))}; g.a.JC=function(J){this.Ly.publish("poTokenVideoBindingChange",J)}; g.a.NZ=function(J){this.Ly.publish("d6de4videobindingchange",J)}; g.a.n4=function(){this.DG&&this.DG.n4()}; g.a.Kl=function(J){this.DG=J}; g.a.Sx=function(J){if(J===1){this.Ql.tick("vr");var y=this.Ok();y.Ne();sBR(this.Ql,y.getVideoData(),uBc(this));ftP(this.xm)}y=this.iA;if(tw(y)&&y.B||g.kO(y)){var v;(((v=this.Ok().getVideoData())==null?0:v.enableServerStitchedDai)||!this.eC())&&this.Ly.cR("onAdStateChange",J)}}; g.a.setLoopVideo=function(J){var y=this.Ok();y===this.TI()&&y.eI()!==J&&(y.setLoop(J),this.Ly.Rf("onLoopChange",J))}; g.a.getLoopVideo=function(){return this.Ok().eI()}; g.a.setLoopRange=function(J){var y=!1;!!this.wp!==!!J?y=!0:this.wp&&J&&(y=this.wp.startTimeMs!==J.startTimeMs||this.wp.endTimeMs!==J.endTimeMs||this.wp.postId!==J.postId||this.wp.type!==J.type);if(y){y=this.Ok();Wh(y.getVideoData())&&y.dj("slr",{et:(J==null?void 0:J.endTimeMs)||-1});y=this.TI();y.tI("applooprange");if(J){var v=new g.uI(J.startTimeMs,J.endTimeMs,{id:"looprange",namespace:"applooprange"});y.addCueRange(v)}else{this.di().clipConfig=void 0;var d;((v=this.wp)==null?void 0:v.type)!=="repeatChapter"|| isNaN(Number((d=this.wp)==null?void 0:d.loopCount))||(v={loopCount:String(this.wp.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.AW("repeatChapterLoopEvent",v))}this.wp=J;this.Ly.Rf("onLoopRangeChange",J||void 0);this.TI()===this.Ok()&&(this.FH(),y.SU())}}; g.a.getLoopRange=function(){return this.wp}; g.a.FH=function(){var J="",y=this.TI();this.wp?y!==this.Ok()?J="pnea":mYU(this,y.getCurrentTime())&&(this.wp.loopCount=0,J="ilr"):J="nlr";var v=this.Ok();if(Wh(v.getVideoData()))if(this.X("html5_gapless_log_loop_range_info")){var d,P;v.dj("slrre",{rej:J,ct:y.getCurrentTime(),lst:(d=this.wp)==null?void 0:d.startTimeMs,let:(P=this.wp)==null?void 0:P.endTimeMs})}else v.dj("slrre",{});J||qXT(this)}; g.a.setPlaybackRate=function(J,y){if(!isNaN(J)){J=teP(this,J);var v=this.TI();v.getPlaybackRate()!==J&&(v.setPlaybackRate(J),y&&!this.iA.W&&g.B1("yt-player-playback-rate",J),this.Ly.cR("onPlaybackRateChange",J))}}; g.a.getCurrentTime=function(J,y){y=y===void 0?!0:y;var v=this.Q8.pL;if(v)return v.getCurrentTime();var d=J===2&&this.getVideoData().enableServerStitchedDai;v=null;d?v=this.Ok():v=this.MA({playerType:J});return v?d&&this.Ym?(J=this.Q8.G)?J.getCurrentTime(y):v.getCurrentTime():y?(y=bA(this,v),h6(this,y.getCurrentTime(),y)):v.getCurrentTime():this.Q8.C.getCurrentTime()}; g.a.LN=function(){var J=this.MA({playerType:void 0});if(!J)return this.Q8.C.LN();J=bA(this,J);return h6(this,J.LN(),J)}; g.a.getDuration=function(J,y){y=y===void 0?!0:y;var v=this.Q8.pL;if(v)return v.getDuration();v=this.getVideoData();var d=J===2&&v.enableServerStitchedDai,P=null;d?P=this.Ok():P=this.MA({playerType:J});if(!P)return this.Q8.C.getDuration();if(v.hasProgressBarBoundaries()&&!d){var A,T=Number((A=v.progressBarStartPosition)==null?void 0:A.utcTimeMillis),M;A=Number((M=v.progressBarEndPosition)==null?void 0:M.utcTimeMillis);if(!isNaN(T)&&!isNaN(A))return(A-T)/1E3}if(Wh(v)&&!v.isLivePlayback)return oB(this, J);if(y)return J=GF(this,P),h6(this,J.getDuration(),J);if(d&&this.Ym){if(this.X("html5_huli_ssdai_use_playback_state"))return J=this.Q8,J=J.W===J.G?J.W:null,(J==null?void 0:J.getDuration())||0;var n;return((n=this.Q8.G)==null?void 0:n.getDuration())||0}return P.getDuration()}; g.a.T4=function(J){var y=this.MA({playerType:J});return y?this.eC(y)?(y=GF(this,y),y.T4()-y.getCurrentTime()+this.getCurrentTime(J)):y.T4():this.Q8.C.T4()}; g.a.finishSegmentByCpn=function(){return[]}; g.a.a9=function(){this.template.a9();var J=this.Ly;J.state.element=this.template.element;var y=J.state.element,v;for(v in J.state.C)J.state.C.hasOwnProperty(v)&&(y[v]=J.state.C[v]);(J=I7m(this.template.element))&&this.events.Z(this.template,J,this.onFullscreenChange)}; g.a.getDebugText=function(J){var y=this.TI().P$(J),v=this.Ok();if(v!==this.TI()){v=v.P$(J);for(var d=g.D(Object.keys(v)),P=d.next();!P.done;P=d.next())P=P.value,y["ad"+P]=v[P];if(J){v=y;d={};if(P=PZ(document,"movie_player"))d.bounds=P.getBoundingClientRect(),d["class"]=P.className;P={};var A=g.Mi("video-ads");A?(E06(A,P),P.html=A.outerHTML):P.missing=1;A={};var T=g.Mi("videoAdUiSkipContainer"),M=g.Mi("ytp-ad-skip-button-container"),n=g.Mi("ytp-skip-ad-button"),Y=T||M||n;Y?(E06(Y,A),A.ima=T?1:0,A.bulleit= M?1:0,A.component=n?1:0):A.missing=1;d=JSON.stringify({player:d,videoAds:P,skipButton:A});v.ad_skipBtnDbgInfo=d}}J&&this.mediaElement&&(y["0sz"]=""+(+kp(this.mediaElement.getSize())===0),y.op=this.mediaElement.Nf("opacity"),v=this.mediaElement.GC().y+this.mediaElement.getSize().height,y.yof=""+(+v<=0),y.dis=this.mediaElement.Nf("display"));J&&((J=(0,g.bz)())&&(y.gpu=J),(J=this.iA.playerStyle)&&(y.ps=J),this.iA.Vk&&(y.webview=1));y.debug_playbackQuality=this.Ly.getPlaybackQuality(1);y.debug_date=(new Date).toString(); y.origin=window.origin;y.timestamp=Date.now();delete y.uga;delete y.q;return JSON.stringify(y,null,2)}; g.a.getFeedbackProductData=function(){var J={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Y().experiments.experimentIds.join(", "),player_release:l[36]},y=this.getPlayerStateObject().Zx;y&&(J.player_error_code=y.errorCode,J.player_error_details=JSON.stringify(y.errorDetail));return J}; g.a.getPresentingPlayerType=function(J){if(this.appState===1)return 1;if(FO(this))return 3;var y;return J&&((y=this.Ym)==null?0:y.kY(this.getCurrentTime()))?2:this.Ok().getPlayerType()}; g.a.PA=function(){return!1}; g.a.getPlayerStateObject=function(J){var y=this.Q8.pL;return y?y.getPlayerState():this.MA({playerType:J}).getPlayerState()}; g.a.getAppState=function(){return this.appState}; g.a.njB=function(J){switch(J.type){case "loadedmetadata":this.Uf.start();J=g.D(this.Vf);for(var y=J.next();!y.done;y=J.next())y=y.value,i7d(this,y.id,y.Dwb,y.UwK,void 0,!1);this.Vf=[];break;case "loadstart":this.Ql.Ja("gv");break;case "progress":case "timeupdate":Ey(J.target.DW())>=2&&this.Ql.Ja("l2s");break;case "playing":g.V0&&this.Uf.start();if(g.Sb(this.iA))J=!1;else{y=g.f5(this.un());J=this.mediaElement.Nf("display")==="none"||kp(this.mediaElement.getSize())===0;var v=xS(this.template),d=this.Ok().getVideoData(), P=g.rm(this.iA);d=a9(d);y=!v||y||P||d||this.iA.Ky;J=J&&!y}J&&(J=this.Ok(),J.o6(),this.getVideoData().f8||(this.getVideoData().f8=1,this.ul(),J.playVideo()))}}; g.a.vDB=function(J){this.Ly.Kf("onLoadProgress",J)}; g.a.FZB=function(){this.Ly.publish("playbackstalledatstart")}; g.a.U4A=function(J,y){this.Ly.publish("sabrCaptionsDataLoaded",J,y)}; g.a.xsW=function(J){this.Ok().RJ(J)}; g.a.hgR=function(J){this.Ok().Z$(J)}; g.a.l1B=function(J){J=bA(this,this.Ok());J=h6(this,J.getCurrentTime(),J);this.Ly.cR("onVideoProgress",J);this.iA.Ii&&IwR(this,this.visibility.KL())&&this.pauseVideo()}; g.a.fER=function(){this.Ly.cR("onAutoplayBlocked");var J=this.Ok().getVideoData();J&&(J.MH=!0);this.X("embeds_enable_autoplay_and_visibility_signals")&&g.un(this.iA)&&(J={autoplayBrowserPolicy:xi(),autoplayIntended:Os(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.AW("embedsAutoplayStatusChanged",J))}; g.a.Bpy=function(){this.Ly.publish("progresssync")}; g.a.Npk=function(){this.Ly.Kf("onPlaybackPauseAtStart")}; g.a.pXj=function(J){if(this.getPresentingPlayerType()===1){g.na(J,1)&&!g.k(J.state,64)&&this.di().isLivePlayback&&this.TI().isAtLiveHead()&&this.Ly.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.na(J,2)){if(this.wp&&this.wp.endTimeMs>=(this.getDuration()-1)*1E3){qXT(this);return}xY2(this)}if(g.k(J.state,128)){var y=J.state;this.cancelPlayback(5);y=y.Zx;JSON.stringify({errorData:y,debugInfo:this.getDebugText(!0)});this.Ly.cR("onError",lDR(y.errorCode));this.Ly.Kf("onDetailedError",{errorCode:y.errorCode, errorDetail:y.errorDetail,message:y.errorMessage,messageKey:y.wL,cpn:y.cpn});(0,g.GC)()-this.iA.VE>6048E5&&this.Ly.Kf("onReloadRequired")}y={};if(J.state.isPlaying()&&!J.state.isBuffering()&&!jq("pbresume","ad_to_video")&&jq("_start","ad_to_video")){var v=this.getVideoData();y.clientPlaybackNonce=v.clientPlaybackNonce;v.videoId&&(y.videoId=v.videoId);g.bx(y,"ad_to_video");Ge("pbresume",void 0,"ad_to_video");ftP(this.xm)}this.Ly.publish("applicationplayerstatechange",J)}}; g.a.oX=function(J){this.Q8.pL||this.Ly.publish("presentingplayerstatechange",J)}; g.a.TJ=function(J){cs(this,j1(J.state));g.k(J.state,1024)&&this.Ly.isMutedByMutedAutoplay()&&(rq(this,{muted:!1,volume:this.Za.volume},!1),$S(this,!1))}; g.a.onPlayerRequestSent=function(J){this.Ly.Rf("onPlayerRequestSent",J)}; g.a.jfk=function(J,y){J==="newdata"&&SXU(this);this.Ly.publish("applicationvideodatachange",J,y)}; g.a.LZK=function(J,y){this.X("html5_afmt_change_update_volume")&&H7H(this);this.Ly.Kf("onPlaybackAudioChange",this.Ly.getAudioTrack().N4.name);this.Ly.publish("internalaudioformatchange",this.Ly.getAudioTrack().N4.id,y)}; g.a.iff=function(J){var y=this.Ok().getVideoData();J===y&&this.Ly.cR("onPlaybackQualityChange",J.T.video.quality)}; g.a.Qg=function(){var J=this.Q8.J[2]||null;J&&(J=J.getVideoData(),this.Ok().dj("ssdai",{cleanaply:1,acpn:J==null?void 0:J.clientPlaybackNonce,avid:J.videoId,isDai:this.di().enableServerStitchedDai?1:0}),delete this.Q8.J[2])}; g.a.KZk=function(J,y){this.GA(J,this.Ok(),y)}; g.a.GA=function(J,y,v){this.logger.debug(function(){return"on video data change "+J+", player type "+y.getPlayerType()+", vid "+v.videoId}); this.iA.SH()&&y.dj("vdc",{type:J,vid:v.videoId||"",cpn:v.clientPlaybackNonce||""});y===this.TI()&&(this.iA.jc=v.oauthToken);y===this.TI()&&(this.getVideoData().enableServerStitchedDai&&!this.Ym?(this.TI().dj("sdai",{initSstm:1}),this.Ym=this.X("html5_enable_ssdai_transition_with_only_enter_cuerange")?new bWP(this.Ly,this.iA,this.TI(),this):new g.ZB(this.Ly,this.iA,this.TI(),this)):!this.getVideoData().enableServerStitchedDai&&this.Ym&&(this.Ym.dispose(),this.Ym=null));if(J==="newdata")this.logger.debug("new video data, destroy modules"), rA(this.xm,2),this.Ly.publish("videoplayerreset",y);else{if(!this.mediaElement)return;J==="dataloaded"&&(this.TI()===this.Ok()?(Jw(v.qx,v.yz),b7j(this)):c5P(this));y.getPlayerType()===1&&(this.iA.cX&&kM3(this),this.getVideoData().isLivePlayback&&!this.iA.ye&&this.dC("html5.unsupportedlive",2,"DEVICE_FALLBACK"),v.isLoaded()&&((WVr(v)||this.getVideoData().qj)&&this.Ly.publish("legacyadtrackingpingchange",this.getVideoData()),v.hasProgressBarBoundaries()&&$YH(this)));this.Ly.publish("videodatachange", J,v,y.getPlayerType())}this.Ly.cR("onVideoDataChange",{type:J,playertype:y.getPlayerType()});this.FH();var d=v.K6;d?this.P9.HV(d,v.clientPlaybackNonce):A5R(this.P9)}; g.a.hU=function(){ey(this,null);this.Ly.Kf("onPlaylistUpdate")}; g.a.A_j=function(J){delete this.fv[J.getId()];this.TI().removeCueRange(J);a:{J=this.getVideoData();var y,v,d,P,A,T,M,n,Y,S,V=((y=J.cX)==null?void 0:(v=y.contents)==null?void 0:(d=v.singleColumnWatchNextResults)==null?void 0:(P=d.autoplay)==null?void 0:(A=P.autoplay)==null?void 0:A.sets)||((T=J.cX)==null?void 0:(M=T.contents)==null?void 0:(n=M.twoColumnWatchNextResults)==null?void 0:(Y=n.autoplay)==null?void 0:(S=Y.autoplay)==null?void 0:S.sets);if(V)for(y=g.D(V),v=y.next();!v.done;v=y.next())if(v= v.value,P=d=void 0,v=v.autoplayVideo||((d=v.autoplayVideoRenderer)==null?void 0:(P=d.autoplayEndpointRenderer)==null?void 0:P.endpoint),d=g.R(v,g.Y9),A=P=void 0,v!=null&&((P=d)==null?void 0:P.videoId)===J.videoId&&((A=d)==null?0:A.continuePlayback)){J=v;break a}J=null}(y=g.R(J,g.Y9))&&this.Ly.Rf("onPlayVideo",{sessionData:{autonav:"1",itct:J==null?void 0:J.clickTrackingParams},videoId:y.videoId,watchEndpoint:y})}; g.a.UT=function(J){var y=this;J!==this.appState&&(this.logger.debug(function(){return"app state change "+y.appState+" -> "+J}),J===2&&this.getPresentingPlayerType()===1&&(cs(this,-1),cs(this,5)),this.appState=J,this.Ly.publish("appstatechange",J))}; g.a.dC=function(J,y,v,d,P){this.TI().q1(J,y,v,d,P)}; g.a.Pw=PP(13);g.a.isAtLiveHead=function(J,y){y=y===void 0?!1:y;var v=this.MA({playerType:J});if(!v)return this.Q8.C.isAtLiveHead();J=GF(this,v);v=bA(this,v);return J!==v?J.isAtLiveHead(h6(this,v.getCurrentTime(),v),!0):J.isAtLiveHead(void 0,y)}; g.a.Mk=function(){var J=this.MA({playerType:void 0});return J?GF(this,J).Mk():this.Q8.C.Mk()}; g.a.seekTo=function(J,y,v,d,P){y=y!==!1;if(d=this.MA({playerType:d}))this.appState===2&&Bs(this),this.eC(d)?IB(this)?this.Ym.seekTo(J,{seekSource:P},y,v):this.Rk.seekTo(J,{seekSource:P},y,v):d.seekTo(J,{CM:!y,Uo:v,jn:"application",seekSource:P})}; g.a.seekBy=function(J,y,v,d){this.seekTo(this.getCurrentTime()+J,y,v,d)}; g.a.D4Y=function(){this.Ly.cR("SEEK_COMPLETE")}; g.a.EDk=function(){this.Ly.Rf("onAbnormalityDetected")}; g.a.eWk=function(J){this.Ly.Rf("onSnackbarMessage",J)}; g.a.PnB=function(J){var y=this.Ok(),v=y.getVideoData();if(this.appState===1||this.appState===2)v.startSeconds=J;this.appState===2?g.k(y.getPlayerState(),512)||Bs(this):this.Ly.cR("SEEK_TO",J)}; g.a.m4X=function(){this.Ly.publish("airplayactivechange");this.iA.X("html5_external_airplay_events")&&this.Ly.Kf("onAirPlayActiveChange",this.Ly.Fz())}; g.a.SNA=function(){this.Ly.publish("airplayavailabilitychange");this.iA.X("html5_external_airplay_events")&&this.Ly.Kf("onAirPlayAvailabilityChange",this.Ly.aC())}; g.a.showAirplayPicker=function(){this.Ok().Wz()}; g.a.VHA=function(){this.Ly.publish("beginseeking")}; g.a.hWK=function(){this.Ly.publish("endseeking")}; g.a.getStoryboardFormat=function(J){return(J=this.MA({playerType:J}))?GF(this,J).getStoryboardFormat():this.Q8.C.getStoryboardFormat()}; g.a.Id=function(J){return(J=this.MA({playerType:J}))?GF(this,J).getVideoData().Id():this.Q8.C.Id()}; g.a.eC=function(J){J=(J||this.Ok()).getVideoData();if(IB(this))J=J===this.Ym.playback.getVideoData();else a:{var y=this.Rk;if(J===y.C.getVideoData()&&y.T.length)J=!0;else{y=g.D(y.T);for(var v=y.next();!v.done;v=y.next())if(J.Xl===v.value.Xl){J=!0;break a}J=!1}}return J}; g.a.Vh=function(J,y,v,d,P,A,T,M){this.logger.debug(function(){return"Adding video to timeline id="+J.video_id+"\n lengthMs="+d+" enterTimeMs="+P}); var n="",Y=IB(this);this.Ok().dj("appattl",{sstm:this.Ym?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:Y});Y?(v=AUm(this.Ym,J,y,v,d,P,A,T,M),n=(v==null?void 0:v.Xl)||"",this.X("html5_ssdai_new_decoration_logic")&&this.TI().Op(M||"",y,(v==null?void 0:v.clientPlaybackNonce)||"")):n=hfd(this.Rk,J,v,d,P,A);this.logger.debug(function(){return"Video added to timeline id="+J.video_id+" timelinePlaybackId="+n}); return n}; g.a.K9=function(J,y,v,d,P,A,T,M){if(IB(this)){var n=AUm(this.Ym,J,y,v,d,P,A,T,M);this.logger.debug(function(){return"Remaining video added to timeline id="+J.video_id+" timelinePlaybackId="+n})}return""}; g.a.fJ=function(J){this.X("html5_ssdai_new_decoration_logic")&&this.TI().Op(J,"","");var y;(y=this.Ym)==null||y.fJ(J)}; g.a.qR=function(J,y){J=J===void 0?-1:J;y=y===void 0?Infinity:y;IB(this)||NT3(this.Rk,J,y)}; g.a.Zm=function(J,y,v){if(IB(this)){var d=this.Ym,P=d.C.W.get(J);P?(v===void 0&&(v=P.JI),sZR(d,P,y,v)):d.Ox("Invalid_timelinePlaybackId_"+J+"_specified")}else{d=this.Rk;P=null;for(var A=g.D(d.T),T=A.next();!T.done;T=A.next())if(T=T.value,T.Xl===J){P=T;break}P?(v===void 0&&(v=P.JI),XY6(d,P,y,v)):YS(d,"InvalidTimelinePlaybackId timelinePlaybackId="+J)}}; g.a.enqueueVideoByPlayerVars=function(J,y,v,d){v=v===void 0?Infinity:v;d=d===void 0?"":d;this.eC();J=new g.Ph(this.iA,J);d&&(J.Xl=d);o0c(this,J,y,v)}; g.a.queueNextVideo=function(J,y,v,d,P){v=v===void 0?NaN:v;J=this.preloadVideoByPlayerVars(J,y===void 0?1:y,v,d===void 0?"":d,P===void 0?"":P);y=this.Ok();J&&(this.X("html5_check_queue_on_data_loaded")?this.Y().supportsGaplessShorts()&&y.getVideoData().G&&(v=this.r3,d=this.WO.V,v.W!==J&&(v.T=y,v.W=J,v.J=1,v.C=J.getVideoData(),v.V=d,v.C.isLoaded()?v.L():v.C.subscribe("dataloaded",v.L,v))):(v=FYd(y,J,this.WO.V),v!=null?(y.dj("sgap",v),y.getVideoData().G&&y.Ze(!1)):(J=J.getVideoData(),y=this.r3,y.C!== J&&(y.C=J,y.J=1,J.isLoaded()?y.G():y.C.subscribe("dataloaded",y.G,y)))))}; g.a.vG=function(J,y,v,d){var P=this;v=v===void 0?0:v;d=d===void 0?0:d;GF(this,this.Ok()).d3();Ijc(this.WO,J,y,v,d).then(function(){P.Ly.Kf("onQueuedVideoLoaded")},function(){})}; g.a.bv=function(){return this.WO.bv()}; g.a.CY=function(J){var y=this.WO.C;return y?y.Vj(J):!1}; g.a.clearQueue=function(J,y){J=J===void 0?!1:J;y=y===void 0?!1:y;this.logger.debug("Clearing queue");this.WO.clearQueue(J,y)}; g.a.loadVideoByPlayerVars=function(J,y,v,d,P,A){y=y===void 0?1:y;var T=this.TI();if(y===2&&this.di().enableServerStitchedDai&&T&&!T.aB())return T.dj("lvonss",{vid:(J==null?void 0:J.videoId)||"",ptype:y}),!1;var M=!1;T=new g.Ph(this.iA,J);T.t7=A;g.Sc(this.iA)&&!T.Cr&&O2(this.Ql);var n;A=this.Ql;var Y=(n=T.K)!=null?n:"";A.timerName=Y;this.Ql.Tr("pl_i");this.X("web_player_early_cpn")&&T.clientPlaybackNonce&&this.Ql.infoGel({clientPlaybackNonce:T.clientPlaybackNonce});N6U(T).supportsVp9Encoding===!1&& this.Ok().dj("noVp9enc",{});if(this.Y().supportsGaplessShorts()){n=fj6(this.WO,T,y);if(n==null){cs(this,-1);var S;!this.X("html5_shorts_gapless_reset_ad_module")||((S=this.WO.C)==null?0:S.getVideoData().isAd())||pw(this);J=this.WO;J.app.Y().X("html5_gapless_new_slr")?Cw(J.app,"gaplessshortslooprange"):J.app.setLoopRange(null);J.app.Y().X("html5_gapless_remove_videoplaytime100_cuerange")&&J.app.Oq("videoplaytime100");J.app.getVideoData().As=!0;var V;(V=J.C)==null||V.D3();var L;(L=J.C)==null||L.Jk(); v={jn:"gapless_to_next_video",seekSource:60,wl:J.V.C};d=g.Zo(J.app.Y().experiments,"html5_gapless_seek_offset");P=UC3(J);if(J.V.C){var t;T=((t=J.J)==null?void 0:U9(t))||{};t=T.GQ;T=T.f5;T!=null&&t!=null&&(P=T-t)}var W;(W=J.app.Ok())==null||W.seekTo(P+d,v);if(!J.app.getPlayerStateObject(y).isPlaying()){var c;(c=J.app.Ok())==null||c.playVideo(!0)}var b;(b=J.app.Ok())==null||b.Ev();J.G();return!0}W=this.X("html5_shorts_gapless_preload_fallback");c=this.WO.C;W&&c&&!c.tY()&&(b=c.getVideoData(),b=this.iA.X("html5_autonav_autoplay_in_preload_key")? UJ(this,y,b):fw(this,y,b.videoId,b.Xl),this.Q8.V.set(b,c,3600));this.WO.clearQueue(W);this.Ok().dj("sgap",{f:n})}if(P){for(;T.ZC.length&&T.ZC[0].isExpired();)T.ZC.shift();W=T.ZC.length-1;M=W>0&&P.T(T.ZC[W])&&P.T(T.ZC[W-1]);T.ZC.push(P)}v||(J&&Vyx(J)?(Tx(this.iA)&&!this.M$&&(J.fetch=0),ey(this,J)):this.playlist&&ey(this,null),J&&(this.M$=JX(!1,J.external_list)));this.Ly.publish("loadvideo");W=this.IM(T,y,d);M&&this.dC("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+T.ZC.join()).replace(/[;:,]/g, "_"));return W}; g.a.preloadVideoByPlayerVars=function(J,y,v,d,P){y=y===void 0?1:y;v=v===void 0?NaN:v;d=d===void 0?"":d;P=P===void 0?"":P;var A="";if(this.iA.X("html5_autonav_autoplay_in_preload_key"))A=h7m(this,y,J,P);else{var T=AX(J);A=fw(this,y,T,P)}if(T=this.Q8.V.get(A)||null)return this.logger.debug(function(){return"already preloaded "+A}),this.X("html5_return_playback_if_already_preloaded")?T:null; J=new g.Ph(this.iA,J);P&&(J.Xl=P);return Cmj(this,J,y,v,d)}; g.a.setMinimized=function(J){this.visibility.setMinimized(J);(J=Hw2(this.xm))&&(this.isMinimized()?J.load():J.unload());this.Ly.publish("minimized")}; g.a.setInline=function(J){this.visibility.setInline(J)}; g.a.setInlinePreview=function(J){this.visibility.setInline(J)}; g.a.PU=function(J){pb3(this,J)||this.visibility.PU(J)}; g.a.setSqueezeback=function(J){this.visibility.setSqueezeback(J)}; g.a.qO=function(){var J,y=(J=this.mediaElement)==null?void 0:J.sN();y&&(this.iA.l0&&BR(jW(function(){return document.exitFullscreen()}),function(){}),BR(jW(function(){return W1(y)}),function(){}))}; g.a.XqB=function(){this.mediaElement.sN();this.mediaElement.sN().webkitPresentationMode==="picture-in-picture"?this.PU(!0):this.PU(!1)}; g.a.togglePictureInPicture=function(){this.Ok().togglePictureInPicture()}; g.a.IM=function(J,y,v){y=y===void 0?1:y;this.logger.debug(function(){return"start load video, id "+J.videoId+", type "+y}); jq("_start",this.Ql.timerName)||g.kV(W4)(void 0,this.Ql.timerName);var d=!1,P=e72(this,y,J,!1);P?(d=!0,J.dispose()):(P=gq(this,y,J,!0,v),(this.X("html5_onesie")||this.X("html5_load_before_stop"))&&P.yN()&&P.ZY(),this.Uf.stop(),y===1&&y!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,y),this.v7(P));P===this.TI()&&(this.iA.jc=J.oauthToken);if(!P.yN())return!1;if(P===this.TI())return this.UT(1),v=Bs(this),d&&this.X("html5_player_preload_ad_fix")&&P.getPlayerType()===1&& P.g8()&&this.GA("dataloaded",P,P.getVideoData()),v;P.eE();return!0}; g.a.cueVideoByPlayerVars=function(J,y){var v=this;y=y===void 0?1:y;var d=this.TI();if(this.di().enableServerStitchedDai&&d&&!d.aB()&&J&&Object.keys(J).length>0)d.dj("qvonss",{vid:(J==null?void 0:J.videoId)||"",ptype:y});else if(J&&Vyx(J))if(this.al=!0,ey(this,J),(J=g.gA(this.playlist))&&J.ZO())uA(this,J,y);else this.playlist.onReady(function(){mg(v)}); else{y||(y=this.getPresentingPlayerType());y===1&&this.hU();d=new g.Ph(this.iA,J);var P=g.un(this.iA)&&!this.iA.Cy&&y===1&&!d.isAd()&&!d.SC;this.Ly.publish("cuevideo");P?(this.Ok().getVideoData().loading=!0,gSU(d,J?J:{}).then(function(A){uA(v,A,y)}),d.dispose()):uA(this,d,y)}}; g.a.u8=function(J,y,v,d,P,A,T){if(!J&&!v)throw Error("Playback source is invalid");if(XA(this.iA)||g.sA(this.iA))return y=y||{},y.lact=OO(),y.vis=this.Ly.getVisibilityState(),this.Ly.Rf("onPlayVideo",{videoId:J,watchEndpoint:A,sessionData:y,listId:v}),!1;YJ2(this.Ql);this.Ql.reset();J={video_id:J};d&&(J.autoplay="1");d&&(J.autonav="1");A&&(J.player_params=A.playerParams);T&&(J.oauth_token=T);v?(J.list=v,this.loadPlaylist(J)):this.loadVideoByPlayerVars(J,1);return!0}; g.a.cuePlaylist=function(J,y,v,d){this.al=!0;UY6(this,J,y,v,d)}; g.a.loadPlaylist=function(J,y,v,d){this.al=!1;UY6(this,J,y,v,d)}; g.a.tD=function(){return this.Ly.isMutedByMutedAutoplay()?!1:this.Q8.pL?!0:!(!this.playlist||!this.playlist.Nk())}; g.a.x8=PP(5); g.a.nextVideo=function(J,y){var v=g.Ss(this.TI().getVideoData());g.X$(this.Ly)&&v?this.u8(v.videoId,y?v.sB:v.sessionData,v.playlistId,y,void 0,v.nG||void 0):this.M$?this.Ly.Kf("onPlaylistNext"):this.getPresentingPlayerType()===3?Is(this.xm).nextVideo():!this.playlist||Tx(this.iA)&&!this.Ly.isFullscreen()||(this.playlist.Nk(J)&&Wgm(this.playlist,LgU(this.playlist)),this.playlist.loaded?(J=y&&this.iA.X("html5_player_autonav_logging"),y&&this.Ly.publish("playlistautonextvideo"),this.IM(g.gA(this.playlist,void 0, y,J),1)):this.al=!1)}; g.a.previousVideo=function(J){this.M$?this.Ly.Kf("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Is(this.xm).m2():!this.playlist||Tx(this.iA)&&!this.Ly.isFullscreen()||(this.playlist.JQ(J)&&Wgm(this.playlist,tym(this.playlist)),this.playlist.loaded?this.IM(g.gA(this.playlist),1):this.al=!1)}; g.a.playVideoAt=function(J){this.M$?this.Ly.Kf("onPlaylistIndex",J):this.playlist&&(this.playlist.loaded?this.IM(g.gA(this.playlist,J),1):this.al=!1,Wgm(this.playlist,J))}; g.a.getPlaylist=function(){return this.playlist}; g.a.H4=PP(19);g.a.Oq=function(J){this.Vf=g.eT(this.Vf,function(A){return A.id!==J}); for(var y=this.TI(),v=y.uv(),d=0;d0&&(n=Math.floor(Y/1E3))}n=y?y.WF:n;var S={AD_BLOCK:this.C++,AD_BREAK_LENGTH:n,AUTONAV_STATE:Nl(this.player.Y()),CA_TYPE:"image",CPN:M.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Mk()*1E3,LACT:OO(),LIVE_INDEX:y?this.J++:1,LIVE_TARGETING_CONTEXT:y&&y.context?y.context:"",MIDROLL_POS:A? Math.round(A.start/1E3):0,MIDROLL_POS_MS:A?Math.round(A.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.DB().QH().height,P_W:this.player.DB().QH().width,YT_REMOTE:P?P.join(","):""},V=M5(lQ);Object.keys(V).forEach(function(t){V[t]!=null&&(S[t.toUpperCase()]=V[t].toString())}); v!==""&&(S.BISCOTTI_ID=v);v={};To(J)&&(v.sts="20265",(y=this.player.Y().forcedExperiments)&&(v.forced_experiments=y));var L=dh(g.m5(J,S),v);return L.split("?").length!==2?qa(Error("Invalid AdBreakInfo URL")):g.xo(this.player.Y(),M==null?void 0:M.oauthToken).then(function(t){if(t&&AN()){var W=K5();z9(W,t)}t=d.player.X1(W);W=a$j(d,L,S,M.isMdxPlayback,T);return g.rQ(t,W,"/youtubei/v1/player/ad_break").then(function(c){return c})})}; RB.prototype.reset=function(){this.J=this.C=1};g.x(x4H,RB); x4H.prototype.T=function(J,y,v){y=y===void 0?{}:y;var d=y.tf;var P=y.mS;var A=y.cueProcessedMs;v=v===void 0?"":v;y=this.C;this.C++;var T=this.player.Y().X("h5_disable_macro_substitution_in_get_ad_break")?J:OvH(this,J,{tf:d,mS:P,cueProcessedMs:A},v,y);if(T.split("?").length!==2)return Math.random()<.1&&g.ev(Error("Invalid AdBreakInfo URL")),qa(Error("Invalid AdBreakInfo URL"));var M=this.player.getVideoData(1).isMdxPlayback,n=v;v=sQ3.exec(T);v=v!=null&&v.length>=2?v[1]:"";J=Y6m.test(T);var Y=S6x.exec(T); Y=Y!=null&&Y.length>=2?Y[1]:"";var S=V2R.exec(T);S=S!=null&&S.length>=2&&!Number.isNaN(Number(S[1]))?Number(S[1]):1;var V=LZ2.exec(T);V=V!=null&&V.length>=2?V[1]:"0";var L=w4(this.player.Y().MF),t=g.RP(this.player.getVideoData(1).WX,!0);Pyd(this,t,T,n===""?"":n,this.player.Y(),this.player.getVideoData(1));n={splay:!1,lactMilliseconds:String(OO()),playerHeightPixels:Math.trunc(this.player.DB().QH().height),playerWidthPixels:Math.trunc(this.player.DB().QH().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20265,autonavState:Nl(this.player.Y())};if(M){M={};var W=this.player.Y().Fs;l$x(M,W?W.join(","):"")&&(n.mdxContext=M)}if(M=t26.includes(L)?void 0:g.o7("PREF")){W=M.split(RegExp("[:&]"));for(var c=0,b=W.length;c1&&B[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}n.autoCaptionsDefaultOn=ncH(M)}T=WZ3.exec(T);(T=T!=null&&T.length>=2?T[1]:"")&&Y&&(t.user.credentialTransferTokens= [{token:T,scope:"VIDEO"}]);T={contentPlaybackContext:n};n=this.player.getVideoData(1).getGetAdBreakContext();M=this.player.getVideoData(1).clientPlaybackNonce;W=A!==void 0?Math.round(A).toString():void 0;c=(d==null?0:d.context)?d.context:void 0;b=0;A&&P&&!d&&(P=P.end-P.start,P>0&&(b=Math.floor(P/1E3)));d=(d=Math.trunc((d?d.WF:b)*1E3))?String(d):void 0;P=this.player.Mk()*1E3;P=Number.isNaN(P)?0:Math.trunc(P);y={adBlock:y,params:v,breakIndex:S,breakPositionMs:V,clientPlaybackNonce:M,topLevelDomain:L, isProxyAdTagRequest:J,context:t,overridePlaybackContext:T,cueProcessedMs:W,videoId:Y?Y:void 0,liveTargetingParams:c,breakLengthMs:d,driftFromHeadMs:P?String(P):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:n?n:void 0};return gc3(this,y)};var jew={zJK:"replaceUrlMacros",pnA:"onAboutThisAdPopupClosed",bpY:"executeCommand"};D4c.prototype.Ou=function(){return"adPingingEndpoint"}; D4c.prototype.PQ=function(J,y,v){AfT(this.jb.get(),J,y,v)};cEr.prototype.Ou=function(){return"changeEngagementPanelVisibilityAction"}; cEr.prototype.PQ=function(J){this.S.Rf("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:J})};G56.prototype.Ou=function(){return"loggingUrls"}; G56.prototype.PQ=function(J,y,v){J=g.D(J);for(var d=J.next();!d.done;d=J.next())d=d.value,AfT(this.jb.get(),d.baseUrl,y,v,d.attributionSrcMode)};g.x(FZv,g.u);g.x(zF,g.u);g.a=zF.prototype;g.a.addListener=function(J){this.listeners.push(J)}; g.a.removeListener=function(J){this.listeners=this.listeners.filter(function(y){return y!==J})}; g.a.U5=function(J,y,v,d,P,A,T,M){if(J==="")TS("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(J!==this.C||v){this.C=J;this.bA.get().U5(J,y,v,d,P,A,T,M);this.Sb.get().U5(J,y,v,d,P,A,T,M);var n;(n=this.O8)==null||n.get().U5(J,y,v,d,P,A,T,M);this.T.U5(J,y,v,d,P,A,T,M);n=g.D(this.listeners);for(var Y=n.next();!Y.done;Y=n.next())Y.value.U5(J,y,v,d,P,A,T,M)}else TS("Duplicate content video loaded signal")}; g.a.Cnx=function(){this.C&&this.R$(this.C)}; g.a.R$=function(J){this.C=void 0;for(var y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.R$(J)};kS.prototype.iy=function(J,y,v,d,P){jQ2(this);this.V=!y&&v===0;var A=this.S.getVideoData(1),T=this.S.getVideoData(2);A&&(this.contentCpn=A.clientPlaybackNonce,this.videoId=A.videoId,this.C=A.L);T&&(this.adCpn=T.clientPlaybackNonce,this.adVideoId=T.videoId,this.adFormat=T.adFormat);this.W=J;d<=0?(jQ2(this),this.V=!y&&v===0):(this.actionType=this.V?y?"unknown_type":"video_to_ad":y?"ad_to_video":"ad_to_ad",this.videoStreamType=P?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.J=!0,jq("_start",this.actionType)&&Bzc(this)))}; kS.prototype.reset=function(){return new kS(this.S)};g.x(EJ,g.u);EJ.prototype.addCueRange=function(J,y,v,d,P,A,T,M){A=A===void 0?3:A;T=T===void 0?1:T;this.C.has(J)?TS("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:J}):(J=new q6R(J,y,v,d,A,M),this.C.set(J.id,{mS:J,listener:P,VL:T}),this.S.PF([J],T))}; EJ.prototype.removeCueRange=function(J){var y=this.C.get(J);y?(this.S.FJ([y.mS],y.VL),this.C.delete(y.mS.id)):TS("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:J})}; EJ.prototype.onCueRangeEnter=function(J){if(this.C.has(J.id))this.C.get(J.id).listener.onCueRangeEnter(J.id)}; EJ.prototype.onCueRangeExit=function(J){if(this.C.has(J.id))this.C.get(J.id).listener.onCueRangeExit(J.id)}; g.x(q6R,g.uI);QE.prototype.addPlayerResponseForAssociation=function(J){this.S.addPlayerResponseForAssociation(J)};Zt.prototype.Sx=function(J){this.S.Sx(J)}; Zt.prototype.vU=function(J){var y=g.iR.apply(1,arguments);J==="onAdStart"||J==="onAdEnd"?this.S.cR.apply(this.S,[J].concat(g.r(y))):this.S.Rf.apply(this.S,[J].concat(g.r(y)))};wq.prototype.Iz=function(J){return J&&Jd(this)};var Hvv=null;g.x(uyj,g.yK);uyj.prototype.nS=function(J){return this.C.hasOwnProperty(J)?this.C[J].nS():{}}; g.yq("ytads.bulleit.getVideoMetadata",function(J){return yC().nS(J)}); g.yq("ytads.bulleit.triggerExternalActivityEvent",function(J,y,v){var d=yC();v=ivv(v);v!==null&&d.publish(v,{queryId:J,viewabilityString:y})});g.a=vE.prototype;g.a.ez=function(J,y){if(!this.C.has(J))return{};if(y==="seek"){y=!1;y=y===void 0?!1:y;var v=Dr(Ky).p7(J,{});v?uK(v):y&&(J=Dr(Ky).vM(null,ol(),!1,J),J.GY=3,bdH([J]));return{}}y=Nzr(y);if(y===null)return{};var d=this.S.Ue();if(!d)return{};var P=this.S.getPresentingPlayerType(!0);if((v=this.S.getVideoData(P))==null||!v.isAd())return{};v={opt_adElement:d,opt_fullscreen:this.bA.get().isFullscreen()};return blP(y,J,v)}; g.a.y4=function(J,y,v,d,P){this.C.has(J)&&(d<=0||P<=0||Dr(Ky).y4(J,y,v,d,P))}; g.a.XL=function(J){var y;(y=this.C.get(J.queryId))==null||y.XL()}; g.a.HB=function(J){var y;(y=this.C.get(J.queryId))==null||y.HB()}; g.a.vB=function(J){var y;(y=this.C.get(J.queryId))==null||y.vB()}; g.a.hw=function(J){var y;(y=this.C.get(J.queryId))==null||y.hw()}; g.a.x9=function(J){var y;(y=this.C.get(J.queryId))==null||y.x9()};Jf2.prototype.send=function(J,y,v,d){try{yf3(this,J,y,v,d===void 0?!1:d)}catch(P){}};g.x(vw3,Jf2);dQP.prototype.send=function(J,y,v,d){var P=!1;try{if(d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")P=!0,J=Mmd(J);d=P;var A=g.nV(J);if(A[1]==="https")var T=J;else A[1]="https",T=MN("https",A[2],A[3],A[4],A[5],A[6],A[7]);var M=laT(T);A=[];var n=kDj(T)&&this.gj.get().S.Y().experiments.BX("add_auth_headers_to_remarketing_google_dot_com_ping");if(To(T)||n)A.push({headerType:"USER_AUTH"}),A.push({headerType:"PLUS_PAGE_ID"}),A.push({headerType:"VISITOR_ID"}),A.push({headerType:"EOM_VISITOR_ID"}), A.push({headerType:"AUTH_USER"}),A.push({headerType:"DATASYNC_ID"});this.C.send({baseUrl:T,scrubReferrer:M,headers:A},y,v,d)}catch(Y){}};lt.prototype.I5=function(){return this.S.I5(1)};g.x(MM,g.u);g.a=MM.prototype;g.a.fE=function(){return this.S.getVideoData(1).clientPlaybackNonce}; g.a.addListener=function(J){this.listeners.push(J)}; g.a.removeListener=function(J){this.listeners=this.listeners.filter(function(y){return y!==J})}; g.a.U5=function(){this.nO.clear();this.WD=null;this.le.get().clear()}; g.a.R$=function(){}; g.a.TiB=function(J,y,v,d,P){y.videoId==="nPpU29QrbiU"&&this.S.dj("ads_ssm_vdc_s",{pt:v,dvt:J});pG(this.gj.get())&&J!=="dataloaded"||SW6(this,y,v);if(Jd(this.gj.get())&&J==="newdata"&&P!==void 0){J=this.fE();var A=y.clientPlaybackNonce,T={};Tt(this,"rte",(T.ec=A,T.xc=d==null?void 0:d.clientPlaybackNonce,T.tr=P,T.pt=v,T.ia=A!==J,T.ctp=AT(A),T));y=y.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;P=Vfc(P);if(P!==1)if(d!==void 0)for(v=g.D(this.listeners),J=v.next();!J.done;J=v.next())J.value.FG(d, y,P);else TS("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:y,transitionReason:String(P)});P=g.D(this.listeners);for(d=P.next();!d.done;d=P.next())d.value.e8(y)}}; g.a.GuX=function(J,y){J!==void 0&&(this.WD=J,y===void 0?TS("Expected ad video start time on SS video changed"):this.nO.set(J,y));var v=this.S.getPresentingPlayerType(!0),d=this.S.getVideoData(v),P;J===void 0?P=null:P=this.le.get().C.get(J)||null;this.S.getVideoData(1).dj("ads_ssvc",{pt:v,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:y,pid:J,slid:P==null?void 0:P.layoutId});d?SW6(this,d,v):TS("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:J})}; g.a.ly=function(J,y){var v=J.author,d=J.clientPlaybackNonce,P=J.isListed,A=J.Xl,T=J.title,M=J.s5,n=J.eh,Y=J.isMdxPlayback,S=J.A7,V=J.mdxEnvironment,L=J.isAutonav,t=J.Yo,W=J.Cr,c=J.Zv,b=J.videoId||"",B=J.profilePicture||"",q=J.uC||"",C=J.Zo()||!1,U=J.US()||!1;J=J.UZ||void 0;A=this.le.get().C.get(A)||{layoutId:null,slotId:null};var N=this.S.getVideoData(1),Jc=N.jH();N=N.getPlayerResponse();y=1E3*this.S.getDuration(y);var E=1E3*this.S.getDuration(1),T2,Mj,lR=(N==null?void 0:(T2=N.playerConfig)==null? void 0:(Mj=T2.daiConfig)==null?void 0:Mj.enableDai)||!1,Sx,vP;T2=(N==null?void 0:(Sx=N.playerConfig)==null?void 0:(vP=Sx.daiConfig)==null?void 0:vP.enablePreroll)||!1;return Object.assign({},A,{videoId:b,author:v,clientPlaybackNonce:d,ZG:y,Da:E,daiEnabled:lR,NO:T2,isListed:P,jH:Jc,profilePicture:B,title:T,uC:q,s5:M,eh:n,UZ:J,isMdxPlayback:Y,A7:S,mdxEnvironment:V,isAutonav:L,Yo:t,Cr:W,Zv:c,Zo:C,US:U})}; g.a.JY=function(){this.listeners.length=0;this.cE=null;g.u.prototype.JY.call(this)};g.x(nJ,g.u);g.a=nJ.prototype;g.a.U5=function(){var J=this;Jd(this.gj.get())||(this.C=Cj(function(){J.S.tY()||J.S.CA("ad",1)}))}; g.a.R$=function(){}; g.a.addListener=function(J){this.listeners.push(J)}; g.a.removeListener=function(J){this.listeners=this.listeners.filter(function(y){return y!==J})}; g.a.ea=function(){}; g.a.playVideo=function(){this.S.playVideo()}; g.a.pauseVideo=function(){this.S.pauseVideo()}; g.a.resumeVideo=function(J){this.JM(J)&&this.S.playVideo()}; g.a.JM=function(J){return this.S.getPlayerState(J)===2}; g.a.getCurrentTimeSec=function(J,y,v){var d=this.Sb.get().WD;if(J===2&&!y&&d!==null)return SC(this,d);ow(this.gj.get(),"html5_ssap_use_cpn_to_get_time")||(v=void 0);return v!==void 0?this.S.getCurrentTime(J,y,v):this.S.getCurrentTime(J,y)}; g.a.getVolume=function(){return this.S.getVolume()}; g.a.isMuted=function(){return this.S.isMuted()}; g.a.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)}; g.a.getPlayerState=function(J){return this.S.getPlayerState(J)}; g.a.getGetAdBreakContext=function(){return this.S.getGetAdBreakContext()}; g.a.isFullscreen=function(){return this.S.isFullscreen()}; g.a.isAtLiveHead=function(){return this.S.isAtLiveHead()}; g.a.Dl=function(J){this.S.Dl(J)}; g.a.ojk=function(){var J=this.S.getPresentingPlayerType(!0),y=this.getCurrentTimeSec(J,!1);if(J===2){J=g.D(this.listeners);for(var v=J.next();!v.done;v=J.next())v.value.v_(y)}else if(J===1)for(J=g.D(this.rN),v=J.next();!v.done;v=J.next())v.value.ea(y)}; g.a.RWj=function(J){for(var y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.Ho(J,this.getPresentingPlayerType())}; g.a.onFullscreenToggled=function(J){for(var y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.onFullscreenToggled(J)}; g.a.onVolumeChange=function(){for(var J=g.D(this.listeners),y=J.next();!y.done;y=J.next())y.value.onVolumeChange()}; g.a.E3=function(){for(var J=this.S.isMinimized(),y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.E3(J)}; g.a.Do=function(J){for(var y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.Do(J)}; g.a.UN=function(){for(var J=this.S.DB().QH(),y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.zJ(J)}; g.a.Y6=function(J){for(var y=g.D(this.listeners),v=y.next();!v.done;v=y.next())v.value.Y6(J)}; g.a.ra=function(){for(var J=g.D(this.listeners),y=J.next();!y.done;y=J.next())y.value.ra()};g.x(aHx,g.u);g.x(td,g.u);td.prototype.JY=function(){this.uX.tY()||this.uX.get().removeListener(this);g.u.prototype.JY.call(this)};WE.prototype.fetch=function(J){var y=J.l5;return this.C.fetch(J.zM,{tf:J.tf===void 0?void 0:J.tf,mS:y,cueProcessedMs:J.cueProcessedMs===void 0?0:J.cueProcessedMs}).then(function(v){return xQU(v,y)})};g.x(an,g.u);g.a=an.prototype;g.a.addListener=function(J){this.listeners.push(J)}; g.a.removeListener=function(J){this.listeners=this.listeners.filter(function(y){return y!==J})}; g.a.w3=function(J){OMH(this,J,1)}; g.a.onAdUxClicked=function(J,y){x_(this,function(v){v.AA(J,y)})}; g.a.Ub=function(J){x_(this,function(y){y.mz(J)})}; g.a.Yy=function(J){x_(this,function(y){y.EE(J)})}; g.a.qkj=function(J){x_(this,function(y){y.SB(J)})};OB.prototype.reduce=function(J){switch(J.event){case "unknown":return}var y=J.identifier;var v=this.C[y];v?y=v:(v={KQ:null,KH:-Infinity},y=this.C[y]=v);v=J.startSecs+J.C/1E3;if(!(v=this.C.startSecs&&v.startSecs<=this.C.startSecs+this.C.WF)){var d=void 0;if(U$(this.gj.get())&&v.identifier!==((d=this.C)==null?void 0:d.identifier)){var P=d=void 0,A=void 0,T=void 0;aq(this.jb.get(),"ocud","ccpi."+v.identifier+";ccpe."+v.event+";ccps."+v.startSecs+";\n ccpd."+v.WF+";pcpi."+((d=this.C)==null?void 0:d.identifier)+ ";pcpe."+((P=this.C)==null?void 0:P.event)+";\n pcps."+((A=this.C)==null?void 0:A.startSecs)+";pcpd."+((T=this.C)==null?void 0:T.WF)+";")}d=void 0;v.identifier!==((d=this.C)==null?void 0:d.identifier)&&TS("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.C=v,cfd(this,v)}}; g.a.JY=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.KY,this),this.T=null);this.listeners.length=0;this.lG.length=0;g.u.prototype.JY.call(this)};g.a=cE.prototype;g.a.Vh=function(J,y,v,d,P,A,T){return this.S.Vh(J,y,v,d,P,A,T)}; g.a.qR=function(J,y){this.S.qR(J,y)}; g.a.Zm=function(J,y,v){this.S.Zm(J,y,v)}; g.a.fJ=function(J){this.S.fJ(J)}; g.a.K9=function(J,y,v,d,P,A,T){return this.S.K9(J,y,v,d,P,A,T)}; g.a.zS=function(J){return this.S.zS(J)}; g.a.finishSegmentByCpn=function(J,y,v){v=Fhj(v);this.S.finishSegmentByCpn(J,y,v)};g.x(Gr,g.u);g.x(eZ3,g.u);g.x(mQT,g.u);g.x(B2H,g.u);g.x(qWx,g.u);g.x(rfR,g.u);g.x(owH,g.u);owH.prototype.J=function(){return this.T};g.x(C6x,Ux); C6x.prototype.J=function(J){var y=J.content;if(y.componentType==="shopping-companion")switch(J.actionType){case 1:case 2:J=this.C.getVideoData(1);this.C.Rf("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId,shoppingCompanionCarouselRenderer:y.renderer,layoutId:y.layoutId,macros:y.macros,onLayoutVisibleCallback:y.C,interactionLoggingClientData:y.interactionLoggingClientData});break;case 3:this.C.Rf("updateKevlarOrC3Companion",{})}else if(y.componentType==="action-companion")switch(J.actionType){case 1:case 2:J=this.C.getVideoData(1); this.C.Rf("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId,actionCompanionAdRenderer:y.renderer,layoutId:y.layoutId,macros:y.macros,onLayoutVisibleCallback:y.C,interactionLoggingClientData:y.interactionLoggingClientData});break;case 3:y.renderer&&(y=this.C.getVideoData(1),this.C.Rf("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId})),this.C.Rf("updateKevlarOrC3Companion",{})}else if(y.componentType==="image-companion")switch(J.actionType){case 1:case 2:J=this.C.getVideoData(1);this.C.Rf("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,imageCompanionAdRenderer:y.renderer,layoutId:y.layoutId,macros:y.macros,onLayoutVisibleCallback:y.C,interactionLoggingClientData:y.interactionLoggingClientData});break;case 3:y=this.C.getVideoData(1),this.C.Rf("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId}),this.C.Rf("updateKevlarOrC3Companion",{})}else if(y.componentType==="top-banner-image-text-icon-buttoned")switch(J.actionType){case 1:case 2:J=this.C.getVideoData(1);this.C.Rf("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,topBannerImageTextIconButtonedLayoutViewModel:y.renderer,layoutId:y.layoutId,macros:y.macros,onLayoutVisibleCallback:y.C,interactionLoggingClientData:y.interactionLoggingClientData});break;case 3:y.renderer&&(y=this.C.getVideoData(1),this.C.Rf("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId})),this.C.Rf("updateKevlarOrC3Companion",{})}else if(y.componentType==="banner-image")switch(J.actionType){case 1:case 2:J=this.C.getVideoData(1);this.C.Rf("updateKevlarOrC3Companion", {contentVideoId:J&&J.videoId,bannerImageLayoutViewModel:y.renderer,layoutId:y.layoutId,macros:y.macros,onLayoutVisibleCallback:y.C,interactionLoggingClientData:y.interactionLoggingClientData});break;case 3:y=this.C.getVideoData(1),this.C.Rf("updateKevlarOrC3Companion",{contentVideoId:y&&y.videoId}),this.C.Rf("updateKevlarOrC3Companion",{})}else if(y.componentType==="ads-engagement-panel")switch(y=y.renderer,J.actionType){case 1:case 2:this.C.Rf("updateEngagementPanelAction",y.addAction);this.C.Rf("changeEngagementPanelVisibility", y.expandAction);break;case 3:this.C.Rf("changeEngagementPanelVisibility",y.hideAction),this.C.Rf("updateEngagementPanelAction",y.removeAction)}else if(y.componentType==="ads-engagement-panel-layout"){var v=y.renderer;switch(J.actionType){case 1:case 2:this.C.Rf("updateEngagementPanelAction",{action:r5(v.addAction),layoutId:y.layoutId,onLayoutVisibleCallback:y.C,interactionLoggingClientData:y.interactionLoggingClientData});this.C.Rf("changeEngagementPanelVisibility",r5(v.expandAction));break;case 3:this.C.Rf("changeEngagementPanelVisibility", r5(v.hideAction)),this.C.Rf("updateEngagementPanelAction",{action:r5(v.removeAction)})}}};g.x(hZr,Kf);g.a=hZr.prototype;g.a.init=function(J,y,v){Kf.prototype.init.call(this,J,y,v);g.Ni(this.J,"stroke-dasharray","0 "+this.T);this.J.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.L.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.W.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){kH(this);Kf.prototype.hide.call(this)}; g.a.show=function(){z_(this);Kf.prototype.show.call(this)}; g.a.Pc=function(){this.hide()}; g.a.lC=function(){if(this.C){var J=this.C.getProgressState();J!=null&&J.current!=null&&g.Ni(this.J,"stroke-dasharray",J.current/J.seekableEnd*this.T+" "+this.T)}};g.x(IHc,l7);g.a=IHc.prototype; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);if(y.image&&y.image.thumbnail)if(y.headline)if(y.description)if(y.backgroundImage&&y.backgroundImage.thumbnail)if(y.actionButton&&g.R(y.actionButton,g.Zc))if(J=y.durationMilliseconds||0,typeof J!=="number"||J<=0)g.jv(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+J));else if(y.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var P=y.image.thumbnail.thumbnails;P!=null&& P.length>0&&g.qh(g.$p(P[0].url))&&(P[0].url=d.profilePicture,g.qh(g.$p(d.profilePicture))&&uk6("VideoPlayer",239976093,"Expected non-empty profile picture."));P=y.backgroundImage.thumbnail.thumbnails;P!=null&&P.length>0&&g.qh(g.$p(P[0].url))&&(P[0].url=d.wC());P=y.headline;P!=null&&g.qh(g.$p(P.text))&&(P.text=d.author)}this.K.init(w5("ad-image"),y.image,v);this.L.init(w5("ad-text"),y.headline,v);this.J.init(w5("ad-text"),y.description,v);this.Vk.init(w5("ad-image"),y.backgroundImage,v);d=["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.L.element.classList.add("ytp-ad-action-interstitial-headline-light");this.J.element.classList.add("ytp-ad-action-interstitial-description-light");d.push("ytp-ad-action-interstitial-action-button-dark");this.api.Y().T&&(d.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),d.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Y().X("enable_unified_action_endcap_on_web")&& !this.api.Y().T&&(d.push("ytp-ad-action-interstitial-action-button-unified"),this.XW.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.K.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.YB.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.xZ.classList.add("ytp-ad-action-interstitial-card-unified"),this.Cy.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.J.element.classList.add("ytp-ad-action-interstitial-description-unified"), this.If.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.WX.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Ek.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new eV(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,d);g.X(this,this.actionButton);this.actionButton.yk(this.XW); this.actionButton.init(w5("button"),g.R(y.actionButton,g.Zc),v);fx(this.actionButton.element);d=N8(this.actionButton.element);Xe(this.actionButton.element,d+" This link opens in new tab");this.navigationEndpoint=y.navigationEndpoint;this.W.Z(this.WX,"click",this.b5,this);this.W.Z(this.Cy,"click",this.b5,this);!this.api.Y().X("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Y().T||this.W.Z(this.If,"click",this.b5,this);this.C=this.oW?new Wc(this.api,J):new aP(J);g.X(this,this.C);if(y.skipButton){(J= g.R(y.skipButton,XL0))&&this.C&&(this.skipButton=new s0(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.C,this.qW),g.X(this,this.skipButton),this.skipButton.yk(this.element),this.skipButton.init(w5("skip-button"),J,v));if(v=y.adBadgeRenderer)if(v=g.R(v,H_X))J=new La(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0,!0),J.yk(this.Ek),J.init(w5("simple-ad-badge"),v,this.macros),g.X(this,J);if(v=y.adInfoRenderer)if(v=g.R(v,Ej))J=new X9(this.api,this.layoutId,this.interactionLoggingClientData, this.vX,this.element,void 0,!0),J.yk(this.Ek),J.init(w5("ad-info-hover-text-button"),v,this.macros),g.X(this,J)}else y.nonskippableOverlayRenderer&&(J=g.R(y.nonskippableOverlayRenderer,Q9))&&this.C&&(this.T=new Ze(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.C,!1),g.X(this,this.T),this.T.yk(this.element),this.T.init(w5("ad-preview"),J,v));y.countdownRenderer&&(y=y.countdownRenderer,g.R(y,NuC)&&this.C&&(v=new hZr(this.api,this.layoutId,this.interactionLoggingClientData,this.vX, this.C),g.X(this,v),v.yk(this.element),v.init(w5("timed-pie-countdown"),g.R(y,NuC),this.macros)));this.show();this.element.focus()}else g.jv(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.jv(Error("AdActionInterstitialRenderer has no button."));else g.jv(Error("AdActionInterstitialRenderer has no background AdImage."));else g.jv(Error("AdActionInterstitialRenderer has no description AdText."));else g.jv(Error("AdActionInterstitialRenderer has no headline AdText."));else g.jv(Error("AdActionInterstitialRenderer has no image."))}; g.a.clear=function(){g.j$(this.W);this.hide()}; g.a.show=function(){pHr(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.T&&this.T.show();l7.prototype.show.call(this)}; g.a.hide=function(){pHr(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.T&&this.T.hide();l7.prototype.hide.call(this)}; g.a.b5=function(){this.navigationEndpoint&&(this.layoutId?this.vX.executeCommand(this.navigationEndpoint,this.layoutId):g.jv(Error("Missing layoutId for ad action interstitial.")))};var HM3={iconType:"CLOSE"},eC=new g.Kn(320,63);g.x(u53,l7);g.a=u53.prototype; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);this.W=y;this.K=g.rV(this.W.onClickCommands||[]);this.Ek=this.W.onErrorCommand||null;if(J=this.W.contentSupportedRenderer)J=this.W.contentSupportedRenderer,y=this.W.adInfoRenderer||null,g.R(J,fE0)?(this.L=g.Mi("ytp-ad-overlay-ad-info-button-container",this.J.element),XHU(this,y),J=RZ6(this,g.R(J,fE0))):g.R(J,i_Q)?(this.L=g.Mi("ytp-ad-overlay-ad-info-button-container",this.T.element),XHU(this,y),J=Khm(this,g.R(J,i_Q))):g.R(J,uFy)?(this.L= g.Mi("ytp-ad-overlay-ad-info-button-container",this.C.element),XHU(this,y),J=zZH(this,g.R(J,uFy))):(g.jv(Error("InvideoOverlayAdRenderer content could not be initialized.")),J=!1);J&&(this.show(),kwU(this,!0))}; g.a.clear=function(){kwU(this,!1);this.WX.reset();this.Cy=0;this.J.hide();this.logVisibility(this.J.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.C.hide();this.logVisibility(this.C.element,!1);this.hide();this.dispose()}; g.a.KQB=function(){this.XW&&(this.layoutId?this.vX.executeCommand(this.XW,this.layoutId):g.jv(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.a.zs=function(){a:{if(this.W&&this.W.closeButton&&this.W.closeButton.buttonRenderer){var J=this.W.closeButton.buttonRenderer;if(J.serviceEndpoint){J=[J.serviceEndpoint];break a}}J=[]}J=g.D(J);for(var y=J.next();!y.done;y=J.next())y=y.value,this.layoutId?this.vX.executeCommand(y,this.layoutId):g.jv(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.a.oBj=function(){this.Vk||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.a.bD=function(){this.Vk||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.bD("invideo-overlay")}; g.a.sfB=function(J){J.target===this.L&&g.Mi("ytp-ad-button",this.YB.element).click()};g.x(Ew2,Kf);g.a=Ew2.prototype;g.a.init=function(J,y,v){Kf.prototype.init.call(this,J,y,v);J=y.durationMs;this.J=J==null||J===0?0:J+this.C.getProgressState().current*1E3;if(y.text)var d=y.text.templatedAdText;else y.staticMessage&&(d=y.staticMessage);this.messageText.init(w5("ad-text"),d,v);this.messageText.yk(this.T.element);this.W.show(100);this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){Q1U(this,!1);Kf.prototype.hide.call(this);this.T.hide();this.messageText.hide();kH(this)}; g.a.show=function(){Q1U(this,!0);Kf.prototype.show.call(this);z_(this);this.T.show();this.messageText.show()}; g.a.Pc=function(){this.hide()}; g.a.lC=function(){if(this.C!=null){var J=this.C.getProgressState();J!=null&&J.current!=null&&(J=1E3*J.current,!this.Cy&&J>=this.J?(this.W.hide(),this.Cy=!0):this.messageText&&this.messageText.isTemplated()&&(J=Math.max(0,Math.ceil((this.J-J)/1E3)),J!==this.L&&(Rx(this.messageText,{TIME_REMAINING:String(J)}),this.L=J)))}};g.x(ZMH,l7);g.a=ZMH.prototype; g.a.init=function(J,y,v){l7.prototype.init.call(this,J,y,{});y.image&&y.image.thumbnail?y.headline?y.description?y.actionButton&&g.R(y.actionButton,g.Zc)?(this.J.init(w5("ad-image"),y.image,v),this.T.init(w5("ad-text"),y.headline,v),this.W.init(w5("ad-text"),y.description,v),this.actionButton=new eV(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,["ytp-ad-underlay-action-button"]),y.backgroundColor&&g.Ni(this.element,"background-color",g.$Z(y.backgroundColor)),g.X(this,this.actionButton), this.actionButton.yk(this.L),this.actionButton.init(w5("button"),g.R(y.actionButton,g.Zc),v),J=g.Zo(this.api.Y().experiments,"player_underlay_video_width_fraction"),this.api.Y().X("place_shrunken_video_on_left_of_player")?(y=this.C,g.AZ(y,"ytp-ad-underlay-left-container"),g.d7(y,"ytp-ad-underlay-right-container"),g.Ni(this.C,"margin-left",Math.round((J+.02)*100)+"%")):(y=this.C,g.AZ(y,"ytp-ad-underlay-right-container"),g.d7(y,"ytp-ad-underlay-left-container")),g.Ni(this.C,"width",Math.round((1-J- .04)*100)+"%"),this.api.SG()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Vz.bind(this)),this.api.addEventListener("resize",this.f4.bind(this))):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.jv(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.a.show=function(){wHd(!0);this.actionButton&&this.actionButton.show();l7.prototype.show.call(this)}; g.a.hide=function(){wHd(!1);this.actionButton&&this.actionButton.hide();l7.prototype.hide.call(this)}; g.a.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Vz.bind(this));this.api.removeEventListener("resize",this.f4.bind(this));this.hide()}; g.a.onClick=function(J){l7.prototype.onClick.call(this,J);this.actionButton&&g.gs(this.actionButton.element,J.target)&&this.api.pauseVideo()}; g.a.Vz=function(J){J==="transitioning"?(this.C.classList.remove("ytp-ad-underlay-clickable"),this.show()):J==="visible"?this.C.classList.add("ytp-ad-underlay-clickable"):J==="hidden"&&(this.hide(),this.C.classList.remove("ytp-ad-underlay-clickable"))}; g.a.f4=function(J){J.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):J.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.Ni(this.T.element,"font-size",J.width/40+"px")};g.x(mc,l7); mc.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);y.toggledLoggingParams&&(this.toggledLoggingParams=y.toggledLoggingParams);y.answer&&g.R(y.answer,g.Zc)?(J=new eV(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),J.yk(this.answer),J.init(w5("ytp-ad-survey-answer-button"),g.R(y.answer,g.Zc),v),J.show()):y.answer&&g.R(y.answer,FJ)&&(this.C=new Ix(this.api,this.layoutId,this.interactionLoggingClientData,this.vX, ["ytp-ad-survey-answer-toggle-button"]),this.C.yk(this.answer),g.X(this,this.C),this.C.init(w5("survey-answer-button"),g.R(y.answer,FJ),v));this.show()}; mc.prototype.iI=function(J){this.layoutId?qA(this.vX,J,this.layoutId,this.macros):(J=new g.H1("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.jv(J))}; mc.prototype.onClick=function(J){l7.prototype.onClick.call(this,J);if(this.api.Y().X("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; mc.prototype.clear=function(){this.hide()};g.x(JcQ,l7);JcQ.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);y.answer&&g.R(y.answer,FJ)&&(this.button=new Ix(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.yk(this.C),this.button.init(w5("survey-none-of-the-above-button"),g.R(y.answer,FJ),v));this.show()};g.x(BE,eV);BE.prototype.init=function(J,y,v){eV.prototype.init.call(this,J,y,v);J=!1;y.text&&(y=g.nf(y.text),J=!g.qh(y));J||g.ev(Error("No submit text was present in the renderer."))}; BE.prototype.onClick=function(J){this.publish("l");eV.prototype.onClick.call(this,J)};g.x(qM,l7); qM.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);if(J=y.skipOrPreviewRenderer)g.R(J,cS)?(J=g.R(J,cS),v=new Sg(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.W,!0),v.yk(this.skipOrPreview),v.init(w5("skip-button"),J,this.macros),g.X(this,v),this.C=v):g.R(J,Q9)&&(J=g.R(J,Q9),v=new Ze(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.W,!1),v.yk(this.skipOrPreview),v.init(w5("ad-preview"),J,this.macros),v.Cy.show(100),v.show(),g.X(this,v), this.C=v);this.C==null&&(J=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(y)),g.jv(J));y.submitButton&&(J=y.submitButton,g.R(J,g.Zc)&&(J=g.R(J,g.Zc),v=new BE(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),v.yk(this.submitButton),v.init(w5("survey-submit"),J,this.macros),g.X(this,v),this.T=v));if(J=y.adBadgeRenderer)J=g.R(J,H_X),v=new La(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0,!0,!0),v.yk(this.J),v.init(w5("simple-ad-badge"), J,this.macros),this.adBadge=v.element,g.X(this,v);if(J=y.adDurationRemaining)J=g.R(J,IEu),v=new gm(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.W,void 0,!0),v.yk(this.J),v.init(w5("ad-duration-remaining"),J,this.macros),g.X(this,v);(y=y.adInfoRenderer)&&g.R(y,Ej)&&(J=new X9(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.element,void 0,!0),g.X(this,J),this.adBadge!==void 0?this.J.insertBefore(J.element,this.adBadge.nextSibling):J.yk(this.J),J.init(w5("ad-info-hover-text-button"), g.R(y,Ej),this.macros));this.show()}; qM.prototype.clear=function(){this.hide()};g.x(r1,l7);r1.prototype.init=function(J,y,v){l7.prototype.init.call(this,J,y,v);Acq(this)}; r1.prototype.show=function(){this.J=Date.now();l7.prototype.show.call(this)}; r1.prototype.gP=function(){};g.x(Trn,r1);g.a=Trn.prototype;g.a.init=function(J,y,v){var d=this;r1.prototype.init.call(this,J,y,v);y.questionText&&ycy(this,y.questionText);y.answers&&y.answers.forEach(function(P,A){g.R(P,GZ)&&vmO(d,g.R(P,GZ),v,A)}); this.L=new Set(this.T.map(function(P){return P.C.C})); (J=y.noneOfTheAbove)&&(J=g.R(J,Uhq))&&lvn(this,J,v);y.surveyAdQuestionCommon&&PRQ(this,y.surveyAdQuestionCommon);y.submitEndpoints&&(this.submitEndpoints=y.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.a.gP=function(){Mx0(this,!1);this.W.T.subscribe("l",this.egB,this)}; g.a.onChange=function(J){J.target===this.noneOfTheAbove.button.C?nm_(this):this.L.has(J.target)&&(this.noneOfTheAbove.button.toggleButton(!1),Mx0(this,!0))}; g.a.egB=function(){var J=[],y=this.T.reduce(function(P,A,T){var M=A.toggledLoggingParams;A.C&&A.C.isToggled()&&M&&(P.push(M),J.push(T));return P},[]).join("&"),v=this.submitEndpoints.map(function(P){if(!P.loggingUrls)return P; P=g.aM(P);P.loggingUrls=P.loggingUrls.map(function(A){A.baseUrl&&(A.baseUrl=xn(A.baseUrl,y));return A}); return P}); if(v){v=g.D(v);for(var d=v.next();!d.done;d=v.next())d=d.value,this.layoutId?qA(this.vX,d,this.layoutId,this.macros):g.jv(Error("Missing layoutId for multi_select_question."))}this.api.Y().X("supports_multi_step_on_desktop")&&this.Cy(J)}; g.a.clear=function(){this.api.Y().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x($_,r1);$_.prototype.init=function(J,y,v){var d=this;r1.prototype.init.call(this,J,y,v);y.questionText&&ycy(this,y.questionText);y.answers&&y.answers.forEach(function(P,A){g.R(P,GZ)&&vmO(d,g.R(P,GZ),v,A)}); y.surveyAdQuestionCommon?PRQ(this,y.surveyAdQuestionCommon):PN(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(y)));this.show()}; $_.prototype.clear=function(){this.api.Y().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(on,l7);on.prototype.init=function(J,y,v){var d=this;l7.prototype.init.call(this,J,y,v);if(this.api.Y().X("supports_multi_step_on_desktop")){var P;this.conditioningRules=(P=y.conditioningRules)!=null?P:[];var A;this.T=(A=y.questions)!=null?A:[];var T;((T=y.questions)==null?0:T.length)&&VxQ(this,0)}else(y.questions||[]).forEach(function(M){g.R(M,zu)?YUq(d,g.R(M,zu),v):g.R(M,KO)&&SUC(d,g.R(M,KO),v)}); this.show()}; on.prototype.clear=function(){this.api.Y().X("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; on.prototype.W=function(J){var y=this;if(this.api.Y().X("supports_multi_step_on_desktop")){var v;if((v=this.conditioningRules)==null?0:v.length){var d;if(J.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(P){return P.questionIndex===y.C})==null)g.jv(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(P){if(P.questionIndex===y.C)switch(P.condition){case "CONDITION_ALL_OF":var A;if((A=P.answerIndices)==null?0:A.every(function(M){return J.includes(M)}))d=P.nextQuestionIndex; break;case "CONDITION_ANY_OF":var T;if((T=P.answerIndices)==null?0:T.some(function(M){return J.includes(M)}))d=P.nextQuestionIndex; break;default:g.jv(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)VxQ(this,d); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.jv(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.x(CJ,l7); CJ.prototype.init=function(J,y,v){var d=this;l7.prototype.init.call(this,J,y,v);J=y.timeoutSeconds||0;if(typeof J!=="number"||J<0)g.jv(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+J));else if(y.timeoutCommands)if(y.text)if(y.ctaButton&&g.R(y.ctaButton,g.Zc))if(y.brandImage)if(y.backgroundImage&&g.R(y.backgroundImage,we)&&g.R(y.backgroundImage,we).landscape){this.layoutId||g.jv(Error("Missing layoutId for survey interstitial."));LTQ(this.interstitial,g.R(y.backgroundImage, we).landscape);LTQ(this.logoImage,y.brandImage);g.DG(this.text,g.nf(y.text));var P=["ytp-ad-survey-interstitial-action-button"];P.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new eV(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,P);g.X(this,this.actionButton);this.actionButton.yk(this.T);this.actionButton.init(w5("button"),g.R(y.ctaButton,g.Zc),v);this.actionButton.show();this.C=new Wc(this.api,J*1E3);this.C.subscribe("g",function(){d.transition.hide()}); g.X(this,this.C);this.Z(this.element,"click",function(A){var T=A.target===d.interstitial;A=d.actionButton.element.contains(A.target);if(T||A)if(d.transition.hide(),T)d.api.onAdUxClicked(d.componentType,d.layoutId)}); this.transition.show(100)}else g.jv(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.jv(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.jv(Error("SurveyTextInterstitialRenderer has no button."));else g.jv(Error("SurveyTextInterstitialRenderer has no text."));else g.jv(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; CJ.prototype.clear=function(){this.hide()}; CJ.prototype.show=function(){txq(!0);l7.prototype.show.call(this)}; CJ.prototype.hide=function(){txq(!1);l7.prototype.hide.call(this)};g.x(hd,Kf);g.a=hd.prototype; g.a.init=function(J,y){Kf.prototype.init.call(this,J,y,{});if(y.durationMilliseconds){if(y.durationMilliseconds<0){g.jv(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+y.durationMilliseconds));return}this.T=y.durationMilliseconds}else this.T=this.C.e9();var v;if((v=y.previewText)==null||!v.text||g.qh(y.previewText.text))g.jv(Error("No text is returned for AdPreview."));else{this.L=y.previewText;y.previewText.isTemplated||g.DG(this.J,y.previewText.text);var d; if(((d=this.api.getVideoData(1))==null?0:d.uu)&&y.previewImage){var P,A;(J=((A=SG(((P=y.previewImage)==null?void 0:P.sources)||[],52,!1))==null?void 0:A.url)||"")&&J.length?(this.previewImage=new g.T_({j:"img",N:"ytp-preview-ad__image",U:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",J),g.X(this,this.previewImage),this.previewImage.yk(this.element)):g.jv(Error("Failed to get imageUrl in AdPreview."))}else this.J.classList.add("ytp-preview-ad__text--padding--wide")}}; g.a.clear=function(){this.hide()}; g.a.hide=function(){kH(this);Kf.prototype.hide.call(this)}; g.a.show=function(){z_(this);Kf.prototype.show.call(this)}; g.a.Pc=function(){this.hide()}; g.a.lC=function(){if(this.C){var J=this.C.getProgressState();if(J!=null&&J.current)if(J=1E3*J.current,J>=this.T)this.transition.hide();else{var y;if((y=this.L)==null?0:y.isTemplated)if(y=Math.max(0,Math.ceil((this.T-J)/1E3)),y!==this.W){var v,d;(J=(v=this.L)==null?void 0:(d=v.text)==null?void 0:d.replace("{TIME_REMAINING}",String(y)))&&g.DG(this.J,J);this.W=y}}}};g.x(In,l7); In.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});var v,d;if((J=((d=SG(((v=y.image)==null?void 0:v.sources)||[],WT_(y),!0))==null?void 0:d.url)||"")&&J.length){v=this.uA("ytp-ad-avatar");v.src=J;var P,A;if(d=(P=y.interaction)==null?void 0:(A=P.accessibility)==null?void 0:A.label)v.alt=d;switch(y.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(y.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.jv(Error("Failed to get imageUrl in AdAvatar."))}; In.prototype.clear=function(){this.hide()}; In.prototype.onClick=function(J){l7.prototype.onClick.call(this,J)};g.x(pJ,l7); pJ.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});var v;J=(v=y.label)==null?void 0:v.content;if((v=J!=null&&!g.qh(J))||y.iconImage){v&&(this.buttonText=new g.T_({j:"span",N:"ytp-ad-button-vm__text",TK:J}),g.X(this,this.buttonText),this.buttonText.yk(this.element));var d,P,A=((d=y.interaction)==null?0:(P=d.accessibility)==null?0:P.label)||v?J:"";A&&Xe(this.element,A+" This link opens in new tab");fx(this.element);if(y.iconImage){d=void 0;if(y.iconImage){a:{P=y.iconImage;if(P.sources)for(P= g.D(P.sources),J=P.next();!J.done;J=P.next())if(J=J.value,A=void 0,(A=J.clientResource)==null?0:A.imageName){P=J;break a}P=void 0}if(P){var T;d={iconType:(T=P.clientResource)==null?void 0:T.imageName}}}T=jV(d,!1,this.T);T!=null&&(this.buttonIcon=new g.T_({j:"span",N:"ytp-ad-button-vm__icon",D:[T]}),g.X(this,this.buttonIcon),y.iconLeading?(xk(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):v?(this.buttonIcon.yk(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.yk(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(y.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.api.X("delhi_modern_web_player")?this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.C?"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(y.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.ev(Error("AdButton does not have label or an icon."))}; pJ.prototype.clear=function(){this.hide()}; pJ.prototype.onClick=function(J){l7.prototype.onClick.call(this,J)};g.x(avq,Kf);g.a=avq.prototype; g.a.init=function(J,y){Kf.prototype.init.call(this,J,y,{});this.api.Y().X("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.uA("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),xk(this.uA("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(J=g.R(y.avatar,zr)){var v=y.headline;if(v){var d=y.description;if(d){var P=g.R(y.button,EB);P?(this.adAvatar.init(w5("ad-avatar"),J),this.headline.init(w5("ad-simple-attributed-string"),new cc(v)),this.description.init(w5("ad-simple-attributed-string"),new cc(d)),v.content&&v.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), this.adButton.init(w5("ad-button"),P),this.startMilliseconds=y.startMs||0,this.api.SG()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Ma.bind(this)),z_(this)):g.jv(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jv(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jv(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jv(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.a.lC=function(){if(this.C){var J=this.C.getProgressState();J&&J.current&&1E3*J.current>=this.startMilliseconds&&(kH(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.a.Pc=function(){this.clear()}; g.a.onClick=function(J){this.api.pauseVideo();Kf.prototype.onClick.call(this,J)}; g.a.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Ma.bind(this))}; g.a.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Kf.prototype.show.call(this)}; g.a.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Kf.prototype.hide.call(this)}; g.a.Ma=function(J){J==="hidden"?this.show():this.hide()};g.x(UB,l7);g.a=UB.prototype; g.a.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(!y.label||g.qh(y.label))g.jv(Error("No label is returned for SkipAdButton."));else if(g.DG(this.W,y.label),J=jV({iconType:"SKIP_NEXT_NEW"}),J==null)g.jv(Error("Unable to retrieve icon for SkipAdButton"));else if(this.J=new g.T_({j:"span",N:"ytp-skip-ad-button__icon",D:[J]}),g.X(this,this.J),this.J.yk(this.element),this.api.Y().experiments.BX("enable_skip_to_next_messaging")&&(y=g.$p(y.targetId)))this.T=!0,this.element.setAttribute("data-tooltip-target-id",y), this.element.setAttribute("data-tooltip-target-fixed","")}; g.a.onClick=function(J){J&&J.preventDefault();var y,v;vJd(J,{contentCpn:(v=(y=this.api.getVideoData(1))==null?void 0:y.clientPlaybackNonce)!=null?v:""})===0?this.api.Rf("onAbnormalityDetected"):(l7.prototype.onClick.call(this,J),this.api.Rf("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.a.clear=function(){this.C.reset();this.hide()}; g.a.hide=function(){l7.prototype.hide.call(this)}; g.a.show=function(){this.C.start();l7.prototype.show.call(this);this.T&&this.api.Y().experiments.BX("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.x(xjq,Kf);g.a=xjq.prototype; g.a.init=function(J,y){Kf.prototype.init.call(this,J,y,{});J=g.R(y.preskipState,Z_C);var v;if((v=this.api.getVideoData())==null?0:v.isDaiEnabled()){if(!J){g.jv(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.T=new hd(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.C);g.X(this,this.T);this.T.yk(this.element);var d;(d=this.T)==null||d.init(w5("preview-ad"),J);(v=this.T)!=null&&(v.transition.show(100),v.show())}(v=g.R(y.skippableState,Jgn))?(y.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=y.skipOffsetMilliseconds:(g.ev(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.J.init(w5("skip-button"),v),this.show()):g.jv(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.a.show=function(){z_(this);Kf.prototype.show.call(this)}; g.a.hide=function(){!this.isSkippable&&this.T?this.T.hide():this.J&&this.J.hide();kH(this);Kf.prototype.hide.call(this)}; g.a.clear=function(){var J;(J=this.T)==null||J.clear();this.J&&this.J.clear();kH(this);Kf.prototype.hide.call(this)}; g.a.Pc=function(){this.hide()}; g.a.lC=function(){if(1E3*this.C.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var J;(J=this.T)!=null&&J.transition.hide();(J=this.J)!=null&&(J.transition.show(),J.show())}};g.x(fJ,l7); fJ.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(y.label){var v;((v=y.label)==null?0:v.content)&&!g.qh(y.label.content)&&(this.linkText=new g.T_({j:"span",N:"ytp-visit-advertiser-link__text",TK:y.label.content}),g.X(this,this.linkText),this.linkText.yk(this.element));var d,P;if((d=y.interaction)==null?0:(P=d.accessibility)==null?0:P.label)Xe(this.element,y.interaction.accessibility.label+" This link opens in new tab");else{var A;((A=y.label)==null?0:A.content)&&!g.qh(y.label.content)&&Xe(this.element, y.label.content+" This link opens in new tab")}fx(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.jv(Error("No label found in VisitAdvertiserLink."))}; fJ.prototype.onClick=function(J){l7.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType,this.layoutId)}; fJ.prototype.clear=function(){this.hide()};g.x(ut,l7); ut.prototype.init=function(J,y,v,d){l7.prototype.init.call(this,J,y,{});if(y.skipOrPreview){v=y.skipOrPreview;J=g.R(v,ygn);v=g.R(v,Z_C);if(J)this.rd=new xjq(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T),g.X(this,this.rd),this.rd.yk(this.K),this.rd.init(w5("skip-ad"),J);else{var P;v&&((P=this.api.getVideoData())==null?0:P.isDaiEnabled())&&(this.W=new hd(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T,1),g.X(this,this.W),this.W.yk(this.K),this.W.init(w5("ad-preview"), v),P=this.W,P.transition.show(100),P.show())}if(P=g.R(y.skipOrPreview,ygn))var A=P.skipOffsetMilliseconds}y.playerAdCard&&(P=g.R(y.playerAdCard,wLX))&&(this.playerAdCard=new avq(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T),g.X(this,this.playerAdCard),this.playerAdCard.yk(this.If),this.playerAdCard.init(w5("ad-avatar-lockup-card"),P));y.adBadgeRenderer&&((P=g.R(y.adBadgeRenderer,k_))?(this.J=new bL(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0),g.X(this, this.J),this.J.yk(this.C),this.J.init(w5("ad-badge"),P)):g.jv(Error("AdBadgeViewModel is not found in player overlay layout.")));y.adPodIndex&&(P=g.R(y.adPodIndex,zbV))&&(this.adPodIndex=new FS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.adPodIndex),this.adPodIndex.yk(this.C),this.adPodIndex.init(w5("ad-pod-index"),P));y.adInfoRenderer&&((P=g.R(y.adInfoRenderer,Ej))?(this.adInfoButton=new X9(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.element, void 0,!0),g.X(this,this.adInfoButton),this.J!==void 0?this.C.insertBefore(this.adInfoButton.element,this.J.element.nextSibling):this.adInfoButton.yk(this.C),this.adInfoButton.init(w5("ad-info-hover-text-button"),P,this.macros)):g.ev(Error("AdInfoRenderer is not found in player overlay layout.")));var T;P=(T=this.api.getVideoData())==null?void 0:T.isDaiEnabled();y.adDurationRemaining&&P&&(T=g.R(y.adDurationRemaining,IEu))&&(this.adDurationRemaining=new gm(this.api,this.layoutId,this.interactionLoggingClientData, this.vX,this.T,d.videoAdDurationSeconds,!0),g.X(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.C.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.yk(this.C),this.adDurationRemaining.init(w5("ad-duration-remaining"),T,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));y.visitAdvertiserLink&&(d=g.R(y.visitAdvertiserLink,d7w))&&(this.visitAdvertiserLink=new fJ(this.api,this.layoutId, this.interactionLoggingClientData,this.vX),g.X(this,this.visitAdvertiserLink),this.visitAdvertiserLink.yk(this.C),this.visitAdvertiserLink.init(w5("visit-advertiser-link"),d));y.adDisclosureBanner&&(y=g.R(y.adDisclosureBanner,KpO))&&(this.adDisclosureBanner=new jg(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.adDisclosureBanner),this.adDisclosureBanner.yk(this.Cy),this.adDisclosureBanner.init(w5("ad-disclosure-banner"),y));this.L=new Bc(this.api,this.T,A,!0);g.X(this, this.L);g.Hp(this.api,this.L.element,4);this.show()}; ut.prototype.clear=function(){this.hide()};g.x(O3u,l7);g.a=O3u.prototype; g.a.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(y!=null&&y.title)if(J=y.title)if(this.headline.init(w5("ad-simple-attributed-string"),new cc(J)),J=g.R(y.moreInfoButton,EB)){if(this.moreInfoButton.init(w5("ad-button"),J),y.descriptions)y.descriptions.length>0&&(J=y.descriptions[0])&&(this.C=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.C),this.C.yk(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.C.init(w5("ad-simple-attributed-string"), new cc(J))),y.descriptions.length>1&&(y=y.descriptions[1])&&(this.T=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.T),this.T.yk(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.T.init(w5("ad-simple-attributed-string"),new cc(y)))}else g.jv(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.jv(Error("No headline found in AdGridCardText."));else g.jv(Error("No headline found in AdGridCardText."))}; g.a.onClick=function(J){l7.prototype.onClick.call(this,J);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.a.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var J;(J=this.C)==null||J.clear();var y;(y=this.T)==null||y.clear()}; g.a.hide=function(){this.headline.hide();this.moreInfoButton.hide();var J;(J=this.C)==null||J.hide();var y;(y=this.T)==null||y.hide();l7.prototype.hide.call(this)}; g.a.show=function(){l7.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var J;(J=this.C)==null||J.show();var y;(y=this.T)==null||y.show()};g.x(HE,l7);HE.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(y!=null&&y.gridCards)if(y.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.jv(Error("Only single column style is currently supported in AdGridCardCollection."));else for(J=g.D(y.gridCards),y=J.next();!y.done;y=J.next()){if(y=g.R(y.value,QMX)){var v=new O3u(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,v);v.yk(this.element);v.init(w5("ad-grid-card-text"),y);this.C.push(v)}}else g.jv(Error("No grid cards found in AdGridCardCollection."))}; HE.prototype.show=function(){for(var J=g.D(this.C),y=J.next();!y.done;y=J.next())y.value.show();l7.prototype.show.call(this)}; HE.prototype.clear=function(){this.hide();for(var J=g.D(this.C),y=J.next();!y.done;y=J.next())y.value.clear()}; HE.prototype.hide=function(){for(var J=g.D(this.C),y=J.next();!y.done;y=J.next())y.value.hide();l7.prototype.hide.call(this)};g.x(X8,Kf);g.a=X8.prototype;g.a.init=function(J,y,v,d,P){P=P===void 0?0:P;Kf.prototype.init.call(this,J,y,v,d);this.playerProgressOffsetMs=P;z_(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.CH.bind(this));this.api.addEventListener("resize",this.h0.bind(this));this.api.SG()?(this.T=!0,this.api.Dl(!0),this.show()):this.hide()}; g.a.lC=function(){if(this.C){var J=this.C.getProgressState();J&&J.current&&!this.T&&1E3*J.current>=this.playerProgressOffsetMs&&(this.T=!0,this.api.Dl(!0),this.show())}}; g.a.Pc=function(){this.T&&this.api.Dl(!1);this.hide()}; g.a.clear=function(){this.api.Dl(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.CH.bind(this));this.api.removeEventListener("resize",this.h0.bind(this));kH(this);this.hide()}; g.a.hide=function(){gmy(!1);Kf.prototype.hide.call(this)}; g.a.show=function(){gmy(!0);Kf.prototype.show.call(this)};g.x(Djy,X8);g.a=Djy.prototype; g.a.init=function(J,y,v,d){if(y!=null&&y.adGridCardCollection)if(y!=null&&y.adButton){var P=Number(y.playerProgressOffsetMs||"0");isNaN(P)?X8.prototype.init.call(this,J,y,v,d):X8.prototype.init.call(this,J,y,v,d,P);J=y.headline;v=g.R(y.adAvatar,zr);J&&v?(this.headline=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.headline),this.headline.yk(this.uA("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(w5("ad-simple-attributed-string"),new cc(J)), this.adAvatar=new In(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.adAvatar),this.adAvatar.yk(this.uA("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(w5("ad-avatar"),v)):this.W.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");J=g.R(y.adGridCardCollection,ENw);this.adGridCardCollection.init(w5("ad-grid-card-collection"),J);y=g.R(y.adButton,EB);this.adButton.init(w5("ad-button"),y); this.hide()}else g.jv(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.jv(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.a.onClick=function(J){(this.adButton&&g.gs(this.adButton.element,J.target)||this.adAvatar&&g.gs(this.adAvatar.element,J.target))&&this.api.pauseVideo();X8.prototype.onClick.call(this,J);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.a.h0=function(){}; g.a.clear=function(){this.hide();var J;(J=this.headline)==null||J.clear();var y;(y=this.adAvatar)==null||y.clear();this.adGridCardCollection.clear();this.adButton.clear();X8.prototype.clear.call(this)}; g.a.show=function(){var J;(J=this.headline)==null||J.show();var y;(y=this.adAvatar)==null||y.show();this.adGridCardCollection.show();this.adButton.show();X8.prototype.show.call(this)}; g.a.hide=function(){var J;(J=this.headline)==null||J.hide();var y;(y=this.adAvatar)==null||y.hide();this.adGridCardCollection.hide();this.adButton.hide();X8.prototype.hide.call(this)}; g.a.CH=function(J){J==="transitioning"?(this.J.classList.remove("ytp-ad-underlay-clickable"),this.show()):J==="visible"?this.J.classList.add("ytp-ad-underlay-clickable"):J==="hidden"&&(this.hide(),this.J.classList.remove("ytp-ad-underlay-clickable"))};g.x(NM,l7); NM.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(y.attributes===void 0)g.jv(Error("No attributes found in AdDetailsLineViewModel."));else if(y.style===void 0)g.jv(Error("No style found in AdDetailsLineViewModel."));else{J=g.D(y.attributes);for(var v=J.next();!v.done;v=J.next())if(v=v.value,v.text!==void 0){v=v.text;var d=y.style,P=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,P);P.yk(this.element);a:switch(d){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":d="ytp-ad-details-line__text--style-responsive"; break a;default:d="ytp-ad-details-line__text--style-standard"}P.element.classList.add(d);P.init(w5("ad-simple-attributed-string"),new cc(v));this.C.push(P)}this.show()}}; NM.prototype.show=function(){this.C.forEach(function(J){J.show()}); l7.prototype.show.call(this)}; NM.prototype.clear=function(){this.hide()}; NM.prototype.hide=function(){this.C.forEach(function(J){J.hide()}); l7.prototype.hide.call(this)};g.x(Rn,l7);Rn.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});var v,d;(J=((d=SG(((v=y.image)==null?void 0:v.sources)||[]))==null?void 0:d.url)||"")&&J.length?(v=this.uA("ytp-image-background-image"),g.Ni(v,"backgroundImage","url("+J+")"),y.blurLevel!==void 0&&g.Ni(v,"filter","blur("+y.blurLevel+"px)"),y.gradient!==void 0&&(y=new g.z({j:"div",kB:["ytp-image-background--gradient-vertical"]}),g.X(this,y),y.yk(this.element)),this.show()):g.jv(Error("Failed to get imageUrl in ImageBackground."))}; Rn.prototype.clear=function(){this.hide()};g.x(ccq,Kf);g.a=ccq.prototype;g.a.init=function(J,y){Kf.prototype.init.call(this,J,y,{});g.Ni(this.J,"stroke-dasharray","0 "+this.T);this.show()}; g.a.clear=function(){this.hide()}; g.a.hide=function(){kH(this);Kf.prototype.hide.call(this)}; g.a.show=function(){z_(this);Kf.prototype.show.call(this)}; g.a.Pc=function(){this.hide()}; g.a.lC=function(){if(this.C){var J=this.C.getProgressState();J!=null&&J.current!=null&&g.Ni(this.J,"stroke-dasharray",J.current/J.seekableEnd*this.T+" "+this.T)}};g.x(KJ,l7); KJ.prototype.init=function(J,y){l7.prototype.init.call(this,J,y,{});if(b3u(y)){this.adAvatar=new In(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.adAvatar);this.adAvatar.yk(this.uA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(w5("ad-avatar"),g.R(y.adAvatar,zr));this.headline=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.vX);g.X(this,this.headline);this.headline.yk(this.uA("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(w5("ad-simple-attributed-string"),new cc(y.headline));if(J=g.R(y.adDetailsLine,Rbw))this.detailsLine=new NM(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.detailsLine),this.detailsLine.yk(this.uA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(w5("ad-details-line"),J);this.adButton=new pJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0);g.X(this,this.adButton); this.adButton.yk(this.uA("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(w5("ad-button"),g.R(y.adButton,EB));this.adBadge=new bL(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,!0);g.X(this,this.adBadge);this.adBadge.yk(this.W);this.adBadge.init(w5("ad-badge"),g.R(y.adBadge,k_));this.adInfoButton=new X9(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.element,void 0,!0);g.X(this,this.adInfoButton);this.adInfoButton.yk(this.W); this.adInfoButton.init(w5("ad-info-hover-text-button"),g.R(y.adInfoRenderer,Ej),this.macros);if(J=g.R(y.skipAdButton,Jgn))this.skipAdButton=new UB(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.skipAdButton),this.skipAdButton.yk(this.element),this.skipAdButton.init(w5("skip-button"),J);this.T=new aP(y.durationMilliseconds);g.X(this,this.T);if(J=g.R(y.countdownViewModel,vpq))this.C=new ccq(this.api,this.layoutId,this.interactionLoggingClientData,this.vX,this.T),g.X(this, this.C),this.C.yk(this.uA("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.C.init(w5("timed-pie-countdown"),J);if(y=g.R(y.imageBackground,knV))this.imageBackground=new Rn(this.api,this.layoutId,this.interactionLoggingClientData,this.vX),g.X(this,this.imageBackground),this.imageBackground.yk(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(w5("image-background"), y);this.show();this.element.focus()}}; KJ.prototype.clear=function(){g.j$(this.J);this.hide()}; KJ.prototype.show=function(){G2y(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();l7.prototype.show.call(this)}; KJ.prototype.hide=function(){G2y(!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.C&&this.C.hide();this.imageBackground&&this.imageBackground.hide();l7.prototype.hide.call(this)};g.x(QC,g.yK);g.a=QC.prototype;g.a.e9=function(){return 1E3*this.api.getDuration(this.VL,!1)}; g.a.stop=function(){this.C&&this.lJ.y8(this.C)}; g.a.cq=function(){var J=this.api.getProgressState(this.VL);this.T={seekableStart:J.seekableStart,seekableEnd:J.seekableEnd,current:this.api.getCurrentTime(this.VL,!1)};this.publish("h")}; g.a.getProgressState=function(){return this.T}; g.a.rX=function(J){g.na(J,2)&&this.publish("g")};var eYb="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.x(Zs,Ux); Zs.prototype.J=function(J){var y=J.id,v=J.content,d=v.componentType;if(!eYb.includes(d))switch(J.actionType){case 1:J=this.api;var P=this.vX,A=v.layoutId,T=v.interactionLoggingClientData,M=v instanceof ob?v.oW:!1,n=v instanceof ob||v instanceof tF?v.qW:!1;T=T===void 0?{}:T;M=M===void 0?!1:M;n=n===void 0?!1:n;switch(d){case "invideo-overlay":J=new u53(J,A,T,P);break;case "player-overlay":J=new qu(J,A,T,P,new QC(J),n);break;case "player-overlay-layout":J=new ut(J,A,T,P,new QC(J));break;case "survey":J= new on(J,A,T,P);break;case "ad-action-interstitial":J=new IHc(J,A,T,P,M,n);break;case "video-interstitial-buttoned-centered":J=new KJ(J,A,T,P);break;case "survey-interstitial":J=new CJ(J,A,T,P);break;case "ad-message":J=new Ew2(J,A,T,P,new QC(J,1));break;case "player-underlay":J=new ZMH(J,A,T,P);break;case "display-underlay-text-grid-cards":J=new Djy(J,A,T,P,new QC(J));break;default:J=null}if(!J){g.ev(Error("No UI component returned from ComponentFactory for type: "+d));break}g.sg(this.components, y)?g.ev(Error("Ad UI component already registered: "+y)):this.components[y]=J;J.bind(v);v instanceof ra?this.T?this.T.append(J.Mt):g.ev(Error("Underlay view was not created but UnderlayRenderer was created")):this.W.append(J.Mt);break;case 2:y=FTH(this,J);if(y==null)break;y.bind(v);break;case 3:v=FTH(this,J),v!=null&&(g.dJ(v),g.sg(this.components,y)?(v=this.components,y in v&&delete v[y]):g.ev(Error("Ad UI component does not exist: "+y)))}}; Zs.prototype.JY=function(){g.P2(Object.values(this.components));this.components={};Ux.prototype.JY.call(this)};g.x(jdw,g.Gy);g.a=jdw.prototype;g.a.create=function(){try{e3V(this),this.load(),this.created=!0,e3V(this)}catch(J){TS(J instanceof Error?J:String(J))}}; g.a.load=function(){try{qUw(this)}finally{Jd(F8(this.C).m8)&&this.player.CA("ad",1)}}; g.a.destroy=function(){var J=this.player.getVideoData(1);this.C.C.Or.R$(J&&J.clientPlaybackNonce||"");this.unload();this.created=!1}; g.a.unload=function(){g.Gy.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(y){TS(y instanceof Error?y:String(y))}if(this.T!=null){var J=this.T;this.T=null;J.dispose()}this.J.reset()}; g.a.l8=function(){return!1}; g.a.getAdState=function(){return-1}; g.a.getOptions=function(){return Object.values(jew)}; g.a.TN=function(J,y){y=y===void 0?{}:y;switch(J){case "replaceUrlMacros":return J=y,J.url?(y=k5P(this.player),Object.assign(y,J.qjW),J=g.m5(J.url,y)):J=null,J;case "onAboutThisAdPopupClosed":this.ET(y);break;case "executeCommand":J=y;J.command&&J.layoutId&&this.executeCommand(J);break;default:return null}}; g.a.SX=function(J){var y;return!((y=this.C.C.O8)==null||!y.get().SX(J))}; g.a.ET=function(J){J.isMuted&&bcT(F8(this.C).Yi,F8(this.C).sj,J.layoutId);this.gO&&this.gO.ET()}; g.a.executeCommand=function(J){F8(this.C).vX.executeCommand(J.command,J.layoutId)};g.yq("yt.player.Application.create",g.OJ.create);g.yq("yt.player.Application.createAlternate",g.OJ.create);hCR(cg(),F9X);var mcV=g.vq("ytcsi.tick");mcV&&mcV("pe");g.cm("ad",jdw);g.x(g.yZ,g.u);g.yZ.prototype.start=function(J,y,v){this.config={from:J,to:y,duration:v,startTime:(0,g.GC)()};this.next()}; g.yZ.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.yZ.prototype.next=function(){if(this.config){var J=this.config,y=J.from,v=J.to,d=J.duration;J=J.startTime;var P=(0,g.GC)()-J;J=this.C;d=XaT(J,P/d);if(d==0)J=J.G;else if(d==1)J=J.B;else{P=XN(J.G,J.V,d);var A=XN(J.V,J.L,d);J=XN(J.L,J.B,d);P=XN(P,A,d);A=XN(A,J,d);J=XN(P,A,d)}J=g.uX(J,0,1);this.callback(y+(v-y)*J);J<1&&this.delay.start()}};g.x(g.v5,g.z);g.a=g.v5.prototype;g.a.hasSuggestions=function(){return this.suggestionData.length>0}; g.a.eV=function(){this.T&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.a.show=function(){g.z.prototype.show.call(this);Iv_(this)}; g.a.Ft=function(){this.T&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.a.GH=function(){this.UN(this.api.DB().getPlayerSize())}; g.a.UN=function(J){var y=this.api.isEmbedsShortsMode()?.5625:16/9,v=this.api.WK();J=J.width-(v?112:58);v=Math.ceil(J/(v?320:192));var d=(J-v*8)/v;y=Math.floor(d/y);for(var P=g.D(this.C),A=P.next();!A.done;A=P.next())A=A.value.uA("ytp-suggestion-image"),A.style.width=d+"px",A.style.height=y+"px";this.suggestions.element.style.height=y+"px";this.W=d;this.B=y;this.containerWidth=J;this.columns=v;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.dt(this)}; g.a.onVideoDataChange=function(){var J=this.api.Y(),y=this.api.getVideoData();this.L=y.vR?!1:J.W;this.suggestionData=y.suggestions?g.eT(y.suggestions,function(v){return v&&!v.playlistId}):[]; Ujn(this);y.vR?this.title.update({title:g.yY("M\u00e1s videos de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:y.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"M\u00e1s Shorts":"M\u00e1s videos"})}; g.a.scrollTo=function(J){J=g.uX(J,this.containerWidth-this.suggestionData.length*(this.W+8),0);this.G.start(this.scrollPosition,J,1E3);this.scrollPosition=J;g.dt(this);Iv_(this)};})(_yt_player);